@univerjs-pro/live-share 0.12.4-insiders.20251212-6c41730 → 0.12.4-insiders.20251213-692494c
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x340d(){const _0x47c1be=['getActiveSheet','startFollowing','_initialize','193490uIDUPm','5361456GYSCxM','get','_injector','6nhjvhI','44WuzSnC','22zkpDXF','getUnitId','getActiveWorkbook','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3440448lTnzHb','startRow','stopFollowing','SetWorksheetActiveOperation','getSheetId','getLiveShareStatus','getId','PRESENTING','FUniver','extend','44210NpQiDx','getRenderById','LiveShareStatus','351GexBnW','LiveShareStatusEnum','28rCEWFZ','FRange','49611wKLlhI','IRenderManagerService','stopPresenting','2548735GtjXbL','syncExecuteCommand','No\x20active\x20workbook\x20found.','startPresenting','306660zQhvbz','SetScrollOperation','LiveShareController','getLiveShareCoordinatorSync','FEnum'];_0x340d=function(){return _0x47c1be;};return _0x340d();}const _0x34929c=_0x4e3f;(function(_0x1eaa6e,_0x57b15b){const _0x1b8387=_0x4e3f,_0x456ee6=_0x1eaa6e();while(!![]){try{const _0x4adcb9=-parseInt(_0x1b8387(0x156))/0x1*(-parseInt(_0x1b8387(0x154))/0x2)+parseInt(_0x1b8387(0x133))/0x3+-parseInt(_0x1b8387(0x140))/0x4*(parseInt(_0x1b8387(0x13b))/0x5)+-parseInt(_0x1b8387(0x13f))/0x6*(-parseInt(_0x1b8387(0x159))/0x7)+parseInt(_0x1b8387(0x145))/0x8+parseInt(_0x1b8387(0x152))/0x9*(parseInt(_0x1b8387(0x14f))/0xa)+parseInt(_0x1b8387(0x141))/0xb*(-parseInt(_0x1b8387(0x13c))/0xc);if(_0x4adcb9===_0x57b15b)break;else _0x456ee6['push'](_0x456ee6['shift']());}catch(_0x8d02ad){_0x456ee6['push'](_0x456ee6['shift']());}}}(_0x340d,0x6c6c4));function _0x4e3f(_0x599efc,_0x28afcb){_0x599efc=_0x599efc-0x130;const _0x340d6b=_0x340d();let _0x4e3f85=_0x340d6b[_0x599efc];return _0x4e3f85;}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x34929c(0x155)]{[_0x34929c(0x13a)](_0x1843c6,_0xd54eab,_0x20c7f8,_0x84402f,_0x1118ea){const _0xed1413=_0x34929c,_0xbb07d5=_0x1843c6[_0xed1413(0x13d)](n['LiveShareController']),_0x44b2ec=_0x1843c6[_0xed1413(0x13d)](g[_0xed1413(0x157)]),_0xf397a8=_0xd54eab['getUnitId'](),_0x3797b0=_0xd54eab[_0xed1413(0x138)](),_0x2ed76e=_0xbb07d5['getLiveShareCoordinatorSync'](_0xf397a8);(_0x2ed76e==null?void 0x0:_0x2ed76e['getStatus']())!==n['LiveShareStatus'][_0xed1413(0x14c)]||(_0x20c7f8[_0xed1413(0x149)]()!==_0x3797b0[_0xed1413(0x149)]()&&this['_commandService']['executeCommand'](u[_0xed1413(0x148)]['id'],{'unitId':_0xf397a8,'subUnitId':_0x20c7f8[_0xed1413(0x149)]()}),!_0x44b2ec[_0xed1413(0x150)](_0xf397a8))||_0x1118ea[_0xed1413(0x130)](f[_0xed1413(0x134)]['id'],{'unitId':_0xd54eab[_0xed1413(0x142)](),'sheetId':_0x20c7f8[_0xed1413(0x149)](),'sheetViewStartRow':_0x84402f[_0xed1413(0x146)],'sheetViewStartColumn':_0x84402f['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x34929c(0x155)][_0x34929c(0x14e)](w);class C extends a[_0x34929c(0x14d)]{[_0x34929c(0x14a)](){const _0x2c9cca=_0x34929c;var _0x25c8de,_0x5f2cb1;const _0x5770d8=this[_0x2c9cca(0x13e)][_0x2c9cca(0x13d)](n[_0x2c9cca(0x135)]),_0xfcc3e6=(_0x25c8de=this[_0x2c9cca(0x143)]())==null?void 0x0:_0x25c8de['getId']();if(!_0xfcc3e6)throw new Error(_0x2c9cca(0x131));const _0x2b9655=_0x5770d8[_0x2c9cca(0x136)](_0xfcc3e6);return(_0x5f2cb1=_0x2b9655==null?void 0x0:_0x2b9655['getStatus']())!=null?_0x5f2cb1:n[_0x2c9cca(0x151)]['IDLE'];}['startFollowing'](){const _0x3529db=_0x34929c;var _0x3f3db9;const _0x1acd18=this['_injector'][_0x3529db(0x13d)](n[_0x3529db(0x135)]),_0x2fe7d9=(_0x3f3db9=this[_0x3529db(0x143)]())==null?void 0x0:_0x3f3db9[_0x3529db(0x14b)]();if(!_0x2fe7d9)throw new Error('No\x20active\x20workbook\x20found.');const _0x7e3d63=_0x1acd18[_0x3529db(0x136)](_0x2fe7d9);if(!_0x7e3d63)throw new Error(_0x3529db(0x144));_0x7e3d63[_0x3529db(0x139)]();}[_0x34929c(0x147)](){const _0x5edded=_0x34929c;var _0x35499c;const _0xcc5c79=this[_0x5edded(0x13e)][_0x5edded(0x13d)](n[_0x5edded(0x135)]),_0x564369=(_0x35499c=this[_0x5edded(0x143)]())==null?void 0x0:_0x35499c['getId']();if(!_0x564369)throw new Error(_0x5edded(0x131));const _0x530057=_0xcc5c79['getLiveShareCoordinatorSync'](_0x564369);if(!_0x530057)throw new Error(_0x5edded(0x144));_0x530057[_0x5edded(0x147)]();}[_0x34929c(0x132)](){const _0x450cf4=_0x34929c;var _0x618c04;const _0x10b0f0=this[_0x450cf4(0x13e)][_0x450cf4(0x13d)](n[_0x450cf4(0x135)]),_0x337cb3=(_0x618c04=this[_0x450cf4(0x143)]())==null?void 0x0:_0x618c04[_0x450cf4(0x14b)]();if(!_0x337cb3)throw new Error(_0x450cf4(0x131));const _0x3a4500=_0x10b0f0[_0x450cf4(0x136)](_0x337cb3);if(!_0x3a4500)throw new Error(_0x450cf4(0x144));_0x3a4500['tryStartPresenting']();}[_0x34929c(0x158)](){const _0x2dc8e3=_0x34929c;var _0x40b40a;const _0x43b2f5=this[_0x2dc8e3(0x13e)]['get'](n['LiveShareController']),_0x5bfd41=(_0x40b40a=this['getActiveWorkbook']())==null?void 0x0:_0x40b40a[_0x2dc8e3(0x14b)]();if(!_0x5bfd41)throw new Error(_0x2dc8e3(0x131));const _0x20fac7=_0x43b2f5['getLiveShareCoordinatorSync'](_0x5bfd41);if(!_0x20fac7)throw new Error(_0x2dc8e3(0x144));_0x20fac7[_0x2dc8e3(0x158)]();}}a[_0x34929c(0x14d)][_0x34929c(0x14e)](C);class L extends a['FEnum']{get[_0x34929c(0x153)](){return n['LiveShareStatus'];}}a[_0x34929c(0x137)][_0x34929c(0x14e)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x491241=_0x375b;(function(_0x2a88bf,_0x5a7da9){const _0xc5e574=_0x375b,_0x3cd0a8=_0x2a88bf();while(!![]){try{const _0x5bbb1b=-parseInt(_0xc5e574(0xfc))/0x1+parseInt(_0xc5e574(0x1ba))/0x2+parseInt(_0xc5e574(0x180))/0x3*(parseInt(_0xc5e574(0xf0))/0x4)+-parseInt(_0xc5e574(0xfe))/0x5*(-parseInt(_0xc5e574(0x1b3))/0x6)+-parseInt(_0xc5e574(0x1bf))/0x7+parseInt(_0xc5e574(0x131))/0x8+-parseInt(_0xc5e574(0x18b))/0x9*(parseInt(_0xc5e574(0x107))/0xa);if(_0x5bbb1b===_0x5a7da9)break;else _0x3cd0a8['push'](_0x3cd0a8['shift']());}catch(_0x4b1c78){_0x3cd0a8['push'](_0x3cd0a8['shift']());}}}(_0x12b1,0xca6f5));function _0x375b(_0x110c92,_0x4948d0){_0x110c92=_0x110c92-0xec;const _0x12b1ba=_0x12b1();let _0x375b3a=_0x12b1ba[_0x110c92];return _0x375b3a;}var T=Object[_0x491241(0x119)],U=(_0x38c696,_0x46e76f,_0x28c4d4)=>_0x46e76f in _0x38c696?T(_0x38c696,_0x46e76f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c4d4}):_0x38c696[_0x46e76f]=_0x28c4d4,_=(_0x302cd4,_0x3f1c86,_0x183987)=>U(_0x302cd4,typeof _0x3f1c86!=_0x491241(0x1aa)?_0x3f1c86+'':_0x3f1c86,_0x183987);Object[_0x491241(0x119)](exports,Symbol[_0x491241(0x116)],{'value':_0x491241(0x138)});function _0x12b1(){const _0x602ace=['xlink:href','LiveShareStatus','SetScrollOperation','random','type','toStringTag','add','_stopFollowing','defineProperty','_handleNewHost','_unitID','dispose$','_collabSession','colorChannel1','getTypeOfUnitAdded$','find','connectInjector','stringify','clsx','disposeWithMe','none','_configService','DependentOn','OPERATION','_startPresenting','univer-size-4','LIVESHARE_TERMINATE','Present\x20this\x20document','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','touchDependencies','Button','3855008upJCzr','throttleTime','unsubscribe','defs','PRESENTING','map','NOT_FOLLOWING','Module','values','next','data','replace','path','getMemberID','subscribe','_commandService','forwardRef','_mountLiveShare','_startFollowing','use','startFollowing','useEffect','univerjs-icon\x20univerjs-icon-','registerSharedOperation','_handleOperation','_presenter','Dropdown','has','SessionStatus','useRef','mergeOverrideWithDependencies','tryStartPresenting','LiveShare','url(#$1','getTypeOfUnitDisposed$','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','_handleOnline','_handleNewChangeSets','_startLiveShareCoordinator','UniverIcon','1em','getStatus','tag','You\x27re\x20following\x20the\x20presenter','BuiltInUIPart','OFFLINE','length','ONLINE','Inject','_commandDisposable','0\x200\x2017\x2017','CommandType','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','text','assign','entries','reverse','_uiPartsService','forEach','current','You\x27are\x20offline.','live-share.config','complete','DesktopLiveShareController','RxDisposable','displayName','set','_status$','IConfigService','getLiveShareCoordinator','_stopPresenting','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','getConfig','dispose','div','onCommandExecuted','6yhWULC','setConfig','_handleTerminate','_injector','_sharedOperations','Start\x20following','Plugin','_handleOffline','delete','trim','get','13950333RWnFWq','shouldShareOperation','from','live-share-icon','Injector','takeUntil','jsxs','stopPresenting','_config','pipe','LiveShareController','button','end','string','CollaborationSessionService','SetWorksheetActiveOperation','LIVESHARE_REQUEST_HOST','then','onStarting','UniverLiveSharePlugin','mask','IUniverInstanceService','createElement','_status','_entities','SetZoomRatioOperation','parseProtocolChangeset','getUnitId','not-following','operations','asObservable','symbol','FOLLOWING','_fetchOperations','send','merge','status$','attrs','CollaborationEvent','useDependency','2365206FFTYdT','Fragment','toString','currentColor','default','substring','sessionStatus$','3294588rIKPxf','offline','getInitialStates','InsertSheetMutation','UNIVER_UNKNOWN','8646477pABnMn','IDLE','presenting','_reporters','init','_beIdle','_univerInstanceService','LiveShareService','event$','clear','674644prrxdh','LIVESHARE_NEW_HOST','getValue','_collabSessionService','idSuffix','useState','idle','LiveShareCoordinator','fill','toDisposable','LIVESHARE_FETCH_OPERATIONS','requireSession','34674ZaLpIo','UniverInstanceType','15dvqXun','UNIVER_SHEET','stopFollowing','jsx','includes','getCurrentTypeOfUnit$','_liveShareService','following','evenodd','10hoiCWt','Disposable','executeCommand','children','_init','params','memberID','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','Stop\x20presenting'];_0x12b1=function(){return _0x602ace;};return _0x12b1();}const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x582bbe,..._0x5d9e55}){const _0x242929=_0x491241,{icon:_0x5b2bd7,id:_0x1db815,className:_0x5c3a82,extend:_0x3e15af,..._0x508339}=_0x5d9e55,_0x3a6645=(_0x242929(0x147)+_0x1db815+'\x20'+(_0x5c3a82||''))[_0x242929(0x189)](),_0x3ae6f0=v[_0x242929(0x14e)]('_'+H());return j(_0x5b2bd7,''+_0x1db815,{'defIds':_0x5b2bd7['defIds'],'idSuffix':_0x3ae6f0[_0x242929(0x16e)]},{'ref':_0x582bbe,'className':_0x3a6645,..._0x508339},_0x3e15af);}function j(_0x2b81f2,_0x27224b,_0x110f89,_0x3485b9,_0x457bba){const _0x43057c=_0x491241;return v['createElement'](_0x2b81f2[_0x43057c(0x15b)],{'key':_0x27224b,...y(_0x2b81f2,_0x110f89,_0x457bba),..._0x3485b9},(F(_0x2b81f2,_0x110f89)[_0x43057c(0x10a)]||[])['map']((_0x2c634b,_0x4aeabd)=>j(_0x2c634b,_0x27224b+'-'+_0x2b81f2[_0x43057c(0x15b)]+'-'+_0x4aeabd,_0x110f89,void 0x0,_0x457bba)));}function y(_0x51689f,_0x4d5e6a,_0xc46e92){const _0x2dba90=_0x491241,_0x1d7dfd={..._0x51689f[_0x2dba90(0x1b0)]};_0xc46e92!=null&&_0xc46e92[_0x2dba90(0x11e)]&&_0x1d7dfd[_0x2dba90(0xf8)]===_0x2dba90(0x11e)&&(_0x1d7dfd[_0x2dba90(0xf8)]=_0xc46e92[_0x2dba90(0x11e)]),_0x51689f[_0x2dba90(0x15b)]===_0x2dba90(0x19f)&&_0x1d7dfd['id']&&(_0x1d7dfd['id']=_0x1d7dfd['id']+_0x4d5e6a['idSuffix']),Object['entries'](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x4aeeea,_0x5ecc06])=>{const _0x3f5970=_0x2dba90;_0x4aeeea===_0x3f5970(0x19f)&&typeof _0x5ecc06==_0x3f5970(0x198)&&(_0x1d7dfd[_0x4aeeea]=_0x5ecc06[_0x3f5970(0x13c)](/url\(#(.*)\)/,_0x3f5970(0x152)+_0x4d5e6a[_0x3f5970(0xf4)]+')'));});const {defIds:_0x526487}=_0x4d5e6a;return!_0x526487||_0x526487[_0x2dba90(0x15f)]===0x0||(_0x51689f['tag']===_0x2dba90(0x144)&&_0x1d7dfd['xlink:href']&&(_0x1d7dfd[_0x2dba90(0x111)]=_0x1d7dfd[_0x2dba90(0x111)]+_0x4d5e6a[_0x2dba90(0xf4)]),Object[_0x2dba90(0x16a)](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x2a8748,_0x18d0e6])=>{const _0x56ae57=_0x2dba90;typeof _0x18d0e6==_0x56ae57(0x198)&&(_0x1d7dfd[_0x2a8748]=_0x18d0e6['replace'](/url\(#(.*)\)/,_0x56ae57(0x152)+_0x4d5e6a[_0x56ae57(0xf4)]+')'));})),_0x1d7dfd;}function F(_0x5c8d21,_0x22d454){const _0x4b75b8=_0x491241;var _0x187d80;const {defIds:_0x1275bf}=_0x22d454;return!_0x1275bf||_0x1275bf[_0x4b75b8(0x15f)]===0x0?_0x5c8d21:_0x5c8d21[_0x4b75b8(0x15b)]===_0x4b75b8(0x134)&&((_0x187d80=_0x5c8d21[_0x4b75b8(0x10a)])!=null&&_0x187d80[_0x4b75b8(0x15f)])?{..._0x5c8d21,'children':_0x5c8d21[_0x4b75b8(0x10a)]['map'](_0x1bc47d=>typeof _0x1bc47d['attrs']['id']==_0x4b75b8(0x198)&&_0x1275bf&&_0x1275bf[_0x4b75b8(0x102)](_0x1bc47d[_0x4b75b8(0x1b0)]['id'])?{..._0x1bc47d,'attrs':{..._0x1bc47d['attrs'],'id':_0x1bc47d['attrs']['id']+_0x22d454[_0x4b75b8(0xf4)]}}:_0x1bc47d)}:_0x5c8d21;}function H(){const _0x141628=_0x491241;return Math[_0x141628(0x114)]()[_0x141628(0x1b5)](0x24)[_0x141628(0x1b8)](0x2,0x8);}x['displayName']=_0x491241(0x158);const V={'tag':'svg','attrs':{'xmlns':_0x491241(0x12d),'fill':_0x491241(0x125),'viewBox':_0x491241(0x163),'width':_0x491241(0x159),'height':_0x491241(0x159)},'children':[{'tag':_0x491241(0x13d),'attrs':{'fill':_0x491241(0x1b6),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x491241(0x1b6),'d':_0x491241(0x165),'fillRule':_0x491241(0x106),'clipRule':_0x491241(0x106)}}]},R=v[_0x491241(0x141)](function(_0x167ba3,_0x1fe800){const _0xdd6944=_0x491241;return v[_0xdd6944(0x1a1)](x,Object[_0xdd6944(0x169)]({},_0x167ba3,{'id':_0xdd6944(0x18e),'ref':_0x1fe800,'icon':V}));});R[_0x491241(0x174)]='LiveShareIcon';class E extends o[_0x491241(0x108)]{constructor(){const _0xdb0e6a=_0x491241;super(...arguments),_(this,_0xdb0e6a(0x184),new Set()),_(this,_0xdb0e6a(0x1c2),new Set());}[_0x491241(0x148)](_0x448211){const _0x2648e5=_0x491241;return this['_sharedOperations'][_0x2648e5(0x117)](_0x448211),o['toDisposable'](()=>this['_sharedOperations'][_0x2648e5(0x188)](_0x448211));}['registerInitialStateReporter'](_0x891940){const _0x1de418=_0x491241;return this[_0x1de418(0x1c2)][_0x1de418(0x117)](_0x891940),o['toDisposable'](()=>this[_0x1de418(0x1c2)][_0x1de418(0x188)](_0x891940));}[_0x491241(0x18c)](_0x48f145){const _0x513521=_0x491241;return this[_0x513521(0x184)][_0x513521(0x14c)](_0x48f145);}[_0x491241(0x1bc)](_0xcd9b23){const _0x28d653=_0x491241;return Array[_0x28d653(0x18d)](this['_reporters'])[_0x28d653(0x136)](_0x2122c2=>_0x2122c2(_0xcd9b23));}}var M=Object[_0x491241(0x17b)],P=(_0x6584a2,_0x147c0f,_0x4bc407,_0xdcfb7)=>{const _0x23a922=_0x491241;for(var _0x52cbde=_0xdcfb7>0x1?void 0x0:_0xdcfb7?M(_0x147c0f,_0x4bc407):_0x147c0f,_0x490702=_0x6584a2[_0x23a922(0x15f)]-0x1,_0x43bba0;_0x490702>=0x0;_0x490702--)(_0x43bba0=_0x6584a2[_0x490702])&&(_0x52cbde=_0x43bba0(_0x52cbde)||_0x52cbde);return _0x52cbde;},S=(_0x3263e2,_0x2c1044)=>(_0x44e2aa,_0x130b64)=>_0x2c1044(_0x44e2aa,_0x130b64,_0x3263e2);exports[_0x491241(0x195)]=class extends o[_0x491241(0x173)]{constructor(_0x37c1e9,_0x105773,_0x25f508){const _0x5811dc=_0x491241;super(),_(this,_0x5811dc(0x1a3),new Map()),(this['_univerInstanceService']=_0x37c1e9,this['_injector']=_0x105773,this['_collabSessionService']=_0x25f508,this[_0x5811dc(0x10b)]());}async[_0x491241(0x178)](_0x5cba46){const _0x2cbe7c=_0x491241;return this[_0x2cbe7c(0x1a3)]['has'](_0x5cba46)||await this[_0x2cbe7c(0x157)](_0x5cba46),this[_0x2cbe7c(0x1a3)][_0x2cbe7c(0x18a)](_0x5cba46);}['getLiveShareCoordinatorSync'](_0x32ae41){const _0x23629d=_0x491241;var _0x3764e6;return(_0x3764e6=this[_0x23629d(0x1a3)][_0x23629d(0x18a)](_0x32ae41))!=null?_0x3764e6:null;}[_0x491241(0x10b)](){const _0x2570a5=_0x491241;this[_0x2570a5(0xec)][_0x2570a5(0x11f)](o[_0x2570a5(0xfd)][_0x2570a5(0xff)])[_0x2570a5(0x194)](I[_0x2570a5(0x190)](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](async _0x1ff6dd=>{const _0x21b096=_0x2570a5,_0x2bc9a2=_0x1ff6dd[_0x21b096(0x1a6)]();this['_entities'][_0x21b096(0x14c)](_0x2bc9a2)||this[_0x21b096(0x157)](_0x2bc9a2);}),this[_0x2570a5(0xec)][_0x2570a5(0x153)](o[_0x2570a5(0xfd)]['UNIVER_SHEET'])[_0x2570a5(0x194)](I['takeUntil'](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](_0x9843d9=>{const _0x4e02b1=_0x2570a5,_0x1b9ce9=_0x9843d9[_0x4e02b1(0x1a6)](),_0x4653f2=this[_0x4e02b1(0x1a3)]['get'](_0x1b9ce9);_0x4653f2==null||_0x4653f2['dispose']();});}async[_0x491241(0x157)](_0x38cee2){const _0x5f18a0=_0x491241,_0x27a165=await this[_0x5f18a0(0xf3)][_0x5f18a0(0xfb)](_0x38cee2),_0x43d202=this['_injector']['createInstance'](exports[_0x5f18a0(0xf7)],_0x38cee2,_0x27a165);return _0x43d202['init'](),this[_0x5f18a0(0x1a3)][_0x5f18a0(0x175)](_0x38cee2,_0x43d202),_0x43d202;}},exports[_0x491241(0x195)]=P([S(0x0,o[_0x491241(0x1a0)]),S(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),S(0x2,o[_0x491241(0x161)](b[_0x491241(0x199)]))],exports[_0x491241(0x195)]);var u=(_0x12fb20=>(_0x12fb20[_0x491241(0x15e)]=_0x491241(0x1bb),_0x12fb20[_0x491241(0x1c0)]='idle',_0x12fb20[_0x491241(0x1ab)]=_0x491241(0x105),_0x12fb20['NOT_FOLLOWING']='not-following',_0x12fb20['PRESENTING']=_0x491241(0x1c1),_0x12fb20))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x491241(0xf7)]=class extends o[_0x491241(0x173)]{constructor(_0x118dd4,_0x1671f4,_0x2bea8d,_0xdf3ba0,_0x3b8568){const _0x5d78fa=_0x491241;super(),_(this,_0x5d78fa(0x176),new O['BehaviorSubject']('idle')),_(this,_0x5d78fa(0x1af),this[_0x5d78fa(0x176)][_0x5d78fa(0x1a9)]()),_(this,_0x5d78fa(0x10b),!0x1),_(this,_0x5d78fa(0x162),null),_(this,'_presenter',null),(this[_0x5d78fa(0x11b)]=_0x118dd4,this[_0x5d78fa(0x11d)]=_0x1671f4,this[_0x5d78fa(0x126)]=_0x2bea8d,this['_liveShareService']=_0xdf3ba0,this[_0x5d78fa(0x140)]=_0x3b8568);}get[_0x491241(0x1a2)](){const _0x32fca7=_0x491241;return this[_0x32fca7(0x176)][_0x32fca7(0xf2)]();}[_0x491241(0x17d)](){const _0x248a15=_0x491241;var _0x39796a;(_0x39796a=this[_0x248a15(0x162)])==null||_0x39796a[_0x248a15(0x17d)](),this[_0x248a15(0x176)]['next'](_0x248a15(0xf6)),this[_0x248a15(0x176)][_0x248a15(0x171)]();}[_0x491241(0x15a)](){const _0xcec845=_0x491241;return this[_0xcec845(0x1a2)];}[_0x491241(0x1c3)](){const _0x585264=_0x491241;this[_0x585264(0x10b)]||(this[_0x585264(0x10b)]=!0x0,this[_0x585264(0x11d)][_0x585264(0x1b9)][_0x585264(0x194)](I[_0x585264(0x190)](this['dispose$']))['subscribe'](_0x16ca21=>{const _0x350ef0=_0x585264;switch(_0x16ca21){case b[_0x350ef0(0x14d)][_0x350ef0(0x15e)]:this[_0x350ef0(0x187)]();break;case b[_0x350ef0(0x14d)][_0x350ef0(0x160)]:this[_0x350ef0(0x155)]();break;}}),this[_0x585264(0x11d)][_0x585264(0xee)][_0x585264(0x194)](I['takeUntil'](this[_0x585264(0x11c)]))[_0x585264(0x13f)](_0x3acd5c=>{const _0x31b4f7=_0x585264,{eventID:_0x37a4cd}=_0x3acd5c;switch(_0x37a4cd){case d[_0x31b4f7(0x1b1)][_0x31b4f7(0xf1)]:this['_handleNewHost'](_0x3acd5c);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x31b4f7(0x149)](_0x3acd5c);break;case d[_0x31b4f7(0x1b1)][_0x31b4f7(0x12b)]:this['_handleTerminate']();break;case d[_0x31b4f7(0x1b1)]['NEW_CHANGESETS']:this[_0x31b4f7(0x156)](_0x3acd5c);break;}}));}[_0x491241(0x150)](){const _0x1cdd4f=_0x491241;this[_0x1cdd4f(0x11d)]['send']({'eventID':d[_0x1cdd4f(0x1b1)][_0x1cdd4f(0x19b)],'data':{'unitID':this[_0x1cdd4f(0x11b)],'userID':this[_0x1cdd4f(0x11d)][_0x1cdd4f(0x13e)]()}},this['_unitID']);}['stopPresenting'](){const _0x2c5f4f=_0x491241;this[_0x2c5f4f(0x1a2)]===_0x2c5f4f(0x1c1)&&(this[_0x2c5f4f(0x176)][_0x2c5f4f(0x13a)](_0x2c5f4f(0xf6)),this['_collabSession'][_0x2c5f4f(0x1ad)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2c5f4f(0x11b)]));}[_0x491241(0x145)](){const _0x5ac49e=_0x491241;this[_0x5ac49e(0x1a2)]==='not-following'&&(this[_0x5ac49e(0x176)][_0x5ac49e(0x13a)](_0x5ac49e(0x105)),this[_0x5ac49e(0x143)]());}[_0x491241(0x100)](){const _0x2d36e4=_0x491241;this[_0x2d36e4(0x1a2)]==='following'&&this[_0x2d36e4(0x118)]();}[_0x491241(0x11a)](_0x4703d5){const _0x5dc462=_0x491241,{presenter:_0x41a68f}=_0x4703d5['data'],_0x32aa80=this[_0x5dc462(0x11d)][_0x5dc462(0x13e)]();this['_presenter']=_0x41a68f,_0x41a68f===_0x32aa80?(this[_0x5dc462(0x118)](),this['_startPresenting']()):this[_0x5dc462(0x1a2)]!==_0x5dc462(0x1a7)&&(this[_0x5dc462(0x179)](),this[_0x5dc462(0x143)]());}[_0x491241(0x1ac)](){const _0x29e8c3=_0x491241,_0x396c1c={'eventID':d[_0x29e8c3(0x1b1)][_0x29e8c3(0xfa)]};this[_0x29e8c3(0x11d)][_0x29e8c3(0x1ad)](_0x396c1c,this[_0x29e8c3(0x11b)]);}[_0x491241(0x182)](){const _0x129efc=_0x491241;this[_0x129efc(0x14a)]=null,this['_status']!==_0x129efc(0x1c1)&&this[_0x129efc(0x1c4)]();}[_0x491241(0x156)](_0x548fdd){const _0x2c607a=_0x491241;if(this[_0x2c607a(0x1a2)]===_0x2c607a(0x105)&&this[_0x2c607a(0x14a)]===_0x548fdd['data'][_0x2c607a(0x10d)]){const _0x398480=d[_0x2c607a(0x1a5)](_0x548fdd['data'])['mutations'][_0x2c607a(0x16b)]()[_0x2c607a(0x120)](_0x2b4367=>_0x2b4367['id']===C[_0x2c607a(0x1bd)]['id']);if(_0x398480){const _0x35304d=_0x398480[_0x2c607a(0x10c)]['unitId'],_0x5e2fdc=_0x398480[_0x2c607a(0x10c)]['sheet']['id'];setTimeout(()=>{const _0x1477bd=_0x2c607a;this[_0x1477bd(0x140)][_0x1477bd(0x109)](C[_0x1477bd(0x19a)]['id'],{'unitId':_0x35304d,'subUnitId':_0x5e2fdc},{'fromCollab':!0x0});});}}}[_0x491241(0x129)](){const _0xd02c88=_0x491241;this['_status$'][_0xd02c88(0x13a)](_0xd02c88(0x1c1));const _0x105f6b=new Map(),_0x25cf84=this['_commandDisposable']=new o['DisposableCollection']();_0x25cf84[_0xd02c88(0x117)](o[_0xd02c88(0xf9)](()=>{const _0x50b2b8=_0xd02c88;_0x105f6b[_0x50b2b8(0x16d)](_0x46ced2=>_0x46ced2[_0x50b2b8(0x171)]()),_0x105f6b[_0x50b2b8(0xef)]();})),_0x25cf84['add'](this[_0xd02c88(0x140)][_0xd02c88(0x17f)](_0x248ac2=>{const _0x18ef29=_0xd02c88;var _0x52df79;if(_0x248ac2[_0x18ef29(0x115)]!==o[_0x18ef29(0x164)][_0x18ef29(0x128)]||!this[_0x18ef29(0x104)]['shouldShareOperation'](_0x248ac2['id']))return;const {id:_0x3a16ee}=_0x248ac2;let _0x40f42b;_0x105f6b[_0x18ef29(0x14c)](_0x3a16ee)?_0x40f42b=_0x105f6b[_0x18ef29(0x18a)](_0x3a16ee):(_0x40f42b=new O['Subject'](),_0x105f6b[_0x18ef29(0x175)](_0x3a16ee,_0x40f42b),_0x40f42b['pipe'](I[_0x18ef29(0x132)]((_0x52df79=this[_0x18ef29(0x126)][_0x18ef29(0x17c)](k))!=null?_0x52df79:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18ef29(0x13f)](_0x141134=>{const _0x4d33e7=_0x18ef29;this['_collabSession'][_0x4d33e7(0x1ad)]({'eventID':d[_0x4d33e7(0x1b1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d33e7(0x11b)],'operations':{[_0x141134['id']]:{'id':_0x141134['id'],'params':JSON[_0x4d33e7(0x122)](_0x141134[_0x4d33e7(0x10c)])}}}},this[_0x4d33e7(0x11b)]);})),_0x40f42b[_0x18ef29(0x13a)](_0x248ac2);})),this[_0xd02c88(0x104)]['getInitialStates'](this[_0xd02c88(0x11b)])[_0xd02c88(0x16d)](_0x1afea7=>this['_collabSession'][_0xd02c88(0x1ad)]({'eventID':d['CollaborationEvent'][_0xd02c88(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x1afea7['id']]:{'id':_0x1afea7['id'],'params':JSON[_0xd02c88(0x122)](_0x1afea7['params'])}}}},this[_0xd02c88(0x11b)]));}['_stopPresenting'](){const _0x5556f2=_0x491241;var _0x1a0b9d;this[_0x5556f2(0x176)][_0x5556f2(0x13a)](_0x5556f2(0xf6)),(_0x1a0b9d=this['_commandDisposable'])==null||_0x1a0b9d['dispose'](),this[_0x5556f2(0x162)]=null;}[_0x491241(0x143)](){const _0x4884c7=_0x491241;var _0x3f6987;(_0x3f6987=this[_0x4884c7(0x162)])==null||_0x3f6987[_0x4884c7(0x17d)](),this[_0x4884c7(0x176)][_0x4884c7(0x13a)](_0x4884c7(0x105));}[_0x491241(0x1c4)](){const _0x9ba780=_0x491241;var _0x184afa;this['_status$'][_0x9ba780(0x13a)](_0x9ba780(0xf6)),(_0x184afa=this[_0x9ba780(0x162)])==null||_0x184afa[_0x9ba780(0x17d)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4df61a=_0x491241;var _0x3b7e84;this[_0x4df61a(0x176)][_0x4df61a(0x13a)](_0x4df61a(0x1a7)),(_0x3b7e84=this[_0x4df61a(0x162)])==null||_0x3b7e84[_0x4df61a(0x17d)]();}[_0x491241(0x149)](_0x14d251){const _0xd99dc6=_0x491241;if([_0xd99dc6(0x1c1),'not-following','offline']['includes'](this[_0xd99dc6(0x1a2)])||!_0x14d251[_0xd99dc6(0x13b)]['presenter']||_0x14d251[_0xd99dc6(0x13b)]['presenter']===this[_0xd99dc6(0x11d)][_0xd99dc6(0x13e)]())return;this[_0xd99dc6(0x1a2)]===_0xd99dc6(0xf6)&&this[_0xd99dc6(0x143)]();const _0x439c7e=_0x14d251[_0xd99dc6(0x13b)][_0xd99dc6(0x1a8)];Object[_0xd99dc6(0x139)](_0x439c7e)[_0xd99dc6(0x16d)](_0x52d866=>{const _0x533622=_0xd99dc6;this[_0x533622(0x140)]['executeCommand'](_0x52d866['id'],_0x52d866[_0x533622(0x10c)]?JSON['parse'](_0x52d866[_0x533622(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2b553a=_0x491241;var _0x5c5ad5;this[_0x2b553a(0x176)][_0x2b553a(0x13a)](_0x2b553a(0x1bb)),(_0x5c5ad5=this[_0x2b553a(0x162)])==null||_0x5c5ad5['dispose']();}['_handleOnline'](){const _0x44104d=_0x491241;this[_0x44104d(0x176)][_0x44104d(0x13a)](_0x44104d(0xf6)),this[_0x44104d(0x1ac)]();}},exports[_0x491241(0xf7)]=P([S(0x2,o[_0x491241(0x177)]),S(0x3,o[_0x491241(0x161)](E)),S(0x4,o['ICommandService'])],exports[_0x491241(0xf7)]);function $(){const _0x4da248=_0x491241,_0x125f95=p[_0x4da248(0x1b2)](exports['LiveShareController']),_0x4b66bf=p[_0x4da248(0x1b2)](o['IUniverInstanceService']),_0x10da6b=p['useObservable'](()=>_0x4b66bf[_0x4da248(0x103)](o[_0x4da248(0xfd)][_0x4da248(0xff)]),void 0x0,!0x1,[]),[_0x5bc573,_0x30a0e2]=v['useState'](null),[_0xef7db8,_0x194a4e]=v[_0x4da248(0xf5)](u[_0x4da248(0x1c0)]),_0x394ee0=v['useRef'](null);return v[_0x4da248(0x146)](()=>(_0x10da6b&&_0x125f95[_0x4da248(0x178)](_0x10da6b[_0x4da248(0x1a6)]())[_0x4da248(0x19c)](_0x4fe7bb=>{const _0x730310=_0x4da248;_0x30a0e2(_0x4fe7bb),_0x394ee0[_0x730310(0x16e)]=_0x4fe7bb[_0x730310(0x1af)][_0x730310(0x13f)](_0x24c121=>{_0x194a4e(_0x24c121);});}),()=>{const _0x36105b=_0x4da248;var _0x3cbefd;(_0x3cbefd=_0x394ee0[_0x36105b(0x16e)])==null||_0x3cbefd[_0x36105b(0x133)](),_0x394ee0[_0x36105b(0x16e)]=null;}),[_0x10da6b,_0x125f95]),_0x5bc573?l['jsx'](f[_0x4da248(0x14b)],{'align':_0x4da248(0x197),'disabled':_0xef7db8===u[_0x4da248(0x15e)],'className':_0x4da248(0x154),'overlay':l[_0x4da248(0x101)](W,{'status':_0xef7db8,'coordinator':_0x5bc573}),'children':l[_0x4da248(0x101)]('button',{'className':f[_0x4da248(0x123)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xef7db8===u[_0x4da248(0x15e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xef7db8!==u['OFFLINE']}),'type':_0x4da248(0x196),'children':l[_0x4da248(0x101)](R,{'className':_0x4da248(0x12a)})})}):null;}function W(_0xd23a75){const _0x396f1d=_0x491241,{status:_0x528a60,coordinator:_0x1865ac}=_0xd23a75;switch(_0x528a60){case u[_0x396f1d(0x1c0)]:return l[_0x396f1d(0x101)](G,{'coordinator':_0x1865ac});case u['FOLLOWING']:return l[_0x396f1d(0x101)](B,{'coordinator':_0x1865ac});case u[_0x396f1d(0x137)]:return l[_0x396f1d(0x101)](Y,{'coordinator':_0x1865ac});case u[_0x396f1d(0x15e)]:return l[_0x396f1d(0x101)](J,{});case u[_0x396f1d(0x135)]:return l['jsx'](Z,{'coordinator':_0x1865ac});default:return null;}}function G(_0x35a981){const _0x40b4af=_0x491241,{coordinator:_0x395cbe}=_0x35a981;return l[_0x40b4af(0x191)](l[_0x40b4af(0x1b4)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40b4af(0x12c)}),l[_0x40b4af(0x101)](f['Button'],{'onClick':()=>_0x395cbe[_0x40b4af(0x150)](),'children':'Start'})]});}function B(_0x15b1cb){const _0x1221bf=_0x491241,{coordinator:_0x6ff6db}=_0x15b1cb;return l[_0x1221bf(0x191)](l[_0x1221bf(0x1b4)],{'children':[l[_0x1221bf(0x101)](_0x1221bf(0x17e),{'className':_0x1221bf(0x167),'children':_0x1221bf(0x15c)}),l[_0x1221bf(0x101)](f['Button'],{'onClick':()=>_0x6ff6db['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x118922){const _0x1b06f2=_0x491241,{coordinator:_0x2c9991}=_0x118922;return l[_0x1b06f2(0x191)](l[_0x1b06f2(0x1b4)],{'children':[l[_0x1b06f2(0x101)](_0x1b06f2(0x17e),{'className':_0x1b06f2(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1b06f2(0x101)](f[_0x1b06f2(0x130)],{'variant':_0x1b06f2(0x168),'onClick':()=>_0x2c9991[_0x1b06f2(0x145)](),'children':_0x1b06f2(0x185)})]});}function Z(_0x18cf3c){const _0x40eda5=_0x491241,{coordinator:_0x14ee19}=_0x18cf3c;return l[_0x40eda5(0x191)](l['Fragment'],{'children':[l['jsx'](_0x40eda5(0x17e),{'className':_0x40eda5(0x167),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x40eda5(0x130)],{'variant':_0x40eda5(0x1b7),'onClick':()=>_0x14ee19[_0x40eda5(0x192)](),'children':_0x40eda5(0x110)})]});}function J(){const _0x574d6f=_0x491241;return l[_0x574d6f(0x101)](l['Fragment'],{'children':_0x574d6f(0x16f)});}var K=Object[_0x491241(0x17b)],z=(_0x594353,_0x587ee7,_0x19322e,_0x1f78a2)=>{const _0x350eca=_0x491241;for(var _0x2b6db4=_0x1f78a2>0x1?void 0x0:_0x1f78a2?K(_0x587ee7,_0x19322e):_0x587ee7,_0x889ca0=_0x594353[_0x350eca(0x15f)]-0x1,_0x212501;_0x889ca0>=0x0;_0x889ca0--)(_0x212501=_0x594353[_0x889ca0])&&(_0x2b6db4=_0x212501(_0x2b6db4)||_0x2b6db4);return _0x2b6db4;},L=(_0x5ee7c6,_0x2cd824)=>(_0x1d8241,_0x22d1cb)=>_0x2cd824(_0x1d8241,_0x22d1cb,_0x5ee7c6);exports[_0x491241(0x172)]=class extends o[_0x491241(0x108)]{constructor(_0x267a34,_0x4ac2e0){const _0x12488f=_0x491241;super(),this[_0x12488f(0x183)]=_0x267a34,this[_0x12488f(0x16c)]=_0x4ac2e0,this[_0x12488f(0x142)]();}['_mountLiveShare'](){const _0x3db294=_0x491241;this[_0x3db294(0x124)](this[_0x3db294(0x16c)][_0x3db294(0x10f)](p[_0x3db294(0x15d)]['HEADER_MENU'],()=>p[_0x3db294(0x121)]($,this[_0x3db294(0x183)])));}},exports[_0x491241(0x172)]=z([L(0x0,o[_0x491241(0x161)](o[_0x491241(0x18f)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x491241(0x170),w={};var X=Object[_0x491241(0x17b)],ee=(_0x3ababd,_0x26c21d,_0x48627d,_0x476f21)=>{const _0x11d9bb=_0x491241;for(var _0x521296=_0x476f21>0x1?void 0x0:_0x476f21?X(_0x26c21d,_0x48627d):_0x26c21d,_0x283c59=_0x3ababd[_0x11d9bb(0x15f)]-0x1,_0x398fc8;_0x283c59>=0x0;_0x283c59--)(_0x398fc8=_0x3ababd[_0x283c59])&&(_0x521296=_0x398fc8(_0x521296)||_0x521296);return _0x521296;},te=(_0x316920,_0x39f74f)=>(_0x1d67e7,_0x439a80)=>_0x39f74f(_0x1d67e7,_0x439a80,_0x316920);let m=class extends o['Disposable']{constructor(_0x45c883){super(),this['_liveShareService']=_0x45c883,this['_init']();}[_0x491241(0x10b)](){const _0x368081=_0x491241;[D[_0x368081(0x1a4)]['id'],D[_0x368081(0x113)]['id'],C['SetWorksheetActiveOperation']['id']][_0x368081(0x16d)](_0x8f78fe=>{const _0x2cc087=_0x368081;this['disposeWithMe'](this['_liveShareService'][_0x2cc087(0x148)](_0x8f78fe));});}};m=ee([te(0x0,o[_0x491241(0x161)](E))],m);var ie=Object[_0x491241(0x119)],se=Object[_0x491241(0x17b)],ne=(_0x213bb5,_0x4db0f0,_0x188eb1)=>_0x4db0f0 in _0x213bb5?ie(_0x213bb5,_0x4db0f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188eb1}):_0x213bb5[_0x4db0f0]=_0x188eb1,re=(_0x4432ee,_0x511135,_0x38e34d,_0x463d4b)=>{for(var _0x3f3c07=_0x463d4b>0x1?void 0x0:_0x463d4b?se(_0x511135,_0x38e34d):_0x511135,_0x3514cc=_0x4432ee['length']-0x1,_0x4e95a7;_0x3514cc>=0x0;_0x3514cc--)(_0x4e95a7=_0x4432ee[_0x3514cc])&&(_0x3f3c07=_0x4e95a7(_0x3f3c07)||_0x3f3c07);return _0x3f3c07;},N=(_0x5abd3f,_0x4d8018)=>(_0x113790,_0x7fb04c)=>_0x4d8018(_0x113790,_0x7fb04c,_0x5abd3f),A=(_0x4e58ff,_0x1fa244,_0x5a4edb)=>ne(_0x4e58ff,typeof _0x1fa244!=_0x491241(0x1aa)?_0x1fa244+'':_0x1fa244,_0x5a4edb);const oe=_0x491241(0x10e);exports[_0x491241(0x19e)]=class extends o[_0x491241(0x186)]{constructor(_0x84f871=w,_0x4d537e,_0xbd2691){const _0x3d735a=_0x491241;super(),this[_0x3d735a(0x193)]=_0x84f871,this['_injector']=_0x4d537e,this[_0x3d735a(0x126)]=_0xbd2691;const {..._0x828894}=o[_0x3d735a(0x1ae)]({},w,this[_0x3d735a(0x193)]);this[_0x3d735a(0x126)][_0x3d735a(0x181)](Q,_0x828894);}[_0x491241(0x19d)](){const _0x596dd3=_0x491241;o['registerDependencies'](this[_0x596dd3(0x183)],o[_0x596dd3(0x14f)]([[E],[exports[_0x596dd3(0x195)]],[m],[exports[_0x596dd3(0x172)]]],this['_config']['override'])),o[_0x596dd3(0x12f)](this['_injector'],[[m]]);}['onRendered'](){const _0x33c92a=_0x491241;o[_0x33c92a(0x12f)](this[_0x33c92a(0x183)],[[exports[_0x33c92a(0x172)]]]);}},A(exports[_0x491241(0x19e)],'type',o['UniverInstanceType'][_0x491241(0x1be)]),A(exports[_0x491241(0x19e)],_0x491241(0x166),oe),exports[_0x491241(0x19e)]=re([o[_0x491241(0x127)](b[_0x491241(0x17a)]),N(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),N(0x2,o[_0x491241(0x177)])],exports[_0x491241(0x19e)]),exports[_0x491241(0x151)]=$,exports[_0x491241(0xed)]=E,exports[_0x491241(0x112)]=u;
|
|
1
|
+
'use strict';const _0x12f82e=_0x4641;(function(_0x250969,_0x1fcaf8){const _0x3501fc=_0x4641,_0x21bbaa=_0x250969();while(!![]){try{const _0x5ad3f3=parseInt(_0x3501fc(0x18f))/0x1+parseInt(_0x3501fc(0x1c1))/0x2+-parseInt(_0x3501fc(0x1e1))/0x3*(-parseInt(_0x3501fc(0x13d))/0x4)+parseInt(_0x3501fc(0x1d6))/0x5*(-parseInt(_0x3501fc(0x1fa))/0x6)+parseInt(_0x3501fc(0x1dc))/0x7+parseInt(_0x3501fc(0x1af))/0x8+parseInt(_0x3501fc(0x178))/0x9*(-parseInt(_0x3501fc(0x181))/0xa);if(_0x5ad3f3===_0x1fcaf8)break;else _0x21bbaa['push'](_0x21bbaa['shift']());}catch(_0x2fa9b4){_0x21bbaa['push'](_0x21bbaa['shift']());}}}(_0x4c94,0x675a1));var T=Object[_0x12f82e(0x20c)],U=(_0x1c4539,_0x132659,_0x582e24)=>_0x132659 in _0x1c4539?T(_0x1c4539,_0x132659,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x582e24}):_0x1c4539[_0x132659]=_0x582e24,_=(_0xcb41cf,_0x183bb6,_0x319afd)=>U(_0xcb41cf,typeof _0x183bb6!=_0x12f82e(0x154)?_0x183bb6+'':_0x183bb6,_0x319afd);Object['defineProperty'](exports,Symbol[_0x12f82e(0x1a9)],{'value':_0x12f82e(0x1cf)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x1c643c,..._0xfabc16}){const _0x5b193a=_0x12f82e,{icon:_0x157980,id:_0x42bbf8,className:_0x453be5,extend:_0x3367a7,..._0x38eb7c}=_0xfabc16,_0x5429e2=(_0x5b193a(0x19b)+_0x42bbf8+'\x20'+(_0x453be5||''))['trim'](),_0x5232e1=v[_0x5b193a(0x185)]('_'+H());return j(_0x157980,''+_0x42bbf8,{'defIds':_0x157980['defIds'],'idSuffix':_0x5232e1[_0x5b193a(0x14a)]},{'ref':_0x1c643c,'className':_0x5429e2,..._0x38eb7c},_0x3367a7);}function _0x4c94(){const _0x230e95=['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','Inject','_handleNewChangeSets','useDependency','_mountLiveShare','_reporters','clear','getStatus','live-share.config','throttleTime','useState','tag','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','_startPresenting','getLiveShareCoordinator','14130819cLkgpb','mutations','random','init','_collabSessionService','data','none','InsertSheetMutation','LIVESHARE_TERMINATE','10ujuuuJ','add','offline','Dropdown','useRef','DesktopLiveShareController','memberID','getOwnPropertyDescriptor','string','getCurrentTypeOfUnit$','next','SessionStatus','unsubscribe','_injector','579728QxNAaA','jsxs','UniverInstanceType','useEffect','map','Start','_liveShareService','length','attrs','Injector','You\x27re\x20following\x20the\x20presenter','PRESENTING','univerjs-icon\x20univerjs-icon-','BuiltInUIPart','_sharedOperations','getInitialStates','_init','subscribe','getConfig','SetZoomRatioOperation','params','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','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','use','createInstance','toStringTag','_entities','stringify','children','_beIdle','_handleOffline','4292360eQtEGG','sheet','send','toString','_fetchOperations','evenodd','Fragment','_uiPartsService','_handleOperation','SetScrollOperation','LIVESHARE_OPERATION','DisposableCollection','url(#$1','requireSession','registerSharedOperation','_univerInstanceService','forwardRef','svg','84340FjCsPD','_commandService','event$','getTypeOfUnitAdded$','idSuffix','takeUntil','type','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','Start\x20following','UNIVER_SHEET','1em','ONLINE','Button','Module','_unitID','find','tryStartPresenting','button','colorChannel1','startFollowing','10555IJloqX','pipe','clsx','LIVESHARE_NEW_HOST','_status','_stopPresenting','5600028FQRkmq','disposeWithMe','complete','IUIPartsService','CollaborationEvent','180CYTFNw','registerDependencies','onCommandExecuted','_stopFollowing','_startFollowing','merge','LiveShareIcon','connectInjector','LiveShare','jsx','Disposable','entries','replace','presenter','div','not-following','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','idle','parse','Stop\x20following','fill','LiveShareCoordinator','has','822WReSwW','createElement','_handleOnline','executeCommand','path','UniverIcon','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','override','UNIVER_UNKNOWN','_configService','set','getValue','IConfigService','operations','_handleTerminate','UniverCollaborationClientPlugin','defineProperty','touchDependencies','RxDisposable','Plugin','21612jlbQZT','_handleNewHost','UniverLiveSharePlugin','Stop\x20presenting','_status$','setConfig','presenting','getMemberID','displayName','stopFollowing','getUnitId','onStarting','_presenter','current','xlink:href','dispose','end','defs','IDLE','OFFLINE','0\x200\x2017\x2017','_commandDisposable','includes','symbol','_collabSession','NEW_CHANGESETS','sessionStatus$','following','_startLiveShareCoordinator','toDisposable','dispose$','LiveShareService','substring','get','_config','You\x27re\x20not\x20following\x20the\x20presenter','NOT_FOLLOWING','asObservable','stopPresenting','from','mask','LiveShareController','forEach'];_0x4c94=function(){return _0x230e95;};return _0x4c94();}function j(_0x978f76,_0x2fc1ca,_0xd4bc70,_0x15a75b,_0x1de0e4){const _0x4fc54b=_0x12f82e;return v[_0x4fc54b(0x1fb)](_0x978f76[_0x4fc54b(0x173)],{'key':_0x2fc1ca,...y(_0x978f76,_0xd4bc70,_0x1de0e4),..._0x15a75b},(F(_0x978f76,_0xd4bc70)[_0x4fc54b(0x1ac)]||[])[_0x4fc54b(0x193)]((_0x54f9dc,_0x58e83b)=>j(_0x54f9dc,_0x2fc1ca+'-'+_0x978f76[_0x4fc54b(0x173)]+'-'+_0x58e83b,_0xd4bc70,void 0x0,_0x1de0e4)));}function y(_0x34beae,_0x75ab2c,_0x4e85d7){const _0xf4ecce=_0x12f82e,_0x28bf95={..._0x34beae[_0xf4ecce(0x197)]};_0x4e85d7!=null&&_0x4e85d7[_0xf4ecce(0x1d4)]&&_0x28bf95['fill']===_0xf4ecce(0x1d4)&&(_0x28bf95[_0xf4ecce(0x1f7)]=_0x4e85d7['colorChannel1']),_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x165)&&_0x28bf95['id']&&(_0x28bf95['id']=_0x28bf95['id']+_0x75ab2c['idSuffix']),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1fac4c,_0x32ba95])=>{const _0x431908=_0xf4ecce;_0x1fac4c===_0x431908(0x165)&&typeof _0x32ba95==_0x431908(0x189)&&(_0x28bf95[_0x1fac4c]=_0x32ba95[_0x431908(0x1ed)](/url\(#(.*)\)/,_0x431908(0x1bb)+_0x75ab2c[_0x431908(0x1c5)]+')'));});const {defIds:_0x43e5d7}=_0x75ab2c;return!_0x43e5d7||_0x43e5d7[_0xf4ecce(0x196)]===0x0||(_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x1a7)&&_0x28bf95[_0xf4ecce(0x14b)]&&(_0x28bf95['xlink:href']=_0x28bf95[_0xf4ecce(0x14b)]+_0x75ab2c[_0xf4ecce(0x1c5)]),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1e0964,_0x2bf303])=>{const _0x4b1f01=_0xf4ecce;typeof _0x2bf303=='string'&&(_0x28bf95[_0x1e0964]=_0x2bf303[_0x4b1f01(0x1ed)](/url\(#(.*)\)/,_0x4b1f01(0x1bb)+_0x75ab2c[_0x4b1f01(0x1c5)]+')'));})),_0x28bf95;}function F(_0x3e5622,_0x131d0e){const _0x4390ec=_0x12f82e;var _0x4179f7;const {defIds:_0x3d7c52}=_0x131d0e;return!_0x3d7c52||_0x3d7c52[_0x4390ec(0x196)]===0x0?_0x3e5622:_0x3e5622[_0x4390ec(0x173)]===_0x4390ec(0x14e)&&((_0x4179f7=_0x3e5622['children'])!=null&&_0x4179f7[_0x4390ec(0x196)])?{..._0x3e5622,'children':_0x3e5622[_0x4390ec(0x1ac)][_0x4390ec(0x193)](_0x35b678=>typeof _0x35b678[_0x4390ec(0x197)]['id']==_0x4390ec(0x189)&&_0x3d7c52&&_0x3d7c52[_0x4390ec(0x153)](_0x35b678[_0x4390ec(0x197)]['id'])?{..._0x35b678,'attrs':{..._0x35b678[_0x4390ec(0x197)],'id':_0x35b678[_0x4390ec(0x197)]['id']+_0x131d0e[_0x4390ec(0x1c5)]}}:_0x35b678)}:_0x3e5622;}function _0x4641(_0x28bb5f,_0x5d2836){_0x28bb5f=_0x28bb5f-0x13c;const _0x4c9455=_0x4c94();let _0x4641bf=_0x4c9455[_0x28bb5f];return _0x4641bf;}function H(){const _0x3ea414=_0x12f82e;return Math[_0x3ea414(0x17a)]()[_0x3ea414(0x1b2)](0x24)[_0x3ea414(0x15d)](0x2,0x8);}x[_0x12f82e(0x145)]=_0x12f82e(0x1ff);const V={'tag':_0x12f82e(0x1c0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f82e(0x17e),'viewBox':_0x12f82e(0x151),'width':_0x12f82e(0x1cc),'height':_0x12f82e(0x1cc)},'children':[{'tag':'path','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':_0x12f82e(0x1fe),'attrs':{'fill':'currentColor','d':_0x12f82e(0x168),'fillRule':'evenodd','clipRule':_0x12f82e(0x1b4)}}]},R=v[_0x12f82e(0x1bf)](function(_0xff8aef,_0x956d36){const _0x10fc6a=_0x12f82e;return v[_0x10fc6a(0x1fb)](x,Object['assign']({},_0xff8aef,{'id':'live-share-icon','ref':_0x956d36,'icon':V}));});R[_0x12f82e(0x145)]=_0x12f82e(0x1e7);class E extends o['Disposable']{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x17886d){const _0x2b3dde=_0x12f82e;return this[_0x2b3dde(0x19d)][_0x2b3dde(0x182)](_0x17886d),o[_0x2b3dde(0x15a)](()=>this['_sharedOperations']['delete'](_0x17886d));}['registerInitialStateReporter'](_0x22a121){const _0x5e0cf8=_0x12f82e;return this['_reporters'][_0x5e0cf8(0x182)](_0x22a121),o[_0x5e0cf8(0x15a)](()=>this[_0x5e0cf8(0x16d)]['delete'](_0x22a121));}[_0x12f82e(0x202)](_0x4e1fdf){const _0x548879=_0x12f82e;return this[_0x548879(0x19d)]['has'](_0x4e1fdf);}[_0x12f82e(0x19e)](_0x2db929){const _0x26d75d=_0x12f82e;return Array[_0x26d75d(0x164)](this['_reporters'])[_0x26d75d(0x193)](_0x2f69f9=>_0x2f69f9(_0x2db929));}}var M=Object[_0x12f82e(0x188)],P=(_0x14da8d,_0x32b72d,_0x947996,_0x16cdf7)=>{const _0x135f38=_0x12f82e;for(var _0x5f5d5f=_0x16cdf7>0x1?void 0x0:_0x16cdf7?M(_0x32b72d,_0x947996):_0x32b72d,_0x4a5f02=_0x14da8d[_0x135f38(0x196)]-0x1,_0x37dc03;_0x4a5f02>=0x0;_0x4a5f02--)(_0x37dc03=_0x14da8d[_0x4a5f02])&&(_0x5f5d5f=_0x37dc03(_0x5f5d5f)||_0x5f5d5f);return _0x5f5d5f;},S=(_0x430b9c,_0xa4eb5f)=>(_0x517220,_0x158184)=>_0xa4eb5f(_0x517220,_0x158184,_0x430b9c);exports[_0x12f82e(0x166)]=class extends o[_0x12f82e(0x20e)]{constructor(_0x1a6ad7,_0xb570f4,_0x521385){const _0x2a1720=_0x12f82e;super(),_(this,_0x2a1720(0x1aa),new Map()),(this[_0x2a1720(0x1be)]=_0x1a6ad7,this['_injector']=_0xb570f4,this['_collabSessionService']=_0x521385,this[_0x2a1720(0x19f)]());}async['getLiveShareCoordinator'](_0x264f8d){const _0x387f42=_0x12f82e;return this[_0x387f42(0x1aa)][_0x387f42(0x1f9)](_0x264f8d)||await this[_0x387f42(0x159)](_0x264f8d),this[_0x387f42(0x1aa)][_0x387f42(0x15e)](_0x264f8d);}[_0x12f82e(0x175)](_0x3b7290){const _0x81b120=_0x12f82e;var _0x44237e;return(_0x44237e=this[_0x81b120(0x1aa)][_0x81b120(0x15e)](_0x3b7290))!=null?_0x44237e:null;}[_0x12f82e(0x19f)](){const _0x16dfac=_0x12f82e;this['_univerInstanceService'][_0x16dfac(0x1c4)](o[_0x16dfac(0x191)]['UNIVER_SHEET'])[_0x16dfac(0x1d7)](I['takeUntil'](this[_0x16dfac(0x15b)]))[_0x16dfac(0x1a0)](async _0x1c64ee=>{const _0x24c6b5=_0x16dfac,_0x36641e=_0x1c64ee[_0x24c6b5(0x147)]();this[_0x24c6b5(0x1aa)]['has'](_0x36641e)||this[_0x24c6b5(0x159)](_0x36641e);}),this[_0x16dfac(0x1be)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x16dfac(0x1cb)])['pipe'](I[_0x16dfac(0x1c6)](this['dispose$']))[_0x16dfac(0x1a0)](_0x142594=>{const _0x1a728b=_0x16dfac,_0x333a26=_0x142594[_0x1a728b(0x147)](),_0x9b445a=this[_0x1a728b(0x1aa)][_0x1a728b(0x15e)](_0x333a26);_0x9b445a==null||_0x9b445a[_0x1a728b(0x14c)]();});}async[_0x12f82e(0x159)](_0x1046ae){const _0x12f9b1=_0x12f82e,_0x4bb107=await this[_0x12f9b1(0x17c)][_0x12f9b1(0x1bc)](_0x1046ae),_0x1d31a2=this[_0x12f9b1(0x18e)][_0x12f9b1(0x1a8)](exports[_0x12f9b1(0x1f8)],_0x1046ae,_0x4bb107);return _0x1d31a2[_0x12f9b1(0x17b)](),this['_entities'][_0x12f9b1(0x206)](_0x1046ae,_0x1d31a2),_0x1d31a2;}},exports[_0x12f82e(0x166)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x9e342b=>(_0x9e342b[_0x12f82e(0x150)]='offline',_0x9e342b['IDLE']='idle',_0x9e342b['FOLLOWING']=_0x12f82e(0x158),_0x9e342b[_0x12f82e(0x161)]=_0x12f82e(0x1f0),_0x9e342b[_0x12f82e(0x19a)]=_0x12f82e(0x143),_0x9e342b))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x12f82e(0x20e)]{constructor(_0x155913,_0x1e87b6,_0x2cc75f,_0x4887ce,_0x54bf30){const _0x3d8215=_0x12f82e;super(),_(this,_0x3d8215(0x141),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x3d8215(0x141)][_0x3d8215(0x162)]()),_(this,_0x3d8215(0x19f),!0x1),_(this,'_commandDisposable',null),_(this,_0x3d8215(0x149),null),(this[_0x3d8215(0x1d0)]=_0x155913,this[_0x3d8215(0x155)]=_0x1e87b6,this[_0x3d8215(0x205)]=_0x2cc75f,this[_0x3d8215(0x195)]=_0x4887ce,this[_0x3d8215(0x1c2)]=_0x54bf30);}get[_0x12f82e(0x1da)](){const _0x5d5ab5=_0x12f82e;return this[_0x5d5ab5(0x141)][_0x5d5ab5(0x207)]();}[_0x12f82e(0x14c)](){const _0x21ced9=_0x12f82e;var _0x2dbdbc;(_0x2dbdbc=this[_0x21ced9(0x152)])==null||_0x2dbdbc[_0x21ced9(0x14c)](),this[_0x21ced9(0x141)][_0x21ced9(0x18b)](_0x21ced9(0x1f4)),this[_0x21ced9(0x141)][_0x21ced9(0x1de)]();}[_0x12f82e(0x16f)](){const _0xb03cc0=_0x12f82e;return this[_0xb03cc0(0x1da)];}['init'](){const _0x13e9f7=_0x12f82e;this[_0x13e9f7(0x19f)]||(this[_0x13e9f7(0x19f)]=!0x0,this['_collabSession'][_0x13e9f7(0x157)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x5d24eb=>{const _0x4cd108=_0x13e9f7;switch(_0x5d24eb){case b[_0x4cd108(0x18c)][_0x4cd108(0x150)]:this['_handleOffline']();break;case b[_0x4cd108(0x18c)][_0x4cd108(0x1cd)]:this[_0x4cd108(0x1fc)]();break;}}),this[_0x13e9f7(0x155)][_0x13e9f7(0x1c3)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x2ef593=>{const _0x204f72=_0x13e9f7,{eventID:_0x4820ad}=_0x2ef593;switch(_0x4820ad){case d[_0x204f72(0x1e0)][_0x204f72(0x1d9)]:this[_0x204f72(0x13e)](_0x2ef593);break;case d[_0x204f72(0x1e0)][_0x204f72(0x1b9)]:this[_0x204f72(0x1b7)](_0x2ef593);break;case d['CollaborationEvent'][_0x204f72(0x180)]:this[_0x204f72(0x20a)]();break;case d[_0x204f72(0x1e0)][_0x204f72(0x156)]:this[_0x204f72(0x16a)](_0x2ef593);break;}}));}[_0x12f82e(0x1d2)](){const _0xbbb99d=_0x12f82e;this['_collabSession'][_0xbbb99d(0x1b1)]({'eventID':d[_0xbbb99d(0x1e0)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xbbb99d(0x1d0)],'userID':this[_0xbbb99d(0x155)][_0xbbb99d(0x144)]()}},this['_unitID']);}[_0x12f82e(0x163)](){const _0x376e6f=_0x12f82e;this['_status']===_0x376e6f(0x143)&&(this[_0x376e6f(0x141)]['next']('idle'),this[_0x376e6f(0x155)][_0x376e6f(0x1b1)]({'eventID':d[_0x376e6f(0x1e0)][_0x376e6f(0x180)],'data':{'unitID':this[_0x376e6f(0x1d0)]}},this[_0x376e6f(0x1d0)]));}[_0x12f82e(0x1d5)](){const _0x3b14ab=_0x12f82e;this[_0x3b14ab(0x1da)]==='not-following'&&(this['_status$'][_0x3b14ab(0x18b)](_0x3b14ab(0x158)),this[_0x3b14ab(0x1e5)]());}[_0x12f82e(0x146)](){const _0x23c08d=_0x12f82e;this['_status']===_0x23c08d(0x158)&&this[_0x23c08d(0x1e4)]();}['_handleNewHost'](_0x4bf94d){const _0x2142cc=_0x12f82e,{presenter:_0x141e63}=_0x4bf94d[_0x2142cc(0x17d)],_0x4fb545=this['_collabSession'][_0x2142cc(0x144)]();this[_0x2142cc(0x149)]=_0x141e63,_0x141e63===_0x4fb545?(this[_0x2142cc(0x1e4)](),this['_startPresenting']()):this[_0x2142cc(0x1da)]!=='not-following'&&(this[_0x2142cc(0x1db)](),this[_0x2142cc(0x1e5)]());}[_0x12f82e(0x1b3)](){const _0x338c50=_0x12f82e,_0x235716={'eventID':d[_0x338c50(0x1e0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x338c50(0x155)][_0x338c50(0x1b1)](_0x235716,this[_0x338c50(0x1d0)]);}[_0x12f82e(0x20a)](){const _0x44f304=_0x12f82e;this[_0x44f304(0x149)]=null,this[_0x44f304(0x1da)]!==_0x44f304(0x143)&&this['_beIdle']();}[_0x12f82e(0x16a)](_0x5f52f4){const _0x1be33e=_0x12f82e;if(this[_0x1be33e(0x1da)]===_0x1be33e(0x158)&&this['_presenter']===_0x5f52f4[_0x1be33e(0x17d)][_0x1be33e(0x187)]){const _0x548072=d[_0x1be33e(0x200)](_0x5f52f4[_0x1be33e(0x17d)])[_0x1be33e(0x179)]['reverse']()[_0x1be33e(0x1d1)](_0x4472a4=>_0x4472a4['id']===C[_0x1be33e(0x17f)]['id']);if(_0x548072){const _0x346ea4=_0x548072[_0x1be33e(0x1a3)]['unitId'],_0x1fdd91=_0x548072['params'][_0x1be33e(0x1b0)]['id'];setTimeout(()=>{const _0x38ca75=_0x1be33e;this['_commandService'][_0x38ca75(0x1fd)](C[_0x38ca75(0x174)]['id'],{'unitId':_0x346ea4,'subUnitId':_0x1fdd91},{'fromCollab':!0x0});});}}}[_0x12f82e(0x176)](){const _0x15b8d9=_0x12f82e;this[_0x15b8d9(0x141)][_0x15b8d9(0x18b)](_0x15b8d9(0x143));const _0x4a13df=new Map(),_0x5651ac=this['_commandDisposable']=new o[(_0x15b8d9(0x1ba))]();_0x5651ac[_0x15b8d9(0x182)](o['toDisposable'](()=>{const _0x62ecac=_0x15b8d9;_0x4a13df[_0x62ecac(0x167)](_0x4df896=>_0x4df896[_0x62ecac(0x1de)]()),_0x4a13df[_0x62ecac(0x16e)]();})),_0x5651ac[_0x15b8d9(0x182)](this[_0x15b8d9(0x1c2)][_0x15b8d9(0x1e3)](_0x43c342=>{const _0x1fb2d8=_0x15b8d9;var _0x1a820a;if(_0x43c342[_0x1fb2d8(0x1c7)]!==o['CommandType']['OPERATION']||!this[_0x1fb2d8(0x195)][_0x1fb2d8(0x202)](_0x43c342['id']))return;const {id:_0x32f700}=_0x43c342;let _0x55cb47;_0x4a13df[_0x1fb2d8(0x1f9)](_0x32f700)?_0x55cb47=_0x4a13df[_0x1fb2d8(0x15e)](_0x32f700):(_0x55cb47=new O['Subject'](),_0x4a13df[_0x1fb2d8(0x206)](_0x32f700,_0x55cb47),_0x55cb47[_0x1fb2d8(0x1d7)](I[_0x1fb2d8(0x171)]((_0x1a820a=this[_0x1fb2d8(0x205)][_0x1fb2d8(0x1a1)](k))!=null?_0x1a820a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x46fc65=>{const _0x4005d9=_0x1fb2d8;this[_0x4005d9(0x155)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4005d9(0x1d0)],'operations':{[_0x46fc65['id']]:{'id':_0x46fc65['id'],'params':JSON[_0x4005d9(0x1ab)](_0x46fc65[_0x4005d9(0x1a3)])}}}},this[_0x4005d9(0x1d0)]);})),_0x55cb47[_0x1fb2d8(0x18b)](_0x43c342);})),this[_0x15b8d9(0x195)][_0x15b8d9(0x19e)](this[_0x15b8d9(0x1d0)])[_0x15b8d9(0x167)](_0x8a33fe=>this[_0x15b8d9(0x155)]['send']({'eventID':d[_0x15b8d9(0x1e0)][_0x15b8d9(0x1b9)],'data':{'unitID':this[_0x15b8d9(0x1d0)],'operations':{[_0x8a33fe['id']]:{'id':_0x8a33fe['id'],'params':JSON['stringify'](_0x8a33fe[_0x15b8d9(0x1a3)])}}}},this[_0x15b8d9(0x1d0)]));}[_0x12f82e(0x1db)](){const _0x3b5ba5=_0x12f82e;var _0x26ef56;this[_0x3b5ba5(0x141)][_0x3b5ba5(0x18b)](_0x3b5ba5(0x1f4)),(_0x26ef56=this[_0x3b5ba5(0x152)])==null||_0x26ef56['dispose'](),this[_0x3b5ba5(0x152)]=null;}[_0x12f82e(0x1e5)](){const _0x41919e=_0x12f82e;var _0x1af539;(_0x1af539=this['_commandDisposable'])==null||_0x1af539[_0x41919e(0x14c)](),this[_0x41919e(0x141)]['next']('following');}[_0x12f82e(0x1ad)](){const _0x4ce764=_0x12f82e;var _0x39efe9;this[_0x4ce764(0x141)][_0x4ce764(0x18b)](_0x4ce764(0x1f4)),(_0x39efe9=this['_commandDisposable'])==null||_0x39efe9[_0x4ce764(0x14c)](),this['_commandDisposable']=null;}[_0x12f82e(0x1e4)](){const _0x433c4c=_0x12f82e;var _0x131823;this[_0x433c4c(0x141)]['next'](_0x433c4c(0x1f0)),(_0x131823=this[_0x433c4c(0x152)])==null||_0x131823[_0x433c4c(0x14c)]();}[_0x12f82e(0x1b7)](_0x395760){const _0x4d81fa=_0x12f82e;if(['presenting','not-following',_0x4d81fa(0x183)][_0x4d81fa(0x153)](this[_0x4d81fa(0x1da)])||!_0x395760[_0x4d81fa(0x17d)]['presenter']||_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x1ee)]===this[_0x4d81fa(0x155)]['getMemberID']())return;this[_0x4d81fa(0x1da)]==='idle'&&this[_0x4d81fa(0x1e5)]();const _0x2b2aca=_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x209)];Object['values'](_0x2b2aca)[_0x4d81fa(0x167)](_0x532b03=>{const _0x51adf3=_0x4d81fa;this[_0x51adf3(0x1c2)]['executeCommand'](_0x532b03['id'],_0x532b03[_0x51adf3(0x1a3)]?JSON[_0x51adf3(0x1f5)](_0x532b03['params']):null,{'fromCollab':!0x0});});}[_0x12f82e(0x1ae)](){const _0x559e3c=_0x12f82e;var _0x5733a2;this[_0x559e3c(0x141)][_0x559e3c(0x18b)](_0x559e3c(0x183)),(_0x5733a2=this[_0x559e3c(0x152)])==null||_0x5733a2[_0x559e3c(0x14c)]();}['_handleOnline'](){const _0x25a6f0=_0x12f82e;this[_0x25a6f0(0x141)][_0x25a6f0(0x18b)](_0x25a6f0(0x1f4)),this[_0x25a6f0(0x1b3)]();}},exports[_0x12f82e(0x1f8)]=P([S(0x2,o[_0x12f82e(0x208)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x12f82e(0x1f8)]);function $(){const _0x31535f=_0x12f82e,_0x2f5efa=p[_0x31535f(0x16b)](exports['LiveShareController']),_0x4c4ed6=p['useDependency'](o['IUniverInstanceService']),_0x1acdcf=p['useObservable'](()=>_0x4c4ed6[_0x31535f(0x18a)](o[_0x31535f(0x191)][_0x31535f(0x1cb)]),void 0x0,!0x1,[]),[_0x2f26b7,_0x584960]=v[_0x31535f(0x172)](null),[_0x27a7ae,_0x550c50]=v['useState'](u[_0x31535f(0x14f)]),_0x2ad5b9=v['useRef'](null);return v[_0x31535f(0x192)](()=>(_0x1acdcf&&_0x2f5efa[_0x31535f(0x177)](_0x1acdcf[_0x31535f(0x147)]())[_0x31535f(0x1a5)](_0x11fb8e=>{const _0x593d8d=_0x31535f;_0x584960(_0x11fb8e),_0x2ad5b9[_0x593d8d(0x14a)]=_0x11fb8e['status$']['subscribe'](_0x4a9e62=>{_0x550c50(_0x4a9e62);});}),()=>{const _0x12ce0c=_0x31535f;var _0x413077;(_0x413077=_0x2ad5b9[_0x12ce0c(0x14a)])==null||_0x413077[_0x12ce0c(0x18d)](),_0x2ad5b9[_0x12ce0c(0x14a)]=null;}),[_0x1acdcf,_0x2f5efa]),_0x2f26b7?l['jsx'](f[_0x31535f(0x184)],{'align':_0x31535f(0x14d),'disabled':_0x27a7ae===u[_0x31535f(0x150)],'className':_0x31535f(0x1a4),'overlay':l['jsx'](W,{'status':_0x27a7ae,'coordinator':_0x2f26b7}),'children':l[_0x31535f(0x1ea)]('button',{'className':f[_0x31535f(0x1d8)](_0x31535f(0x1a6),{'univer-cursor-not-allowed':_0x27a7ae===u[_0x31535f(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a7ae!==u[_0x31535f(0x150)]}),'type':_0x31535f(0x1d3),'children':l[_0x31535f(0x1ea)](R,{'className':'univer-size-4'})})}):null;}function W(_0x436e05){const _0x2048dd=_0x12f82e,{status:_0x3081f9,coordinator:_0xb0b951}=_0x436e05;switch(_0x3081f9){case u[_0x2048dd(0x14f)]:return l[_0x2048dd(0x1ea)](G,{'coordinator':_0xb0b951});case u['FOLLOWING']:return l[_0x2048dd(0x1ea)](B,{'coordinator':_0xb0b951});case u[_0x2048dd(0x161)]:return l[_0x2048dd(0x1ea)](Y,{'coordinator':_0xb0b951});case u['OFFLINE']:return l[_0x2048dd(0x1ea)](J,{});case u[_0x2048dd(0x19a)]:return l['jsx'](Z,{'coordinator':_0xb0b951});default:return null;}}function G(_0x3971f8){const _0x5aec32=_0x12f82e,{coordinator:_0x51c1c2}=_0x3971f8;return l[_0x5aec32(0x190)](l[_0x5aec32(0x1b5)],{'children':[l['jsx'](_0x5aec32(0x1ef),{'className':_0x5aec32(0x201),'children':'Present\x20this\x20document'}),l[_0x5aec32(0x1ea)](f[_0x5aec32(0x1ce)],{'onClick':()=>_0x51c1c2[_0x5aec32(0x1d2)](),'children':_0x5aec32(0x194)})]});}function B(_0x1112a4){const _0x3c7bc4=_0x12f82e,{coordinator:_0x5de80}=_0x1112a4;return l['jsxs'](l['Fragment'],{'children':[l[_0x3c7bc4(0x1ea)]('div',{'className':_0x3c7bc4(0x201),'children':_0x3c7bc4(0x199)}),l[_0x3c7bc4(0x1ea)](f[_0x3c7bc4(0x1ce)],{'onClick':()=>_0x5de80[_0x3c7bc4(0x146)](),'children':_0x3c7bc4(0x1f6)})]});}function Y(_0x4da901){const _0x43e432=_0x12f82e,{coordinator:_0x3e39ab}=_0x4da901;return l[_0x43e432(0x190)](l[_0x43e432(0x1b5)],{'children':[l[_0x43e432(0x1ea)](_0x43e432(0x1ef),{'className':_0x43e432(0x201),'children':_0x43e432(0x160)}),l['jsx'](f[_0x43e432(0x1ce)],{'variant':'text','onClick':()=>_0x3e39ab[_0x43e432(0x1d5)](),'children':_0x43e432(0x1ca)})]});}function Z(_0x4b31fd){const _0x2d35f9=_0x12f82e,{coordinator:_0x2bdfcc}=_0x4b31fd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x2d35f9(0x201),'children':_0x2d35f9(0x1c9)}),l['jsx'](f['Button'],{'variant':'default','onClick':()=>_0x2bdfcc[_0x2d35f9(0x163)](),'children':_0x2d35f9(0x140)})]});}function J(){const _0x1038f2=_0x12f82e;return l[_0x1038f2(0x1ea)](l[_0x1038f2(0x1b5)],{'children':_0x1038f2(0x1c8)});}var K=Object[_0x12f82e(0x188)],z=(_0x2d47c2,_0x4c8d57,_0x1aeb6f,_0x3a2d0c)=>{const _0x4128f3=_0x12f82e;for(var _0x56ca41=_0x3a2d0c>0x1?void 0x0:_0x3a2d0c?K(_0x4c8d57,_0x1aeb6f):_0x4c8d57,_0x1547ba=_0x2d47c2[_0x4128f3(0x196)]-0x1,_0x5c2d26;_0x1547ba>=0x0;_0x1547ba--)(_0x5c2d26=_0x2d47c2[_0x1547ba])&&(_0x56ca41=_0x5c2d26(_0x56ca41)||_0x56ca41);return _0x56ca41;},L=(_0xd78a76,_0x15b83b)=>(_0x4b8f2a,_0x328071)=>_0x15b83b(_0x4b8f2a,_0x328071,_0xd78a76);exports[_0x12f82e(0x186)]=class extends o[_0x12f82e(0x1eb)]{constructor(_0x3dc07e,_0x401b0c){const _0x272655=_0x12f82e;super(),this['_injector']=_0x3dc07e,this[_0x272655(0x1b6)]=_0x401b0c,this[_0x272655(0x16c)]();}[_0x12f82e(0x16c)](){const _0x472668=_0x12f82e;this[_0x472668(0x1dd)](this[_0x472668(0x1b6)]['registerComponent'](p[_0x472668(0x19c)][_0x472668(0x1f3)],()=>p[_0x472668(0x1e8)]($,this[_0x472668(0x18e)])));}},exports[_0x12f82e(0x186)]=z([L(0x0,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),L(0x1,p[_0x12f82e(0x1df)])],exports[_0x12f82e(0x186)]);const Q=_0x12f82e(0x170),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xd7cb92,_0x2680b8,_0x232125,_0x53daad)=>{const _0x5bba22=_0x12f82e;for(var _0x2e0da3=_0x53daad>0x1?void 0x0:_0x53daad?X(_0x2680b8,_0x232125):_0x2680b8,_0x33d36a=_0xd7cb92[_0x5bba22(0x196)]-0x1,_0x2be649;_0x33d36a>=0x0;_0x33d36a--)(_0x2be649=_0xd7cb92[_0x33d36a])&&(_0x2e0da3=_0x2be649(_0x2e0da3)||_0x2e0da3);return _0x2e0da3;},te=(_0x307ead,_0x5283a9)=>(_0x54df7c,_0x526b2f)=>_0x5283a9(_0x54df7c,_0x526b2f,_0x307ead);let m=class extends o[_0x12f82e(0x1eb)]{constructor(_0x57a1ec){const _0x3f2e7c=_0x12f82e;super(),this[_0x3f2e7c(0x195)]=_0x57a1ec,this[_0x3f2e7c(0x19f)]();}['_init'](){const _0x54e40d=_0x12f82e;[D[_0x54e40d(0x1a2)]['id'],D[_0x54e40d(0x1b8)]['id'],C[_0x54e40d(0x174)]['id']][_0x54e40d(0x167)](_0x3d5e3b=>{const _0x554950=_0x54e40d;this[_0x554950(0x1dd)](this[_0x554950(0x195)][_0x554950(0x1bd)](_0x3d5e3b));});}};m=ee([te(0x0,o[_0x12f82e(0x169)](E))],m);var ie=Object[_0x12f82e(0x20c)],se=Object[_0x12f82e(0x188)],ne=(_0x2f10fc,_0x27c368,_0x3e6147)=>_0x27c368 in _0x2f10fc?ie(_0x2f10fc,_0x27c368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6147}):_0x2f10fc[_0x27c368]=_0x3e6147,re=(_0x3c3bc3,_0x50dba5,_0x1a9f1d,_0x42ead9)=>{const _0x1e93df=_0x12f82e;for(var _0x27bc6=_0x42ead9>0x1?void 0x0:_0x42ead9?se(_0x50dba5,_0x1a9f1d):_0x50dba5,_0x581e27=_0x3c3bc3[_0x1e93df(0x196)]-0x1,_0x2f73d4;_0x581e27>=0x0;_0x581e27--)(_0x2f73d4=_0x3c3bc3[_0x581e27])&&(_0x27bc6=_0x2f73d4(_0x27bc6)||_0x27bc6);return _0x27bc6;},N=(_0x2611d9,_0x3ee6ed)=>(_0x46ac15,_0x23ce83)=>_0x3ee6ed(_0x46ac15,_0x23ce83,_0x2611d9),A=(_0x36639a,_0x33cf4d,_0x11e8e7)=>ne(_0x36639a,typeof _0x33cf4d!=_0x12f82e(0x154)?_0x33cf4d+'':_0x33cf4d,_0x11e8e7);const oe=_0x12f82e(0x1f2);exports[_0x12f82e(0x13f)]=class extends o[_0x12f82e(0x13c)]{constructor(_0x33449e=w,_0x19a831,_0x410b5b){const _0x2222e4=_0x12f82e;super(),this[_0x2222e4(0x15f)]=_0x33449e,this[_0x2222e4(0x18e)]=_0x19a831,this[_0x2222e4(0x205)]=_0x410b5b;const {..._0x47a14c}=o[_0x2222e4(0x1e6)]({},w,this[_0x2222e4(0x15f)]);this[_0x2222e4(0x205)][_0x2222e4(0x142)](Q,_0x47a14c);}[_0x12f82e(0x148)](){const _0x1437ba=_0x12f82e;o[_0x1437ba(0x1e2)](this['_injector'],o[_0x1437ba(0x1f1)]([[E],[exports[_0x1437ba(0x166)]],[m],[exports[_0x1437ba(0x186)]]],this[_0x1437ba(0x15f)][_0x1437ba(0x203)])),o['touchDependencies'](this[_0x1437ba(0x18e)],[[m]]);}['onRendered'](){const _0x48f0bd=_0x12f82e;o[_0x48f0bd(0x20d)](this['_injector'],[[exports[_0x48f0bd(0x186)]]]);}},A(exports[_0x12f82e(0x13f)],'type',o[_0x12f82e(0x191)][_0x12f82e(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x12f82e(0x13f)]=re([o['DependentOn'](b[_0x12f82e(0x20b)]),N(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),N(0x2,o['IConfigService'])],exports[_0x12f82e(0x13f)]),exports[_0x12f82e(0x1e9)]=$,exports[_0x12f82e(0x15c)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'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':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x558774=_0x4ed5;(function(_0x1b1696,_0x333ae4){const _0x376567=_0x4ed5,_0x55c329=_0x1b1696();while(!![]){try{const _0x5902e4=-parseInt(_0x376567(0x130))/0x1+-parseInt(_0x376567(0x12d))/0x2*(-parseInt(_0x376567(0x135))/0x3)+-parseInt(_0x376567(0x131))/0x4+parseInt(_0x376567(0x11c))/0x5+-parseInt(_0x376567(0x138))/0x6*(-parseInt(_0x376567(0x123))/0x7)+-parseInt(_0x376567(0x134))/0x8*(-parseInt(_0x376567(0x11f))/0x9)+parseInt(_0x376567(0x127))/0xa;if(_0x5902e4===_0x333ae4)break;else _0x55c329['push'](_0x55c329['shift']());}catch(_0x249a4d){_0x55c329['push'](_0x55c329['shift']());}}}(_0x3f1e,0xe2d5f));function _0x4ed5(_0x3bed8d,_0x41cc61){_0x3bed8d=_0x3bed8d-0x119;const _0x3f1eae=_0x3f1e();let _0x4ed518=_0x3f1eae[_0x3bed8d];return _0x4ed518;}import{LiveShareController as _0x706cbc,LiveShareStatus as _0x1f386b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x560fed}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xadfe7e}from'@univerjs/sheets';import{SetScrollOperation as _0x455144}from'@univerjs/sheets-ui';import{FRange as _0x223b0a}from'@univerjs/sheets/facade';import{FUniver as _0x554deb,FEnum as _0x220dfa}from'@univerjs/core/facade';class I extends _0x223b0a{['_initialize'](_0xbc4cb0,_0x3a9d6b,_0x1be57c,_0x307268,_0xf03a1b){const _0x1f88e5=_0x4ed5,_0x5995b6=_0xbc4cb0[_0x1f88e5(0x11a)](_0x706cbc),_0x5b06f0=_0xbc4cb0[_0x1f88e5(0x11a)](_0x560fed),_0x47fba3=_0x3a9d6b['getUnitId'](),_0x3b820a=_0x3a9d6b[_0x1f88e5(0x11d)](),_0x55b194=_0x5995b6['getLiveShareCoordinatorSync'](_0x47fba3);(_0x55b194==null?void 0x0:_0x55b194['getStatus']())!==_0x1f386b[_0x1f88e5(0x139)]||(_0x1be57c[_0x1f88e5(0x137)]()!==_0x3b820a['getSheetId']()&&this[_0x1f88e5(0x12b)][_0x1f88e5(0x13a)](_0xadfe7e['id'],{'unitId':_0x47fba3,'subUnitId':_0x1be57c[_0x1f88e5(0x137)]()}),!_0x5b06f0[_0x1f88e5(0x121)](_0x47fba3))||_0xf03a1b[_0x1f88e5(0x11e)](_0x455144['id'],{'unitId':_0x3a9d6b[_0x1f88e5(0x124)](),'sheetId':_0x1be57c[_0x1f88e5(0x137)](),'sheetViewStartRow':_0x307268[_0x1f88e5(0x129)],'sheetViewStartColumn':_0x307268[_0x1f88e5(0x11b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x223b0a['extend'](I);class m extends _0x554deb{['getLiveShareStatus'](){const _0x41ea92=_0x4ed5;var _0x787a74,_0x4815ef;const _0x3b1688=this[_0x41ea92(0x13b)][_0x41ea92(0x11a)](_0x706cbc),_0x385229=(_0x787a74=this['getActiveWorkbook']())==null?void 0x0:_0x787a74['getId']();if(!_0x385229)throw new Error(_0x41ea92(0x12f));const _0x57b783=_0x3b1688[_0x41ea92(0x128)](_0x385229);return(_0x4815ef=_0x57b783==null?void 0x0:_0x57b783[_0x41ea92(0x136)]())!=null?_0x4815ef:_0x1f386b[_0x41ea92(0x120)];}[_0x558774(0x122)](){const _0x5acae0=_0x558774;var _0x30b452;const _0x56e363=this[_0x5acae0(0x13b)][_0x5acae0(0x11a)](_0x706cbc),_0x61f98e=(_0x30b452=this[_0x5acae0(0x132)]())==null?void 0x0:_0x30b452[_0x5acae0(0x133)]();if(!_0x61f98e)throw new Error(_0x5acae0(0x12f));const _0x39a64b=_0x56e363['getLiveShareCoordinatorSync'](_0x61f98e);if(!_0x39a64b)throw new Error(_0x5acae0(0x12a));_0x39a64b['startFollowing']();}[_0x558774(0x126)](){const _0x5d7112=_0x558774;var _0x1c293d;const _0x3a7381=this[_0x5d7112(0x13b)]['get'](_0x706cbc),_0x46c08a=(_0x1c293d=this[_0x5d7112(0x132)]())==null?void 0x0:_0x1c293d[_0x5d7112(0x133)]();if(!_0x46c08a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b65e9=_0x3a7381[_0x5d7112(0x128)](_0x46c08a);if(!_0x4b65e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b65e9[_0x5d7112(0x126)]();}[_0x558774(0x12e)](){const _0x10e387=_0x558774;var _0x97a9bf;const _0x2f517e=this[_0x10e387(0x13b)][_0x10e387(0x11a)](_0x706cbc),_0x391e2c=(_0x97a9bf=this[_0x10e387(0x132)]())==null?void 0x0:_0x97a9bf['getId']();if(!_0x391e2c)throw new Error(_0x10e387(0x12f));const _0x311fe2=_0x2f517e[_0x10e387(0x128)](_0x391e2c);if(!_0x311fe2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x311fe2['tryStartPresenting']();}[_0x558774(0x119)](){const _0x10cbcf=_0x558774;var _0xbe0776;const _0x2a000a=this[_0x10cbcf(0x13b)][_0x10cbcf(0x11a)](_0x706cbc),_0x5dd0f8=(_0xbe0776=this[_0x10cbcf(0x132)]())==null?void 0x0:_0xbe0776[_0x10cbcf(0x133)]();if(!_0x5dd0f8)throw new Error(_0x10cbcf(0x12f));const _0x404381=_0x2a000a[_0x10cbcf(0x128)](_0x5dd0f8);if(!_0x404381)throw new Error(_0x10cbcf(0x12a));_0x404381[_0x10cbcf(0x119)]();}}_0x554deb[_0x558774(0x12c)](m);function _0x3f1e(){const _0x3851ec=['PRESENTING','executeCommand','_injector','stopPresenting','get','startColumn','7696885WxekRx','getActiveSheet','syncExecuteCommand','225DkzKsC','IDLE','getRenderById','startFollowing','59885XShwBl','getUnitId','LiveShareStatusEnum','stopFollowing','8905060JMVakH','getLiveShareCoordinatorSync','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','extend','63744fvqYsa','startPresenting','No\x20active\x20workbook\x20found.','892270ylUeOq','6239960QoLJTC','getActiveWorkbook','getId','271144flcHhf','9nPVPZR','getStatus','getSheetId','6EVLvcK'];_0x3f1e=function(){return _0x3851ec;};return _0x3f1e();}class C extends _0x220dfa{get[_0x558774(0x125)](){return _0x1f386b;}}_0x220dfa[_0x558774(0x12c)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'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':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ef4cc,_0x5228b2){const _0x32202a=_0x12fa,_0xfc85ed=_0x5ef4cc();while(!![]){try{const _0x33961c=parseInt(_0x32202a(0xf9))/0x1*(-parseInt(_0x32202a(0x104))/0x2)+parseInt(_0x32202a(0x103))/0x3*(parseInt(_0x32202a(0x100))/0x4)+parseInt(_0x32202a(0xf8))/0x5+parseInt(_0x32202a(0xe2))/0x6*(parseInt(_0x32202a(0xfa))/0x7)+parseInt(_0x32202a(0xe3))/0x8+parseInt(_0x32202a(0xe0))/0x9*(parseInt(_0x32202a(0xf0))/0xa)+-parseInt(_0x32202a(0xfb))/0xb;if(_0x33961c===_0x5228b2)break;else _0xfc85ed['push'](_0xfc85ed['shift']());}catch(_0x37ad6f){_0xfc85ed['push'](_0xfc85ed['shift']());}}}(_0x3ae0,0x80d61),function(_0x455933,_0x1ca851){const _0x6953ca=_0x12fa;typeof exports==_0x6953ca(0xd5)&&typeof module<'u'?_0x1ca851(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x6953ca(0xe8)&&define[_0x6953ca(0x105)]?define([_0x6953ca(0xd6),'@univerjs/engine-render','@univerjs/sheets',_0x6953ca(0xfe),_0x6953ca(0xd3),_0x6953ca(0xf6)],_0x1ca851):(_0x455933=typeof globalThis<'u'?globalThis:_0x455933||self,_0x1ca851(_0x455933[_0x6953ca(0x102)],_0x455933[_0x6953ca(0xda)],_0x455933[_0x6953ca(0xea)],_0x455933[_0x6953ca(0xe4)],_0x455933[_0x6953ca(0xff)],_0x455933[_0x6953ca(0xee)]));}(this,function(_0x80fff,_0x521c2e,_0x53f828,_0x41f39b,_0x23e4ea,_0x2eb9a3){'use strict';const _0x43e474=_0x12fa;class _0xa1278c extends _0x23e4ea[_0x43e474(0xec)]{['_initialize'](_0x59b316,_0x59eac3,_0x5f9ba2,_0xbf73b3,_0x399b15){const _0x4f866c=_0x43e474,_0x295448=_0x59b316[_0x4f866c(0xfd)](_0x80fff[_0x4f866c(0xef)]),_0x5517d6=_0x59b316[_0x4f866c(0xfd)](_0x521c2e[_0x4f866c(0xd8)]),_0x30d05f=_0x59eac3[_0x4f866c(0xd9)](),_0x532de3=_0x59eac3[_0x4f866c(0xf4)](),_0x2da3a3=_0x295448[_0x4f866c(0xd7)](_0x30d05f);(_0x2da3a3==null?void 0x0:_0x2da3a3[_0x4f866c(0xf3)]())!==_0x80fff[_0x4f866c(0xd4)][_0x4f866c(0x101)]||(_0x5f9ba2[_0x4f866c(0xdb)]()!==_0x532de3['getSheetId']()&&this[_0x4f866c(0xf5)][_0x4f866c(0x106)](_0x53f828[_0x4f866c(0xf1)]['id'],{'unitId':_0x30d05f,'subUnitId':_0x5f9ba2[_0x4f866c(0xdb)]()}),!_0x5517d6[_0x4f866c(0x107)](_0x30d05f))||_0x399b15['syncExecuteCommand'](_0x41f39b[_0x4f866c(0xe6)]['id'],{'unitId':_0x59eac3[_0x4f866c(0xd9)](),'sheetId':_0x5f9ba2[_0x4f866c(0xdb)](),'sheetViewStartRow':_0xbf73b3['startRow'],'sheetViewStartColumn':_0xbf73b3[_0x4f866c(0xe5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23e4ea[_0x43e474(0xec)]['extend'](_0xa1278c);class _0x286397 extends _0x2eb9a3['FUniver']{[_0x43e474(0xf2)](){const _0x27f0d8=_0x43e474;var _0x2ad2b8,_0x38a126;const _0x538308=this[_0x27f0d8(0xe1)]['get'](_0x80fff['LiveShareController']),_0x59dc33=(_0x2ad2b8=this['getActiveWorkbook']())==null?void 0x0:_0x2ad2b8[_0x27f0d8(0xfc)]();if(!_0x59dc33)throw new Error(_0x27f0d8(0xe9));const _0x1b5b54=_0x538308[_0x27f0d8(0xd7)](_0x59dc33);return(_0x38a126=_0x1b5b54==null?void 0x0:_0x1b5b54[_0x27f0d8(0xf3)]())!=null?_0x38a126:_0x80fff['LiveShareStatus'][_0x27f0d8(0xed)];}[_0x43e474(0xdf)](){const _0x22c600=_0x43e474;var _0x4be665;const _0x1ef968=this['_injector'][_0x22c600(0xfd)](_0x80fff['LiveShareController']),_0x1c7cdf=(_0x4be665=this[_0x22c600(0xeb)]())==null?void 0x0:_0x4be665[_0x22c600(0xfc)]();if(!_0x1c7cdf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f8f44=_0x1ef968[_0x22c600(0xd7)](_0x1c7cdf);if(!_0x2f8f44)throw new Error(_0x22c600(0xe7));_0x2f8f44[_0x22c600(0xdf)]();}[_0x43e474(0x108)](){const _0x4264b3=_0x43e474;var _0x48b1aa;const _0x5ec506=this[_0x4264b3(0xe1)][_0x4264b3(0xfd)](_0x80fff['LiveShareController']),_0x369471=(_0x48b1aa=this[_0x4264b3(0xeb)]())==null?void 0x0:_0x48b1aa['getId']();if(!_0x369471)throw new Error(_0x4264b3(0xe9));const _0x222045=_0x5ec506[_0x4264b3(0xd7)](_0x369471);if(!_0x222045)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x222045[_0x4264b3(0x108)]();}['startPresenting'](){const _0x28e7c6=_0x43e474;var _0x46a378;const _0x52080b=this[_0x28e7c6(0xe1)]['get'](_0x80fff[_0x28e7c6(0xef)]),_0x3598f1=(_0x46a378=this[_0x28e7c6(0xeb)]())==null?void 0x0:_0x46a378['getId']();if(!_0x3598f1)throw new Error(_0x28e7c6(0xe9));const _0x4a86bd=_0x52080b['getLiveShareCoordinatorSync'](_0x3598f1);if(!_0x4a86bd)throw new Error(_0x28e7c6(0xe7));_0x4a86bd[_0x28e7c6(0xdd)]();}['stopPresenting'](){const _0x59178b=_0x43e474;var _0x4e41dd;const _0x604ad8=this['_injector'][_0x59178b(0xfd)](_0x80fff[_0x59178b(0xef)]),_0x1c7171=(_0x4e41dd=this[_0x59178b(0xeb)]())==null?void 0x0:_0x4e41dd[_0x59178b(0xfc)]();if(!_0x1c7171)throw new Error(_0x59178b(0xe9));const _0x235aca=_0x604ad8[_0x59178b(0xd7)](_0x1c7171);if(!_0x235aca)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x235aca[_0x59178b(0xdc)]();}}_0x2eb9a3['FUniver']['extend'](_0x286397);class _0x3403f9 extends _0x2eb9a3[_0x43e474(0xde)]{get[_0x43e474(0xf7)](){const _0x4db5ce=_0x43e474;return _0x80fff[_0x4db5ce(0xd4)];}}_0x2eb9a3[_0x43e474(0xde)]['extend'](_0x3403f9);}));function _0x12fa(_0x379f86,_0x6fc317){_0x379f86=_0x379f86-0xd3;const _0x3ae02f=_0x3ae0();let _0x12fa3=_0x3ae02f[_0x379f86];return _0x12fa3;}function _0x3ae0(){const _0x216360=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','function','No\x20active\x20workbook\x20found.','UniverSheets','getActiveWorkbook','FRange','IDLE','UniverCoreFacade','LiveShareController','1500Xplwrm','SetWorksheetActiveOperation','getLiveShareStatus','getStatus','getActiveSheet','_commandService','@univerjs/core/facade','LiveShareStatusEnum','2675575hLnfae','13xUqzCO','14XbnPsW','10535690zQLLFE','getId','get','@univerjs/sheets-ui','UniverSheetsFacade','2340808CvuMdy','PRESENTING','UniverProLiveShare','3LbXAgg','136438vglnQc','amd','executeCommand','getRenderById','stopFollowing','@univerjs/sheets/facade','LiveShareStatus','object','@univerjs-pro/live-share','getLiveShareCoordinatorSync','IRenderManagerService','getUnitId','UniverEngineRender','getSheetId','stopPresenting','tryStartPresenting','FEnum','startFollowing','18774DnuFXB','_injector','2299356IdkHid','1381448xOeVfH','UniverSheetsUi','startColumn','SetScrollOperation'];_0x3ae0=function(){return _0x216360;};return _0x3ae0();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x23e6(_0x5cb0e4,_0x1d39a1){_0x5cb0e4=_0x5cb0e4-0xf8;const _0x21ce91=_0x21ce();let _0x23e611=_0x21ce91[_0x5cb0e4];return _0x23e611;}(function(_0x356d37,_0x509e8b){const _0x4d8cbe=_0x23e6,_0x2feb3e=_0x356d37();while(!![]){try{const _0x4f7c60=-parseInt(_0x4d8cbe(0x17b))/0x1*(-parseInt(_0x4d8cbe(0x149))/0x2)+parseInt(_0x4d8cbe(0x160))/0x3+-parseInt(_0x4d8cbe(0x19a))/0x4*(-parseInt(_0x4d8cbe(0x147))/0x5)+parseInt(_0x4d8cbe(0x129))/0x6*(-parseInt(_0x4d8cbe(0x1d2))/0x7)+-parseInt(_0x4d8cbe(0x14e))/0x8+-parseInt(_0x4d8cbe(0x18e))/0x9+parseInt(_0x4d8cbe(0x198))/0xa;if(_0x4f7c60===_0x509e8b)break;else _0x2feb3e['push'](_0x2feb3e['shift']());}catch(_0x1cf802){_0x2feb3e['push'](_0x2feb3e['shift']());}}}(_0x21ce,0x7d01c),function(_0x429a9b,_0x56793d){const _0x3bb9c2=_0x23e6;typeof exports=='object'&&typeof module<'u'?_0x56793d(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==_0x3bb9c2(0x110)&&define[_0x3bb9c2(0x199)]?define([_0x3bb9c2(0x166),_0x3bb9c2(0x19f),_0x3bb9c2(0x133),_0x3bb9c2(0x1de),_0x3bb9c2(0x16f),_0x3bb9c2(0x117),_0x3bb9c2(0x17f),_0x3bb9c2(0x1db),_0x3bb9c2(0x178),'rxjs',_0x3bb9c2(0x10f),_0x3bb9c2(0x15a)],_0x56793d):(_0x429a9b=typeof globalThis<'u'?globalThis:_0x429a9b||self,_0x56793d(_0x429a9b[_0x3bb9c2(0x18f)]={},_0x429a9b[_0x3bb9c2(0x17c)],_0x429a9b['UniverUi'],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x134)],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x1cf)],_0x429a9b['UniverProCollaborationClient'],_0x429a9b[_0x3bb9c2(0x1cb)],_0x429a9b['rxjs'],_0x429a9b['rxjs']['operators'],_0x429a9b[_0x3bb9c2(0x11f)]));}(this,function(_0x2624a2,_0x1ecc93,_0x20bfb3,_0x49ef39,_0x4e9136,_0x3dc61e,_0x2145d1,_0x30d3fc,_0x402b6a,_0x30a3d1,_0x302b58,_0x527f2d){'use strict';const _0x1d3409=_0x23e6;var _0x2899c0=Object[_0x1d3409(0x1bf)],_0x5a4486=(_0x465a80,_0x4cfac4,_0x1d3a6d)=>_0x4cfac4 in _0x465a80?_0x2899c0(_0x465a80,_0x4cfac4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3a6d}):_0x465a80[_0x4cfac4]=_0x1d3a6d,_0x107e1d=(_0x1b4e20,_0x139cda,_0x5ec2ab)=>_0x5a4486(_0x1b4e20,typeof _0x139cda!='symbol'?_0x139cda+'':_0x139cda,_0x5ec2ab);function _0x522857({ref:_0x426394,..._0x29f94d}){const _0x313e62=_0x1d3409,{icon:_0x108ee4,id:_0x1d5004,className:_0x37c5ba,extend:_0x1dda5a,..._0x2a958a}=_0x29f94d,_0x4ad367=(_0x313e62(0x1ab)+_0x1d5004+'\x20'+(_0x37c5ba||''))[_0x313e62(0x1a3)](),_0x50f2fd=_0x3dc61e[_0x313e62(0x19e)]('_'+_0x151b9c());return _0x16ea03(_0x108ee4,''+_0x1d5004,{'defIds':_0x108ee4[_0x313e62(0x1da)],'idSuffix':_0x50f2fd[_0x313e62(0x111)]},{'ref':_0x426394,'className':_0x4ad367,..._0x2a958a},_0x1dda5a);}function _0x16ea03(_0x7cfbf0,_0xe3b55b,_0x837c87,_0x2b119d,_0xf9fc9f){const _0x638c26=_0x1d3409;return _0x3dc61e[_0x638c26(0x189)](_0x7cfbf0[_0x638c26(0x16b)],{'key':_0xe3b55b,..._0x11575f(_0x7cfbf0,_0x837c87,_0xf9fc9f),..._0x2b119d},(_0x560615(_0x7cfbf0,_0x837c87)[_0x638c26(0x195)]||[])[_0x638c26(0x102)]((_0x3f4b90,_0x32204f)=>_0x16ea03(_0x3f4b90,_0xe3b55b+'-'+_0x7cfbf0[_0x638c26(0x16b)]+'-'+_0x32204f,_0x837c87,void 0x0,_0xf9fc9f)));}function _0x11575f(_0x1517bd,_0xcedd3d,_0x56ff64){const _0x281c36=_0x1d3409,_0x1bd5da={..._0x1517bd['attrs']};_0x56ff64!=null&&_0x56ff64[_0x281c36(0x11c)]&&_0x1bd5da['fill']==='colorChannel1'&&(_0x1bd5da['fill']=_0x56ff64[_0x281c36(0x11c)]),_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x12a)&&_0x1bd5da['id']&&(_0x1bd5da['id']=_0x1bd5da['id']+_0xcedd3d[_0x281c36(0x114)]),Object['entries'](_0x1bd5da)[_0x281c36(0x157)](([_0x1ef6d4,_0x475f19])=>{const _0x36f9af=_0x281c36;_0x1ef6d4==='mask'&&typeof _0x475f19==_0x36f9af(0x171)&&(_0x1bd5da[_0x1ef6d4]=_0x475f19[_0x36f9af(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d[_0x36f9af(0x114)]+')'));});const {defIds:_0x518c48}=_0xcedd3d;return!_0x518c48||_0x518c48[_0x281c36(0x163)]===0x0||(_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x16c)&&_0x1bd5da[_0x281c36(0xfa)]&&(_0x1bd5da[_0x281c36(0xfa)]=_0x1bd5da['xlink:href']+_0xcedd3d[_0x281c36(0x114)]),Object[_0x281c36(0x1c0)](_0x1bd5da)['forEach'](([_0x381c04,_0x359ac9])=>{const _0x35a43c=_0x281c36;typeof _0x359ac9==_0x35a43c(0x171)&&(_0x1bd5da[_0x381c04]=_0x359ac9[_0x35a43c(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d['idSuffix']+')'));})),_0x1bd5da;}function _0x560615(_0x2be612,_0x14e0da){const _0x4feff9=_0x1d3409;var _0x58e33;const {defIds:_0x16928e}=_0x14e0da;return!_0x16928e||_0x16928e[_0x4feff9(0x163)]===0x0?_0x2be612:_0x2be612['tag']===_0x4feff9(0x136)&&((_0x58e33=_0x2be612[_0x4feff9(0x195)])!=null&&_0x58e33['length'])?{..._0x2be612,'children':_0x2be612['children'][_0x4feff9(0x102)](_0x3b073c=>typeof _0x3b073c[_0x4feff9(0x12f)]['id']=='string'&&_0x16928e&&_0x16928e[_0x4feff9(0x165)](_0x3b073c[_0x4feff9(0x12f)]['id'])?{..._0x3b073c,'attrs':{..._0x3b073c[_0x4feff9(0x12f)],'id':_0x3b073c[_0x4feff9(0x12f)]['id']+_0x14e0da['idSuffix']}}:_0x3b073c)}:_0x2be612;}function _0x151b9c(){const _0x39f0c3=_0x1d3409;return Math[_0x39f0c3(0x143)]()[_0x39f0c3(0x170)](0x24)[_0x39f0c3(0x174)](0x2,0x8);}_0x522857[_0x1d3409(0x164)]='UniverIcon';const _0x596020={'tag':_0x1d3409(0x159),'attrs':{'xmlns':_0x1d3409(0x10b),'fill':_0x1d3409(0x187),'viewBox':_0x1d3409(0xfe),'width':_0x1d3409(0x131),'height':_0x1d3409(0x131)},'children':[{'tag':_0x1d3409(0x112),'attrs':{'fill':_0x1d3409(0x1a9),'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':_0x1d3409(0x112),'attrs':{'fill':'currentColor','d':_0x1d3409(0x1e0),'fillRule':_0x1d3409(0x1b6),'clipRule':_0x1d3409(0x1b6)}}]},_0x438601=_0x3dc61e['forwardRef'](function(_0x304379,_0x314d0c){const _0x59a675=_0x1d3409;return _0x3dc61e['createElement'](_0x522857,Object[_0x59a675(0x141)]({},_0x304379,{'id':'live-share-icon','ref':_0x314d0c,'icon':_0x596020}));});_0x438601[_0x1d3409(0x164)]=_0x1d3409(0x142);class _0x5e12fa extends _0x1ecc93[_0x1d3409(0x175)]{constructor(){const _0x52595c=_0x1d3409;super(...arguments),_0x107e1d(this,_0x52595c(0x137),new Set()),_0x107e1d(this,_0x52595c(0x14c),new Set());}[_0x1d3409(0x193)](_0x3ea4a3){const _0x30b41f=_0x1d3409;return this[_0x30b41f(0x137)][_0x30b41f(0x16e)](_0x3ea4a3),_0x1ecc93[_0x30b41f(0x169)](()=>this[_0x30b41f(0x137)][_0x30b41f(0x18d)](_0x3ea4a3));}[_0x1d3409(0x1c7)](_0x59e1ab){const _0x2462f7=_0x1d3409;return this['_reporters'][_0x2462f7(0x16e)](_0x59e1ab),_0x1ecc93[_0x2462f7(0x169)](()=>this[_0x2462f7(0x14c)]['delete'](_0x59e1ab));}['shouldShareOperation'](_0x28cefd){const _0x3e8e5d=_0x1d3409;return this['_sharedOperations'][_0x3e8e5d(0x158)](_0x28cefd);}[_0x1d3409(0x1c3)](_0x478388){const _0x41cb55=_0x1d3409;return Array['from'](this[_0x41cb55(0x14c)])[_0x41cb55(0x102)](_0x44c77b=>_0x44c77b(_0x478388));}}var _0xc98453=Object[_0x1d3409(0x1d0)],_0x55b41d=(_0x11b0b8,_0x1ace49,_0x171475,_0x1b843b)=>{const _0x340317=_0x1d3409;for(var _0x2bb8db=_0x1b843b>0x1?void 0x0:_0x1b843b?_0xc98453(_0x1ace49,_0x171475):_0x1ace49,_0x3acba2=_0x11b0b8[_0x340317(0x163)]-0x1,_0x42454f;_0x3acba2>=0x0;_0x3acba2--)(_0x42454f=_0x11b0b8[_0x3acba2])&&(_0x2bb8db=_0x42454f(_0x2bb8db)||_0x2bb8db);return _0x2bb8db;},_0x5a5b9f=(_0x1a7723,_0x3769d6)=>(_0x50305d,_0x4e2678)=>_0x3769d6(_0x50305d,_0x4e2678,_0x1a7723);_0x2624a2[_0x1d3409(0x190)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x4d9818,_0x4e1314,_0xc2f561){const _0x17a769=_0x1d3409;super(),_0x107e1d(this,_0x17a769(0x10a),new Map()),(this['_univerInstanceService']=_0x4d9818,this[_0x17a769(0x144)]=_0x4e1314,this['_collabSessionService']=_0xc2f561,this[_0x17a769(0x12b)]());}async[_0x1d3409(0xff)](_0x5c9096){const _0x304783=_0x1d3409;return this[_0x304783(0x10a)][_0x304783(0x158)](_0x5c9096)||await this['_startLiveShareCoordinator'](_0x5c9096),this['_entities'][_0x304783(0x122)](_0x5c9096);}[_0x1d3409(0x150)](_0x252d61){const _0x201980=_0x1d3409;var _0x2a5d12;return(_0x2a5d12=this['_entities'][_0x201980(0x122)](_0x252d61))!=null?_0x2a5d12:null;}['_init'](){const _0x55d0ff=_0x1d3409;this[_0x55d0ff(0x100)][_0x55d0ff(0x1a5)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this[_0x55d0ff(0x14a)]))[_0x55d0ff(0x1d7)](async _0x4a7f0e=>{const _0xfe3ccc=_0x55d0ff,_0x41d0f2=_0x4a7f0e[_0xfe3ccc(0x1d6)]();this[_0xfe3ccc(0x10a)]['has'](_0x41d0f2)||this['_startLiveShareCoordinator'](_0x41d0f2);}),this[_0x55d0ff(0x100)][_0x55d0ff(0x1af)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this['dispose$']))['subscribe'](_0x34f3f1=>{const _0x2f0e20=_0x55d0ff,_0x3c79f3=_0x34f3f1[_0x2f0e20(0x1d6)](),_0x1d1668=this['_entities'][_0x2f0e20(0x122)](_0x3c79f3);_0x1d1668==null||_0x1d1668[_0x2f0e20(0x172)]();});}async[_0x1d3409(0x116)](_0x40990f){const _0xab68b6=_0x1d3409,_0x57d0a4=await this['_collabSessionService'][_0xab68b6(0x19c)](_0x40990f),_0x508588=this[_0xab68b6(0x144)][_0xab68b6(0x176)](_0x2624a2[_0xab68b6(0x106)],_0x40990f,_0x57d0a4);return _0x508588[_0xab68b6(0x12c)](),this[_0xab68b6(0x10a)][_0xab68b6(0x1a4)](_0x40990f,_0x508588),_0x508588;}},_0x2624a2['LiveShareController']=_0x55b41d([_0x5a5b9f(0x0,_0x1ecc93[_0x1d3409(0x14f)]),_0x5a5b9f(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x11d)](_0x30d3fc['CollaborationSessionService']))],_0x2624a2[_0x1d3409(0x190)]);var _0x4d3fc0=(_0x3a13ed=>(_0x3a13ed[_0x1d3409(0x1ca)]='offline',_0x3a13ed[_0x1d3409(0x1d5)]=_0x1d3409(0x125),_0x3a13ed[_0x1d3409(0x101)]=_0x1d3409(0x15b),_0x3a13ed[_0x1d3409(0x1c2)]=_0x1d3409(0x104),_0x3a13ed[_0x1d3409(0x140)]='presenting',_0x3a13ed))(_0x4d3fc0||{});const _0xabffb9=_0x1d3409(0x13b),_0x227cf7=0xc8;_0x2624a2[_0x1d3409(0x106)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x30b331,_0x4f47c6,_0x44efc3,_0x1f33a9,_0x4a424e){const _0x54ed34=_0x1d3409;super(),_0x107e1d(this,'_status$',new _0x30a3d1[(_0x54ed34(0x13c))](_0x54ed34(0x125))),_0x107e1d(this,'status$',this[_0x54ed34(0x12d)][_0x54ed34(0x1e1)]()),_0x107e1d(this,'_init',!0x1),_0x107e1d(this,_0x54ed34(0x186),null),_0x107e1d(this,_0x54ed34(0x1b8),null),(this[_0x54ed34(0x138)]=_0x30b331,this['_collabSession']=_0x4f47c6,this['_configService']=_0x44efc3,this['_liveShareService']=_0x1f33a9,this[_0x54ed34(0x161)]=_0x4a424e);}get[_0x1d3409(0x1c5)](){const _0x515d07=_0x1d3409;return this[_0x515d07(0x12d)][_0x515d07(0x151)]();}[_0x1d3409(0x172)](){const _0x445ff8=_0x1d3409;var _0x6abc77;(_0x6abc77=this[_0x445ff8(0x186)])==null||_0x6abc77[_0x445ff8(0x172)](),this['_status$'][_0x445ff8(0x124)](_0x445ff8(0x125)),this[_0x445ff8(0x12d)][_0x445ff8(0x17a)]();}['getStatus'](){const _0x497e6f=_0x1d3409;return this[_0x497e6f(0x1c5)];}[_0x1d3409(0x12c)](){const _0x5782d5=_0x1d3409;this['_init']||(this['_init']=!0x0,this[_0x5782d5(0x152)][_0x5782d5(0x183)][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this[_0x5782d5(0x14a)]))[_0x5782d5(0x1d7)](_0x465505=>{const _0x2434ac=_0x5782d5;switch(_0x465505){case _0x30d3fc[_0x2434ac(0x1ac)][_0x2434ac(0x1ca)]:this[_0x2434ac(0x148)]();break;case _0x30d3fc[_0x2434ac(0x1ac)]['ONLINE']:this[_0x2434ac(0x1cc)]();break;}}),this[_0x5782d5(0x152)]['event$'][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this['dispose$']))[_0x5782d5(0x1d7)](_0x1bfe51=>{const _0x2a8bb5=_0x5782d5,{eventID:_0x490024}=_0x1bfe51;switch(_0x490024){case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x17e)]:this['_handleNewHost'](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x12e)]:this[_0x2a8bb5(0x194)](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x113)]:this[_0x2a8bb5(0x1a1)]();break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x1aa)]:this[_0x2a8bb5(0x18b)](_0x1bfe51);break;}}));}['tryStartPresenting'](){const _0x41c036=_0x1d3409;this['_collabSession'][_0x41c036(0x14b)]({'eventID':_0x2145d1[_0x41c036(0x1c6)][_0x41c036(0x121)],'data':{'unitID':this[_0x41c036(0x138)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x1d3409(0x18a)](){const _0x19c740=_0x1d3409;this[_0x19c740(0x1c5)]===_0x19c740(0x1bc)&&(this[_0x19c740(0x12d)]['next']('idle'),this[_0x19c740(0x152)][_0x19c740(0x14b)]({'eventID':_0x2145d1[_0x19c740(0x1c6)][_0x19c740(0x113)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x312eb9=_0x1d3409;this[_0x312eb9(0x1c5)]===_0x312eb9(0x104)&&(this[_0x312eb9(0x12d)]['next']('following'),this[_0x312eb9(0x128)]());}[_0x1d3409(0x1b0)](){const _0x33058a=_0x1d3409;this['_status']===_0x33058a(0x15b)&&this['_stopFollowing']();}[_0x1d3409(0x1b7)](_0x198beb){const _0x675384=_0x1d3409,{presenter:_0x2fdf3a}=_0x198beb[_0x675384(0x146)],_0x1047c4=this[_0x675384(0x152)][_0x675384(0x192)]();this[_0x675384(0x1b8)]=_0x2fdf3a,_0x2fdf3a===_0x1047c4?(this[_0x675384(0x120)](),this[_0x675384(0x1b2)]()):this[_0x675384(0x1c5)]!==_0x675384(0x104)&&(this[_0x675384(0x1a2)](),this[_0x675384(0x128)]());}[_0x1d3409(0x1d9)](){const _0x5afe0b=_0x1d3409,_0x1f99c1={'eventID':_0x2145d1[_0x5afe0b(0x1c6)][_0x5afe0b(0x1dd)]};this[_0x5afe0b(0x152)][_0x5afe0b(0x14b)](_0x1f99c1,this[_0x5afe0b(0x138)]);}[_0x1d3409(0x1a1)](){const _0x62a035=_0x1d3409;this['_presenter']=null,this[_0x62a035(0x1c5)]!==_0x62a035(0x1bc)&&this[_0x62a035(0x127)]();}[_0x1d3409(0x18b)](_0x570dac){const _0x2f14f5=_0x1d3409;if(this['_status']===_0x2f14f5(0x15b)&&this[_0x2f14f5(0x1b8)]===_0x570dac[_0x2f14f5(0x146)][_0x2f14f5(0x1c4)]){const _0xa1b7e2=_0x2145d1[_0x2f14f5(0x132)](_0x570dac[_0x2f14f5(0x146)])[_0x2f14f5(0x145)][_0x2f14f5(0x1e2)]()[_0x2f14f5(0x103)](_0x4f9e7d=>_0x4f9e7d['id']===_0x402b6a['InsertSheetMutation']['id']);if(_0xa1b7e2){const _0x546090=_0xa1b7e2[_0x2f14f5(0x180)]['unitId'],_0x25d6e2=_0xa1b7e2[_0x2f14f5(0x180)][_0x2f14f5(0x10e)]['id'];setTimeout(()=>{const _0x4faeff=_0x2f14f5;this[_0x4faeff(0x161)][_0x4faeff(0x1a8)](_0x402b6a[_0x4faeff(0x1bb)]['id'],{'unitId':_0x546090,'subUnitId':_0x25d6e2},{'fromCollab':!0x0});});}}}[_0x1d3409(0x1b2)](){const _0x872011=_0x1d3409;this['_status$'][_0x872011(0x124)](_0x872011(0x1bc));const _0x5a9fc7=new Map(),_0xf5b545=this[_0x872011(0x186)]=new _0x1ecc93[(_0x872011(0xfb))]();_0xf5b545[_0x872011(0x16e)](_0x1ecc93[_0x872011(0x169)](()=>{const _0x48f700=_0x872011;_0x5a9fc7[_0x48f700(0x157)](_0x3c1eea=>_0x3c1eea['complete']()),_0x5a9fc7[_0x48f700(0x10d)]();})),_0xf5b545[_0x872011(0x16e)](this[_0x872011(0x161)]['onCommandExecuted'](_0x7bb323=>{const _0x4fb4e4=_0x872011;var _0x14d3ae;if(_0x7bb323[_0x4fb4e4(0x155)]!==_0x1ecc93[_0x4fb4e4(0x19d)][_0x4fb4e4(0xfc)]||!this[_0x4fb4e4(0x181)][_0x4fb4e4(0x1b3)](_0x7bb323['id']))return;const {id:_0x1e2432}=_0x7bb323;let _0x46a4d8;_0x5a9fc7[_0x4fb4e4(0x158)](_0x1e2432)?_0x46a4d8=_0x5a9fc7['get'](_0x1e2432):(_0x46a4d8=new _0x30a3d1[(_0x4fb4e4(0x11b))](),_0x5a9fc7[_0x4fb4e4(0x1a4)](_0x1e2432,_0x46a4d8),_0x46a4d8[_0x4fb4e4(0x115)](_0x302b58[_0x4fb4e4(0x1ae)]((_0x14d3ae=this[_0x4fb4e4(0x139)][_0x4fb4e4(0x19b)](_0xabffb9))!=null?_0x14d3ae:_0x227cf7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4fb4e4(0x1d7)](_0x542f74=>{const _0x4753ed=_0x4fb4e4;this['_collabSession'][_0x4753ed(0x14b)]({'eventID':_0x2145d1[_0x4753ed(0x1c6)][_0x4753ed(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x542f74['id']]:{'id':_0x542f74['id'],'params':JSON[_0x4753ed(0x1b4)](_0x542f74['params'])}}}},this[_0x4753ed(0x138)]);})),_0x46a4d8['next'](_0x7bb323);})),this[_0x872011(0x181)]['getInitialStates'](this['_unitID'])[_0x872011(0x157)](_0x849ac9=>this[_0x872011(0x152)][_0x872011(0x14b)]({'eventID':_0x2145d1['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x849ac9['id']]:{'id':_0x849ac9['id'],'params':JSON[_0x872011(0x1b4)](_0x849ac9[_0x872011(0x180)])}}}},this[_0x872011(0x138)]));}[_0x1d3409(0x1a2)](){const _0x2f2cf7=_0x1d3409;var _0x5b8c50;this['_status$'][_0x2f2cf7(0x124)](_0x2f2cf7(0x125)),(_0x5b8c50=this[_0x2f2cf7(0x186)])==null||_0x5b8c50[_0x2f2cf7(0x172)](),this[_0x2f2cf7(0x186)]=null;}[_0x1d3409(0x128)](){const _0x2d22e0=_0x1d3409;var _0x1fa7a0;(_0x1fa7a0=this[_0x2d22e0(0x186)])==null||_0x1fa7a0[_0x2d22e0(0x172)](),this['_status$'][_0x2d22e0(0x124)](_0x2d22e0(0x15b));}[_0x1d3409(0x127)](){const _0x56596e=_0x1d3409;var _0x142d97;this[_0x56596e(0x12d)]['next'](_0x56596e(0x125)),(_0x142d97=this[_0x56596e(0x186)])==null||_0x142d97['dispose'](),this[_0x56596e(0x186)]=null;}[_0x1d3409(0x120)](){const _0x586795=_0x1d3409;var _0x30fb45;this[_0x586795(0x12d)][_0x586795(0x124)]('not-following'),(_0x30fb45=this[_0x586795(0x186)])==null||_0x30fb45[_0x586795(0x172)]();}[_0x1d3409(0x194)](_0x4f54e0){const _0x2b5c8a=_0x1d3409;if([_0x2b5c8a(0x1bc),_0x2b5c8a(0x104),_0x2b5c8a(0x17d)][_0x2b5c8a(0x165)](this[_0x2b5c8a(0x1c5)])||!_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]||_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]===this['_collabSession'][_0x2b5c8a(0x192)]())return;this[_0x2b5c8a(0x1c5)]==='idle'&&this[_0x2b5c8a(0x128)]();const _0x32acf7=_0x4f54e0['data'][_0x2b5c8a(0x1ba)];Object[_0x2b5c8a(0x1d1)](_0x32acf7)[_0x2b5c8a(0x157)](_0x1276ce=>{const _0x411899=_0x2b5c8a;this['_commandService'][_0x411899(0x1a8)](_0x1276ce['id'],_0x1276ce['params']?JSON['parse'](_0x1276ce['params']):null,{'fromCollab':!0x0});});}[_0x1d3409(0x148)](){const _0x4ea12f=_0x1d3409;var _0x220da0;this['_status$']['next'](_0x4ea12f(0x17d)),(_0x220da0=this[_0x4ea12f(0x186)])==null||_0x220da0[_0x4ea12f(0x172)]();}[_0x1d3409(0x1cc)](){const _0x3ff9c2=_0x1d3409;this[_0x3ff9c2(0x12d)][_0x3ff9c2(0x124)](_0x3ff9c2(0x125)),this[_0x3ff9c2(0x1d9)]();}},_0x2624a2[_0x1d3409(0x106)]=_0x55b41d([_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x1ce)]),_0x5a5b9f(0x3,_0x1ecc93[_0x1d3409(0x11d)](_0x5e12fa)),_0x5a5b9f(0x4,_0x1ecc93[_0x1d3409(0x123)])],_0x2624a2[_0x1d3409(0x106)]);function _0x628078(){const _0x1d2d11=_0x1d3409,_0x4dcbb9=_0x20bfb3[_0x1d2d11(0x1df)](_0x2624a2[_0x1d2d11(0x190)]),_0x44b680=_0x20bfb3[_0x1d2d11(0x1df)](_0x1ecc93[_0x1d2d11(0x14f)]),_0x146694=_0x20bfb3[_0x1d2d11(0x188)](()=>_0x44b680[_0x1d2d11(0x197)](_0x1ecc93[_0x1d2d11(0x11a)][_0x1d2d11(0x15d)]),void 0x0,!0x1,[]),[_0x36bbac,_0xe11841]=_0x3dc61e[_0x1d2d11(0x15c)](null),[_0x5b4d04,_0x466f78]=_0x3dc61e[_0x1d2d11(0x15c)](_0x4d3fc0[_0x1d2d11(0x1d5)]),_0x56f18e=_0x3dc61e[_0x1d2d11(0x19e)](null);return _0x3dc61e[_0x1d2d11(0xfd)](()=>(_0x146694&&_0x4dcbb9[_0x1d2d11(0xff)](_0x146694[_0x1d2d11(0x1d6)]())[_0x1d2d11(0x1ad)](_0x599fde=>{const _0x439041=_0x1d2d11;_0xe11841(_0x599fde),_0x56f18e[_0x439041(0x111)]=_0x599fde[_0x439041(0x1c8)]['subscribe'](_0xbcadcc=>{_0x466f78(_0xbcadcc);});}),()=>{const _0x34f495=_0x1d2d11;var _0x2275a3;(_0x2275a3=_0x56f18e[_0x34f495(0x111)])==null||_0x2275a3[_0x34f495(0x14d)](),_0x56f18e[_0x34f495(0x111)]=null;}),[_0x146694,_0x4dcbb9]),_0x36bbac?_0x49ef39[_0x1d2d11(0x10c)](_0x4e9136[_0x1d2d11(0x11e)],{'align':_0x1d2d11(0x107),'disabled':_0x5b4d04===_0x4d3fc0['OFFLINE'],'className':_0x1d2d11(0x13a),'overlay':_0x49ef39[_0x1d2d11(0x10c)](_0x13352d,{'status':_0x5b4d04,'coordinator':_0x36bbac}),'children':_0x49ef39[_0x1d2d11(0x10c)]('button',{'className':_0x4e9136['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5b4d04===_0x4d3fc0[_0x1d2d11(0x1ca)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b4d04!==_0x4d3fc0['OFFLINE']}),'type':'button','children':_0x49ef39[_0x1d2d11(0x10c)](_0x438601,{'className':_0x1d2d11(0x1b5)})})}):null;}function _0x13352d(_0x134623){const _0x5d4c91=_0x1d3409,{status:_0x37b0e5,coordinator:_0xeff7c4}=_0x134623;switch(_0x37b0e5){case _0x4d3fc0[_0x5d4c91(0x1d5)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x5eddbd,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x101)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x280652,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1c2)]:return _0x49ef39['jsx'](_0x16aec7,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1ca)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x12a948,{});case _0x4d3fc0[_0x5d4c91(0x140)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x55d24d,{'coordinator':_0xeff7c4});default:return null;}}function _0x5eddbd(_0x3a8e6e){const _0x481ba2=_0x1d3409,{coordinator:_0x290970}=_0x3a8e6e;return _0x49ef39[_0x481ba2(0x130)](_0x49ef39[_0x481ba2(0x1c1)],{'children':[_0x49ef39['jsx'](_0x481ba2(0x119),{'className':_0x481ba2(0x177),'children':_0x481ba2(0x156)}),_0x49ef39[_0x481ba2(0x10c)](_0x4e9136['Button'],{'onClick':()=>_0x290970['tryStartPresenting'](),'children':_0x481ba2(0x185)})]});}function _0x280652(_0x52df6a){const _0x216316=_0x1d3409,{coordinator:_0x4f43b4}=_0x52df6a;return _0x49ef39['jsxs'](_0x49ef39['Fragment'],{'children':[_0x49ef39['jsx'](_0x216316(0x119),{'className':_0x216316(0x177),'children':_0x216316(0x1dc)}),_0x49ef39['jsx'](_0x4e9136[_0x216316(0x1b9)],{'onClick':()=>_0x4f43b4['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x16aec7(_0x2104f7){const _0xaf8a82=_0x1d3409,{coordinator:_0x49406d}=_0x2104f7;return _0x49ef39[_0xaf8a82(0x130)](_0x49ef39[_0xaf8a82(0x1c1)],{'children':[_0x49ef39[_0xaf8a82(0x10c)](_0xaf8a82(0x119),{'className':_0xaf8a82(0x177),'children':_0xaf8a82(0x1c9)}),_0x49ef39[_0xaf8a82(0x10c)](_0x4e9136['Button'],{'variant':_0xaf8a82(0x135),'onClick':()=>_0x49406d['startFollowing'](),'children':_0xaf8a82(0x118)})]});}function _0x55d24d(_0xdb8d4d){const _0x382602=_0x1d3409,{coordinator:_0x30de2b}=_0xdb8d4d;return _0x49ef39[_0x382602(0x130)](_0x49ef39[_0x382602(0x1c1)],{'children':[_0x49ef39[_0x382602(0x10c)]('div',{'className':_0x382602(0x177),'children':_0x382602(0x13d)}),_0x49ef39[_0x382602(0x10c)](_0x4e9136[_0x382602(0x1b9)],{'variant':_0x382602(0x154),'onClick':()=>_0x30de2b[_0x382602(0x18a)](),'children':_0x382602(0x15e)})]});}function _0x12a948(){const _0x3b226d=_0x1d3409;return _0x49ef39[_0x3b226d(0x10c)](_0x49ef39[_0x3b226d(0x1c1)],{'children':_0x3b226d(0x1d3)});}var _0x3a337f=Object[_0x1d3409(0x1d0)],_0x5d82df=(_0x48d26a,_0x2e3932,_0x520a4d,_0x27c851)=>{const _0x192801=_0x1d3409;for(var _0x352af7=_0x27c851>0x1?void 0x0:_0x27c851?_0x3a337f(_0x2e3932,_0x520a4d):_0x2e3932,_0x43ff48=_0x48d26a[_0x192801(0x163)]-0x1,_0x37c1d4;_0x43ff48>=0x0;_0x43ff48--)(_0x37c1d4=_0x48d26a[_0x43ff48])&&(_0x352af7=_0x37c1d4(_0x352af7)||_0x352af7);return _0x352af7;},_0x2accc7=(_0x145147,_0x5de823)=>(_0xe46112,_0x512d88)=>_0x5de823(_0xe46112,_0x512d88,_0x145147);_0x2624a2['DesktopLiveShareController']=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x1b4905,_0x147e54){const _0x4549c8=_0x1d3409;super(),this['_injector']=_0x1b4905,this[_0x4549c8(0x168)]=_0x147e54,this['_mountLiveShare']();}[_0x1d3409(0x1be)](){const _0x4b81f3=_0x1d3409;this[_0x4b81f3(0x1a6)](this[_0x4b81f3(0x168)][_0x4b81f3(0x1bd)](_0x20bfb3[_0x4b81f3(0x18c)][_0x4b81f3(0xf8)],()=>_0x20bfb3[_0x4b81f3(0x16d)](_0x628078,this[_0x4b81f3(0x144)])));}},_0x2624a2[_0x1d3409(0xf9)]=_0x5d82df([_0x2accc7(0x0,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93['Injector'])),_0x2accc7(0x1,_0x20bfb3['IUIPartsService'])],_0x2624a2['DesktopLiveShareController']);const _0x4fb311=_0x1d3409(0x184),_0xa9cf={};var _0x43cff3=Object[_0x1d3409(0x1d0)],_0x139930=(_0x1a1171,_0x56ba76,_0x9f2402,_0x6104c0)=>{const _0x245bc4=_0x1d3409;for(var _0x2657d2=_0x6104c0>0x1?void 0x0:_0x6104c0?_0x43cff3(_0x56ba76,_0x9f2402):_0x56ba76,_0x28f5ce=_0x1a1171[_0x245bc4(0x163)]-0x1,_0xc59214;_0x28f5ce>=0x0;_0x28f5ce--)(_0xc59214=_0x1a1171[_0x28f5ce])&&(_0x2657d2=_0xc59214(_0x2657d2)||_0x2657d2);return _0x2657d2;},_0x46e057=(_0x488441,_0x28ba62)=>(_0xc749a3,_0x4f3fd1)=>_0x28ba62(_0xc749a3,_0x4f3fd1,_0x488441);let _0x241993=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x51b5b7){const _0x308093=_0x1d3409;super(),this[_0x308093(0x181)]=_0x51b5b7,this['_init']();}[_0x1d3409(0x12b)](){const _0x3ea86b=_0x1d3409;[_0x527f2d[_0x3ea86b(0x13f)]['id'],_0x527f2d['SetScrollOperation']['id'],_0x402b6a[_0x3ea86b(0x1bb)]['id']][_0x3ea86b(0x157)](_0x5c2759=>{const _0x1941e8=_0x3ea86b;this[_0x1941e8(0x1a6)](this['_liveShareService'][_0x1941e8(0x193)](_0x5c2759));});}};_0x241993=_0x139930([_0x46e057(0x0,_0x1ecc93['Inject'](_0x5e12fa))],_0x241993);var _0x24c73b=Object[_0x1d3409(0x1bf)],_0x53a497=Object[_0x1d3409(0x1d0)],_0x34bd03=(_0x181a87,_0x5c4ef0,_0x828d05)=>_0x5c4ef0 in _0x181a87?_0x24c73b(_0x181a87,_0x5c4ef0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x828d05}):_0x181a87[_0x5c4ef0]=_0x828d05,_0x462782=(_0x5838a5,_0x45ee66,_0x5d615f,_0x2202cb)=>{for(var _0x1926b1=_0x2202cb>0x1?void 0x0:_0x2202cb?_0x53a497(_0x45ee66,_0x5d615f):_0x45ee66,_0x4aeb26=_0x5838a5['length']-0x1,_0x63440c;_0x4aeb26>=0x0;_0x4aeb26--)(_0x63440c=_0x5838a5[_0x4aeb26])&&(_0x1926b1=_0x63440c(_0x1926b1)||_0x1926b1);return _0x1926b1;},_0x17c188=(_0x350976,_0x5a2bc9)=>(_0x462163,_0x839ec6)=>_0x5a2bc9(_0x462163,_0x839ec6,_0x350976),_0x1824c0=(_0x2cbe96,_0x5e7244,_0x1e21dd)=>_0x34bd03(_0x2cbe96,typeof _0x5e7244!='symbol'?_0x5e7244+'':_0x5e7244,_0x1e21dd);const _0x1bb8ad='UNIVER_LIVE_SHARE_PLUGIN';_0x2624a2[_0x1d3409(0x105)]=class extends _0x1ecc93[_0x1d3409(0x16a)]{constructor(_0x183b15=_0xa9cf,_0x108d16,_0x25dcf7){const _0x3e1092=_0x1d3409;super(),this['_config']=_0x183b15,this[_0x3e1092(0x144)]=_0x108d16,this[_0x3e1092(0x139)]=_0x25dcf7;const {..._0x2568f4}=_0x1ecc93[_0x3e1092(0x15f)]({},_0xa9cf,this['_config']);this[_0x3e1092(0x139)][_0x3e1092(0x1cd)](_0x4fb311,_0x2568f4);}[_0x1d3409(0x179)](){const _0x1dc069=_0x1d3409;_0x1ecc93[_0x1dc069(0x162)](this['_injector'],_0x1ecc93['mergeOverrideWithDependencies']([[_0x5e12fa],[_0x2624a2[_0x1dc069(0x190)]],[_0x241993],[_0x2624a2[_0x1dc069(0xf9)]]],this[_0x1dc069(0x153)]['override'])),_0x1ecc93[_0x1dc069(0x1b1)](this[_0x1dc069(0x144)],[[_0x241993]]);}['onRendered'](){const _0x2a3b1c=_0x1d3409;_0x1ecc93['touchDependencies'](this['_injector'],[[_0x2624a2[_0x2a3b1c(0xf9)]]]);}},_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x155),_0x1ecc93[_0x1d3409(0x11a)]['UNIVER_UNKNOWN']),_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x126),_0x1bb8ad),_0x2624a2['UniverLiveSharePlugin']=_0x462782([_0x1ecc93[_0x1d3409(0x182)](_0x30d3fc[_0x1d3409(0x109)]),_0x17c188(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x17c188(0x2,_0x1ecc93[_0x1d3409(0x1ce)])],_0x2624a2[_0x1d3409(0x105)]),_0x2624a2[_0x1d3409(0x196)]=_0x628078,_0x2624a2[_0x1d3409(0x167)]=_0x5e12fa,_0x2624a2[_0x1d3409(0x191)]=_0x4d3fc0,Object['defineProperty'](_0x2624a2,Symbol[_0x1d3409(0x173)],{'value':'Module'});}));function _0x21ce(){const _0x242d9d=['default','type','Present\x20this\x20document','forEach','has','svg','@univerjs/sheets-ui','following','useState','UNIVER_SHEET','Stop\x20presenting','merge','917040hwuUMh','_commandService','registerDependencies','length','displayName','includes','exports','LiveShareService','_uiPartsService','toDisposable','Plugin','tag','use','connectInjector','add','@univerjs/design','toString','string','dispose','toStringTag','substring','Disposable','createInstance','univer-mb-3\x20univer-w-full\x20univer-text-sm','@univerjs/sheets','onStarting','complete','794788YcBWvE','UniverCore','offline','LIVESHARE_NEW_HOST','@univerjs-pro/collaboration','params','_liveShareService','DependentOn','sessionStatus$','live-share.config','Start','_commandDisposable','none','useObservable','createElement','stopPresenting','_handleNewChangeSets','BuiltInUIPart','delete','8105364IgUduh','UniverProLiveShare','LiveShareController','LiveShareStatus','getMemberID','registerSharedOperation','_handleOperation','children','LiveShare','getCurrentTypeOfUnit$','5764160eEEBxE','amd','4OUtVNw','getConfig','requireSession','CommandType','useRef','@univerjs/core','presenter','_handleTerminate','_stopPresenting','trim','set','getTypeOfUnitAdded$','disposeWithMe','replace','executeCommand','currentColor','NEW_CHANGESETS','univerjs-icon\x20univerjs-icon-','SessionStatus','then','throttleTime','getTypeOfUnitDisposed$','stopFollowing','touchDependencies','_startPresenting','shouldShareOperation','stringify','univer-size-4','evenodd','_handleNewHost','_presenter','Button','operations','SetWorksheetActiveOperation','presenting','registerComponent','_mountLiveShare','defineProperty','entries','Fragment','NOT_FOLLOWING','getInitialStates','memberID','_status','CollaborationEvent','registerInitialStateReporter','status$','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UniverSheets','_handleOnline','setConfig','IConfigService','UniverProCollaboration','getOwnPropertyDescriptor','values','62363tmIExG','You\x27are\x20offline.','React','IDLE','getUnitId','subscribe','Injector','_fetchOperations','defIds','@univerjs-pro/collaboration-client','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','useDependency','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','asObservable','reverse','HEADER_MENU','DesktopLiveShareController','xlink:href','DisposableCollection','OPERATION','useEffect','0\x200\x2017\x2017','getLiveShareCoordinator','_univerInstanceService','FOLLOWING','map','find','not-following','UniverLiveSharePlugin','LiveShareCoordinator','end','takeUntil','UniverCollaborationClientPlugin','_entities','http://www.w3.org/2000/svg','jsx','clear','sheet','rxjs/operators','function','current','path','LIVESHARE_TERMINATE','idSuffix','pipe','_startLiveShareCoordinator','react','Start\x20following','div','UniverInstanceType','Subject','colorChannel1','Inject','Dropdown','UniverSheetsUi','_stopFollowing','LIVESHARE_REQUEST_HOST','get','ICommandService','next','idle','pluginName','_beIdle','_startFollowing','318xwgorf','mask','_init','init','_status$','LIVESHARE_OPERATION','attrs','jsxs','1em','parseProtocolChangeset','@univerjs/ui','UniverDesign','text','defs','_sharedOperations','_unitID','_configService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SAME_OPERATION_SHARE_INTERVAL','BehaviorSubject','You\x27re\x20presenting\x20the\x20document','RxDisposable','SetZoomRatioOperation','PRESENTING','assign','LiveShareIcon','random','_injector','mutations','data','2813240xCCnfk','_handleOffline','2qQFMHO','dispose$','send','_reporters','unsubscribe','2837848qjypsC','IUniverInstanceService','getLiveShareCoordinatorSync','getValue','_collabSession','_config'];_0x21ce=function(){return _0x242d9d;};return _0x21ce();}
|
|
1
|
+
function _0x8f7c(){const _0x1f8015=['UniverSheetsUi','sessionStatus$','IUIPartsService','data','dispose$','registerSharedOperation','rxjs','mutations','Dropdown','then','NEW_CHANGESETS','createInstance','jsx','_handleNewChangeSets','_handleTerminate','CollaborationEvent','stopPresenting','_stopPresenting','LiveShareController','evenodd','presenting','Disposable','LiveShareService','UniverProLiveShare','LIVESHARE_TERMINATE','startFollowing','CommandType','pipe','substring','LiveShare','3bluRvT','NOT_FOLLOWING','LiveShareCoordinator','reverse','live-share.config','getInitialStates','tag','registerInitialStateReporter','LIVESHARE_NEW_HOST','_stopFollowing','Button','_handleOperation','Start','react/jsx-runtime','send','Start\x20following','UniverProCollaboration','end','CollaborationSessionService','@univerjs/ui','following','_startLiveShareCoordinator','UNIVER_UNKNOWN','mask','requireSession','getConfig','defIds','_presenter','exports','_status$','useObservable','getLiveShareCoordinatorSync','InsertSheetMutation','OPERATION','UniverCollaborationClientPlugin','toStringTag','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProCollaborationClient','type','default','_beIdle','takeUntil','onCommandExecuted','@univerjs-pro/collaboration-client','merge','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','You\x27re\x20presenting\x20the\x20document','includes','UNIVER_LIVE_SHARE_PLUGIN','Inject','univer-size-4','path','has','Stop\x20presenting','IDLE','_startFollowing','replace','next','complete','_uiPartsService','_mountLiveShare','entries','unitId','_status','_configService','attrs','throttleTime','xlink:href','from','RxDisposable','clear','LIVESHARE_FETCH_OPERATIONS','_liveShareService','_injector','not-following','Fragment','stringify','function','_handleNewHost','disposeWithMe','get','React','operators','presenter','You\x27re\x20not\x20following\x20the\x20presenter','map','Plugin','_collabSessionService','defs','_fetchOperations','forwardRef','random','PRESENTING','dispose','FOLLOWING','executeCommand','IConfigService','getOwnPropertyDescriptor','text','_handleOffline','getCurrentTypeOfUnit$','1879192ZdeCUJ','30XQHZAP','set','none','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','shouldShareOperation','toDisposable','length','_config','status$','getMemberID','@univerjs/core','305374VQFyfj','mergeOverrideWithDependencies','current','react','@univerjs-pro/collaboration','Injector','memberID','HEADER_MENU','UniverSheets','params','UniverLiveSharePlugin','369960VQxtfO','_reporters','_commandDisposable','getTypeOfUnitAdded$','Present\x20this\x20document','You\x27are\x20offline.','@univerjs/design','delete','offline','jsxs','BuiltInUIPart','stopFollowing','UniverDesign','getLiveShareCoordinator','1236048Qfejwy','touchDependencies','createElement','trim','use','object','symbol','override','string','1em','registerDependencies','getUnitId','DesktopLiveShareController','forEach','connectInjector','pluginName','rxjs/operators','getTypeOfUnitDisposed$','SessionStatus','useDependency','useRef','_handleOnline','_sharedOperations','320904zkRWUV','init','useState','BehaviorSubject','_init','svg','div','LiveShareStatus','Stop\x20following','@univerjs/sheets','defineProperty','968700nVIkRB','idSuffix','add','UniverInstanceType','getStatus','currentColor','UniverIcon','UNIVER_SHEET','ICommandService','_commandService','parse','operations','LiveShareIcon','_entities','_unitID','colorChannel1','_univerInstanceService','subscribe','tryStartPresenting','OFFLINE','live-share-icon','toString','displayName','0\x200\x2017\x2017','SetWorksheetActiveOperation','506556advuNT','find','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','_collabSession','clsx','children','fill','SetScrollOperation'];_0x8f7c=function(){return _0x1f8015;};return _0x8f7c();}function _0x3e36(_0x22d6bd,_0x35e45e){_0x22d6bd=_0x22d6bd-0x11e;const _0x8f7c2f=_0x8f7c();let _0x3e3653=_0x8f7c2f[_0x22d6bd];return _0x3e3653;}(function(_0x4ab8de,_0x3460de){const _0x4d8687=_0x3e36,_0x3ab222=_0x4ab8de();while(!![]){try{const _0x45e64b=-parseInt(_0x4d8687(0x1cc))/0x1*(-parseInt(_0x4d8687(0x152))/0x2)+-parseInt(_0x4d8687(0x1a6))/0x3+parseInt(_0x4d8687(0x18d))/0x4+parseInt(_0x4d8687(0x15d))/0x5*(-parseInt(_0x4d8687(0x145))/0x6)+parseInt(_0x4d8687(0x144))/0x7+-parseInt(_0x4d8687(0x16b))/0x8+-parseInt(_0x4d8687(0x182))/0x9;if(_0x45e64b===_0x3460de)break;else _0x3ab222['push'](_0x3ab222['shift']());}catch(_0xb4ef46){_0x3ab222['push'](_0x3ab222['shift']());}}}(_0x8f7c,0x3a866),function(_0x3abc90,_0x3df5cf){const _0xf7dcd=_0x3e36;typeof exports==_0xf7dcd(0x170)&&typeof module<'u'?_0x3df5cf(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==_0xf7dcd(0x12c)&&define['amd']?define([_0xf7dcd(0x1e8),_0xf7dcd(0x151),_0xf7dcd(0x1df),_0xf7dcd(0x1d9),_0xf7dcd(0x163),_0xf7dcd(0x155),_0xf7dcd(0x156),_0xf7dcd(0x1f8),_0xf7dcd(0x18b),_0xf7dcd(0x1b4),_0xf7dcd(0x17b),'@univerjs/sheets-ui'],_0x3df5cf):(_0x3abc90=typeof globalThis<'u'?globalThis:_0x3abc90||self,_0x3df5cf(_0x3abc90[_0xf7dcd(0x1c5)]={},_0x3abc90['UniverCore'],_0x3abc90['UniverUi'],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x169)],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x1dc)],_0x3abc90[_0xf7dcd(0x1f2)],_0x3abc90[_0xf7dcd(0x15a)],_0x3abc90[_0xf7dcd(0x1b4)],_0x3abc90['rxjs'][_0xf7dcd(0x131)],_0x3abc90[_0xf7dcd(0x1ae)]));}(this,function(_0x1c5f91,_0x342837,_0x20cf75,_0x5d3518,_0x19382c,_0x2af741,_0x2fb4e6,_0x4b3acb,_0x22bb53,_0x5d360a,_0x392387,_0x51dae5){'use strict';const _0x7360d4=_0x3e36;var _0x2e2910=Object['defineProperty'],_0x530287=(_0x1465c3,_0x1f4c9d,_0x368241)=>_0x1f4c9d in _0x1465c3?_0x2e2910(_0x1465c3,_0x1f4c9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368241}):_0x1465c3[_0x1f4c9d]=_0x368241,_0x408b92=(_0x1557fc,_0x3f4af7,_0x41d953)=>_0x530287(_0x1557fc,typeof _0x3f4af7!='symbol'?_0x3f4af7+'':_0x3f4af7,_0x41d953);function _0x46471f({ref:_0xd58555,..._0x47544e}){const _0x5d7a11=_0x3e36,{icon:_0x1dbc6f,id:_0x4c3045,className:_0x16d3ec,extend:_0x44b08f,..._0x4d2a53}=_0x47544e,_0x14a4cb=('univerjs-icon\x20univerjs-icon-'+_0x4c3045+'\x20'+(_0x16d3ec||''))[_0x5d7a11(0x16e)](),_0x3318dc=_0x2af741[_0x5d7a11(0x17f)]('_'+_0x202d02());return _0x4f21bf(_0x1dbc6f,''+_0x4c3045,{'defIds':_0x1dbc6f[_0x5d7a11(0x1e6)],'idSuffix':_0x3318dc[_0x5d7a11(0x154)]},{'ref':_0xd58555,'className':_0x14a4cb,..._0x4d2a53},_0x44b08f);}function _0x4f21bf(_0x106b65,_0x584ee7,_0x42c4f7,_0x18292f,_0x32c563){const _0x5d76fe=_0x3e36;return _0x2af741[_0x5d76fe(0x16d)](_0x106b65[_0x5d76fe(0x1d2)],{'key':_0x584ee7,..._0x552b13(_0x106b65,_0x42c4f7,_0x32c563),..._0x18292f},(_0x1ceb3b(_0x106b65,_0x42c4f7)[_0x5d76fe(0x1ab)]||[])[_0x5d76fe(0x134)]((_0x38744b,_0x7bbab8)=>_0x4f21bf(_0x38744b,_0x584ee7+'-'+_0x106b65[_0x5d76fe(0x1d2)]+'-'+_0x7bbab8,_0x42c4f7,void 0x0,_0x32c563)));}function _0x552b13(_0x7de52a,_0x1e969c,_0x35910c){const _0xcb2ca8=_0x3e36,_0x8ada6={..._0x7de52a[_0xcb2ca8(0x120)]};_0x35910c!=null&&_0x35910c[_0xcb2ca8(0x19c)]&&_0x8ada6[_0xcb2ca8(0x1ac)]===_0xcb2ca8(0x19c)&&(_0x8ada6[_0xcb2ca8(0x1ac)]=_0x35910c[_0xcb2ca8(0x19c)]),_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x1e3)&&_0x8ada6['id']&&(_0x8ada6['id']=_0x8ada6['id']+_0x1e969c[_0xcb2ca8(0x18e)]),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x20f153,_0x5431c5])=>{const _0x5e2ffc=_0xcb2ca8;_0x20f153===_0x5e2ffc(0x1e3)&&typeof _0x5431c5=='string'&&(_0x8ada6[_0x20f153]=_0x5431c5[_0x5e2ffc(0x205)](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0x5e2ffc(0x18e)]+')'));});const {defIds:_0x15b5de}=_0x1e969c;return!_0x15b5de||_0x15b5de[_0xcb2ca8(0x14d)]===0x0||(_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x16f)&&_0x8ada6[_0xcb2ca8(0x122)]&&(_0x8ada6[_0xcb2ca8(0x122)]=_0x8ada6['xlink:href']+_0x1e969c['idSuffix']),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x2dd5c8,_0x4f3b2b])=>{const _0xec82fd=_0xcb2ca8;typeof _0x4f3b2b==_0xec82fd(0x173)&&(_0x8ada6[_0x2dd5c8]=_0x4f3b2b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0xec82fd(0x18e)]+')'));})),_0x8ada6;}function _0x1ceb3b(_0x327cf2,_0x4c415a){const _0x121b0c=_0x3e36;var _0x428d20;const {defIds:_0x15e44f}=_0x4c415a;return!_0x15e44f||_0x15e44f[_0x121b0c(0x14d)]===0x0?_0x327cf2:_0x327cf2[_0x121b0c(0x1d2)]===_0x121b0c(0x137)&&((_0x428d20=_0x327cf2[_0x121b0c(0x1ab)])!=null&&_0x428d20[_0x121b0c(0x14d)])?{..._0x327cf2,'children':_0x327cf2['children'][_0x121b0c(0x134)](_0x3a7401=>typeof _0x3a7401[_0x121b0c(0x120)]['id']==_0x121b0c(0x173)&&_0x15e44f&&_0x15e44f['includes'](_0x3a7401[_0x121b0c(0x120)]['id'])?{..._0x3a7401,'attrs':{..._0x3a7401[_0x121b0c(0x120)],'id':_0x3a7401['attrs']['id']+_0x4c415a['idSuffix']}}:_0x3a7401)}:_0x327cf2;}function _0x202d02(){const _0x24fdb5=_0x3e36;return Math[_0x24fdb5(0x13a)]()[_0x24fdb5(0x1a2)](0x24)[_0x24fdb5(0x1ca)](0x2,0x8);}_0x46471f[_0x7360d4(0x1a3)]=_0x7360d4(0x193);const _0x164371={'tag':_0x7360d4(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x7360d4(0x147),'viewBox':_0x7360d4(0x1a4),'width':_0x7360d4(0x174),'height':_0x7360d4(0x174)},'children':[{'tag':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'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':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'d':_0x7360d4(0x1fa),'fillRule':_0x7360d4(0x1c1),'clipRule':_0x7360d4(0x1c1)}}]},_0x342eb9=_0x2af741[_0x7360d4(0x139)](function(_0x281935,_0x515bc8){const _0x395ddb=_0x7360d4;return _0x2af741[_0x395ddb(0x16d)](_0x46471f,Object['assign']({},_0x281935,{'id':_0x395ddb(0x1a1),'ref':_0x515bc8,'icon':_0x164371}));});_0x342eb9['displayName']=_0x7360d4(0x199);class _0x16957c extends _0x342837[_0x7360d4(0x1c3)]{constructor(){const _0x5df372=_0x7360d4;super(...arguments),_0x408b92(this,_0x5df372(0x181),new Set()),_0x408b92(this,_0x5df372(0x15e),new Set());}['registerSharedOperation'](_0x78c52b){const _0x58e555=_0x7360d4;return this['_sharedOperations'][_0x58e555(0x18f)](_0x78c52b),_0x342837[_0x58e555(0x14c)](()=>this['_sharedOperations'][_0x58e555(0x164)](_0x78c52b));}[_0x7360d4(0x1d3)](_0x3451b6){const _0x18b97d=_0x7360d4;return this['_reporters'][_0x18b97d(0x18f)](_0x3451b6),_0x342837[_0x18b97d(0x14c)](()=>this[_0x18b97d(0x15e)]['delete'](_0x3451b6));}[_0x7360d4(0x14b)](_0x46b391){const _0x36779d=_0x7360d4;return this['_sharedOperations'][_0x36779d(0x201)](_0x46b391);}[_0x7360d4(0x1d1)](_0x4585f4){const _0x68eaa2=_0x7360d4;return Array[_0x68eaa2(0x123)](this[_0x68eaa2(0x15e)])[_0x68eaa2(0x134)](_0x3f9410=>_0x3f9410(_0x4585f4));}}var _0x27689d=Object[_0x7360d4(0x140)],_0x5cb2ff=(_0xd444a5,_0x131b0e,_0x16ee90,_0x5b7807)=>{for(var _0x3c8b64=_0x5b7807>0x1?void 0x0:_0x5b7807?_0x27689d(_0x131b0e,_0x16ee90):_0x131b0e,_0x3629dd=_0xd444a5['length']-0x1,_0x265f1f;_0x3629dd>=0x0;_0x3629dd--)(_0x265f1f=_0xd444a5[_0x3629dd])&&(_0x3c8b64=_0x265f1f(_0x3c8b64)||_0x3c8b64);return _0x3c8b64;},_0x58bb4e=(_0x40d00c,_0x2c088f)=>(_0x3a63c4,_0x4cc526)=>_0x2c088f(_0x3a63c4,_0x4cc526,_0x40d00c);_0x1c5f91[_0x7360d4(0x1c0)]=class extends _0x342837[_0x7360d4(0x124)]{constructor(_0x49c171,_0x42f35e,_0x4bf9f8){const _0x4a1465=_0x7360d4;super(),_0x408b92(this,'_entities',new Map()),(this[_0x4a1465(0x19d)]=_0x49c171,this[_0x4a1465(0x128)]=_0x42f35e,this[_0x4a1465(0x136)]=_0x4bf9f8,this['_init']());}async[_0x7360d4(0x16a)](_0x22d998){const _0x5d8e39=_0x7360d4;return this[_0x5d8e39(0x19a)][_0x5d8e39(0x201)](_0x22d998)||await this[_0x5d8e39(0x1e1)](_0x22d998),this[_0x5d8e39(0x19a)][_0x5d8e39(0x12f)](_0x22d998);}[_0x7360d4(0x1eb)](_0x33c1b2){const _0x4670a1=_0x7360d4;var _0x147593;return(_0x147593=this['_entities'][_0x4670a1(0x12f)](_0x33c1b2))!=null?_0x147593:null;}[_0x7360d4(0x186)](){const _0x268e1b=_0x7360d4;this[_0x268e1b(0x19d)][_0x268e1b(0x160)](_0x342837[_0x268e1b(0x190)][_0x268e1b(0x194)])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this['dispose$']))[_0x268e1b(0x19e)](async _0x6d3cb6=>{const _0x561d47=_0x268e1b,_0x39cef5=_0x6d3cb6[_0x561d47(0x176)]();this[_0x561d47(0x19a)]['has'](_0x39cef5)||this[_0x561d47(0x1e1)](_0x39cef5);}),this[_0x268e1b(0x19d)][_0x268e1b(0x17c)](_0x342837[_0x268e1b(0x190)]['UNIVER_SHEET'])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this[_0x268e1b(0x1b2)]))[_0x268e1b(0x19e)](_0x4289dc=>{const _0xf113e4=_0x268e1b,_0x47b295=_0x4289dc['getUnitId'](),_0x5c3b24=this[_0xf113e4(0x19a)][_0xf113e4(0x12f)](_0x47b295);_0x5c3b24==null||_0x5c3b24['dispose']();});}async[_0x7360d4(0x1e1)](_0x34ed81){const _0x3e1ab3=_0x7360d4,_0x4b2b0a=await this[_0x3e1ab3(0x136)][_0x3e1ab3(0x1e4)](_0x34ed81),_0x215a47=this[_0x3e1ab3(0x128)][_0x3e1ab3(0x1b9)](_0x1c5f91[_0x3e1ab3(0x1ce)],_0x34ed81,_0x4b2b0a);return _0x215a47['init'](),this['_entities']['set'](_0x34ed81,_0x215a47),_0x215a47;}},_0x1c5f91[_0x7360d4(0x1c0)]=_0x5cb2ff([_0x58bb4e(0x0,_0x342837['IUniverInstanceService']),_0x58bb4e(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837['Injector'])),_0x58bb4e(0x2,_0x342837[_0x7360d4(0x1fe)](_0x4b3acb[_0x7360d4(0x1de)]))],_0x1c5f91[_0x7360d4(0x1c0)]);var _0x1aabba=(_0x10c688=>(_0x10c688[_0x7360d4(0x1a0)]=_0x7360d4(0x165),_0x10c688[_0x7360d4(0x203)]=_0x7360d4(0x148),_0x10c688['FOLLOWING']='following',_0x10c688[_0x7360d4(0x1cd)]=_0x7360d4(0x129),_0x10c688['PRESENTING']='presenting',_0x10c688))(_0x1aabba||{});const _0x383b2a=_0x7360d4(0x1f0),_0x460867=0xc8;_0x1c5f91['LiveShareCoordinator']=class extends _0x342837['RxDisposable']{constructor(_0x1172f0,_0x2e1f9e,_0xe4e0c0,_0x1cf4d6,_0x5d7b05){const _0x4e2739=_0x7360d4;super(),_0x408b92(this,_0x4e2739(0x1e9),new _0x5d360a[(_0x4e2739(0x185))]('idle')),_0x408b92(this,_0x4e2739(0x14f),this['_status$']['asObservable']()),_0x408b92(this,_0x4e2739(0x186),!0x1),_0x408b92(this,'_commandDisposable',null),_0x408b92(this,_0x4e2739(0x1e7),null),(this[_0x4e2739(0x19b)]=_0x1172f0,this[_0x4e2739(0x1a9)]=_0x2e1f9e,this[_0x4e2739(0x11f)]=_0xe4e0c0,this[_0x4e2739(0x127)]=_0x1cf4d6,this[_0x4e2739(0x196)]=_0x5d7b05);}get['_status'](){const _0xc2994a=_0x7360d4;return this[_0xc2994a(0x1e9)]['getValue']();}[_0x7360d4(0x13c)](){const _0x1b7585=_0x7360d4;var _0x187e45;(_0x187e45=this[_0x1b7585(0x15f)])==null||_0x187e45['dispose'](),this[_0x1b7585(0x1e9)][_0x1b7585(0x206)]('idle'),this[_0x1b7585(0x1e9)][_0x1b7585(0x207)]();}[_0x7360d4(0x191)](){const _0x419cc1=_0x7360d4;return this[_0x419cc1(0x11e)];}[_0x7360d4(0x183)](){const _0xfdb6ca=_0x7360d4;this[_0xfdb6ca(0x186)]||(this['_init']=!0x0,this[_0xfdb6ca(0x1a9)][_0xfdb6ca(0x1af)][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this['dispose$']))['subscribe'](_0x3f4f0c=>{const _0xc566c0=_0xfdb6ca;switch(_0x3f4f0c){case _0x4b3acb[_0xc566c0(0x17d)][_0xc566c0(0x1a0)]:this[_0xc566c0(0x142)]();break;case _0x4b3acb[_0xc566c0(0x17d)]['ONLINE']:this[_0xc566c0(0x180)]();break;}}),this[_0xfdb6ca(0x1a9)]['event$'][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this[_0xfdb6ca(0x1b2)]))[_0xfdb6ca(0x19e)](_0xbf902d=>{const _0x502acd=_0xfdb6ca,{eventID:_0x43d417}=_0xbf902d;switch(_0x43d417){case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1d4)]:this[_0x502acd(0x12d)](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_TERMINATE']:this[_0x502acd(0x1bc)]();break;case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1b8)]:this[_0x502acd(0x1bb)](_0xbf902d);break;}}));}[_0x7360d4(0x19f)](){const _0x53652f=_0x7360d4;this[_0x53652f(0x1a9)][_0x53652f(0x1da)]({'eventID':_0x2fb4e6[_0x53652f(0x1bd)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x53652f(0x19b)],'userID':this[_0x53652f(0x1a9)][_0x53652f(0x150)]()}},this[_0x53652f(0x19b)]);}[_0x7360d4(0x1be)](){const _0x3175c0=_0x7360d4;this['_status']===_0x3175c0(0x1c2)&&(this[_0x3175c0(0x1e9)][_0x3175c0(0x206)](_0x3175c0(0x148)),this[_0x3175c0(0x1a9)][_0x3175c0(0x1da)]({'eventID':_0x2fb4e6[_0x3175c0(0x1bd)][_0x3175c0(0x1c6)],'data':{'unitID':this[_0x3175c0(0x19b)]}},this[_0x3175c0(0x19b)]));}[_0x7360d4(0x1c7)](){const _0xc13be2=_0x7360d4;this[_0xc13be2(0x11e)]===_0xc13be2(0x129)&&(this[_0xc13be2(0x1e9)][_0xc13be2(0x206)](_0xc13be2(0x1e0)),this[_0xc13be2(0x204)]());}[_0x7360d4(0x168)](){const _0x35ca0c=_0x7360d4;this[_0x35ca0c(0x11e)]===_0x35ca0c(0x1e0)&&this['_stopFollowing']();}[_0x7360d4(0x12d)](_0x313768){const _0x172bd5=_0x7360d4,{presenter:_0x5a709d}=_0x313768[_0x172bd5(0x1b1)],_0x4678e0=this['_collabSession'][_0x172bd5(0x150)]();this[_0x172bd5(0x1e7)]=_0x5a709d,_0x5a709d===_0x4678e0?(this[_0x172bd5(0x1d5)](),this[_0x172bd5(0x14a)]()):this[_0x172bd5(0x11e)]!=='not-following'&&(this[_0x172bd5(0x1bf)](),this['_startFollowing']());}[_0x7360d4(0x138)](){const _0x1a435f=_0x7360d4,_0x411b65={'eventID':_0x2fb4e6['CollaborationEvent'][_0x1a435f(0x126)]};this['_collabSession'][_0x1a435f(0x1da)](_0x411b65,this[_0x1a435f(0x19b)]);}[_0x7360d4(0x1bc)](){const _0x13c559=_0x7360d4;this[_0x13c559(0x1e7)]=null,this[_0x13c559(0x11e)]!==_0x13c559(0x1c2)&&this[_0x13c559(0x1f5)]();}[_0x7360d4(0x1bb)](_0xefc4a5){const _0x4a8a56=_0x7360d4;if(this['_status']==='following'&&this[_0x4a8a56(0x1e7)]===_0xefc4a5[_0x4a8a56(0x1b1)][_0x4a8a56(0x158)]){const _0x14aa64=_0x2fb4e6['parseProtocolChangeset'](_0xefc4a5[_0x4a8a56(0x1b1)])[_0x4a8a56(0x1b5)][_0x4a8a56(0x1cf)]()[_0x4a8a56(0x1a7)](_0x253fbc=>_0x253fbc['id']===_0x22bb53[_0x4a8a56(0x1ec)]['id']);if(_0x14aa64){const _0x567441=_0x14aa64[_0x4a8a56(0x15b)][_0x4a8a56(0x20b)],_0x26b94d=_0x14aa64['params']['sheet']['id'];setTimeout(()=>{const _0x3019ae=_0x4a8a56;this[_0x3019ae(0x196)][_0x3019ae(0x13e)](_0x22bb53[_0x3019ae(0x1a5)]['id'],{'unitId':_0x567441,'subUnitId':_0x26b94d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed318=_0x7360d4;this[_0x5ed318(0x1e9)][_0x5ed318(0x206)](_0x5ed318(0x1c2));const _0xe6516=new Map(),_0x2b463d=this['_commandDisposable']=new _0x342837['DisposableCollection']();_0x2b463d['add'](_0x342837[_0x5ed318(0x14c)](()=>{const _0x3988ee=_0x5ed318;_0xe6516[_0x3988ee(0x178)](_0x3caa4c=>_0x3caa4c['complete']()),_0xe6516[_0x3988ee(0x125)]();})),_0x2b463d[_0x5ed318(0x18f)](this['_commandService'][_0x5ed318(0x1f7)](_0x378f2d=>{const _0x3eea8e=_0x5ed318;var _0x5a4c6d;if(_0x378f2d[_0x3eea8e(0x1f3)]!==_0x342837[_0x3eea8e(0x1c8)][_0x3eea8e(0x1ed)]||!this[_0x3eea8e(0x127)][_0x3eea8e(0x14b)](_0x378f2d['id']))return;const {id:_0x8b8179}=_0x378f2d;let _0x13d4ae;_0xe6516[_0x3eea8e(0x201)](_0x8b8179)?_0x13d4ae=_0xe6516[_0x3eea8e(0x12f)](_0x8b8179):(_0x13d4ae=new _0x5d360a['Subject'](),_0xe6516[_0x3eea8e(0x146)](_0x8b8179,_0x13d4ae),_0x13d4ae['pipe'](_0x392387[_0x3eea8e(0x121)]((_0x5a4c6d=this[_0x3eea8e(0x11f)][_0x3eea8e(0x1e5)](_0x383b2a))!=null?_0x5a4c6d:_0x460867,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3eea8e(0x19e)](_0xe247d7=>{const _0x38c256=_0x3eea8e;this[_0x38c256(0x1a9)][_0x38c256(0x1da)]({'eventID':_0x2fb4e6[_0x38c256(0x1bd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x38c256(0x19b)],'operations':{[_0xe247d7['id']]:{'id':_0xe247d7['id'],'params':JSON[_0x38c256(0x12b)](_0xe247d7[_0x38c256(0x15b)])}}}},this[_0x38c256(0x19b)]);})),_0x13d4ae[_0x3eea8e(0x206)](_0x378f2d);})),this[_0x5ed318(0x127)]['getInitialStates'](this[_0x5ed318(0x19b)])[_0x5ed318(0x178)](_0x3c10d3=>this[_0x5ed318(0x1a9)][_0x5ed318(0x1da)]({'eventID':_0x2fb4e6['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ed318(0x19b)],'operations':{[_0x3c10d3['id']]:{'id':_0x3c10d3['id'],'params':JSON[_0x5ed318(0x12b)](_0x3c10d3[_0x5ed318(0x15b)])}}}},this[_0x5ed318(0x19b)]));}[_0x7360d4(0x1bf)](){const _0xd09dce=_0x7360d4;var _0x3f9f1d;this[_0xd09dce(0x1e9)][_0xd09dce(0x206)](_0xd09dce(0x148)),(_0x3f9f1d=this[_0xd09dce(0x15f)])==null||_0x3f9f1d[_0xd09dce(0x13c)](),this['_commandDisposable']=null;}[_0x7360d4(0x204)](){const _0x4f6042=_0x7360d4;var _0x5f482b;(_0x5f482b=this[_0x4f6042(0x15f)])==null||_0x5f482b['dispose'](),this[_0x4f6042(0x1e9)][_0x4f6042(0x206)](_0x4f6042(0x1e0));}[_0x7360d4(0x1f5)](){const _0x4d724e=_0x7360d4;var _0x36f552;this[_0x4d724e(0x1e9)]['next'](_0x4d724e(0x148)),(_0x36f552=this['_commandDisposable'])==null||_0x36f552[_0x4d724e(0x13c)](),this[_0x4d724e(0x15f)]=null;}[_0x7360d4(0x1d5)](){const _0x33f316=_0x7360d4;var _0x32f0c4;this[_0x33f316(0x1e9)][_0x33f316(0x206)]('not-following'),(_0x32f0c4=this[_0x33f316(0x15f)])==null||_0x32f0c4[_0x33f316(0x13c)]();}[_0x7360d4(0x1d7)](_0x2f7dfa){const _0x51065b=_0x7360d4;if([_0x51065b(0x1c2),_0x51065b(0x129),_0x51065b(0x165)][_0x51065b(0x1fc)](this['_status'])||!_0x2f7dfa['data'][_0x51065b(0x132)]||_0x2f7dfa['data']['presenter']===this[_0x51065b(0x1a9)]['getMemberID']())return;this[_0x51065b(0x11e)]===_0x51065b(0x148)&&this[_0x51065b(0x204)]();const _0x3b24db=_0x2f7dfa[_0x51065b(0x1b1)][_0x51065b(0x198)];Object['values'](_0x3b24db)[_0x51065b(0x178)](_0x52c6f0=>{const _0x193ee1=_0x51065b;this[_0x193ee1(0x196)][_0x193ee1(0x13e)](_0x52c6f0['id'],_0x52c6f0['params']?JSON[_0x193ee1(0x197)](_0x52c6f0[_0x193ee1(0x15b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x577cb2=_0x7360d4;var _0x211f75;this[_0x577cb2(0x1e9)][_0x577cb2(0x206)](_0x577cb2(0x165)),(_0x211f75=this[_0x577cb2(0x15f)])==null||_0x211f75['dispose']();}[_0x7360d4(0x180)](){const _0x4dc37b=_0x7360d4;this[_0x4dc37b(0x1e9)][_0x4dc37b(0x206)]('idle'),this[_0x4dc37b(0x138)]();}},_0x1c5f91['LiveShareCoordinator']=_0x5cb2ff([_0x58bb4e(0x2,_0x342837[_0x7360d4(0x13f)]),_0x58bb4e(0x3,_0x342837[_0x7360d4(0x1fe)](_0x16957c)),_0x58bb4e(0x4,_0x342837[_0x7360d4(0x195)])],_0x1c5f91['LiveShareCoordinator']);function _0x245629(){const _0x58a902=_0x7360d4,_0x4c828a=_0x20cf75[_0x58a902(0x17e)](_0x1c5f91['LiveShareController']),_0xc9d43f=_0x20cf75[_0x58a902(0x17e)](_0x342837['IUniverInstanceService']),_0x7d41da=_0x20cf75[_0x58a902(0x1ea)](()=>_0xc9d43f[_0x58a902(0x143)](_0x342837[_0x58a902(0x190)][_0x58a902(0x194)]),void 0x0,!0x1,[]),[_0x1be1b1,_0x2d6654]=_0x2af741[_0x58a902(0x184)](null),[_0x7fe31b,_0x3fe9f3]=_0x2af741[_0x58a902(0x184)](_0x1aabba[_0x58a902(0x203)]),_0x394adb=_0x2af741[_0x58a902(0x17f)](null);return _0x2af741['useEffect'](()=>(_0x7d41da&&_0x4c828a[_0x58a902(0x16a)](_0x7d41da[_0x58a902(0x176)]())[_0x58a902(0x1b7)](_0x29e3d7=>{const _0x4be241=_0x58a902;_0x2d6654(_0x29e3d7),_0x394adb[_0x4be241(0x154)]=_0x29e3d7['status$']['subscribe'](_0xdd020=>{_0x3fe9f3(_0xdd020);});}),()=>{const _0x5e89ad=_0x58a902;var _0x14048e;(_0x14048e=_0x394adb[_0x5e89ad(0x154)])==null||_0x14048e['unsubscribe'](),_0x394adb[_0x5e89ad(0x154)]=null;}),[_0x7d41da,_0x4c828a]),_0x1be1b1?_0x5d3518[_0x58a902(0x1ba)](_0x19382c[_0x58a902(0x1b6)],{'align':_0x58a902(0x1dd),'disabled':_0x7fe31b===_0x1aabba[_0x58a902(0x1a0)],'className':_0x58a902(0x1a8),'overlay':_0x5d3518[_0x58a902(0x1ba)](_0xe21a01,{'status':_0x7fe31b,'coordinator':_0x1be1b1}),'children':_0x5d3518[_0x58a902(0x1ba)]('button',{'className':_0x19382c[_0x58a902(0x1aa)](_0x58a902(0x1f1),{'univer-cursor-not-allowed':_0x7fe31b===_0x1aabba['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7fe31b!==_0x1aabba[_0x58a902(0x1a0)]}),'type':'button','children':_0x5d3518[_0x58a902(0x1ba)](_0x342eb9,{'className':_0x58a902(0x1ff)})})}):null;}function _0xe21a01(_0x44a76f){const _0x7169b5=_0x7360d4,{status:_0x340aa1,coordinator:_0x48cb5b}=_0x44a76f;switch(_0x340aa1){case _0x1aabba[_0x7169b5(0x203)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b695d,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x13d)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b871b,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1cd)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x107415,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1a0)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x31f1fa,{});case _0x1aabba[_0x7169b5(0x13b)]:return _0x5d3518['jsx'](_0x3218bd,{'coordinator':_0x48cb5b});default:return null;}}function _0x3b695d(_0x42efa2){const _0x5498d2=_0x7360d4,{coordinator:_0x265161}=_0x42efa2;return _0x5d3518[_0x5498d2(0x166)](_0x5d3518[_0x5498d2(0x12a)],{'children':[_0x5d3518[_0x5498d2(0x1ba)](_0x5498d2(0x188),{'className':_0x5498d2(0x149),'children':_0x5498d2(0x161)}),_0x5d3518[_0x5498d2(0x1ba)](_0x19382c[_0x5498d2(0x1d6)],{'onClick':()=>_0x265161[_0x5498d2(0x19f)](),'children':_0x5498d2(0x1d8)})]});}function _0x3b871b(_0x18c67d){const _0x182919=_0x7360d4,{coordinator:_0x55972c}=_0x18c67d;return _0x5d3518[_0x182919(0x166)](_0x5d3518[_0x182919(0x12a)],{'children':[_0x5d3518[_0x182919(0x1ba)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5d3518[_0x182919(0x1ba)](_0x19382c['Button'],{'onClick':()=>_0x55972c[_0x182919(0x168)](),'children':_0x182919(0x18a)})]});}function _0x107415(_0x12c7d0){const _0x1f3ea3=_0x7360d4,{coordinator:_0x4a479b}=_0x12c7d0;return _0x5d3518[_0x1f3ea3(0x166)](_0x5d3518['Fragment'],{'children':[_0x5d3518['jsx'](_0x1f3ea3(0x188),{'className':_0x1f3ea3(0x149),'children':_0x1f3ea3(0x133)}),_0x5d3518['jsx'](_0x19382c[_0x1f3ea3(0x1d6)],{'variant':_0x1f3ea3(0x141),'onClick':()=>_0x4a479b[_0x1f3ea3(0x1c7)](),'children':_0x1f3ea3(0x1db)})]});}function _0x3218bd(_0x51e777){const _0x506f50=_0x7360d4,{coordinator:_0x30ba29}=_0x51e777;return _0x5d3518['jsxs'](_0x5d3518[_0x506f50(0x12a)],{'children':[_0x5d3518[_0x506f50(0x1ba)](_0x506f50(0x188),{'className':_0x506f50(0x149),'children':_0x506f50(0x1fb)}),_0x5d3518[_0x506f50(0x1ba)](_0x19382c[_0x506f50(0x1d6)],{'variant':_0x506f50(0x1f4),'onClick':()=>_0x30ba29[_0x506f50(0x1be)](),'children':_0x506f50(0x202)})]});}function _0x31f1fa(){const _0x55acb2=_0x7360d4;return _0x5d3518[_0x55acb2(0x1ba)](_0x5d3518[_0x55acb2(0x12a)],{'children':_0x55acb2(0x162)});}var _0x1e559a=Object[_0x7360d4(0x140)],_0x268bf6=(_0x95e674,_0x5f1d04,_0x17ca30,_0x232611)=>{const _0x12b519=_0x7360d4;for(var _0x1fc10f=_0x232611>0x1?void 0x0:_0x232611?_0x1e559a(_0x5f1d04,_0x17ca30):_0x5f1d04,_0x2aa0e8=_0x95e674[_0x12b519(0x14d)]-0x1,_0x376fb1;_0x2aa0e8>=0x0;_0x2aa0e8--)(_0x376fb1=_0x95e674[_0x2aa0e8])&&(_0x1fc10f=_0x376fb1(_0x1fc10f)||_0x1fc10f);return _0x1fc10f;},_0x186dc6=(_0xa80f06,_0x17b0c4)=>(_0x567a16,_0x5a4e2a)=>_0x17b0c4(_0x567a16,_0x5a4e2a,_0xa80f06);_0x1c5f91[_0x7360d4(0x177)]=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x4c2d86,_0x16a9a0){const _0x1ab2c5=_0x7360d4;super(),this[_0x1ab2c5(0x128)]=_0x4c2d86,this[_0x1ab2c5(0x208)]=_0x16a9a0,this[_0x1ab2c5(0x209)]();}['_mountLiveShare'](){const _0x312966=_0x7360d4;this[_0x312966(0x12e)](this[_0x312966(0x208)]['registerComponent'](_0x20cf75[_0x312966(0x167)][_0x312966(0x159)],()=>_0x20cf75[_0x312966(0x179)](_0x245629,this[_0x312966(0x128)])));}},_0x1c5f91[_0x7360d4(0x177)]=_0x268bf6([_0x186dc6(0x0,_0x342837['Inject'](_0x342837['Injector'])),_0x186dc6(0x1,_0x20cf75[_0x7360d4(0x1b0)])],_0x1c5f91['DesktopLiveShareController']);const _0x273c6a=_0x7360d4(0x1d0),_0x371327={};var _0x2058a4=Object[_0x7360d4(0x140)],_0x1238be=(_0x1be501,_0x9124de,_0x41b7e1,_0x3b9ed0)=>{for(var _0x125c1e=_0x3b9ed0>0x1?void 0x0:_0x3b9ed0?_0x2058a4(_0x9124de,_0x41b7e1):_0x9124de,_0x5fbf03=_0x1be501['length']-0x1,_0x45aa3d;_0x5fbf03>=0x0;_0x5fbf03--)(_0x45aa3d=_0x1be501[_0x5fbf03])&&(_0x125c1e=_0x45aa3d(_0x125c1e)||_0x125c1e);return _0x125c1e;},_0x284e46=(_0x219df5,_0xae8d1f)=>(_0x58d9ee,_0x42d115)=>_0xae8d1f(_0x58d9ee,_0x42d115,_0x219df5);let _0x2fcbb6=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x535405){const _0x830a94=_0x7360d4;super(),this[_0x830a94(0x127)]=_0x535405,this[_0x830a94(0x186)]();}['_init'](){const _0xb52c97=_0x7360d4;[_0x51dae5['SetZoomRatioOperation']['id'],_0x51dae5[_0xb52c97(0x1ad)]['id'],_0x22bb53[_0xb52c97(0x1a5)]['id']][_0xb52c97(0x178)](_0x20c02b=>{const _0x190382=_0xb52c97;this[_0x190382(0x12e)](this['_liveShareService'][_0x190382(0x1b3)](_0x20c02b));});}};_0x2fcbb6=_0x1238be([_0x284e46(0x0,_0x342837[_0x7360d4(0x1fe)](_0x16957c))],_0x2fcbb6);var _0x49b202=Object[_0x7360d4(0x18c)],_0x1281a5=Object[_0x7360d4(0x140)],_0x5eb755=(_0x20d4b0,_0x358fa2,_0x5bfdfe)=>_0x358fa2 in _0x20d4b0?_0x49b202(_0x20d4b0,_0x358fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfdfe}):_0x20d4b0[_0x358fa2]=_0x5bfdfe,_0x1ff269=(_0x3bad10,_0x11faa4,_0x511b3a,_0x26e6ad)=>{for(var _0x298545=_0x26e6ad>0x1?void 0x0:_0x26e6ad?_0x1281a5(_0x11faa4,_0x511b3a):_0x11faa4,_0x2873da=_0x3bad10['length']-0x1,_0x1e25f5;_0x2873da>=0x0;_0x2873da--)(_0x1e25f5=_0x3bad10[_0x2873da])&&(_0x298545=_0x1e25f5(_0x298545)||_0x298545);return _0x298545;},_0x4afb6f=(_0xc79ea5,_0x455356)=>(_0x564f04,_0x1c40cf)=>_0x455356(_0x564f04,_0x1c40cf,_0xc79ea5),_0xf45197=(_0xb1a850,_0x20387c,_0x33cd70)=>_0x5eb755(_0xb1a850,typeof _0x20387c!=_0x7360d4(0x171)?_0x20387c+'':_0x20387c,_0x33cd70);const _0x5ac992=_0x7360d4(0x1fd);_0x1c5f91[_0x7360d4(0x15c)]=class extends _0x342837[_0x7360d4(0x135)]{constructor(_0x2f9a19=_0x371327,_0x37d1a4,_0x470589){const _0xb665d4=_0x7360d4;super(),this[_0xb665d4(0x14e)]=_0x2f9a19,this['_injector']=_0x37d1a4,this[_0xb665d4(0x11f)]=_0x470589;const {..._0x49e5fc}=_0x342837[_0xb665d4(0x1f9)]({},_0x371327,this[_0xb665d4(0x14e)]);this[_0xb665d4(0x11f)]['setConfig'](_0x273c6a,_0x49e5fc);}['onStarting'](){const _0x31f021=_0x7360d4;_0x342837[_0x31f021(0x175)](this[_0x31f021(0x128)],_0x342837[_0x31f021(0x153)]([[_0x16957c],[_0x1c5f91[_0x31f021(0x1c0)]],[_0x2fcbb6],[_0x1c5f91['DesktopLiveShareController']]],this[_0x31f021(0x14e)][_0x31f021(0x172)])),_0x342837['touchDependencies'](this[_0x31f021(0x128)],[[_0x2fcbb6]]);}['onRendered'](){const _0x132b49=_0x7360d4;_0x342837[_0x132b49(0x16c)](this['_injector'],[[_0x1c5f91[_0x132b49(0x177)]]]);}},_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],'type',_0x342837['UniverInstanceType'][_0x7360d4(0x1e2)]),_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],_0x7360d4(0x17a),_0x5ac992),_0x1c5f91['UniverLiveSharePlugin']=_0x1ff269([_0x342837['DependentOn'](_0x4b3acb[_0x7360d4(0x1ee)]),_0x4afb6f(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837[_0x7360d4(0x157)])),_0x4afb6f(0x2,_0x342837[_0x7360d4(0x13f)])],_0x1c5f91[_0x7360d4(0x15c)]),_0x1c5f91[_0x7360d4(0x1cb)]=_0x245629,_0x1c5f91[_0x7360d4(0x1c4)]=_0x16957c,_0x1c5f91[_0x7360d4(0x189)]=_0x1aabba,Object[_0x7360d4(0x18c)](_0x1c5f91,Symbol[_0x7360d4(0x1ef)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-insiders.
|
|
3
|
+
"version": "0.12.4-insiders.20251213-692494c",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.4-insiders.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.4-insiders.
|
|
62
|
-
"@univerjs/core": "0.12.4-insiders.
|
|
63
|
-
"@univerjs/design": "0.12.4-insiders.
|
|
64
|
-
"@univerjs/sheets-ui": "0.12.4-insiders.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-insiders.20251213-692494c",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-insiders.20251213-692494c",
|
|
62
|
+
"@univerjs/core": "0.12.4-insiders.20251213-692494c",
|
|
63
|
+
"@univerjs/design": "0.12.4-insiders.20251213-692494c",
|
|
64
|
+
"@univerjs/sheets-ui": "0.12.4-insiders.20251213-692494c",
|
|
65
|
+
"@univerjs/ui": "0.12.4-insiders.20251213-692494c",
|
|
66
|
+
"@univerjs/sheets": "0.12.4-insiders.20251213-692494c",
|
|
67
|
+
"@univerjs/engine-render": "0.12.4-insiders.20251213-692494c"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|