@univerjs-pro/live-share 0.10.11 → 0.10.12-nightly.202510221114
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x434b0e=_0x3822;(function(_0x3e52a3,_0x11804d){var _0x36dd5b=_0x3822,_0x1d1165=_0x3e52a3();while(!![]){try{var _0x1d45bc=parseInt(_0x36dd5b(0xf5))/0x1+parseInt(_0x36dd5b(0x129))/0x2*(parseInt(_0x36dd5b(0xe7))/0x3)+-parseInt(_0x36dd5b(0x162))/0x4+-parseInt(_0x36dd5b(0x159))/0x5*(-parseInt(_0x36dd5b(0xb8))/0x6)+-parseInt(_0x36dd5b(0x16b))/0x7+-parseInt(_0x36dd5b(0xaa))/0x8+parseInt(_0x36dd5b(0x16f))/0x9*(parseInt(_0x36dd5b(0xfb))/0xa);if(_0x1d45bc===_0x11804d)break;else _0x1d1165['push'](_0x1d1165['shift']());}catch(_0x214cc4){_0x1d1165['push'](_0x1d1165['shift']());}}}(_0x22d8,0xe7c9a));var U=Object[_0x434b0e(0xd7)],F=(_0x1fca18,_0x72b653,_0x268111)=>_0x72b653 in _0x1fca18?U(_0x1fca18,_0x72b653,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268111}):_0x1fca18[_0x72b653]=_0x268111,v=(_0x323b63,_0x26d3f5,_0x209d31)=>F(_0x323b63,typeof _0x26d3f5!=_0x434b0e(0xba)?_0x26d3f5+'':_0x26d3f5,_0x209d31);Object[_0x434b0e(0xd7)](exports,Symbol['toStringTag'],{'value':_0x434b0e(0x10c)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x22d8(){var _0x7f2ce9=['forEach','IUniverInstanceService','1em','3677958VqzngQ','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','symbol','LiveShareCoordinator','idSuffix','end','DependentOn','entries','merge','colorChannel1','map','idle','InsertSheetMutation','_handleNewChangeSets','_init','tag','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','BehaviorSubject','Stop\x20following','_liveShareService','_handleNewHost','_handleTerminate','_injector','_status','getInitialStates','_presenter','asObservable','data','CollaborationEvent','CollaborationSessionService','defineProperty','HEADER_MENU','UniverLiveSharePlugin','_handleOnline','getMemberID','_fetchOperations','disposeWithMe','values','Inject','_sharedOperations','RxDisposable','LiveShareStatus','getCurrentTypeOfUnit$','concat','useRef','registerSharedOperation','1427061BATBSc','assign','complete','sessionStatus$','params','executeCommand','event$','LIVESHARE_REQUEST_HOST','toString','add','next','function','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','21643YNHBGr','LiveShareIcon','evenodd','string','shouldShareOperation','dispose','40wOfQnh','IDLE','parseProtocolChangeset','SessionStatus','presenting','LiveShare','Start\x20following','operations','_handleOffline','_startPresenting','SetWorksheetActiveOperation','useState','type','includes','get','Stop\x20presenting','getOwnPropertyDescriptor','Module','getUnitId','stopFollowing','useDependency','PRESENTING','_reporters','_startLiveShareCoordinator','live-share.config','call','Dropdown','BuiltInUIPart','text','0\x200\x2017\x2017','getConfig','UniverInstanceType','getTypeOfUnitAdded$','getLiveShareCoordinator','subscribe','SetScrollOperation','DesktopLiveShareController','_configService','_startFollowing','defs','not-following','ONLINE','stopPresenting','indexOf','status$','IConfigService','2xRFZut','ICommandService','SAME_OPERATION_SHARE_INTERVAL','_commandDisposable','LiveShareService','onStarting','CommandType','clsx','sheet','useEffect','onRendered','Injector','stringify','LiveShareController','trim','attrs','has','registerDependencies','clear','_unitID','http://www.w3.org/2000/svg','NOT_FOLLOWING','_commandService','apply','xlink:href','_status$','prototype','init','extend','unsubscribe','then','div','fill','Button','univerjs-icon\x20univerjs-icon-','_stopPresenting','following','_config','pipe','jsx','icon','dispose$','forwardRef','_collabSession','set','Subject','toDisposable','getValue','5vlOYRH','Disposable','Fragment','hasOwnProperty','_stopFollowing','UNIVER_UNKNOWN','none','override','OFFLINE','3679608VUIRqv','delete','createElement','mergeOverrideWithDependencies','offline','length','touchDependencies','presenter','univer-size-4','9056551gMbiHv','FOLLOWING','unitId','jsxs','7828227IWAmoT','use','children','LIVESHARE_TERMINATE','send','Start','default','LIVESHARE_OPERATION','button','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','replace','random','takeUntil','defIds','className','current','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','startFollowing','getTypeOfUnitDisposed$','registerInitialStateReporter','tryStartPresenting','setConfig','IUIPartsService','NEW_CHANGESETS','getOwnPropertySymbols','11411504gkVaZc','memberID','_handleOperation','_mountLiveShare','UniverCollaborationClientPlugin','from','path','mask','mutations','_uiPartsService','UNIVER_SHEET'];_0x22d8=function(){return _0x7f2ce9;};return _0x22d8();}var u=function(){var _0x5d639d=_0x434b0e;return u=Object[_0x5d639d(0xe8)]||function(_0x690e15){var _0x2c7acf=_0x5d639d;for(var _0x2ad81e,_0x49485c=0x1,_0x1c9bde=arguments['length'];_0x49485c<_0x1c9bde;_0x49485c++){_0x2ad81e=arguments[_0x49485c];for(var _0x58f9ce in _0x2ad81e)Object[_0x2c7acf(0x143)][_0x2c7acf(0x15c)]['call'](_0x2ad81e,_0x58f9ce)&&(_0x690e15[_0x58f9ce]=_0x2ad81e[_0x58f9ce]);}return _0x690e15;},u[_0x5d639d(0x140)](this,arguments);},$=function(_0x5946d3,_0x23046a){var _0x332ec4=_0x434b0e,_0x25c719={};for(var _0x242966 in _0x5946d3)Object['prototype'][_0x332ec4(0x15c)][_0x332ec4(0x114)](_0x5946d3,_0x242966)&&_0x23046a[_0x332ec4(0x126)](_0x242966)<0x0&&(_0x25c719[_0x242966]=_0x5946d3[_0x242966]);if(_0x5946d3!=null&&typeof Object[_0x332ec4(0xa9)]==_0x332ec4(0xf2)){for(var _0x1cecd3=0x0,_0x242966=Object['getOwnPropertySymbols'](_0x5946d3);_0x1cecd3<_0x242966[_0x332ec4(0x167)];_0x1cecd3++)_0x23046a[_0x332ec4(0x126)](_0x242966[_0x1cecd3])<0x0&&Object[_0x332ec4(0x143)]['propertyIsEnumerable']['call'](_0x5946d3,_0x242966[_0x1cecd3])&&(_0x25c719[_0x242966[_0x1cecd3]]=_0x5946d3[_0x242966[_0x1cecd3]]);}return _0x25c719;},j=f['forwardRef'](function(_0x2c1a56,_0x243336){var _0x4e4cb6=_0x434b0e,_0x5b5d38=_0x2c1a56[_0x4e4cb6(0x151)],_0x541012=_0x2c1a56['id'],_0x544e77=_0x2c1a56[_0x4e4cb6(0x9d)],_0x5b7f96=_0x2c1a56[_0x4e4cb6(0x145)],_0x7af4cd=$(_0x2c1a56,[_0x4e4cb6(0x151),'id',_0x4e4cb6(0x9d),'extend']),_0x17f5bd=_0x4e4cb6(0x14b)['concat'](_0x541012,'\x20')[_0x4e4cb6(0xe4)](_0x544e77||'')[_0x4e4cb6(0x137)](),_0x41823b=f['useRef']('_'[_0x4e4cb6(0xe4)](k()));return y(_0x5b5d38,''[_0x4e4cb6(0xe4)](_0x541012),{'defIds':_0x5b5d38['defIds'],'idSuffix':_0x41823b[_0x4e4cb6(0x9e)]},u({'ref':_0x243336,'className':_0x17f5bd},_0x7af4cd),_0x5b7f96);});function y(_0x5548b2,_0xbf55ce,_0x1f091d,_0x2645e6,_0x13a7a2){var _0x3224da=_0x434b0e;return f[_0x3224da(0x164)](_0x5548b2['tag'],u(u({'key':_0xbf55ce},H(_0x5548b2,_0x1f091d,_0x13a7a2)),_0x2645e6),(V(_0x5548b2,_0x1f091d)['children']||[])[_0x3224da(0xc2)](function(_0x1a751a,_0x162861){var _0x5812cf=_0x3224da;return y(_0x1a751a,''[_0x5812cf(0xe4)](_0xbf55ce,'-')[_0x5812cf(0xe4)](_0x5548b2['tag'],'-')[_0x5812cf(0xe4)](_0x162861),_0x1f091d,void 0x0,_0x13a7a2);}));}function H(_0x1e538a,_0x4bcbf0,_0x3594b7){var _0x13e9f9=_0x434b0e,_0xf228d6=u({},_0x1e538a[_0x13e9f9(0x138)]);_0x3594b7!=null&&_0x3594b7[_0x13e9f9(0xc1)]&&_0xf228d6[_0x13e9f9(0x149)]===_0x13e9f9(0xc1)&&(_0xf228d6[_0x13e9f9(0x149)]=_0x3594b7[_0x13e9f9(0xc1)]),_0x1e538a[_0x13e9f9(0xc7)]==='mask'&&_0xf228d6['id']&&(_0xf228d6['id']=_0xf228d6['id']+_0x4bcbf0[_0x13e9f9(0xbc)]),Object['entries'](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x4815d0){var _0x3853ca=_0x13e9f9,_0x328d11=_0x4815d0[0x0],_0xf81055=_0x4815d0[0x1];_0x328d11===_0x3853ca(0xb1)&&typeof _0xf81055==_0x3853ca(0xf8)&&(_0xf228d6[_0x328d11]=_0xf81055[_0x3853ca(0x99)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4bcbf0['idSuffix'],')')));});var _0x188626=_0x4bcbf0['defIds'];return!_0x188626||_0x188626[_0x13e9f9(0x167)]===0x0||(_0x1e538a[_0x13e9f9(0xc7)]===_0x13e9f9(0x170)&&_0xf228d6[_0x13e9f9(0x141)]&&(_0xf228d6[_0x13e9f9(0x141)]=_0xf228d6[_0x13e9f9(0x141)]+_0x4bcbf0['idSuffix']),Object[_0x13e9f9(0xbf)](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x129d7c){var _0x48065b=_0x13e9f9,_0x194021=_0x129d7c[0x0],_0x4bd790=_0x129d7c[0x1];typeof _0x4bd790==_0x48065b(0xf8)&&(_0xf228d6[_0x194021]=_0x4bd790['replace'](/url\(#(.*)\)/,'url(#$1'[_0x48065b(0xe4)](_0x4bcbf0[_0x48065b(0xbc)],')')));})),_0xf228d6;}function V(_0x4dffaf,_0x333eb2){var _0x5a2571=_0x434b0e,_0x31ed21,_0x3c3577=_0x333eb2[_0x5a2571(0x9c)];return!_0x3c3577||_0x3c3577[_0x5a2571(0x167)]===0x0?_0x4dffaf:_0x4dffaf[_0x5a2571(0xc7)]===_0x5a2571(0x122)&&(!((_0x31ed21=_0x4dffaf[_0x5a2571(0x171)])===null||_0x31ed21===void 0x0)&&_0x31ed21['length'])?u(u({},_0x4dffaf),{'children':_0x4dffaf['children'][_0x5a2571(0xc2)](function(_0x5cbf8c){var _0x5ec678=_0x5a2571;return typeof _0x5cbf8c[_0x5ec678(0x138)]['id']==_0x5ec678(0xf8)&&_0x3c3577&&_0x3c3577['includes'](_0x5cbf8c[_0x5ec678(0x138)]['id'])?u(u({},_0x5cbf8c),{'attrs':u(u({},_0x5cbf8c[_0x5ec678(0x138)]),{'id':_0x5cbf8c['attrs']['id']+_0x333eb2[_0x5ec678(0xbc)]})}):_0x5cbf8c;})}):_0x4dffaf;}function k(){var _0x23cc4f=_0x434b0e;return Math[_0x23cc4f(0x9a)]()[_0x23cc4f(0xef)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';function _0x3822(_0x197099,_0x31a2c1){var _0x22d85b=_0x22d8();return _0x3822=function(_0x38227f,_0x3e63e7){_0x38227f=_0x38227f-0x96;var _0x97e1ce=_0x22d85b[_0x38227f];return _0x97e1ce;},_0x3822(_0x197099,_0x31a2c1);}var M={'tag':'svg','attrs':{'xmlns':_0x434b0e(0x13d),'fill':_0x434b0e(0x15f),'viewBox':_0x434b0e(0x118),'width':_0x434b0e(0xb7),'height':_0x434b0e(0xb7)},'children':[{'tag':_0x434b0e(0xb0),'attrs':{'fill':'currentColor','d':_0x434b0e(0xb9)}},{'tag':_0x434b0e(0xb0),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x434b0e(0xf7),'clipRule':_0x434b0e(0xf7)}}]},P=f[_0x434b0e(0x153)](function(_0x3ac20e,_0x4d6f11){var _0xf2b74e=_0x434b0e;return f[_0xf2b74e(0x164)](j,Object[_0xf2b74e(0xe8)]({},_0x3ac20e,{'id':'live-share-icon','ref':_0x4d6f11,'icon':M}));});P['displayName']=_0x434b0e(0xf6);class O extends o[_0x434b0e(0x15a)]{constructor(){var _0x3df25d=_0x434b0e;super(...arguments),v(this,_0x3df25d(0xe0),new Set()),v(this,_0x3df25d(0x111),new Set());}[_0x434b0e(0xe6)](_0x3cc9b8){var _0x4b3d6b=_0x434b0e;return this['_sharedOperations'][_0x4b3d6b(0xf0)](_0x3cc9b8),o[_0x4b3d6b(0x157)](()=>this[_0x4b3d6b(0xe0)][_0x4b3d6b(0x163)](_0x3cc9b8));}[_0x434b0e(0xa4)](_0x5c5a86){var _0x3f3bab=_0x434b0e;return this['_reporters'][_0x3f3bab(0xf0)](_0x5c5a86),o['toDisposable'](()=>this[_0x3f3bab(0x111)][_0x3f3bab(0x163)](_0x5c5a86));}[_0x434b0e(0xf9)](_0x52ad96){var _0x4347c1=_0x434b0e;return this[_0x4347c1(0xe0)][_0x4347c1(0x139)](_0x52ad96);}[_0x434b0e(0xd1)](_0x826721){var _0x1e4617=_0x434b0e;return Array[_0x1e4617(0xaf)](this[_0x1e4617(0x111)])[_0x1e4617(0xc2)](_0x3e23a0=>_0x3e23a0(_0x826721));}}var q=Object[_0x434b0e(0x10b)],R=(_0x2e94a3,_0xbe2e5a,_0x53d751,_0x1c2655)=>{var _0xd1980=_0x434b0e;for(var _0x535146=_0x1c2655>0x1?void 0x0:_0x1c2655?q(_0xbe2e5a,_0x53d751):_0xbe2e5a,_0x40de67=_0x2e94a3[_0xd1980(0x167)]-0x1,_0x4570fb;_0x40de67>=0x0;_0x40de67--)(_0x4570fb=_0x2e94a3[_0x40de67])&&(_0x535146=_0x4570fb(_0x535146)||_0x535146);return _0x535146;},S=(_0x1d21ba,_0x1108c1)=>(_0x5ae866,_0x8b157)=>_0x1108c1(_0x5ae866,_0x8b157,_0x1d21ba);exports[_0x434b0e(0x136)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x11d451,_0xd90a77,_0x460d80){var _0x220cc8=_0x434b0e;super(),v(this,_0x220cc8(0xf4),new Map()),(this[_0x220cc8(0xa1)]=_0x11d451,this[_0x220cc8(0xcf)]=_0xd90a77,this[_0x220cc8(0x9f)]=_0x460d80,this[_0x220cc8(0xc6)]());}async[_0x434b0e(0x11c)](_0x367fd3){var _0x8ac5bb=_0x434b0e;return this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x139)](_0x367fd3)||await this[_0x8ac5bb(0x112)](_0x367fd3),this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x109)](_0x367fd3);}[_0x434b0e(0xc6)](){var _0x10f9ac=_0x434b0e;this[_0x10f9ac(0xa1)][_0x10f9ac(0x11b)](o['UniverInstanceType'][_0x10f9ac(0xb4)])['pipe'](b[_0x10f9ac(0x9b)](this['dispose$']))[_0x10f9ac(0x11d)](async _0x5a9a4c=>{var _0x5eac30=_0x10f9ac;const _0x505017=_0x5a9a4c[_0x5eac30(0x10d)]();this[_0x5eac30(0xf4)][_0x5eac30(0x139)](_0x505017)||this[_0x5eac30(0x112)](_0x505017);}),this[_0x10f9ac(0xa1)][_0x10f9ac(0xa3)](o[_0x10f9ac(0x11a)]['UNIVER_SHEET'])[_0x10f9ac(0x14f)](b['takeUntil'](this[_0x10f9ac(0x152)]))['subscribe'](_0x5f5467=>{var _0x1a5f67=_0x10f9ac;const _0x4dee2d=_0x5f5467[_0x1a5f67(0x10d)](),_0x1b9200=this['_entities']['get'](_0x4dee2d);_0x1b9200==null||_0x1b9200[_0x1a5f67(0xfa)]();});}async[_0x434b0e(0x112)](_0xc78e6c){var _0x265703=_0x434b0e;const _0x4e60a2=await this[_0x265703(0x9f)]['requireSession'](_0xc78e6c),_0x3c4c85=this[_0x265703(0xcf)]['createInstance'](exports[_0x265703(0xbb)],_0xc78e6c,_0x4e60a2);return _0x3c4c85['init'](),this[_0x265703(0xf4)][_0x265703(0x155)](_0xc78e6c,_0x3c4c85),_0x3c4c85;}},exports[_0x434b0e(0x136)]=R([S(0x0,o[_0x434b0e(0xb6)]),S(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),S(0x2,o['Inject'](m[_0x434b0e(0xd6)]))],exports[_0x434b0e(0x136)]);var h=(_0x45a631=>(_0x45a631[_0x434b0e(0x161)]='offline',_0x45a631[_0x434b0e(0xfc)]=_0x434b0e(0xc3),_0x45a631['FOLLOWING']=_0x434b0e(0x14d),_0x45a631[_0x434b0e(0x13e)]=_0x434b0e(0x123),_0x45a631['PRESENTING']=_0x434b0e(0xff),_0x45a631))(h||{});const W=_0x434b0e(0x12b),G=0xc8;exports[_0x434b0e(0xbb)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x37d3db,_0x1c093b,_0x5f5a57,_0x47090c,_0xab1a4a){var _0x212a19=_0x434b0e;super(),v(this,_0x212a19(0x142),new w[(_0x212a19(0xca))](_0x212a19(0xc3))),v(this,'status$',this[_0x212a19(0x142)][_0x212a19(0xd3)]()),v(this,_0x212a19(0xc6),!0x1),v(this,_0x212a19(0x12c),null),v(this,_0x212a19(0xd2),null),(this[_0x212a19(0x13c)]=_0x37d3db,this['_collabSession']=_0x1c093b,this[_0x212a19(0x120)]=_0x5f5a57,this[_0x212a19(0xcc)]=_0x47090c,this[_0x212a19(0x13f)]=_0xab1a4a);}get[_0x434b0e(0xd0)](){var _0x19762b=_0x434b0e;return this[_0x19762b(0x142)][_0x19762b(0x158)]();}['dispose'](){var _0x2fdf0e=_0x434b0e,_0x2cd3f4;(_0x2cd3f4=this[_0x2fdf0e(0x12c)])==null||_0x2cd3f4[_0x2fdf0e(0xfa)](),this[_0x2fdf0e(0x142)]['next'](_0x2fdf0e(0xc3)),this[_0x2fdf0e(0x142)][_0x2fdf0e(0xe9)]();}[_0x434b0e(0x144)](){var _0x1c3982=_0x434b0e;this[_0x1c3982(0xc6)]||(this[_0x1c3982(0xc6)]=!0x0,this[_0x1c3982(0x154)][_0x1c3982(0xea)][_0x1c3982(0x14f)](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x281796=>{var _0x255ea1=_0x1c3982;switch(_0x281796){case m[_0x255ea1(0xfe)][_0x255ea1(0x161)]:this[_0x255ea1(0x103)]();break;case m[_0x255ea1(0xfe)][_0x255ea1(0x124)]:this[_0x255ea1(0xda)]();break;}}),this[_0x1c3982(0x154)][_0x1c3982(0xed)]['pipe'](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x22e0cf=>{var _0x2c80d7=_0x1c3982;const {eventID:_0x336ea6}=_0x22e0cf;switch(_0x336ea6){case _[_0x2c80d7(0xd5)]['LIVESHARE_NEW_HOST']:this[_0x2c80d7(0xcd)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)]['LIVESHARE_OPERATION']:this[_0x2c80d7(0xac)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)][_0x2c80d7(0x172)]:this[_0x2c80d7(0xce)]();break;case _['CollaborationEvent'][_0x2c80d7(0xa8)]:this[_0x2c80d7(0xc5)](_0x22e0cf);break;}}));}[_0x434b0e(0xa5)](){var _0x24b50d=_0x434b0e;this[_0x24b50d(0x154)][_0x24b50d(0x173)]({'eventID':_['CollaborationEvent'][_0x24b50d(0xee)],'data':{'unitID':this[_0x24b50d(0x13c)],'userID':this[_0x24b50d(0x154)][_0x24b50d(0xdb)]()}},this[_0x24b50d(0x13c)]);}[_0x434b0e(0x125)](){var _0x308631=_0x434b0e;this[_0x308631(0xd0)]===_0x308631(0xff)&&(this['_status$'][_0x308631(0xf1)](_0x308631(0xc3)),this[_0x308631(0x154)][_0x308631(0x173)]({'eventID':_[_0x308631(0xd5)][_0x308631(0x172)],'data':{'unitID':this[_0x308631(0x13c)]}},this[_0x308631(0x13c)]));}[_0x434b0e(0xa2)](){var _0x2375d8=_0x434b0e;this['_status']===_0x2375d8(0x123)&&(this['_status$'][_0x2375d8(0xf1)](_0x2375d8(0x14d)),this[_0x2375d8(0x121)]());}[_0x434b0e(0x10e)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x434b0e(0xcd)](_0x2ac770){var _0x39575f=_0x434b0e;const {presenter:_0x20675a}=_0x2ac770[_0x39575f(0xd4)],_0x5960b2=this[_0x39575f(0x154)][_0x39575f(0xdb)]();this[_0x39575f(0xd2)]=_0x20675a,_0x20675a===_0x5960b2?(this[_0x39575f(0x15d)](),this[_0x39575f(0x104)]()):this[_0x39575f(0xd0)]!==_0x39575f(0x123)&&(this[_0x39575f(0x14c)](),this[_0x39575f(0x121)]());}['_fetchOperations'](){var _0x589962=_0x434b0e;const _0x46ebe6={'eventID':_[_0x589962(0xd5)][_0x589962(0xa0)]};this[_0x589962(0x154)][_0x589962(0x173)](_0x46ebe6,this[_0x589962(0x13c)]);}[_0x434b0e(0xce)](){var _0x2c13d6=_0x434b0e;this[_0x2c13d6(0xd2)]=null,this[_0x2c13d6(0xd0)]!==_0x2c13d6(0xff)&&this['_beIdle']();}[_0x434b0e(0xc5)](_0xd475d){var _0x409eaf=_0x434b0e;if(this[_0x409eaf(0xd0)]===_0x409eaf(0x14d)&&this[_0x409eaf(0xd2)]===_0xd475d[_0x409eaf(0xd4)][_0x409eaf(0xab)]){const _0x569f69=_[_0x409eaf(0xfd)](_0xd475d['data'])[_0x409eaf(0xb2)]['reverse']()['find'](_0x11b240=>_0x11b240['id']===C[_0x409eaf(0xc4)]['id']);if(_0x569f69){const _0x2589a5=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x16d)],_0x3655c8=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x131)]['id'];setTimeout(()=>{var _0x342b44=_0x409eaf;this[_0x342b44(0x13f)][_0x342b44(0xec)](C[_0x342b44(0x105)]['id'],{'unitId':_0x2589a5,'subUnitId':_0x3655c8},{'fromCollab':!0x0});});}}}[_0x434b0e(0x104)](){var _0x4885d1=_0x434b0e;this[_0x4885d1(0x142)][_0x4885d1(0xf1)]('presenting');const _0x192541=new Map(),_0x7b979c=this['_commandDisposable']=new o['DisposableCollection']();_0x7b979c[_0x4885d1(0xf0)](o['toDisposable'](()=>{var _0x1de1ec=_0x4885d1;_0x192541['forEach'](_0x28a36b=>_0x28a36b[_0x1de1ec(0xe9)]()),_0x192541[_0x1de1ec(0x13b)]();})),_0x7b979c[_0x4885d1(0xf0)](this[_0x4885d1(0x13f)][_0x4885d1(0xc9)](_0x5c6197=>{var _0x19a4d1=_0x4885d1,_0x22c1e3;if(_0x5c6197[_0x19a4d1(0x107)]!==o[_0x19a4d1(0x12f)]['OPERATION']||!this[_0x19a4d1(0xcc)]['shouldShareOperation'](_0x5c6197['id']))return;const {id:_0x183e92}=_0x5c6197;let _0x25276c;_0x192541[_0x19a4d1(0x139)](_0x183e92)?_0x25276c=_0x192541['get'](_0x183e92):(_0x25276c=new w[(_0x19a4d1(0x156))](),_0x192541[_0x19a4d1(0x155)](_0x183e92,_0x25276c),_0x25276c[_0x19a4d1(0x14f)](b['throttleTime']((_0x22c1e3=this[_0x19a4d1(0x120)][_0x19a4d1(0x119)](W))!=null?_0x22c1e3:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19a4d1(0x11d)](_0x23468f=>{var _0x35e81f=_0x19a4d1;this['_collabSession'][_0x35e81f(0x173)]({'eventID':_[_0x35e81f(0xd5)][_0x35e81f(0x176)],'data':{'unitID':this[_0x35e81f(0x13c)],'operations':{[_0x23468f['id']]:{'id':_0x23468f['id'],'params':JSON[_0x35e81f(0x135)](_0x23468f[_0x35e81f(0xeb)])}}}},this[_0x35e81f(0x13c)]);})),_0x25276c[_0x19a4d1(0xf1)](_0x5c6197);})),this[_0x4885d1(0xcc)][_0x4885d1(0xd1)](this[_0x4885d1(0x13c)])[_0x4885d1(0xb5)](_0x449aaa=>this[_0x4885d1(0x154)][_0x4885d1(0x173)]({'eventID':_[_0x4885d1(0xd5)][_0x4885d1(0x176)],'data':{'unitID':this[_0x4885d1(0x13c)],'operations':{[_0x449aaa['id']]:{'id':_0x449aaa['id'],'params':JSON[_0x4885d1(0x135)](_0x449aaa[_0x4885d1(0xeb)])}}}},this[_0x4885d1(0x13c)]));}[_0x434b0e(0x14c)](){var _0x810553=_0x434b0e,_0x10287d;this[_0x810553(0x142)]['next'](_0x810553(0xc3)),(_0x10287d=this[_0x810553(0x12c)])==null||_0x10287d[_0x810553(0xfa)](),this[_0x810553(0x12c)]=null;}[_0x434b0e(0x121)](){var _0x29aa69=_0x434b0e,_0x3d1ea9;(_0x3d1ea9=this['_commandDisposable'])==null||_0x3d1ea9[_0x29aa69(0xfa)](),this[_0x29aa69(0x142)][_0x29aa69(0xf1)](_0x29aa69(0x14d));}['_beIdle'](){var _0x2079b2=_0x434b0e,_0x506670;this[_0x2079b2(0x142)][_0x2079b2(0xf1)](_0x2079b2(0xc3)),(_0x506670=this[_0x2079b2(0x12c)])==null||_0x506670[_0x2079b2(0xfa)](),this['_commandDisposable']=null;}[_0x434b0e(0x15d)](){var _0x2f71ca=_0x434b0e,_0x53328e;this['_status$']['next'](_0x2f71ca(0x123)),(_0x53328e=this['_commandDisposable'])==null||_0x53328e[_0x2f71ca(0xfa)]();}['_handleOperation'](_0x3960b6){var _0x1edddf=_0x434b0e;if([_0x1edddf(0xff),_0x1edddf(0x123),_0x1edddf(0x166)][_0x1edddf(0x108)](this[_0x1edddf(0xd0)])||!_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x169)]||_0x3960b6['data']['presenter']===this[_0x1edddf(0x154)][_0x1edddf(0xdb)]())return;this[_0x1edddf(0xd0)]===_0x1edddf(0xc3)&&this[_0x1edddf(0x121)]();const _0x478bbb=_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x102)];Object[_0x1edddf(0xde)](_0x478bbb)['forEach'](_0x5b9691=>{var _0x3ddaaf=_0x1edddf;this['_commandService']['executeCommand'](_0x5b9691['id'],_0x5b9691['params']?JSON['parse'](_0x5b9691[_0x3ddaaf(0xeb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x77b91a=_0x434b0e,_0x3c285e;this[_0x77b91a(0x142)][_0x77b91a(0xf1)](_0x77b91a(0x166)),(_0x3c285e=this['_commandDisposable'])==null||_0x3c285e[_0x77b91a(0xfa)]();}[_0x434b0e(0xda)](){var _0x2c416d=_0x434b0e;this[_0x2c416d(0x142)][_0x2c416d(0xf1)](_0x2c416d(0xc3)),this[_0x2c416d(0xdc)]();}},exports[_0x434b0e(0xbb)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x434b0e(0xdf)](O)),S(0x4,o[_0x434b0e(0x12a)])],exports[_0x434b0e(0xbb)]);function A(){var _0xc063de=_0x434b0e;const _0x99cbf8=p[_0xc063de(0x10f)](exports['LiveShareController']),_0x14185c=p['useDependency'](o[_0xc063de(0xb6)]),_0x1cebce=p['useObservable'](()=>_0x14185c[_0xc063de(0xe3)](o[_0xc063de(0x11a)][_0xc063de(0xb4)]),void 0x0,!0x1,[]),[_0x2adbf9,_0x8d538b]=f[_0xc063de(0x106)](null),[_0x133660,_0x419fca]=f[_0xc063de(0x106)](h[_0xc063de(0xfc)]),_0x5b3819=f[_0xc063de(0xe5)](null);return f[_0xc063de(0x132)](()=>(_0x1cebce&&_0x99cbf8['getLiveShareCoordinator'](_0x1cebce['getUnitId']())[_0xc063de(0x147)](_0x476311=>{var _0x307c81=_0xc063de;_0x8d538b(_0x476311),_0x5b3819[_0x307c81(0x9e)]=_0x476311[_0x307c81(0x127)]['subscribe'](_0x4aef15=>{_0x419fca(_0x4aef15);});}),()=>{var _0x1a8f9f=_0xc063de,_0x524d95;(_0x524d95=_0x5b3819['current'])==null||_0x524d95[_0x1a8f9f(0x146)](),_0x5b3819['current']=null;}),[_0x1cebce,_0x99cbf8]),_0x2adbf9?l[_0xc063de(0x150)](g[_0xc063de(0x115)],{'align':_0xc063de(0xbd),'disabled':_0x133660===h[_0xc063de(0x161)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0xc063de(0x150)](B,{'status':_0x133660,'coordinator':_0x2adbf9}),'children':l[_0xc063de(0x150)](_0xc063de(0x96),{'className':g[_0xc063de(0x130)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x133660===h[_0xc063de(0x161)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x133660!==h[_0xc063de(0x161)]}),'type':_0xc063de(0x96),'children':l[_0xc063de(0x150)](P,{'className':_0xc063de(0x16a)})})}):null;}function B(_0x41958f){var _0x307165=_0x434b0e;const {status:_0x789de0,coordinator:_0x1f3caf}=_0x41958f;switch(_0x789de0){case h[_0x307165(0xfc)]:return l['jsx'](Y,{'coordinator':_0x1f3caf});case h[_0x307165(0x16c)]:return l[_0x307165(0x150)](Z,{'coordinator':_0x1f3caf});case h[_0x307165(0x13e)]:return l['jsx'](J,{'coordinator':_0x1f3caf});case h[_0x307165(0x161)]:return l[_0x307165(0x150)](z,{});case h[_0x307165(0x110)]:return l[_0x307165(0x150)](K,{'coordinator':_0x1f3caf});default:return null;}}function Y(_0x151fed){var _0x3e465c=_0x434b0e;const {coordinator:_0x555131}=_0x151fed;return l['jsxs'](l[_0x3e465c(0x15b)],{'children':[l[_0x3e465c(0x150)]('div',{'className':_0x3e465c(0xf3),'children':'Present\x20this\x20document'}),l[_0x3e465c(0x150)](g[_0x3e465c(0x14a)],{'onClick':()=>_0x555131[_0x3e465c(0xa5)](),'children':_0x3e465c(0x174)})]});}function Z(_0x43f39e){var _0x4a153e=_0x434b0e;const {coordinator:_0x476f39}=_0x43f39e;return l[_0x4a153e(0x16e)](l['Fragment'],{'children':[l[_0x4a153e(0x150)](_0x4a153e(0x148),{'className':_0x4a153e(0xf3),'children':_0x4a153e(0x98)}),l[_0x4a153e(0x150)](g[_0x4a153e(0x14a)],{'onClick':()=>_0x476f39[_0x4a153e(0x10e)](),'children':_0x4a153e(0xcb)})]});}function J(_0x1c7509){var _0x315948=_0x434b0e;const {coordinator:_0x1beeab}=_0x1c7509;return l['jsxs'](l['Fragment'],{'children':[l[_0x315948(0x150)]('div',{'className':_0x315948(0xf3),'children':_0x315948(0xc8)}),l['jsx'](g[_0x315948(0x14a)],{'variant':_0x315948(0x117),'onClick':()=>_0x1beeab['startFollowing'](),'children':_0x315948(0x101)})]});}function K(_0x3eb185){var _0x224314=_0x434b0e;const {coordinator:_0x21e853}=_0x3eb185;return l[_0x224314(0x16e)](l[_0x224314(0x15b)],{'children':[l[_0x224314(0x150)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x224314(0x14a)],{'variant':_0x224314(0x175),'onClick':()=>_0x21e853['stopPresenting'](),'children':_0x224314(0x10a)})]});}function z(){var _0x426cdb=_0x434b0e;return l[_0x426cdb(0x150)](l[_0x426cdb(0x15b)],{'children':_0x426cdb(0x97)});}var Q=Object[_0x434b0e(0x10b)],X=(_0x55fd40,_0x2e55ba,_0x400f24,_0x283923)=>{var _0x267369=_0x434b0e;for(var _0x1fd646=_0x283923>0x1?void 0x0:_0x283923?Q(_0x2e55ba,_0x400f24):_0x2e55ba,_0x14cf56=_0x55fd40[_0x267369(0x167)]-0x1,_0x1969ea;_0x14cf56>=0x0;_0x14cf56--)(_0x1969ea=_0x55fd40[_0x14cf56])&&(_0x1fd646=_0x1969ea(_0x1fd646)||_0x1fd646);return _0x1fd646;},x=(_0x1cc02a,_0x397bc7)=>(_0x18ce67,_0xd7a43b)=>_0x397bc7(_0x18ce67,_0xd7a43b,_0x1cc02a);exports[_0x434b0e(0x11f)]=class extends o[_0x434b0e(0x15a)]{constructor(_0x299dd9,_0x46b57a){var _0x1822a7=_0x434b0e;super(),this['_injector']=_0x299dd9,this[_0x1822a7(0xb3)]=_0x46b57a,this[_0x1822a7(0xad)]();}['_mountLiveShare'](){var _0x42045d=_0x434b0e;this[_0x42045d(0xdd)](this['_uiPartsService']['registerComponent'](p[_0x42045d(0x116)][_0x42045d(0xd8)],()=>p['connectInjector'](A,this[_0x42045d(0xcf)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x434b0e(0x134)])),x(0x1,p[_0x434b0e(0xa7)])],exports[_0x434b0e(0x11f)]);const ee=_0x434b0e(0x113),L={};var te=Object[_0x434b0e(0x10b)],ie=(_0x59c8be,_0x8e5337,_0x5c128f,_0x2b5488)=>{for(var _0x307c8b=_0x2b5488>0x1?void 0x0:_0x2b5488?te(_0x8e5337,_0x5c128f):_0x8e5337,_0x3bb60b=_0x59c8be['length']-0x1,_0xc566c5;_0x3bb60b>=0x0;_0x3bb60b--)(_0xc566c5=_0x59c8be[_0x3bb60b])&&(_0x307c8b=_0xc566c5(_0x307c8b)||_0x307c8b);return _0x307c8b;},ne=(_0x3ebef4,_0x4e7d42)=>(_0x216459,_0x25efa9)=>_0x4e7d42(_0x216459,_0x25efa9,_0x3ebef4);let E=class extends o['Disposable']{constructor(_0x5dc698){var _0x568b19=_0x434b0e;super(),this[_0x568b19(0xcc)]=_0x5dc698,this[_0x568b19(0xc6)]();}[_0x434b0e(0xc6)](){var _0xa15dcd=_0x434b0e;[D['SetZoomRatioOperation']['id'],D[_0xa15dcd(0x11e)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x1760e3=>{var _0x2c8161=_0xa15dcd;this[_0x2c8161(0xdd)](this[_0x2c8161(0xcc)]['registerSharedOperation'](_0x1760e3));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x434b0e(0xd7)],se=Object['getOwnPropertyDescriptor'],oe=(_0x39b934,_0x4bc53b,_0x534b6e)=>_0x4bc53b in _0x39b934?re(_0x39b934,_0x4bc53b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534b6e}):_0x39b934[_0x4bc53b]=_0x534b6e,ae=(_0x8d57a3,_0x3995ce,_0x1c2c89,_0x24f6db)=>{var _0x33084f=_0x434b0e;for(var _0x23947a=_0x24f6db>0x1?void 0x0:_0x24f6db?se(_0x3995ce,_0x1c2c89):_0x3995ce,_0x53809f=_0x8d57a3[_0x33084f(0x167)]-0x1,_0x18075e;_0x53809f>=0x0;_0x53809f--)(_0x18075e=_0x8d57a3[_0x53809f])&&(_0x23947a=_0x18075e(_0x23947a)||_0x23947a);return _0x23947a;},N=(_0x1e1e30,_0x5c80aa)=>(_0x528332,_0x5e267e)=>_0x5c80aa(_0x528332,_0x5e267e,_0x1e1e30),T=(_0x5440db,_0x2eaa6c,_0x24a56f)=>oe(_0x5440db,typeof _0x2eaa6c!='symbol'?_0x2eaa6c+'':_0x2eaa6c,_0x24a56f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x434b0e(0xd9)]=class extends o['Plugin']{constructor(_0x3aa3ae=L,_0x205788,_0x1cccce){var _0x3f7560=_0x434b0e;super(),this[_0x3f7560(0x14e)]=_0x3aa3ae,this[_0x3f7560(0xcf)]=_0x205788,this['_configService']=_0x1cccce;const {..._0x4337b1}=o[_0x3f7560(0xc0)]({},L,this['_config']);this[_0x3f7560(0x120)][_0x3f7560(0xa6)](ee,_0x4337b1);}[_0x434b0e(0x12e)](){var _0x244d12=_0x434b0e;o[_0x244d12(0x13a)](this[_0x244d12(0xcf)],o[_0x244d12(0x165)]([[O],[exports['LiveShareController']],[E],[exports[_0x244d12(0x11f)]]],this[_0x244d12(0x14e)][_0x244d12(0x160)])),o['touchDependencies'](this[_0x244d12(0xcf)],[[E]]);}[_0x434b0e(0x133)](){var _0x47ea1f=_0x434b0e;o[_0x47ea1f(0x168)](this[_0x47ea1f(0xcf)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x434b0e(0x107),o[_0x434b0e(0x11a)][_0x434b0e(0x15e)]),T(exports[_0x434b0e(0xd9)],'pluginName',le),exports[_0x434b0e(0xd9)]=ae([o[_0x434b0e(0xbe)](m[_0x434b0e(0xae)]),N(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),N(0x2,o[_0x434b0e(0x128)])],exports[_0x434b0e(0xd9)]),exports[_0x434b0e(0x100)]=A,exports[_0x434b0e(0x12d)]=O,exports[_0x434b0e(0xe2)]=h;
|
|
1
|
+
'use strict';var _0x1a0662=_0x2331;(function(_0x15d73e,_0xb4eda6){var _0x4062cc=_0x2331,_0x3e229b=_0x15d73e();while(!![]){try{var _0x48da1c=parseInt(_0x4062cc(0xa5))/0x1+parseInt(_0x4062cc(0xe4))/0x2*(-parseInt(_0x4062cc(0x15f))/0x3)+parseInt(_0x4062cc(0xe2))/0x4+-parseInt(_0x4062cc(0xb3))/0x5+parseInt(_0x4062cc(0x10b))/0x6+parseInt(_0x4062cc(0xc2))/0x7+-parseInt(_0x4062cc(0x12e))/0x8;if(_0x48da1c===_0xb4eda6)break;else _0x3e229b['push'](_0x3e229b['shift']());}catch(_0xd2c49a){_0x3e229b['push'](_0x3e229b['shift']());}}}(_0x5ecc,0xc9cb2));var U=Object[_0x1a0662(0xb9)],F=(_0x134420,_0x5ba7c0,_0xd5edb8)=>_0x5ba7c0 in _0x134420?U(_0x134420,_0x5ba7c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd5edb8}):_0x134420[_0x5ba7c0]=_0xd5edb8,v=(_0x4b1989,_0x43bebb,_0xf51cc2)=>F(_0x4b1989,typeof _0x43bebb!=_0x1a0662(0xde)?_0x43bebb+'':_0x43bebb,_0xf51cc2);Object['defineProperty'](exports,Symbol[_0x1a0662(0x117)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0xe9a1ad=_0x1a0662;return u=Object[_0xe9a1ad(0x105)]||function(_0x47a1cd){var _0x35d066=_0xe9a1ad;for(var _0x4dce28,_0x5b2ea7=0x1,_0x6fe5cf=arguments['length'];_0x5b2ea7<_0x6fe5cf;_0x5b2ea7++){_0x4dce28=arguments[_0x5b2ea7];for(var _0x503b86 in _0x4dce28)Object[_0x35d066(0xe0)][_0x35d066(0xcc)][_0x35d066(0xe7)](_0x4dce28,_0x503b86)&&(_0x47a1cd[_0x503b86]=_0x4dce28[_0x503b86]);}return _0x47a1cd;},u[_0xe9a1ad(0xa4)](this,arguments);},$=function(_0x5bf0a7,_0xd32c2b){var _0x3e2620=_0x1a0662,_0x40bc4d={};for(var _0x302a4c in _0x5bf0a7)Object[_0x3e2620(0xe0)][_0x3e2620(0xcc)]['call'](_0x5bf0a7,_0x302a4c)&&_0xd32c2b[_0x3e2620(0xba)](_0x302a4c)<0x0&&(_0x40bc4d[_0x302a4c]=_0x5bf0a7[_0x302a4c]);if(_0x5bf0a7!=null&&typeof Object['getOwnPropertySymbols']==_0x3e2620(0xd6)){for(var _0x1bb84b=0x0,_0x302a4c=Object[_0x3e2620(0xab)](_0x5bf0a7);_0x1bb84b<_0x302a4c[_0x3e2620(0x124)];_0x1bb84b++)_0xd32c2b['indexOf'](_0x302a4c[_0x1bb84b])<0x0&&Object['prototype'][_0x3e2620(0x89)][_0x3e2620(0xe7)](_0x5bf0a7,_0x302a4c[_0x1bb84b])&&(_0x40bc4d[_0x302a4c[_0x1bb84b]]=_0x5bf0a7[_0x302a4c[_0x1bb84b]]);}return _0x40bc4d;},j=f[_0x1a0662(0xb8)](function(_0x572bb8,_0x4bc798){var _0x3e84d=_0x1a0662,_0x5e20ee=_0x572bb8['icon'],_0x1a671b=_0x572bb8['id'],_0x5efff9=_0x572bb8[_0x3e84d(0x147)],_0x8fc825=_0x572bb8['extend'],_0xca3ab3=$(_0x572bb8,['icon','id',_0x3e84d(0x147),_0x3e84d(0x122)]),_0x123c31=_0x3e84d(0xa0)[_0x3e84d(0xc8)](_0x1a671b,'\x20')['concat'](_0x5efff9||'')[_0x3e84d(0xd9)](),_0x3a967b=f[_0x3e84d(0x139)]('_'['concat'](k()));return y(_0x5e20ee,''[_0x3e84d(0xc8)](_0x1a671b),{'defIds':_0x5e20ee['defIds'],'idSuffix':_0x3a967b[_0x3e84d(0x90)]},u({'ref':_0x4bc798,'className':_0x123c31},_0xca3ab3),_0x8fc825);});function y(_0x38fc09,_0x589aa6,_0x356482,_0x137b4b,_0x547d1a){var _0x597296=_0x1a0662;return f[_0x597296(0x13c)](_0x38fc09[_0x597296(0xed)],u(u({'key':_0x589aa6},H(_0x38fc09,_0x356482,_0x547d1a)),_0x137b4b),(V(_0x38fc09,_0x356482)['children']||[])[_0x597296(0xc7)](function(_0x477be1,_0x2eeec3){var _0x11c643=_0x597296;return y(_0x477be1,''[_0x11c643(0xc8)](_0x589aa6,'-')['concat'](_0x38fc09[_0x11c643(0xed)],'-')[_0x11c643(0xc8)](_0x2eeec3),_0x356482,void 0x0,_0x547d1a);}));}function H(_0x331393,_0x1a471c,_0x3e9da3){var _0x2679fb=_0x1a0662,_0x513e4f=u({},_0x331393['attrs']);_0x3e9da3!=null&&_0x3e9da3[_0x2679fb(0x141)]&&_0x513e4f[_0x2679fb(0x11b)]===_0x2679fb(0x141)&&(_0x513e4f['fill']=_0x3e9da3[_0x2679fb(0x141)]),_0x331393[_0x2679fb(0xed)]===_0x2679fb(0xd8)&&_0x513e4f['id']&&(_0x513e4f['id']=_0x513e4f['id']+_0x1a471c[_0x2679fb(0x14d)]),Object['entries'](_0x513e4f)[_0x2679fb(0x9d)](function(_0xc850db){var _0x3c738e=_0x2679fb,_0x18d8d5=_0xc850db[0x0],_0x39d503=_0xc850db[0x1];_0x18d8d5===_0x3c738e(0xd8)&&typeof _0x39d503=='string'&&(_0x513e4f[_0x18d8d5]=_0x39d503[_0x3c738e(0xce)](/url\(#(.*)\)/,'url(#$1'[_0x3c738e(0xc8)](_0x1a471c[_0x3c738e(0x14d)],')')));});var _0x2c0742=_0x1a471c[_0x2679fb(0x80)];return!_0x2c0742||_0x2c0742['length']===0x0||(_0x331393[_0x2679fb(0xed)]==='use'&&_0x513e4f[_0x2679fb(0x10a)]&&(_0x513e4f[_0x2679fb(0x10a)]=_0x513e4f['xlink:href']+_0x1a471c[_0x2679fb(0x14d)]),Object['entries'](_0x513e4f)[_0x2679fb(0x9d)](function(_0x433907){var _0x5397dd=_0x2679fb,_0x168325=_0x433907[0x0],_0x550721=_0x433907[0x1];typeof _0x550721==_0x5397dd(0x95)&&(_0x513e4f[_0x168325]=_0x550721[_0x5397dd(0xce)](/url\(#(.*)\)/,_0x5397dd(0x13b)['concat'](_0x1a471c[_0x5397dd(0x14d)],')')));})),_0x513e4f;}function _0x2331(_0x503aa2,_0x84ac61){var _0x5ecc4c=_0x5ecc();return _0x2331=function(_0x233157,_0x51678f){_0x233157=_0x233157-0x80;var _0x54a53b=_0x5ecc4c[_0x233157];return _0x54a53b;},_0x2331(_0x503aa2,_0x84ac61);}function V(_0x22d112,_0x36ea32){var _0x590834=_0x1a0662,_0x41b256,_0x3e4ce5=_0x36ea32[_0x590834(0x80)];return!_0x3e4ce5||_0x3e4ce5[_0x590834(0x124)]===0x0?_0x22d112:_0x22d112['tag']===_0x590834(0x92)&&(!((_0x41b256=_0x22d112[_0x590834(0xc6)])===null||_0x41b256===void 0x0)&&_0x41b256[_0x590834(0x124)])?u(u({},_0x22d112),{'children':_0x22d112[_0x590834(0xc6)][_0x590834(0xc7)](function(_0x5b5d66){var _0xe0667a=_0x590834;return typeof _0x5b5d66[_0xe0667a(0xad)]['id']==_0xe0667a(0x95)&&_0x3e4ce5&&_0x3e4ce5[_0xe0667a(0xcf)](_0x5b5d66['attrs']['id'])?u(u({},_0x5b5d66),{'attrs':u(u({},_0x5b5d66[_0xe0667a(0xad)]),{'id':_0x5b5d66[_0xe0667a(0xad)]['id']+_0x36ea32[_0xe0667a(0x14d)]})}):_0x5b5d66;})}):_0x22d112;}function k(){var _0x25704f=_0x1a0662;return Math['random']()[_0x25704f(0x10e)](0x24)[_0x25704f(0x12a)](0x2,0x8);}j[_0x1a0662(0x135)]=_0x1a0662(0xcd);var M={'tag':_0x1a0662(0x11a),'attrs':{'xmlns':_0x1a0662(0x128),'fill':_0x1a0662(0x8c),'viewBox':_0x1a0662(0x142),'width':_0x1a0662(0x10d),'height':_0x1a0662(0x10d)},'children':[{'tag':'path','attrs':{'fill':_0x1a0662(0xd3),'d':_0x1a0662(0x145)}},{'tag':_0x1a0662(0xf5),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1a0662(0x110),'clipRule':_0x1a0662(0x110)}}]},P=f['forwardRef'](function(_0x38c39e,_0x306685){var _0x3bbfbe=_0x1a0662;return f[_0x3bbfbe(0x13c)](j,Object[_0x3bbfbe(0x105)]({},_0x38c39e,{'id':_0x3bbfbe(0x136),'ref':_0x306685,'icon':M}));});P['displayName']=_0x1a0662(0xc1);class O extends o['Disposable']{constructor(){var _0x582208=_0x1a0662;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x582208(0x125),new Set());}[_0x1a0662(0xd4)](_0x181841){var _0x24aa9b=_0x1a0662;return this['_sharedOperations'][_0x24aa9b(0x155)](_0x181841),o['toDisposable'](()=>this[_0x24aa9b(0x11c)][_0x24aa9b(0xdf)](_0x181841));}[_0x1a0662(0x103)](_0x37d178){var _0x7e83ba=_0x1a0662;return this[_0x7e83ba(0x125)][_0x7e83ba(0x155)](_0x37d178),o[_0x7e83ba(0x158)](()=>this['_reporters']['delete'](_0x37d178));}[_0x1a0662(0xa7)](_0x1f2793){var _0x77a7d7=_0x1a0662;return this[_0x77a7d7(0x11c)][_0x77a7d7(0xe6)](_0x1f2793);}['getInitialStates'](_0x4017c1){var _0x4c96b3=_0x1a0662;return Array[_0x4c96b3(0x121)](this['_reporters'])[_0x4c96b3(0xc7)](_0x5d70f9=>_0x5d70f9(_0x4017c1));}}var q=Object[_0x1a0662(0xbc)],R=(_0x452619,_0x134b16,_0x596234,_0x2c5fdf)=>{var _0x3f2769=_0x1a0662;for(var _0x5c1078=_0x2c5fdf>0x1?void 0x0:_0x2c5fdf?q(_0x134b16,_0x596234):_0x134b16,_0x4aefd9=_0x452619[_0x3f2769(0x124)]-0x1,_0x256a62;_0x4aefd9>=0x0;_0x4aefd9--)(_0x256a62=_0x452619[_0x4aefd9])&&(_0x5c1078=_0x256a62(_0x5c1078)||_0x5c1078);return _0x5c1078;},S=(_0x576394,_0x36fa74)=>(_0x39afdb,_0xc005bd)=>_0x36fa74(_0x39afdb,_0xc005bd,_0x576394);exports[_0x1a0662(0x132)]=class extends o[_0x1a0662(0x12c)]{constructor(_0x456429,_0x24c820,_0x9b1204){var _0xb0f381=_0x1a0662;super(),v(this,_0xb0f381(0xf6),new Map()),(this[_0xb0f381(0x12b)]=_0x456429,this['_injector']=_0x24c820,this[_0xb0f381(0x12d)]=_0x9b1204,this[_0xb0f381(0x148)]());}async[_0x1a0662(0xf9)](_0x10484e){var _0x455737=_0x1a0662;return this[_0x455737(0xf6)]['has'](_0x10484e)||await this[_0x455737(0x10c)](_0x10484e),this[_0x455737(0xf6)]['get'](_0x10484e);}[_0x1a0662(0x148)](){var _0x2c50ca=_0x1a0662;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2c50ca(0x9f)][_0x2c50ca(0x152)])['pipe'](b['takeUntil'](this[_0x2c50ca(0xd5)]))[_0x2c50ca(0xae)](async _0x309501=>{var _0x47fe0e=_0x2c50ca;const _0x2e00e8=_0x309501['getUnitId']();this[_0x47fe0e(0xf6)][_0x47fe0e(0xe6)](_0x2e00e8)||this['_startLiveShareCoordinator'](_0x2e00e8);}),this[_0x2c50ca(0x12b)]['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](b['takeUntil'](this[_0x2c50ca(0xd5)]))[_0x2c50ca(0xae)](_0xf66158=>{var _0x146c6a=_0x2c50ca;const _0x41506b=_0xf66158[_0x146c6a(0x13a)](),_0x38f7ad=this[_0x146c6a(0xf6)][_0x146c6a(0x106)](_0x41506b);_0x38f7ad==null||_0x38f7ad[_0x146c6a(0x100)]();});}async[_0x1a0662(0x10c)](_0x350dfb){var _0x4b3817=_0x1a0662;const _0x35bcb4=await this['_collabSessionService'][_0x4b3817(0xee)](_0x350dfb),_0x93204e=this['_injector']['createInstance'](exports[_0x4b3817(0xea)],_0x350dfb,_0x35bcb4);return _0x93204e[_0x4b3817(0x15d)](),this[_0x4b3817(0xf6)][_0x4b3817(0xb0)](_0x350dfb,_0x93204e),_0x93204e;}},exports['LiveShareController']=R([S(0x0,o[_0x1a0662(0x120)]),S(0x1,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),S(0x2,o[_0x1a0662(0xf2)](m[_0x1a0662(0x83)]))],exports[_0x1a0662(0x132)]);var h=(_0x2336fc=>(_0x2336fc[_0x1a0662(0x14c)]=_0x1a0662(0xac),_0x2336fc[_0x1a0662(0xd1)]=_0x1a0662(0xc9),_0x2336fc[_0x1a0662(0xec)]='following',_0x2336fc[_0x1a0662(0x96)]=_0x1a0662(0x15b),_0x2336fc[_0x1a0662(0x9c)]=_0x1a0662(0xfb),_0x2336fc))(h||{});const W=_0x1a0662(0x114),G=0xc8;exports[_0x1a0662(0xea)]=class extends o[_0x1a0662(0x12c)]{constructor(_0x2f8142,_0x272654,_0x4a51a4,_0x39c9b6,_0xd8530a){var _0x37b76a=_0x1a0662;super(),v(this,'_status$',new w[(_0x37b76a(0xc5))]('idle')),v(this,'status$',this[_0x37b76a(0xcb)][_0x37b76a(0x9b)]()),v(this,_0x37b76a(0x148),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x37b76a(0x156)]=_0x2f8142,this[_0x37b76a(0xfc)]=_0x272654,this['_configService']=_0x4a51a4,this[_0x37b76a(0x131)]=_0x39c9b6,this[_0x37b76a(0x11d)]=_0xd8530a);}get[_0x1a0662(0xa3)](){var _0x225a71=_0x1a0662;return this[_0x225a71(0xcb)]['getValue']();}['dispose'](){var _0x12161c=_0x1a0662,_0x521e60;(_0x521e60=this['_commandDisposable'])==null||_0x521e60['dispose'](),this[_0x12161c(0xcb)]['next']('idle'),this[_0x12161c(0xcb)]['complete']();}['init'](){var _0x571b92=_0x1a0662;this[_0x571b92(0x148)]||(this[_0x571b92(0x148)]=!0x0,this[_0x571b92(0xfc)][_0x571b92(0x11e)][_0x571b92(0x8b)](b[_0x571b92(0x88)](this[_0x571b92(0xd5)]))[_0x571b92(0xae)](_0x43adc2=>{var _0x43eb60=_0x571b92;switch(_0x43adc2){case m[_0x43eb60(0xef)][_0x43eb60(0x14c)]:this[_0x43eb60(0xfe)]();break;case m[_0x43eb60(0xef)][_0x43eb60(0x138)]:this[_0x43eb60(0xe1)]();break;}}),this[_0x571b92(0xfc)]['event$'][_0x571b92(0x8b)](b[_0x571b92(0x88)](this[_0x571b92(0xd5)]))[_0x571b92(0xae)](_0x1b202d=>{var _0x1227ac=_0x571b92;const {eventID:_0x55efa8}=_0x1b202d;switch(_0x55efa8){case _[_0x1227ac(0x8a)][_0x1227ac(0xfd)]:this['_handleNewHost'](_0x1b202d);break;case _[_0x1227ac(0x8a)][_0x1227ac(0x140)]:this[_0x1227ac(0x8e)](_0x1b202d);break;case _[_0x1227ac(0x8a)][_0x1227ac(0x116)]:this[_0x1227ac(0xe9)]();break;case _[_0x1227ac(0x8a)][_0x1227ac(0x112)]:this['_handleNewChangeSets'](_0x1b202d);break;}}));}[_0x1a0662(0xbb)](){var _0x31d936=_0x1a0662;this[_0x31d936(0xfc)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31d936(0x156)],'userID':this['_collabSession'][_0x31d936(0xa9)]()}},this[_0x31d936(0x156)]);}['stopPresenting'](){var _0xe59017=_0x1a0662;this[_0xe59017(0xa3)]===_0xe59017(0xfb)&&(this['_status$'][_0xe59017(0xa6)](_0xe59017(0xc9)),this[_0xe59017(0xfc)][_0xe59017(0x144)]({'eventID':_[_0xe59017(0x8a)][_0xe59017(0x116)],'data':{'unitID':this[_0xe59017(0x156)]}},this[_0xe59017(0x156)]));}[_0x1a0662(0x108)](){var _0x1fcd1=_0x1a0662;this[_0x1fcd1(0xa3)]===_0x1fcd1(0x15b)&&(this['_status$'][_0x1fcd1(0xa6)](_0x1fcd1(0x137)),this[_0x1fcd1(0x130)]());}[_0x1a0662(0x97)](){var _0x587f6b=_0x1a0662;this['_status']===_0x587f6b(0x137)&&this[_0x587f6b(0x159)]();}[_0x1a0662(0xca)](_0x2be3c9){var _0x38622e=_0x1a0662;const {presenter:_0x33321b}=_0x2be3c9[_0x38622e(0x115)],_0x2390f6=this[_0x38622e(0xfc)][_0x38622e(0xa9)]();this[_0x38622e(0xe5)]=_0x33321b,_0x33321b===_0x2390f6?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x38622e(0xa3)]!==_0x38622e(0x15b)&&(this[_0x38622e(0x150)](),this[_0x38622e(0x130)]());}[_0x1a0662(0x102)](){var _0x5edeaf=_0x1a0662;const _0x50927a={'eventID':_[_0x5edeaf(0x8a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5edeaf(0xfc)]['send'](_0x50927a,this['_unitID']);}[_0x1a0662(0xe9)](){var _0x85044c=_0x1a0662;this[_0x85044c(0xe5)]=null,this[_0x85044c(0xa3)]!==_0x85044c(0xfb)&&this[_0x85044c(0x101)]();}[_0x1a0662(0x15e)](_0x145013){var _0x57e328=_0x1a0662;if(this[_0x57e328(0xa3)]==='following'&&this['_presenter']===_0x145013[_0x57e328(0x115)]['memberID']){const _0xcafe41=_[_0x57e328(0x9a)](_0x145013[_0x57e328(0x115)])[_0x57e328(0xa8)][_0x57e328(0xa1)]()[_0x57e328(0x15c)](_0x3e7c87=>_0x3e7c87['id']===C['InsertSheetMutation']['id']);if(_0xcafe41){const _0x17d34f=_0xcafe41[_0x57e328(0x113)][_0x57e328(0x119)],_0x5db845=_0xcafe41[_0x57e328(0x113)][_0x57e328(0x154)]['id'];setTimeout(()=>{var _0x4ae699=_0x57e328;this['_commandService'][_0x4ae699(0x10f)](C[_0x4ae699(0x109)]['id'],{'unitId':_0x17d34f,'subUnitId':_0x5db845},{'fromCollab':!0x0});});}}}[_0x1a0662(0xf7)](){var _0x1ea2c6=_0x1a0662;this['_status$'][_0x1ea2c6(0xa6)](_0x1ea2c6(0xfb));const _0x4fadd5=new Map(),_0x2b87bc=this[_0x1ea2c6(0x13f)]=new o[(_0x1ea2c6(0x9e))]();_0x2b87bc[_0x1ea2c6(0x155)](o[_0x1ea2c6(0x158)](()=>{var _0x1fc261=_0x1ea2c6;_0x4fadd5[_0x1fc261(0x9d)](_0x1ac92a=>_0x1ac92a[_0x1fc261(0x104)]()),_0x4fadd5['clear']();})),_0x2b87bc[_0x1ea2c6(0x155)](this['_commandService'][_0x1ea2c6(0x14f)](_0x44f6a4=>{var _0x1e718d=_0x1ea2c6,_0xec9d03;if(_0x44f6a4['type']!==o['CommandType'][_0x1e718d(0xd7)]||!this['_liveShareService']['shouldShareOperation'](_0x44f6a4['id']))return;const {id:_0xa6c52c}=_0x44f6a4;let _0x1a97da;_0x4fadd5[_0x1e718d(0xe6)](_0xa6c52c)?_0x1a97da=_0x4fadd5[_0x1e718d(0x106)](_0xa6c52c):(_0x1a97da=new w[(_0x1e718d(0x134))](),_0x4fadd5[_0x1e718d(0xb0)](_0xa6c52c,_0x1a97da),_0x1a97da['pipe'](b[_0x1e718d(0xbf)]((_0xec9d03=this[_0x1e718d(0x84)]['getConfig'](W))!=null?_0xec9d03:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1e718d(0xae)](_0x297878=>{var _0x2f04a4=_0x1e718d;this[_0x2f04a4(0xfc)]['send']({'eventID':_[_0x2f04a4(0x8a)][_0x2f04a4(0x140)],'data':{'unitID':this[_0x2f04a4(0x156)],'operations':{[_0x297878['id']]:{'id':_0x297878['id'],'params':JSON['stringify'](_0x297878['params'])}}}},this['_unitID']);})),_0x1a97da['next'](_0x44f6a4);})),this[_0x1ea2c6(0x131)][_0x1ea2c6(0xeb)](this[_0x1ea2c6(0x156)])['forEach'](_0x3dee2a=>this[_0x1ea2c6(0xfc)][_0x1ea2c6(0x144)]({'eventID':_[_0x1ea2c6(0x8a)][_0x1ea2c6(0x140)],'data':{'unitID':this[_0x1ea2c6(0x156)],'operations':{[_0x3dee2a['id']]:{'id':_0x3dee2a['id'],'params':JSON[_0x1ea2c6(0x127)](_0x3dee2a[_0x1ea2c6(0x113)])}}}},this[_0x1ea2c6(0x156)]));}[_0x1a0662(0x150)](){var _0x17c0d3=_0x1a0662,_0x3c358c;this[_0x17c0d3(0xcb)][_0x17c0d3(0xa6)](_0x17c0d3(0xc9)),(_0x3c358c=this[_0x17c0d3(0x13f)])==null||_0x3c358c[_0x17c0d3(0x100)](),this[_0x17c0d3(0x13f)]=null;}['_startFollowing'](){var _0x123707=_0x1a0662,_0x27b9a8;(_0x27b9a8=this[_0x123707(0x13f)])==null||_0x27b9a8[_0x123707(0x100)](),this[_0x123707(0xcb)][_0x123707(0xa6)](_0x123707(0x137));}['_beIdle'](){var _0x34d4d7=_0x1a0662,_0x152d2b;this['_status$'][_0x34d4d7(0xa6)](_0x34d4d7(0xc9)),(_0x152d2b=this[_0x34d4d7(0x13f)])==null||_0x152d2b[_0x34d4d7(0x100)](),this[_0x34d4d7(0x13f)]=null;}[_0x1a0662(0x159)](){var _0x15daa3=_0x1a0662,_0x88a90a;this[_0x15daa3(0xcb)]['next'](_0x15daa3(0x15b)),(_0x88a90a=this[_0x15daa3(0x13f)])==null||_0x88a90a[_0x15daa3(0x100)]();}[_0x1a0662(0x8e)](_0x52ec16){var _0x2e30de=_0x1a0662;if([_0x2e30de(0xfb),_0x2e30de(0x15b),'offline'][_0x2e30de(0xcf)](this['_status'])||!_0x52ec16[_0x2e30de(0x115)]['presenter']||_0x52ec16['data'][_0x2e30de(0x98)]===this[_0x2e30de(0xfc)][_0x2e30de(0xa9)]())return;this[_0x2e30de(0xa3)]==='idle'&&this[_0x2e30de(0x130)]();const _0x393d66=_0x52ec16[_0x2e30de(0x115)][_0x2e30de(0x123)];Object[_0x2e30de(0xda)](_0x393d66)[_0x2e30de(0x9d)](_0x47f17c=>{var _0x322b87=_0x2e30de;this['_commandService'][_0x322b87(0x10f)](_0x47f17c['id'],_0x47f17c[_0x322b87(0x113)]?JSON['parse'](_0x47f17c[_0x322b87(0x113)]):null,{'fromCollab':!0x0});});}[_0x1a0662(0xfe)](){var _0x4fd573=_0x1a0662,_0x46eff5;this[_0x4fd573(0xcb)][_0x4fd573(0xa6)](_0x4fd573(0xac)),(_0x46eff5=this['_commandDisposable'])==null||_0x46eff5['dispose']();}[_0x1a0662(0xe1)](){var _0x495117=_0x1a0662;this[_0x495117(0xcb)][_0x495117(0xa6)](_0x495117(0xc9)),this[_0x495117(0x102)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x1a0662(0xd2)]),S(0x3,o[_0x1a0662(0xf2)](O)),S(0x4,o[_0x1a0662(0xb5)])],exports[_0x1a0662(0xea)]);function _0x5ecc(){var _0x2c730a=['not-following','find','init','_handleNewChangeSets','21ncBaPz','defIds','button','live-share.config','CollaborationSessionService','_configService','You\x27are\x20offline.','useObservable','LiveShareService','takeUntil','propertyIsEnumerable','CollaborationEvent','pipe','none','Injector','_handleOperation','Start\x20following','current','merge','defs','Disposable','Fragment','string','NOT_FOLLOWING','stopFollowing','presenter','univer-size-4','parseProtocolChangeset','asObservable','PRESENTING','forEach','DisposableCollection','UniverInstanceType','univerjs-icon\x20univerjs-icon-','reverse','Plugin','_status','apply','636106gWyMbl','next','shouldShareOperation','mutations','getMemberID','UNIVER_UNKNOWN','getOwnPropertySymbols','offline','attrs','subscribe','jsx','set','Present\x20this\x20document','Button','7059370jVNjaa','status$','ICommandService','DependentOn','useState','forwardRef','defineProperty','indexOf','tryStartPresenting','getOwnPropertyDescriptor','div','onStarting','throttleTime','default','LiveShareIcon','8847279yLmULl','_injector','UNIVER_LIVE_SHARE_PLUGIN','BehaviorSubject','children','map','concat','idle','_handleNewHost','_status$','hasOwnProperty','UniverIcon','replace','includes','LiveShareStatus','IDLE','IConfigService','currentColor','registerSharedOperation','dispose$','function','OPERATION','mask','trim','values','Start','You\x27re\x20not\x20following\x20the\x20presenter','end','symbol','delete','prototype','_handleOnline','1750660stXBZl','mergeOverrideWithDependencies','221356iBjYLd','_presenter','has','call','useEffect','_handleTerminate','LiveShareCoordinator','getInitialStates','FOLLOWING','tag','requireSession','SessionStatus','Stop\x20following','_mountLiveShare','Inject','Dropdown','then','path','_entities','_startPresenting','touchDependencies','getLiveShareCoordinator','override','presenting','_collabSession','LIVESHARE_NEW_HOST','_handleOffline','BuiltInUIPart','dispose','_beIdle','_fetchOperations','registerInitialStateReporter','complete','assign','get','You\x27re\x20following\x20the\x20presenter','startFollowing','SetWorksheetActiveOperation','xlink:href','8772810RXFCHK','_startLiveShareCoordinator','1em','toString','executeCommand','evenodd','UniverCollaborationClientPlugin','NEW_CHANGESETS','params','SAME_OPERATION_SHARE_INTERVAL','data','LIVESHARE_TERMINATE','toStringTag','useDependency','unitId','svg','fill','_sharedOperations','_commandService','sessionStatus$','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','from','extend','operations','length','_reporters','unsubscribe','stringify','http://www.w3.org/2000/svg','registerDependencies','substring','_univerInstanceService','RxDisposable','_collabSessionService','6293096Ihfrwm','_uiPartsService','_startFollowing','_liveShareService','LiveShareController','_config','Subject','displayName','live-share-icon','following','ONLINE','useRef','getUnitId','url(#$1','createElement','pluginName','disposeWithMe','_commandDisposable','LIVESHARE_OPERATION','colorChannel1','0\x200\x2017\x2017','Stop\x20presenting','send','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','clsx','className','_init','DesktopLiveShareController','IUIPartsService','type','OFFLINE','idSuffix','text','onCommandExecuted','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_SHEET','jsxs','sheet','add','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toDisposable','_stopFollowing','UniverLiveSharePlugin'];_0x5ecc=function(){return _0x2c730a;};return _0x5ecc();}function A(){var _0x5daa6d=_0x1a0662;const _0x170551=p[_0x5daa6d(0x118)](exports[_0x5daa6d(0x132)]),_0x4194c0=p[_0x5daa6d(0x118)](o[_0x5daa6d(0x120)]),_0x1ec8f5=p[_0x5daa6d(0x86)](()=>_0x4194c0['getCurrentTypeOfUnit$'](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4951e4,_0x2f2853]=f[_0x5daa6d(0xb7)](null),[_0x17fffd,_0x466ff5]=f[_0x5daa6d(0xb7)](h[_0x5daa6d(0xd1)]),_0x3b6fc5=f[_0x5daa6d(0x139)](null);return f[_0x5daa6d(0xe8)](()=>(_0x1ec8f5&&_0x170551[_0x5daa6d(0xf9)](_0x1ec8f5[_0x5daa6d(0x13a)]())[_0x5daa6d(0xf4)](_0x3a461c=>{var _0x3f6c66=_0x5daa6d;_0x2f2853(_0x3a461c),_0x3b6fc5[_0x3f6c66(0x90)]=_0x3a461c[_0x3f6c66(0xb4)][_0x3f6c66(0xae)](_0x5d816f=>{_0x466ff5(_0x5d816f);});}),()=>{var _0x2137a6=_0x5daa6d,_0x48ff3c;(_0x48ff3c=_0x3b6fc5['current'])==null||_0x48ff3c[_0x2137a6(0x126)](),_0x3b6fc5[_0x2137a6(0x90)]=null;}),[_0x1ec8f5,_0x170551]),_0x4951e4?l[_0x5daa6d(0xaf)](g[_0x5daa6d(0xf3)],{'align':_0x5daa6d(0xdd),'disabled':_0x17fffd===h[_0x5daa6d(0x14c)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x5daa6d(0xaf)](B,{'status':_0x17fffd,'coordinator':_0x4951e4}),'children':l['jsx'](_0x5daa6d(0x81),{'className':g[_0x5daa6d(0x146)](_0x5daa6d(0x157),{'univer-cursor-not-allowed':_0x17fffd===h[_0x5daa6d(0x14c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17fffd!==h[_0x5daa6d(0x14c)]}),'type':_0x5daa6d(0x81),'children':l[_0x5daa6d(0xaf)](P,{'className':_0x5daa6d(0x99)})})}):null;}function B(_0x261889){var _0x3e71f2=_0x1a0662;const {status:_0x46476f,coordinator:_0x5a6816}=_0x261889;switch(_0x46476f){case h[_0x3e71f2(0xd1)]:return l[_0x3e71f2(0xaf)](Y,{'coordinator':_0x5a6816});case h[_0x3e71f2(0xec)]:return l[_0x3e71f2(0xaf)](Z,{'coordinator':_0x5a6816});case h[_0x3e71f2(0x96)]:return l[_0x3e71f2(0xaf)](J,{'coordinator':_0x5a6816});case h[_0x3e71f2(0x14c)]:return l[_0x3e71f2(0xaf)](z,{});case h['PRESENTING']:return l[_0x3e71f2(0xaf)](K,{'coordinator':_0x5a6816});default:return null;}}function Y(_0x36ef12){var _0x48c872=_0x1a0662;const {coordinator:_0x4cca1c}=_0x36ef12;return l['jsxs'](l[_0x48c872(0x94)],{'children':[l[_0x48c872(0xaf)](_0x48c872(0xbd),{'className':_0x48c872(0x151),'children':_0x48c872(0xb1)}),l[_0x48c872(0xaf)](g['Button'],{'onClick':()=>_0x4cca1c['tryStartPresenting'](),'children':_0x48c872(0xdb)})]});}function Z(_0x5e2200){var _0xd1753b=_0x1a0662;const {coordinator:_0x38f64e}=_0x5e2200;return l[_0xd1753b(0x153)](l[_0xd1753b(0x94)],{'children':[l[_0xd1753b(0xaf)](_0xd1753b(0xbd),{'className':_0xd1753b(0x151),'children':_0xd1753b(0x107)}),l[_0xd1753b(0xaf)](g[_0xd1753b(0xb2)],{'onClick':()=>_0x38f64e[_0xd1753b(0x97)](),'children':_0xd1753b(0xf0)})]});}function J(_0x2311cb){var _0x57a413=_0x1a0662;const {coordinator:_0x2f0a4b}=_0x2311cb;return l[_0x57a413(0x153)](l[_0x57a413(0x94)],{'children':[l['jsx'](_0x57a413(0xbd),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x57a413(0xdc)}),l[_0x57a413(0xaf)](g[_0x57a413(0xb2)],{'variant':_0x57a413(0x14e),'onClick':()=>_0x2f0a4b[_0x57a413(0x108)](),'children':_0x57a413(0x8f)})]});}function K(_0x2e4f2c){var _0x5206f9=_0x1a0662;const {coordinator:_0x1ec969}=_0x2e4f2c;return l['jsxs'](l[_0x5206f9(0x94)],{'children':[l['jsx']('div',{'className':_0x5206f9(0x151),'children':_0x5206f9(0x11f)}),l[_0x5206f9(0xaf)](g['Button'],{'variant':_0x5206f9(0xc0),'onClick':()=>_0x1ec969['stopPresenting'](),'children':_0x5206f9(0x143)})]});}function z(){var _0x290c72=_0x1a0662;return l['jsx'](l[_0x290c72(0x94)],{'children':_0x290c72(0x85)});}var Q=Object[_0x1a0662(0xbc)],X=(_0x58dae6,_0x1a10a7,_0x2f5bca,_0x2307ba)=>{var _0x1379a9=_0x1a0662;for(var _0x1a4bba=_0x2307ba>0x1?void 0x0:_0x2307ba?Q(_0x1a10a7,_0x2f5bca):_0x1a10a7,_0x59d122=_0x58dae6[_0x1379a9(0x124)]-0x1,_0x264f12;_0x59d122>=0x0;_0x59d122--)(_0x264f12=_0x58dae6[_0x59d122])&&(_0x1a4bba=_0x264f12(_0x1a4bba)||_0x1a4bba);return _0x1a4bba;},x=(_0x2933dc,_0x56f7d8)=>(_0x727a56,_0x25ba29)=>_0x56f7d8(_0x727a56,_0x25ba29,_0x2933dc);exports[_0x1a0662(0x149)]=class extends o[_0x1a0662(0x93)]{constructor(_0x48c56e,_0x4ad4a6){var _0x306028=_0x1a0662;super(),this[_0x306028(0xc3)]=_0x48c56e,this['_uiPartsService']=_0x4ad4a6,this['_mountLiveShare']();}[_0x1a0662(0xf1)](){var _0x30271b=_0x1a0662;this[_0x30271b(0x13e)](this[_0x30271b(0x12f)]['registerComponent'](p[_0x30271b(0xff)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x30271b(0xc3)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),x(0x1,p[_0x1a0662(0x14a)])],exports[_0x1a0662(0x149)]);const ee=_0x1a0662(0x82),L={};var te=Object[_0x1a0662(0xbc)],ie=(_0x1730c8,_0x18f150,_0x367080,_0xadd3b9)=>{var _0xc9500e=_0x1a0662;for(var _0x55ae2b=_0xadd3b9>0x1?void 0x0:_0xadd3b9?te(_0x18f150,_0x367080):_0x18f150,_0x398fc9=_0x1730c8[_0xc9500e(0x124)]-0x1,_0x391d9d;_0x398fc9>=0x0;_0x398fc9--)(_0x391d9d=_0x1730c8[_0x398fc9])&&(_0x55ae2b=_0x391d9d(_0x55ae2b)||_0x55ae2b);return _0x55ae2b;},ne=(_0x4ebc16,_0x112919)=>(_0x30e287,_0x268668)=>_0x112919(_0x30e287,_0x268668,_0x4ebc16);let E=class extends o[_0x1a0662(0x93)]{constructor(_0x18bda0){var _0x484ac3=_0x1a0662;super(),this[_0x484ac3(0x131)]=_0x18bda0,this[_0x484ac3(0x148)]();}[_0x1a0662(0x148)](){var _0x36d098=_0x1a0662;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x36d098(0x109)]['id']]['forEach'](_0x4b0e0a=>{var _0x48345c=_0x36d098;this[_0x48345c(0x13e)](this[_0x48345c(0x131)][_0x48345c(0xd4)](_0x4b0e0a));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x1a0662(0xb9)],se=Object['getOwnPropertyDescriptor'],oe=(_0x297f00,_0x4acec5,_0x1b7884)=>_0x4acec5 in _0x297f00?re(_0x297f00,_0x4acec5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7884}):_0x297f00[_0x4acec5]=_0x1b7884,ae=(_0x280ea6,_0xcc6894,_0x2954f9,_0x5c3d22)=>{var _0x195a98=_0x1a0662;for(var _0x26974f=_0x5c3d22>0x1?void 0x0:_0x5c3d22?se(_0xcc6894,_0x2954f9):_0xcc6894,_0x5d526b=_0x280ea6[_0x195a98(0x124)]-0x1,_0x3eedcc;_0x5d526b>=0x0;_0x5d526b--)(_0x3eedcc=_0x280ea6[_0x5d526b])&&(_0x26974f=_0x3eedcc(_0x26974f)||_0x26974f);return _0x26974f;},N=(_0x14e571,_0x480d87)=>(_0x3caa63,_0x574e8d)=>_0x480d87(_0x3caa63,_0x574e8d,_0x14e571),T=(_0x5a6254,_0x2ddf0c,_0x4fb8c1)=>oe(_0x5a6254,typeof _0x2ddf0c!=_0x1a0662(0xde)?_0x2ddf0c+'':_0x2ddf0c,_0x4fb8c1);const le=_0x1a0662(0xc4);exports[_0x1a0662(0x15a)]=class extends o[_0x1a0662(0xa2)]{constructor(_0x273768=L,_0x1e041e,_0xd30fef){var _0x293f71=_0x1a0662;super(),this[_0x293f71(0x133)]=_0x273768,this['_injector']=_0x1e041e,this['_configService']=_0xd30fef;const {..._0x5d99be}=o[_0x293f71(0x91)]({},L,this[_0x293f71(0x133)]);this[_0x293f71(0x84)]['setConfig'](ee,_0x5d99be);}[_0x1a0662(0xbe)](){var _0x562562=_0x1a0662;o[_0x562562(0x129)](this['_injector'],o[_0x562562(0xe3)]([[O],[exports[_0x562562(0x132)]],[E],[exports['DesktopLiveShareController']]],this[_0x562562(0x133)][_0x562562(0xfa)])),o[_0x562562(0xf8)](this[_0x562562(0xc3)],[[E]]);}['onRendered'](){var _0x113e66=_0x1a0662;o[_0x113e66(0xf8)](this[_0x113e66(0xc3)],[[exports[_0x113e66(0x149)]]]);}},T(exports[_0x1a0662(0x15a)],_0x1a0662(0x14b),o[_0x1a0662(0x9f)][_0x1a0662(0xaa)]),T(exports['UniverLiveSharePlugin'],_0x1a0662(0x13d),le),exports[_0x1a0662(0x15a)]=ae([o[_0x1a0662(0xb6)](m[_0x1a0662(0x111)]),N(0x1,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),N(0x2,o[_0x1a0662(0xd2)])],exports[_0x1a0662(0x15a)]),exports['LiveShare']=A,exports[_0x1a0662(0x87)]=O,exports[_0x1a0662(0xd0)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x327e99=_0x3688;(function(_0x2f5a52,_0x1d1acd){var _0x45ca94=_0x3688,_0x2db100=_0x2f5a52();while(!![]){try{var _0x3ff171=parseInt(_0x45ca94(0x8e))/0x1+parseInt(_0x45ca94(0xe5))/0x2+-parseInt(_0x45ca94(0xdc))/0x3+parseInt(_0x45ca94(0x88))/0x4*(-parseInt(_0x45ca94(0x6c))/0x5)+parseInt(_0x45ca94(0xea))/0x6*(-parseInt(_0x45ca94(0xab))/0x7)+-parseInt(_0x45ca94(0x7a))/0x8*(parseInt(_0x45ca94(0x70))/0x9)+parseInt(_0x45ca94(0xf6))/0xa;if(_0x3ff171===_0x1d1acd)break;else _0x2db100['push'](_0x2db100['shift']());}catch(_0x44d1ed){_0x2db100['push'](_0x2db100['shift']());}}}(_0x3700,0x6c1d9));var q=Object['defineProperty'],z=(_0x5b270f,_0x442639,_0x138dd8)=>_0x442639 in _0x5b270f?q(_0x5b270f,_0x442639,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138dd8}):_0x5b270f[_0x442639]=_0x138dd8,d=(_0x4f288f,_0x134075,_0x231e9b)=>z(_0x4f288f,typeof _0x134075!=_0x327e99(0x110)?_0x134075+'':_0x134075,_0x231e9b);import{Disposable as _0x5bd465,toDisposable as _0x2fd3a3,IUniverInstanceService as _0x43cb00,Inject as _0x322c89,Injector as _0x5c2be7,IConfigService as _0x155baf,ICommandService as _0x20c766,RxDisposable as _0x354256,UniverInstanceType as _0x3a995a,DisposableCollection as _0x5aba15,CommandType as _0x3665fe,DependentOn as _0x19b5d5,Plugin as _0x219943,merge as _0x156a51,registerDependencies as _0x14872e,mergeOverrideWithDependencies as _0x56051a,touchDependencies as _0x25c9a6}from'@univerjs/core';import{useDependency as _0x52f11b,useObservable as _0x999678,IUIPartsService as _0xc8b11c,BuiltInUIPart as _0xfe26a1,connectInjector as _0x3de016}from'@univerjs/ui';import{jsx as _0x3c1611,jsxs as _0x440d17,Fragment as _0x3e88f6}from'react/jsx-runtime';import{Dropdown as _0x58654a,clsx as _0x4c2d4b,Button as _0x5087e0}from'@univerjs/design';import{forwardRef as _0xc91793,useRef as _0x5a6ac8,createElement as _0x3a9eb0,useState as _0x2ab18d,useEffect as _0x20b184}from'react';import{CollaborationEvent as _0x436ce5,parseProtocolChangeset as _0x41dbe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x464491,SessionStatus as _0xec3b07,UniverCollaborationClientPlugin as _0x2156c1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x134af5,SetWorksheetActiveOperation as _0x3d1e6a}from'@univerjs/sheets';import{BehaviorSubject as _0x217b49,Subject as _0x4b9add}from'rxjs';import{takeUntil as _0x58b5ad,throttleTime as _0x49ae5d}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a29e4,SetScrollOperation as _0x2ca7f0}from'@univerjs/sheets-ui';var c=function(){var _0x3ae2ea=_0x327e99;return c=Object[_0x3ae2ea(0x107)]||function(_0x192e6e){var _0x3eab5e=_0x3ae2ea;for(var _0x1903c6,_0x27ecdf=0x1,_0x556a93=arguments[_0x3eab5e(0xd1)];_0x27ecdf<_0x556a93;_0x27ecdf++){_0x1903c6=arguments[_0x27ecdf];for(var _0x59d558 in _0x1903c6)Object['prototype'][_0x3eab5e(0x7d)][_0x3eab5e(0xd8)](_0x1903c6,_0x59d558)&&(_0x192e6e[_0x59d558]=_0x1903c6[_0x59d558]);}return _0x192e6e;},c[_0x3ae2ea(0xae)](this,arguments);},Oe=function(_0x381cb6,_0x49a668){var _0x31e99c=_0x327e99,_0x466bcb={};for(var _0x18df95 in _0x381cb6)Object[_0x31e99c(0xa1)][_0x31e99c(0x7d)][_0x31e99c(0xd8)](_0x381cb6,_0x18df95)&&_0x49a668[_0x31e99c(0xb4)](_0x18df95)<0x0&&(_0x466bcb[_0x18df95]=_0x381cb6[_0x18df95]);if(_0x381cb6!=null&&typeof Object[_0x31e99c(0xc8)]==_0x31e99c(0x10a)){for(var _0x23c8c2=0x0,_0x18df95=Object[_0x31e99c(0xc8)](_0x381cb6);_0x23c8c2<_0x18df95[_0x31e99c(0xd1)];_0x23c8c2++)_0x49a668[_0x31e99c(0xb4)](_0x18df95[_0x23c8c2])<0x0&&Object[_0x31e99c(0xa1)]['propertyIsEnumerable']['call'](_0x381cb6,_0x18df95[_0x23c8c2])&&(_0x466bcb[_0x18df95[_0x23c8c2]]=_0x381cb6[_0x18df95[_0x23c8c2]]);}return _0x466bcb;},W=_0xc91793(function(_0x6c243c,_0x211825){var _0x3c4b46=_0x327e99,_0x3c8218=_0x6c243c[_0x3c4b46(0x9c)],_0x58ab1c=_0x6c243c['id'],_0x14f147=_0x6c243c['className'],_0x41c4d7=_0x6c243c[_0x3c4b46(0x11c)],_0x6fbe0e=Oe(_0x6c243c,[_0x3c4b46(0x9c),'id',_0x3c4b46(0xba),_0x3c4b46(0x11c)]),_0x48b0f4=_0x3c4b46(0xf1)['concat'](_0x58ab1c,'\x20')['concat'](_0x14f147||'')[_0x3c4b46(0xbb)](),_0x22c1a8=_0x5a6ac8('_'[_0x3c4b46(0xb5)](Ne()));return Y(_0x3c8218,''[_0x3c4b46(0xb5)](_0x58ab1c),{'defIds':_0x3c8218[_0x3c4b46(0x6b)],'idSuffix':_0x22c1a8[_0x3c4b46(0x10f)]},c({'ref':_0x211825,'className':_0x48b0f4},_0x6fbe0e),_0x41c4d7);});function _0x3688(_0x329e62,_0x542e27){var _0x370032=_0x3700();return _0x3688=function(_0x368811,_0x542c4e){_0x368811=_0x368811-0x6b;var _0x3bbac5=_0x370032[_0x368811];return _0x3bbac5;},_0x3688(_0x329e62,_0x542e27);}function Y(_0xeb623c,_0x6911a1,_0x57fe7e,_0x454e08,_0x3a6054){var _0x54f2f9=_0x327e99;return _0x3a9eb0(_0xeb623c[_0x54f2f9(0xda)],c(c({'key':_0x6911a1},Ee(_0xeb623c,_0x57fe7e,_0x3a6054)),_0x454e08),(we(_0xeb623c,_0x57fe7e)[_0x54f2f9(0x86)]||[])[_0x54f2f9(0xee)](function(_0x21652c,_0x290144){var _0x13289b=_0x54f2f9;return Y(_0x21652c,''['concat'](_0x6911a1,'-')['concat'](_0xeb623c[_0x13289b(0xda)],'-')[_0x13289b(0xb5)](_0x290144),_0x57fe7e,void 0x0,_0x3a6054);}));}function Ee(_0x4efcf4,_0x1caf9b,_0x2ff7c9){var _0x53e28c=_0x327e99,_0x4adb43=c({},_0x4efcf4['attrs']);_0x2ff7c9!=null&&_0x2ff7c9[_0x53e28c(0x8b)]&&_0x4adb43[_0x53e28c(0xe9)]===_0x53e28c(0x8b)&&(_0x4adb43[_0x53e28c(0xe9)]=_0x2ff7c9[_0x53e28c(0x8b)]),_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x99)&&_0x4adb43['id']&&(_0x4adb43['id']=_0x4adb43['id']+_0x1caf9b[_0x53e28c(0xfa)]),Object[_0x53e28c(0x9b)](_0x4adb43)[_0x53e28c(0xcd)](function(_0x49086e){var _0x5bb195=_0x53e28c,_0x2a7d69=_0x49086e[0x0],_0x422665=_0x49086e[0x1];_0x2a7d69==='mask'&&typeof _0x422665==_0x5bb195(0xb8)&&(_0x4adb43[_0x2a7d69]=_0x422665[_0x5bb195(0x11e)](/url\(#(.*)\)/,'url(#$1'[_0x5bb195(0xb5)](_0x1caf9b[_0x5bb195(0xfa)],')')));});var _0x4cd989=_0x1caf9b['defIds'];return!_0x4cd989||_0x4cd989[_0x53e28c(0xd1)]===0x0||(_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x81)&&_0x4adb43[_0x53e28c(0xdf)]&&(_0x4adb43[_0x53e28c(0xdf)]=_0x4adb43[_0x53e28c(0xdf)]+_0x1caf9b[_0x53e28c(0xfa)]),Object['entries'](_0x4adb43)[_0x53e28c(0xcd)](function(_0x1ee9cd){var _0x56fe34=_0x53e28c,_0x7a5740=_0x1ee9cd[0x0],_0x164437=_0x1ee9cd[0x1];typeof _0x164437=='string'&&(_0x4adb43[_0x7a5740]=_0x164437['replace'](/url\(#(.*)\)/,_0x56fe34(0x85)[_0x56fe34(0xb5)](_0x1caf9b[_0x56fe34(0xfa)],')')));})),_0x4adb43;}function we(_0x4ff11b,_0x37e6a3){var _0xae17ea=_0x327e99,_0x2044e9,_0xf4ae1e=_0x37e6a3[_0xae17ea(0x6b)];return!_0xf4ae1e||_0xf4ae1e[_0xae17ea(0xd1)]===0x0?_0x4ff11b:_0x4ff11b[_0xae17ea(0xda)]===_0xae17ea(0x76)&&(!((_0x2044e9=_0x4ff11b[_0xae17ea(0x86)])===null||_0x2044e9===void 0x0)&&_0x2044e9[_0xae17ea(0xd1)])?c(c({},_0x4ff11b),{'children':_0x4ff11b[_0xae17ea(0x86)]['map'](function(_0x5abe70){var _0x203a28=_0xae17ea;return typeof _0x5abe70['attrs']['id']==_0x203a28(0xb8)&&_0xf4ae1e&&_0xf4ae1e['includes'](_0x5abe70[_0x203a28(0xdb)]['id'])?c(c({},_0x5abe70),{'attrs':c(c({},_0x5abe70['attrs']),{'id':_0x5abe70[_0x203a28(0xdb)]['id']+_0x37e6a3[_0x203a28(0xfa)]})}):_0x5abe70;})}):_0x4ff11b;}function _0x3700(){var _0x2b8e45=['shouldShareOperation','Stop\x20following','xlink:href','values','data','_status','OFFLINE','live-share-icon','581586QxFtVx','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','fill','8670vadRYF','status$','getValue','FOLLOWING','map','init','dispose$','univerjs-icon\x20univerjs-icon-','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','complete','reverse','10656620wCszDd','_init','asObservable','currentColor','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewChangeSets','offline','_commandService','_configService','event$','from','has','executeCommand','memberID','add','presenting','assign','_status$','LIVESHARE_TERMINATE','function','pluginName','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','div','getOwnPropertyDescriptor','current','symbol','ONLINE','onStarting','_startFollowing','set','_reporters','createInstance','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','startFollowing','getLiveShareCoordinator','registerInitialStateReporter','extend','NEW_CHANGESETS','replace','clear','defIds','25HBNqIe','stringify','mutations','_beIdle','162VVVApb','stopFollowing','_entities','_stopPresenting','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','defs','disposeWithMe','_commandDisposable','LiveShareIcon','389480dRgHpu','_handleOperation','default','hasOwnProperty','_collabSessionService','then','_handleNewHost','use','_injector','presenter','UniverIcon','url(#$1','children','getCurrentTypeOfUnit$','93292kRjNPB','You\x27re\x20presenting\x20the\x20document','_handleOnline','colorChannel1','override','_mountLiveShare','672011mAztgb','IDLE','_liveShareService','random','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','not-following','params','_handleTerminate','_univerInstanceService','type','_startPresenting','mask','next','entries','icon','operations','UNIVER_SHEET','LIVESHARE_OPERATION','_collabSession','prototype','getInitialStates','subscribe','PRESENTING','end','toString','sessionStatus$','svg','delete','following','259oUDnmZ','0\x200\x2017\x2017','evenodd','apply','1em','substring','requireSession','unitId','NOT_FOLLOWING','indexOf','concat','get','univer-size-4','string','getUnitId','className','trim','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','LIVESHARE_NEW_HOST','_config','_sharedOperations','button','Present\x20this\x20document','dispose','live-share.config','send','path','UNIVER_UNKNOWN','getOwnPropertySymbols','defineProperty','HEADER_MENU','_unitID','setConfig','forEach','UNIVER_LIVE_SHARE_PLUGIN','displayName','idle','length','unsubscribe','OPERATION','_presenter','registerComponent','onCommandExecuted','stopPresenting','call','_uiPartsService','tag','attrs','1617645fsCgxw'];_0x3700=function(){return _0x2b8e45;};return _0x3700();}function Ne(){var _0xd6a5ca=_0x327e99;return Math[_0xd6a5ca(0x91)]()[_0xd6a5ca(0xa6)](0x24)[_0xd6a5ca(0xb0)](0x2,0x8);}W[_0x327e99(0xcf)]=_0x327e99(0x84);var Ce={'tag':_0x327e99(0xa8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x327e99(0xac),'width':_0x327e99(0xaf),'height':'1em'},'children':[{'tag':_0x327e99(0xc6),'attrs':{'fill':_0x327e99(0xf9),'d':_0x327e99(0x75)}},{'tag':_0x327e99(0xc6),'attrs':{'fill':'currentColor','d':_0x327e99(0x10c),'fillRule':_0x327e99(0xad),'clipRule':'evenodd'}}]},B=_0xc91793(function(_0x25535b,_0x25c479){var _0x237eaf=_0x327e99;return _0x3a9eb0(W,Object[_0x237eaf(0x107)]({},_0x25535b,{'id':_0x237eaf(0xe4),'ref':_0x25c479,'icon':Ce}));});B['displayName']=_0x327e99(0x79);class L extends _0x5bd465{constructor(){var _0x5b67b3=_0x327e99;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5b67b3(0x115),new Set());}[_0x327e99(0xe8)](_0x589f1d){var _0x510421=_0x327e99;return this[_0x510421(0xc0)]['add'](_0x589f1d),_0x2fd3a3(()=>this[_0x510421(0xc0)][_0x510421(0xa9)](_0x589f1d));}[_0x327e99(0x11b)](_0x286240){var _0x3e51b8=_0x327e99;return this[_0x3e51b8(0x115)][_0x3e51b8(0x105)](_0x286240),_0x2fd3a3(()=>this[_0x3e51b8(0x115)][_0x3e51b8(0xa9)](_0x286240));}[_0x327e99(0xdd)](_0x45dfbb){var _0x145acf=_0x327e99;return this[_0x145acf(0xc0)][_0x145acf(0x102)](_0x45dfbb);}[_0x327e99(0xa2)](_0xed0d51){var _0x41f794=_0x327e99;return Array[_0x41f794(0x101)](this[_0x41f794(0x115)])[_0x41f794(0xee)](_0x405406=>_0x405406(_0xed0d51));}}var De=Object[_0x327e99(0x10e)],Z=(_0x31538c,_0x340ccc,_0x1e4285,_0x3960ab)=>{for(var _0x61d9fa=_0x3960ab>0x1?void 0x0:_0x3960ab?De(_0x340ccc,_0x1e4285):_0x340ccc,_0x134096=_0x31538c['length']-0x1,_0x115d9a;_0x134096>=0x0;_0x134096--)(_0x115d9a=_0x31538c[_0x134096])&&(_0x61d9fa=_0x115d9a(_0x61d9fa)||_0x61d9fa);return _0x61d9fa;},f=(_0x45b57b,_0x5df7c9)=>(_0x2dc940,_0xb331f7)=>_0x5df7c9(_0x2dc940,_0xb331f7,_0x45b57b);let m=class extends _0x354256{constructor(_0x4b1c89,_0x20d0a6,_0x40fe64){var _0x2d5b48=_0x327e99;super(),d(this,'_entities',new Map()),(this[_0x2d5b48(0x96)]=_0x4b1c89,this[_0x2d5b48(0x82)]=_0x20d0a6,this['_collabSessionService']=_0x40fe64,this[_0x2d5b48(0xf7)]());}async[_0x327e99(0x11a)](_0x4e2682){var _0x236a87=_0x327e99;return this[_0x236a87(0x72)][_0x236a87(0x102)](_0x4e2682)||await this[_0x236a87(0x117)](_0x4e2682),this[_0x236a87(0x72)]['get'](_0x4e2682);}[_0x327e99(0xf7)](){var _0x50701e=_0x327e99;this[_0x50701e(0x96)]['getTypeOfUnitAdded$'](_0x3a995a['UNIVER_SHEET'])[_0x50701e(0x74)](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](async _0x1c44d9=>{var _0x1ab681=_0x50701e;const _0x3e6a1c=_0x1c44d9[_0x1ab681(0xb9)]();this['_entities'][_0x1ab681(0x102)](_0x3e6a1c)||this[_0x1ab681(0x117)](_0x3e6a1c);}),this[_0x50701e(0x96)]['getTypeOfUnitDisposed$'](_0x3a995a[_0x50701e(0x9e)])['pipe'](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](_0x4fd6be=>{var _0x19c403=_0x50701e;const _0x32de8b=_0x4fd6be[_0x19c403(0xb9)](),_0x199d3c=this[_0x19c403(0x72)][_0x19c403(0xb6)](_0x32de8b);_0x199d3c==null||_0x199d3c[_0x19c403(0xc3)]();});}async[_0x327e99(0x117)](_0x34fbd7){var _0x59e693=_0x327e99;const _0x3f4e96=await this[_0x59e693(0x7e)][_0x59e693(0xb1)](_0x34fbd7),_0x3fee51=this[_0x59e693(0x82)][_0x59e693(0x116)](C,_0x34fbd7,_0x3f4e96);return _0x3fee51[_0x59e693(0xef)](),this[_0x59e693(0x72)][_0x59e693(0x114)](_0x34fbd7,_0x3fee51),_0x3fee51;}};m=Z([f(0x0,_0x43cb00),f(0x1,_0x322c89(_0x5c2be7)),f(0x2,_0x322c89(_0x464491))],m);var h=(_0x40c159=>(_0x40c159[_0x327e99(0xe3)]='offline',_0x40c159[_0x327e99(0x8f)]=_0x327e99(0xd0),_0x40c159[_0x327e99(0xed)]=_0x327e99(0xaa),_0x40c159[_0x327e99(0xb3)]=_0x327e99(0x93),_0x40c159[_0x327e99(0xa4)]=_0x327e99(0x106),_0x40c159))(h||{});const xe=_0x327e99(0xe7),Le=0xc8;let C=class extends _0x354256{constructor(_0x13138c,_0x2efb69,_0x559f8a,_0x4a56e8,_0x46b814){var _0x3799c9=_0x327e99;super(),d(this,_0x3799c9(0x108),new _0x217b49(_0x3799c9(0xd0))),d(this,_0x3799c9(0xeb),this[_0x3799c9(0x108)][_0x3799c9(0xf8)]()),d(this,_0x3799c9(0xf7),!0x1),d(this,_0x3799c9(0x78),null),d(this,_0x3799c9(0xd4),null),(this['_unitID']=_0x13138c,this[_0x3799c9(0xa0)]=_0x2efb69,this[_0x3799c9(0xff)]=_0x559f8a,this[_0x3799c9(0x90)]=_0x4a56e8,this[_0x3799c9(0xfe)]=_0x46b814);}get['_status'](){var _0x6728ae=_0x327e99;return this[_0x6728ae(0x108)][_0x6728ae(0xec)]();}[_0x327e99(0xc3)](){var _0x1afc60=_0x327e99,_0x5b73eb;(_0x5b73eb=this['_commandDisposable'])==null||_0x5b73eb[_0x1afc60(0xc3)](),this[_0x1afc60(0x108)][_0x1afc60(0x9a)]('idle'),this[_0x1afc60(0x108)][_0x1afc60(0xf4)]();}['init'](){var _0x5d218f=_0x327e99;this[_0x5d218f(0xf7)]||(this[_0x5d218f(0xf7)]=!0x0,this[_0x5d218f(0xa0)][_0x5d218f(0xa7)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x25ceb6=>{var _0x227c5d=_0x5d218f;switch(_0x25ceb6){case _0xec3b07[_0x227c5d(0xe3)]:this['_handleOffline']();break;case _0xec3b07[_0x227c5d(0x111)]:this['_handleOnline']();break;}}),this[_0x5d218f(0xa0)][_0x5d218f(0x100)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x1a8470=>{var _0x198537=_0x5d218f;const {eventID:_0x4242e1}=_0x1a8470;switch(_0x4242e1){case _0x436ce5[_0x198537(0xbe)]:this[_0x198537(0x80)](_0x1a8470);break;case _0x436ce5[_0x198537(0x9f)]:this[_0x198537(0x7b)](_0x1a8470);break;case _0x436ce5['LIVESHARE_TERMINATE']:this[_0x198537(0x95)]();break;case _0x436ce5[_0x198537(0x11d)]:this[_0x198537(0xfc)](_0x1a8470);break;}}));}[_0x327e99(0xe6)](){var _0x2c6681=_0x327e99;this[_0x2c6681(0xa0)][_0x2c6681(0xc5)]({'eventID':_0x436ce5[_0x2c6681(0x118)],'data':{'unitID':this[_0x2c6681(0xcb)],'userID':this[_0x2c6681(0xa0)]['getMemberID']()}},this[_0x2c6681(0xcb)]);}[_0x327e99(0xd7)](){var _0x1025ac=_0x327e99;this[_0x1025ac(0xe2)]==='presenting'&&(this[_0x1025ac(0x108)]['next'](_0x1025ac(0xd0)),this[_0x1025ac(0xa0)][_0x1025ac(0xc5)]({'eventID':_0x436ce5[_0x1025ac(0x109)],'data':{'unitID':this[_0x1025ac(0xcb)]}},this[_0x1025ac(0xcb)]));}[_0x327e99(0x119)](){var _0x1d7d77=_0x327e99;this[_0x1d7d77(0xe2)]===_0x1d7d77(0x93)&&(this[_0x1d7d77(0x108)][_0x1d7d77(0x9a)](_0x1d7d77(0xaa)),this['_startFollowing']());}[_0x327e99(0x71)](){var _0x35fc2f=_0x327e99;this['_status']===_0x35fc2f(0xaa)&&this['_stopFollowing']();}[_0x327e99(0x80)](_0x578f0f){var _0xf4555a=_0x327e99;const {presenter:_0x41c05b}=_0x578f0f[_0xf4555a(0xe1)],_0x17d407=this['_collabSession'][_0xf4555a(0xbd)]();this['_presenter']=_0x41c05b,_0x41c05b===_0x17d407?(this['_stopFollowing'](),this[_0xf4555a(0x98)]()):this[_0xf4555a(0xe2)]!=='not-following'&&(this[_0xf4555a(0x73)](),this[_0xf4555a(0x113)]());}[_0x327e99(0xf3)](){var _0x4a32fd=_0x327e99;const _0x28ebba={'eventID':_0x436ce5[_0x4a32fd(0xf2)]};this[_0x4a32fd(0xa0)]['send'](_0x28ebba,this['_unitID']);}[_0x327e99(0x95)](){var _0x2efdf7=_0x327e99;this[_0x2efdf7(0xd4)]=null,this[_0x2efdf7(0xe2)]!==_0x2efdf7(0x106)&&this[_0x2efdf7(0x6f)]();}[_0x327e99(0xfc)](_0x162e12){var _0x424de5=_0x327e99;if(this[_0x424de5(0xe2)]===_0x424de5(0xaa)&&this[_0x424de5(0xd4)]===_0x162e12['data'][_0x424de5(0x104)]){const _0x172fe7=_0x41dbe4(_0x162e12[_0x424de5(0xe1)])[_0x424de5(0x6e)][_0x424de5(0xf5)]()['find'](_0x480de1=>_0x480de1['id']===_0x134af5['id']);if(_0x172fe7){const _0xcd2dd=_0x172fe7[_0x424de5(0x94)][_0x424de5(0xb2)],_0x29a8b7=_0x172fe7[_0x424de5(0x94)]['sheet']['id'];setTimeout(()=>{var _0x3559d9=_0x424de5;this['_commandService'][_0x3559d9(0x103)](_0x3d1e6a['id'],{'unitId':_0xcd2dd,'subUnitId':_0x29a8b7},{'fromCollab':!0x0});});}}}[_0x327e99(0x98)](){var _0x3da4a4=_0x327e99;this['_status$'][_0x3da4a4(0x9a)](_0x3da4a4(0x106));const _0x1bf93d=new Map(),_0x451f3e=this[_0x3da4a4(0x78)]=new _0x5aba15();_0x451f3e['add'](_0x2fd3a3(()=>{var _0x40b967=_0x3da4a4;_0x1bf93d[_0x40b967(0xcd)](_0x3d0cc8=>_0x3d0cc8['complete']()),_0x1bf93d[_0x40b967(0x11f)]();})),_0x451f3e[_0x3da4a4(0x105)](this[_0x3da4a4(0xfe)][_0x3da4a4(0xd6)](_0x8030da=>{var _0x138f06=_0x3da4a4,_0x49c68e;if(_0x8030da[_0x138f06(0x97)]!==_0x3665fe[_0x138f06(0xd3)]||!this['_liveShareService'][_0x138f06(0xdd)](_0x8030da['id']))return;const {id:_0x29da5b}=_0x8030da;let _0x24ab59;_0x1bf93d[_0x138f06(0x102)](_0x29da5b)?_0x24ab59=_0x1bf93d[_0x138f06(0xb6)](_0x29da5b):(_0x24ab59=new _0x4b9add(),_0x1bf93d[_0x138f06(0x114)](_0x29da5b,_0x24ab59),_0x24ab59[_0x138f06(0x74)](_0x49ae5d((_0x49c68e=this[_0x138f06(0xff)]['getConfig'](xe))!=null?_0x49c68e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x138f06(0xa3)](_0x33e610=>{var _0x2388ae=_0x138f06;this['_collabSession'][_0x2388ae(0xc5)]({'eventID':_0x436ce5[_0x2388ae(0x9f)],'data':{'unitID':this[_0x2388ae(0xcb)],'operations':{[_0x33e610['id']]:{'id':_0x33e610['id'],'params':JSON['stringify'](_0x33e610['params'])}}}},this[_0x2388ae(0xcb)]);})),_0x24ab59['next'](_0x8030da);})),this['_liveShareService']['getInitialStates'](this[_0x3da4a4(0xcb)])[_0x3da4a4(0xcd)](_0x53e1e5=>this['_collabSession'][_0x3da4a4(0xc5)]({'eventID':_0x436ce5[_0x3da4a4(0x9f)],'data':{'unitID':this[_0x3da4a4(0xcb)],'operations':{[_0x53e1e5['id']]:{'id':_0x53e1e5['id'],'params':JSON[_0x3da4a4(0x6d)](_0x53e1e5[_0x3da4a4(0x94)])}}}},this[_0x3da4a4(0xcb)]));}[_0x327e99(0x73)](){var _0x185989=_0x327e99,_0x301739;this[_0x185989(0x108)]['next'](_0x185989(0xd0)),(_0x301739=this['_commandDisposable'])==null||_0x301739['dispose'](),this[_0x185989(0x78)]=null;}[_0x327e99(0x113)](){var _0x4578cb=_0x327e99,_0x86a397;(_0x86a397=this[_0x4578cb(0x78)])==null||_0x86a397['dispose'](),this[_0x4578cb(0x108)]['next'](_0x4578cb(0xaa));}[_0x327e99(0x6f)](){var _0x57ebe8=_0x327e99,_0x12b98d;this[_0x57ebe8(0x108)][_0x57ebe8(0x9a)]('idle'),(_0x12b98d=this[_0x57ebe8(0x78)])==null||_0x12b98d[_0x57ebe8(0xc3)](),this[_0x57ebe8(0x78)]=null;}['_stopFollowing'](){var _0xd956f5=_0x327e99,_0x17c684;this[_0xd956f5(0x108)][_0xd956f5(0x9a)](_0xd956f5(0x93)),(_0x17c684=this[_0xd956f5(0x78)])==null||_0x17c684['dispose']();}[_0x327e99(0x7b)](_0x5073e6){var _0x5bc075=_0x327e99;if([_0x5bc075(0x106),_0x5bc075(0x93),_0x5bc075(0xfd)]['includes'](this['_status'])||!_0x5073e6[_0x5bc075(0xe1)]['presenter']||_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x83)]===this[_0x5bc075(0xa0)][_0x5bc075(0xbd)]())return;this[_0x5bc075(0xe2)]===_0x5bc075(0xd0)&&this['_startFollowing']();const _0x2607dc=_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x9d)];Object[_0x5bc075(0xe0)](_0x2607dc)[_0x5bc075(0xcd)](_0x4ae3e4=>{var _0x4e0134=_0x5bc075;this[_0x4e0134(0xfe)][_0x4e0134(0x103)](_0x4ae3e4['id'],_0x4ae3e4['params']?JSON['parse'](_0x4ae3e4[_0x4e0134(0x94)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1313ea=_0x327e99,_0x33a332;this[_0x1313ea(0x108)][_0x1313ea(0x9a)](_0x1313ea(0xfd)),(_0x33a332=this[_0x1313ea(0x78)])==null||_0x33a332['dispose']();}[_0x327e99(0x8a)](){var _0x4bfb38=_0x327e99;this['_status$'][_0x4bfb38(0x9a)]('idle'),this[_0x4bfb38(0xf3)]();}};C=Z([f(0x2,_0x155baf),f(0x3,_0x322c89(L)),f(0x4,_0x20c766)],C);function ye(){var _0x445732=_0x327e99;const _0x4dbb5a=_0x52f11b(m),_0x59f803=_0x52f11b(_0x43cb00),_0x179da6=_0x999678(()=>_0x59f803[_0x445732(0x87)](_0x3a995a[_0x445732(0x9e)]),void 0x0,!0x1,[]),[_0x3e8bcf,_0x3f25bb]=_0x2ab18d(null),[_0x16dc69,_0x15e9f2]=_0x2ab18d(h['IDLE']),_0x31ab1b=_0x5a6ac8(null);return _0x20b184(()=>(_0x179da6&&_0x4dbb5a[_0x445732(0x11a)](_0x179da6[_0x445732(0xb9)]())[_0x445732(0x7f)](_0x1eb3ba=>{var _0x3e0866=_0x445732;_0x3f25bb(_0x1eb3ba),_0x31ab1b[_0x3e0866(0x10f)]=_0x1eb3ba[_0x3e0866(0xeb)]['subscribe'](_0x233f16=>{_0x15e9f2(_0x233f16);});}),()=>{var _0x4d589e=_0x445732,_0x10d370;(_0x10d370=_0x31ab1b[_0x4d589e(0x10f)])==null||_0x10d370[_0x4d589e(0xd2)](),_0x31ab1b[_0x4d589e(0x10f)]=null;}),[_0x179da6,_0x4dbb5a]),_0x3e8bcf?_0x3c1611(_0x58654a,{'align':_0x445732(0xa5),'disabled':_0x16dc69===h[_0x445732(0xe3)],'className':_0x445732(0x92),'overlay':_0x3c1611(Re,{'status':_0x16dc69,'coordinator':_0x3e8bcf}),'children':_0x3c1611(_0x445732(0xc1),{'className':_0x4c2d4b(_0x445732(0xfb),{'univer-cursor-not-allowed':_0x16dc69===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16dc69!==h['OFFLINE']}),'type':_0x445732(0xc1),'children':_0x3c1611(B,{'className':_0x445732(0xb7)})})}):null;}function Re(_0x5b1157){var _0x40b133=_0x327e99;const {status:_0x35a836,coordinator:_0x457b6a}=_0x5b1157;switch(_0x35a836){case h[_0x40b133(0x8f)]:return _0x3c1611(Pe,{'coordinator':_0x457b6a});case h[_0x40b133(0xed)]:return _0x3c1611(Ae,{'coordinator':_0x457b6a});case h['NOT_FOLLOWING']:return _0x3c1611(Te,{'coordinator':_0x457b6a});case h['OFFLINE']:return _0x3c1611(Fe,{});case h[_0x40b133(0xa4)]:return _0x3c1611($e,{'coordinator':_0x457b6a});default:return null;}}function Pe(_0x450919){var _0x49631a=_0x327e99;const {coordinator:_0x1c6a96}=_0x450919;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x49631a(0x10d),{'className':_0x49631a(0xbc),'children':_0x49631a(0xc2)}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x1c6a96['tryStartPresenting'](),'children':'Start'})]});}function Ae(_0x55e7da){var _0x2cc8de=_0x327e99;const {coordinator:_0x29bab4}=_0x55e7da;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x2cc8de(0x10d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x29bab4[_0x2cc8de(0x71)](),'children':_0x2cc8de(0xde)})]});}function Te(_0x315389){var _0x27f81e=_0x327e99;const {coordinator:_0x1f4416}=_0x315389;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x27f81e(0x10d),{'className':_0x27f81e(0xbc),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'variant':'text','onClick':()=>_0x1f4416[_0x27f81e(0x119)](),'children':'Start\x20following'})]});}function $e(_0x206800){var _0x20efb1=_0x327e99;const {coordinator:_0x3d1b8e}=_0x206800;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x20efb1(0x89)}),_0x3c1611(_0x5087e0,{'variant':_0x20efb1(0x7c),'onClick':()=>_0x3d1b8e[_0x20efb1(0xd7)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x3c1611(_0x3e88f6,{'children':'You\x27are\x20offline.'});}var He=Object[_0x327e99(0x10e)],je=(_0x2491f7,_0x684c8f,_0x49ad1b,_0x130eb1)=>{var _0x8e64c3=_0x327e99;for(var _0x1f7318=_0x130eb1>0x1?void 0x0:_0x130eb1?He(_0x684c8f,_0x49ad1b):_0x684c8f,_0x304d24=_0x2491f7[_0x8e64c3(0xd1)]-0x1,_0x266b85;_0x304d24>=0x0;_0x304d24--)(_0x266b85=_0x2491f7[_0x304d24])&&(_0x1f7318=_0x266b85(_0x1f7318)||_0x1f7318);return _0x1f7318;},T=(_0x9515df,_0x205b52)=>(_0x28d989,_0x5c805d)=>_0x205b52(_0x28d989,_0x5c805d,_0x9515df);let I=class extends _0x5bd465{constructor(_0x1291ae,_0x5c8028){var _0x47e37d=_0x327e99;super(),this[_0x47e37d(0x82)]=_0x1291ae,this[_0x47e37d(0xd9)]=_0x5c8028,this[_0x47e37d(0x8d)]();}[_0x327e99(0x8d)](){var _0x4d9887=_0x327e99;this[_0x4d9887(0x77)](this['_uiPartsService'][_0x4d9887(0xd5)](_0xfe26a1[_0x4d9887(0xca)],()=>_0x3de016(ye,this['_injector'])));}};I=je([T(0x0,_0x322c89(_0x5c2be7)),T(0x1,_0xc8b11c)],I);const Ue=_0x327e99(0xc4),$={};var Ve=Object[_0x327e99(0x10e)],Me=(_0x3893f6,_0x4a3e69,_0x18b11e,_0x377e57)=>{for(var _0x45ce1d=_0x377e57>0x1?void 0x0:_0x377e57?Ve(_0x4a3e69,_0x18b11e):_0x4a3e69,_0x3d1faa=_0x3893f6['length']-0x1,_0x349abb;_0x3d1faa>=0x0;_0x3d1faa--)(_0x349abb=_0x3893f6[_0x3d1faa])&&(_0x45ce1d=_0x349abb(_0x45ce1d)||_0x45ce1d);return _0x45ce1d;},ke=(_0x59a17b,_0x15552d)=>(_0x1f1526,_0x48d6b6)=>_0x15552d(_0x1f1526,_0x48d6b6,_0x59a17b);let b=class extends _0x5bd465{constructor(_0x21a1b6){var _0x8cac12=_0x327e99;super(),this[_0x8cac12(0x90)]=_0x21a1b6,this[_0x8cac12(0xf7)]();}[_0x327e99(0xf7)](){[_0x4a29e4['id'],_0x2ca7f0['id'],_0x3d1e6a['id']]['forEach'](_0x4eef9d=>{var _0xbd4d24=_0x3688;this[_0xbd4d24(0x77)](this[_0xbd4d24(0x90)][_0xbd4d24(0xe8)](_0x4eef9d));});}};b=Me([ke(0x0,_0x322c89(L))],b);var Ge=Object[_0x327e99(0xc9)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xc51dc8,_0x2943e6,_0x377435)=>_0x2943e6 in _0xc51dc8?Ge(_0xc51dc8,_0x2943e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377435}):_0xc51dc8[_0x2943e6]=_0x377435,Be=(_0x13ab0,_0x46d566,_0x54c85e,_0x4403ee)=>{var _0x1b7b20=_0x327e99;for(var _0x464a5b=_0x4403ee>0x1?void 0x0:_0x4403ee?We(_0x46d566,_0x54c85e):_0x46d566,_0x2f2f4e=_0x13ab0[_0x1b7b20(0xd1)]-0x1,_0x478438;_0x2f2f4e>=0x0;_0x2f2f4e--)(_0x478438=_0x13ab0[_0x2f2f4e])&&(_0x464a5b=_0x478438(_0x464a5b)||_0x464a5b);return _0x464a5b;},F=(_0x4ffd8a,_0x3f3f48)=>(_0x406501,_0x850323)=>_0x3f3f48(_0x406501,_0x850323,_0x4ffd8a),J=(_0x398162,_0x1a589b,_0x4bfe4f)=>Ye(_0x398162,typeof _0x1a589b!=_0x327e99(0x110)?_0x1a589b+'':_0x1a589b,_0x4bfe4f);const Ze=_0x327e99(0xce);let O=class extends _0x219943{constructor(_0x4b18e9=$,_0x471e8b,_0x11b280){var _0x3da602=_0x327e99;super(),this['_config']=_0x4b18e9,this['_injector']=_0x471e8b,this['_configService']=_0x11b280;const {..._0xb4fdc8}=_0x156a51({},$,this[_0x3da602(0xbf)]);this[_0x3da602(0xff)][_0x3da602(0xcc)](Ue,_0xb4fdc8);}[_0x327e99(0x112)](){var _0x45f0cf=_0x327e99;_0x14872e(this[_0x45f0cf(0x82)],_0x56051a([[L],[m],[b],[I]],this[_0x45f0cf(0xbf)][_0x45f0cf(0x8c)])),_0x25c9a6(this[_0x45f0cf(0x82)],[[b]]);}['onRendered'](){var _0x25762c=_0x327e99;_0x25c9a6(this[_0x25762c(0x82)],[[I]]);}};J(O,'type',_0x3a995a[_0x327e99(0xc7)]),J(O,_0x327e99(0x10b),Ze),O=Be([_0x19b5d5(_0x2156c1),F(0x1,_0x322c89(_0x5c2be7)),F(0x2,_0x155baf)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x327e99=_0x3688;(function(_0x2f5a52,_0x1d1acd){var _0x45ca94=_0x3688,_0x2db100=_0x2f5a52();while(!![]){try{var _0x3ff171=parseInt(_0x45ca94(0x8e))/0x1+parseInt(_0x45ca94(0xe5))/0x2+-parseInt(_0x45ca94(0xdc))/0x3+parseInt(_0x45ca94(0x88))/0x4*(-parseInt(_0x45ca94(0x6c))/0x5)+parseInt(_0x45ca94(0xea))/0x6*(-parseInt(_0x45ca94(0xab))/0x7)+-parseInt(_0x45ca94(0x7a))/0x8*(parseInt(_0x45ca94(0x70))/0x9)+parseInt(_0x45ca94(0xf6))/0xa;if(_0x3ff171===_0x1d1acd)break;else _0x2db100['push'](_0x2db100['shift']());}catch(_0x44d1ed){_0x2db100['push'](_0x2db100['shift']());}}}(_0x3700,0x6c1d9));var q=Object['defineProperty'],z=(_0x5b270f,_0x442639,_0x138dd8)=>_0x442639 in _0x5b270f?q(_0x5b270f,_0x442639,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138dd8}):_0x5b270f[_0x442639]=_0x138dd8,d=(_0x4f288f,_0x134075,_0x231e9b)=>z(_0x4f288f,typeof _0x134075!=_0x327e99(0x110)?_0x134075+'':_0x134075,_0x231e9b);import{Disposable as _0x5bd465,toDisposable as _0x2fd3a3,IUniverInstanceService as _0x43cb00,Inject as _0x322c89,Injector as _0x5c2be7,IConfigService as _0x155baf,ICommandService as _0x20c766,RxDisposable as _0x354256,UniverInstanceType as _0x3a995a,DisposableCollection as _0x5aba15,CommandType as _0x3665fe,DependentOn as _0x19b5d5,Plugin as _0x219943,merge as _0x156a51,registerDependencies as _0x14872e,mergeOverrideWithDependencies as _0x56051a,touchDependencies as _0x25c9a6}from'@univerjs/core';import{useDependency as _0x52f11b,useObservable as _0x999678,IUIPartsService as _0xc8b11c,BuiltInUIPart as _0xfe26a1,connectInjector as _0x3de016}from'@univerjs/ui';import{jsx as _0x3c1611,jsxs as _0x440d17,Fragment as _0x3e88f6}from'react/jsx-runtime';import{Dropdown as _0x58654a,clsx as _0x4c2d4b,Button as _0x5087e0}from'@univerjs/design';import{forwardRef as _0xc91793,useRef as _0x5a6ac8,createElement as _0x3a9eb0,useState as _0x2ab18d,useEffect as _0x20b184}from'react';import{CollaborationEvent as _0x436ce5,parseProtocolChangeset as _0x41dbe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x464491,SessionStatus as _0xec3b07,UniverCollaborationClientPlugin as _0x2156c1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x134af5,SetWorksheetActiveOperation as _0x3d1e6a}from'@univerjs/sheets';import{BehaviorSubject as _0x217b49,Subject as _0x4b9add}from'rxjs';import{takeUntil as _0x58b5ad,throttleTime as _0x49ae5d}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a29e4,SetScrollOperation as _0x2ca7f0}from'@univerjs/sheets-ui';var c=function(){var _0x3ae2ea=_0x327e99;return c=Object[_0x3ae2ea(0x107)]||function(_0x192e6e){var _0x3eab5e=_0x3ae2ea;for(var _0x1903c6,_0x27ecdf=0x1,_0x556a93=arguments[_0x3eab5e(0xd1)];_0x27ecdf<_0x556a93;_0x27ecdf++){_0x1903c6=arguments[_0x27ecdf];for(var _0x59d558 in _0x1903c6)Object['prototype'][_0x3eab5e(0x7d)][_0x3eab5e(0xd8)](_0x1903c6,_0x59d558)&&(_0x192e6e[_0x59d558]=_0x1903c6[_0x59d558]);}return _0x192e6e;},c[_0x3ae2ea(0xae)](this,arguments);},Oe=function(_0x381cb6,_0x49a668){var _0x31e99c=_0x327e99,_0x466bcb={};for(var _0x18df95 in _0x381cb6)Object[_0x31e99c(0xa1)][_0x31e99c(0x7d)][_0x31e99c(0xd8)](_0x381cb6,_0x18df95)&&_0x49a668[_0x31e99c(0xb4)](_0x18df95)<0x0&&(_0x466bcb[_0x18df95]=_0x381cb6[_0x18df95]);if(_0x381cb6!=null&&typeof Object[_0x31e99c(0xc8)]==_0x31e99c(0x10a)){for(var _0x23c8c2=0x0,_0x18df95=Object[_0x31e99c(0xc8)](_0x381cb6);_0x23c8c2<_0x18df95[_0x31e99c(0xd1)];_0x23c8c2++)_0x49a668[_0x31e99c(0xb4)](_0x18df95[_0x23c8c2])<0x0&&Object[_0x31e99c(0xa1)]['propertyIsEnumerable']['call'](_0x381cb6,_0x18df95[_0x23c8c2])&&(_0x466bcb[_0x18df95[_0x23c8c2]]=_0x381cb6[_0x18df95[_0x23c8c2]]);}return _0x466bcb;},W=_0xc91793(function(_0x6c243c,_0x211825){var _0x3c4b46=_0x327e99,_0x3c8218=_0x6c243c[_0x3c4b46(0x9c)],_0x58ab1c=_0x6c243c['id'],_0x14f147=_0x6c243c['className'],_0x41c4d7=_0x6c243c[_0x3c4b46(0x11c)],_0x6fbe0e=Oe(_0x6c243c,[_0x3c4b46(0x9c),'id',_0x3c4b46(0xba),_0x3c4b46(0x11c)]),_0x48b0f4=_0x3c4b46(0xf1)['concat'](_0x58ab1c,'\x20')['concat'](_0x14f147||'')[_0x3c4b46(0xbb)](),_0x22c1a8=_0x5a6ac8('_'[_0x3c4b46(0xb5)](Ne()));return Y(_0x3c8218,''[_0x3c4b46(0xb5)](_0x58ab1c),{'defIds':_0x3c8218[_0x3c4b46(0x6b)],'idSuffix':_0x22c1a8[_0x3c4b46(0x10f)]},c({'ref':_0x211825,'className':_0x48b0f4},_0x6fbe0e),_0x41c4d7);});function _0x3688(_0x329e62,_0x542e27){var _0x370032=_0x3700();return _0x3688=function(_0x368811,_0x542c4e){_0x368811=_0x368811-0x6b;var _0x3bbac5=_0x370032[_0x368811];return _0x3bbac5;},_0x3688(_0x329e62,_0x542e27);}function Y(_0xeb623c,_0x6911a1,_0x57fe7e,_0x454e08,_0x3a6054){var _0x54f2f9=_0x327e99;return _0x3a9eb0(_0xeb623c[_0x54f2f9(0xda)],c(c({'key':_0x6911a1},Ee(_0xeb623c,_0x57fe7e,_0x3a6054)),_0x454e08),(we(_0xeb623c,_0x57fe7e)[_0x54f2f9(0x86)]||[])[_0x54f2f9(0xee)](function(_0x21652c,_0x290144){var _0x13289b=_0x54f2f9;return Y(_0x21652c,''['concat'](_0x6911a1,'-')['concat'](_0xeb623c[_0x13289b(0xda)],'-')[_0x13289b(0xb5)](_0x290144),_0x57fe7e,void 0x0,_0x3a6054);}));}function Ee(_0x4efcf4,_0x1caf9b,_0x2ff7c9){var _0x53e28c=_0x327e99,_0x4adb43=c({},_0x4efcf4['attrs']);_0x2ff7c9!=null&&_0x2ff7c9[_0x53e28c(0x8b)]&&_0x4adb43[_0x53e28c(0xe9)]===_0x53e28c(0x8b)&&(_0x4adb43[_0x53e28c(0xe9)]=_0x2ff7c9[_0x53e28c(0x8b)]),_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x99)&&_0x4adb43['id']&&(_0x4adb43['id']=_0x4adb43['id']+_0x1caf9b[_0x53e28c(0xfa)]),Object[_0x53e28c(0x9b)](_0x4adb43)[_0x53e28c(0xcd)](function(_0x49086e){var _0x5bb195=_0x53e28c,_0x2a7d69=_0x49086e[0x0],_0x422665=_0x49086e[0x1];_0x2a7d69==='mask'&&typeof _0x422665==_0x5bb195(0xb8)&&(_0x4adb43[_0x2a7d69]=_0x422665[_0x5bb195(0x11e)](/url\(#(.*)\)/,'url(#$1'[_0x5bb195(0xb5)](_0x1caf9b[_0x5bb195(0xfa)],')')));});var _0x4cd989=_0x1caf9b['defIds'];return!_0x4cd989||_0x4cd989[_0x53e28c(0xd1)]===0x0||(_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x81)&&_0x4adb43[_0x53e28c(0xdf)]&&(_0x4adb43[_0x53e28c(0xdf)]=_0x4adb43[_0x53e28c(0xdf)]+_0x1caf9b[_0x53e28c(0xfa)]),Object['entries'](_0x4adb43)[_0x53e28c(0xcd)](function(_0x1ee9cd){var _0x56fe34=_0x53e28c,_0x7a5740=_0x1ee9cd[0x0],_0x164437=_0x1ee9cd[0x1];typeof _0x164437=='string'&&(_0x4adb43[_0x7a5740]=_0x164437['replace'](/url\(#(.*)\)/,_0x56fe34(0x85)[_0x56fe34(0xb5)](_0x1caf9b[_0x56fe34(0xfa)],')')));})),_0x4adb43;}function we(_0x4ff11b,_0x37e6a3){var _0xae17ea=_0x327e99,_0x2044e9,_0xf4ae1e=_0x37e6a3[_0xae17ea(0x6b)];return!_0xf4ae1e||_0xf4ae1e[_0xae17ea(0xd1)]===0x0?_0x4ff11b:_0x4ff11b[_0xae17ea(0xda)]===_0xae17ea(0x76)&&(!((_0x2044e9=_0x4ff11b[_0xae17ea(0x86)])===null||_0x2044e9===void 0x0)&&_0x2044e9[_0xae17ea(0xd1)])?c(c({},_0x4ff11b),{'children':_0x4ff11b[_0xae17ea(0x86)]['map'](function(_0x5abe70){var _0x203a28=_0xae17ea;return typeof _0x5abe70['attrs']['id']==_0x203a28(0xb8)&&_0xf4ae1e&&_0xf4ae1e['includes'](_0x5abe70[_0x203a28(0xdb)]['id'])?c(c({},_0x5abe70),{'attrs':c(c({},_0x5abe70['attrs']),{'id':_0x5abe70[_0x203a28(0xdb)]['id']+_0x37e6a3[_0x203a28(0xfa)]})}):_0x5abe70;})}):_0x4ff11b;}function _0x3700(){var _0x2b8e45=['shouldShareOperation','Stop\x20following','xlink:href','values','data','_status','OFFLINE','live-share-icon','581586QxFtVx','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','fill','8670vadRYF','status$','getValue','FOLLOWING','map','init','dispose$','univerjs-icon\x20univerjs-icon-','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','complete','reverse','10656620wCszDd','_init','asObservable','currentColor','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewChangeSets','offline','_commandService','_configService','event$','from','has','executeCommand','memberID','add','presenting','assign','_status$','LIVESHARE_TERMINATE','function','pluginName','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','div','getOwnPropertyDescriptor','current','symbol','ONLINE','onStarting','_startFollowing','set','_reporters','createInstance','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','startFollowing','getLiveShareCoordinator','registerInitialStateReporter','extend','NEW_CHANGESETS','replace','clear','defIds','25HBNqIe','stringify','mutations','_beIdle','162VVVApb','stopFollowing','_entities','_stopPresenting','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','defs','disposeWithMe','_commandDisposable','LiveShareIcon','389480dRgHpu','_handleOperation','default','hasOwnProperty','_collabSessionService','then','_handleNewHost','use','_injector','presenter','UniverIcon','url(#$1','children','getCurrentTypeOfUnit$','93292kRjNPB','You\x27re\x20presenting\x20the\x20document','_handleOnline','colorChannel1','override','_mountLiveShare','672011mAztgb','IDLE','_liveShareService','random','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','not-following','params','_handleTerminate','_univerInstanceService','type','_startPresenting','mask','next','entries','icon','operations','UNIVER_SHEET','LIVESHARE_OPERATION','_collabSession','prototype','getInitialStates','subscribe','PRESENTING','end','toString','sessionStatus$','svg','delete','following','259oUDnmZ','0\x200\x2017\x2017','evenodd','apply','1em','substring','requireSession','unitId','NOT_FOLLOWING','indexOf','concat','get','univer-size-4','string','getUnitId','className','trim','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','LIVESHARE_NEW_HOST','_config','_sharedOperations','button','Present\x20this\x20document','dispose','live-share.config','send','path','UNIVER_UNKNOWN','getOwnPropertySymbols','defineProperty','HEADER_MENU','_unitID','setConfig','forEach','UNIVER_LIVE_SHARE_PLUGIN','displayName','idle','length','unsubscribe','OPERATION','_presenter','registerComponent','onCommandExecuted','stopPresenting','call','_uiPartsService','tag','attrs','1617645fsCgxw'];_0x3700=function(){return _0x2b8e45;};return _0x3700();}function Ne(){var _0xd6a5ca=_0x327e99;return Math[_0xd6a5ca(0x91)]()[_0xd6a5ca(0xa6)](0x24)[_0xd6a5ca(0xb0)](0x2,0x8);}W[_0x327e99(0xcf)]=_0x327e99(0x84);var Ce={'tag':_0x327e99(0xa8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x327e99(0xac),'width':_0x327e99(0xaf),'height':'1em'},'children':[{'tag':_0x327e99(0xc6),'attrs':{'fill':_0x327e99(0xf9),'d':_0x327e99(0x75)}},{'tag':_0x327e99(0xc6),'attrs':{'fill':'currentColor','d':_0x327e99(0x10c),'fillRule':_0x327e99(0xad),'clipRule':'evenodd'}}]},B=_0xc91793(function(_0x25535b,_0x25c479){var _0x237eaf=_0x327e99;return _0x3a9eb0(W,Object[_0x237eaf(0x107)]({},_0x25535b,{'id':_0x237eaf(0xe4),'ref':_0x25c479,'icon':Ce}));});B['displayName']=_0x327e99(0x79);class L extends _0x5bd465{constructor(){var _0x5b67b3=_0x327e99;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5b67b3(0x115),new Set());}[_0x327e99(0xe8)](_0x589f1d){var _0x510421=_0x327e99;return this[_0x510421(0xc0)]['add'](_0x589f1d),_0x2fd3a3(()=>this[_0x510421(0xc0)][_0x510421(0xa9)](_0x589f1d));}[_0x327e99(0x11b)](_0x286240){var _0x3e51b8=_0x327e99;return this[_0x3e51b8(0x115)][_0x3e51b8(0x105)](_0x286240),_0x2fd3a3(()=>this[_0x3e51b8(0x115)][_0x3e51b8(0xa9)](_0x286240));}[_0x327e99(0xdd)](_0x45dfbb){var _0x145acf=_0x327e99;return this[_0x145acf(0xc0)][_0x145acf(0x102)](_0x45dfbb);}[_0x327e99(0xa2)](_0xed0d51){var _0x41f794=_0x327e99;return Array[_0x41f794(0x101)](this[_0x41f794(0x115)])[_0x41f794(0xee)](_0x405406=>_0x405406(_0xed0d51));}}var De=Object[_0x327e99(0x10e)],Z=(_0x31538c,_0x340ccc,_0x1e4285,_0x3960ab)=>{for(var _0x61d9fa=_0x3960ab>0x1?void 0x0:_0x3960ab?De(_0x340ccc,_0x1e4285):_0x340ccc,_0x134096=_0x31538c['length']-0x1,_0x115d9a;_0x134096>=0x0;_0x134096--)(_0x115d9a=_0x31538c[_0x134096])&&(_0x61d9fa=_0x115d9a(_0x61d9fa)||_0x61d9fa);return _0x61d9fa;},f=(_0x45b57b,_0x5df7c9)=>(_0x2dc940,_0xb331f7)=>_0x5df7c9(_0x2dc940,_0xb331f7,_0x45b57b);let m=class extends _0x354256{constructor(_0x4b1c89,_0x20d0a6,_0x40fe64){var _0x2d5b48=_0x327e99;super(),d(this,'_entities',new Map()),(this[_0x2d5b48(0x96)]=_0x4b1c89,this[_0x2d5b48(0x82)]=_0x20d0a6,this['_collabSessionService']=_0x40fe64,this[_0x2d5b48(0xf7)]());}async[_0x327e99(0x11a)](_0x4e2682){var _0x236a87=_0x327e99;return this[_0x236a87(0x72)][_0x236a87(0x102)](_0x4e2682)||await this[_0x236a87(0x117)](_0x4e2682),this[_0x236a87(0x72)]['get'](_0x4e2682);}[_0x327e99(0xf7)](){var _0x50701e=_0x327e99;this[_0x50701e(0x96)]['getTypeOfUnitAdded$'](_0x3a995a['UNIVER_SHEET'])[_0x50701e(0x74)](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](async _0x1c44d9=>{var _0x1ab681=_0x50701e;const _0x3e6a1c=_0x1c44d9[_0x1ab681(0xb9)]();this['_entities'][_0x1ab681(0x102)](_0x3e6a1c)||this[_0x1ab681(0x117)](_0x3e6a1c);}),this[_0x50701e(0x96)]['getTypeOfUnitDisposed$'](_0x3a995a[_0x50701e(0x9e)])['pipe'](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](_0x4fd6be=>{var _0x19c403=_0x50701e;const _0x32de8b=_0x4fd6be[_0x19c403(0xb9)](),_0x199d3c=this[_0x19c403(0x72)][_0x19c403(0xb6)](_0x32de8b);_0x199d3c==null||_0x199d3c[_0x19c403(0xc3)]();});}async[_0x327e99(0x117)](_0x34fbd7){var _0x59e693=_0x327e99;const _0x3f4e96=await this[_0x59e693(0x7e)][_0x59e693(0xb1)](_0x34fbd7),_0x3fee51=this[_0x59e693(0x82)][_0x59e693(0x116)](C,_0x34fbd7,_0x3f4e96);return _0x3fee51[_0x59e693(0xef)](),this[_0x59e693(0x72)][_0x59e693(0x114)](_0x34fbd7,_0x3fee51),_0x3fee51;}};m=Z([f(0x0,_0x43cb00),f(0x1,_0x322c89(_0x5c2be7)),f(0x2,_0x322c89(_0x464491))],m);var h=(_0x40c159=>(_0x40c159[_0x327e99(0xe3)]='offline',_0x40c159[_0x327e99(0x8f)]=_0x327e99(0xd0),_0x40c159[_0x327e99(0xed)]=_0x327e99(0xaa),_0x40c159[_0x327e99(0xb3)]=_0x327e99(0x93),_0x40c159[_0x327e99(0xa4)]=_0x327e99(0x106),_0x40c159))(h||{});const xe=_0x327e99(0xe7),Le=0xc8;let C=class extends _0x354256{constructor(_0x13138c,_0x2efb69,_0x559f8a,_0x4a56e8,_0x46b814){var _0x3799c9=_0x327e99;super(),d(this,_0x3799c9(0x108),new _0x217b49(_0x3799c9(0xd0))),d(this,_0x3799c9(0xeb),this[_0x3799c9(0x108)][_0x3799c9(0xf8)]()),d(this,_0x3799c9(0xf7),!0x1),d(this,_0x3799c9(0x78),null),d(this,_0x3799c9(0xd4),null),(this['_unitID']=_0x13138c,this[_0x3799c9(0xa0)]=_0x2efb69,this[_0x3799c9(0xff)]=_0x559f8a,this[_0x3799c9(0x90)]=_0x4a56e8,this[_0x3799c9(0xfe)]=_0x46b814);}get['_status'](){var _0x6728ae=_0x327e99;return this[_0x6728ae(0x108)][_0x6728ae(0xec)]();}[_0x327e99(0xc3)](){var _0x1afc60=_0x327e99,_0x5b73eb;(_0x5b73eb=this['_commandDisposable'])==null||_0x5b73eb[_0x1afc60(0xc3)](),this[_0x1afc60(0x108)][_0x1afc60(0x9a)]('idle'),this[_0x1afc60(0x108)][_0x1afc60(0xf4)]();}['init'](){var _0x5d218f=_0x327e99;this[_0x5d218f(0xf7)]||(this[_0x5d218f(0xf7)]=!0x0,this[_0x5d218f(0xa0)][_0x5d218f(0xa7)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x25ceb6=>{var _0x227c5d=_0x5d218f;switch(_0x25ceb6){case _0xec3b07[_0x227c5d(0xe3)]:this['_handleOffline']();break;case _0xec3b07[_0x227c5d(0x111)]:this['_handleOnline']();break;}}),this[_0x5d218f(0xa0)][_0x5d218f(0x100)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x1a8470=>{var _0x198537=_0x5d218f;const {eventID:_0x4242e1}=_0x1a8470;switch(_0x4242e1){case _0x436ce5[_0x198537(0xbe)]:this[_0x198537(0x80)](_0x1a8470);break;case _0x436ce5[_0x198537(0x9f)]:this[_0x198537(0x7b)](_0x1a8470);break;case _0x436ce5['LIVESHARE_TERMINATE']:this[_0x198537(0x95)]();break;case _0x436ce5[_0x198537(0x11d)]:this[_0x198537(0xfc)](_0x1a8470);break;}}));}[_0x327e99(0xe6)](){var _0x2c6681=_0x327e99;this[_0x2c6681(0xa0)][_0x2c6681(0xc5)]({'eventID':_0x436ce5[_0x2c6681(0x118)],'data':{'unitID':this[_0x2c6681(0xcb)],'userID':this[_0x2c6681(0xa0)]['getMemberID']()}},this[_0x2c6681(0xcb)]);}[_0x327e99(0xd7)](){var _0x1025ac=_0x327e99;this[_0x1025ac(0xe2)]==='presenting'&&(this[_0x1025ac(0x108)]['next'](_0x1025ac(0xd0)),this[_0x1025ac(0xa0)][_0x1025ac(0xc5)]({'eventID':_0x436ce5[_0x1025ac(0x109)],'data':{'unitID':this[_0x1025ac(0xcb)]}},this[_0x1025ac(0xcb)]));}[_0x327e99(0x119)](){var _0x1d7d77=_0x327e99;this[_0x1d7d77(0xe2)]===_0x1d7d77(0x93)&&(this[_0x1d7d77(0x108)][_0x1d7d77(0x9a)](_0x1d7d77(0xaa)),this['_startFollowing']());}[_0x327e99(0x71)](){var _0x35fc2f=_0x327e99;this['_status']===_0x35fc2f(0xaa)&&this['_stopFollowing']();}[_0x327e99(0x80)](_0x578f0f){var _0xf4555a=_0x327e99;const {presenter:_0x41c05b}=_0x578f0f[_0xf4555a(0xe1)],_0x17d407=this['_collabSession'][_0xf4555a(0xbd)]();this['_presenter']=_0x41c05b,_0x41c05b===_0x17d407?(this['_stopFollowing'](),this[_0xf4555a(0x98)]()):this[_0xf4555a(0xe2)]!=='not-following'&&(this[_0xf4555a(0x73)](),this[_0xf4555a(0x113)]());}[_0x327e99(0xf3)](){var _0x4a32fd=_0x327e99;const _0x28ebba={'eventID':_0x436ce5[_0x4a32fd(0xf2)]};this[_0x4a32fd(0xa0)]['send'](_0x28ebba,this['_unitID']);}[_0x327e99(0x95)](){var _0x2efdf7=_0x327e99;this[_0x2efdf7(0xd4)]=null,this[_0x2efdf7(0xe2)]!==_0x2efdf7(0x106)&&this[_0x2efdf7(0x6f)]();}[_0x327e99(0xfc)](_0x162e12){var _0x424de5=_0x327e99;if(this[_0x424de5(0xe2)]===_0x424de5(0xaa)&&this[_0x424de5(0xd4)]===_0x162e12['data'][_0x424de5(0x104)]){const _0x172fe7=_0x41dbe4(_0x162e12[_0x424de5(0xe1)])[_0x424de5(0x6e)][_0x424de5(0xf5)]()['find'](_0x480de1=>_0x480de1['id']===_0x134af5['id']);if(_0x172fe7){const _0xcd2dd=_0x172fe7[_0x424de5(0x94)][_0x424de5(0xb2)],_0x29a8b7=_0x172fe7[_0x424de5(0x94)]['sheet']['id'];setTimeout(()=>{var _0x3559d9=_0x424de5;this['_commandService'][_0x3559d9(0x103)](_0x3d1e6a['id'],{'unitId':_0xcd2dd,'subUnitId':_0x29a8b7},{'fromCollab':!0x0});});}}}[_0x327e99(0x98)](){var _0x3da4a4=_0x327e99;this['_status$'][_0x3da4a4(0x9a)](_0x3da4a4(0x106));const _0x1bf93d=new Map(),_0x451f3e=this[_0x3da4a4(0x78)]=new _0x5aba15();_0x451f3e['add'](_0x2fd3a3(()=>{var _0x40b967=_0x3da4a4;_0x1bf93d[_0x40b967(0xcd)](_0x3d0cc8=>_0x3d0cc8['complete']()),_0x1bf93d[_0x40b967(0x11f)]();})),_0x451f3e[_0x3da4a4(0x105)](this[_0x3da4a4(0xfe)][_0x3da4a4(0xd6)](_0x8030da=>{var _0x138f06=_0x3da4a4,_0x49c68e;if(_0x8030da[_0x138f06(0x97)]!==_0x3665fe[_0x138f06(0xd3)]||!this['_liveShareService'][_0x138f06(0xdd)](_0x8030da['id']))return;const {id:_0x29da5b}=_0x8030da;let _0x24ab59;_0x1bf93d[_0x138f06(0x102)](_0x29da5b)?_0x24ab59=_0x1bf93d[_0x138f06(0xb6)](_0x29da5b):(_0x24ab59=new _0x4b9add(),_0x1bf93d[_0x138f06(0x114)](_0x29da5b,_0x24ab59),_0x24ab59[_0x138f06(0x74)](_0x49ae5d((_0x49c68e=this[_0x138f06(0xff)]['getConfig'](xe))!=null?_0x49c68e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x138f06(0xa3)](_0x33e610=>{var _0x2388ae=_0x138f06;this['_collabSession'][_0x2388ae(0xc5)]({'eventID':_0x436ce5[_0x2388ae(0x9f)],'data':{'unitID':this[_0x2388ae(0xcb)],'operations':{[_0x33e610['id']]:{'id':_0x33e610['id'],'params':JSON['stringify'](_0x33e610['params'])}}}},this[_0x2388ae(0xcb)]);})),_0x24ab59['next'](_0x8030da);})),this['_liveShareService']['getInitialStates'](this[_0x3da4a4(0xcb)])[_0x3da4a4(0xcd)](_0x53e1e5=>this['_collabSession'][_0x3da4a4(0xc5)]({'eventID':_0x436ce5[_0x3da4a4(0x9f)],'data':{'unitID':this[_0x3da4a4(0xcb)],'operations':{[_0x53e1e5['id']]:{'id':_0x53e1e5['id'],'params':JSON[_0x3da4a4(0x6d)](_0x53e1e5[_0x3da4a4(0x94)])}}}},this[_0x3da4a4(0xcb)]));}[_0x327e99(0x73)](){var _0x185989=_0x327e99,_0x301739;this[_0x185989(0x108)]['next'](_0x185989(0xd0)),(_0x301739=this['_commandDisposable'])==null||_0x301739['dispose'](),this[_0x185989(0x78)]=null;}[_0x327e99(0x113)](){var _0x4578cb=_0x327e99,_0x86a397;(_0x86a397=this[_0x4578cb(0x78)])==null||_0x86a397['dispose'](),this[_0x4578cb(0x108)]['next'](_0x4578cb(0xaa));}[_0x327e99(0x6f)](){var _0x57ebe8=_0x327e99,_0x12b98d;this[_0x57ebe8(0x108)][_0x57ebe8(0x9a)]('idle'),(_0x12b98d=this[_0x57ebe8(0x78)])==null||_0x12b98d[_0x57ebe8(0xc3)](),this[_0x57ebe8(0x78)]=null;}['_stopFollowing'](){var _0xd956f5=_0x327e99,_0x17c684;this[_0xd956f5(0x108)][_0xd956f5(0x9a)](_0xd956f5(0x93)),(_0x17c684=this[_0xd956f5(0x78)])==null||_0x17c684['dispose']();}[_0x327e99(0x7b)](_0x5073e6){var _0x5bc075=_0x327e99;if([_0x5bc075(0x106),_0x5bc075(0x93),_0x5bc075(0xfd)]['includes'](this['_status'])||!_0x5073e6[_0x5bc075(0xe1)]['presenter']||_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x83)]===this[_0x5bc075(0xa0)][_0x5bc075(0xbd)]())return;this[_0x5bc075(0xe2)]===_0x5bc075(0xd0)&&this['_startFollowing']();const _0x2607dc=_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x9d)];Object[_0x5bc075(0xe0)](_0x2607dc)[_0x5bc075(0xcd)](_0x4ae3e4=>{var _0x4e0134=_0x5bc075;this[_0x4e0134(0xfe)][_0x4e0134(0x103)](_0x4ae3e4['id'],_0x4ae3e4['params']?JSON['parse'](_0x4ae3e4[_0x4e0134(0x94)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1313ea=_0x327e99,_0x33a332;this[_0x1313ea(0x108)][_0x1313ea(0x9a)](_0x1313ea(0xfd)),(_0x33a332=this[_0x1313ea(0x78)])==null||_0x33a332['dispose']();}[_0x327e99(0x8a)](){var _0x4bfb38=_0x327e99;this['_status$'][_0x4bfb38(0x9a)]('idle'),this[_0x4bfb38(0xf3)]();}};C=Z([f(0x2,_0x155baf),f(0x3,_0x322c89(L)),f(0x4,_0x20c766)],C);function ye(){var _0x445732=_0x327e99;const _0x4dbb5a=_0x52f11b(m),_0x59f803=_0x52f11b(_0x43cb00),_0x179da6=_0x999678(()=>_0x59f803[_0x445732(0x87)](_0x3a995a[_0x445732(0x9e)]),void 0x0,!0x1,[]),[_0x3e8bcf,_0x3f25bb]=_0x2ab18d(null),[_0x16dc69,_0x15e9f2]=_0x2ab18d(h['IDLE']),_0x31ab1b=_0x5a6ac8(null);return _0x20b184(()=>(_0x179da6&&_0x4dbb5a[_0x445732(0x11a)](_0x179da6[_0x445732(0xb9)]())[_0x445732(0x7f)](_0x1eb3ba=>{var _0x3e0866=_0x445732;_0x3f25bb(_0x1eb3ba),_0x31ab1b[_0x3e0866(0x10f)]=_0x1eb3ba[_0x3e0866(0xeb)]['subscribe'](_0x233f16=>{_0x15e9f2(_0x233f16);});}),()=>{var _0x4d589e=_0x445732,_0x10d370;(_0x10d370=_0x31ab1b[_0x4d589e(0x10f)])==null||_0x10d370[_0x4d589e(0xd2)](),_0x31ab1b[_0x4d589e(0x10f)]=null;}),[_0x179da6,_0x4dbb5a]),_0x3e8bcf?_0x3c1611(_0x58654a,{'align':_0x445732(0xa5),'disabled':_0x16dc69===h[_0x445732(0xe3)],'className':_0x445732(0x92),'overlay':_0x3c1611(Re,{'status':_0x16dc69,'coordinator':_0x3e8bcf}),'children':_0x3c1611(_0x445732(0xc1),{'className':_0x4c2d4b(_0x445732(0xfb),{'univer-cursor-not-allowed':_0x16dc69===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16dc69!==h['OFFLINE']}),'type':_0x445732(0xc1),'children':_0x3c1611(B,{'className':_0x445732(0xb7)})})}):null;}function Re(_0x5b1157){var _0x40b133=_0x327e99;const {status:_0x35a836,coordinator:_0x457b6a}=_0x5b1157;switch(_0x35a836){case h[_0x40b133(0x8f)]:return _0x3c1611(Pe,{'coordinator':_0x457b6a});case h[_0x40b133(0xed)]:return _0x3c1611(Ae,{'coordinator':_0x457b6a});case h['NOT_FOLLOWING']:return _0x3c1611(Te,{'coordinator':_0x457b6a});case h['OFFLINE']:return _0x3c1611(Fe,{});case h[_0x40b133(0xa4)]:return _0x3c1611($e,{'coordinator':_0x457b6a});default:return null;}}function Pe(_0x450919){var _0x49631a=_0x327e99;const {coordinator:_0x1c6a96}=_0x450919;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x49631a(0x10d),{'className':_0x49631a(0xbc),'children':_0x49631a(0xc2)}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x1c6a96['tryStartPresenting'](),'children':'Start'})]});}function Ae(_0x55e7da){var _0x2cc8de=_0x327e99;const {coordinator:_0x29bab4}=_0x55e7da;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x2cc8de(0x10d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x29bab4[_0x2cc8de(0x71)](),'children':_0x2cc8de(0xde)})]});}function Te(_0x315389){var _0x27f81e=_0x327e99;const {coordinator:_0x1f4416}=_0x315389;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x27f81e(0x10d),{'className':_0x27f81e(0xbc),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'variant':'text','onClick':()=>_0x1f4416[_0x27f81e(0x119)](),'children':'Start\x20following'})]});}function $e(_0x206800){var _0x20efb1=_0x327e99;const {coordinator:_0x3d1b8e}=_0x206800;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x20efb1(0x89)}),_0x3c1611(_0x5087e0,{'variant':_0x20efb1(0x7c),'onClick':()=>_0x3d1b8e[_0x20efb1(0xd7)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x3c1611(_0x3e88f6,{'children':'You\x27are\x20offline.'});}var He=Object[_0x327e99(0x10e)],je=(_0x2491f7,_0x684c8f,_0x49ad1b,_0x130eb1)=>{var _0x8e64c3=_0x327e99;for(var _0x1f7318=_0x130eb1>0x1?void 0x0:_0x130eb1?He(_0x684c8f,_0x49ad1b):_0x684c8f,_0x304d24=_0x2491f7[_0x8e64c3(0xd1)]-0x1,_0x266b85;_0x304d24>=0x0;_0x304d24--)(_0x266b85=_0x2491f7[_0x304d24])&&(_0x1f7318=_0x266b85(_0x1f7318)||_0x1f7318);return _0x1f7318;},T=(_0x9515df,_0x205b52)=>(_0x28d989,_0x5c805d)=>_0x205b52(_0x28d989,_0x5c805d,_0x9515df);let I=class extends _0x5bd465{constructor(_0x1291ae,_0x5c8028){var _0x47e37d=_0x327e99;super(),this[_0x47e37d(0x82)]=_0x1291ae,this[_0x47e37d(0xd9)]=_0x5c8028,this[_0x47e37d(0x8d)]();}[_0x327e99(0x8d)](){var _0x4d9887=_0x327e99;this[_0x4d9887(0x77)](this['_uiPartsService'][_0x4d9887(0xd5)](_0xfe26a1[_0x4d9887(0xca)],()=>_0x3de016(ye,this['_injector'])));}};I=je([T(0x0,_0x322c89(_0x5c2be7)),T(0x1,_0xc8b11c)],I);const Ue=_0x327e99(0xc4),$={};var Ve=Object[_0x327e99(0x10e)],Me=(_0x3893f6,_0x4a3e69,_0x18b11e,_0x377e57)=>{for(var _0x45ce1d=_0x377e57>0x1?void 0x0:_0x377e57?Ve(_0x4a3e69,_0x18b11e):_0x4a3e69,_0x3d1faa=_0x3893f6['length']-0x1,_0x349abb;_0x3d1faa>=0x0;_0x3d1faa--)(_0x349abb=_0x3893f6[_0x3d1faa])&&(_0x45ce1d=_0x349abb(_0x45ce1d)||_0x45ce1d);return _0x45ce1d;},ke=(_0x59a17b,_0x15552d)=>(_0x1f1526,_0x48d6b6)=>_0x15552d(_0x1f1526,_0x48d6b6,_0x59a17b);let b=class extends _0x5bd465{constructor(_0x21a1b6){var _0x8cac12=_0x327e99;super(),this[_0x8cac12(0x90)]=_0x21a1b6,this[_0x8cac12(0xf7)]();}[_0x327e99(0xf7)](){[_0x4a29e4['id'],_0x2ca7f0['id'],_0x3d1e6a['id']]['forEach'](_0x4eef9d=>{var _0xbd4d24=_0x3688;this[_0xbd4d24(0x77)](this[_0xbd4d24(0x90)][_0xbd4d24(0xe8)](_0x4eef9d));});}};b=Me([ke(0x0,_0x322c89(L))],b);var Ge=Object[_0x327e99(0xc9)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xc51dc8,_0x2943e6,_0x377435)=>_0x2943e6 in _0xc51dc8?Ge(_0xc51dc8,_0x2943e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377435}):_0xc51dc8[_0x2943e6]=_0x377435,Be=(_0x13ab0,_0x46d566,_0x54c85e,_0x4403ee)=>{var _0x1b7b20=_0x327e99;for(var _0x464a5b=_0x4403ee>0x1?void 0x0:_0x4403ee?We(_0x46d566,_0x54c85e):_0x46d566,_0x2f2f4e=_0x13ab0[_0x1b7b20(0xd1)]-0x1,_0x478438;_0x2f2f4e>=0x0;_0x2f2f4e--)(_0x478438=_0x13ab0[_0x2f2f4e])&&(_0x464a5b=_0x478438(_0x464a5b)||_0x464a5b);return _0x464a5b;},F=(_0x4ffd8a,_0x3f3f48)=>(_0x406501,_0x850323)=>_0x3f3f48(_0x406501,_0x850323,_0x4ffd8a),J=(_0x398162,_0x1a589b,_0x4bfe4f)=>Ye(_0x398162,typeof _0x1a589b!=_0x327e99(0x110)?_0x1a589b+'':_0x1a589b,_0x4bfe4f);const Ze=_0x327e99(0xce);let O=class extends _0x219943{constructor(_0x4b18e9=$,_0x471e8b,_0x11b280){var _0x3da602=_0x327e99;super(),this['_config']=_0x4b18e9,this['_injector']=_0x471e8b,this['_configService']=_0x11b280;const {..._0xb4fdc8}=_0x156a51({},$,this[_0x3da602(0xbf)]);this[_0x3da602(0xff)][_0x3da602(0xcc)](Ue,_0xb4fdc8);}[_0x327e99(0x112)](){var _0x45f0cf=_0x327e99;_0x14872e(this[_0x45f0cf(0x82)],_0x56051a([[L],[m],[b],[I]],this[_0x45f0cf(0xbf)][_0x45f0cf(0x8c)])),_0x25c9a6(this[_0x45f0cf(0x82)],[[b]]);}['onRendered'](){var _0x25762c=_0x327e99;_0x25c9a6(this[_0x25762c(0x82)],[[I]]);}};J(O,'type',_0x3a995a[_0x327e99(0xc7)]),J(O,_0x327e99(0x10b),Ze),O=Be([_0x19b5d5(_0x2156c1),F(0x1,_0x322c89(_0x5c2be7)),F(0x2,_0x155baf)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b7b(_0x53c758,_0x37ab82){var _0x5b3c23=_0x5b3c();return _0x3b7b=function(_0x3b7bbd,_0x445afb){_0x3b7bbd=_0x3b7bbd-0x75;var _0x5e3c47=_0x5b3c23[_0x3b7bbd];return _0x5e3c47;},_0x3b7b(_0x53c758,_0x37ab82);}function _0x5b3c(){var _0x267fa4=['CollaborationSessionService','registerInitialStateReporter','takeUntil','NOT_FOLLOWING','requireSession','RxDisposable','_handleOffline','563978ktFsNF','BuiltInUIPart','DesktopLiveShareController','SAME_OPERATION_SHARE_INTERVAL','function','@univerjs/design','offline','HEADER_MENU','getInitialStates','idSuffix','3384715qPSwIa','extend','forEach','NEW_CHANGESETS','getMemberID','You\x27re\x20following\x20the\x20presenter','_handleOperation','CommandType','registerSharedOperation','object','PRESENTING','_handleNewHost','getCurrentTypeOfUnit$','UniverIcon','toDisposable','2zgpIKn','url(#$1','map','0\x200\x2017\x2017','getLiveShareCoordinator','SetZoomRatioOperation','6gcwIgm','_univerInstanceService','26856012JkrgIR','asObservable','disposeWithMe','_entities','_handleTerminate','delete','button','executeCommand','mask','Button','SetWorksheetActiveOperation','random','has','_sharedOperations','useDependency','next','useRef','Stop\x20following','getOwnPropertyDescriptor','_startLiveShareCoordinator','operators','_handleNewChangeSets','_status$','Module','UniverInstanceType','mutations','_injector','FOLLOWING','icon','UniverSheets','throttleTime','registerComponent','jsx','onCommandExecuted','_uiPartsService','useState','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','SetScrollOperation','dispose','apply','_startPresenting','Present\x20this\x20document','displayName','195986jlfZno','ICommandService','defineProperty','_mountLiveShare','IConfigService','LiveShareIcon','status$','current','1em','registerDependencies','LiveShareCoordinator','IDLE','Stop\x20presenting','_configService','following','UniverProCollaborationClient','Start','live-share.config','univerjs-icon\x20univerjs-icon-','override','values','idle','getValue','SessionStatus','path','onStarting','from','@univerjs/sheets','OFFLINE','symbol','DisposableCollection','pluginName','_unitID','_reporters','xlink:href','getUnitId','UniverUi','useEffect','propertyIsEnumerable','You\x27are\x20offline.','UNIVER_SHEET','_liveShareService','LIVESHARE_OPERATION','complete','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','pipe','startFollowing','toString','_fetchOperations','react','none','getTypeOfUnitDisposed$','UniverProCollaboration','forwardRef','80bnEMJM','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mergeOverrideWithDependencies','presenting','type','unitId','stopFollowing','_collabSessionService','use','operations','text','LiveShareStatus','add','LIVESHARE_REQUEST_HOST','LIVESHARE_FETCH_OPERATIONS','_commandService','getOwnPropertySymbols','UniverCollaborationClientPlugin','InsertSheetMutation','@univerjs-pro/collaboration','createElement','prototype','unsubscribe','_config','Inject','length','1415331GEKyVu','stopPresenting','_status','LiveShare','tag','dispose$','React','@univerjs/core','params','sheet','_collabSession','live-share-icon','UniverDesign','50RyNVGN','_handleOnline','children','rxjs','Start\x20following','UniverProLiveShare','LiveShareController','set','end','jsxs','LIVESHARE_TERMINATE','clear','UniverLiveSharePlugin','send','includes','UNIVER_LIVE_SHARE_PLUGIN','824087hrxpBd','Plugin','colorChannel1','hasOwnProperty','You\x27re\x20presenting\x20the\x20document','@univerjs/ui','_beIdle','stringify','presenter','_stopPresenting','_startFollowing','http://www.w3.org/2000/svg','tryStartPresenting','_init','_presenter','DependentOn','attrs','_commandDisposable','rxjs/operators','shouldShareOperation','className','CollaborationEvent','Disposable','div','get','ONLINE','@univerjs/sheets-ui','_stopFollowing','subscribe','Subject','@univerjs-pro/collaboration-client','IUniverInstanceService','evenodd','not-following','connectInjector','Injector','event$','2769579nUwYXY','defIds','default','init','merge','assign','call','string','substring','setConfig','4mzEosu','concat','Fragment','You\x27re\x20not\x20following\x20the\x20presenter','entries','parseProtocolChangeset'];_0x5b3c=function(){return _0x267fa4;};return _0x5b3c();}(function(_0x431074,_0x360066){var _0x1aed12=_0x3b7b,_0x2662f8=_0x431074();while(!![]){try{var _0x2b5293=-parseInt(_0x1aed12(0xce))/0x1*(-parseInt(_0x1aed12(0xe7))/0x2)+parseInt(_0x1aed12(0x75))/0x3*(parseInt(_0x1aed12(0xc1))/0x4)+-parseInt(_0x1aed12(0xd8))/0x5*(-parseInt(_0x1aed12(0xed))/0x6)+parseInt(_0x1aed12(0x11c))/0x7*(parseInt(_0x1aed12(0x154))/0x8)+parseInt(_0x1aed12(0xb7))/0x9+-parseInt(_0x1aed12(0x82))/0xa*(-parseInt(_0x1aed12(0x92))/0xb)+-parseInt(_0x1aed12(0xef))/0xc;if(_0x2b5293===_0x360066)break;else _0x2662f8['push'](_0x2662f8['shift']());}catch(_0x1efe87){_0x2662f8['push'](_0x2662f8['shift']());}}}(_0x5b3c,0x6ab01),function(_0x221526,_0xa4b86b){var _0x3c308e=_0x3b7b;typeof exports==_0x3c308e(0xe1)&&typeof module<'u'?_0xa4b86b(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3c308e(0xd2)&&define['amd']?define(['exports',_0x3c308e(0x7c),_0x3c308e(0x97),'react/jsx-runtime',_0x3c308e(0xd3),_0x3c308e(0x14f),_0x3c308e(0x168),_0x3c308e(0xb0),_0x3c308e(0x137),_0x3c308e(0x85),_0x3c308e(0xa4),_0x3c308e(0xac)],_0xa4b86b):(_0x221526=typeof globalThis<'u'?globalThis:_0x221526||self,_0xa4b86b(_0x221526[_0x3c308e(0x87)]={},_0x221526['UniverCore'],_0x221526[_0x3c308e(0x140)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x81)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x152)],_0x221526[_0x3c308e(0x12b)],_0x221526[_0x3c308e(0x10c)],_0x221526[_0x3c308e(0x85)],_0x221526['rxjs'][_0x3c308e(0x103)],_0x221526['UniverSheetsUi']));}(this,function(_0x2f1323,_0x3d67cc,_0x4ddf63,_0x39d1df,_0x67a8da,_0x3ea407,_0x17ed65,_0x326eac,_0x4b74db,_0x2e8630,_0x520722,_0x3be5b0){'use strict';var _0x120ec6=_0x3b7b;var _0x5bd5de=Object[_0x120ec6(0x11e)],_0x2a19d4=(_0x2a5548,_0x681783,_0x28d3e4)=>_0x681783 in _0x2a5548?_0x5bd5de(_0x2a5548,_0x681783,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28d3e4}):_0x2a5548[_0x681783]=_0x28d3e4,_0x4410d2=(_0x25799e,_0x5c83a4,_0x10e63b)=>_0x2a19d4(_0x25799e,typeof _0x5c83a4!=_0x120ec6(0x139)?_0x5c83a4+'':_0x5c83a4,_0x10e63b),_0x33addf=function(){var _0x325acd=_0x120ec6;return _0x33addf=Object[_0x325acd(0xbc)]||function(_0x97c5e3){var _0x4a5615=_0x325acd;for(var _0x16ea5e,_0x2ddbe8=0x1,_0x27e4cd=arguments[_0x4a5615(0x16e)];_0x2ddbe8<_0x27e4cd;_0x2ddbe8++){_0x16ea5e=arguments[_0x2ddbe8];for(var _0x58e341 in _0x16ea5e)Object['prototype'][_0x4a5615(0x95)][_0x4a5615(0xbd)](_0x16ea5e,_0x58e341)&&(_0x97c5e3[_0x58e341]=_0x16ea5e[_0x58e341]);}return _0x97c5e3;},_0x33addf[_0x325acd(0x118)](this,arguments);},_0x35abb2=function(_0x1b0d09,_0x4ac8b9){var _0x56abe2=_0x120ec6,_0x34c33a={};for(var _0xa9f034 in _0x1b0d09)Object[_0x56abe2(0x16a)][_0x56abe2(0x95)]['call'](_0x1b0d09,_0xa9f034)&&_0x4ac8b9['indexOf'](_0xa9f034)<0x0&&(_0x34c33a[_0xa9f034]=_0x1b0d09[_0xa9f034]);if(_0x1b0d09!=null&&typeof Object[_0x56abe2(0x165)]=='function'){for(var _0x580195=0x0,_0xa9f034=Object[_0x56abe2(0x165)](_0x1b0d09);_0x580195<_0xa9f034[_0x56abe2(0x16e)];_0x580195++)_0x4ac8b9['indexOf'](_0xa9f034[_0x580195])<0x0&&Object[_0x56abe2(0x16a)][_0x56abe2(0x142)][_0x56abe2(0xbd)](_0x1b0d09,_0xa9f034[_0x580195])&&(_0x34c33a[_0xa9f034[_0x580195]]=_0x1b0d09[_0xa9f034[_0x580195]]);}return _0x34c33a;},_0x2b6e38=_0x3ea407['forwardRef'](function(_0x21524e,_0x63d77){var _0x1328ee=_0x120ec6,_0x34951c=_0x21524e['icon'],_0xdd2e67=_0x21524e['id'],_0x5bd527=_0x21524e[_0x1328ee(0xa6)],_0x4a7490=_0x21524e[_0x1328ee(0xd9)],_0x5484b8=_0x35abb2(_0x21524e,[_0x1328ee(0x10b),'id',_0x1328ee(0xa6),_0x1328ee(0xd9)]),_0x35ebda=_0x1328ee(0x12e)[_0x1328ee(0xc2)](_0xdd2e67,'\x20')[_0x1328ee(0xc2)](_0x5bd527||'')['trim'](),_0x359f9b=_0x3ea407['useRef']('_'['concat'](_0x212744()));return _0x5afaf4(_0x34951c,''[_0x1328ee(0xc2)](_0xdd2e67),{'defIds':_0x34951c[_0x1328ee(0xb8)],'idSuffix':_0x359f9b[_0x1328ee(0x123)]},_0x33addf({'ref':_0x63d77,'className':_0x35ebda},_0x5484b8),_0x4a7490);});function _0x5afaf4(_0x1a9a11,_0x7fa884,_0x5ba1ee,_0x2fcd52,_0x54f0e0){var _0x263d5f=_0x120ec6;return _0x3ea407['createElement'](_0x1a9a11['tag'],_0x33addf(_0x33addf({'key':_0x7fa884},_0x38fe84(_0x1a9a11,_0x5ba1ee,_0x54f0e0)),_0x2fcd52),(_0xcf6f25(_0x1a9a11,_0x5ba1ee)[_0x263d5f(0x84)]||[])[_0x263d5f(0xe9)](function(_0x5c2328,_0x484de3){var _0x383948=_0x263d5f;return _0x5afaf4(_0x5c2328,''[_0x383948(0xc2)](_0x7fa884,'-')[_0x383948(0xc2)](_0x1a9a11[_0x383948(0x79)],'-')[_0x383948(0xc2)](_0x484de3),_0x5ba1ee,void 0x0,_0x54f0e0);}));}function _0x38fe84(_0x30d803,_0x41fd3e,_0x4b308d){var _0x51c1dc=_0x120ec6,_0x56a120=_0x33addf({},_0x30d803[_0x51c1dc(0xa2)]);_0x4b308d!=null&&_0x4b308d[_0x51c1dc(0x94)]&&_0x56a120['fill']===_0x51c1dc(0x94)&&(_0x56a120['fill']=_0x4b308d[_0x51c1dc(0x94)]),_0x30d803[_0x51c1dc(0x79)]==='mask'&&_0x56a120['id']&&(_0x56a120['id']=_0x56a120['id']+_0x41fd3e['idSuffix']),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x55c635){var _0x302312=_0x51c1dc,_0x4aac00=_0x55c635[0x0],_0x2f150c=_0x55c635[0x1];_0x4aac00===_0x302312(0xf7)&&typeof _0x2f150c==_0x302312(0xbe)&&(_0x56a120[_0x4aac00]=_0x2f150c['replace'](/url\(#(.*)\)/,'url(#$1'[_0x302312(0xc2)](_0x41fd3e[_0x302312(0xd7)],')')));});var _0x313889=_0x41fd3e[_0x51c1dc(0xb8)];return!_0x313889||_0x313889[_0x51c1dc(0x16e)]===0x0||(_0x30d803[_0x51c1dc(0x79)]===_0x51c1dc(0x15d)&&_0x56a120[_0x51c1dc(0x13e)]&&(_0x56a120['xlink:href']=_0x56a120[_0x51c1dc(0x13e)]+_0x41fd3e[_0x51c1dc(0xd7)]),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x3d8af3){var _0x87f776=_0x51c1dc,_0xdbed71=_0x3d8af3[0x0],_0x5d067e=_0x3d8af3[0x1];typeof _0x5d067e=='string'&&(_0x56a120[_0xdbed71]=_0x5d067e[_0x87f776(0x115)](/url\(#(.*)\)/,_0x87f776(0xe8)[_0x87f776(0xc2)](_0x41fd3e[_0x87f776(0xd7)],')')));})),_0x56a120;}function _0xcf6f25(_0x309480,_0x32d75c){var _0x507996=_0x120ec6,_0x327a16,_0x7672a5=_0x32d75c[_0x507996(0xb8)];return!_0x7672a5||_0x7672a5[_0x507996(0x16e)]===0x0?_0x309480:_0x309480[_0x507996(0x79)]==='defs'&&(!((_0x327a16=_0x309480[_0x507996(0x84)])===null||_0x327a16===void 0x0)&&_0x327a16[_0x507996(0x16e)])?_0x33addf(_0x33addf({},_0x309480),{'children':_0x309480['children']['map'](function(_0x40e3b5){var _0x723cb2=_0x507996;return typeof _0x40e3b5[_0x723cb2(0xa2)]['id']==_0x723cb2(0xbe)&&_0x7672a5&&_0x7672a5[_0x723cb2(0x90)](_0x40e3b5['attrs']['id'])?_0x33addf(_0x33addf({},_0x40e3b5),{'attrs':_0x33addf(_0x33addf({},_0x40e3b5['attrs']),{'id':_0x40e3b5[_0x723cb2(0xa2)]['id']+_0x32d75c[_0x723cb2(0xd7)]})}):_0x40e3b5;})}):_0x309480;}function _0x212744(){var _0x47dd54=_0x120ec6;return Math[_0x47dd54(0xfa)]()[_0x47dd54(0x14d)](0x24)[_0x47dd54(0xbf)](0x2,0x8);}_0x2b6e38[_0x120ec6(0x11b)]=_0x120ec6(0xe5);var _0x2c9708={'tag':'svg','attrs':{'xmlns':_0x120ec6(0x9d),'fill':_0x120ec6(0x150),'viewBox':_0x120ec6(0xea),'width':_0x120ec6(0x124),'height':_0x120ec6(0x124)},'children':[{'tag':_0x120ec6(0x134),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x120ec6(0x134),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x120ec6(0xb2),'clipRule':'evenodd'}}]},_0x5c17a1=_0x3ea407[_0x120ec6(0x153)](function(_0x18e7a4,_0x1aea77){var _0x31d66b=_0x120ec6;return _0x3ea407[_0x31d66b(0x169)](_0x2b6e38,Object['assign']({},_0x18e7a4,{'id':_0x31d66b(0x80),'ref':_0x1aea77,'icon':_0x2c9708}));});_0x5c17a1['displayName']=_0x120ec6(0x121);class _0x4bdc69 extends _0x3d67cc['Disposable']{constructor(){var _0x43832b=_0x120ec6;super(...arguments),_0x4410d2(this,_0x43832b(0xfc),new Set()),_0x4410d2(this,_0x43832b(0x13d),new Set());}[_0x120ec6(0xe0)](_0x1112d4){var _0x3ccdf2=_0x120ec6;return this[_0x3ccdf2(0xfc)][_0x3ccdf2(0x161)](_0x1112d4),_0x3d67cc[_0x3ccdf2(0xe6)](()=>this[_0x3ccdf2(0xfc)][_0x3ccdf2(0xf4)](_0x1112d4));}[_0x120ec6(0xc8)](_0x4dc94e){var _0x42c260=_0x120ec6;return this['_reporters'][_0x42c260(0x161)](_0x4dc94e),_0x3d67cc[_0x42c260(0xe6)](()=>this[_0x42c260(0x13d)][_0x42c260(0xf4)](_0x4dc94e));}[_0x120ec6(0xa5)](_0x57d1d1){var _0x3e32b8=_0x120ec6;return this['_sharedOperations'][_0x3e32b8(0xfb)](_0x57d1d1);}[_0x120ec6(0xd6)](_0x14c824){var _0x4a866a=_0x120ec6;return Array[_0x4a866a(0x136)](this[_0x4a866a(0x13d)])['map'](_0x4cedb1=>_0x4cedb1(_0x14c824));}}var _0x2815d1=Object[_0x120ec6(0x101)],_0x1a8a83=(_0x5131d3,_0x125d0b,_0x44fc68,_0xbf6314)=>{var _0x65a218=_0x120ec6;for(var _0x37258c=_0xbf6314>0x1?void 0x0:_0xbf6314?_0x2815d1(_0x125d0b,_0x44fc68):_0x125d0b,_0x839833=_0x5131d3[_0x65a218(0x16e)]-0x1,_0x5bccde;_0x839833>=0x0;_0x839833--)(_0x5bccde=_0x5131d3[_0x839833])&&(_0x37258c=_0x5bccde(_0x37258c)||_0x37258c);return _0x37258c;},_0x5e1306=(_0x54ffee,_0xfd27e1)=>(_0x4fdb2c,_0x5f0365)=>_0xfd27e1(_0x4fdb2c,_0x5f0365,_0x54ffee);_0x2f1323[_0x120ec6(0x88)]=class extends _0x3d67cc['RxDisposable']{constructor(_0x2a9fbb,_0x30c810,_0x177ba3){var _0x54c643=_0x120ec6;super(),_0x4410d2(this,_0x54c643(0xf2),new Map()),(this[_0x54c643(0xee)]=_0x2a9fbb,this[_0x54c643(0x109)]=_0x30c810,this[_0x54c643(0x15c)]=_0x177ba3,this[_0x54c643(0x9f)]());}async['getLiveShareCoordinator'](_0x2d3403){var _0x39bf07=_0x120ec6;return this['_entities'][_0x39bf07(0xfb)](_0x2d3403)||await this['_startLiveShareCoordinator'](_0x2d3403),this['_entities'][_0x39bf07(0xaa)](_0x2d3403);}[_0x120ec6(0x9f)](){var _0x4152a8=_0x120ec6;this[_0x4152a8(0xee)]['getTypeOfUnitAdded$'](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](async _0x398563=>{var _0x28c9fd=_0x4152a8;const _0x21c9a0=_0x398563[_0x28c9fd(0x13f)]();this[_0x28c9fd(0xf2)][_0x28c9fd(0xfb)](_0x21c9a0)||this[_0x28c9fd(0x102)](_0x21c9a0);}),this[_0x4152a8(0xee)][_0x4152a8(0x151)](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](_0xa2f3ad=>{var _0x375c84=_0x4152a8;const _0x2faeca=_0xa2f3ad[_0x375c84(0x13f)](),_0x501cf6=this[_0x375c84(0xf2)][_0x375c84(0xaa)](_0x2faeca);_0x501cf6==null||_0x501cf6[_0x375c84(0x117)]();});}async[_0x120ec6(0x102)](_0x3e4b2b){var _0x1af4ff=_0x120ec6;const _0xae9644=await this['_collabSessionService'][_0x1af4ff(0xcb)](_0x3e4b2b),_0x4deaf7=this['_injector']['createInstance'](_0x2f1323[_0x1af4ff(0x126)],_0x3e4b2b,_0xae9644);return _0x4deaf7[_0x1af4ff(0xba)](),this['_entities'][_0x1af4ff(0x89)](_0x3e4b2b,_0x4deaf7),_0x4deaf7;}},_0x2f1323[_0x120ec6(0x88)]=_0x1a8a83([_0x5e1306(0x0,_0x3d67cc[_0x120ec6(0xb1)]),_0x5e1306(0x1,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x16d)](_0x326eac[_0x120ec6(0xc7)]))],_0x2f1323[_0x120ec6(0x88)]);var _0x22b87c=(_0x473e24=>(_0x473e24['OFFLINE']=_0x120ec6(0xd4),_0x473e24[_0x120ec6(0x127)]=_0x120ec6(0x131),_0x473e24[_0x120ec6(0x10a)]=_0x120ec6(0x12a),_0x473e24[_0x120ec6(0xca)]='not-following',_0x473e24[_0x120ec6(0xe2)]='presenting',_0x473e24))(_0x22b87c||{});const _0x187245=_0x120ec6(0xd1),_0x24d2bc=0xc8;_0x2f1323['LiveShareCoordinator']=class extends _0x3d67cc[_0x120ec6(0xcc)]{constructor(_0x3230b6,_0x30e4f6,_0x5b4b00,_0x4a0f99,_0x3b06b5){var _0x34b728=_0x120ec6;super(),_0x4410d2(this,_0x34b728(0x105),new _0x2e8630['BehaviorSubject'](_0x34b728(0x131))),_0x4410d2(this,'status$',this[_0x34b728(0x105)][_0x34b728(0xf0)]()),_0x4410d2(this,_0x34b728(0x9f),!0x1),_0x4410d2(this,_0x34b728(0xa3),null),_0x4410d2(this,'_presenter',null),(this[_0x34b728(0x13c)]=_0x3230b6,this['_collabSession']=_0x30e4f6,this['_configService']=_0x5b4b00,this[_0x34b728(0x145)]=_0x4a0f99,this[_0x34b728(0x164)]=_0x3b06b5);}get[_0x120ec6(0x77)](){var _0x65de82=_0x120ec6;return this[_0x65de82(0x105)][_0x65de82(0x132)]();}[_0x120ec6(0x117)](){var _0x4412ec=_0x120ec6,_0x3e70ea;(_0x3e70ea=this[_0x4412ec(0xa3)])==null||_0x3e70ea[_0x4412ec(0x117)](),this[_0x4412ec(0x105)]['next'](_0x4412ec(0x131)),this[_0x4412ec(0x105)][_0x4412ec(0x147)]();}[_0x120ec6(0xba)](){var _0xd12bbd=_0x120ec6;this[_0xd12bbd(0x9f)]||(this[_0xd12bbd(0x9f)]=!0x0,this[_0xd12bbd(0x7f)]['sessionStatus$'][_0xd12bbd(0x14b)](_0x520722['takeUntil'](this['dispose$']))['subscribe'](_0x5f4217=>{var _0x5024aa=_0xd12bbd;switch(_0x5f4217){case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0x138)]:this[_0x5024aa(0xcd)]();break;case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0xab)]:this[_0x5024aa(0x83)]();break;}}),this['_collabSession'][_0xd12bbd(0xb6)][_0xd12bbd(0x14b)](_0x520722[_0xd12bbd(0xc9)](this['dispose$']))[_0xd12bbd(0xae)](_0xf8b017=>{var _0x8a0106=_0xd12bbd;const {eventID:_0x552026}=_0xf8b017;switch(_0x552026){case _0x17ed65[_0x8a0106(0xa7)]['LIVESHARE_NEW_HOST']:this[_0x8a0106(0xe3)](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x146)]:this['_handleOperation'](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x8c)]:this[_0x8a0106(0xf3)]();break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0xdb)]:this[_0x8a0106(0x104)](_0xf8b017);break;}}));}[_0x120ec6(0x9e)](){var _0x1fa104=_0x120ec6;this[_0x1fa104(0x7f)][_0x1fa104(0x8f)]({'eventID':_0x17ed65['CollaborationEvent'][_0x1fa104(0x162)],'data':{'unitID':this[_0x1fa104(0x13c)],'userID':this[_0x1fa104(0x7f)][_0x1fa104(0xdc)]()}},this[_0x1fa104(0x13c)]);}['stopPresenting'](){var _0x3a8b46=_0x120ec6;this['_status']==='presenting'&&(this['_status$'][_0x3a8b46(0xfe)](_0x3a8b46(0x131)),this['_collabSession'][_0x3a8b46(0x8f)]({'eventID':_0x17ed65[_0x3a8b46(0xa7)][_0x3a8b46(0x8c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120ec6(0x14c)](){var _0x358aa0=_0x120ec6;this[_0x358aa0(0x77)]==='not-following'&&(this[_0x358aa0(0x105)][_0x358aa0(0xfe)]('following'),this[_0x358aa0(0x9c)]());}[_0x120ec6(0x15b)](){var _0x317768=_0x120ec6;this[_0x317768(0x77)]==='following'&&this['_stopFollowing']();}[_0x120ec6(0xe3)](_0x174437){var _0x44a81a=_0x120ec6;const {presenter:_0x28ce49}=_0x174437[_0x44a81a(0x156)],_0x323d4d=this[_0x44a81a(0x7f)]['getMemberID']();this[_0x44a81a(0xa0)]=_0x28ce49,_0x28ce49===_0x323d4d?(this[_0x44a81a(0xad)](),this[_0x44a81a(0x119)]()):this[_0x44a81a(0x77)]!=='not-following'&&(this[_0x44a81a(0x9b)](),this[_0x44a81a(0x9c)]());}[_0x120ec6(0x14e)](){var _0x24bfea=_0x120ec6;const _0x386bed={'eventID':_0x17ed65[_0x24bfea(0xa7)][_0x24bfea(0x163)]};this['_collabSession'][_0x24bfea(0x8f)](_0x386bed,this[_0x24bfea(0x13c)]);}[_0x120ec6(0xf3)](){var _0x22e7e3=_0x120ec6;this[_0x22e7e3(0xa0)]=null,this[_0x22e7e3(0x77)]!==_0x22e7e3(0x158)&&this[_0x22e7e3(0x98)]();}[_0x120ec6(0x104)](_0x552daf){var _0x40fabf=_0x120ec6;if(this[_0x40fabf(0x77)]==='following'&&this['_presenter']===_0x552daf[_0x40fabf(0x156)]['memberID']){const _0x994467=_0x17ed65[_0x40fabf(0xc6)](_0x552daf[_0x40fabf(0x156)])[_0x40fabf(0x108)]['reverse']()['find'](_0x128025=>_0x128025['id']===_0x4b74db[_0x40fabf(0x167)]['id']);if(_0x994467){const _0x3375e8=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x15a)],_0xa6b777=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x7e)]['id'];setTimeout(()=>{var _0x1f23d3=_0x40fabf;this[_0x1f23d3(0x164)][_0x1f23d3(0xf6)](_0x4b74db[_0x1f23d3(0xf9)]['id'],{'unitId':_0x3375e8,'subUnitId':_0xa6b777},{'fromCollab':!0x0});});}}}[_0x120ec6(0x119)](){var _0x5c79ad=_0x120ec6;this['_status$']['next'](_0x5c79ad(0x158));const _0x586383=new Map(),_0x1baa34=this[_0x5c79ad(0xa3)]=new _0x3d67cc[(_0x5c79ad(0x13a))]();_0x1baa34[_0x5c79ad(0x161)](_0x3d67cc[_0x5c79ad(0xe6)](()=>{var _0x440f7a=_0x5c79ad;_0x586383['forEach'](_0x448754=>_0x448754['complete']()),_0x586383[_0x440f7a(0x8d)]();})),_0x1baa34['add'](this['_commandService'][_0x5c79ad(0x110)](_0x1a2cf7=>{var _0x22ac31=_0x5c79ad,_0xa1e4a7;if(_0x1a2cf7[_0x22ac31(0x159)]!==_0x3d67cc[_0x22ac31(0xdf)]['OPERATION']||!this['_liveShareService'][_0x22ac31(0xa5)](_0x1a2cf7['id']))return;const {id:_0x2c1597}=_0x1a2cf7;let _0x8ad563;_0x586383[_0x22ac31(0xfb)](_0x2c1597)?_0x8ad563=_0x586383[_0x22ac31(0xaa)](_0x2c1597):(_0x8ad563=new _0x2e8630[(_0x22ac31(0xaf))](),_0x586383[_0x22ac31(0x89)](_0x2c1597,_0x8ad563),_0x8ad563[_0x22ac31(0x14b)](_0x520722[_0x22ac31(0x10d)]((_0xa1e4a7=this[_0x22ac31(0x129)]['getConfig'](_0x187245))!=null?_0xa1e4a7:_0x24d2bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22ac31(0xae)](_0x3e8ca8=>{var _0x55d824=_0x22ac31;this[_0x55d824(0x7f)][_0x55d824(0x8f)]({'eventID':_0x17ed65[_0x55d824(0xa7)][_0x55d824(0x146)],'data':{'unitID':this[_0x55d824(0x13c)],'operations':{[_0x3e8ca8['id']]:{'id':_0x3e8ca8['id'],'params':JSON[_0x55d824(0x99)](_0x3e8ca8[_0x55d824(0x7d)])}}}},this[_0x55d824(0x13c)]);})),_0x8ad563[_0x22ac31(0xfe)](_0x1a2cf7);})),this[_0x5c79ad(0x145)][_0x5c79ad(0xd6)](this['_unitID'])[_0x5c79ad(0xda)](_0x57c5a8=>this[_0x5c79ad(0x7f)]['send']({'eventID':_0x17ed65['CollaborationEvent'][_0x5c79ad(0x146)],'data':{'unitID':this[_0x5c79ad(0x13c)],'operations':{[_0x57c5a8['id']]:{'id':_0x57c5a8['id'],'params':JSON['stringify'](_0x57c5a8['params'])}}}},this['_unitID']));}[_0x120ec6(0x9b)](){var _0x5ea3e4=_0x120ec6,_0x3610d9;this['_status$'][_0x5ea3e4(0xfe)](_0x5ea3e4(0x131)),(_0x3610d9=this[_0x5ea3e4(0xa3)])==null||_0x3610d9[_0x5ea3e4(0x117)](),this['_commandDisposable']=null;}[_0x120ec6(0x9c)](){var _0x544123=_0x120ec6,_0x34d301;(_0x34d301=this[_0x544123(0xa3)])==null||_0x34d301['dispose'](),this['_status$']['next']('following');}[_0x120ec6(0x98)](){var _0x471df2=_0x120ec6,_0x3af33b;this['_status$'][_0x471df2(0xfe)](_0x471df2(0x131)),(_0x3af33b=this[_0x471df2(0xa3)])==null||_0x3af33b[_0x471df2(0x117)](),this[_0x471df2(0xa3)]=null;}[_0x120ec6(0xad)](){var _0x43f136=_0x120ec6,_0x3d9c28;this[_0x43f136(0x105)]['next'](_0x43f136(0xb3)),(_0x3d9c28=this[_0x43f136(0xa3)])==null||_0x3d9c28[_0x43f136(0x117)]();}[_0x120ec6(0xde)](_0x4875ef){var _0x5eecca=_0x120ec6;if([_0x5eecca(0x158),_0x5eecca(0xb3),_0x5eecca(0xd4)]['includes'](this[_0x5eecca(0x77)])||!_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]||_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]===this[_0x5eecca(0x7f)][_0x5eecca(0xdc)]())return;this['_status']===_0x5eecca(0x131)&&this[_0x5eecca(0x9c)]();const _0x3df6a8=_0x4875ef['data'][_0x5eecca(0x15e)];Object[_0x5eecca(0x130)](_0x3df6a8)['forEach'](_0x3020bc=>{var _0x530881=_0x5eecca;this[_0x530881(0x164)]['executeCommand'](_0x3020bc['id'],_0x3020bc[_0x530881(0x7d)]?JSON['parse'](_0x3020bc[_0x530881(0x7d)]):null,{'fromCollab':!0x0});});}[_0x120ec6(0xcd)](){var _0x3f7f98=_0x120ec6,_0x3bdfa8;this[_0x3f7f98(0x105)]['next'](_0x3f7f98(0xd4)),(_0x3bdfa8=this['_commandDisposable'])==null||_0x3bdfa8[_0x3f7f98(0x117)]();}[_0x120ec6(0x83)](){var _0x17c4be=_0x120ec6;this[_0x17c4be(0x105)][_0x17c4be(0xfe)](_0x17c4be(0x131)),this['_fetchOperations']();}},_0x2f1323['LiveShareCoordinator']=_0x1a8a83([_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x120)]),_0x5e1306(0x3,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69)),_0x5e1306(0x4,_0x3d67cc[_0x120ec6(0x11d)])],_0x2f1323[_0x120ec6(0x126)]);function _0x13bed3(){var _0x16d615=_0x120ec6;const _0x33fa8d=_0x4ddf63[_0x16d615(0xfd)](_0x2f1323['LiveShareController']),_0x1bc066=_0x4ddf63[_0x16d615(0xfd)](_0x3d67cc['IUniverInstanceService']),_0x299cab=_0x4ddf63['useObservable'](()=>_0x1bc066[_0x16d615(0xe4)](_0x3d67cc[_0x16d615(0x107)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x302134,_0x260946]=_0x3ea407[_0x16d615(0x112)](null),[_0x18af28,_0x10c83e]=_0x3ea407[_0x16d615(0x112)](_0x22b87c[_0x16d615(0x127)]),_0x57e052=_0x3ea407[_0x16d615(0xff)](null);return _0x3ea407[_0x16d615(0x141)](()=>(_0x299cab&&_0x33fa8d[_0x16d615(0xeb)](_0x299cab[_0x16d615(0x13f)]())['then'](_0x948a29=>{var _0x12aa62=_0x16d615;_0x260946(_0x948a29),_0x57e052[_0x12aa62(0x123)]=_0x948a29[_0x12aa62(0x122)][_0x12aa62(0xae)](_0x71cd9c=>{_0x10c83e(_0x71cd9c);});}),()=>{var _0x1b68ce=_0x16d615,_0x590078;(_0x590078=_0x57e052[_0x1b68ce(0x123)])==null||_0x590078[_0x1b68ce(0x16b)](),_0x57e052[_0x1b68ce(0x123)]=null;}),[_0x299cab,_0x33fa8d]),_0x302134?_0x39d1df[_0x16d615(0x10f)](_0x67a8da['Dropdown'],{'align':_0x16d615(0x8a),'disabled':_0x18af28===_0x22b87c[_0x16d615(0x138)],'className':_0x16d615(0x155),'overlay':_0x39d1df[_0x16d615(0x10f)](_0x1f6ea7,{'status':_0x18af28,'coordinator':_0x302134}),'children':_0x39d1df[_0x16d615(0x10f)](_0x16d615(0xf5),{'className':_0x67a8da['clsx'](_0x16d615(0x149),{'univer-cursor-not-allowed':_0x18af28===_0x22b87c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18af28!==_0x22b87c[_0x16d615(0x138)]}),'type':_0x16d615(0xf5),'children':_0x39d1df[_0x16d615(0x10f)](_0x5c17a1,{'className':'univer-size-4'})})}):null;}function _0x1f6ea7(_0x214902){var _0x19646d=_0x120ec6;const {status:_0x879bbd,coordinator:_0x14b866}=_0x214902;switch(_0x879bbd){case _0x22b87c[_0x19646d(0x127)]:return _0x39d1df[_0x19646d(0x10f)](_0x5099ce,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x10a)]:return _0x39d1df[_0x19646d(0x10f)](_0x19e522,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0xca)]:return _0x39d1df[_0x19646d(0x10f)](_0xdcf63,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x138)]:return _0x39d1df['jsx'](_0x3ada5f,{});case _0x22b87c[_0x19646d(0xe2)]:return _0x39d1df['jsx'](_0x103ebd,{'coordinator':_0x14b866});default:return null;}}function _0x5099ce(_0x113a17){var _0x55a1ec=_0x120ec6;const {coordinator:_0x4253dc}=_0x113a17;return _0x39d1df[_0x55a1ec(0x8b)](_0x39d1df[_0x55a1ec(0xc3)],{'children':[_0x39d1df[_0x55a1ec(0x10f)](_0x55a1ec(0xa9),{'className':_0x55a1ec(0x114),'children':_0x55a1ec(0x11a)}),_0x39d1df[_0x55a1ec(0x10f)](_0x67a8da[_0x55a1ec(0xf8)],{'onClick':()=>_0x4253dc[_0x55a1ec(0x9e)](),'children':_0x55a1ec(0x12c)})]});}function _0x19e522(_0x4f856e){var _0x19b142=_0x120ec6;const {coordinator:_0x333f5b}=_0x4f856e;return _0x39d1df[_0x19b142(0x8b)](_0x39d1df[_0x19b142(0xc3)],{'children':[_0x39d1df[_0x19b142(0x10f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19b142(0xdd)}),_0x39d1df[_0x19b142(0x10f)](_0x67a8da[_0x19b142(0xf8)],{'onClick':()=>_0x333f5b['stopFollowing'](),'children':_0x19b142(0x100)})]});}function _0xdcf63(_0x2f1814){var _0x23b8e4=_0x120ec6;const {coordinator:_0x1c2743}=_0x2f1814;return _0x39d1df['jsxs'](_0x39d1df['Fragment'],{'children':[_0x39d1df[_0x23b8e4(0x10f)](_0x23b8e4(0xa9),{'className':_0x23b8e4(0x114),'children':_0x23b8e4(0xc4)}),_0x39d1df[_0x23b8e4(0x10f)](_0x67a8da[_0x23b8e4(0xf8)],{'variant':_0x23b8e4(0x15f),'onClick':()=>_0x1c2743[_0x23b8e4(0x14c)](),'children':_0x23b8e4(0x86)})]});}function _0x103ebd(_0x5b4c04){var _0x2b4ddf=_0x120ec6;const {coordinator:_0x2c2c37}=_0x5b4c04;return _0x39d1df[_0x2b4ddf(0x8b)](_0x39d1df[_0x2b4ddf(0xc3)],{'children':[_0x39d1df[_0x2b4ddf(0x10f)](_0x2b4ddf(0xa9),{'className':_0x2b4ddf(0x114),'children':_0x2b4ddf(0x96)}),_0x39d1df[_0x2b4ddf(0x10f)](_0x67a8da['Button'],{'variant':_0x2b4ddf(0xb9),'onClick':()=>_0x2c2c37[_0x2b4ddf(0x76)](),'children':_0x2b4ddf(0x128)})]});}function _0x3ada5f(){var _0x5ac1a4=_0x120ec6;return _0x39d1df[_0x5ac1a4(0x10f)](_0x39d1df[_0x5ac1a4(0xc3)],{'children':_0x5ac1a4(0x143)});}var _0x17607f=Object[_0x120ec6(0x101)],_0x2cf8fa=(_0x1bd9aa,_0x1df652,_0x252e7b,_0x4dbefb)=>{var _0x55ca90=_0x120ec6;for(var _0x1bd25f=_0x4dbefb>0x1?void 0x0:_0x4dbefb?_0x17607f(_0x1df652,_0x252e7b):_0x1df652,_0x1cc609=_0x1bd9aa[_0x55ca90(0x16e)]-0x1,_0x4ec05c;_0x1cc609>=0x0;_0x1cc609--)(_0x4ec05c=_0x1bd9aa[_0x1cc609])&&(_0x1bd25f=_0x4ec05c(_0x1bd25f)||_0x1bd25f);return _0x1bd25f;},_0x261ed3=(_0x3595ae,_0xd87439)=>(_0x394af5,_0x4fe628)=>_0xd87439(_0x394af5,_0x4fe628,_0x3595ae);_0x2f1323[_0x120ec6(0xd0)]=class extends _0x3d67cc['Disposable']{constructor(_0xc22425,_0x47c535){var _0x258dff=_0x120ec6;super(),this[_0x258dff(0x109)]=_0xc22425,this[_0x258dff(0x111)]=_0x47c535,this[_0x258dff(0x11f)]();}['_mountLiveShare'](){var _0x80b714=_0x120ec6;this['disposeWithMe'](this[_0x80b714(0x111)][_0x80b714(0x10e)](_0x4ddf63[_0x80b714(0xcf)][_0x80b714(0xd5)],()=>_0x4ddf63[_0x80b714(0xb4)](_0x13bed3,this[_0x80b714(0x109)])));}},_0x2f1323['DesktopLiveShareController']=_0x2cf8fa([_0x261ed3(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x261ed3(0x1,_0x4ddf63[_0x120ec6(0x113)])],_0x2f1323['DesktopLiveShareController']);const _0x585056=_0x120ec6(0x12d),_0x20f451={};var _0x490769=Object[_0x120ec6(0x101)],_0x4bb369=(_0x52ef8b,_0x2f2b67,_0x11cf0e,_0x446572)=>{var _0x136736=_0x120ec6;for(var _0x52ad86=_0x446572>0x1?void 0x0:_0x446572?_0x490769(_0x2f2b67,_0x11cf0e):_0x2f2b67,_0xe566b9=_0x52ef8b[_0x136736(0x16e)]-0x1,_0x525a6f;_0xe566b9>=0x0;_0xe566b9--)(_0x525a6f=_0x52ef8b[_0xe566b9])&&(_0x52ad86=_0x525a6f(_0x52ad86)||_0x52ad86);return _0x52ad86;},_0x4c8cf6=(_0x45c99b,_0x1270ba)=>(_0x572d30,_0x6121eb)=>_0x1270ba(_0x572d30,_0x6121eb,_0x45c99b);let _0x214880=class extends _0x3d67cc[_0x120ec6(0xa8)]{constructor(_0x5df79d){var _0x4123f3=_0x120ec6;super(),this['_liveShareService']=_0x5df79d,this[_0x4123f3(0x9f)]();}['_init'](){var _0x5f8f2b=_0x120ec6;[_0x3be5b0[_0x5f8f2b(0xec)]['id'],_0x3be5b0[_0x5f8f2b(0x116)]['id'],_0x4b74db[_0x5f8f2b(0xf9)]['id']][_0x5f8f2b(0xda)](_0x474f83=>{var _0x22f709=_0x5f8f2b;this[_0x22f709(0xf1)](this[_0x22f709(0x145)][_0x22f709(0xe0)](_0x474f83));});}};_0x214880=_0x4bb369([_0x4c8cf6(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69))],_0x214880);var _0x192e97=Object[_0x120ec6(0x11e)],_0x465798=Object[_0x120ec6(0x101)],_0x45dc8e=(_0x253891,_0x3d595d,_0x54a1dc)=>_0x3d595d in _0x253891?_0x192e97(_0x253891,_0x3d595d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54a1dc}):_0x253891[_0x3d595d]=_0x54a1dc,_0x54be86=(_0x16b2d8,_0x135246,_0x4b4879,_0xc875b1)=>{for(var _0x4bad41=_0xc875b1>0x1?void 0x0:_0xc875b1?_0x465798(_0x135246,_0x4b4879):_0x135246,_0x3dcf94=_0x16b2d8['length']-0x1,_0x644a99;_0x3dcf94>=0x0;_0x3dcf94--)(_0x644a99=_0x16b2d8[_0x3dcf94])&&(_0x4bad41=_0x644a99(_0x4bad41)||_0x4bad41);return _0x4bad41;},_0x4fb015=(_0x153860,_0x11202f)=>(_0x5e7106,_0x2818a3)=>_0x11202f(_0x5e7106,_0x2818a3,_0x153860),_0x5a77f6=(_0x1adf4d,_0xf2e76,_0x20dadd)=>_0x45dc8e(_0x1adf4d,typeof _0xf2e76!=_0x120ec6(0x139)?_0xf2e76+'':_0xf2e76,_0x20dadd);const _0x553bca=_0x120ec6(0x91);_0x2f1323[_0x120ec6(0x8e)]=class extends _0x3d67cc[_0x120ec6(0x93)]{constructor(_0x518acf=_0x20f451,_0x4c4d99,_0x3ca817){var _0x4e7fd1=_0x120ec6;super(),this['_config']=_0x518acf,this['_injector']=_0x4c4d99,this[_0x4e7fd1(0x129)]=_0x3ca817;const {..._0x236fa1}=_0x3d67cc[_0x4e7fd1(0xbb)]({},_0x20f451,this[_0x4e7fd1(0x16c)]);this['_configService'][_0x4e7fd1(0xc0)](_0x585056,_0x236fa1);}[_0x120ec6(0x135)](){var _0x54117c=_0x120ec6;_0x3d67cc[_0x54117c(0x125)](this[_0x54117c(0x109)],_0x3d67cc[_0x54117c(0x157)]([[_0x4bdc69],[_0x2f1323[_0x54117c(0x88)]],[_0x214880],[_0x2f1323[_0x54117c(0xd0)]]],this['_config'][_0x54117c(0x12f)])),_0x3d67cc[_0x54117c(0x148)](this[_0x54117c(0x109)],[[_0x214880]]);}['onRendered'](){var _0x573d8e=_0x120ec6;_0x3d67cc[_0x573d8e(0x148)](this[_0x573d8e(0x109)],[[_0x2f1323['DesktopLiveShareController']]]);}},_0x5a77f6(_0x2f1323[_0x120ec6(0x8e)],_0x120ec6(0x159),_0x3d67cc[_0x120ec6(0x107)]['UNIVER_UNKNOWN']),_0x5a77f6(_0x2f1323['UniverLiveSharePlugin'],_0x120ec6(0x13b),_0x553bca),_0x2f1323[_0x120ec6(0x8e)]=_0x54be86([_0x3d67cc[_0x120ec6(0xa1)](_0x326eac[_0x120ec6(0x166)]),_0x4fb015(0x1,_0x3d67cc['Inject'](_0x3d67cc[_0x120ec6(0xb5)])),_0x4fb015(0x2,_0x3d67cc['IConfigService'])],_0x2f1323[_0x120ec6(0x8e)]),_0x2f1323[_0x120ec6(0x78)]=_0x13bed3,_0x2f1323['LiveShareService']=_0x4bdc69,_0x2f1323[_0x120ec6(0x160)]=_0x22b87c,Object[_0x120ec6(0x11e)](_0x2f1323,Symbol[_0x120ec6(0x14a)],{'value':_0x120ec6(0x106)});}));
|
|
1
|
+
function _0x3342(){var _0x3e7dbb=['useRef','exports','946616eheZqc','children','_commandDisposable','function','requireSession','path','@univerjs/design','IUniverInstanceService','defineProperty','1364526zkSsam','values','clear','div','pipe','UniverIcon','useDependency','getInitialStates','next','ICommandService','SetScrollOperation','LIVESHARE_OPERATION','OFFLINE','UniverCore','url(#$1','evenodd','extend','add','currentColor','mergeOverrideWithDependencies','sheet','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','0\x200\x2017\x2017','tag','4715991hMNxQg','Plugin','none','unsubscribe','onCommandExecuted','@univerjs/sheets','UniverProCollaborationClient','use','stopFollowing','UNIVER_UNKNOWN','useEffect','button','operations','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_REQUEST_HOST','executeCommand','Start\x20following','length','trim','LiveShareCoordinator','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShare','SessionStatus','delete','SAME_OPERATION_SHARE_INTERVAL','UniverUi','onRendered','getOwnPropertyDescriptor','symbol','BehaviorSubject','has','_stopFollowing','LiveShareService','override','Disposable','getTypeOfUnitDisposed$','_sharedOperations','UniverDesign','_handleOffline','from','init','UNIVER_SHEET','prototype','Dropdown','pluginName','LiveShareIcon','UniverInstanceType','amd','univerjs-icon\x20univerjs-icon-','entries','live-share-icon','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','Module','Fragment','offline','svg','_presenter','dispose$','Inject','UniverLiveSharePlugin','371368gDpyTZ','NOT_FOLLOWING','You\x27are\x20offline.','215442Jytnku','_liveShareService','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','_handleNewHost','current','_startFollowing','You\x27re\x20following\x20the\x20presenter','toDisposable','_commandService','string','Injector','presenter','reverse','getConfig','univer-size-4','useObservable','SetWorksheetActiveOperation','OPERATION','presenting','_fetchOperations','http://www.w3.org/2000/svg','registerDependencies','tryStartPresenting','end','dispose','jsx','getMemberID','mask','registerComponent','memberID','React','rxjs','_unitID','_entities','stopPresenting','shouldShareOperation','idSuffix','idle','IConfigService','concat','ONLINE','propertyIsEnumerable','_beIdle','status$','UniverProLiveShare','_init','FOLLOWING','_mountLiveShare','LiveShareStatus','apply','SetZoomRatioOperation','_config','setConfig','find','getLiveShareCoordinator','_handleOnline','UniverProCollaboration','fill','@univerjs/ui','NEW_CHANGESETS','stringify','toStringTag','touchDependencies','indexOf','RxDisposable','_status$','assign','LIVESHARE_TERMINATE','default','not-following','_stopPresenting','complete','_startLiveShareCoordinator','1630494kGLxWa','UniverSheetsUi','IDLE','parseProtocolChangeset','DisposableCollection','sessionStatus$','Stop\x20following','includes','throttleTime','asObservable','send','rxjs/operators','replace','unitId','_status','forwardRef','4721440nOefed','Button','object','params','Start','displayName','_startPresenting','@univerjs-pro/collaboration-client','parse','You\x27re\x20presenting\x20the\x20document','forEach','colorChannel1','jsxs','DesktopLiveShareController','_collabSession','set','80FefwWM','createInstance','createElement','xlink:href','map','takeUntil','substring','UniverCollaborationClientPlugin','Subject','LIVESHARE_NEW_HOST','type','_injector','_handleOperation','operators','getTypeOfUnitAdded$','startFollowing','following','@univerjs/core','disposeWithMe','react','CollaborationEvent','connectInjector','call','_configService','onStarting','data','attrs','toString','useState','_univerInstanceService','live-share.config','_handleTerminate','getUnitId','Stop\x20presenting','event$','LiveShareController','className','registerSharedOperation','_handleNewChangeSets','hasOwnProperty','_uiPartsService','text','Present\x20this\x20document','subscribe'];_0x3342=function(){return _0x3e7dbb;};return _0x3342();}function _0xc68b(_0xe51ddd,_0x480460){var _0x3342ce=_0x3342();return _0xc68b=function(_0xc68b6,_0x5259e3){_0xc68b6=_0xc68b6-0x136;var _0x5f5071=_0x3342ce[_0xc68b6];return _0x5f5071;},_0xc68b(_0xe51ddd,_0x480460);}(function(_0x4b8282,_0x15ce84){var _0x4ef4b7=_0xc68b,_0xcfaaca=_0x4b8282();while(!![]){try{var _0x390569=-parseInt(_0x4ef4b7(0x181))/0x1+-parseInt(_0x4ef4b7(0x225))/0x2+parseInt(_0x4ef4b7(0x1ce))/0x3+parseInt(_0x4ef4b7(0x1de))/0x4+parseInt(_0x4ef4b7(0x1ee))/0x5*(-parseInt(_0x4ef4b7(0x184))/0x6)+parseInt(_0x4ef4b7(0x142))/0x7+-parseInt(_0x4ef4b7(0x21c))/0x8;if(_0x390569===_0x15ce84)break;else _0xcfaaca['push'](_0xcfaaca['shift']());}catch(_0x3a6257){_0xcfaaca['push'](_0xcfaaca['shift']());}}}(_0x3342,0x9ef5d),function(_0x2a2bcb,_0x55e24a){var _0x291ce7=_0xc68b;typeof exports==_0x291ce7(0x1e0)&&typeof module<'u'?_0x55e24a(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x291ce7(0x21f)&&define[_0x291ce7(0x173)]?define([_0x291ce7(0x21b),_0x291ce7(0x1ff),_0x291ce7(0x1bf),_0x291ce7(0x187),_0x291ce7(0x222),_0x291ce7(0x201),'@univerjs-pro/collaboration',_0x291ce7(0x1e5),_0x291ce7(0x147),'rxjs',_0x291ce7(0x1d9),'@univerjs/sheets-ui'],_0x55e24a):(_0x2a2bcb=typeof globalThis<'u'?globalThis:_0x2a2bcb||self,_0x55e24a(_0x2a2bcb[_0x291ce7(0x1b1)]={},_0x2a2bcb[_0x291ce7(0x137)],_0x2a2bcb[_0x291ce7(0x15d)],_0x2a2bcb[_0x291ce7(0x1a3)],_0x2a2bcb[_0x291ce7(0x169)],_0x2a2bcb[_0x291ce7(0x1a3)],_0x2a2bcb[_0x291ce7(0x1bd)],_0x2a2bcb[_0x291ce7(0x148)],_0x2a2bcb['UniverSheets'],_0x2a2bcb['rxjs'],_0x2a2bcb[_0x291ce7(0x1a4)][_0x291ce7(0x1fb)],_0x2a2bcb[_0x291ce7(0x1cf)]));}(this,function(_0x1520b7,_0x254525,_0x1265c0,_0x34697a,_0xb2f997,_0x63ebd3,_0x459267,_0x1c25f1,_0x2e4173,_0xa9fa0c,_0x4d3c97,_0x1e4dcf){'use strict';var _0x2d0b43=_0xc68b;var _0x2abcbb=Object[_0x2d0b43(0x224)],_0x24e278=(_0x22afa6,_0x2bb91f,_0x38fb8e)=>_0x2bb91f in _0x22afa6?_0x2abcbb(_0x22afa6,_0x2bb91f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38fb8e}):_0x22afa6[_0x2bb91f]=_0x38fb8e,_0x490da9=(_0xdffa98,_0x21efba,_0x37070b)=>_0x24e278(_0xdffa98,typeof _0x21efba!=_0x2d0b43(0x160)?_0x21efba+'':_0x21efba,_0x37070b),_0x27bf37=function(){var _0x6688b1=_0x2d0b43;return _0x27bf37=Object['assign']||function(_0xa6e086){var _0x40261c=_0xc68b;for(var _0x507711,_0x2d5bb2=0x1,_0x513cf3=arguments[_0x40261c(0x154)];_0x2d5bb2<_0x513cf3;_0x2d5bb2++){_0x507711=arguments[_0x2d5bb2];for(var _0x3498ec in _0x507711)Object[_0x40261c(0x16e)]['hasOwnProperty'][_0x40261c(0x204)](_0x507711,_0x3498ec)&&(_0xa6e086[_0x3498ec]=_0x507711[_0x3498ec]);}return _0xa6e086;},_0x27bf37[_0x6688b1(0x1b6)](this,arguments);},_0x5e3ed5=function(_0x198e2a,_0x130cb2){var _0x1fc0dc=_0x2d0b43,_0x6264ee={};for(var _0x2b0462 in _0x198e2a)Object[_0x1fc0dc(0x16e)][_0x1fc0dc(0x215)][_0x1fc0dc(0x204)](_0x198e2a,_0x2b0462)&&_0x130cb2['indexOf'](_0x2b0462)<0x0&&(_0x6264ee[_0x2b0462]=_0x198e2a[_0x2b0462]);if(_0x198e2a!=null&&typeof Object['getOwnPropertySymbols']==_0x1fc0dc(0x21f)){for(var _0x110393=0x0,_0x2b0462=Object['getOwnPropertySymbols'](_0x198e2a);_0x110393<_0x2b0462[_0x1fc0dc(0x154)];_0x110393++)_0x130cb2[_0x1fc0dc(0x1c4)](_0x2b0462[_0x110393])<0x0&&Object[_0x1fc0dc(0x16e)][_0x1fc0dc(0x1ae)][_0x1fc0dc(0x204)](_0x198e2a,_0x2b0462[_0x110393])&&(_0x6264ee[_0x2b0462[_0x110393]]=_0x198e2a[_0x2b0462[_0x110393]]);}return _0x6264ee;},_0x502a00=_0x63ebd3[_0x2d0b43(0x1dd)](function(_0xbdda0f,_0xa11a0b){var _0x381769=_0x2d0b43,_0x3a8d06=_0xbdda0f['icon'],_0xe79c6f=_0xbdda0f['id'],_0x30a873=_0xbdda0f[_0x381769(0x212)],_0x3dde2f=_0xbdda0f[_0x381769(0x13a)],_0x250b98=_0x5e3ed5(_0xbdda0f,['icon','id',_0x381769(0x212),'extend']),_0x36f921=_0x381769(0x174)[_0x381769(0x1ac)](_0xe79c6f,'\x20')[_0x381769(0x1ac)](_0x30a873||'')[_0x381769(0x155)](),_0x5a2be2=_0x63ebd3[_0x381769(0x21a)]('_'['concat'](_0xfe732d()));return _0x3d20c5(_0x3a8d06,''[_0x381769(0x1ac)](_0xe79c6f),{'defIds':_0x3a8d06[_0x381769(0x177)],'idSuffix':_0x5a2be2['current']},_0x27bf37({'ref':_0xa11a0b,'className':_0x36f921},_0x250b98),_0x3dde2f);});function _0x3d20c5(_0x280735,_0x2b520f,_0x49b609,_0x95e35c,_0x1f4abd){var _0x1a6b0a=_0x2d0b43;return _0x63ebd3[_0x1a6b0a(0x1f0)](_0x280735[_0x1a6b0a(0x141)],_0x27bf37(_0x27bf37({'key':_0x2b520f},_0x1793ad(_0x280735,_0x49b609,_0x1f4abd)),_0x95e35c),(_0x20df4a(_0x280735,_0x49b609)[_0x1a6b0a(0x21d)]||[])['map'](function(_0x1821c6,_0x14c45e){var _0x26f456=_0x1a6b0a;return _0x3d20c5(_0x1821c6,''['concat'](_0x2b520f,'-')['concat'](_0x280735[_0x26f456(0x141)],'-')[_0x26f456(0x1ac)](_0x14c45e),_0x49b609,void 0x0,_0x1f4abd);}));}function _0x1793ad(_0x2e4cd7,_0x4f2494,_0x1e83ee){var _0x3259cb=_0x2d0b43,_0x56f6f7=_0x27bf37({},_0x2e4cd7['attrs']);_0x1e83ee!=null&&_0x1e83ee[_0x3259cb(0x1e9)]&&_0x56f6f7['fill']===_0x3259cb(0x1e9)&&(_0x56f6f7[_0x3259cb(0x1be)]=_0x1e83ee[_0x3259cb(0x1e9)]),_0x2e4cd7[_0x3259cb(0x141)]===_0x3259cb(0x1a0)&&_0x56f6f7['id']&&(_0x56f6f7['id']=_0x56f6f7['id']+_0x4f2494[_0x3259cb(0x1a9)]),Object[_0x3259cb(0x175)](_0x56f6f7)[_0x3259cb(0x1e8)](function(_0xe5a313){var _0x37c772=_0x3259cb,_0x1654e0=_0xe5a313[0x0],_0x5a229e=_0xe5a313[0x1];_0x1654e0===_0x37c772(0x1a0)&&typeof _0x5a229e==_0x37c772(0x18e)&&(_0x56f6f7[_0x1654e0]=_0x5a229e[_0x37c772(0x1da)](/url\(#(.*)\)/,_0x37c772(0x138)[_0x37c772(0x1ac)](_0x4f2494[_0x37c772(0x1a9)],')')));});var _0xfd8b00=_0x4f2494['defIds'];return!_0xfd8b00||_0xfd8b00[_0x3259cb(0x154)]===0x0||(_0x2e4cd7[_0x3259cb(0x141)]===_0x3259cb(0x149)&&_0x56f6f7['xlink:href']&&(_0x56f6f7[_0x3259cb(0x1f1)]=_0x56f6f7[_0x3259cb(0x1f1)]+_0x4f2494[_0x3259cb(0x1a9)]),Object[_0x3259cb(0x175)](_0x56f6f7)[_0x3259cb(0x1e8)](function(_0xd8e309){var _0x1eb9f6=_0x3259cb,_0xd8e014=_0xd8e309[0x0],_0x4d7d44=_0xd8e309[0x1];typeof _0x4d7d44==_0x1eb9f6(0x18e)&&(_0x56f6f7[_0xd8e014]=_0x4d7d44['replace'](/url\(#(.*)\)/,_0x1eb9f6(0x138)['concat'](_0x4f2494['idSuffix'],')')));})),_0x56f6f7;}function _0x20df4a(_0x48af8a,_0x5195dc){var _0x3438b2=_0x2d0b43,_0x5b88fe,_0x13eacb=_0x5195dc['defIds'];return!_0x13eacb||_0x13eacb[_0x3438b2(0x154)]===0x0?_0x48af8a:_0x48af8a[_0x3438b2(0x141)]==='defs'&&(!((_0x5b88fe=_0x48af8a['children'])===null||_0x5b88fe===void 0x0)&&_0x5b88fe[_0x3438b2(0x154)])?_0x27bf37(_0x27bf37({},_0x48af8a),{'children':_0x48af8a[_0x3438b2(0x21d)]['map'](function(_0x55efe5){var _0x1b4162=_0x3438b2;return typeof _0x55efe5[_0x1b4162(0x208)]['id']=='string'&&_0x13eacb&&_0x13eacb[_0x1b4162(0x1d5)](_0x55efe5['attrs']['id'])?_0x27bf37(_0x27bf37({},_0x55efe5),{'attrs':_0x27bf37(_0x27bf37({},_0x55efe5[_0x1b4162(0x208)]),{'id':_0x55efe5[_0x1b4162(0x208)]['id']+_0x5195dc[_0x1b4162(0x1a9)]})}):_0x55efe5;})}):_0x48af8a;}function _0xfe732d(){var _0x24aee3=_0x2d0b43;return Math['random']()[_0x24aee3(0x209)](0x24)[_0x24aee3(0x1f4)](0x2,0x8);}_0x502a00['displayName']=_0x2d0b43(0x22a);var _0xa87034={'tag':_0x2d0b43(0x17c),'attrs':{'xmlns':_0x2d0b43(0x199),'fill':_0x2d0b43(0x144),'viewBox':_0x2d0b43(0x140),'width':'1em','height':'1em'},'children':[{'tag':_0x2d0b43(0x221),'attrs':{'fill':_0x2d0b43(0x13c),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2d0b43(0x221),'attrs':{'fill':_0x2d0b43(0x13c),'d':_0x2d0b43(0x13f),'fillRule':'evenodd','clipRule':_0x2d0b43(0x139)}}]},_0x1935ab=_0x63ebd3['forwardRef'](function(_0x3ba269,_0x20265b){var _0x12ba82=_0x2d0b43;return _0x63ebd3[_0x12ba82(0x1f0)](_0x502a00,Object[_0x12ba82(0x1c7)]({},_0x3ba269,{'id':_0x12ba82(0x176),'ref':_0x20265b,'icon':_0xa87034}));});_0x1935ab[_0x2d0b43(0x1e3)]=_0x2d0b43(0x171);class _0x2ae9cb extends _0x254525[_0x2d0b43(0x166)]{constructor(){var _0x1a55a0=_0x2d0b43;super(...arguments),_0x490da9(this,_0x1a55a0(0x168),new Set()),_0x490da9(this,_0x1a55a0(0x157),new Set());}['registerSharedOperation'](_0x31ee9d){var _0x42aef0=_0x2d0b43;return this['_sharedOperations'][_0x42aef0(0x13b)](_0x31ee9d),_0x254525[_0x42aef0(0x18c)](()=>this['_sharedOperations'][_0x42aef0(0x15b)](_0x31ee9d));}['registerInitialStateReporter'](_0x4e76df){var _0x4a8b81=_0x2d0b43;return this[_0x4a8b81(0x157)][_0x4a8b81(0x13b)](_0x4e76df),_0x254525['toDisposable'](()=>this[_0x4a8b81(0x157)]['delete'](_0x4e76df));}[_0x2d0b43(0x1a8)](_0x3a4cc2){return this['_sharedOperations']['has'](_0x3a4cc2);}[_0x2d0b43(0x22c)](_0x1762a3){var _0x4b3a50=_0x2d0b43;return Array[_0x4b3a50(0x16b)](this['_reporters'])[_0x4b3a50(0x1f2)](_0x247056=>_0x247056(_0x1762a3));}}var _0x440699=Object[_0x2d0b43(0x15f)],_0x4c9124=(_0x2bf5fd,_0x4a972f,_0x3cc6b8,_0x5f2ed8)=>{var _0xbad9d9=_0x2d0b43;for(var _0x1d735b=_0x5f2ed8>0x1?void 0x0:_0x5f2ed8?_0x440699(_0x4a972f,_0x3cc6b8):_0x4a972f,_0x5ae7af=_0x2bf5fd[_0xbad9d9(0x154)]-0x1,_0x2a23ea;_0x5ae7af>=0x0;_0x5ae7af--)(_0x2a23ea=_0x2bf5fd[_0x5ae7af])&&(_0x1d735b=_0x2a23ea(_0x1d735b)||_0x1d735b);return _0x1d735b;},_0x265a4e=(_0x1f355d,_0x4cf3bf)=>(_0x3b363c,_0x1ec67e)=>_0x4cf3bf(_0x3b363c,_0x1ec67e,_0x1f355d);_0x1520b7[_0x2d0b43(0x211)]=class extends _0x254525[_0x2d0b43(0x1c5)]{constructor(_0x5cd535,_0x2fd15f,_0x5c0f7a){var _0x21b4b0=_0x2d0b43;super(),_0x490da9(this,_0x21b4b0(0x1a6),new Map()),(this[_0x21b4b0(0x20b)]=_0x5cd535,this[_0x21b4b0(0x1f9)]=_0x2fd15f,this['_collabSessionService']=_0x5c0f7a,this[_0x21b4b0(0x1b2)]());}async[_0x2d0b43(0x1bb)](_0x5f275c){var _0x19fa22=_0x2d0b43;return this[_0x19fa22(0x1a6)][_0x19fa22(0x162)](_0x5f275c)||await this[_0x19fa22(0x1cd)](_0x5f275c),this[_0x19fa22(0x1a6)]['get'](_0x5f275c);}['_init'](){var _0x32674e=_0x2d0b43;this[_0x32674e(0x20b)][_0x32674e(0x1fc)](_0x254525['UniverInstanceType'][_0x32674e(0x16d)])[_0x32674e(0x229)](_0x4d3c97[_0x32674e(0x1f3)](this[_0x32674e(0x17e)]))['subscribe'](async _0x85c66a=>{var _0x1e2d2c=_0x32674e;const _0x3d5d10=_0x85c66a[_0x1e2d2c(0x20e)]();this[_0x1e2d2c(0x1a6)][_0x1e2d2c(0x162)](_0x3d5d10)||this['_startLiveShareCoordinator'](_0x3d5d10);}),this['_univerInstanceService'][_0x32674e(0x167)](_0x254525[_0x32674e(0x172)][_0x32674e(0x16d)])[_0x32674e(0x229)](_0x4d3c97[_0x32674e(0x1f3)](this[_0x32674e(0x17e)]))[_0x32674e(0x219)](_0x3a08b4=>{var _0x5a7def=_0x32674e;const _0x3fd124=_0x3a08b4[_0x5a7def(0x20e)](),_0x9ed50=this['_entities']['get'](_0x3fd124);_0x9ed50==null||_0x9ed50[_0x5a7def(0x19d)]();});}async[_0x2d0b43(0x1cd)](_0x4e3a67){var _0x218ccd=_0x2d0b43;const _0xeada47=await this['_collabSessionService'][_0x218ccd(0x220)](_0x4e3a67),_0x3b7a53=this['_injector'][_0x218ccd(0x1ef)](_0x1520b7[_0x218ccd(0x156)],_0x4e3a67,_0xeada47);return _0x3b7a53[_0x218ccd(0x16c)](),this[_0x218ccd(0x1a6)][_0x218ccd(0x1ed)](_0x4e3a67,_0x3b7a53),_0x3b7a53;}},_0x1520b7[_0x2d0b43(0x211)]=_0x4c9124([_0x265a4e(0x0,_0x254525[_0x2d0b43(0x223)]),_0x265a4e(0x1,_0x254525['Inject'](_0x254525[_0x2d0b43(0x18f)])),_0x265a4e(0x2,_0x254525[_0x2d0b43(0x17f)](_0x1c25f1['CollaborationSessionService']))],_0x1520b7[_0x2d0b43(0x211)]);var _0x1f0a2b=(_0x47555f=>(_0x47555f[_0x2d0b43(0x136)]=_0x2d0b43(0x17b),_0x47555f[_0x2d0b43(0x1d0)]=_0x2d0b43(0x1aa),_0x47555f[_0x2d0b43(0x1b3)]=_0x2d0b43(0x1fe),_0x47555f[_0x2d0b43(0x182)]=_0x2d0b43(0x1ca),_0x47555f['PRESENTING']='presenting',_0x47555f))(_0x1f0a2b||{});const _0x34e797=_0x2d0b43(0x15c),_0x1efd7d=0xc8;_0x1520b7['LiveShareCoordinator']=class extends _0x254525[_0x2d0b43(0x1c5)]{constructor(_0x1645ac,_0x4a582e,_0x15fc7c,_0x27ee57,_0x3c6355){var _0x30b885=_0x2d0b43;super(),_0x490da9(this,_0x30b885(0x1c6),new _0xa9fa0c[(_0x30b885(0x161))]('idle')),_0x490da9(this,_0x30b885(0x1b0),this[_0x30b885(0x1c6)][_0x30b885(0x1d7)]()),_0x490da9(this,_0x30b885(0x1b2),!0x1),_0x490da9(this,'_commandDisposable',null),_0x490da9(this,_0x30b885(0x17d),null),(this[_0x30b885(0x1a5)]=_0x1645ac,this[_0x30b885(0x1ec)]=_0x4a582e,this[_0x30b885(0x205)]=_0x15fc7c,this[_0x30b885(0x185)]=_0x27ee57,this[_0x30b885(0x18d)]=_0x3c6355);}get[_0x2d0b43(0x1dc)](){return this['_status$']['getValue']();}['dispose'](){var _0x16b944=_0x2d0b43,_0x24021c;(_0x24021c=this[_0x16b944(0x21e)])==null||_0x24021c[_0x16b944(0x19d)](),this['_status$'][_0x16b944(0x22d)](_0x16b944(0x1aa)),this[_0x16b944(0x1c6)][_0x16b944(0x1cc)]();}[_0x2d0b43(0x16c)](){var _0x6a5b9c=_0x2d0b43;this[_0x6a5b9c(0x1b2)]||(this[_0x6a5b9c(0x1b2)]=!0x0,this['_collabSession'][_0x6a5b9c(0x1d3)][_0x6a5b9c(0x229)](_0x4d3c97[_0x6a5b9c(0x1f3)](this[_0x6a5b9c(0x17e)]))[_0x6a5b9c(0x219)](_0x1822c=>{var _0x2298ae=_0x6a5b9c;switch(_0x1822c){case _0x1c25f1[_0x2298ae(0x15a)]['OFFLINE']:this[_0x2298ae(0x16a)]();break;case _0x1c25f1[_0x2298ae(0x15a)][_0x2298ae(0x1ad)]:this['_handleOnline']();break;}}),this[_0x6a5b9c(0x1ec)][_0x6a5b9c(0x210)][_0x6a5b9c(0x229)](_0x4d3c97[_0x6a5b9c(0x1f3)](this['dispose$']))[_0x6a5b9c(0x219)](_0x390333=>{var _0xf7afb2=_0x6a5b9c;const {eventID:_0x50abd6}=_0x390333;switch(_0x50abd6){case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1f7)]:this[_0xf7afb2(0x188)](_0x390333);break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x230)]:this[_0xf7afb2(0x1fa)](_0x390333);break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1c8)]:this[_0xf7afb2(0x20d)]();break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1c0)]:this[_0xf7afb2(0x214)](_0x390333);break;}}));}['tryStartPresenting'](){var _0x573fb5=_0x2d0b43;this[_0x573fb5(0x1ec)][_0x573fb5(0x1d8)]({'eventID':_0x459267[_0x573fb5(0x202)][_0x573fb5(0x151)],'data':{'unitID':this[_0x573fb5(0x1a5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x573fb5(0x1a5)]);}[_0x2d0b43(0x1a7)](){var _0x40ee18=_0x2d0b43;this[_0x40ee18(0x1dc)]==='presenting'&&(this[_0x40ee18(0x1c6)][_0x40ee18(0x22d)](_0x40ee18(0x1aa)),this['_collabSession'][_0x40ee18(0x1d8)]({'eventID':_0x459267['CollaborationEvent'][_0x40ee18(0x1c8)],'data':{'unitID':this[_0x40ee18(0x1a5)]}},this[_0x40ee18(0x1a5)]));}['startFollowing'](){var _0xca17ab=_0x2d0b43;this[_0xca17ab(0x1dc)]===_0xca17ab(0x1ca)&&(this[_0xca17ab(0x1c6)][_0xca17ab(0x22d)](_0xca17ab(0x1fe)),this[_0xca17ab(0x18a)]());}[_0x2d0b43(0x14a)](){var _0x234ac6=_0x2d0b43;this[_0x234ac6(0x1dc)]===_0x234ac6(0x1fe)&&this['_stopFollowing']();}['_handleNewHost'](_0x2746a9){var _0xed63fc=_0x2d0b43;const {presenter:_0x331268}=_0x2746a9[_0xed63fc(0x207)],_0x473c3d=this['_collabSession'][_0xed63fc(0x19f)]();this[_0xed63fc(0x17d)]=_0x331268,_0x331268===_0x473c3d?(this[_0xed63fc(0x163)](),this[_0xed63fc(0x1e4)]()):this[_0xed63fc(0x1dc)]!==_0xed63fc(0x1ca)&&(this[_0xed63fc(0x1cb)](),this[_0xed63fc(0x18a)]());}['_fetchOperations'](){var _0x1560cc=_0x2d0b43;const _0x78a767={'eventID':_0x459267[_0x1560cc(0x202)][_0x1560cc(0x186)]};this[_0x1560cc(0x1ec)][_0x1560cc(0x1d8)](_0x78a767,this[_0x1560cc(0x1a5)]);}[_0x2d0b43(0x20d)](){var _0x411298=_0x2d0b43;this[_0x411298(0x17d)]=null,this[_0x411298(0x1dc)]!==_0x411298(0x197)&&this[_0x411298(0x1af)]();}[_0x2d0b43(0x214)](_0xabb5e){var _0x5906a1=_0x2d0b43;if(this[_0x5906a1(0x1dc)]===_0x5906a1(0x1fe)&&this[_0x5906a1(0x17d)]===_0xabb5e['data'][_0x5906a1(0x1a2)]){const _0x4f59ca=_0x459267[_0x5906a1(0x1d1)](_0xabb5e[_0x5906a1(0x207)])['mutations'][_0x5906a1(0x191)]()[_0x5906a1(0x1ba)](_0xdc85f6=>_0xdc85f6['id']===_0x2e4173['InsertSheetMutation']['id']);if(_0x4f59ca){const _0x1be26e=_0x4f59ca[_0x5906a1(0x1e1)][_0x5906a1(0x1db)],_0x4c3bd9=_0x4f59ca[_0x5906a1(0x1e1)][_0x5906a1(0x13e)]['id'];setTimeout(()=>{var _0x503ac3=_0x5906a1;this[_0x503ac3(0x18d)][_0x503ac3(0x152)](_0x2e4173['SetWorksheetActiveOperation']['id'],{'unitId':_0x1be26e,'subUnitId':_0x4c3bd9},{'fromCollab':!0x0});});}}}[_0x2d0b43(0x1e4)](){var _0x2cbdff=_0x2d0b43;this[_0x2cbdff(0x1c6)]['next'](_0x2cbdff(0x197));const _0x3ea253=new Map(),_0x42418e=this['_commandDisposable']=new _0x254525[(_0x2cbdff(0x1d2))]();_0x42418e[_0x2cbdff(0x13b)](_0x254525[_0x2cbdff(0x18c)](()=>{var _0x590a79=_0x2cbdff;_0x3ea253[_0x590a79(0x1e8)](_0xcad5f=>_0xcad5f[_0x590a79(0x1cc)]()),_0x3ea253[_0x590a79(0x227)]();})),_0x42418e['add'](this[_0x2cbdff(0x18d)][_0x2cbdff(0x146)](_0x1e9b5d=>{var _0xadef2e=_0x2cbdff,_0x37899c;if(_0x1e9b5d[_0xadef2e(0x1f8)]!==_0x254525['CommandType'][_0xadef2e(0x196)]||!this[_0xadef2e(0x185)][_0xadef2e(0x1a8)](_0x1e9b5d['id']))return;const {id:_0x1459c7}=_0x1e9b5d;let _0x1966da;_0x3ea253[_0xadef2e(0x162)](_0x1459c7)?_0x1966da=_0x3ea253['get'](_0x1459c7):(_0x1966da=new _0xa9fa0c[(_0xadef2e(0x1f6))](),_0x3ea253['set'](_0x1459c7,_0x1966da),_0x1966da[_0xadef2e(0x229)](_0x4d3c97[_0xadef2e(0x1d6)]((_0x37899c=this[_0xadef2e(0x205)][_0xadef2e(0x192)](_0x34e797))!=null?_0x37899c:_0x1efd7d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xadef2e(0x219)](_0x16772c=>{var _0x4eab4b=_0xadef2e;this[_0x4eab4b(0x1ec)]['send']({'eventID':_0x459267[_0x4eab4b(0x202)][_0x4eab4b(0x230)],'data':{'unitID':this['_unitID'],'operations':{[_0x16772c['id']]:{'id':_0x16772c['id'],'params':JSON['stringify'](_0x16772c[_0x4eab4b(0x1e1)])}}}},this[_0x4eab4b(0x1a5)]);})),_0x1966da['next'](_0x1e9b5d);})),this[_0x2cbdff(0x185)]['getInitialStates'](this[_0x2cbdff(0x1a5)])[_0x2cbdff(0x1e8)](_0x5da156=>this[_0x2cbdff(0x1ec)][_0x2cbdff(0x1d8)]({'eventID':_0x459267['CollaborationEvent'][_0x2cbdff(0x230)],'data':{'unitID':this[_0x2cbdff(0x1a5)],'operations':{[_0x5da156['id']]:{'id':_0x5da156['id'],'params':JSON[_0x2cbdff(0x1c1)](_0x5da156[_0x2cbdff(0x1e1)])}}}},this['_unitID']));}[_0x2d0b43(0x1cb)](){var _0x557b92=_0x2d0b43,_0x184187;this['_status$'][_0x557b92(0x22d)]('idle'),(_0x184187=this[_0x557b92(0x21e)])==null||_0x184187['dispose'](),this[_0x557b92(0x21e)]=null;}['_startFollowing'](){var _0x1b0451=_0x2d0b43,_0x352c95;(_0x352c95=this['_commandDisposable'])==null||_0x352c95[_0x1b0451(0x19d)](),this[_0x1b0451(0x1c6)][_0x1b0451(0x22d)](_0x1b0451(0x1fe));}[_0x2d0b43(0x1af)](){var _0x3e86c8=_0x2d0b43,_0xbab36;this[_0x3e86c8(0x1c6)]['next'](_0x3e86c8(0x1aa)),(_0xbab36=this[_0x3e86c8(0x21e)])==null||_0xbab36[_0x3e86c8(0x19d)](),this['_commandDisposable']=null;}[_0x2d0b43(0x163)](){var _0x604865=_0x2d0b43,_0x1b1065;this[_0x604865(0x1c6)][_0x604865(0x22d)](_0x604865(0x1ca)),(_0x1b1065=this[_0x604865(0x21e)])==null||_0x1b1065[_0x604865(0x19d)]();}[_0x2d0b43(0x1fa)](_0x34af69){var _0x25fca6=_0x2d0b43;if([_0x25fca6(0x197),_0x25fca6(0x1ca),_0x25fca6(0x17b)]['includes'](this['_status'])||!_0x34af69[_0x25fca6(0x207)][_0x25fca6(0x190)]||_0x34af69['data'][_0x25fca6(0x190)]===this[_0x25fca6(0x1ec)][_0x25fca6(0x19f)]())return;this['_status']===_0x25fca6(0x1aa)&&this['_startFollowing']();const _0x3a59c2=_0x34af69[_0x25fca6(0x207)][_0x25fca6(0x14e)];Object[_0x25fca6(0x226)](_0x3a59c2)[_0x25fca6(0x1e8)](_0x4fcf66=>{var _0x13775e=_0x25fca6;this[_0x13775e(0x18d)][_0x13775e(0x152)](_0x4fcf66['id'],_0x4fcf66[_0x13775e(0x1e1)]?JSON[_0x13775e(0x1e6)](_0x4fcf66['params']):null,{'fromCollab':!0x0});});}[_0x2d0b43(0x16a)](){var _0xf873e0=_0x2d0b43,_0x55bbe3;this['_status$'][_0xf873e0(0x22d)](_0xf873e0(0x17b)),(_0x55bbe3=this['_commandDisposable'])==null||_0x55bbe3['dispose']();}[_0x2d0b43(0x1bc)](){var _0x22cd2b=_0x2d0b43;this['_status$']['next'](_0x22cd2b(0x1aa)),this[_0x22cd2b(0x198)]();}},_0x1520b7[_0x2d0b43(0x156)]=_0x4c9124([_0x265a4e(0x2,_0x254525[_0x2d0b43(0x1ab)]),_0x265a4e(0x3,_0x254525[_0x2d0b43(0x17f)](_0x2ae9cb)),_0x265a4e(0x4,_0x254525[_0x2d0b43(0x22e)])],_0x1520b7['LiveShareCoordinator']);function _0x4b27b9(){var _0x947ccc=_0x2d0b43;const _0x2ef887=_0x1265c0[_0x947ccc(0x22b)](_0x1520b7['LiveShareController']),_0x47e08b=_0x1265c0[_0x947ccc(0x22b)](_0x254525[_0x947ccc(0x223)]),_0x5f51a8=_0x1265c0[_0x947ccc(0x194)](()=>_0x47e08b['getCurrentTypeOfUnit$'](_0x254525[_0x947ccc(0x172)][_0x947ccc(0x16d)]),void 0x0,!0x1,[]),[_0x1070e6,_0x4812ec]=_0x63ebd3[_0x947ccc(0x20a)](null),[_0x53c6f6,_0x3a4e00]=_0x63ebd3[_0x947ccc(0x20a)](_0x1f0a2b['IDLE']),_0x53fb38=_0x63ebd3[_0x947ccc(0x21a)](null);return _0x63ebd3[_0x947ccc(0x14c)](()=>(_0x5f51a8&&_0x2ef887[_0x947ccc(0x1bb)](_0x5f51a8[_0x947ccc(0x20e)]())['then'](_0x19a2ec=>{var _0x3361c2=_0x947ccc;_0x4812ec(_0x19a2ec),_0x53fb38[_0x3361c2(0x189)]=_0x19a2ec[_0x3361c2(0x1b0)][_0x3361c2(0x219)](_0x51b742=>{_0x3a4e00(_0x51b742);});}),()=>{var _0x30dfe0=_0x947ccc,_0x29fa60;(_0x29fa60=_0x53fb38['current'])==null||_0x29fa60[_0x30dfe0(0x145)](),_0x53fb38[_0x30dfe0(0x189)]=null;}),[_0x5f51a8,_0x2ef887]),_0x1070e6?_0x34697a[_0x947ccc(0x19e)](_0xb2f997[_0x947ccc(0x16f)],{'align':_0x947ccc(0x19c),'disabled':_0x53c6f6===_0x1f0a2b[_0x947ccc(0x136)],'className':_0x947ccc(0x150),'overlay':_0x34697a[_0x947ccc(0x19e)](_0x38c80e,{'status':_0x53c6f6,'coordinator':_0x1070e6}),'children':_0x34697a[_0x947ccc(0x19e)](_0x947ccc(0x14d),{'className':_0xb2f997['clsx'](_0x947ccc(0x158),{'univer-cursor-not-allowed':_0x53c6f6===_0x1f0a2b['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53c6f6!==_0x1f0a2b[_0x947ccc(0x136)]}),'type':_0x947ccc(0x14d),'children':_0x34697a['jsx'](_0x1935ab,{'className':_0x947ccc(0x193)})})}):null;}function _0x38c80e(_0x2efa66){var _0x54f733=_0x2d0b43;const {status:_0xc9cd3,coordinator:_0x58d569}=_0x2efa66;switch(_0xc9cd3){case _0x1f0a2b[_0x54f733(0x1d0)]:return _0x34697a[_0x54f733(0x19e)](_0x198024,{'coordinator':_0x58d569});case _0x1f0a2b[_0x54f733(0x1b3)]:return _0x34697a[_0x54f733(0x19e)](_0x4b8868,{'coordinator':_0x58d569});case _0x1f0a2b['NOT_FOLLOWING']:return _0x34697a[_0x54f733(0x19e)](_0x241f6c,{'coordinator':_0x58d569});case _0x1f0a2b['OFFLINE']:return _0x34697a[_0x54f733(0x19e)](_0x4d2b11,{});case _0x1f0a2b['PRESENTING']:return _0x34697a['jsx'](_0x154b37,{'coordinator':_0x58d569});default:return null;}}function _0x198024(_0x49efba){var _0x40fd32=_0x2d0b43;const {coordinator:_0x127eda}=_0x49efba;return _0x34697a['jsxs'](_0x34697a['Fragment'],{'children':[_0x34697a[_0x40fd32(0x19e)](_0x40fd32(0x228),{'className':_0x40fd32(0x178),'children':_0x40fd32(0x218)}),_0x34697a['jsx'](_0xb2f997[_0x40fd32(0x1df)],{'onClick':()=>_0x127eda[_0x40fd32(0x19b)](),'children':_0x40fd32(0x1e2)})]});}function _0x4b8868(_0x2bdb6e){var _0x1cab00=_0x2d0b43;const {coordinator:_0x2b48f9}=_0x2bdb6e;return _0x34697a[_0x1cab00(0x1ea)](_0x34697a[_0x1cab00(0x17a)],{'children':[_0x34697a[_0x1cab00(0x19e)]('div',{'className':_0x1cab00(0x178),'children':_0x1cab00(0x18b)}),_0x34697a[_0x1cab00(0x19e)](_0xb2f997[_0x1cab00(0x1df)],{'onClick':()=>_0x2b48f9[_0x1cab00(0x14a)](),'children':_0x1cab00(0x1d4)})]});}function _0x241f6c(_0x4f8257){var _0x2fba46=_0x2d0b43;const {coordinator:_0x5258a3}=_0x4f8257;return _0x34697a[_0x2fba46(0x1ea)](_0x34697a['Fragment'],{'children':[_0x34697a[_0x2fba46(0x19e)](_0x2fba46(0x228),{'className':_0x2fba46(0x178),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x34697a[_0x2fba46(0x19e)](_0xb2f997[_0x2fba46(0x1df)],{'variant':_0x2fba46(0x217),'onClick':()=>_0x5258a3[_0x2fba46(0x1fd)](),'children':_0x2fba46(0x153)})]});}function _0x154b37(_0x291cdf){var _0x485584=_0x2d0b43;const {coordinator:_0x36f7ed}=_0x291cdf;return _0x34697a[_0x485584(0x1ea)](_0x34697a[_0x485584(0x17a)],{'children':[_0x34697a[_0x485584(0x19e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x485584(0x1e7)}),_0x34697a[_0x485584(0x19e)](_0xb2f997[_0x485584(0x1df)],{'variant':_0x485584(0x1c9),'onClick':()=>_0x36f7ed['stopPresenting'](),'children':_0x485584(0x20f)})]});}function _0x4d2b11(){var _0x951fed=_0x2d0b43;return _0x34697a[_0x951fed(0x19e)](_0x34697a[_0x951fed(0x17a)],{'children':_0x951fed(0x183)});}var _0x450346=Object['getOwnPropertyDescriptor'],_0xed796=(_0x1263fd,_0x2874dc,_0xaefe1f,_0xf7d804)=>{var _0x35eafc=_0x2d0b43;for(var _0x37b68e=_0xf7d804>0x1?void 0x0:_0xf7d804?_0x450346(_0x2874dc,_0xaefe1f):_0x2874dc,_0x74cea9=_0x1263fd[_0x35eafc(0x154)]-0x1,_0x530a8a;_0x74cea9>=0x0;_0x74cea9--)(_0x530a8a=_0x1263fd[_0x74cea9])&&(_0x37b68e=_0x530a8a(_0x37b68e)||_0x37b68e);return _0x37b68e;},_0x1a2d30=(_0x1edc16,_0x17038e)=>(_0x5bb83d,_0x53ca0b)=>_0x17038e(_0x5bb83d,_0x53ca0b,_0x1edc16);_0x1520b7[_0x2d0b43(0x1eb)]=class extends _0x254525[_0x2d0b43(0x166)]{constructor(_0x422520,_0xa4c6f8){var _0x474dae=_0x2d0b43;super(),this[_0x474dae(0x1f9)]=_0x422520,this[_0x474dae(0x216)]=_0xa4c6f8,this[_0x474dae(0x1b4)]();}[_0x2d0b43(0x1b4)](){var _0x9b519=_0x2d0b43;this[_0x9b519(0x200)](this[_0x9b519(0x216)][_0x9b519(0x1a1)](_0x1265c0['BuiltInUIPart'][_0x9b519(0x14f)],()=>_0x1265c0[_0x9b519(0x203)](_0x4b27b9,this[_0x9b519(0x1f9)])));}},_0x1520b7[_0x2d0b43(0x1eb)]=_0xed796([_0x1a2d30(0x0,_0x254525['Inject'](_0x254525[_0x2d0b43(0x18f)])),_0x1a2d30(0x1,_0x1265c0['IUIPartsService'])],_0x1520b7['DesktopLiveShareController']);const _0x599463=_0x2d0b43(0x20c),_0x1ad809={};var _0x568550=Object[_0x2d0b43(0x15f)],_0x17d2c3=(_0x1f3891,_0x4f1230,_0xef0c,_0x355e14)=>{for(var _0x5a36c0=_0x355e14>0x1?void 0x0:_0x355e14?_0x568550(_0x4f1230,_0xef0c):_0x4f1230,_0x31691e=_0x1f3891['length']-0x1,_0x5d506a;_0x31691e>=0x0;_0x31691e--)(_0x5d506a=_0x1f3891[_0x31691e])&&(_0x5a36c0=_0x5d506a(_0x5a36c0)||_0x5a36c0);return _0x5a36c0;},_0x28e704=(_0x1f5f9a,_0x869e22)=>(_0x427ebc,_0x1d8830)=>_0x869e22(_0x427ebc,_0x1d8830,_0x1f5f9a);let _0xeaa1b6=class extends _0x254525[_0x2d0b43(0x166)]{constructor(_0x4b0036){var _0x58a369=_0x2d0b43;super(),this[_0x58a369(0x185)]=_0x4b0036,this[_0x58a369(0x1b2)]();}['_init'](){var _0x7e560d=_0x2d0b43;[_0x1e4dcf[_0x7e560d(0x1b7)]['id'],_0x1e4dcf[_0x7e560d(0x22f)]['id'],_0x2e4173[_0x7e560d(0x195)]['id']][_0x7e560d(0x1e8)](_0x5c3362=>{var _0x1dcc5b=_0x7e560d;this[_0x1dcc5b(0x200)](this[_0x1dcc5b(0x185)][_0x1dcc5b(0x213)](_0x5c3362));});}};_0xeaa1b6=_0x17d2c3([_0x28e704(0x0,_0x254525[_0x2d0b43(0x17f)](_0x2ae9cb))],_0xeaa1b6);var _0x2a757f=Object['defineProperty'],_0xc7f9f1=Object[_0x2d0b43(0x15f)],_0x10a278=(_0x3839d1,_0x838ed1,_0x2a0c59)=>_0x838ed1 in _0x3839d1?_0x2a757f(_0x3839d1,_0x838ed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a0c59}):_0x3839d1[_0x838ed1]=_0x2a0c59,_0x84bb7f=(_0x569ffe,_0x27e0a1,_0x3ad3d6,_0x468c39)=>{for(var _0x10e04e=_0x468c39>0x1?void 0x0:_0x468c39?_0xc7f9f1(_0x27e0a1,_0x3ad3d6):_0x27e0a1,_0x51bd97=_0x569ffe['length']-0x1,_0x36f351;_0x51bd97>=0x0;_0x51bd97--)(_0x36f351=_0x569ffe[_0x51bd97])&&(_0x10e04e=_0x36f351(_0x10e04e)||_0x10e04e);return _0x10e04e;},_0x3fa640=(_0x1a849b,_0x40e82f)=>(_0x3e7d18,_0x13bf96)=>_0x40e82f(_0x3e7d18,_0x13bf96,_0x1a849b),_0x3157d2=(_0x10f708,_0x130b49,_0x56deb2)=>_0x10a278(_0x10f708,typeof _0x130b49!=_0x2d0b43(0x160)?_0x130b49+'':_0x130b49,_0x56deb2);const _0x202457='UNIVER_LIVE_SHARE_PLUGIN';_0x1520b7[_0x2d0b43(0x180)]=class extends _0x254525[_0x2d0b43(0x143)]{constructor(_0x519aa5=_0x1ad809,_0xc13626,_0x583093){var _0x305d3b=_0x2d0b43;super(),this[_0x305d3b(0x1b8)]=_0x519aa5,this[_0x305d3b(0x1f9)]=_0xc13626,this[_0x305d3b(0x205)]=_0x583093;const {..._0x2c37c8}=_0x254525['merge']({},_0x1ad809,this[_0x305d3b(0x1b8)]);this[_0x305d3b(0x205)][_0x305d3b(0x1b9)](_0x599463,_0x2c37c8);}[_0x2d0b43(0x206)](){var _0x3774c6=_0x2d0b43;_0x254525[_0x3774c6(0x19a)](this['_injector'],_0x254525[_0x3774c6(0x13d)]([[_0x2ae9cb],[_0x1520b7[_0x3774c6(0x211)]],[_0xeaa1b6],[_0x1520b7[_0x3774c6(0x1eb)]]],this['_config'][_0x3774c6(0x165)])),_0x254525['touchDependencies'](this[_0x3774c6(0x1f9)],[[_0xeaa1b6]]);}[_0x2d0b43(0x15e)](){var _0x5b7653=_0x2d0b43;_0x254525[_0x5b7653(0x1c3)](this[_0x5b7653(0x1f9)],[[_0x1520b7[_0x5b7653(0x1eb)]]]);}},_0x3157d2(_0x1520b7['UniverLiveSharePlugin'],_0x2d0b43(0x1f8),_0x254525[_0x2d0b43(0x172)][_0x2d0b43(0x14b)]),_0x3157d2(_0x1520b7[_0x2d0b43(0x180)],_0x2d0b43(0x170),_0x202457),_0x1520b7['UniverLiveSharePlugin']=_0x84bb7f([_0x254525['DependentOn'](_0x1c25f1[_0x2d0b43(0x1f5)]),_0x3fa640(0x1,_0x254525[_0x2d0b43(0x17f)](_0x254525[_0x2d0b43(0x18f)])),_0x3fa640(0x2,_0x254525[_0x2d0b43(0x1ab)])],_0x1520b7[_0x2d0b43(0x180)]),_0x1520b7[_0x2d0b43(0x159)]=_0x4b27b9,_0x1520b7[_0x2d0b43(0x164)]=_0x2ae9cb,_0x1520b7[_0x2d0b43(0x1b5)]=_0x1f0a2b,Object[_0x2d0b43(0x224)](_0x1520b7,Symbol[_0x2d0b43(0x1c2)],{'value':_0x2d0b43(0x179)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12-nightly.202510221114",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.9",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/core": "0.10.
|
|
53
|
-
"@univerjs/sheets": "0.10.
|
|
54
|
-
"@univerjs/design": "0.10.
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.12-nightly.202510221114",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.12-nightly.202510221114",
|
|
52
|
+
"@univerjs/core": "0.10.12-nightly.202510221114",
|
|
53
|
+
"@univerjs/sheets": "0.10.12-nightly.202510221114",
|
|
54
|
+
"@univerjs/design": "0.10.12-nightly.202510221114",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.12-nightly.202510221114",
|
|
56
|
+
"@univerjs/ui": "0.10.12-nightly.202510221114"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
66
|
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
-
"@univerjs-infra/shared": "0.10.
|
|
67
|
+
"@univerjs-infra/shared": "0.10.12"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|