@univerjs-pro/live-share 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505191607
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x270e92=_0x535b;(function(_0x38f262,_0x330a10){var _0x18e394=_0x535b,_0xf9bdfb=_0x38f262();while(!![]){try{var _0x3142b3=parseInt(_0x18e394(0x16e))/0x1+-parseInt(_0x18e394(0xac))/0x2+parseInt(_0x18e394(0xa2))/0x3*(-parseInt(_0x18e394(0xb7))/0x4)+-parseInt(_0x18e394(0xbb))/0x5*(parseInt(_0x18e394(0x15d))/0x6)+-parseInt(_0x18e394(0xa5))/0x7*(-parseInt(_0x18e394(0x153))/0x8)+parseInt(_0x18e394(0x146))/0x9+parseInt(_0x18e394(0x112))/0xa*(parseInt(_0x18e394(0xb2))/0xb);if(_0x3142b3===_0x330a10)break;else _0xf9bdfb['push'](_0xf9bdfb['shift']());}catch(_0x172890){_0xf9bdfb['push'](_0xf9bdfb['shift']());}}}(_0x4d82,0x672ab));var U=Object[_0x270e92(0x119)],F=(_0x325f94,_0x240dcf,_0x1e92a5)=>_0x240dcf in _0x325f94?U(_0x325f94,_0x240dcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e92a5}):_0x325f94[_0x240dcf]=_0x1e92a5,v=(_0x1ccc8e,_0x2b4e33,_0x557338)=>F(_0x1ccc8e,typeof _0x2b4e33!=_0x270e92(0x93)?_0x2b4e33+'':_0x2b4e33,_0x557338);Object[_0x270e92(0x119)](exports,Symbol[_0x270e92(0x109)],{'value':_0x270e92(0xd5)});const m=require(_0x270e92(0xcb)),o=require(_0x270e92(0x13c)),C=require('@univerjs/sheets'),D=require(_0x270e92(0xb6)),p=require(_0x270e92(0xc9)),l=require(_0x270e92(0xc4)),g=require(_0x270e92(0xf3)),f=require(_0x270e92(0xbe)),_=require(_0x270e92(0xad)),x=require('rxjs'),b=require(_0x270e92(0xfd)),$=_0x270e92(0x97),L={};class E extends o[_0x270e92(0x159)]{constructor(){var _0x3d9ed2=_0x270e92;super(...arguments),v(this,_0x3d9ed2(0xc1),new Set()),v(this,_0x3d9ed2(0x94),new Set());}[_0x270e92(0x8d)](_0x24d37f){var _0x990075=_0x270e92;return this[_0x990075(0xc1)]['add'](_0x24d37f),o[_0x990075(0x12c)](()=>this['_sharedOperations'][_0x990075(0xc2)](_0x24d37f));}[_0x270e92(0x134)](_0x229ac3){var _0x5f16f6=_0x270e92;return this[_0x5f16f6(0x94)]['add'](_0x229ac3),o['toDisposable'](()=>this[_0x5f16f6(0x94)][_0x5f16f6(0xc2)](_0x229ac3));}[_0x270e92(0xfb)](_0x3fbb45){var _0x196ffd=_0x270e92;return this[_0x196ffd(0xc1)][_0x196ffd(0x157)](_0x3fbb45);}[_0x270e92(0xc0)](_0x5e3a76){var _0x20c483=_0x270e92;return Array[_0x20c483(0x133)](this[_0x20c483(0x94)])[_0x20c483(0xa7)](_0xaa012f=>_0xaa012f(_0x5e3a76));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x1fb1ae,_0x51e190,_0x457ec0,_0x58c351)=>{var _0x3b9aad=_0x270e92;for(var _0x591cee=_0x58c351>0x1?void 0x0:_0x58c351?H(_0x51e190,_0x457ec0):_0x51e190,_0x414972=_0x1fb1ae[_0x3b9aad(0x108)]-0x1,_0x222248;_0x414972>=0x0;_0x414972--)(_0x222248=_0x1fb1ae[_0x414972])&&(_0x591cee=_0x222248(_0x591cee)||_0x591cee);return _0x591cee;},k=(_0x597a30,_0x59b142)=>(_0x14eb9b,_0x1f454b)=>_0x59b142(_0x14eb9b,_0x1f454b,_0x597a30);let O=class extends o[_0x270e92(0x159)]{constructor(_0x409a80){var _0x2b7701=_0x270e92;super(),this['_liveShareService']=_0x409a80,this[_0x2b7701(0x11f)]();}[_0x270e92(0x11f)](){var _0x56a878=_0x270e92;[D[_0x56a878(0x14e)]['id'],D[_0x56a878(0xaf)]['id'],C[_0x56a878(0x89)]['id']]['forEach'](_0x2eef8=>{var _0x51228d=_0x56a878;this[_0x51228d(0x103)](this[_0x51228d(0x140)]['registerSharedOperation'](_0x2eef8));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x508511=_0x270e92;return u=Object[_0x508511(0x8b)]||function(_0x530fff){var _0x5373f5=_0x508511;for(var _0x3ffea8,_0x520472=0x1,_0x192f33=arguments[_0x5373f5(0x108)];_0x520472<_0x192f33;_0x520472++){_0x3ffea8=arguments[_0x520472];for(var _0x11c015 in _0x3ffea8)Object['prototype'][_0x5373f5(0xbd)][_0x5373f5(0x105)](_0x3ffea8,_0x11c015)&&(_0x530fff[_0x11c015]=_0x3ffea8[_0x11c015]);}return _0x530fff;},u[_0x508511(0xeb)](this,arguments);},M=function(_0x246ca0,_0x3d73bd){var _0xeedb14=_0x270e92,_0x4a2e9c={};for(var _0x4cd63b in _0x246ca0)Object['prototype'][_0xeedb14(0xbd)][_0xeedb14(0x105)](_0x246ca0,_0x4cd63b)&&_0x3d73bd[_0xeedb14(0x107)](_0x4cd63b)<0x0&&(_0x4a2e9c[_0x4cd63b]=_0x246ca0[_0x4cd63b]);if(_0x246ca0!=null&&typeof Object[_0xeedb14(0x8f)]==_0xeedb14(0x168)){for(var _0x330687=0x0,_0x4cd63b=Object[_0xeedb14(0x8f)](_0x246ca0);_0x330687<_0x4cd63b[_0xeedb14(0x108)];_0x330687++)_0x3d73bd['indexOf'](_0x4cd63b[_0x330687])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x246ca0,_0x4cd63b[_0x330687])&&(_0x4a2e9c[_0x4cd63b[_0x330687]]=_0x246ca0[_0x4cd63b[_0x330687]]);}return _0x4a2e9c;},j=f[_0x270e92(0x14f)](function(_0x165117,_0x1cf7ad){var _0x552396=_0x270e92,_0xfada6b=_0x165117[_0x552396(0xf9)],_0x5f8768=_0x165117['id'],_0x4532af=_0x165117[_0x552396(0xb0)],_0xea734a=_0x165117[_0x552396(0x136)],_0x2ea860=M(_0x165117,['icon','id',_0x552396(0xb0),_0x552396(0x136)]),_0x5df82f=_0x552396(0x141)['concat'](_0x5f8768,'\x20')[_0x552396(0x14c)](_0x4532af||'')['trim'](),_0x4c5cc6=f[_0x552396(0x9d)]('_'['concat'](G()));return y(_0xfada6b,''['concat'](_0x5f8768),{'defIds':_0xfada6b[_0x552396(0xa1)],'idSuffix':_0x4c5cc6['current']},u({'ref':_0x1cf7ad,'className':_0x5df82f},_0x2ea860),_0xea734a);});function y(_0x420228,_0x30f43,_0x2886d6,_0x187b57,_0x43034b){var _0x804699=_0x270e92;return f[_0x804699(0x8a)](_0x420228['tag'],u(u({'key':_0x30f43},q(_0x420228,_0x2886d6,_0x43034b)),_0x187b57),(W(_0x420228,_0x2886d6)[_0x804699(0xa8)]||[])[_0x804699(0xa7)](function(_0x35be3d,_0x3132d5){var _0x6ea566=_0x804699;return y(_0x35be3d,''[_0x6ea566(0x14c)](_0x30f43,'-')[_0x6ea566(0x14c)](_0x420228[_0x6ea566(0x13d)],'-')[_0x6ea566(0x14c)](_0x3132d5),_0x2886d6,void 0x0,_0x43034b);}));}function q(_0x5cf044,_0x15f5c1,_0x4c2c9f){var _0x3ea68a=_0x270e92,_0x22373f=u({},_0x5cf044[_0x3ea68a(0x15e)]);_0x4c2c9f!=null&&_0x4c2c9f[_0x3ea68a(0xc6)]&&_0x22373f[_0x3ea68a(0x125)]===_0x3ea68a(0xc6)&&(_0x22373f[_0x3ea68a(0x125)]=_0x4c2c9f[_0x3ea68a(0xc6)]),_0x5cf044[_0x3ea68a(0x13d)]===_0x3ea68a(0x106)&&_0x22373f['id']&&(_0x22373f['id']=_0x22373f['id']+_0x15f5c1[_0x3ea68a(0xc7)]),Object[_0x3ea68a(0xcf)](_0x22373f)[_0x3ea68a(0x11e)](function(_0x50971b){var _0x34b23c=_0x3ea68a,_0x1d618e=_0x50971b[0x0],_0x2c8446=_0x50971b[0x1];_0x1d618e==='mask'&&typeof _0x2c8446=='string'&&(_0x22373f[_0x1d618e]=_0x2c8446[_0x34b23c(0x88)](/url\(#(.*)\)/,_0x34b23c(0x161)[_0x34b23c(0x14c)](_0x15f5c1[_0x34b23c(0xc7)],')')));});var _0x27a027=_0x15f5c1[_0x3ea68a(0xa1)];return!_0x27a027||_0x27a027['length']===0x0||(_0x5cf044[_0x3ea68a(0x13d)]===_0x3ea68a(0x10b)&&_0x22373f['xlink:href']&&(_0x22373f[_0x3ea68a(0x115)]=_0x22373f[_0x3ea68a(0x115)]+_0x15f5c1[_0x3ea68a(0xc7)]),Object[_0x3ea68a(0xcf)](_0x22373f)[_0x3ea68a(0x11e)](function(_0x53fce3){var _0x49ff3f=_0x3ea68a,_0x280d24=_0x53fce3[0x0],_0x52e180=_0x53fce3[0x1];typeof _0x52e180==_0x49ff3f(0x117)&&(_0x22373f[_0x280d24]=_0x52e180[_0x49ff3f(0x88)](/url\(#(.*)\)/,_0x49ff3f(0x161)[_0x49ff3f(0x14c)](_0x15f5c1[_0x49ff3f(0xc7)],')')));})),_0x22373f;}function W(_0x540e7f,_0x20e864){var _0x116056=_0x270e92,_0x5c6035,_0x2fba6b=_0x20e864[_0x116056(0xa1)];return!_0x2fba6b||_0x2fba6b[_0x116056(0x108)]===0x0?_0x540e7f:_0x540e7f['tag']===_0x116056(0x127)&&(!((_0x5c6035=_0x540e7f['children'])===null||_0x5c6035===void 0x0)&&_0x5c6035['length'])?u(u({},_0x540e7f),{'children':_0x540e7f['children'][_0x116056(0xa7)](function(_0x3dad52){var _0x1c6c85=_0x116056;return typeof _0x3dad52[_0x1c6c85(0x15e)]['id']=='string'&&_0x2fba6b&&_0x2fba6b[_0x1c6c85(0x107)](_0x3dad52[_0x1c6c85(0x15e)]['id'])>-0x1?u(u({},_0x3dad52),{'attrs':u(u({},_0x3dad52['attrs']),{'id':_0x3dad52[_0x1c6c85(0x15e)]['id']+_0x20e864[_0x1c6c85(0xc7)]})}):_0x3dad52;})}):_0x540e7f;}function G(){var _0x208c5d=_0x270e92;return Math[_0x208c5d(0x14b)]()[_0x208c5d(0xf7)](0x24)['substring'](0x2,0x8);}j[_0x270e92(0xf6)]=_0x270e92(0xd6);var B={'tag':_0x270e92(0x87),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x270e92(0x123),'height':'1em'},'children':[{'tag':_0x270e92(0xf4),'attrs':{'fill':_0x270e92(0xe5),'d':_0x270e92(0xe1)}},{'tag':_0x270e92(0xf4),'attrs':{'fill':_0x270e92(0xe5),'d':_0x270e92(0x129),'fillRule':_0x270e92(0xef),'clipRule':_0x270e92(0xef)}}]},P=f['forwardRef'](function(_0x4b99c8,_0x188b26){var _0x2be421=_0x270e92;return f[_0x2be421(0x8a)](j,Object['assign']({},_0x4b99c8,{'id':_0x2be421(0xe6),'ref':_0x188b26,'icon':B}));});P[_0x270e92(0xf6)]=_0x270e92(0x120);function _0x4d82(){var _0x499294=['useObservable','xlink:href','dispose','string','Button','defineProperty','LiveShareController','Subject','touchDependencies','_handleNewHost','forEach','_init','LiveShareSingle','end','includes','1em','UniverLiveSharePlugin','fill','override','defs','getUnitId','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','jsxs','NEW_CHANGESETS','toDisposable','getOwnPropertyDescriptor','init','get','You\x27re\x20following\x20the\x20presenter','set','_handleOperation','from','registerInitialStateReporter','type','extend','_mountLiveShare','_stopPresenting','LIVESHARE_REQUEST_HOST','ICommandService','_status$','@univerjs/core','tag','LiveShare','mutations','_liveShareService','univerjs-icon\x20univerjs-icon-','DesktopLiveShareController','_handleOffline','InsertSheetMutation','params','983088ARGgSk','idle','UNIVER_UNKNOWN','stopPresenting','jsx','random','concat','useState','SetZoomRatioOperation','forwardRef','setConfig','following','_univerInstanceService','433248KHErKV','getMemberID','NOT_FOLLOWING','requireSession','has','_stopFollowing','Disposable','useDependency','onCommandExecuted','You\x27re\x20presenting\x20the\x20document','7356qOQPhq','attrs','registerDependencies','_fetchOperations','url(#$1','div','parseProtocolChangeset','UNIVER_LIVE_SHARE_PLUGIN','find','unitId','BuiltInUIPart','function','getValue','next','presenting','_collabSessionService','complete','357560UqlkSQ','LiveShareService','Dropdown','CollaborationSessionService','createInstance','svg','replace','SetWorksheetActiveOperation','createElement','assign','Stop\x20presenting','registerSharedOperation','Fragment','getOwnPropertySymbols','_config','RxDisposable','Stop\x20following','symbol','_reporters','_handleOnline','LIVESHARE_TERMINATE','live-share.config','default','FOLLOWING','_startPresenting','LIVESHARE_OPERATION','throttleTime','useRef','then','pipe','IUIPartsService','defIds','1053285RvRkFb','_beIdle','data','105KotKmf','IConfigService','map','children','_startLiveShareCoordinator','_uiPartsService','tryStartPresenting','1408148EOCNmB','@univerjs-pro/collaboration','getTypeOfUnitAdded$','SetScrollOperation','className','values','11RKaeaT','getCurrentTypeOfUnit$','_commandDisposable','subscribe','@univerjs/sheets-ui','8SphTwz','_entities','_unitID','getTypeOfUnitDisposed$','3005gzwKiH','stopFollowing','hasOwnProperty','react','presenter','getInitialStates','_sharedOperations','delete','text','react/jsx-runtime','LiveShareCoordinator','colorChannel1','idSuffix','connectInjector','@univerjs/ui','IDLE','@univerjs-pro/collaboration-client','getConfig','UNIVER_SHEET','stringify','entries','_configService','asObservable','Inject','mergeOverrideWithDependencies','not-following','Module','UniverIcon','LIVESHARE_NEW_HOST','reverse','univer-w-full\x20univer-mb-3\x20univer-text-sm','status$','PRESENTING','Injector','parse','useEffect','_collabSession','_injector','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','LIVESHARE_FETCH_OPERATIONS','registerComponent','send','currentColor','live-share-single','_presenter','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleNewChangeSets','apply','current','CollaborationEvent','clsx','evenodd','takeUntil','SAME_OPERATION_SHARE_INTERVAL','UniverInstanceType','@univerjs/design','path','univer-size-4','displayName','toString','button','icon','SessionStatus','shouldShareOperation','_commandService','rxjs/operators','BehaviorSubject','merge','getLiveShareCoordinator','OPERATION','clear','disposeWithMe','ONLINE','call','mask','indexOf','length','toStringTag','CommandType','use','OFFLINE','dispose$','_startFollowing','startFollowing','_status','executeCommand','12865290PbuAIi','offline'];_0x4d82=function(){return _0x499294;};return _0x4d82();}function _0x535b(_0x7caa26,_0x3e976c){var _0x4d82f5=_0x4d82();return _0x535b=function(_0x535b7e,_0x9e8f86){_0x535b7e=_0x535b7e-0x87;var _0x368a07=_0x4d82f5[_0x535b7e];return _0x368a07;},_0x535b(_0x7caa26,_0x3e976c);}var Y=Object['getOwnPropertyDescriptor'],R=(_0x139fe0,_0x1c56f,_0x47e209,_0x52055e)=>{for(var _0x35b1e6=_0x52055e>0x1?void 0x0:_0x52055e?Y(_0x1c56f,_0x47e209):_0x1c56f,_0x2a07a8=_0x139fe0['length']-0x1,_0x570650;_0x2a07a8>=0x0;_0x2a07a8--)(_0x570650=_0x139fe0[_0x2a07a8])&&(_0x35b1e6=_0x570650(_0x35b1e6)||_0x35b1e6);return _0x35b1e6;},S=(_0x396d4a,_0x475fd0)=>(_0x520e41,_0x53e9d1)=>_0x475fd0(_0x520e41,_0x53e9d1,_0x396d4a);exports['LiveShareController']=class extends o[_0x270e92(0x91)]{constructor(_0x5e91ed,_0x5a8bfc,_0x4b9233){var _0x5828f5=_0x270e92;super(),v(this,'_entities',new Map()),(this[_0x5828f5(0x152)]=_0x5e91ed,this[_0x5828f5(0xe0)]=_0x5a8bfc,this[_0x5828f5(0x16c)]=_0x4b9233,this[_0x5828f5(0x11f)]());}async['getLiveShareCoordinator'](_0x35543b){var _0x1ca9d8=_0x270e92;return this[_0x1ca9d8(0xb8)][_0x1ca9d8(0x157)](_0x35543b)||await this[_0x1ca9d8(0xa9)](_0x35543b),this[_0x1ca9d8(0xb8)][_0x1ca9d8(0x12f)](_0x35543b);}['_init'](){var _0x3030ca=_0x270e92;this[_0x3030ca(0x152)][_0x3030ca(0xae)](o['UniverInstanceType'][_0x3030ca(0xcd)])[_0x3030ca(0x9f)](b[_0x3030ca(0xf0)](this['dispose$']))[_0x3030ca(0xb5)](async _0x2f5bf7=>{var _0x59b1e5=_0x3030ca;const _0x47235f=_0x2f5bf7[_0x59b1e5(0x128)]();this[_0x59b1e5(0xb8)][_0x59b1e5(0x157)](_0x47235f)||this['_startLiveShareCoordinator'](_0x47235f);}),this[_0x3030ca(0x152)][_0x3030ca(0xba)](o[_0x3030ca(0xf2)]['UNIVER_SHEET'])[_0x3030ca(0x9f)](b[_0x3030ca(0xf0)](this[_0x3030ca(0x10d)]))[_0x3030ca(0xb5)](_0x58ddb3=>{var _0x58519b=_0x3030ca;const _0x24ef49=_0x58ddb3['getUnitId'](),_0xef076a=this[_0x58519b(0xb8)]['get'](_0x24ef49);_0xef076a==null||_0xef076a[_0x58519b(0x116)]();});}async[_0x270e92(0xa9)](_0x5dbbaf){var _0x4059bc=_0x270e92;const _0x339802=await this[_0x4059bc(0x16c)][_0x4059bc(0x156)](_0x5dbbaf),_0x11c6c1=this[_0x4059bc(0xe0)][_0x4059bc(0x172)](exports[_0x4059bc(0xc5)],_0x5dbbaf,_0x339802);return _0x11c6c1[_0x4059bc(0x12e)](),this[_0x4059bc(0xb8)][_0x4059bc(0x131)](_0x5dbbaf,_0x11c6c1),_0x11c6c1;}},exports[_0x270e92(0x11a)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),S(0x2,o[_0x270e92(0xd2)](m[_0x270e92(0x171)]))],exports[_0x270e92(0x11a)]);var h=(_0x2dee9f=>(_0x2dee9f[_0x270e92(0x10c)]=_0x270e92(0x113),_0x2dee9f[_0x270e92(0xca)]=_0x270e92(0x147),_0x2dee9f[_0x270e92(0x99)]='following',_0x2dee9f[_0x270e92(0x155)]=_0x270e92(0xd4),_0x2dee9f[_0x270e92(0xdb)]='presenting',_0x2dee9f))(h||{});const Z=_0x270e92(0xf1),J=0xc8;exports[_0x270e92(0xc5)]=class extends o[_0x270e92(0x91)]{constructor(_0x5984b1,_0x3b8c34,_0xc0072f,_0x2fcd80,_0x45cf8e){var _0x306c1b=_0x270e92;super(),v(this,'_status$',new x[(_0x306c1b(0xfe))]('idle')),v(this,_0x306c1b(0xda),this[_0x306c1b(0x13b)][_0x306c1b(0xd1)]()),v(this,_0x306c1b(0x11f),!0x1),v(this,_0x306c1b(0xb4),null),v(this,'_presenter',null),(this[_0x306c1b(0xb9)]=_0x5984b1,this[_0x306c1b(0xdf)]=_0x3b8c34,this[_0x306c1b(0xd0)]=_0xc0072f,this['_liveShareService']=_0x2fcd80,this['_commandService']=_0x45cf8e);}get[_0x270e92(0x110)](){var _0x5a4451=_0x270e92;return this[_0x5a4451(0x13b)][_0x5a4451(0x169)]();}[_0x270e92(0x116)](){var _0x416381=_0x270e92,_0x422f3b;(_0x422f3b=this[_0x416381(0xb4)])==null||_0x422f3b[_0x416381(0x116)](),this['_status$']['next'](_0x416381(0x147)),this[_0x416381(0x13b)][_0x416381(0x16d)]();}[_0x270e92(0x12e)](){var _0x8bdb52=_0x270e92;this[_0x8bdb52(0x11f)]||(this[_0x8bdb52(0x11f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x8bdb52(0x9f)](b['takeUntil'](this[_0x8bdb52(0x10d)]))[_0x8bdb52(0xb5)](_0xfde998=>{var _0x1fef4e=_0x8bdb52;switch(_0xfde998){case m['SessionStatus']['OFFLINE']:this[_0x1fef4e(0x143)]();break;case m[_0x1fef4e(0xfa)][_0x1fef4e(0x104)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x8bdb52(0x9f)](b[_0x8bdb52(0xf0)](this['dispose$']))['subscribe'](_0x2f3692=>{var _0x2ee2fa=_0x8bdb52;const {eventID:_0x41359a}=_0x2f3692;switch(_0x41359a){case _[_0x2ee2fa(0xed)][_0x2ee2fa(0xd7)]:this[_0x2ee2fa(0x11d)](_0x2f3692);break;case _[_0x2ee2fa(0xed)][_0x2ee2fa(0x9b)]:this[_0x2ee2fa(0x132)](_0x2f3692);break;case _['CollaborationEvent'][_0x2ee2fa(0x96)]:this['_handleTerminate']();break;case _[_0x2ee2fa(0xed)][_0x2ee2fa(0x12b)]:this['_handleNewChangeSets'](_0x2f3692);break;}}));}[_0x270e92(0xab)](){var _0x4d2ca8=_0x270e92;this[_0x4d2ca8(0xdf)][_0x4d2ca8(0xe4)]({'eventID':_['CollaborationEvent'][_0x4d2ca8(0x139)],'data':{'unitID':this[_0x4d2ca8(0xb9)],'userID':this['_collabSession'][_0x4d2ca8(0x154)]()}},this['_unitID']);}[_0x270e92(0x149)](){var _0x4d4b25=_0x270e92;this[_0x4d4b25(0x110)]==='presenting'&&(this[_0x4d4b25(0x13b)][_0x4d4b25(0x16a)]('idle'),this['_collabSession']['send']({'eventID':_[_0x4d4b25(0xed)][_0x4d4b25(0x96)],'data':{'unitID':this[_0x4d4b25(0xb9)]}},this[_0x4d4b25(0xb9)]));}[_0x270e92(0x10f)](){var _0x229a46=_0x270e92;this[_0x229a46(0x110)]===_0x229a46(0xd4)&&(this[_0x229a46(0x13b)][_0x229a46(0x16a)](_0x229a46(0x151)),this[_0x229a46(0x10e)]());}[_0x270e92(0xbc)](){var _0x2e5e8f=_0x270e92;this[_0x2e5e8f(0x110)]===_0x2e5e8f(0x151)&&this[_0x2e5e8f(0x158)]();}['_handleNewHost'](_0x2d957e){var _0x6e94c1=_0x270e92;const {presenter:_0x181e29}=_0x2d957e[_0x6e94c1(0xa4)],_0x252a4f=this[_0x6e94c1(0xdf)]['getMemberID']();this[_0x6e94c1(0xe7)]=_0x181e29,_0x181e29===_0x252a4f?(this[_0x6e94c1(0x158)](),this[_0x6e94c1(0x9a)]()):this['_status']!==_0x6e94c1(0xd4)&&(this[_0x6e94c1(0x138)](),this['_startFollowing']());}[_0x270e92(0x160)](){var _0x36cfa4=_0x270e92;const _0x2b50d4={'eventID':_[_0x36cfa4(0xed)][_0x36cfa4(0xe2)]};this[_0x36cfa4(0xdf)][_0x36cfa4(0xe4)](_0x2b50d4,this[_0x36cfa4(0xb9)]);}['_handleTerminate'](){var _0x1579d5=_0x270e92;this[_0x1579d5(0xe7)]=null,this[_0x1579d5(0x110)]!=='presenting'&&this[_0x1579d5(0xa3)]();}[_0x270e92(0xea)](_0x37c0fd){var _0x461535=_0x270e92;if(this[_0x461535(0x110)]===_0x461535(0x151)&&this[_0x461535(0xe7)]===_0x37c0fd[_0x461535(0xa4)]['memberID']){const _0x18c903=_[_0x461535(0x163)](_0x37c0fd[_0x461535(0xa4)])[_0x461535(0x13f)][_0x461535(0xd8)]()[_0x461535(0x165)](_0x43ea08=>_0x43ea08['id']===C[_0x461535(0x144)]['id']);if(_0x18c903){const _0x33e86d=_0x18c903['params'][_0x461535(0x166)],_0x59d00b=_0x18c903['params']['sheet']['id'];setTimeout(()=>{var _0x3611c6=_0x461535;this['_commandService'][_0x3611c6(0x111)](C[_0x3611c6(0x89)]['id'],{'unitId':_0x33e86d,'subUnitId':_0x59d00b},{'fromCollab':!0x0});});}}}[_0x270e92(0x9a)](){var _0x1c750d=_0x270e92;this[_0x1c750d(0x13b)][_0x1c750d(0x16a)]('presenting');const _0x220960=new Map(),_0x5a5721=this[_0x1c750d(0xb4)]=new o['DisposableCollection']();_0x5a5721['add'](o[_0x1c750d(0x12c)](()=>{var _0x4894b9=_0x1c750d;_0x220960['forEach'](_0x3701b4=>_0x3701b4[_0x4894b9(0x16d)]()),_0x220960[_0x4894b9(0x102)]();})),_0x5a5721['add'](this[_0x1c750d(0xfc)][_0x1c750d(0x15b)](_0x842c7=>{var _0x3d8b3b=_0x1c750d,_0x53bfae;if(_0x842c7[_0x3d8b3b(0x135)]!==o[_0x3d8b3b(0x10a)][_0x3d8b3b(0x101)]||!this[_0x3d8b3b(0x140)][_0x3d8b3b(0xfb)](_0x842c7['id']))return;const {id:_0x71bf2d}=_0x842c7;let _0x487908;_0x220960[_0x3d8b3b(0x157)](_0x71bf2d)?_0x487908=_0x220960['get'](_0x71bf2d):(_0x487908=new x[(_0x3d8b3b(0x11b))](),_0x220960[_0x3d8b3b(0x131)](_0x71bf2d,_0x487908),_0x487908[_0x3d8b3b(0x9f)](b[_0x3d8b3b(0x9c)]((_0x53bfae=this['_configService'][_0x3d8b3b(0xcc)](Z))!=null?_0x53bfae:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x22c676=>{var _0x40c7a6=_0x3d8b3b;this['_collabSession']['send']({'eventID':_[_0x40c7a6(0xed)][_0x40c7a6(0x9b)],'data':{'unitID':this[_0x40c7a6(0xb9)],'operations':{[_0x22c676['id']]:{'id':_0x22c676['id'],'params':JSON[_0x40c7a6(0xce)](_0x22c676[_0x40c7a6(0x145)])}}}},this[_0x40c7a6(0xb9)]);})),_0x487908[_0x3d8b3b(0x16a)](_0x842c7);})),this[_0x1c750d(0x140)][_0x1c750d(0xc0)](this[_0x1c750d(0xb9)])['forEach'](_0x262278=>this[_0x1c750d(0xdf)][_0x1c750d(0xe4)]({'eventID':_['CollaborationEvent'][_0x1c750d(0x9b)],'data':{'unitID':this[_0x1c750d(0xb9)],'operations':{[_0x262278['id']]:{'id':_0x262278['id'],'params':JSON['stringify'](_0x262278[_0x1c750d(0x145)])}}}},this[_0x1c750d(0xb9)]));}['_stopPresenting'](){var _0x2421ed=_0x270e92,_0x2675af;this[_0x2421ed(0x13b)][_0x2421ed(0x16a)](_0x2421ed(0x147)),(_0x2675af=this[_0x2421ed(0xb4)])==null||_0x2675af['dispose'](),this['_commandDisposable']=null;}[_0x270e92(0x10e)](){var _0x550110=_0x270e92,_0x3ab06c;(_0x3ab06c=this[_0x550110(0xb4)])==null||_0x3ab06c['dispose'](),this[_0x550110(0x13b)][_0x550110(0x16a)](_0x550110(0x151));}[_0x270e92(0xa3)](){var _0x474ff9=_0x270e92,_0x48d66b;this[_0x474ff9(0x13b)][_0x474ff9(0x16a)]('idle'),(_0x48d66b=this[_0x474ff9(0xb4)])==null||_0x48d66b['dispose'](),this[_0x474ff9(0xb4)]=null;}['_stopFollowing'](){var _0x4689e4=_0x270e92,_0x42265c;this['_status$'][_0x4689e4(0x16a)](_0x4689e4(0xd4)),(_0x42265c=this[_0x4689e4(0xb4)])==null||_0x42265c['dispose']();}[_0x270e92(0x132)](_0x3a91fe){var _0x390248=_0x270e92;if([_0x390248(0x16b),_0x390248(0xd4),_0x390248(0x113)][_0x390248(0x122)](this[_0x390248(0x110)])||!_0x3a91fe[_0x390248(0xa4)][_0x390248(0xbf)]||_0x3a91fe[_0x390248(0xa4)][_0x390248(0xbf)]===this[_0x390248(0xdf)][_0x390248(0x154)]())return;this[_0x390248(0x110)]===_0x390248(0x147)&&this[_0x390248(0x10e)]();const _0x18f850=_0x3a91fe[_0x390248(0xa4)]['operations'];Object[_0x390248(0xb1)](_0x18f850)[_0x390248(0x11e)](_0x29771f=>{var _0x4978d8=_0x390248;this['_commandService']['executeCommand'](_0x29771f['id'],_0x29771f[_0x4978d8(0x145)]?JSON[_0x4978d8(0xdd)](_0x29771f[_0x4978d8(0x145)]):null,{'fromCollab':!0x0});});}[_0x270e92(0x143)](){var _0x3bc8ee=_0x270e92,_0x4277e7;this[_0x3bc8ee(0x13b)][_0x3bc8ee(0x16a)](_0x3bc8ee(0x113)),(_0x4277e7=this['_commandDisposable'])==null||_0x4277e7['dispose']();}[_0x270e92(0x95)](){var _0x3dde14=_0x270e92;this['_status$'][_0x3dde14(0x16a)](_0x3dde14(0x147)),this[_0x3dde14(0x160)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x270e92(0x13a)])],exports[_0x270e92(0xc5)]);function A(){var _0x1ae74f=_0x270e92;const _0xa31e7c=p['useDependency'](exports[_0x1ae74f(0x11a)]),_0x2c9d50=p[_0x1ae74f(0x15a)](o['IUniverInstanceService']),_0x4d3323=p[_0x1ae74f(0x114)](()=>_0x2c9d50[_0x1ae74f(0xb3)](o[_0x1ae74f(0xf2)][_0x1ae74f(0xcd)]),void 0x0,!0x1,[]),[_0x21d5dd,_0x7379e8]=f[_0x1ae74f(0x14d)](null),[_0x229c77,_0x55ac2b]=f[_0x1ae74f(0x14d)](h['IDLE']),_0x18b660=f[_0x1ae74f(0x9d)](null);return f[_0x1ae74f(0xde)](()=>(_0x4d3323&&_0xa31e7c[_0x1ae74f(0x100)](_0x4d3323[_0x1ae74f(0x128)]())[_0x1ae74f(0x9e)](_0x1f410d=>{var _0x27dfa3=_0x1ae74f;_0x7379e8(_0x1f410d),_0x18b660[_0x27dfa3(0xec)]=_0x1f410d['status$'][_0x27dfa3(0xb5)](_0x135677=>{_0x55ac2b(_0x135677);});}),()=>{var _0x2d5d77;(_0x2d5d77=_0x18b660['current'])==null||_0x2d5d77['unsubscribe'](),_0x18b660['current']=null;}),[_0x4d3323,_0xa31e7c]),_0x21d5dd?l[_0x1ae74f(0x14a)](g[_0x1ae74f(0x170)],{'align':_0x1ae74f(0x121),'disabled':_0x229c77===h[_0x1ae74f(0x10c)],'className':_0x1ae74f(0xe8),'overlay':l[_0x1ae74f(0x14a)](K,{'status':_0x229c77,'coordinator':_0x21d5dd}),'children':l[_0x1ae74f(0x14a)]('button',{'className':g[_0x1ae74f(0xee)](_0x1ae74f(0xe9),{'univer-cursor-not-allowed':_0x229c77===h[_0x1ae74f(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x229c77!==h[_0x1ae74f(0x10c)]}),'type':_0x1ae74f(0xf8),'children':l[_0x1ae74f(0x14a)](P,{'className':_0x1ae74f(0xf5)})})}):null;}function K(_0x47e8d0){var _0x5c735e=_0x270e92;const {status:_0x506bc2,coordinator:_0x1e5251}=_0x47e8d0;switch(_0x506bc2){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x1e5251});case h[_0x5c735e(0x99)]:return l[_0x5c735e(0x14a)](Q,{'coordinator':_0x1e5251});case h['NOT_FOLLOWING']:return l[_0x5c735e(0x14a)](X,{'coordinator':_0x1e5251});case h[_0x5c735e(0x10c)]:return l[_0x5c735e(0x14a)](te,{});case h[_0x5c735e(0xdb)]:return l[_0x5c735e(0x14a)](ee,{'coordinator':_0x1e5251});default:return null;}}function z(_0x169195){var _0x2a9992=_0x270e92;const {coordinator:_0x56242b}=_0x169195;return l[_0x2a9992(0x12a)](l['Fragment'],{'children':[l[_0x2a9992(0x14a)](_0x2a9992(0x162),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x2a9992(0x14a)](g[_0x2a9992(0x118)],{'onClick':()=>_0x56242b['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x6119){var _0x5915c6=_0x270e92;const {coordinator:_0x5e4d94}=_0x6119;return l[_0x5915c6(0x12a)](l['Fragment'],{'children':[l[_0x5915c6(0x14a)](_0x5915c6(0x162),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5915c6(0x130)}),l[_0x5915c6(0x14a)](g[_0x5915c6(0x118)],{'onClick':()=>_0x5e4d94['stopFollowing'](),'children':_0x5915c6(0x92)})]});}function X(_0x54216c){var _0x1a3647=_0x270e92;const {coordinator:_0x18cba1}=_0x54216c;return l['jsxs'](l[_0x1a3647(0x8e)],{'children':[l[_0x1a3647(0x14a)](_0x1a3647(0x162),{'className':_0x1a3647(0xd9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1a3647(0x118)],{'variant':_0x1a3647(0xc3),'onClick':()=>_0x18cba1[_0x1a3647(0x10f)](),'children':'Start\x20following'})]});}function ee(_0x262990){var _0x2e291e=_0x270e92;const {coordinator:_0x1eb70f}=_0x262990;return l[_0x2e291e(0x12a)](l[_0x2e291e(0x8e)],{'children':[l[_0x2e291e(0x14a)]('div',{'className':_0x2e291e(0xd9),'children':_0x2e291e(0x15c)}),l[_0x2e291e(0x14a)](g[_0x2e291e(0x118)],{'variant':_0x2e291e(0x98),'onClick':()=>_0x1eb70f[_0x2e291e(0x149)](),'children':_0x2e291e(0x8c)})]});}function te(){var _0x1f305a=_0x270e92;return l[_0x1f305a(0x14a)](l[_0x1f305a(0x8e)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x270e92(0x12d)],ne=(_0x32e4fd,_0xb5de80,_0x8874ef,_0xa22e37)=>{var _0x461d76=_0x270e92;for(var _0x1cf0ce=_0xa22e37>0x1?void 0x0:_0xa22e37?ie(_0xb5de80,_0x8874ef):_0xb5de80,_0x3bac63=_0x32e4fd[_0x461d76(0x108)]-0x1,_0xe6cb4c;_0x3bac63>=0x0;_0x3bac63--)(_0xe6cb4c=_0x32e4fd[_0x3bac63])&&(_0x1cf0ce=_0xe6cb4c(_0x1cf0ce)||_0x1cf0ce);return _0x1cf0ce;},N=(_0x16490d,_0x1f0f15)=>(_0xb9b905,_0x342ab4)=>_0x1f0f15(_0xb9b905,_0x342ab4,_0x16490d);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0xa917cf,_0x18cb8e){var _0x35168d=_0x270e92;super(),this[_0x35168d(0xe0)]=_0xa917cf,this[_0x35168d(0xaa)]=_0x18cb8e,this['_mountLiveShare']();}[_0x270e92(0x137)](){var _0x1c690f=_0x270e92;this['disposeWithMe'](this[_0x1c690f(0xaa)][_0x1c690f(0xe3)](p[_0x1c690f(0x167)]['HEADER_MENU'],()=>p[_0x1c690f(0xc8)](A,this[_0x1c690f(0xe0)])));}},exports[_0x270e92(0x142)]=ne([N(0x0,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),N(0x1,p[_0x270e92(0xa0)])],exports['DesktopLiveShareController']);var re=Object[_0x270e92(0x119)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3a6740,_0x5a31bf,_0x40dda0)=>_0x5a31bf in _0x3a6740?re(_0x3a6740,_0x5a31bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40dda0}):_0x3a6740[_0x5a31bf]=_0x40dda0,ae=(_0x2a44a8,_0x4070c0,_0x16149e,_0x18a5e8)=>{for(var _0x5da523=_0x18a5e8>0x1?void 0x0:_0x18a5e8?se(_0x4070c0,_0x16149e):_0x4070c0,_0x310d2b=_0x2a44a8['length']-0x1,_0x346b87;_0x310d2b>=0x0;_0x310d2b--)(_0x346b87=_0x2a44a8[_0x310d2b])&&(_0x5da523=_0x346b87(_0x5da523)||_0x5da523);return _0x5da523;},w=(_0x798357,_0x1a1bc4)=>(_0x448993,_0x55521f)=>_0x1a1bc4(_0x448993,_0x55521f,_0x798357),T=(_0x3746d2,_0x38d85a,_0x5d48f5)=>oe(_0x3746d2,typeof _0x38d85a!=_0x270e92(0x93)?_0x38d85a+'':_0x38d85a,_0x5d48f5);const le=_0x270e92(0x164);exports[_0x270e92(0x124)]=class extends o['Plugin']{constructor(_0x3087b2=L,_0x4aa2cf,_0x5436eb){var _0x1c6297=_0x270e92;super(),this[_0x1c6297(0x90)]=_0x3087b2,this[_0x1c6297(0xe0)]=_0x4aa2cf,this[_0x1c6297(0xd0)]=_0x5436eb;const {..._0x7a3dcb}=o[_0x1c6297(0xff)]({},L,this[_0x1c6297(0x90)]);this[_0x1c6297(0xd0)][_0x1c6297(0x150)]($,_0x7a3dcb);}['onStarting'](){var _0x601419=_0x270e92;o[_0x601419(0x15f)](this[_0x601419(0xe0)],o[_0x601419(0xd3)]([[E],[exports[_0x601419(0x11a)]],[O],[exports[_0x601419(0x142)]]],this[_0x601419(0x90)][_0x601419(0x126)])),o[_0x601419(0x11c)](this[_0x601419(0xe0)],[[O]]);}['onRendered'](){var _0x1f2a13=_0x270e92;o[_0x1f2a13(0x11c)](this['_injector'],[[exports[_0x1f2a13(0x142)]]]);}},T(exports[_0x270e92(0x124)],'type',o['UniverInstanceType'][_0x270e92(0x148)]),T(exports[_0x270e92(0x124)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),w(0x2,o[_0x270e92(0xa6)])],exports['UniverLiveSharePlugin']),exports[_0x270e92(0x13e)]=A,exports[_0x270e92(0x16f)]=E,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x1547f4=_0x2486;(function(_0x50cd28,_0x3d01d7){var _0x5d137e=_0x2486,_0x500033=_0x50cd28();while(!![]){try{var _0x403c91=-parseInt(_0x5d137e(0xaf))/0x1+-parseInt(_0x5d137e(0x129))/0x2+parseInt(_0x5d137e(0x104))/0x3*(parseInt(_0x5d137e(0x93))/0x4)+-parseInt(_0x5d137e(0xa9))/0x5*(-parseInt(_0x5d137e(0x114))/0x6)+parseInt(_0x5d137e(0xe9))/0x7+parseInt(_0x5d137e(0xd1))/0x8+-parseInt(_0x5d137e(0x86))/0x9;if(_0x403c91===_0x3d01d7)break;else _0x500033['push'](_0x500033['shift']());}catch(_0x4b17a1){_0x500033['push'](_0x500033['shift']());}}}(_0xf182,0x39930));var U=Object[_0x1547f4(0x77)],F=(_0x5b1b8e,_0x3445f1,_0x240c2e)=>_0x3445f1 in _0x5b1b8e?U(_0x5b1b8e,_0x3445f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240c2e}):_0x5b1b8e[_0x3445f1]=_0x240c2e,v=(_0x7be775,_0x4f5948,_0x55b783)=>F(_0x7be775,typeof _0x4f5948!=_0x1547f4(0xd3)?_0x4f5948+'':_0x4f5948,_0x55b783);Object[_0x1547f4(0x77)](exports,Symbol[_0x1547f4(0xce)],{'value':'Module'});const m=require(_0x1547f4(0xe7)),o=require(_0x1547f4(0x161)),C=require(_0x1547f4(0x163)),D=require(_0x1547f4(0xe5)),p=require(_0x1547f4(0x144)),l=require(_0x1547f4(0x15b)),g=require(_0x1547f4(0xd6)),f=require(_0x1547f4(0x11b)),_=require('@univerjs-pro/collaboration'),x=require('rxjs'),b=require(_0x1547f4(0x9c)),$=_0x1547f4(0xb8),L={};class E extends o[_0x1547f4(0x15a)]{constructor(){var _0x17100a=_0x1547f4;super(...arguments),v(this,_0x17100a(0x145),new Set()),v(this,_0x17100a(0xa7),new Set());}[_0x1547f4(0xa6)](_0x251240){var _0xd35eee=_0x1547f4;return this['_sharedOperations'][_0xd35eee(0xf5)](_0x251240),o[_0xd35eee(0xb2)](()=>this[_0xd35eee(0x145)]['delete'](_0x251240));}[_0x1547f4(0xc4)](_0x72c97f){var _0x124eb2=_0x1547f4;return this[_0x124eb2(0xa7)][_0x124eb2(0xf5)](_0x72c97f),o[_0x124eb2(0xb2)](()=>this['_reporters'][_0x124eb2(0x13d)](_0x72c97f));}['shouldShareOperation'](_0x1d1bc8){var _0x239a14=_0x1547f4;return this['_sharedOperations'][_0x239a14(0x139)](_0x1d1bc8);}[_0x1547f4(0x138)](_0x33d17f){var _0x2b18c9=_0x1547f4;return Array[_0x2b18c9(0xd5)](this[_0x2b18c9(0xa7)])[_0x2b18c9(0xc6)](_0x2ff9a1=>_0x2ff9a1(_0x33d17f));}}function _0xf182(){var _0x3591fc=['Stop\x20following','BuiltInUIPart','useRef','Fragment','_handleTerminate','url(#$1','attrs','then','_startLiveShareCoordinator','startFollowing','event$','add','getValue','current','SAME_OPERATION_SHARE_INTERVAL','type','Plugin','mask','DesktopLiveShareController','sessionStatus$','_fetchOperations','useObservable','fill','length','unsubscribe','onCommandExecuted','116322dZdFES','values','NOT_FOLLOWING','className','IUniverInstanceService','unitId','disposeWithMe','trim','_config','_unitID','UNIVER_LIVE_SHARE_PLUGIN','stringify','following','dispose','_entities','SetWorksheetActiveOperation','6PgVcfa','getMemberID','You\x27are\x20offline.','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','univerjs-icon\x20univerjs-icon-','none','RxDisposable','react','IDLE','idle','text','offline','SessionStatus','complete','presenting','UniverIcon','UniverInstanceType','UniverLiveSharePlugin','path','set','throttleTime','195534LgSpAd','idSuffix','LiveShareSingle','UNIVER_SHEET','children','concat','LiveShareStatus','ICommandService','div','end','call','DisposableCollection','CollaborationSessionService','pipe','dispose$','getInitialStates','has','includes','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','Button','delete','_status$','CollaborationEvent','You\x27re\x20presenting\x20the\x20document','touchDependencies','_injector','_collabSession','@univerjs/ui','_sharedOperations','getOwnPropertyDescriptor','requireSession','_stopPresenting','getTypeOfUnitAdded$','You\x27re\x20following\x20the\x20presenter','_handleOnline','Injector','CommandType','presenter','forEach','toString','BehaviorSubject','LIVESHARE_TERMINATE','1em','defs','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','next','OFFLINE','useState','Disposable','react/jsx-runtime','extend','icon','tag','operations','random','@univerjs/core','_handleNewHost','@univerjs/sheets','_handleOffline','subscribe','svg','defineProperty','_status','_startFollowing','status$','Inject','NEW_CHANGESETS','asObservable','Present\x20this\x20document','registerDependencies','find','jsxs','defIds','_univerInstanceService','PRESENTING','_handleOperation','8917659mbRSAh','UniverCollaborationClientPlugin','_configService','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','tryStartPresenting','currentColor','params','assign','_uiPartsService','UNIVER_UNKNOWN','_collabSessionService','data','48FWbwnr','mutations','_liveShareService','registerComponent','createElement','parse','mergeOverrideWithDependencies','getUnitId','0\x200\x2016\x2016','rxjs/operators','connectInjector','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_commandDisposable','xlink:href','OPERATION','getCurrentTypeOfUnit$','use','onRendered','_presenter','registerSharedOperation','_reporters','Subject','1558195OVTMCc','clear','_mountLiveShare','colorChannel1','clsx','univer-w-full\x20univer-mb-3\x20univer-text-sm','54996ItpdEP','_init','getOwnPropertySymbols','toDisposable','univer-size-4','LiveShare','IConfigService','prototype','jsx','live-share.config','get','LiveShareService','hasOwnProperty','button','_startPresenting','shouldShareOperation','Dropdown','useEffect','DependentOn','ONLINE','string','registerInitialStateReporter','merge','map','forwardRef','_beIdle','replace','reverse','LiveShareCoordinator','stopFollowing','Start','toStringTag','LIVESHARE_FETCH_OPERATIONS','takeUntil','2684648eaYJic','LIVESHARE_OPERATION','symbol','getLiveShareCoordinator','from','@univerjs/design','send','not-following','evenodd','sheet','HEADER_MENU','LiveShareController','executeCommand','substring','_commandService','_stopFollowing','init','LIVESHARE_NEW_HOST','setConfig','stopPresenting','@univerjs/sheets-ui','_handleNewChangeSets','@univerjs-pro/collaboration-client','displayName','1868510nztwDY'];_0xf182=function(){return _0x3591fc;};return _0xf182();}var H=Object['getOwnPropertyDescriptor'],V=(_0x111b40,_0x5159f7,_0x5254b0,_0x5d4bf8)=>{for(var _0x10f70f=_0x5d4bf8>0x1?void 0x0:_0x5d4bf8?H(_0x5159f7,_0x5254b0):_0x5159f7,_0x5d63c0=_0x111b40['length']-0x1,_0x32f91b;_0x5d63c0>=0x0;_0x5d63c0--)(_0x32f91b=_0x111b40[_0x5d63c0])&&(_0x10f70f=_0x32f91b(_0x10f70f)||_0x10f70f);return _0x10f70f;},k=(_0x11e535,_0x24fb26)=>(_0x243590,_0x1e6671)=>_0x24fb26(_0x243590,_0x1e6671,_0x11e535);let O=class extends o[_0x1547f4(0x15a)]{constructor(_0x5da795){var _0x6e59d8=_0x1547f4;super(),this[_0x6e59d8(0x95)]=_0x5da795,this['_init']();}[_0x1547f4(0xb0)](){var _0x141dc1=_0x1547f4;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x141dc1(0x113)]['id']][_0x141dc1(0x14f)](_0x50fdac=>{var _0x3faafa=_0x141dc1;this[_0x3faafa(0x10a)](this[_0x3faafa(0x95)][_0x3faafa(0xa6)](_0x50fdac));});}};O=V([k(0x0,o[_0x1547f4(0x7b)](E))],O);var u=function(){var _0x190e90=_0x1547f4;return u=Object[_0x190e90(0x8e)]||function(_0x230912){var _0x623807=_0x190e90;for(var _0x1ac5d8,_0x6992f6=0x1,_0x249a63=arguments[_0x623807(0x101)];_0x6992f6<_0x249a63;_0x6992f6++){_0x1ac5d8=arguments[_0x6992f6];for(var _0x4d4d5c in _0x1ac5d8)Object[_0x623807(0xb6)][_0x623807(0xbb)]['call'](_0x1ac5d8,_0x4d4d5c)&&(_0x230912[_0x4d4d5c]=_0x1ac5d8[_0x4d4d5c]);}return _0x230912;},u['apply'](this,arguments);},M=function(_0x45bdaf,_0x161e6c){var _0x55c5e3=_0x1547f4,_0x2b910b={};for(var _0xe1f8d7 in _0x45bdaf)Object[_0x55c5e3(0xb6)][_0x55c5e3(0xbb)][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7)&&_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7)<0x0&&(_0x2b910b[_0xe1f8d7]=_0x45bdaf[_0xe1f8d7]);if(_0x45bdaf!=null&&typeof Object[_0x55c5e3(0xb1)]=='function'){for(var _0x2bb0b3=0x0,_0xe1f8d7=Object[_0x55c5e3(0xb1)](_0x45bdaf);_0x2bb0b3<_0xe1f8d7[_0x55c5e3(0x101)];_0x2bb0b3++)_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7[_0x2bb0b3])<0x0&&Object[_0x55c5e3(0xb6)]['propertyIsEnumerable'][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7[_0x2bb0b3])&&(_0x2b910b[_0xe1f8d7[_0x2bb0b3]]=_0x45bdaf[_0xe1f8d7[_0x2bb0b3]]);}return _0x2b910b;},j=f[_0x1547f4(0xc7)](function(_0x1ecb56,_0x12d332){var _0x1a0bca=_0x1547f4,_0x842eea=_0x1ecb56[_0x1a0bca(0x15d)],_0xcec080=_0x1ecb56['id'],_0x258241=_0x1ecb56[_0x1a0bca(0x107)],_0x4d4784=_0x1ecb56[_0x1a0bca(0x15c)],_0x25058f=M(_0x1ecb56,[_0x1a0bca(0x15d),'id','className','extend']),_0x5a59f4=_0x1a0bca(0x118)[_0x1a0bca(0x12e)](_0xcec080,'\x20')[_0x1a0bca(0x12e)](_0x258241||'')[_0x1a0bca(0x10b)](),_0x20a0cb=f[_0x1a0bca(0xec)]('_'['concat'](G()));return y(_0x842eea,''[_0x1a0bca(0x12e)](_0xcec080),{'defIds':_0x842eea[_0x1a0bca(0x82)],'idSuffix':_0x20a0cb[_0x1a0bca(0xf7)]},u({'ref':_0x12d332,'className':_0x5a59f4},_0x25058f),_0x4d4784);});function y(_0x2027d6,_0x40fdb4,_0xbbe5a7,_0x27e3fb,_0x1e7d12){var _0x2ee55c=_0x1547f4;return f['createElement'](_0x2027d6[_0x2ee55c(0x15e)],u(u({'key':_0x40fdb4},q(_0x2027d6,_0xbbe5a7,_0x1e7d12)),_0x27e3fb),(W(_0x2027d6,_0xbbe5a7)[_0x2ee55c(0x12d)]||[])[_0x2ee55c(0xc6)](function(_0x53a997,_0x351553){var _0x312c17=_0x2ee55c;return y(_0x53a997,''[_0x312c17(0x12e)](_0x40fdb4,'-')[_0x312c17(0x12e)](_0x2027d6[_0x312c17(0x15e)],'-')[_0x312c17(0x12e)](_0x351553),_0xbbe5a7,void 0x0,_0x1e7d12);}));}function _0x2486(_0x33f825,_0x4ea699){var _0xf182ed=_0xf182();return _0x2486=function(_0x2486ac,_0x1dbf7d){_0x2486ac=_0x2486ac-0x75;var _0x197bd5=_0xf182ed[_0x2486ac];return _0x197bd5;},_0x2486(_0x33f825,_0x4ea699);}function q(_0x39ef52,_0xf8684d,_0x1258b5){var _0x1d78b3=_0x1547f4,_0x41570e=u({},_0x39ef52['attrs']);_0x1258b5!=null&&_0x1258b5[_0x1d78b3(0xac)]&&_0x41570e[_0x1d78b3(0x100)]==='colorChannel1'&&(_0x41570e[_0x1d78b3(0x100)]=_0x1258b5[_0x1d78b3(0xac)]),_0x39ef52['tag']===_0x1d78b3(0xfb)&&_0x41570e['id']&&(_0x41570e['id']=_0x41570e['id']+_0xf8684d['idSuffix']),Object['entries'](_0x41570e)['forEach'](function(_0x10eb6f){var _0x17447c=_0x1d78b3,_0x12831a=_0x10eb6f[0x0],_0x5ca966=_0x10eb6f[0x1];_0x12831a===_0x17447c(0xfb)&&typeof _0x5ca966==_0x17447c(0xc3)&&(_0x41570e[_0x12831a]=_0x5ca966[_0x17447c(0xc9)](/url\(#(.*)\)/,'url(#$1'[_0x17447c(0x12e)](_0xf8684d['idSuffix'],')')));});var _0x11fc54=_0xf8684d[_0x1d78b3(0x82)];return!_0x11fc54||_0x11fc54['length']===0x0||(_0x39ef52[_0x1d78b3(0x15e)]===_0x1d78b3(0xa3)&&_0x41570e['xlink:href']&&(_0x41570e[_0x1d78b3(0xa0)]=_0x41570e[_0x1d78b3(0xa0)]+_0xf8684d[_0x1d78b3(0x12a)]),Object['entries'](_0x41570e)[_0x1d78b3(0x14f)](function(_0x5291e3){var _0x5e2b8e=_0x1d78b3,_0x23a28b=_0x5291e3[0x0],_0x4df4b5=_0x5291e3[0x1];typeof _0x4df4b5==_0x5e2b8e(0xc3)&&(_0x41570e[_0x23a28b]=_0x4df4b5[_0x5e2b8e(0xc9)](/url\(#(.*)\)/,_0x5e2b8e(0xef)['concat'](_0xf8684d[_0x5e2b8e(0x12a)],')')));})),_0x41570e;}function W(_0x103ca2,_0x210796){var _0x25128b=_0x1547f4,_0x31ad55,_0xfb9514=_0x210796[_0x25128b(0x82)];return!_0xfb9514||_0xfb9514[_0x25128b(0x101)]===0x0?_0x103ca2:_0x103ca2[_0x25128b(0x15e)]===_0x25128b(0x154)&&(!((_0x31ad55=_0x103ca2[_0x25128b(0x12d)])===null||_0x31ad55===void 0x0)&&_0x31ad55[_0x25128b(0x101)])?u(u({},_0x103ca2),{'children':_0x103ca2[_0x25128b(0x12d)][_0x25128b(0xc6)](function(_0x560a29){var _0x4a257e=_0x25128b;return typeof _0x560a29[_0x4a257e(0xf0)]['id']==_0x4a257e(0xc3)&&_0xfb9514&&_0xfb9514[_0x4a257e(0x89)](_0x560a29[_0x4a257e(0xf0)]['id'])>-0x1?u(u({},_0x560a29),{'attrs':u(u({},_0x560a29['attrs']),{'id':_0x560a29[_0x4a257e(0xf0)]['id']+_0x210796[_0x4a257e(0x12a)]})}):_0x560a29;})}):_0x103ca2;}function G(){var _0x156011=_0x1547f4;return Math[_0x156011(0x160)]()[_0x156011(0x150)](0x24)[_0x156011(0xde)](0x2,0x8);}j['displayName']=_0x1547f4(0x123);var B={'tag':_0x1547f4(0x76),'attrs':{'fill':_0x1547f4(0x119),'viewBox':_0x1547f4(0x9b),'width':_0x1547f4(0x153),'height':_0x1547f4(0x153)},'children':[{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x117)}},{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x9e),'fillRule':_0x1547f4(0xd9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x123d94,_0x1149bc){var _0x1033a5=_0x1547f4;return f[_0x1033a5(0x97)](j,Object[_0x1033a5(0x8e)]({},_0x123d94,{'id':'live-share-single','ref':_0x1149bc,'icon':B}));});P[_0x1547f4(0xe8)]=_0x1547f4(0x12b);var Y=Object[_0x1547f4(0x146)],R=(_0x4e1959,_0x34266c,_0x440532,_0x17563c)=>{var _0x4ca75e=_0x1547f4;for(var _0xa285ed=_0x17563c>0x1?void 0x0:_0x17563c?Y(_0x34266c,_0x440532):_0x34266c,_0x5c56c6=_0x4e1959[_0x4ca75e(0x101)]-0x1,_0x12369a;_0x5c56c6>=0x0;_0x5c56c6--)(_0x12369a=_0x4e1959[_0x5c56c6])&&(_0xa285ed=_0x12369a(_0xa285ed)||_0xa285ed);return _0xa285ed;},S=(_0x26dac4,_0x39fcab)=>(_0xab06d7,_0x508d28)=>_0x39fcab(_0xab06d7,_0x508d28,_0x26dac4);exports[_0x1547f4(0xdc)]=class extends o[_0x1547f4(0x11a)]{constructor(_0x5281cd,_0x4bcae5,_0x50982c){var _0x18c73f=_0x1547f4;super(),v(this,'_entities',new Map()),(this[_0x18c73f(0x83)]=_0x5281cd,this['_injector']=_0x4bcae5,this[_0x18c73f(0x91)]=_0x50982c,this[_0x18c73f(0xb0)]());}async[_0x1547f4(0xd4)](_0x618b38){var _0x342d65=_0x1547f4;return this['_entities']['has'](_0x618b38)||await this[_0x342d65(0xf2)](_0x618b38),this['_entities'][_0x342d65(0xb9)](_0x618b38);}[_0x1547f4(0xb0)](){var _0x1f8e50=_0x1547f4;this['_univerInstanceService'][_0x1f8e50(0x149)](o[_0x1f8e50(0x124)][_0x1f8e50(0x12c)])['pipe'](b['takeUntil'](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](async _0x290288=>{var _0x5a018e=_0x1f8e50;const _0x53c11a=_0x290288['getUnitId']();this['_entities'][_0x5a018e(0x139)](_0x53c11a)||this[_0x5a018e(0xf2)](_0x53c11a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1f8e50(0x124)]['UNIVER_SHEET'])[_0x1f8e50(0x136)](b[_0x1f8e50(0xd0)](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](_0xaf0fdb=>{var _0x29a3cf=_0x1f8e50;const _0x25910e=_0xaf0fdb['getUnitId'](),_0xeb8f6a=this[_0x29a3cf(0x112)]['get'](_0x25910e);_0xeb8f6a==null||_0xeb8f6a['dispose']();});}async[_0x1547f4(0xf2)](_0x2c381f){var _0x268651=_0x1547f4;const _0x1a3b23=await this[_0x268651(0x91)][_0x268651(0x147)](_0x2c381f),_0x2b1630=this[_0x268651(0x142)]['createInstance'](exports[_0x268651(0xcb)],_0x2c381f,_0x1a3b23);return _0x2b1630['init'](),this[_0x268651(0x112)][_0x268651(0x127)](_0x2c381f,_0x2b1630),_0x2b1630;}},exports['LiveShareController']=R([S(0x0,o[_0x1547f4(0x108)]),S(0x1,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),S(0x2,o[_0x1547f4(0x7b)](m[_0x1547f4(0x135)]))],exports[_0x1547f4(0xdc)]);var h=(_0x16efbf=>(_0x16efbf[_0x1547f4(0x158)]='offline',_0x16efbf[_0x1547f4(0x11c)]=_0x1547f4(0x11d),_0x16efbf[_0x1547f4(0x156)]=_0x1547f4(0x110),_0x16efbf[_0x1547f4(0x106)]='not-following',_0x16efbf[_0x1547f4(0x84)]=_0x1547f4(0x122),_0x16efbf))(h||{});const Z=_0x1547f4(0xf8),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1547f4(0x11a)]{constructor(_0x10c192,_0xc5645d,_0xfba2e8,_0x46a4be,_0x1e2ae0){var _0x925d4f=_0x1547f4;super(),v(this,_0x925d4f(0x13e),new x[(_0x925d4f(0x151))](_0x925d4f(0x11d))),v(this,_0x925d4f(0x7a),this[_0x925d4f(0x13e)][_0x925d4f(0x7d)]()),v(this,_0x925d4f(0xb0),!0x1),v(this,_0x925d4f(0x9f),null),v(this,_0x925d4f(0xa5),null),(this[_0x925d4f(0x10d)]=_0x10c192,this['_collabSession']=_0xc5645d,this['_configService']=_0xfba2e8,this[_0x925d4f(0x95)]=_0x46a4be,this['_commandService']=_0x1e2ae0);}get['_status'](){var _0x33f871=_0x1547f4;return this[_0x33f871(0x13e)][_0x33f871(0xf6)]();}[_0x1547f4(0x111)](){var _0x5c81a3=_0x1547f4,_0x444dc2;(_0x444dc2=this[_0x5c81a3(0x9f)])==null||_0x444dc2[_0x5c81a3(0x111)](),this[_0x5c81a3(0x13e)][_0x5c81a3(0x157)](_0x5c81a3(0x11d)),this['_status$'][_0x5c81a3(0x121)]();}[_0x1547f4(0xe1)](){var _0x47c0a8=_0x1547f4;this[_0x47c0a8(0xb0)]||(this[_0x47c0a8(0xb0)]=!0x0,this[_0x47c0a8(0x143)][_0x47c0a8(0xfd)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this[_0x47c0a8(0x137)]))['subscribe'](_0x1cc18c=>{var _0x3643fc=_0x47c0a8;switch(_0x1cc18c){case m[_0x3643fc(0x120)]['OFFLINE']:this[_0x3643fc(0x164)]();break;case m[_0x3643fc(0x120)][_0x3643fc(0xc2)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x47c0a8(0xf4)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this['dispose$']))[_0x47c0a8(0x75)](_0x58b101=>{var _0x8839ed=_0x47c0a8;const {eventID:_0x322a93}=_0x58b101;switch(_0x322a93){case _[_0x8839ed(0x13f)][_0x8839ed(0xe2)]:this[_0x8839ed(0x162)](_0x58b101);break;case _[_0x8839ed(0x13f)]['LIVESHARE_OPERATION']:this[_0x8839ed(0x85)](_0x58b101);break;case _[_0x8839ed(0x13f)][_0x8839ed(0x152)]:this[_0x8839ed(0xee)]();break;case _[_0x8839ed(0x13f)][_0x8839ed(0x7c)]:this[_0x8839ed(0xe6)](_0x58b101);break;}}));}[_0x1547f4(0x8b)](){var _0xf54ede=_0x1547f4;this[_0xf54ede(0x143)][_0xf54ede(0xd7)]({'eventID':_[_0xf54ede(0x13f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xf54ede(0x10d)],'userID':this[_0xf54ede(0x143)][_0xf54ede(0x115)]()}},this['_unitID']);}['stopPresenting'](){var _0x3f258f=_0x1547f4;this['_status']==='presenting'&&(this['_status$'][_0x3f258f(0x157)](_0x3f258f(0x11d)),this[_0x3f258f(0x143)]['send']({'eventID':_['CollaborationEvent'][_0x3f258f(0x152)],'data':{'unitID':this[_0x3f258f(0x10d)]}},this[_0x3f258f(0x10d)]));}[_0x1547f4(0xf3)](){var _0x59a38c=_0x1547f4;this[_0x59a38c(0x78)]===_0x59a38c(0xd8)&&(this[_0x59a38c(0x13e)]['next'](_0x59a38c(0x110)),this[_0x59a38c(0x79)]());}[_0x1547f4(0xcc)](){var _0x514c36=_0x1547f4;this[_0x514c36(0x78)]===_0x514c36(0x110)&&this[_0x514c36(0xe0)]();}[_0x1547f4(0x162)](_0x21c1ed){var _0x132222=_0x1547f4;const {presenter:_0xf55c6b}=_0x21c1ed[_0x132222(0x92)],_0x4945c8=this['_collabSession'][_0x132222(0x115)]();this['_presenter']=_0xf55c6b,_0xf55c6b===_0x4945c8?(this[_0x132222(0xe0)](),this['_startPresenting']()):this[_0x132222(0x78)]!==_0x132222(0xd8)&&(this['_stopPresenting'](),this[_0x132222(0x79)]());}[_0x1547f4(0xfe)](){var _0x4950f0=_0x1547f4;const _0x519650={'eventID':_['CollaborationEvent'][_0x4950f0(0xcf)]};this['_collabSession'][_0x4950f0(0xd7)](_0x519650,this[_0x4950f0(0x10d)]);}['_handleTerminate'](){var _0x31ea07=_0x1547f4;this['_presenter']=null,this[_0x31ea07(0x78)]!==_0x31ea07(0x122)&&this[_0x31ea07(0xc8)]();}[_0x1547f4(0xe6)](_0x29dc77){var _0x257eef=_0x1547f4;if(this[_0x257eef(0x78)]==='following'&&this[_0x257eef(0xa5)]===_0x29dc77[_0x257eef(0x92)]['memberID']){const _0x17d849=_['parseProtocolChangeset'](_0x29dc77[_0x257eef(0x92)])[_0x257eef(0x94)][_0x257eef(0xca)]()[_0x257eef(0x80)](_0xd181fd=>_0xd181fd['id']===C['InsertSheetMutation']['id']);if(_0x17d849){const _0x5220da=_0x17d849[_0x257eef(0x8d)][_0x257eef(0x109)],_0x20a2c5=_0x17d849['params'][_0x257eef(0xda)]['id'];setTimeout(()=>{var _0x576f74=_0x257eef;this[_0x576f74(0xdf)][_0x576f74(0xdd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5220da,'subUnitId':_0x20a2c5},{'fromCollab':!0x0});});}}}[_0x1547f4(0xbd)](){var _0x2adcd5=_0x1547f4;this[_0x2adcd5(0x13e)][_0x2adcd5(0x157)](_0x2adcd5(0x122));const _0x440ad6=new Map(),_0x13a527=this['_commandDisposable']=new o[(_0x2adcd5(0x134))]();_0x13a527['add'](o[_0x2adcd5(0xb2)](()=>{var _0x17d99c=_0x2adcd5;_0x440ad6[_0x17d99c(0x14f)](_0x42a6b7=>_0x42a6b7[_0x17d99c(0x121)]()),_0x440ad6[_0x17d99c(0xaa)]();})),_0x13a527[_0x2adcd5(0xf5)](this[_0x2adcd5(0xdf)][_0x2adcd5(0x103)](_0x39e492=>{var _0x24e54f=_0x2adcd5,_0x4f5830;if(_0x39e492[_0x24e54f(0xf9)]!==o[_0x24e54f(0x14d)][_0x24e54f(0xa1)]||!this['_liveShareService'][_0x24e54f(0xbe)](_0x39e492['id']))return;const {id:_0x222fcf}=_0x39e492;let _0xa01d6e;_0x440ad6[_0x24e54f(0x139)](_0x222fcf)?_0xa01d6e=_0x440ad6[_0x24e54f(0xb9)](_0x222fcf):(_0xa01d6e=new x[(_0x24e54f(0xa8))](),_0x440ad6[_0x24e54f(0x127)](_0x222fcf,_0xa01d6e),_0xa01d6e[_0x24e54f(0x136)](b[_0x24e54f(0x128)]((_0x4f5830=this[_0x24e54f(0x88)]['getConfig'](Z))!=null?_0x4f5830:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24e54f(0x75)](_0x269f28=>{var _0x37b525=_0x24e54f;this['_collabSession'][_0x37b525(0xd7)]({'eventID':_['CollaborationEvent'][_0x37b525(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x269f28['id']]:{'id':_0x269f28['id'],'params':JSON['stringify'](_0x269f28[_0x37b525(0x8d)])}}}},this[_0x37b525(0x10d)]);})),_0xa01d6e[_0x24e54f(0x157)](_0x39e492);})),this[_0x2adcd5(0x95)][_0x2adcd5(0x138)](this[_0x2adcd5(0x10d)])[_0x2adcd5(0x14f)](_0x3ca9d7=>this['_collabSession'][_0x2adcd5(0xd7)]({'eventID':_[_0x2adcd5(0x13f)][_0x2adcd5(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x3ca9d7['id']]:{'id':_0x3ca9d7['id'],'params':JSON[_0x2adcd5(0x10f)](_0x3ca9d7['params'])}}}},this[_0x2adcd5(0x10d)]));}[_0x1547f4(0x148)](){var _0x23b0a8=_0x1547f4,_0x45e92c;this['_status$'][_0x23b0a8(0x157)](_0x23b0a8(0x11d)),(_0x45e92c=this[_0x23b0a8(0x9f)])==null||_0x45e92c[_0x23b0a8(0x111)](),this[_0x23b0a8(0x9f)]=null;}['_startFollowing'](){var _0x5c9f69=_0x1547f4,_0x514889;(_0x514889=this[_0x5c9f69(0x9f)])==null||_0x514889[_0x5c9f69(0x111)](),this[_0x5c9f69(0x13e)][_0x5c9f69(0x157)](_0x5c9f69(0x110));}[_0x1547f4(0xc8)](){var _0x400660=_0x1547f4,_0x559aff;this[_0x400660(0x13e)][_0x400660(0x157)](_0x400660(0x11d)),(_0x559aff=this[_0x400660(0x9f)])==null||_0x559aff[_0x400660(0x111)](),this[_0x400660(0x9f)]=null;}[_0x1547f4(0xe0)](){var _0x44b435=_0x1547f4,_0x2d1c45;this[_0x44b435(0x13e)]['next'](_0x44b435(0xd8)),(_0x2d1c45=this[_0x44b435(0x9f)])==null||_0x2d1c45[_0x44b435(0x111)]();}[_0x1547f4(0x85)](_0x262659){var _0xf1c6a9=_0x1547f4;if([_0xf1c6a9(0x122),_0xf1c6a9(0xd8),_0xf1c6a9(0x11f)][_0xf1c6a9(0x13a)](this[_0xf1c6a9(0x78)])||!_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]||_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]===this['_collabSession'][_0xf1c6a9(0x115)]())return;this['_status']===_0xf1c6a9(0x11d)&&this[_0xf1c6a9(0x79)]();const _0x22ba4c=_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x15f)];Object[_0xf1c6a9(0x105)](_0x22ba4c)[_0xf1c6a9(0x14f)](_0x3b4e9c=>{var _0x3f0975=_0xf1c6a9;this[_0x3f0975(0xdf)][_0x3f0975(0xdd)](_0x3b4e9c['id'],_0x3b4e9c[_0x3f0975(0x8d)]?JSON[_0x3f0975(0x98)](_0x3b4e9c[_0x3f0975(0x8d)]):null,{'fromCollab':!0x0});});}[_0x1547f4(0x164)](){var _0x20272c=_0x1547f4,_0x2eece4;this[_0x20272c(0x13e)][_0x20272c(0x157)](_0x20272c(0x11f)),(_0x2eece4=this[_0x20272c(0x9f)])==null||_0x2eece4['dispose']();}[_0x1547f4(0x14b)](){var _0x57f0b0=_0x1547f4;this[_0x57f0b0(0x13e)][_0x57f0b0(0x157)]('idle'),this[_0x57f0b0(0xfe)]();}},exports[_0x1547f4(0xcb)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x1547f4(0x130)])],exports[_0x1547f4(0xcb)]);function A(){var _0x172766=_0x1547f4;const _0x3d4285=p['useDependency'](exports[_0x172766(0xdc)]),_0x429595=p['useDependency'](o['IUniverInstanceService']),_0x2cdc79=p[_0x172766(0xff)](()=>_0x429595[_0x172766(0xa2)](o[_0x172766(0x124)][_0x172766(0x12c)]),void 0x0,!0x1,[]),[_0x481c7e,_0x36c122]=f[_0x172766(0x159)](null),[_0x206a8c,_0x2233ca]=f[_0x172766(0x159)](h[_0x172766(0x11c)]),_0x2d96c4=f[_0x172766(0xec)](null);return f[_0x172766(0xc0)](()=>(_0x2cdc79&&_0x3d4285[_0x172766(0xd4)](_0x2cdc79[_0x172766(0x9a)]())[_0x172766(0xf1)](_0x23d922=>{var _0x351419=_0x172766;_0x36c122(_0x23d922),_0x2d96c4[_0x351419(0xf7)]=_0x23d922[_0x351419(0x7a)][_0x351419(0x75)](_0x5743fe=>{_0x2233ca(_0x5743fe);});}),()=>{var _0x2adf32=_0x172766,_0x5076f0;(_0x5076f0=_0x2d96c4['current'])==null||_0x5076f0[_0x2adf32(0x102)](),_0x2d96c4[_0x2adf32(0xf7)]=null;}),[_0x2cdc79,_0x3d4285]),_0x481c7e?l[_0x172766(0xb7)](g[_0x172766(0xbf)],{'align':_0x172766(0x132),'disabled':_0x206a8c===h[_0x172766(0x158)],'className':_0x172766(0x13b),'overlay':l[_0x172766(0xb7)](K,{'status':_0x206a8c,'coordinator':_0x481c7e}),'children':l[_0x172766(0xb7)](_0x172766(0xbc),{'className':g[_0x172766(0xad)](_0x172766(0x155),{'univer-cursor-not-allowed':_0x206a8c===h[_0x172766(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x206a8c!==h['OFFLINE']}),'type':_0x172766(0xbc),'children':l['jsx'](P,{'className':_0x172766(0xb3)})})}):null;}function K(_0x51dd2a){var _0x4d697e=_0x1547f4;const {status:_0x3238bd,coordinator:_0x40e760}=_0x51dd2a;switch(_0x3238bd){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x40e760});case h[_0x4d697e(0x156)]:return l[_0x4d697e(0xb7)](Q,{'coordinator':_0x40e760});case h[_0x4d697e(0x106)]:return l['jsx'](X,{'coordinator':_0x40e760});case h['OFFLINE']:return l['jsx'](te,{});case h[_0x4d697e(0x84)]:return l[_0x4d697e(0xb7)](ee,{'coordinator':_0x40e760});default:return null;}}function z(_0xe57ab0){var _0x3ab516=_0x1547f4;const {coordinator:_0xf4ff35}=_0xe57ab0;return l[_0x3ab516(0x81)](l[_0x3ab516(0xed)],{'children':[l['jsx']('div',{'className':_0x3ab516(0xae),'children':_0x3ab516(0x7e)}),l['jsx'](g[_0x3ab516(0x13c)],{'onClick':()=>_0xf4ff35['tryStartPresenting'](),'children':_0x3ab516(0xcd)})]});}function Q(_0x47a0a2){var _0x2a4b5d=_0x1547f4;const {coordinator:_0x1f7701}=_0x47a0a2;return l[_0x2a4b5d(0x81)](l[_0x2a4b5d(0xed)],{'children':[l[_0x2a4b5d(0xb7)](_0x2a4b5d(0x131),{'className':_0x2a4b5d(0xae),'children':_0x2a4b5d(0x14a)}),l['jsx'](g[_0x2a4b5d(0x13c)],{'onClick':()=>_0x1f7701[_0x2a4b5d(0xcc)](),'children':_0x2a4b5d(0xea)})]});}function X(_0x400662){var _0x46b37d=_0x1547f4;const {coordinator:_0x114fb3}=_0x400662;return l['jsxs'](l['Fragment'],{'children':[l[_0x46b37d(0xb7)](_0x46b37d(0x131),{'className':_0x46b37d(0xae),'children':_0x46b37d(0x8a)}),l['jsx'](g[_0x46b37d(0x13c)],{'variant':_0x46b37d(0x11e),'onClick':()=>_0x114fb3['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x2cecde){var _0x260439=_0x1547f4;const {coordinator:_0x13f2e0}=_0x2cecde;return l['jsxs'](l[_0x260439(0xed)],{'children':[l[_0x260439(0xb7)](_0x260439(0x131),{'className':_0x260439(0xae),'children':_0x260439(0x140)}),l[_0x260439(0xb7)](g[_0x260439(0x13c)],{'variant':'default','onClick':()=>_0x13f2e0[_0x260439(0xe4)](),'children':'Stop\x20presenting'})]});}function te(){var _0x281b51=_0x1547f4;return l[_0x281b51(0xb7)](l[_0x281b51(0xed)],{'children':_0x281b51(0x116)});}var ie=Object[_0x1547f4(0x146)],ne=(_0x233f9c,_0x1dcccc,_0x22870a,_0x33c64b)=>{var _0xfeebf9=_0x1547f4;for(var _0x156512=_0x33c64b>0x1?void 0x0:_0x33c64b?ie(_0x1dcccc,_0x22870a):_0x1dcccc,_0xca84cc=_0x233f9c[_0xfeebf9(0x101)]-0x1,_0x44436a;_0xca84cc>=0x0;_0xca84cc--)(_0x44436a=_0x233f9c[_0xca84cc])&&(_0x156512=_0x44436a(_0x156512)||_0x156512);return _0x156512;},N=(_0x372a4d,_0x1fdde2)=>(_0x10a9d3,_0x337f34)=>_0x1fdde2(_0x10a9d3,_0x337f34,_0x372a4d);exports[_0x1547f4(0xfc)]=class extends o[_0x1547f4(0x15a)]{constructor(_0x232ea0,_0x5e5fd2){var _0xd48302=_0x1547f4;super(),this[_0xd48302(0x142)]=_0x232ea0,this[_0xd48302(0x8f)]=_0x5e5fd2,this['_mountLiveShare']();}[_0x1547f4(0xab)](){var _0x3e5521=_0x1547f4;this[_0x3e5521(0x10a)](this[_0x3e5521(0x8f)][_0x3e5521(0x96)](p[_0x3e5521(0xeb)][_0x3e5521(0xdb)],()=>p[_0x3e5521(0x9d)](A,this['_injector'])));}},exports[_0x1547f4(0xfc)]=ne([N(0x0,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),N(0x1,p['IUIPartsService'])],exports[_0x1547f4(0xfc)]);var re=Object[_0x1547f4(0x77)],se=Object['getOwnPropertyDescriptor'],oe=(_0x31a135,_0x4e7b1c,_0x8a3d91)=>_0x4e7b1c in _0x31a135?re(_0x31a135,_0x4e7b1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8a3d91}):_0x31a135[_0x4e7b1c]=_0x8a3d91,ae=(_0x1e5e9e,_0x5244f5,_0x3d78da,_0x4bad33)=>{var _0x344f1e=_0x1547f4;for(var _0x16f62f=_0x4bad33>0x1?void 0x0:_0x4bad33?se(_0x5244f5,_0x3d78da):_0x5244f5,_0x3ae66e=_0x1e5e9e[_0x344f1e(0x101)]-0x1,_0x3e290f;_0x3ae66e>=0x0;_0x3ae66e--)(_0x3e290f=_0x1e5e9e[_0x3ae66e])&&(_0x16f62f=_0x3e290f(_0x16f62f)||_0x16f62f);return _0x16f62f;},w=(_0x583928,_0x4b1b46)=>(_0x100a20,_0x2d5ba9)=>_0x4b1b46(_0x100a20,_0x2d5ba9,_0x583928),T=(_0x2cfe82,_0x4b5100,_0x55bbf6)=>oe(_0x2cfe82,typeof _0x4b5100!=_0x1547f4(0xd3)?_0x4b5100+'':_0x4b5100,_0x55bbf6);const le=_0x1547f4(0x10e);exports[_0x1547f4(0x125)]=class extends o[_0x1547f4(0xfa)]{constructor(_0x287a36=L,_0x2f6ce7,_0x17bfe6){var _0x3e7cd4=_0x1547f4;super(),this[_0x3e7cd4(0x10c)]=_0x287a36,this['_injector']=_0x2f6ce7,this[_0x3e7cd4(0x88)]=_0x17bfe6;const {..._0x1d4fe2}=o[_0x3e7cd4(0xc5)]({},L,this[_0x3e7cd4(0x10c)]);this[_0x3e7cd4(0x88)][_0x3e7cd4(0xe3)]($,_0x1d4fe2);}['onStarting'](){var _0x4695aa=_0x1547f4;o[_0x4695aa(0x7f)](this['_injector'],o[_0x4695aa(0x99)]([[E],[exports[_0x4695aa(0xdc)]],[O],[exports[_0x4695aa(0xfc)]]],this['_config']['override'])),o[_0x4695aa(0x141)](this[_0x4695aa(0x142)],[[O]]);}[_0x1547f4(0xa4)](){var _0x1269a0=_0x1547f4;o[_0x1269a0(0x141)](this[_0x1269a0(0x142)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1547f4(0x125)],_0x1547f4(0xf9),o[_0x1547f4(0x124)][_0x1547f4(0x90)]),T(exports[_0x1547f4(0x125)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1547f4(0xc1)](m[_0x1547f4(0x87)]),w(0x1,o['Inject'](o[_0x1547f4(0x14c)])),w(0x2,o[_0x1547f4(0xb5)])],exports['UniverLiveSharePlugin']),exports[_0x1547f4(0xb4)]=A,exports[_0x1547f4(0xba)]=E,exports[_0x1547f4(0x12f)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29f20e=_0x3e7e;(function(_0xbbc8bb,_0x4addb4){var _0x4ffd02=_0x3e7e,_0x45aa8d=_0xbbc8bb();while(!![]){try{var _0x45e212=-parseInt(_0x4ffd02(0x12b))/0x1+-parseInt(_0x4ffd02(0xa6))/0x2*(-parseInt(_0x4ffd02(0xc3))/0x3)+-parseInt(_0x4ffd02(0xf8))/0x4+-parseInt(_0x4ffd02(0x148))/0x5*(-parseInt(_0x4ffd02(0xa3))/0x6)+parseInt(_0x4ffd02(0xdf))/0x7+parseInt(_0x4ffd02(0x100))/0x8+-parseInt(_0x4ffd02(0x12f))/0x9*(parseInt(_0x4ffd02(0xa2))/0xa);if(_0x45e212===_0x4addb4)break;else _0x45aa8d['push'](_0x45aa8d['shift']());}catch(_0x458de7){_0x45aa8d['push'](_0x45aa8d['shift']());}}}(_0x32e9,0xf0d76));var q=Object[_0x29f20e(0xaf)],z=(_0x1bbf9d,_0x583fcf,_0x144850)=>_0x583fcf in _0x1bbf9d?q(_0x1bbf9d,_0x583fcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x144850}):_0x1bbf9d[_0x583fcf]=_0x144850,d=(_0x281175,_0x4845b4,_0x4cfcb1)=>z(_0x281175,typeof _0x4845b4!=_0x29f20e(0xe5)?_0x4845b4+'':_0x4845b4,_0x4cfcb1);import{CollaborationSessionService as _0x22c5ad,SessionStatus as _0x1486b6,UniverCollaborationClientPlugin as _0x2b8f23}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3375e6,toDisposable as _0x5e39ab,Inject as _0x2b27e5,IUniverInstanceService as _0x2a2850,Injector as _0x88f3f5,IConfigService as _0x35e166,ICommandService as _0x2043b7,RxDisposable as _0x416d0b,UniverInstanceType as _0x70eb56,DisposableCollection as _0x259978,CommandType as _0xfdb75e,DependentOn as _0x35339f,Plugin as _0xba14a,merge as _0x2f1e0d,registerDependencies as _0x4fada3,mergeOverrideWithDependencies as _0x32112a,touchDependencies as _0x132bf9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x348477,InsertSheetMutation as _0x18faeb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4b7127,SetScrollOperation as _0x24fc28}from'@univerjs/sheets-ui';function _0x32e9(){var _0x3d1af5=['shouldShareOperation','map','default','_commandDisposable','replace','_handleTerminate','presenting','defineProperty','onStarting','_status','className','LIVESHARE_NEW_HOST','complete','set','_configService','fill','evenodd','displayName','NEW_CHANGESETS','concat','event$','OFFLINE','toString','svg','_entities','data','override','3bOHIpy','_startFollowing','ONLINE','propertyIsEnumerable','UNIVER_SHEET','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleNewChangeSets','startFollowing','trim','LIVESHARE_OPERATION','getUnitId','text','string','find','_startPresenting','reverse','indexOf','_stopPresenting','memberID','UniverIcon','unitId','add','registerComponent','getTypeOfUnitDisposed$','_stopFollowing','_univerInstanceService','end','stopPresenting','6203043HuGZIu','tag','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','current','pluginName','symbol','sessionStatus$','send','LIVESHARE_REQUEST_HOST','dispose$','You\x27re\x20following\x20the\x20presenter','pipe','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27are\x20offline.','onRendered','icon','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','_presenter','params','get','530136upujkN','_uiPartsService','xlink:href','div','NOT_FOLLOWING','disposeWithMe','colorChannel1','Start\x20following','9535368dsbhoe','LiveShareSingle','button','idle','_handleNewHost','assign','getMemberID','call','_status$','offline','subscribe','type','includes','_handleOffline','getOwnPropertyDescriptor','prototype','_collabSessionService','forEach','setConfig','hasOwnProperty','_reporters','onCommandExecuted','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','OPERATION','entries','attrs','extend','PRESENTING','IDLE','init','_sharedOperations','substring','then','live-share-single','presenter','_init','_collabSession','You\x27re\x20presenting\x20the\x20document','delete','stringify','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1538026xNQGSm','LIVESHARE_FETCH_OPERATIONS','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','9OOKwud','LIVESHARE_TERMINATE','_handleOperation','tryStartPresenting','_injector','_mountLiveShare','univer-size-4','asObservable','getValue','next','1em','status$','random','FOLLOWING','_beIdle','registerSharedOperation','_startLiveShareCoordinator','not-following','_commandService','path','mask','defIds','_unitID','length','Start','1471770OrtZux','currentColor','idSuffix','getInitialStates','requireSession','17058030yHTUtV','18BiAmVi','_config','stopFollowing','2803434owVJao','dispose'];_0x32e9=function(){return _0x3d1af5;};return _0x32e9();}import{useDependency as _0x493516,useObservable as _0x21980c,IUIPartsService as _0x1735f8,BuiltInUIPart as _0x29a15b,connectInjector as _0x52be52}from'@univerjs/ui';import{jsx as _0x4aa79a,jsxs as _0x1dee4f,Fragment as _0x2ff6ca}from'react/jsx-runtime';import{Dropdown as _0x552500,clsx as _0x4f9fb3,Button as _0x55d525}from'@univerjs/design';import{forwardRef as _0x2d11e8,useRef as _0x411e20,createElement as _0x5c2114,useState as _0x5cc44c,useEffect as _0x3c174d}from'react';import{CollaborationEvent as _0x5b1231,parseProtocolChangeset as _0x300461}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x54c3b0,Subject as _0xae6176}from'rxjs';import{takeUntil as _0xb3ad8b,throttleTime as _0x1882fd}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3375e6{constructor(){var _0x34a04f=_0x29f20e;super(...arguments),d(this,_0x34a04f(0x11f),new Set()),d(this,_0x34a04f(0x114),new Set());}[_0x29f20e(0x13e)](_0x4a98de){var _0x59af30=_0x29f20e;return this[_0x59af30(0x11f)][_0x59af30(0xd8)](_0x4a98de),_0x5e39ab(()=>this['_sharedOperations'][_0x59af30(0x127)](_0x4a98de));}['registerInitialStateReporter'](_0x19c770){var _0x181ccf=_0x29f20e;return this[_0x181ccf(0x114)][_0x181ccf(0xd8)](_0x19c770),_0x5e39ab(()=>this[_0x181ccf(0x114)][_0x181ccf(0x127)](_0x19c770));}[_0x29f20e(0xa8)](_0x4c4510){var _0x27ed0f=_0x29f20e;return this[_0x27ed0f(0x11f)]['has'](_0x4c4510);}[_0x29f20e(0xa0)](_0x8e4a27){var _0x2836c0=_0x29f20e;return Array['from'](this['_reporters'])[_0x2836c0(0xa9)](_0x1d3e28=>_0x1d3e28(_0x8e4a27));}}var Ee=Object[_0x29f20e(0x10e)],Ce=(_0x181595,_0x42d046,_0x1aaaae,_0x242b48)=>{var _0x184949=_0x29f20e;for(var _0x54b189=_0x242b48>0x1?void 0x0:_0x242b48?Ee(_0x42d046,_0x1aaaae):_0x42d046,_0xb435a3=_0x181595[_0x184949(0x146)]-0x1,_0x4c44ef;_0xb435a3>=0x0;_0xb435a3--)(_0x4c44ef=_0x181595[_0xb435a3])&&(_0x54b189=_0x4c44ef(_0x54b189)||_0x54b189);return _0x54b189;},Ne=(_0xcaf197,_0x1b61ef)=>(_0x21d294,_0x50301d)=>_0x1b61ef(_0x21d294,_0x50301d,_0xcaf197);let m=class extends _0x3375e6{constructor(_0xa26c92){var _0x1a9422=_0x29f20e;super(),this[_0x1a9422(0x116)]=_0xa26c92,this[_0x1a9422(0x124)]();}['_init'](){var _0x1ba6b0=_0x29f20e;[_0x4b7127['id'],_0x24fc28['id'],_0x348477['id']][_0x1ba6b0(0x111)](_0x47d700=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x47d700));});}};m=Ce([Ne(0x0,_0x2b27e5(L))],m);function _0x3e7e(_0x571ba1,_0x5e7e23){var _0x32e927=_0x32e9();return _0x3e7e=function(_0x3e7ea3,_0x54abd5){_0x3e7ea3=_0x3e7ea3-0xa0;var _0x3c2208=_0x32e927[_0x3e7ea3];return _0x3c2208;},_0x3e7e(_0x571ba1,_0x5e7e23);}var c=function(){var _0xb7e04f=_0x29f20e;return c=Object[_0xb7e04f(0x105)]||function(_0x49385a){var _0x53d489=_0xb7e04f;for(var _0x143c46,_0x2a82a5=0x1,_0x33b4fd=arguments[_0x53d489(0x146)];_0x2a82a5<_0x33b4fd;_0x2a82a5++){_0x143c46=arguments[_0x2a82a5];for(var _0x2269da in _0x143c46)Object[_0x53d489(0x10f)][_0x53d489(0x113)]['call'](_0x143c46,_0x2269da)&&(_0x49385a[_0x2269da]=_0x143c46[_0x2269da]);}return _0x49385a;},c['apply'](this,arguments);},we=function(_0x3821d1,_0x153e3b){var _0x5221cf=_0x29f20e,_0x3e9841={};for(var _0x953335 in _0x3821d1)Object[_0x5221cf(0x10f)]['hasOwnProperty'][_0x5221cf(0x107)](_0x3821d1,_0x953335)&&_0x153e3b['indexOf'](_0x953335)<0x0&&(_0x3e9841[_0x953335]=_0x3821d1[_0x953335]);if(_0x3821d1!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xe1ec79=0x0,_0x953335=Object['getOwnPropertySymbols'](_0x3821d1);_0xe1ec79<_0x953335[_0x5221cf(0x146)];_0xe1ec79++)_0x153e3b[_0x5221cf(0xd3)](_0x953335[_0xe1ec79])<0x0&&Object[_0x5221cf(0x10f)][_0x5221cf(0xc6)][_0x5221cf(0x107)](_0x3821d1,_0x953335[_0xe1ec79])&&(_0x3e9841[_0x953335[_0xe1ec79]]=_0x3821d1[_0x953335[_0xe1ec79]]);}return _0x3e9841;},W=_0x2d11e8(function(_0x11946a,_0x3dbd75){var _0x5300ea=_0x29f20e,_0x122971=_0x11946a[_0x5300ea(0xf1)],_0xebcf01=_0x11946a['id'],_0x2293bb=_0x11946a['className'],_0x4fcb82=_0x11946a[_0x5300ea(0x11b)],_0x563fed=we(_0x11946a,[_0x5300ea(0xf1),'id',_0x5300ea(0xb2),_0x5300ea(0x11b)]),_0x33922c='univerjs-icon\x20univerjs-icon-'[_0x5300ea(0xbb)](_0xebcf01,'\x20')[_0x5300ea(0xbb)](_0x2293bb||'')[_0x5300ea(0xcb)](),_0xe73f3d=_0x411e20('_'[_0x5300ea(0xbb)](Le()));return Y(_0x122971,''[_0x5300ea(0xbb)](_0xebcf01),{'defIds':_0x122971[_0x5300ea(0x144)],'idSuffix':_0xe73f3d[_0x5300ea(0xe3)]},c({'ref':_0x3dbd75,'className':_0x33922c},_0x563fed),_0x4fcb82);});function Y(_0x428209,_0x5d95b4,_0x3b8755,_0x2d78b3,_0x5c7d14){var _0x55c7f8=_0x29f20e;return _0x5c2114(_0x428209[_0x55c7f8(0xe0)],c(c({'key':_0x5d95b4},De(_0x428209,_0x3b8755,_0x5c7d14)),_0x2d78b3),(xe(_0x428209,_0x3b8755)['children']||[])[_0x55c7f8(0xa9)](function(_0x44d0ac,_0x41d37d){var _0x33197a=_0x55c7f8;return Y(_0x44d0ac,''[_0x33197a(0xbb)](_0x5d95b4,'-')[_0x33197a(0xbb)](_0x428209[_0x33197a(0xe0)],'-')['concat'](_0x41d37d),_0x3b8755,void 0x0,_0x5c7d14);}));}function De(_0xe81a6e,_0x231813,_0xa37675){var _0x1121ea=_0x29f20e,_0x111e80=c({},_0xe81a6e['attrs']);_0xa37675!=null&&_0xa37675[_0x1121ea(0xfe)]&&_0x111e80[_0x1121ea(0xb7)]===_0x1121ea(0xfe)&&(_0x111e80[_0x1121ea(0xb7)]=_0xa37675[_0x1121ea(0xfe)]),_0xe81a6e[_0x1121ea(0xe0)]==='mask'&&_0x111e80['id']&&(_0x111e80['id']=_0x111e80['id']+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x3c88c1){var _0x26092a=_0x1121ea,_0x53c830=_0x3c88c1[0x0],_0x51b003=_0x3c88c1[0x1];_0x53c830===_0x26092a(0x143)&&typeof _0x51b003==_0x26092a(0xcf)&&(_0x111e80[_0x53c830]=_0x51b003['replace'](/url\(#(.*)\)/,'url(#$1'[_0x26092a(0xbb)](_0x231813['idSuffix'],')')));});var _0xc48e3f=_0x231813[_0x1121ea(0x144)];return!_0xc48e3f||_0xc48e3f[_0x1121ea(0x146)]===0x0||(_0xe81a6e['tag']==='use'&&_0x111e80[_0x1121ea(0xfa)]&&(_0x111e80[_0x1121ea(0xfa)]=_0x111e80[_0x1121ea(0xfa)]+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x5b1d03){var _0x592b97=_0x1121ea,_0xf432c1=_0x5b1d03[0x0],_0x20c791=_0x5b1d03[0x1];typeof _0x20c791==_0x592b97(0xcf)&&(_0x111e80[_0xf432c1]=_0x20c791[_0x592b97(0xac)](/url\(#(.*)\)/,'url(#$1'[_0x592b97(0xbb)](_0x231813[_0x592b97(0x14a)],')')));})),_0x111e80;}function xe(_0x4f0bde,_0x125a48){var _0x42a3bf=_0x29f20e,_0x292803,_0x544a0e=_0x125a48[_0x42a3bf(0x144)];return!_0x544a0e||_0x544a0e[_0x42a3bf(0x146)]===0x0?_0x4f0bde:_0x4f0bde[_0x42a3bf(0xe0)]==='defs'&&(!((_0x292803=_0x4f0bde['children'])===null||_0x292803===void 0x0)&&_0x292803[_0x42a3bf(0x146)])?c(c({},_0x4f0bde),{'children':_0x4f0bde['children']['map'](function(_0x331f7c){var _0x71f051=_0x42a3bf;return typeof _0x331f7c['attrs']['id']==_0x71f051(0xcf)&&_0x544a0e&&_0x544a0e[_0x71f051(0xd3)](_0x331f7c[_0x71f051(0x11a)]['id'])>-0x1?c(c({},_0x331f7c),{'attrs':c(c({},_0x331f7c[_0x71f051(0x11a)]),{'id':_0x331f7c[_0x71f051(0x11a)]['id']+_0x125a48[_0x71f051(0x14a)]})}):_0x331f7c;})}):_0x4f0bde;}function Le(){var _0x5c1770=_0x29f20e;return Math[_0x5c1770(0x13b)]()[_0x5c1770(0xbe)](0x24)[_0x5c1770(0x120)](0x2,0x8);}W[_0x29f20e(0xb9)]=_0x29f20e(0xd6);var ye={'tag':_0x29f20e(0xbf),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x29f20e(0x139),'height':_0x29f20e(0x139)},'children':[{'tag':'path','attrs':{'fill':_0x29f20e(0x149),'d':_0x29f20e(0x12e)}},{'tag':_0x29f20e(0x142),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x29f20e(0xb8),'clipRule':_0x29f20e(0xb8)}}]},B=_0x2d11e8(function(_0x1911a7,_0x59eb7b){var _0x9484a6=_0x29f20e;return _0x5c2114(W,Object[_0x9484a6(0x105)]({},_0x1911a7,{'id':_0x9484a6(0x122),'ref':_0x59eb7b,'icon':ye}));});B[_0x29f20e(0xb9)]=_0x29f20e(0x101);var Re=Object[_0x29f20e(0x10e)],Z=(_0x4ae1c7,_0x2f4b64,_0x2ad537,_0x4d8e39)=>{var _0x1e03d9=_0x29f20e;for(var _0x252275=_0x4d8e39>0x1?void 0x0:_0x4d8e39?Re(_0x2f4b64,_0x2ad537):_0x2f4b64,_0x398f80=_0x4ae1c7[_0x1e03d9(0x146)]-0x1,_0x5deb64;_0x398f80>=0x0;_0x398f80--)(_0x5deb64=_0x4ae1c7[_0x398f80])&&(_0x252275=_0x5deb64(_0x252275)||_0x252275);return _0x252275;},f=(_0x48b477,_0x2f2180)=>(_0x5b6b75,_0xf709e4)=>_0x2f2180(_0x5b6b75,_0xf709e4,_0x48b477);let I=class extends _0x416d0b{constructor(_0x22083a,_0x2d457e,_0x823d75){var _0x6d52c1=_0x29f20e;super(),d(this,_0x6d52c1(0xc0),new Map()),(this[_0x6d52c1(0xdc)]=_0x22083a,this[_0x6d52c1(0x133)]=_0x2d457e,this[_0x6d52c1(0x110)]=_0x823d75,this[_0x6d52c1(0x124)]());}async['getLiveShareCoordinator'](_0x54d5f4){var _0x56fbdb=_0x29f20e;return this[_0x56fbdb(0xc0)][_0x56fbdb(0x12d)](_0x54d5f4)||await this[_0x56fbdb(0x13f)](_0x54d5f4),this[_0x56fbdb(0xc0)][_0x56fbdb(0xf7)](_0x54d5f4);}[_0x29f20e(0x124)](){var _0x4f77b9=_0x29f20e;this[_0x4f77b9(0xdc)][_0x4f77b9(0xe1)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))['subscribe'](async _0x4ff23b=>{var _0x1f0103=_0x4f77b9;const _0x50b10b=_0x4ff23b[_0x1f0103(0xcd)]();this[_0x1f0103(0xc0)]['has'](_0x50b10b)||this[_0x1f0103(0x13f)](_0x50b10b);}),this[_0x4f77b9(0xdc)][_0x4f77b9(0xda)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4f77b9(0x10a)](_0x5ec8d1=>{var _0x4c87dc=_0x4f77b9;const _0x351821=_0x5ec8d1[_0x4c87dc(0xcd)](),_0xc28426=this[_0x4c87dc(0xc0)][_0x4c87dc(0xf7)](_0x351821);_0xc28426==null||_0xc28426['dispose']();});}async['_startLiveShareCoordinator'](_0x4cb88c){var _0x5c9f04=_0x29f20e;const _0x3de859=await this[_0x5c9f04(0x110)][_0x5c9f04(0xa1)](_0x4cb88c),_0x43f93b=this[_0x5c9f04(0x133)][_0x5c9f04(0xf2)](w,_0x4cb88c,_0x3de859);return _0x43f93b[_0x5c9f04(0x11e)](),this['_entities']['set'](_0x4cb88c,_0x43f93b),_0x43f93b;}};I=Z([f(0x0,_0x2a2850),f(0x1,_0x2b27e5(_0x88f3f5)),f(0x2,_0x2b27e5(_0x22c5ad))],I);var h=(_0x4a7842=>(_0x4a7842[_0x29f20e(0xbd)]=_0x29f20e(0x109),_0x4a7842[_0x29f20e(0x11d)]=_0x29f20e(0x103),_0x4a7842[_0x29f20e(0x13c)]=_0x29f20e(0x12a),_0x4a7842[_0x29f20e(0xfc)]=_0x29f20e(0x140),_0x4a7842['PRESENTING']=_0x29f20e(0xae),_0x4a7842))(h||{});const Pe=_0x29f20e(0xe2),Ae=0xc8;let w=class extends _0x416d0b{constructor(_0x1d9ec9,_0x58f57e,_0x13d5a2,_0x1c945a,_0x5571c3){var _0x12d2df=_0x29f20e;super(),d(this,_0x12d2df(0x108),new _0x54c3b0(_0x12d2df(0x103))),d(this,_0x12d2df(0x13a),this[_0x12d2df(0x108)][_0x12d2df(0x136)]()),d(this,'_init',!0x1),d(this,_0x12d2df(0xab),null),d(this,_0x12d2df(0xf5),null),(this[_0x12d2df(0x145)]=_0x1d9ec9,this[_0x12d2df(0x125)]=_0x58f57e,this[_0x12d2df(0xb6)]=_0x13d5a2,this['_liveShareService']=_0x1c945a,this[_0x12d2df(0x141)]=_0x5571c3);}get[_0x29f20e(0xb1)](){var _0x1bba9e=_0x29f20e;return this['_status$'][_0x1bba9e(0x137)]();}[_0x29f20e(0xa7)](){var _0xb78ea4=_0x29f20e,_0x3a2d57;(_0x3a2d57=this[_0xb78ea4(0xab)])==null||_0x3a2d57[_0xb78ea4(0xa7)](),this[_0xb78ea4(0x108)][_0xb78ea4(0x138)](_0xb78ea4(0x103)),this[_0xb78ea4(0x108)][_0xb78ea4(0xb4)]();}['init'](){var _0x4e819f=_0x29f20e;this[_0x4e819f(0x124)]||(this[_0x4e819f(0x124)]=!0x0,this[_0x4e819f(0x125)][_0x4e819f(0xe6)][_0x4e819f(0xeb)](_0xb3ad8b(this[_0x4e819f(0xe9)]))[_0x4e819f(0x10a)](_0x174750=>{var _0xfb102c=_0x4e819f;switch(_0x174750){case _0x1486b6[_0xfb102c(0xbd)]:this[_0xfb102c(0x10d)]();break;case _0x1486b6[_0xfb102c(0xc5)]:this[_0xfb102c(0xee)]();break;}}),this[_0x4e819f(0x125)][_0x4e819f(0xbc)][_0x4e819f(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4e819f(0x10a)](_0x54a86a=>{var _0x1a7cae=_0x4e819f;const {eventID:_0x61666f}=_0x54a86a;switch(_0x61666f){case _0x5b1231[_0x1a7cae(0xb3)]:this[_0x1a7cae(0x104)](_0x54a86a);break;case _0x5b1231[_0x1a7cae(0xcc)]:this[_0x1a7cae(0x131)](_0x54a86a);break;case _0x5b1231['LIVESHARE_TERMINATE']:this[_0x1a7cae(0xad)]();break;case _0x5b1231[_0x1a7cae(0xba)]:this['_handleNewChangeSets'](_0x54a86a);break;}}));}[_0x29f20e(0x132)](){var _0x2e9a9f=_0x29f20e;this['_collabSession'][_0x2e9a9f(0xe7)]({'eventID':_0x5b1231[_0x2e9a9f(0xe8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2e9a9f(0x106)]()}},this['_unitID']);}[_0x29f20e(0xde)](){var _0x2f64a8=_0x29f20e;this[_0x2f64a8(0xb1)]==='presenting'&&(this[_0x2f64a8(0x108)]['next'](_0x2f64a8(0x103)),this[_0x2f64a8(0x125)][_0x2f64a8(0xe7)]({'eventID':_0x5b1231[_0x2f64a8(0x130)],'data':{'unitID':this['_unitID']}},this[_0x2f64a8(0x145)]));}[_0x29f20e(0xca)](){var _0x42fe94=_0x29f20e;this[_0x42fe94(0xb1)]===_0x42fe94(0x140)&&(this[_0x42fe94(0x108)][_0x42fe94(0x138)](_0x42fe94(0x12a)),this[_0x42fe94(0xc4)]());}[_0x29f20e(0xa5)](){var _0x1ba63f=_0x29f20e;this[_0x1ba63f(0xb1)]==='following'&&this[_0x1ba63f(0xdb)]();}[_0x29f20e(0x104)](_0x20147f){var _0x516f92=_0x29f20e;const {presenter:_0x41b3e6}=_0x20147f['data'],_0x43cff7=this[_0x516f92(0x125)][_0x516f92(0x106)]();this[_0x516f92(0xf5)]=_0x41b3e6,_0x41b3e6===_0x43cff7?(this[_0x516f92(0xdb)](),this['_startPresenting']()):this['_status']!==_0x516f92(0x140)&&(this['_stopPresenting'](),this[_0x516f92(0xc4)]());}['_fetchOperations'](){var _0x3595f=_0x29f20e;const _0x3b9013={'eventID':_0x5b1231[_0x3595f(0x12c)]};this[_0x3595f(0x125)]['send'](_0x3b9013,this[_0x3595f(0x145)]);}[_0x29f20e(0xad)](){var _0xc3f262=_0x29f20e;this[_0xc3f262(0xf5)]=null,this[_0xc3f262(0xb1)]!==_0xc3f262(0xae)&&this[_0xc3f262(0x13d)]();}[_0x29f20e(0xc9)](_0xe32600){var _0x2f3ff7=_0x29f20e;if(this['_status']==='following'&&this[_0x2f3ff7(0xf5)]===_0xe32600[_0x2f3ff7(0xc1)][_0x2f3ff7(0xd5)]){const _0x35e994=_0x300461(_0xe32600['data'])['mutations'][_0x2f3ff7(0xd2)]()[_0x2f3ff7(0xd0)](_0x15d6ba=>_0x15d6ba['id']===_0x18faeb['id']);if(_0x35e994){const _0x1dec01=_0x35e994[_0x2f3ff7(0xf6)][_0x2f3ff7(0xd7)],_0x4bf220=_0x35e994[_0x2f3ff7(0xf6)]['sheet']['id'];setTimeout(()=>{var _0x251910=_0x2f3ff7;this[_0x251910(0x141)]['executeCommand'](_0x348477['id'],{'unitId':_0x1dec01,'subUnitId':_0x4bf220},{'fromCollab':!0x0});});}}}[_0x29f20e(0xd1)](){var _0x1c8505=_0x29f20e;this[_0x1c8505(0x108)][_0x1c8505(0x138)](_0x1c8505(0xae));const _0x13b34b=new Map(),_0x200177=this['_commandDisposable']=new _0x259978();_0x200177[_0x1c8505(0xd8)](_0x5e39ab(()=>{_0x13b34b['forEach'](_0x536f25=>_0x536f25['complete']()),_0x13b34b['clear']();})),_0x200177[_0x1c8505(0xd8)](this[_0x1c8505(0x141)][_0x1c8505(0x115)](_0x2534a5=>{var _0x2fe2f0=_0x1c8505,_0x40d3ab;if(_0x2534a5[_0x2fe2f0(0x10b)]!==_0xfdb75e[_0x2fe2f0(0x118)]||!this[_0x2fe2f0(0x116)][_0x2fe2f0(0xa8)](_0x2534a5['id']))return;const {id:_0x1e95e9}=_0x2534a5;let _0xdecc85;_0x13b34b[_0x2fe2f0(0x12d)](_0x1e95e9)?_0xdecc85=_0x13b34b[_0x2fe2f0(0xf7)](_0x1e95e9):(_0xdecc85=new _0xae6176(),_0x13b34b[_0x2fe2f0(0xb5)](_0x1e95e9,_0xdecc85),_0xdecc85['pipe'](_0x1882fd((_0x40d3ab=this['_configService']['getConfig'](Pe))!=null?_0x40d3ab:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55e73e=>{var _0x540b79=_0x2fe2f0;this[_0x540b79(0x125)]['send']({'eventID':_0x5b1231[_0x540b79(0xcc)],'data':{'unitID':this[_0x540b79(0x145)],'operations':{[_0x55e73e['id']]:{'id':_0x55e73e['id'],'params':JSON[_0x540b79(0x128)](_0x55e73e[_0x540b79(0xf6)])}}}},this[_0x540b79(0x145)]);})),_0xdecc85[_0x2fe2f0(0x138)](_0x2534a5);})),this[_0x1c8505(0x116)][_0x1c8505(0xa0)](this[_0x1c8505(0x145)])[_0x1c8505(0x111)](_0x6329e5=>this[_0x1c8505(0x125)]['send']({'eventID':_0x5b1231[_0x1c8505(0xcc)],'data':{'unitID':this[_0x1c8505(0x145)],'operations':{[_0x6329e5['id']]:{'id':_0x6329e5['id'],'params':JSON[_0x1c8505(0x128)](_0x6329e5[_0x1c8505(0xf6)])}}}},this[_0x1c8505(0x145)]));}[_0x29f20e(0xd4)](){var _0x4e52d6=_0x29f20e,_0xa417d0;this[_0x4e52d6(0x108)][_0x4e52d6(0x138)](_0x4e52d6(0x103)),(_0xa417d0=this['_commandDisposable'])==null||_0xa417d0['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x6708c9=_0x29f20e,_0x48de0f;(_0x48de0f=this[_0x6708c9(0xab)])==null||_0x48de0f[_0x6708c9(0xa7)](),this[_0x6708c9(0x108)][_0x6708c9(0x138)](_0x6708c9(0x12a));}[_0x29f20e(0x13d)](){var _0x29f1d7=_0x29f20e,_0x11be02;this[_0x29f1d7(0x108)]['next'](_0x29f1d7(0x103)),(_0x11be02=this[_0x29f1d7(0xab)])==null||_0x11be02[_0x29f1d7(0xa7)](),this[_0x29f1d7(0xab)]=null;}[_0x29f20e(0xdb)](){var _0x33427f=_0x29f20e,_0x1c9ed4;this[_0x33427f(0x108)][_0x33427f(0x138)](_0x33427f(0x140)),(_0x1c9ed4=this['_commandDisposable'])==null||_0x1c9ed4[_0x33427f(0xa7)]();}['_handleOperation'](_0x77dea5){var _0x30c30c=_0x29f20e;if([_0x30c30c(0xae),_0x30c30c(0x140),_0x30c30c(0x109)][_0x30c30c(0x10c)](this[_0x30c30c(0xb1)])||!_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]||_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]===this[_0x30c30c(0x125)][_0x30c30c(0x106)]())return;this[_0x30c30c(0xb1)]==='idle'&&this['_startFollowing']();const _0x4548f0=_0x77dea5[_0x30c30c(0xc1)]['operations'];Object['values'](_0x4548f0)[_0x30c30c(0x111)](_0x6d80bc=>{var _0x162d5c=_0x30c30c;this[_0x162d5c(0x141)]['executeCommand'](_0x6d80bc['id'],_0x6d80bc[_0x162d5c(0xf6)]?JSON['parse'](_0x6d80bc['params']):null,{'fromCollab':!0x0});});}[_0x29f20e(0x10d)](){var _0x19a82c=_0x29f20e,_0x58387c;this['_status$'][_0x19a82c(0x138)]('offline'),(_0x58387c=this[_0x19a82c(0xab)])==null||_0x58387c['dispose']();}[_0x29f20e(0xee)](){var _0x149aa5=_0x29f20e;this[_0x149aa5(0x108)][_0x149aa5(0x138)](_0x149aa5(0x103)),this['_fetchOperations']();}};w=Z([f(0x2,_0x35e166),f(0x3,_0x2b27e5(L)),f(0x4,_0x2043b7)],w);function Te(){var _0x2df0f5=_0x29f20e;const _0xbbbec0=_0x493516(I),_0x46e373=_0x493516(_0x2a2850),_0x3c8ff1=_0x21980c(()=>_0x46e373[_0x2df0f5(0xf4)](_0x70eb56['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x55ef6e,_0x3ef171]=_0x5cc44c(null),[_0x47f646,_0x51f219]=_0x5cc44c(h['IDLE']),_0x20c893=_0x411e20(null);return _0x3c174d(()=>(_0x3c8ff1&&_0xbbbec0['getLiveShareCoordinator'](_0x3c8ff1[_0x2df0f5(0xcd)]())[_0x2df0f5(0x121)](_0x185992=>{var _0x1bfd11=_0x2df0f5;_0x3ef171(_0x185992),_0x20c893[_0x1bfd11(0xe3)]=_0x185992[_0x1bfd11(0x13a)][_0x1bfd11(0x10a)](_0x5f3169=>{_0x51f219(_0x5f3169);});}),()=>{var _0x5ed03a=_0x2df0f5,_0x305773;(_0x305773=_0x20c893[_0x5ed03a(0xe3)])==null||_0x305773[_0x5ed03a(0xed)](),_0x20c893[_0x5ed03a(0xe3)]=null;}),[_0x3c8ff1,_0xbbbec0]),_0x55ef6e?_0x4aa79a(_0x552500,{'align':_0x2df0f5(0xdd),'disabled':_0x47f646===h[_0x2df0f5(0xbd)],'className':_0x2df0f5(0xc8),'overlay':_0x4aa79a($e,{'status':_0x47f646,'coordinator':_0x55ef6e}),'children':_0x4aa79a('button',{'className':_0x4f9fb3('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x47f646===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47f646!==h[_0x2df0f5(0xbd)]}),'type':_0x2df0f5(0x102),'children':_0x4aa79a(B,{'className':_0x2df0f5(0x135)})})}):null;}function $e(_0x572603){var _0x116ce2=_0x29f20e;const {status:_0x45b008,coordinator:_0x33d0df}=_0x572603;switch(_0x45b008){case h[_0x116ce2(0x11d)]:return _0x4aa79a(Fe,{'coordinator':_0x33d0df});case h['FOLLOWING']:return _0x4aa79a(He,{'coordinator':_0x33d0df});case h['NOT_FOLLOWING']:return _0x4aa79a(je,{'coordinator':_0x33d0df});case h['OFFLINE']:return _0x4aa79a(Ve,{});case h[_0x116ce2(0x11c)]:return _0x4aa79a(Ue,{'coordinator':_0x33d0df});default:return null;}}function Fe(_0x4cfd29){var _0x39513c=_0x29f20e;const {coordinator:_0x394c90}=_0x4cfd29;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x39513c(0xfb),{'className':_0x39513c(0x129),'children':'Present\x20this\x20document'}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x394c90['tryStartPresenting'](),'children':_0x39513c(0x147)})]});}function He(_0x1f9c85){var _0x522da6=_0x29f20e;const {coordinator:_0x1b384a}=_0x1f9c85;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x522da6(0xfb),{'className':_0x522da6(0x129),'children':_0x522da6(0xea)}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x1b384a[_0x522da6(0xa5)](),'children':'Stop\x20following'})]});}function je(_0x176ebc){var _0x5edf72=_0x29f20e;const {coordinator:_0x334fe8}=_0x176ebc;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5edf72(0xf3)}),_0x4aa79a(_0x55d525,{'variant':_0x5edf72(0xce),'onClick':()=>_0x334fe8[_0x5edf72(0xca)](),'children':_0x5edf72(0xff)})]});}function Ue(_0x1939fd){var _0x6aad7c=_0x29f20e;const {coordinator:_0x5de474}=_0x1939fd;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x6aad7c(0xfb),{'className':_0x6aad7c(0x129),'children':_0x6aad7c(0x126)}),_0x4aa79a(_0x55d525,{'variant':_0x6aad7c(0xaa),'onClick':()=>_0x5de474[_0x6aad7c(0xde)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2555fd=_0x29f20e;return _0x4aa79a(_0x2ff6ca,{'children':_0x2555fd(0xef)});}var Me=Object[_0x29f20e(0x10e)],ke=(_0x419ba8,_0x7ccd25,_0x4638d1,_0x17ce96)=>{for(var _0x18fa1e=_0x17ce96>0x1?void 0x0:_0x17ce96?Me(_0x7ccd25,_0x4638d1):_0x7ccd25,_0x48cdd7=_0x419ba8['length']-0x1,_0x2b2198;_0x48cdd7>=0x0;_0x48cdd7--)(_0x2b2198=_0x419ba8[_0x48cdd7])&&(_0x18fa1e=_0x2b2198(_0x18fa1e)||_0x18fa1e);return _0x18fa1e;},$=(_0xbec4c1,_0x4d5397)=>(_0x114b90,_0x32dc85)=>_0x4d5397(_0x114b90,_0x32dc85,_0xbec4c1);let b=class extends _0x3375e6{constructor(_0x3e3c48,_0x420b4a){var _0x47061f=_0x29f20e;super(),this[_0x47061f(0x133)]=_0x3e3c48,this[_0x47061f(0xf9)]=_0x420b4a,this[_0x47061f(0x134)]();}[_0x29f20e(0x134)](){var _0x1ca1d4=_0x29f20e;this[_0x1ca1d4(0xfd)](this[_0x1ca1d4(0xf9)][_0x1ca1d4(0xd9)](_0x29a15b['HEADER_MENU'],()=>_0x52be52(Te,this['_injector'])));}};b=ke([$(0x0,_0x2b27e5(_0x88f3f5)),$(0x1,_0x1735f8)],b);var Ge=Object[_0x29f20e(0xaf)],We=Object[_0x29f20e(0x10e)],Ye=(_0x2e6ed8,_0x3b3da4,_0x4a35ba)=>_0x3b3da4 in _0x2e6ed8?Ge(_0x2e6ed8,_0x3b3da4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a35ba}):_0x2e6ed8[_0x3b3da4]=_0x4a35ba,Be=(_0x10dfec,_0x4158ac,_0x5f54c9,_0x45798f)=>{var _0x19c3f9=_0x29f20e;for(var _0x16ed35=_0x45798f>0x1?void 0x0:_0x45798f?We(_0x4158ac,_0x5f54c9):_0x4158ac,_0x4fd026=_0x10dfec[_0x19c3f9(0x146)]-0x1,_0x169a3c;_0x4fd026>=0x0;_0x4fd026--)(_0x169a3c=_0x10dfec[_0x4fd026])&&(_0x16ed35=_0x169a3c(_0x16ed35)||_0x16ed35);return _0x16ed35;},F=(_0xf2c91c,_0x78b9f)=>(_0x198689,_0x13bb7f)=>_0x78b9f(_0x198689,_0x13bb7f,_0xf2c91c),J=(_0x2d8010,_0x1e4ff7,_0x54d086)=>Ye(_0x2d8010,typeof _0x1e4ff7!=_0x29f20e(0xe5)?_0x1e4ff7+'':_0x1e4ff7,_0x54d086);const Ze=_0x29f20e(0x117);let O=class extends _0xba14a{constructor(_0x1208c3=T,_0x545ad6,_0x488554){var _0x345d10=_0x29f20e;super(),this[_0x345d10(0xa4)]=_0x1208c3,this['_injector']=_0x545ad6,this['_configService']=_0x488554;const {..._0x274ee4}=_0x2f1e0d({},T,this[_0x345d10(0xa4)]);this['_configService'][_0x345d10(0x112)](Oe,_0x274ee4);}[_0x29f20e(0xb0)](){var _0x2e19a9=_0x29f20e;_0x4fada3(this['_injector'],_0x32112a([[L],[I],[m],[b]],this[_0x2e19a9(0xa4)][_0x2e19a9(0xc2)])),_0x132bf9(this[_0x2e19a9(0x133)],[[m]]);}[_0x29f20e(0xf0)](){_0x132bf9(this['_injector'],[[b]]);}};J(O,'type',_0x70eb56[_0x29f20e(0xec)]),J(O,_0x29f20e(0xe4),Ze),O=Be([_0x35339f(_0x2b8f23),F(0x1,_0x2b27e5(_0x88f3f5)),F(0x2,_0x35e166)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29f20e=_0x3e7e;(function(_0xbbc8bb,_0x4addb4){var _0x4ffd02=_0x3e7e,_0x45aa8d=_0xbbc8bb();while(!![]){try{var _0x45e212=-parseInt(_0x4ffd02(0x12b))/0x1+-parseInt(_0x4ffd02(0xa6))/0x2*(-parseInt(_0x4ffd02(0xc3))/0x3)+-parseInt(_0x4ffd02(0xf8))/0x4+-parseInt(_0x4ffd02(0x148))/0x5*(-parseInt(_0x4ffd02(0xa3))/0x6)+parseInt(_0x4ffd02(0xdf))/0x7+parseInt(_0x4ffd02(0x100))/0x8+-parseInt(_0x4ffd02(0x12f))/0x9*(parseInt(_0x4ffd02(0xa2))/0xa);if(_0x45e212===_0x4addb4)break;else _0x45aa8d['push'](_0x45aa8d['shift']());}catch(_0x458de7){_0x45aa8d['push'](_0x45aa8d['shift']());}}}(_0x32e9,0xf0d76));var q=Object[_0x29f20e(0xaf)],z=(_0x1bbf9d,_0x583fcf,_0x144850)=>_0x583fcf in _0x1bbf9d?q(_0x1bbf9d,_0x583fcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x144850}):_0x1bbf9d[_0x583fcf]=_0x144850,d=(_0x281175,_0x4845b4,_0x4cfcb1)=>z(_0x281175,typeof _0x4845b4!=_0x29f20e(0xe5)?_0x4845b4+'':_0x4845b4,_0x4cfcb1);import{CollaborationSessionService as _0x22c5ad,SessionStatus as _0x1486b6,UniverCollaborationClientPlugin as _0x2b8f23}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3375e6,toDisposable as _0x5e39ab,Inject as _0x2b27e5,IUniverInstanceService as _0x2a2850,Injector as _0x88f3f5,IConfigService as _0x35e166,ICommandService as _0x2043b7,RxDisposable as _0x416d0b,UniverInstanceType as _0x70eb56,DisposableCollection as _0x259978,CommandType as _0xfdb75e,DependentOn as _0x35339f,Plugin as _0xba14a,merge as _0x2f1e0d,registerDependencies as _0x4fada3,mergeOverrideWithDependencies as _0x32112a,touchDependencies as _0x132bf9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x348477,InsertSheetMutation as _0x18faeb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4b7127,SetScrollOperation as _0x24fc28}from'@univerjs/sheets-ui';function _0x32e9(){var _0x3d1af5=['shouldShareOperation','map','default','_commandDisposable','replace','_handleTerminate','presenting','defineProperty','onStarting','_status','className','LIVESHARE_NEW_HOST','complete','set','_configService','fill','evenodd','displayName','NEW_CHANGESETS','concat','event$','OFFLINE','toString','svg','_entities','data','override','3bOHIpy','_startFollowing','ONLINE','propertyIsEnumerable','UNIVER_SHEET','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleNewChangeSets','startFollowing','trim','LIVESHARE_OPERATION','getUnitId','text','string','find','_startPresenting','reverse','indexOf','_stopPresenting','memberID','UniverIcon','unitId','add','registerComponent','getTypeOfUnitDisposed$','_stopFollowing','_univerInstanceService','end','stopPresenting','6203043HuGZIu','tag','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','current','pluginName','symbol','sessionStatus$','send','LIVESHARE_REQUEST_HOST','dispose$','You\x27re\x20following\x20the\x20presenter','pipe','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27are\x20offline.','onRendered','icon','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','_presenter','params','get','530136upujkN','_uiPartsService','xlink:href','div','NOT_FOLLOWING','disposeWithMe','colorChannel1','Start\x20following','9535368dsbhoe','LiveShareSingle','button','idle','_handleNewHost','assign','getMemberID','call','_status$','offline','subscribe','type','includes','_handleOffline','getOwnPropertyDescriptor','prototype','_collabSessionService','forEach','setConfig','hasOwnProperty','_reporters','onCommandExecuted','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','OPERATION','entries','attrs','extend','PRESENTING','IDLE','init','_sharedOperations','substring','then','live-share-single','presenter','_init','_collabSession','You\x27re\x20presenting\x20the\x20document','delete','stringify','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1538026xNQGSm','LIVESHARE_FETCH_OPERATIONS','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','9OOKwud','LIVESHARE_TERMINATE','_handleOperation','tryStartPresenting','_injector','_mountLiveShare','univer-size-4','asObservable','getValue','next','1em','status$','random','FOLLOWING','_beIdle','registerSharedOperation','_startLiveShareCoordinator','not-following','_commandService','path','mask','defIds','_unitID','length','Start','1471770OrtZux','currentColor','idSuffix','getInitialStates','requireSession','17058030yHTUtV','18BiAmVi','_config','stopFollowing','2803434owVJao','dispose'];_0x32e9=function(){return _0x3d1af5;};return _0x32e9();}import{useDependency as _0x493516,useObservable as _0x21980c,IUIPartsService as _0x1735f8,BuiltInUIPart as _0x29a15b,connectInjector as _0x52be52}from'@univerjs/ui';import{jsx as _0x4aa79a,jsxs as _0x1dee4f,Fragment as _0x2ff6ca}from'react/jsx-runtime';import{Dropdown as _0x552500,clsx as _0x4f9fb3,Button as _0x55d525}from'@univerjs/design';import{forwardRef as _0x2d11e8,useRef as _0x411e20,createElement as _0x5c2114,useState as _0x5cc44c,useEffect as _0x3c174d}from'react';import{CollaborationEvent as _0x5b1231,parseProtocolChangeset as _0x300461}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x54c3b0,Subject as _0xae6176}from'rxjs';import{takeUntil as _0xb3ad8b,throttleTime as _0x1882fd}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3375e6{constructor(){var _0x34a04f=_0x29f20e;super(...arguments),d(this,_0x34a04f(0x11f),new Set()),d(this,_0x34a04f(0x114),new Set());}[_0x29f20e(0x13e)](_0x4a98de){var _0x59af30=_0x29f20e;return this[_0x59af30(0x11f)][_0x59af30(0xd8)](_0x4a98de),_0x5e39ab(()=>this['_sharedOperations'][_0x59af30(0x127)](_0x4a98de));}['registerInitialStateReporter'](_0x19c770){var _0x181ccf=_0x29f20e;return this[_0x181ccf(0x114)][_0x181ccf(0xd8)](_0x19c770),_0x5e39ab(()=>this[_0x181ccf(0x114)][_0x181ccf(0x127)](_0x19c770));}[_0x29f20e(0xa8)](_0x4c4510){var _0x27ed0f=_0x29f20e;return this[_0x27ed0f(0x11f)]['has'](_0x4c4510);}[_0x29f20e(0xa0)](_0x8e4a27){var _0x2836c0=_0x29f20e;return Array['from'](this['_reporters'])[_0x2836c0(0xa9)](_0x1d3e28=>_0x1d3e28(_0x8e4a27));}}var Ee=Object[_0x29f20e(0x10e)],Ce=(_0x181595,_0x42d046,_0x1aaaae,_0x242b48)=>{var _0x184949=_0x29f20e;for(var _0x54b189=_0x242b48>0x1?void 0x0:_0x242b48?Ee(_0x42d046,_0x1aaaae):_0x42d046,_0xb435a3=_0x181595[_0x184949(0x146)]-0x1,_0x4c44ef;_0xb435a3>=0x0;_0xb435a3--)(_0x4c44ef=_0x181595[_0xb435a3])&&(_0x54b189=_0x4c44ef(_0x54b189)||_0x54b189);return _0x54b189;},Ne=(_0xcaf197,_0x1b61ef)=>(_0x21d294,_0x50301d)=>_0x1b61ef(_0x21d294,_0x50301d,_0xcaf197);let m=class extends _0x3375e6{constructor(_0xa26c92){var _0x1a9422=_0x29f20e;super(),this[_0x1a9422(0x116)]=_0xa26c92,this[_0x1a9422(0x124)]();}['_init'](){var _0x1ba6b0=_0x29f20e;[_0x4b7127['id'],_0x24fc28['id'],_0x348477['id']][_0x1ba6b0(0x111)](_0x47d700=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x47d700));});}};m=Ce([Ne(0x0,_0x2b27e5(L))],m);function _0x3e7e(_0x571ba1,_0x5e7e23){var _0x32e927=_0x32e9();return _0x3e7e=function(_0x3e7ea3,_0x54abd5){_0x3e7ea3=_0x3e7ea3-0xa0;var _0x3c2208=_0x32e927[_0x3e7ea3];return _0x3c2208;},_0x3e7e(_0x571ba1,_0x5e7e23);}var c=function(){var _0xb7e04f=_0x29f20e;return c=Object[_0xb7e04f(0x105)]||function(_0x49385a){var _0x53d489=_0xb7e04f;for(var _0x143c46,_0x2a82a5=0x1,_0x33b4fd=arguments[_0x53d489(0x146)];_0x2a82a5<_0x33b4fd;_0x2a82a5++){_0x143c46=arguments[_0x2a82a5];for(var _0x2269da in _0x143c46)Object[_0x53d489(0x10f)][_0x53d489(0x113)]['call'](_0x143c46,_0x2269da)&&(_0x49385a[_0x2269da]=_0x143c46[_0x2269da]);}return _0x49385a;},c['apply'](this,arguments);},we=function(_0x3821d1,_0x153e3b){var _0x5221cf=_0x29f20e,_0x3e9841={};for(var _0x953335 in _0x3821d1)Object[_0x5221cf(0x10f)]['hasOwnProperty'][_0x5221cf(0x107)](_0x3821d1,_0x953335)&&_0x153e3b['indexOf'](_0x953335)<0x0&&(_0x3e9841[_0x953335]=_0x3821d1[_0x953335]);if(_0x3821d1!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xe1ec79=0x0,_0x953335=Object['getOwnPropertySymbols'](_0x3821d1);_0xe1ec79<_0x953335[_0x5221cf(0x146)];_0xe1ec79++)_0x153e3b[_0x5221cf(0xd3)](_0x953335[_0xe1ec79])<0x0&&Object[_0x5221cf(0x10f)][_0x5221cf(0xc6)][_0x5221cf(0x107)](_0x3821d1,_0x953335[_0xe1ec79])&&(_0x3e9841[_0x953335[_0xe1ec79]]=_0x3821d1[_0x953335[_0xe1ec79]]);}return _0x3e9841;},W=_0x2d11e8(function(_0x11946a,_0x3dbd75){var _0x5300ea=_0x29f20e,_0x122971=_0x11946a[_0x5300ea(0xf1)],_0xebcf01=_0x11946a['id'],_0x2293bb=_0x11946a['className'],_0x4fcb82=_0x11946a[_0x5300ea(0x11b)],_0x563fed=we(_0x11946a,[_0x5300ea(0xf1),'id',_0x5300ea(0xb2),_0x5300ea(0x11b)]),_0x33922c='univerjs-icon\x20univerjs-icon-'[_0x5300ea(0xbb)](_0xebcf01,'\x20')[_0x5300ea(0xbb)](_0x2293bb||'')[_0x5300ea(0xcb)](),_0xe73f3d=_0x411e20('_'[_0x5300ea(0xbb)](Le()));return Y(_0x122971,''[_0x5300ea(0xbb)](_0xebcf01),{'defIds':_0x122971[_0x5300ea(0x144)],'idSuffix':_0xe73f3d[_0x5300ea(0xe3)]},c({'ref':_0x3dbd75,'className':_0x33922c},_0x563fed),_0x4fcb82);});function Y(_0x428209,_0x5d95b4,_0x3b8755,_0x2d78b3,_0x5c7d14){var _0x55c7f8=_0x29f20e;return _0x5c2114(_0x428209[_0x55c7f8(0xe0)],c(c({'key':_0x5d95b4},De(_0x428209,_0x3b8755,_0x5c7d14)),_0x2d78b3),(xe(_0x428209,_0x3b8755)['children']||[])[_0x55c7f8(0xa9)](function(_0x44d0ac,_0x41d37d){var _0x33197a=_0x55c7f8;return Y(_0x44d0ac,''[_0x33197a(0xbb)](_0x5d95b4,'-')[_0x33197a(0xbb)](_0x428209[_0x33197a(0xe0)],'-')['concat'](_0x41d37d),_0x3b8755,void 0x0,_0x5c7d14);}));}function De(_0xe81a6e,_0x231813,_0xa37675){var _0x1121ea=_0x29f20e,_0x111e80=c({},_0xe81a6e['attrs']);_0xa37675!=null&&_0xa37675[_0x1121ea(0xfe)]&&_0x111e80[_0x1121ea(0xb7)]===_0x1121ea(0xfe)&&(_0x111e80[_0x1121ea(0xb7)]=_0xa37675[_0x1121ea(0xfe)]),_0xe81a6e[_0x1121ea(0xe0)]==='mask'&&_0x111e80['id']&&(_0x111e80['id']=_0x111e80['id']+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x3c88c1){var _0x26092a=_0x1121ea,_0x53c830=_0x3c88c1[0x0],_0x51b003=_0x3c88c1[0x1];_0x53c830===_0x26092a(0x143)&&typeof _0x51b003==_0x26092a(0xcf)&&(_0x111e80[_0x53c830]=_0x51b003['replace'](/url\(#(.*)\)/,'url(#$1'[_0x26092a(0xbb)](_0x231813['idSuffix'],')')));});var _0xc48e3f=_0x231813[_0x1121ea(0x144)];return!_0xc48e3f||_0xc48e3f[_0x1121ea(0x146)]===0x0||(_0xe81a6e['tag']==='use'&&_0x111e80[_0x1121ea(0xfa)]&&(_0x111e80[_0x1121ea(0xfa)]=_0x111e80[_0x1121ea(0xfa)]+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x5b1d03){var _0x592b97=_0x1121ea,_0xf432c1=_0x5b1d03[0x0],_0x20c791=_0x5b1d03[0x1];typeof _0x20c791==_0x592b97(0xcf)&&(_0x111e80[_0xf432c1]=_0x20c791[_0x592b97(0xac)](/url\(#(.*)\)/,'url(#$1'[_0x592b97(0xbb)](_0x231813[_0x592b97(0x14a)],')')));})),_0x111e80;}function xe(_0x4f0bde,_0x125a48){var _0x42a3bf=_0x29f20e,_0x292803,_0x544a0e=_0x125a48[_0x42a3bf(0x144)];return!_0x544a0e||_0x544a0e[_0x42a3bf(0x146)]===0x0?_0x4f0bde:_0x4f0bde[_0x42a3bf(0xe0)]==='defs'&&(!((_0x292803=_0x4f0bde['children'])===null||_0x292803===void 0x0)&&_0x292803[_0x42a3bf(0x146)])?c(c({},_0x4f0bde),{'children':_0x4f0bde['children']['map'](function(_0x331f7c){var _0x71f051=_0x42a3bf;return typeof _0x331f7c['attrs']['id']==_0x71f051(0xcf)&&_0x544a0e&&_0x544a0e[_0x71f051(0xd3)](_0x331f7c[_0x71f051(0x11a)]['id'])>-0x1?c(c({},_0x331f7c),{'attrs':c(c({},_0x331f7c[_0x71f051(0x11a)]),{'id':_0x331f7c[_0x71f051(0x11a)]['id']+_0x125a48[_0x71f051(0x14a)]})}):_0x331f7c;})}):_0x4f0bde;}function Le(){var _0x5c1770=_0x29f20e;return Math[_0x5c1770(0x13b)]()[_0x5c1770(0xbe)](0x24)[_0x5c1770(0x120)](0x2,0x8);}W[_0x29f20e(0xb9)]=_0x29f20e(0xd6);var ye={'tag':_0x29f20e(0xbf),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x29f20e(0x139),'height':_0x29f20e(0x139)},'children':[{'tag':'path','attrs':{'fill':_0x29f20e(0x149),'d':_0x29f20e(0x12e)}},{'tag':_0x29f20e(0x142),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x29f20e(0xb8),'clipRule':_0x29f20e(0xb8)}}]},B=_0x2d11e8(function(_0x1911a7,_0x59eb7b){var _0x9484a6=_0x29f20e;return _0x5c2114(W,Object[_0x9484a6(0x105)]({},_0x1911a7,{'id':_0x9484a6(0x122),'ref':_0x59eb7b,'icon':ye}));});B[_0x29f20e(0xb9)]=_0x29f20e(0x101);var Re=Object[_0x29f20e(0x10e)],Z=(_0x4ae1c7,_0x2f4b64,_0x2ad537,_0x4d8e39)=>{var _0x1e03d9=_0x29f20e;for(var _0x252275=_0x4d8e39>0x1?void 0x0:_0x4d8e39?Re(_0x2f4b64,_0x2ad537):_0x2f4b64,_0x398f80=_0x4ae1c7[_0x1e03d9(0x146)]-0x1,_0x5deb64;_0x398f80>=0x0;_0x398f80--)(_0x5deb64=_0x4ae1c7[_0x398f80])&&(_0x252275=_0x5deb64(_0x252275)||_0x252275);return _0x252275;},f=(_0x48b477,_0x2f2180)=>(_0x5b6b75,_0xf709e4)=>_0x2f2180(_0x5b6b75,_0xf709e4,_0x48b477);let I=class extends _0x416d0b{constructor(_0x22083a,_0x2d457e,_0x823d75){var _0x6d52c1=_0x29f20e;super(),d(this,_0x6d52c1(0xc0),new Map()),(this[_0x6d52c1(0xdc)]=_0x22083a,this[_0x6d52c1(0x133)]=_0x2d457e,this[_0x6d52c1(0x110)]=_0x823d75,this[_0x6d52c1(0x124)]());}async['getLiveShareCoordinator'](_0x54d5f4){var _0x56fbdb=_0x29f20e;return this[_0x56fbdb(0xc0)][_0x56fbdb(0x12d)](_0x54d5f4)||await this[_0x56fbdb(0x13f)](_0x54d5f4),this[_0x56fbdb(0xc0)][_0x56fbdb(0xf7)](_0x54d5f4);}[_0x29f20e(0x124)](){var _0x4f77b9=_0x29f20e;this[_0x4f77b9(0xdc)][_0x4f77b9(0xe1)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))['subscribe'](async _0x4ff23b=>{var _0x1f0103=_0x4f77b9;const _0x50b10b=_0x4ff23b[_0x1f0103(0xcd)]();this[_0x1f0103(0xc0)]['has'](_0x50b10b)||this[_0x1f0103(0x13f)](_0x50b10b);}),this[_0x4f77b9(0xdc)][_0x4f77b9(0xda)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4f77b9(0x10a)](_0x5ec8d1=>{var _0x4c87dc=_0x4f77b9;const _0x351821=_0x5ec8d1[_0x4c87dc(0xcd)](),_0xc28426=this[_0x4c87dc(0xc0)][_0x4c87dc(0xf7)](_0x351821);_0xc28426==null||_0xc28426['dispose']();});}async['_startLiveShareCoordinator'](_0x4cb88c){var _0x5c9f04=_0x29f20e;const _0x3de859=await this[_0x5c9f04(0x110)][_0x5c9f04(0xa1)](_0x4cb88c),_0x43f93b=this[_0x5c9f04(0x133)][_0x5c9f04(0xf2)](w,_0x4cb88c,_0x3de859);return _0x43f93b[_0x5c9f04(0x11e)](),this['_entities']['set'](_0x4cb88c,_0x43f93b),_0x43f93b;}};I=Z([f(0x0,_0x2a2850),f(0x1,_0x2b27e5(_0x88f3f5)),f(0x2,_0x2b27e5(_0x22c5ad))],I);var h=(_0x4a7842=>(_0x4a7842[_0x29f20e(0xbd)]=_0x29f20e(0x109),_0x4a7842[_0x29f20e(0x11d)]=_0x29f20e(0x103),_0x4a7842[_0x29f20e(0x13c)]=_0x29f20e(0x12a),_0x4a7842[_0x29f20e(0xfc)]=_0x29f20e(0x140),_0x4a7842['PRESENTING']=_0x29f20e(0xae),_0x4a7842))(h||{});const Pe=_0x29f20e(0xe2),Ae=0xc8;let w=class extends _0x416d0b{constructor(_0x1d9ec9,_0x58f57e,_0x13d5a2,_0x1c945a,_0x5571c3){var _0x12d2df=_0x29f20e;super(),d(this,_0x12d2df(0x108),new _0x54c3b0(_0x12d2df(0x103))),d(this,_0x12d2df(0x13a),this[_0x12d2df(0x108)][_0x12d2df(0x136)]()),d(this,'_init',!0x1),d(this,_0x12d2df(0xab),null),d(this,_0x12d2df(0xf5),null),(this[_0x12d2df(0x145)]=_0x1d9ec9,this[_0x12d2df(0x125)]=_0x58f57e,this[_0x12d2df(0xb6)]=_0x13d5a2,this['_liveShareService']=_0x1c945a,this[_0x12d2df(0x141)]=_0x5571c3);}get[_0x29f20e(0xb1)](){var _0x1bba9e=_0x29f20e;return this['_status$'][_0x1bba9e(0x137)]();}[_0x29f20e(0xa7)](){var _0xb78ea4=_0x29f20e,_0x3a2d57;(_0x3a2d57=this[_0xb78ea4(0xab)])==null||_0x3a2d57[_0xb78ea4(0xa7)](),this[_0xb78ea4(0x108)][_0xb78ea4(0x138)](_0xb78ea4(0x103)),this[_0xb78ea4(0x108)][_0xb78ea4(0xb4)]();}['init'](){var _0x4e819f=_0x29f20e;this[_0x4e819f(0x124)]||(this[_0x4e819f(0x124)]=!0x0,this[_0x4e819f(0x125)][_0x4e819f(0xe6)][_0x4e819f(0xeb)](_0xb3ad8b(this[_0x4e819f(0xe9)]))[_0x4e819f(0x10a)](_0x174750=>{var _0xfb102c=_0x4e819f;switch(_0x174750){case _0x1486b6[_0xfb102c(0xbd)]:this[_0xfb102c(0x10d)]();break;case _0x1486b6[_0xfb102c(0xc5)]:this[_0xfb102c(0xee)]();break;}}),this[_0x4e819f(0x125)][_0x4e819f(0xbc)][_0x4e819f(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4e819f(0x10a)](_0x54a86a=>{var _0x1a7cae=_0x4e819f;const {eventID:_0x61666f}=_0x54a86a;switch(_0x61666f){case _0x5b1231[_0x1a7cae(0xb3)]:this[_0x1a7cae(0x104)](_0x54a86a);break;case _0x5b1231[_0x1a7cae(0xcc)]:this[_0x1a7cae(0x131)](_0x54a86a);break;case _0x5b1231['LIVESHARE_TERMINATE']:this[_0x1a7cae(0xad)]();break;case _0x5b1231[_0x1a7cae(0xba)]:this['_handleNewChangeSets'](_0x54a86a);break;}}));}[_0x29f20e(0x132)](){var _0x2e9a9f=_0x29f20e;this['_collabSession'][_0x2e9a9f(0xe7)]({'eventID':_0x5b1231[_0x2e9a9f(0xe8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2e9a9f(0x106)]()}},this['_unitID']);}[_0x29f20e(0xde)](){var _0x2f64a8=_0x29f20e;this[_0x2f64a8(0xb1)]==='presenting'&&(this[_0x2f64a8(0x108)]['next'](_0x2f64a8(0x103)),this[_0x2f64a8(0x125)][_0x2f64a8(0xe7)]({'eventID':_0x5b1231[_0x2f64a8(0x130)],'data':{'unitID':this['_unitID']}},this[_0x2f64a8(0x145)]));}[_0x29f20e(0xca)](){var _0x42fe94=_0x29f20e;this[_0x42fe94(0xb1)]===_0x42fe94(0x140)&&(this[_0x42fe94(0x108)][_0x42fe94(0x138)](_0x42fe94(0x12a)),this[_0x42fe94(0xc4)]());}[_0x29f20e(0xa5)](){var _0x1ba63f=_0x29f20e;this[_0x1ba63f(0xb1)]==='following'&&this[_0x1ba63f(0xdb)]();}[_0x29f20e(0x104)](_0x20147f){var _0x516f92=_0x29f20e;const {presenter:_0x41b3e6}=_0x20147f['data'],_0x43cff7=this[_0x516f92(0x125)][_0x516f92(0x106)]();this[_0x516f92(0xf5)]=_0x41b3e6,_0x41b3e6===_0x43cff7?(this[_0x516f92(0xdb)](),this['_startPresenting']()):this['_status']!==_0x516f92(0x140)&&(this['_stopPresenting'](),this[_0x516f92(0xc4)]());}['_fetchOperations'](){var _0x3595f=_0x29f20e;const _0x3b9013={'eventID':_0x5b1231[_0x3595f(0x12c)]};this[_0x3595f(0x125)]['send'](_0x3b9013,this[_0x3595f(0x145)]);}[_0x29f20e(0xad)](){var _0xc3f262=_0x29f20e;this[_0xc3f262(0xf5)]=null,this[_0xc3f262(0xb1)]!==_0xc3f262(0xae)&&this[_0xc3f262(0x13d)]();}[_0x29f20e(0xc9)](_0xe32600){var _0x2f3ff7=_0x29f20e;if(this['_status']==='following'&&this[_0x2f3ff7(0xf5)]===_0xe32600[_0x2f3ff7(0xc1)][_0x2f3ff7(0xd5)]){const _0x35e994=_0x300461(_0xe32600['data'])['mutations'][_0x2f3ff7(0xd2)]()[_0x2f3ff7(0xd0)](_0x15d6ba=>_0x15d6ba['id']===_0x18faeb['id']);if(_0x35e994){const _0x1dec01=_0x35e994[_0x2f3ff7(0xf6)][_0x2f3ff7(0xd7)],_0x4bf220=_0x35e994[_0x2f3ff7(0xf6)]['sheet']['id'];setTimeout(()=>{var _0x251910=_0x2f3ff7;this[_0x251910(0x141)]['executeCommand'](_0x348477['id'],{'unitId':_0x1dec01,'subUnitId':_0x4bf220},{'fromCollab':!0x0});});}}}[_0x29f20e(0xd1)](){var _0x1c8505=_0x29f20e;this[_0x1c8505(0x108)][_0x1c8505(0x138)](_0x1c8505(0xae));const _0x13b34b=new Map(),_0x200177=this['_commandDisposable']=new _0x259978();_0x200177[_0x1c8505(0xd8)](_0x5e39ab(()=>{_0x13b34b['forEach'](_0x536f25=>_0x536f25['complete']()),_0x13b34b['clear']();})),_0x200177[_0x1c8505(0xd8)](this[_0x1c8505(0x141)][_0x1c8505(0x115)](_0x2534a5=>{var _0x2fe2f0=_0x1c8505,_0x40d3ab;if(_0x2534a5[_0x2fe2f0(0x10b)]!==_0xfdb75e[_0x2fe2f0(0x118)]||!this[_0x2fe2f0(0x116)][_0x2fe2f0(0xa8)](_0x2534a5['id']))return;const {id:_0x1e95e9}=_0x2534a5;let _0xdecc85;_0x13b34b[_0x2fe2f0(0x12d)](_0x1e95e9)?_0xdecc85=_0x13b34b[_0x2fe2f0(0xf7)](_0x1e95e9):(_0xdecc85=new _0xae6176(),_0x13b34b[_0x2fe2f0(0xb5)](_0x1e95e9,_0xdecc85),_0xdecc85['pipe'](_0x1882fd((_0x40d3ab=this['_configService']['getConfig'](Pe))!=null?_0x40d3ab:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55e73e=>{var _0x540b79=_0x2fe2f0;this[_0x540b79(0x125)]['send']({'eventID':_0x5b1231[_0x540b79(0xcc)],'data':{'unitID':this[_0x540b79(0x145)],'operations':{[_0x55e73e['id']]:{'id':_0x55e73e['id'],'params':JSON[_0x540b79(0x128)](_0x55e73e[_0x540b79(0xf6)])}}}},this[_0x540b79(0x145)]);})),_0xdecc85[_0x2fe2f0(0x138)](_0x2534a5);})),this[_0x1c8505(0x116)][_0x1c8505(0xa0)](this[_0x1c8505(0x145)])[_0x1c8505(0x111)](_0x6329e5=>this[_0x1c8505(0x125)]['send']({'eventID':_0x5b1231[_0x1c8505(0xcc)],'data':{'unitID':this[_0x1c8505(0x145)],'operations':{[_0x6329e5['id']]:{'id':_0x6329e5['id'],'params':JSON[_0x1c8505(0x128)](_0x6329e5[_0x1c8505(0xf6)])}}}},this[_0x1c8505(0x145)]));}[_0x29f20e(0xd4)](){var _0x4e52d6=_0x29f20e,_0xa417d0;this[_0x4e52d6(0x108)][_0x4e52d6(0x138)](_0x4e52d6(0x103)),(_0xa417d0=this['_commandDisposable'])==null||_0xa417d0['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x6708c9=_0x29f20e,_0x48de0f;(_0x48de0f=this[_0x6708c9(0xab)])==null||_0x48de0f[_0x6708c9(0xa7)](),this[_0x6708c9(0x108)][_0x6708c9(0x138)](_0x6708c9(0x12a));}[_0x29f20e(0x13d)](){var _0x29f1d7=_0x29f20e,_0x11be02;this[_0x29f1d7(0x108)]['next'](_0x29f1d7(0x103)),(_0x11be02=this[_0x29f1d7(0xab)])==null||_0x11be02[_0x29f1d7(0xa7)](),this[_0x29f1d7(0xab)]=null;}[_0x29f20e(0xdb)](){var _0x33427f=_0x29f20e,_0x1c9ed4;this[_0x33427f(0x108)][_0x33427f(0x138)](_0x33427f(0x140)),(_0x1c9ed4=this['_commandDisposable'])==null||_0x1c9ed4[_0x33427f(0xa7)]();}['_handleOperation'](_0x77dea5){var _0x30c30c=_0x29f20e;if([_0x30c30c(0xae),_0x30c30c(0x140),_0x30c30c(0x109)][_0x30c30c(0x10c)](this[_0x30c30c(0xb1)])||!_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]||_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]===this[_0x30c30c(0x125)][_0x30c30c(0x106)]())return;this[_0x30c30c(0xb1)]==='idle'&&this['_startFollowing']();const _0x4548f0=_0x77dea5[_0x30c30c(0xc1)]['operations'];Object['values'](_0x4548f0)[_0x30c30c(0x111)](_0x6d80bc=>{var _0x162d5c=_0x30c30c;this[_0x162d5c(0x141)]['executeCommand'](_0x6d80bc['id'],_0x6d80bc[_0x162d5c(0xf6)]?JSON['parse'](_0x6d80bc['params']):null,{'fromCollab':!0x0});});}[_0x29f20e(0x10d)](){var _0x19a82c=_0x29f20e,_0x58387c;this['_status$'][_0x19a82c(0x138)]('offline'),(_0x58387c=this[_0x19a82c(0xab)])==null||_0x58387c['dispose']();}[_0x29f20e(0xee)](){var _0x149aa5=_0x29f20e;this[_0x149aa5(0x108)][_0x149aa5(0x138)](_0x149aa5(0x103)),this['_fetchOperations']();}};w=Z([f(0x2,_0x35e166),f(0x3,_0x2b27e5(L)),f(0x4,_0x2043b7)],w);function Te(){var _0x2df0f5=_0x29f20e;const _0xbbbec0=_0x493516(I),_0x46e373=_0x493516(_0x2a2850),_0x3c8ff1=_0x21980c(()=>_0x46e373[_0x2df0f5(0xf4)](_0x70eb56['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x55ef6e,_0x3ef171]=_0x5cc44c(null),[_0x47f646,_0x51f219]=_0x5cc44c(h['IDLE']),_0x20c893=_0x411e20(null);return _0x3c174d(()=>(_0x3c8ff1&&_0xbbbec0['getLiveShareCoordinator'](_0x3c8ff1[_0x2df0f5(0xcd)]())[_0x2df0f5(0x121)](_0x185992=>{var _0x1bfd11=_0x2df0f5;_0x3ef171(_0x185992),_0x20c893[_0x1bfd11(0xe3)]=_0x185992[_0x1bfd11(0x13a)][_0x1bfd11(0x10a)](_0x5f3169=>{_0x51f219(_0x5f3169);});}),()=>{var _0x5ed03a=_0x2df0f5,_0x305773;(_0x305773=_0x20c893[_0x5ed03a(0xe3)])==null||_0x305773[_0x5ed03a(0xed)](),_0x20c893[_0x5ed03a(0xe3)]=null;}),[_0x3c8ff1,_0xbbbec0]),_0x55ef6e?_0x4aa79a(_0x552500,{'align':_0x2df0f5(0xdd),'disabled':_0x47f646===h[_0x2df0f5(0xbd)],'className':_0x2df0f5(0xc8),'overlay':_0x4aa79a($e,{'status':_0x47f646,'coordinator':_0x55ef6e}),'children':_0x4aa79a('button',{'className':_0x4f9fb3('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x47f646===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47f646!==h[_0x2df0f5(0xbd)]}),'type':_0x2df0f5(0x102),'children':_0x4aa79a(B,{'className':_0x2df0f5(0x135)})})}):null;}function $e(_0x572603){var _0x116ce2=_0x29f20e;const {status:_0x45b008,coordinator:_0x33d0df}=_0x572603;switch(_0x45b008){case h[_0x116ce2(0x11d)]:return _0x4aa79a(Fe,{'coordinator':_0x33d0df});case h['FOLLOWING']:return _0x4aa79a(He,{'coordinator':_0x33d0df});case h['NOT_FOLLOWING']:return _0x4aa79a(je,{'coordinator':_0x33d0df});case h['OFFLINE']:return _0x4aa79a(Ve,{});case h[_0x116ce2(0x11c)]:return _0x4aa79a(Ue,{'coordinator':_0x33d0df});default:return null;}}function Fe(_0x4cfd29){var _0x39513c=_0x29f20e;const {coordinator:_0x394c90}=_0x4cfd29;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x39513c(0xfb),{'className':_0x39513c(0x129),'children':'Present\x20this\x20document'}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x394c90['tryStartPresenting'](),'children':_0x39513c(0x147)})]});}function He(_0x1f9c85){var _0x522da6=_0x29f20e;const {coordinator:_0x1b384a}=_0x1f9c85;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x522da6(0xfb),{'className':_0x522da6(0x129),'children':_0x522da6(0xea)}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x1b384a[_0x522da6(0xa5)](),'children':'Stop\x20following'})]});}function je(_0x176ebc){var _0x5edf72=_0x29f20e;const {coordinator:_0x334fe8}=_0x176ebc;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5edf72(0xf3)}),_0x4aa79a(_0x55d525,{'variant':_0x5edf72(0xce),'onClick':()=>_0x334fe8[_0x5edf72(0xca)](),'children':_0x5edf72(0xff)})]});}function Ue(_0x1939fd){var _0x6aad7c=_0x29f20e;const {coordinator:_0x5de474}=_0x1939fd;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x6aad7c(0xfb),{'className':_0x6aad7c(0x129),'children':_0x6aad7c(0x126)}),_0x4aa79a(_0x55d525,{'variant':_0x6aad7c(0xaa),'onClick':()=>_0x5de474[_0x6aad7c(0xde)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2555fd=_0x29f20e;return _0x4aa79a(_0x2ff6ca,{'children':_0x2555fd(0xef)});}var Me=Object[_0x29f20e(0x10e)],ke=(_0x419ba8,_0x7ccd25,_0x4638d1,_0x17ce96)=>{for(var _0x18fa1e=_0x17ce96>0x1?void 0x0:_0x17ce96?Me(_0x7ccd25,_0x4638d1):_0x7ccd25,_0x48cdd7=_0x419ba8['length']-0x1,_0x2b2198;_0x48cdd7>=0x0;_0x48cdd7--)(_0x2b2198=_0x419ba8[_0x48cdd7])&&(_0x18fa1e=_0x2b2198(_0x18fa1e)||_0x18fa1e);return _0x18fa1e;},$=(_0xbec4c1,_0x4d5397)=>(_0x114b90,_0x32dc85)=>_0x4d5397(_0x114b90,_0x32dc85,_0xbec4c1);let b=class extends _0x3375e6{constructor(_0x3e3c48,_0x420b4a){var _0x47061f=_0x29f20e;super(),this[_0x47061f(0x133)]=_0x3e3c48,this[_0x47061f(0xf9)]=_0x420b4a,this[_0x47061f(0x134)]();}[_0x29f20e(0x134)](){var _0x1ca1d4=_0x29f20e;this[_0x1ca1d4(0xfd)](this[_0x1ca1d4(0xf9)][_0x1ca1d4(0xd9)](_0x29a15b['HEADER_MENU'],()=>_0x52be52(Te,this['_injector'])));}};b=ke([$(0x0,_0x2b27e5(_0x88f3f5)),$(0x1,_0x1735f8)],b);var Ge=Object[_0x29f20e(0xaf)],We=Object[_0x29f20e(0x10e)],Ye=(_0x2e6ed8,_0x3b3da4,_0x4a35ba)=>_0x3b3da4 in _0x2e6ed8?Ge(_0x2e6ed8,_0x3b3da4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a35ba}):_0x2e6ed8[_0x3b3da4]=_0x4a35ba,Be=(_0x10dfec,_0x4158ac,_0x5f54c9,_0x45798f)=>{var _0x19c3f9=_0x29f20e;for(var _0x16ed35=_0x45798f>0x1?void 0x0:_0x45798f?We(_0x4158ac,_0x5f54c9):_0x4158ac,_0x4fd026=_0x10dfec[_0x19c3f9(0x146)]-0x1,_0x169a3c;_0x4fd026>=0x0;_0x4fd026--)(_0x169a3c=_0x10dfec[_0x4fd026])&&(_0x16ed35=_0x169a3c(_0x16ed35)||_0x16ed35);return _0x16ed35;},F=(_0xf2c91c,_0x78b9f)=>(_0x198689,_0x13bb7f)=>_0x78b9f(_0x198689,_0x13bb7f,_0xf2c91c),J=(_0x2d8010,_0x1e4ff7,_0x54d086)=>Ye(_0x2d8010,typeof _0x1e4ff7!=_0x29f20e(0xe5)?_0x1e4ff7+'':_0x1e4ff7,_0x54d086);const Ze=_0x29f20e(0x117);let O=class extends _0xba14a{constructor(_0x1208c3=T,_0x545ad6,_0x488554){var _0x345d10=_0x29f20e;super(),this[_0x345d10(0xa4)]=_0x1208c3,this['_injector']=_0x545ad6,this['_configService']=_0x488554;const {..._0x274ee4}=_0x2f1e0d({},T,this[_0x345d10(0xa4)]);this['_configService'][_0x345d10(0x112)](Oe,_0x274ee4);}[_0x29f20e(0xb0)](){var _0x2e19a9=_0x29f20e;_0x4fada3(this['_injector'],_0x32112a([[L],[I],[m],[b]],this[_0x2e19a9(0xa4)][_0x2e19a9(0xc2)])),_0x132bf9(this[_0x2e19a9(0x133)],[[m]]);}[_0x29f20e(0xf0)](){_0x132bf9(this['_injector'],[[b]]);}};J(O,'type',_0x70eb56[_0x29f20e(0xec)]),J(O,_0x29f20e(0xe4),Ze),O=Be([_0x35339f(_0x2b8f23),F(0x1,_0x2b27e5(_0x88f3f5)),F(0x2,_0x35e166)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3552(_0x343e2d,_0x3439fa){var _0x340fb8=_0x340f();return _0x3552=function(_0x355285,_0x275386){_0x355285=_0x355285-0x1d3;var _0x10dd1a=_0x340fb8[_0x355285];return _0x10dd1a;},_0x3552(_0x343e2d,_0x3439fa);}function _0x340f(){var _0x56c39d=['UniverProLiveShare','FOLLOWING','symbol','getOwnPropertySymbols','takeUntil','DisposableCollection','use','PRESENTING','_handleOperation','LiveShareService','You\x27re\x20following\x20the\x20presenter','hasOwnProperty','_handleNewHost','getLiveShareCoordinator','rxjs','You\x27re\x20presenting\x20the\x20document','CommandType','toStringTag','function','IConfigService','add','offline','sheet','evenodd','SetZoomRatioOperation','BehaviorSubject','stopFollowing','_univerInstanceService','_fetchOperations','object','useDependency','_uiPartsService','LiveShareSingle','button','Fragment','Start','length','onStarting','LiveShareStatus','1116044UTUmWC','@univerjs/ui','_stopFollowing','init','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','mergeOverrideWithDependencies','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','send','xlink:href','univer-w-full\x20univer-mb-3\x20univer-text-sm','IUIPartsService','UniverDesign','getTypeOfUnitDisposed$','@univerjs/design','SessionStatus','React','_collabSessionService','shouldShareOperation','map','complete','concat','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','RxDisposable','onRendered','apply','Dropdown','presenting','operators','_mountLiveShare','NOT_FOLLOWING','UniverUi','stopPresenting','pluginName','className','OFFLINE','getOwnPropertyDescriptor','registerSharedOperation','none','not-following','extend','10826504dbsLvj','indexOf','toString','_config','_stopPresenting','_commandDisposable','forwardRef','getValue','SetWorksheetActiveOperation','_collabSession','SetScrollOperation','replace','1917320YoUraZ','startFollowing','params','Inject','pipe','substring','react','reverse','presenter','Button','Stop\x20presenting','LIVESHARE_TERMINATE','values','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','IUniverInstanceService','NEW_CHANGESETS','_entities','defs','_reporters','forEach','fill','useState','_handleOffline','UniverSheets','Injector','exports','@univerjs/sheets','disposeWithMe','getTypeOfUnitAdded$','parse','unitId','UniverProCollaborationClient','UniverIcon','_beIdle','UniverInstanceType','requireSession','@univerjs-pro/collaboration-client','DesktopLiveShareController','call','Start\x20following','delete','event$','getMemberID','getInitialStates','defineProperty','svg','type','has','_status$','registerComponent','idSuffix','toDisposable','entries','LiveShare','data','url(#$1','HEADER_MENU','icon','end','LiveShareController','unsubscribe','@univerjs/sheets-ui','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','useRef','defIds','CollaborationSessionService','IDLE','_presenter','2803717ehFhBn','@univerjs/core','_configService','getUnitId','_liveShareService','_status','mutations','UniverLiveSharePlugin','11478Bcpcfc','next','_startLiveShareCoordinator','status$','@univerjs-pro/collaboration','stringify','_unitID','UniverCollaborationClientPlugin','OPERATION','UniverSheetsUi','colorChannel1','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','displayName','amd','dispose','dispose$','assign','current','attrs','jsxs','_startFollowing','Stop\x20following','following','InsertSheetMutation','get','trim','_injector','operations','from','_sharedOperations','set','686hgMdYR','UNIVER_SHEET','Module','UniverProCollaboration','then','jsx','mask','string','9QcixNg','getCurrentTypeOfUnit$','LIVESHARE_OPERATION','rxjs/operators','ICommandService','children','CollaborationEvent','_startPresenting','Disposable','1em','_init','1627404qAQYrL','includes','_commandService','_handleOnline','idle','_handleNewChangeSets','executeCommand','tryStartPresenting','2019aYmOFG','LIVESHARE_NEW_HOST','touchDependencies','DependentOn','asObservable','LiveShareCoordinator','Plugin','live-share.config','path','prototype','subscribe','tag','clear','div','setConfig','throttleTime','UNIVER_LIVE_SHARE_PLUGIN','react/jsx-runtime'];_0x340f=function(){return _0x56c39d;};return _0x340f();}(function(_0x5b6e8e,_0x1b88d7){var _0x469434=_0x3552,_0x47874e=_0x5b6e8e();while(!![]){try{var _0x1f4f67=parseInt(_0x469434(0x2b1))/0x1+-parseInt(_0x469434(0x1db))/0x2*(-parseInt(_0x469434(0x1f6))/0x3)+parseInt(_0x469434(0x22f))/0x4+parseInt(_0x469434(0x263))/0x5+parseInt(_0x469434(0x1ee))/0x6+parseInt(_0x469434(0x2a9))/0x7+-parseInt(_0x469434(0x257))/0x8*(parseInt(_0x469434(0x1e3))/0x9);if(_0x1f4f67===_0x1b88d7)break;else _0x47874e['push'](_0x47874e['shift']());}catch(_0x5287cf){_0x47874e['push'](_0x47874e['shift']());}}}(_0x340f,0x3680c),function(_0x4397f4,_0x47c6b7){var _0xcebc4d=_0x3552;typeof exports==_0xcebc4d(0x225)&&typeof module<'u'?_0x47c6b7(exports,require(_0xcebc4d(0x288)),require(_0xcebc4d(0x2aa)),require(_0xcebc4d(0x27e)),require(_0xcebc4d(0x2a1)),require(_0xcebc4d(0x230)),require(_0xcebc4d(0x207)),require(_0xcebc4d(0x23c)),require(_0xcebc4d(0x269)),require(_0xcebc4d(0x2b5)),require(_0xcebc4d(0x216)),require(_0xcebc4d(0x1e6))):typeof define=='function'&&define[_0xcebc4d(0x2bf)]?define([_0xcebc4d(0x27d),_0xcebc4d(0x288),_0xcebc4d(0x2aa),_0xcebc4d(0x27e),'@univerjs/sheets-ui',_0xcebc4d(0x230),'react/jsx-runtime',_0xcebc4d(0x23c),_0xcebc4d(0x269),_0xcebc4d(0x2b5),_0xcebc4d(0x216),'rxjs/operators'],_0x47c6b7):(_0x4397f4=typeof globalThis<'u'?globalThis:_0x4397f4||self,_0x47c6b7(_0x4397f4[_0xcebc4d(0x208)]={},_0x4397f4[_0xcebc4d(0x283)],_0x4397f4['UniverCore'],_0x4397f4[_0xcebc4d(0x27b)],_0x4397f4[_0xcebc4d(0x2ba)],_0x4397f4[_0xcebc4d(0x24d)],_0x4397f4[_0xcebc4d(0x23e)],_0x4397f4[_0xcebc4d(0x23a)],_0x4397f4[_0xcebc4d(0x23e)],_0x4397f4[_0xcebc4d(0x1de)],_0x4397f4['rxjs'],_0x4397f4['rxjs'][_0xcebc4d(0x24a)]));}(this,function(_0x5f377a,_0x56ca1f,_0x3a08a9,_0x2cd002,_0x27a662,_0x4ea0ac,_0x527ea6,_0x952240,_0x260b4f,_0x252cd5,_0x35a61b,_0x49a08e){'use strict';var _0x189d26=_0x3552;var _0x1fadd4=Object[_0x189d26(0x290)],_0x3a06de=(_0x5e8895,_0x32f2e7,_0x388257)=>_0x32f2e7 in _0x5e8895?_0x1fadd4(_0x5e8895,_0x32f2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x388257}):_0x5e8895[_0x32f2e7]=_0x388257,_0x216708=(_0xc7fa0,_0x5a8f2b,_0x16022b)=>_0x3a06de(_0xc7fa0,typeof _0x5a8f2b!='symbol'?_0x5a8f2b+'':_0x5a8f2b,_0x16022b);const _0x316b68=_0x189d26(0x1fd),_0xb11c3b={};class _0x31f9ad extends _0x3a08a9[_0x189d26(0x1eb)]{constructor(){var _0x1397f7=_0x189d26;super(...arguments),_0x216708(this,_0x1397f7(0x1d9),new Set()),_0x216708(this,_0x1397f7(0x276),new Set());}['registerSharedOperation'](_0x1a5262){var _0x43fcfb=_0x189d26;return this['_sharedOperations'][_0x43fcfb(0x21c)](_0x1a5262),_0x3a08a9[_0x43fcfb(0x297)](()=>this[_0x43fcfb(0x1d9)][_0x43fcfb(0x28c)](_0x1a5262));}['registerInitialStateReporter'](_0x2b9319){var _0x5d3828=_0x189d26;return this[_0x5d3828(0x276)][_0x5d3828(0x21c)](_0x2b9319),_0x3a08a9['toDisposable'](()=>this[_0x5d3828(0x276)][_0x5d3828(0x28c)](_0x2b9319));}[_0x189d26(0x240)](_0x5c21bf){var _0x374f18=_0x189d26;return this[_0x374f18(0x1d9)]['has'](_0x5c21bf);}[_0x189d26(0x28f)](_0x77b429){var _0x43dfe6=_0x189d26;return Array[_0x43dfe6(0x1d8)](this[_0x43dfe6(0x276)])[_0x43dfe6(0x241)](_0x2ccda2=>_0x2ccda2(_0x77b429));}}var _0x671a1f=Object[_0x189d26(0x252)],_0x5eb9a8=(_0x35de4d,_0x2494cc,_0x1e75e6,_0x318f00)=>{var _0x42feef=_0x189d26;for(var _0x5304c0=_0x318f00>0x1?void 0x0:_0x318f00?_0x671a1f(_0x2494cc,_0x1e75e6):_0x2494cc,_0x14570e=_0x35de4d[_0x42feef(0x22c)]-0x1,_0x390a23;_0x14570e>=0x0;_0x14570e--)(_0x390a23=_0x35de4d[_0x14570e])&&(_0x5304c0=_0x390a23(_0x5304c0)||_0x5304c0);return _0x5304c0;},_0x658cf4=(_0x3278d7,_0x2b9a24)=>(_0x343c16,_0x2a86cb)=>_0x2b9a24(_0x343c16,_0x2a86cb,_0x3278d7);let _0x4df9a8=class extends _0x3a08a9[_0x189d26(0x1eb)]{constructor(_0x3a29f8){var _0xa5a5f2=_0x189d26;super(),this[_0xa5a5f2(0x2ad)]=_0x3a29f8,this[_0xa5a5f2(0x1ed)]();}['_init'](){var _0x4288c2=_0x189d26;[_0x27a662[_0x4288c2(0x220)]['id'],_0x27a662[_0x4288c2(0x261)]['id'],_0x2cd002[_0x4288c2(0x25f)]['id']][_0x4288c2(0x277)](_0x389d9d=>{var _0x140bfb=_0x4288c2;this[_0x140bfb(0x27f)](this['_liveShareService'][_0x140bfb(0x253)](_0x389d9d));});}};_0x4df9a8=_0x5eb9a8([_0x658cf4(0x0,_0x3a08a9[_0x189d26(0x266)](_0x31f9ad))],_0x4df9a8);var _0x39d288=function(){var _0x272d8a=_0x189d26;return _0x39d288=Object[_0x272d8a(0x2c2)]||function(_0x8a2680){var _0x578b33=_0x272d8a;for(var _0x14c157,_0x5910ce=0x1,_0x15ec96=arguments[_0x578b33(0x22c)];_0x5910ce<_0x15ec96;_0x5910ce++){_0x14c157=arguments[_0x5910ce];for(var _0xc8021a in _0x14c157)Object[_0x578b33(0x1ff)][_0x578b33(0x213)][_0x578b33(0x28a)](_0x14c157,_0xc8021a)&&(_0x8a2680[_0xc8021a]=_0x14c157[_0xc8021a]);}return _0x8a2680;},_0x39d288[_0x272d8a(0x247)](this,arguments);},_0x459a46=function(_0x2bf469,_0x24332e){var _0x43ce05=_0x189d26,_0x587b55={};for(var _0x20f98e in _0x2bf469)Object['prototype'][_0x43ce05(0x213)][_0x43ce05(0x28a)](_0x2bf469,_0x20f98e)&&_0x24332e[_0x43ce05(0x258)](_0x20f98e)<0x0&&(_0x587b55[_0x20f98e]=_0x2bf469[_0x20f98e]);if(_0x2bf469!=null&&typeof Object[_0x43ce05(0x20b)]==_0x43ce05(0x21a)){for(var _0x10ebf6=0x0,_0x20f98e=Object['getOwnPropertySymbols'](_0x2bf469);_0x10ebf6<_0x20f98e[_0x43ce05(0x22c)];_0x10ebf6++)_0x24332e['indexOf'](_0x20f98e[_0x10ebf6])<0x0&&Object[_0x43ce05(0x1ff)]['propertyIsEnumerable'][_0x43ce05(0x28a)](_0x2bf469,_0x20f98e[_0x10ebf6])&&(_0x587b55[_0x20f98e[_0x10ebf6]]=_0x2bf469[_0x20f98e[_0x10ebf6]]);}return _0x587b55;},_0x525e9b=_0x260b4f[_0x189d26(0x25d)](function(_0x57d9d9,_0x9dd97e){var _0xc1a604=_0x189d26,_0x1d902d=_0x57d9d9[_0xc1a604(0x29d)],_0x3c4a43=_0x57d9d9['id'],_0x13f5e2=_0x57d9d9[_0xc1a604(0x250)],_0x18a9c3=_0x57d9d9[_0xc1a604(0x256)],_0x81d2d=_0x459a46(_0x57d9d9,['icon','id',_0xc1a604(0x250),_0xc1a604(0x256)]),_0x481d81=_0xc1a604(0x2a2)[_0xc1a604(0x243)](_0x3c4a43,'\x20')[_0xc1a604(0x243)](_0x13f5e2||'')[_0xc1a604(0x1d5)](),_0x1e3f61=_0x260b4f[_0xc1a604(0x2a4)]('_'[_0xc1a604(0x243)](_0x484a37()));return _0x4ce49e(_0x1d902d,''['concat'](_0x3c4a43),{'defIds':_0x1d902d[_0xc1a604(0x2a5)],'idSuffix':_0x1e3f61[_0xc1a604(0x2c3)]},_0x39d288({'ref':_0x9dd97e,'className':_0x481d81},_0x81d2d),_0x18a9c3);});function _0x4ce49e(_0x5f6273,_0xe6cf9b,_0x4efe78,_0x27dbf1,_0x24197d){var _0x4315e8=_0x189d26;return _0x260b4f['createElement'](_0x5f6273['tag'],_0x39d288(_0x39d288({'key':_0xe6cf9b},_0x5a30b2(_0x5f6273,_0x4efe78,_0x24197d)),_0x27dbf1),(_0x413715(_0x5f6273,_0x4efe78)[_0x4315e8(0x1e8)]||[])['map'](function(_0x37e83e,_0x550c09){var _0x542aa8=_0x4315e8;return _0x4ce49e(_0x37e83e,''[_0x542aa8(0x243)](_0xe6cf9b,'-')['concat'](_0x5f6273[_0x542aa8(0x201)],'-')[_0x542aa8(0x243)](_0x550c09),_0x4efe78,void 0x0,_0x24197d);}));}function _0x5a30b2(_0x4129ce,_0x3d96ba,_0x1a56f7){var _0x5ac2aa=_0x189d26,_0xd9d1d1=_0x39d288({},_0x4129ce[_0x5ac2aa(0x2c4)]);_0x1a56f7!=null&&_0x1a56f7[_0x5ac2aa(0x2bb)]&&_0xd9d1d1[_0x5ac2aa(0x278)]==='colorChannel1'&&(_0xd9d1d1[_0x5ac2aa(0x278)]=_0x1a56f7[_0x5ac2aa(0x2bb)]),_0x4129ce[_0x5ac2aa(0x201)]==='mask'&&_0xd9d1d1['id']&&(_0xd9d1d1['id']=_0xd9d1d1['id']+_0x3d96ba[_0x5ac2aa(0x296)]),Object[_0x5ac2aa(0x298)](_0xd9d1d1)[_0x5ac2aa(0x277)](function(_0x1de335){var _0x57fe9d=_0x5ac2aa,_0x1dc049=_0x1de335[0x0],_0x1e10a3=_0x1de335[0x1];_0x1dc049===_0x57fe9d(0x1e1)&&typeof _0x1e10a3=='string'&&(_0xd9d1d1[_0x1dc049]=_0x1e10a3[_0x57fe9d(0x262)](/url\(#(.*)\)/,_0x57fe9d(0x29b)[_0x57fe9d(0x243)](_0x3d96ba['idSuffix'],')')));});var _0x13c94a=_0x3d96ba['defIds'];return!_0x13c94a||_0x13c94a[_0x5ac2aa(0x22c)]===0x0||(_0x4129ce[_0x5ac2aa(0x201)]===_0x5ac2aa(0x20e)&&_0xd9d1d1[_0x5ac2aa(0x237)]&&(_0xd9d1d1['xlink:href']=_0xd9d1d1[_0x5ac2aa(0x237)]+_0x3d96ba[_0x5ac2aa(0x296)]),Object['entries'](_0xd9d1d1)[_0x5ac2aa(0x277)](function(_0x4c8d6b){var _0x37d721=_0x5ac2aa,_0x2ff768=_0x4c8d6b[0x0],_0x2fdd47=_0x4c8d6b[0x1];typeof _0x2fdd47==_0x37d721(0x1e2)&&(_0xd9d1d1[_0x2ff768]=_0x2fdd47[_0x37d721(0x262)](/url\(#(.*)\)/,_0x37d721(0x29b)[_0x37d721(0x243)](_0x3d96ba[_0x37d721(0x296)],')')));})),_0xd9d1d1;}function _0x413715(_0x5c0de1,_0x1295f9){var _0x3ffc50=_0x189d26,_0x588fb1,_0x4d99b9=_0x1295f9[_0x3ffc50(0x2a5)];return!_0x4d99b9||_0x4d99b9[_0x3ffc50(0x22c)]===0x0?_0x5c0de1:_0x5c0de1[_0x3ffc50(0x201)]===_0x3ffc50(0x275)&&(!((_0x588fb1=_0x5c0de1[_0x3ffc50(0x1e8)])===null||_0x588fb1===void 0x0)&&_0x588fb1[_0x3ffc50(0x22c)])?_0x39d288(_0x39d288({},_0x5c0de1),{'children':_0x5c0de1[_0x3ffc50(0x1e8)]['map'](function(_0x5ac03b){var _0x5b6ecf=_0x3ffc50;return typeof _0x5ac03b[_0x5b6ecf(0x2c4)]['id']==_0x5b6ecf(0x1e2)&&_0x4d99b9&&_0x4d99b9[_0x5b6ecf(0x258)](_0x5ac03b[_0x5b6ecf(0x2c4)]['id'])>-0x1?_0x39d288(_0x39d288({},_0x5ac03b),{'attrs':_0x39d288(_0x39d288({},_0x5ac03b[_0x5b6ecf(0x2c4)]),{'id':_0x5ac03b[_0x5b6ecf(0x2c4)]['id']+_0x1295f9['idSuffix']})}):_0x5ac03b;})}):_0x5c0de1;}function _0x484a37(){var _0x246320=_0x189d26;return Math['random']()[_0x246320(0x259)](0x24)[_0x246320(0x268)](0x2,0x8);}_0x525e9b['displayName']=_0x189d26(0x284);var _0x5bc2e1={'tag':_0x189d26(0x291),'attrs':{'fill':_0x189d26(0x254),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x189d26(0x1ec)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x189d26(0x233)}},{'tag':_0x189d26(0x1fe),'attrs':{'fill':'currentColor','d':_0x189d26(0x235),'fillRule':_0x189d26(0x21f),'clipRule':_0x189d26(0x21f)}}]},_0x276ce5=_0x260b4f[_0x189d26(0x25d)](function(_0x4b80d3,_0x69da5f){var _0x121e98=_0x189d26;return _0x260b4f['createElement'](_0x525e9b,Object[_0x121e98(0x2c2)]({},_0x4b80d3,{'id':'live-share-single','ref':_0x69da5f,'icon':_0x5bc2e1}));});_0x276ce5[_0x189d26(0x2be)]=_0x189d26(0x228);var _0x3ec005=Object[_0x189d26(0x252)],_0x47f06e=(_0x4e7d26,_0x2d1f08,_0x674f22,_0x36d55d)=>{var _0x5e31b6=_0x189d26;for(var _0x44280b=_0x36d55d>0x1?void 0x0:_0x36d55d?_0x3ec005(_0x2d1f08,_0x674f22):_0x2d1f08,_0x21430e=_0x4e7d26[_0x5e31b6(0x22c)]-0x1,_0x459d77;_0x21430e>=0x0;_0x21430e--)(_0x459d77=_0x4e7d26[_0x21430e])&&(_0x44280b=_0x459d77(_0x44280b)||_0x44280b);return _0x44280b;},_0x26c3e8=(_0x5780d9,_0x2f8737)=>(_0x9aca53,_0x3ce2a1)=>_0x2f8737(_0x9aca53,_0x3ce2a1,_0x5780d9);_0x5f377a[_0x189d26(0x29f)]=class extends _0x3a08a9[_0x189d26(0x245)]{constructor(_0x52ad4f,_0x761db6,_0x1bf183){var _0x203280=_0x189d26;super(),_0x216708(this,_0x203280(0x274),new Map()),(this[_0x203280(0x223)]=_0x52ad4f,this[_0x203280(0x1d6)]=_0x761db6,this['_collabSessionService']=_0x1bf183,this[_0x203280(0x1ed)]());}async['getLiveShareCoordinator'](_0x51b0c1){var _0x25ce39=_0x189d26;return this[_0x25ce39(0x274)][_0x25ce39(0x293)](_0x51b0c1)||await this[_0x25ce39(0x2b3)](_0x51b0c1),this[_0x25ce39(0x274)][_0x25ce39(0x1d4)](_0x51b0c1);}[_0x189d26(0x1ed)](){var _0x34f3e7=_0x189d26;this[_0x34f3e7(0x223)][_0x34f3e7(0x280)](_0x3a08a9[_0x34f3e7(0x286)][_0x34f3e7(0x1dc)])['pipe'](_0x49a08e[_0x34f3e7(0x20c)](this[_0x34f3e7(0x2c1)]))['subscribe'](async _0x10e151=>{var _0x3029c2=_0x34f3e7;const _0x15dcc9=_0x10e151[_0x3029c2(0x2ac)]();this['_entities'][_0x3029c2(0x293)](_0x15dcc9)||this[_0x3029c2(0x2b3)](_0x15dcc9);}),this[_0x34f3e7(0x223)][_0x34f3e7(0x23b)](_0x3a08a9['UniverInstanceType']['UNIVER_SHEET'])[_0x34f3e7(0x267)](_0x49a08e['takeUntil'](this[_0x34f3e7(0x2c1)]))[_0x34f3e7(0x200)](_0x85dea1=>{var _0x1b01f9=_0x34f3e7;const _0x14cd1a=_0x85dea1[_0x1b01f9(0x2ac)](),_0x392dbc=this['_entities'][_0x1b01f9(0x1d4)](_0x14cd1a);_0x392dbc==null||_0x392dbc[_0x1b01f9(0x2c0)]();});}async['_startLiveShareCoordinator'](_0x1e725c){var _0x19ee20=_0x189d26;const _0x1d99b2=await this[_0x19ee20(0x23f)][_0x19ee20(0x287)](_0x1e725c),_0x1ca941=this[_0x19ee20(0x1d6)]['createInstance'](_0x5f377a[_0x19ee20(0x1fb)],_0x1e725c,_0x1d99b2);return _0x1ca941[_0x19ee20(0x232)](),this[_0x19ee20(0x274)]['set'](_0x1e725c,_0x1ca941),_0x1ca941;}},_0x5f377a[_0x189d26(0x29f)]=_0x47f06e([_0x26c3e8(0x0,_0x3a08a9[_0x189d26(0x272)]),_0x26c3e8(0x1,_0x3a08a9['Inject'](_0x3a08a9[_0x189d26(0x27c)])),_0x26c3e8(0x2,_0x3a08a9[_0x189d26(0x266)](_0x56ca1f[_0x189d26(0x2a6)]))],_0x5f377a[_0x189d26(0x29f)]);var _0x483e18=(_0x3e62da=>(_0x3e62da['OFFLINE']=_0x189d26(0x21d),_0x3e62da[_0x189d26(0x2a7)]=_0x189d26(0x1f2),_0x3e62da[_0x189d26(0x209)]='following',_0x3e62da[_0x189d26(0x24c)]=_0x189d26(0x255),_0x3e62da[_0x189d26(0x20f)]=_0x189d26(0x249),_0x3e62da))(_0x483e18||{});const _0x4d5672='SAME_OPERATION_SHARE_INTERVAL',_0x10b5d7=0xc8;_0x5f377a[_0x189d26(0x1fb)]=class extends _0x3a08a9['RxDisposable']{constructor(_0x439a71,_0xd6d585,_0x5b5350,_0x526a95,_0x31ecac){var _0x27e78b=_0x189d26;super(),_0x216708(this,_0x27e78b(0x294),new _0x35a61b[(_0x27e78b(0x221))](_0x27e78b(0x1f2))),_0x216708(this,_0x27e78b(0x2b4),this[_0x27e78b(0x294)][_0x27e78b(0x1fa)]()),_0x216708(this,'_init',!0x1),_0x216708(this,'_commandDisposable',null),_0x216708(this,_0x27e78b(0x2a8),null),(this['_unitID']=_0x439a71,this[_0x27e78b(0x260)]=_0xd6d585,this[_0x27e78b(0x2ab)]=_0x5b5350,this[_0x27e78b(0x2ad)]=_0x526a95,this[_0x27e78b(0x1f0)]=_0x31ecac);}get['_status'](){var _0x184cfe=_0x189d26;return this[_0x184cfe(0x294)][_0x184cfe(0x25e)]();}[_0x189d26(0x2c0)](){var _0x799a2f=_0x189d26,_0x345eae;(_0x345eae=this[_0x799a2f(0x25c)])==null||_0x345eae[_0x799a2f(0x2c0)](),this[_0x799a2f(0x294)]['next'](_0x799a2f(0x1f2)),this[_0x799a2f(0x294)]['complete']();}[_0x189d26(0x232)](){var _0x44293d=_0x189d26;this[_0x44293d(0x1ed)]||(this[_0x44293d(0x1ed)]=!0x0,this[_0x44293d(0x260)]['sessionStatus$']['pipe'](_0x49a08e[_0x44293d(0x20c)](this['dispose$']))['subscribe'](_0x55ce91=>{var _0x2775ce=_0x44293d;switch(_0x55ce91){case _0x56ca1f['SessionStatus']['OFFLINE']:this[_0x2775ce(0x27a)]();break;case _0x56ca1f[_0x2775ce(0x23d)]['ONLINE']:this[_0x2775ce(0x1f1)]();break;}}),this['_collabSession'][_0x44293d(0x28d)]['pipe'](_0x49a08e[_0x44293d(0x20c)](this['dispose$']))['subscribe'](_0x3d115e=>{var _0x5d94e3=_0x44293d;const {eventID:_0x2cee8e}=_0x3d115e;switch(_0x2cee8e){case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x1f7)]:this['_handleNewHost'](_0x3d115e);break;case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x1e5)]:this[_0x5d94e3(0x210)](_0x3d115e);break;case _0x252cd5[_0x5d94e3(0x1e9)]['LIVESHARE_TERMINATE']:this[_0x5d94e3(0x271)]();break;case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x273)]:this[_0x5d94e3(0x1f3)](_0x3d115e);break;}}));}['tryStartPresenting'](){var _0x3badcf=_0x189d26;this[_0x3badcf(0x260)]['send']({'eventID':_0x252cd5[_0x3badcf(0x1e9)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3badcf(0x2b7)]);}[_0x189d26(0x24e)](){var _0x218538=_0x189d26;this['_status']==='presenting'&&(this[_0x218538(0x294)][_0x218538(0x2b2)](_0x218538(0x1f2)),this[_0x218538(0x260)][_0x218538(0x236)]({'eventID':_0x252cd5[_0x218538(0x1e9)][_0x218538(0x26e)],'data':{'unitID':this[_0x218538(0x2b7)]}},this['_unitID']));}[_0x189d26(0x264)](){var _0x3b885d=_0x189d26;this[_0x3b885d(0x2ae)]===_0x3b885d(0x255)&&(this[_0x3b885d(0x294)][_0x3b885d(0x2b2)](_0x3b885d(0x2c8)),this[_0x3b885d(0x2c6)]());}['stopFollowing'](){var _0x44a120=_0x189d26;this[_0x44a120(0x2ae)]===_0x44a120(0x2c8)&&this[_0x44a120(0x231)]();}[_0x189d26(0x214)](_0xefc75f){var _0x1fb068=_0x189d26;const {presenter:_0x563f69}=_0xefc75f[_0x1fb068(0x29a)],_0xaff9ad=this['_collabSession']['getMemberID']();this[_0x1fb068(0x2a8)]=_0x563f69,_0x563f69===_0xaff9ad?(this['_stopFollowing'](),this[_0x1fb068(0x1ea)]()):this[_0x1fb068(0x2ae)]!==_0x1fb068(0x255)&&(this[_0x1fb068(0x25b)](),this[_0x1fb068(0x2c6)]());}[_0x189d26(0x224)](){var _0x57b70d=_0x189d26;const _0x883c85={'eventID':_0x252cd5[_0x57b70d(0x1e9)][_0x57b70d(0x270)]};this[_0x57b70d(0x260)][_0x57b70d(0x236)](_0x883c85,this[_0x57b70d(0x2b7)]);}['_handleTerminate'](){var _0x2f1cf6=_0x189d26;this['_presenter']=null,this[_0x2f1cf6(0x2ae)]!==_0x2f1cf6(0x249)&&this[_0x2f1cf6(0x285)]();}[_0x189d26(0x1f3)](_0x48a1e0){var _0x3ef08c=_0x189d26;if(this[_0x3ef08c(0x2ae)]===_0x3ef08c(0x2c8)&&this[_0x3ef08c(0x2a8)]===_0x48a1e0[_0x3ef08c(0x29a)]['memberID']){const _0x287d55=_0x252cd5['parseProtocolChangeset'](_0x48a1e0[_0x3ef08c(0x29a)])[_0x3ef08c(0x2af)][_0x3ef08c(0x26a)]()['find'](_0xd2e18d=>_0xd2e18d['id']===_0x2cd002[_0x3ef08c(0x1d3)]['id']);if(_0x287d55){const _0x3de4bf=_0x287d55[_0x3ef08c(0x265)][_0x3ef08c(0x282)],_0x3545c3=_0x287d55[_0x3ef08c(0x265)][_0x3ef08c(0x21e)]['id'];setTimeout(()=>{var _0x3435db=_0x3ef08c;this[_0x3435db(0x1f0)][_0x3435db(0x1f4)](_0x2cd002['SetWorksheetActiveOperation']['id'],{'unitId':_0x3de4bf,'subUnitId':_0x3545c3},{'fromCollab':!0x0});});}}}[_0x189d26(0x1ea)](){var _0x1d0381=_0x189d26;this['_status$'][_0x1d0381(0x2b2)](_0x1d0381(0x249));const _0x44907f=new Map(),_0x599f11=this['_commandDisposable']=new _0x3a08a9[(_0x1d0381(0x20d))]();_0x599f11[_0x1d0381(0x21c)](_0x3a08a9[_0x1d0381(0x297)](()=>{var _0x1a1b55=_0x1d0381;_0x44907f[_0x1a1b55(0x277)](_0x1e6f39=>_0x1e6f39[_0x1a1b55(0x242)]()),_0x44907f[_0x1a1b55(0x202)]();})),_0x599f11[_0x1d0381(0x21c)](this['_commandService']['onCommandExecuted'](_0x2870f0=>{var _0x54cf99=_0x1d0381,_0x1df0a3;if(_0x2870f0[_0x54cf99(0x292)]!==_0x3a08a9[_0x54cf99(0x218)][_0x54cf99(0x2b9)]||!this[_0x54cf99(0x2ad)][_0x54cf99(0x240)](_0x2870f0['id']))return;const {id:_0x1ae300}=_0x2870f0;let _0x1c1005;_0x44907f[_0x54cf99(0x293)](_0x1ae300)?_0x1c1005=_0x44907f['get'](_0x1ae300):(_0x1c1005=new _0x35a61b['Subject'](),_0x44907f[_0x54cf99(0x1da)](_0x1ae300,_0x1c1005),_0x1c1005[_0x54cf99(0x267)](_0x49a08e[_0x54cf99(0x205)]((_0x1df0a3=this[_0x54cf99(0x2ab)][_0x54cf99(0x2bc)](_0x4d5672))!=null?_0x1df0a3:_0x10b5d7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54cf99(0x200)](_0x10c697=>{var _0x19d63d=_0x54cf99;this[_0x19d63d(0x260)]['send']({'eventID':_0x252cd5[_0x19d63d(0x1e9)][_0x19d63d(0x1e5)],'data':{'unitID':this[_0x19d63d(0x2b7)],'operations':{[_0x10c697['id']]:{'id':_0x10c697['id'],'params':JSON[_0x19d63d(0x2b6)](_0x10c697['params'])}}}},this[_0x19d63d(0x2b7)]);})),_0x1c1005[_0x54cf99(0x2b2)](_0x2870f0);})),this[_0x1d0381(0x2ad)][_0x1d0381(0x28f)](this[_0x1d0381(0x2b7)])[_0x1d0381(0x277)](_0x17afbf=>this[_0x1d0381(0x260)][_0x1d0381(0x236)]({'eventID':_0x252cd5[_0x1d0381(0x1e9)][_0x1d0381(0x1e5)],'data':{'unitID':this[_0x1d0381(0x2b7)],'operations':{[_0x17afbf['id']]:{'id':_0x17afbf['id'],'params':JSON[_0x1d0381(0x2b6)](_0x17afbf[_0x1d0381(0x265)])}}}},this[_0x1d0381(0x2b7)]));}[_0x189d26(0x25b)](){var _0x5719ad=_0x189d26,_0x4364de;this[_0x5719ad(0x294)][_0x5719ad(0x2b2)](_0x5719ad(0x1f2)),(_0x4364de=this['_commandDisposable'])==null||_0x4364de[_0x5719ad(0x2c0)](),this[_0x5719ad(0x25c)]=null;}['_startFollowing'](){var _0x599cfe=_0x189d26,_0x2848ca;(_0x2848ca=this[_0x599cfe(0x25c)])==null||_0x2848ca[_0x599cfe(0x2c0)](),this[_0x599cfe(0x294)]['next'](_0x599cfe(0x2c8));}[_0x189d26(0x285)](){var _0x2b91ca=_0x189d26,_0x397965;this[_0x2b91ca(0x294)][_0x2b91ca(0x2b2)]('idle'),(_0x397965=this[_0x2b91ca(0x25c)])==null||_0x397965[_0x2b91ca(0x2c0)](),this[_0x2b91ca(0x25c)]=null;}[_0x189d26(0x231)](){var _0x40ac00=_0x189d26,_0x1d12be;this[_0x40ac00(0x294)][_0x40ac00(0x2b2)](_0x40ac00(0x255)),(_0x1d12be=this[_0x40ac00(0x25c)])==null||_0x1d12be[_0x40ac00(0x2c0)]();}['_handleOperation'](_0x32985a){var _0x422070=_0x189d26;if(['presenting',_0x422070(0x255),'offline'][_0x422070(0x1ef)](this[_0x422070(0x2ae)])||!_0x32985a[_0x422070(0x29a)][_0x422070(0x26b)]||_0x32985a[_0x422070(0x29a)][_0x422070(0x26b)]===this['_collabSession'][_0x422070(0x28e)]())return;this[_0x422070(0x2ae)]==='idle'&&this['_startFollowing']();const _0x476c65=_0x32985a[_0x422070(0x29a)][_0x422070(0x1d7)];Object[_0x422070(0x26f)](_0x476c65)[_0x422070(0x277)](_0xfc66f0=>{var _0x49a151=_0x422070;this['_commandService'][_0x49a151(0x1f4)](_0xfc66f0['id'],_0xfc66f0[_0x49a151(0x265)]?JSON[_0x49a151(0x281)](_0xfc66f0[_0x49a151(0x265)]):null,{'fromCollab':!0x0});});}[_0x189d26(0x27a)](){var _0xf6d55=_0x189d26,_0x21e50a;this[_0xf6d55(0x294)][_0xf6d55(0x2b2)]('offline'),(_0x21e50a=this['_commandDisposable'])==null||_0x21e50a[_0xf6d55(0x2c0)]();}[_0x189d26(0x1f1)](){var _0x41877b=_0x189d26;this[_0x41877b(0x294)][_0x41877b(0x2b2)]('idle'),this[_0x41877b(0x224)]();}},_0x5f377a[_0x189d26(0x1fb)]=_0x47f06e([_0x26c3e8(0x2,_0x3a08a9[_0x189d26(0x21b)]),_0x26c3e8(0x3,_0x3a08a9['Inject'](_0x31f9ad)),_0x26c3e8(0x4,_0x3a08a9[_0x189d26(0x1e7)])],_0x5f377a['LiveShareCoordinator']);function _0x27770f(){var _0x398bad=_0x189d26;const _0x2e5250=_0x4ea0ac[_0x398bad(0x226)](_0x5f377a[_0x398bad(0x29f)]),_0x17b082=_0x4ea0ac[_0x398bad(0x226)](_0x3a08a9[_0x398bad(0x272)]),_0x56dc57=_0x4ea0ac['useObservable'](()=>_0x17b082[_0x398bad(0x1e4)](_0x3a08a9['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4052f5,_0x197b24]=_0x260b4f['useState'](null),[_0x10213b,_0x1d3aaa]=_0x260b4f[_0x398bad(0x279)](_0x483e18[_0x398bad(0x2a7)]),_0x20f3eb=_0x260b4f[_0x398bad(0x2a4)](null);return _0x260b4f['useEffect'](()=>(_0x56dc57&&_0x2e5250[_0x398bad(0x215)](_0x56dc57['getUnitId']())[_0x398bad(0x1df)](_0xca67db=>{var _0x903dc4=_0x398bad;_0x197b24(_0xca67db),_0x20f3eb['current']=_0xca67db[_0x903dc4(0x2b4)][_0x903dc4(0x200)](_0xd991a3=>{_0x1d3aaa(_0xd991a3);});}),()=>{var _0x5ac6bf=_0x398bad,_0x1ce07d;(_0x1ce07d=_0x20f3eb[_0x5ac6bf(0x2c3)])==null||_0x1ce07d[_0x5ac6bf(0x2a0)](),_0x20f3eb['current']=null;}),[_0x56dc57,_0x2e5250]),_0x4052f5?_0x527ea6[_0x398bad(0x1e0)](_0x952240[_0x398bad(0x248)],{'align':_0x398bad(0x29e),'disabled':_0x10213b===_0x483e18[_0x398bad(0x251)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x527ea6[_0x398bad(0x1e0)](_0x4e1a50,{'status':_0x10213b,'coordinator':_0x4052f5}),'children':_0x527ea6['jsx']('button',{'className':_0x952240['clsx'](_0x398bad(0x244),{'univer-cursor-not-allowed':_0x10213b===_0x483e18['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10213b!==_0x483e18['OFFLINE']}),'type':_0x398bad(0x229),'children':_0x527ea6['jsx'](_0x276ce5,{'className':'univer-size-4'})})}):null;}function _0x4e1a50(_0x419d29){var _0xb14e53=_0x189d26;const {status:_0x10045b,coordinator:_0x57e1ee}=_0x419d29;switch(_0x10045b){case _0x483e18[_0xb14e53(0x2a7)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x5e231b,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x209)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x1cde66,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x24c)]:return _0x527ea6['jsx'](_0x23e13c,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x251)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x4f5f34,{});case _0x483e18[_0xb14e53(0x20f)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x5b8019,{'coordinator':_0x57e1ee});default:return null;}}function _0x5e231b(_0x1eb16b){var _0x5c1265=_0x189d26;const {coordinator:_0x4e4e74}=_0x1eb16b;return _0x527ea6[_0x5c1265(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x5c1265(0x1e0)](_0x5c1265(0x203),{'className':_0x5c1265(0x238),'children':'Present\x20this\x20document'}),_0x527ea6['jsx'](_0x952240[_0x5c1265(0x26c)],{'onClick':()=>_0x4e4e74[_0x5c1265(0x1f5)](),'children':_0x5c1265(0x22b)})]});}function _0x1cde66(_0x5ebe8e){var _0x15f5fb=_0x189d26;const {coordinator:_0x565532}=_0x5ebe8e;return _0x527ea6[_0x15f5fb(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x15f5fb(0x1e0)](_0x15f5fb(0x203),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15f5fb(0x212)}),_0x527ea6['jsx'](_0x952240[_0x15f5fb(0x26c)],{'onClick':()=>_0x565532[_0x15f5fb(0x222)](),'children':_0x15f5fb(0x2c7)})]});}function _0x23e13c(_0x5c50fe){var _0x46a300=_0x189d26;const {coordinator:_0x14d12b}=_0x5c50fe;return _0x527ea6[_0x46a300(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x46a300(0x1e0)](_0x46a300(0x203),{'className':_0x46a300(0x238),'children':_0x46a300(0x2bd)}),_0x527ea6[_0x46a300(0x1e0)](_0x952240[_0x46a300(0x26c)],{'variant':'text','onClick':()=>_0x14d12b[_0x46a300(0x264)](),'children':_0x46a300(0x28b)})]});}function _0x5b8019(_0x33c897){var _0x3265d4=_0x189d26;const {coordinator:_0x25b002}=_0x33c897;return _0x527ea6[_0x3265d4(0x2c5)](_0x527ea6[_0x3265d4(0x22a)],{'children':[_0x527ea6[_0x3265d4(0x1e0)](_0x3265d4(0x203),{'className':_0x3265d4(0x238),'children':_0x3265d4(0x217)}),_0x527ea6[_0x3265d4(0x1e0)](_0x952240[_0x3265d4(0x26c)],{'variant':'default','onClick':()=>_0x25b002['stopPresenting'](),'children':_0x3265d4(0x26d)})]});}function _0x4f5f34(){var _0x224867=_0x189d26;return _0x527ea6[_0x224867(0x1e0)](_0x527ea6[_0x224867(0x22a)],{'children':'You\x27are\x20offline.'});}var _0x53fac0=Object['getOwnPropertyDescriptor'],_0x30dc62=(_0x1e0f8c,_0x4fca7f,_0x244aeb,_0x255154)=>{var _0x15384b=_0x189d26;for(var _0x5922a3=_0x255154>0x1?void 0x0:_0x255154?_0x53fac0(_0x4fca7f,_0x244aeb):_0x4fca7f,_0x2d6af2=_0x1e0f8c[_0x15384b(0x22c)]-0x1,_0x38f2b4;_0x2d6af2>=0x0;_0x2d6af2--)(_0x38f2b4=_0x1e0f8c[_0x2d6af2])&&(_0x5922a3=_0x38f2b4(_0x5922a3)||_0x5922a3);return _0x5922a3;},_0x57adad=(_0x415dab,_0x1d2282)=>(_0x3043ae,_0x4e9c48)=>_0x1d2282(_0x3043ae,_0x4e9c48,_0x415dab);_0x5f377a[_0x189d26(0x289)]=class extends _0x3a08a9['Disposable']{constructor(_0x3f8518,_0x1e0d22){var _0x171f5a=_0x189d26;super(),this[_0x171f5a(0x1d6)]=_0x3f8518,this[_0x171f5a(0x227)]=_0x1e0d22,this[_0x171f5a(0x24b)]();}[_0x189d26(0x24b)](){var _0x19ea9d=_0x189d26;this['disposeWithMe'](this['_uiPartsService'][_0x19ea9d(0x295)](_0x4ea0ac['BuiltInUIPart'][_0x19ea9d(0x29c)],()=>_0x4ea0ac['connectInjector'](_0x27770f,this[_0x19ea9d(0x1d6)])));}},_0x5f377a[_0x189d26(0x289)]=_0x30dc62([_0x57adad(0x0,_0x3a08a9[_0x189d26(0x266)](_0x3a08a9[_0x189d26(0x27c)])),_0x57adad(0x1,_0x4ea0ac[_0x189d26(0x239)])],_0x5f377a[_0x189d26(0x289)]);var _0x531fbe=Object[_0x189d26(0x290)],_0x8f561a=Object[_0x189d26(0x252)],_0x5f00cd=(_0x4a56cd,_0xe32d2a,_0x4c827f)=>_0xe32d2a in _0x4a56cd?_0x531fbe(_0x4a56cd,_0xe32d2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c827f}):_0x4a56cd[_0xe32d2a]=_0x4c827f,_0x4daf52=(_0x20dd24,_0x3a37a6,_0x2e2c49,_0x1b934b)=>{var _0x3150a6=_0x189d26;for(var _0x20f139=_0x1b934b>0x1?void 0x0:_0x1b934b?_0x8f561a(_0x3a37a6,_0x2e2c49):_0x3a37a6,_0x4b24bc=_0x20dd24[_0x3150a6(0x22c)]-0x1,_0x31d8e7;_0x4b24bc>=0x0;_0x4b24bc--)(_0x31d8e7=_0x20dd24[_0x4b24bc])&&(_0x20f139=_0x31d8e7(_0x20f139)||_0x20f139);return _0x20f139;},_0x578b4b=(_0x427c5c,_0x3473e4)=>(_0xfbec5c,_0x56101e)=>_0x3473e4(_0xfbec5c,_0x56101e,_0x427c5c),_0x1e7c2e=(_0x12dea6,_0x59350c,_0x31a88e)=>_0x5f00cd(_0x12dea6,typeof _0x59350c!=_0x189d26(0x20a)?_0x59350c+'':_0x59350c,_0x31a88e);const _0x20dd6c=_0x189d26(0x206);_0x5f377a[_0x189d26(0x2b0)]=class extends _0x3a08a9[_0x189d26(0x1fc)]{constructor(_0x543606=_0xb11c3b,_0x26fc0a,_0x242a72){var _0x351fba=_0x189d26;super(),this['_config']=_0x543606,this[_0x351fba(0x1d6)]=_0x26fc0a,this[_0x351fba(0x2ab)]=_0x242a72;const {..._0xab6b41}=_0x3a08a9['merge']({},_0xb11c3b,this[_0x351fba(0x25a)]);this['_configService'][_0x351fba(0x204)](_0x316b68,_0xab6b41);}[_0x189d26(0x22d)](){var _0x262a0e=_0x189d26;_0x3a08a9['registerDependencies'](this['_injector'],_0x3a08a9[_0x262a0e(0x234)]([[_0x31f9ad],[_0x5f377a['LiveShareController']],[_0x4df9a8],[_0x5f377a[_0x262a0e(0x289)]]],this['_config']['override'])),_0x3a08a9[_0x262a0e(0x1f8)](this[_0x262a0e(0x1d6)],[[_0x4df9a8]]);}[_0x189d26(0x246)](){var _0x528007=_0x189d26;_0x3a08a9[_0x528007(0x1f8)](this[_0x528007(0x1d6)],[[_0x5f377a[_0x528007(0x289)]]]);}},_0x1e7c2e(_0x5f377a[_0x189d26(0x2b0)],_0x189d26(0x292),_0x3a08a9[_0x189d26(0x286)][_0x189d26(0x2a3)]),_0x1e7c2e(_0x5f377a[_0x189d26(0x2b0)],_0x189d26(0x24f),_0x20dd6c),_0x5f377a['UniverLiveSharePlugin']=_0x4daf52([_0x3a08a9[_0x189d26(0x1f9)](_0x56ca1f[_0x189d26(0x2b8)]),_0x578b4b(0x1,_0x3a08a9[_0x189d26(0x266)](_0x3a08a9[_0x189d26(0x27c)])),_0x578b4b(0x2,_0x3a08a9[_0x189d26(0x21b)])],_0x5f377a[_0x189d26(0x2b0)]),_0x5f377a[_0x189d26(0x299)]=_0x27770f,_0x5f377a[_0x189d26(0x211)]=_0x31f9ad,_0x5f377a[_0x189d26(0x22e)]=_0x483e18,Object[_0x189d26(0x290)](_0x5f377a,Symbol[_0x189d26(0x219)],{'value':_0x189d26(0x1dd)});}));
|
|
1
|
+
function _0x24a7(){var _0x49970e=['_stopPresenting','registerComponent','99IkKCLZ','_commandDisposable','reverse','defineProperty','attrs','forEach','registerSharedOperation','children','send','UniverIcon','data','IUIPartsService','NOT_FOLLOWING','UniverProCollaboration','offline','exports','parse','useObservable','_startPresenting','_unitID','current','concat','symbol','registerDependencies','UniverInstanceType','asObservable','_mountLiveShare','string','createElement','stringify','evenodd','You\x27are\x20offline.','_sharedOperations','toDisposable','Start\x20following','UniverCollaborationClientPlugin','UniverUi','find','LiveShareController','presenting','presenter','getInitialStates','throttleTime','status$','assign','params','type','11560nqlDCt','rxjs/operators','React','jsxs','operators','NEW_CHANGESETS','useState','has','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','LiveShareSingle','defIds','div','getMemberID','DependentOn','_collabSessionService','forwardRef','_stopFollowing','text','BuiltInUIPart','default','_injector','_startFollowing','extend','indexOf','_startLiveShareCoordinator','IDLE','_entities','_status','override','subscribe','getTypeOfUnitDisposed$','shouldShareOperation','rxjs','Stop\x20following','HEADER_MENU','colorChannel1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fill','RxDisposable','UniverLiveSharePlugin','_config','2564933wcvTBE','996006sKCxCb','get','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','executeCommand','getUnitId','_init','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_handleNewHost','icon','apply','dispose$','trim','Fragment','idSuffix','OFFLINE','mutations','amd','_handleOnline','Disposable','Module','_fetchOperations','_beIdle','Inject','LIVESHARE_NEW_HOST','hasOwnProperty','LIVESHARE_REQUEST_HOST','xlink:href','20hEicqh','mask','init','LiveShareService','LIVESHARE_TERMINATE','getConfig','_handleOffline','UniverSheetsUi','pipe','currentColor','_handleTerminate','@univerjs/sheets-ui','UNIVER_UNKNOWN','getLiveShareCoordinator','Dropdown','LIVESHARE_OPERATION','DesktopLiveShareController','_uiPartsService','onRendered','@univerjs/sheets','startFollowing','operations','toString','SessionStatus','map','CollaborationEvent','Stop\x20presenting','@univerjs-pro/collaboration-client','not-following','replace','clsx','630120wuNEjd','8811obRncs','stopPresenting','pluginName','_configService','getOwnPropertySymbols','22707AQbVsp','_univerInstanceService','_presenter','8utPewU','unitId','UniverProLiveShare','472552immFEz','SetWorksheetActiveOperation','url(#$1','_handleNewChangeSets','SAME_OPERATION_SHARE_INTERVAL','sheet','@univerjs/ui','SetZoomRatioOperation','complete','defs','InsertSheetMutation','Button','_handleOperation','substring','end','entries','add','IUniverInstanceService','tag','_commandService','dispose','_collabSession','next','_reporters','LiveShareCoordinator','Start','PRESENTING','jsx','@univerjs/core','svg','Injector','object','requireSession','path','className','mergeOverrideWithDependencies','0\x200\x2016\x2016','You\x27re\x20presenting\x20the\x20document','UniverProCollaborationClient','_liveShareService','onStarting','UniverSheets','event$','ICommandService','takeUntil','useRef','DisposableCollection','LiveShareStatus','button','getValue','call','CollaborationSessionService','random','following','connectInjector','1em','Subject','useDependency','registerInitialStateReporter','SetScrollOperation','getTypeOfUnitAdded$','live-share.config','_status$','clear','UNIVER_SHEET','length','58414NCqhHx','getOwnPropertyDescriptor','react/jsx-runtime','prototype','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','displayName','LiveShare','idle','univer-size-4'];_0x24a7=function(){return _0x49970e;};return _0x24a7();}function _0x4f41(_0x296c8f,_0x5380fe){var _0x24a7c9=_0x24a7();return _0x4f41=function(_0x4f41f4,_0x85e947){_0x4f41f4=_0x4f41f4-0x1f2;var _0x30b9ec=_0x24a7c9[_0x4f41f4];return _0x30b9ec;},_0x4f41(_0x296c8f,_0x5380fe);}(function(_0x5da506,_0x27ff28){var _0x59224d=_0x4f41,_0x515daa=_0x5da506();while(!![]){try{var _0xc31a1f=parseInt(_0x59224d(0x2d0))/0x1+-parseInt(_0x59224d(0x282))/0x2+parseInt(_0x59224d(0x288))/0x3*(parseInt(_0x59224d(0x28b))/0x4)+parseInt(_0x59224d(0x263))/0x5*(parseInt(_0x59224d(0x246))/0x6)+parseInt(_0x59224d(0x245))/0x7+parseInt(_0x59224d(0x28e))/0x8*(parseInt(_0x59224d(0x2dc))/0x9)+parseInt(_0x59224d(0x21c))/0xa*(-parseInt(_0x59224d(0x283))/0xb);if(_0xc31a1f===_0x27ff28)break;else _0x515daa['push'](_0x515daa['shift']());}catch(_0x1728eb){_0x515daa['push'](_0x515daa['shift']());}}}(_0x24a7,0x7d2ce),function(_0x2884de,_0x47bf95){var _0x54d2d3=_0x4f41;typeof exports==_0x54d2d3(0x2ad)&&typeof module<'u'?_0x47bf95(exports,require(_0x54d2d3(0x27e)),require(_0x54d2d3(0x2aa)),require(_0x54d2d3(0x276)),require(_0x54d2d3(0x26e)),require(_0x54d2d3(0x294)),require(_0x54d2d3(0x2d2)),require(_0x54d2d3(0x24d)),require('react'),require('@univerjs-pro/collaboration'),require(_0x54d2d3(0x23c)),require('rxjs/operators')):typeof define=='function'&&define[_0x54d2d3(0x258)]?define([_0x54d2d3(0x1fc),_0x54d2d3(0x27e),_0x54d2d3(0x2aa),_0x54d2d3(0x276),_0x54d2d3(0x26e),_0x54d2d3(0x294),_0x54d2d3(0x2d2),_0x54d2d3(0x24d),'react',_0x54d2d3(0x2d5),_0x54d2d3(0x23c),_0x54d2d3(0x21d)],_0x47bf95):(_0x2884de=typeof globalThis<'u'?globalThis:_0x2884de||self,_0x47bf95(_0x2884de[_0x54d2d3(0x28d)]={},_0x2884de[_0x54d2d3(0x2b4)],_0x2884de['UniverCore'],_0x2884de[_0x54d2d3(0x2b7)],_0x2884de[_0x54d2d3(0x26a)],_0x2884de[_0x54d2d3(0x211)],_0x2884de[_0x54d2d3(0x21e)],_0x2884de['UniverDesign'],_0x2884de[_0x54d2d3(0x21e)],_0x2884de[_0x54d2d3(0x1fa)],_0x2884de[_0x54d2d3(0x23c)],_0x2884de[_0x54d2d3(0x23c)][_0x54d2d3(0x220)]));}(this,function(_0xaf9644,_0x10d7f6,_0x26f4c5,_0x5a62f0,_0x4bcce3,_0x26cb04,_0x4feff4,_0x345dec,_0x3496e8,_0x1446b3,_0x718415,_0x4353d7){'use strict';var _0x5126f4=_0x4f41;var _0x5214d9=Object['defineProperty'],_0x147cc1=(_0x47b860,_0x854c8f,_0x3473e1)=>_0x854c8f in _0x47b860?_0x5214d9(_0x47b860,_0x854c8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3473e1}):_0x47b860[_0x854c8f]=_0x3473e1,_0x5fb210=(_0x4fdc23,_0x45f7a1,_0xb26016)=>_0x147cc1(_0x4fdc23,typeof _0x45f7a1!='symbol'?_0x45f7a1+'':_0x45f7a1,_0xb26016);const _0x475dfe=_0x5126f4(0x2cb),_0x15dc4e={};class _0x2130be extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(){var _0x568901=_0x5126f4;super(...arguments),_0x5fb210(this,_0x568901(0x20d),new Set()),_0x5fb210(this,_0x568901(0x2a5),new Set());}[_0x5126f4(0x1f3)](_0x25c0b7){var _0x11d809=_0x5126f4;return this['_sharedOperations'][_0x11d809(0x29e)](_0x25c0b7),_0x26f4c5[_0x11d809(0x20e)](()=>this[_0x11d809(0x20d)]['delete'](_0x25c0b7));}[_0x5126f4(0x2c8)](_0x131c94){var _0x1babf3=_0x5126f4;return this[_0x1babf3(0x2a5)]['add'](_0x131c94),_0x26f4c5[_0x1babf3(0x20e)](()=>this[_0x1babf3(0x2a5)]['delete'](_0x131c94));}[_0x5126f4(0x23b)](_0x9b9b3b){var _0x379eb5=_0x5126f4;return this[_0x379eb5(0x20d)][_0x379eb5(0x223)](_0x9b9b3b);}[_0x5126f4(0x216)](_0x55c8b7){var _0x1e2ae6=_0x5126f4;return Array['from'](this['_reporters'])[_0x1e2ae6(0x27b)](_0x41830b=>_0x41830b(_0x55c8b7));}}var _0xe5d8e9=Object[_0x5126f4(0x2d1)],_0x1e8b79=(_0x44bc4d,_0x56fc8a,_0x5826d6,_0x2c02b8)=>{var _0x2214d1=_0x5126f4;for(var _0x531249=_0x2c02b8>0x1?void 0x0:_0x2c02b8?_0xe5d8e9(_0x56fc8a,_0x5826d6):_0x56fc8a,_0x1d4e47=_0x44bc4d[_0x2214d1(0x2cf)]-0x1,_0x400d34;_0x1d4e47>=0x0;_0x1d4e47--)(_0x400d34=_0x44bc4d[_0x1d4e47])&&(_0x531249=_0x400d34(_0x531249)||_0x531249);return _0x531249;},_0x223ff5=(_0x12c362,_0xcfe5e5)=>(_0x3bf46e,_0x5a9387)=>_0xcfe5e5(_0x3bf46e,_0x5a9387,_0x12c362);let _0x1c41a8=class extends _0x26f4c5['Disposable']{constructor(_0x26acfa){var _0x29d24c=_0x5126f4;super(),this[_0x29d24c(0x2b5)]=_0x26acfa,this['_init']();}['_init'](){var _0x16c351=_0x5126f4;[_0x4bcce3[_0x16c351(0x295)]['id'],_0x4bcce3[_0x16c351(0x2c9)]['id'],_0x5a62f0['SetWorksheetActiveOperation']['id']][_0x16c351(0x1f2)](_0x36a734=>{var _0x1fc8ca=_0x16c351;this['disposeWithMe'](this[_0x1fc8ca(0x2b5)][_0x1fc8ca(0x1f3)](_0x36a734));});}};_0x1c41a8=_0x1e8b79([_0x223ff5(0x0,_0x26f4c5['Inject'](_0x2130be))],_0x1c41a8);var _0xd9be62=function(){var _0x3fa45=_0x5126f4;return _0xd9be62=Object[_0x3fa45(0x219)]||function(_0xb710c0){var _0x126e94=_0x3fa45;for(var _0x1e4057,_0x533104=0x1,_0x5660bf=arguments['length'];_0x533104<_0x5660bf;_0x533104++){_0x1e4057=arguments[_0x533104];for(var _0x2c49c2 in _0x1e4057)Object['prototype']['hasOwnProperty'][_0x126e94(0x2c0)](_0x1e4057,_0x2c49c2)&&(_0xb710c0[_0x2c49c2]=_0x1e4057[_0x2c49c2]);}return _0xb710c0;},_0xd9be62[_0x3fa45(0x251)](this,arguments);},_0x328d71=function(_0x4553d0,_0x79bf4){var _0x12c8eb=_0x5126f4,_0x1b7ddc={};for(var _0x2572a6 in _0x4553d0)Object[_0x12c8eb(0x2d3)][_0x12c8eb(0x260)][_0x12c8eb(0x2c0)](_0x4553d0,_0x2572a6)&&_0x79bf4[_0x12c8eb(0x233)](_0x2572a6)<0x0&&(_0x1b7ddc[_0x2572a6]=_0x4553d0[_0x2572a6]);if(_0x4553d0!=null&&typeof Object[_0x12c8eb(0x287)]=='function'){for(var _0x4374db=0x0,_0x2572a6=Object[_0x12c8eb(0x287)](_0x4553d0);_0x4374db<_0x2572a6[_0x12c8eb(0x2cf)];_0x4374db++)_0x79bf4[_0x12c8eb(0x233)](_0x2572a6[_0x4374db])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4553d0,_0x2572a6[_0x4374db])&&(_0x1b7ddc[_0x2572a6[_0x4374db]]=_0x4553d0[_0x2572a6[_0x4374db]]);}return _0x1b7ddc;},_0x117f26=_0x3496e8[_0x5126f4(0x22b)](function(_0x40e1fb,_0x4ed2e6){var _0xbb0bef=_0x5126f4,_0x39d007=_0x40e1fb[_0xbb0bef(0x250)],_0x474004=_0x40e1fb['id'],_0x50a75b=_0x40e1fb[_0xbb0bef(0x2b0)],_0x203cc0=_0x40e1fb[_0xbb0bef(0x232)],_0x4e63da=_0x328d71(_0x40e1fb,[_0xbb0bef(0x250),'id',_0xbb0bef(0x2b0),_0xbb0bef(0x232)]),_0x29c009='univerjs-icon\x20univerjs-icon-'[_0xbb0bef(0x202)](_0x474004,'\x20')['concat'](_0x50a75b||'')[_0xbb0bef(0x253)](),_0x490c6d=_0x3496e8[_0xbb0bef(0x2bb)]('_'[_0xbb0bef(0x202)](_0x42a3ae()));return _0x161d98(_0x39d007,''[_0xbb0bef(0x202)](_0x474004),{'defIds':_0x39d007[_0xbb0bef(0x226)],'idSuffix':_0x490c6d[_0xbb0bef(0x201)]},_0xd9be62({'ref':_0x4ed2e6,'className':_0x29c009},_0x4e63da),_0x203cc0);});function _0x161d98(_0x1f5889,_0x5b96f9,_0x412dc6,_0x387364,_0x3f9e2f){var _0x2e9419=_0x5126f4;return _0x3496e8[_0x2e9419(0x209)](_0x1f5889[_0x2e9419(0x2a0)],_0xd9be62(_0xd9be62({'key':_0x5b96f9},_0x28bbde(_0x1f5889,_0x412dc6,_0x3f9e2f)),_0x387364),(_0x28f56a(_0x1f5889,_0x412dc6)['children']||[])[_0x2e9419(0x27b)](function(_0x28e525,_0x554c0c){var _0x191008=_0x2e9419;return _0x161d98(_0x28e525,''['concat'](_0x5b96f9,'-')['concat'](_0x1f5889[_0x191008(0x2a0)],'-')[_0x191008(0x202)](_0x554c0c),_0x412dc6,void 0x0,_0x3f9e2f);}));}function _0x28bbde(_0x3a2db0,_0x566d14,_0x2d0773){var _0x24a0da=_0x5126f4,_0x3fac62=_0xd9be62({},_0x3a2db0[_0x24a0da(0x2e0)]);_0x2d0773!=null&&_0x2d0773[_0x24a0da(0x23f)]&&_0x3fac62[_0x24a0da(0x241)]===_0x24a0da(0x23f)&&(_0x3fac62['fill']=_0x2d0773[_0x24a0da(0x23f)]),_0x3a2db0[_0x24a0da(0x2a0)]===_0x24a0da(0x264)&&_0x3fac62['id']&&(_0x3fac62['id']=_0x3fac62['id']+_0x566d14[_0x24a0da(0x255)]),Object[_0x24a0da(0x29d)](_0x3fac62)[_0x24a0da(0x1f2)](function(_0xd629c3){var _0x47e81a=_0x24a0da,_0x310374=_0xd629c3[0x0],_0x36a018=_0xd629c3[0x1];_0x310374===_0x47e81a(0x264)&&typeof _0x36a018==_0x47e81a(0x208)&&(_0x3fac62[_0x310374]=_0x36a018[_0x47e81a(0x280)](/url\(#(.*)\)/,'url(#$1'[_0x47e81a(0x202)](_0x566d14[_0x47e81a(0x255)],')')));});var _0x1f9469=_0x566d14[_0x24a0da(0x226)];return!_0x1f9469||_0x1f9469[_0x24a0da(0x2cf)]===0x0||(_0x3a2db0[_0x24a0da(0x2a0)]==='use'&&_0x3fac62[_0x24a0da(0x262)]&&(_0x3fac62['xlink:href']=_0x3fac62[_0x24a0da(0x262)]+_0x566d14[_0x24a0da(0x255)]),Object['entries'](_0x3fac62)['forEach'](function(_0x33f747){var _0x3ee3a8=_0x24a0da,_0xa5d173=_0x33f747[0x0],_0x16b50b=_0x33f747[0x1];typeof _0x16b50b=='string'&&(_0x3fac62[_0xa5d173]=_0x16b50b['replace'](/url\(#(.*)\)/,_0x3ee3a8(0x290)[_0x3ee3a8(0x202)](_0x566d14['idSuffix'],')')));})),_0x3fac62;}function _0x28f56a(_0x58782d,_0x40531b){var _0x179b9a=_0x5126f4,_0x4c3f61,_0x597ef8=_0x40531b[_0x179b9a(0x226)];return!_0x597ef8||_0x597ef8[_0x179b9a(0x2cf)]===0x0?_0x58782d:_0x58782d[_0x179b9a(0x2a0)]===_0x179b9a(0x297)&&(!((_0x4c3f61=_0x58782d[_0x179b9a(0x1f4)])===null||_0x4c3f61===void 0x0)&&_0x4c3f61[_0x179b9a(0x2cf)])?_0xd9be62(_0xd9be62({},_0x58782d),{'children':_0x58782d[_0x179b9a(0x1f4)]['map'](function(_0x4a3587){var _0x57bb10=_0x179b9a;return typeof _0x4a3587[_0x57bb10(0x2e0)]['id']==_0x57bb10(0x208)&&_0x597ef8&&_0x597ef8[_0x57bb10(0x233)](_0x4a3587[_0x57bb10(0x2e0)]['id'])>-0x1?_0xd9be62(_0xd9be62({},_0x4a3587),{'attrs':_0xd9be62(_0xd9be62({},_0x4a3587[_0x57bb10(0x2e0)]),{'id':_0x4a3587[_0x57bb10(0x2e0)]['id']+_0x40531b['idSuffix']})}):_0x4a3587;})}):_0x58782d;}function _0x42a3ae(){var _0x178ae5=_0x5126f4;return Math[_0x178ae5(0x2c2)]()[_0x178ae5(0x279)](0x24)[_0x178ae5(0x29b)](0x2,0x8);}_0x117f26[_0x5126f4(0x2d6)]=_0x5126f4(0x1f6);var _0x573a8e={'tag':_0x5126f4(0x2ab),'attrs':{'fill':'none','viewBox':_0x5126f4(0x2b2),'width':_0x5126f4(0x2c5),'height':_0x5126f4(0x2c5)},'children':[{'tag':_0x5126f4(0x2af),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5126f4(0x2af),'attrs':{'fill':_0x5126f4(0x26c),'d':_0x5126f4(0x240),'fillRule':_0x5126f4(0x20b),'clipRule':'evenodd'}}]},_0x2d038f=_0x3496e8[_0x5126f4(0x22b)](function(_0x19dffc,_0x3dcffb){var _0x2cea5f=_0x5126f4;return _0x3496e8[_0x2cea5f(0x209)](_0x117f26,Object['assign']({},_0x19dffc,{'id':'live-share-single','ref':_0x3dcffb,'icon':_0x573a8e}));});_0x2d038f[_0x5126f4(0x2d6)]=_0x5126f4(0x225);var _0x5b277f=Object[_0x5126f4(0x2d1)],_0x55f792=(_0x3e5880,_0x501614,_0xbe6c2b,_0x493eed)=>{for(var _0x247df3=_0x493eed>0x1?void 0x0:_0x493eed?_0x5b277f(_0x501614,_0xbe6c2b):_0x501614,_0x261131=_0x3e5880['length']-0x1,_0xe275f9;_0x261131>=0x0;_0x261131--)(_0xe275f9=_0x3e5880[_0x261131])&&(_0x247df3=_0xe275f9(_0x247df3)||_0x247df3);return _0x247df3;},_0x54ef66=(_0x2f5aed,_0x697193)=>(_0x1e134d,_0x582f72)=>_0x697193(_0x1e134d,_0x582f72,_0x2f5aed);_0xaf9644[_0x5126f4(0x213)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x6e86b1,_0x24398c,_0x5cee79){var _0x55467f=_0x5126f4;super(),_0x5fb210(this,_0x55467f(0x236),new Map()),(this[_0x55467f(0x289)]=_0x6e86b1,this[_0x55467f(0x230)]=_0x24398c,this['_collabSessionService']=_0x5cee79,this['_init']());}async[_0x5126f4(0x270)](_0x263bce){var _0x2a96d9=_0x5126f4;return this[_0x2a96d9(0x236)]['has'](_0x263bce)||await this[_0x2a96d9(0x234)](_0x263bce),this[_0x2a96d9(0x236)][_0x2a96d9(0x247)](_0x263bce);}[_0x5126f4(0x24c)](){var _0x3db04c=_0x5126f4;this[_0x3db04c(0x289)][_0x3db04c(0x2ca)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](async _0x19277f=>{var _0x9bce07=_0x3db04c;const _0x13722e=_0x19277f[_0x9bce07(0x24b)]();this[_0x9bce07(0x236)]['has'](_0x13722e)||this[_0x9bce07(0x234)](_0x13722e);}),this['_univerInstanceService'][_0x3db04c(0x23a)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](_0x23ff66=>{var _0x2368bd=_0x3db04c;const _0x5183b0=_0x23ff66[_0x2368bd(0x24b)](),_0x13da1c=this[_0x2368bd(0x236)][_0x2368bd(0x247)](_0x5183b0);_0x13da1c==null||_0x13da1c['dispose']();});}async['_startLiveShareCoordinator'](_0x1c72e9){var _0xdf634a=_0x5126f4;const _0x4621e7=await this[_0xdf634a(0x22a)][_0xdf634a(0x2ae)](_0x1c72e9),_0x276f1e=this['_injector']['createInstance'](_0xaf9644[_0xdf634a(0x2a6)],_0x1c72e9,_0x4621e7);return _0x276f1e[_0xdf634a(0x265)](),this[_0xdf634a(0x236)]['set'](_0x1c72e9,_0x276f1e),_0x276f1e;}},_0xaf9644[_0x5126f4(0x213)]=_0x55f792([_0x54ef66(0x0,_0x26f4c5[_0x5126f4(0x29f)]),_0x54ef66(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x54ef66(0x2,_0x26f4c5[_0x5126f4(0x25e)](_0x10d7f6[_0x5126f4(0x2c1)]))],_0xaf9644[_0x5126f4(0x213)]);var _0x2fa56f=(_0x3eacc0=>(_0x3eacc0[_0x5126f4(0x256)]='offline',_0x3eacc0[_0x5126f4(0x235)]=_0x5126f4(0x2d8),_0x3eacc0['FOLLOWING']=_0x5126f4(0x2c3),_0x3eacc0[_0x5126f4(0x1f9)]=_0x5126f4(0x27f),_0x3eacc0[_0x5126f4(0x2a8)]=_0x5126f4(0x214),_0x3eacc0))(_0x2fa56f||{});const _0x22144d=_0x5126f4(0x292),_0x5de814=0xc8;_0xaf9644[_0x5126f4(0x2a6)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x300054,_0x3ac2a1,_0x11acca,_0x8ae16a,_0x35143d){var _0x401ee8=_0x5126f4;super(),_0x5fb210(this,'_status$',new _0x718415[(_0x401ee8(0x248))](_0x401ee8(0x2d8))),_0x5fb210(this,_0x401ee8(0x218),this[_0x401ee8(0x2cc)][_0x401ee8(0x206)]()),_0x5fb210(this,_0x401ee8(0x24c),!0x1),_0x5fb210(this,'_commandDisposable',null),_0x5fb210(this,_0x401ee8(0x28a),null),(this[_0x401ee8(0x200)]=_0x300054,this[_0x401ee8(0x2a3)]=_0x3ac2a1,this[_0x401ee8(0x286)]=_0x11acca,this['_liveShareService']=_0x8ae16a,this[_0x401ee8(0x2a1)]=_0x35143d);}get[_0x5126f4(0x237)](){var _0x36d953=_0x5126f4;return this[_0x36d953(0x2cc)][_0x36d953(0x2bf)]();}[_0x5126f4(0x2a2)](){var _0x388d05=_0x5126f4,_0x4c3b7c;(_0x4c3b7c=this[_0x388d05(0x2dd)])==null||_0x4c3b7c[_0x388d05(0x2a2)](),this[_0x388d05(0x2cc)][_0x388d05(0x2a4)](_0x388d05(0x2d8)),this['_status$'][_0x388d05(0x296)]();}['init'](){var _0x20df91=_0x5126f4;this['_init']||(this[_0x20df91(0x24c)]=!0x0,this[_0x20df91(0x2a3)]['sessionStatus$'][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0x27f186=>{var _0x7d1f03=_0x20df91;switch(_0x27f186){case _0x10d7f6[_0x7d1f03(0x27a)]['OFFLINE']:this[_0x7d1f03(0x269)]();break;case _0x10d7f6['SessionStatus']['ONLINE']:this[_0x7d1f03(0x259)]();break;}}),this[_0x20df91(0x2a3)][_0x20df91(0x2b8)][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0xfb7719=>{var _0x179d72=_0x20df91;const {eventID:_0x1d667e}=_0xfb7719;switch(_0x1d667e){case _0x1446b3['CollaborationEvent'][_0x179d72(0x25f)]:this[_0x179d72(0x24f)](_0xfb7719);break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x272)]:this[_0x179d72(0x29a)](_0xfb7719);break;case _0x1446b3['CollaborationEvent'][_0x179d72(0x267)]:this[_0x179d72(0x26d)]();break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x221)]:this[_0x179d72(0x291)](_0xfb7719);break;}}));}['tryStartPresenting'](){var _0xa549b5=_0x5126f4;this[_0xa549b5(0x2a3)][_0xa549b5(0x1f5)]({'eventID':_0x1446b3[_0xa549b5(0x27c)][_0xa549b5(0x261)],'data':{'unitID':this[_0xa549b5(0x200)],'userID':this[_0xa549b5(0x2a3)]['getMemberID']()}},this[_0xa549b5(0x200)]);}[_0x5126f4(0x284)](){var _0x1bc747=_0x5126f4;this[_0x1bc747(0x237)]===_0x1bc747(0x214)&&(this[_0x1bc747(0x2cc)][_0x1bc747(0x2a4)]('idle'),this['_collabSession']['send']({'eventID':_0x1446b3[_0x1bc747(0x27c)][_0x1bc747(0x267)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x3b3128=_0x5126f4;this[_0x3b3128(0x237)]==='not-following'&&(this[_0x3b3128(0x2cc)][_0x3b3128(0x2a4)](_0x3b3128(0x2c3)),this[_0x3b3128(0x231)]());}['stopFollowing'](){var _0x4c2270=_0x5126f4;this['_status']===_0x4c2270(0x2c3)&&this[_0x4c2270(0x22c)]();}[_0x5126f4(0x24f)](_0x5bae7f){var _0x26f2c6=_0x5126f4;const {presenter:_0x250498}=_0x5bae7f[_0x26f2c6(0x1f7)],_0x63af27=this['_collabSession']['getMemberID']();this['_presenter']=_0x250498,_0x250498===_0x63af27?(this[_0x26f2c6(0x22c)](),this[_0x26f2c6(0x1ff)]()):this['_status']!==_0x26f2c6(0x27f)&&(this[_0x26f2c6(0x2da)](),this['_startFollowing']());}[_0x5126f4(0x25c)](){var _0x10ace6=_0x5126f4;const _0x321374={'eventID':_0x1446b3['CollaborationEvent'][_0x10ace6(0x249)]};this[_0x10ace6(0x2a3)][_0x10ace6(0x1f5)](_0x321374,this[_0x10ace6(0x200)]);}[_0x5126f4(0x26d)](){var _0x4e0e9a=_0x5126f4;this[_0x4e0e9a(0x28a)]=null,this[_0x4e0e9a(0x237)]!==_0x4e0e9a(0x214)&&this[_0x4e0e9a(0x25d)]();}[_0x5126f4(0x291)](_0x2fa44d){var _0x1cac65=_0x5126f4;if(this[_0x1cac65(0x237)]===_0x1cac65(0x2c3)&&this[_0x1cac65(0x28a)]===_0x2fa44d[_0x1cac65(0x1f7)]['memberID']){const _0x83a48d=_0x1446b3['parseProtocolChangeset'](_0x2fa44d[_0x1cac65(0x1f7)])[_0x1cac65(0x257)][_0x1cac65(0x2de)]()[_0x1cac65(0x212)](_0xa8415b=>_0xa8415b['id']===_0x5a62f0[_0x1cac65(0x298)]['id']);if(_0x83a48d){const _0x33404c=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x28c)],_0xf42309=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x293)]['id'];setTimeout(()=>{var _0x22d371=_0x1cac65;this[_0x22d371(0x2a1)][_0x22d371(0x24a)](_0x5a62f0[_0x22d371(0x28f)]['id'],{'unitId':_0x33404c,'subUnitId':_0xf42309},{'fromCollab':!0x0});});}}}[_0x5126f4(0x1ff)](){var _0xc95e6b=_0x5126f4;this[_0xc95e6b(0x2cc)][_0xc95e6b(0x2a4)](_0xc95e6b(0x214));const _0x5ac82d=new Map(),_0x37393c=this['_commandDisposable']=new _0x26f4c5[(_0xc95e6b(0x2bc))]();_0x37393c[_0xc95e6b(0x29e)](_0x26f4c5[_0xc95e6b(0x20e)](()=>{var _0x303e00=_0xc95e6b;_0x5ac82d['forEach'](_0x12c2a2=>_0x12c2a2[_0x303e00(0x296)]()),_0x5ac82d[_0x303e00(0x2cd)]();})),_0x37393c[_0xc95e6b(0x29e)](this['_commandService']['onCommandExecuted'](_0x23219f=>{var _0x4281d2=_0xc95e6b,_0x3dcc18;if(_0x23219f[_0x4281d2(0x21b)]!==_0x26f4c5['CommandType']['OPERATION']||!this[_0x4281d2(0x2b5)][_0x4281d2(0x23b)](_0x23219f['id']))return;const {id:_0x5953be}=_0x23219f;let _0x36eaff;_0x5ac82d[_0x4281d2(0x223)](_0x5953be)?_0x36eaff=_0x5ac82d[_0x4281d2(0x247)](_0x5953be):(_0x36eaff=new _0x718415[(_0x4281d2(0x2c6))](),_0x5ac82d['set'](_0x5953be,_0x36eaff),_0x36eaff['pipe'](_0x4353d7[_0x4281d2(0x217)]((_0x3dcc18=this['_configService'][_0x4281d2(0x268)](_0x22144d))!=null?_0x3dcc18:_0x5de814,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4281d2(0x239)](_0x3fdf0a=>{var _0x3bd1f1=_0x4281d2;this['_collabSession'][_0x3bd1f1(0x1f5)]({'eventID':_0x1446b3[_0x3bd1f1(0x27c)][_0x3bd1f1(0x272)],'data':{'unitID':this[_0x3bd1f1(0x200)],'operations':{[_0x3fdf0a['id']]:{'id':_0x3fdf0a['id'],'params':JSON[_0x3bd1f1(0x20a)](_0x3fdf0a[_0x3bd1f1(0x21a)])}}}},this['_unitID']);})),_0x36eaff['next'](_0x23219f);})),this[_0xc95e6b(0x2b5)][_0xc95e6b(0x216)](this[_0xc95e6b(0x200)])[_0xc95e6b(0x1f2)](_0x2d5b77=>this['_collabSession'][_0xc95e6b(0x1f5)]({'eventID':_0x1446b3[_0xc95e6b(0x27c)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2d5b77['id']]:{'id':_0x2d5b77['id'],'params':JSON['stringify'](_0x2d5b77[_0xc95e6b(0x21a)])}}}},this[_0xc95e6b(0x200)]));}['_stopPresenting'](){var _0x155017=_0x5126f4,_0x4bc1c2;this[_0x155017(0x2cc)][_0x155017(0x2a4)](_0x155017(0x2d8)),(_0x4bc1c2=this[_0x155017(0x2dd)])==null||_0x4bc1c2[_0x155017(0x2a2)](),this['_commandDisposable']=null;}[_0x5126f4(0x231)](){var _0x4827ba=_0x5126f4,_0x2be5b2;(_0x2be5b2=this[_0x4827ba(0x2dd)])==null||_0x2be5b2[_0x4827ba(0x2a2)](),this[_0x4827ba(0x2cc)][_0x4827ba(0x2a4)](_0x4827ba(0x2c3));}[_0x5126f4(0x25d)](){var _0x14dbd8=_0x5126f4,_0x15c888;this[_0x14dbd8(0x2cc)]['next'](_0x14dbd8(0x2d8)),(_0x15c888=this[_0x14dbd8(0x2dd)])==null||_0x15c888[_0x14dbd8(0x2a2)](),this[_0x14dbd8(0x2dd)]=null;}[_0x5126f4(0x22c)](){var _0x417f71=_0x5126f4,_0x48b58f;this[_0x417f71(0x2cc)][_0x417f71(0x2a4)](_0x417f71(0x27f)),(_0x48b58f=this[_0x417f71(0x2dd)])==null||_0x48b58f[_0x417f71(0x2a2)]();}['_handleOperation'](_0x14304c){var _0x456aa9=_0x5126f4;if(['presenting',_0x456aa9(0x27f),_0x456aa9(0x1fb)]['includes'](this[_0x456aa9(0x237)])||!_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]||_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]===this[_0x456aa9(0x2a3)][_0x456aa9(0x228)]())return;this[_0x456aa9(0x237)]===_0x456aa9(0x2d8)&&this[_0x456aa9(0x231)]();const _0x48e1f4=_0x14304c['data'][_0x456aa9(0x278)];Object['values'](_0x48e1f4)[_0x456aa9(0x1f2)](_0x201f94=>{var _0x3a1e73=_0x456aa9;this['_commandService']['executeCommand'](_0x201f94['id'],_0x201f94[_0x3a1e73(0x21a)]?JSON[_0x3a1e73(0x1fd)](_0x201f94[_0x3a1e73(0x21a)]):null,{'fromCollab':!0x0});});}[_0x5126f4(0x269)](){var _0x4d9eba=_0x5126f4,_0x2d1835;this['_status$'][_0x4d9eba(0x2a4)](_0x4d9eba(0x1fb)),(_0x2d1835=this[_0x4d9eba(0x2dd)])==null||_0x2d1835[_0x4d9eba(0x2a2)]();}[_0x5126f4(0x259)](){var _0x312530=_0x5126f4;this[_0x312530(0x2cc)][_0x312530(0x2a4)]('idle'),this[_0x312530(0x25c)]();}},_0xaf9644[_0x5126f4(0x2a6)]=_0x55f792([_0x54ef66(0x2,_0x26f4c5['IConfigService']),_0x54ef66(0x3,_0x26f4c5['Inject'](_0x2130be)),_0x54ef66(0x4,_0x26f4c5[_0x5126f4(0x2b9)])],_0xaf9644[_0x5126f4(0x2a6)]);function _0x164295(){var _0x477093=_0x5126f4;const _0x114586=_0x26cb04[_0x477093(0x2c7)](_0xaf9644[_0x477093(0x213)]),_0x22cecd=_0x26cb04[_0x477093(0x2c7)](_0x26f4c5['IUniverInstanceService']),_0xc53f58=_0x26cb04[_0x477093(0x1fe)](()=>_0x22cecd[_0x477093(0x2d4)](_0x26f4c5[_0x477093(0x205)][_0x477093(0x2ce)]),void 0x0,!0x1,[]),[_0x4d6ef0,_0x1526af]=_0x3496e8['useState'](null),[_0x2d3cd2,_0x3c38a3]=_0x3496e8[_0x477093(0x222)](_0x2fa56f['IDLE']),_0x13e22f=_0x3496e8[_0x477093(0x2bb)](null);return _0x3496e8['useEffect'](()=>(_0xc53f58&&_0x114586[_0x477093(0x270)](_0xc53f58[_0x477093(0x24b)]())['then'](_0x3ec67a=>{var _0xf57860=_0x477093;_0x1526af(_0x3ec67a),_0x13e22f[_0xf57860(0x201)]=_0x3ec67a['status$']['subscribe'](_0x10f24c=>{_0x3c38a3(_0x10f24c);});}),()=>{var _0x2b414d=_0x477093,_0x403ba6;(_0x403ba6=_0x13e22f[_0x2b414d(0x201)])==null||_0x403ba6['unsubscribe'](),_0x13e22f['current']=null;}),[_0xc53f58,_0x114586]),_0x4d6ef0?_0x4feff4[_0x477093(0x2a9)](_0x345dec[_0x477093(0x271)],{'align':_0x477093(0x29c),'disabled':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'className':_0x477093(0x224),'overlay':_0x4feff4['jsx'](_0x4da1f7,{'status':_0x2d3cd2,'coordinator':_0x4d6ef0}),'children':_0x4feff4[_0x477093(0x2a9)](_0x477093(0x2be),{'className':_0x345dec[_0x477093(0x281)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d3cd2!==_0x2fa56f[_0x477093(0x256)]}),'type':_0x477093(0x2be),'children':_0x4feff4[_0x477093(0x2a9)](_0x2d038f,{'className':_0x477093(0x2d9)})})}):null;}function _0x4da1f7(_0x335fda){var _0xc6a8cb=_0x5126f4;const {status:_0x4b80ca,coordinator:_0x1f053a}=_0x335fda;switch(_0x4b80ca){case _0x2fa56f[_0xc6a8cb(0x235)]:return _0x4feff4['jsx'](_0x2ba7fa,{'coordinator':_0x1f053a});case _0x2fa56f['FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x5e1bf1,{'coordinator':_0x1f053a});case _0x2fa56f['NOT_FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x547f65,{'coordinator':_0x1f053a});case _0x2fa56f['OFFLINE']:return _0x4feff4['jsx'](_0x53c601,{});case _0x2fa56f['PRESENTING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x59fc9f,{'coordinator':_0x1f053a});default:return null;}}function _0x2ba7fa(_0x1007c7){var _0x301571=_0x5126f4;const {coordinator:_0x4c3430}=_0x1007c7;return _0x4feff4[_0x301571(0x21f)](_0x4feff4[_0x301571(0x254)],{'children':[_0x4feff4['jsx'](_0x301571(0x227),{'className':_0x301571(0x24e),'children':'Present\x20this\x20document'}),_0x4feff4[_0x301571(0x2a9)](_0x345dec[_0x301571(0x299)],{'onClick':()=>_0x4c3430['tryStartPresenting'](),'children':_0x301571(0x2a7)})]});}function _0x5e1bf1(_0xe83374){var _0x14149c=_0x5126f4;const {coordinator:_0x22f704}=_0xe83374;return _0x4feff4[_0x14149c(0x21f)](_0x4feff4[_0x14149c(0x254)],{'children':[_0x4feff4[_0x14149c(0x2a9)](_0x14149c(0x227),{'className':_0x14149c(0x24e),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4feff4[_0x14149c(0x2a9)](_0x345dec[_0x14149c(0x299)],{'onClick':()=>_0x22f704['stopFollowing'](),'children':_0x14149c(0x23d)})]});}function _0x547f65(_0x15ca2e){var _0x430032=_0x5126f4;const {coordinator:_0x2b7216}=_0x15ca2e;return _0x4feff4[_0x430032(0x21f)](_0x4feff4[_0x430032(0x254)],{'children':[_0x4feff4['jsx'](_0x430032(0x227),{'className':_0x430032(0x24e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4feff4[_0x430032(0x2a9)](_0x345dec[_0x430032(0x299)],{'variant':_0x430032(0x22d),'onClick':()=>_0x2b7216[_0x430032(0x277)](),'children':_0x430032(0x20f)})]});}function _0x59fc9f(_0x570c3f){var _0x3cdb3c=_0x5126f4;const {coordinator:_0x342087}=_0x570c3f;return _0x4feff4[_0x3cdb3c(0x21f)](_0x4feff4[_0x3cdb3c(0x254)],{'children':[_0x4feff4[_0x3cdb3c(0x2a9)]('div',{'className':_0x3cdb3c(0x24e),'children':_0x3cdb3c(0x2b3)}),_0x4feff4[_0x3cdb3c(0x2a9)](_0x345dec['Button'],{'variant':_0x3cdb3c(0x22f),'onClick':()=>_0x342087[_0x3cdb3c(0x284)](),'children':_0x3cdb3c(0x27d)})]});}function _0x53c601(){var _0x559122=_0x5126f4;return _0x4feff4['jsx'](_0x4feff4[_0x559122(0x254)],{'children':_0x559122(0x20c)});}var _0x2a0c0f=Object[_0x5126f4(0x2d1)],_0x56d9f6=(_0x43cbb4,_0xa77e31,_0x90130a,_0x1c98de)=>{for(var _0x2bde2a=_0x1c98de>0x1?void 0x0:_0x1c98de?_0x2a0c0f(_0xa77e31,_0x90130a):_0xa77e31,_0x385842=_0x43cbb4['length']-0x1,_0x2ea1fd;_0x385842>=0x0;_0x385842--)(_0x2ea1fd=_0x43cbb4[_0x385842])&&(_0x2bde2a=_0x2ea1fd(_0x2bde2a)||_0x2bde2a);return _0x2bde2a;},_0x382e9d=(_0x44b88a,_0x55cf69)=>(_0x3d78a2,_0x4a14a9)=>_0x55cf69(_0x3d78a2,_0x4a14a9,_0x44b88a);_0xaf9644[_0x5126f4(0x273)]=class extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(_0x3a8935,_0x30e31b){var _0x5e736e=_0x5126f4;super(),this['_injector']=_0x3a8935,this[_0x5e736e(0x274)]=_0x30e31b,this[_0x5e736e(0x207)]();}['_mountLiveShare'](){var _0x38016f=_0x5126f4;this['disposeWithMe'](this[_0x38016f(0x274)][_0x38016f(0x2db)](_0x26cb04[_0x38016f(0x22e)][_0x38016f(0x23e)],()=>_0x26cb04[_0x38016f(0x2c4)](_0x164295,this[_0x38016f(0x230)])));}},_0xaf9644[_0x5126f4(0x273)]=_0x56d9f6([_0x382e9d(0x0,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x382e9d(0x1,_0x26cb04[_0x5126f4(0x1f8)])],_0xaf9644[_0x5126f4(0x273)]);var _0x25bb9a=Object['defineProperty'],_0x2a5dca=Object[_0x5126f4(0x2d1)],_0x530277=(_0x245294,_0x139a3,_0x5591e5)=>_0x139a3 in _0x245294?_0x25bb9a(_0x245294,_0x139a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5591e5}):_0x245294[_0x139a3]=_0x5591e5,_0xf1a1d0=(_0x264bbb,_0x4919dc,_0x168abb,_0x3ec787)=>{for(var _0x5792a1=_0x3ec787>0x1?void 0x0:_0x3ec787?_0x2a5dca(_0x4919dc,_0x168abb):_0x4919dc,_0x244246=_0x264bbb['length']-0x1,_0x361a0d;_0x244246>=0x0;_0x244246--)(_0x361a0d=_0x264bbb[_0x244246])&&(_0x5792a1=_0x361a0d(_0x5792a1)||_0x5792a1);return _0x5792a1;},_0x2c4b9f=(_0x21a66b,_0x1c5fa6)=>(_0x97d82d,_0x34b1d7)=>_0x1c5fa6(_0x97d82d,_0x34b1d7,_0x21a66b),_0x50d000=(_0x1c1ba1,_0x3091d3,_0x119063)=>_0x530277(_0x1c1ba1,typeof _0x3091d3!=_0x5126f4(0x203)?_0x3091d3+'':_0x3091d3,_0x119063);const _0x215955='UNIVER_LIVE_SHARE_PLUGIN';_0xaf9644['UniverLiveSharePlugin']=class extends _0x26f4c5['Plugin']{constructor(_0x45491c=_0x15dc4e,_0x119c8d,_0x16d6fe){var _0x4bfc01=_0x5126f4;super(),this[_0x4bfc01(0x244)]=_0x45491c,this[_0x4bfc01(0x230)]=_0x119c8d,this[_0x4bfc01(0x286)]=_0x16d6fe;const {..._0x2ce33e}=_0x26f4c5['merge']({},_0x15dc4e,this[_0x4bfc01(0x244)]);this[_0x4bfc01(0x286)]['setConfig'](_0x475dfe,_0x2ce33e);}[_0x5126f4(0x2b6)](){var _0x2c215e=_0x5126f4;_0x26f4c5[_0x2c215e(0x204)](this[_0x2c215e(0x230)],_0x26f4c5[_0x2c215e(0x2b1)]([[_0x2130be],[_0xaf9644['LiveShareController']],[_0x1c41a8],[_0xaf9644[_0x2c215e(0x273)]]],this[_0x2c215e(0x244)][_0x2c215e(0x238)])),_0x26f4c5['touchDependencies'](this[_0x2c215e(0x230)],[[_0x1c41a8]]);}[_0x5126f4(0x275)](){_0x26f4c5['touchDependencies'](this['_injector'],[[_0xaf9644['DesktopLiveShareController']]]);}},_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x21b),_0x26f4c5[_0x5126f4(0x205)][_0x5126f4(0x26f)]),_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x285),_0x215955),_0xaf9644[_0x5126f4(0x243)]=_0xf1a1d0([_0x26f4c5[_0x5126f4(0x229)](_0x10d7f6[_0x5126f4(0x210)]),_0x2c4b9f(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x2c4b9f(0x2,_0x26f4c5['IConfigService'])],_0xaf9644[_0x5126f4(0x243)]),_0xaf9644[_0x5126f4(0x2d7)]=_0x164295,_0xaf9644[_0x5126f4(0x266)]=_0x2130be,_0xaf9644[_0x5126f4(0x2bd)]=_0x2fa56f,Object[_0x5126f4(0x2df)](_0xaf9644,Symbol['toStringTag'],{'value':_0x5126f4(0x25b)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505191607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.7.0-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.7.0-nightly.
|
|
56
|
-
"@univerjs
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505191607",
|
|
51
|
+
"@univerjs/design": "0.7.0-nightly.202505191607",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505191607",
|
|
53
|
+
"@univerjs/sheets": "0.7.0-nightly.202505191607",
|
|
54
|
+
"@univerjs/core": "0.7.0-nightly.202505191607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505191607",
|
|
56
|
+
"@univerjs/ui": "0.7.0-nightly.202505191607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.3",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.7.0",
|
|
67
|
+
"@univerjs/protocol": "0.1.46-alpha.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|