@univerjs-pro/live-share 0.10.13 → 0.10.14-nightly.202511031023
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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x283b0a=_0x2d12;function _0x2d12(_0x22973c,_0x49ebfe){const _0x4860cf=_0x4860();return _0x2d12=function(_0x2d1279,_0x29d589){_0x2d1279=_0x2d1279-0x1bf;let _0x257e40=_0x4860cf[_0x2d1279];return _0x257e40;},_0x2d12(_0x22973c,_0x49ebfe);}(function(_0x56b39c,_0x5dcce7){const _0x2b152f=_0x2d12,_0x1b09ab=_0x56b39c();while(!![]){try{const _0x35b53d=-parseInt(_0x2b152f(0x1c0))/0x1+-parseInt(_0x2b152f(0x1e7))/0x2+-parseInt(_0x2b152f(0x1d0))/0x3*(parseInt(_0x2b152f(0x1d8))/0x4)+-parseInt(_0x2b152f(0x1da))/0x5*(-parseInt(_0x2b152f(0x1e3))/0x6)+-parseInt(_0x2b152f(0x1dd))/0x7*(-parseInt(_0x2b152f(0x1d3))/0x8)+parseInt(_0x2b152f(0x1ca))/0x9+-parseInt(_0x2b152f(0x1c4))/0xa*(-parseInt(_0x2b152f(0x1c7))/0xb);if(_0x35b53d===_0x5dcce7)break;else _0x1b09ab['push'](_0x1b09ab['shift']());}catch(_0x7420e9){_0x1b09ab['push'](_0x1b09ab['shift']());}}}(_0x4860,0x6d329));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['FRange']{[_0x283b0a(0x1e8)](_0x2930bf,_0x113288,_0xa47da2,_0x4caf2a,_0x417496){const _0x3618ce=_0x283b0a,_0x4b3777=_0x2930bf[_0x3618ce(0x1c5)](n[_0x3618ce(0x1c6)]),_0x3da4f6=_0x2930bf[_0x3618ce(0x1c5)](g[_0x3618ce(0x1de)]),_0xe76598=_0x113288['getUnitId'](),_0x264888=_0x113288[_0x3618ce(0x1c1)](),_0x334027=_0x4b3777[_0x3618ce(0x1c2)](_0xe76598);(_0x334027==null?void 0x0:_0x334027[_0x3618ce(0x1bf)]())!==n[_0x3618ce(0x1e6)]['PRESENTING']||(_0xa47da2[_0x3618ce(0x1e4)]()!==_0x264888[_0x3618ce(0x1e4)]()&&this[_0x3618ce(0x1d2)][_0x3618ce(0x1db)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0xe76598,'subUnitId':_0xa47da2[_0x3618ce(0x1e4)]()}),!_0x3da4f6[_0x3618ce(0x1cc)](_0xe76598))||_0x417496[_0x3618ce(0x1dc)](f[_0x3618ce(0x1d6)]['id'],{'unitId':_0x113288['getUnitId'](),'sheetId':_0xa47da2[_0x3618ce(0x1e4)](),'sheetViewStartRow':_0x4caf2a[_0x3618ce(0x1e1)],'sheetViewStartColumn':_0x4caf2a['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x283b0a(0x1cb)][_0x283b0a(0x1e2)](w);class C extends a['FUniver']{[_0x283b0a(0x1cf)](){const _0x46b679=_0x283b0a;var _0x5184cb,_0x1abb12;const _0x2b7638=this['_injector'][_0x46b679(0x1c5)](n[_0x46b679(0x1c6)]),_0x2fe471=(_0x5184cb=this[_0x46b679(0x1e0)]())==null?void 0x0:_0x5184cb[_0x46b679(0x1d9)]();if(!_0x2fe471)throw new Error(_0x46b679(0x1df));const _0x2bb329=_0x2b7638[_0x46b679(0x1c2)](_0x2fe471);return(_0x1abb12=_0x2bb329==null?void 0x0:_0x2bb329[_0x46b679(0x1bf)]())!=null?_0x1abb12:n[_0x46b679(0x1e6)][_0x46b679(0x1e5)];}[_0x283b0a(0x1c9)](){const _0x235bc9=_0x283b0a;var _0xff9774;const _0x5ed8b5=this[_0x235bc9(0x1ce)][_0x235bc9(0x1c5)](n[_0x235bc9(0x1c6)]),_0x3ee5ce=(_0xff9774=this[_0x235bc9(0x1e0)]())==null?void 0x0:_0xff9774[_0x235bc9(0x1d9)]();if(!_0x3ee5ce)throw new Error('No\x20active\x20workbook\x20found.');const _0x352f14=_0x5ed8b5['getLiveShareCoordinatorSync'](_0x3ee5ce);if(!_0x352f14)throw new Error(_0x235bc9(0x1d5));_0x352f14[_0x235bc9(0x1c9)]();}[_0x283b0a(0x1c8)](){const _0x452631=_0x283b0a;var _0x36a412;const _0x2cf4cb=this[_0x452631(0x1ce)]['get'](n[_0x452631(0x1c6)]),_0x42cf9a=(_0x36a412=this[_0x452631(0x1e0)]())==null?void 0x0:_0x36a412[_0x452631(0x1d9)]();if(!_0x42cf9a)throw new Error(_0x452631(0x1df));const _0xd66b01=_0x2cf4cb['getLiveShareCoordinatorSync'](_0x42cf9a);if(!_0xd66b01)throw new Error(_0x452631(0x1d5));_0xd66b01[_0x452631(0x1c8)]();}[_0x283b0a(0x1d4)](){const _0x3e13af=_0x283b0a;var _0x299e3d;const _0x3d379e=this[_0x3e13af(0x1ce)][_0x3e13af(0x1c5)](n[_0x3e13af(0x1c6)]),_0x3a313b=(_0x299e3d=this[_0x3e13af(0x1e0)]())==null?void 0x0:_0x299e3d[_0x3e13af(0x1d9)]();if(!_0x3a313b)throw new Error(_0x3e13af(0x1df));const _0x1f73ac=_0x3d379e['getLiveShareCoordinatorSync'](_0x3a313b);if(!_0x1f73ac)throw new Error(_0x3e13af(0x1d5));_0x1f73ac[_0x3e13af(0x1cd)]();}[_0x283b0a(0x1d1)](){const _0x6553d8=_0x283b0a;var _0x117842;const _0x541c6b=this[_0x6553d8(0x1ce)][_0x6553d8(0x1c5)](n[_0x6553d8(0x1c6)]),_0x2e7a23=(_0x117842=this['getActiveWorkbook']())==null?void 0x0:_0x117842[_0x6553d8(0x1d9)]();if(!_0x2e7a23)throw new Error(_0x6553d8(0x1df));const _0x340306=_0x541c6b[_0x6553d8(0x1c2)](_0x2e7a23);if(!_0x340306)throw new Error(_0x6553d8(0x1d5));_0x340306[_0x6553d8(0x1d1)]();}}a[_0x283b0a(0x1d7)][_0x283b0a(0x1e2)](C);class L extends a['FEnum']{get['LiveShareStatusEnum'](){const _0x5d21ce=_0x283b0a;return n[_0x5d21ce(0x1e6)];}}function _0x4860(){const _0x1df3de=['6eMZVgP','stopPresenting','_commandService','207160seZrfl','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetScrollOperation','FUniver','723484sDLTRL','getId','25xolmUG','executeCommand','syncExecuteCommand','63WISzjN','IRenderManagerService','No\x20active\x20workbook\x20found.','getActiveWorkbook','startRow','extend','242364BlHUfM','getSheetId','IDLE','LiveShareStatus','107464RtwHTP','_initialize','getStatus','602334Hcabgl','getActiveSheet','getLiveShareCoordinatorSync','FEnum','2774470QCRvzF','get','LiveShareController','22QLkJAh','stopFollowing','startFollowing','4276458nbNPnE','FRange','getRenderById','tryStartPresenting','_injector','getLiveShareStatus'];_0x4860=function(){return _0x1df3de;};return _0x4860();}a[_0x283b0a(0x1c3)][_0x283b0a(0x1e2)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x44ba(_0x52a5f6,_0x1aba47){const _0x34ff6a=_0x34ff();return _0x44ba=function(_0x44baff,_0x2767d2){_0x44baff=_0x44baff-0xd7;let _0x28d3f3=_0x34ff6a[_0x44baff];return _0x28d3f3;},_0x44ba(_0x52a5f6,_0x1aba47);}const _0x1b3401=_0x44ba;function _0x34ff(){const _0x44af3b=['jsx','_presenter','text','idSuffix','displayName','_handleOffline','defs','Plugin','LIVESHARE_FETCH_OPERATIONS','getUnitId','dispose','408695jXdDEf','createInstance','values','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','IUniverInstanceService','touchDependencies','send','BuiltInUIPart','Inject','complete','evenodd','symbol','_stopFollowing','toString','_unitID','_beIdle','_fetchOperations','_injector','get','map','params','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pluginName','UNIVER_SHEET','_stopPresenting','_mountLiveShare','BehaviorSubject','_status','PRESENTING','NEW_CHANGESETS','ICommandService','11283003oJNJwD','tryStartPresenting','button','end','jsxs','SetWorksheetActiveOperation','getMemberID','shouldShareOperation','CollaborationSessionService','846774IVBTvg','_collabSession','override','includes','pipe','not-following','attrs','disposeWithMe','dispose$','createElement','defIds','none','CollaborationEvent','getCurrentTypeOfUnit$','_init','_reporters','set','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','clsx','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','then','Start\x20following','_commandDisposable','status$','UniverInstanceType','asObservable','Disposable','_commandService','2661118mtgvrz','following','idle','_uiPartsService','live-share-icon','SessionStatus','string','data','mutations','_handleTerminate','DependentOn','UniverLiveSharePlugin','url(#$1','has','find','Start','SetZoomRatioOperation','2986047uqXDOP','defineProperty','DisposableCollection','throttleTime','1em','parse','Stop\x20following','_entities','tag','add','use','init','CommandType','executeCommand','toDisposable','path','SetScrollOperation','clear','presenting','Fragment','mask','length','currentColor','delete','registerSharedOperation','replace','offline','IConfigService','Injector','Module','stringify','sessionStatus$','_startLiveShareCoordinator','_configService','subscribe','useEffect','_status$','stopPresenting','onCommandExecuted','event$','_sharedOperations','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleOperation','mergeOverrideWithDependencies','LiveShareIcon','getOwnPropertyDescriptor','IDLE','entries','getLiveShareCoordinator','sheet','merge','next','getTypeOfUnitDisposed$','default','useState','_startPresenting','forEach','Stop\x20presenting','_collabSessionService','DesktopLiveShareController','InsertSheetMutation','onStarting','RxDisposable','getInitialStates','0\x200\x2017\x2017','8VcwAzu','children','trim','univer-size-4','FOLLOWING','parseProtocolChangeset','useObservable','118824VTaAXM','assign','from','_handleNewChangeSets','div','getTypeOfUnitAdded$','registerInitialStateReporter','You\x27are\x20offline.','NOT_FOLLOWING','5CqVSKA','HEADER_MENU','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','_config','LiveShareController','getStatus','stopFollowing','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','colorChannel1','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','current','Subject','LIVESHARE_TERMINATE','_univerInstanceService','useRef','takeUntil','LiveShareService','205308RjLldk','unitId','live-share.config','registerComponent','UNIVER_UNKNOWN','UniverIcon','LIVESHARE_NEW_HOST','Button','_startFollowing','You\x27re\x20presenting\x20the\x20document','type','startFollowing','_liveShareService'];_0x34ff=function(){return _0x44af3b;};return _0x34ff();}(function(_0x38fefd,_0x3ceeed){const _0x271de1=_0x44ba,_0x100daf=_0x38fefd();while(!![]){try{const _0x2c595a=-parseInt(_0x271de1(0x197))/0x1+-parseInt(_0x271de1(0x13d))/0x2+parseInt(_0x271de1(0x14e))/0x3+-parseInt(_0x271de1(0xdd))/0x4*(-parseInt(_0x271de1(0x1a0))/0x5)+-parseInt(_0x271de1(0x11f))/0x6+-parseInt(_0x271de1(0xf5))/0x7*(-parseInt(_0x271de1(0x190))/0x8)+parseInt(_0x271de1(0x116))/0x9;if(_0x2c595a===_0x3ceeed)break;else _0x100daf['push'](_0x100daf['shift']());}catch(_0x24b550){_0x100daf['push'](_0x100daf['shift']());}}}(_0x34ff,0xbb8d8));var T=Object[_0x1b3401(0x14f)],U=(_0x22136e,_0x5dddf1,_0x5d8159)=>_0x5dddf1 in _0x22136e?T(_0x22136e,_0x5dddf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d8159}):_0x22136e[_0x5dddf1]=_0x5d8159,_=(_0x580fed,_0x57a8a2,_0x3b5983)=>U(_0x580fed,typeof _0x57a8a2!=_0x1b3401(0x102)?_0x57a8a2+'':_0x57a8a2,_0x3b5983);Object[_0x1b3401(0x14f)](exports,Symbol['toStringTag'],{'value':_0x1b3401(0x16b)});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:_0x484797,..._0x34c744}){const _0x5e1876=_0x1b3401,{icon:_0x4a328f,id:_0x317108,className:_0x58a079,extend:_0x5eff59,..._0x42500d}=_0x34c744,_0x4f40d8=(_0x5e1876(0x177)+_0x317108+'\x20'+(_0x58a079||''))[_0x5e1876(0x192)](),_0x21687a=v[_0x5e1876(0xda)]('_'+H());return j(_0x4a328f,''+_0x317108,{'defIds':_0x4a328f[_0x5e1876(0x129)],'idSuffix':_0x21687a[_0x5e1876(0x1ac)]},{'ref':_0x484797,'className':_0x4f40d8,..._0x42500d},_0x5eff59);}function j(_0xb03a7c,_0x1bb4c6,_0x55fe50,_0x4a59a3,_0x3625db){const _0x1b9ffa=_0x1b3401;return v[_0x1b9ffa(0x128)](_0xb03a7c[_0x1b9ffa(0x156)],{'key':_0x1bb4c6,...y(_0xb03a7c,_0x55fe50,_0x3625db),..._0x4a59a3},(F(_0xb03a7c,_0x55fe50)['children']||[])[_0x1b9ffa(0x10a)]((_0x1e4e98,_0x59e63a)=>j(_0x1e4e98,_0x1bb4c6+'-'+_0xb03a7c['tag']+'-'+_0x59e63a,_0x55fe50,void 0x0,_0x3625db)));}function y(_0x5a3172,_0x207e4b,_0x2755eb){const _0x59c8b7=_0x1b3401,_0x5bbd9d={..._0x5a3172[_0x59c8b7(0x125)]};_0x2755eb!=null&&_0x2755eb[_0x59c8b7(0x1aa)]&&_0x5bbd9d[_0x59c8b7(0x1a8)]===_0x59c8b7(0x1aa)&&(_0x5bbd9d[_0x59c8b7(0x1a8)]=_0x2755eb[_0x59c8b7(0x1aa)]),_0x5a3172['tag']==='mask'&&_0x5bbd9d['id']&&(_0x5bbd9d['id']=_0x5bbd9d['id']+_0x207e4b[_0x59c8b7(0xed)]),Object[_0x59c8b7(0x17e)](_0x5bbd9d)['forEach'](([_0x183e74,_0x2be75d])=>{const _0x1cb93f=_0x59c8b7;_0x183e74===_0x1cb93f(0x162)&&typeof _0x2be75d==_0x1cb93f(0x143)&&(_0x5bbd9d[_0x183e74]=_0x2be75d[_0x1cb93f(0x167)](/url\(#(.*)\)/,_0x1cb93f(0x149)+_0x207e4b['idSuffix']+')'));});const {defIds:_0x153cb0}=_0x207e4b;return!_0x153cb0||_0x153cb0[_0x59c8b7(0x163)]===0x0||(_0x5a3172[_0x59c8b7(0x156)]===_0x59c8b7(0x158)&&_0x5bbd9d[_0x59c8b7(0x134)]&&(_0x5bbd9d[_0x59c8b7(0x134)]=_0x5bbd9d[_0x59c8b7(0x134)]+_0x207e4b['idSuffix']),Object[_0x59c8b7(0x17e)](_0x5bbd9d)[_0x59c8b7(0x187)](([_0x5c88be,_0x5c302c])=>{const _0x34f08f=_0x59c8b7;typeof _0x5c302c=='string'&&(_0x5bbd9d[_0x5c88be]=_0x5c302c[_0x34f08f(0x167)](/url\(#(.*)\)/,_0x34f08f(0x149)+_0x207e4b[_0x34f08f(0xed)]+')'));})),_0x5bbd9d;}function F(_0x3c1fa6,_0x4f7188){const _0x4740f1=_0x1b3401;var _0x1b4307;const {defIds:_0x4245f8}=_0x4f7188;return!_0x4245f8||_0x4245f8[_0x4740f1(0x163)]===0x0?_0x3c1fa6:_0x3c1fa6[_0x4740f1(0x156)]===_0x4740f1(0xf0)&&((_0x1b4307=_0x3c1fa6[_0x4740f1(0x191)])!=null&&_0x1b4307[_0x4740f1(0x163)])?{..._0x3c1fa6,'children':_0x3c1fa6['children'][_0x4740f1(0x10a)](_0x5d2d35=>typeof _0x5d2d35['attrs']['id']==_0x4740f1(0x143)&&_0x4245f8&&_0x4245f8[_0x4740f1(0x122)](_0x5d2d35[_0x4740f1(0x125)]['id'])?{..._0x5d2d35,'attrs':{..._0x5d2d35[_0x4740f1(0x125)],'id':_0x5d2d35[_0x4740f1(0x125)]['id']+_0x4f7188[_0x4740f1(0xed)]}}:_0x5d2d35)}:_0x3c1fa6;}function H(){const _0x39f34b=_0x1b3401;return Math[_0x39f34b(0xf8)]()[_0x39f34b(0x104)](0x24)['substring'](0x2,0x8);}x[_0x1b3401(0xee)]=_0x1b3401(0xe2);const V={'tag':'svg','attrs':{'xmlns':_0x1b3401(0x131),'fill':_0x1b3401(0x12a),'viewBox':_0x1b3401(0x18f),'width':'1em','height':_0x1b3401(0x152)},'children':[{'tag':_0x1b3401(0x15d),'attrs':{'fill':_0x1b3401(0x164),'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':_0x1b3401(0x164),'d':_0x1b3401(0x1ab),'fillRule':_0x1b3401(0x101),'clipRule':_0x1b3401(0x101)}}]},R=v['forwardRef'](function(_0x205bca,_0x3167f2){const _0x4add07=_0x1b3401;return v[_0x4add07(0x128)](x,Object[_0x4add07(0x198)]({},_0x205bca,{'id':_0x4add07(0x141),'ref':_0x3167f2,'icon':V}));});R[_0x1b3401(0xee)]=_0x1b3401(0x17b);class E extends o[_0x1b3401(0x13b)]{constructor(){const _0x5371cb=_0x1b3401;super(...arguments),_(this,_0x5371cb(0x176),new Set()),_(this,'_reporters',new Set());}[_0x1b3401(0x166)](_0x7f7ce9){const _0x5af53c=_0x1b3401;return this[_0x5af53c(0x176)][_0x5af53c(0x157)](_0x7f7ce9),o[_0x5af53c(0x15c)](()=>this[_0x5af53c(0x176)][_0x5af53c(0x165)](_0x7f7ce9));}[_0x1b3401(0x19d)](_0x2e0b22){const _0x59c209=_0x1b3401;return this['_reporters']['add'](_0x2e0b22),o[_0x59c209(0x15c)](()=>this['_reporters']['delete'](_0x2e0b22));}[_0x1b3401(0x11d)](_0x251a9c){const _0x3c9cce=_0x1b3401;return this[_0x3c9cce(0x176)][_0x3c9cce(0x14a)](_0x251a9c);}[_0x1b3401(0x18e)](_0x2a4f67){const _0x10c810=_0x1b3401;return Array[_0x10c810(0x199)](this[_0x10c810(0x12e)])[_0x10c810(0x10a)](_0x316c64=>_0x316c64(_0x2a4f67));}}var M=Object[_0x1b3401(0x17c)],P=(_0x48982a,_0x59aaaf,_0x6bb4e0,_0x279717)=>{const _0x1b0d96=_0x1b3401;for(var _0x36d47b=_0x279717>0x1?void 0x0:_0x279717?M(_0x59aaaf,_0x6bb4e0):_0x59aaaf,_0x12baf5=_0x48982a[_0x1b0d96(0x163)]-0x1,_0x32f462;_0x12baf5>=0x0;_0x12baf5--)(_0x32f462=_0x48982a[_0x12baf5])&&(_0x36d47b=_0x32f462(_0x36d47b)||_0x36d47b);return _0x36d47b;},S=(_0xe60488,_0x321d19)=>(_0x3a4186,_0x466226)=>_0x321d19(_0x3a4186,_0x466226,_0xe60488);exports[_0x1b3401(0x1a5)]=class extends o[_0x1b3401(0x18d)]{constructor(_0x22aedc,_0x2e8cde,_0x4207cd){const _0x268378=_0x1b3401;super(),_(this,_0x268378(0x155),new Map()),(this[_0x268378(0xd9)]=_0x22aedc,this[_0x268378(0x108)]=_0x2e8cde,this['_collabSessionService']=_0x4207cd,this['_init']());}async[_0x1b3401(0x17f)](_0x1f68cd){const _0x583453=_0x1b3401;return this[_0x583453(0x155)][_0x583453(0x14a)](_0x1f68cd)||await this[_0x583453(0x16e)](_0x1f68cd),this[_0x583453(0x155)][_0x583453(0x109)](_0x1f68cd);}['getLiveShareCoordinatorSync'](_0x185a5d){const _0x4d81e3=_0x1b3401;var _0x5673c4;return(_0x5673c4=this[_0x4d81e3(0x155)][_0x4d81e3(0x109)](_0x185a5d))!=null?_0x5673c4:null;}[_0x1b3401(0x12d)](){const _0x5694d9=_0x1b3401;this[_0x5694d9(0xd9)][_0x5694d9(0x19c)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I[_0x5694d9(0xdb)](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](async _0x16f6b8=>{const _0x22b5a7=_0x5694d9,_0x17bf87=_0x16f6b8[_0x22b5a7(0xf3)]();this[_0x22b5a7(0x155)][_0x22b5a7(0x14a)](_0x17bf87)||this['_startLiveShareCoordinator'](_0x17bf87);}),this['_univerInstanceService'][_0x5694d9(0x183)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I['takeUntil'](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](_0x56e555=>{const _0x5c1244=_0x5694d9,_0x5cc818=_0x56e555[_0x5c1244(0xf3)](),_0x4b1dfe=this['_entities'][_0x5c1244(0x109)](_0x5cc818);_0x4b1dfe==null||_0x4b1dfe[_0x5c1244(0xf4)]();});}async[_0x1b3401(0x16e)](_0x187341){const _0x276761=_0x1b3401,_0x3cc6f7=await this[_0x276761(0x189)]['requireSession'](_0x187341),_0x3010be=this[_0x276761(0x108)][_0x276761(0xf6)](exports[_0x276761(0x1a2)],_0x187341,_0x3cc6f7);return _0x3010be[_0x276761(0x159)](),this[_0x276761(0x155)][_0x276761(0x12f)](_0x187341,_0x3010be),_0x3010be;}},exports[_0x1b3401(0x1a5)]=P([S(0x0,o[_0x1b3401(0xfb)]),S(0x1,o['Inject'](o[_0x1b3401(0x16a)])),S(0x2,o['Inject'](b[_0x1b3401(0x11e)]))],exports[_0x1b3401(0x1a5)]);var u=(_0x3f4010=>(_0x3f4010[_0x1b3401(0x178)]=_0x1b3401(0x168),_0x3f4010['IDLE']=_0x1b3401(0x13f),_0x3f4010[_0x1b3401(0x194)]=_0x1b3401(0x13e),_0x3f4010[_0x1b3401(0x19f)]='not-following',_0x3f4010[_0x1b3401(0x113)]=_0x1b3401(0x160),_0x3f4010))(u||{});const k=_0x1b3401(0x1a3),q=0xc8;exports[_0x1b3401(0x1a2)]=class extends o['RxDisposable']{constructor(_0x500f41,_0x27a632,_0x3470b3,_0x513958,_0x25e7ed){const _0x20118b=_0x1b3401;super(),_(this,_0x20118b(0x172),new O[(_0x20118b(0x111))](_0x20118b(0x13f))),_(this,_0x20118b(0x138),this[_0x20118b(0x172)][_0x20118b(0x13a)]()),_(this,'_init',!0x1),_(this,_0x20118b(0x137),null),_(this,_0x20118b(0xeb),null),(this[_0x20118b(0x105)]=_0x500f41,this[_0x20118b(0x120)]=_0x27a632,this[_0x20118b(0x16f)]=_0x3470b3,this[_0x20118b(0xe9)]=_0x513958,this[_0x20118b(0x13c)]=_0x25e7ed);}get[_0x1b3401(0x112)](){const _0x3a21b0=_0x1b3401;return this[_0x3a21b0(0x172)]['getValue']();}['dispose'](){const _0x3e0628=_0x1b3401;var _0x446f8b;(_0x446f8b=this[_0x3e0628(0x137)])==null||_0x446f8b[_0x3e0628(0xf4)](),this[_0x3e0628(0x172)]['next']('idle'),this[_0x3e0628(0x172)][_0x3e0628(0x100)]();}[_0x1b3401(0x1a6)](){const _0x28670e=_0x1b3401;return this[_0x28670e(0x112)];}[_0x1b3401(0x159)](){const _0xf7774b=_0x1b3401;this['_init']||(this[_0xf7774b(0x12d)]=!0x0,this[_0xf7774b(0x120)][_0xf7774b(0x16d)][_0xf7774b(0x123)](I['takeUntil'](this[_0xf7774b(0x127)]))['subscribe'](_0xcd1218=>{const _0x45f528=_0xf7774b;switch(_0xcd1218){case b['SessionStatus']['OFFLINE']:this[_0x45f528(0xef)]();break;case b[_0x45f528(0x142)]['ONLINE']:this[_0x45f528(0xfa)]();break;}}),this[_0xf7774b(0x120)][_0xf7774b(0x175)]['pipe'](I[_0xf7774b(0xdb)](this['dispose$']))[_0xf7774b(0x170)](_0x4c7916=>{const _0x190586=_0xf7774b,{eventID:_0x210ba4}=_0x4c7916;switch(_0x210ba4){case d['CollaborationEvent'][_0x190586(0xe3)]:this['_handleNewHost'](_0x4c7916);break;case d['CollaborationEvent'][_0x190586(0x130)]:this['_handleOperation'](_0x4c7916);break;case d[_0x190586(0x12b)][_0x190586(0xd8)]:this[_0x190586(0x146)]();break;case d[_0x190586(0x12b)][_0x190586(0x114)]:this['_handleNewChangeSets'](_0x4c7916);break;}}));}[_0x1b3401(0x117)](){const _0x2336f5=_0x1b3401;this[_0x2336f5(0x120)][_0x2336f5(0xfd)]({'eventID':d[_0x2336f5(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2336f5(0x11c)]()}},this[_0x2336f5(0x105)]);}[_0x1b3401(0x173)](){const _0x35c3bd=_0x1b3401;this[_0x35c3bd(0x112)]===_0x35c3bd(0x160)&&(this[_0x35c3bd(0x172)]['next'](_0x35c3bd(0x13f)),this[_0x35c3bd(0x120)][_0x35c3bd(0xfd)]({'eventID':d[_0x35c3bd(0x12b)][_0x35c3bd(0xd8)],'data':{'unitID':this[_0x35c3bd(0x105)]}},this[_0x35c3bd(0x105)]));}[_0x1b3401(0xe8)](){const _0x199b03=_0x1b3401;this[_0x199b03(0x112)]===_0x199b03(0x124)&&(this['_status$']['next']('following'),this[_0x199b03(0xe5)]());}[_0x1b3401(0x1a7)](){const _0x57e76b=_0x1b3401;this['_status']===_0x57e76b(0x13e)&&this[_0x57e76b(0x103)]();}['_handleNewHost'](_0x2258a4){const _0x22c09c=_0x1b3401,{presenter:_0x1bbf6b}=_0x2258a4['data'],_0x2a3179=this[_0x22c09c(0x120)][_0x22c09c(0x11c)]();this['_presenter']=_0x1bbf6b,_0x1bbf6b===_0x2a3179?(this[_0x22c09c(0x103)](),this[_0x22c09c(0x186)]()):this[_0x22c09c(0x112)]!=='not-following'&&(this[_0x22c09c(0x10f)](),this[_0x22c09c(0xe5)]());}[_0x1b3401(0x107)](){const _0x505571=_0x1b3401,_0x279fc8={'eventID':d['CollaborationEvent'][_0x505571(0xf2)]};this[_0x505571(0x120)][_0x505571(0xfd)](_0x279fc8,this[_0x505571(0x105)]);}[_0x1b3401(0x146)](){const _0x13572c=_0x1b3401;this['_presenter']=null,this[_0x13572c(0x112)]!==_0x13572c(0x160)&&this[_0x13572c(0x106)]();}[_0x1b3401(0x19a)](_0x44acb1){const _0x112818=_0x1b3401;if(this[_0x112818(0x112)]==='following'&&this[_0x112818(0xeb)]===_0x44acb1[_0x112818(0x144)]['memberID']){const _0x393a2d=d[_0x112818(0x195)](_0x44acb1[_0x112818(0x144)])[_0x112818(0x145)]['reverse']()[_0x112818(0x14b)](_0x39e87f=>_0x39e87f['id']===C[_0x112818(0x18b)]['id']);if(_0x393a2d){const _0x557147=_0x393a2d[_0x112818(0x10b)][_0x112818(0xde)],_0x37ec06=_0x393a2d['params'][_0x112818(0x180)]['id'];setTimeout(()=>{const _0x358f86=_0x112818;this['_commandService'][_0x358f86(0x15b)](C[_0x358f86(0x11b)]['id'],{'unitId':_0x557147,'subUnitId':_0x37ec06},{'fromCollab':!0x0});});}}}[_0x1b3401(0x186)](){const _0x269dd4=_0x1b3401;this[_0x269dd4(0x172)][_0x269dd4(0x182)](_0x269dd4(0x160));const _0x2eea39=new Map(),_0x19afab=this[_0x269dd4(0x137)]=new o[(_0x269dd4(0x150))]();_0x19afab[_0x269dd4(0x157)](o['toDisposable'](()=>{const _0x58c970=_0x269dd4;_0x2eea39[_0x58c970(0x187)](_0x51a9aa=>_0x51a9aa[_0x58c970(0x100)]()),_0x2eea39[_0x58c970(0x15f)]();})),_0x19afab[_0x269dd4(0x157)](this[_0x269dd4(0x13c)][_0x269dd4(0x174)](_0x4e094b=>{const _0x2f45e1=_0x269dd4;var _0x14afaf;if(_0x4e094b[_0x2f45e1(0xe7)]!==o[_0x2f45e1(0x15a)]['OPERATION']||!this['_liveShareService'][_0x2f45e1(0x11d)](_0x4e094b['id']))return;const {id:_0xb62b7}=_0x4e094b;let _0x11d585;_0x2eea39[_0x2f45e1(0x14a)](_0xb62b7)?_0x11d585=_0x2eea39['get'](_0xb62b7):(_0x11d585=new O[(_0x2f45e1(0xd7))](),_0x2eea39[_0x2f45e1(0x12f)](_0xb62b7,_0x11d585),_0x11d585[_0x2f45e1(0x123)](I[_0x2f45e1(0x151)]((_0x14afaf=this['_configService']['getConfig'](k))!=null?_0x14afaf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50b542=>{const _0x20634b=_0x2f45e1;this['_collabSession'][_0x20634b(0xfd)]({'eventID':d[_0x20634b(0x12b)][_0x20634b(0x130)],'data':{'unitID':this['_unitID'],'operations':{[_0x50b542['id']]:{'id':_0x50b542['id'],'params':JSON[_0x20634b(0x16c)](_0x50b542[_0x20634b(0x10b)])}}}},this[_0x20634b(0x105)]);})),_0x11d585[_0x2f45e1(0x182)](_0x4e094b);})),this[_0x269dd4(0xe9)][_0x269dd4(0x18e)](this[_0x269dd4(0x105)])[_0x269dd4(0x187)](_0x2bb803=>this[_0x269dd4(0x120)][_0x269dd4(0xfd)]({'eventID':d[_0x269dd4(0x12b)][_0x269dd4(0x130)],'data':{'unitID':this[_0x269dd4(0x105)],'operations':{[_0x2bb803['id']]:{'id':_0x2bb803['id'],'params':JSON[_0x269dd4(0x16c)](_0x2bb803[_0x269dd4(0x10b)])}}}},this[_0x269dd4(0x105)]));}[_0x1b3401(0x10f)](){const _0x5517be=_0x1b3401;var _0xeaab31;this[_0x5517be(0x172)][_0x5517be(0x182)]('idle'),(_0xeaab31=this[_0x5517be(0x137)])==null||_0xeaab31['dispose'](),this[_0x5517be(0x137)]=null;}[_0x1b3401(0xe5)](){const _0x9640ec=_0x1b3401;var _0x2f8f79;(_0x2f8f79=this['_commandDisposable'])==null||_0x2f8f79['dispose'](),this[_0x9640ec(0x172)][_0x9640ec(0x182)]('following');}[_0x1b3401(0x106)](){const _0x1a3112=_0x1b3401;var _0x4ede84;this[_0x1a3112(0x172)][_0x1a3112(0x182)](_0x1a3112(0x13f)),(_0x4ede84=this[_0x1a3112(0x137)])==null||_0x4ede84['dispose'](),this[_0x1a3112(0x137)]=null;}['_stopFollowing'](){const _0x2a57ef=_0x1b3401;var _0x392292;this[_0x2a57ef(0x172)]['next'](_0x2a57ef(0x124)),(_0x392292=this[_0x2a57ef(0x137)])==null||_0x392292[_0x2a57ef(0xf4)]();}[_0x1b3401(0x179)](_0x549b31){const _0x1c0d53=_0x1b3401;if(['presenting','not-following',_0x1c0d53(0x168)][_0x1c0d53(0x122)](this[_0x1c0d53(0x112)])||!_0x549b31[_0x1c0d53(0x144)]['presenter']||_0x549b31[_0x1c0d53(0x144)]['presenter']===this[_0x1c0d53(0x120)][_0x1c0d53(0x11c)]())return;this[_0x1c0d53(0x112)]===_0x1c0d53(0x13f)&&this[_0x1c0d53(0xe5)]();const _0x4f4bd6=_0x549b31[_0x1c0d53(0x144)]['operations'];Object[_0x1c0d53(0xf7)](_0x4f4bd6)[_0x1c0d53(0x187)](_0xe223ea=>{const _0x30522f=_0x1c0d53;this[_0x30522f(0x13c)][_0x30522f(0x15b)](_0xe223ea['id'],_0xe223ea[_0x30522f(0x10b)]?JSON[_0x30522f(0x153)](_0xe223ea[_0x30522f(0x10b)]):null,{'fromCollab':!0x0});});}[_0x1b3401(0xef)](){const _0x7c4b9f=_0x1b3401;var _0x290680;this[_0x7c4b9f(0x172)]['next'](_0x7c4b9f(0x168)),(_0x290680=this[_0x7c4b9f(0x137)])==null||_0x290680[_0x7c4b9f(0xf4)]();}[_0x1b3401(0xfa)](){const _0x531136=_0x1b3401;this[_0x531136(0x172)][_0x531136(0x182)](_0x531136(0x13f)),this[_0x531136(0x107)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1b3401(0x169)]),S(0x3,o[_0x1b3401(0xff)](E)),S(0x4,o[_0x1b3401(0x115)])],exports[_0x1b3401(0x1a2)]);function $(){const _0x2e0e0c=_0x1b3401,_0x16ebf9=p['useDependency'](exports['LiveShareController']),_0x5174f0=p['useDependency'](o[_0x2e0e0c(0xfb)]),_0x456ae6=p[_0x2e0e0c(0x196)](()=>_0x5174f0[_0x2e0e0c(0x12c)](o[_0x2e0e0c(0x139)][_0x2e0e0c(0x10e)]),void 0x0,!0x1,[]),[_0xc0746f,_0x2a27d7]=v[_0x2e0e0c(0x185)](null),[_0x4e46e6,_0x59d2b2]=v[_0x2e0e0c(0x185)](u[_0x2e0e0c(0x17d)]),_0x4c13e8=v[_0x2e0e0c(0xda)](null);return v[_0x2e0e0c(0x171)](()=>(_0x456ae6&&_0x16ebf9['getLiveShareCoordinator'](_0x456ae6['getUnitId']())[_0x2e0e0c(0x135)](_0x29ac5b=>{const _0x8dc728=_0x2e0e0c;_0x2a27d7(_0x29ac5b),_0x4c13e8[_0x8dc728(0x1ac)]=_0x29ac5b['status$'][_0x8dc728(0x170)](_0x220a49=>{_0x59d2b2(_0x220a49);});}),()=>{const _0x45a540=_0x2e0e0c;var _0x1d3614;(_0x1d3614=_0x4c13e8[_0x45a540(0x1ac)])==null||_0x1d3614['unsubscribe'](),_0x4c13e8[_0x45a540(0x1ac)]=null;}),[_0x456ae6,_0x16ebf9]),_0xc0746f?l[_0x2e0e0c(0xea)](f['Dropdown'],{'align':_0x2e0e0c(0x119),'disabled':_0x4e46e6===u[_0x2e0e0c(0x178)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2e0e0c(0xea)](W,{'status':_0x4e46e6,'coordinator':_0xc0746f}),'children':l[_0x2e0e0c(0xea)](_0x2e0e0c(0x118),{'className':f[_0x2e0e0c(0x132)](_0x2e0e0c(0x10c),{'univer-cursor-not-allowed':_0x4e46e6===u[_0x2e0e0c(0x178)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4e46e6!==u[_0x2e0e0c(0x178)]}),'type':_0x2e0e0c(0x118),'children':l['jsx'](R,{'className':_0x2e0e0c(0x193)})})}):null;}function W(_0x30a7fd){const _0x1a59d8=_0x1b3401,{status:_0x19dee1,coordinator:_0x23f495}=_0x30a7fd;switch(_0x19dee1){case u[_0x1a59d8(0x17d)]:return l[_0x1a59d8(0xea)](G,{'coordinator':_0x23f495});case u['FOLLOWING']:return l[_0x1a59d8(0xea)](B,{'coordinator':_0x23f495});case u[_0x1a59d8(0x19f)]:return l[_0x1a59d8(0xea)](Y,{'coordinator':_0x23f495});case u[_0x1a59d8(0x178)]:return l[_0x1a59d8(0xea)](J,{});case u['PRESENTING']:return l[_0x1a59d8(0xea)](Z,{'coordinator':_0x23f495});default:return null;}}function G(_0x194ce4){const _0x1ef3ae=_0x1b3401,{coordinator:_0x38f9b3}=_0x194ce4;return l['jsxs'](l[_0x1ef3ae(0x161)],{'children':[l['jsx'](_0x1ef3ae(0x19b),{'className':_0x1ef3ae(0x1a9),'children':'Present\x20this\x20document'}),l[_0x1ef3ae(0xea)](f['Button'],{'onClick':()=>_0x38f9b3['tryStartPresenting'](),'children':_0x1ef3ae(0x14c)})]});}function B(_0x13bf68){const _0x35f2d3=_0x1b3401,{coordinator:_0x22a0b1}=_0x13bf68;return l[_0x35f2d3(0x11a)](l['Fragment'],{'children':[l[_0x35f2d3(0xea)](_0x35f2d3(0x19b),{'className':_0x35f2d3(0x1a9),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x35f2d3(0xea)](f[_0x35f2d3(0xe4)],{'onClick':()=>_0x22a0b1[_0x35f2d3(0x1a7)](),'children':_0x35f2d3(0x154)})]});}function Y(_0x327693){const _0x3e6c00=_0x1b3401,{coordinator:_0x269f30}=_0x327693;return l['jsxs'](l[_0x3e6c00(0x161)],{'children':[l['jsx'](_0x3e6c00(0x19b),{'className':_0x3e6c00(0x1a9),'children':_0x3e6c00(0xf9)}),l[_0x3e6c00(0xea)](f[_0x3e6c00(0xe4)],{'variant':_0x3e6c00(0xec),'onClick':()=>_0x269f30['startFollowing'](),'children':_0x3e6c00(0x136)})]});}function Z(_0x1c4228){const _0x267a67=_0x1b3401,{coordinator:_0xea2861}=_0x1c4228;return l['jsxs'](l[_0x267a67(0x161)],{'children':[l[_0x267a67(0xea)](_0x267a67(0x19b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x267a67(0xe6)}),l[_0x267a67(0xea)](f[_0x267a67(0xe4)],{'variant':_0x267a67(0x184),'onClick':()=>_0xea2861[_0x267a67(0x173)](),'children':_0x267a67(0x188)})]});}function J(){const _0x5a0a2c=_0x1b3401;return l['jsx'](l[_0x5a0a2c(0x161)],{'children':_0x5a0a2c(0x19e)});}var K=Object[_0x1b3401(0x17c)],z=(_0x592e8f,_0x5950db,_0x2d77e8,_0x3560d6)=>{for(var _0x306ce7=_0x3560d6>0x1?void 0x0:_0x3560d6?K(_0x5950db,_0x2d77e8):_0x5950db,_0x38b650=_0x592e8f['length']-0x1,_0xf10e81;_0x38b650>=0x0;_0x38b650--)(_0xf10e81=_0x592e8f[_0x38b650])&&(_0x306ce7=_0xf10e81(_0x306ce7)||_0x306ce7);return _0x306ce7;},L=(_0x3b2ca2,_0x263f90)=>(_0x345be0,_0x5de25c)=>_0x263f90(_0x345be0,_0x5de25c,_0x3b2ca2);exports[_0x1b3401(0x18a)]=class extends o[_0x1b3401(0x13b)]{constructor(_0x254fc9,_0x18abf6){const _0x51bd0f=_0x1b3401;super(),this[_0x51bd0f(0x108)]=_0x254fc9,this['_uiPartsService']=_0x18abf6,this['_mountLiveShare']();}[_0x1b3401(0x110)](){const _0x19af5f=_0x1b3401;this['disposeWithMe'](this[_0x19af5f(0x140)][_0x19af5f(0xe0)](p[_0x19af5f(0xfe)][_0x19af5f(0x1a1)],()=>p['connectInjector']($,this[_0x19af5f(0x108)])));}},exports[_0x1b3401(0x18a)]=z([L(0x0,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x1b3401(0xdf),w={};var X=Object[_0x1b3401(0x17c)],ee=(_0x1496b2,_0x4c6bed,_0x2bb425,_0x2aef68)=>{for(var _0xf7a4e5=_0x2aef68>0x1?void 0x0:_0x2aef68?X(_0x4c6bed,_0x2bb425):_0x4c6bed,_0x5b0100=_0x1496b2['length']-0x1,_0x2bf272;_0x5b0100>=0x0;_0x5b0100--)(_0x2bf272=_0x1496b2[_0x5b0100])&&(_0xf7a4e5=_0x2bf272(_0xf7a4e5)||_0xf7a4e5);return _0xf7a4e5;},te=(_0x283677,_0x23731d)=>(_0x4627ea,_0x2c5e40)=>_0x23731d(_0x4627ea,_0x2c5e40,_0x283677);let m=class extends o['Disposable']{constructor(_0x420b40){const _0x132fb5=_0x1b3401;super(),this[_0x132fb5(0xe9)]=_0x420b40,this['_init']();}[_0x1b3401(0x12d)](){const _0x1f63ca=_0x1b3401;[D[_0x1f63ca(0x14d)]['id'],D[_0x1f63ca(0x15e)]['id'],C[_0x1f63ca(0x11b)]['id']][_0x1f63ca(0x187)](_0x11bea0=>{const _0x21a6f4=_0x1f63ca;this[_0x21a6f4(0x126)](this[_0x21a6f4(0xe9)][_0x21a6f4(0x166)](_0x11bea0));});}};m=ee([te(0x0,o[_0x1b3401(0xff)](E))],m);var ie=Object[_0x1b3401(0x14f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x29738f,_0x27a932,_0x53826c)=>_0x27a932 in _0x29738f?ie(_0x29738f,_0x27a932,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53826c}):_0x29738f[_0x27a932]=_0x53826c,re=(_0x2bfb52,_0x29b1b3,_0xcb84c0,_0x336a7f)=>{const _0x145f1d=_0x1b3401;for(var _0x3a303b=_0x336a7f>0x1?void 0x0:_0x336a7f?se(_0x29b1b3,_0xcb84c0):_0x29b1b3,_0x4ebf37=_0x2bfb52[_0x145f1d(0x163)]-0x1,_0x5b6dda;_0x4ebf37>=0x0;_0x4ebf37--)(_0x5b6dda=_0x2bfb52[_0x4ebf37])&&(_0x3a303b=_0x5b6dda(_0x3a303b)||_0x3a303b);return _0x3a303b;},N=(_0x4f2257,_0x313e91)=>(_0x571cac,_0xa8778a)=>_0x313e91(_0x571cac,_0xa8778a,_0x4f2257),A=(_0x50d3c5,_0x3e259e,_0x3c771c)=>ne(_0x50d3c5,typeof _0x3e259e!=_0x1b3401(0x102)?_0x3e259e+'':_0x3e259e,_0x3c771c);const oe=_0x1b3401(0x133);exports[_0x1b3401(0x148)]=class extends o[_0x1b3401(0xf1)]{constructor(_0x3a2cce=w,_0xd86513,_0x1fa8f){const _0x1dcf78=_0x1b3401;super(),this[_0x1dcf78(0x1a4)]=_0x3a2cce,this[_0x1dcf78(0x108)]=_0xd86513,this[_0x1dcf78(0x16f)]=_0x1fa8f;const {..._0x470080}=o[_0x1dcf78(0x181)]({},w,this['_config']);this[_0x1dcf78(0x16f)]['setConfig'](Q,_0x470080);}[_0x1b3401(0x18c)](){const _0x44c8e6=_0x1b3401;o['registerDependencies'](this['_injector'],o[_0x44c8e6(0x17a)]([[E],[exports[_0x44c8e6(0x1a5)]],[m],[exports[_0x44c8e6(0x18a)]]],this[_0x44c8e6(0x1a4)][_0x44c8e6(0x121)])),o[_0x44c8e6(0xfc)](this[_0x44c8e6(0x108)],[[m]]);}['onRendered'](){o['touchDependencies'](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1b3401(0x148)],'type',o[_0x1b3401(0x139)][_0x1b3401(0xe1)]),A(exports[_0x1b3401(0x148)],_0x1b3401(0x10d),oe),exports['UniverLiveSharePlugin']=re([o[_0x1b3401(0x147)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),N(0x2,o[_0x1b3401(0x169)])],exports[_0x1b3401(0x148)]),exports['LiveShare']=$,exports[_0x1b3401(0xdc)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x541539=_0x2f85;(function(_0x24724b,_0x5c1c30){const _0x1e9b19=_0x2f85,_0x57efdf=_0x24724b();while(!![]){try{const _0x30bbd0=parseInt(_0x1e9b19(0x180))/0x1+-parseInt(_0x1e9b19(0x103))/0x2+-parseInt(_0x1e9b19(0xdf))/0x3+-parseInt(_0x1e9b19(0x16a))/0x4+-parseInt(_0x1e9b19(0xe2))/0x5*(-parseInt(_0x1e9b19(0x197))/0x6)+parseInt(_0x1e9b19(0x135))/0x7*(-parseInt(_0x1e9b19(0x181))/0x8)+parseInt(_0x1e9b19(0x122))/0x9;if(_0x30bbd0===_0x5c1c30)break;else _0x57efdf['push'](_0x57efdf['shift']());}catch(_0x351792){_0x57efdf['push'](_0x57efdf['shift']());}}}(_0x32a3,0x526a8));var T=Object[_0x541539(0x149)],U=(_0x578a3a,_0x162c77,_0x3bb6df)=>_0x162c77 in _0x578a3a?T(_0x578a3a,_0x162c77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6df}):_0x578a3a[_0x162c77]=_0x3bb6df,_=(_0x5518d4,_0x4f8bcf,_0x13cc85)=>U(_0x5518d4,typeof _0x4f8bcf!=_0x541539(0xfa)?_0x4f8bcf+'':_0x4f8bcf,_0x13cc85);Object[_0x541539(0x149)](exports,Symbol[_0x541539(0x179)],{'value':_0x541539(0xf3)});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:_0xf043ee,..._0x2f2dd2}){const _0x19dc80=_0x541539,{icon:_0x20b89f,id:_0x540e99,className:_0x9fcf2f,extend:_0x403878,..._0x5c4037}=_0x2f2dd2,_0x1edcba=(_0x19dc80(0x110)+_0x540e99+'\x20'+(_0x9fcf2f||''))[_0x19dc80(0xf0)](),_0x523a81=v[_0x19dc80(0xff)]('_'+H());return j(_0x20b89f,''+_0x540e99,{'defIds':_0x20b89f[_0x19dc80(0x11a)],'idSuffix':_0x523a81['current']},{'ref':_0xf043ee,'className':_0x1edcba,..._0x5c4037},_0x403878);}function j(_0x457e76,_0x191bd1,_0x100579,_0x82fa0e,_0x4be679){const _0x5424fe=_0x541539;return v[_0x5424fe(0xed)](_0x457e76[_0x5424fe(0x1af)],{'key':_0x191bd1,...y(_0x457e76,_0x100579,_0x4be679),..._0x82fa0e},(F(_0x457e76,_0x100579)['children']||[])['map']((_0x424bc9,_0x3b0e2e)=>j(_0x424bc9,_0x191bd1+'-'+_0x457e76['tag']+'-'+_0x3b0e2e,_0x100579,void 0x0,_0x4be679)));}function y(_0x224550,_0xb0e3c6,_0x5adea0){const _0x333e73=_0x541539,_0x358ff2={..._0x224550[_0x333e73(0x16e)]};_0x5adea0!=null&&_0x5adea0[_0x333e73(0x1aa)]&&_0x358ff2[_0x333e73(0x12a)]===_0x333e73(0x1aa)&&(_0x358ff2[_0x333e73(0x12a)]=_0x5adea0[_0x333e73(0x1aa)]),_0x224550[_0x333e73(0x1af)]==='mask'&&_0x358ff2['id']&&(_0x358ff2['id']=_0x358ff2['id']+_0xb0e3c6[_0x333e73(0x133)]),Object[_0x333e73(0x163)](_0x358ff2)[_0x333e73(0x17e)](([_0x5d6781,_0x421b8b])=>{const _0x278cd3=_0x333e73;_0x5d6781===_0x278cd3(0x174)&&typeof _0x421b8b==_0x278cd3(0x127)&&(_0x358ff2[_0x5d6781]=_0x421b8b[_0x278cd3(0x13d)](/url\(#(.*)\)/,_0x278cd3(0x14a)+_0xb0e3c6[_0x278cd3(0x133)]+')'));});const {defIds:_0xb19e4d}=_0xb0e3c6;return!_0xb19e4d||_0xb19e4d[_0x333e73(0xfd)]===0x0||(_0x224550['tag']===_0x333e73(0xeb)&&_0x358ff2[_0x333e73(0x14f)]&&(_0x358ff2[_0x333e73(0x14f)]=_0x358ff2['xlink:href']+_0xb0e3c6[_0x333e73(0x133)]),Object[_0x333e73(0x163)](_0x358ff2)['forEach'](([_0x2cdf13,_0x25472c])=>{const _0x20937b=_0x333e73;typeof _0x25472c==_0x20937b(0x127)&&(_0x358ff2[_0x2cdf13]=_0x25472c['replace'](/url\(#(.*)\)/,'url(#$1'+_0xb0e3c6[_0x20937b(0x133)]+')'));})),_0x358ff2;}function F(_0xecbecf,_0x561e03){const _0x4baec9=_0x541539;var _0x3232e5;const {defIds:_0x1dfb0e}=_0x561e03;return!_0x1dfb0e||_0x1dfb0e[_0x4baec9(0xfd)]===0x0?_0xecbecf:_0xecbecf['tag']==='defs'&&((_0x3232e5=_0xecbecf[_0x4baec9(0x107)])!=null&&_0x3232e5[_0x4baec9(0xfd)])?{..._0xecbecf,'children':_0xecbecf[_0x4baec9(0x107)][_0x4baec9(0x117)](_0x48b560=>typeof _0x48b560['attrs']['id']==_0x4baec9(0x127)&&_0x1dfb0e&&_0x1dfb0e['includes'](_0x48b560[_0x4baec9(0x16e)]['id'])?{..._0x48b560,'attrs':{..._0x48b560[_0x4baec9(0x16e)],'id':_0x48b560['attrs']['id']+_0x561e03[_0x4baec9(0x133)]}}:_0x48b560)}:_0xecbecf;}function H(){const _0x4fae07=_0x541539;return Math[_0x4fae07(0x18d)]()[_0x4fae07(0x141)](0x24)[_0x4fae07(0x13b)](0x2,0x8);}x[_0x541539(0x128)]=_0x541539(0x193);const V={'tag':'svg','attrs':{'xmlns':_0x541539(0x126),'fill':'none','viewBox':_0x541539(0x112),'width':_0x541539(0x19a),'height':_0x541539(0x19a)},'children':[{'tag':_0x541539(0xfe),'attrs':{'fill':_0x541539(0x164),'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':'currentColor','d':_0x541539(0x145),'fillRule':_0x541539(0x10f),'clipRule':_0x541539(0x10f)}}]},R=v[_0x541539(0x14b)](function(_0x50855e,_0x415d45){const _0x292d76=_0x541539;return v['createElement'](x,Object['assign']({},_0x50855e,{'id':_0x292d76(0x177),'ref':_0x415d45,'icon':V}));});R['displayName']=_0x541539(0x15a);class E extends o[_0x541539(0xe8)]{constructor(){const _0x506e84=_0x541539;super(...arguments),_(this,_0x506e84(0xe5),new Set()),_(this,'_reporters',new Set());}[_0x541539(0x148)](_0x167bc9){const _0x7f5e26=_0x541539;return this[_0x7f5e26(0xe5)]['add'](_0x167bc9),o[_0x7f5e26(0x171)](()=>this[_0x7f5e26(0xe5)][_0x7f5e26(0x19f)](_0x167bc9));}[_0x541539(0x168)](_0x508c88){const _0xe0df7e=_0x541539;return this['_reporters'][_0xe0df7e(0x16c)](_0x508c88),o['toDisposable'](()=>this[_0xe0df7e(0x147)]['delete'](_0x508c88));}[_0x541539(0x10e)](_0x148058){const _0x1ec137=_0x541539;return this[_0x1ec137(0xe5)][_0x1ec137(0x14d)](_0x148058);}['getInitialStates'](_0x5ad004){const _0x320c57=_0x541539;return Array[_0x320c57(0x1a8)](this['_reporters'])[_0x320c57(0x117)](_0x446173=>_0x446173(_0x5ad004));}}function _0x32a3(){const _0xc5d7ef=['map','offline','disposeWithMe','defIds','operations','_injector','executeCommand','createInstance','LiveShareController','RxDisposable','get','11690955QgRoVM','asObservable','Fragment','parseProtocolChangeset','http://www.w3.org/2000/svg','string','displayName','_status$','fill','_stopFollowing','merge','dispose','unitId','_handleTerminate','useObservable','useDependency','status$','idSuffix','connectInjector','2310DgtaCg','current','getInitialStates','OFFLINE','LIVESHARE_NEW_HOST','DesktopLiveShareController','substring','reverse','replace','_uiPartsService','LIVESHARE_FETCH_OPERATIONS','clsx','toString','_commandService','NOT_FOLLOWING','_unitID','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Stop\x20presenting','_reporters','registerSharedOperation','defineProperty','url(#$1','forwardRef','IUniverInstanceService','has','default','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','Start','unsubscribe','live-share.config','_collabSession','_beIdle','button','_configService','useState','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','not-following','InsertSheetMutation','UNIVER_SHEET','init','params','Inject','find','entries','currentColor','CollaborationEvent','parse','NEW_CHANGESETS','registerInitialStateReporter','idle','1176680ftTCQR','_startPresenting','add','Plugin','attrs','following','_mountLiveShare','toDisposable','SetWorksheetActiveOperation','data','mask','takeUntil','BuiltInUIPart','live-share-icon','values','toStringTag','override','end','LiveShareStatus','_handleOnline','forEach','mutations','633937PVmGwk','10296fnYtar','CommandType','DependentOn','You\x27re\x20not\x20following\x20the\x20presenter','ONLINE','SessionStatus','onStarting','registerDependencies','LiveShareCoordinator','LiveShareService','getOwnPropertyDescriptor','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','random','stopPresenting','touchDependencies','next','UniverLiveSharePlugin','getValue','UniverIcon','getMemberID','LiveShare','_config','6ctHzxX','_univerInstanceService','_entities','1em','LIVESHARE_OPERATION','type','clear','_liveShareService','delete','requireSession','div','then','Stop\x20following','ICommandService','pipe','_handleOperation','Button','from','getLiveShareCoordinator','colorChannel1','_collabSessionService','HEADER_MENU','send','Subject','tag','UNIVER_LIVE_SHARE_PLUGIN','1032288IOjXlo','UniverInstanceType','getUnitId','158265XzWBWg','stringify','Dropdown','_sharedOperations','Injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Disposable','_init','IDLE','use','_handleNewHost','createElement','_fetchOperations','_startFollowing','trim','CollaborationSessionService','stopFollowing','Module','sessionStatus$','_status','setConfig','onRendered','_presenter','IConfigService','symbol','univer-size-4','_handleOffline','length','path','useRef','_handleNewChangeSets','presenting','subscribe','1128066XtoDRN','set','DisposableCollection','jsx','children','mergeOverrideWithDependencies','startFollowing','_commandDisposable','complete','presenter','getStatus','shouldShareOperation','evenodd','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinatorSync','0\x200\x2017\x2017','OPERATION','_startLiveShareCoordinator','FOLLOWING','PRESENTING'];_0x32a3=function(){return _0xc5d7ef;};return _0x32a3();}var M=Object[_0x541539(0x18b)],P=(_0x4bc447,_0x54b2e3,_0x2626d5,_0x23b7c7)=>{const _0x51ecc3=_0x541539;for(var _0x57059a=_0x23b7c7>0x1?void 0x0:_0x23b7c7?M(_0x54b2e3,_0x2626d5):_0x54b2e3,_0xa927d=_0x4bc447[_0x51ecc3(0xfd)]-0x1,_0x2e88f3;_0xa927d>=0x0;_0xa927d--)(_0x2e88f3=_0x4bc447[_0xa927d])&&(_0x57059a=_0x2e88f3(_0x57059a)||_0x57059a);return _0x57059a;},S=(_0x5dd6b5,_0x259c1c)=>(_0x7c4b41,_0x326b56)=>_0x259c1c(_0x7c4b41,_0x326b56,_0x5dd6b5);exports[_0x541539(0x11f)]=class extends o[_0x541539(0x120)]{constructor(_0x2db0c4,_0x4ca0b6,_0x40c855){const _0x4f8644=_0x541539;super(),_(this,_0x4f8644(0x199),new Map()),(this['_univerInstanceService']=_0x2db0c4,this[_0x4f8644(0x11c)]=_0x4ca0b6,this['_collabSessionService']=_0x40c855,this[_0x4f8644(0xe9)]());}async[_0x541539(0x1a9)](_0x533346){const _0x122192=_0x541539;return this[_0x122192(0x199)][_0x122192(0x14d)](_0x533346)||await this['_startLiveShareCoordinator'](_0x533346),this[_0x122192(0x199)][_0x122192(0x121)](_0x533346);}[_0x541539(0x111)](_0x1e90de){const _0x4595fb=_0x541539;var _0x3565c9;return(_0x3565c9=this[_0x4595fb(0x199)][_0x4595fb(0x121)](_0x1e90de))!=null?_0x3565c9:null;}[_0x541539(0xe9)](){const _0x55f5d7=_0x541539;this[_0x55f5d7(0x198)]['getTypeOfUnitAdded$'](o[_0x55f5d7(0xe0)]['UNIVER_SHEET'])[_0x55f5d7(0x1a5)](I[_0x55f5d7(0x175)](this['dispose$']))[_0x55f5d7(0x102)](async _0x2f13c9=>{const _0x242b91=_0x55f5d7,_0x204d4f=_0x2f13c9[_0x242b91(0xe1)]();this[_0x242b91(0x199)][_0x242b91(0x14d)](_0x204d4f)||this[_0x242b91(0x114)](_0x204d4f);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x55f5d7(0x1a5)](I[_0x55f5d7(0x175)](this['dispose$']))['subscribe'](_0x1b4690=>{const _0x468252=_0x55f5d7,_0x52d5a7=_0x1b4690[_0x468252(0xe1)](),_0x49b2a6=this[_0x468252(0x199)][_0x468252(0x121)](_0x52d5a7);_0x49b2a6==null||_0x49b2a6[_0x468252(0x12d)]();});}async[_0x541539(0x114)](_0x9501cc){const _0x226752=_0x541539,_0x265d53=await this[_0x226752(0x1ab)][_0x226752(0x1a0)](_0x9501cc),_0x583407=this[_0x226752(0x11c)][_0x226752(0x11e)](exports[_0x226752(0x189)],_0x9501cc,_0x265d53);return _0x583407[_0x226752(0x15f)](),this['_entities'][_0x226752(0x104)](_0x9501cc,_0x583407),_0x583407;}},exports['LiveShareController']=P([S(0x0,o[_0x541539(0x14c)]),S(0x1,o[_0x541539(0x161)](o['Injector'])),S(0x2,o[_0x541539(0x161)](b[_0x541539(0xf1)]))],exports[_0x541539(0x11f)]);var u=(_0x1a5862=>(_0x1a5862[_0x541539(0x138)]='offline',_0x1a5862['IDLE']=_0x541539(0x169),_0x1a5862[_0x541539(0x115)]='following',_0x1a5862['NOT_FOLLOWING']=_0x541539(0x15c),_0x1a5862['PRESENTING']=_0x541539(0x101),_0x1a5862))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x541539(0x189)]=class extends o['RxDisposable']{constructor(_0xfaedc3,_0x3d576c,_0x50db49,_0x563d1b,_0x11085b){const _0x3e0380=_0x541539;super(),_(this,'_status$',new O['BehaviorSubject'](_0x3e0380(0x169))),_(this,'status$',this[_0x3e0380(0x129)][_0x3e0380(0x123)]()),_(this,_0x3e0380(0xe9),!0x1),_(this,_0x3e0380(0x10a),null),_(this,_0x3e0380(0xf8),null),(this['_unitID']=_0xfaedc3,this[_0x3e0380(0x155)]=_0x3d576c,this[_0x3e0380(0x158)]=_0x50db49,this['_liveShareService']=_0x563d1b,this[_0x3e0380(0x142)]=_0x11085b);}get[_0x541539(0xf5)](){const _0x3a9dbb=_0x541539;return this[_0x3a9dbb(0x129)][_0x3a9dbb(0x192)]();}['dispose'](){const _0x5684ba=_0x541539;var _0x2a4636;(_0x2a4636=this[_0x5684ba(0x10a)])==null||_0x2a4636[_0x5684ba(0x12d)](),this[_0x5684ba(0x129)][_0x5684ba(0x190)](_0x5684ba(0x169)),this[_0x5684ba(0x129)][_0x5684ba(0x10b)]();}[_0x541539(0x10d)](){const _0x314502=_0x541539;return this[_0x314502(0xf5)];}[_0x541539(0x15f)](){const _0x3f33d6=_0x541539;this['_init']||(this[_0x3f33d6(0xe9)]=!0x0,this['_collabSession'][_0x3f33d6(0xf4)][_0x3f33d6(0x1a5)](I[_0x3f33d6(0x175)](this['dispose$']))[_0x3f33d6(0x102)](_0x416e54=>{const _0x4eaad8=_0x3f33d6;switch(_0x416e54){case b[_0x4eaad8(0x186)]['OFFLINE']:this['_handleOffline']();break;case b[_0x4eaad8(0x186)][_0x4eaad8(0x185)]:this[_0x4eaad8(0x17d)]();break;}}),this['_collabSession']['event$']['pipe'](I[_0x3f33d6(0x175)](this['dispose$']))[_0x3f33d6(0x102)](_0x3dfb85=>{const _0x5ef6c9=_0x3f33d6,{eventID:_0x1a31f5}=_0x3dfb85;switch(_0x1a31f5){case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x139)]:this[_0x5ef6c9(0xec)](_0x3dfb85);break;case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x19b)]:this[_0x5ef6c9(0x1a6)](_0x3dfb85);break;case d['CollaborationEvent'][_0x5ef6c9(0x151)]:this[_0x5ef6c9(0x12f)]();break;case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x167)]:this[_0x5ef6c9(0x100)](_0x3dfb85);break;}}));}['tryStartPresenting'](){const _0x2a6dd2=_0x541539;this['_collabSession']['send']({'eventID':d[_0x2a6dd2(0x165)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2a6dd2(0x155)][_0x2a6dd2(0x194)]()}},this[_0x2a6dd2(0x144)]);}[_0x541539(0x18e)](){const _0x33e98a=_0x541539;this[_0x33e98a(0xf5)]===_0x33e98a(0x101)&&(this[_0x33e98a(0x129)][_0x33e98a(0x190)]('idle'),this[_0x33e98a(0x155)][_0x33e98a(0x1ad)]({'eventID':d[_0x33e98a(0x165)][_0x33e98a(0x151)],'data':{'unitID':this['_unitID']}},this[_0x33e98a(0x144)]));}[_0x541539(0x109)](){const _0x341164=_0x541539;this[_0x341164(0xf5)]===_0x341164(0x15c)&&(this['_status$'][_0x341164(0x190)](_0x341164(0x16f)),this[_0x341164(0xef)]());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x40b4bb){const _0x34e12d=_0x541539,{presenter:_0x589bf0}=_0x40b4bb[_0x34e12d(0x173)],_0x4187c6=this[_0x34e12d(0x155)][_0x34e12d(0x194)]();this[_0x34e12d(0xf8)]=_0x589bf0,_0x589bf0===_0x4187c6?(this[_0x34e12d(0x12b)](),this[_0x34e12d(0x16b)]()):this[_0x34e12d(0xf5)]!==_0x34e12d(0x15c)&&(this['_stopPresenting'](),this[_0x34e12d(0xef)]());}['_fetchOperations'](){const _0x112679=_0x541539,_0x579512={'eventID':d[_0x112679(0x165)][_0x112679(0x13f)]};this[_0x112679(0x155)]['send'](_0x579512,this[_0x112679(0x144)]);}[_0x541539(0x12f)](){const _0x3d96a6=_0x541539;this[_0x3d96a6(0xf8)]=null,this[_0x3d96a6(0xf5)]!=='presenting'&&this['_beIdle']();}[_0x541539(0x100)](_0x3211e9){const _0x4ca002=_0x541539;if(this['_status']===_0x4ca002(0x16f)&&this[_0x4ca002(0xf8)]===_0x3211e9[_0x4ca002(0x173)]['memberID']){const _0xb1be98=d[_0x4ca002(0x125)](_0x3211e9['data'])[_0x4ca002(0x17f)][_0x4ca002(0x13c)]()[_0x4ca002(0x162)](_0x22193d=>_0x22193d['id']===C[_0x4ca002(0x15d)]['id']);if(_0xb1be98){const _0x59fd86=_0xb1be98[_0x4ca002(0x160)][_0x4ca002(0x12e)],_0x5d48ca=_0xb1be98[_0x4ca002(0x160)]['sheet']['id'];setTimeout(()=>{const _0x4e21a9=_0x4ca002;this[_0x4e21a9(0x142)][_0x4e21a9(0x11d)](C[_0x4e21a9(0x172)]['id'],{'unitId':_0x59fd86,'subUnitId':_0x5d48ca},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x41fc48=_0x541539;this[_0x41fc48(0x129)][_0x41fc48(0x190)](_0x41fc48(0x101));const _0x5510ed=new Map(),_0x5a8f17=this[_0x41fc48(0x10a)]=new o[(_0x41fc48(0x105))]();_0x5a8f17[_0x41fc48(0x16c)](o[_0x41fc48(0x171)](()=>{const _0x56bd4c=_0x41fc48;_0x5510ed[_0x56bd4c(0x17e)](_0x3bde46=>_0x3bde46[_0x56bd4c(0x10b)]()),_0x5510ed[_0x56bd4c(0x19d)]();})),_0x5a8f17[_0x41fc48(0x16c)](this[_0x41fc48(0x142)]['onCommandExecuted'](_0x4279fd=>{const _0xe33dd8=_0x41fc48;var _0x7655d2;if(_0x4279fd[_0xe33dd8(0x19c)]!==o[_0xe33dd8(0x182)][_0xe33dd8(0x113)]||!this[_0xe33dd8(0x19e)][_0xe33dd8(0x10e)](_0x4279fd['id']))return;const {id:_0x570ba5}=_0x4279fd;let _0x2a722a;_0x5510ed[_0xe33dd8(0x14d)](_0x570ba5)?_0x2a722a=_0x5510ed[_0xe33dd8(0x121)](_0x570ba5):(_0x2a722a=new O[(_0xe33dd8(0x1ae))](),_0x5510ed[_0xe33dd8(0x104)](_0x570ba5,_0x2a722a),_0x2a722a['pipe'](I['throttleTime']((_0x7655d2=this[_0xe33dd8(0x158)]['getConfig'](k))!=null?_0x7655d2:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe33dd8(0x102)](_0x15bb2c=>{const _0x2ff738=_0xe33dd8;this[_0x2ff738(0x155)][_0x2ff738(0x1ad)]({'eventID':d[_0x2ff738(0x165)][_0x2ff738(0x19b)],'data':{'unitID':this[_0x2ff738(0x144)],'operations':{[_0x15bb2c['id']]:{'id':_0x15bb2c['id'],'params':JSON[_0x2ff738(0xe3)](_0x15bb2c['params'])}}}},this[_0x2ff738(0x144)]);})),_0x2a722a['next'](_0x4279fd);})),this[_0x41fc48(0x19e)][_0x41fc48(0x137)](this[_0x41fc48(0x144)])[_0x41fc48(0x17e)](_0x5308a4=>this[_0x41fc48(0x155)][_0x41fc48(0x1ad)]({'eventID':d[_0x41fc48(0x165)][_0x41fc48(0x19b)],'data':{'unitID':this[_0x41fc48(0x144)],'operations':{[_0x5308a4['id']]:{'id':_0x5308a4['id'],'params':JSON['stringify'](_0x5308a4[_0x41fc48(0x160)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1ec2e3=_0x541539;var _0x50b990;this['_status$']['next'](_0x1ec2e3(0x169)),(_0x50b990=this[_0x1ec2e3(0x10a)])==null||_0x50b990[_0x1ec2e3(0x12d)](),this[_0x1ec2e3(0x10a)]=null;}[_0x541539(0xef)](){const _0x878f5e=_0x541539;var _0x305b74;(_0x305b74=this[_0x878f5e(0x10a)])==null||_0x305b74[_0x878f5e(0x12d)](),this[_0x878f5e(0x129)][_0x878f5e(0x190)]('following');}[_0x541539(0x156)](){const _0x32346a=_0x541539;var _0x1e9aa5;this[_0x32346a(0x129)]['next'](_0x32346a(0x169)),(_0x1e9aa5=this[_0x32346a(0x10a)])==null||_0x1e9aa5['dispose'](),this[_0x32346a(0x10a)]=null;}[_0x541539(0x12b)](){const _0x44d416=_0x541539;var _0x23fa39;this[_0x44d416(0x129)][_0x44d416(0x190)]('not-following'),(_0x23fa39=this[_0x44d416(0x10a)])==null||_0x23fa39[_0x44d416(0x12d)]();}[_0x541539(0x1a6)](_0x440207){const _0x40d6dc=_0x541539;if([_0x40d6dc(0x101),_0x40d6dc(0x15c),_0x40d6dc(0x118)]['includes'](this['_status'])||!_0x440207[_0x40d6dc(0x173)][_0x40d6dc(0x10c)]||_0x440207['data'][_0x40d6dc(0x10c)]===this['_collabSession'][_0x40d6dc(0x194)]())return;this['_status']===_0x40d6dc(0x169)&&this[_0x40d6dc(0xef)]();const _0x4f24a3=_0x440207['data'][_0x40d6dc(0x11b)];Object[_0x40d6dc(0x178)](_0x4f24a3)[_0x40d6dc(0x17e)](_0xe2fec2=>{const _0x598599=_0x40d6dc;this[_0x598599(0x142)][_0x598599(0x11d)](_0xe2fec2['id'],_0xe2fec2[_0x598599(0x160)]?JSON[_0x598599(0x166)](_0xe2fec2[_0x598599(0x160)]):null,{'fromCollab':!0x0});});}[_0x541539(0xfc)](){const _0x22a9b0=_0x541539;var _0x431e26;this[_0x22a9b0(0x129)][_0x22a9b0(0x190)]('offline'),(_0x431e26=this[_0x22a9b0(0x10a)])==null||_0x431e26[_0x22a9b0(0x12d)]();}[_0x541539(0x17d)](){const _0x35ad62=_0x541539;this[_0x35ad62(0x129)]['next'](_0x35ad62(0x169)),this[_0x35ad62(0xee)]();}},exports[_0x541539(0x189)]=P([S(0x2,o[_0x541539(0xf9)]),S(0x3,o[_0x541539(0x161)](E)),S(0x4,o[_0x541539(0x1a4)])],exports[_0x541539(0x189)]);function $(){const _0x3f4a89=_0x541539,_0x38dab3=p[_0x3f4a89(0x131)](exports[_0x3f4a89(0x11f)]),_0x360283=p[_0x3f4a89(0x131)](o[_0x3f4a89(0x14c)]),_0x57dd99=p[_0x3f4a89(0x130)](()=>_0x360283['getCurrentTypeOfUnit$'](o[_0x3f4a89(0xe0)][_0x3f4a89(0x15e)]),void 0x0,!0x1,[]),[_0x2b6596,_0x2f19f9]=v['useState'](null),[_0x168c25,_0x55598f]=v[_0x3f4a89(0x159)](u[_0x3f4a89(0xea)]),_0x4f03ba=v[_0x3f4a89(0xff)](null);return v['useEffect'](()=>(_0x57dd99&&_0x38dab3[_0x3f4a89(0x1a9)](_0x57dd99[_0x3f4a89(0xe1)]())[_0x3f4a89(0x1a2)](_0x4315c4=>{const _0x193114=_0x3f4a89;_0x2f19f9(_0x4315c4),_0x4f03ba['current']=_0x4315c4[_0x193114(0x132)]['subscribe'](_0x4b9dfa=>{_0x55598f(_0x4b9dfa);});}),()=>{const _0x2f9b5f=_0x3f4a89;var _0x504e4c;(_0x504e4c=_0x4f03ba[_0x2f9b5f(0x136)])==null||_0x504e4c[_0x2f9b5f(0x153)](),_0x4f03ba[_0x2f9b5f(0x136)]=null;}),[_0x57dd99,_0x38dab3]),_0x2b6596?l[_0x3f4a89(0x106)](f[_0x3f4a89(0xe4)],{'align':_0x3f4a89(0x17b),'disabled':_0x168c25===u[_0x3f4a89(0x138)],'className':_0x3f4a89(0x18c),'overlay':l['jsx'](W,{'status':_0x168c25,'coordinator':_0x2b6596}),'children':l['jsx'](_0x3f4a89(0x157),{'className':f[_0x3f4a89(0x140)](_0x3f4a89(0xe7),{'univer-cursor-not-allowed':_0x168c25===u[_0x3f4a89(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x168c25!==u[_0x3f4a89(0x138)]}),'type':_0x3f4a89(0x157),'children':l[_0x3f4a89(0x106)](R,{'className':_0x3f4a89(0xfb)})})}):null;}function W(_0x121bf1){const _0x20549f=_0x541539,{status:_0x236ef3,coordinator:_0x54b5be}=_0x121bf1;switch(_0x236ef3){case u[_0x20549f(0xea)]:return l[_0x20549f(0x106)](G,{'coordinator':_0x54b5be});case u[_0x20549f(0x115)]:return l[_0x20549f(0x106)](B,{'coordinator':_0x54b5be});case u[_0x20549f(0x143)]:return l['jsx'](Y,{'coordinator':_0x54b5be});case u['OFFLINE']:return l[_0x20549f(0x106)](J,{});case u[_0x20549f(0x116)]:return l['jsx'](Z,{'coordinator':_0x54b5be});default:return null;}}function G(_0x5e1d48){const _0x2fbf26=_0x541539,{coordinator:_0x48244b}=_0x5e1d48;return l['jsxs'](l['Fragment'],{'children':[l[_0x2fbf26(0x106)](_0x2fbf26(0x1a1),{'className':_0x2fbf26(0x150),'children':'Present\x20this\x20document'}),l[_0x2fbf26(0x106)](f[_0x2fbf26(0x1a7)],{'onClick':()=>_0x48244b['tryStartPresenting'](),'children':_0x2fbf26(0x152)})]});}function _0x2f85(_0x138490,_0x27389d){const _0x32a30c=_0x32a3();return _0x2f85=function(_0x2f850a,_0x2413aa){_0x2f850a=_0x2f850a-0xde;let _0x8a58d6=_0x32a30c[_0x2f850a];return _0x8a58d6;},_0x2f85(_0x138490,_0x27389d);}function B(_0x1bd32b){const _0x27fe4a=_0x541539,{coordinator:_0xf5761c}=_0x1bd32b;return l['jsxs'](l[_0x27fe4a(0x124)],{'children':[l[_0x27fe4a(0x106)](_0x27fe4a(0x1a1),{'className':_0x27fe4a(0x150),'children':_0x27fe4a(0x15b)}),l[_0x27fe4a(0x106)](f[_0x27fe4a(0x1a7)],{'onClick':()=>_0xf5761c[_0x27fe4a(0xf2)](),'children':_0x27fe4a(0x1a3)})]});}function Y(_0x45b9a2){const _0x50e176=_0x541539,{coordinator:_0x2e4000}=_0x45b9a2;return l['jsxs'](l[_0x50e176(0x124)],{'children':[l[_0x50e176(0x106)](_0x50e176(0x1a1),{'className':_0x50e176(0x150),'children':_0x50e176(0x184)}),l[_0x50e176(0x106)](f[_0x50e176(0x1a7)],{'variant':'text','onClick':()=>_0x2e4000[_0x50e176(0x109)](),'children':'Start\x20following'})]});}function Z(_0xa84544){const _0x2bd942=_0x541539,{coordinator:_0x33a50f}=_0xa84544;return l['jsxs'](l['Fragment'],{'children':[l[_0x2bd942(0x106)](_0x2bd942(0x1a1),{'className':_0x2bd942(0x150),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2bd942(0x106)](f[_0x2bd942(0x1a7)],{'variant':_0x2bd942(0x14e),'onClick':()=>_0x33a50f[_0x2bd942(0x18e)](),'children':_0x2bd942(0x146)})]});}function J(){const _0x5f198e=_0x541539;return l[_0x5f198e(0x106)](l[_0x5f198e(0x124)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x541539(0x18b)],z=(_0x731265,_0x2d61ee,_0x4abc01,_0x3ebd91)=>{const _0x24bd9e=_0x541539;for(var _0x3de166=_0x3ebd91>0x1?void 0x0:_0x3ebd91?K(_0x2d61ee,_0x4abc01):_0x2d61ee,_0x53f64f=_0x731265[_0x24bd9e(0xfd)]-0x1,_0x48abe0;_0x53f64f>=0x0;_0x53f64f--)(_0x48abe0=_0x731265[_0x53f64f])&&(_0x3de166=_0x48abe0(_0x3de166)||_0x3de166);return _0x3de166;},L=(_0x322613,_0x526734)=>(_0x109702,_0x371d13)=>_0x526734(_0x109702,_0x371d13,_0x322613);exports[_0x541539(0x13a)]=class extends o['Disposable']{constructor(_0x20ba8a,_0x29f8e7){super(),this['_injector']=_0x20ba8a,this['_uiPartsService']=_0x29f8e7,this['_mountLiveShare']();}[_0x541539(0x170)](){const _0x179b07=_0x541539;this[_0x179b07(0x119)](this[_0x179b07(0x13e)]['registerComponent'](p[_0x179b07(0x176)][_0x179b07(0x1ac)],()=>p[_0x179b07(0x134)]($,this[_0x179b07(0x11c)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x541539(0x161)](o[_0x541539(0xe6)])),L(0x1,p['IUIPartsService'])],exports[_0x541539(0x13a)]);const Q=_0x541539(0x154),w={};var X=Object[_0x541539(0x18b)],ee=(_0x4680f1,_0x3924f4,_0x2c4f13,_0x2d23bd)=>{const _0xb39ca9=_0x541539;for(var _0x30d9d8=_0x2d23bd>0x1?void 0x0:_0x2d23bd?X(_0x3924f4,_0x2c4f13):_0x3924f4,_0x25d052=_0x4680f1[_0xb39ca9(0xfd)]-0x1,_0x23b2f9;_0x25d052>=0x0;_0x25d052--)(_0x23b2f9=_0x4680f1[_0x25d052])&&(_0x30d9d8=_0x23b2f9(_0x30d9d8)||_0x30d9d8);return _0x30d9d8;},te=(_0x315d02,_0x146605)=>(_0xf91beb,_0x53e721)=>_0x146605(_0xf91beb,_0x53e721,_0x315d02);let m=class extends o['Disposable']{constructor(_0x1e6f52){const _0x5380c6=_0x541539;super(),this[_0x5380c6(0x19e)]=_0x1e6f52,this['_init']();}[_0x541539(0xe9)](){const _0x4038cf=_0x541539;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x4038cf(0x172)]['id']][_0x4038cf(0x17e)](_0x33af7e=>{const _0x158ae3=_0x4038cf;this[_0x158ae3(0x119)](this[_0x158ae3(0x19e)][_0x158ae3(0x148)](_0x33af7e));});}};m=ee([te(0x0,o[_0x541539(0x161)](E))],m);var ie=Object[_0x541539(0x149)],se=Object['getOwnPropertyDescriptor'],ne=(_0x40f947,_0x161132,_0x2a07ce)=>_0x161132 in _0x40f947?ie(_0x40f947,_0x161132,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a07ce}):_0x40f947[_0x161132]=_0x2a07ce,re=(_0x2b667f,_0x2cac2b,_0x676ac6,_0x4ecbfb)=>{const _0x2f7a3c=_0x541539;for(var _0x44b6c5=_0x4ecbfb>0x1?void 0x0:_0x4ecbfb?se(_0x2cac2b,_0x676ac6):_0x2cac2b,_0x4e8129=_0x2b667f[_0x2f7a3c(0xfd)]-0x1,_0x4cd900;_0x4e8129>=0x0;_0x4e8129--)(_0x4cd900=_0x2b667f[_0x4e8129])&&(_0x44b6c5=_0x4cd900(_0x44b6c5)||_0x44b6c5);return _0x44b6c5;},N=(_0x511cce,_0x2b4aba)=>(_0x595473,_0x7fe477)=>_0x2b4aba(_0x595473,_0x7fe477,_0x511cce),A=(_0x3f13ab,_0x339d9c,_0x7d1690)=>ne(_0x3f13ab,typeof _0x339d9c!='symbol'?_0x339d9c+'':_0x339d9c,_0x7d1690);const oe=_0x541539(0xde);exports[_0x541539(0x191)]=class extends o[_0x541539(0x16d)]{constructor(_0x1be153=w,_0x5d2097,_0xf1fcf6){const _0x35d8bc=_0x541539;super(),this[_0x35d8bc(0x196)]=_0x1be153,this[_0x35d8bc(0x11c)]=_0x5d2097,this[_0x35d8bc(0x158)]=_0xf1fcf6;const {..._0xc0c9ba}=o[_0x35d8bc(0x12c)]({},w,this[_0x35d8bc(0x196)]);this['_configService'][_0x35d8bc(0xf6)](Q,_0xc0c9ba);}[_0x541539(0x187)](){const _0x28fc9c=_0x541539;o[_0x28fc9c(0x188)](this[_0x28fc9c(0x11c)],o[_0x28fc9c(0x108)]([[E],[exports[_0x28fc9c(0x11f)]],[m],[exports[_0x28fc9c(0x13a)]]],this[_0x28fc9c(0x196)][_0x28fc9c(0x17a)])),o[_0x28fc9c(0x18f)](this[_0x28fc9c(0x11c)],[[m]]);}[_0x541539(0xf7)](){const _0x52dee6=_0x541539;o[_0x52dee6(0x18f)](this[_0x52dee6(0x11c)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x541539(0x191)],_0x541539(0x19c),o[_0x541539(0xe0)]['UNIVER_UNKNOWN']),A(exports[_0x541539(0x191)],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x541539(0x183)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x541539(0x161)](o[_0x541539(0xe6)])),N(0x2,o[_0x541539(0xf9)])],exports[_0x541539(0x191)]),exports[_0x541539(0x195)]=$,exports[_0x541539(0x18a)]=E,exports[_0x541539(0x17c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56d492=_0x483b;function _0x483b(_0x1fd626,_0x3402d4){const _0x477a78=_0x477a();return _0x483b=function(_0x483b35,_0x39af5e){_0x483b35=_0x483b35-0x17c;let _0x3e13c3=_0x477a78[_0x483b35];return _0x3e13c3;},_0x483b(_0x1fd626,_0x3402d4);}(function(_0x55b285,_0x38d1c5){const _0x32c1dd=_0x483b,_0x15cea1=_0x55b285();while(!![]){try{const _0x1aca66=parseInt(_0x32c1dd(0x197))/0x1+parseInt(_0x32c1dd(0x193))/0x2+-parseInt(_0x32c1dd(0x185))/0x3+parseInt(_0x32c1dd(0x18b))/0x4+-parseInt(_0x32c1dd(0x18d))/0x5+-parseInt(_0x32c1dd(0x192))/0x6+-parseInt(_0x32c1dd(0x182))/0x7;if(_0x1aca66===_0x38d1c5)break;else _0x15cea1['push'](_0x15cea1['shift']());}catch(_0x5dfc6f){_0x15cea1['push'](_0x15cea1['shift']());}}}(_0x477a,0xb06a0));import{LiveShareController as _0x4287f8,LiveShareStatus as _0x37b240}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2d3196}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x422e29}from'@univerjs/sheets';import{SetScrollOperation as _0x6b3b23}from'@univerjs/sheets-ui';import{FRange as _0x31ab95}from'@univerjs/sheets/facade';import{FUniver as _0x2acd17,FEnum as _0x54c764}from'@univerjs/core/facade';class I extends _0x31ab95{['_initialize'](_0x4c8ec7,_0x540a9f,_0x2d27e0,_0x5f3693,_0xb00048){const _0x1e6024=_0x483b,_0xcb78=_0x4c8ec7[_0x1e6024(0x17f)](_0x4287f8),_0x27e657=_0x4c8ec7[_0x1e6024(0x17f)](_0x2d3196),_0x426d03=_0x540a9f['getUnitId'](),_0xd66217=_0x540a9f[_0x1e6024(0x180)](),_0x237798=_0xcb78[_0x1e6024(0x18c)](_0x426d03);(_0x237798==null?void 0x0:_0x237798[_0x1e6024(0x18e)]())!==_0x37b240['PRESENTING']||(_0x2d27e0[_0x1e6024(0x18a)]()!==_0xd66217[_0x1e6024(0x18a)]()&&this[_0x1e6024(0x17d)]['executeCommand'](_0x422e29['id'],{'unitId':_0x426d03,'subUnitId':_0x2d27e0['getSheetId']()}),!_0x27e657[_0x1e6024(0x189)](_0x426d03))||_0xb00048[_0x1e6024(0x190)](_0x6b3b23['id'],{'unitId':_0x540a9f[_0x1e6024(0x195)](),'sheetId':_0x2d27e0[_0x1e6024(0x18a)](),'sheetViewStartRow':_0x5f3693[_0x1e6024(0x183)],'sheetViewStartColumn':_0x5f3693[_0x1e6024(0x188)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31ab95[_0x56d492(0x17e)](I);class m extends _0x2acd17{['getLiveShareStatus'](){const _0x25a2a3=_0x56d492;var _0x180f2a,_0x5c9400;const _0x36d52f=this['_injector'][_0x25a2a3(0x17f)](_0x4287f8),_0x4cfc9b=(_0x180f2a=this[_0x25a2a3(0x186)]())==null?void 0x0:_0x180f2a['getId']();if(!_0x4cfc9b)throw new Error('No\x20active\x20workbook\x20found.');const _0x11f864=_0x36d52f['getLiveShareCoordinatorSync'](_0x4cfc9b);return(_0x5c9400=_0x11f864==null?void 0x0:_0x11f864[_0x25a2a3(0x18e)]())!=null?_0x5c9400:_0x37b240['IDLE'];}[_0x56d492(0x191)](){const _0x31bfec=_0x56d492;var _0x530c3e;const _0x7a4b61=this[_0x31bfec(0x181)][_0x31bfec(0x17f)](_0x4287f8),_0x1e48e5=(_0x530c3e=this['getActiveWorkbook']())==null?void 0x0:_0x530c3e[_0x31bfec(0x196)]();if(!_0x1e48e5)throw new Error('No\x20active\x20workbook\x20found.');const _0x527c15=_0x7a4b61[_0x31bfec(0x18c)](_0x1e48e5);if(!_0x527c15)throw new Error(_0x31bfec(0x194));_0x527c15['startFollowing']();}['stopFollowing'](){const _0x3388ff=_0x56d492;var _0x3877c1;const _0x3b667a=this['_injector'][_0x3388ff(0x17f)](_0x4287f8),_0x26263a=(_0x3877c1=this[_0x3388ff(0x186)]())==null?void 0x0:_0x3877c1[_0x3388ff(0x196)]();if(!_0x26263a)throw new Error(_0x3388ff(0x18f));const _0x4ee44b=_0x3b667a['getLiveShareCoordinatorSync'](_0x26263a);if(!_0x4ee44b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ee44b['stopFollowing']();}[_0x56d492(0x184)](){const _0x144525=_0x56d492;var _0x4f56f5;const _0x29c7e0=this[_0x144525(0x181)]['get'](_0x4287f8),_0x274865=(_0x4f56f5=this[_0x144525(0x186)]())==null?void 0x0:_0x4f56f5[_0x144525(0x196)]();if(!_0x274865)throw new Error('No\x20active\x20workbook\x20found.');const _0x167d4b=_0x29c7e0[_0x144525(0x18c)](_0x274865);if(!_0x167d4b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x167d4b[_0x144525(0x17c)]();}[_0x56d492(0x187)](){const _0x1ee2b5=_0x56d492;var _0x157e3e;const _0x1e90dd=this['_injector'][_0x1ee2b5(0x17f)](_0x4287f8),_0x1b2294=(_0x157e3e=this['getActiveWorkbook']())==null?void 0x0:_0x157e3e[_0x1ee2b5(0x196)]();if(!_0x1b2294)throw new Error(_0x1ee2b5(0x18f));const _0x242af4=_0x1e90dd[_0x1ee2b5(0x18c)](_0x1b2294);if(!_0x242af4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x242af4[_0x1ee2b5(0x187)]();}}_0x2acd17[_0x56d492(0x17e)](m);function _0x477a(){const _0x2f21d2=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','getId','574846oTtjDT','tryStartPresenting','_commandService','extend','get','getActiveSheet','_injector','2291807CCkOCM','startRow','startPresenting','488631cqGdHh','getActiveWorkbook','stopPresenting','startColumn','getRenderById','getSheetId','4989500FWQkzo','getLiveShareCoordinatorSync','3751190iwIfJI','getStatus','No\x20active\x20workbook\x20found.','syncExecuteCommand','startFollowing','7241016DfodAc','2695446iZXFhc'];_0x477a=function(){return _0x2f21d2;};return _0x477a();}class C extends _0x54c764{get['LiveShareStatusEnum'](){return _0x37b240;}}_0x54c764['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],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 _0x7e354b=_0x12f6;(function(_0x505b9d,_0x295900){const _0x44d169=_0x12f6,_0x1e1f3e=_0x505b9d();while(!![]){try{const _0x6b9215=parseInt(_0x44d169(0x163))/0x1*(-parseInt(_0x44d169(0x16b))/0x2)+-parseInt(_0x44d169(0x1d6))/0x3+parseInt(_0x44d169(0x16d))/0x4+-parseInt(_0x44d169(0x205))/0x5*(parseInt(_0x44d169(0x1b8))/0x6)+-parseInt(_0x44d169(0x1f1))/0x7+-parseInt(_0x44d169(0x17a))/0x8*(parseInt(_0x44d169(0x187))/0x9)+parseInt(_0x44d169(0x1e1))/0xa;if(_0x6b9215===_0x295900)break;else _0x1e1f3e['push'](_0x1e1f3e['shift']());}catch(_0x10ae5d){_0x1e1f3e['push'](_0x1e1f3e['shift']());}}}(_0xb4b9,0xa9c62));var J=Object[_0x7e354b(0x197)],K=(_0x42d9d5,_0x2117d0,_0x30577f)=>_0x2117d0 in _0x42d9d5?J(_0x42d9d5,_0x2117d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30577f}):_0x42d9d5[_0x2117d0]=_0x30577f,u=(_0x382b4d,_0x37d907,_0x3d83ad)=>K(_0x382b4d,typeof _0x37d907!=_0x7e354b(0x196)?_0x37d907+'':_0x37d907,_0x3d83ad);import{Disposable as _0x347be1,toDisposable as _0x3d4789,IUniverInstanceService as _0x309518,Inject as _0x3da970,Injector as _0x12624f,IConfigService as _0x46c0d3,ICommandService as _0x329504,RxDisposable as _0x29c169,UniverInstanceType as _0x57407e,DisposableCollection as _0x5c4131,CommandType as _0x55d34f,DependentOn as _0x2b4dcb,Plugin as _0x578106,merge as _0x37ec64,registerDependencies as _0x266bf,mergeOverrideWithDependencies as _0x357cc7,touchDependencies as _0x468664}from'@univerjs/core';import{useDependency as _0x52d8b7,useObservable as _0x197c64,IUIPartsService as _0x381d5f,BuiltInUIPart as _0x1da299,connectInjector as _0x3c976a}from'@univerjs/ui';import{jsx as _0x101f75,jsxs as _0x110ad3,Fragment as _0x54296b}from'react/jsx-runtime';import{Dropdown as _0x4a2625,clsx as _0x3ab899,Button as _0x17d00f}from'@univerjs/design';import{useRef as _0x5ada0e,createElement as _0x56a161,forwardRef as _0xde3aa3,useState as _0x4e342b,useEffect as _0x1f3ba1}from'react';import{CollaborationEvent as _0x2c840d,parseProtocolChangeset as _0x21f40d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1662bb,SessionStatus as _0x1e0fe4,UniverCollaborationClientPlugin as _0x48d4a0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x51be66,SetWorksheetActiveOperation as _0x5adc8e}from'@univerjs/sheets';import{BehaviorSubject as _0x4eaa7d,Subject as _0x59ce58}from'rxjs';import{takeUntil as _0xe6e776,throttleTime as _0x29baa8}from'rxjs/operators';import{SetZoomRatioOperation as _0x219de2,SetScrollOperation as _0x4fb794}from'@univerjs/sheets-ui';function k({ref:_0x44547c,..._0x2cf2ca}){const _0x52d28b=_0x7e354b,{icon:_0x489d8d,id:_0x1cc7ba,className:_0x5dd489,extend:_0x52387a,..._0x3f9477}=_0x2cf2ca,_0x2b71f0=(_0x52d28b(0x1ae)+_0x1cc7ba+'\x20'+(_0x5dd489||''))[_0x52d28b(0x199)](),_0x286008=_0x5ada0e('_'+Oe());return G(_0x489d8d,''+_0x1cc7ba,{'defIds':_0x489d8d[_0x52d28b(0x18d)],'idSuffix':_0x286008['current']},{'ref':_0x44547c,'className':_0x2b71f0,..._0x3f9477},_0x52387a);}function _0x12f6(_0x152c44,_0x387d68){const _0xb4b9cc=_0xb4b9();return _0x12f6=function(_0x12f6b1,_0xdf9e3c){_0x12f6b1=_0x12f6b1-0x161;let _0x5a9de4=_0xb4b9cc[_0x12f6b1];return _0x5a9de4;},_0x12f6(_0x152c44,_0x387d68);}function G(_0x301adc,_0x4a7044,_0x2fc2a3,_0x299f0c,_0x1c1e22){const _0x496406=_0x7e354b;return _0x56a161(_0x301adc['tag'],{'key':_0x4a7044,...be(_0x301adc,_0x2fc2a3,_0x1c1e22),..._0x299f0c},(Ee(_0x301adc,_0x2fc2a3)[_0x496406(0x190)]||[])[_0x496406(0x18a)]((_0xabbcaf,_0x217e40)=>G(_0xabbcaf,_0x4a7044+'-'+_0x301adc[_0x496406(0x178)]+'-'+_0x217e40,_0x2fc2a3,void 0x0,_0x1c1e22)));}function be(_0x1228f3,_0x4e1f25,_0x2df930){const _0x5f4062=_0x7e354b,_0x517ff0={..._0x1228f3[_0x5f4062(0x1f5)]};_0x2df930!=null&&_0x2df930[_0x5f4062(0x1ee)]&&_0x517ff0['fill']===_0x5f4062(0x1ee)&&(_0x517ff0['fill']=_0x2df930['colorChannel1']),_0x1228f3[_0x5f4062(0x178)]===_0x5f4062(0x167)&&_0x517ff0['id']&&(_0x517ff0['id']=_0x517ff0['id']+_0x4e1f25[_0x5f4062(0x1e9)]),Object[_0x5f4062(0x1db)](_0x517ff0)[_0x5f4062(0x17e)](([_0x2ab831,_0x2f78b2])=>{const _0x23530d=_0x5f4062;_0x2ab831===_0x23530d(0x167)&&typeof _0x2f78b2==_0x23530d(0x1b1)&&(_0x517ff0[_0x2ab831]=_0x2f78b2[_0x23530d(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x4e1f25[_0x23530d(0x1e9)]+')'));});const {defIds:_0x30df82}=_0x4e1f25;return!_0x30df82||_0x30df82[_0x5f4062(0x208)]===0x0||(_0x1228f3[_0x5f4062(0x178)]==='use'&&_0x517ff0['xlink:href']&&(_0x517ff0[_0x5f4062(0x184)]=_0x517ff0[_0x5f4062(0x184)]+_0x4e1f25['idSuffix']),Object['entries'](_0x517ff0)['forEach'](([_0x575853,_0x5cdc9b])=>{const _0x105a46=_0x5f4062;typeof _0x5cdc9b==_0x105a46(0x1b1)&&(_0x517ff0[_0x575853]=_0x5cdc9b[_0x105a46(0x16c)](/url\(#(.*)\)/,_0x105a46(0x1ba)+_0x4e1f25[_0x105a46(0x1e9)]+')'));})),_0x517ff0;}function Ee(_0x393e08,_0x514b6e){const _0x471496=_0x7e354b;var _0x42336f;const {defIds:_0x6930da}=_0x514b6e;return!_0x6930da||_0x6930da[_0x471496(0x208)]===0x0?_0x393e08:_0x393e08[_0x471496(0x178)]===_0x471496(0x1cf)&&((_0x42336f=_0x393e08[_0x471496(0x190)])!=null&&_0x42336f[_0x471496(0x208)])?{..._0x393e08,'children':_0x393e08[_0x471496(0x190)][_0x471496(0x18a)](_0x48f3b3=>typeof _0x48f3b3[_0x471496(0x1f5)]['id']=='string'&&_0x6930da&&_0x6930da[_0x471496(0x1ac)](_0x48f3b3['attrs']['id'])?{..._0x48f3b3,'attrs':{..._0x48f3b3[_0x471496(0x1f5)],'id':_0x48f3b3[_0x471496(0x1f5)]['id']+_0x514b6e[_0x471496(0x1e9)]}}:_0x48f3b3)}:_0x393e08;}function Oe(){const _0xa56e89=_0x7e354b;return Math[_0xa56e89(0x209)]()['toString'](0x24)[_0xa56e89(0x19b)](0x2,0x8);}k[_0x7e354b(0x1ef)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x7e354b(0x1d3),'fill':_0x7e354b(0x1dd),'viewBox':_0x7e354b(0x1d7),'width':_0x7e354b(0x1a8),'height':_0x7e354b(0x1a8)},'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':'path','attrs':{'fill':_0x7e354b(0x175),'d':_0x7e354b(0x1f4),'fillRule':_0x7e354b(0x1a0),'clipRule':_0x7e354b(0x1a0)}}]},W=_0xde3aa3(function(_0x32f649,_0xd0ed6b){const _0x753960=_0x7e354b;return _0x56a161(k,Object['assign']({},_0x32f649,{'id':_0x753960(0x1c8),'ref':_0xd0ed6b,'icon':we}));});W[_0x7e354b(0x1ef)]=_0x7e354b(0x1dc);class L extends _0x347be1{constructor(){const _0x49d96e=_0x7e354b;super(...arguments),u(this,_0x49d96e(0x1c9),new Set()),u(this,'_reporters',new Set());}[_0x7e354b(0x174)](_0x474663){const _0x4707d9=_0x7e354b;return this[_0x4707d9(0x1c9)][_0x4707d9(0x170)](_0x474663),_0x3d4789(()=>this[_0x4707d9(0x1c9)][_0x4707d9(0x192)](_0x474663));}[_0x7e354b(0x1a6)](_0x4297f6){return this['_reporters']['add'](_0x4297f6),_0x3d4789(()=>this['_reporters']['delete'](_0x4297f6));}[_0x7e354b(0x1b5)](_0x3edc50){const _0x2e666e=_0x7e354b;return this['_sharedOperations'][_0x2e666e(0x1a9)](_0x3edc50);}[_0x7e354b(0x1e2)](_0xcc73ed){const _0x4fe48a=_0x7e354b;return Array[_0x4fe48a(0x1fa)](this[_0x4fe48a(0x186)])[_0x4fe48a(0x18a)](_0x4228a=>_0x4228a(_0xcc73ed));}}var Ne=Object[_0x7e354b(0x1f0)],Y=(_0x478fb1,_0x4a592c,_0x36eeaa,_0x5a6790)=>{for(var _0x11ebf9=_0x5a6790>0x1?void 0x0:_0x5a6790?Ne(_0x4a592c,_0x36eeaa):_0x4a592c,_0x15f471=_0x478fb1['length']-0x1,_0x1c7542;_0x15f471>=0x0;_0x15f471--)(_0x1c7542=_0x478fb1[_0x15f471])&&(_0x11ebf9=_0x1c7542(_0x11ebf9)||_0x11ebf9);return _0x11ebf9;},_=(_0x5548bf,_0x86e0d6)=>(_0x517666,_0x37c73b)=>_0x86e0d6(_0x517666,_0x37c73b,_0x5548bf);let S=class extends _0x29c169{constructor(_0x5cbc4d,_0x1067fa,_0x3f4e85){const _0x198348=_0x7e354b;super(),u(this,_0x198348(0x1e3),new Map()),(this[_0x198348(0x1bd)]=_0x5cbc4d,this['_injector']=_0x1067fa,this[_0x198348(0x1f9)]=_0x3f4e85,this[_0x198348(0x173)]());}async['getLiveShareCoordinator'](_0x53f332){const _0x509634=_0x7e354b;return this[_0x509634(0x1e3)][_0x509634(0x1a9)](_0x53f332)||await this[_0x509634(0x1fc)](_0x53f332),this[_0x509634(0x1e3)][_0x509634(0x164)](_0x53f332);}['getLiveShareCoordinatorSync'](_0x3d9a64){const _0x4a1c5f=_0x7e354b;var _0xddcf59;return(_0xddcf59=this[_0x4a1c5f(0x1e3)][_0x4a1c5f(0x164)](_0x3d9a64))!=null?_0xddcf59:null;}['_init'](){const _0x5e79d6=_0x7e354b;this[_0x5e79d6(0x1bd)][_0x5e79d6(0x1fb)](_0x57407e[_0x5e79d6(0x1c6)])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))['subscribe'](async _0x333a13=>{const _0x43b86b=_0x5e79d6,_0x5abae5=_0x333a13[_0x43b86b(0x1e6)]();this[_0x43b86b(0x1e3)][_0x43b86b(0x1a9)](_0x5abae5)||this[_0x43b86b(0x1fc)](_0x5abae5);}),this[_0x5e79d6(0x1bd)][_0x5e79d6(0x193)](_0x57407e['UNIVER_SHEET'])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))[_0x5e79d6(0x1b7)](_0x546fa4=>{const _0x36ffdb=_0x5e79d6,_0x50ecf4=_0x546fa4[_0x36ffdb(0x1e6)](),_0x1a69ce=this[_0x36ffdb(0x1e3)][_0x36ffdb(0x164)](_0x50ecf4);_0x1a69ce==null||_0x1a69ce[_0x36ffdb(0x1d0)]();});}async[_0x7e354b(0x1fc)](_0x4a1bc9){const _0x44320d=_0x7e354b,_0x47d00d=await this[_0x44320d(0x1f9)][_0x44320d(0x1f7)](_0x4a1bc9),_0x30ebe7=this['_injector'][_0x44320d(0x1de)](N,_0x4a1bc9,_0x47d00d);return _0x30ebe7['init'](),this['_entities']['set'](_0x4a1bc9,_0x30ebe7),_0x30ebe7;}};S=Y([_(0x0,_0x309518),_(0x1,_0x3da970(_0x12624f)),_(0x2,_0x3da970(_0x1662bb))],S);var c=(_0x488490=>(_0x488490[_0x7e354b(0x1d4)]=_0x7e354b(0x1b6),_0x488490[_0x7e354b(0x1df)]='idle',_0x488490[_0x7e354b(0x1f8)]=_0x7e354b(0x1c4),_0x488490['NOT_FOLLOWING']=_0x7e354b(0x1e8),_0x488490['PRESENTING']=_0x7e354b(0x1ab),_0x488490))(c||{});const Ce=_0x7e354b(0x1f2),De=0xc8;let N=class extends _0x29c169{constructor(_0x3a06dd,_0x203175,_0x5d329e,_0x3d74aa,_0x507633){const _0x1e56d8=_0x7e354b;super(),u(this,'_status$',new _0x4eaa7d(_0x1e56d8(0x1bb))),u(this,_0x1e56d8(0x1aa),this[_0x1e56d8(0x1be)][_0x1e56d8(0x1a7)]()),u(this,_0x1e56d8(0x173),!0x1),u(this,_0x1e56d8(0x1b3),null),u(this,'_presenter',null),(this[_0x1e56d8(0x1f3)]=_0x3a06dd,this[_0x1e56d8(0x19a)]=_0x203175,this[_0x1e56d8(0x1d9)]=_0x5d329e,this[_0x1e56d8(0x1bf)]=_0x3d74aa,this['_commandService']=_0x507633);}get['_status'](){const _0x547196=_0x7e354b;return this[_0x547196(0x1be)][_0x547196(0x1a2)]();}[_0x7e354b(0x1d0)](){const _0x1eb207=_0x7e354b;var _0x23ec14;(_0x23ec14=this['_commandDisposable'])==null||_0x23ec14[_0x1eb207(0x1d0)](),this['_status$'][_0x1eb207(0x181)](_0x1eb207(0x1bb)),this[_0x1eb207(0x1be)][_0x1eb207(0x200)]();}['getStatus'](){return this['_status'];}[_0x7e354b(0x18e)](){const _0x3d8511=_0x7e354b;this['_init']||(this['_init']=!0x0,this[_0x3d8511(0x19a)][_0x3d8511(0x19d)][_0x3d8511(0x18b)](_0xe6e776(this[_0x3d8511(0x1d5)]))[_0x3d8511(0x1b7)](_0x49964d=>{const _0x5925c2=_0x3d8511;switch(_0x49964d){case _0x1e0fe4[_0x5925c2(0x1d4)]:this[_0x5925c2(0x202)]();break;case _0x1e0fe4[_0x5925c2(0x198)]:this['_handleOnline']();break;}}),this[_0x3d8511(0x19a)]['event$'][_0x3d8511(0x18b)](_0xe6e776(this['dispose$']))[_0x3d8511(0x1b7)](_0x477cb8=>{const _0x427371=_0x3d8511,{eventID:_0x554d84}=_0x477cb8;switch(_0x554d84){case _0x2c840d[_0x427371(0x1e7)]:this[_0x427371(0x1cd)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1c5)]:this[_0x427371(0x1cb)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1ca)]:this[_0x427371(0x1b9)]();break;case _0x2c840d[_0x427371(0x162)]:this[_0x427371(0x1e5)](_0x477cb8);break;}}));}[_0x7e354b(0x17d)](){const _0x31e83f=_0x7e354b;this[_0x31e83f(0x19a)][_0x31e83f(0x207)]({'eventID':_0x2c840d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31e83f(0x1f3)],'userID':this[_0x31e83f(0x19a)]['getMemberID']()}},this[_0x31e83f(0x1f3)]);}[_0x7e354b(0x1d1)](){const _0x574194=_0x7e354b;this[_0x574194(0x17f)]==='presenting'&&(this[_0x574194(0x1be)][_0x574194(0x181)](_0x574194(0x1bb)),this['_collabSession'][_0x574194(0x207)]({'eventID':_0x2c840d['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x5e0d6d=_0x7e354b;this[_0x5e0d6d(0x17f)]===_0x5e0d6d(0x1e8)&&(this[_0x5e0d6d(0x1be)][_0x5e0d6d(0x181)](_0x5e0d6d(0x1c4)),this['_startFollowing']());}[_0x7e354b(0x168)](){const _0x320f12=_0x7e354b;this['_status']===_0x320f12(0x1c4)&&this[_0x320f12(0x161)]();}['_handleNewHost'](_0x3cba89){const _0x8649bd=_0x7e354b,{presenter:_0x1e1bda}=_0x3cba89[_0x8649bd(0x172)],_0x334a33=this[_0x8649bd(0x19a)][_0x8649bd(0x203)]();this[_0x8649bd(0x1f6)]=_0x1e1bda,_0x1e1bda===_0x334a33?(this['_stopFollowing'](),this[_0x8649bd(0x176)]()):this[_0x8649bd(0x17f)]!=='not-following'&&(this[_0x8649bd(0x1c7)](),this[_0x8649bd(0x17b)]());}[_0x7e354b(0x1e0)](){const _0x505bc1=_0x7e354b,_0x3a40b0={'eventID':_0x2c840d[_0x505bc1(0x165)]};this[_0x505bc1(0x19a)]['send'](_0x3a40b0,this[_0x505bc1(0x1f3)]);}[_0x7e354b(0x1b9)](){const _0x4a9575=_0x7e354b;this[_0x4a9575(0x1f6)]=null,this['_status']!==_0x4a9575(0x1ab)&&this[_0x4a9575(0x1ed)]();}[_0x7e354b(0x1e5)](_0x57eb3){const _0x4ae1f0=_0x7e354b;if(this[_0x4ae1f0(0x17f)]==='following'&&this[_0x4ae1f0(0x1f6)]===_0x57eb3['data'][_0x4ae1f0(0x1da)]){const _0x2a6c6d=_0x21f40d(_0x57eb3['data'])['mutations'][_0x4ae1f0(0x19e)]()[_0x4ae1f0(0x1c1)](_0x3ba71f=>_0x3ba71f['id']===_0x51be66['id']);if(_0x2a6c6d){const _0x2b666f=_0x2a6c6d[_0x4ae1f0(0x1d2)][_0x4ae1f0(0x183)],_0x1f2401=_0x2a6c6d[_0x4ae1f0(0x1d2)]['sheet']['id'];setTimeout(()=>{const _0x123227=_0x4ae1f0;this[_0x123227(0x19c)][_0x123227(0x1c0)](_0x5adc8e['id'],{'unitId':_0x2b666f,'subUnitId':_0x1f2401},{'fromCollab':!0x0});});}}}[_0x7e354b(0x176)](){const _0x155274=_0x7e354b;this[_0x155274(0x1be)][_0x155274(0x181)](_0x155274(0x1ab));const _0x235cbc=new Map(),_0x10fd21=this[_0x155274(0x1b3)]=new _0x5c4131();_0x10fd21[_0x155274(0x170)](_0x3d4789(()=>{const _0x5ba289=_0x155274;_0x235cbc[_0x5ba289(0x17e)](_0x4b2039=>_0x4b2039[_0x5ba289(0x200)]()),_0x235cbc[_0x5ba289(0x1fe)]();})),_0x10fd21[_0x155274(0x170)](this[_0x155274(0x19c)][_0x155274(0x1a1)](_0x48f891=>{const _0x2c86ad=_0x155274;var _0x133bd6;if(_0x48f891[_0x2c86ad(0x1b4)]!==_0x55d34f[_0x2c86ad(0x182)]||!this[_0x2c86ad(0x1bf)][_0x2c86ad(0x1b5)](_0x48f891['id']))return;const {id:_0x293ead}=_0x48f891;let _0x5c828e;_0x235cbc[_0x2c86ad(0x1a9)](_0x293ead)?_0x5c828e=_0x235cbc[_0x2c86ad(0x164)](_0x293ead):(_0x5c828e=new _0x59ce58(),_0x235cbc[_0x2c86ad(0x18f)](_0x293ead,_0x5c828e),_0x5c828e['pipe'](_0x29baa8((_0x133bd6=this[_0x2c86ad(0x1d9)][_0x2c86ad(0x1ff)](Ce))!=null?_0x133bd6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c86ad(0x1b7)](_0x5883b6=>{const _0x285355=_0x2c86ad;this[_0x285355(0x19a)][_0x285355(0x207)]({'eventID':_0x2c840d[_0x285355(0x1c5)],'data':{'unitID':this[_0x285355(0x1f3)],'operations':{[_0x5883b6['id']]:{'id':_0x5883b6['id'],'params':JSON['stringify'](_0x5883b6[_0x285355(0x1d2)])}}}},this[_0x285355(0x1f3)]);})),_0x5c828e['next'](_0x48f891);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x1e3acb=>this[_0x155274(0x19a)][_0x155274(0x207)]({'eventID':_0x2c840d[_0x155274(0x1c5)],'data':{'unitID':this[_0x155274(0x1f3)],'operations':{[_0x1e3acb['id']]:{'id':_0x1e3acb['id'],'params':JSON[_0x155274(0x16f)](_0x1e3acb[_0x155274(0x1d2)])}}}},this['_unitID']));}[_0x7e354b(0x1c7)](){const _0x525e72=_0x7e354b;var _0x72d22f;this[_0x525e72(0x1be)][_0x525e72(0x181)]('idle'),(_0x72d22f=this[_0x525e72(0x1b3)])==null||_0x72d22f[_0x525e72(0x1d0)](),this[_0x525e72(0x1b3)]=null;}[_0x7e354b(0x17b)](){const _0x33735f=_0x7e354b;var _0x3f1474;(_0x3f1474=this[_0x33735f(0x1b3)])==null||_0x3f1474[_0x33735f(0x1d0)](),this['_status$'][_0x33735f(0x181)]('following');}[_0x7e354b(0x1ed)](){const _0x17a8be=_0x7e354b;var _0x502d29;this['_status$'][_0x17a8be(0x181)]('idle'),(_0x502d29=this[_0x17a8be(0x1b3)])==null||_0x502d29[_0x17a8be(0x1d0)](),this[_0x17a8be(0x1b3)]=null;}[_0x7e354b(0x161)](){const _0x25a4a1=_0x7e354b;var _0x5a982b;this[_0x25a4a1(0x1be)][_0x25a4a1(0x181)](_0x25a4a1(0x1e8)),(_0x5a982b=this[_0x25a4a1(0x1b3)])==null||_0x5a982b['dispose']();}[_0x7e354b(0x1cb)](_0x38d5a7){const _0x550d90=_0x7e354b;if([_0x550d90(0x1ab),_0x550d90(0x1e8),_0x550d90(0x1b6)]['includes'](this['_status'])||!_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]||_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]===this[_0x550d90(0x19a)][_0x550d90(0x203)]())return;this[_0x550d90(0x17f)]===_0x550d90(0x1bb)&&this[_0x550d90(0x17b)]();const _0x118bf6=_0x38d5a7['data'][_0x550d90(0x1bc)];Object[_0x550d90(0x169)](_0x118bf6)[_0x550d90(0x17e)](_0x15b6a1=>{const _0x42be81=_0x550d90;this[_0x42be81(0x19c)][_0x42be81(0x1c0)](_0x15b6a1['id'],_0x15b6a1[_0x42be81(0x1d2)]?JSON[_0x42be81(0x17c)](_0x15b6a1['params']):null,{'fromCollab':!0x0});});}[_0x7e354b(0x202)](){const _0x187992=_0x7e354b;var _0x4d4e54;this[_0x187992(0x1be)][_0x187992(0x181)]('offline'),(_0x4d4e54=this[_0x187992(0x1b3)])==null||_0x4d4e54[_0x187992(0x1d0)]();}[_0x7e354b(0x177)](){const _0x591435=_0x7e354b;this[_0x591435(0x1be)]['next'](_0x591435(0x1bb)),this[_0x591435(0x1e0)]();}};N=Y([_(0x2,_0x46c0d3),_(0x3,_0x3da970(L)),_(0x4,_0x329504)],N);function Le(){const _0x5afe55=_0x7e354b,_0x136208=_0x52d8b7(S),_0x1c7de1=_0x52d8b7(_0x309518),_0x4e2e9b=_0x197c64(()=>_0x1c7de1[_0x5afe55(0x1c3)](_0x57407e[_0x5afe55(0x1c6)]),void 0x0,!0x1,[]),[_0x51ff43,_0x313832]=_0x4e342b(null),[_0x3267f0,_0x246351]=_0x4e342b(c[_0x5afe55(0x1df)]),_0x3ce05e=_0x5ada0e(null);return _0x1f3ba1(()=>(_0x4e2e9b&&_0x136208[_0x5afe55(0x1fd)](_0x4e2e9b[_0x5afe55(0x1e6)]())['then'](_0x2daca2=>{const _0x590851=_0x5afe55;_0x313832(_0x2daca2),_0x3ce05e['current']=_0x2daca2[_0x590851(0x1aa)]['subscribe'](_0xe79182=>{_0x246351(_0xe79182);});}),()=>{const _0x4ac3db=_0x5afe55;var _0x3ac9ff;(_0x3ac9ff=_0x3ce05e[_0x4ac3db(0x1cc)])==null||_0x3ac9ff[_0x4ac3db(0x1ad)](),_0x3ce05e['current']=null;}),[_0x4e2e9b,_0x136208]),_0x51ff43?_0x101f75(_0x4a2625,{'align':_0x5afe55(0x18c),'disabled':_0x3267f0===c[_0x5afe55(0x1d4)],'className':_0x5afe55(0x1a4),'overlay':_0x101f75(Re,{'status':_0x3267f0,'coordinator':_0x51ff43}),'children':_0x101f75('button',{'className':_0x3ab899('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3267f0===c[_0x5afe55(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3267f0!==c[_0x5afe55(0x1d4)]}),'type':_0x5afe55(0x1eb),'children':_0x101f75(W,{'className':'univer-size-4'})})}):null;}function _0xb4b9(){const _0x133c0e=['registerComponent','getCurrentTypeOfUnit$','following','LIVESHARE_OPERATION','UNIVER_SHEET','_stopPresenting','live-share-icon','_sharedOperations','LIVESHARE_TERMINATE','_handleOperation','current','_handleNewHost','setConfig','defs','dispose','stopPresenting','params','http://www.w3.org/2000/svg','OFFLINE','dispose$','2184435vyRhNn','0\x200\x2017\x2017','Stop\x20following','_configService','memberID','entries','LiveShareIcon','none','createInstance','IDLE','_fetchOperations','23241110abiffV','getInitialStates','_entities','NOT_FOLLOWING','_handleNewChangeSets','getUnitId','LIVESHARE_NEW_HOST','not-following','idSuffix','live-share.config','button','You\x27re\x20presenting\x20the\x20document','_beIdle','colorChannel1','displayName','getOwnPropertyDescriptor','749182OTmWPJ','SAME_OPERATION_SHARE_INTERVAL','_unitID','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','attrs','_presenter','requireSession','FOLLOWING','_collabSessionService','from','getTypeOfUnitAdded$','_startLiveShareCoordinator','getLiveShareCoordinator','clear','getConfig','complete','Stop\x20presenting','_handleOffline','getMemberID','_injector','1525COsXFD','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','length','random','disposeWithMe','_stopFollowing','NEW_CHANGESETS','94OkpBaW','get','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20not\x20following\x20the\x20presenter','mask','stopFollowing','values','Start\x20following','21878UeVTZQ','replace','4109060NzxLnJ','text','stringify','add','onRendered','data','_init','registerSharedOperation','currentColor','_startPresenting','_handleOnline','tag','PRESENTING','83432CmpYaR','_startFollowing','parse','tryStartPresenting','forEach','_status','You\x27are\x20offline.','next','OPERATION','unitId','xlink:href','startFollowing','_reporters','675yhkvAu','presenter','_uiPartsService','map','pipe','end','defIds','init','set','children','pluginName','delete','getTypeOfUnitDisposed$','_mountLiveShare','onStarting','symbol','defineProperty','ONLINE','trim','_collabSession','substring','_commandService','sessionStatus$','reverse','default','evenodd','onCommandExecuted','getValue','div','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','override','registerInitialStateReporter','asObservable','1em','has','status$','presenting','includes','unsubscribe','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','HEADER_MENU','string','_config','_commandDisposable','type','shouldShareOperation','offline','subscribe','204KTLzuv','_handleTerminate','url(#$1','idle','operations','_univerInstanceService','_status$','_liveShareService','executeCommand','find'];_0xb4b9=function(){return _0x133c0e;};return _0xb4b9();}function Re(_0x3a01e6){const _0x1f4065=_0x7e354b,{status:_0x7a958c,coordinator:_0x401e13}=_0x3a01e6;switch(_0x7a958c){case c[_0x1f4065(0x1df)]:return _0x101f75($e,{'coordinator':_0x401e13});case c['FOLLOWING']:return _0x101f75(xe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1e4)]:return _0x101f75(Pe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1d4)]:return _0x101f75(Te,{});case c[_0x1f4065(0x179)]:return _0x101f75(Ae,{'coordinator':_0x401e13});default:return null;}}function $e(_0x31da09){const _0x33b30f=_0x7e354b,{coordinator:_0x2a9b50}=_0x31da09;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x33b30f(0x1a3),{'className':_0x33b30f(0x206),'children':_0x33b30f(0x1af)}),_0x101f75(_0x17d00f,{'onClick':()=>_0x2a9b50['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x456230){const _0x3ffdc6=_0x7e354b,{coordinator:_0x1dacfe}=_0x456230;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x3ffdc6(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x101f75(_0x17d00f,{'onClick':()=>_0x1dacfe['stopFollowing'](),'children':_0x3ffdc6(0x1d8)})]});}function Pe(_0x22d922){const _0x265a16=_0x7e354b,{coordinator:_0x2407e8}=_0x22d922;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x265a16(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x265a16(0x166)}),_0x101f75(_0x17d00f,{'variant':_0x265a16(0x16e),'onClick':()=>_0x2407e8[_0x265a16(0x185)](),'children':_0x265a16(0x16a)})]});}function Ae(_0x50f2a2){const _0x32467a=_0x7e354b,{coordinator:_0x3ce094}=_0x50f2a2;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x32467a(0x1a3),{'className':_0x32467a(0x206),'children':_0x32467a(0x1ec)}),_0x101f75(_0x17d00f,{'variant':_0x32467a(0x19f),'onClick':()=>_0x3ce094[_0x32467a(0x1d1)](),'children':_0x32467a(0x201)})]});}function Te(){const _0x435a7c=_0x7e354b;return _0x101f75(_0x54296b,{'children':_0x435a7c(0x180)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x59fa64,_0xfc2787,_0x57c55c,_0xd6543b)=>{const _0x34c20d=_0x7e354b;for(var _0x5d0a0b=_0xd6543b>0x1?void 0x0:_0xd6543b?Fe(_0xfc2787,_0x57c55c):_0xfc2787,_0x447148=_0x59fa64[_0x34c20d(0x208)]-0x1,_0x2f222c;_0x447148>=0x0;_0x447148--)(_0x2f222c=_0x59fa64[_0x447148])&&(_0x5d0a0b=_0x2f222c(_0x5d0a0b)||_0x5d0a0b);return _0x5d0a0b;},A=(_0xac3ffd,_0x1ef171)=>(_0x44f7d8,_0x594181)=>_0x1ef171(_0x44f7d8,_0x594181,_0xac3ffd);let m=class extends _0x347be1{constructor(_0x288204,_0x2b2fe6){const _0x3bc802=_0x7e354b;super(),this[_0x3bc802(0x204)]=_0x288204,this[_0x3bc802(0x189)]=_0x2b2fe6,this['_mountLiveShare']();}[_0x7e354b(0x194)](){const _0x54e333=_0x7e354b;this[_0x54e333(0x20a)](this[_0x54e333(0x189)][_0x54e333(0x1c2)](_0x1da299[_0x54e333(0x1b0)],()=>_0x3c976a(Le,this[_0x54e333(0x204)])));}};m=He([A(0x0,_0x3da970(_0x12624f)),A(0x1,_0x381d5f)],m);const ye=_0x7e354b(0x1ea),T={};var Ue=Object[_0x7e354b(0x1f0)],Ve=(_0x5e8a2d,_0x66567e,_0x375189,_0x457a24)=>{const _0x4a2180=_0x7e354b;for(var _0x15273d=_0x457a24>0x1?void 0x0:_0x457a24?Ue(_0x66567e,_0x375189):_0x66567e,_0x5aec03=_0x5e8a2d[_0x4a2180(0x208)]-0x1,_0x8fb842;_0x5aec03>=0x0;_0x5aec03--)(_0x8fb842=_0x5e8a2d[_0x5aec03])&&(_0x15273d=_0x8fb842(_0x15273d)||_0x15273d);return _0x15273d;},je=(_0x45a569,_0x35d1aa)=>(_0x5c1b29,_0xac8980)=>_0x35d1aa(_0x5c1b29,_0xac8980,_0x45a569);let I=class extends _0x347be1{constructor(_0x5389d2){const _0x1d7680=_0x7e354b;super(),this[_0x1d7680(0x1bf)]=_0x5389d2,this[_0x1d7680(0x173)]();}[_0x7e354b(0x173)](){const _0x20bf6e=_0x7e354b;[_0x219de2['id'],_0x4fb794['id'],_0x5adc8e['id']][_0x20bf6e(0x17e)](_0x109138=>{const _0x2b52a4=_0x20bf6e;this[_0x2b52a4(0x20a)](this['_liveShareService'][_0x2b52a4(0x174)](_0x109138));});}};I=Ve([je(0x0,_0x3da970(L))],I);var Me=Object['defineProperty'],ke=Object[_0x7e354b(0x1f0)],Ge=(_0x8adde0,_0x2eeee3,_0x34a95c)=>_0x2eeee3 in _0x8adde0?Me(_0x8adde0,_0x2eeee3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a95c}):_0x8adde0[_0x2eeee3]=_0x34a95c,We=(_0x24334f,_0x4010f5,_0x98ef0b,_0x1487a7)=>{const _0x1e228f=_0x7e354b;for(var _0x432b63=_0x1487a7>0x1?void 0x0:_0x1487a7?ke(_0x4010f5,_0x98ef0b):_0x4010f5,_0x224c76=_0x24334f[_0x1e228f(0x208)]-0x1,_0x176277;_0x224c76>=0x0;_0x224c76--)(_0x176277=_0x24334f[_0x224c76])&&(_0x432b63=_0x176277(_0x432b63)||_0x432b63);return _0x432b63;},F=(_0x1d0242,_0x166883)=>(_0x41c192,_0x126f6b)=>_0x166883(_0x41c192,_0x126f6b,_0x1d0242),B=(_0x314725,_0x23becb,_0x218aa5)=>Ge(_0x314725,typeof _0x23becb!='symbol'?_0x23becb+'':_0x23becb,_0x218aa5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x578106{constructor(_0x138817=T,_0x59cb13,_0x17e7f0){const _0x43ec91=_0x7e354b;super(),this[_0x43ec91(0x1b2)]=_0x138817,this[_0x43ec91(0x204)]=_0x59cb13,this[_0x43ec91(0x1d9)]=_0x17e7f0;const {..._0x34a654}=_0x37ec64({},T,this[_0x43ec91(0x1b2)]);this['_configService'][_0x43ec91(0x1ce)](ye,_0x34a654);}[_0x7e354b(0x195)](){const _0x575686=_0x7e354b;_0x266bf(this[_0x575686(0x204)],_0x357cc7([[L],[S],[I],[m]],this[_0x575686(0x1b2)][_0x575686(0x1a5)])),_0x468664(this[_0x575686(0x204)],[[I]]);}[_0x7e354b(0x171)](){const _0x13b34f=_0x7e354b;_0x468664(this[_0x13b34f(0x204)],[[m]]);}};B(b,_0x7e354b(0x1b4),_0x57407e['UNIVER_UNKNOWN']),B(b,_0x7e354b(0x191),Ye),b=We([_0x2b4dcb(_0x48d4a0),F(0x1,_0x3da970(_0x12624f)),F(0x2,_0x46c0d3)],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 _0x56d492=_0x483b;function _0x483b(_0x1fd626,_0x3402d4){const _0x477a78=_0x477a();return _0x483b=function(_0x483b35,_0x39af5e){_0x483b35=_0x483b35-0x17c;let _0x3e13c3=_0x477a78[_0x483b35];return _0x3e13c3;},_0x483b(_0x1fd626,_0x3402d4);}(function(_0x55b285,_0x38d1c5){const _0x32c1dd=_0x483b,_0x15cea1=_0x55b285();while(!![]){try{const _0x1aca66=parseInt(_0x32c1dd(0x197))/0x1+parseInt(_0x32c1dd(0x193))/0x2+-parseInt(_0x32c1dd(0x185))/0x3+parseInt(_0x32c1dd(0x18b))/0x4+-parseInt(_0x32c1dd(0x18d))/0x5+-parseInt(_0x32c1dd(0x192))/0x6+-parseInt(_0x32c1dd(0x182))/0x7;if(_0x1aca66===_0x38d1c5)break;else _0x15cea1['push'](_0x15cea1['shift']());}catch(_0x5dfc6f){_0x15cea1['push'](_0x15cea1['shift']());}}}(_0x477a,0xb06a0));import{LiveShareController as _0x4287f8,LiveShareStatus as _0x37b240}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2d3196}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x422e29}from'@univerjs/sheets';import{SetScrollOperation as _0x6b3b23}from'@univerjs/sheets-ui';import{FRange as _0x31ab95}from'@univerjs/sheets/facade';import{FUniver as _0x2acd17,FEnum as _0x54c764}from'@univerjs/core/facade';class I extends _0x31ab95{['_initialize'](_0x4c8ec7,_0x540a9f,_0x2d27e0,_0x5f3693,_0xb00048){const _0x1e6024=_0x483b,_0xcb78=_0x4c8ec7[_0x1e6024(0x17f)](_0x4287f8),_0x27e657=_0x4c8ec7[_0x1e6024(0x17f)](_0x2d3196),_0x426d03=_0x540a9f['getUnitId'](),_0xd66217=_0x540a9f[_0x1e6024(0x180)](),_0x237798=_0xcb78[_0x1e6024(0x18c)](_0x426d03);(_0x237798==null?void 0x0:_0x237798[_0x1e6024(0x18e)]())!==_0x37b240['PRESENTING']||(_0x2d27e0[_0x1e6024(0x18a)]()!==_0xd66217[_0x1e6024(0x18a)]()&&this[_0x1e6024(0x17d)]['executeCommand'](_0x422e29['id'],{'unitId':_0x426d03,'subUnitId':_0x2d27e0['getSheetId']()}),!_0x27e657[_0x1e6024(0x189)](_0x426d03))||_0xb00048[_0x1e6024(0x190)](_0x6b3b23['id'],{'unitId':_0x540a9f[_0x1e6024(0x195)](),'sheetId':_0x2d27e0[_0x1e6024(0x18a)](),'sheetViewStartRow':_0x5f3693[_0x1e6024(0x183)],'sheetViewStartColumn':_0x5f3693[_0x1e6024(0x188)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31ab95[_0x56d492(0x17e)](I);class m extends _0x2acd17{['getLiveShareStatus'](){const _0x25a2a3=_0x56d492;var _0x180f2a,_0x5c9400;const _0x36d52f=this['_injector'][_0x25a2a3(0x17f)](_0x4287f8),_0x4cfc9b=(_0x180f2a=this[_0x25a2a3(0x186)]())==null?void 0x0:_0x180f2a['getId']();if(!_0x4cfc9b)throw new Error('No\x20active\x20workbook\x20found.');const _0x11f864=_0x36d52f['getLiveShareCoordinatorSync'](_0x4cfc9b);return(_0x5c9400=_0x11f864==null?void 0x0:_0x11f864[_0x25a2a3(0x18e)]())!=null?_0x5c9400:_0x37b240['IDLE'];}[_0x56d492(0x191)](){const _0x31bfec=_0x56d492;var _0x530c3e;const _0x7a4b61=this[_0x31bfec(0x181)][_0x31bfec(0x17f)](_0x4287f8),_0x1e48e5=(_0x530c3e=this['getActiveWorkbook']())==null?void 0x0:_0x530c3e[_0x31bfec(0x196)]();if(!_0x1e48e5)throw new Error('No\x20active\x20workbook\x20found.');const _0x527c15=_0x7a4b61[_0x31bfec(0x18c)](_0x1e48e5);if(!_0x527c15)throw new Error(_0x31bfec(0x194));_0x527c15['startFollowing']();}['stopFollowing'](){const _0x3388ff=_0x56d492;var _0x3877c1;const _0x3b667a=this['_injector'][_0x3388ff(0x17f)](_0x4287f8),_0x26263a=(_0x3877c1=this[_0x3388ff(0x186)]())==null?void 0x0:_0x3877c1[_0x3388ff(0x196)]();if(!_0x26263a)throw new Error(_0x3388ff(0x18f));const _0x4ee44b=_0x3b667a['getLiveShareCoordinatorSync'](_0x26263a);if(!_0x4ee44b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ee44b['stopFollowing']();}[_0x56d492(0x184)](){const _0x144525=_0x56d492;var _0x4f56f5;const _0x29c7e0=this[_0x144525(0x181)]['get'](_0x4287f8),_0x274865=(_0x4f56f5=this[_0x144525(0x186)]())==null?void 0x0:_0x4f56f5[_0x144525(0x196)]();if(!_0x274865)throw new Error('No\x20active\x20workbook\x20found.');const _0x167d4b=_0x29c7e0[_0x144525(0x18c)](_0x274865);if(!_0x167d4b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x167d4b[_0x144525(0x17c)]();}[_0x56d492(0x187)](){const _0x1ee2b5=_0x56d492;var _0x157e3e;const _0x1e90dd=this['_injector'][_0x1ee2b5(0x17f)](_0x4287f8),_0x1b2294=(_0x157e3e=this['getActiveWorkbook']())==null?void 0x0:_0x157e3e[_0x1ee2b5(0x196)]();if(!_0x1b2294)throw new Error(_0x1ee2b5(0x18f));const _0x242af4=_0x1e90dd[_0x1ee2b5(0x18c)](_0x1b2294);if(!_0x242af4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x242af4[_0x1ee2b5(0x187)]();}}_0x2acd17[_0x56d492(0x17e)](m);function _0x477a(){const _0x2f21d2=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','getId','574846oTtjDT','tryStartPresenting','_commandService','extend','get','getActiveSheet','_injector','2291807CCkOCM','startRow','startPresenting','488631cqGdHh','getActiveWorkbook','stopPresenting','startColumn','getRenderById','getSheetId','4989500FWQkzo','getLiveShareCoordinatorSync','3751190iwIfJI','getStatus','No\x20active\x20workbook\x20found.','syncExecuteCommand','startFollowing','7241016DfodAc','2695446iZXFhc'];_0x477a=function(){return _0x2f21d2;};return _0x477a();}class C extends _0x54c764{get['LiveShareStatusEnum'](){return _0x37b240;}}_0x54c764['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],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 _0x7e354b=_0x12f6;(function(_0x505b9d,_0x295900){const _0x44d169=_0x12f6,_0x1e1f3e=_0x505b9d();while(!![]){try{const _0x6b9215=parseInt(_0x44d169(0x163))/0x1*(-parseInt(_0x44d169(0x16b))/0x2)+-parseInt(_0x44d169(0x1d6))/0x3+parseInt(_0x44d169(0x16d))/0x4+-parseInt(_0x44d169(0x205))/0x5*(parseInt(_0x44d169(0x1b8))/0x6)+-parseInt(_0x44d169(0x1f1))/0x7+-parseInt(_0x44d169(0x17a))/0x8*(parseInt(_0x44d169(0x187))/0x9)+parseInt(_0x44d169(0x1e1))/0xa;if(_0x6b9215===_0x295900)break;else _0x1e1f3e['push'](_0x1e1f3e['shift']());}catch(_0x10ae5d){_0x1e1f3e['push'](_0x1e1f3e['shift']());}}}(_0xb4b9,0xa9c62));var J=Object[_0x7e354b(0x197)],K=(_0x42d9d5,_0x2117d0,_0x30577f)=>_0x2117d0 in _0x42d9d5?J(_0x42d9d5,_0x2117d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30577f}):_0x42d9d5[_0x2117d0]=_0x30577f,u=(_0x382b4d,_0x37d907,_0x3d83ad)=>K(_0x382b4d,typeof _0x37d907!=_0x7e354b(0x196)?_0x37d907+'':_0x37d907,_0x3d83ad);import{Disposable as _0x347be1,toDisposable as _0x3d4789,IUniverInstanceService as _0x309518,Inject as _0x3da970,Injector as _0x12624f,IConfigService as _0x46c0d3,ICommandService as _0x329504,RxDisposable as _0x29c169,UniverInstanceType as _0x57407e,DisposableCollection as _0x5c4131,CommandType as _0x55d34f,DependentOn as _0x2b4dcb,Plugin as _0x578106,merge as _0x37ec64,registerDependencies as _0x266bf,mergeOverrideWithDependencies as _0x357cc7,touchDependencies as _0x468664}from'@univerjs/core';import{useDependency as _0x52d8b7,useObservable as _0x197c64,IUIPartsService as _0x381d5f,BuiltInUIPart as _0x1da299,connectInjector as _0x3c976a}from'@univerjs/ui';import{jsx as _0x101f75,jsxs as _0x110ad3,Fragment as _0x54296b}from'react/jsx-runtime';import{Dropdown as _0x4a2625,clsx as _0x3ab899,Button as _0x17d00f}from'@univerjs/design';import{useRef as _0x5ada0e,createElement as _0x56a161,forwardRef as _0xde3aa3,useState as _0x4e342b,useEffect as _0x1f3ba1}from'react';import{CollaborationEvent as _0x2c840d,parseProtocolChangeset as _0x21f40d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1662bb,SessionStatus as _0x1e0fe4,UniverCollaborationClientPlugin as _0x48d4a0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x51be66,SetWorksheetActiveOperation as _0x5adc8e}from'@univerjs/sheets';import{BehaviorSubject as _0x4eaa7d,Subject as _0x59ce58}from'rxjs';import{takeUntil as _0xe6e776,throttleTime as _0x29baa8}from'rxjs/operators';import{SetZoomRatioOperation as _0x219de2,SetScrollOperation as _0x4fb794}from'@univerjs/sheets-ui';function k({ref:_0x44547c,..._0x2cf2ca}){const _0x52d28b=_0x7e354b,{icon:_0x489d8d,id:_0x1cc7ba,className:_0x5dd489,extend:_0x52387a,..._0x3f9477}=_0x2cf2ca,_0x2b71f0=(_0x52d28b(0x1ae)+_0x1cc7ba+'\x20'+(_0x5dd489||''))[_0x52d28b(0x199)](),_0x286008=_0x5ada0e('_'+Oe());return G(_0x489d8d,''+_0x1cc7ba,{'defIds':_0x489d8d[_0x52d28b(0x18d)],'idSuffix':_0x286008['current']},{'ref':_0x44547c,'className':_0x2b71f0,..._0x3f9477},_0x52387a);}function _0x12f6(_0x152c44,_0x387d68){const _0xb4b9cc=_0xb4b9();return _0x12f6=function(_0x12f6b1,_0xdf9e3c){_0x12f6b1=_0x12f6b1-0x161;let _0x5a9de4=_0xb4b9cc[_0x12f6b1];return _0x5a9de4;},_0x12f6(_0x152c44,_0x387d68);}function G(_0x301adc,_0x4a7044,_0x2fc2a3,_0x299f0c,_0x1c1e22){const _0x496406=_0x7e354b;return _0x56a161(_0x301adc['tag'],{'key':_0x4a7044,...be(_0x301adc,_0x2fc2a3,_0x1c1e22),..._0x299f0c},(Ee(_0x301adc,_0x2fc2a3)[_0x496406(0x190)]||[])[_0x496406(0x18a)]((_0xabbcaf,_0x217e40)=>G(_0xabbcaf,_0x4a7044+'-'+_0x301adc[_0x496406(0x178)]+'-'+_0x217e40,_0x2fc2a3,void 0x0,_0x1c1e22)));}function be(_0x1228f3,_0x4e1f25,_0x2df930){const _0x5f4062=_0x7e354b,_0x517ff0={..._0x1228f3[_0x5f4062(0x1f5)]};_0x2df930!=null&&_0x2df930[_0x5f4062(0x1ee)]&&_0x517ff0['fill']===_0x5f4062(0x1ee)&&(_0x517ff0['fill']=_0x2df930['colorChannel1']),_0x1228f3[_0x5f4062(0x178)]===_0x5f4062(0x167)&&_0x517ff0['id']&&(_0x517ff0['id']=_0x517ff0['id']+_0x4e1f25[_0x5f4062(0x1e9)]),Object[_0x5f4062(0x1db)](_0x517ff0)[_0x5f4062(0x17e)](([_0x2ab831,_0x2f78b2])=>{const _0x23530d=_0x5f4062;_0x2ab831===_0x23530d(0x167)&&typeof _0x2f78b2==_0x23530d(0x1b1)&&(_0x517ff0[_0x2ab831]=_0x2f78b2[_0x23530d(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x4e1f25[_0x23530d(0x1e9)]+')'));});const {defIds:_0x30df82}=_0x4e1f25;return!_0x30df82||_0x30df82[_0x5f4062(0x208)]===0x0||(_0x1228f3[_0x5f4062(0x178)]==='use'&&_0x517ff0['xlink:href']&&(_0x517ff0[_0x5f4062(0x184)]=_0x517ff0[_0x5f4062(0x184)]+_0x4e1f25['idSuffix']),Object['entries'](_0x517ff0)['forEach'](([_0x575853,_0x5cdc9b])=>{const _0x105a46=_0x5f4062;typeof _0x5cdc9b==_0x105a46(0x1b1)&&(_0x517ff0[_0x575853]=_0x5cdc9b[_0x105a46(0x16c)](/url\(#(.*)\)/,_0x105a46(0x1ba)+_0x4e1f25[_0x105a46(0x1e9)]+')'));})),_0x517ff0;}function Ee(_0x393e08,_0x514b6e){const _0x471496=_0x7e354b;var _0x42336f;const {defIds:_0x6930da}=_0x514b6e;return!_0x6930da||_0x6930da[_0x471496(0x208)]===0x0?_0x393e08:_0x393e08[_0x471496(0x178)]===_0x471496(0x1cf)&&((_0x42336f=_0x393e08[_0x471496(0x190)])!=null&&_0x42336f[_0x471496(0x208)])?{..._0x393e08,'children':_0x393e08[_0x471496(0x190)][_0x471496(0x18a)](_0x48f3b3=>typeof _0x48f3b3[_0x471496(0x1f5)]['id']=='string'&&_0x6930da&&_0x6930da[_0x471496(0x1ac)](_0x48f3b3['attrs']['id'])?{..._0x48f3b3,'attrs':{..._0x48f3b3[_0x471496(0x1f5)],'id':_0x48f3b3[_0x471496(0x1f5)]['id']+_0x514b6e[_0x471496(0x1e9)]}}:_0x48f3b3)}:_0x393e08;}function Oe(){const _0xa56e89=_0x7e354b;return Math[_0xa56e89(0x209)]()['toString'](0x24)[_0xa56e89(0x19b)](0x2,0x8);}k[_0x7e354b(0x1ef)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x7e354b(0x1d3),'fill':_0x7e354b(0x1dd),'viewBox':_0x7e354b(0x1d7),'width':_0x7e354b(0x1a8),'height':_0x7e354b(0x1a8)},'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':'path','attrs':{'fill':_0x7e354b(0x175),'d':_0x7e354b(0x1f4),'fillRule':_0x7e354b(0x1a0),'clipRule':_0x7e354b(0x1a0)}}]},W=_0xde3aa3(function(_0x32f649,_0xd0ed6b){const _0x753960=_0x7e354b;return _0x56a161(k,Object['assign']({},_0x32f649,{'id':_0x753960(0x1c8),'ref':_0xd0ed6b,'icon':we}));});W[_0x7e354b(0x1ef)]=_0x7e354b(0x1dc);class L extends _0x347be1{constructor(){const _0x49d96e=_0x7e354b;super(...arguments),u(this,_0x49d96e(0x1c9),new Set()),u(this,'_reporters',new Set());}[_0x7e354b(0x174)](_0x474663){const _0x4707d9=_0x7e354b;return this[_0x4707d9(0x1c9)][_0x4707d9(0x170)](_0x474663),_0x3d4789(()=>this[_0x4707d9(0x1c9)][_0x4707d9(0x192)](_0x474663));}[_0x7e354b(0x1a6)](_0x4297f6){return this['_reporters']['add'](_0x4297f6),_0x3d4789(()=>this['_reporters']['delete'](_0x4297f6));}[_0x7e354b(0x1b5)](_0x3edc50){const _0x2e666e=_0x7e354b;return this['_sharedOperations'][_0x2e666e(0x1a9)](_0x3edc50);}[_0x7e354b(0x1e2)](_0xcc73ed){const _0x4fe48a=_0x7e354b;return Array[_0x4fe48a(0x1fa)](this[_0x4fe48a(0x186)])[_0x4fe48a(0x18a)](_0x4228a=>_0x4228a(_0xcc73ed));}}var Ne=Object[_0x7e354b(0x1f0)],Y=(_0x478fb1,_0x4a592c,_0x36eeaa,_0x5a6790)=>{for(var _0x11ebf9=_0x5a6790>0x1?void 0x0:_0x5a6790?Ne(_0x4a592c,_0x36eeaa):_0x4a592c,_0x15f471=_0x478fb1['length']-0x1,_0x1c7542;_0x15f471>=0x0;_0x15f471--)(_0x1c7542=_0x478fb1[_0x15f471])&&(_0x11ebf9=_0x1c7542(_0x11ebf9)||_0x11ebf9);return _0x11ebf9;},_=(_0x5548bf,_0x86e0d6)=>(_0x517666,_0x37c73b)=>_0x86e0d6(_0x517666,_0x37c73b,_0x5548bf);let S=class extends _0x29c169{constructor(_0x5cbc4d,_0x1067fa,_0x3f4e85){const _0x198348=_0x7e354b;super(),u(this,_0x198348(0x1e3),new Map()),(this[_0x198348(0x1bd)]=_0x5cbc4d,this['_injector']=_0x1067fa,this[_0x198348(0x1f9)]=_0x3f4e85,this[_0x198348(0x173)]());}async['getLiveShareCoordinator'](_0x53f332){const _0x509634=_0x7e354b;return this[_0x509634(0x1e3)][_0x509634(0x1a9)](_0x53f332)||await this[_0x509634(0x1fc)](_0x53f332),this[_0x509634(0x1e3)][_0x509634(0x164)](_0x53f332);}['getLiveShareCoordinatorSync'](_0x3d9a64){const _0x4a1c5f=_0x7e354b;var _0xddcf59;return(_0xddcf59=this[_0x4a1c5f(0x1e3)][_0x4a1c5f(0x164)](_0x3d9a64))!=null?_0xddcf59:null;}['_init'](){const _0x5e79d6=_0x7e354b;this[_0x5e79d6(0x1bd)][_0x5e79d6(0x1fb)](_0x57407e[_0x5e79d6(0x1c6)])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))['subscribe'](async _0x333a13=>{const _0x43b86b=_0x5e79d6,_0x5abae5=_0x333a13[_0x43b86b(0x1e6)]();this[_0x43b86b(0x1e3)][_0x43b86b(0x1a9)](_0x5abae5)||this[_0x43b86b(0x1fc)](_0x5abae5);}),this[_0x5e79d6(0x1bd)][_0x5e79d6(0x193)](_0x57407e['UNIVER_SHEET'])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))[_0x5e79d6(0x1b7)](_0x546fa4=>{const _0x36ffdb=_0x5e79d6,_0x50ecf4=_0x546fa4[_0x36ffdb(0x1e6)](),_0x1a69ce=this[_0x36ffdb(0x1e3)][_0x36ffdb(0x164)](_0x50ecf4);_0x1a69ce==null||_0x1a69ce[_0x36ffdb(0x1d0)]();});}async[_0x7e354b(0x1fc)](_0x4a1bc9){const _0x44320d=_0x7e354b,_0x47d00d=await this[_0x44320d(0x1f9)][_0x44320d(0x1f7)](_0x4a1bc9),_0x30ebe7=this['_injector'][_0x44320d(0x1de)](N,_0x4a1bc9,_0x47d00d);return _0x30ebe7['init'](),this['_entities']['set'](_0x4a1bc9,_0x30ebe7),_0x30ebe7;}};S=Y([_(0x0,_0x309518),_(0x1,_0x3da970(_0x12624f)),_(0x2,_0x3da970(_0x1662bb))],S);var c=(_0x488490=>(_0x488490[_0x7e354b(0x1d4)]=_0x7e354b(0x1b6),_0x488490[_0x7e354b(0x1df)]='idle',_0x488490[_0x7e354b(0x1f8)]=_0x7e354b(0x1c4),_0x488490['NOT_FOLLOWING']=_0x7e354b(0x1e8),_0x488490['PRESENTING']=_0x7e354b(0x1ab),_0x488490))(c||{});const Ce=_0x7e354b(0x1f2),De=0xc8;let N=class extends _0x29c169{constructor(_0x3a06dd,_0x203175,_0x5d329e,_0x3d74aa,_0x507633){const _0x1e56d8=_0x7e354b;super(),u(this,'_status$',new _0x4eaa7d(_0x1e56d8(0x1bb))),u(this,_0x1e56d8(0x1aa),this[_0x1e56d8(0x1be)][_0x1e56d8(0x1a7)]()),u(this,_0x1e56d8(0x173),!0x1),u(this,_0x1e56d8(0x1b3),null),u(this,'_presenter',null),(this[_0x1e56d8(0x1f3)]=_0x3a06dd,this[_0x1e56d8(0x19a)]=_0x203175,this[_0x1e56d8(0x1d9)]=_0x5d329e,this[_0x1e56d8(0x1bf)]=_0x3d74aa,this['_commandService']=_0x507633);}get['_status'](){const _0x547196=_0x7e354b;return this[_0x547196(0x1be)][_0x547196(0x1a2)]();}[_0x7e354b(0x1d0)](){const _0x1eb207=_0x7e354b;var _0x23ec14;(_0x23ec14=this['_commandDisposable'])==null||_0x23ec14[_0x1eb207(0x1d0)](),this['_status$'][_0x1eb207(0x181)](_0x1eb207(0x1bb)),this[_0x1eb207(0x1be)][_0x1eb207(0x200)]();}['getStatus'](){return this['_status'];}[_0x7e354b(0x18e)](){const _0x3d8511=_0x7e354b;this['_init']||(this['_init']=!0x0,this[_0x3d8511(0x19a)][_0x3d8511(0x19d)][_0x3d8511(0x18b)](_0xe6e776(this[_0x3d8511(0x1d5)]))[_0x3d8511(0x1b7)](_0x49964d=>{const _0x5925c2=_0x3d8511;switch(_0x49964d){case _0x1e0fe4[_0x5925c2(0x1d4)]:this[_0x5925c2(0x202)]();break;case _0x1e0fe4[_0x5925c2(0x198)]:this['_handleOnline']();break;}}),this[_0x3d8511(0x19a)]['event$'][_0x3d8511(0x18b)](_0xe6e776(this['dispose$']))[_0x3d8511(0x1b7)](_0x477cb8=>{const _0x427371=_0x3d8511,{eventID:_0x554d84}=_0x477cb8;switch(_0x554d84){case _0x2c840d[_0x427371(0x1e7)]:this[_0x427371(0x1cd)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1c5)]:this[_0x427371(0x1cb)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1ca)]:this[_0x427371(0x1b9)]();break;case _0x2c840d[_0x427371(0x162)]:this[_0x427371(0x1e5)](_0x477cb8);break;}}));}[_0x7e354b(0x17d)](){const _0x31e83f=_0x7e354b;this[_0x31e83f(0x19a)][_0x31e83f(0x207)]({'eventID':_0x2c840d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31e83f(0x1f3)],'userID':this[_0x31e83f(0x19a)]['getMemberID']()}},this[_0x31e83f(0x1f3)]);}[_0x7e354b(0x1d1)](){const _0x574194=_0x7e354b;this[_0x574194(0x17f)]==='presenting'&&(this[_0x574194(0x1be)][_0x574194(0x181)](_0x574194(0x1bb)),this['_collabSession'][_0x574194(0x207)]({'eventID':_0x2c840d['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x5e0d6d=_0x7e354b;this[_0x5e0d6d(0x17f)]===_0x5e0d6d(0x1e8)&&(this[_0x5e0d6d(0x1be)][_0x5e0d6d(0x181)](_0x5e0d6d(0x1c4)),this['_startFollowing']());}[_0x7e354b(0x168)](){const _0x320f12=_0x7e354b;this['_status']===_0x320f12(0x1c4)&&this[_0x320f12(0x161)]();}['_handleNewHost'](_0x3cba89){const _0x8649bd=_0x7e354b,{presenter:_0x1e1bda}=_0x3cba89[_0x8649bd(0x172)],_0x334a33=this[_0x8649bd(0x19a)][_0x8649bd(0x203)]();this[_0x8649bd(0x1f6)]=_0x1e1bda,_0x1e1bda===_0x334a33?(this['_stopFollowing'](),this[_0x8649bd(0x176)]()):this[_0x8649bd(0x17f)]!=='not-following'&&(this[_0x8649bd(0x1c7)](),this[_0x8649bd(0x17b)]());}[_0x7e354b(0x1e0)](){const _0x505bc1=_0x7e354b,_0x3a40b0={'eventID':_0x2c840d[_0x505bc1(0x165)]};this[_0x505bc1(0x19a)]['send'](_0x3a40b0,this[_0x505bc1(0x1f3)]);}[_0x7e354b(0x1b9)](){const _0x4a9575=_0x7e354b;this[_0x4a9575(0x1f6)]=null,this['_status']!==_0x4a9575(0x1ab)&&this[_0x4a9575(0x1ed)]();}[_0x7e354b(0x1e5)](_0x57eb3){const _0x4ae1f0=_0x7e354b;if(this[_0x4ae1f0(0x17f)]==='following'&&this[_0x4ae1f0(0x1f6)]===_0x57eb3['data'][_0x4ae1f0(0x1da)]){const _0x2a6c6d=_0x21f40d(_0x57eb3['data'])['mutations'][_0x4ae1f0(0x19e)]()[_0x4ae1f0(0x1c1)](_0x3ba71f=>_0x3ba71f['id']===_0x51be66['id']);if(_0x2a6c6d){const _0x2b666f=_0x2a6c6d[_0x4ae1f0(0x1d2)][_0x4ae1f0(0x183)],_0x1f2401=_0x2a6c6d[_0x4ae1f0(0x1d2)]['sheet']['id'];setTimeout(()=>{const _0x123227=_0x4ae1f0;this[_0x123227(0x19c)][_0x123227(0x1c0)](_0x5adc8e['id'],{'unitId':_0x2b666f,'subUnitId':_0x1f2401},{'fromCollab':!0x0});});}}}[_0x7e354b(0x176)](){const _0x155274=_0x7e354b;this[_0x155274(0x1be)][_0x155274(0x181)](_0x155274(0x1ab));const _0x235cbc=new Map(),_0x10fd21=this[_0x155274(0x1b3)]=new _0x5c4131();_0x10fd21[_0x155274(0x170)](_0x3d4789(()=>{const _0x5ba289=_0x155274;_0x235cbc[_0x5ba289(0x17e)](_0x4b2039=>_0x4b2039[_0x5ba289(0x200)]()),_0x235cbc[_0x5ba289(0x1fe)]();})),_0x10fd21[_0x155274(0x170)](this[_0x155274(0x19c)][_0x155274(0x1a1)](_0x48f891=>{const _0x2c86ad=_0x155274;var _0x133bd6;if(_0x48f891[_0x2c86ad(0x1b4)]!==_0x55d34f[_0x2c86ad(0x182)]||!this[_0x2c86ad(0x1bf)][_0x2c86ad(0x1b5)](_0x48f891['id']))return;const {id:_0x293ead}=_0x48f891;let _0x5c828e;_0x235cbc[_0x2c86ad(0x1a9)](_0x293ead)?_0x5c828e=_0x235cbc[_0x2c86ad(0x164)](_0x293ead):(_0x5c828e=new _0x59ce58(),_0x235cbc[_0x2c86ad(0x18f)](_0x293ead,_0x5c828e),_0x5c828e['pipe'](_0x29baa8((_0x133bd6=this[_0x2c86ad(0x1d9)][_0x2c86ad(0x1ff)](Ce))!=null?_0x133bd6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c86ad(0x1b7)](_0x5883b6=>{const _0x285355=_0x2c86ad;this[_0x285355(0x19a)][_0x285355(0x207)]({'eventID':_0x2c840d[_0x285355(0x1c5)],'data':{'unitID':this[_0x285355(0x1f3)],'operations':{[_0x5883b6['id']]:{'id':_0x5883b6['id'],'params':JSON['stringify'](_0x5883b6[_0x285355(0x1d2)])}}}},this[_0x285355(0x1f3)]);})),_0x5c828e['next'](_0x48f891);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x1e3acb=>this[_0x155274(0x19a)][_0x155274(0x207)]({'eventID':_0x2c840d[_0x155274(0x1c5)],'data':{'unitID':this[_0x155274(0x1f3)],'operations':{[_0x1e3acb['id']]:{'id':_0x1e3acb['id'],'params':JSON[_0x155274(0x16f)](_0x1e3acb[_0x155274(0x1d2)])}}}},this['_unitID']));}[_0x7e354b(0x1c7)](){const _0x525e72=_0x7e354b;var _0x72d22f;this[_0x525e72(0x1be)][_0x525e72(0x181)]('idle'),(_0x72d22f=this[_0x525e72(0x1b3)])==null||_0x72d22f[_0x525e72(0x1d0)](),this[_0x525e72(0x1b3)]=null;}[_0x7e354b(0x17b)](){const _0x33735f=_0x7e354b;var _0x3f1474;(_0x3f1474=this[_0x33735f(0x1b3)])==null||_0x3f1474[_0x33735f(0x1d0)](),this['_status$'][_0x33735f(0x181)]('following');}[_0x7e354b(0x1ed)](){const _0x17a8be=_0x7e354b;var _0x502d29;this['_status$'][_0x17a8be(0x181)]('idle'),(_0x502d29=this[_0x17a8be(0x1b3)])==null||_0x502d29[_0x17a8be(0x1d0)](),this[_0x17a8be(0x1b3)]=null;}[_0x7e354b(0x161)](){const _0x25a4a1=_0x7e354b;var _0x5a982b;this[_0x25a4a1(0x1be)][_0x25a4a1(0x181)](_0x25a4a1(0x1e8)),(_0x5a982b=this[_0x25a4a1(0x1b3)])==null||_0x5a982b['dispose']();}[_0x7e354b(0x1cb)](_0x38d5a7){const _0x550d90=_0x7e354b;if([_0x550d90(0x1ab),_0x550d90(0x1e8),_0x550d90(0x1b6)]['includes'](this['_status'])||!_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]||_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]===this[_0x550d90(0x19a)][_0x550d90(0x203)]())return;this[_0x550d90(0x17f)]===_0x550d90(0x1bb)&&this[_0x550d90(0x17b)]();const _0x118bf6=_0x38d5a7['data'][_0x550d90(0x1bc)];Object[_0x550d90(0x169)](_0x118bf6)[_0x550d90(0x17e)](_0x15b6a1=>{const _0x42be81=_0x550d90;this[_0x42be81(0x19c)][_0x42be81(0x1c0)](_0x15b6a1['id'],_0x15b6a1[_0x42be81(0x1d2)]?JSON[_0x42be81(0x17c)](_0x15b6a1['params']):null,{'fromCollab':!0x0});});}[_0x7e354b(0x202)](){const _0x187992=_0x7e354b;var _0x4d4e54;this[_0x187992(0x1be)][_0x187992(0x181)]('offline'),(_0x4d4e54=this[_0x187992(0x1b3)])==null||_0x4d4e54[_0x187992(0x1d0)]();}[_0x7e354b(0x177)](){const _0x591435=_0x7e354b;this[_0x591435(0x1be)]['next'](_0x591435(0x1bb)),this[_0x591435(0x1e0)]();}};N=Y([_(0x2,_0x46c0d3),_(0x3,_0x3da970(L)),_(0x4,_0x329504)],N);function Le(){const _0x5afe55=_0x7e354b,_0x136208=_0x52d8b7(S),_0x1c7de1=_0x52d8b7(_0x309518),_0x4e2e9b=_0x197c64(()=>_0x1c7de1[_0x5afe55(0x1c3)](_0x57407e[_0x5afe55(0x1c6)]),void 0x0,!0x1,[]),[_0x51ff43,_0x313832]=_0x4e342b(null),[_0x3267f0,_0x246351]=_0x4e342b(c[_0x5afe55(0x1df)]),_0x3ce05e=_0x5ada0e(null);return _0x1f3ba1(()=>(_0x4e2e9b&&_0x136208[_0x5afe55(0x1fd)](_0x4e2e9b[_0x5afe55(0x1e6)]())['then'](_0x2daca2=>{const _0x590851=_0x5afe55;_0x313832(_0x2daca2),_0x3ce05e['current']=_0x2daca2[_0x590851(0x1aa)]['subscribe'](_0xe79182=>{_0x246351(_0xe79182);});}),()=>{const _0x4ac3db=_0x5afe55;var _0x3ac9ff;(_0x3ac9ff=_0x3ce05e[_0x4ac3db(0x1cc)])==null||_0x3ac9ff[_0x4ac3db(0x1ad)](),_0x3ce05e['current']=null;}),[_0x4e2e9b,_0x136208]),_0x51ff43?_0x101f75(_0x4a2625,{'align':_0x5afe55(0x18c),'disabled':_0x3267f0===c[_0x5afe55(0x1d4)],'className':_0x5afe55(0x1a4),'overlay':_0x101f75(Re,{'status':_0x3267f0,'coordinator':_0x51ff43}),'children':_0x101f75('button',{'className':_0x3ab899('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3267f0===c[_0x5afe55(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3267f0!==c[_0x5afe55(0x1d4)]}),'type':_0x5afe55(0x1eb),'children':_0x101f75(W,{'className':'univer-size-4'})})}):null;}function _0xb4b9(){const _0x133c0e=['registerComponent','getCurrentTypeOfUnit$','following','LIVESHARE_OPERATION','UNIVER_SHEET','_stopPresenting','live-share-icon','_sharedOperations','LIVESHARE_TERMINATE','_handleOperation','current','_handleNewHost','setConfig','defs','dispose','stopPresenting','params','http://www.w3.org/2000/svg','OFFLINE','dispose$','2184435vyRhNn','0\x200\x2017\x2017','Stop\x20following','_configService','memberID','entries','LiveShareIcon','none','createInstance','IDLE','_fetchOperations','23241110abiffV','getInitialStates','_entities','NOT_FOLLOWING','_handleNewChangeSets','getUnitId','LIVESHARE_NEW_HOST','not-following','idSuffix','live-share.config','button','You\x27re\x20presenting\x20the\x20document','_beIdle','colorChannel1','displayName','getOwnPropertyDescriptor','749182OTmWPJ','SAME_OPERATION_SHARE_INTERVAL','_unitID','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','attrs','_presenter','requireSession','FOLLOWING','_collabSessionService','from','getTypeOfUnitAdded$','_startLiveShareCoordinator','getLiveShareCoordinator','clear','getConfig','complete','Stop\x20presenting','_handleOffline','getMemberID','_injector','1525COsXFD','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','length','random','disposeWithMe','_stopFollowing','NEW_CHANGESETS','94OkpBaW','get','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20not\x20following\x20the\x20presenter','mask','stopFollowing','values','Start\x20following','21878UeVTZQ','replace','4109060NzxLnJ','text','stringify','add','onRendered','data','_init','registerSharedOperation','currentColor','_startPresenting','_handleOnline','tag','PRESENTING','83432CmpYaR','_startFollowing','parse','tryStartPresenting','forEach','_status','You\x27are\x20offline.','next','OPERATION','unitId','xlink:href','startFollowing','_reporters','675yhkvAu','presenter','_uiPartsService','map','pipe','end','defIds','init','set','children','pluginName','delete','getTypeOfUnitDisposed$','_mountLiveShare','onStarting','symbol','defineProperty','ONLINE','trim','_collabSession','substring','_commandService','sessionStatus$','reverse','default','evenodd','onCommandExecuted','getValue','div','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','override','registerInitialStateReporter','asObservable','1em','has','status$','presenting','includes','unsubscribe','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','HEADER_MENU','string','_config','_commandDisposable','type','shouldShareOperation','offline','subscribe','204KTLzuv','_handleTerminate','url(#$1','idle','operations','_univerInstanceService','_status$','_liveShareService','executeCommand','find'];_0xb4b9=function(){return _0x133c0e;};return _0xb4b9();}function Re(_0x3a01e6){const _0x1f4065=_0x7e354b,{status:_0x7a958c,coordinator:_0x401e13}=_0x3a01e6;switch(_0x7a958c){case c[_0x1f4065(0x1df)]:return _0x101f75($e,{'coordinator':_0x401e13});case c['FOLLOWING']:return _0x101f75(xe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1e4)]:return _0x101f75(Pe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1d4)]:return _0x101f75(Te,{});case c[_0x1f4065(0x179)]:return _0x101f75(Ae,{'coordinator':_0x401e13});default:return null;}}function $e(_0x31da09){const _0x33b30f=_0x7e354b,{coordinator:_0x2a9b50}=_0x31da09;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x33b30f(0x1a3),{'className':_0x33b30f(0x206),'children':_0x33b30f(0x1af)}),_0x101f75(_0x17d00f,{'onClick':()=>_0x2a9b50['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x456230){const _0x3ffdc6=_0x7e354b,{coordinator:_0x1dacfe}=_0x456230;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x3ffdc6(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x101f75(_0x17d00f,{'onClick':()=>_0x1dacfe['stopFollowing'](),'children':_0x3ffdc6(0x1d8)})]});}function Pe(_0x22d922){const _0x265a16=_0x7e354b,{coordinator:_0x2407e8}=_0x22d922;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x265a16(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x265a16(0x166)}),_0x101f75(_0x17d00f,{'variant':_0x265a16(0x16e),'onClick':()=>_0x2407e8[_0x265a16(0x185)](),'children':_0x265a16(0x16a)})]});}function Ae(_0x50f2a2){const _0x32467a=_0x7e354b,{coordinator:_0x3ce094}=_0x50f2a2;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x32467a(0x1a3),{'className':_0x32467a(0x206),'children':_0x32467a(0x1ec)}),_0x101f75(_0x17d00f,{'variant':_0x32467a(0x19f),'onClick':()=>_0x3ce094[_0x32467a(0x1d1)](),'children':_0x32467a(0x201)})]});}function Te(){const _0x435a7c=_0x7e354b;return _0x101f75(_0x54296b,{'children':_0x435a7c(0x180)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x59fa64,_0xfc2787,_0x57c55c,_0xd6543b)=>{const _0x34c20d=_0x7e354b;for(var _0x5d0a0b=_0xd6543b>0x1?void 0x0:_0xd6543b?Fe(_0xfc2787,_0x57c55c):_0xfc2787,_0x447148=_0x59fa64[_0x34c20d(0x208)]-0x1,_0x2f222c;_0x447148>=0x0;_0x447148--)(_0x2f222c=_0x59fa64[_0x447148])&&(_0x5d0a0b=_0x2f222c(_0x5d0a0b)||_0x5d0a0b);return _0x5d0a0b;},A=(_0xac3ffd,_0x1ef171)=>(_0x44f7d8,_0x594181)=>_0x1ef171(_0x44f7d8,_0x594181,_0xac3ffd);let m=class extends _0x347be1{constructor(_0x288204,_0x2b2fe6){const _0x3bc802=_0x7e354b;super(),this[_0x3bc802(0x204)]=_0x288204,this[_0x3bc802(0x189)]=_0x2b2fe6,this['_mountLiveShare']();}[_0x7e354b(0x194)](){const _0x54e333=_0x7e354b;this[_0x54e333(0x20a)](this[_0x54e333(0x189)][_0x54e333(0x1c2)](_0x1da299[_0x54e333(0x1b0)],()=>_0x3c976a(Le,this[_0x54e333(0x204)])));}};m=He([A(0x0,_0x3da970(_0x12624f)),A(0x1,_0x381d5f)],m);const ye=_0x7e354b(0x1ea),T={};var Ue=Object[_0x7e354b(0x1f0)],Ve=(_0x5e8a2d,_0x66567e,_0x375189,_0x457a24)=>{const _0x4a2180=_0x7e354b;for(var _0x15273d=_0x457a24>0x1?void 0x0:_0x457a24?Ue(_0x66567e,_0x375189):_0x66567e,_0x5aec03=_0x5e8a2d[_0x4a2180(0x208)]-0x1,_0x8fb842;_0x5aec03>=0x0;_0x5aec03--)(_0x8fb842=_0x5e8a2d[_0x5aec03])&&(_0x15273d=_0x8fb842(_0x15273d)||_0x15273d);return _0x15273d;},je=(_0x45a569,_0x35d1aa)=>(_0x5c1b29,_0xac8980)=>_0x35d1aa(_0x5c1b29,_0xac8980,_0x45a569);let I=class extends _0x347be1{constructor(_0x5389d2){const _0x1d7680=_0x7e354b;super(),this[_0x1d7680(0x1bf)]=_0x5389d2,this[_0x1d7680(0x173)]();}[_0x7e354b(0x173)](){const _0x20bf6e=_0x7e354b;[_0x219de2['id'],_0x4fb794['id'],_0x5adc8e['id']][_0x20bf6e(0x17e)](_0x109138=>{const _0x2b52a4=_0x20bf6e;this[_0x2b52a4(0x20a)](this['_liveShareService'][_0x2b52a4(0x174)](_0x109138));});}};I=Ve([je(0x0,_0x3da970(L))],I);var Me=Object['defineProperty'],ke=Object[_0x7e354b(0x1f0)],Ge=(_0x8adde0,_0x2eeee3,_0x34a95c)=>_0x2eeee3 in _0x8adde0?Me(_0x8adde0,_0x2eeee3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a95c}):_0x8adde0[_0x2eeee3]=_0x34a95c,We=(_0x24334f,_0x4010f5,_0x98ef0b,_0x1487a7)=>{const _0x1e228f=_0x7e354b;for(var _0x432b63=_0x1487a7>0x1?void 0x0:_0x1487a7?ke(_0x4010f5,_0x98ef0b):_0x4010f5,_0x224c76=_0x24334f[_0x1e228f(0x208)]-0x1,_0x176277;_0x224c76>=0x0;_0x224c76--)(_0x176277=_0x24334f[_0x224c76])&&(_0x432b63=_0x176277(_0x432b63)||_0x432b63);return _0x432b63;},F=(_0x1d0242,_0x166883)=>(_0x41c192,_0x126f6b)=>_0x166883(_0x41c192,_0x126f6b,_0x1d0242),B=(_0x314725,_0x23becb,_0x218aa5)=>Ge(_0x314725,typeof _0x23becb!='symbol'?_0x23becb+'':_0x23becb,_0x218aa5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x578106{constructor(_0x138817=T,_0x59cb13,_0x17e7f0){const _0x43ec91=_0x7e354b;super(),this[_0x43ec91(0x1b2)]=_0x138817,this[_0x43ec91(0x204)]=_0x59cb13,this[_0x43ec91(0x1d9)]=_0x17e7f0;const {..._0x34a654}=_0x37ec64({},T,this[_0x43ec91(0x1b2)]);this['_configService'][_0x43ec91(0x1ce)](ye,_0x34a654);}[_0x7e354b(0x195)](){const _0x575686=_0x7e354b;_0x266bf(this[_0x575686(0x204)],_0x357cc7([[L],[S],[I],[m]],this[_0x575686(0x1b2)][_0x575686(0x1a5)])),_0x468664(this[_0x575686(0x204)],[[I]]);}[_0x7e354b(0x171)](){const _0x13b34f=_0x7e354b;_0x468664(this[_0x13b34f(0x204)],[[m]]);}};B(b,_0x7e354b(0x1b4),_0x57407e['UNIVER_UNKNOWN']),B(b,_0x7e354b(0x191),Ye),b=We([_0x2b4dcb(_0x48d4a0),F(0x1,_0x3da970(_0x12624f)),F(0x2,_0x46c0d3)],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
|
-
(function(
|
|
1
|
+
function _0x2236(_0x5e260d,_0xe0f079){const _0x50fc72=_0x50fc();return _0x2236=function(_0x2236db,_0x157815){_0x2236db=_0x2236db-0x74;let _0x1ceda2=_0x50fc72[_0x2236db];return _0x1ceda2;},_0x2236(_0x5e260d,_0xe0f079);}function _0x50fc(){const _0x2c9395=['getLiveShareCoordinatorSync','extend','executeCommand','UniverSheetsFacade','16119837gbjjOK','3467980OQvmYP','@univerjs-pro/live-share','function','@univerjs/core/facade','9817017XGIWts','2086002FRUSxF','LiveShareController','_initialize','LiveShareStatusEnum','@univerjs/sheets-ui','stopPresenting','5483940aAhZKp','@univerjs/sheets','236xXMuQz','object','UniverEngineRender','SetWorksheetActiveOperation','getLiveShareStatus','startColumn','get','getId','FEnum','stopFollowing','syncExecuteCommand','UniverProLiveShare','getUnitId','@univerjs/engine-render','UniverCoreFacade','startPresenting','61595AqsIYB','16pOCAVY','getStatus','LiveShareStatus','amd','_injector','@univerjs/sheets/facade','IDLE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsUi','1256056hZkrgk','getSheetId','FUniver','startRow','getActiveWorkbook','startFollowing','getRenderById','UniverSheets','IRenderManagerService'];_0x50fc=function(){return _0x2c9395;};return _0x50fc();}(function(_0x2fde28,_0x14f3a0){const _0x23b033=_0x2236,_0x152b2b=_0x2fde28();while(!![]){try{const _0x56596e=parseInt(_0x23b033(0x8d))/0x1+-parseInt(_0x23b033(0x9b))/0x2+-parseInt(_0x23b033(0xa6))/0x3+-parseInt(_0x23b033(0xa8))/0x4*(-parseInt(_0x23b033(0x82))/0x5)+parseInt(_0x23b033(0xa0))/0x6+-parseInt(_0x23b033(0x9f))/0x7+parseInt(_0x23b033(0x83))/0x8*(parseInt(_0x23b033(0x9a))/0x9);if(_0x56596e===_0x14f3a0)break;else _0x152b2b['push'](_0x152b2b['shift']());}catch(_0x2fdf17){_0x152b2b['push'](_0x152b2b['shift']());}}}(_0x50fc,0xe7869),function(_0x45cb61,_0x3ad071){const _0x3f5d45=_0x2236;typeof exports==_0x3f5d45(0xa9)&&typeof module<'u'?_0x3ad071(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==_0x3f5d45(0x9d)&&define[_0x3f5d45(0x86)]?define([_0x3f5d45(0x9c),_0x3f5d45(0x7f),_0x3f5d45(0xa7),_0x3f5d45(0xa4),_0x3f5d45(0x88),_0x3f5d45(0x9e)],_0x3ad071):(_0x45cb61=typeof globalThis<'u'?globalThis:_0x45cb61||self,_0x3ad071(_0x45cb61[_0x3f5d45(0x7d)],_0x45cb61[_0x3f5d45(0x74)],_0x45cb61[_0x3f5d45(0x94)],_0x45cb61[_0x3f5d45(0x8c)],_0x45cb61[_0x3f5d45(0x99)],_0x45cb61[_0x3f5d45(0x80)]));}(this,function(_0x1b9402,_0x27044b,_0x57d2b3,_0x7d76c4,_0x4eaee5,_0x58832c){'use strict';const _0x4a348e=_0x2236;class _0x4ff0d8 extends _0x4eaee5['FRange']{[_0x4a348e(0xa2)](_0x2c8bce,_0x2aaa87,_0xabbfa9,_0x47272e,_0x1cb07d){const _0x2b1e69=_0x4a348e,_0x206820=_0x2c8bce[_0x2b1e69(0x78)](_0x1b9402[_0x2b1e69(0xa1)]),_0x5d44e9=_0x2c8bce[_0x2b1e69(0x78)](_0x27044b[_0x2b1e69(0x95)]),_0xa3d4a9=_0x2aaa87[_0x2b1e69(0x7e)](),_0x497ee1=_0x2aaa87['getActiveSheet'](),_0xb89d8=_0x206820[_0x2b1e69(0x96)](_0xa3d4a9);(_0xb89d8==null?void 0x0:_0xb89d8[_0x2b1e69(0x84)]())!==_0x1b9402[_0x2b1e69(0x85)]['PRESENTING']||(_0xabbfa9[_0x2b1e69(0x8e)]()!==_0x497ee1['getSheetId']()&&this['_commandService'][_0x2b1e69(0x98)](_0x57d2b3[_0x2b1e69(0x75)]['id'],{'unitId':_0xa3d4a9,'subUnitId':_0xabbfa9['getSheetId']()}),!_0x5d44e9[_0x2b1e69(0x93)](_0xa3d4a9))||_0x1cb07d[_0x2b1e69(0x7c)](_0x7d76c4['SetScrollOperation']['id'],{'unitId':_0x2aaa87[_0x2b1e69(0x7e)](),'sheetId':_0xabbfa9[_0x2b1e69(0x8e)](),'sheetViewStartRow':_0x47272e[_0x2b1e69(0x90)],'sheetViewStartColumn':_0x47272e[_0x2b1e69(0x77)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4eaee5['FRange']['extend'](_0x4ff0d8);class _0x5ac9d9 extends _0x58832c['FUniver']{[_0x4a348e(0x76)](){const _0x2e75ec=_0x4a348e;var _0x2e5e0d,_0x595d94;const _0x414be5=this['_injector'][_0x2e75ec(0x78)](_0x1b9402[_0x2e75ec(0xa1)]),_0x295f64=(_0x2e5e0d=this[_0x2e75ec(0x91)]())==null?void 0x0:_0x2e5e0d[_0x2e75ec(0x79)]();if(!_0x295f64)throw new Error(_0x2e75ec(0x8a));const _0x1cb0bc=_0x414be5[_0x2e75ec(0x96)](_0x295f64);return(_0x595d94=_0x1cb0bc==null?void 0x0:_0x1cb0bc['getStatus']())!=null?_0x595d94:_0x1b9402[_0x2e75ec(0x85)][_0x2e75ec(0x89)];}[_0x4a348e(0x92)](){const _0x31c5f2=_0x4a348e;var _0xdf79a4;const _0x453511=this[_0x31c5f2(0x87)][_0x31c5f2(0x78)](_0x1b9402['LiveShareController']),_0x487bb6=(_0xdf79a4=this['getActiveWorkbook']())==null?void 0x0:_0xdf79a4[_0x31c5f2(0x79)]();if(!_0x487bb6)throw new Error('No\x20active\x20workbook\x20found.');const _0xf49585=_0x453511[_0x31c5f2(0x96)](_0x487bb6);if(!_0xf49585)throw new Error(_0x31c5f2(0x8b));_0xf49585[_0x31c5f2(0x92)]();}['stopFollowing'](){const _0x50e813=_0x4a348e;var _0x36a416;const _0x1d62ea=this['_injector'][_0x50e813(0x78)](_0x1b9402['LiveShareController']),_0xb4888=(_0x36a416=this[_0x50e813(0x91)]())==null?void 0x0:_0x36a416['getId']();if(!_0xb4888)throw new Error(_0x50e813(0x8a));const _0x476d43=_0x1d62ea['getLiveShareCoordinatorSync'](_0xb4888);if(!_0x476d43)throw new Error(_0x50e813(0x8b));_0x476d43[_0x50e813(0x7b)]();}[_0x4a348e(0x81)](){const _0x56b44d=_0x4a348e;var _0x14025d;const _0x3812d4=this[_0x56b44d(0x87)][_0x56b44d(0x78)](_0x1b9402[_0x56b44d(0xa1)]),_0x2e0da3=(_0x14025d=this[_0x56b44d(0x91)]())==null?void 0x0:_0x14025d[_0x56b44d(0x79)]();if(!_0x2e0da3)throw new Error('No\x20active\x20workbook\x20found.');const _0x49f766=_0x3812d4['getLiveShareCoordinatorSync'](_0x2e0da3);if(!_0x49f766)throw new Error(_0x56b44d(0x8b));_0x49f766['tryStartPresenting']();}['stopPresenting'](){const _0x1b7beb=_0x4a348e;var _0x117acd;const _0x2f9681=this[_0x1b7beb(0x87)][_0x1b7beb(0x78)](_0x1b9402['LiveShareController']),_0x2572ba=(_0x117acd=this['getActiveWorkbook']())==null?void 0x0:_0x117acd[_0x1b7beb(0x79)]();if(!_0x2572ba)throw new Error('No\x20active\x20workbook\x20found.');const _0x1e1a75=_0x2f9681['getLiveShareCoordinatorSync'](_0x2572ba);if(!_0x1e1a75)throw new Error(_0x1b7beb(0x8b));_0x1e1a75[_0x1b7beb(0xa5)]();}}_0x58832c[_0x4a348e(0x8f)][_0x4a348e(0x97)](_0x5ac9d9);class _0x5ae597 extends _0x58832c[_0x4a348e(0x7a)]{get[_0x4a348e(0xa3)](){const _0x33bb85=_0x4a348e;return _0x1b9402[_0x33bb85(0x85)];}}_0x58832c['FEnum'][_0x4a348e(0x97)](_0x5ae597);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x6d23c,_0x20c708){const _0x4c5184=_0x4047,_0x4d8781=_0x6d23c();while(!![]){try{const _0x48069e=-parseInt(_0x4c5184(0x172))/0x1*(parseInt(_0x4c5184(0x154))/0x2)+-parseInt(_0x4c5184(0xd6))/0x3+-parseInt(_0x4c5184(0x122))/0x4+-parseInt(_0x4c5184(0x12a))/0x5*(-parseInt(_0x4c5184(0x96))/0x6)+parseInt(_0x4c5184(0x128))/0x7+parseInt(_0x4c5184(0xda))/0x8+parseInt(_0x4c5184(0x132))/0x9;if(_0x48069e===_0x20c708)break;else _0x4d8781['push'](_0x4d8781['shift']());}catch(_0x4532fd){_0x4d8781['push'](_0x4d8781['shift']());}}}(_0x104b,0x71d78),function(_0x4b2a28,_0x117f7a){const _0x383e11=_0x4047;typeof exports=='object'&&typeof module<'u'?_0x117f7a(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=='function'&&define[_0x383e11(0x124)]?define([_0x383e11(0xe1),'@univerjs/core',_0x383e11(0x152),_0x383e11(0xf0),'@univerjs/design',_0x383e11(0xd4),_0x383e11(0xfb),_0x383e11(0x142),_0x383e11(0xa3),'rxjs',_0x383e11(0xde),'@univerjs/sheets-ui'],_0x117f7a):(_0x4b2a28=typeof globalThis<'u'?globalThis:_0x4b2a28||self,_0x117f7a(_0x4b2a28[_0x383e11(0xbe)]={},_0x4b2a28[_0x383e11(0xf9)],_0x4b2a28[_0x383e11(0x178)],_0x4b2a28['React'],_0x4b2a28[_0x383e11(0x175)],_0x4b2a28[_0x383e11(0xa4)],_0x4b2a28[_0x383e11(0x14b)],_0x4b2a28[_0x383e11(0xe5)],_0x4b2a28[_0x383e11(0xa8)],_0x4b2a28['rxjs'],_0x4b2a28[_0x383e11(0xcf)][_0x383e11(0xa7)],_0x4b2a28[_0x383e11(0xe4)]));}(this,function(_0x3abbfa,_0x4359e1,_0x2d5985,_0x2c4380,_0xdf5c6c,_0x21bcc6,_0x27ab74,_0x2431fe,_0x459134,_0x47e1d1,_0x3ab019,_0x16f6d9){'use strict';const _0x3466ad=_0x4047;var _0x15cbaa=Object['defineProperty'],_0x2a4487=(_0x5c8a5a,_0x33f3e3,_0x3489c8)=>_0x33f3e3 in _0x5c8a5a?_0x15cbaa(_0x5c8a5a,_0x33f3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3489c8}):_0x5c8a5a[_0x33f3e3]=_0x3489c8,_0x1f450f=(_0x3cfc60,_0x37791a,_0x57ebe7)=>_0x2a4487(_0x3cfc60,typeof _0x37791a!=_0x3466ad(0x167)?_0x37791a+'':_0x37791a,_0x57ebe7);function _0x2b598e({ref:_0x3b9b48,..._0x1d0ee1}){const _0x3b29fe=_0x3466ad,{icon:_0x11684,id:_0x52226b,className:_0x6faa96,extend:_0x468b33,..._0x41122b}=_0x1d0ee1,_0x40ff5a=(_0x3b29fe(0xa9)+_0x52226b+'\x20'+(_0x6faa96||''))[_0x3b29fe(0x12f)](),_0x385a0d=_0x21bcc6['useRef']('_'+_0x105a90());return _0x56505d(_0x11684,''+_0x52226b,{'defIds':_0x11684[_0x3b29fe(0xca)],'idSuffix':_0x385a0d[_0x3b29fe(0x149)]},{'ref':_0x3b9b48,'className':_0x40ff5a,..._0x41122b},_0x468b33);}function _0x56505d(_0x5a4bc0,_0x36d879,_0x492e24,_0x23a7c8,_0x4ff428){const _0x436ec9=_0x3466ad;return _0x21bcc6[_0x436ec9(0x16f)](_0x5a4bc0[_0x436ec9(0x16d)],{'key':_0x36d879,..._0x4a9777(_0x5a4bc0,_0x492e24,_0x4ff428),..._0x23a7c8},(_0x46caa5(_0x5a4bc0,_0x492e24)[_0x436ec9(0x99)]||[])[_0x436ec9(0xb3)]((_0x34690c,_0x2d41f3)=>_0x56505d(_0x34690c,_0x36d879+'-'+_0x5a4bc0[_0x436ec9(0x16d)]+'-'+_0x2d41f3,_0x492e24,void 0x0,_0x4ff428)));}function _0x4a9777(_0xa6bb75,_0x3a3e71,_0x1b4a3d){const _0x337d48=_0x3466ad,_0x2b0276={..._0xa6bb75[_0x337d48(0x125)]};_0x1b4a3d!=null&&_0x1b4a3d[_0x337d48(0x169)]&&_0x2b0276['fill']==='colorChannel1'&&(_0x2b0276[_0x337d48(0x100)]=_0x1b4a3d[_0x337d48(0x169)]),_0xa6bb75['tag']===_0x337d48(0xba)&&_0x2b0276['id']&&(_0x2b0276['id']=_0x2b0276['id']+_0x3a3e71[_0x337d48(0x11c)]),Object[_0x337d48(0x162)](_0x2b0276)[_0x337d48(0xc2)](([_0x2aad71,_0x41dc47])=>{const _0xa74612=_0x337d48;_0x2aad71==='mask'&&typeof _0x41dc47==_0xa74612(0x155)&&(_0x2b0276[_0x2aad71]=_0x41dc47[_0xa74612(0xdf)](/url\(#(.*)\)/,_0xa74612(0xf5)+_0x3a3e71['idSuffix']+')'));});const {defIds:_0x65938b}=_0x3a3e71;return!_0x65938b||_0x65938b[_0x337d48(0x158)]===0x0||(_0xa6bb75[_0x337d48(0x16d)]===_0x337d48(0xeb)&&_0x2b0276['xlink:href']&&(_0x2b0276[_0x337d48(0x168)]=_0x2b0276['xlink:href']+_0x3a3e71['idSuffix']),Object[_0x337d48(0x162)](_0x2b0276)['forEach'](([_0x2dba42,_0x576ac8])=>{const _0x34452b=_0x337d48;typeof _0x576ac8==_0x34452b(0x155)&&(_0x2b0276[_0x2dba42]=_0x576ac8[_0x34452b(0xdf)](/url\(#(.*)\)/,_0x34452b(0xf5)+_0x3a3e71['idSuffix']+')'));})),_0x2b0276;}function _0x46caa5(_0x533bf6,_0x5ac013){const _0x4e004f=_0x3466ad;var _0x18668f;const {defIds:_0x42a515}=_0x5ac013;return!_0x42a515||_0x42a515[_0x4e004f(0x158)]===0x0?_0x533bf6:_0x533bf6[_0x4e004f(0x16d)]===_0x4e004f(0xec)&&((_0x18668f=_0x533bf6[_0x4e004f(0x99)])!=null&&_0x18668f['length'])?{..._0x533bf6,'children':_0x533bf6['children'][_0x4e004f(0xb3)](_0x1741da=>typeof _0x1741da[_0x4e004f(0x125)]['id']==_0x4e004f(0x155)&&_0x42a515&&_0x42a515[_0x4e004f(0x170)](_0x1741da[_0x4e004f(0x125)]['id'])?{..._0x1741da,'attrs':{..._0x1741da[_0x4e004f(0x125)],'id':_0x1741da['attrs']['id']+_0x5ac013[_0x4e004f(0x11c)]}}:_0x1741da)}:_0x533bf6;}function _0x105a90(){const _0x4c7eaf=_0x3466ad;return Math[_0x4c7eaf(0x116)]()[_0x4c7eaf(0x146)](0x24)['substring'](0x2,0x8);}_0x2b598e[_0x3466ad(0xe6)]=_0x3466ad(0xaf);const _0x287fb8={'tag':_0x3466ad(0x108),'attrs':{'xmlns':_0x3466ad(0xb4),'fill':'none','viewBox':_0x3466ad(0x160),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3466ad(0x157),'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':_0x3466ad(0x17b),'attrs':{'fill':'currentColor','d':_0x3466ad(0xee),'fillRule':_0x3466ad(0x105),'clipRule':_0x3466ad(0x105)}}]},_0x19234d=_0x21bcc6[_0x3466ad(0x12c)](function(_0x2a6ac5,_0x1a51a0){const _0x42aa2f=_0x3466ad;return _0x21bcc6[_0x42aa2f(0x16f)](_0x2b598e,Object[_0x42aa2f(0x14e)]({},_0x2a6ac5,{'id':_0x42aa2f(0xb0),'ref':_0x1a51a0,'icon':_0x287fb8}));});_0x19234d[_0x3466ad(0xe6)]=_0x3466ad(0x153);class _0xb3b5ac extends _0x4359e1[_0x3466ad(0x10f)]{constructor(){const _0x78cf07=_0x3466ad;super(...arguments),_0x1f450f(this,'_sharedOperations',new Set()),_0x1f450f(this,_0x78cf07(0x15a),new Set());}[_0x3466ad(0xaa)](_0x3cbcb2){const _0x24e95d=_0x3466ad;return this[_0x24e95d(0x101)]['add'](_0x3cbcb2),_0x4359e1['toDisposable'](()=>this[_0x24e95d(0x101)]['delete'](_0x3cbcb2));}[_0x3466ad(0xdc)](_0x2c39d0){const _0x1fc445=_0x3466ad;return this[_0x1fc445(0x15a)][_0x1fc445(0x13b)](_0x2c39d0),_0x4359e1['toDisposable'](()=>this[_0x1fc445(0x15a)][_0x1fc445(0x120)](_0x2c39d0));}[_0x3466ad(0x164)](_0xb176f1){const _0x58f163=_0x3466ad;return this[_0x58f163(0x101)][_0x58f163(0xd5)](_0xb176f1);}['getInitialStates'](_0x575b0b){const _0x3b6f41=_0x3466ad;return Array[_0x3b6f41(0x114)](this['_reporters'])['map'](_0xdea91e=>_0xdea91e(_0x575b0b));}}var _0x2becc1=Object['getOwnPropertyDescriptor'],_0x3fd12f=(_0x167f46,_0x44c4b6,_0x3c3228,_0x5903ed)=>{const _0x293de3=_0x3466ad;for(var _0x6762bd=_0x5903ed>0x1?void 0x0:_0x5903ed?_0x2becc1(_0x44c4b6,_0x3c3228):_0x44c4b6,_0x23997c=_0x167f46[_0x293de3(0x158)]-0x1,_0x3d0318;_0x23997c>=0x0;_0x23997c--)(_0x3d0318=_0x167f46[_0x23997c])&&(_0x6762bd=_0x3d0318(_0x6762bd)||_0x6762bd);return _0x6762bd;},_0x5d4fb8=(_0xab9004,_0x180a9e)=>(_0x237951,_0x11f747)=>_0x180a9e(_0x237951,_0x11f747,_0xab9004);_0x3abbfa[_0x3466ad(0x102)]=class extends _0x4359e1['RxDisposable']{constructor(_0x51692d,_0x2d7c6e,_0x653823){const _0x353322=_0x3466ad;super(),_0x1f450f(this,'_entities',new Map()),(this[_0x353322(0x138)]=_0x51692d,this[_0x353322(0xf8)]=_0x2d7c6e,this[_0x353322(0xac)]=_0x653823,this[_0x353322(0xd1)]());}async['getLiveShareCoordinator'](_0xa72a00){const _0x39dfa9=_0x3466ad;return this[_0x39dfa9(0x176)]['has'](_0xa72a00)||await this[_0x39dfa9(0x174)](_0xa72a00),this[_0x39dfa9(0x176)][_0x39dfa9(0x12e)](_0xa72a00);}[_0x3466ad(0xf2)](_0x383497){const _0x3c02ea=_0x3466ad;var _0x3213b9;return(_0x3213b9=this['_entities'][_0x3c02ea(0x12e)](_0x383497))!=null?_0x3213b9:null;}[_0x3466ad(0xd1)](){const _0x112ffa=_0x3466ad;this[_0x112ffa(0x138)][_0x112ffa(0xe2)](_0x4359e1[_0x112ffa(0xf7)][_0x112ffa(0xce)])[_0x112ffa(0xbf)](_0x3ab019[_0x112ffa(0xe3)](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](async _0x548362=>{const _0x48ffd1=_0x112ffa,_0x5a758a=_0x548362[_0x48ffd1(0x17e)]();this[_0x48ffd1(0x176)][_0x48ffd1(0xd5)](_0x5a758a)||this[_0x48ffd1(0x174)](_0x5a758a);}),this['_univerInstanceService'][_0x112ffa(0x166)](_0x4359e1[_0x112ffa(0xf7)]['UNIVER_SHEET'])['pipe'](_0x3ab019['takeUntil'](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](_0x2bd5ff=>{const _0x1eef09=_0x112ffa,_0x53712f=_0x2bd5ff['getUnitId'](),_0x3751f1=this[_0x1eef09(0x176)][_0x1eef09(0x12e)](_0x53712f);_0x3751f1==null||_0x3751f1[_0x1eef09(0x10e)]();});}async[_0x3466ad(0x174)](_0x5821a4){const _0x2d4b76=_0x3466ad,_0x44d371=await this[_0x2d4b76(0xac)]['requireSession'](_0x5821a4),_0x332102=this[_0x2d4b76(0xf8)]['createInstance'](_0x3abbfa[_0x2d4b76(0x148)],_0x5821a4,_0x44d371);return _0x332102['init'](),this[_0x2d4b76(0x176)][_0x2d4b76(0xea)](_0x5821a4,_0x332102),_0x332102;}},_0x3abbfa['LiveShareController']=_0x3fd12f([_0x5d4fb8(0x0,_0x4359e1[_0x3466ad(0xff)]),_0x5d4fb8(0x1,_0x4359e1['Inject'](_0x4359e1[_0x3466ad(0xcd)])),_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0x135)](_0x2431fe[_0x3466ad(0xed)]))],_0x3abbfa[_0x3466ad(0x102)]);var _0x53cc48=(_0x253843=>(_0x253843[_0x3466ad(0x14a)]=_0x3466ad(0xd7),_0x253843['IDLE']=_0x3466ad(0x177),_0x253843[_0x3466ad(0x16b)]=_0x3466ad(0x17d),_0x253843[_0x3466ad(0x107)]=_0x3466ad(0xd3),_0x253843[_0x3466ad(0xc3)]=_0x3466ad(0x13d),_0x253843))(_0x53cc48||{});const _0x26e80c=_0x3466ad(0xae),_0x33d4c0=0xc8;_0x3abbfa['LiveShareCoordinator']=class extends _0x4359e1['RxDisposable']{constructor(_0x58d938,_0x58d4a9,_0x2b4e7f,_0x3e6e24,_0x2e8f99){const _0x4ab263=_0x3466ad;super(),_0x1f450f(this,_0x4ab263(0x16a),new _0x47e1d1[(_0x4ab263(0xb1))](_0x4ab263(0x177))),_0x1f450f(this,_0x4ab263(0xb2),this[_0x4ab263(0x16a)][_0x4ab263(0xd8)]()),_0x1f450f(this,_0x4ab263(0xd1),!0x1),_0x1f450f(this,_0x4ab263(0x11f),null),_0x1f450f(this,_0x4ab263(0x95),null),(this[_0x4ab263(0x13c)]=_0x58d938,this[_0x4ab263(0x129)]=_0x58d4a9,this[_0x4ab263(0xef)]=_0x2b4e7f,this['_liveShareService']=_0x3e6e24,this['_commandService']=_0x2e8f99);}get['_status'](){const _0x209d78=_0x3466ad;return this[_0x209d78(0x16a)][_0x209d78(0xc5)]();}[_0x3466ad(0x10e)](){const _0x4cc7aa=_0x3466ad;var _0x55414c;(_0x55414c=this['_commandDisposable'])==null||_0x55414c['dispose'](),this[_0x4cc7aa(0x16a)][_0x4cc7aa(0xbd)](_0x4cc7aa(0x177)),this['_status$'][_0x4cc7aa(0xa5)]();}[_0x3466ad(0x12d)](){const _0x549ee9=_0x3466ad;return this[_0x549ee9(0xd2)];}['init'](){const _0x2e6e6d=_0x3466ad;this[_0x2e6e6d(0xd1)]||(this[_0x2e6e6d(0xd1)]=!0x0,this['_collabSession'][_0x2e6e6d(0x119)][_0x2e6e6d(0xbf)](_0x3ab019[_0x2e6e6d(0xe3)](this['dispose$']))[_0x2e6e6d(0x109)](_0x225982=>{const _0x1f861d=_0x2e6e6d;switch(_0x225982){case _0x2431fe['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x2431fe[_0x1f861d(0xb6)][_0x1f861d(0x139)]:this[_0x1f861d(0xe8)]();break;}}),this[_0x2e6e6d(0x129)][_0x2e6e6d(0x11d)][_0x2e6e6d(0xbf)](_0x3ab019['takeUntil'](this['dispose$']))['subscribe'](_0x190a9c=>{const _0x1aa6f5=_0x2e6e6d,{eventID:_0x5910ae}=_0x190a9c;switch(_0x5910ae){case _0x27ab74['CollaborationEvent'][_0x1aa6f5(0x9a)]:this['_handleNewHost'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0xcb)]:this['_handleOperation'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x9c)]:this[_0x1aa6f5(0x16e)]();break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x163)]:this[_0x1aa6f5(0x144)](_0x190a9c);break;}}));}['tryStartPresenting'](){const _0x4193b4=_0x3466ad;this['_collabSession'][_0x4193b4(0xe7)]({'eventID':_0x27ab74[_0x4193b4(0x91)][_0x4193b4(0x156)],'data':{'unitID':this[_0x4193b4(0x13c)],'userID':this[_0x4193b4(0x129)][_0x4193b4(0x14c)]()}},this['_unitID']);}[_0x3466ad(0x171)](){const _0x9c9c58=_0x3466ad;this[_0x9c9c58(0xd2)]===_0x9c9c58(0x13d)&&(this['_status$'][_0x9c9c58(0xbd)](_0x9c9c58(0x177)),this[_0x9c9c58(0x129)][_0x9c9c58(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x9c9c58(0x9c)],'data':{'unitID':this[_0x9c9c58(0x13c)]}},this[_0x9c9c58(0x13c)]));}[_0x3466ad(0xbc)](){const _0x619cf=_0x3466ad;this[_0x619cf(0xd2)]===_0x619cf(0xd3)&&(this[_0x619cf(0x16a)][_0x619cf(0xbd)](_0x619cf(0x17d)),this[_0x619cf(0x147)]());}[_0x3466ad(0x113)](){const _0xf39d57=_0x3466ad;this[_0xf39d57(0xd2)]===_0xf39d57(0x17d)&&this[_0xf39d57(0x11b)]();}[_0x3466ad(0xa1)](_0x5392c7){const _0x9dc36c=_0x3466ad,{presenter:_0x57e1fc}=_0x5392c7[_0x9dc36c(0x165)],_0x491b6b=this[_0x9dc36c(0x129)][_0x9dc36c(0x14c)]();this[_0x9dc36c(0x95)]=_0x57e1fc,_0x57e1fc===_0x491b6b?(this[_0x9dc36c(0x11b)](),this['_startPresenting']()):this[_0x9dc36c(0xd2)]!==_0x9dc36c(0xd3)&&(this[_0x9dc36c(0x133)](),this[_0x9dc36c(0x147)]());}[_0x3466ad(0x179)](){const _0x582f5c=_0x3466ad,_0x3ee616={'eventID':_0x27ab74[_0x582f5c(0x91)][_0x582f5c(0x143)]};this['_collabSession'][_0x582f5c(0xe7)](_0x3ee616,this['_unitID']);}[_0x3466ad(0x16e)](){const _0xa645ca=_0x3466ad;this[_0xa645ca(0x95)]=null,this[_0xa645ca(0xd2)]!==_0xa645ca(0x13d)&&this['_beIdle']();}['_handleNewChangeSets'](_0x3a886){const _0x18b73d=_0x3466ad;if(this[_0x18b73d(0xd2)]===_0x18b73d(0x17d)&&this[_0x18b73d(0x95)]===_0x3a886[_0x18b73d(0x165)]['memberID']){const _0x2842b5=_0x27ab74[_0x18b73d(0xbb)](_0x3a886['data'])['mutations'][_0x18b73d(0x159)]()[_0x18b73d(0x121)](_0x4616b8=>_0x4616b8['id']===_0x459134[_0x18b73d(0x13a)]['id']);if(_0x2842b5){const _0x657b3e=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x151)],_0x1da8f6=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x14f)]['id'];setTimeout(()=>{const _0x424d67=_0x18b73d;this[_0x424d67(0xdb)]['executeCommand'](_0x459134[_0x424d67(0x15d)]['id'],{'unitId':_0x657b3e,'subUnitId':_0x1da8f6},{'fromCollab':!0x0});});}}}[_0x3466ad(0x9b)](){const _0x54bada=_0x3466ad;this[_0x54bada(0x16a)]['next'](_0x54bada(0x13d));const _0x27cb9c=new Map(),_0x18fc98=this['_commandDisposable']=new _0x4359e1[(_0x54bada(0xc7))]();_0x18fc98[_0x54bada(0x13b)](_0x4359e1[_0x54bada(0x9d)](()=>{const _0xb3c572=_0x54bada;_0x27cb9c['forEach'](_0x14494e=>_0x14494e[_0xb3c572(0xa5)]()),_0x27cb9c[_0xb3c572(0x16c)]();})),_0x18fc98[_0x54bada(0x13b)](this[_0x54bada(0xdb)][_0x54bada(0xcc)](_0x256f43=>{const _0x26011d=_0x54bada;var _0x24321c;if(_0x256f43[_0x26011d(0xfa)]!==_0x4359e1['CommandType']['OPERATION']||!this['_liveShareService'][_0x26011d(0x164)](_0x256f43['id']))return;const {id:_0x4ba781}=_0x256f43;let _0x37ebaf;_0x27cb9c['has'](_0x4ba781)?_0x37ebaf=_0x27cb9c[_0x26011d(0x12e)](_0x4ba781):(_0x37ebaf=new _0x47e1d1['Subject'](),_0x27cb9c[_0x26011d(0xea)](_0x4ba781,_0x37ebaf),_0x37ebaf[_0x26011d(0xbf)](_0x3ab019[_0x26011d(0x137)]((_0x24321c=this['_configService']['getConfig'](_0x26e80c))!=null?_0x24321c:_0x33d4c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26011d(0x109)](_0x25642b=>{const _0x4c9d81=_0x26011d;this['_collabSession'][_0x4c9d81(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x4c9d81(0xcb)],'data':{'unitID':this[_0x4c9d81(0x13c)],'operations':{[_0x25642b['id']]:{'id':_0x25642b['id'],'params':JSON[_0x4c9d81(0x110)](_0x25642b[_0x4c9d81(0x112)])}}}},this[_0x4c9d81(0x13c)]);})),_0x37ebaf['next'](_0x256f43);})),this['_liveShareService'][_0x54bada(0xf1)](this[_0x54bada(0x13c)])['forEach'](_0x13cd38=>this[_0x54bada(0x129)][_0x54bada(0xe7)]({'eventID':_0x27ab74[_0x54bada(0x91)][_0x54bada(0xcb)],'data':{'unitID':this['_unitID'],'operations':{[_0x13cd38['id']]:{'id':_0x13cd38['id'],'params':JSON[_0x54bada(0x110)](_0x13cd38[_0x54bada(0x112)])}}}},this[_0x54bada(0x13c)]));}[_0x3466ad(0x133)](){const _0x21a377=_0x3466ad;var _0x55eb02;this[_0x21a377(0x16a)]['next']('idle'),(_0x55eb02=this[_0x21a377(0x11f)])==null||_0x55eb02[_0x21a377(0x10e)](),this[_0x21a377(0x11f)]=null;}[_0x3466ad(0x147)](){const _0x37bcd8=_0x3466ad;var _0x3d8748;(_0x3d8748=this[_0x37bcd8(0x11f)])==null||_0x3d8748['dispose'](),this['_status$'][_0x37bcd8(0xbd)]('following');}[_0x3466ad(0x9e)](){const _0x2d3376=_0x3466ad;var _0x3ee4bb;this[_0x2d3376(0x16a)][_0x2d3376(0xbd)](_0x2d3376(0x177)),(_0x3ee4bb=this['_commandDisposable'])==null||_0x3ee4bb[_0x2d3376(0x10e)](),this['_commandDisposable']=null;}[_0x3466ad(0x11b)](){const _0x28364b=_0x3466ad;var _0x2e52e2;this[_0x28364b(0x16a)]['next']('not-following'),(_0x2e52e2=this[_0x28364b(0x11f)])==null||_0x2e52e2[_0x28364b(0x10e)]();}['_handleOperation'](_0x3999e3){const _0x205dae=_0x3466ad;if([_0x205dae(0x13d),_0x205dae(0xd3),'offline']['includes'](this[_0x205dae(0xd2)])||!_0x3999e3[_0x205dae(0x165)][_0x205dae(0xa0)]||_0x3999e3['data'][_0x205dae(0xa0)]===this['_collabSession'][_0x205dae(0x14c)]())return;this[_0x205dae(0xd2)]===_0x205dae(0x177)&&this[_0x205dae(0x147)]();const _0x207f23=_0x3999e3['data'][_0x205dae(0x15f)];Object['values'](_0x207f23)['forEach'](_0x443ae9=>{const _0x3f6758=_0x205dae;this[_0x3f6758(0xdb)][_0x3f6758(0x17c)](_0x443ae9['id'],_0x443ae9['params']?JSON[_0x3f6758(0xc0)](_0x443ae9[_0x3f6758(0x112)]):null,{'fromCollab':!0x0});});}[_0x3466ad(0x123)](){const _0x12db3f=_0x3466ad;var _0x3e95d1;this[_0x12db3f(0x16a)][_0x12db3f(0xbd)]('offline'),(_0x3e95d1=this[_0x12db3f(0x11f)])==null||_0x3e95d1[_0x12db3f(0x10e)]();}[_0x3466ad(0xe8)](){const _0x574c51=_0x3466ad;this[_0x574c51(0x16a)][_0x574c51(0xbd)](_0x574c51(0x177)),this[_0x574c51(0x179)]();}},_0x3abbfa[_0x3466ad(0x148)]=_0x3fd12f([_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0xb5)]),_0x5d4fb8(0x3,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac)),_0x5d4fb8(0x4,_0x4359e1[_0x3466ad(0x115)])],_0x3abbfa[_0x3466ad(0x148)]);function _0x558aee(){const _0x2a0da8=_0x3466ad,_0x3c7c0b=_0x2d5985[_0x2a0da8(0xe0)](_0x3abbfa[_0x2a0da8(0x102)]),_0x272075=_0x2d5985[_0x2a0da8(0xe0)](_0x4359e1[_0x2a0da8(0xff)]),_0x5cc3e8=_0x2d5985[_0x2a0da8(0x13e)](()=>_0x272075[_0x2a0da8(0x161)](_0x4359e1[_0x2a0da8(0xf7)][_0x2a0da8(0xce)]),void 0x0,!0x1,[]),[_0x19a078,_0x467ddf]=_0x21bcc6[_0x2a0da8(0x13f)](null),[_0xfb608a,_0x2b077f]=_0x21bcc6[_0x2a0da8(0x13f)](_0x53cc48[_0x2a0da8(0x126)]),_0x3627f2=_0x21bcc6['useRef'](null);return _0x21bcc6[_0x2a0da8(0xab)](()=>(_0x5cc3e8&&_0x3c7c0b[_0x2a0da8(0x145)](_0x5cc3e8[_0x2a0da8(0x17e)]())[_0x2a0da8(0xf4)](_0xa9dd03=>{const _0x4d40b3=_0x2a0da8;_0x467ddf(_0xa9dd03),_0x3627f2[_0x4d40b3(0x149)]=_0xa9dd03['status$'][_0x4d40b3(0x109)](_0x5a6bd9=>{_0x2b077f(_0x5a6bd9);});}),()=>{const _0x3dcfad=_0x2a0da8;var _0x5182bf;(_0x5182bf=_0x3627f2[_0x3dcfad(0x149)])==null||_0x5182bf[_0x3dcfad(0x150)](),_0x3627f2[_0x3dcfad(0x149)]=null;}),[_0x5cc3e8,_0x3c7c0b]),_0x19a078?_0x2c4380[_0x2a0da8(0x10c)](_0xdf5c6c[_0x2a0da8(0xd9)],{'align':_0x2a0da8(0x131),'disabled':_0xfb608a===_0x53cc48['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':_0x2c4380[_0x2a0da8(0x10c)](_0x5699b4,{'status':_0xfb608a,'coordinator':_0x19a078}),'children':_0x2c4380['jsx'](_0x2a0da8(0x106),{'className':_0xdf5c6c[_0x2a0da8(0x130)](_0x2a0da8(0x104),{'univer-cursor-not-allowed':_0xfb608a===_0x53cc48[_0x2a0da8(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xfb608a!==_0x53cc48['OFFLINE']}),'type':_0x2a0da8(0x106),'children':_0x2c4380[_0x2a0da8(0x10c)](_0x19234d,{'className':_0x2a0da8(0xc6)})})}):null;}function _0x5699b4(_0x4dc57d){const _0x41ec4c=_0x3466ad,{status:_0x27e09c,coordinator:_0x42410d}=_0x4dc57d;switch(_0x27e09c){case _0x53cc48[_0x41ec4c(0x126)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x3ca318,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x16b)]:return _0x2c4380['jsx'](_0x43cead,{'coordinator':_0x42410d});case _0x53cc48['NOT_FOLLOWING']:return _0x2c4380[_0x41ec4c(0x10c)](_0x41e65b,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x14a)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x343752,{});case _0x53cc48[_0x41ec4c(0xc3)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x1084b9,{'coordinator':_0x42410d});default:return null;}}function _0x3ca318(_0x1750e2){const _0x99822d=_0x3466ad,{coordinator:_0x3bba32}=_0x1750e2;return _0x2c4380[_0x99822d(0x17a)](_0x2c4380['Fragment'],{'children':[_0x2c4380['jsx'](_0x99822d(0x11a),{'className':_0x99822d(0xc4),'children':_0x99822d(0x134)}),_0x2c4380[_0x99822d(0x10c)](_0xdf5c6c[_0x99822d(0x10b)],{'onClick':()=>_0x3bba32[_0x99822d(0xb7)](),'children':_0x99822d(0xc9)})]});}function _0x43cead(_0xc3db){const _0x383d1d=_0x3466ad,{coordinator:_0x54818e}=_0xc3db;return _0x2c4380[_0x383d1d(0x17a)](_0x2c4380[_0x383d1d(0xf6)],{'children':[_0x2c4380[_0x383d1d(0x10c)](_0x383d1d(0x11a),{'className':_0x383d1d(0xc4),'children':_0x383d1d(0xfc)}),_0x2c4380[_0x383d1d(0x10c)](_0xdf5c6c[_0x383d1d(0x10b)],{'onClick':()=>_0x54818e[_0x383d1d(0x113)](),'children':_0x383d1d(0x97)})]});}function _0x41e65b(_0x3f9fad){const _0x39a6c6=_0x3466ad,{coordinator:_0x3696fe}=_0x3f9fad;return _0x2c4380['jsxs'](_0x2c4380[_0x39a6c6(0xf6)],{'children':[_0x2c4380['jsx'](_0x39a6c6(0x11a),{'className':_0x39a6c6(0xc4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2c4380[_0x39a6c6(0x10c)](_0xdf5c6c[_0x39a6c6(0x10b)],{'variant':_0x39a6c6(0xa6),'onClick':()=>_0x3696fe[_0x39a6c6(0xbc)](),'children':_0x39a6c6(0x15b)})]});}function _0x1084b9(_0x4cffb7){const _0x28dbf7=_0x3466ad,{coordinator:_0x4bfabb}=_0x4cffb7;return _0x2c4380['jsxs'](_0x2c4380[_0x28dbf7(0xf6)],{'children':[_0x2c4380['jsx'](_0x28dbf7(0x11a),{'className':_0x28dbf7(0xc4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2c4380[_0x28dbf7(0x10c)](_0xdf5c6c[_0x28dbf7(0x10b)],{'variant':_0x28dbf7(0x98),'onClick':()=>_0x4bfabb['stopPresenting'](),'children':_0x28dbf7(0x11e)})]});}function _0x343752(){const _0x2eddb2=_0x3466ad;return _0x2c4380['jsx'](_0x2c4380[_0x2eddb2(0xf6)],{'children':_0x2eddb2(0x136)});}var _0x1f7bed=Object[_0x3466ad(0x141)],_0x39011f=(_0x4bdb0a,_0x9bdf8a,_0x3a362e,_0x1bd7a2)=>{const _0x415b86=_0x3466ad;for(var _0x3b1910=_0x1bd7a2>0x1?void 0x0:_0x1bd7a2?_0x1f7bed(_0x9bdf8a,_0x3a362e):_0x9bdf8a,_0x3e5aca=_0x4bdb0a[_0x415b86(0x158)]-0x1,_0x16262c;_0x3e5aca>=0x0;_0x3e5aca--)(_0x16262c=_0x4bdb0a[_0x3e5aca])&&(_0x3b1910=_0x16262c(_0x3b1910)||_0x3b1910);return _0x3b1910;},_0x34abfb=(_0x56a0ab,_0x234e83)=>(_0x26592b,_0x47c770)=>_0x234e83(_0x26592b,_0x47c770,_0x56a0ab);_0x3abbfa[_0x3466ad(0x14d)]=class extends _0x4359e1['Disposable']{constructor(_0x9708e5,_0x52bb6d){const _0x43baad=_0x3466ad;super(),this[_0x43baad(0xf8)]=_0x9708e5,this['_uiPartsService']=_0x52bb6d,this[_0x43baad(0xb8)]();}['_mountLiveShare'](){const _0x1df841=_0x3466ad;this[_0x1df841(0xe9)](this[_0x1df841(0x111)][_0x1df841(0x118)](_0x2d5985[_0x1df841(0xdd)][_0x1df841(0xc8)],()=>_0x2d5985[_0x1df841(0x9f)](_0x558aee,this[_0x1df841(0xf8)])));}},_0x3abbfa[_0x3466ad(0x14d)]=_0x39011f([_0x34abfb(0x0,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x34abfb(0x1,_0x2d5985[_0x3466ad(0x10d)])],_0x3abbfa[_0x3466ad(0x14d)]);const _0x1ad01c=_0x3466ad(0x127),_0x4f60e0={};var _0x3701a6=Object[_0x3466ad(0x141)],_0xfb79d=(_0x3b2689,_0x4691be,_0x42e970,_0x487dff)=>{const _0x5269f7=_0x3466ad;for(var _0x18e7cb=_0x487dff>0x1?void 0x0:_0x487dff?_0x3701a6(_0x4691be,_0x42e970):_0x4691be,_0xc6213b=_0x3b2689[_0x5269f7(0x158)]-0x1,_0x38bc33;_0xc6213b>=0x0;_0xc6213b--)(_0x38bc33=_0x3b2689[_0xc6213b])&&(_0x18e7cb=_0x38bc33(_0x18e7cb)||_0x18e7cb);return _0x18e7cb;},_0x517ddf=(_0xd052a3,_0x4fe070)=>(_0x48a194,_0x3e875d)=>_0x4fe070(_0x48a194,_0x3e875d,_0xd052a3);let _0x5c9df4=class extends _0x4359e1[_0x3466ad(0x10f)]{constructor(_0x10f064){const _0x9217fe=_0x3466ad;super(),this['_liveShareService']=_0x10f064,this[_0x9217fe(0xd1)]();}[_0x3466ad(0xd1)](){const _0x4ab527=_0x3466ad;[_0x16f6d9[_0x4ab527(0xfd)]['id'],_0x16f6d9[_0x4ab527(0x180)]['id'],_0x459134['SetWorksheetActiveOperation']['id']][_0x4ab527(0xc2)](_0x1dc749=>{const _0x79e481=_0x4ab527;this['disposeWithMe'](this['_liveShareService'][_0x79e481(0xaa)](_0x1dc749));});}};_0x5c9df4=_0xfb79d([_0x517ddf(0x0,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac))],_0x5c9df4);var _0x300f61=Object[_0x3466ad(0x173)],_0x8dcd59=Object[_0x3466ad(0x141)],_0xa06838=(_0x138727,_0x3d4fcc,_0x4219d6)=>_0x3d4fcc in _0x138727?_0x300f61(_0x138727,_0x3d4fcc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4219d6}):_0x138727[_0x3d4fcc]=_0x4219d6,_0x10de32=(_0x4c6528,_0x3ffbf2,_0x5ee5f4,_0x348c35)=>{const _0x549e03=_0x3466ad;for(var _0x22da0b=_0x348c35>0x1?void 0x0:_0x348c35?_0x8dcd59(_0x3ffbf2,_0x5ee5f4):_0x3ffbf2,_0x185015=_0x4c6528[_0x549e03(0x158)]-0x1,_0x4f12ed;_0x185015>=0x0;_0x185015--)(_0x4f12ed=_0x4c6528[_0x185015])&&(_0x22da0b=_0x4f12ed(_0x22da0b)||_0x22da0b);return _0x22da0b;},_0x3c1e10=(_0x547305,_0x3c2201)=>(_0x1f7e25,_0x1adb01)=>_0x3c2201(_0x1f7e25,_0x1adb01,_0x547305),_0x21b930=(_0x2ebdb4,_0xc0f6f1,_0x269fc2)=>_0xa06838(_0x2ebdb4,typeof _0xc0f6f1!=_0x3466ad(0x167)?_0xc0f6f1+'':_0xc0f6f1,_0x269fc2);const _0x12221c='UNIVER_LIVE_SHARE_PLUGIN';_0x3abbfa[_0x3466ad(0x103)]=class extends _0x4359e1[_0x3466ad(0x140)]{constructor(_0x526337=_0x4f60e0,_0xa756c,_0x20870f){const _0x442cb5=_0x3466ad;super(),this[_0x442cb5(0xd0)]=_0x526337,this['_injector']=_0xa756c,this[_0x442cb5(0xef)]=_0x20870f;const {..._0x2cefbd}=_0x4359e1['merge']({},_0x4f60e0,this[_0x442cb5(0xd0)]);this['_configService'][_0x442cb5(0x117)](_0x1ad01c,_0x2cefbd);}[_0x3466ad(0xad)](){const _0x1d073f=_0x3466ad;_0x4359e1['registerDependencies'](this[_0x1d073f(0xf8)],_0x4359e1[_0x1d073f(0x93)]([[_0xb3b5ac],[_0x3abbfa[_0x1d073f(0x102)]],[_0x5c9df4],[_0x3abbfa[_0x1d073f(0x14d)]]],this['_config'][_0x1d073f(0xfe)])),_0x4359e1[_0x1d073f(0x12b)](this['_injector'],[[_0x5c9df4]]);}[_0x3466ad(0x94)](){const _0x274d96=_0x3466ad;_0x4359e1[_0x274d96(0x12b)](this[_0x274d96(0xf8)],[[_0x3abbfa[_0x274d96(0x14d)]]]);}},_0x21b930(_0x3abbfa['UniverLiveSharePlugin'],'type',_0x4359e1[_0x3466ad(0xf7)][_0x3466ad(0xa2)]),_0x21b930(_0x3abbfa[_0x3466ad(0x103)],_0x3466ad(0xb9),_0x12221c),_0x3abbfa[_0x3466ad(0x103)]=_0x10de32([_0x4359e1[_0x3466ad(0xf3)](_0x2431fe[_0x3466ad(0x15e)]),_0x3c1e10(0x1,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x3c1e10(0x2,_0x4359e1[_0x3466ad(0xb5)])],_0x3abbfa[_0x3466ad(0x103)]),_0x3abbfa[_0x3466ad(0x92)]=_0x558aee,_0x3abbfa[_0x3466ad(0xc1)]=_0xb3b5ac,_0x3abbfa[_0x3466ad(0x15c)]=_0x53cc48,Object[_0x3466ad(0x173)](_0x3abbfa,Symbol['toStringTag'],{'value':_0x3466ad(0x17f)});}));function _0x4047(_0x534a2d,_0x15169f){const _0x104b55=_0x104b();return _0x4047=function(_0x40473b,_0x5a4e52){_0x40473b=_0x40473b-0x91;let _0x2079cc=_0x104b55[_0x40473b];return _0x2079cc;},_0x4047(_0x534a2d,_0x15169f);}function _0x104b(){const _0x52d86d=['override','IUniverInstanceService','fill','_sharedOperations','LiveShareController','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','button','NOT_FOLLOWING','svg','subscribe','dispose$','Button','jsx','IUIPartsService','dispose','Disposable','stringify','_uiPartsService','params','stopFollowing','from','ICommandService','random','setConfig','registerComponent','sessionStatus$','div','_stopFollowing','idSuffix','event$','Stop\x20presenting','_commandDisposable','delete','find','2384108NPhjzq','_handleOffline','amd','attrs','IDLE','live-share.config','1034201PWCWXE','_collabSession','5nrImzV','touchDependencies','forwardRef','getStatus','get','trim','clsx','end','7429203QgqgLt','_stopPresenting','Present\x20this\x20document','Inject','You\x27are\x20offline.','throttleTime','_univerInstanceService','ONLINE','InsertSheetMutation','add','_unitID','presenting','useObservable','useState','Plugin','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','getLiveShareCoordinator','toString','_startFollowing','LiveShareCoordinator','current','OFFLINE','UniverProCollaboration','getMemberID','DesktopLiveShareController','assign','sheet','unsubscribe','unitId','@univerjs/ui','LiveShareIcon','716076ZeiBBs','string','LIVESHARE_REQUEST_HOST','currentColor','length','reverse','_reporters','Start\x20following','LiveShareStatus','SetWorksheetActiveOperation','UniverCollaborationClientPlugin','operations','0\x200\x2017\x2017','getCurrentTypeOfUnit$','entries','NEW_CHANGESETS','shouldShareOperation','data','getTypeOfUnitDisposed$','symbol','xlink:href','colorChannel1','_status$','FOLLOWING','clear','tag','_handleTerminate','createElement','includes','stopPresenting','1RMdYWR','defineProperty','_startLiveShareCoordinator','UniverDesign','_entities','idle','UniverUi','_fetchOperations','jsxs','path','executeCommand','following','getUnitId','Module','SetScrollOperation','CollaborationEvent','LiveShare','mergeOverrideWithDependencies','onRendered','_presenter','4059852TimTyx','Stop\x20following','default','children','LIVESHARE_NEW_HOST','_startPresenting','LIVESHARE_TERMINATE','toDisposable','_beIdle','connectInjector','presenter','_handleNewHost','UNIVER_UNKNOWN','@univerjs/sheets','React','complete','text','operators','UniverSheets','univerjs-icon\x20univerjs-icon-','registerSharedOperation','useEffect','_collabSessionService','onStarting','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','live-share-icon','BehaviorSubject','status$','map','http://www.w3.org/2000/svg','IConfigService','SessionStatus','tryStartPresenting','_mountLiveShare','pluginName','mask','parseProtocolChangeset','startFollowing','next','UniverProLiveShare','pipe','parse','LiveShareService','forEach','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','univer-size-4','DisposableCollection','HEADER_MENU','Start','defIds','LIVESHARE_OPERATION','onCommandExecuted','Injector','UNIVER_SHEET','rxjs','_config','_init','_status','not-following','react','has','2016060DMvMJv','offline','asObservable','Dropdown','3540232OUwfZZ','_commandService','registerInitialStateReporter','BuiltInUIPart','rxjs/operators','replace','useDependency','exports','getTypeOfUnitAdded$','takeUntil','UniverSheetsUi','UniverProCollaborationClient','displayName','send','_handleOnline','disposeWithMe','set','use','defs','CollaborationSessionService','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','_configService','react/jsx-runtime','getInitialStates','getLiveShareCoordinatorSync','DependentOn','then','url(#$1','Fragment','UniverInstanceType','_injector','UniverCore','type','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','SetZoomRatioOperation'];_0x104b=function(){return _0x52d86d;};return _0x104b();}
|
|
1
|
+
(function(_0x19d719,_0x5d290f){const _0x3730e4=_0x47ef,_0x2e6bb2=_0x19d719();while(!![]){try{const _0x289d24=-parseInt(_0x3730e4(0x196))/0x1+parseInt(_0x3730e4(0x216))/0x2*(-parseInt(_0x3730e4(0x22a))/0x3)+-parseInt(_0x3730e4(0x18b))/0x4*(-parseInt(_0x3730e4(0x232))/0x5)+-parseInt(_0x3730e4(0x225))/0x6*(parseInt(_0x3730e4(0x236))/0x7)+parseInt(_0x3730e4(0x1f4))/0x8+-parseInt(_0x3730e4(0x211))/0x9+parseInt(_0x3730e4(0x1a8))/0xa;if(_0x289d24===_0x5d290f)break;else _0x2e6bb2['push'](_0x2e6bb2['shift']());}catch(_0x209b8a){_0x2e6bb2['push'](_0x2e6bb2['shift']());}}}(_0x26b4,0x52001),function(_0x27a287,_0x3120ae){const _0x19f6b7=_0x47ef;typeof exports==_0x19f6b7(0x1f6)&&typeof module<'u'?_0x3120ae(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=='function'&&define[_0x19f6b7(0x176)]?define([_0x19f6b7(0x1cb),_0x19f6b7(0x1d9),_0x19f6b7(0x1e6),_0x19f6b7(0x188),'@univerjs/design',_0x19f6b7(0x22b),'@univerjs-pro/collaboration',_0x19f6b7(0x247),_0x19f6b7(0x1ce),'rxjs',_0x19f6b7(0x242),_0x19f6b7(0x17b)],_0x3120ae):(_0x27a287=typeof globalThis<'u'?globalThis:_0x27a287||self,_0x3120ae(_0x27a287[_0x19f6b7(0x173)]={},_0x27a287[_0x19f6b7(0x1c5)],_0x27a287[_0x19f6b7(0x233)],_0x27a287[_0x19f6b7(0x1bc)],_0x27a287[_0x19f6b7(0x195)],_0x27a287['React'],_0x27a287[_0x19f6b7(0x1cc)],_0x27a287[_0x19f6b7(0x191)],_0x27a287[_0x19f6b7(0x1b2)],_0x27a287[_0x19f6b7(0x1eb)],_0x27a287['rxjs']['operators'],_0x27a287['UniverSheetsUi']));}(this,function(_0x3a763e,_0xfc97e0,_0xe64119,_0x2acd25,_0x298fd8,_0x5b852e,_0x59fa7e,_0x9b511e,_0x556042,_0x11a066,_0x5cb3f2,_0x3b2393){'use strict';const _0x21175a=_0x47ef;var _0x4c4f8d=Object[_0x21175a(0x17f)],_0x19c515=(_0x324d74,_0x2326ee,_0x2edb36)=>_0x2326ee in _0x324d74?_0x4c4f8d(_0x324d74,_0x2326ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2edb36}):_0x324d74[_0x2326ee]=_0x2edb36,_0x433c9c=(_0x517f5b,_0x1ade79,_0x56a4a6)=>_0x19c515(_0x517f5b,typeof _0x1ade79!='symbol'?_0x1ade79+'':_0x1ade79,_0x56a4a6);function _0x567c41({ref:_0x3d9ed6,..._0x189bff}){const _0x19fda9=_0x21175a,{icon:_0xe40563,id:_0x48c7b0,className:_0x5c2dce,extend:_0x587b9b,..._0x10cd6e}=_0x189bff,_0x288ab9=(_0x19fda9(0x171)+_0x48c7b0+'\x20'+(_0x5c2dce||''))[_0x19fda9(0x1c0)](),_0x22e4b1=_0x5b852e[_0x19fda9(0x193)]('_'+_0x10563d());return _0x47ad59(_0xe40563,''+_0x48c7b0,{'defIds':_0xe40563['defIds'],'idSuffix':_0x22e4b1[_0x19fda9(0x237)]},{'ref':_0x3d9ed6,'className':_0x288ab9,..._0x10cd6e},_0x587b9b);}function _0x47ad59(_0x3d7025,_0x56d716,_0x5e0705,_0x80d146,_0x180f38){const _0x140338=_0x21175a;return _0x5b852e['createElement'](_0x3d7025[_0x140338(0x190)],{'key':_0x56d716,..._0x6d1148(_0x3d7025,_0x5e0705,_0x180f38),..._0x80d146},(_0x3f41e8(_0x3d7025,_0x5e0705)['children']||[])['map']((_0x58a369,_0x326a81)=>_0x47ad59(_0x58a369,_0x56d716+'-'+_0x3d7025[_0x140338(0x190)]+'-'+_0x326a81,_0x5e0705,void 0x0,_0x180f38)));}function _0x6d1148(_0x38819e,_0x2b5ec2,_0xa54cac){const _0x1a0a76=_0x21175a,_0x2b58b={..._0x38819e[_0x1a0a76(0x186)]};_0xa54cac!=null&&_0xa54cac['colorChannel1']&&_0x2b58b['fill']===_0x1a0a76(0x1a0)&&(_0x2b58b[_0x1a0a76(0x1df)]=_0xa54cac['colorChannel1']),_0x38819e['tag']===_0x1a0a76(0x1ff)&&_0x2b58b['id']&&(_0x2b58b['id']=_0x2b58b['id']+_0x2b5ec2[_0x1a0a76(0x1f9)]),Object[_0x1a0a76(0x1f3)](_0x2b58b)[_0x1a0a76(0x213)](([_0x76aeef,_0x122604])=>{const _0x21d4fd=_0x1a0a76;_0x76aeef==='mask'&&typeof _0x122604==_0x21d4fd(0x24a)&&(_0x2b58b[_0x76aeef]=_0x122604[_0x21d4fd(0x19d)](/url\(#(.*)\)/,'url(#$1'+_0x2b5ec2[_0x21d4fd(0x1f9)]+')'));});const {defIds:_0x3123d1}=_0x2b5ec2;return!_0x3123d1||_0x3123d1[_0x1a0a76(0x1e9)]===0x0||(_0x38819e['tag']===_0x1a0a76(0x181)&&_0x2b58b['xlink:href']&&(_0x2b58b[_0x1a0a76(0x234)]=_0x2b58b[_0x1a0a76(0x234)]+_0x2b5ec2['idSuffix']),Object[_0x1a0a76(0x1f3)](_0x2b58b)[_0x1a0a76(0x213)](([_0x37477a,_0xe886c6])=>{const _0x1075f2=_0x1a0a76;typeof _0xe886c6==_0x1075f2(0x24a)&&(_0x2b58b[_0x37477a]=_0xe886c6[_0x1075f2(0x19d)](/url\(#(.*)\)/,_0x1075f2(0x229)+_0x2b5ec2[_0x1075f2(0x1f9)]+')'));})),_0x2b58b;}function _0x3f41e8(_0xcaa913,_0x44b122){const _0x19e17e=_0x21175a;var _0x680046;const {defIds:_0x4d1a2c}=_0x44b122;return!_0x4d1a2c||_0x4d1a2c[_0x19e17e(0x1e9)]===0x0?_0xcaa913:_0xcaa913['tag']===_0x19e17e(0x1b0)&&((_0x680046=_0xcaa913[_0x19e17e(0x203)])!=null&&_0x680046[_0x19e17e(0x1e9)])?{..._0xcaa913,'children':_0xcaa913[_0x19e17e(0x203)]['map'](_0x42263a=>typeof _0x42263a[_0x19e17e(0x186)]['id']==_0x19e17e(0x24a)&&_0x4d1a2c&&_0x4d1a2c[_0x19e17e(0x1cf)](_0x42263a[_0x19e17e(0x186)]['id'])?{..._0x42263a,'attrs':{..._0x42263a[_0x19e17e(0x186)],'id':_0x42263a[_0x19e17e(0x186)]['id']+_0x44b122[_0x19e17e(0x1f9)]}}:_0x42263a)}:_0xcaa913;}function _0x10563d(){const _0x4ce5a1=_0x21175a;return Math[_0x4ce5a1(0x1c2)]()[_0x4ce5a1(0x17c)](0x24)[_0x4ce5a1(0x24f)](0x2,0x8);}_0x567c41[_0x21175a(0x1e2)]=_0x21175a(0x207);const _0x1515de={'tag':_0x21175a(0x221),'attrs':{'xmlns':_0x21175a(0x24b),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x21175a(0x217)},'children':[{'tag':_0x21175a(0x23c),'attrs':{'fill':'currentColor','d':_0x21175a(0x17a)}},{'tag':_0x21175a(0x23c),'attrs':{'fill':'currentColor','d':_0x21175a(0x177),'fillRule':_0x21175a(0x187),'clipRule':_0x21175a(0x187)}}]},_0x3a3b5b=_0x5b852e[_0x21175a(0x223)](function(_0x56dae6,_0x2a072d){const _0x28e574=_0x21175a;return _0x5b852e['createElement'](_0x567c41,Object[_0x28e574(0x251)]({},_0x56dae6,{'id':_0x28e574(0x23f),'ref':_0x2a072d,'icon':_0x1515de}));});_0x3a3b5b[_0x21175a(0x1e2)]=_0x21175a(0x21a);class _0x53932d extends _0xfc97e0[_0x21175a(0x18a)]{constructor(){const _0x5478b6=_0x21175a;super(...arguments),_0x433c9c(this,_0x5478b6(0x19c),new Set()),_0x433c9c(this,'_reporters',new Set());}[_0x21175a(0x1da)](_0x31bdb0){const _0x2cfd11=_0x21175a;return this['_sharedOperations'][_0x2cfd11(0x1a3)](_0x31bdb0),_0xfc97e0['toDisposable'](()=>this['_sharedOperations'][_0x2cfd11(0x1af)](_0x31bdb0));}['registerInitialStateReporter'](_0x4d4b30){const _0x3f58a1=_0x21175a;return this[_0x3f58a1(0x214)][_0x3f58a1(0x1a3)](_0x4d4b30),_0xfc97e0[_0x3f58a1(0x1de)](()=>this['_reporters'][_0x3f58a1(0x1af)](_0x4d4b30));}['shouldShareOperation'](_0x3fd05e){const _0x211732=_0x21175a;return this[_0x211732(0x19c)]['has'](_0x3fd05e);}['getInitialStates'](_0x518f60){const _0x45431d=_0x21175a;return Array['from'](this[_0x45431d(0x214)])['map'](_0x311da8=>_0x311da8(_0x518f60));}}var _0x17dfa2=Object[_0x21175a(0x180)],_0x24169a=(_0x273672,_0x1a8bb9,_0x366d45,_0x493aea)=>{const _0x6ef660=_0x21175a;for(var _0x511077=_0x493aea>0x1?void 0x0:_0x493aea?_0x17dfa2(_0x1a8bb9,_0x366d45):_0x1a8bb9,_0x17510a=_0x273672[_0x6ef660(0x1e9)]-0x1,_0x5b1500;_0x17510a>=0x0;_0x17510a--)(_0x5b1500=_0x273672[_0x17510a])&&(_0x511077=_0x5b1500(_0x511077)||_0x511077);return _0x511077;},_0x519b08=(_0x36e360,_0x2e23d)=>(_0x192efc,_0x5ec57a)=>_0x2e23d(_0x192efc,_0x5ec57a,_0x36e360);_0x3a763e[_0x21175a(0x1ec)]=class extends _0xfc97e0[_0x21175a(0x189)]{constructor(_0xffd881,_0x5b999d,_0x5b533b){const _0x8ef10b=_0x21175a;super(),_0x433c9c(this,_0x8ef10b(0x200),new Map()),(this[_0x8ef10b(0x206)]=_0xffd881,this[_0x8ef10b(0x22f)]=_0x5b999d,this[_0x8ef10b(0x253)]=_0x5b533b,this[_0x8ef10b(0x1ee)]());}async['getLiveShareCoordinator'](_0x6f3134){const _0x422550=_0x21175a;return this[_0x422550(0x200)][_0x422550(0x1ad)](_0x6f3134)||await this[_0x422550(0x1ac)](_0x6f3134),this[_0x422550(0x200)]['get'](_0x6f3134);}[_0x21175a(0x219)](_0x5be848){const _0x3f77ba=_0x21175a;var _0xf47232;return(_0xf47232=this['_entities'][_0x3f77ba(0x210)](_0x5be848))!=null?_0xf47232:null;}[_0x21175a(0x1ee)](){const _0x4d3007=_0x21175a;this[_0x4d3007(0x206)]['getTypeOfUnitAdded$'](_0xfc97e0['UniverInstanceType']['UNIVER_SHEET'])[_0x4d3007(0x1d4)](_0x5cb3f2['takeUntil'](this[_0x4d3007(0x1c6)]))['subscribe'](async _0x459e6f=>{const _0xc7039e=_0x4d3007,_0x4d8ce3=_0x459e6f[_0xc7039e(0x224)]();this['_entities'][_0xc7039e(0x1ad)](_0x4d8ce3)||this[_0xc7039e(0x1ac)](_0x4d8ce3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xfc97e0[_0x4d3007(0x1cd)][_0x4d3007(0x228)])[_0x4d3007(0x1d4)](_0x5cb3f2[_0x4d3007(0x246)](this[_0x4d3007(0x1c6)]))[_0x4d3007(0x1f5)](_0x1aa985=>{const _0x342c25=_0x4d3007,_0x68eee4=_0x1aa985[_0x342c25(0x224)](),_0x1c0191=this[_0x342c25(0x200)][_0x342c25(0x210)](_0x68eee4);_0x1c0191==null||_0x1c0191[_0x342c25(0x1a5)]();});}async[_0x21175a(0x1ac)](_0xacbc8d){const _0x54d5ae=_0x21175a,_0x169ebb=await this['_collabSessionService'][_0x54d5ae(0x1fc)](_0xacbc8d),_0x76e0bc=this[_0x54d5ae(0x22f)][_0x54d5ae(0x1f1)](_0x3a763e[_0x54d5ae(0x238)],_0xacbc8d,_0x169ebb);return _0x76e0bc[_0x54d5ae(0x17e)](),this['_entities'][_0x54d5ae(0x1dd)](_0xacbc8d,_0x76e0bc),_0x76e0bc;}},_0x3a763e[_0x21175a(0x1ec)]=_0x24169a([_0x519b08(0x0,_0xfc97e0['IUniverInstanceService']),_0x519b08(0x1,_0xfc97e0[_0x21175a(0x194)](_0xfc97e0['Injector'])),_0x519b08(0x2,_0xfc97e0[_0x21175a(0x194)](_0x9b511e['CollaborationSessionService']))],_0x3a763e[_0x21175a(0x1ec)]);var _0x14dadf=(_0x59b544=>(_0x59b544['OFFLINE']=_0x21175a(0x170),_0x59b544[_0x21175a(0x1a1)]=_0x21175a(0x19e),_0x59b544[_0x21175a(0x249)]=_0x21175a(0x19f),_0x59b544[_0x21175a(0x1a7)]=_0x21175a(0x22c),_0x59b544[_0x21175a(0x227)]=_0x21175a(0x1c4),_0x59b544))(_0x14dadf||{});const _0x14d7c1=_0x21175a(0x1d0),_0x5491b0=0xc8;_0x3a763e[_0x21175a(0x238)]=class extends _0xfc97e0[_0x21175a(0x189)]{constructor(_0x41fed7,_0x1602fe,_0x16340f,_0x1f4b14,_0x1f8a75){const _0x217292=_0x21175a;super(),_0x433c9c(this,'_status$',new _0x11a066['BehaviorSubject']('idle')),_0x433c9c(this,'status$',this[_0x217292(0x1c9)][_0x217292(0x18e)]()),_0x433c9c(this,_0x217292(0x1ee),!0x1),_0x433c9c(this,'_commandDisposable',null),_0x433c9c(this,'_presenter',null),(this[_0x217292(0x1bd)]=_0x41fed7,this['_collabSession']=_0x1602fe,this[_0x217292(0x1b1)]=_0x16340f,this[_0x217292(0x20f)]=_0x1f4b14,this[_0x217292(0x239)]=_0x1f8a75);}get[_0x21175a(0x20a)](){const _0xa0ebbf=_0x21175a;return this[_0xa0ebbf(0x1c9)][_0xa0ebbf(0x23b)]();}[_0x21175a(0x1a5)](){const _0x3bd5ae=_0x21175a;var _0x4e85af;(_0x4e85af=this[_0x3bd5ae(0x172)])==null||_0x4e85af[_0x3bd5ae(0x1a5)](),this[_0x3bd5ae(0x1c9)]['next'](_0x3bd5ae(0x19e)),this[_0x3bd5ae(0x1c9)][_0x3bd5ae(0x178)]();}['getStatus'](){return this['_status'];}['init'](){const _0x3af1f1=_0x21175a;this[_0x3af1f1(0x1ee)]||(this[_0x3af1f1(0x1ee)]=!0x0,this[_0x3af1f1(0x19a)]['sessionStatus$']['pipe'](_0x5cb3f2[_0x3af1f1(0x246)](this[_0x3af1f1(0x1c6)]))[_0x3af1f1(0x1f5)](_0xd2d122=>{const _0x49f5d0=_0x3af1f1;switch(_0xd2d122){case _0x9b511e[_0x49f5d0(0x1a6)]['OFFLINE']:this[_0x49f5d0(0x226)]();break;case _0x9b511e[_0x49f5d0(0x1a6)]['ONLINE']:this[_0x49f5d0(0x1f0)]();break;}}),this['_collabSession'][_0x3af1f1(0x1d5)][_0x3af1f1(0x1d4)](_0x5cb3f2[_0x3af1f1(0x246)](this['dispose$']))['subscribe'](_0x35fe2b=>{const _0x35b5b4=_0x3af1f1,{eventID:_0x34a456}=_0x35fe2b;switch(_0x34a456){case _0x59fa7e[_0x35b5b4(0x1c7)]['LIVESHARE_NEW_HOST']:this[_0x35b5b4(0x1e5)](_0x35fe2b);break;case _0x59fa7e['CollaborationEvent'][_0x35b5b4(0x18d)]:this[_0x35b5b4(0x185)](_0x35fe2b);break;case _0x59fa7e[_0x35b5b4(0x1c7)]['LIVESHARE_TERMINATE']:this[_0x35b5b4(0x1d8)]();break;case _0x59fa7e['CollaborationEvent'][_0x35b5b4(0x1dc)]:this['_handleNewChangeSets'](_0x35fe2b);break;}}));}['tryStartPresenting'](){const _0x1f9ff1=_0x21175a;this[_0x1f9ff1(0x19a)][_0x1f9ff1(0x1b3)]({'eventID':_0x59fa7e[_0x1f9ff1(0x1c7)][_0x1f9ff1(0x248)],'data':{'unitID':this[_0x1f9ff1(0x1bd)],'userID':this[_0x1f9ff1(0x19a)][_0x1f9ff1(0x175)]()}},this[_0x1f9ff1(0x1bd)]);}['stopPresenting'](){const _0x29e0d7=_0x21175a;this['_status']===_0x29e0d7(0x1c4)&&(this['_status$'][_0x29e0d7(0x182)](_0x29e0d7(0x19e)),this[_0x29e0d7(0x19a)][_0x29e0d7(0x1b3)]({'eventID':_0x59fa7e[_0x29e0d7(0x1c7)][_0x29e0d7(0x1fd)],'data':{'unitID':this[_0x29e0d7(0x1bd)]}},this[_0x29e0d7(0x1bd)]));}[_0x21175a(0x218)](){const _0x17139d=_0x21175a;this[_0x17139d(0x20a)]===_0x17139d(0x22c)&&(this[_0x17139d(0x1c9)][_0x17139d(0x182)](_0x17139d(0x19f)),this[_0x17139d(0x1d6)]());}['stopFollowing'](){const _0x578eb3=_0x21175a;this[_0x578eb3(0x20a)]===_0x578eb3(0x19f)&&this[_0x578eb3(0x1ab)]();}[_0x21175a(0x1e5)](_0x24965e){const _0x1363b1=_0x21175a,{presenter:_0x7af873}=_0x24965e[_0x1363b1(0x21d)],_0x3108ed=this[_0x1363b1(0x19a)][_0x1363b1(0x175)]();this['_presenter']=_0x7af873,_0x7af873===_0x3108ed?(this['_stopFollowing'](),this[_0x1363b1(0x1ef)]()):this['_status']!=='not-following'&&(this[_0x1363b1(0x199)](),this[_0x1363b1(0x1d6)]());}[_0x21175a(0x201)](){const _0x437acb=_0x21175a,_0x3e83e8={'eventID':_0x59fa7e[_0x437acb(0x1c7)][_0x437acb(0x1f2)]};this[_0x437acb(0x19a)][_0x437acb(0x1b3)](_0x3e83e8,this['_unitID']);}[_0x21175a(0x1d8)](){const _0x5af215=_0x21175a;this[_0x5af215(0x1d2)]=null,this[_0x5af215(0x20a)]!==_0x5af215(0x1c4)&&this[_0x5af215(0x1ca)]();}['_handleNewChangeSets'](_0x2a0c75){const _0x3d48ad=_0x21175a;if(this[_0x3d48ad(0x20a)]===_0x3d48ad(0x19f)&&this['_presenter']===_0x2a0c75[_0x3d48ad(0x21d)][_0x3d48ad(0x231)]){const _0x574e7b=_0x59fa7e[_0x3d48ad(0x1d1)](_0x2a0c75[_0x3d48ad(0x21d)])[_0x3d48ad(0x1d7)][_0x3d48ad(0x198)]()[_0x3d48ad(0x1a9)](_0x202048=>_0x202048['id']===_0x556042[_0x3d48ad(0x23d)]['id']);if(_0x574e7b){const _0x5daebf=_0x574e7b['params'][_0x3d48ad(0x202)],_0x1e525f=_0x574e7b['params']['sheet']['id'];setTimeout(()=>{const _0x3eebe8=_0x3d48ad;this[_0x3eebe8(0x239)][_0x3eebe8(0x179)](_0x556042[_0x3eebe8(0x244)]['id'],{'unitId':_0x5daebf,'subUnitId':_0x1e525f},{'fromCollab':!0x0});});}}}[_0x21175a(0x1ef)](){const _0x5b5385=_0x21175a;this[_0x5b5385(0x1c9)]['next']('presenting');const _0x168531=new Map(),_0x466877=this[_0x5b5385(0x172)]=new _0xfc97e0[(_0x5b5385(0x250))]();_0x466877[_0x5b5385(0x1a3)](_0xfc97e0[_0x5b5385(0x1de)](()=>{const _0x4e80bc=_0x5b5385;_0x168531['forEach'](_0x292b4d=>_0x292b4d[_0x4e80bc(0x178)]()),_0x168531['clear']();})),_0x466877[_0x5b5385(0x1a3)](this['_commandService'][_0x5b5385(0x21e)](_0x2ec185=>{const _0x63e726=_0x5b5385;var _0x5caefe;if(_0x2ec185[_0x63e726(0x1fb)]!==_0xfc97e0[_0x63e726(0x1b8)][_0x63e726(0x220)]||!this[_0x63e726(0x20f)][_0x63e726(0x21c)](_0x2ec185['id']))return;const {id:_0x23b62b}=_0x2ec185;let _0x414c9c;_0x168531[_0x63e726(0x1ad)](_0x23b62b)?_0x414c9c=_0x168531[_0x63e726(0x210)](_0x23b62b):(_0x414c9c=new _0x11a066[(_0x63e726(0x205))](),_0x168531[_0x63e726(0x1dd)](_0x23b62b,_0x414c9c),_0x414c9c['pipe'](_0x5cb3f2[_0x63e726(0x1db)]((_0x5caefe=this['_configService'][_0x63e726(0x24c)](_0x14d7c1))!=null?_0x5caefe:_0x5491b0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x63e726(0x1f5)](_0x36149a=>{const _0x258c2b=_0x63e726;this[_0x258c2b(0x19a)]['send']({'eventID':_0x59fa7e[_0x258c2b(0x1c7)][_0x258c2b(0x18d)],'data':{'unitID':this['_unitID'],'operations':{[_0x36149a['id']]:{'id':_0x36149a['id'],'params':JSON[_0x258c2b(0x230)](_0x36149a[_0x258c2b(0x1e8)])}}}},this[_0x258c2b(0x1bd)]);})),_0x414c9c[_0x63e726(0x182)](_0x2ec185);})),this['_liveShareService'][_0x5b5385(0x1aa)](this[_0x5b5385(0x1bd)])['forEach'](_0x1c7528=>this[_0x5b5385(0x19a)]['send']({'eventID':_0x59fa7e[_0x5b5385(0x1c7)][_0x5b5385(0x18d)],'data':{'unitID':this[_0x5b5385(0x1bd)],'operations':{[_0x1c7528['id']]:{'id':_0x1c7528['id'],'params':JSON[_0x5b5385(0x230)](_0x1c7528[_0x5b5385(0x1e8)])}}}},this[_0x5b5385(0x1bd)]));}['_stopPresenting'](){const _0x32d494=_0x21175a;var _0x497b08;this['_status$'][_0x32d494(0x182)](_0x32d494(0x19e)),(_0x497b08=this[_0x32d494(0x172)])==null||_0x497b08[_0x32d494(0x1a5)](),this[_0x32d494(0x172)]=null;}[_0x21175a(0x1d6)](){const _0x5e5e84=_0x21175a;var _0x2fe5e2;(_0x2fe5e2=this[_0x5e5e84(0x172)])==null||_0x2fe5e2['dispose'](),this[_0x5e5e84(0x1c9)][_0x5e5e84(0x182)](_0x5e5e84(0x19f));}[_0x21175a(0x1ca)](){const _0x4aaf8b=_0x21175a;var _0x8d259;this['_status$'][_0x4aaf8b(0x182)]('idle'),(_0x8d259=this['_commandDisposable'])==null||_0x8d259[_0x4aaf8b(0x1a5)](),this[_0x4aaf8b(0x172)]=null;}[_0x21175a(0x1ab)](){const _0x33254c=_0x21175a;var _0x3418f0;this[_0x33254c(0x1c9)]['next'](_0x33254c(0x22c)),(_0x3418f0=this[_0x33254c(0x172)])==null||_0x3418f0['dispose']();}[_0x21175a(0x185)](_0x1df391){const _0x15c346=_0x21175a;if([_0x15c346(0x1c4),_0x15c346(0x22c),_0x15c346(0x170)]['includes'](this[_0x15c346(0x20a)])||!_0x1df391[_0x15c346(0x21d)][_0x15c346(0x24d)]||_0x1df391['data'][_0x15c346(0x24d)]===this[_0x15c346(0x19a)][_0x15c346(0x175)]())return;this[_0x15c346(0x20a)]==='idle'&&this[_0x15c346(0x1d6)]();const _0xbacbce=_0x1df391[_0x15c346(0x21d)][_0x15c346(0x1bb)];Object[_0x15c346(0x23e)](_0xbacbce)[_0x15c346(0x213)](_0x121e56=>{const _0x5db96f=_0x15c346;this[_0x5db96f(0x239)][_0x5db96f(0x179)](_0x121e56['id'],_0x121e56[_0x5db96f(0x1e8)]?JSON[_0x5db96f(0x1b7)](_0x121e56[_0x5db96f(0x1e8)]):null,{'fromCollab':!0x0});});}[_0x21175a(0x226)](){const _0x12ca04=_0x21175a;var _0x448f4a;this[_0x12ca04(0x1c9)][_0x12ca04(0x182)](_0x12ca04(0x170)),(_0x448f4a=this['_commandDisposable'])==null||_0x448f4a['dispose']();}[_0x21175a(0x1f0)](){const _0x1234b7=_0x21175a;this['_status$'][_0x1234b7(0x182)](_0x1234b7(0x19e)),this['_fetchOperations']();}},_0x3a763e[_0x21175a(0x238)]=_0x24169a([_0x519b08(0x2,_0xfc97e0[_0x21175a(0x1a2)]),_0x519b08(0x3,_0xfc97e0[_0x21175a(0x194)](_0x53932d)),_0x519b08(0x4,_0xfc97e0['ICommandService'])],_0x3a763e['LiveShareCoordinator']);function _0x32fa9c(){const _0x1f2fa7=_0x21175a,_0x39e6a7=_0xe64119[_0x1f2fa7(0x20e)](_0x3a763e[_0x1f2fa7(0x1ec)]),_0x34382a=_0xe64119[_0x1f2fa7(0x20e)](_0xfc97e0[_0x1f2fa7(0x1e1)]),_0x21b663=_0xe64119['useObservable'](()=>_0x34382a[_0x1f2fa7(0x1f7)](_0xfc97e0[_0x1f2fa7(0x1cd)][_0x1f2fa7(0x228)]),void 0x0,!0x1,[]),[_0x317132,_0x106396]=_0x5b852e['useState'](null),[_0x4af090,_0x3d8fab]=_0x5b852e[_0x1f2fa7(0x1b4)](_0x14dadf[_0x1f2fa7(0x1a1)]),_0x2c2248=_0x5b852e[_0x1f2fa7(0x193)](null);return _0x5b852e[_0x1f2fa7(0x1be)](()=>(_0x21b663&&_0x39e6a7[_0x1f2fa7(0x1c3)](_0x21b663[_0x1f2fa7(0x224)]())[_0x1f2fa7(0x1e0)](_0x44e9e7=>{const _0x2ec4d9=_0x1f2fa7;_0x106396(_0x44e9e7),_0x2c2248['current']=_0x44e9e7[_0x2ec4d9(0x1c8)]['subscribe'](_0xa9dcf2=>{_0x3d8fab(_0xa9dcf2);});}),()=>{const _0x52439f=_0x1f2fa7;var _0x175a03;(_0x175a03=_0x2c2248[_0x52439f(0x237)])==null||_0x175a03[_0x52439f(0x209)](),_0x2c2248[_0x52439f(0x237)]=null;}),[_0x21b663,_0x39e6a7]),_0x317132?_0x2acd25['jsx'](_0x298fd8['Dropdown'],{'align':'end','disabled':_0x4af090===_0x14dadf['OFFLINE'],'className':_0x1f2fa7(0x1d3),'overlay':_0x2acd25[_0x1f2fa7(0x20b)](_0x5d3a44,{'status':_0x4af090,'coordinator':_0x317132}),'children':_0x2acd25['jsx'](_0x1f2fa7(0x1a4),{'className':_0x298fd8[_0x1f2fa7(0x1ed)](_0x1f2fa7(0x1e4),{'univer-cursor-not-allowed':_0x4af090===_0x14dadf[_0x1f2fa7(0x1b6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4af090!==_0x14dadf[_0x1f2fa7(0x1b6)]}),'type':_0x1f2fa7(0x1a4),'children':_0x2acd25[_0x1f2fa7(0x20b)](_0x3a3b5b,{'className':_0x1f2fa7(0x184)})})}):null;}function _0x5d3a44(_0x1b6045){const _0x11e1bc=_0x21175a,{status:_0x1df624,coordinator:_0xc0f77a}=_0x1b6045;switch(_0x1df624){case _0x14dadf[_0x11e1bc(0x1a1)]:return _0x2acd25[_0x11e1bc(0x20b)](_0x4c2354,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x249)]:return _0x2acd25[_0x11e1bc(0x20b)](_0x16a37e,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x1a7)]:return _0x2acd25['jsx'](_0x196fd8,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x1b6)]:return _0x2acd25['jsx'](_0x44957f,{});case _0x14dadf['PRESENTING']:return _0x2acd25[_0x11e1bc(0x20b)](_0x2a4598,{'coordinator':_0xc0f77a});default:return null;}}function _0x4c2354(_0x270b87){const _0xf65522=_0x21175a,{coordinator:_0x2f2cb0}=_0x270b87;return _0x2acd25[_0xf65522(0x192)](_0x2acd25['Fragment'],{'children':[_0x2acd25['jsx'](_0xf65522(0x21b),{'className':_0xf65522(0x243),'children':_0xf65522(0x1f8)}),_0x2acd25[_0xf65522(0x20b)](_0x298fd8[_0xf65522(0x1bf)],{'onClick':()=>_0x2f2cb0[_0xf65522(0x20c)](),'children':_0xf65522(0x1ea)})]});}function _0x16a37e(_0x78e6a7){const _0x478b11=_0x21175a,{coordinator:_0x3b8352}=_0x78e6a7;return _0x2acd25[_0x478b11(0x192)](_0x2acd25[_0x478b11(0x215)],{'children':[_0x2acd25['jsx'](_0x478b11(0x21b),{'className':_0x478b11(0x243),'children':_0x478b11(0x20d)}),_0x2acd25['jsx'](_0x298fd8[_0x478b11(0x1bf)],{'onClick':()=>_0x3b8352[_0x478b11(0x208)](),'children':'Stop\x20following'})]});}function _0x196fd8(_0x7ef329){const _0x2b455a=_0x21175a,{coordinator:_0x2fd0d1}=_0x7ef329;return _0x2acd25[_0x2b455a(0x192)](_0x2acd25[_0x2b455a(0x215)],{'children':[_0x2acd25[_0x2b455a(0x20b)](_0x2b455a(0x21b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b455a(0x1e3)}),_0x2acd25['jsx'](_0x298fd8[_0x2b455a(0x1bf)],{'variant':_0x2b455a(0x1e7),'onClick':()=>_0x2fd0d1[_0x2b455a(0x218)](),'children':_0x2b455a(0x241)})]});}function _0x2a4598(_0x3ee9e5){const _0x4f1f3b=_0x21175a,{coordinator:_0x300b49}=_0x3ee9e5;return _0x2acd25[_0x4f1f3b(0x192)](_0x2acd25[_0x4f1f3b(0x215)],{'children':[_0x2acd25[_0x4f1f3b(0x20b)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2acd25['jsx'](_0x298fd8[_0x4f1f3b(0x1bf)],{'variant':_0x4f1f3b(0x1c1),'onClick':()=>_0x300b49[_0x4f1f3b(0x197)](),'children':_0x4f1f3b(0x174)})]});}function _0x44957f(){const _0x205d29=_0x21175a;return _0x2acd25[_0x205d29(0x20b)](_0x2acd25[_0x205d29(0x215)],{'children':_0x205d29(0x24e)});}var _0x2cdd3c=Object[_0x21175a(0x180)],_0xfe6bbe=(_0x3d85c3,_0x2dbf08,_0x5ba92c,_0x22e224)=>{for(var _0x11c51=_0x22e224>0x1?void 0x0:_0x22e224?_0x2cdd3c(_0x2dbf08,_0x5ba92c):_0x2dbf08,_0x416857=_0x3d85c3['length']-0x1,_0x3cc7b8;_0x416857>=0x0;_0x416857--)(_0x3cc7b8=_0x3d85c3[_0x416857])&&(_0x11c51=_0x3cc7b8(_0x11c51)||_0x11c51);return _0x11c51;},_0x5b4789=(_0x1586b9,_0x2618ea)=>(_0x597079,_0x4f66b1)=>_0x2618ea(_0x597079,_0x4f66b1,_0x1586b9);_0x3a763e['DesktopLiveShareController']=class extends _0xfc97e0['Disposable']{constructor(_0x2bcb2b,_0x33f49d){const _0x41e77d=_0x21175a;super(),this[_0x41e77d(0x22f)]=_0x2bcb2b,this[_0x41e77d(0x1ba)]=_0x33f49d,this[_0x41e77d(0x1ae)]();}['_mountLiveShare'](){const _0x2b3687=_0x21175a;this[_0x2b3687(0x235)](this[_0x2b3687(0x1ba)]['registerComponent'](_0xe64119['BuiltInUIPart']['HEADER_MENU'],()=>_0xe64119['connectInjector'](_0x32fa9c,this[_0x2b3687(0x22f)])));}},_0x3a763e['DesktopLiveShareController']=_0xfe6bbe([_0x5b4789(0x0,_0xfc97e0['Inject'](_0xfc97e0[_0x21175a(0x17d)])),_0x5b4789(0x1,_0xe64119['IUIPartsService'])],_0x3a763e[_0x21175a(0x245)]);const _0x8419cb=_0x21175a(0x1fa),_0x27eeb2={};var _0x457ff9=Object['getOwnPropertyDescriptor'],_0x54bd23=(_0x55e491,_0x450b91,_0x1301c5,_0x42c7da)=>{const _0x2ea87e=_0x21175a;for(var _0xb7d893=_0x42c7da>0x1?void 0x0:_0x42c7da?_0x457ff9(_0x450b91,_0x1301c5):_0x450b91,_0x29e2d4=_0x55e491[_0x2ea87e(0x1e9)]-0x1,_0x521310;_0x29e2d4>=0x0;_0x29e2d4--)(_0x521310=_0x55e491[_0x29e2d4])&&(_0xb7d893=_0x521310(_0xb7d893)||_0xb7d893);return _0xb7d893;},_0x457df4=(_0x2f2517,_0x592ef3)=>(_0x2a030a,_0x37c1b5)=>_0x592ef3(_0x2a030a,_0x37c1b5,_0x2f2517);let _0x391243=class extends _0xfc97e0['Disposable']{constructor(_0x4be182){const _0x4e129a=_0x21175a;super(),this[_0x4e129a(0x20f)]=_0x4be182,this['_init']();}[_0x21175a(0x1ee)](){const _0x2b0cba=_0x21175a;[_0x3b2393[_0x2b0cba(0x252)]['id'],_0x3b2393[_0x2b0cba(0x212)]['id'],_0x556042[_0x2b0cba(0x244)]['id']][_0x2b0cba(0x213)](_0xee663f=>{const _0x114bbe=_0x2b0cba;this[_0x114bbe(0x235)](this[_0x114bbe(0x20f)][_0x114bbe(0x1da)](_0xee663f));});}};_0x391243=_0x54bd23([_0x457df4(0x0,_0xfc97e0['Inject'](_0x53932d))],_0x391243);var _0x500b4b=Object[_0x21175a(0x17f)],_0x809dc9=Object[_0x21175a(0x180)],_0x57f766=(_0x114b7c,_0x4eb9e1,_0x184523)=>_0x4eb9e1 in _0x114b7c?_0x500b4b(_0x114b7c,_0x4eb9e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x184523}):_0x114b7c[_0x4eb9e1]=_0x184523,_0x32e17a=(_0x28558d,_0x2d6575,_0x5ce542,_0x4eb667)=>{const _0x5e8c9f=_0x21175a;for(var _0x331600=_0x4eb667>0x1?void 0x0:_0x4eb667?_0x809dc9(_0x2d6575,_0x5ce542):_0x2d6575,_0x477cc8=_0x28558d[_0x5e8c9f(0x1e9)]-0x1,_0x448d87;_0x477cc8>=0x0;_0x477cc8--)(_0x448d87=_0x28558d[_0x477cc8])&&(_0x331600=_0x448d87(_0x331600)||_0x331600);return _0x331600;},_0x594318=(_0x1eb308,_0x414167)=>(_0x14f55a,_0x517bf9)=>_0x414167(_0x14f55a,_0x517bf9,_0x1eb308),_0x5867bd=(_0x362bb6,_0x306d91,_0x1a9911)=>_0x57f766(_0x362bb6,typeof _0x306d91!=_0x21175a(0x1fe)?_0x306d91+'':_0x306d91,_0x1a9911);const _0x4adeec='UNIVER_LIVE_SHARE_PLUGIN';_0x3a763e[_0x21175a(0x222)]=class extends _0xfc97e0[_0x21175a(0x21f)]{constructor(_0x5e8aeb=_0x27eeb2,_0x3a68bc,_0x2ae63b){const _0x357526=_0x21175a;super(),this[_0x357526(0x1b5)]=_0x5e8aeb,this['_injector']=_0x3a68bc,this[_0x357526(0x1b1)]=_0x2ae63b;const {..._0x201ed7}=_0xfc97e0[_0x357526(0x22e)]({},_0x27eeb2,this[_0x357526(0x1b5)]);this['_configService']['setConfig'](_0x8419cb,_0x201ed7);}['onStarting'](){const _0x2655e3=_0x21175a;_0xfc97e0[_0x2655e3(0x18f)](this[_0x2655e3(0x22f)],_0xfc97e0[_0x2655e3(0x183)]([[_0x53932d],[_0x3a763e[_0x2655e3(0x1ec)]],[_0x391243],[_0x3a763e[_0x2655e3(0x245)]]],this[_0x2655e3(0x1b5)][_0x2655e3(0x22d)])),_0xfc97e0[_0x2655e3(0x1b9)](this[_0x2655e3(0x22f)],[[_0x391243]]);}[_0x21175a(0x23a)](){const _0x480aa2=_0x21175a;_0xfc97e0['touchDependencies'](this[_0x480aa2(0x22f)],[[_0x3a763e[_0x480aa2(0x245)]]]);}},_0x5867bd(_0x3a763e['UniverLiveSharePlugin'],_0x21175a(0x1fb),_0xfc97e0[_0x21175a(0x1cd)][_0x21175a(0x240)]),_0x5867bd(_0x3a763e['UniverLiveSharePlugin'],'pluginName',_0x4adeec),_0x3a763e[_0x21175a(0x222)]=_0x32e17a([_0xfc97e0['DependentOn'](_0x9b511e[_0x21175a(0x18c)]),_0x594318(0x1,_0xfc97e0[_0x21175a(0x194)](_0xfc97e0[_0x21175a(0x17d)])),_0x594318(0x2,_0xfc97e0[_0x21175a(0x1a2)])],_0x3a763e['UniverLiveSharePlugin']),_0x3a763e['LiveShare']=_0x32fa9c,_0x3a763e['LiveShareService']=_0x53932d,_0x3a763e[_0x21175a(0x19b)]=_0x14dadf,Object[_0x21175a(0x17f)](_0x3a763e,Symbol['toStringTag'],{'value':_0x21175a(0x204)});}));function _0x47ef(_0xdab002,_0x584905){const _0x26b4c4=_0x26b4();return _0x47ef=function(_0x47ef90,_0x3e2c7d){_0x47ef90=_0x47ef90-0x170;let _0x3ab9f2=_0x26b4c4[_0x47ef90];return _0x3ab9f2;},_0x47ef(_0xdab002,_0x584905);}function _0x26b4(){const _0x5c9c23=['React','_unitID','useEffect','Button','trim','default','random','getLiveShareCoordinator','presenting','UniverCore','dispose$','CollaborationEvent','status$','_status$','_beIdle','exports','UniverProCollaboration','UniverInstanceType','@univerjs/sheets','includes','SAME_OPERATION_SHARE_INTERVAL','parseProtocolChangeset','_presenter','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','pipe','event$','_startFollowing','mutations','_handleTerminate','@univerjs/core','registerSharedOperation','throttleTime','NEW_CHANGESETS','set','toDisposable','fill','then','IUniverInstanceService','displayName','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','@univerjs/ui','text','params','length','Start','rxjs','LiveShareController','clsx','_init','_startPresenting','_handleOnline','createInstance','LIVESHARE_FETCH_OPERATIONS','entries','493888kuwYQJ','subscribe','object','getCurrentTypeOfUnit$','Present\x20this\x20document','idSuffix','live-share.config','type','requireSession','LIVESHARE_TERMINATE','symbol','mask','_entities','_fetchOperations','unitId','children','Module','Subject','_univerInstanceService','UniverIcon','stopFollowing','unsubscribe','_status','jsx','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','useDependency','_liveShareService','get','5287851nCULUx','SetScrollOperation','forEach','_reporters','Fragment','19618hvHPgf','1em','startFollowing','getLiveShareCoordinatorSync','LiveShareIcon','div','shouldShareOperation','data','onCommandExecuted','Plugin','OPERATION','svg','UniverLiveSharePlugin','forwardRef','getUnitId','12qZSZfZ','_handleOffline','PRESENTING','UNIVER_SHEET','url(#$1','135qmeZGZ','react','not-following','override','merge','_injector','stringify','memberID','4555HLAiyl','UniverUi','xlink:href','disposeWithMe','1891673mjXxCs','current','LiveShareCoordinator','_commandService','onRendered','getValue','path','InsertSheetMutation','values','live-share-icon','UNIVER_UNKNOWN','Start\x20following','rxjs/operators','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','DesktopLiveShareController','takeUntil','@univerjs-pro/collaboration-client','LIVESHARE_REQUEST_HOST','FOLLOWING','string','http://www.w3.org/2000/svg','getConfig','presenter','You\x27are\x20offline.','substring','DisposableCollection','assign','SetZoomRatioOperation','_collabSessionService','offline','univerjs-icon\x20univerjs-icon-','_commandDisposable','UniverProLiveShare','Stop\x20presenting','getMemberID','amd','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','complete','executeCommand','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','@univerjs/sheets-ui','toString','Injector','init','defineProperty','getOwnPropertyDescriptor','use','next','mergeOverrideWithDependencies','univer-size-4','_handleOperation','attrs','evenodd','react/jsx-runtime','RxDisposable','Disposable','1304cGJWqs','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','asObservable','registerDependencies','tag','UniverProCollaborationClient','jsxs','useRef','Inject','UniverDesign','148955BqvtiN','stopPresenting','reverse','_stopPresenting','_collabSession','LiveShareStatus','_sharedOperations','replace','idle','following','colorChannel1','IDLE','IConfigService','add','button','dispose','SessionStatus','NOT_FOLLOWING','16955280WEUKfm','find','getInitialStates','_stopFollowing','_startLiveShareCoordinator','has','_mountLiveShare','delete','defs','_configService','UniverSheets','send','useState','_config','OFFLINE','parse','CommandType','touchDependencies','_uiPartsService','operations'];_0x26b4=function(){return _0x5c9c23;};return _0x26b4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14-nightly.202511031023",
|
|
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.10.
|
|
61
|
-
"@univerjs-pro/collaboration
|
|
62
|
-
"@univerjs/core": "0.10.
|
|
63
|
-
"@univerjs/design": "0.10.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/ui": "0.10.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.10.14-nightly.202511031023",
|
|
61
|
+
"@univerjs-pro/collaboration": "0.10.14-nightly.202511031023",
|
|
62
|
+
"@univerjs/core": "0.10.14-nightly.202511031023",
|
|
63
|
+
"@univerjs/design": "0.10.14-nightly.202511031023",
|
|
64
|
+
"@univerjs/engine-render": "0.10.14-nightly.202511031023",
|
|
65
|
+
"@univerjs/sheets": "0.10.14-nightly.202511031023",
|
|
66
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511031023",
|
|
67
|
+
"@univerjs/ui": "0.10.14-nightly.202511031023"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.1.
|
|
75
|
+
"vite": "^7.1.12",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.10.
|
|
78
|
-
"@univerjs/protocol": "0.1.47
|
|
77
|
+
"@univerjs-infra/shared": "0.10.14",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|