@univerjs-pro/live-share 0.12.4-experimental.20251208-c4b8a44 → 0.12.4-experimental.20251210-8d33c6e

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5954cb=_0x5529;function _0x5529(_0x27412d,_0x437834){_0x27412d=_0x27412d-0xa4;const _0x41651b=_0x4165();let _0x552988=_0x41651b[_0x27412d];return _0x552988;}(function(_0x359223,_0x3d75f4){const _0x16bcf5=_0x5529,_0x3acb96=_0x359223();while(!![]){try{const _0x3aa163=-parseInt(_0x16bcf5(0xb0))/0x1+parseInt(_0x16bcf5(0xac))/0x2+parseInt(_0x16bcf5(0xbc))/0x3+-parseInt(_0x16bcf5(0xbb))/0x4+parseInt(_0x16bcf5(0xb6))/0x5*(-parseInt(_0x16bcf5(0xce))/0x6)+-parseInt(_0x16bcf5(0xcc))/0x7*(-parseInt(_0x16bcf5(0xc2))/0x8)+parseInt(_0x16bcf5(0xc8))/0x9*(parseInt(_0x16bcf5(0xb4))/0xa);if(_0x3aa163===_0x3d75f4)break;else _0x3acb96['push'](_0x3acb96['shift']());}catch(_0x194a50){_0x3acb96['push'](_0x3acb96['shift']());}}}(_0x4165,0x245db));function _0x4165(){const _0x1029f1=['_initialize','79606tBuAtY','SetWorksheetActiveOperation','getId','LiveShareController','260993eDHhln','IRenderManagerService','No\x20active\x20workbook\x20found.','startPresenting','10JkzhEq','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','128795ynsaBf','SetScrollOperation','LiveShareStatus','tryStartPresenting','_commandService','38260nsKHqt','448473iBQrWU','FUniver','IDLE','startColumn','getLiveShareStatus','getStatus','3576ofPyzx','getActiveWorkbook','syncExecuteCommand','getSheetId','_injector','startRow','2142927XtYCaP','PRESENTING','LiveShareStatusEnum','stopFollowing','3507eRgIvt','get','54INkYxz','startFollowing','getLiveShareCoordinatorSync','getUnitId','extend','FEnum','getActiveSheet','stopPresenting','FRange','executeCommand'];_0x4165=function(){return _0x1029f1;};return _0x4165();}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[_0x5954cb(0xa9)]{[_0x5954cb(0xab)](_0x8784cd,_0x286554,_0x1ec71e,_0x19ff49,_0x167bc5){const _0x4e1ed6=_0x5954cb,_0x9a37fb=_0x8784cd[_0x4e1ed6(0xcd)](n[_0x4e1ed6(0xaf)]),_0x418f92=_0x8784cd[_0x4e1ed6(0xcd)](g[_0x4e1ed6(0xb1)]),_0x29123e=_0x286554[_0x4e1ed6(0xa4)](),_0x5445bc=_0x286554[_0x4e1ed6(0xa7)](),_0x537f3a=_0x9a37fb[_0x4e1ed6(0xd0)](_0x29123e);(_0x537f3a==null?void 0x0:_0x537f3a[_0x4e1ed6(0xc1)]())!==n['LiveShareStatus'][_0x4e1ed6(0xc9)]||(_0x1ec71e[_0x4e1ed6(0xc5)]()!==_0x5445bc[_0x4e1ed6(0xc5)]()&&this[_0x4e1ed6(0xba)][_0x4e1ed6(0xaa)](u[_0x4e1ed6(0xad)]['id'],{'unitId':_0x29123e,'subUnitId':_0x1ec71e[_0x4e1ed6(0xc5)]()}),!_0x418f92['getRenderById'](_0x29123e))||_0x167bc5[_0x4e1ed6(0xc4)](f[_0x4e1ed6(0xb7)]['id'],{'unitId':_0x286554[_0x4e1ed6(0xa4)](),'sheetId':_0x1ec71e['getSheetId'](),'sheetViewStartRow':_0x19ff49[_0x4e1ed6(0xc7)],'sheetViewStartColumn':_0x19ff49[_0x4e1ed6(0xbf)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x5954cb(0xa9)][_0x5954cb(0xa5)](w);class C extends a['FUniver']{[_0x5954cb(0xc0)](){const _0x2712e3=_0x5954cb;var _0x47e964,_0x487fa4;const _0x455c45=this[_0x2712e3(0xc6)]['get'](n[_0x2712e3(0xaf)]),_0x2e5b85=(_0x47e964=this['getActiveWorkbook']())==null?void 0x0:_0x47e964[_0x2712e3(0xae)]();if(!_0x2e5b85)throw new Error(_0x2712e3(0xb2));const _0x4a9293=_0x455c45[_0x2712e3(0xd0)](_0x2e5b85);return(_0x487fa4=_0x4a9293==null?void 0x0:_0x4a9293[_0x2712e3(0xc1)]())!=null?_0x487fa4:n[_0x2712e3(0xb8)][_0x2712e3(0xbe)];}[_0x5954cb(0xcf)](){const _0xb874df=_0x5954cb;var _0x5643b4;const _0x43066b=this[_0xb874df(0xc6)]['get'](n['LiveShareController']),_0x3d198b=(_0x5643b4=this['getActiveWorkbook']())==null?void 0x0:_0x5643b4[_0xb874df(0xae)]();if(!_0x3d198b)throw new Error(_0xb874df(0xb2));const _0x3a632b=_0x43066b['getLiveShareCoordinatorSync'](_0x3d198b);if(!_0x3a632b)throw new Error(_0xb874df(0xb5));_0x3a632b[_0xb874df(0xcf)]();}['stopFollowing'](){const _0x4fdf54=_0x5954cb;var _0x2ec2cc;const _0x43cac9=this[_0x4fdf54(0xc6)][_0x4fdf54(0xcd)](n[_0x4fdf54(0xaf)]),_0x5bd410=(_0x2ec2cc=this[_0x4fdf54(0xc3)]())==null?void 0x0:_0x2ec2cc['getId']();if(!_0x5bd410)throw new Error('No\x20active\x20workbook\x20found.');const _0x1e1005=_0x43cac9[_0x4fdf54(0xd0)](_0x5bd410);if(!_0x1e1005)throw new Error(_0x4fdf54(0xb5));_0x1e1005[_0x4fdf54(0xcb)]();}[_0x5954cb(0xb3)](){const _0x4efc53=_0x5954cb;var _0x9c65c;const _0x390ad5=this[_0x4efc53(0xc6)]['get'](n[_0x4efc53(0xaf)]),_0x3e218e=(_0x9c65c=this['getActiveWorkbook']())==null?void 0x0:_0x9c65c[_0x4efc53(0xae)]();if(!_0x3e218e)throw new Error(_0x4efc53(0xb2));const _0x5d9f86=_0x390ad5[_0x4efc53(0xd0)](_0x3e218e);if(!_0x5d9f86)throw new Error(_0x4efc53(0xb5));_0x5d9f86[_0x4efc53(0xb9)]();}[_0x5954cb(0xa8)](){const _0x13a097=_0x5954cb;var _0x3b7801;const _0x3abdb9=this[_0x13a097(0xc6)]['get'](n[_0x13a097(0xaf)]),_0x1cfc93=(_0x3b7801=this[_0x13a097(0xc3)]())==null?void 0x0:_0x3b7801[_0x13a097(0xae)]();if(!_0x1cfc93)throw new Error(_0x13a097(0xb2));const _0x54febc=_0x3abdb9[_0x13a097(0xd0)](_0x1cfc93);if(!_0x54febc)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54febc[_0x13a097(0xa8)]();}}a[_0x5954cb(0xbd)][_0x5954cb(0xa5)](C);class L extends a[_0x5954cb(0xa6)]{get[_0x5954cb(0xca)](){const _0x343b99=_0x5954cb;return n[_0x343b99(0xb8)];}}a[_0x5954cb(0xa6)]['extend'](L);
1
+ 'use strict';const _0x51c025=_0x35cf;(function(_0x448ddf,_0x520ec7){const _0xedb6ee=_0x35cf,_0x3aecc2=_0x448ddf();while(!![]){try{const _0x2352b7=parseInt(_0xedb6ee(0x1d8))/0x1+parseInt(_0xedb6ee(0x1d6))/0x2*(-parseInt(_0xedb6ee(0x1b3))/0x3)+-parseInt(_0xedb6ee(0x1cb))/0x4*(parseInt(_0xedb6ee(0x1c0))/0x5)+parseInt(_0xedb6ee(0x1be))/0x6+parseInt(_0xedb6ee(0x1bf))/0x7+-parseInt(_0xedb6ee(0x1b8))/0x8*(parseInt(_0xedb6ee(0x1ca))/0x9)+parseInt(_0xedb6ee(0x1d3))/0xa;if(_0x2352b7===_0x520ec7)break;else _0x3aecc2['push'](_0x3aecc2['shift']());}catch(_0x59f741){_0x3aecc2['push'](_0x3aecc2['shift']());}}}(_0x49e9,0xea308));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');function _0x35cf(_0x2dc6bc,_0x3979a9){_0x2dc6bc=_0x2dc6bc-0x1af;const _0x49e95a=_0x49e9();let _0x35cf2c=_0x49e95a[_0x2dc6bc];return _0x35cf2c;}class w extends d[_0x51c025(0x1cf)]{[_0x51c025(0x1c5)](_0x3f72c2,_0x54cb07,_0x4d707c,_0xce610a,_0x1f7106){const _0x52d860=_0x51c025,_0x473669=_0x3f72c2[_0x52d860(0x1af)](n['LiveShareController']),_0x3b10f2=_0x3f72c2[_0x52d860(0x1af)](g[_0x52d860(0x1bb)]),_0x288631=_0x54cb07[_0x52d860(0x1d2)](),_0x24d39d=_0x54cb07[_0x52d860(0x1c8)](),_0x3bfff5=_0x473669[_0x52d860(0x1c1)](_0x288631);(_0x3bfff5==null?void 0x0:_0x3bfff5[_0x52d860(0x1b1)]())!==n[_0x52d860(0x1c4)]['PRESENTING']||(_0x4d707c[_0x52d860(0x1d7)]()!==_0x24d39d['getSheetId']()&&this[_0x52d860(0x1d5)][_0x52d860(0x1c3)](u[_0x52d860(0x1b0)]['id'],{'unitId':_0x288631,'subUnitId':_0x4d707c[_0x52d860(0x1d7)]()}),!_0x3b10f2[_0x52d860(0x1c2)](_0x288631))||_0x1f7106['syncExecuteCommand'](f[_0x52d860(0x1cd)]['id'],{'unitId':_0x54cb07[_0x52d860(0x1d2)](),'sheetId':_0x4d707c['getSheetId'](),'sheetViewStartRow':_0xce610a[_0x52d860(0x1cc)],'sheetViewStartColumn':_0xce610a[_0x52d860(0x1c9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x49e9(){const _0x37b66e=['16687230UrjGdL','stopPresenting','_commandService','53714lQehXX','getSheetId','1816182bAOICs','No\x20active\x20workbook\x20found.','get','SetWorksheetActiveOperation','getStatus','getActiveWorkbook','21aBdwdK','startPresenting','extend','LiveShareStatusEnum','FEnum','4261528gxoNBU','LiveShareController','IDLE','IRenderManagerService','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','530706wpndlv','72184ghqXTS','55155lnXJdH','getLiveShareCoordinatorSync','getRenderById','executeCommand','LiveShareStatus','_initialize','FUniver','tryStartPresenting','getActiveSheet','startColumn','27adArNd','304EgqLTk','startRow','SetScrollOperation','getId','FRange','stopFollowing','_injector','getUnitId'];_0x49e9=function(){return _0x37b66e;};return _0x49e9();}d['FRange'][_0x51c025(0x1b5)](w);class C extends a[_0x51c025(0x1c6)]{['getLiveShareStatus'](){const _0x44c88f=_0x51c025;var _0x20e74f,_0x1c0e64;const _0x4ad5ec=this[_0x44c88f(0x1d1)][_0x44c88f(0x1af)](n[_0x44c88f(0x1b9)]),_0xa26add=(_0x20e74f=this[_0x44c88f(0x1b2)]())==null?void 0x0:_0x20e74f[_0x44c88f(0x1ce)]();if(!_0xa26add)throw new Error(_0x44c88f(0x1d9));const _0x475e42=_0x4ad5ec[_0x44c88f(0x1c1)](_0xa26add);return(_0x1c0e64=_0x475e42==null?void 0x0:_0x475e42['getStatus']())!=null?_0x1c0e64:n[_0x44c88f(0x1c4)][_0x44c88f(0x1ba)];}[_0x51c025(0x1bc)](){const _0x33d3da=_0x51c025;var _0x3b14f6;const _0x5b0859=this[_0x33d3da(0x1d1)]['get'](n[_0x33d3da(0x1b9)]),_0x1f03db=(_0x3b14f6=this[_0x33d3da(0x1b2)]())==null?void 0x0:_0x3b14f6['getId']();if(!_0x1f03db)throw new Error(_0x33d3da(0x1d9));const _0x581a40=_0x5b0859['getLiveShareCoordinatorSync'](_0x1f03db);if(!_0x581a40)throw new Error(_0x33d3da(0x1bd));_0x581a40['startFollowing']();}['stopFollowing'](){const _0x215057=_0x51c025;var _0x3a75fe;const _0x6e0ecd=this['_injector'][_0x215057(0x1af)](n[_0x215057(0x1b9)]),_0x132030=(_0x3a75fe=this[_0x215057(0x1b2)]())==null?void 0x0:_0x3a75fe['getId']();if(!_0x132030)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fdc83=_0x6e0ecd[_0x215057(0x1c1)](_0x132030);if(!_0x3fdc83)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fdc83[_0x215057(0x1d0)]();}[_0x51c025(0x1b4)](){const _0xe33d2b=_0x51c025;var _0x3bd6e7;const _0x3cc6d7=this[_0xe33d2b(0x1d1)][_0xe33d2b(0x1af)](n[_0xe33d2b(0x1b9)]),_0x365ac2=(_0x3bd6e7=this[_0xe33d2b(0x1b2)]())==null?void 0x0:_0x3bd6e7[_0xe33d2b(0x1ce)]();if(!_0x365ac2)throw new Error(_0xe33d2b(0x1d9));const _0x4b5383=_0x3cc6d7[_0xe33d2b(0x1c1)](_0x365ac2);if(!_0x4b5383)throw new Error(_0xe33d2b(0x1bd));_0x4b5383[_0xe33d2b(0x1c7)]();}[_0x51c025(0x1d4)](){const _0x212a42=_0x51c025;var _0x156fa9;const _0x5cb143=this[_0x212a42(0x1d1)][_0x212a42(0x1af)](n[_0x212a42(0x1b9)]),_0x5a7ac3=(_0x156fa9=this[_0x212a42(0x1b2)]())==null?void 0x0:_0x156fa9['getId']();if(!_0x5a7ac3)throw new Error(_0x212a42(0x1d9));const _0x1cd41d=_0x5cb143[_0x212a42(0x1c1)](_0x5a7ac3);if(!_0x1cd41d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1cd41d[_0x212a42(0x1d4)]();}}a[_0x51c025(0x1c6)]['extend'](C);class L extends a['FEnum']{get[_0x51c025(0x1b6)](){const _0x3007aa=_0x51c025;return n[_0x3007aa(0x1c4)];}}a[_0x51c025(0x1b7)][_0x51c025(0x1b5)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x27a659=_0x5063;(function(_0x25842b,_0x3aa104){const _0xe9edf1=_0x5063,_0x39c090=_0x25842b();while(!![]){try{const _0x445052=-parseInt(_0xe9edf1(0x1e0))/0x1+-parseInt(_0xe9edf1(0x1b1))/0x2+-parseInt(_0xe9edf1(0x1a9))/0x3*(-parseInt(_0xe9edf1(0x15a))/0x4)+parseInt(_0xe9edf1(0x191))/0x5*(-parseInt(_0xe9edf1(0x1f0))/0x6)+-parseInt(_0xe9edf1(0x18c))/0x7*(-parseInt(_0xe9edf1(0x1c0))/0x8)+-parseInt(_0xe9edf1(0x15f))/0x9+parseInt(_0xe9edf1(0x16e))/0xa;if(_0x445052===_0x3aa104)break;else _0x39c090['push'](_0x39c090['shift']());}catch(_0x4b6f52){_0x39c090['push'](_0x39c090['shift']());}}}(_0x1fc6,0x2a102));var T=Object['defineProperty'],U=(_0x13837b,_0x58ce81,_0x42add7)=>_0x58ce81 in _0x13837b?T(_0x13837b,_0x58ce81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42add7}):_0x13837b[_0x58ce81]=_0x42add7,_=(_0x33f611,_0x48cef1,_0x450939)=>U(_0x33f611,typeof _0x48cef1!=_0x27a659(0x19c)?_0x48cef1+'':_0x48cef1,_0x450939);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});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:_0x2fb0b6,..._0x3b05b3}){const _0x3dfe27=_0x27a659,{icon:_0x228bc6,id:_0x4c7317,className:_0x1ef958,extend:_0x39e9c7,..._0x5bffcc}=_0x3b05b3,_0x4fe64c=(_0x3dfe27(0x148)+_0x4c7317+'\x20'+(_0x1ef958||''))[_0x3dfe27(0x19a)](),_0xd70413=v[_0x3dfe27(0x214)]('_'+H());return j(_0x228bc6,''+_0x4c7317,{'defIds':_0x228bc6[_0x3dfe27(0x208)],'idSuffix':_0xd70413[_0x3dfe27(0x160)]},{'ref':_0x2fb0b6,'className':_0x4fe64c,..._0x5bffcc},_0x39e9c7);}function j(_0x43ace6,_0xa2d5ee,_0x1ccf0f,_0x434f3b,_0x5b07f4){const _0x255e31=_0x27a659;return v[_0x255e31(0x20e)](_0x43ace6[_0x255e31(0x171)],{'key':_0xa2d5ee,...y(_0x43ace6,_0x1ccf0f,_0x5b07f4),..._0x434f3b},(F(_0x43ace6,_0x1ccf0f)[_0x255e31(0x1fa)]||[])[_0x255e31(0x1ee)]((_0x487940,_0x59eb54)=>j(_0x487940,_0xa2d5ee+'-'+_0x43ace6[_0x255e31(0x171)]+'-'+_0x59eb54,_0x1ccf0f,void 0x0,_0x5b07f4)));}function y(_0x2eacde,_0xf4d992,_0x469ddd){const _0x3ee4e3=_0x27a659,_0x3192f2={..._0x2eacde[_0x3ee4e3(0x1e3)]};_0x469ddd!=null&&_0x469ddd[_0x3ee4e3(0x1be)]&&_0x3192f2[_0x3ee4e3(0x159)]===_0x3ee4e3(0x1be)&&(_0x3192f2['fill']=_0x469ddd[_0x3ee4e3(0x1be)]),_0x2eacde[_0x3ee4e3(0x171)]===_0x3ee4e3(0x1b5)&&_0x3192f2['id']&&(_0x3192f2['id']=_0x3192f2['id']+_0xf4d992[_0x3ee4e3(0x1b6)]),Object[_0x3ee4e3(0x172)](_0x3192f2)['forEach'](([_0x13e2fb,_0xe41bcd])=>{const _0x4b5453=_0x3ee4e3;_0x13e2fb===_0x4b5453(0x1b5)&&typeof _0xe41bcd=='string'&&(_0x3192f2[_0x13e2fb]=_0xe41bcd['replace'](/url\(#(.*)\)/,_0x4b5453(0x163)+_0xf4d992['idSuffix']+')'));});const {defIds:_0xb1a8a3}=_0xf4d992;return!_0xb1a8a3||_0xb1a8a3['length']===0x0||(_0x2eacde[_0x3ee4e3(0x171)]===_0x3ee4e3(0x1df)&&_0x3192f2['xlink:href']&&(_0x3192f2[_0x3ee4e3(0x188)]=_0x3192f2[_0x3ee4e3(0x188)]+_0xf4d992[_0x3ee4e3(0x1b6)]),Object['entries'](_0x3192f2)[_0x3ee4e3(0x17b)](([_0xa81291,_0x2578a4])=>{const _0x20f025=_0x3ee4e3;typeof _0x2578a4=='string'&&(_0x3192f2[_0xa81291]=_0x2578a4[_0x20f025(0x19e)](/url\(#(.*)\)/,_0x20f025(0x163)+_0xf4d992[_0x20f025(0x1b6)]+')'));})),_0x3192f2;}function F(_0x228383,_0x1b4874){const _0xb1d0c8=_0x27a659;var _0x4a6409;const {defIds:_0x21582e}=_0x1b4874;return!_0x21582e||_0x21582e[_0xb1d0c8(0x196)]===0x0?_0x228383:_0x228383[_0xb1d0c8(0x171)]===_0xb1d0c8(0x1c5)&&((_0x4a6409=_0x228383[_0xb1d0c8(0x1fa)])!=null&&_0x4a6409[_0xb1d0c8(0x196)])?{..._0x228383,'children':_0x228383[_0xb1d0c8(0x1fa)][_0xb1d0c8(0x1ee)](_0x47ebb0=>typeof _0x47ebb0['attrs']['id']==_0xb1d0c8(0x17a)&&_0x21582e&&_0x21582e['includes'](_0x47ebb0[_0xb1d0c8(0x1e3)]['id'])?{..._0x47ebb0,'attrs':{..._0x47ebb0[_0xb1d0c8(0x1e3)],'id':_0x47ebb0[_0xb1d0c8(0x1e3)]['id']+_0x1b4874[_0xb1d0c8(0x1b6)]}}:_0x47ebb0)}:_0x228383;}function H(){const _0x4aeef2=_0x27a659;return Math[_0x4aeef2(0x1e2)]()[_0x4aeef2(0x18f)](0x24)['substring'](0x2,0x8);}x[_0x27a659(0x165)]=_0x27a659(0x20d);const V={'tag':_0x27a659(0x1ef),'attrs':{'xmlns':_0x27a659(0x1f8),'fill':_0x27a659(0x1a5),'viewBox':_0x27a659(0x14b),'width':_0x27a659(0x217),'height':'1em'},'children':[{'tag':_0x27a659(0x174),'attrs':{'fill':'currentColor','d':_0x27a659(0x213)}},{'tag':_0x27a659(0x174),'attrs':{'fill':_0x27a659(0x1ba),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x27a659(0x1ea),'clipRule':_0x27a659(0x1ea)}}]},R=v[_0x27a659(0x1ae)](function(_0xa10058,_0x4de63b){const _0x4c63fc=_0x27a659;return v['createElement'](x,Object[_0x4c63fc(0x193)]({},_0xa10058,{'id':_0x4c63fc(0x1c4),'ref':_0x4de63b,'icon':V}));});R[_0x27a659(0x165)]=_0x27a659(0x178);class E extends o[_0x27a659(0x19f)]{constructor(){const _0x11727e=_0x27a659;super(...arguments),_(this,_0x11727e(0x200),new Set()),_(this,'_reporters',new Set());}[_0x27a659(0x185)](_0x31d648){const _0x2236ad=_0x27a659;return this['_sharedOperations'][_0x2236ad(0x179)](_0x31d648),o[_0x2236ad(0x1d1)](()=>this['_sharedOperations'][_0x2236ad(0x16b)](_0x31d648));}[_0x27a659(0x16c)](_0x5d7d78){const _0x5416b3=_0x27a659;return this[_0x5416b3(0x14d)][_0x5416b3(0x179)](_0x5d7d78),o[_0x5416b3(0x1d1)](()=>this[_0x5416b3(0x14d)][_0x5416b3(0x16b)](_0x5d7d78));}[_0x27a659(0x1ed)](_0x341508){const _0x208a24=_0x27a659;return this[_0x208a24(0x200)][_0x208a24(0x16a)](_0x341508);}['getInitialStates'](_0x573caf){const _0x3edb77=_0x27a659;return Array['from'](this[_0x3edb77(0x14d)])[_0x3edb77(0x1ee)](_0x172c49=>_0x172c49(_0x573caf));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x3a50ae,_0x3fc2b0,_0x3f7e82,_0x12bcba)=>{for(var _0x213d95=_0x12bcba>0x1?void 0x0:_0x12bcba?M(_0x3fc2b0,_0x3f7e82):_0x3fc2b0,_0x22ed2d=_0x3a50ae['length']-0x1,_0x21036b;_0x22ed2d>=0x0;_0x22ed2d--)(_0x21036b=_0x3a50ae[_0x22ed2d])&&(_0x213d95=_0x21036b(_0x213d95)||_0x213d95);return _0x213d95;},S=(_0x5da627,_0x3ea071)=>(_0x54852a,_0xd8417)=>_0x3ea071(_0x54852a,_0xd8417,_0x5da627);function _0x5063(_0x2caf26,_0x4fe090){_0x2caf26=_0x2caf26-0x148;const _0x1fc6d4=_0x1fc6();let _0x5063c2=_0x1fc6d4[_0x2caf26];return _0x5063c2;}exports['LiveShareController']=class extends o[_0x27a659(0x154)]{constructor(_0x3fd419,_0x228dd1,_0x274ce9){const _0x245b6f=_0x27a659;super(),_(this,_0x245b6f(0x167),new Map()),(this['_univerInstanceService']=_0x3fd419,this[_0x245b6f(0x150)]=_0x228dd1,this[_0x245b6f(0x198)]=_0x274ce9,this[_0x245b6f(0x1bc)]());}async[_0x27a659(0x16d)](_0x438f52){const _0x291f03=_0x27a659;return this[_0x291f03(0x167)]['has'](_0x438f52)||await this['_startLiveShareCoordinator'](_0x438f52),this[_0x291f03(0x167)][_0x291f03(0x162)](_0x438f52);}['getLiveShareCoordinatorSync'](_0x209279){const _0x154d91=_0x27a659;var _0x440f94;return(_0x440f94=this[_0x154d91(0x167)]['get'](_0x209279))!=null?_0x440f94:null;}[_0x27a659(0x1bc)](){const _0x2ed358=_0x27a659;this[_0x2ed358(0x155)][_0x2ed358(0x158)](o[_0x2ed358(0x14a)][_0x2ed358(0x1cc)])['pipe'](I[_0x2ed358(0x215)](this[_0x2ed358(0x206)]))[_0x2ed358(0x1e9)](async _0x3ceb75=>{const _0x46096b=_0x2ed358,_0x2bda13=_0x3ceb75[_0x46096b(0x1d7)]();this[_0x46096b(0x167)][_0x46096b(0x16a)](_0x2bda13)||this[_0x46096b(0x1fe)](_0x2bda13);}),this[_0x2ed358(0x155)][_0x2ed358(0x194)](o['UniverInstanceType'][_0x2ed358(0x1cc)])[_0x2ed358(0x1a8)](I[_0x2ed358(0x215)](this[_0x2ed358(0x206)]))[_0x2ed358(0x1e9)](_0x30e332=>{const _0x31215e=_0x2ed358,_0x85e6e0=_0x30e332[_0x31215e(0x1d7)](),_0x3b5ad3=this[_0x31215e(0x167)]['get'](_0x85e6e0);_0x3b5ad3==null||_0x3b5ad3[_0x31215e(0x18b)]();});}async['_startLiveShareCoordinator'](_0x31390c){const _0x3cfc05=_0x27a659,_0x188907=await this[_0x3cfc05(0x198)]['requireSession'](_0x31390c),_0x216baa=this[_0x3cfc05(0x150)]['createInstance'](exports[_0x3cfc05(0x218)],_0x31390c,_0x188907);return _0x216baa['init'](),this['_entities'][_0x3cfc05(0x211)](_0x31390c,_0x216baa),_0x216baa;}},exports[_0x27a659(0x181)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),S(0x2,o[_0x27a659(0x1aa)](b[_0x27a659(0x1f7)]))],exports[_0x27a659(0x181)]);var u=(_0xa6e20c=>(_0xa6e20c[_0x27a659(0x1c8)]='offline',_0xa6e20c['IDLE']=_0x27a659(0x15b),_0xa6e20c[_0x27a659(0x197)]='following',_0xa6e20c[_0x27a659(0x1b8)]=_0x27a659(0x168),_0xa6e20c[_0x27a659(0x199)]='presenting',_0xa6e20c))(u||{});const k=_0x27a659(0x1c3),q=0xc8;exports[_0x27a659(0x218)]=class extends o['RxDisposable']{constructor(_0x1354e8,_0x192301,_0xf3ca14,_0x5a0931,_0x212f12){const _0x3514b4=_0x27a659;super(),_(this,_0x3514b4(0x1c7),new O[(_0x3514b4(0x1e4))](_0x3514b4(0x15b))),_(this,'status$',this[_0x3514b4(0x1c7)][_0x3514b4(0x205)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x1354e8,this[_0x3514b4(0x1a3)]=_0x192301,this[_0x3514b4(0x1ce)]=_0xf3ca14,this['_liveShareService']=_0x5a0931,this['_commandService']=_0x212f12);}get[_0x27a659(0x14f)](){const _0x3822f0=_0x27a659;return this[_0x3822f0(0x1c7)][_0x3822f0(0x157)]();}['dispose'](){const _0x5197a2=_0x27a659;var _0x1393f9;(_0x1393f9=this[_0x5197a2(0x173)])==null||_0x1393f9['dispose'](),this[_0x5197a2(0x1c7)][_0x5197a2(0x1c2)](_0x5197a2(0x15b)),this[_0x5197a2(0x1c7)][_0x5197a2(0x14e)]();}[_0x27a659(0x204)](){return this['_status'];}[_0x27a659(0x186)](){const _0x426df3=_0x27a659;this[_0x426df3(0x1bc)]||(this['_init']=!0x0,this[_0x426df3(0x1a3)][_0x426df3(0x1f9)][_0x426df3(0x1a8)](I['takeUntil'](this[_0x426df3(0x206)]))[_0x426df3(0x1e9)](_0x349549=>{const _0x5a7a58=_0x426df3;switch(_0x349549){case b[_0x5a7a58(0x1db)][_0x5a7a58(0x1c8)]:this['_handleOffline']();break;case b[_0x5a7a58(0x1db)]['ONLINE']:this[_0x5a7a58(0x18a)]();break;}}),this[_0x426df3(0x1a3)][_0x426df3(0x1fc)][_0x426df3(0x1a8)](I[_0x426df3(0x215)](this[_0x426df3(0x206)]))[_0x426df3(0x1e9)](_0x14f63c=>{const _0x3b1b18=_0x426df3,{eventID:_0x2845d3}=_0x14f63c;switch(_0x2845d3){case d[_0x3b1b18(0x176)][_0x3b1b18(0x1af)]:this[_0x3b1b18(0x1f6)](_0x14f63c);break;case d[_0x3b1b18(0x176)][_0x3b1b18(0x1e6)]:this[_0x3b1b18(0x201)](_0x14f63c);break;case d['CollaborationEvent'][_0x3b1b18(0x17f)]:this[_0x3b1b18(0x187)]();break;case d[_0x3b1b18(0x176)][_0x3b1b18(0x1b3)]:this[_0x3b1b18(0x1ad)](_0x14f63c);break;}}));}['tryStartPresenting'](){const _0x138bae=_0x27a659;this[_0x138bae(0x1a3)][_0x138bae(0x161)]({'eventID':d[_0x138bae(0x176)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x138bae(0x17d)],'userID':this[_0x138bae(0x1a3)][_0x138bae(0x189)]()}},this[_0x138bae(0x17d)]);}['stopPresenting'](){const _0x827171=_0x27a659;this[_0x827171(0x14f)]===_0x827171(0x1bd)&&(this[_0x827171(0x1c7)][_0x827171(0x1c2)]('idle'),this[_0x827171(0x1a3)][_0x827171(0x161)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x827171(0x17d)]}},this[_0x827171(0x17d)]));}[_0x27a659(0x1ac)](){const _0x5ee5c4=_0x27a659;this[_0x5ee5c4(0x14f)]===_0x5ee5c4(0x168)&&(this[_0x5ee5c4(0x1c7)][_0x5ee5c4(0x1c2)](_0x5ee5c4(0x1d6)),this[_0x5ee5c4(0x1dd)]());}['stopFollowing'](){const _0x5bc09d=_0x27a659;this[_0x5bc09d(0x14f)]==='following'&&this[_0x5bc09d(0x1c1)]();}[_0x27a659(0x1f6)](_0x55c49f){const _0x14af93=_0x27a659,{presenter:_0x51faaf}=_0x55c49f[_0x14af93(0x1ca)],_0x1e86d5=this['_collabSession'][_0x14af93(0x189)]();this[_0x14af93(0x1c9)]=_0x51faaf,_0x51faaf===_0x1e86d5?(this[_0x14af93(0x1c1)](),this[_0x14af93(0x1da)]()):this[_0x14af93(0x14f)]!==_0x14af93(0x168)&&(this[_0x14af93(0x210)](),this[_0x14af93(0x1dd)]());}[_0x27a659(0x1b7)](){const _0xcbe2a6=_0x27a659,_0x4f227d={'eventID':d[_0xcbe2a6(0x176)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x4f227d,this[_0xcbe2a6(0x17d)]);}[_0x27a659(0x187)](){const _0x45022a=_0x27a659;this[_0x45022a(0x1c9)]=null,this[_0x45022a(0x14f)]!=='presenting'&&this[_0x45022a(0x1eb)]();}['_handleNewChangeSets'](_0x11fa1a){const _0x2f76e2=_0x27a659;if(this[_0x2f76e2(0x14f)]===_0x2f76e2(0x1d6)&&this['_presenter']===_0x11fa1a[_0x2f76e2(0x1ca)]['memberID']){const _0x3aead0=d[_0x2f76e2(0x1b4)](_0x11fa1a[_0x2f76e2(0x1ca)])['mutations'][_0x2f76e2(0x1d5)]()[_0x2f76e2(0x175)](_0x37474e=>_0x37474e['id']===C['InsertSheetMutation']['id']);if(_0x3aead0){const _0x295b35=_0x3aead0[_0x2f76e2(0x183)][_0x2f76e2(0x152)],_0x1bbab3=_0x3aead0['params'][_0x2f76e2(0x17c)]['id'];setTimeout(()=>{const _0x594124=_0x2f76e2;this[_0x594124(0x15c)][_0x594124(0x1e1)](C[_0x594124(0x166)]['id'],{'unitId':_0x295b35,'subUnitId':_0x1bbab3},{'fromCollab':!0x0});});}}}[_0x27a659(0x1da)](){const _0x4bba7e=_0x27a659;this['_status$']['next'](_0x4bba7e(0x1bd));const _0x31f4bf=new Map(),_0x29cf2c=this[_0x4bba7e(0x173)]=new o[(_0x4bba7e(0x1b0))]();_0x29cf2c[_0x4bba7e(0x179)](o[_0x4bba7e(0x1d1)](()=>{const _0x43924d=_0x4bba7e;_0x31f4bf[_0x43924d(0x17b)](_0x7ee812=>_0x7ee812['complete']()),_0x31f4bf[_0x43924d(0x177)]();})),_0x29cf2c[_0x4bba7e(0x179)](this[_0x4bba7e(0x15c)]['onCommandExecuted'](_0x2e792c=>{const _0x3ab56e=_0x4bba7e;var _0x3d4352;if(_0x2e792c[_0x3ab56e(0x203)]!==o[_0x3ab56e(0x1cb)][_0x3ab56e(0x1d2)]||!this['_liveShareService'][_0x3ab56e(0x1ed)](_0x2e792c['id']))return;const {id:_0x1139dc}=_0x2e792c;let _0x60b91e;_0x31f4bf['has'](_0x1139dc)?_0x60b91e=_0x31f4bf[_0x3ab56e(0x162)](_0x1139dc):(_0x60b91e=new O[(_0x3ab56e(0x1b9))](),_0x31f4bf[_0x3ab56e(0x211)](_0x1139dc,_0x60b91e),_0x60b91e[_0x3ab56e(0x1a8)](I[_0x3ab56e(0x16f)]((_0x3d4352=this[_0x3ab56e(0x1ce)][_0x3ab56e(0x1e5)](k))!=null?_0x3d4352:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ab56e(0x1e9)](_0x3005b2=>{const _0xdc0dd3=_0x3ab56e;this['_collabSession']['send']({'eventID':d[_0xdc0dd3(0x176)][_0xdc0dd3(0x1e6)],'data':{'unitID':this[_0xdc0dd3(0x17d)],'operations':{[_0x3005b2['id']]:{'id':_0x3005b2['id'],'params':JSON[_0xdc0dd3(0x190)](_0x3005b2[_0xdc0dd3(0x183)])}}}},this[_0xdc0dd3(0x17d)]);})),_0x60b91e['next'](_0x2e792c);})),this[_0x4bba7e(0x1c6)][_0x4bba7e(0x19b)](this[_0x4bba7e(0x17d)])[_0x4bba7e(0x17b)](_0x57f590=>this[_0x4bba7e(0x1a3)][_0x4bba7e(0x161)]({'eventID':d[_0x4bba7e(0x176)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4bba7e(0x17d)],'operations':{[_0x57f590['id']]:{'id':_0x57f590['id'],'params':JSON[_0x4bba7e(0x190)](_0x57f590[_0x4bba7e(0x183)])}}}},this[_0x4bba7e(0x17d)]));}['_stopPresenting'](){const _0x17672=_0x27a659;var _0x641df4;this[_0x17672(0x1c7)][_0x17672(0x1c2)](_0x17672(0x15b)),(_0x641df4=this[_0x17672(0x173)])==null||_0x641df4[_0x17672(0x18b)](),this[_0x17672(0x173)]=null;}['_startFollowing'](){const _0xa3e11e=_0x27a659;var _0x35527b;(_0x35527b=this[_0xa3e11e(0x173)])==null||_0x35527b['dispose'](),this[_0xa3e11e(0x1c7)][_0xa3e11e(0x1c2)]('following');}['_beIdle'](){const _0x4852d1=_0x27a659;var _0x1fe3f8;this[_0x4852d1(0x1c7)][_0x4852d1(0x1c2)]('idle'),(_0x1fe3f8=this['_commandDisposable'])==null||_0x1fe3f8[_0x4852d1(0x18b)](),this[_0x4852d1(0x173)]=null;}['_stopFollowing'](){const _0x37a7b1=_0x27a659;var _0x5aa099;this[_0x37a7b1(0x1c7)][_0x37a7b1(0x1c2)](_0x37a7b1(0x168)),(_0x5aa099=this['_commandDisposable'])==null||_0x5aa099[_0x37a7b1(0x18b)]();}[_0x27a659(0x201)](_0x53dd85){const _0x53b0bf=_0x27a659;if([_0x53b0bf(0x1bd),_0x53b0bf(0x168),_0x53b0bf(0x1f3)][_0x53b0bf(0x1fd)](this['_status'])||!_0x53dd85['data'][_0x53b0bf(0x20f)]||_0x53dd85[_0x53b0bf(0x1ca)][_0x53b0bf(0x20f)]===this['_collabSession'][_0x53b0bf(0x189)]())return;this['_status']===_0x53b0bf(0x15b)&&this[_0x53b0bf(0x1dd)]();const _0x4d490c=_0x53dd85[_0x53b0bf(0x1ca)]['operations'];Object['values'](_0x4d490c)[_0x53b0bf(0x17b)](_0xb050ae=>{const _0x168910=_0x53b0bf;this[_0x168910(0x15c)]['executeCommand'](_0xb050ae['id'],_0xb050ae['params']?JSON[_0x168910(0x20c)](_0xb050ae[_0x168910(0x183)]):null,{'fromCollab':!0x0});});}[_0x27a659(0x20a)](){const _0x25c156=_0x27a659;var _0x18ac8d;this[_0x25c156(0x1c7)]['next'](_0x25c156(0x1f3)),(_0x18ac8d=this[_0x25c156(0x173)])==null||_0x18ac8d[_0x25c156(0x18b)]();}[_0x27a659(0x18a)](){const _0x248d71=_0x27a659;this[_0x248d71(0x1c7)][_0x248d71(0x1c2)]('idle'),this[_0x248d71(0x1b7)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x27a659(0x1a1)]),S(0x3,o[_0x27a659(0x1aa)](E)),S(0x4,o[_0x27a659(0x1ff)])],exports['LiveShareCoordinator']);function $(){const _0x2cd295=_0x27a659,_0x28a554=p[_0x2cd295(0x1cf)](exports[_0x2cd295(0x181)]),_0x4d4f59=p[_0x2cd295(0x1cf)](o[_0x2cd295(0x1d9)]),_0x2a9e08=p['useObservable'](()=>_0x4d4f59[_0x2cd295(0x180)](o['UniverInstanceType'][_0x2cd295(0x1cc)]),void 0x0,!0x1,[]),[_0x201507,_0x2f0833]=v[_0x2cd295(0x1cd)](null),[_0x27600a,_0x230cd1]=v[_0x2cd295(0x1cd)](u[_0x2cd295(0x1d8)]),_0xb1895f=v[_0x2cd295(0x214)](null);return v[_0x2cd295(0x1fb)](()=>(_0x2a9e08&&_0x28a554[_0x2cd295(0x16d)](_0x2a9e08['getUnitId']())['then'](_0x158f07=>{const _0x26d7a8=_0x2cd295;_0x2f0833(_0x158f07),_0xb1895f[_0x26d7a8(0x160)]=_0x158f07[_0x26d7a8(0x219)][_0x26d7a8(0x1e9)](_0x455c9a=>{_0x230cd1(_0x455c9a);});}),()=>{const _0x19285d=_0x2cd295;var _0x1879f3;(_0x1879f3=_0xb1895f['current'])==null||_0x1879f3[_0x19285d(0x1d3)](),_0xb1895f[_0x19285d(0x160)]=null;}),[_0x2a9e08,_0x28a554]),_0x201507?l[_0x2cd295(0x170)](f['Dropdown'],{'align':_0x2cd295(0x18d),'disabled':_0x27600a===u[_0x2cd295(0x1c8)],'className':_0x2cd295(0x1a4),'overlay':l[_0x2cd295(0x170)](W,{'status':_0x27600a,'coordinator':_0x201507}),'children':l['jsx'](_0x2cd295(0x207),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x27600a===u[_0x2cd295(0x1c8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27600a!==u['OFFLINE']}),'type':'button','children':l[_0x2cd295(0x170)](R,{'className':_0x2cd295(0x192)})})}):null;}function W(_0xc095c5){const _0x4187f7=_0x27a659,{status:_0x8234cd,coordinator:_0x361bb8}=_0xc095c5;switch(_0x8234cd){case u[_0x4187f7(0x1d8)]:return l[_0x4187f7(0x170)](G,{'coordinator':_0x361bb8});case u[_0x4187f7(0x197)]:return l[_0x4187f7(0x170)](B,{'coordinator':_0x361bb8});case u[_0x4187f7(0x1b8)]:return l[_0x4187f7(0x170)](Y,{'coordinator':_0x361bb8});case u[_0x4187f7(0x1c8)]:return l[_0x4187f7(0x170)](J,{});case u[_0x4187f7(0x199)]:return l[_0x4187f7(0x170)](Z,{'coordinator':_0x361bb8});default:return null;}}function G(_0x2d2097){const _0x5790d5=_0x27a659,{coordinator:_0x3aec91}=_0x2d2097;return l['jsxs'](l['Fragment'],{'children':[l[_0x5790d5(0x170)](_0x5790d5(0x164),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5790d5(0x149)}),l['jsx'](f[_0x5790d5(0x1a7)],{'onClick':()=>_0x3aec91[_0x5790d5(0x151)](),'children':_0x5790d5(0x1f2)})]});}function B(_0x112252){const _0xdff972=_0x27a659,{coordinator:_0x58a6ea}=_0x112252;return l[_0xdff972(0x1a2)](l[_0xdff972(0x195)],{'children':[l[_0xdff972(0x170)](_0xdff972(0x164),{'className':_0xdff972(0x1bf),'children':_0xdff972(0x1b2)}),l['jsx'](f[_0xdff972(0x1a7)],{'onClick':()=>_0x58a6ea['stopFollowing'](),'children':_0xdff972(0x1f4)})]});}function Y(_0x177ec9){const _0x399258=_0x27a659,{coordinator:_0x88adb1}=_0x177ec9;return l[_0x399258(0x1a2)](l[_0x399258(0x195)],{'children':[l[_0x399258(0x170)]('div',{'className':_0x399258(0x1bf),'children':_0x399258(0x17e)}),l[_0x399258(0x170)](f[_0x399258(0x1a7)],{'variant':'text','onClick':()=>_0x88adb1[_0x399258(0x1ac)](),'children':'Start\x20following'})]});}function Z(_0x3a3164){const _0x15ec2a=_0x27a659,{coordinator:_0x29c93a}=_0x3a3164;return l[_0x15ec2a(0x1a2)](l[_0x15ec2a(0x195)],{'children':[l[_0x15ec2a(0x170)](_0x15ec2a(0x164),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x15ec2a(0x169)}),l['jsx'](f[_0x15ec2a(0x1a7)],{'variant':_0x15ec2a(0x156),'onClick':()=>_0x29c93a['stopPresenting'](),'children':_0x15ec2a(0x209)})]});}function J(){const _0x10ef9d=_0x27a659;return l[_0x10ef9d(0x170)](l[_0x10ef9d(0x195)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x27a659(0x182)],z=(_0x1d8fb9,_0x48a849,_0xa011e2,_0x21d416)=>{const _0xe9ef9a=_0x27a659;for(var _0x5b6a2b=_0x21d416>0x1?void 0x0:_0x21d416?K(_0x48a849,_0xa011e2):_0x48a849,_0x38441d=_0x1d8fb9[_0xe9ef9a(0x196)]-0x1,_0x2d7656;_0x38441d>=0x0;_0x38441d--)(_0x2d7656=_0x1d8fb9[_0x38441d])&&(_0x5b6a2b=_0x2d7656(_0x5b6a2b)||_0x5b6a2b);return _0x5b6a2b;},L=(_0x1d5f06,_0x5e1c7a)=>(_0x538e32,_0x3baa03)=>_0x5e1c7a(_0x538e32,_0x3baa03,_0x1d5f06);exports[_0x27a659(0x216)]=class extends o[_0x27a659(0x19f)]{constructor(_0x29da6b,_0x2ab656){const _0x52fb4c=_0x27a659;super(),this[_0x52fb4c(0x150)]=_0x29da6b,this[_0x52fb4c(0x153)]=_0x2ab656,this[_0x52fb4c(0x15e)]();}[_0x27a659(0x15e)](){const _0x2d425e=_0x27a659;this[_0x2d425e(0x1a6)](this['_uiPartsService'][_0x2d425e(0x19d)](p['BuiltInUIPart'][_0x2d425e(0x1e7)],()=>p['connectInjector']($,this[_0x2d425e(0x150)])));}},exports[_0x27a659(0x216)]=z([L(0x0,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),L(0x1,p['IUIPartsService'])],exports[_0x27a659(0x216)]);const Q='live-share.config',w={};var X=Object[_0x27a659(0x182)],ee=(_0x371532,_0x5beec9,_0xebdf11,_0x2d133e)=>{const _0xb90683=_0x27a659;for(var _0xaeb4d2=_0x2d133e>0x1?void 0x0:_0x2d133e?X(_0x5beec9,_0xebdf11):_0x5beec9,_0x4667c3=_0x371532[_0xb90683(0x196)]-0x1,_0x289836;_0x4667c3>=0x0;_0x4667c3--)(_0x289836=_0x371532[_0x4667c3])&&(_0xaeb4d2=_0x289836(_0xaeb4d2)||_0xaeb4d2);return _0xaeb4d2;},te=(_0x3e3b94,_0x4552a6)=>(_0x17d524,_0x48e8d3)=>_0x4552a6(_0x17d524,_0x48e8d3,_0x3e3b94);function _0x1fc6(){const _0x56fdac=['getUnitId','IDLE','IUniverInstanceService','_startPresenting','SessionStatus','LiveShareService','_startFollowing','UniverLiveSharePlugin','use','94170bfSeIh','executeCommand','random','attrs','BehaviorSubject','getConfig','LIVESHARE_OPERATION','HEADER_MENU','onStarting','subscribe','evenodd','_beIdle','pluginName','shouldShareOperation','map','svg','865002cfBtjG','_config','Start','offline','Stop\x20following','DependentOn','_handleNewHost','CollaborationSessionService','http://www.w3.org/2000/svg','sessionStatus$','children','useEffect','event$','includes','_startLiveShareCoordinator','ICommandService','_sharedOperations','_handleOperation','defineProperty','type','getStatus','asObservable','dispose$','button','defIds','Stop\x20presenting','_handleOffline','LiveShare','parse','UniverIcon','createElement','presenter','_stopPresenting','set','touchDependencies','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','useRef','takeUntil','DesktopLiveShareController','1em','LiveShareCoordinator','status$','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','UniverInstanceType','0\x200\x2017\x2017','UniverCollaborationClientPlugin','_reporters','complete','_status','_injector','tryStartPresenting','unitId','_uiPartsService','RxDisposable','_univerInstanceService','default','getValue','getTypeOfUnitAdded$','fill','1362524KUsbTi','idle','_commandService','override','_mountLiveShare','500265ynlwSR','current','send','get','url(#$1','div','displayName','SetWorksheetActiveOperation','_entities','not-following','You\x27re\x20presenting\x20the\x20document','has','delete','registerInitialStateReporter','getLiveShareCoordinator','769990ySsMeU','throttleTime','jsx','tag','entries','_commandDisposable','path','find','CollaborationEvent','clear','LiveShareIcon','add','string','forEach','sheet','_unitID','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','LiveShareController','getOwnPropertyDescriptor','params','onRendered','registerSharedOperation','init','_handleTerminate','xlink:href','getMemberID','_handleOnline','dispose','108283OsnpnM','end','merge','toString','stringify','5kneAiP','univer-size-4','assign','getTypeOfUnitDisposed$','Fragment','length','FOLLOWING','_collabSessionService','PRESENTING','trim','getInitialStates','symbol','registerComponent','replace','Disposable','SetZoomRatioOperation','IConfigService','jsxs','_collabSession','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','none','disposeWithMe','Button','pipe','3YSeCxZ','Inject','UNIVER_LIVE_SHARE_PLUGIN','startFollowing','_handleNewChangeSets','forwardRef','LIVESHARE_NEW_HOST','DisposableCollection','335968iixnqB','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','parseProtocolChangeset','mask','idSuffix','_fetchOperations','NOT_FOLLOWING','Subject','currentColor','setConfig','_init','presenting','colorChannel1','univer-mb-3\x20univer-w-full\x20univer-text-sm','112ivYRPa','_stopFollowing','next','SAME_OPERATION_SHARE_INTERVAL','live-share-icon','defs','_liveShareService','_status$','OFFLINE','_presenter','data','CommandType','UNIVER_SHEET','useState','_configService','useDependency','Injector','toDisposable','OPERATION','unsubscribe','mergeOverrideWithDependencies','reverse','following'];_0x1fc6=function(){return _0x56fdac;};return _0x1fc6();}let m=class extends o[_0x27a659(0x19f)]{constructor(_0x443e09){const _0x2fa4f3=_0x27a659;super(),this[_0x2fa4f3(0x1c6)]=_0x443e09,this[_0x2fa4f3(0x1bc)]();}[_0x27a659(0x1bc)](){const _0xbd04f8=_0x27a659;[D[_0xbd04f8(0x1a0)]['id'],D['SetScrollOperation']['id'],C[_0xbd04f8(0x166)]['id']][_0xbd04f8(0x17b)](_0x4d5252=>{const _0x54ae0d=_0xbd04f8;this[_0x54ae0d(0x1a6)](this[_0x54ae0d(0x1c6)][_0x54ae0d(0x185)](_0x4d5252));});}};m=ee([te(0x0,o[_0x27a659(0x1aa)](E))],m);var ie=Object[_0x27a659(0x202)],se=Object[_0x27a659(0x182)],ne=(_0x18107d,_0x1ae42e,_0x5269aa)=>_0x1ae42e in _0x18107d?ie(_0x18107d,_0x1ae42e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5269aa}):_0x18107d[_0x1ae42e]=_0x5269aa,re=(_0x2fc9fa,_0x4598d4,_0x581596,_0x1efbc4)=>{const _0x53752b=_0x27a659;for(var _0x4b07d9=_0x1efbc4>0x1?void 0x0:_0x1efbc4?se(_0x4598d4,_0x581596):_0x4598d4,_0x83656c=_0x2fc9fa[_0x53752b(0x196)]-0x1,_0x52c9b6;_0x83656c>=0x0;_0x83656c--)(_0x52c9b6=_0x2fc9fa[_0x83656c])&&(_0x4b07d9=_0x52c9b6(_0x4b07d9)||_0x4b07d9);return _0x4b07d9;},N=(_0x2de363,_0x2fbcca)=>(_0x23b29b,_0x3d6449)=>_0x2fbcca(_0x23b29b,_0x3d6449,_0x2de363),A=(_0x168177,_0x3a25cc,_0x31a9a3)=>ne(_0x168177,typeof _0x3a25cc!='symbol'?_0x3a25cc+'':_0x3a25cc,_0x31a9a3);const oe=_0x27a659(0x1ab);exports[_0x27a659(0x1de)]=class extends o['Plugin']{constructor(_0x4f25af=w,_0x1431f6,_0x32c77c){const _0x28b7e5=_0x27a659;super(),this[_0x28b7e5(0x1f1)]=_0x4f25af,this[_0x28b7e5(0x150)]=_0x1431f6,this['_configService']=_0x32c77c;const {..._0x54670b}=o[_0x28b7e5(0x18e)]({},w,this['_config']);this['_configService'][_0x28b7e5(0x1bb)](Q,_0x54670b);}[_0x27a659(0x1e8)](){const _0xa0a435=_0x27a659;o['registerDependencies'](this[_0xa0a435(0x150)],o[_0xa0a435(0x1d4)]([[E],[exports[_0xa0a435(0x181)]],[m],[exports[_0xa0a435(0x216)]]],this['_config'][_0xa0a435(0x15d)])),o[_0xa0a435(0x212)](this[_0xa0a435(0x150)],[[m]]);}[_0x27a659(0x184)](){const _0x4b5504=_0x27a659;o[_0x4b5504(0x212)](this[_0x4b5504(0x150)],[[exports[_0x4b5504(0x216)]]]);}},A(exports[_0x27a659(0x1de)],_0x27a659(0x203),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x27a659(0x1de)],_0x27a659(0x1ec),oe),exports['UniverLiveSharePlugin']=re([o[_0x27a659(0x1f5)](b[_0x27a659(0x14c)]),N(0x1,o[_0x27a659(0x1aa)](o[_0x27a659(0x1d0)])),N(0x2,o[_0x27a659(0x1a1)])],exports[_0x27a659(0x1de)]),exports[_0x27a659(0x20b)]=$,exports[_0x27a659(0x1dc)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0xf435b4=_0x2638;(function(_0x88e7a7,_0x1ee3c5){const _0x17f274=_0x2638,_0xa99200=_0x88e7a7();while(!![]){try{const _0x3f0c09=parseInt(_0x17f274(0x1f3))/0x1+-parseInt(_0x17f274(0x227))/0x2*(-parseInt(_0x17f274(0x1b0))/0x3)+-parseInt(_0x17f274(0x1c7))/0x4*(parseInt(_0x17f274(0x22b))/0x5)+-parseInt(_0x17f274(0x1a9))/0x6*(-parseInt(_0x17f274(0x22c))/0x7)+parseInt(_0x17f274(0x201))/0x8*(parseInt(_0x17f274(0x161))/0x9)+parseInt(_0x17f274(0x17b))/0xa+-parseInt(_0x17f274(0x1e4))/0xb*(parseInt(_0x17f274(0x189))/0xc);if(_0x3f0c09===_0x1ee3c5)break;else _0xa99200['push'](_0xa99200['shift']());}catch(_0x56818f){_0xa99200['push'](_0xa99200['shift']());}}}(_0x3643,0xe9a4a));var T=Object[_0xf435b4(0x1f8)],U=(_0x13296d,_0x4f0c35,_0x2a8d3d)=>_0x4f0c35 in _0x13296d?T(_0x13296d,_0x4f0c35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a8d3d}):_0x13296d[_0x4f0c35]=_0x2a8d3d,_=(_0x7d695b,_0x2e4fd6,_0x2d2665)=>U(_0x7d695b,typeof _0x2e4fd6!='symbol'?_0x2e4fd6+'':_0x2e4fd6,_0x2d2665);Object[_0xf435b4(0x1f8)](exports,Symbol[_0xf435b4(0x184)],{'value':'Module'});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:_0x347d9e,..._0x1073aa}){const _0x6131e2=_0xf435b4,{icon:_0x147945,id:_0x470df9,className:_0x4a55ab,extend:_0x3053f8,..._0x1a6dcf}=_0x1073aa,_0x4ab9e7=('univerjs-icon\x20univerjs-icon-'+_0x470df9+'\x20'+(_0x4a55ab||''))[_0x6131e2(0x191)](),_0xf3c036=v[_0x6131e2(0x19b)]('_'+H());return j(_0x147945,''+_0x470df9,{'defIds':_0x147945['defIds'],'idSuffix':_0xf3c036[_0x6131e2(0x21a)]},{'ref':_0x347d9e,'className':_0x4ab9e7,..._0x1a6dcf},_0x3053f8);}function j(_0x2b922a,_0x42b51f,_0x231aca,_0x14167c,_0x27551d){const _0x3bbff8=_0xf435b4;return v[_0x3bbff8(0x21d)](_0x2b922a[_0x3bbff8(0x212)],{'key':_0x42b51f,...y(_0x2b922a,_0x231aca,_0x27551d),..._0x14167c},(F(_0x2b922a,_0x231aca)['children']||[])['map']((_0x1b0a7b,_0x5bf87d)=>j(_0x1b0a7b,_0x42b51f+'-'+_0x2b922a[_0x3bbff8(0x212)]+'-'+_0x5bf87d,_0x231aca,void 0x0,_0x27551d)));}function y(_0x4cd9b5,_0x3aecb8,_0x5e7245){const _0x31b5b8=_0xf435b4,_0x7a076f={..._0x4cd9b5[_0x31b5b8(0x1ce)]};_0x5e7245!=null&&_0x5e7245[_0x31b5b8(0x1ae)]&&_0x7a076f[_0x31b5b8(0x219)]===_0x31b5b8(0x1ae)&&(_0x7a076f['fill']=_0x5e7245[_0x31b5b8(0x1ae)]),_0x4cd9b5[_0x31b5b8(0x212)]===_0x31b5b8(0x178)&&_0x7a076f['id']&&(_0x7a076f['id']=_0x7a076f['id']+_0x3aecb8[_0x31b5b8(0x171)]),Object['entries'](_0x7a076f)[_0x31b5b8(0x195)](([_0x2f3554,_0x1df4dc])=>{const _0x1edf15=_0x31b5b8;_0x2f3554==='mask'&&typeof _0x1df4dc=='string'&&(_0x7a076f[_0x2f3554]=_0x1df4dc[_0x1edf15(0x198)](/url\(#(.*)\)/,_0x1edf15(0x1f4)+_0x3aecb8['idSuffix']+')'));});const {defIds:_0x3d9233}=_0x3aecb8;return!_0x3d9233||_0x3d9233['length']===0x0||(_0x4cd9b5[_0x31b5b8(0x212)]==='use'&&_0x7a076f['xlink:href']&&(_0x7a076f[_0x31b5b8(0x172)]=_0x7a076f[_0x31b5b8(0x172)]+_0x3aecb8[_0x31b5b8(0x171)]),Object[_0x31b5b8(0x1a1)](_0x7a076f)[_0x31b5b8(0x195)](([_0xf3399f,_0x5c924b])=>{const _0x2d57c8=_0x31b5b8;typeof _0x5c924b==_0x2d57c8(0x18d)&&(_0x7a076f[_0xf3399f]=_0x5c924b[_0x2d57c8(0x198)](/url\(#(.*)\)/,_0x2d57c8(0x1f4)+_0x3aecb8['idSuffix']+')'));})),_0x7a076f;}function F(_0x525229,_0x308668){const _0x5b6cbd=_0xf435b4;var _0xeb03ee;const {defIds:_0x17bf45}=_0x308668;return!_0x17bf45||_0x17bf45[_0x5b6cbd(0x183)]===0x0?_0x525229:_0x525229['tag']==='defs'&&((_0xeb03ee=_0x525229['children'])!=null&&_0xeb03ee[_0x5b6cbd(0x183)])?{..._0x525229,'children':_0x525229[_0x5b6cbd(0x1e6)][_0x5b6cbd(0x1ad)](_0x32ba7c=>typeof _0x32ba7c['attrs']['id']==_0x5b6cbd(0x18d)&&_0x17bf45&&_0x17bf45[_0x5b6cbd(0x1e7)](_0x32ba7c[_0x5b6cbd(0x1ce)]['id'])?{..._0x32ba7c,'attrs':{..._0x32ba7c[_0x5b6cbd(0x1ce)],'id':_0x32ba7c[_0x5b6cbd(0x1ce)]['id']+_0x308668[_0x5b6cbd(0x171)]}}:_0x32ba7c)}:_0x525229;}function H(){const _0x1d8e23=_0xf435b4;return Math['random']()[_0x1d8e23(0x167)](0x24)['substring'](0x2,0x8);}x[_0xf435b4(0x196)]=_0xf435b4(0x1d0);const V={'tag':'svg','attrs':{'xmlns':_0xf435b4(0x207),'fill':'none','viewBox':_0xf435b4(0x1dc),'width':_0xf435b4(0x19d),'height':'1em'},'children':[{'tag':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'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':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'d':_0xf435b4(0x232),'fillRule':'evenodd','clipRule':_0xf435b4(0x21b)}}]},R=v['forwardRef'](function(_0x46806f,_0x23515a){const _0x49547b=_0xf435b4;return v['createElement'](x,Object[_0x49547b(0x20a)]({},_0x46806f,{'id':_0x49547b(0x1b6),'ref':_0x23515a,'icon':V}));});R[_0xf435b4(0x196)]=_0xf435b4(0x208);class E extends o['Disposable']{constructor(){const _0x378a8b=_0xf435b4;super(...arguments),_(this,_0x378a8b(0x1ba),new Set()),_(this,_0x378a8b(0x186),new Set());}[_0xf435b4(0x1be)](_0x3fae82){const _0x2a32f7=_0xf435b4;return this[_0x2a32f7(0x1ba)][_0x2a32f7(0x233)](_0x3fae82),o[_0x2a32f7(0x225)](()=>this[_0x2a32f7(0x1ba)][_0x2a32f7(0x160)](_0x3fae82));}[_0xf435b4(0x21e)](_0x3b1b44){const _0x306f6e=_0xf435b4;return this[_0x306f6e(0x186)][_0x306f6e(0x233)](_0x3b1b44),o[_0x306f6e(0x225)](()=>this[_0x306f6e(0x186)][_0x306f6e(0x160)](_0x3b1b44));}[_0xf435b4(0x1c4)](_0xcbccdc){const _0x4eafce=_0xf435b4;return this[_0x4eafce(0x1ba)][_0x4eafce(0x1d9)](_0xcbccdc);}[_0xf435b4(0x1d3)](_0x5084a8){const _0x182e2b=_0xf435b4;return Array[_0x182e2b(0x16c)](this['_reporters'])[_0x182e2b(0x1ad)](_0x54a03e=>_0x54a03e(_0x5084a8));}}function _0x3643(){const _0x35f83b=['LIVESHARE_OPERATION','getLiveShareCoordinator','40pXTdbF','CommandType','live-share.config','sheet','useState','getUnitId','http://www.w3.org/2000/svg','LiveShareIcon','startFollowing','assign','Disposable','stopPresenting','Present\x20this\x20document','getOwnPropertyDescriptor','setConfig','_startPresenting','Start','tag','_init','OFFLINE','DependentOn','takeUntil','button','type','fill','current','evenodd','LiveShareController','createElement','registerInitialStateReporter','IUniverInstanceService','UNIVER_SHEET','useDependency','_status','UNIVER_UNKNOWN','set','toDisposable','_handleOnline','3032754XQqMTf','next','UniverLiveSharePlugin','_status$','115iLGbRo','3160052KLqawM','FOLLOWING','Fragment','DisposableCollection','PRESENTING','event$','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','add','delete','2153457pRRjHm','unsubscribe','_beIdle','data','values','You\x27are\x20offline.','toString','registerComponent','parseProtocolChangeset','LiveShareService','touchDependencies','from','operations','DesktopLiveShareController','_configService','executeCommand','idSuffix','xlink:href','clear','status$','LIVESHARE_NEW_HOST','_mountLiveShare','LIVESHARE_TERMINATE','mask','createInstance','LIVESHARE_FETCH_OPERATIONS','18537460iQdoYv','UniverInstanceType','_commandDisposable','getStatus','getMemberID','_commandService','useObservable','OPERATION','length','toStringTag','Subject','_reporters','reverse','not-following','3158424CPohGi','presenter','onStarting','IDLE','string','onRendered','Stop\x20following','_startFollowing','trim','text','_stopPresenting','stringify','forEach','displayName','mergeOverrideWithDependencies','replace','ONLINE','IUIPartsService','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','end','idle','LiveShareCoordinator','entries','_handleNewHost','NEW_CHANGESETS','_unitID','throttleTime','BehaviorSubject','_collabSessionService','Start\x20following','6FKpnbg','params','jsxs','parse','map','colorChannel1','_handleOperation','3TFkNdH','send','div','connectInjector','Plugin','Inject','live-share-icon','pipe','_presenter','currentColor','_sharedOperations','memberID','get','getConfig','registerSharedOperation','univer-size-4','_handleTerminate','jsx','You\x27re\x20following\x20the\x20presenter','useEffect','shouldShareOperation','override','SAME_OPERATION_SHARE_INTERVAL','34156nSBNMv','_config','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','Dropdown','SetZoomRatioOperation','UniverCollaborationClientPlugin','attrs','find','UniverIcon','pluginName','_injector','getInitialStates','Injector','HEADER_MENU','_uiPartsService','complete','_liveShareService','has','IConfigService','subscribe','0\x200\x2017\x2017','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','following','requireSession','You\x27re\x20not\x20following\x20the\x20presenter','LiveShare','_stopFollowing','dispose$','198tsgkde','merge','children','includes','Button','_univerInstanceService','NOT_FOLLOWING','_entities','path','You\x27re\x20presenting\x20the\x20document','clsx','stopFollowing','unitId','_startLiveShareCoordinator','offline','873111oqREFd','url(#$1','CollaborationEvent','mutations','RxDisposable','defineProperty','_handleNewChangeSets','getLiveShareCoordinatorSync','presenting','dispose','_collabSession','ICommandService'];_0x3643=function(){return _0x35f83b;};return _0x3643();}var M=Object['getOwnPropertyDescriptor'],P=(_0x11fc63,_0x1c9e52,_0x49c45a,_0x4ba279)=>{const _0x1a719e=_0xf435b4;for(var _0x5bd6a4=_0x4ba279>0x1?void 0x0:_0x4ba279?M(_0x1c9e52,_0x49c45a):_0x1c9e52,_0x4ae1b6=_0x11fc63[_0x1a719e(0x183)]-0x1,_0x11b466;_0x4ae1b6>=0x0;_0x4ae1b6--)(_0x11b466=_0x11fc63[_0x4ae1b6])&&(_0x5bd6a4=_0x11b466(_0x5bd6a4)||_0x5bd6a4);return _0x5bd6a4;},S=(_0x1dec26,_0x3f922b)=>(_0x163ed5,_0x5470b8)=>_0x3f922b(_0x163ed5,_0x5470b8,_0x1dec26);exports[_0xf435b4(0x21c)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x491a93,_0x3ee0a2,_0x4c4106){const _0x1b3545=_0xf435b4;super(),_(this,_0x1b3545(0x1eb),new Map()),(this[_0x1b3545(0x1e9)]=_0x491a93,this[_0x1b3545(0x1d2)]=_0x3ee0a2,this[_0x1b3545(0x1a7)]=_0x4c4106,this[_0x1b3545(0x213)]());}async[_0xf435b4(0x200)](_0xee1996){const _0x1b174a=_0xf435b4;return this[_0x1b174a(0x1eb)]['has'](_0xee1996)||await this[_0x1b174a(0x1f1)](_0xee1996),this[_0x1b174a(0x1eb)][_0x1b174a(0x1bc)](_0xee1996);}[_0xf435b4(0x1fa)](_0x49c1d3){const _0x55ca83=_0xf435b4;var _0x10fb9d;return(_0x10fb9d=this['_entities'][_0x55ca83(0x1bc)](_0x49c1d3))!=null?_0x10fb9d:null;}[_0xf435b4(0x213)](){const _0x2ebb28=_0xf435b4;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x2ebb28(0x220)])['pipe'](I['takeUntil'](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](async _0x5b30f2=>{const _0x379693=_0x2ebb28,_0x374aad=_0x5b30f2[_0x379693(0x206)]();this[_0x379693(0x1eb)]['has'](_0x374aad)||this[_0x379693(0x1f1)](_0x374aad);}),this[_0x2ebb28(0x1e9)]['getTypeOfUnitDisposed$'](o[_0x2ebb28(0x17c)][_0x2ebb28(0x220)])[_0x2ebb28(0x1b7)](I[_0x2ebb28(0x216)](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](_0x4dfeca=>{const _0xf45881=_0x2ebb28,_0x3e8030=_0x4dfeca[_0xf45881(0x206)](),_0x30aa1f=this['_entities'][_0xf45881(0x1bc)](_0x3e8030);_0x30aa1f==null||_0x30aa1f[_0xf45881(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x264f64){const _0x11f431=_0xf435b4,_0x2874e7=await this[_0x11f431(0x1a7)][_0x11f431(0x1df)](_0x264f64),_0x1381cc=this[_0x11f431(0x1d2)][_0x11f431(0x179)](exports[_0x11f431(0x1a0)],_0x264f64,_0x2874e7);return _0x1381cc['init'](),this['_entities']['set'](_0x264f64,_0x1381cc),_0x1381cc;}},exports[_0xf435b4(0x21c)]=P([S(0x0,o[_0xf435b4(0x21f)]),S(0x1,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),S(0x2,o[_0xf435b4(0x1b5)](b['CollaborationSessionService']))],exports[_0xf435b4(0x21c)]);var u=(_0x3bc5b2=>(_0x3bc5b2[_0xf435b4(0x214)]='offline',_0x3bc5b2[_0xf435b4(0x18c)]=_0xf435b4(0x19f),_0x3bc5b2[_0xf435b4(0x22d)]=_0xf435b4(0x1de),_0x3bc5b2[_0xf435b4(0x1ea)]=_0xf435b4(0x188),_0x3bc5b2['PRESENTING']='presenting',_0x3bc5b2))(u||{});const k=_0xf435b4(0x1c6),q=0xc8;exports[_0xf435b4(0x1a0)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x4d9bb9,_0x2ba5f7,_0x116c30,_0xab4ef7,_0x45af61){const _0x386c76=_0xf435b4;super(),_(this,'_status$',new O[(_0x386c76(0x1a6))](_0x386c76(0x19f))),_(this,_0x386c76(0x174),this['_status$']['asObservable']()),_(this,_0x386c76(0x213),!0x1),_(this,_0x386c76(0x17d),null),_(this,_0x386c76(0x1b8),null),(this['_unitID']=_0x4d9bb9,this[_0x386c76(0x1fd)]=_0x2ba5f7,this[_0x386c76(0x16f)]=_0x116c30,this['_liveShareService']=_0xab4ef7,this[_0x386c76(0x180)]=_0x45af61);}get[_0xf435b4(0x222)](){const _0x378431=_0xf435b4;return this[_0x378431(0x22a)]['getValue']();}[_0xf435b4(0x1fc)](){const _0x501b72=_0xf435b4;var _0x29e503;(_0x29e503=this[_0x501b72(0x17d)])==null||_0x29e503[_0x501b72(0x1fc)](),this[_0x501b72(0x22a)]['next'](_0x501b72(0x19f)),this[_0x501b72(0x22a)]['complete']();}[_0xf435b4(0x17e)](){const _0x3a24d0=_0xf435b4;return this[_0x3a24d0(0x222)];}['init'](){const _0x4d2e9b=_0xf435b4;this[_0x4d2e9b(0x213)]||(this[_0x4d2e9b(0x213)]=!0x0,this[_0x4d2e9b(0x1fd)]['sessionStatus$']['pipe'](I[_0x4d2e9b(0x216)](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0xc0e262=>{const _0x131240=_0x4d2e9b;switch(_0xc0e262){case b['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case b['SessionStatus'][_0x131240(0x199)]:this[_0x131240(0x226)]();break;}}),this[_0x4d2e9b(0x1fd)][_0x4d2e9b(0x231)]['pipe'](I['takeUntil'](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0x4de609=>{const _0x4b4ee9=_0x4d2e9b,{eventID:_0x24acbd}=_0x4de609;switch(_0x24acbd){case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x175)]:this[_0x4b4ee9(0x1a2)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)]['LIVESHARE_OPERATION']:this[_0x4b4ee9(0x1af)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x177)]:this['_handleTerminate']();break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x1a3)]:this['_handleNewChangeSets'](_0x4de609);break;}}));}['tryStartPresenting'](){const _0x59d144=_0xf435b4;this[_0x59d144(0x1fd)][_0x59d144(0x1b1)]({'eventID':d[_0x59d144(0x1f5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x59d144(0x1a4)],'userID':this[_0x59d144(0x1fd)][_0x59d144(0x17f)]()}},this[_0x59d144(0x1a4)]);}['stopPresenting'](){const _0x313316=_0xf435b4;this[_0x313316(0x222)]===_0x313316(0x1fb)&&(this[_0x313316(0x22a)][_0x313316(0x228)]('idle'),this[_0x313316(0x1fd)]['send']({'eventID':d[_0x313316(0x1f5)][_0x313316(0x177)],'data':{'unitID':this[_0x313316(0x1a4)]}},this['_unitID']));}['startFollowing'](){const _0x496ee1=_0xf435b4;this[_0x496ee1(0x222)]===_0x496ee1(0x188)&&(this[_0x496ee1(0x22a)]['next'](_0x496ee1(0x1de)),this[_0x496ee1(0x190)]());}[_0xf435b4(0x1ef)](){const _0x496a1b=_0xf435b4;this[_0x496a1b(0x222)]==='following'&&this[_0x496a1b(0x1e2)]();}[_0xf435b4(0x1a2)](_0x3c5186){const _0x1ef2b6=_0xf435b4,{presenter:_0x465f4b}=_0x3c5186[_0x1ef2b6(0x164)],_0x4a5e1d=this['_collabSession']['getMemberID']();this[_0x1ef2b6(0x1b8)]=_0x465f4b,_0x465f4b===_0x4a5e1d?(this[_0x1ef2b6(0x1e2)](),this[_0x1ef2b6(0x210)]()):this['_status']!==_0x1ef2b6(0x188)&&(this[_0x1ef2b6(0x193)](),this[_0x1ef2b6(0x190)]());}['_fetchOperations'](){const _0x14c379=_0xf435b4,_0x659c40={'eventID':d[_0x14c379(0x1f5)][_0x14c379(0x17a)]};this[_0x14c379(0x1fd)][_0x14c379(0x1b1)](_0x659c40,this['_unitID']);}[_0xf435b4(0x1c0)](){const _0x22779d=_0xf435b4;this[_0x22779d(0x1b8)]=null,this['_status']!=='presenting'&&this[_0x22779d(0x163)]();}[_0xf435b4(0x1f9)](_0x291ebc){const _0x431555=_0xf435b4;if(this['_status']===_0x431555(0x1de)&&this[_0x431555(0x1b8)]===_0x291ebc[_0x431555(0x164)][_0x431555(0x1bb)]){const _0xce14a8=d[_0x431555(0x169)](_0x291ebc[_0x431555(0x164)])[_0x431555(0x1f6)][_0x431555(0x187)]()[_0x431555(0x1cf)](_0x2f863b=>_0x2f863b['id']===C['InsertSheetMutation']['id']);if(_0xce14a8){const _0x5ae678=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x1f0)],_0x2d4b01=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x204)]['id'];setTimeout(()=>{const _0x2b9ac3=_0x431555;this[_0x2b9ac3(0x180)][_0x2b9ac3(0x170)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ae678,'subUnitId':_0x2d4b01},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1c0c4e=_0xf435b4;this[_0x1c0c4e(0x22a)][_0x1c0c4e(0x228)](_0x1c0c4e(0x1fb));const _0x222072=new Map(),_0x3e39ae=this[_0x1c0c4e(0x17d)]=new o[(_0x1c0c4e(0x22f))]();_0x3e39ae[_0x1c0c4e(0x233)](o[_0x1c0c4e(0x225)](()=>{const _0x5cea14=_0x1c0c4e;_0x222072['forEach'](_0x25eb78=>_0x25eb78[_0x5cea14(0x1d7)]()),_0x222072[_0x5cea14(0x173)]();})),_0x3e39ae[_0x1c0c4e(0x233)](this[_0x1c0c4e(0x180)]['onCommandExecuted'](_0x1ec617=>{const _0x257eda=_0x1c0c4e;var _0x34df64;if(_0x1ec617[_0x257eda(0x218)]!==o[_0x257eda(0x202)][_0x257eda(0x182)]||!this[_0x257eda(0x1d8)][_0x257eda(0x1c4)](_0x1ec617['id']))return;const {id:_0x1da636}=_0x1ec617;let _0x5f2f17;_0x222072[_0x257eda(0x1d9)](_0x1da636)?_0x5f2f17=_0x222072[_0x257eda(0x1bc)](_0x1da636):(_0x5f2f17=new O[(_0x257eda(0x185))](),_0x222072[_0x257eda(0x224)](_0x1da636,_0x5f2f17),_0x5f2f17['pipe'](I[_0x257eda(0x1a5)]((_0x34df64=this['_configService'][_0x257eda(0x1bd)](k))!=null?_0x34df64:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x578224=>{const _0x304c0f=_0x257eda;this[_0x304c0f(0x1fd)][_0x304c0f(0x1b1)]({'eventID':d[_0x304c0f(0x1f5)][_0x304c0f(0x1ff)],'data':{'unitID':this[_0x304c0f(0x1a4)],'operations':{[_0x578224['id']]:{'id':_0x578224['id'],'params':JSON[_0x304c0f(0x194)](_0x578224[_0x304c0f(0x1aa)])}}}},this[_0x304c0f(0x1a4)]);})),_0x5f2f17[_0x257eda(0x228)](_0x1ec617);})),this[_0x1c0c4e(0x1d8)]['getInitialStates'](this[_0x1c0c4e(0x1a4)])[_0x1c0c4e(0x195)](_0x43d3df=>this[_0x1c0c4e(0x1fd)][_0x1c0c4e(0x1b1)]({'eventID':d[_0x1c0c4e(0x1f5)][_0x1c0c4e(0x1ff)],'data':{'unitID':this[_0x1c0c4e(0x1a4)],'operations':{[_0x43d3df['id']]:{'id':_0x43d3df['id'],'params':JSON[_0x1c0c4e(0x194)](_0x43d3df[_0x1c0c4e(0x1aa)])}}}},this['_unitID']));}[_0xf435b4(0x193)](){const _0x556d06=_0xf435b4;var _0x4f4b60;this[_0x556d06(0x22a)][_0x556d06(0x228)](_0x556d06(0x19f)),(_0x4f4b60=this[_0x556d06(0x17d)])==null||_0x4f4b60[_0x556d06(0x1fc)](),this[_0x556d06(0x17d)]=null;}['_startFollowing'](){const _0x7fa547=_0xf435b4;var _0x5ccd48;(_0x5ccd48=this['_commandDisposable'])==null||_0x5ccd48['dispose'](),this[_0x7fa547(0x22a)][_0x7fa547(0x228)](_0x7fa547(0x1de));}['_beIdle'](){const _0x391691=_0xf435b4;var _0x470e74;this[_0x391691(0x22a)][_0x391691(0x228)](_0x391691(0x19f)),(_0x470e74=this['_commandDisposable'])==null||_0x470e74['dispose'](),this[_0x391691(0x17d)]=null;}[_0xf435b4(0x1e2)](){const _0x1d004a=_0xf435b4;var _0x1d4d48;this[_0x1d004a(0x22a)]['next']('not-following'),(_0x1d4d48=this[_0x1d004a(0x17d)])==null||_0x1d4d48[_0x1d004a(0x1fc)]();}[_0xf435b4(0x1af)](_0x58334){const _0x1ec845=_0xf435b4;if(['presenting',_0x1ec845(0x188),'offline'][_0x1ec845(0x1e7)](this['_status'])||!_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]||_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]===this['_collabSession'][_0x1ec845(0x17f)]())return;this[_0x1ec845(0x222)]==='idle'&&this[_0x1ec845(0x190)]();const _0x143ea4=_0x58334[_0x1ec845(0x164)][_0x1ec845(0x16d)];Object[_0x1ec845(0x165)](_0x143ea4)[_0x1ec845(0x195)](_0xcc27ab=>{const _0x56e29b=_0x1ec845;this[_0x56e29b(0x180)][_0x56e29b(0x170)](_0xcc27ab['id'],_0xcc27ab['params']?JSON[_0x56e29b(0x1ac)](_0xcc27ab[_0x56e29b(0x1aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x50e026=_0xf435b4;var _0x427e12;this['_status$'][_0x50e026(0x228)](_0x50e026(0x1f2)),(_0x427e12=this[_0x50e026(0x17d)])==null||_0x427e12[_0x50e026(0x1fc)]();}[_0xf435b4(0x226)](){const _0x151a88=_0xf435b4;this[_0x151a88(0x22a)][_0x151a88(0x228)](_0x151a88(0x19f)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0xf435b4(0x1da)]),S(0x3,o[_0xf435b4(0x1b5)](E)),S(0x4,o[_0xf435b4(0x1fe)])],exports['LiveShareCoordinator']);function $(){const _0x59b300=_0xf435b4,_0x1feddf=p[_0x59b300(0x221)](exports[_0x59b300(0x21c)]),_0x3a1ff0=p[_0x59b300(0x221)](o[_0x59b300(0x21f)]),_0x5c6f81=p[_0x59b300(0x181)](()=>_0x3a1ff0['getCurrentTypeOfUnit$'](o[_0x59b300(0x17c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x241b8b,_0xe58aaa]=v[_0x59b300(0x205)](null),[_0x223195,_0x44cbf3]=v[_0x59b300(0x205)](u[_0x59b300(0x18c)]),_0x519556=v[_0x59b300(0x19b)](null);return v[_0x59b300(0x1c3)](()=>(_0x5c6f81&&_0x1feddf[_0x59b300(0x200)](_0x5c6f81[_0x59b300(0x206)]())['then'](_0x29b453=>{const _0x5516b5=_0x59b300;_0xe58aaa(_0x29b453),_0x519556[_0x5516b5(0x21a)]=_0x29b453['status$'][_0x5516b5(0x1db)](_0x46d260=>{_0x44cbf3(_0x46d260);});}),()=>{const _0x5957d4=_0x59b300;var _0x512fb2;(_0x512fb2=_0x519556['current'])==null||_0x512fb2[_0x5957d4(0x162)](),_0x519556[_0x5957d4(0x21a)]=null;}),[_0x5c6f81,_0x1feddf]),_0x241b8b?l[_0x59b300(0x1c1)](f[_0x59b300(0x1cb)],{'align':_0x59b300(0x19e),'disabled':_0x223195===u[_0x59b300(0x214)],'className':_0x59b300(0x1dd),'overlay':l[_0x59b300(0x1c1)](W,{'status':_0x223195,'coordinator':_0x241b8b}),'children':l[_0x59b300(0x1c1)](_0x59b300(0x217),{'className':f[_0x59b300(0x1ee)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x223195===u[_0x59b300(0x214)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223195!==u[_0x59b300(0x214)]}),'type':_0x59b300(0x217),'children':l[_0x59b300(0x1c1)](R,{'className':_0x59b300(0x1bf)})})}):null;}function W(_0x440097){const _0x3230f8=_0xf435b4,{status:_0x26f757,coordinator:_0x1b8d51}=_0x440097;switch(_0x26f757){case u[_0x3230f8(0x18c)]:return l['jsx'](G,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x22d)]:return l[_0x3230f8(0x1c1)](B,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x1ea)]:return l[_0x3230f8(0x1c1)](Y,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x214)]:return l['jsx'](J,{});case u[_0x3230f8(0x230)]:return l[_0x3230f8(0x1c1)](Z,{'coordinator':_0x1b8d51});default:return null;}}function G(_0x40f02b){const _0x991ec=_0xf435b4,{coordinator:_0x511bf6}=_0x40f02b;return l[_0x991ec(0x1ab)](l[_0x991ec(0x22e)],{'children':[l[_0x991ec(0x1c1)](_0x991ec(0x1b2),{'className':_0x991ec(0x19c),'children':_0x991ec(0x20d)}),l[_0x991ec(0x1c1)](f[_0x991ec(0x1e8)],{'onClick':()=>_0x511bf6['tryStartPresenting'](),'children':_0x991ec(0x211)})]});}function B(_0x32dafa){const _0x5d2cbf=_0xf435b4,{coordinator:_0x28ef33}=_0x32dafa;return l[_0x5d2cbf(0x1ab)](l[_0x5d2cbf(0x22e)],{'children':[l[_0x5d2cbf(0x1c1)](_0x5d2cbf(0x1b2),{'className':_0x5d2cbf(0x19c),'children':_0x5d2cbf(0x1c2)}),l[_0x5d2cbf(0x1c1)](f['Button'],{'onClick':()=>_0x28ef33[_0x5d2cbf(0x1ef)](),'children':_0x5d2cbf(0x18f)})]});}function Y(_0x2b576f){const _0x5f4789=_0xf435b4,{coordinator:_0x1bcf36}=_0x2b576f;return l['jsxs'](l[_0x5f4789(0x22e)],{'children':[l[_0x5f4789(0x1c1)](_0x5f4789(0x1b2),{'className':_0x5f4789(0x19c),'children':_0x5f4789(0x1e0)}),l[_0x5f4789(0x1c1)](f[_0x5f4789(0x1e8)],{'variant':_0x5f4789(0x192),'onClick':()=>_0x1bcf36[_0x5f4789(0x209)](),'children':_0x5f4789(0x1a8)})]});}function Z(_0x560678){const _0x5f40a7=_0xf435b4,{coordinator:_0x58c010}=_0x560678;return l[_0x5f40a7(0x1ab)](l['Fragment'],{'children':[l[_0x5f40a7(0x1c1)](_0x5f40a7(0x1b2),{'className':_0x5f40a7(0x19c),'children':_0x5f40a7(0x1ed)}),l['jsx'](f[_0x5f40a7(0x1e8)],{'variant':'default','onClick':()=>_0x58c010[_0x5f40a7(0x20c)](),'children':'Stop\x20presenting'})]});}function J(){const _0x25539c=_0xf435b4;return l[_0x25539c(0x1c1)](l[_0x25539c(0x22e)],{'children':_0x25539c(0x166)});}var K=Object[_0xf435b4(0x20e)],z=(_0x21da77,_0x104981,_0x264bae,_0x11d00b)=>{const _0x1cb28e=_0xf435b4;for(var _0x1835f0=_0x11d00b>0x1?void 0x0:_0x11d00b?K(_0x104981,_0x264bae):_0x104981,_0x4aa6db=_0x21da77[_0x1cb28e(0x183)]-0x1,_0xdf39f2;_0x4aa6db>=0x0;_0x4aa6db--)(_0xdf39f2=_0x21da77[_0x4aa6db])&&(_0x1835f0=_0xdf39f2(_0x1835f0)||_0x1835f0);return _0x1835f0;},L=(_0x1ca5c3,_0x84885a)=>(_0x5b4cca,_0xf4dac1)=>_0x84885a(_0x5b4cca,_0xf4dac1,_0x1ca5c3);exports[_0xf435b4(0x16e)]=class extends o[_0xf435b4(0x20b)]{constructor(_0x3c2cc6,_0x4fe4b9){const _0x51f462=_0xf435b4;super(),this[_0x51f462(0x1d2)]=_0x3c2cc6,this['_uiPartsService']=_0x4fe4b9,this[_0x51f462(0x176)]();}[_0xf435b4(0x176)](){const _0x235658=_0xf435b4;this[_0x235658(0x1ca)](this[_0x235658(0x1d6)][_0x235658(0x168)](p['BuiltInUIPart'][_0x235658(0x1d5)],()=>p[_0x235658(0x1b3)]($,this[_0x235658(0x1d2)])));}},exports[_0xf435b4(0x16e)]=z([L(0x0,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),L(0x1,p[_0xf435b4(0x19a)])],exports[_0xf435b4(0x16e)]);function _0x2638(_0x3ec3e3,_0x31646c){_0x3ec3e3=_0x3ec3e3-0x160;const _0x364392=_0x3643();let _0x263844=_0x364392[_0x3ec3e3];return _0x263844;}const Q=_0xf435b4(0x203),w={};var X=Object[_0xf435b4(0x20e)],ee=(_0x53246a,_0x865329,_0x263ed4,_0x11ecf4)=>{const _0x246d79=_0xf435b4;for(var _0x135bf5=_0x11ecf4>0x1?void 0x0:_0x11ecf4?X(_0x865329,_0x263ed4):_0x865329,_0x1bdb6c=_0x53246a[_0x246d79(0x183)]-0x1,_0xbfe7a1;_0x1bdb6c>=0x0;_0x1bdb6c--)(_0xbfe7a1=_0x53246a[_0x1bdb6c])&&(_0x135bf5=_0xbfe7a1(_0x135bf5)||_0x135bf5);return _0x135bf5;},te=(_0xac534c,_0x33b24d)=>(_0x2dd846,_0xf7db05)=>_0x33b24d(_0x2dd846,_0xf7db05,_0xac534c);let m=class extends o['Disposable']{constructor(_0x1e2b0f){const _0x2a2abc=_0xf435b4;super(),this['_liveShareService']=_0x1e2b0f,this[_0x2a2abc(0x213)]();}['_init'](){const _0x509a4c=_0xf435b4;[D[_0x509a4c(0x1cc)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x509a4c(0x195)](_0x3fc3ca=>{const _0x1a99a8=_0x509a4c;this[_0x1a99a8(0x1ca)](this[_0x1a99a8(0x1d8)][_0x1a99a8(0x1be)](_0x3fc3ca));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xf435b4(0x1f8)],se=Object[_0xf435b4(0x20e)],ne=(_0x2453e7,_0x516dad,_0x20603c)=>_0x516dad in _0x2453e7?ie(_0x2453e7,_0x516dad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20603c}):_0x2453e7[_0x516dad]=_0x20603c,re=(_0x8e6f30,_0x486f12,_0x166dc7,_0x2fc172)=>{const _0x59d666=_0xf435b4;for(var _0x5b8cc1=_0x2fc172>0x1?void 0x0:_0x2fc172?se(_0x486f12,_0x166dc7):_0x486f12,_0x509634=_0x8e6f30[_0x59d666(0x183)]-0x1,_0x9d1ee3;_0x509634>=0x0;_0x509634--)(_0x9d1ee3=_0x8e6f30[_0x509634])&&(_0x5b8cc1=_0x9d1ee3(_0x5b8cc1)||_0x5b8cc1);return _0x5b8cc1;},N=(_0x152d49,_0x591861)=>(_0x2a18bd,_0x359ee5)=>_0x591861(_0x2a18bd,_0x359ee5,_0x152d49),A=(_0x35d1ee,_0xce2330,_0xbced61)=>ne(_0x35d1ee,typeof _0xce2330!='symbol'?_0xce2330+'':_0xce2330,_0xbced61);const oe=_0xf435b4(0x1c9);exports['UniverLiveSharePlugin']=class extends o[_0xf435b4(0x1b4)]{constructor(_0xd8fdb5=w,_0xe713d9,_0x314456){const _0x44c10e=_0xf435b4;super(),this[_0x44c10e(0x1c8)]=_0xd8fdb5,this['_injector']=_0xe713d9,this[_0x44c10e(0x16f)]=_0x314456;const {..._0x17fbed}=o[_0x44c10e(0x1e5)]({},w,this['_config']);this[_0x44c10e(0x16f)][_0x44c10e(0x20f)](Q,_0x17fbed);}[_0xf435b4(0x18b)](){const _0x334199=_0xf435b4;o['registerDependencies'](this[_0x334199(0x1d2)],o[_0x334199(0x197)]([[E],[exports[_0x334199(0x21c)]],[m],[exports[_0x334199(0x16e)]]],this[_0x334199(0x1c8)][_0x334199(0x1c5)])),o[_0x334199(0x16b)](this[_0x334199(0x1d2)],[[m]]);}[_0xf435b4(0x18e)](){const _0x119433=_0xf435b4;o[_0x119433(0x16b)](this[_0x119433(0x1d2)],[[exports[_0x119433(0x16e)]]]);}},A(exports[_0xf435b4(0x229)],'type',o[_0xf435b4(0x17c)][_0xf435b4(0x223)]),A(exports[_0xf435b4(0x229)],_0xf435b4(0x1d1),oe),exports['UniverLiveSharePlugin']=re([o[_0xf435b4(0x215)](b[_0xf435b4(0x1cd)]),N(0x1,o[_0xf435b4(0x1b5)](o['Injector'])),N(0x2,o[_0xf435b4(0x1da)])],exports[_0xf435b4(0x229)]),exports[_0xf435b4(0x1e1)]=$,exports[_0xf435b4(0x16a)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2561c3=_0x639e;function _0x639e(_0x26429c,_0x5f5b79){_0x26429c=_0x26429c-0xcc;const _0x17e9a0=_0x17e9();let _0x639ef=_0x17e9a0[_0x26429c];return _0x639ef;}(function(_0x122c71,_0x4438d4){const _0x4c5884=_0x639e,_0x47910b=_0x122c71();while(!![]){try{const _0x2c6626=-parseInt(_0x4c5884(0xd2))/0x1+-parseInt(_0x4c5884(0xd3))/0x2+parseInt(_0x4c5884(0xe6))/0x3*(-parseInt(_0x4c5884(0xe3))/0x4)+-parseInt(_0x4c5884(0xda))/0x5*(parseInt(_0x4c5884(0xdc))/0x6)+parseInt(_0x4c5884(0xcd))/0x7+-parseInt(_0x4c5884(0xeb))/0x8*(parseInt(_0x4c5884(0xd1))/0x9)+-parseInt(_0x4c5884(0xce))/0xa*(-parseInt(_0x4c5884(0xd9))/0xb);if(_0x2c6626===_0x4438d4)break;else _0x47910b['push'](_0x47910b['shift']());}catch(_0x245698){_0x47910b['push'](_0x47910b['shift']());}}}(_0x17e9,0x2e84b));import{LiveShareController as _0x204761,LiveShareStatus as _0x5af292}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x585a07}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xabbfd8}from'@univerjs/sheets';import{SetScrollOperation as _0x2dfe55}from'@univerjs/sheets-ui';import{FRange as _0x426e48}from'@univerjs/sheets/facade';import{FUniver as _0x29f894,FEnum as _0x444374}from'@univerjs/core/facade';class I extends _0x426e48{[_0x2561c3(0xdd)](_0x3056de,_0x5b0d90,_0x35a303,_0x52bbd4,_0x51f56c){const _0x5b3b59=_0x2561c3,_0x59bb58=_0x3056de[_0x5b3b59(0xe5)](_0x204761),_0x1e4fd5=_0x3056de[_0x5b3b59(0xe5)](_0x585a07),_0x549598=_0x5b0d90['getUnitId'](),_0x3ff9f1=_0x5b0d90[_0x5b3b59(0xe4)](),_0x108e77=_0x59bb58[_0x5b3b59(0xcc)](_0x549598);(_0x108e77==null?void 0x0:_0x108e77[_0x5b3b59(0xd6)]())!==_0x5af292['PRESENTING']||(_0x35a303[_0x5b3b59(0xd4)]()!==_0x3ff9f1[_0x5b3b59(0xd4)]()&&this[_0x5b3b59(0xdf)][_0x5b3b59(0xe9)](_0xabbfd8['id'],{'unitId':_0x549598,'subUnitId':_0x35a303['getSheetId']()}),!_0x1e4fd5['getRenderById'](_0x549598))||_0x51f56c['syncExecuteCommand'](_0x2dfe55['id'],{'unitId':_0x5b0d90[_0x5b3b59(0xe7)](),'sheetId':_0x35a303['getSheetId'](),'sheetViewStartRow':_0x52bbd4['startRow'],'sheetViewStartColumn':_0x52bbd4[_0x5b3b59(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x426e48[_0x2561c3(0xe8)](I);class m extends _0x29f894{['getLiveShareStatus'](){const _0x5775fa=_0x2561c3;var _0x4803a2,_0x453d4;const _0x3dca3c=this[_0x5775fa(0xe0)][_0x5775fa(0xe5)](_0x204761),_0x5308c1=(_0x4803a2=this[_0x5775fa(0xdb)]())==null?void 0x0:_0x4803a2[_0x5775fa(0xea)]();if(!_0x5308c1)throw new Error(_0x5775fa(0xe1));const _0x4a1981=_0x3dca3c[_0x5775fa(0xcc)](_0x5308c1);return(_0x453d4=_0x4a1981==null?void 0x0:_0x4a1981[_0x5775fa(0xd6)]())!=null?_0x453d4:_0x5af292[_0x5775fa(0xd0)];}[_0x2561c3(0xe2)](){const _0x56ac37=_0x2561c3;var _0x2a1a51;const _0x5f2911=this[_0x56ac37(0xe0)][_0x56ac37(0xe5)](_0x204761),_0x2e43f9=(_0x2a1a51=this[_0x56ac37(0xdb)]())==null?void 0x0:_0x2a1a51['getId']();if(!_0x2e43f9)throw new Error(_0x56ac37(0xe1));const _0xea5ea8=_0x5f2911[_0x56ac37(0xcc)](_0x2e43f9);if(!_0xea5ea8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xea5ea8['startFollowing']();}[_0x2561c3(0xcf)](){const _0x160ab0=_0x2561c3;var _0xd4633f;const _0x11ee3b=this['_injector'][_0x160ab0(0xe5)](_0x204761),_0x2ba408=(_0xd4633f=this['getActiveWorkbook']())==null?void 0x0:_0xd4633f['getId']();if(!_0x2ba408)throw new Error(_0x160ab0(0xe1));const _0x54d5e8=_0x11ee3b['getLiveShareCoordinatorSync'](_0x2ba408);if(!_0x54d5e8)throw new Error(_0x160ab0(0xec));_0x54d5e8[_0x160ab0(0xcf)]();}[_0x2561c3(0xd8)](){const _0x1bda36=_0x2561c3;var _0x1d7986;const _0x4e127e=this[_0x1bda36(0xe0)]['get'](_0x204761),_0x1355be=(_0x1d7986=this['getActiveWorkbook']())==null?void 0x0:_0x1d7986[_0x1bda36(0xea)]();if(!_0x1355be)throw new Error(_0x1bda36(0xe1));const _0x474541=_0x4e127e['getLiveShareCoordinatorSync'](_0x1355be);if(!_0x474541)throw new Error(_0x1bda36(0xec));_0x474541[_0x1bda36(0xde)]();}[_0x2561c3(0xd7)](){const _0x53d076=_0x2561c3;var _0x2808d5;const _0x5d4a44=this[_0x53d076(0xe0)][_0x53d076(0xe5)](_0x204761),_0xa867df=(_0x2808d5=this[_0x53d076(0xdb)]())==null?void 0x0:_0x2808d5[_0x53d076(0xea)]();if(!_0xa867df)throw new Error('No\x20active\x20workbook\x20found.');const _0x2b9413=_0x5d4a44[_0x53d076(0xcc)](_0xa867df);if(!_0x2b9413)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b9413[_0x53d076(0xd7)]();}}_0x29f894[_0x2561c3(0xe8)](m);class C extends _0x444374{get['LiveShareStatusEnum'](){return _0x5af292;}}_0x444374['extend'](C);function _0x17e9(){const _0x5314ef=['getUnitId','extend','executeCommand','getId','838232doQIbC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','300496eITPyP','10wYnpJY','stopFollowing','IDLE','18gGFVyC','279858hDoivd','145270EROWIB','getSheetId','startColumn','getStatus','stopPresenting','startPresenting','13822765YKUMZH','5XYfgdU','getActiveWorkbook','1540038FCejAP','_initialize','tryStartPresenting','_commandService','_injector','No\x20active\x20workbook\x20found.','startFollowing','1312cPXXWC','getActiveSheet','get','2655mRrCPP'];_0x17e9=function(){return _0x5314ef;};return _0x17e9();}
1
+ const _0x5293cb=_0x23dc;(function(_0x4ec40d,_0x2d323c){const _0x518124=_0x23dc,_0x39563a=_0x4ec40d();while(!![]){try{const _0x4c6788=parseInt(_0x518124(0x164))/0x1+-parseInt(_0x518124(0x185))/0x2+parseInt(_0x518124(0x165))/0x3+parseInt(_0x518124(0x16a))/0x4*(-parseInt(_0x518124(0x17e))/0x5)+parseInt(_0x518124(0x176))/0x6*(parseInt(_0x518124(0x173))/0x7)+parseInt(_0x518124(0x183))/0x8+-parseInt(_0x518124(0x180))/0x9*(-parseInt(_0x518124(0x17f))/0xa);if(_0x4c6788===_0x2d323c)break;else _0x39563a['push'](_0x39563a['shift']());}catch(_0x3d1ae2){_0x39563a['push'](_0x39563a['shift']());}}}(_0x22d7,0x4b2e0));function _0x23dc(_0x5db9dd,_0x4df6d6){_0x5db9dd=_0x5db9dd-0x164;const _0x22d7aa=_0x22d7();let _0x23dce0=_0x22d7aa[_0x5db9dd];return _0x23dce0;}import{LiveShareController as _0x16c5cc,LiveShareStatus as _0x1f6523}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xc3603b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c665a}from'@univerjs/sheets';import{SetScrollOperation as _0x487c0f}from'@univerjs/sheets-ui';function _0x22d7(){const _0x50c9c6=['68SfqgET','getRenderById','getLiveShareStatus','getUnitId','getActiveSheet','getStatus','getId','syncExecuteCommand','getSheetId','35fieIjn','IDLE','_injector','105852QNTiSf','getLiveShareCoordinatorSync','executeCommand','PRESENTING','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','_commandService','158135VgTgQD','2546990tOiQKu','9nwmBYN','LiveShareStatusEnum','stopFollowing','2187712EmQqJW','_initialize','641400OygNKg','startColumn','getActiveWorkbook','450559dSPSni','298089QfjoKB','startFollowing','get','tryStartPresenting','extend'];_0x22d7=function(){return _0x50c9c6;};return _0x22d7();}import{FRange as _0x3bddf8}from'@univerjs/sheets/facade';import{FUniver as _0x30b7ca,FEnum as _0x5c895f}from'@univerjs/core/facade';class I extends _0x3bddf8{[_0x5293cb(0x184)](_0x478184,_0x2c8249,_0x535a5e,_0x3a37d5,_0x358e9a){const _0x27736d=_0x5293cb,_0x143166=_0x478184[_0x27736d(0x167)](_0x16c5cc),_0x4cea05=_0x478184[_0x27736d(0x167)](_0xc3603b),_0x1e8c10=_0x2c8249['getUnitId'](),_0x59870f=_0x2c8249[_0x27736d(0x16e)](),_0xd0295b=_0x143166['getLiveShareCoordinatorSync'](_0x1e8c10);(_0xd0295b==null?void 0x0:_0xd0295b['getStatus']())!==_0x1f6523[_0x27736d(0x179)]||(_0x535a5e[_0x27736d(0x172)]()!==_0x59870f['getSheetId']()&&this[_0x27736d(0x17d)][_0x27736d(0x178)](_0x3c665a['id'],{'unitId':_0x1e8c10,'subUnitId':_0x535a5e[_0x27736d(0x172)]()}),!_0x4cea05[_0x27736d(0x16b)](_0x1e8c10))||_0x358e9a[_0x27736d(0x171)](_0x487c0f['id'],{'unitId':_0x2c8249[_0x27736d(0x16d)](),'sheetId':_0x535a5e[_0x27736d(0x172)](),'sheetViewStartRow':_0x3a37d5['startRow'],'sheetViewStartColumn':_0x3a37d5[_0x27736d(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3bddf8[_0x5293cb(0x169)](I);class m extends _0x30b7ca{[_0x5293cb(0x16c)](){const _0x3045ba=_0x5293cb;var _0x474a56,_0x390c2c;const _0x3b19e7=this['_injector']['get'](_0x16c5cc),_0x6389c5=(_0x474a56=this[_0x3045ba(0x187)]())==null?void 0x0:_0x474a56['getId']();if(!_0x6389c5)throw new Error(_0x3045ba(0x17c));const _0x497d66=_0x3b19e7[_0x3045ba(0x177)](_0x6389c5);return(_0x390c2c=_0x497d66==null?void 0x0:_0x497d66[_0x3045ba(0x16f)]())!=null?_0x390c2c:_0x1f6523[_0x3045ba(0x174)];}[_0x5293cb(0x166)](){const _0x5c552d=_0x5293cb;var _0x1702b4;const _0x72ed5b=this['_injector'][_0x5c552d(0x167)](_0x16c5cc),_0x193bf3=(_0x1702b4=this['getActiveWorkbook']())==null?void 0x0:_0x1702b4[_0x5c552d(0x170)]();if(!_0x193bf3)throw new Error(_0x5c552d(0x17c));const _0x1f630a=_0x72ed5b['getLiveShareCoordinatorSync'](_0x193bf3);if(!_0x1f630a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1f630a[_0x5c552d(0x166)]();}['stopFollowing'](){const _0xf7360f=_0x5293cb;var _0x218574;const _0xdd2b6f=this[_0xf7360f(0x175)][_0xf7360f(0x167)](_0x16c5cc),_0x33bcec=(_0x218574=this[_0xf7360f(0x187)]())==null?void 0x0:_0x218574['getId']();if(!_0x33bcec)throw new Error(_0xf7360f(0x17c));const _0x3fa141=_0xdd2b6f[_0xf7360f(0x177)](_0x33bcec);if(!_0x3fa141)throw new Error(_0xf7360f(0x17b));_0x3fa141[_0xf7360f(0x182)]();}['startPresenting'](){const _0x1b5b1d=_0x5293cb;var _0x2b3169;const _0x29496d=this[_0x1b5b1d(0x175)]['get'](_0x16c5cc),_0x9f4578=(_0x2b3169=this['getActiveWorkbook']())==null?void 0x0:_0x2b3169[_0x1b5b1d(0x170)]();if(!_0x9f4578)throw new Error(_0x1b5b1d(0x17c));const _0x133052=_0x29496d[_0x1b5b1d(0x177)](_0x9f4578);if(!_0x133052)throw new Error(_0x1b5b1d(0x17b));_0x133052[_0x1b5b1d(0x168)]();}[_0x5293cb(0x17a)](){const _0x4915d4=_0x5293cb;var _0x27dc21;const _0x49ae80=this[_0x4915d4(0x175)][_0x4915d4(0x167)](_0x16c5cc),_0x22b8e2=(_0x27dc21=this['getActiveWorkbook']())==null?void 0x0:_0x27dc21[_0x4915d4(0x170)]();if(!_0x22b8e2)throw new Error(_0x4915d4(0x17c));const _0x28fffd=_0x49ae80[_0x4915d4(0x177)](_0x22b8e2);if(!_0x28fffd)throw new Error(_0x4915d4(0x17b));_0x28fffd[_0x4915d4(0x17a)]();}}_0x30b7ca['extend'](m);class C extends _0x5c895f{get[_0x5293cb(0x181)](){return _0x1f6523;}}_0x5c895f[_0x5293cb(0x169)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a9157=_0x4e14;(function(_0x56d1de,_0x1be11f){const _0x3232cd=_0x4e14,_0x1af3f2=_0x56d1de();while(!![]){try{const _0x19c600=parseInt(_0x3232cd(0x191))/0x1+-parseInt(_0x3232cd(0x166))/0x2+parseInt(_0x3232cd(0x130))/0x3+parseInt(_0x3232cd(0x1a9))/0x4+parseInt(_0x3232cd(0x14d))/0x5+parseInt(_0x3232cd(0x161))/0x6+-parseInt(_0x3232cd(0x16b))/0x7;if(_0x19c600===_0x1be11f)break;else _0x1af3f2['push'](_0x1af3f2['shift']());}catch(_0x56f5ba){_0x1af3f2['push'](_0x1af3f2['shift']());}}}(_0x54c7,0xb3ce5));function _0x4e14(_0x50138c,_0x45307e){_0x50138c=_0x50138c-0x115;const _0x54c7ce=_0x54c7();let _0x4e14ac=_0x54c7ce[_0x50138c];return _0x4e14ac;}var J=Object[_0x5a9157(0x136)],K=(_0x4672aa,_0x1de778,_0x12c834)=>_0x1de778 in _0x4672aa?J(_0x4672aa,_0x1de778,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12c834}):_0x4672aa[_0x1de778]=_0x12c834,u=(_0x3616d7,_0x5d1470,_0x5456b0)=>K(_0x3616d7,typeof _0x5d1470!=_0x5a9157(0x194)?_0x5d1470+'':_0x5d1470,_0x5456b0);import{Disposable as _0xa28d62,toDisposable as _0x3e6459,IUniverInstanceService as _0x2bf8ed,Inject as _0x5890f3,Injector as _0x2ac967,IConfigService as _0x2ccd3e,ICommandService as _0x8f3e9,RxDisposable as _0x1cce5c,UniverInstanceType as _0x118916,DisposableCollection as _0x5315c9,CommandType as _0x55dc24,DependentOn as _0x2c9f12,Plugin as _0x446406,merge as _0x230b34,registerDependencies as _0x3ca90e,mergeOverrideWithDependencies as _0x1d22c6,touchDependencies as _0xa89abb}from'@univerjs/core';import{useDependency as _0x14fb74,useObservable as _0x25b804,IUIPartsService as _0x4b3e7b,BuiltInUIPart as _0x3df1ce,connectInjector as _0x360939}from'@univerjs/ui';import{jsx as _0xe9d27a,jsxs as _0x1044b3,Fragment as _0x21e76d}from'react/jsx-runtime';import{Dropdown as _0x1d5dcc,clsx as _0x26827b,Button as _0x43cbc8}from'@univerjs/design';import{useRef as _0x3a8f3b,createElement as _0x445d41,forwardRef as _0x3a591f,useState as _0x5ab416,useEffect as _0x34456e}from'react';import{CollaborationEvent as _0xb6d82,parseProtocolChangeset as _0x448a4b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x270da6,SessionStatus as _0x1f086f,UniverCollaborationClientPlugin as _0x270228}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1a8b78,SetWorksheetActiveOperation as _0x4ff82e}from'@univerjs/sheets';import{BehaviorSubject as _0x4812e4,Subject as _0x4797b2}from'rxjs';import{takeUntil as _0x5bc01a,throttleTime as _0x1e0766}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f21c4,SetScrollOperation as _0x447fe5}from'@univerjs/sheets-ui';function k({ref:_0x4aafb6,..._0x34a9d5}){const _0x2fa30d=_0x5a9157,{icon:_0x10eab9,id:_0x3dc31d,className:_0x26f72d,extend:_0x195ada,..._0x1ea6ed}=_0x34a9d5,_0x264f64=(_0x2fa30d(0x11f)+_0x3dc31d+'\x20'+(_0x26f72d||''))[_0x2fa30d(0x13b)](),_0x543818=_0x3a8f3b('_'+Oe());return G(_0x10eab9,''+_0x3dc31d,{'defIds':_0x10eab9[_0x2fa30d(0x190)],'idSuffix':_0x543818[_0x2fa30d(0x17b)]},{'ref':_0x4aafb6,'className':_0x264f64,..._0x1ea6ed},_0x195ada);}function G(_0x5223e4,_0x4d5a88,_0xc614ca,_0x7e6615,_0x2c9f7e){const _0x47cd5e=_0x5a9157;return _0x445d41(_0x5223e4['tag'],{'key':_0x4d5a88,...be(_0x5223e4,_0xc614ca,_0x2c9f7e),..._0x7e6615},(Ee(_0x5223e4,_0xc614ca)[_0x47cd5e(0x125)]||[])[_0x47cd5e(0x11c)]((_0x409539,_0x18da96)=>G(_0x409539,_0x4d5a88+'-'+_0x5223e4[_0x47cd5e(0x12c)]+'-'+_0x18da96,_0xc614ca,void 0x0,_0x2c9f7e)));}function be(_0x27d574,_0x3a9068,_0x50d3bf){const _0x4524b0=_0x5a9157,_0x387e5f={..._0x27d574[_0x4524b0(0x184)]};_0x50d3bf!=null&&_0x50d3bf[_0x4524b0(0x152)]&&_0x387e5f['fill']===_0x4524b0(0x152)&&(_0x387e5f['fill']=_0x50d3bf[_0x4524b0(0x152)]),_0x27d574[_0x4524b0(0x12c)]===_0x4524b0(0x1b5)&&_0x387e5f['id']&&(_0x387e5f['id']=_0x387e5f['id']+_0x3a9068[_0x4524b0(0x175)]),Object['entries'](_0x387e5f)[_0x4524b0(0x183)](([_0xbb34fb,_0x214116])=>{const _0x424387=_0x4524b0;_0xbb34fb==='mask'&&typeof _0x214116==_0x424387(0x18b)&&(_0x387e5f[_0xbb34fb]=_0x214116['replace'](/url\(#(.*)\)/,_0x424387(0x18f)+_0x3a9068[_0x424387(0x175)]+')'));});const {defIds:_0x43c136}=_0x3a9068;return!_0x43c136||_0x43c136[_0x4524b0(0x18d)]===0x0||(_0x27d574['tag']==='use'&&_0x387e5f['xlink:href']&&(_0x387e5f[_0x4524b0(0x199)]=_0x387e5f[_0x4524b0(0x199)]+_0x3a9068[_0x4524b0(0x175)]),Object[_0x4524b0(0x121)](_0x387e5f)['forEach'](([_0x4e4ed0,_0xa2838b])=>{const _0x3d9828=_0x4524b0;typeof _0xa2838b==_0x3d9828(0x18b)&&(_0x387e5f[_0x4e4ed0]=_0xa2838b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3a9068[_0x3d9828(0x175)]+')'));})),_0x387e5f;}function Ee(_0x2db2ec,_0x222fe7){const _0x53553e=_0x5a9157;var _0x210d98;const {defIds:_0x39dcfb}=_0x222fe7;return!_0x39dcfb||_0x39dcfb['length']===0x0?_0x2db2ec:_0x2db2ec[_0x53553e(0x12c)]==='defs'&&((_0x210d98=_0x2db2ec['children'])!=null&&_0x210d98[_0x53553e(0x18d)])?{..._0x2db2ec,'children':_0x2db2ec[_0x53553e(0x125)][_0x53553e(0x11c)](_0x424c08=>typeof _0x424c08[_0x53553e(0x184)]['id']==_0x53553e(0x18b)&&_0x39dcfb&&_0x39dcfb['includes'](_0x424c08[_0x53553e(0x184)]['id'])?{..._0x424c08,'attrs':{..._0x424c08['attrs'],'id':_0x424c08['attrs']['id']+_0x222fe7[_0x53553e(0x175)]}}:_0x424c08)}:_0x2db2ec;}function Oe(){const _0x675a0b=_0x5a9157;return Math['random']()[_0x675a0b(0x1a6)](0x24)['substring'](0x2,0x8);}k[_0x5a9157(0x18a)]='UniverIcon';const we={'tag':_0x5a9157(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a9157(0x145),'viewBox':_0x5a9157(0x173),'width':_0x5a9157(0x1b3),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x159)}},{'tag':_0x5a9157(0x12d),'attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x17c),'fillRule':_0x5a9157(0x1ae),'clipRule':_0x5a9157(0x1ae)}}]},W=_0x3a591f(function(_0x9266ec,_0x26acce){const _0x563837=_0x5a9157;return _0x445d41(k,Object['assign']({},_0x9266ec,{'id':_0x563837(0x1a2),'ref':_0x26acce,'icon':we}));});W[_0x5a9157(0x18a)]=_0x5a9157(0x188);class L extends _0xa28d62{constructor(){const _0x1c1033=_0x5a9157;super(...arguments),u(this,_0x1c1033(0x189),new Set()),u(this,'_reporters',new Set());}[_0x5a9157(0x19f)](_0x3a6d42){const _0x1a8668=_0x5a9157;return this[_0x1a8668(0x189)][_0x1a8668(0x16e)](_0x3a6d42),_0x3e6459(()=>this[_0x1a8668(0x189)][_0x1a8668(0x12e)](_0x3a6d42));}['registerInitialStateReporter'](_0x14f19b){const _0x430a19=_0x5a9157;return this[_0x430a19(0x157)][_0x430a19(0x16e)](_0x14f19b),_0x3e6459(()=>this['_reporters'][_0x430a19(0x12e)](_0x14f19b));}[_0x5a9157(0x168)](_0x16d14b){const _0x28ffee=_0x5a9157;return this[_0x28ffee(0x189)]['has'](_0x16d14b);}[_0x5a9157(0x13c)](_0x4b9d74){const _0x4b079f=_0x5a9157;return Array[_0x4b079f(0x16a)](this[_0x4b079f(0x157)])[_0x4b079f(0x11c)](_0x65bfbd=>_0x65bfbd(_0x4b9d74));}}var Ne=Object[_0x5a9157(0x162)],Y=(_0x37b0e3,_0x5a90ae,_0x3eae1e,_0x3c7894)=>{const _0x1411cf=_0x5a9157;for(var _0x43b1a6=_0x3c7894>0x1?void 0x0:_0x3c7894?Ne(_0x5a90ae,_0x3eae1e):_0x5a90ae,_0x29854b=_0x37b0e3[_0x1411cf(0x18d)]-0x1,_0x4e45ce;_0x29854b>=0x0;_0x29854b--)(_0x4e45ce=_0x37b0e3[_0x29854b])&&(_0x43b1a6=_0x4e45ce(_0x43b1a6)||_0x43b1a6);return _0x43b1a6;},_=(_0xa33a29,_0x53098a)=>(_0x3f79a9,_0x36dda4)=>_0x53098a(_0x3f79a9,_0x36dda4,_0xa33a29);function _0x54c7(){const _0x39b7d5=['attrs','unsubscribe','_handleNewHost','svg','LiveShareIcon','_sharedOperations','displayName','string','setConfig','length','stopFollowing','url(#$1','defIds','217525LzCWYs','disposeWithMe','tryStartPresenting','symbol','PRESENTING','find','Present\x20this\x20document','onRendered','xlink:href','dispose$','getConfig','ONLINE','_handleOffline','has','registerSharedOperation','_handleOperation','stringify','live-share-icon','getLiveShareCoordinatorSync','_collabSession','UNIVER_UNKNOWN','toString','getMemberID','getCurrentTypeOfUnit$','467616fUPsvU','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','_uiPartsService','_univerInstanceService','pluginName','evenodd','_commandDisposable','sheet','_fetchOperations','registerComponent','1em','NEW_CHANGESETS','mask','status$','_mountLiveShare','_startPresenting','end','override','_startLiveShareCoordinator','asObservable','startFollowing','getValue','send','map','getTypeOfUnitAdded$','_beIdle','univerjs-icon\x20univerjs-icon-','not-following','entries','univer-size-4','You\x27are\x20offline.','get','children','Start\x20following','complete','values','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','createInstance','tag','path','delete','_init','3653502BOwAta','getUnitId','currentColor','_collabSessionService','Stop\x20presenting','_stopFollowing','defineProperty','unitId','Start','_injector','_stopPresenting','trim','getInitialStates','button','params','_commandService','You\x27re\x20following\x20the\x20presenter','_entities','reverse','UNIVER_SHEET','_handleOnline','none','executeCommand','_liveShareService','LIVESHARE_OPERATION','_handleTerminate','FOLLOWING','_status$','getLiveShareCoordinator','1846640ldcwVj','_config','requireSession','OFFLINE','_configService','colorChannel1','default','subscribe','You\x27re\x20presenting\x20the\x20document','_unitID','_reporters','LIVESHARE_TERMINATE','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','then','dispose','OPERATION','memberID','next','idle','getStatus','3389754vyajxw','getOwnPropertyDescriptor','_startFollowing','following','LIVESHARE_FETCH_OPERATIONS','1052856QySCGt','getTypeOfUnitDisposed$','shouldShareOperation','data','from','8565459AAFyas','mutations','set','add','clear','stopPresenting','HEADER_MENU','text','0\x200\x2017\x2017','presenting','idSuffix','LIVESHARE_REQUEST_HOST','Stop\x20following','NOT_FOLLOWING','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','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','UNIVER_LIVE_SHARE_PLUGIN','pipe','offline','init','_handleNewChangeSets','_status','forEach'];_0x54c7=function(){return _0x39b7d5;};return _0x54c7();}let S=class extends _0x1cce5c{constructor(_0x315b6e,_0x304d1b,_0x3ba4b9){const _0x501fca=_0x5a9157;super(),u(this,_0x501fca(0x141),new Map()),(this['_univerInstanceService']=_0x315b6e,this[_0x501fca(0x139)]=_0x304d1b,this[_0x501fca(0x133)]=_0x3ba4b9,this['_init']());}async[_0x5a9157(0x14c)](_0x5b02c6){const _0x7784dc=_0x5a9157;return this['_entities']['has'](_0x5b02c6)||await this['_startLiveShareCoordinator'](_0x5b02c6),this[_0x7784dc(0x141)][_0x7784dc(0x124)](_0x5b02c6);}[_0x5a9157(0x1a3)](_0x268da4){const _0x426ceb=_0x5a9157;var _0xcfdf9d;return(_0xcfdf9d=this['_entities'][_0x426ceb(0x124)](_0x268da4))!=null?_0xcfdf9d:null;}['_init'](){const _0x55a05c=_0x5a9157;this['_univerInstanceService'][_0x55a05c(0x11d)](_0x118916[_0x55a05c(0x143)])[_0x55a05c(0x17e)](_0x5bc01a(this['dispose$']))[_0x55a05c(0x154)](async _0x57c2a7=>{const _0x2622f1=_0x55a05c,_0x3e6ddc=_0x57c2a7[_0x2622f1(0x131)]();this['_entities'][_0x2622f1(0x19e)](_0x3e6ddc)||this[_0x2622f1(0x117)](_0x3e6ddc);}),this[_0x55a05c(0x1ac)][_0x55a05c(0x167)](_0x118916[_0x55a05c(0x143)])['pipe'](_0x5bc01a(this[_0x55a05c(0x19a)]))[_0x55a05c(0x154)](_0x331c33=>{const _0x9104fd=_0x55a05c,_0x287175=_0x331c33['getUnitId'](),_0x48eb15=this[_0x9104fd(0x141)][_0x9104fd(0x124)](_0x287175);_0x48eb15==null||_0x48eb15['dispose']();});}async[_0x5a9157(0x117)](_0x274525){const _0x4c5ae2=_0x5a9157,_0x13c343=await this['_collabSessionService'][_0x4c5ae2(0x14f)](_0x274525),_0x5dcc38=this[_0x4c5ae2(0x139)][_0x4c5ae2(0x12b)](N,_0x274525,_0x13c343);return _0x5dcc38[_0x4c5ae2(0x180)](),this['_entities'][_0x4c5ae2(0x16d)](_0x274525,_0x5dcc38),_0x5dcc38;}};S=Y([_(0x0,_0x2bf8ed),_(0x1,_0x5890f3(_0x2ac967)),_(0x2,_0x5890f3(_0x270da6))],S);var c=(_0x3dd772=>(_0x3dd772[_0x5a9157(0x150)]=_0x5a9157(0x17f),_0x3dd772[_0x5a9157(0x12a)]=_0x5a9157(0x15f),_0x3dd772['FOLLOWING']=_0x5a9157(0x164),_0x3dd772[_0x5a9157(0x178)]=_0x5a9157(0x120),_0x3dd772['PRESENTING']=_0x5a9157(0x174),_0x3dd772))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1cce5c{constructor(_0xb205f3,_0x145752,_0x10357b,_0x3da1b7,_0x3c2a71){const _0x11a0a2=_0x5a9157;super(),u(this,'_status$',new _0x4812e4(_0x11a0a2(0x15f))),u(this,_0x11a0a2(0x1b6),this[_0x11a0a2(0x14b)][_0x11a0a2(0x118)]()),u(this,_0x11a0a2(0x12f),!0x1),u(this,'_commandDisposable',null),u(this,_0x11a0a2(0x179),null),(this[_0x11a0a2(0x156)]=_0xb205f3,this[_0x11a0a2(0x1a4)]=_0x145752,this['_configService']=_0x10357b,this['_liveShareService']=_0x3da1b7,this[_0x11a0a2(0x13f)]=_0x3c2a71);}get[_0x5a9157(0x182)](){const _0x590aa9=_0x5a9157;return this['_status$'][_0x590aa9(0x11a)]();}[_0x5a9157(0x15b)](){const _0x1b17eb=_0x5a9157;var _0x419afe;(_0x419afe=this['_commandDisposable'])==null||_0x419afe[_0x1b17eb(0x15b)](),this['_status$'][_0x1b17eb(0x15e)](_0x1b17eb(0x15f)),this[_0x1b17eb(0x14b)][_0x1b17eb(0x127)]();}[_0x5a9157(0x160)](){const _0x2a4fc6=_0x5a9157;return this[_0x2a4fc6(0x182)];}[_0x5a9157(0x180)](){const _0x24d726=_0x5a9157;this[_0x24d726(0x12f)]||(this[_0x24d726(0x12f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x24d726(0x17e)](_0x5bc01a(this[_0x24d726(0x19a)]))['subscribe'](_0x516d76=>{const _0x5bc4aa=_0x24d726;switch(_0x516d76){case _0x1f086f[_0x5bc4aa(0x150)]:this[_0x5bc4aa(0x19d)]();break;case _0x1f086f[_0x5bc4aa(0x19c)]:this[_0x5bc4aa(0x144)]();break;}}),this['_collabSession']['event$']['pipe'](_0x5bc01a(this['dispose$']))[_0x24d726(0x154)](_0x3abf42=>{const _0x35f5a9=_0x24d726,{eventID:_0x155f0d}=_0x3abf42;switch(_0x155f0d){case _0xb6d82['LIVESHARE_NEW_HOST']:this[_0x35f5a9(0x186)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x148)]:this[_0x35f5a9(0x1a0)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x158)]:this[_0x35f5a9(0x149)]();break;case _0xb6d82[_0x35f5a9(0x1b4)]:this[_0x35f5a9(0x181)](_0x3abf42);break;}}));}['tryStartPresenting'](){const _0x4c0715=_0x5a9157;this['_collabSession'][_0x4c0715(0x11b)]({'eventID':_0xb6d82[_0x4c0715(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x4c0715(0x1a4)][_0x4c0715(0x1a7)]()}},this[_0x4c0715(0x156)]);}[_0x5a9157(0x170)](){const _0x350fc6=_0x5a9157;this[_0x350fc6(0x182)]==='presenting'&&(this[_0x350fc6(0x14b)]['next'](_0x350fc6(0x15f)),this[_0x350fc6(0x1a4)][_0x350fc6(0x11b)]({'eventID':_0xb6d82[_0x350fc6(0x158)],'data':{'unitID':this[_0x350fc6(0x156)]}},this[_0x350fc6(0x156)]));}['startFollowing'](){const _0x98e65=_0x5a9157;this[_0x98e65(0x182)]===_0x98e65(0x120)&&(this['_status$'][_0x98e65(0x15e)](_0x98e65(0x164)),this[_0x98e65(0x163)]());}['stopFollowing'](){const _0x2d5c57=_0x5a9157;this['_status']===_0x2d5c57(0x164)&&this[_0x2d5c57(0x135)]();}[_0x5a9157(0x186)](_0x1c646f){const _0x19fecd=_0x5a9157,{presenter:_0x4a340c}=_0x1c646f[_0x19fecd(0x169)],_0x52a714=this[_0x19fecd(0x1a4)][_0x19fecd(0x1a7)]();this[_0x19fecd(0x179)]=_0x4a340c,_0x4a340c===_0x52a714?(this[_0x19fecd(0x135)](),this[_0x19fecd(0x1b8)]()):this['_status']!==_0x19fecd(0x120)&&(this[_0x19fecd(0x13a)](),this[_0x19fecd(0x163)]());}['_fetchOperations'](){const _0x177e9a=_0x5a9157,_0xc199c3={'eventID':_0xb6d82[_0x177e9a(0x165)]};this[_0x177e9a(0x1a4)][_0x177e9a(0x11b)](_0xc199c3,this[_0x177e9a(0x156)]);}[_0x5a9157(0x149)](){const _0x1e3f06=_0x5a9157;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1e3f06(0x11e)]();}[_0x5a9157(0x181)](_0x36b89e){const _0x193e4d=_0x5a9157;if(this[_0x193e4d(0x182)]===_0x193e4d(0x164)&&this[_0x193e4d(0x179)]===_0x36b89e[_0x193e4d(0x169)][_0x193e4d(0x15d)]){const _0x540c5e=_0x448a4b(_0x36b89e[_0x193e4d(0x169)])[_0x193e4d(0x16c)][_0x193e4d(0x142)]()[_0x193e4d(0x196)](_0x45d7bf=>_0x45d7bf['id']===_0x1a8b78['id']);if(_0x540c5e){const _0x4dd3b6=_0x540c5e[_0x193e4d(0x13e)][_0x193e4d(0x137)],_0x1ac1b9=_0x540c5e['params'][_0x193e4d(0x1b0)]['id'];setTimeout(()=>{const _0xee294a=_0x193e4d;this['_commandService'][_0xee294a(0x146)](_0x4ff82e['id'],{'unitId':_0x4dd3b6,'subUnitId':_0x1ac1b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2fcc17=_0x5a9157;this[_0x2fcc17(0x14b)]['next']('presenting');const _0xf2a2fc=new Map(),_0x44940d=this[_0x2fcc17(0x1af)]=new _0x5315c9();_0x44940d[_0x2fcc17(0x16e)](_0x3e6459(()=>{const _0x53be83=_0x2fcc17;_0xf2a2fc[_0x53be83(0x183)](_0x367a3b=>_0x367a3b[_0x53be83(0x127)]()),_0xf2a2fc[_0x53be83(0x16f)]();})),_0x44940d[_0x2fcc17(0x16e)](this[_0x2fcc17(0x13f)]['onCommandExecuted'](_0x5bea74=>{const _0x462bee=_0x2fcc17;var _0x52d583;if(_0x5bea74['type']!==_0x55dc24[_0x462bee(0x15c)]||!this['_liveShareService'][_0x462bee(0x168)](_0x5bea74['id']))return;const {id:_0xb9e8ff}=_0x5bea74;let _0x372092;_0xf2a2fc[_0x462bee(0x19e)](_0xb9e8ff)?_0x372092=_0xf2a2fc[_0x462bee(0x124)](_0xb9e8ff):(_0x372092=new _0x4797b2(),_0xf2a2fc['set'](_0xb9e8ff,_0x372092),_0x372092[_0x462bee(0x17e)](_0x1e0766((_0x52d583=this[_0x462bee(0x151)][_0x462bee(0x19b)](Ce))!=null?_0x52d583:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d940a=>{const _0x2e3533=_0x462bee;this[_0x2e3533(0x1a4)][_0x2e3533(0x11b)]({'eventID':_0xb6d82[_0x2e3533(0x148)],'data':{'unitID':this[_0x2e3533(0x156)],'operations':{[_0x2d940a['id']]:{'id':_0x2d940a['id'],'params':JSON[_0x2e3533(0x1a1)](_0x2d940a[_0x2e3533(0x13e)])}}}},this[_0x2e3533(0x156)]);})),_0x372092['next'](_0x5bea74);})),this[_0x2fcc17(0x147)][_0x2fcc17(0x13c)](this['_unitID'])[_0x2fcc17(0x183)](_0x7bda83=>this[_0x2fcc17(0x1a4)]['send']({'eventID':_0xb6d82[_0x2fcc17(0x148)],'data':{'unitID':this[_0x2fcc17(0x156)],'operations':{[_0x7bda83['id']]:{'id':_0x7bda83['id'],'params':JSON[_0x2fcc17(0x1a1)](_0x7bda83[_0x2fcc17(0x13e)])}}}},this[_0x2fcc17(0x156)]));}[_0x5a9157(0x13a)](){const _0x2e424e=_0x5a9157;var _0x4d1b4f;this[_0x2e424e(0x14b)][_0x2e424e(0x15e)](_0x2e424e(0x15f)),(_0x4d1b4f=this[_0x2e424e(0x1af)])==null||_0x4d1b4f[_0x2e424e(0x15b)](),this['_commandDisposable']=null;}[_0x5a9157(0x163)](){const _0x2bf1fb=_0x5a9157;var _0x27743f;(_0x27743f=this[_0x2bf1fb(0x1af)])==null||_0x27743f[_0x2bf1fb(0x15b)](),this[_0x2bf1fb(0x14b)][_0x2bf1fb(0x15e)](_0x2bf1fb(0x164));}[_0x5a9157(0x11e)](){const _0x2f179d=_0x5a9157;var _0x292e3d;this[_0x2f179d(0x14b)][_0x2f179d(0x15e)](_0x2f179d(0x15f)),(_0x292e3d=this[_0x2f179d(0x1af)])==null||_0x292e3d[_0x2f179d(0x15b)](),this[_0x2f179d(0x1af)]=null;}['_stopFollowing'](){const _0x4d74f4=_0x5a9157;var _0x5a5b28;this[_0x4d74f4(0x14b)]['next']('not-following'),(_0x5a5b28=this['_commandDisposable'])==null||_0x5a5b28['dispose']();}[_0x5a9157(0x1a0)](_0x3d307d){const _0x2213ae=_0x5a9157;if([_0x2213ae(0x174),'not-following',_0x2213ae(0x17f)]['includes'](this[_0x2213ae(0x182)])||!_0x3d307d[_0x2213ae(0x169)]['presenter']||_0x3d307d['data']['presenter']===this[_0x2213ae(0x1a4)][_0x2213ae(0x1a7)]())return;this[_0x2213ae(0x182)]===_0x2213ae(0x15f)&&this['_startFollowing']();const _0x2e8e55=_0x3d307d[_0x2213ae(0x169)]['operations'];Object[_0x2213ae(0x128)](_0x2e8e55)['forEach'](_0x2fffe2=>{const _0x1e2da0=_0x2213ae;this[_0x1e2da0(0x13f)][_0x1e2da0(0x146)](_0x2fffe2['id'],_0x2fffe2[_0x1e2da0(0x13e)]?JSON['parse'](_0x2fffe2['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b4b85=_0x5a9157;var _0x4085e0;this['_status$'][_0x5b4b85(0x15e)](_0x5b4b85(0x17f)),(_0x4085e0=this[_0x5b4b85(0x1af)])==null||_0x4085e0[_0x5b4b85(0x15b)]();}[_0x5a9157(0x144)](){const _0xc3ec29=_0x5a9157;this[_0xc3ec29(0x14b)][_0xc3ec29(0x15e)](_0xc3ec29(0x15f)),this[_0xc3ec29(0x1b1)]();}};N=Y([_(0x2,_0x2ccd3e),_(0x3,_0x5890f3(L)),_(0x4,_0x8f3e9)],N);function Le(){const _0x87951d=_0x5a9157,_0x164387=_0x14fb74(S),_0x527671=_0x14fb74(_0x2bf8ed),_0x462115=_0x25b804(()=>_0x527671[_0x87951d(0x1a8)](_0x118916['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5233cb,_0x38fdee]=_0x5ab416(null),[_0x2043e4,_0x267a6e]=_0x5ab416(c['IDLE']),_0x4d1cae=_0x3a8f3b(null);return _0x34456e(()=>(_0x462115&&_0x164387['getLiveShareCoordinator'](_0x462115['getUnitId']())[_0x87951d(0x15a)](_0x354ae1=>{const _0x5a6f76=_0x87951d;_0x38fdee(_0x354ae1),_0x4d1cae[_0x5a6f76(0x17b)]=_0x354ae1[_0x5a6f76(0x1b6)][_0x5a6f76(0x154)](_0x3caaac=>{_0x267a6e(_0x3caaac);});}),()=>{const _0x2c52bb=_0x87951d;var _0x77fa80;(_0x77fa80=_0x4d1cae[_0x2c52bb(0x17b)])==null||_0x77fa80[_0x2c52bb(0x185)](),_0x4d1cae['current']=null;}),[_0x462115,_0x164387]),_0x5233cb?_0xe9d27a(_0x1d5dcc,{'align':_0x87951d(0x115),'disabled':_0x2043e4===c['OFFLINE'],'className':_0x87951d(0x1aa),'overlay':_0xe9d27a(Re,{'status':_0x2043e4,'coordinator':_0x5233cb}),'children':_0xe9d27a(_0x87951d(0x13d),{'className':_0x26827b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2043e4===c[_0x87951d(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2043e4!==c['OFFLINE']}),'type':_0x87951d(0x13d),'children':_0xe9d27a(W,{'className':_0x87951d(0x122)})})}):null;}function Re(_0x25aabb){const _0xc61288=_0x5a9157,{status:_0xb36f22,coordinator:_0x4f0364}=_0x25aabb;switch(_0xb36f22){case c[_0xc61288(0x12a)]:return _0xe9d27a($e,{'coordinator':_0x4f0364});case c[_0xc61288(0x14a)]:return _0xe9d27a(xe,{'coordinator':_0x4f0364});case c[_0xc61288(0x178)]:return _0xe9d27a(Pe,{'coordinator':_0x4f0364});case c[_0xc61288(0x150)]:return _0xe9d27a(Te,{});case c[_0xc61288(0x195)]:return _0xe9d27a(Ae,{'coordinator':_0x4f0364});default:return null;}}function $e(_0x138a99){const _0x1fcc54=_0x5a9157,{coordinator:_0xe4e224}=_0x138a99;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fcc54(0x197)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0xe4e224[_0x1fcc54(0x193)](),'children':_0x1fcc54(0x138)})]});}function xe(_0xf8d35a){const _0x8632b9=_0x5a9157,{coordinator:_0x4e338a}=_0xf8d35a;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x8632b9(0x17a),'children':_0x8632b9(0x140)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0x4e338a[_0x8632b9(0x18e)](),'children':_0x8632b9(0x177)})]});}function Pe(_0xca9462){const _0x14c1ab=_0x5a9157,{coordinator:_0x253fb9}=_0xca9462;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14c1ab(0x17a),'children':_0x14c1ab(0x129)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14c1ab(0x172),'onClick':()=>_0x253fb9[_0x14c1ab(0x119)](),'children':_0x14c1ab(0x126)})]});}function Ae(_0x1b67b1){const _0x14432f=_0x5a9157,{coordinator:_0x21cc66}=_0x1b67b1;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14432f(0x17a),'children':_0x14432f(0x155)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14432f(0x153),'onClick':()=>_0x21cc66[_0x14432f(0x170)](),'children':_0x14432f(0x134)})]});}function Te(){const _0x27306e=_0x5a9157;return _0xe9d27a(_0x21e76d,{'children':_0x27306e(0x123)});}var Fe=Object[_0x5a9157(0x162)],He=(_0x680c97,_0x572487,_0x3190e6,_0x778131)=>{for(var _0x5de778=_0x778131>0x1?void 0x0:_0x778131?Fe(_0x572487,_0x3190e6):_0x572487,_0x38b7e5=_0x680c97['length']-0x1,_0x45b85c;_0x38b7e5>=0x0;_0x38b7e5--)(_0x45b85c=_0x680c97[_0x38b7e5])&&(_0x5de778=_0x45b85c(_0x5de778)||_0x5de778);return _0x5de778;},A=(_0x1c08f4,_0x269771)=>(_0x11bdcd,_0x5f11f9)=>_0x269771(_0x11bdcd,_0x5f11f9,_0x1c08f4);let m=class extends _0xa28d62{constructor(_0x4e63bf,_0x33ce12){const _0x3f3c5b=_0x5a9157;super(),this[_0x3f3c5b(0x139)]=_0x4e63bf,this[_0x3f3c5b(0x1ab)]=_0x33ce12,this[_0x3f3c5b(0x1b7)]();}['_mountLiveShare'](){const _0x59c071=_0x5a9157;this[_0x59c071(0x192)](this[_0x59c071(0x1ab)][_0x59c071(0x1b2)](_0x3df1ce[_0x59c071(0x171)],()=>_0x360939(Le,this[_0x59c071(0x139)])));}};m=He([A(0x0,_0x5890f3(_0x2ac967)),A(0x1,_0x4b3e7b)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x58121e,_0xe4291d,_0x278131,_0x54e350)=>{const _0x52190f=_0x5a9157;for(var _0x5868df=_0x54e350>0x1?void 0x0:_0x54e350?Ue(_0xe4291d,_0x278131):_0xe4291d,_0x5c0c07=_0x58121e[_0x52190f(0x18d)]-0x1,_0x51bd8c;_0x5c0c07>=0x0;_0x5c0c07--)(_0x51bd8c=_0x58121e[_0x5c0c07])&&(_0x5868df=_0x51bd8c(_0x5868df)||_0x5868df);return _0x5868df;},je=(_0x5922ab,_0x1a4687)=>(_0x4deae9,_0x52beb5)=>_0x1a4687(_0x4deae9,_0x52beb5,_0x5922ab);let I=class extends _0xa28d62{constructor(_0x1e4d9c){const _0x5d3252=_0x5a9157;super(),this[_0x5d3252(0x147)]=_0x1e4d9c,this[_0x5d3252(0x12f)]();}['_init'](){const _0x2d1dbb=_0x5a9157;[_0x1f21c4['id'],_0x447fe5['id'],_0x4ff82e['id']][_0x2d1dbb(0x183)](_0x558ce7=>{const _0xaaf13e=_0x2d1dbb;this[_0xaaf13e(0x192)](this[_0xaaf13e(0x147)]['registerSharedOperation'](_0x558ce7));});}};I=Ve([je(0x0,_0x5890f3(L))],I);var Me=Object[_0x5a9157(0x136)],ke=Object[_0x5a9157(0x162)],Ge=(_0x2538d1,_0x252d75,_0xd3309f)=>_0x252d75 in _0x2538d1?Me(_0x2538d1,_0x252d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3309f}):_0x2538d1[_0x252d75]=_0xd3309f,We=(_0x4752a5,_0x520908,_0x2c7a48,_0x1ce47c)=>{const _0xdf8090=_0x5a9157;for(var _0x4daee4=_0x1ce47c>0x1?void 0x0:_0x1ce47c?ke(_0x520908,_0x2c7a48):_0x520908,_0x2172ca=_0x4752a5[_0xdf8090(0x18d)]-0x1,_0x1376a9;_0x2172ca>=0x0;_0x2172ca--)(_0x1376a9=_0x4752a5[_0x2172ca])&&(_0x4daee4=_0x1376a9(_0x4daee4)||_0x4daee4);return _0x4daee4;},F=(_0x44eeb0,_0xe537e3)=>(_0x5c8c85,_0x1585d5)=>_0xe537e3(_0x5c8c85,_0x1585d5,_0x44eeb0),B=(_0x5db21f,_0x4e46c8,_0x5e04e6)=>Ge(_0x5db21f,typeof _0x4e46c8!=_0x5a9157(0x194)?_0x4e46c8+'':_0x4e46c8,_0x5e04e6);const Ye=_0x5a9157(0x17d);let b=class extends _0x446406{constructor(_0x25cfd7=T,_0x5a0473,_0x2754a2){const _0xb2ab96=_0x5a9157;super(),this['_config']=_0x25cfd7,this[_0xb2ab96(0x139)]=_0x5a0473,this[_0xb2ab96(0x151)]=_0x2754a2;const {..._0x78e952}=_0x230b34({},T,this[_0xb2ab96(0x14e)]);this[_0xb2ab96(0x151)][_0xb2ab96(0x18c)](ye,_0x78e952);}['onStarting'](){const _0x4e70cb=_0x5a9157;_0x3ca90e(this[_0x4e70cb(0x139)],_0x1d22c6([[L],[S],[I],[m]],this[_0x4e70cb(0x14e)][_0x4e70cb(0x116)])),_0xa89abb(this[_0x4e70cb(0x139)],[[I]]);}[_0x5a9157(0x198)](){const _0x4ce401=_0x5a9157;_0xa89abb(this[_0x4ce401(0x139)],[[m]]);}};B(b,'type',_0x118916[_0x5a9157(0x1a5)]),B(b,_0x5a9157(0x1ad),Ye),b=We([_0x2c9f12(_0x270228),F(0x1,_0x5890f3(_0x2ac967)),F(0x2,_0x2ccd3e)],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 _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','forEach','length','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],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 _0x2561c3=_0x639e;function _0x639e(_0x26429c,_0x5f5b79){_0x26429c=_0x26429c-0xcc;const _0x17e9a0=_0x17e9();let _0x639ef=_0x17e9a0[_0x26429c];return _0x639ef;}(function(_0x122c71,_0x4438d4){const _0x4c5884=_0x639e,_0x47910b=_0x122c71();while(!![]){try{const _0x2c6626=-parseInt(_0x4c5884(0xd2))/0x1+-parseInt(_0x4c5884(0xd3))/0x2+parseInt(_0x4c5884(0xe6))/0x3*(-parseInt(_0x4c5884(0xe3))/0x4)+-parseInt(_0x4c5884(0xda))/0x5*(parseInt(_0x4c5884(0xdc))/0x6)+parseInt(_0x4c5884(0xcd))/0x7+-parseInt(_0x4c5884(0xeb))/0x8*(parseInt(_0x4c5884(0xd1))/0x9)+-parseInt(_0x4c5884(0xce))/0xa*(-parseInt(_0x4c5884(0xd9))/0xb);if(_0x2c6626===_0x4438d4)break;else _0x47910b['push'](_0x47910b['shift']());}catch(_0x245698){_0x47910b['push'](_0x47910b['shift']());}}}(_0x17e9,0x2e84b));import{LiveShareController as _0x204761,LiveShareStatus as _0x5af292}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x585a07}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xabbfd8}from'@univerjs/sheets';import{SetScrollOperation as _0x2dfe55}from'@univerjs/sheets-ui';import{FRange as _0x426e48}from'@univerjs/sheets/facade';import{FUniver as _0x29f894,FEnum as _0x444374}from'@univerjs/core/facade';class I extends _0x426e48{[_0x2561c3(0xdd)](_0x3056de,_0x5b0d90,_0x35a303,_0x52bbd4,_0x51f56c){const _0x5b3b59=_0x2561c3,_0x59bb58=_0x3056de[_0x5b3b59(0xe5)](_0x204761),_0x1e4fd5=_0x3056de[_0x5b3b59(0xe5)](_0x585a07),_0x549598=_0x5b0d90['getUnitId'](),_0x3ff9f1=_0x5b0d90[_0x5b3b59(0xe4)](),_0x108e77=_0x59bb58[_0x5b3b59(0xcc)](_0x549598);(_0x108e77==null?void 0x0:_0x108e77[_0x5b3b59(0xd6)]())!==_0x5af292['PRESENTING']||(_0x35a303[_0x5b3b59(0xd4)]()!==_0x3ff9f1[_0x5b3b59(0xd4)]()&&this[_0x5b3b59(0xdf)][_0x5b3b59(0xe9)](_0xabbfd8['id'],{'unitId':_0x549598,'subUnitId':_0x35a303['getSheetId']()}),!_0x1e4fd5['getRenderById'](_0x549598))||_0x51f56c['syncExecuteCommand'](_0x2dfe55['id'],{'unitId':_0x5b0d90[_0x5b3b59(0xe7)](),'sheetId':_0x35a303['getSheetId'](),'sheetViewStartRow':_0x52bbd4['startRow'],'sheetViewStartColumn':_0x52bbd4[_0x5b3b59(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x426e48[_0x2561c3(0xe8)](I);class m extends _0x29f894{['getLiveShareStatus'](){const _0x5775fa=_0x2561c3;var _0x4803a2,_0x453d4;const _0x3dca3c=this[_0x5775fa(0xe0)][_0x5775fa(0xe5)](_0x204761),_0x5308c1=(_0x4803a2=this[_0x5775fa(0xdb)]())==null?void 0x0:_0x4803a2[_0x5775fa(0xea)]();if(!_0x5308c1)throw new Error(_0x5775fa(0xe1));const _0x4a1981=_0x3dca3c[_0x5775fa(0xcc)](_0x5308c1);return(_0x453d4=_0x4a1981==null?void 0x0:_0x4a1981[_0x5775fa(0xd6)]())!=null?_0x453d4:_0x5af292[_0x5775fa(0xd0)];}[_0x2561c3(0xe2)](){const _0x56ac37=_0x2561c3;var _0x2a1a51;const _0x5f2911=this[_0x56ac37(0xe0)][_0x56ac37(0xe5)](_0x204761),_0x2e43f9=(_0x2a1a51=this[_0x56ac37(0xdb)]())==null?void 0x0:_0x2a1a51['getId']();if(!_0x2e43f9)throw new Error(_0x56ac37(0xe1));const _0xea5ea8=_0x5f2911[_0x56ac37(0xcc)](_0x2e43f9);if(!_0xea5ea8)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xea5ea8['startFollowing']();}[_0x2561c3(0xcf)](){const _0x160ab0=_0x2561c3;var _0xd4633f;const _0x11ee3b=this['_injector'][_0x160ab0(0xe5)](_0x204761),_0x2ba408=(_0xd4633f=this['getActiveWorkbook']())==null?void 0x0:_0xd4633f['getId']();if(!_0x2ba408)throw new Error(_0x160ab0(0xe1));const _0x54d5e8=_0x11ee3b['getLiveShareCoordinatorSync'](_0x2ba408);if(!_0x54d5e8)throw new Error(_0x160ab0(0xec));_0x54d5e8[_0x160ab0(0xcf)]();}[_0x2561c3(0xd8)](){const _0x1bda36=_0x2561c3;var _0x1d7986;const _0x4e127e=this[_0x1bda36(0xe0)]['get'](_0x204761),_0x1355be=(_0x1d7986=this['getActiveWorkbook']())==null?void 0x0:_0x1d7986[_0x1bda36(0xea)]();if(!_0x1355be)throw new Error(_0x1bda36(0xe1));const _0x474541=_0x4e127e['getLiveShareCoordinatorSync'](_0x1355be);if(!_0x474541)throw new Error(_0x1bda36(0xec));_0x474541[_0x1bda36(0xde)]();}[_0x2561c3(0xd7)](){const _0x53d076=_0x2561c3;var _0x2808d5;const _0x5d4a44=this[_0x53d076(0xe0)][_0x53d076(0xe5)](_0x204761),_0xa867df=(_0x2808d5=this[_0x53d076(0xdb)]())==null?void 0x0:_0x2808d5[_0x53d076(0xea)]();if(!_0xa867df)throw new Error('No\x20active\x20workbook\x20found.');const _0x2b9413=_0x5d4a44[_0x53d076(0xcc)](_0xa867df);if(!_0x2b9413)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b9413[_0x53d076(0xd7)]();}}_0x29f894[_0x2561c3(0xe8)](m);class C extends _0x444374{get['LiveShareStatusEnum'](){return _0x5af292;}}_0x444374['extend'](C);function _0x17e9(){const _0x5314ef=['getUnitId','extend','executeCommand','getId','838232doQIbC','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','300496eITPyP','10wYnpJY','stopFollowing','IDLE','18gGFVyC','279858hDoivd','145270EROWIB','getSheetId','startColumn','getStatus','stopPresenting','startPresenting','13822765YKUMZH','5XYfgdU','getActiveWorkbook','1540038FCejAP','_initialize','tryStartPresenting','_commandService','_injector','No\x20active\x20workbook\x20found.','startFollowing','1312cPXXWC','getActiveSheet','get','2655mRrCPP'];_0x17e9=function(){return _0x5314ef;};return _0x17e9();}
1
+ const _0x5293cb=_0x23dc;(function(_0x4ec40d,_0x2d323c){const _0x518124=_0x23dc,_0x39563a=_0x4ec40d();while(!![]){try{const _0x4c6788=parseInt(_0x518124(0x164))/0x1+-parseInt(_0x518124(0x185))/0x2+parseInt(_0x518124(0x165))/0x3+parseInt(_0x518124(0x16a))/0x4*(-parseInt(_0x518124(0x17e))/0x5)+parseInt(_0x518124(0x176))/0x6*(parseInt(_0x518124(0x173))/0x7)+parseInt(_0x518124(0x183))/0x8+-parseInt(_0x518124(0x180))/0x9*(-parseInt(_0x518124(0x17f))/0xa);if(_0x4c6788===_0x2d323c)break;else _0x39563a['push'](_0x39563a['shift']());}catch(_0x3d1ae2){_0x39563a['push'](_0x39563a['shift']());}}}(_0x22d7,0x4b2e0));function _0x23dc(_0x5db9dd,_0x4df6d6){_0x5db9dd=_0x5db9dd-0x164;const _0x22d7aa=_0x22d7();let _0x23dce0=_0x22d7aa[_0x5db9dd];return _0x23dce0;}import{LiveShareController as _0x16c5cc,LiveShareStatus as _0x1f6523}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xc3603b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c665a}from'@univerjs/sheets';import{SetScrollOperation as _0x487c0f}from'@univerjs/sheets-ui';function _0x22d7(){const _0x50c9c6=['68SfqgET','getRenderById','getLiveShareStatus','getUnitId','getActiveSheet','getStatus','getId','syncExecuteCommand','getSheetId','35fieIjn','IDLE','_injector','105852QNTiSf','getLiveShareCoordinatorSync','executeCommand','PRESENTING','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','_commandService','158135VgTgQD','2546990tOiQKu','9nwmBYN','LiveShareStatusEnum','stopFollowing','2187712EmQqJW','_initialize','641400OygNKg','startColumn','getActiveWorkbook','450559dSPSni','298089QfjoKB','startFollowing','get','tryStartPresenting','extend'];_0x22d7=function(){return _0x50c9c6;};return _0x22d7();}import{FRange as _0x3bddf8}from'@univerjs/sheets/facade';import{FUniver as _0x30b7ca,FEnum as _0x5c895f}from'@univerjs/core/facade';class I extends _0x3bddf8{[_0x5293cb(0x184)](_0x478184,_0x2c8249,_0x535a5e,_0x3a37d5,_0x358e9a){const _0x27736d=_0x5293cb,_0x143166=_0x478184[_0x27736d(0x167)](_0x16c5cc),_0x4cea05=_0x478184[_0x27736d(0x167)](_0xc3603b),_0x1e8c10=_0x2c8249['getUnitId'](),_0x59870f=_0x2c8249[_0x27736d(0x16e)](),_0xd0295b=_0x143166['getLiveShareCoordinatorSync'](_0x1e8c10);(_0xd0295b==null?void 0x0:_0xd0295b['getStatus']())!==_0x1f6523[_0x27736d(0x179)]||(_0x535a5e[_0x27736d(0x172)]()!==_0x59870f['getSheetId']()&&this[_0x27736d(0x17d)][_0x27736d(0x178)](_0x3c665a['id'],{'unitId':_0x1e8c10,'subUnitId':_0x535a5e[_0x27736d(0x172)]()}),!_0x4cea05[_0x27736d(0x16b)](_0x1e8c10))||_0x358e9a[_0x27736d(0x171)](_0x487c0f['id'],{'unitId':_0x2c8249[_0x27736d(0x16d)](),'sheetId':_0x535a5e[_0x27736d(0x172)](),'sheetViewStartRow':_0x3a37d5['startRow'],'sheetViewStartColumn':_0x3a37d5[_0x27736d(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3bddf8[_0x5293cb(0x169)](I);class m extends _0x30b7ca{[_0x5293cb(0x16c)](){const _0x3045ba=_0x5293cb;var _0x474a56,_0x390c2c;const _0x3b19e7=this['_injector']['get'](_0x16c5cc),_0x6389c5=(_0x474a56=this[_0x3045ba(0x187)]())==null?void 0x0:_0x474a56['getId']();if(!_0x6389c5)throw new Error(_0x3045ba(0x17c));const _0x497d66=_0x3b19e7[_0x3045ba(0x177)](_0x6389c5);return(_0x390c2c=_0x497d66==null?void 0x0:_0x497d66[_0x3045ba(0x16f)]())!=null?_0x390c2c:_0x1f6523[_0x3045ba(0x174)];}[_0x5293cb(0x166)](){const _0x5c552d=_0x5293cb;var _0x1702b4;const _0x72ed5b=this['_injector'][_0x5c552d(0x167)](_0x16c5cc),_0x193bf3=(_0x1702b4=this['getActiveWorkbook']())==null?void 0x0:_0x1702b4[_0x5c552d(0x170)]();if(!_0x193bf3)throw new Error(_0x5c552d(0x17c));const _0x1f630a=_0x72ed5b['getLiveShareCoordinatorSync'](_0x193bf3);if(!_0x1f630a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1f630a[_0x5c552d(0x166)]();}['stopFollowing'](){const _0xf7360f=_0x5293cb;var _0x218574;const _0xdd2b6f=this[_0xf7360f(0x175)][_0xf7360f(0x167)](_0x16c5cc),_0x33bcec=(_0x218574=this[_0xf7360f(0x187)]())==null?void 0x0:_0x218574['getId']();if(!_0x33bcec)throw new Error(_0xf7360f(0x17c));const _0x3fa141=_0xdd2b6f[_0xf7360f(0x177)](_0x33bcec);if(!_0x3fa141)throw new Error(_0xf7360f(0x17b));_0x3fa141[_0xf7360f(0x182)]();}['startPresenting'](){const _0x1b5b1d=_0x5293cb;var _0x2b3169;const _0x29496d=this[_0x1b5b1d(0x175)]['get'](_0x16c5cc),_0x9f4578=(_0x2b3169=this['getActiveWorkbook']())==null?void 0x0:_0x2b3169[_0x1b5b1d(0x170)]();if(!_0x9f4578)throw new Error(_0x1b5b1d(0x17c));const _0x133052=_0x29496d[_0x1b5b1d(0x177)](_0x9f4578);if(!_0x133052)throw new Error(_0x1b5b1d(0x17b));_0x133052[_0x1b5b1d(0x168)]();}[_0x5293cb(0x17a)](){const _0x4915d4=_0x5293cb;var _0x27dc21;const _0x49ae80=this[_0x4915d4(0x175)][_0x4915d4(0x167)](_0x16c5cc),_0x22b8e2=(_0x27dc21=this['getActiveWorkbook']())==null?void 0x0:_0x27dc21[_0x4915d4(0x170)]();if(!_0x22b8e2)throw new Error(_0x4915d4(0x17c));const _0x28fffd=_0x49ae80[_0x4915d4(0x177)](_0x22b8e2);if(!_0x28fffd)throw new Error(_0x4915d4(0x17b));_0x28fffd[_0x4915d4(0x17a)]();}}_0x30b7ca['extend'](m);class C extends _0x5c895f{get[_0x5293cb(0x181)](){return _0x1f6523;}}_0x5c895f[_0x5293cb(0x169)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5a9157=_0x4e14;(function(_0x56d1de,_0x1be11f){const _0x3232cd=_0x4e14,_0x1af3f2=_0x56d1de();while(!![]){try{const _0x19c600=parseInt(_0x3232cd(0x191))/0x1+-parseInt(_0x3232cd(0x166))/0x2+parseInt(_0x3232cd(0x130))/0x3+parseInt(_0x3232cd(0x1a9))/0x4+parseInt(_0x3232cd(0x14d))/0x5+parseInt(_0x3232cd(0x161))/0x6+-parseInt(_0x3232cd(0x16b))/0x7;if(_0x19c600===_0x1be11f)break;else _0x1af3f2['push'](_0x1af3f2['shift']());}catch(_0x56f5ba){_0x1af3f2['push'](_0x1af3f2['shift']());}}}(_0x54c7,0xb3ce5));function _0x4e14(_0x50138c,_0x45307e){_0x50138c=_0x50138c-0x115;const _0x54c7ce=_0x54c7();let _0x4e14ac=_0x54c7ce[_0x50138c];return _0x4e14ac;}var J=Object[_0x5a9157(0x136)],K=(_0x4672aa,_0x1de778,_0x12c834)=>_0x1de778 in _0x4672aa?J(_0x4672aa,_0x1de778,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12c834}):_0x4672aa[_0x1de778]=_0x12c834,u=(_0x3616d7,_0x5d1470,_0x5456b0)=>K(_0x3616d7,typeof _0x5d1470!=_0x5a9157(0x194)?_0x5d1470+'':_0x5d1470,_0x5456b0);import{Disposable as _0xa28d62,toDisposable as _0x3e6459,IUniverInstanceService as _0x2bf8ed,Inject as _0x5890f3,Injector as _0x2ac967,IConfigService as _0x2ccd3e,ICommandService as _0x8f3e9,RxDisposable as _0x1cce5c,UniverInstanceType as _0x118916,DisposableCollection as _0x5315c9,CommandType as _0x55dc24,DependentOn as _0x2c9f12,Plugin as _0x446406,merge as _0x230b34,registerDependencies as _0x3ca90e,mergeOverrideWithDependencies as _0x1d22c6,touchDependencies as _0xa89abb}from'@univerjs/core';import{useDependency as _0x14fb74,useObservable as _0x25b804,IUIPartsService as _0x4b3e7b,BuiltInUIPart as _0x3df1ce,connectInjector as _0x360939}from'@univerjs/ui';import{jsx as _0xe9d27a,jsxs as _0x1044b3,Fragment as _0x21e76d}from'react/jsx-runtime';import{Dropdown as _0x1d5dcc,clsx as _0x26827b,Button as _0x43cbc8}from'@univerjs/design';import{useRef as _0x3a8f3b,createElement as _0x445d41,forwardRef as _0x3a591f,useState as _0x5ab416,useEffect as _0x34456e}from'react';import{CollaborationEvent as _0xb6d82,parseProtocolChangeset as _0x448a4b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x270da6,SessionStatus as _0x1f086f,UniverCollaborationClientPlugin as _0x270228}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1a8b78,SetWorksheetActiveOperation as _0x4ff82e}from'@univerjs/sheets';import{BehaviorSubject as _0x4812e4,Subject as _0x4797b2}from'rxjs';import{takeUntil as _0x5bc01a,throttleTime as _0x1e0766}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f21c4,SetScrollOperation as _0x447fe5}from'@univerjs/sheets-ui';function k({ref:_0x4aafb6,..._0x34a9d5}){const _0x2fa30d=_0x5a9157,{icon:_0x10eab9,id:_0x3dc31d,className:_0x26f72d,extend:_0x195ada,..._0x1ea6ed}=_0x34a9d5,_0x264f64=(_0x2fa30d(0x11f)+_0x3dc31d+'\x20'+(_0x26f72d||''))[_0x2fa30d(0x13b)](),_0x543818=_0x3a8f3b('_'+Oe());return G(_0x10eab9,''+_0x3dc31d,{'defIds':_0x10eab9[_0x2fa30d(0x190)],'idSuffix':_0x543818[_0x2fa30d(0x17b)]},{'ref':_0x4aafb6,'className':_0x264f64,..._0x1ea6ed},_0x195ada);}function G(_0x5223e4,_0x4d5a88,_0xc614ca,_0x7e6615,_0x2c9f7e){const _0x47cd5e=_0x5a9157;return _0x445d41(_0x5223e4['tag'],{'key':_0x4d5a88,...be(_0x5223e4,_0xc614ca,_0x2c9f7e),..._0x7e6615},(Ee(_0x5223e4,_0xc614ca)[_0x47cd5e(0x125)]||[])[_0x47cd5e(0x11c)]((_0x409539,_0x18da96)=>G(_0x409539,_0x4d5a88+'-'+_0x5223e4[_0x47cd5e(0x12c)]+'-'+_0x18da96,_0xc614ca,void 0x0,_0x2c9f7e)));}function be(_0x27d574,_0x3a9068,_0x50d3bf){const _0x4524b0=_0x5a9157,_0x387e5f={..._0x27d574[_0x4524b0(0x184)]};_0x50d3bf!=null&&_0x50d3bf[_0x4524b0(0x152)]&&_0x387e5f['fill']===_0x4524b0(0x152)&&(_0x387e5f['fill']=_0x50d3bf[_0x4524b0(0x152)]),_0x27d574[_0x4524b0(0x12c)]===_0x4524b0(0x1b5)&&_0x387e5f['id']&&(_0x387e5f['id']=_0x387e5f['id']+_0x3a9068[_0x4524b0(0x175)]),Object['entries'](_0x387e5f)[_0x4524b0(0x183)](([_0xbb34fb,_0x214116])=>{const _0x424387=_0x4524b0;_0xbb34fb==='mask'&&typeof _0x214116==_0x424387(0x18b)&&(_0x387e5f[_0xbb34fb]=_0x214116['replace'](/url\(#(.*)\)/,_0x424387(0x18f)+_0x3a9068[_0x424387(0x175)]+')'));});const {defIds:_0x43c136}=_0x3a9068;return!_0x43c136||_0x43c136[_0x4524b0(0x18d)]===0x0||(_0x27d574['tag']==='use'&&_0x387e5f['xlink:href']&&(_0x387e5f[_0x4524b0(0x199)]=_0x387e5f[_0x4524b0(0x199)]+_0x3a9068[_0x4524b0(0x175)]),Object[_0x4524b0(0x121)](_0x387e5f)['forEach'](([_0x4e4ed0,_0xa2838b])=>{const _0x3d9828=_0x4524b0;typeof _0xa2838b==_0x3d9828(0x18b)&&(_0x387e5f[_0x4e4ed0]=_0xa2838b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3a9068[_0x3d9828(0x175)]+')'));})),_0x387e5f;}function Ee(_0x2db2ec,_0x222fe7){const _0x53553e=_0x5a9157;var _0x210d98;const {defIds:_0x39dcfb}=_0x222fe7;return!_0x39dcfb||_0x39dcfb['length']===0x0?_0x2db2ec:_0x2db2ec[_0x53553e(0x12c)]==='defs'&&((_0x210d98=_0x2db2ec['children'])!=null&&_0x210d98[_0x53553e(0x18d)])?{..._0x2db2ec,'children':_0x2db2ec[_0x53553e(0x125)][_0x53553e(0x11c)](_0x424c08=>typeof _0x424c08[_0x53553e(0x184)]['id']==_0x53553e(0x18b)&&_0x39dcfb&&_0x39dcfb['includes'](_0x424c08[_0x53553e(0x184)]['id'])?{..._0x424c08,'attrs':{..._0x424c08['attrs'],'id':_0x424c08['attrs']['id']+_0x222fe7[_0x53553e(0x175)]}}:_0x424c08)}:_0x2db2ec;}function Oe(){const _0x675a0b=_0x5a9157;return Math['random']()[_0x675a0b(0x1a6)](0x24)['substring'](0x2,0x8);}k[_0x5a9157(0x18a)]='UniverIcon';const we={'tag':_0x5a9157(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a9157(0x145),'viewBox':_0x5a9157(0x173),'width':_0x5a9157(0x1b3),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x159)}},{'tag':_0x5a9157(0x12d),'attrs':{'fill':_0x5a9157(0x132),'d':_0x5a9157(0x17c),'fillRule':_0x5a9157(0x1ae),'clipRule':_0x5a9157(0x1ae)}}]},W=_0x3a591f(function(_0x9266ec,_0x26acce){const _0x563837=_0x5a9157;return _0x445d41(k,Object['assign']({},_0x9266ec,{'id':_0x563837(0x1a2),'ref':_0x26acce,'icon':we}));});W[_0x5a9157(0x18a)]=_0x5a9157(0x188);class L extends _0xa28d62{constructor(){const _0x1c1033=_0x5a9157;super(...arguments),u(this,_0x1c1033(0x189),new Set()),u(this,'_reporters',new Set());}[_0x5a9157(0x19f)](_0x3a6d42){const _0x1a8668=_0x5a9157;return this[_0x1a8668(0x189)][_0x1a8668(0x16e)](_0x3a6d42),_0x3e6459(()=>this[_0x1a8668(0x189)][_0x1a8668(0x12e)](_0x3a6d42));}['registerInitialStateReporter'](_0x14f19b){const _0x430a19=_0x5a9157;return this[_0x430a19(0x157)][_0x430a19(0x16e)](_0x14f19b),_0x3e6459(()=>this['_reporters'][_0x430a19(0x12e)](_0x14f19b));}[_0x5a9157(0x168)](_0x16d14b){const _0x28ffee=_0x5a9157;return this[_0x28ffee(0x189)]['has'](_0x16d14b);}[_0x5a9157(0x13c)](_0x4b9d74){const _0x4b079f=_0x5a9157;return Array[_0x4b079f(0x16a)](this[_0x4b079f(0x157)])[_0x4b079f(0x11c)](_0x65bfbd=>_0x65bfbd(_0x4b9d74));}}var Ne=Object[_0x5a9157(0x162)],Y=(_0x37b0e3,_0x5a90ae,_0x3eae1e,_0x3c7894)=>{const _0x1411cf=_0x5a9157;for(var _0x43b1a6=_0x3c7894>0x1?void 0x0:_0x3c7894?Ne(_0x5a90ae,_0x3eae1e):_0x5a90ae,_0x29854b=_0x37b0e3[_0x1411cf(0x18d)]-0x1,_0x4e45ce;_0x29854b>=0x0;_0x29854b--)(_0x4e45ce=_0x37b0e3[_0x29854b])&&(_0x43b1a6=_0x4e45ce(_0x43b1a6)||_0x43b1a6);return _0x43b1a6;},_=(_0xa33a29,_0x53098a)=>(_0x3f79a9,_0x36dda4)=>_0x53098a(_0x3f79a9,_0x36dda4,_0xa33a29);function _0x54c7(){const _0x39b7d5=['attrs','unsubscribe','_handleNewHost','svg','LiveShareIcon','_sharedOperations','displayName','string','setConfig','length','stopFollowing','url(#$1','defIds','217525LzCWYs','disposeWithMe','tryStartPresenting','symbol','PRESENTING','find','Present\x20this\x20document','onRendered','xlink:href','dispose$','getConfig','ONLINE','_handleOffline','has','registerSharedOperation','_handleOperation','stringify','live-share-icon','getLiveShareCoordinatorSync','_collabSession','UNIVER_UNKNOWN','toString','getMemberID','getCurrentTypeOfUnit$','467616fUPsvU','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','_uiPartsService','_univerInstanceService','pluginName','evenodd','_commandDisposable','sheet','_fetchOperations','registerComponent','1em','NEW_CHANGESETS','mask','status$','_mountLiveShare','_startPresenting','end','override','_startLiveShareCoordinator','asObservable','startFollowing','getValue','send','map','getTypeOfUnitAdded$','_beIdle','univerjs-icon\x20univerjs-icon-','not-following','entries','univer-size-4','You\x27are\x20offline.','get','children','Start\x20following','complete','values','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','createInstance','tag','path','delete','_init','3653502BOwAta','getUnitId','currentColor','_collabSessionService','Stop\x20presenting','_stopFollowing','defineProperty','unitId','Start','_injector','_stopPresenting','trim','getInitialStates','button','params','_commandService','You\x27re\x20following\x20the\x20presenter','_entities','reverse','UNIVER_SHEET','_handleOnline','none','executeCommand','_liveShareService','LIVESHARE_OPERATION','_handleTerminate','FOLLOWING','_status$','getLiveShareCoordinator','1846640ldcwVj','_config','requireSession','OFFLINE','_configService','colorChannel1','default','subscribe','You\x27re\x20presenting\x20the\x20document','_unitID','_reporters','LIVESHARE_TERMINATE','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','then','dispose','OPERATION','memberID','next','idle','getStatus','3389754vyajxw','getOwnPropertyDescriptor','_startFollowing','following','LIVESHARE_FETCH_OPERATIONS','1052856QySCGt','getTypeOfUnitDisposed$','shouldShareOperation','data','from','8565459AAFyas','mutations','set','add','clear','stopPresenting','HEADER_MENU','text','0\x200\x2017\x2017','presenting','idSuffix','LIVESHARE_REQUEST_HOST','Stop\x20following','NOT_FOLLOWING','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','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','UNIVER_LIVE_SHARE_PLUGIN','pipe','offline','init','_handleNewChangeSets','_status','forEach'];_0x54c7=function(){return _0x39b7d5;};return _0x54c7();}let S=class extends _0x1cce5c{constructor(_0x315b6e,_0x304d1b,_0x3ba4b9){const _0x501fca=_0x5a9157;super(),u(this,_0x501fca(0x141),new Map()),(this['_univerInstanceService']=_0x315b6e,this[_0x501fca(0x139)]=_0x304d1b,this[_0x501fca(0x133)]=_0x3ba4b9,this['_init']());}async[_0x5a9157(0x14c)](_0x5b02c6){const _0x7784dc=_0x5a9157;return this['_entities']['has'](_0x5b02c6)||await this['_startLiveShareCoordinator'](_0x5b02c6),this[_0x7784dc(0x141)][_0x7784dc(0x124)](_0x5b02c6);}[_0x5a9157(0x1a3)](_0x268da4){const _0x426ceb=_0x5a9157;var _0xcfdf9d;return(_0xcfdf9d=this['_entities'][_0x426ceb(0x124)](_0x268da4))!=null?_0xcfdf9d:null;}['_init'](){const _0x55a05c=_0x5a9157;this['_univerInstanceService'][_0x55a05c(0x11d)](_0x118916[_0x55a05c(0x143)])[_0x55a05c(0x17e)](_0x5bc01a(this['dispose$']))[_0x55a05c(0x154)](async _0x57c2a7=>{const _0x2622f1=_0x55a05c,_0x3e6ddc=_0x57c2a7[_0x2622f1(0x131)]();this['_entities'][_0x2622f1(0x19e)](_0x3e6ddc)||this[_0x2622f1(0x117)](_0x3e6ddc);}),this[_0x55a05c(0x1ac)][_0x55a05c(0x167)](_0x118916[_0x55a05c(0x143)])['pipe'](_0x5bc01a(this[_0x55a05c(0x19a)]))[_0x55a05c(0x154)](_0x331c33=>{const _0x9104fd=_0x55a05c,_0x287175=_0x331c33['getUnitId'](),_0x48eb15=this[_0x9104fd(0x141)][_0x9104fd(0x124)](_0x287175);_0x48eb15==null||_0x48eb15['dispose']();});}async[_0x5a9157(0x117)](_0x274525){const _0x4c5ae2=_0x5a9157,_0x13c343=await this['_collabSessionService'][_0x4c5ae2(0x14f)](_0x274525),_0x5dcc38=this[_0x4c5ae2(0x139)][_0x4c5ae2(0x12b)](N,_0x274525,_0x13c343);return _0x5dcc38[_0x4c5ae2(0x180)](),this['_entities'][_0x4c5ae2(0x16d)](_0x274525,_0x5dcc38),_0x5dcc38;}};S=Y([_(0x0,_0x2bf8ed),_(0x1,_0x5890f3(_0x2ac967)),_(0x2,_0x5890f3(_0x270da6))],S);var c=(_0x3dd772=>(_0x3dd772[_0x5a9157(0x150)]=_0x5a9157(0x17f),_0x3dd772[_0x5a9157(0x12a)]=_0x5a9157(0x15f),_0x3dd772['FOLLOWING']=_0x5a9157(0x164),_0x3dd772[_0x5a9157(0x178)]=_0x5a9157(0x120),_0x3dd772['PRESENTING']=_0x5a9157(0x174),_0x3dd772))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1cce5c{constructor(_0xb205f3,_0x145752,_0x10357b,_0x3da1b7,_0x3c2a71){const _0x11a0a2=_0x5a9157;super(),u(this,'_status$',new _0x4812e4(_0x11a0a2(0x15f))),u(this,_0x11a0a2(0x1b6),this[_0x11a0a2(0x14b)][_0x11a0a2(0x118)]()),u(this,_0x11a0a2(0x12f),!0x1),u(this,'_commandDisposable',null),u(this,_0x11a0a2(0x179),null),(this[_0x11a0a2(0x156)]=_0xb205f3,this[_0x11a0a2(0x1a4)]=_0x145752,this['_configService']=_0x10357b,this['_liveShareService']=_0x3da1b7,this[_0x11a0a2(0x13f)]=_0x3c2a71);}get[_0x5a9157(0x182)](){const _0x590aa9=_0x5a9157;return this['_status$'][_0x590aa9(0x11a)]();}[_0x5a9157(0x15b)](){const _0x1b17eb=_0x5a9157;var _0x419afe;(_0x419afe=this['_commandDisposable'])==null||_0x419afe[_0x1b17eb(0x15b)](),this['_status$'][_0x1b17eb(0x15e)](_0x1b17eb(0x15f)),this[_0x1b17eb(0x14b)][_0x1b17eb(0x127)]();}[_0x5a9157(0x160)](){const _0x2a4fc6=_0x5a9157;return this[_0x2a4fc6(0x182)];}[_0x5a9157(0x180)](){const _0x24d726=_0x5a9157;this[_0x24d726(0x12f)]||(this[_0x24d726(0x12f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x24d726(0x17e)](_0x5bc01a(this[_0x24d726(0x19a)]))['subscribe'](_0x516d76=>{const _0x5bc4aa=_0x24d726;switch(_0x516d76){case _0x1f086f[_0x5bc4aa(0x150)]:this[_0x5bc4aa(0x19d)]();break;case _0x1f086f[_0x5bc4aa(0x19c)]:this[_0x5bc4aa(0x144)]();break;}}),this['_collabSession']['event$']['pipe'](_0x5bc01a(this['dispose$']))[_0x24d726(0x154)](_0x3abf42=>{const _0x35f5a9=_0x24d726,{eventID:_0x155f0d}=_0x3abf42;switch(_0x155f0d){case _0xb6d82['LIVESHARE_NEW_HOST']:this[_0x35f5a9(0x186)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x148)]:this[_0x35f5a9(0x1a0)](_0x3abf42);break;case _0xb6d82[_0x35f5a9(0x158)]:this[_0x35f5a9(0x149)]();break;case _0xb6d82[_0x35f5a9(0x1b4)]:this[_0x35f5a9(0x181)](_0x3abf42);break;}}));}['tryStartPresenting'](){const _0x4c0715=_0x5a9157;this['_collabSession'][_0x4c0715(0x11b)]({'eventID':_0xb6d82[_0x4c0715(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x4c0715(0x1a4)][_0x4c0715(0x1a7)]()}},this[_0x4c0715(0x156)]);}[_0x5a9157(0x170)](){const _0x350fc6=_0x5a9157;this[_0x350fc6(0x182)]==='presenting'&&(this[_0x350fc6(0x14b)]['next'](_0x350fc6(0x15f)),this[_0x350fc6(0x1a4)][_0x350fc6(0x11b)]({'eventID':_0xb6d82[_0x350fc6(0x158)],'data':{'unitID':this[_0x350fc6(0x156)]}},this[_0x350fc6(0x156)]));}['startFollowing'](){const _0x98e65=_0x5a9157;this[_0x98e65(0x182)]===_0x98e65(0x120)&&(this['_status$'][_0x98e65(0x15e)](_0x98e65(0x164)),this[_0x98e65(0x163)]());}['stopFollowing'](){const _0x2d5c57=_0x5a9157;this['_status']===_0x2d5c57(0x164)&&this[_0x2d5c57(0x135)]();}[_0x5a9157(0x186)](_0x1c646f){const _0x19fecd=_0x5a9157,{presenter:_0x4a340c}=_0x1c646f[_0x19fecd(0x169)],_0x52a714=this[_0x19fecd(0x1a4)][_0x19fecd(0x1a7)]();this[_0x19fecd(0x179)]=_0x4a340c,_0x4a340c===_0x52a714?(this[_0x19fecd(0x135)](),this[_0x19fecd(0x1b8)]()):this['_status']!==_0x19fecd(0x120)&&(this[_0x19fecd(0x13a)](),this[_0x19fecd(0x163)]());}['_fetchOperations'](){const _0x177e9a=_0x5a9157,_0xc199c3={'eventID':_0xb6d82[_0x177e9a(0x165)]};this[_0x177e9a(0x1a4)][_0x177e9a(0x11b)](_0xc199c3,this[_0x177e9a(0x156)]);}[_0x5a9157(0x149)](){const _0x1e3f06=_0x5a9157;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1e3f06(0x11e)]();}[_0x5a9157(0x181)](_0x36b89e){const _0x193e4d=_0x5a9157;if(this[_0x193e4d(0x182)]===_0x193e4d(0x164)&&this[_0x193e4d(0x179)]===_0x36b89e[_0x193e4d(0x169)][_0x193e4d(0x15d)]){const _0x540c5e=_0x448a4b(_0x36b89e[_0x193e4d(0x169)])[_0x193e4d(0x16c)][_0x193e4d(0x142)]()[_0x193e4d(0x196)](_0x45d7bf=>_0x45d7bf['id']===_0x1a8b78['id']);if(_0x540c5e){const _0x4dd3b6=_0x540c5e[_0x193e4d(0x13e)][_0x193e4d(0x137)],_0x1ac1b9=_0x540c5e['params'][_0x193e4d(0x1b0)]['id'];setTimeout(()=>{const _0xee294a=_0x193e4d;this['_commandService'][_0xee294a(0x146)](_0x4ff82e['id'],{'unitId':_0x4dd3b6,'subUnitId':_0x1ac1b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2fcc17=_0x5a9157;this[_0x2fcc17(0x14b)]['next']('presenting');const _0xf2a2fc=new Map(),_0x44940d=this[_0x2fcc17(0x1af)]=new _0x5315c9();_0x44940d[_0x2fcc17(0x16e)](_0x3e6459(()=>{const _0x53be83=_0x2fcc17;_0xf2a2fc[_0x53be83(0x183)](_0x367a3b=>_0x367a3b[_0x53be83(0x127)]()),_0xf2a2fc[_0x53be83(0x16f)]();})),_0x44940d[_0x2fcc17(0x16e)](this[_0x2fcc17(0x13f)]['onCommandExecuted'](_0x5bea74=>{const _0x462bee=_0x2fcc17;var _0x52d583;if(_0x5bea74['type']!==_0x55dc24[_0x462bee(0x15c)]||!this['_liveShareService'][_0x462bee(0x168)](_0x5bea74['id']))return;const {id:_0xb9e8ff}=_0x5bea74;let _0x372092;_0xf2a2fc[_0x462bee(0x19e)](_0xb9e8ff)?_0x372092=_0xf2a2fc[_0x462bee(0x124)](_0xb9e8ff):(_0x372092=new _0x4797b2(),_0xf2a2fc['set'](_0xb9e8ff,_0x372092),_0x372092[_0x462bee(0x17e)](_0x1e0766((_0x52d583=this[_0x462bee(0x151)][_0x462bee(0x19b)](Ce))!=null?_0x52d583:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d940a=>{const _0x2e3533=_0x462bee;this[_0x2e3533(0x1a4)][_0x2e3533(0x11b)]({'eventID':_0xb6d82[_0x2e3533(0x148)],'data':{'unitID':this[_0x2e3533(0x156)],'operations':{[_0x2d940a['id']]:{'id':_0x2d940a['id'],'params':JSON[_0x2e3533(0x1a1)](_0x2d940a[_0x2e3533(0x13e)])}}}},this[_0x2e3533(0x156)]);})),_0x372092['next'](_0x5bea74);})),this[_0x2fcc17(0x147)][_0x2fcc17(0x13c)](this['_unitID'])[_0x2fcc17(0x183)](_0x7bda83=>this[_0x2fcc17(0x1a4)]['send']({'eventID':_0xb6d82[_0x2fcc17(0x148)],'data':{'unitID':this[_0x2fcc17(0x156)],'operations':{[_0x7bda83['id']]:{'id':_0x7bda83['id'],'params':JSON[_0x2fcc17(0x1a1)](_0x7bda83[_0x2fcc17(0x13e)])}}}},this[_0x2fcc17(0x156)]));}[_0x5a9157(0x13a)](){const _0x2e424e=_0x5a9157;var _0x4d1b4f;this[_0x2e424e(0x14b)][_0x2e424e(0x15e)](_0x2e424e(0x15f)),(_0x4d1b4f=this[_0x2e424e(0x1af)])==null||_0x4d1b4f[_0x2e424e(0x15b)](),this['_commandDisposable']=null;}[_0x5a9157(0x163)](){const _0x2bf1fb=_0x5a9157;var _0x27743f;(_0x27743f=this[_0x2bf1fb(0x1af)])==null||_0x27743f[_0x2bf1fb(0x15b)](),this[_0x2bf1fb(0x14b)][_0x2bf1fb(0x15e)](_0x2bf1fb(0x164));}[_0x5a9157(0x11e)](){const _0x2f179d=_0x5a9157;var _0x292e3d;this[_0x2f179d(0x14b)][_0x2f179d(0x15e)](_0x2f179d(0x15f)),(_0x292e3d=this[_0x2f179d(0x1af)])==null||_0x292e3d[_0x2f179d(0x15b)](),this[_0x2f179d(0x1af)]=null;}['_stopFollowing'](){const _0x4d74f4=_0x5a9157;var _0x5a5b28;this[_0x4d74f4(0x14b)]['next']('not-following'),(_0x5a5b28=this['_commandDisposable'])==null||_0x5a5b28['dispose']();}[_0x5a9157(0x1a0)](_0x3d307d){const _0x2213ae=_0x5a9157;if([_0x2213ae(0x174),'not-following',_0x2213ae(0x17f)]['includes'](this[_0x2213ae(0x182)])||!_0x3d307d[_0x2213ae(0x169)]['presenter']||_0x3d307d['data']['presenter']===this[_0x2213ae(0x1a4)][_0x2213ae(0x1a7)]())return;this[_0x2213ae(0x182)]===_0x2213ae(0x15f)&&this['_startFollowing']();const _0x2e8e55=_0x3d307d[_0x2213ae(0x169)]['operations'];Object[_0x2213ae(0x128)](_0x2e8e55)['forEach'](_0x2fffe2=>{const _0x1e2da0=_0x2213ae;this[_0x1e2da0(0x13f)][_0x1e2da0(0x146)](_0x2fffe2['id'],_0x2fffe2[_0x1e2da0(0x13e)]?JSON['parse'](_0x2fffe2['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b4b85=_0x5a9157;var _0x4085e0;this['_status$'][_0x5b4b85(0x15e)](_0x5b4b85(0x17f)),(_0x4085e0=this[_0x5b4b85(0x1af)])==null||_0x4085e0[_0x5b4b85(0x15b)]();}[_0x5a9157(0x144)](){const _0xc3ec29=_0x5a9157;this[_0xc3ec29(0x14b)][_0xc3ec29(0x15e)](_0xc3ec29(0x15f)),this[_0xc3ec29(0x1b1)]();}};N=Y([_(0x2,_0x2ccd3e),_(0x3,_0x5890f3(L)),_(0x4,_0x8f3e9)],N);function Le(){const _0x87951d=_0x5a9157,_0x164387=_0x14fb74(S),_0x527671=_0x14fb74(_0x2bf8ed),_0x462115=_0x25b804(()=>_0x527671[_0x87951d(0x1a8)](_0x118916['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5233cb,_0x38fdee]=_0x5ab416(null),[_0x2043e4,_0x267a6e]=_0x5ab416(c['IDLE']),_0x4d1cae=_0x3a8f3b(null);return _0x34456e(()=>(_0x462115&&_0x164387['getLiveShareCoordinator'](_0x462115['getUnitId']())[_0x87951d(0x15a)](_0x354ae1=>{const _0x5a6f76=_0x87951d;_0x38fdee(_0x354ae1),_0x4d1cae[_0x5a6f76(0x17b)]=_0x354ae1[_0x5a6f76(0x1b6)][_0x5a6f76(0x154)](_0x3caaac=>{_0x267a6e(_0x3caaac);});}),()=>{const _0x2c52bb=_0x87951d;var _0x77fa80;(_0x77fa80=_0x4d1cae[_0x2c52bb(0x17b)])==null||_0x77fa80[_0x2c52bb(0x185)](),_0x4d1cae['current']=null;}),[_0x462115,_0x164387]),_0x5233cb?_0xe9d27a(_0x1d5dcc,{'align':_0x87951d(0x115),'disabled':_0x2043e4===c['OFFLINE'],'className':_0x87951d(0x1aa),'overlay':_0xe9d27a(Re,{'status':_0x2043e4,'coordinator':_0x5233cb}),'children':_0xe9d27a(_0x87951d(0x13d),{'className':_0x26827b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2043e4===c[_0x87951d(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2043e4!==c['OFFLINE']}),'type':_0x87951d(0x13d),'children':_0xe9d27a(W,{'className':_0x87951d(0x122)})})}):null;}function Re(_0x25aabb){const _0xc61288=_0x5a9157,{status:_0xb36f22,coordinator:_0x4f0364}=_0x25aabb;switch(_0xb36f22){case c[_0xc61288(0x12a)]:return _0xe9d27a($e,{'coordinator':_0x4f0364});case c[_0xc61288(0x14a)]:return _0xe9d27a(xe,{'coordinator':_0x4f0364});case c[_0xc61288(0x178)]:return _0xe9d27a(Pe,{'coordinator':_0x4f0364});case c[_0xc61288(0x150)]:return _0xe9d27a(Te,{});case c[_0xc61288(0x195)]:return _0xe9d27a(Ae,{'coordinator':_0x4f0364});default:return null;}}function $e(_0x138a99){const _0x1fcc54=_0x5a9157,{coordinator:_0xe4e224}=_0x138a99;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fcc54(0x197)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0xe4e224[_0x1fcc54(0x193)](),'children':_0x1fcc54(0x138)})]});}function xe(_0xf8d35a){const _0x8632b9=_0x5a9157,{coordinator:_0x4e338a}=_0xf8d35a;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x8632b9(0x17a),'children':_0x8632b9(0x140)}),_0xe9d27a(_0x43cbc8,{'onClick':()=>_0x4e338a[_0x8632b9(0x18e)](),'children':_0x8632b9(0x177)})]});}function Pe(_0xca9462){const _0x14c1ab=_0x5a9157,{coordinator:_0x253fb9}=_0xca9462;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14c1ab(0x17a),'children':_0x14c1ab(0x129)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14c1ab(0x172),'onClick':()=>_0x253fb9[_0x14c1ab(0x119)](),'children':_0x14c1ab(0x126)})]});}function Ae(_0x1b67b1){const _0x14432f=_0x5a9157,{coordinator:_0x21cc66}=_0x1b67b1;return _0x1044b3(_0x21e76d,{'children':[_0xe9d27a('div',{'className':_0x14432f(0x17a),'children':_0x14432f(0x155)}),_0xe9d27a(_0x43cbc8,{'variant':_0x14432f(0x153),'onClick':()=>_0x21cc66[_0x14432f(0x170)](),'children':_0x14432f(0x134)})]});}function Te(){const _0x27306e=_0x5a9157;return _0xe9d27a(_0x21e76d,{'children':_0x27306e(0x123)});}var Fe=Object[_0x5a9157(0x162)],He=(_0x680c97,_0x572487,_0x3190e6,_0x778131)=>{for(var _0x5de778=_0x778131>0x1?void 0x0:_0x778131?Fe(_0x572487,_0x3190e6):_0x572487,_0x38b7e5=_0x680c97['length']-0x1,_0x45b85c;_0x38b7e5>=0x0;_0x38b7e5--)(_0x45b85c=_0x680c97[_0x38b7e5])&&(_0x5de778=_0x45b85c(_0x5de778)||_0x5de778);return _0x5de778;},A=(_0x1c08f4,_0x269771)=>(_0x11bdcd,_0x5f11f9)=>_0x269771(_0x11bdcd,_0x5f11f9,_0x1c08f4);let m=class extends _0xa28d62{constructor(_0x4e63bf,_0x33ce12){const _0x3f3c5b=_0x5a9157;super(),this[_0x3f3c5b(0x139)]=_0x4e63bf,this[_0x3f3c5b(0x1ab)]=_0x33ce12,this[_0x3f3c5b(0x1b7)]();}['_mountLiveShare'](){const _0x59c071=_0x5a9157;this[_0x59c071(0x192)](this[_0x59c071(0x1ab)][_0x59c071(0x1b2)](_0x3df1ce[_0x59c071(0x171)],()=>_0x360939(Le,this[_0x59c071(0x139)])));}};m=He([A(0x0,_0x5890f3(_0x2ac967)),A(0x1,_0x4b3e7b)],m);const ye='live-share.config',T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x58121e,_0xe4291d,_0x278131,_0x54e350)=>{const _0x52190f=_0x5a9157;for(var _0x5868df=_0x54e350>0x1?void 0x0:_0x54e350?Ue(_0xe4291d,_0x278131):_0xe4291d,_0x5c0c07=_0x58121e[_0x52190f(0x18d)]-0x1,_0x51bd8c;_0x5c0c07>=0x0;_0x5c0c07--)(_0x51bd8c=_0x58121e[_0x5c0c07])&&(_0x5868df=_0x51bd8c(_0x5868df)||_0x5868df);return _0x5868df;},je=(_0x5922ab,_0x1a4687)=>(_0x4deae9,_0x52beb5)=>_0x1a4687(_0x4deae9,_0x52beb5,_0x5922ab);let I=class extends _0xa28d62{constructor(_0x1e4d9c){const _0x5d3252=_0x5a9157;super(),this[_0x5d3252(0x147)]=_0x1e4d9c,this[_0x5d3252(0x12f)]();}['_init'](){const _0x2d1dbb=_0x5a9157;[_0x1f21c4['id'],_0x447fe5['id'],_0x4ff82e['id']][_0x2d1dbb(0x183)](_0x558ce7=>{const _0xaaf13e=_0x2d1dbb;this[_0xaaf13e(0x192)](this[_0xaaf13e(0x147)]['registerSharedOperation'](_0x558ce7));});}};I=Ve([je(0x0,_0x5890f3(L))],I);var Me=Object[_0x5a9157(0x136)],ke=Object[_0x5a9157(0x162)],Ge=(_0x2538d1,_0x252d75,_0xd3309f)=>_0x252d75 in _0x2538d1?Me(_0x2538d1,_0x252d75,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3309f}):_0x2538d1[_0x252d75]=_0xd3309f,We=(_0x4752a5,_0x520908,_0x2c7a48,_0x1ce47c)=>{const _0xdf8090=_0x5a9157;for(var _0x4daee4=_0x1ce47c>0x1?void 0x0:_0x1ce47c?ke(_0x520908,_0x2c7a48):_0x520908,_0x2172ca=_0x4752a5[_0xdf8090(0x18d)]-0x1,_0x1376a9;_0x2172ca>=0x0;_0x2172ca--)(_0x1376a9=_0x4752a5[_0x2172ca])&&(_0x4daee4=_0x1376a9(_0x4daee4)||_0x4daee4);return _0x4daee4;},F=(_0x44eeb0,_0xe537e3)=>(_0x5c8c85,_0x1585d5)=>_0xe537e3(_0x5c8c85,_0x1585d5,_0x44eeb0),B=(_0x5db21f,_0x4e46c8,_0x5e04e6)=>Ge(_0x5db21f,typeof _0x4e46c8!=_0x5a9157(0x194)?_0x4e46c8+'':_0x4e46c8,_0x5e04e6);const Ye=_0x5a9157(0x17d);let b=class extends _0x446406{constructor(_0x25cfd7=T,_0x5a0473,_0x2754a2){const _0xb2ab96=_0x5a9157;super(),this['_config']=_0x25cfd7,this[_0xb2ab96(0x139)]=_0x5a0473,this[_0xb2ab96(0x151)]=_0x2754a2;const {..._0x78e952}=_0x230b34({},T,this[_0xb2ab96(0x14e)]);this[_0xb2ab96(0x151)][_0xb2ab96(0x18c)](ye,_0x78e952);}['onStarting'](){const _0x4e70cb=_0x5a9157;_0x3ca90e(this[_0x4e70cb(0x139)],_0x1d22c6([[L],[S],[I],[m]],this[_0x4e70cb(0x14e)][_0x4e70cb(0x116)])),_0xa89abb(this[_0x4e70cb(0x139)],[[I]]);}[_0x5a9157(0x198)](){const _0x4ce401=_0x5a9157;_0xa89abb(this[_0x4ce401(0x139)],[[m]]);}};B(b,'type',_0x118916[_0x5a9157(0x1a5)]),B(b,_0x5a9157(0x1ad),Ye),b=We([_0x2c9f12(_0x270228),F(0x1,_0x5890f3(_0x2ac967)),F(0x2,_0x2ccd3e)],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 _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','forEach','length','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],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 _0x178d(){const _0x1cdeac=['1635431YiFJVn','78020AEvzFN','stopFollowing','_initialize','UniverEngineRender','amd','@univerjs/sheets-ui','83160WsfxvT','getId','2686999SRcsjT','getUnitId','getStatus','_injector','stopPresenting','3530SlAMCu','LiveShareStatus','IDLE','getActiveWorkbook','PRESENTING','UniverSheetsUi','function','startPresenting','getLiveShareCoordinatorSync','FEnum','3SdLrjY','UniverSheetsFacade','11639680HfJQla','FUniver','extend','UniverCoreFacade','SetScrollOperation','LiveShareController','@univerjs/engine-render','FRange','object','No\x20active\x20workbook\x20found.','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1715348EWKjba','tryStartPresenting','UniverProLiveShare','syncExecuteCommand','174pyOTYq','1396174lVxWsy','@univerjs/sheets/facade','getSheetId','getRenderById','SetWorksheetActiveOperation','startRow','LiveShareStatusEnum','getActiveSheet'];_0x178d=function(){return _0x1cdeac;};return _0x178d();}function _0x1ed8(_0x55258e,_0x355928){_0x55258e=_0x55258e-0x90;const _0x178d50=_0x178d();let _0x1ed85f=_0x178d50[_0x55258e];return _0x1ed85f;}(function(_0x5b8384,_0x48cd57){const _0xe68ead=_0x1ed8,_0x3fd4d2=_0x5b8384();while(!![]){try{const _0xc744dd=parseInt(_0xe68ead(0x99))/0x1+-parseInt(_0xe68ead(0x91))/0x2*(-parseInt(_0xe68ead(0xb1))/0x3)+-parseInt(_0xe68ead(0xbf))/0x4+parseInt(_0xe68ead(0x9a))/0x5*(parseInt(_0xe68ead(0x90))/0x6)+parseInt(_0xe68ead(0xa2))/0x7+parseInt(_0xe68ead(0xb3))/0x8+parseInt(_0xe68ead(0xa0))/0x9*(-parseInt(_0xe68ead(0xa7))/0xa);if(_0xc744dd===_0x48cd57)break;else _0x3fd4d2['push'](_0x3fd4d2['shift']());}catch(_0x3479d3){_0x3fd4d2['push'](_0x3fd4d2['shift']());}}}(_0x178d,0xe4196),function(_0x15fd89,_0x2f0a7b){const _0x12eb19=_0x1ed8;typeof exports==_0x12eb19(0xbb)&&typeof module<'u'?_0x2f0a7b(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==_0x12eb19(0xad)&&define[_0x12eb19(0x9e)]?define(['@univerjs-pro/live-share',_0x12eb19(0xb9),'@univerjs/sheets',_0x12eb19(0x9f),_0x12eb19(0x92),'@univerjs/core/facade'],_0x2f0a7b):(_0x15fd89=typeof globalThis<'u'?globalThis:_0x15fd89||self,_0x2f0a7b(_0x15fd89[_0x12eb19(0xc1)],_0x15fd89[_0x12eb19(0x9d)],_0x15fd89['UniverSheets'],_0x15fd89[_0x12eb19(0xac)],_0x15fd89[_0x12eb19(0xb2)],_0x15fd89[_0x12eb19(0xb6)]));}(this,function(_0x222fc4,_0x11d06d,_0x1ff1d3,_0x4fb08c,_0x4ccd75,_0x39bf9d){'use strict';const _0x154172=_0x1ed8;class _0x22dc6a extends _0x4ccd75[_0x154172(0xba)]{[_0x154172(0x9c)](_0x2d2a10,_0x508a11,_0x343910,_0x58885e,_0xb4fc0f){const _0x376912=_0x154172,_0xd886f6=_0x2d2a10[_0x376912(0xbd)](_0x222fc4[_0x376912(0xb8)]),_0x3be418=_0x2d2a10[_0x376912(0xbd)](_0x11d06d['IRenderManagerService']),_0x45d861=_0x508a11[_0x376912(0xa3)](),_0x496a79=_0x508a11[_0x376912(0x98)](),_0xb5c44e=_0xd886f6[_0x376912(0xaf)](_0x45d861);(_0xb5c44e==null?void 0x0:_0xb5c44e['getStatus']())!==_0x222fc4[_0x376912(0xa8)][_0x376912(0xab)]||(_0x343910['getSheetId']()!==_0x496a79[_0x376912(0x93)]()&&this['_commandService']['executeCommand'](_0x1ff1d3[_0x376912(0x95)]['id'],{'unitId':_0x45d861,'subUnitId':_0x343910[_0x376912(0x93)]()}),!_0x3be418[_0x376912(0x94)](_0x45d861))||_0xb4fc0f[_0x376912(0xc2)](_0x4fb08c[_0x376912(0xb7)]['id'],{'unitId':_0x508a11[_0x376912(0xa3)](),'sheetId':_0x343910[_0x376912(0x93)](),'sheetViewStartRow':_0x58885e[_0x376912(0x96)],'sheetViewStartColumn':_0x58885e['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4ccd75[_0x154172(0xba)][_0x154172(0xb5)](_0x22dc6a);class _0x533a66 extends _0x39bf9d['FUniver']{['getLiveShareStatus'](){const _0x45c320=_0x154172;var _0x2266a6,_0x2396e5;const _0x197974=this[_0x45c320(0xa5)][_0x45c320(0xbd)](_0x222fc4[_0x45c320(0xb8)]),_0x14d7d8=(_0x2266a6=this['getActiveWorkbook']())==null?void 0x0:_0x2266a6[_0x45c320(0xa1)]();if(!_0x14d7d8)throw new Error(_0x45c320(0xbc));const _0x5b5756=_0x197974[_0x45c320(0xaf)](_0x14d7d8);return(_0x2396e5=_0x5b5756==null?void 0x0:_0x5b5756[_0x45c320(0xa4)]())!=null?_0x2396e5:_0x222fc4['LiveShareStatus'][_0x45c320(0xa9)];}['startFollowing'](){const _0x5da2da=_0x154172;var _0x58d55d;const _0x140de9=this[_0x5da2da(0xa5)][_0x5da2da(0xbd)](_0x222fc4[_0x5da2da(0xb8)]),_0x27e481=(_0x58d55d=this['getActiveWorkbook']())==null?void 0x0:_0x58d55d[_0x5da2da(0xa1)]();if(!_0x27e481)throw new Error(_0x5da2da(0xbc));const _0x4b02ee=_0x140de9['getLiveShareCoordinatorSync'](_0x27e481);if(!_0x4b02ee)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4b02ee['startFollowing']();}[_0x154172(0x9b)](){const _0x40f2c1=_0x154172;var _0x271b99;const _0x1dedfb=this[_0x40f2c1(0xa5)][_0x40f2c1(0xbd)](_0x222fc4[_0x40f2c1(0xb8)]),_0x41b7b9=(_0x271b99=this[_0x40f2c1(0xaa)]())==null?void 0x0:_0x271b99[_0x40f2c1(0xa1)]();if(!_0x41b7b9)throw new Error(_0x40f2c1(0xbc));const _0x259315=_0x1dedfb[_0x40f2c1(0xaf)](_0x41b7b9);if(!_0x259315)throw new Error(_0x40f2c1(0xbe));_0x259315[_0x40f2c1(0x9b)]();}[_0x154172(0xae)](){const _0x2565ee=_0x154172;var _0x277ddf;const _0x5269d5=this[_0x2565ee(0xa5)][_0x2565ee(0xbd)](_0x222fc4['LiveShareController']),_0x412aed=(_0x277ddf=this['getActiveWorkbook']())==null?void 0x0:_0x277ddf[_0x2565ee(0xa1)]();if(!_0x412aed)throw new Error(_0x2565ee(0xbc));const _0x47f1cf=_0x5269d5[_0x2565ee(0xaf)](_0x412aed);if(!_0x47f1cf)throw new Error(_0x2565ee(0xbe));_0x47f1cf[_0x2565ee(0xc0)]();}[_0x154172(0xa6)](){const _0x494da6=_0x154172;var _0x14bd84;const _0x72ee5e=this['_injector']['get'](_0x222fc4[_0x494da6(0xb8)]),_0x43be8b=(_0x14bd84=this[_0x494da6(0xaa)]())==null?void 0x0:_0x14bd84[_0x494da6(0xa1)]();if(!_0x43be8b)throw new Error(_0x494da6(0xbc));const _0x5f5140=_0x72ee5e['getLiveShareCoordinatorSync'](_0x43be8b);if(!_0x5f5140)throw new Error(_0x494da6(0xbe));_0x5f5140[_0x494da6(0xa6)]();}}_0x39bf9d[_0x154172(0xb4)][_0x154172(0xb5)](_0x533a66);class _0x5640fd extends _0x39bf9d[_0x154172(0xb0)]{get[_0x154172(0x97)](){const _0x2f6a85=_0x154172;return _0x222fc4[_0x2f6a85(0xa8)];}}_0x39bf9d['FEnum']['extend'](_0x5640fd);}));
1
+ function _0x168b(_0x307180,_0x42bc01){_0x307180=_0x307180-0x10d;const _0x340ae7=_0x340a();let _0x168bf9=_0x340ae7[_0x307180];return _0x168bf9;}(function(_0x11e1f0,_0x1b3223){const _0x3238fd=_0x168b,_0x5dd90a=_0x11e1f0();while(!![]){try{const _0xaecebe=parseInt(_0x3238fd(0x112))/0x1*(parseInt(_0x3238fd(0x134))/0x2)+parseInt(_0x3238fd(0x12c))/0x3*(-parseInt(_0x3238fd(0x11d))/0x4)+parseInt(_0x3238fd(0x12b))/0x5*(parseInt(_0x3238fd(0x132))/0x6)+-parseInt(_0x3238fd(0x110))/0x7*(parseInt(_0x3238fd(0x127))/0x8)+-parseInt(_0x3238fd(0x115))/0x9*(parseInt(_0x3238fd(0x13b))/0xa)+parseInt(_0x3238fd(0x122))/0xb*(-parseInt(_0x3238fd(0x12e))/0xc)+parseInt(_0x3238fd(0x143))/0xd;if(_0xaecebe===_0x1b3223)break;else _0x5dd90a['push'](_0x5dd90a['shift']());}catch(_0x3044ff){_0x5dd90a['push'](_0x5dd90a['shift']());}}}(_0x340a,0x5fddd),function(_0x88a8d0,_0x326ab9){const _0x34742d=_0x168b;typeof exports==_0x34742d(0x11e)&&typeof module<'u'?_0x326ab9(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==_0x34742d(0x135)&&define[_0x34742d(0x125)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x34742d(0x13a),_0x34742d(0x129),_0x34742d(0x128),_0x34742d(0x126)],_0x326ab9):(_0x88a8d0=typeof globalThis<'u'?globalThis:_0x88a8d0||self,_0x326ab9(_0x88a8d0[_0x34742d(0x10f)],_0x88a8d0[_0x34742d(0x113)],_0x88a8d0['UniverSheets'],_0x88a8d0[_0x34742d(0x117)],_0x88a8d0[_0x34742d(0x120)],_0x88a8d0[_0x34742d(0x119)]));}(this,function(_0x3e1ca0,_0x13ba2b,_0x62eff7,_0x2b42e6,_0x4ee024,_0x57c9f3){'use strict';const _0x5ffe05=_0x168b;class _0x591a67 extends _0x4ee024[_0x5ffe05(0x137)]{[_0x5ffe05(0x10d)](_0x35d1a9,_0x41d6a8,_0x511a4b,_0x1b995f,_0xb9ce38){const _0x2781ec=_0x5ffe05,_0x353a1a=_0x35d1a9[_0x2781ec(0x13c)](_0x3e1ca0['LiveShareController']),_0x304fe7=_0x35d1a9[_0x2781ec(0x13c)](_0x13ba2b[_0x2781ec(0x141)]),_0x1b0080=_0x41d6a8[_0x2781ec(0x124)](),_0x1fa7da=_0x41d6a8[_0x2781ec(0x10e)](),_0x2a2e6a=_0x353a1a['getLiveShareCoordinatorSync'](_0x1b0080);(_0x2a2e6a==null?void 0x0:_0x2a2e6a[_0x2781ec(0x114)]())!==_0x3e1ca0[_0x2781ec(0x12d)][_0x2781ec(0x12a)]||(_0x511a4b['getSheetId']()!==_0x1fa7da[_0x2781ec(0x142)]()&&this[_0x2781ec(0x123)][_0x2781ec(0x116)](_0x62eff7['SetWorksheetActiveOperation']['id'],{'unitId':_0x1b0080,'subUnitId':_0x511a4b[_0x2781ec(0x142)]()}),!_0x304fe7[_0x2781ec(0x133)](_0x1b0080))||_0xb9ce38[_0x2781ec(0x131)](_0x2b42e6[_0x2781ec(0x144)]['id'],{'unitId':_0x41d6a8[_0x2781ec(0x124)](),'sheetId':_0x511a4b[_0x2781ec(0x142)](),'sheetViewStartRow':_0x1b995f[_0x2781ec(0x111)],'sheetViewStartColumn':_0x1b995f[_0x2781ec(0x11c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4ee024['FRange']['extend'](_0x591a67);class _0x35c527 extends _0x57c9f3[_0x5ffe05(0x13e)]{[_0x5ffe05(0x138)](){const _0x4c1f5b=_0x5ffe05;var _0x47fd77,_0x4585dd;const _0x4f46fc=this[_0x4c1f5b(0x145)][_0x4c1f5b(0x13c)](_0x3e1ca0[_0x4c1f5b(0x11b)]),_0x53d96b=(_0x47fd77=this['getActiveWorkbook']())==null?void 0x0:_0x47fd77[_0x4c1f5b(0x12f)]();if(!_0x53d96b)throw new Error(_0x4c1f5b(0x139));const _0x447bf2=_0x4f46fc[_0x4c1f5b(0x140)](_0x53d96b);return(_0x4585dd=_0x447bf2==null?void 0x0:_0x447bf2[_0x4c1f5b(0x114)]())!=null?_0x4585dd:_0x3e1ca0[_0x4c1f5b(0x12d)]['IDLE'];}[_0x5ffe05(0x11f)](){const _0x5d1fc7=_0x5ffe05;var _0x3ae46b;const _0x5576e0=this[_0x5d1fc7(0x145)]['get'](_0x3e1ca0['LiveShareController']),_0x173938=(_0x3ae46b=this[_0x5d1fc7(0x11a)]())==null?void 0x0:_0x3ae46b['getId']();if(!_0x173938)throw new Error(_0x5d1fc7(0x139));const _0x5ae7bd=_0x5576e0[_0x5d1fc7(0x140)](_0x173938);if(!_0x5ae7bd)throw new Error(_0x5d1fc7(0x118));_0x5ae7bd[_0x5d1fc7(0x11f)]();}['stopFollowing'](){const _0x33adb3=_0x5ffe05;var _0x128186;const _0x226a45=this[_0x33adb3(0x145)][_0x33adb3(0x13c)](_0x3e1ca0[_0x33adb3(0x11b)]),_0x20a67d=(_0x128186=this[_0x33adb3(0x11a)]())==null?void 0x0:_0x128186[_0x33adb3(0x12f)]();if(!_0x20a67d)throw new Error(_0x33adb3(0x139));const _0x5d34f6=_0x226a45[_0x33adb3(0x140)](_0x20a67d);if(!_0x5d34f6)throw new Error(_0x33adb3(0x118));_0x5d34f6[_0x33adb3(0x13d)]();}['startPresenting'](){const _0x2a6d7c=_0x5ffe05;var _0x14d550;const _0x43b4b4=this[_0x2a6d7c(0x145)]['get'](_0x3e1ca0[_0x2a6d7c(0x11b)]),_0x745584=(_0x14d550=this[_0x2a6d7c(0x11a)]())==null?void 0x0:_0x14d550[_0x2a6d7c(0x12f)]();if(!_0x745584)throw new Error(_0x2a6d7c(0x139));const _0x5b634b=_0x43b4b4[_0x2a6d7c(0x140)](_0x745584);if(!_0x5b634b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b634b[_0x2a6d7c(0x136)]();}[_0x5ffe05(0x130)](){const _0x15eb06=_0x5ffe05;var _0x267561;const _0x38a8cd=this['_injector'][_0x15eb06(0x13c)](_0x3e1ca0[_0x15eb06(0x11b)]),_0xc3e673=(_0x267561=this[_0x15eb06(0x11a)]())==null?void 0x0:_0x267561['getId']();if(!_0xc3e673)throw new Error(_0x15eb06(0x139));const _0x5ee8b5=_0x38a8cd[_0x15eb06(0x140)](_0xc3e673);if(!_0x5ee8b5)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5ee8b5[_0x15eb06(0x130)]();}}_0x57c9f3['FUniver'][_0x5ffe05(0x121)](_0x35c527);class _0x5c921f extends _0x57c9f3[_0x5ffe05(0x13f)]{get['LiveShareStatusEnum'](){const _0x120da0=_0x5ffe05;return _0x3e1ca0[_0x120da0(0x12d)];}}_0x57c9f3[_0x5ffe05(0x13f)]['extend'](_0x5c921f);}));function _0x340a(){const _0x57adc8=['85585MNuHIC','6uWGVSR','LiveShareStatus','156xLNDWl','getId','stopPresenting','syncExecuteCommand','30kjqaty','getRenderById','38KUuDTl','function','tryStartPresenting','FRange','getLiveShareStatus','No\x20active\x20workbook\x20found.','@univerjs/sheets','8770BcWryb','get','stopFollowing','FUniver','FEnum','getLiveShareCoordinatorSync','IRenderManagerService','getSheetId','14640145Vbtyls','SetScrollOperation','_injector','_initialize','getActiveSheet','UniverProLiveShare','14VtlPlW','startRow','4182MbkrxT','UniverEngineRender','getStatus','1827iVVyfm','executeCommand','UniverSheetsUi','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverCoreFacade','getActiveWorkbook','LiveShareController','startColumn','1012388tKjubS','object','startFollowing','UniverSheetsFacade','extend','9966uuRuFJ','_commandService','getUnitId','amd','@univerjs/core/facade','810144xfIdBh','@univerjs/sheets/facade','@univerjs/sheets-ui','PRESENTING'];_0x340a=function(){return _0x57adc8;};return _0x340a();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x673f(){const _0x13eaa5=['UniverLiveSharePlugin','LIVESHARE_FETCH_OPERATIONS','LiveShareService','createInstance','colorChannel1','object','forwardRef','@univerjs/design','getStatus','Start','get','@univerjs-pro/collaboration','svg','operations','react','Stop\x20presenting','_liveShareService','DisposableCollection','has','disposeWithMe','react/jsx-runtime','sessionStatus$','amd','getUnitId','sheet','substring','touchDependencies','Inject','pipe','UniverCore','override','add','tryStartPresenting','delete','find','UniverCollaborationClientPlugin','defs','merge','_startPresenting','Injector','replace','clear','DesktopLiveShareController','_sharedOperations','_configService','_handleOnline','Plugin','toDisposable','send','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverDesign','_status','getLiveShareCoordinator','dispose$','ICommandService','30KoVQLe','useState','data','dispose','registerDependencies','_commandService','NOT_FOLLOWING','_handleNewHost','LIVESHARE_NEW_HOST','subscribe','parseProtocolChangeset','then','2cAKzGv','_univerInstanceService','idSuffix','_startFollowing','UNIVER_SHEET','onStarting','Dropdown','BuiltInUIPart','LIVESHARE_TERMINATE','currentColor','_stopPresenting','You\x27are\x20offline.','asObservable','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','onCommandExecuted','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','NEW_CHANGESETS','operators','set','BehaviorSubject','LIVESHARE_OPERATION','React','@univerjs-pro/collaboration-client','Start\x20following','useDependency','map','_fetchOperations','symbol','next','jsx','SetZoomRatioOperation','getMemberID','rxjs','getOwnPropertyDescriptor','registerSharedOperation','InsertSheetMutation','13030190HMJwVy','getTypeOfUnitDisposed$','CollaborationEvent','Fragment','FOLLOWING','_collabSession','Disposable','exports','OPERATION','55028cIfWFV','IUIPartsService','createElement','@univerjs/sheets-ui','http://www.w3.org/2000/svg','_status$','none','random','takeUntil','CommandType','IConfigService','_uiPartsService','div','PRESENTING','tag','type','use','LiveShare','UniverIcon','attrs','LiveShareIcon','params','7648971PBlBhx','current','IDLE','url(#$1','stopFollowing','mask','from','stopPresenting','Subject','getCurrentTypeOfUnit$','offline','pluginName','displayName','values','assign','univer-size-4','executeCommand','xlink:href','_handleNewChangeSets','forEach','6xKfSEz','_entities','mergeOverrideWithDependencies','LiveShareCoordinator','CollaborationSessionService','_presenter','SAME_OPERATION_SHARE_INTERVAL','IUniverInstanceService','end','idle','_handleOffline','children','_init','path','live-share.config','Module','LiveShareController','_collabSessionService','_startLiveShareCoordinator','shouldShareOperation','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','4545264VsVaRe','You\x27re\x20not\x20following\x20the\x20presenter','complete','_beIdle','1em','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','entries','univerjs-icon\x20univerjs-icon-','registerInitialStateReporter','_reporters','stringify','_commandDisposable','following','evenodd','rxjs/operators','default','_handleOperation','reverse','useObservable','presenter','UniverProCollaboration','not-following','presenting','Stop\x20following','defineProperty','string','9uIjhGN','getConfig','status$','requireSession','RxDisposable','209381vFfTFK','getLiveShareCoordinatorSync','0\x200\x2017\x2017','_mountLiveShare','event$','Button','1764185bAOIZJ','unitId','jsxs','UNIVER_LIVE_SHARE_PLUGIN','113022TTbAig','UniverProCollaborationClient','fill','_injector','OFFLINE','_handleTerminate','getInitialStates','_unitID','_config','UniverUi','UniverInstanceType','trim','useRef','connectInjector','length','button','_stopFollowing'];_0x673f=function(){return _0x13eaa5;};return _0x673f();}function _0x21b7(_0x11f6f8,_0x223ff3){_0x11f6f8=_0x11f6f8-0x168;const _0x673f3e=_0x673f();let _0x21b723=_0x673f3e[_0x11f6f8];return _0x21b723;}(function(_0x433616,_0x2fff7f){const _0x4f4255=_0x21b7,_0x50449d=_0x433616();while(!![]){try{const _0x12a3e2=-parseInt(_0x4f4255(0x17e))/0x1*(-parseInt(_0x4f4255(0x1dd))/0x2)+parseInt(_0x4f4255(0x1d1))/0x3*(parseInt(_0x4f4255(0x20a))/0x4)+-parseInt(_0x4f4255(0x184))/0x5*(-parseInt(_0x4f4255(0x234))/0x6)+-parseInt(_0x4f4255(0x188))/0x7+-parseInt(_0x4f4255(0x249))/0x8+-parseInt(_0x4f4255(0x179))/0x9*(-parseInt(_0x4f4255(0x201))/0xa)+-parseInt(_0x4f4255(0x220))/0xb;if(_0x12a3e2===_0x2fff7f)break;else _0x50449d['push'](_0x50449d['shift']());}catch(_0x5233c5){_0x50449d['push'](_0x50449d['shift']());}}}(_0x673f,0xb08c6),function(_0x438697,_0x37d823){const _0x1473bf=_0x21b7;typeof exports==_0x1473bf(0x19e)&&typeof module<'u'?_0x37d823(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[_0x1473bf(0x1af)]?define([_0x1473bf(0x208),'@univerjs/core','@univerjs/ui',_0x1473bf(0x1ad),_0x1473bf(0x1a0),_0x1473bf(0x1a7),_0x1473bf(0x1a4),_0x1473bf(0x1f3),'@univerjs/sheets','rxjs',_0x1473bf(0x16d),_0x1473bf(0x20d)],_0x37d823):(_0x438697=typeof globalThis<'u'?globalThis:_0x438697||self,_0x37d823(_0x438697['UniverProLiveShare']={},_0x438697[_0x1473bf(0x1b6)],_0x438697[_0x1473bf(0x191)],_0x438697[_0x1473bf(0x1f2)],_0x438697[_0x1473bf(0x1cc)],_0x438697[_0x1473bf(0x1f2)],_0x438697[_0x1473bf(0x173)],_0x438697[_0x1473bf(0x189)],_0x438697['UniverSheets'],_0x438697[_0x1473bf(0x1fd)],_0x438697[_0x1473bf(0x1fd)][_0x1473bf(0x1ee)],_0x438697['UniverSheetsUi']));}(this,function(_0x4c092c,_0x2e2e2a,_0x502c89,_0x4dd2ba,_0x4846d0,_0x341c10,_0x4955c8,_0x47aa63,_0x46e7a5,_0x3efe4a,_0x534fd5,_0x1b842f){'use strict';const _0x21162f=_0x21b7;var _0x11832b=Object[_0x21162f(0x177)],_0x1a3013=(_0x2f296c,_0x3fbfc3,_0x9b2161)=>_0x3fbfc3 in _0x2f296c?_0x11832b(_0x2f296c,_0x3fbfc3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9b2161}):_0x2f296c[_0x3fbfc3]=_0x9b2161,_0x312f7a=(_0x5c69b7,_0x4a66e0,_0x1d7149)=>_0x1a3013(_0x5c69b7,typeof _0x4a66e0!=_0x21162f(0x1f8)?_0x4a66e0+'':_0x4a66e0,_0x1d7149);function _0x1cae13({ref:_0x2c148d,..._0x403e39}){const _0x5ed60b=_0x21162f,{icon:_0x4db2fe,id:_0xff1e83,className:_0x49f45d,extend:_0x2b141f,..._0x522be2}=_0x403e39,_0x47d2a0=(_0x5ed60b(0x250)+_0xff1e83+'\x20'+(_0x49f45d||''))[_0x5ed60b(0x193)](),_0x361b30=_0x341c10['useRef']('_'+_0x2bf7d7());return _0x3e67c0(_0x4db2fe,''+_0xff1e83,{'defIds':_0x4db2fe['defIds'],'idSuffix':_0x361b30[_0x5ed60b(0x221)]},{'ref':_0x2c148d,'className':_0x47d2a0,..._0x522be2},_0x2b141f);}function _0x3e67c0(_0x5ddd22,_0x164774,_0x3533c9,_0x211f4c,_0x3fb6ce){const _0x18393c=_0x21162f;return _0x341c10[_0x18393c(0x20c)](_0x5ddd22[_0x18393c(0x218)],{'key':_0x164774,..._0x5232e8(_0x5ddd22,_0x3533c9,_0x3fb6ce),..._0x211f4c},(_0x3e959c(_0x5ddd22,_0x3533c9)[_0x18393c(0x23f)]||[])['map']((_0x1cef31,_0xca5c53)=>_0x3e67c0(_0x1cef31,_0x164774+'-'+_0x5ddd22[_0x18393c(0x218)]+'-'+_0xca5c53,_0x3533c9,void 0x0,_0x3fb6ce)));}function _0x5232e8(_0x47fb27,_0x2881ad,_0x204147){const _0x4189b1=_0x21162f,_0x192f6b={..._0x47fb27[_0x4189b1(0x21d)]};_0x204147!=null&&_0x204147['colorChannel1']&&_0x192f6b[_0x4189b1(0x18a)]===_0x4189b1(0x19d)&&(_0x192f6b[_0x4189b1(0x18a)]=_0x204147[_0x4189b1(0x19d)]),_0x47fb27['tag']==='mask'&&_0x192f6b['id']&&(_0x192f6b['id']=_0x192f6b['id']+_0x2881ad[_0x4189b1(0x1df)]),Object[_0x4189b1(0x24f)](_0x192f6b)[_0x4189b1(0x233)](([_0x47b30a,_0x3c148a])=>{const _0x48aace=_0x4189b1;_0x47b30a===_0x48aace(0x225)&&typeof _0x3c148a=='string'&&(_0x192f6b[_0x47b30a]=_0x3c148a[_0x48aace(0x1c1)](/url\(#(.*)\)/,_0x48aace(0x223)+_0x2881ad[_0x48aace(0x1df)]+')'));});const {defIds:_0x17a51b}=_0x2881ad;return!_0x17a51b||_0x17a51b[_0x4189b1(0x196)]===0x0||(_0x47fb27[_0x4189b1(0x218)]===_0x4189b1(0x21a)&&_0x192f6b[_0x4189b1(0x231)]&&(_0x192f6b['xlink:href']=_0x192f6b['xlink:href']+_0x2881ad[_0x4189b1(0x1df)]),Object[_0x4189b1(0x24f)](_0x192f6b)[_0x4189b1(0x233)](([_0x33c8c0,_0x1fb42f])=>{const _0x2bbc51=_0x4189b1;typeof _0x1fb42f=='string'&&(_0x192f6b[_0x33c8c0]=_0x1fb42f[_0x2bbc51(0x1c1)](/url\(#(.*)\)/,_0x2bbc51(0x223)+_0x2881ad[_0x2bbc51(0x1df)]+')'));})),_0x192f6b;}function _0x3e959c(_0xbfe05c,_0x377447){const _0x4a6d28=_0x21162f;var _0x2bf849;const {defIds:_0x5e8401}=_0x377447;return!_0x5e8401||_0x5e8401[_0x4a6d28(0x196)]===0x0?_0xbfe05c:_0xbfe05c['tag']===_0x4a6d28(0x1bd)&&((_0x2bf849=_0xbfe05c[_0x4a6d28(0x23f)])!=null&&_0x2bf849['length'])?{..._0xbfe05c,'children':_0xbfe05c[_0x4a6d28(0x23f)][_0x4a6d28(0x1f6)](_0x5bf6f5=>typeof _0x5bf6f5[_0x4a6d28(0x21d)]['id']==_0x4a6d28(0x178)&&_0x5e8401&&_0x5e8401['includes'](_0x5bf6f5[_0x4a6d28(0x21d)]['id'])?{..._0x5bf6f5,'attrs':{..._0x5bf6f5[_0x4a6d28(0x21d)],'id':_0x5bf6f5['attrs']['id']+_0x377447[_0x4a6d28(0x1df)]}}:_0x5bf6f5)}:_0xbfe05c;}function _0x2bf7d7(){const _0x992517=_0x21162f;return Math[_0x992517(0x211)]()['toString'](0x24)[_0x992517(0x1b2)](0x2,0x8);}_0x1cae13['displayName']=_0x21162f(0x21c);const _0x1a490b={'tag':_0x21162f(0x1a5),'attrs':{'xmlns':_0x21162f(0x20e),'fill':_0x21162f(0x210),'viewBox':_0x21162f(0x180),'width':_0x21162f(0x24d),'height':_0x21162f(0x24d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x21162f(0x1ea)}},{'tag':_0x21162f(0x241),'attrs':{'fill':_0x21162f(0x1e6),'d':_0x21162f(0x248),'fillRule':_0x21162f(0x16c),'clipRule':'evenodd'}}]},_0x258bab=_0x341c10[_0x21162f(0x19f)](function(_0x94df1,_0x78fb31){const _0x362cf0=_0x21162f;return _0x341c10[_0x362cf0(0x20c)](_0x1cae13,Object[_0x362cf0(0x22e)]({},_0x94df1,{'id':'live-share-icon','ref':_0x78fb31,'icon':_0x1a490b}));});_0x258bab[_0x21162f(0x22c)]=_0x21162f(0x21e);class _0x1398e7 extends _0x2e2e2a[_0x21162f(0x207)]{constructor(){const _0x4aca56=_0x21162f;super(...arguments),_0x312f7a(this,_0x4aca56(0x1c4),new Set()),_0x312f7a(this,_0x4aca56(0x168),new Set());}[_0x21162f(0x1ff)](_0x51dd36){const _0x2269fd=_0x21162f;return this[_0x2269fd(0x1c4)][_0x2269fd(0x1b8)](_0x51dd36),_0x2e2e2a[_0x2269fd(0x1c8)](()=>this[_0x2269fd(0x1c4)][_0x2269fd(0x1ba)](_0x51dd36));}[_0x21162f(0x251)](_0x114588){const _0x4b9d7d=_0x21162f;return this['_reporters']['add'](_0x114588),_0x2e2e2a[_0x4b9d7d(0x1c8)](()=>this['_reporters']['delete'](_0x114588));}[_0x21162f(0x247)](_0xf78186){const _0x24fcdd=_0x21162f;return this[_0x24fcdd(0x1c4)][_0x24fcdd(0x1ab)](_0xf78186);}['getInitialStates'](_0x3229aa){const _0x4f5386=_0x21162f;return Array[_0x4f5386(0x226)](this[_0x4f5386(0x168)])['map'](_0xd2aada=>_0xd2aada(_0x3229aa));}}var _0x2daf1f=Object[_0x21162f(0x1fe)],_0x555952=(_0x55a0a5,_0x3ded10,_0x11af96,_0x2782cf)=>{const _0x45fdb6=_0x21162f;for(var _0x518955=_0x2782cf>0x1?void 0x0:_0x2782cf?_0x2daf1f(_0x3ded10,_0x11af96):_0x3ded10,_0x5deb24=_0x55a0a5[_0x45fdb6(0x196)]-0x1,_0x28590d;_0x5deb24>=0x0;_0x5deb24--)(_0x28590d=_0x55a0a5[_0x5deb24])&&(_0x518955=_0x28590d(_0x518955)||_0x518955);return _0x518955;},_0x3e201c=(_0x1ec2c3,_0x49fc68)=>(_0x2b9b36,_0x17f842)=>_0x49fc68(_0x2b9b36,_0x17f842,_0x1ec2c3);_0x4c092c[_0x21162f(0x244)]=class extends _0x2e2e2a['RxDisposable']{constructor(_0x25ee6e,_0x20783e,_0xc05f4e){const _0x40ec18=_0x21162f;super(),_0x312f7a(this,_0x40ec18(0x235),new Map()),(this[_0x40ec18(0x1de)]=_0x25ee6e,this[_0x40ec18(0x18b)]=_0x20783e,this[_0x40ec18(0x245)]=_0xc05f4e,this[_0x40ec18(0x240)]());}async[_0x21162f(0x1ce)](_0x3481c4){const _0x405855=_0x21162f;return this[_0x405855(0x235)][_0x405855(0x1ab)](_0x3481c4)||await this['_startLiveShareCoordinator'](_0x3481c4),this['_entities'][_0x405855(0x1a3)](_0x3481c4);}[_0x21162f(0x17f)](_0x2a0cd9){const _0x23a1a5=_0x21162f;var _0x19347b;return(_0x19347b=this['_entities'][_0x23a1a5(0x1a3)](_0x2a0cd9))!=null?_0x19347b:null;}[_0x21162f(0x240)](){const _0x49017d=_0x21162f;this[_0x49017d(0x1de)]['getTypeOfUnitAdded$'](_0x2e2e2a[_0x49017d(0x192)]['UNIVER_SHEET'])[_0x49017d(0x1b5)](_0x534fd5['takeUntil'](this[_0x49017d(0x1cf)]))[_0x49017d(0x1da)](async _0x59830d=>{const _0x3b1af5=_0x49017d,_0x2e20b9=_0x59830d[_0x3b1af5(0x1b0)]();this[_0x3b1af5(0x235)]['has'](_0x2e20b9)||this[_0x3b1af5(0x246)](_0x2e20b9);}),this[_0x49017d(0x1de)][_0x49017d(0x202)](_0x2e2e2a[_0x49017d(0x192)][_0x49017d(0x1e1)])[_0x49017d(0x1b5)](_0x534fd5[_0x49017d(0x212)](this[_0x49017d(0x1cf)]))['subscribe'](_0x5629e6=>{const _0x408d8b=_0x49017d,_0x22b920=_0x5629e6['getUnitId'](),_0x5c2667=this['_entities'][_0x408d8b(0x1a3)](_0x22b920);_0x5c2667==null||_0x5c2667[_0x408d8b(0x1d4)]();});}async[_0x21162f(0x246)](_0x51f0bc){const _0x89a6cc=_0x21162f,_0x1f3a67=await this[_0x89a6cc(0x245)][_0x89a6cc(0x17c)](_0x51f0bc),_0x1ce7fa=this[_0x89a6cc(0x18b)][_0x89a6cc(0x19c)](_0x4c092c[_0x89a6cc(0x237)],_0x51f0bc,_0x1f3a67);return _0x1ce7fa['init'](),this[_0x89a6cc(0x235)][_0x89a6cc(0x1ef)](_0x51f0bc,_0x1ce7fa),_0x1ce7fa;}},_0x4c092c[_0x21162f(0x244)]=_0x555952([_0x3e201c(0x0,_0x2e2e2a[_0x21162f(0x23b)]),_0x3e201c(0x1,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a['Injector'])),_0x3e201c(0x2,_0x2e2e2a['Inject'](_0x47aa63[_0x21162f(0x238)]))],_0x4c092c['LiveShareController']);var _0x33f89a=(_0x5e2986=>(_0x5e2986[_0x21162f(0x18c)]=_0x21162f(0x22a),_0x5e2986[_0x21162f(0x222)]=_0x21162f(0x23d),_0x5e2986[_0x21162f(0x205)]=_0x21162f(0x16b),_0x5e2986[_0x21162f(0x1d7)]=_0x21162f(0x174),_0x5e2986[_0x21162f(0x217)]='presenting',_0x5e2986))(_0x33f89a||{});const _0x298f5c=_0x21162f(0x23a),_0x33c563=0xc8;_0x4c092c[_0x21162f(0x237)]=class extends _0x2e2e2a[_0x21162f(0x17d)]{constructor(_0x500471,_0xcae1ac,_0x44d80e,_0x4fd3d9,_0x54f937){const _0x28f7ff=_0x21162f;super(),_0x312f7a(this,_0x28f7ff(0x20f),new _0x3efe4a[(_0x28f7ff(0x1f0))]('idle')),_0x312f7a(this,_0x28f7ff(0x17b),this['_status$'][_0x28f7ff(0x1e9)]()),_0x312f7a(this,_0x28f7ff(0x240),!0x1),_0x312f7a(this,_0x28f7ff(0x16a),null),_0x312f7a(this,'_presenter',null),(this['_unitID']=_0x500471,this[_0x28f7ff(0x206)]=_0xcae1ac,this[_0x28f7ff(0x1c5)]=_0x44d80e,this[_0x28f7ff(0x1a9)]=_0x4fd3d9,this[_0x28f7ff(0x1d6)]=_0x54f937);}get[_0x21162f(0x1cd)](){const _0x27cb77=_0x21162f;return this[_0x27cb77(0x20f)]['getValue']();}[_0x21162f(0x1d4)](){const _0x17523a=_0x21162f;var _0x43ab2e;(_0x43ab2e=this['_commandDisposable'])==null||_0x43ab2e['dispose'](),this[_0x17523a(0x20f)][_0x17523a(0x1f9)](_0x17523a(0x23d)),this[_0x17523a(0x20f)][_0x17523a(0x24b)]();}[_0x21162f(0x1a1)](){return this['_status'];}['init'](){const _0x258a51=_0x21162f;this['_init']||(this[_0x258a51(0x240)]=!0x0,this[_0x258a51(0x206)][_0x258a51(0x1ae)]['pipe'](_0x534fd5[_0x258a51(0x212)](this[_0x258a51(0x1cf)]))[_0x258a51(0x1da)](_0x1a856e=>{const _0x4fbb22=_0x258a51;switch(_0x1a856e){case _0x47aa63['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x47aa63['SessionStatus']['ONLINE']:this[_0x4fbb22(0x1c6)]();break;}}),this[_0x258a51(0x206)][_0x258a51(0x182)][_0x258a51(0x1b5)](_0x534fd5[_0x258a51(0x212)](this['dispose$']))[_0x258a51(0x1da)](_0x498dd1=>{const _0x4a05fb=_0x258a51,{eventID:_0x27c922}=_0x498dd1;switch(_0x27c922){case _0x4955c8[_0x4a05fb(0x203)][_0x4a05fb(0x1d9)]:this[_0x4a05fb(0x1d8)](_0x498dd1);break;case _0x4955c8[_0x4a05fb(0x203)][_0x4a05fb(0x1f1)]:this[_0x4a05fb(0x16f)](_0x498dd1);break;case _0x4955c8['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x4a05fb(0x18d)]();break;case _0x4955c8['CollaborationEvent'][_0x4a05fb(0x1ed)]:this[_0x4a05fb(0x232)](_0x498dd1);break;}}));}[_0x21162f(0x1b9)](){const _0x226a3a=_0x21162f;this[_0x226a3a(0x206)][_0x226a3a(0x1c9)]({'eventID':_0x4955c8['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x226a3a(0x18f)],'userID':this[_0x226a3a(0x206)][_0x226a3a(0x1fc)]()}},this[_0x226a3a(0x18f)]);}[_0x21162f(0x227)](){const _0x5d1168=_0x21162f;this[_0x5d1168(0x1cd)]===_0x5d1168(0x175)&&(this[_0x5d1168(0x20f)][_0x5d1168(0x1f9)](_0x5d1168(0x23d)),this['_collabSession']['send']({'eventID':_0x4955c8[_0x5d1168(0x203)][_0x5d1168(0x1e5)],'data':{'unitID':this[_0x5d1168(0x18f)]}},this[_0x5d1168(0x18f)]));}['startFollowing'](){const _0x14271e=_0x21162f;this[_0x14271e(0x1cd)]==='not-following'&&(this[_0x14271e(0x20f)][_0x14271e(0x1f9)](_0x14271e(0x16b)),this[_0x14271e(0x1e0)]());}[_0x21162f(0x224)](){const _0x20a8de=_0x21162f;this['_status']===_0x20a8de(0x16b)&&this[_0x20a8de(0x198)]();}[_0x21162f(0x1d8)](_0x3d11fd){const _0x54a1c9=_0x21162f,{presenter:_0x3b5291}=_0x3d11fd[_0x54a1c9(0x1d3)],_0x11e24f=this[_0x54a1c9(0x206)][_0x54a1c9(0x1fc)]();this[_0x54a1c9(0x239)]=_0x3b5291,_0x3b5291===_0x11e24f?(this[_0x54a1c9(0x198)](),this[_0x54a1c9(0x1bf)]()):this[_0x54a1c9(0x1cd)]!==_0x54a1c9(0x174)&&(this[_0x54a1c9(0x1e7)](),this['_startFollowing']());}[_0x21162f(0x1f7)](){const _0x1e2071=_0x21162f,_0x3f48a1={'eventID':_0x4955c8['CollaborationEvent'][_0x1e2071(0x19a)]};this[_0x1e2071(0x206)]['send'](_0x3f48a1,this[_0x1e2071(0x18f)]);}['_handleTerminate'](){const _0x37acf4=_0x21162f;this['_presenter']=null,this[_0x37acf4(0x1cd)]!==_0x37acf4(0x175)&&this[_0x37acf4(0x24c)]();}[_0x21162f(0x232)](_0x2d84a1){const _0x146ba1=_0x21162f;if(this[_0x146ba1(0x1cd)]==='following'&&this['_presenter']===_0x2d84a1['data']['memberID']){const _0x232d46=_0x4955c8[_0x146ba1(0x1db)](_0x2d84a1[_0x146ba1(0x1d3)])['mutations'][_0x146ba1(0x170)]()[_0x146ba1(0x1bb)](_0x14c4df=>_0x14c4df['id']===_0x46e7a5[_0x146ba1(0x200)]['id']);if(_0x232d46){const _0x17569b=_0x232d46[_0x146ba1(0x21f)][_0x146ba1(0x185)],_0x4440fa=_0x232d46[_0x146ba1(0x21f)][_0x146ba1(0x1b1)]['id'];setTimeout(()=>{const _0x383f98=_0x146ba1;this['_commandService'][_0x383f98(0x230)](_0x46e7a5['SetWorksheetActiveOperation']['id'],{'unitId':_0x17569b,'subUnitId':_0x4440fa},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0xbf6bab=_0x21162f;this[_0xbf6bab(0x20f)]['next']('presenting');const _0x60e3f6=new Map(),_0x32634d=this[_0xbf6bab(0x16a)]=new _0x2e2e2a[(_0xbf6bab(0x1aa))]();_0x32634d[_0xbf6bab(0x1b8)](_0x2e2e2a[_0xbf6bab(0x1c8)](()=>{const _0x5a1476=_0xbf6bab;_0x60e3f6[_0x5a1476(0x233)](_0x100bbf=>_0x100bbf[_0x5a1476(0x24b)]()),_0x60e3f6[_0x5a1476(0x1c2)]();})),_0x32634d['add'](this[_0xbf6bab(0x1d6)][_0xbf6bab(0x1eb)](_0x5ae05d=>{const _0x59f320=_0xbf6bab;var _0x555e3e;if(_0x5ae05d['type']!==_0x2e2e2a[_0x59f320(0x213)][_0x59f320(0x209)]||!this[_0x59f320(0x1a9)]['shouldShareOperation'](_0x5ae05d['id']))return;const {id:_0x316366}=_0x5ae05d;let _0x4b352e;_0x60e3f6[_0x59f320(0x1ab)](_0x316366)?_0x4b352e=_0x60e3f6['get'](_0x316366):(_0x4b352e=new _0x3efe4a[(_0x59f320(0x228))](),_0x60e3f6['set'](_0x316366,_0x4b352e),_0x4b352e[_0x59f320(0x1b5)](_0x534fd5['throttleTime']((_0x555e3e=this[_0x59f320(0x1c5)][_0x59f320(0x17a)](_0x298f5c))!=null?_0x555e3e:_0x33c563,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59f320(0x1da)](_0x406c0f=>{const _0x3e0b47=_0x59f320;this[_0x3e0b47(0x206)][_0x3e0b47(0x1c9)]({'eventID':_0x4955c8[_0x3e0b47(0x203)][_0x3e0b47(0x1f1)],'data':{'unitID':this[_0x3e0b47(0x18f)],'operations':{[_0x406c0f['id']]:{'id':_0x406c0f['id'],'params':JSON[_0x3e0b47(0x169)](_0x406c0f[_0x3e0b47(0x21f)])}}}},this[_0x3e0b47(0x18f)]);})),_0x4b352e[_0x59f320(0x1f9)](_0x5ae05d);})),this[_0xbf6bab(0x1a9)][_0xbf6bab(0x18e)](this[_0xbf6bab(0x18f)])[_0xbf6bab(0x233)](_0x87d723=>this[_0xbf6bab(0x206)][_0xbf6bab(0x1c9)]({'eventID':_0x4955c8[_0xbf6bab(0x203)][_0xbf6bab(0x1f1)],'data':{'unitID':this[_0xbf6bab(0x18f)],'operations':{[_0x87d723['id']]:{'id':_0x87d723['id'],'params':JSON[_0xbf6bab(0x169)](_0x87d723[_0xbf6bab(0x21f)])}}}},this[_0xbf6bab(0x18f)]));}[_0x21162f(0x1e7)](){const _0x588f2d=_0x21162f;var _0x32a8cd;this[_0x588f2d(0x20f)][_0x588f2d(0x1f9)](_0x588f2d(0x23d)),(_0x32a8cd=this[_0x588f2d(0x16a)])==null||_0x32a8cd[_0x588f2d(0x1d4)](),this['_commandDisposable']=null;}[_0x21162f(0x1e0)](){const _0x5170f2=_0x21162f;var _0x588726;(_0x588726=this['_commandDisposable'])==null||_0x588726['dispose'](),this[_0x5170f2(0x20f)][_0x5170f2(0x1f9)](_0x5170f2(0x16b));}[_0x21162f(0x24c)](){const _0x5ac5e4=_0x21162f;var _0x37d885;this['_status$'][_0x5ac5e4(0x1f9)](_0x5ac5e4(0x23d)),(_0x37d885=this[_0x5ac5e4(0x16a)])==null||_0x37d885[_0x5ac5e4(0x1d4)](),this[_0x5ac5e4(0x16a)]=null;}[_0x21162f(0x198)](){const _0x35e413=_0x21162f;var _0x28b59f;this[_0x35e413(0x20f)][_0x35e413(0x1f9)](_0x35e413(0x174)),(_0x28b59f=this[_0x35e413(0x16a)])==null||_0x28b59f[_0x35e413(0x1d4)]();}[_0x21162f(0x16f)](_0x257948){const _0x5b9079=_0x21162f;if([_0x5b9079(0x175),'not-following',_0x5b9079(0x22a)]['includes'](this[_0x5b9079(0x1cd)])||!_0x257948[_0x5b9079(0x1d3)][_0x5b9079(0x172)]||_0x257948[_0x5b9079(0x1d3)]['presenter']===this[_0x5b9079(0x206)][_0x5b9079(0x1fc)]())return;this[_0x5b9079(0x1cd)]===_0x5b9079(0x23d)&&this['_startFollowing']();const _0x1afa8a=_0x257948[_0x5b9079(0x1d3)][_0x5b9079(0x1a6)];Object[_0x5b9079(0x22d)](_0x1afa8a)[_0x5b9079(0x233)](_0x269472=>{const _0x5f3080=_0x5b9079;this[_0x5f3080(0x1d6)][_0x5f3080(0x230)](_0x269472['id'],_0x269472['params']?JSON['parse'](_0x269472[_0x5f3080(0x21f)]):null,{'fromCollab':!0x0});});}[_0x21162f(0x23e)](){const _0x2f4fb8=_0x21162f;var _0x2dbd05;this['_status$'][_0x2f4fb8(0x1f9)](_0x2f4fb8(0x22a)),(_0x2dbd05=this[_0x2f4fb8(0x16a)])==null||_0x2dbd05['dispose']();}[_0x21162f(0x1c6)](){const _0x1e92c3=_0x21162f;this[_0x1e92c3(0x20f)][_0x1e92c3(0x1f9)](_0x1e92c3(0x23d)),this[_0x1e92c3(0x1f7)]();}},_0x4c092c[_0x21162f(0x237)]=_0x555952([_0x3e201c(0x2,_0x2e2e2a[_0x21162f(0x214)]),_0x3e201c(0x3,_0x2e2e2a['Inject'](_0x1398e7)),_0x3e201c(0x4,_0x2e2e2a[_0x21162f(0x1d0)])],_0x4c092c[_0x21162f(0x237)]);function _0x444d64(){const _0x25e53=_0x21162f,_0x35ebc9=_0x502c89['useDependency'](_0x4c092c[_0x25e53(0x244)]),_0x26da3d=_0x502c89[_0x25e53(0x1f5)](_0x2e2e2a['IUniverInstanceService']),_0x164bed=_0x502c89[_0x25e53(0x171)](()=>_0x26da3d[_0x25e53(0x229)](_0x2e2e2a['UniverInstanceType'][_0x25e53(0x1e1)]),void 0x0,!0x1,[]),[_0x556b1e,_0x5d7db8]=_0x341c10['useState'](null),[_0xc51d35,_0x2db41e]=_0x341c10[_0x25e53(0x1d2)](_0x33f89a[_0x25e53(0x222)]),_0x1a37eb=_0x341c10[_0x25e53(0x194)](null);return _0x341c10['useEffect'](()=>(_0x164bed&&_0x35ebc9[_0x25e53(0x1ce)](_0x164bed[_0x25e53(0x1b0)]())[_0x25e53(0x1dc)](_0x12b4d3=>{const _0x59826c=_0x25e53;_0x5d7db8(_0x12b4d3),_0x1a37eb['current']=_0x12b4d3[_0x59826c(0x17b)]['subscribe'](_0x9a1bf4=>{_0x2db41e(_0x9a1bf4);});}),()=>{const _0x52c0f6=_0x25e53;var _0x374bf0;(_0x374bf0=_0x1a37eb['current'])==null||_0x374bf0['unsubscribe'](),_0x1a37eb[_0x52c0f6(0x221)]=null;}),[_0x164bed,_0x35ebc9]),_0x556b1e?_0x4dd2ba[_0x25e53(0x1fa)](_0x4846d0[_0x25e53(0x1e3)],{'align':_0x25e53(0x23c),'disabled':_0xc51d35===_0x33f89a[_0x25e53(0x18c)],'className':_0x25e53(0x1ec),'overlay':_0x4dd2ba[_0x25e53(0x1fa)](_0x429767,{'status':_0xc51d35,'coordinator':_0x556b1e}),'children':_0x4dd2ba['jsx'](_0x25e53(0x197),{'className':_0x4846d0['clsx'](_0x25e53(0x24e),{'univer-cursor-not-allowed':_0xc51d35===_0x33f89a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc51d35!==_0x33f89a[_0x25e53(0x18c)]}),'type':'button','children':_0x4dd2ba[_0x25e53(0x1fa)](_0x258bab,{'className':_0x25e53(0x22f)})})}):null;}function _0x429767(_0x3729a9){const _0x41de90=_0x21162f,{status:_0x2717b0,coordinator:_0x10bd41}=_0x3729a9;switch(_0x2717b0){case _0x33f89a[_0x41de90(0x222)]:return _0x4dd2ba['jsx'](_0x10f7f3,{'coordinator':_0x10bd41});case _0x33f89a['FOLLOWING']:return _0x4dd2ba[_0x41de90(0x1fa)](_0x52eeaa,{'coordinator':_0x10bd41});case _0x33f89a[_0x41de90(0x1d7)]:return _0x4dd2ba['jsx'](_0x3aeed7,{'coordinator':_0x10bd41});case _0x33f89a[_0x41de90(0x18c)]:return _0x4dd2ba[_0x41de90(0x1fa)](_0x1f1b2,{});case _0x33f89a[_0x41de90(0x217)]:return _0x4dd2ba[_0x41de90(0x1fa)](_0x23c6e0,{'coordinator':_0x10bd41});default:return null;}}function _0x10f7f3(_0x1cc0e9){const _0x379d9a=_0x21162f,{coordinator:_0x129e0d}=_0x1cc0e9;return _0x4dd2ba[_0x379d9a(0x186)](_0x4dd2ba[_0x379d9a(0x204)],{'children':[_0x4dd2ba[_0x379d9a(0x1fa)](_0x379d9a(0x216),{'className':_0x379d9a(0x1cb),'children':'Present\x20this\x20document'}),_0x4dd2ba[_0x379d9a(0x1fa)](_0x4846d0[_0x379d9a(0x183)],{'onClick':()=>_0x129e0d['tryStartPresenting'](),'children':_0x379d9a(0x1a2)})]});}function _0x52eeaa(_0x3f3d33){const _0x457213=_0x21162f,{coordinator:_0x233d1b}=_0x3f3d33;return _0x4dd2ba[_0x457213(0x186)](_0x4dd2ba[_0x457213(0x204)],{'children':[_0x4dd2ba['jsx'](_0x457213(0x216),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4dd2ba[_0x457213(0x1fa)](_0x4846d0[_0x457213(0x183)],{'onClick':()=>_0x233d1b[_0x457213(0x224)](),'children':_0x457213(0x176)})]});}function _0x3aeed7(_0x85f9b){const _0x330855=_0x21162f,{coordinator:_0x4f4bef}=_0x85f9b;return _0x4dd2ba['jsxs'](_0x4dd2ba[_0x330855(0x204)],{'children':[_0x4dd2ba[_0x330855(0x1fa)](_0x330855(0x216),{'className':_0x330855(0x1cb),'children':_0x330855(0x24a)}),_0x4dd2ba['jsx'](_0x4846d0[_0x330855(0x183)],{'variant':'text','onClick':()=>_0x4f4bef[_0x330855(0x1ca)](),'children':_0x330855(0x1f4)})]});}function _0x23c6e0(_0x215175){const _0x1919ca=_0x21162f,{coordinator:_0x5976b6}=_0x215175;return _0x4dd2ba['jsxs'](_0x4dd2ba['Fragment'],{'children':[_0x4dd2ba['jsx'](_0x1919ca(0x216),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4dd2ba[_0x1919ca(0x1fa)](_0x4846d0[_0x1919ca(0x183)],{'variant':_0x1919ca(0x16e),'onClick':()=>_0x5976b6[_0x1919ca(0x227)](),'children':_0x1919ca(0x1a8)})]});}function _0x1f1b2(){const _0x3c525e=_0x21162f;return _0x4dd2ba[_0x3c525e(0x1fa)](_0x4dd2ba['Fragment'],{'children':_0x3c525e(0x1e8)});}var _0x470695=Object[_0x21162f(0x1fe)],_0x25e421=(_0x5bc8cf,_0x4cf7f5,_0x15b71a,_0xbcbf8d)=>{const _0x32dcdb=_0x21162f;for(var _0x396d76=_0xbcbf8d>0x1?void 0x0:_0xbcbf8d?_0x470695(_0x4cf7f5,_0x15b71a):_0x4cf7f5,_0x4c2f5d=_0x5bc8cf[_0x32dcdb(0x196)]-0x1,_0x5d5ecf;_0x4c2f5d>=0x0;_0x4c2f5d--)(_0x5d5ecf=_0x5bc8cf[_0x4c2f5d])&&(_0x396d76=_0x5d5ecf(_0x396d76)||_0x396d76);return _0x396d76;},_0x544488=(_0x3262a6,_0x4cf09c)=>(_0x4e211b,_0x554a7b)=>_0x4cf09c(_0x4e211b,_0x554a7b,_0x3262a6);_0x4c092c[_0x21162f(0x1c3)]=class extends _0x2e2e2a['Disposable']{constructor(_0x1a9817,_0x428c5e){const _0xee00b0=_0x21162f;super(),this[_0xee00b0(0x18b)]=_0x1a9817,this[_0xee00b0(0x215)]=_0x428c5e,this[_0xee00b0(0x181)]();}[_0x21162f(0x181)](){const _0x1a0a19=_0x21162f;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x502c89[_0x1a0a19(0x1e4)]['HEADER_MENU'],()=>_0x502c89[_0x1a0a19(0x195)](_0x444d64,this[_0x1a0a19(0x18b)])));}},_0x4c092c[_0x21162f(0x1c3)]=_0x25e421([_0x544488(0x0,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a[_0x21162f(0x1c0)])),_0x544488(0x1,_0x502c89[_0x21162f(0x20b)])],_0x4c092c[_0x21162f(0x1c3)]);const _0x39c17a=_0x21162f(0x242),_0x334c40={};var _0x51f803=Object[_0x21162f(0x1fe)],_0x444d1d=(_0x40383a,_0x2a26a9,_0x4e7db7,_0x4dc353)=>{const _0x2ac081=_0x21162f;for(var _0x5b2e01=_0x4dc353>0x1?void 0x0:_0x4dc353?_0x51f803(_0x2a26a9,_0x4e7db7):_0x2a26a9,_0x1743c0=_0x40383a[_0x2ac081(0x196)]-0x1,_0x3f9cba;_0x1743c0>=0x0;_0x1743c0--)(_0x3f9cba=_0x40383a[_0x1743c0])&&(_0x5b2e01=_0x3f9cba(_0x5b2e01)||_0x5b2e01);return _0x5b2e01;},_0x8d9692=(_0x516ad8,_0x39df3e)=>(_0x2b42c0,_0x59b384)=>_0x39df3e(_0x2b42c0,_0x59b384,_0x516ad8);let _0x2b42a7=class extends _0x2e2e2a[_0x21162f(0x207)]{constructor(_0x2a6edb){const _0x52f1c2=_0x21162f;super(),this[_0x52f1c2(0x1a9)]=_0x2a6edb,this['_init']();}[_0x21162f(0x240)](){const _0xaa0d2e=_0x21162f;[_0x1b842f[_0xaa0d2e(0x1fb)]['id'],_0x1b842f['SetScrollOperation']['id'],_0x46e7a5['SetWorksheetActiveOperation']['id']][_0xaa0d2e(0x233)](_0x5848f5=>{const _0x5a7ec8=_0xaa0d2e;this[_0x5a7ec8(0x1ac)](this[_0x5a7ec8(0x1a9)][_0x5a7ec8(0x1ff)](_0x5848f5));});}};_0x2b42a7=_0x444d1d([_0x8d9692(0x0,_0x2e2e2a[_0x21162f(0x1b4)](_0x1398e7))],_0x2b42a7);var _0x3b9230=Object[_0x21162f(0x177)],_0x1ecff6=Object['getOwnPropertyDescriptor'],_0x10febe=(_0x1a03d7,_0x2088d5,_0x2e57d8)=>_0x2088d5 in _0x1a03d7?_0x3b9230(_0x1a03d7,_0x2088d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e57d8}):_0x1a03d7[_0x2088d5]=_0x2e57d8,_0x5a585d=(_0x176b48,_0x1fae57,_0xceca94,_0x41aa29)=>{const _0x5ce54f=_0x21162f;for(var _0x29fd49=_0x41aa29>0x1?void 0x0:_0x41aa29?_0x1ecff6(_0x1fae57,_0xceca94):_0x1fae57,_0x37cf38=_0x176b48[_0x5ce54f(0x196)]-0x1,_0x1362d8;_0x37cf38>=0x0;_0x37cf38--)(_0x1362d8=_0x176b48[_0x37cf38])&&(_0x29fd49=_0x1362d8(_0x29fd49)||_0x29fd49);return _0x29fd49;},_0x53b8c0=(_0x5915dc,_0x2b2f84)=>(_0x3044f4,_0x3bbf02)=>_0x2b2f84(_0x3044f4,_0x3bbf02,_0x5915dc),_0x1e0dd1=(_0x9b63a4,_0x3d2404,_0x5cb17d)=>_0x10febe(_0x9b63a4,typeof _0x3d2404!=_0x21162f(0x1f8)?_0x3d2404+'':_0x3d2404,_0x5cb17d);const _0x1ef154=_0x21162f(0x187);_0x4c092c['UniverLiveSharePlugin']=class extends _0x2e2e2a[_0x21162f(0x1c7)]{constructor(_0x2f3b9b=_0x334c40,_0x2d0683,_0x3240ee){const _0x358f61=_0x21162f;super(),this[_0x358f61(0x190)]=_0x2f3b9b,this[_0x358f61(0x18b)]=_0x2d0683,this[_0x358f61(0x1c5)]=_0x3240ee;const {..._0x547ed6}=_0x2e2e2a[_0x358f61(0x1be)]({},_0x334c40,this['_config']);this['_configService']['setConfig'](_0x39c17a,_0x547ed6);}[_0x21162f(0x1e2)](){const _0x3f9533=_0x21162f;_0x2e2e2a[_0x3f9533(0x1d5)](this['_injector'],_0x2e2e2a[_0x3f9533(0x236)]([[_0x1398e7],[_0x4c092c[_0x3f9533(0x244)]],[_0x2b42a7],[_0x4c092c[_0x3f9533(0x1c3)]]],this[_0x3f9533(0x190)][_0x3f9533(0x1b7)])),_0x2e2e2a[_0x3f9533(0x1b3)](this[_0x3f9533(0x18b)],[[_0x2b42a7]]);}['onRendered'](){const _0x127d87=_0x21162f;_0x2e2e2a['touchDependencies'](this['_injector'],[[_0x4c092c[_0x127d87(0x1c3)]]]);}},_0x1e0dd1(_0x4c092c[_0x21162f(0x199)],_0x21162f(0x219),_0x2e2e2a[_0x21162f(0x192)]['UNIVER_UNKNOWN']),_0x1e0dd1(_0x4c092c[_0x21162f(0x199)],_0x21162f(0x22b),_0x1ef154),_0x4c092c['UniverLiveSharePlugin']=_0x5a585d([_0x2e2e2a['DependentOn'](_0x47aa63[_0x21162f(0x1bc)]),_0x53b8c0(0x1,_0x2e2e2a[_0x21162f(0x1b4)](_0x2e2e2a['Injector'])),_0x53b8c0(0x2,_0x2e2e2a[_0x21162f(0x214)])],_0x4c092c['UniverLiveSharePlugin']),_0x4c092c[_0x21162f(0x21b)]=_0x444d64,_0x4c092c[_0x21162f(0x19b)]=_0x1398e7,_0x4c092c['LiveShareStatus']=_0x33f89a,Object[_0x21162f(0x177)](_0x4c092c,Symbol['toStringTag'],{'value':_0x21162f(0x243)});}));
1
+ function _0x4254(_0x358cd3,_0x5dde13){_0x358cd3=_0x358cd3-0x1a2;const _0x44a1d7=_0x44a1();let _0x425494=_0x44a1d7[_0x358cd3];return _0x425494;}function _0x44a1(){const _0x307f2b=['@univerjs/design','OPERATION','_presenter','toStringTag','tag','_fetchOperations','_injector','getOwnPropertyDescriptor','path','useEffect','_handleTerminate','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','evenodd','use','_univerInstanceService','58003xZfGhG','Present\x20this\x20document','UniverInstanceType','fill','SAME_OPERATION_SHARE_INTERVAL','2980269NMVlRG','LIVESHARE_OPERATION','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','substring','executeCommand','UniverIcon','_collabSession','6SjHKJM','@univerjs/sheets-ui','IConfigService','button','init','sessionStatus$','subscribe','onRendered','data','UNIVER_UNKNOWN','_handleNewHost','IUniverInstanceService','useObservable','UniverSheets','send','You\x27are\x20offline.','_handleOffline','FOLLOWING','jsxs','Fragment','_beIdle','LiveShareService','You\x27re\x20presenting\x20the\x20document','find','getUnitId','LiveShareCoordinator','RxDisposable','SessionStatus','defs','replace','override','stopPresenting','displayName','object','next','CollaborationEvent','InsertSheetMutation','following','operations','startFollowing','Button','22337yStnnN','stopFollowing','current','useRef','attrs','UniverUi','tryStartPresenting','pipe','_mountLiveShare','_config','registerDependencies','toDisposable','getLiveShareCoordinator','_handleNewChangeSets','live-share.config','OFFLINE','memberID','clear','reverse','complete','clsx','@univerjs-pro/collaboration','has','_init','http://www.w3.org/2000/svg','idle','Module','React','mask','not-following','Disposable','_status$','UniverDesign','forEach','onStarting','LIVESHARE_FETCH_OPERATIONS','pluginName','params','touchDependencies','_configService','offline','dispose','idSuffix','LiveShareController','xlink:href','get','Start','UniverLiveSharePlugin','registerSharedOperation','_sharedOperations','1496wbtWdR','useState','values','@univerjs/ui','trim','length','unitId','setConfig','SetWorksheetActiveOperation','@univerjs/sheets','react','1651520zdeWmR','presenter','DesktopLiveShareController','_handleOperation','_commandService','NEW_CHANGESETS','Inject','event$','rxjs','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','HEADER_MENU','95uozeQX','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','DependentOn','delete','NOT_FOLLOWING','useDependency','presenting','LiveShareIcon','entries','shouldShareOperation','_stopFollowing','_stopPresenting','getMemberID','2uUCNCb','Plugin','_commandDisposable','string','amd','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','includes','connectInjector','throttleTime','symbol','@univerjs-pro/collaboration-client','LiveShareStatus','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','children','toString','SetScrollOperation','UniverProCollaboration','204cwNnbE','_status','asObservable','parse','takeUntil','_entities','IDLE','getLiveShareCoordinatorSync','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','_liveShareService','ICommandService','UniverCollaborationClientPlugin','operators','_reporters','merge','CollaborationSessionService','stringify','PRESENTING','status$','UNIVER_SHEET','_startFollowing','dispose$','jsx','_uiPartsService','1em','LIVESHARE_NEW_HOST','add','exports','colorChannel1','end','_handleOnline','set','getTypeOfUnitDisposed$','defineProperty','_startPresenting','UniverSheetsUi','getValue','LiveShare','377188ndyAJb','529118mpFrCJ','@univerjs/core','Injector','currentColor','208752mdYccc','rxjs/operators','type','disposeWithMe','default','url(#$1','react/jsx-runtime','_collabSessionService','from','ONLINE','createElement','Stop\x20presenting','registerComponent','_unitID','UniverCore','div','svg','_startLiveShareCoordinator'];_0x44a1=function(){return _0x307f2b;};return _0x44a1();}(function(_0x362ebf,_0xaf3a3f){const _0x499057=_0x4254,_0x4780f2=_0x362ebf();while(!![]){try{const _0x4855e6=-parseInt(_0x499057(0x255))/0x1*(-parseInt(_0x499057(0x21c))/0x2)+parseInt(_0x499057(0x288))/0x3*(parseInt(_0x499057(0x254))/0x4)+-parseInt(_0x499057(0x20e))/0x5*(parseInt(_0x499057(0x259))/0x6)+-parseInt(_0x499057(0x1c5))/0x7*(-parseInt(_0x499057(0x1f7))/0x8)+-parseInt(_0x499057(0x280))/0x9+parseInt(_0x499057(0x202))/0xa+parseInt(_0x499057(0x27b))/0xb*(-parseInt(_0x499057(0x22d))/0xc);if(_0x4855e6===_0xaf3a3f)break;else _0x4780f2['push'](_0x4780f2['shift']());}catch(_0x6123e4){_0x4780f2['push'](_0x4780f2['shift']());}}}(_0x44a1,0x611b7),function(_0x549dc5,_0x308692){const _0x2a8cdb=_0x4254;typeof exports==_0x2a8cdb(0x1bd)&&typeof module<'u'?_0x308692(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[_0x2a8cdb(0x220)]?define([_0x2a8cdb(0x249),_0x2a8cdb(0x256),_0x2a8cdb(0x1fa),_0x2a8cdb(0x25f),_0x2a8cdb(0x26b),_0x2a8cdb(0x201),_0x2a8cdb(0x1da),_0x2a8cdb(0x226),_0x2a8cdb(0x200),'rxjs',_0x2a8cdb(0x25a),_0x2a8cdb(0x289)],_0x308692):(_0x549dc5=typeof globalThis<'u'?globalThis:_0x549dc5||self,_0x308692(_0x549dc5['UniverProLiveShare']={},_0x549dc5[_0x2a8cdb(0x267)],_0x549dc5[_0x2a8cdb(0x1ca)],_0x549dc5[_0x2a8cdb(0x1e0)],_0x549dc5[_0x2a8cdb(0x1e5)],_0x549dc5['React'],_0x549dc5[_0x2a8cdb(0x22c)],_0x549dc5['UniverProCollaborationClient'],_0x549dc5[_0x2a8cdb(0x1a9)],_0x549dc5[_0x2a8cdb(0x20a)],_0x549dc5['rxjs'][_0x2a8cdb(0x23a)],_0x549dc5[_0x2a8cdb(0x251)]));}(this,function(_0xd8e6ab,_0x18a95a,_0x45db12,_0x32404e,_0x507dbe,_0x6f3e18,_0x43dba0,_0x1ae231,_0x924280,_0x36c49a,_0x43edb4,_0x206882){'use strict';const _0x40e147=_0x4254;var _0x4920da=Object[_0x40e147(0x24f)],_0x55cb22=(_0xae40b3,_0x586a90,_0x58240d)=>_0x586a90 in _0xae40b3?_0x4920da(_0xae40b3,_0x586a90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58240d}):_0xae40b3[_0x586a90]=_0x58240d,_0x186f03=(_0x41f9f3,_0x28ebc3,_0x363778)=>_0x55cb22(_0x41f9f3,typeof _0x28ebc3!=_0x40e147(0x225)?_0x28ebc3+'':_0x28ebc3,_0x363778);function _0x4b8c6e({ref:_0x4d87ce,..._0x2df380}){const _0xaa7b38=_0x40e147,{icon:_0x4c120e,id:_0x3c623a,className:_0x384c31,extend:_0x2d68a0,..._0xc43c66}=_0x2df380,_0x422fa4=('univerjs-icon\x20univerjs-icon-'+_0x3c623a+'\x20'+(_0x384c31||''))[_0xaa7b38(0x1fb)](),_0x113a10=_0x6f3e18[_0xaa7b38(0x1c8)]('_'+_0x437eac());return _0x1b4c5e(_0x4c120e,''+_0x3c623a,{'defIds':_0x4c120e[_0xaa7b38(0x276)],'idSuffix':_0x113a10[_0xaa7b38(0x1c7)]},{'ref':_0x4d87ce,'className':_0x422fa4,..._0xc43c66},_0x2d68a0);}function _0x1b4c5e(_0x30c273,_0x458113,_0x5e2f61,_0x335d25,_0x5a8499){const _0x19a4df=_0x40e147;return _0x6f3e18['createElement'](_0x30c273[_0x19a4df(0x26f)],{'key':_0x458113,..._0x383667(_0x30c273,_0x5e2f61,_0x5a8499),..._0x335d25},(_0x1102dd(_0x30c273,_0x5e2f61)['children']||[])[_0x19a4df(0x283)]((_0x46967e,_0x25fb53)=>_0x1b4c5e(_0x46967e,_0x458113+'-'+_0x30c273['tag']+'-'+_0x25fb53,_0x5e2f61,void 0x0,_0x5a8499)));}function _0x383667(_0x9b1fa7,_0x273149,_0x58708a){const _0x20c268=_0x40e147,_0x168785={..._0x9b1fa7[_0x20c268(0x1c9)]};_0x58708a!=null&&_0x58708a[_0x20c268(0x24a)]&&_0x168785[_0x20c268(0x27e)]===_0x20c268(0x24a)&&(_0x168785[_0x20c268(0x27e)]=_0x58708a[_0x20c268(0x24a)]),_0x9b1fa7[_0x20c268(0x26f)]==='mask'&&_0x168785['id']&&(_0x168785['id']=_0x168785['id']+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2a8c46,_0x4fa5b4])=>{const _0x430ab5=_0x20c268;_0x2a8c46===_0x430ab5(0x1e1)&&typeof _0x4fa5b4==_0x430ab5(0x21f)&&(_0x168785[_0x2a8c46]=_0x4fa5b4[_0x430ab5(0x1b9)](/url\(#(.*)\)/,_0x430ab5(0x25e)+_0x273149[_0x430ab5(0x1ef)]+')'));});const {defIds:_0x125d33}=_0x273149;return!_0x125d33||_0x125d33[_0x20c268(0x1fc)]===0x0||(_0x9b1fa7['tag']===_0x20c268(0x279)&&_0x168785[_0x20c268(0x1f1)]&&(_0x168785[_0x20c268(0x1f1)]=_0x168785[_0x20c268(0x1f1)]+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2469bc,_0x35e1cf])=>{const _0x39be40=_0x20c268;typeof _0x35e1cf==_0x39be40(0x21f)&&(_0x168785[_0x2469bc]=_0x35e1cf[_0x39be40(0x1b9)](/url\(#(.*)\)/,_0x39be40(0x25e)+_0x273149[_0x39be40(0x1ef)]+')'));})),_0x168785;}function _0x1102dd(_0x489530,_0x20a6da){const _0x84fb8=_0x40e147;var _0x5bb615;const {defIds:_0x531cdc}=_0x20a6da;return!_0x531cdc||_0x531cdc[_0x84fb8(0x1fc)]===0x0?_0x489530:_0x489530['tag']===_0x84fb8(0x1b8)&&((_0x5bb615=_0x489530[_0x84fb8(0x229)])!=null&&_0x5bb615[_0x84fb8(0x1fc)])?{..._0x489530,'children':_0x489530[_0x84fb8(0x229)][_0x84fb8(0x283)](_0x26af6a=>typeof _0x26af6a[_0x84fb8(0x1c9)]['id']==_0x84fb8(0x21f)&&_0x531cdc&&_0x531cdc[_0x84fb8(0x222)](_0x26af6a[_0x84fb8(0x1c9)]['id'])?{..._0x26af6a,'attrs':{..._0x26af6a['attrs'],'id':_0x26af6a[_0x84fb8(0x1c9)]['id']+_0x20a6da['idSuffix']}}:_0x26af6a)}:_0x489530;}function _0x437eac(){const _0x5831b6=_0x40e147;return Math['random']()[_0x5831b6(0x22a)](0x24)[_0x5831b6(0x284)](0x2,0x8);}_0x4b8c6e[_0x40e147(0x1bc)]=_0x40e147(0x286);const _0x2f7327={'tag':_0x40e147(0x269),'attrs':{'xmlns':_0x40e147(0x1dd),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x40e147(0x246),'height':'1em'},'children':[{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':_0x40e147(0x228)}},{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x40e147(0x278)}}]},_0x169732=_0x6f3e18['forwardRef'](function(_0xcb2712,_0x55ff66){const _0x9c7fcc=_0x40e147;return _0x6f3e18[_0x9c7fcc(0x263)](_0x4b8c6e,Object['assign']({},_0xcb2712,{'id':'live-share-icon','ref':_0x55ff66,'icon':_0x2f7327}));});_0x169732[_0x40e147(0x1bc)]=_0x40e147(0x216);class _0x24715f extends _0x18a95a[_0x40e147(0x1e3)]{constructor(){const _0x29b5b5=_0x40e147;super(...arguments),_0x186f03(this,_0x29b5b5(0x1f6),new Set()),_0x186f03(this,_0x29b5b5(0x23b),new Set());}[_0x40e147(0x1f5)](_0x4e094b){const _0x3f0401=_0x40e147;return this[_0x3f0401(0x1f6)][_0x3f0401(0x248)](_0x4e094b),_0x18a95a[_0x3f0401(0x1d0)](()=>this['_sharedOperations'][_0x3f0401(0x212)](_0x4e094b));}['registerInitialStateReporter'](_0xad9b7d){const _0x583b1d=_0x40e147;return this['_reporters'][_0x583b1d(0x248)](_0xad9b7d),_0x18a95a[_0x583b1d(0x1d0)](()=>this[_0x583b1d(0x23b)][_0x583b1d(0x212)](_0xad9b7d));}['shouldShareOperation'](_0x432be4){const _0xcc1dbc=_0x40e147;return this[_0xcc1dbc(0x1f6)][_0xcc1dbc(0x1db)](_0x432be4);}['getInitialStates'](_0xbe5bb7){const _0x4651eb=_0x40e147;return Array[_0x4651eb(0x261)](this[_0x4651eb(0x23b)])[_0x4651eb(0x283)](_0x48f30a=>_0x48f30a(_0xbe5bb7));}}var _0x352d4d=Object[_0x40e147(0x272)],_0x38f53e=(_0x3f4e60,_0x48d372,_0x12ec93,_0x1b0c8d)=>{const _0x327d9f=_0x40e147;for(var _0x3e918d=_0x1b0c8d>0x1?void 0x0:_0x1b0c8d?_0x352d4d(_0x48d372,_0x12ec93):_0x48d372,_0x177a9a=_0x3f4e60[_0x327d9f(0x1fc)]-0x1,_0x1515db;_0x177a9a>=0x0;_0x177a9a--)(_0x1515db=_0x3f4e60[_0x177a9a])&&(_0x3e918d=_0x1515db(_0x3e918d)||_0x3e918d);return _0x3e918d;},_0x2d1d1f=(_0x172bbb,_0x36e7ee)=>(_0x5c86d7,_0x536cce)=>_0x36e7ee(_0x5c86d7,_0x536cce,_0x172bbb);_0xd8e6ab[_0x40e147(0x1f0)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0x1173ea,_0x54bb89,_0x53af79){const _0x13d42b=_0x40e147;super(),_0x186f03(this,_0x13d42b(0x232),new Map()),(this[_0x13d42b(0x27a)]=_0x1173ea,this[_0x13d42b(0x271)]=_0x54bb89,this[_0x13d42b(0x260)]=_0x53af79,this[_0x13d42b(0x1dc)]());}async[_0x40e147(0x1d1)](_0x4172ec){const _0x3b25db=_0x40e147;return this[_0x3b25db(0x232)][_0x3b25db(0x1db)](_0x4172ec)||await this[_0x3b25db(0x26a)](_0x4172ec),this[_0x3b25db(0x232)][_0x3b25db(0x1f2)](_0x4172ec);}[_0x40e147(0x234)](_0x239a90){var _0x43f00a;return(_0x43f00a=this['_entities']['get'](_0x239a90))!=null?_0x43f00a:null;}['_init'](){const _0x4ecfe5=_0x40e147;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x18a95a[_0x4ecfe5(0x27d)][_0x4ecfe5(0x241)])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](async _0x501e1d=>{const _0x3330fc=_0x4ecfe5,_0x56dc63=_0x501e1d[_0x3330fc(0x1b4)]();this[_0x3330fc(0x232)][_0x3330fc(0x1db)](_0x56dc63)||this['_startLiveShareCoordinator'](_0x56dc63);}),this[_0x4ecfe5(0x27a)][_0x4ecfe5(0x24e)](_0x18a95a[_0x4ecfe5(0x27d)]['UNIVER_SHEET'])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](_0x5545fa=>{const _0x393167=_0x4ecfe5,_0x1dbd5e=_0x5545fa[_0x393167(0x1b4)](),_0x1d9a3e=this[_0x393167(0x232)]['get'](_0x1dbd5e);_0x1d9a3e==null||_0x1d9a3e['dispose']();});}async['_startLiveShareCoordinator'](_0x5b1b8b){const _0x4de7b5=_0x40e147,_0x360bfd=await this[_0x4de7b5(0x260)]['requireSession'](_0x5b1b8b),_0x3449ad=this['_injector']['createInstance'](_0xd8e6ab[_0x4de7b5(0x1b5)],_0x5b1b8b,_0x360bfd);return _0x3449ad[_0x4de7b5(0x28c)](),this[_0x4de7b5(0x232)][_0x4de7b5(0x24d)](_0x5b1b8b,_0x3449ad),_0x3449ad;}},_0xd8e6ab[_0x40e147(0x1f0)]=_0x38f53e([_0x2d1d1f(0x0,_0x18a95a[_0x40e147(0x1a7)]),_0x2d1d1f(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x2d1d1f(0x2,_0x18a95a['Inject'](_0x1ae231[_0x40e147(0x23d)]))],_0xd8e6ab[_0x40e147(0x1f0)]);var _0x4b4d4a=(_0x33b539=>(_0x33b539[_0x40e147(0x1d4)]=_0x40e147(0x1ed),_0x33b539[_0x40e147(0x233)]=_0x40e147(0x1de),_0x33b539['FOLLOWING']=_0x40e147(0x1c1),_0x33b539['NOT_FOLLOWING']=_0x40e147(0x1e2),_0x33b539[_0x40e147(0x23f)]=_0x40e147(0x215),_0x33b539))(_0x4b4d4a||{});const _0x4b4e92=_0x40e147(0x27f),_0x193319=0xc8;_0xd8e6ab[_0x40e147(0x1b5)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0xb39e82,_0x346c4d,_0x2ee6fa,_0x21b220,_0x1fb841){const _0x2b2070=_0x40e147;super(),_0x186f03(this,'_status$',new _0x36c49a['BehaviorSubject'](_0x2b2070(0x1de))),_0x186f03(this,_0x2b2070(0x240),this[_0x2b2070(0x1e4)][_0x2b2070(0x22f)]()),_0x186f03(this,_0x2b2070(0x1dc),!0x1),_0x186f03(this,'_commandDisposable',null),_0x186f03(this,_0x2b2070(0x26d),null),(this[_0x2b2070(0x266)]=_0xb39e82,this['_collabSession']=_0x346c4d,this[_0x2b2070(0x1ec)]=_0x2ee6fa,this[_0x2b2070(0x237)]=_0x21b220,this[_0x2b2070(0x206)]=_0x1fb841);}get['_status'](){const _0x51a587=_0x40e147;return this['_status$'][_0x51a587(0x252)]();}['dispose'](){const _0x56c499=_0x40e147;var _0xc067c7;(_0xc067c7=this[_0x56c499(0x21e)])==null||_0xc067c7['dispose'](),this['_status$'][_0x56c499(0x1be)](_0x56c499(0x1de)),this[_0x56c499(0x1e4)]['complete']();}['getStatus'](){return this['_status'];}[_0x40e147(0x28c)](){const _0x328eda=_0x40e147;this['_init']||(this[_0x328eda(0x1dc)]=!0x0,this[_0x328eda(0x287)][_0x328eda(0x28d)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x57fe94=>{const _0x2ec67a=_0x328eda;switch(_0x57fe94){case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x1d4)]:this[_0x2ec67a(0x1ac)]();break;case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x262)]:this[_0x2ec67a(0x24c)]();break;}}),this['_collabSession'][_0x328eda(0x209)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x154923=>{const _0x2615f9=_0x328eda,{eventID:_0x4f96f0}=_0x154923;switch(_0x4f96f0){case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x247)]:this[_0x2615f9(0x1a6)](_0x154923);break;case _0x43dba0['CollaborationEvent'][_0x2615f9(0x281)]:this[_0x2615f9(0x205)](_0x154923);break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x235)]:this['_handleTerminate']();break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x207)]:this[_0x2615f9(0x1d2)](_0x154923);break;}}));}[_0x40e147(0x1cb)](){const _0x103e17=_0x40e147;this['_collabSession']['send']({'eventID':_0x43dba0[_0x103e17(0x1bf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x103e17(0x266)],'userID':this[_0x103e17(0x287)][_0x103e17(0x21b)]()}},this[_0x103e17(0x266)]);}[_0x40e147(0x1bb)](){const _0x3416f3=_0x40e147;this['_status']===_0x3416f3(0x215)&&(this[_0x3416f3(0x1e4)][_0x3416f3(0x1be)](_0x3416f3(0x1de)),this[_0x3416f3(0x287)][_0x3416f3(0x1aa)]({'eventID':_0x43dba0[_0x3416f3(0x1bf)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3416f3(0x266)]}},this['_unitID']));}[_0x40e147(0x1c3)](){const _0x39ac82=_0x40e147;this[_0x39ac82(0x22e)]===_0x39ac82(0x1e2)&&(this[_0x39ac82(0x1e4)][_0x39ac82(0x1be)](_0x39ac82(0x1c1)),this[_0x39ac82(0x242)]());}[_0x40e147(0x1c6)](){const _0x51115a=_0x40e147;this[_0x51115a(0x22e)]===_0x51115a(0x1c1)&&this[_0x51115a(0x219)]();}[_0x40e147(0x1a6)](_0x1e7471){const _0x18adbd=_0x40e147,{presenter:_0x152dfd}=_0x1e7471[_0x18adbd(0x1a4)],_0xaa0998=this['_collabSession']['getMemberID']();this[_0x18adbd(0x26d)]=_0x152dfd,_0x152dfd===_0xaa0998?(this[_0x18adbd(0x219)](),this[_0x18adbd(0x250)]()):this[_0x18adbd(0x22e)]!==_0x18adbd(0x1e2)&&(this[_0x18adbd(0x21a)](),this['_startFollowing']());}[_0x40e147(0x270)](){const _0x348352=_0x40e147,_0x2e2cea={'eventID':_0x43dba0['CollaborationEvent'][_0x348352(0x1e8)]};this[_0x348352(0x287)]['send'](_0x2e2cea,this[_0x348352(0x266)]);}[_0x40e147(0x275)](){const _0x454abb=_0x40e147;this[_0x454abb(0x26d)]=null,this[_0x454abb(0x22e)]!==_0x454abb(0x215)&&this[_0x454abb(0x1b0)]();}[_0x40e147(0x1d2)](_0x2bd63c){const _0x51c0ec=_0x40e147;if(this[_0x51c0ec(0x22e)]===_0x51c0ec(0x1c1)&&this[_0x51c0ec(0x26d)]===_0x2bd63c[_0x51c0ec(0x1a4)][_0x51c0ec(0x1d5)]){const _0x5bee2c=_0x43dba0['parseProtocolChangeset'](_0x2bd63c[_0x51c0ec(0x1a4)])['mutations'][_0x51c0ec(0x1d7)]()[_0x51c0ec(0x1b3)](_0x1b2740=>_0x1b2740['id']===_0x924280[_0x51c0ec(0x1c0)]['id']);if(_0x5bee2c){const _0x41b740=_0x5bee2c['params'][_0x51c0ec(0x1fd)],_0x3d13a5=_0x5bee2c[_0x51c0ec(0x1ea)]['sheet']['id'];setTimeout(()=>{const _0x5ce9e2=_0x51c0ec;this[_0x5ce9e2(0x206)][_0x5ce9e2(0x285)](_0x924280['SetWorksheetActiveOperation']['id'],{'unitId':_0x41b740,'subUnitId':_0x3d13a5},{'fromCollab':!0x0});});}}}[_0x40e147(0x250)](){const _0x5a4b17=_0x40e147;this[_0x5a4b17(0x1e4)][_0x5a4b17(0x1be)]('presenting');const _0x37a205=new Map(),_0x15e125=this['_commandDisposable']=new _0x18a95a['DisposableCollection']();_0x15e125[_0x5a4b17(0x248)](_0x18a95a[_0x5a4b17(0x1d0)](()=>{const _0x143514=_0x5a4b17;_0x37a205['forEach'](_0x26a4e6=>_0x26a4e6[_0x143514(0x1d8)]()),_0x37a205[_0x143514(0x1d6)]();})),_0x15e125[_0x5a4b17(0x248)](this[_0x5a4b17(0x206)]['onCommandExecuted'](_0x2f7f63=>{const _0x5c47cd=_0x5a4b17;var _0x1e8f99;if(_0x2f7f63[_0x5c47cd(0x25b)]!==_0x18a95a['CommandType'][_0x5c47cd(0x26c)]||!this[_0x5c47cd(0x237)][_0x5c47cd(0x218)](_0x2f7f63['id']))return;const {id:_0x148c86}=_0x2f7f63;let _0x208795;_0x37a205['has'](_0x148c86)?_0x208795=_0x37a205[_0x5c47cd(0x1f2)](_0x148c86):(_0x208795=new _0x36c49a['Subject'](),_0x37a205[_0x5c47cd(0x24d)](_0x148c86,_0x208795),_0x208795[_0x5c47cd(0x1cc)](_0x43edb4[_0x5c47cd(0x224)]((_0x1e8f99=this['_configService']['getConfig'](_0x4b4e92))!=null?_0x1e8f99:_0x193319,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x233e7f=>{const _0x1296fc=_0x5c47cd;this[_0x1296fc(0x287)]['send']({'eventID':_0x43dba0[_0x1296fc(0x1bf)][_0x1296fc(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x233e7f['id']]:{'id':_0x233e7f['id'],'params':JSON[_0x1296fc(0x23e)](_0x233e7f[_0x1296fc(0x1ea)])}}}},this[_0x1296fc(0x266)]);})),_0x208795[_0x5c47cd(0x1be)](_0x2f7f63);})),this[_0x5a4b17(0x237)]['getInitialStates'](this[_0x5a4b17(0x266)])[_0x5a4b17(0x1e6)](_0x5b9c6a=>this[_0x5a4b17(0x287)][_0x5a4b17(0x1aa)]({'eventID':_0x43dba0['CollaborationEvent'][_0x5a4b17(0x281)],'data':{'unitID':this[_0x5a4b17(0x266)],'operations':{[_0x5b9c6a['id']]:{'id':_0x5b9c6a['id'],'params':JSON[_0x5a4b17(0x23e)](_0x5b9c6a[_0x5a4b17(0x1ea)])}}}},this['_unitID']));}[_0x40e147(0x21a)](){const _0x14b7b4=_0x40e147;var _0xe0ef1c;this[_0x14b7b4(0x1e4)]['next'](_0x14b7b4(0x1de)),(_0xe0ef1c=this[_0x14b7b4(0x21e)])==null||_0xe0ef1c[_0x14b7b4(0x1ee)](),this[_0x14b7b4(0x21e)]=null;}[_0x40e147(0x242)](){const _0x3e69ea=_0x40e147;var _0x23f964;(_0x23f964=this['_commandDisposable'])==null||_0x23f964[_0x3e69ea(0x1ee)](),this[_0x3e69ea(0x1e4)][_0x3e69ea(0x1be)](_0x3e69ea(0x1c1));}[_0x40e147(0x1b0)](){const _0x49fdcd=_0x40e147;var _0x4ad768;this['_status$'][_0x49fdcd(0x1be)](_0x49fdcd(0x1de)),(_0x4ad768=this['_commandDisposable'])==null||_0x4ad768[_0x49fdcd(0x1ee)](),this[_0x49fdcd(0x21e)]=null;}[_0x40e147(0x219)](){const _0x28fadd=_0x40e147;var _0x5f373f;this[_0x28fadd(0x1e4)][_0x28fadd(0x1be)](_0x28fadd(0x1e2)),(_0x5f373f=this[_0x28fadd(0x21e)])==null||_0x5f373f[_0x28fadd(0x1ee)]();}[_0x40e147(0x205)](_0x17dc37){const _0x413fc2=_0x40e147;if(['presenting',_0x413fc2(0x1e2),_0x413fc2(0x1ed)][_0x413fc2(0x222)](this[_0x413fc2(0x22e)])||!_0x17dc37['data'][_0x413fc2(0x203)]||_0x17dc37['data'][_0x413fc2(0x203)]===this[_0x413fc2(0x287)][_0x413fc2(0x21b)]())return;this[_0x413fc2(0x22e)]===_0x413fc2(0x1de)&&this[_0x413fc2(0x242)]();const _0x2023cd=_0x17dc37[_0x413fc2(0x1a4)][_0x413fc2(0x1c2)];Object[_0x413fc2(0x1f9)](_0x2023cd)['forEach'](_0x292530=>{const _0x5eed32=_0x413fc2;this['_commandService'][_0x5eed32(0x285)](_0x292530['id'],_0x292530['params']?JSON[_0x5eed32(0x230)](_0x292530[_0x5eed32(0x1ea)]):null,{'fromCollab':!0x0});});}[_0x40e147(0x1ac)](){const _0x3782ca=_0x40e147;var _0xe8e3b7;this[_0x3782ca(0x1e4)][_0x3782ca(0x1be)]('offline'),(_0xe8e3b7=this[_0x3782ca(0x21e)])==null||_0xe8e3b7[_0x3782ca(0x1ee)]();}[_0x40e147(0x24c)](){const _0x1fbaff=_0x40e147;this[_0x1fbaff(0x1e4)][_0x1fbaff(0x1be)](_0x1fbaff(0x1de)),this[_0x1fbaff(0x270)]();}},_0xd8e6ab[_0x40e147(0x1b5)]=_0x38f53e([_0x2d1d1f(0x2,_0x18a95a[_0x40e147(0x28a)]),_0x2d1d1f(0x3,_0x18a95a[_0x40e147(0x208)](_0x24715f)),_0x2d1d1f(0x4,_0x18a95a[_0x40e147(0x238)])],_0xd8e6ab[_0x40e147(0x1b5)]);function _0xa04d20(){const _0x30c57c=_0x40e147,_0x4a2493=_0x45db12[_0x30c57c(0x214)](_0xd8e6ab[_0x30c57c(0x1f0)]),_0x2fee7f=_0x45db12[_0x30c57c(0x214)](_0x18a95a[_0x30c57c(0x1a7)]),_0x1d52fe=_0x45db12[_0x30c57c(0x1a8)](()=>_0x2fee7f[_0x30c57c(0x236)](_0x18a95a[_0x30c57c(0x27d)][_0x30c57c(0x241)]),void 0x0,!0x1,[]),[_0x443a2b,_0x12f27b]=_0x6f3e18[_0x30c57c(0x1f8)](null),[_0x51b624,_0x3107fb]=_0x6f3e18[_0x30c57c(0x1f8)](_0x4b4d4a[_0x30c57c(0x233)]),_0x1bca26=_0x6f3e18['useRef'](null);return _0x6f3e18[_0x30c57c(0x274)](()=>(_0x1d52fe&&_0x4a2493[_0x30c57c(0x1d1)](_0x1d52fe[_0x30c57c(0x1b4)]())['then'](_0x51befb=>{const _0x1ef7d3=_0x30c57c;_0x12f27b(_0x51befb),_0x1bca26[_0x1ef7d3(0x1c7)]=_0x51befb[_0x1ef7d3(0x240)]['subscribe'](_0x13d228=>{_0x3107fb(_0x13d228);});}),()=>{const _0x344e60=_0x30c57c;var _0x415dde;(_0x415dde=_0x1bca26[_0x344e60(0x1c7)])==null||_0x415dde['unsubscribe'](),_0x1bca26[_0x344e60(0x1c7)]=null;}),[_0x1d52fe,_0x4a2493]),_0x443a2b?_0x32404e[_0x30c57c(0x244)](_0x507dbe['Dropdown'],{'align':_0x30c57c(0x24b),'disabled':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'className':_0x30c57c(0x221),'overlay':_0x32404e[_0x30c57c(0x244)](_0x524597,{'status':_0x51b624,'coordinator':_0x443a2b}),'children':_0x32404e[_0x30c57c(0x244)]('button',{'className':_0x507dbe[_0x30c57c(0x1d9)](_0x30c57c(0x282),{'univer-cursor-not-allowed':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51b624!==_0x4b4d4a[_0x30c57c(0x1d4)]}),'type':_0x30c57c(0x28b),'children':_0x32404e['jsx'](_0x169732,{'className':_0x30c57c(0x20c)})})}):null;}function _0x524597(_0x574011){const _0x1eb0cc=_0x40e147,{status:_0x334ad5,coordinator:_0x1706b0}=_0x574011;switch(_0x334ad5){case _0x4b4d4a[_0x1eb0cc(0x233)]:return _0x32404e[_0x1eb0cc(0x244)](_0x31a0a7,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x1ad)]:return _0x32404e[_0x1eb0cc(0x244)](_0x43a602,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x213)]:return _0x32404e[_0x1eb0cc(0x244)](_0x30c3af,{'coordinator':_0x1706b0});case _0x4b4d4a['OFFLINE']:return _0x32404e['jsx'](_0x4e2cc8,{});case _0x4b4d4a[_0x1eb0cc(0x23f)]:return _0x32404e['jsx'](_0x317608,{'coordinator':_0x1706b0});default:return null;}}function _0x31a0a7(_0x2c3998){const _0x1eb483=_0x40e147,{coordinator:_0x399535}=_0x2c3998;return _0x32404e[_0x1eb483(0x1ae)](_0x32404e[_0x1eb483(0x1af)],{'children':[_0x32404e[_0x1eb483(0x244)](_0x1eb483(0x268),{'className':_0x1eb483(0x277),'children':_0x1eb483(0x27c)}),_0x32404e[_0x1eb483(0x244)](_0x507dbe[_0x1eb483(0x1c4)],{'onClick':()=>_0x399535[_0x1eb483(0x1cb)](),'children':_0x1eb483(0x1f3)})]});}function _0x43a602(_0x4ef149){const _0x4ed01c=_0x40e147,{coordinator:_0x29207e}=_0x4ef149;return _0x32404e[_0x4ed01c(0x1ae)](_0x32404e[_0x4ed01c(0x1af)],{'children':[_0x32404e[_0x4ed01c(0x244)](_0x4ed01c(0x268),{'className':_0x4ed01c(0x277),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x32404e[_0x4ed01c(0x244)](_0x507dbe[_0x4ed01c(0x1c4)],{'onClick':()=>_0x29207e[_0x4ed01c(0x1c6)](),'children':_0x4ed01c(0x210)})]});}function _0x30c3af(_0x2ee7fb){const _0x482320=_0x40e147,{coordinator:_0x380cef}=_0x2ee7fb;return _0x32404e[_0x482320(0x1ae)](_0x32404e[_0x482320(0x1af)],{'children':[_0x32404e[_0x482320(0x244)]('div',{'className':_0x482320(0x277),'children':_0x482320(0x20b)}),_0x32404e[_0x482320(0x244)](_0x507dbe[_0x482320(0x1c4)],{'variant':'text','onClick':()=>_0x380cef[_0x482320(0x1c3)](),'children':'Start\x20following'})]});}function _0x317608(_0xd6eb9e){const _0x1170e4=_0x40e147,{coordinator:_0x17444f}=_0xd6eb9e;return _0x32404e['jsxs'](_0x32404e['Fragment'],{'children':[_0x32404e[_0x1170e4(0x244)](_0x1170e4(0x268),{'className':_0x1170e4(0x277),'children':_0x1170e4(0x1b2)}),_0x32404e[_0x1170e4(0x244)](_0x507dbe[_0x1170e4(0x1c4)],{'variant':_0x1170e4(0x25d),'onClick':()=>_0x17444f[_0x1170e4(0x1bb)](),'children':_0x1170e4(0x264)})]});}function _0x4e2cc8(){const _0x3a6ad1=_0x40e147;return _0x32404e[_0x3a6ad1(0x244)](_0x32404e[_0x3a6ad1(0x1af)],{'children':_0x3a6ad1(0x1ab)});}var _0x362084=Object[_0x40e147(0x272)],_0x1ebec5=(_0x486ea4,_0x4f42ee,_0x11dba3,_0x53a139)=>{for(var _0x1d1541=_0x53a139>0x1?void 0x0:_0x53a139?_0x362084(_0x4f42ee,_0x11dba3):_0x4f42ee,_0x1b93d3=_0x486ea4['length']-0x1,_0x506cc9;_0x1b93d3>=0x0;_0x1b93d3--)(_0x506cc9=_0x486ea4[_0x1b93d3])&&(_0x1d1541=_0x506cc9(_0x1d1541)||_0x1d1541);return _0x1d1541;},_0x59eab2=(_0x5ad2a3,_0xd3b5fb)=>(_0x28b6e6,_0x1bf7bd)=>_0xd3b5fb(_0x28b6e6,_0x1bf7bd,_0x5ad2a3);_0xd8e6ab[_0x40e147(0x204)]=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0xfad1c,_0x483d3c){const _0x2568c5=_0x40e147;super(),this[_0x2568c5(0x271)]=_0xfad1c,this[_0x2568c5(0x245)]=_0x483d3c,this['_mountLiveShare']();}[_0x40e147(0x1cd)](){const _0x33f4ef=_0x40e147;this[_0x33f4ef(0x25c)](this[_0x33f4ef(0x245)][_0x33f4ef(0x265)](_0x45db12['BuiltInUIPart'][_0x33f4ef(0x20d)],()=>_0x45db12[_0x33f4ef(0x223)](_0xa04d20,this['_injector'])));}},_0xd8e6ab[_0x40e147(0x204)]=_0x1ebec5([_0x59eab2(0x0,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x59eab2(0x1,_0x45db12['IUIPartsService'])],_0xd8e6ab[_0x40e147(0x204)]);const _0x54cc77=_0x40e147(0x1d3),_0x456cf0={};var _0x3644e1=Object[_0x40e147(0x272)],_0x532821=(_0x1c24c8,_0x52b868,_0x314747,_0x43c7b9)=>{const _0x4caade=_0x40e147;for(var _0x22bea3=_0x43c7b9>0x1?void 0x0:_0x43c7b9?_0x3644e1(_0x52b868,_0x314747):_0x52b868,_0x37d2c2=_0x1c24c8[_0x4caade(0x1fc)]-0x1,_0x59a37f;_0x37d2c2>=0x0;_0x37d2c2--)(_0x59a37f=_0x1c24c8[_0x37d2c2])&&(_0x22bea3=_0x59a37f(_0x22bea3)||_0x22bea3);return _0x22bea3;},_0x4700a2=(_0x49eb35,_0x201c5a)=>(_0x246d2d,_0x14382d)=>_0x201c5a(_0x246d2d,_0x14382d,_0x49eb35);let _0x5cdd98=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0x27372f){const _0x134b5e=_0x40e147;super(),this[_0x134b5e(0x237)]=_0x27372f,this['_init']();}[_0x40e147(0x1dc)](){const _0x38f2ee=_0x40e147;[_0x206882['SetZoomRatioOperation']['id'],_0x206882[_0x38f2ee(0x22b)]['id'],_0x924280[_0x38f2ee(0x1ff)]['id']][_0x38f2ee(0x1e6)](_0x50977d=>{const _0x6be9f9=_0x38f2ee;this[_0x6be9f9(0x25c)](this['_liveShareService'][_0x6be9f9(0x1f5)](_0x50977d));});}};_0x5cdd98=_0x532821([_0x4700a2(0x0,_0x18a95a[_0x40e147(0x208)](_0x24715f))],_0x5cdd98);var _0x66d82d=Object[_0x40e147(0x24f)],_0x114b96=Object['getOwnPropertyDescriptor'],_0x7e0037=(_0x5dc46e,_0x40cdf2,_0x2f8d0a)=>_0x40cdf2 in _0x5dc46e?_0x66d82d(_0x5dc46e,_0x40cdf2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8d0a}):_0x5dc46e[_0x40cdf2]=_0x2f8d0a,_0x938cbe=(_0x5cd218,_0x23f2bd,_0xeaa431,_0x19a832)=>{const _0x1274ad=_0x40e147;for(var _0x30ee0a=_0x19a832>0x1?void 0x0:_0x19a832?_0x114b96(_0x23f2bd,_0xeaa431):_0x23f2bd,_0x34388a=_0x5cd218[_0x1274ad(0x1fc)]-0x1,_0x1be9c5;_0x34388a>=0x0;_0x34388a--)(_0x1be9c5=_0x5cd218[_0x34388a])&&(_0x30ee0a=_0x1be9c5(_0x30ee0a)||_0x30ee0a);return _0x30ee0a;},_0x4df22a=(_0x30abc4,_0x52b353)=>(_0x34397e,_0x2dee02)=>_0x52b353(_0x34397e,_0x2dee02,_0x30abc4),_0x93a8e1=(_0x40e188,_0x3f81d2,_0x1360a6)=>_0x7e0037(_0x40e188,typeof _0x3f81d2!='symbol'?_0x3f81d2+'':_0x3f81d2,_0x1360a6);const _0x45d39c=_0x40e147(0x20f);_0xd8e6ab['UniverLiveSharePlugin']=class extends _0x18a95a[_0x40e147(0x21d)]{constructor(_0x3a3352=_0x456cf0,_0x21626d,_0x5f91da){const _0x2c3db0=_0x40e147;super(),this[_0x2c3db0(0x1ce)]=_0x3a3352,this[_0x2c3db0(0x271)]=_0x21626d,this[_0x2c3db0(0x1ec)]=_0x5f91da;const {..._0x512f0a}=_0x18a95a[_0x2c3db0(0x23c)]({},_0x456cf0,this[_0x2c3db0(0x1ce)]);this[_0x2c3db0(0x1ec)][_0x2c3db0(0x1fe)](_0x54cc77,_0x512f0a);}[_0x40e147(0x1e7)](){const _0x2f0d71=_0x40e147;_0x18a95a[_0x2f0d71(0x1cf)](this[_0x2f0d71(0x271)],_0x18a95a['mergeOverrideWithDependencies']([[_0x24715f],[_0xd8e6ab[_0x2f0d71(0x1f0)]],[_0x5cdd98],[_0xd8e6ab['DesktopLiveShareController']]],this['_config'][_0x2f0d71(0x1ba)])),_0x18a95a['touchDependencies'](this[_0x2f0d71(0x271)],[[_0x5cdd98]]);}[_0x40e147(0x1a3)](){const _0x2533f5=_0x40e147;_0x18a95a[_0x2533f5(0x1eb)](this[_0x2533f5(0x271)],[[_0xd8e6ab[_0x2533f5(0x204)]]]);}},_0x93a8e1(_0xd8e6ab[_0x40e147(0x1f4)],_0x40e147(0x25b),_0x18a95a['UniverInstanceType'][_0x40e147(0x1a5)]),_0x93a8e1(_0xd8e6ab['UniverLiveSharePlugin'],_0x40e147(0x1e9),_0x45d39c),_0xd8e6ab['UniverLiveSharePlugin']=_0x938cbe([_0x18a95a[_0x40e147(0x211)](_0x1ae231[_0x40e147(0x239)]),_0x4df22a(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x4df22a(0x2,_0x18a95a[_0x40e147(0x28a)])],_0xd8e6ab[_0x40e147(0x1f4)]),_0xd8e6ab[_0x40e147(0x253)]=_0xa04d20,_0xd8e6ab[_0x40e147(0x1b1)]=_0x24715f,_0xd8e6ab[_0x40e147(0x227)]=_0x4b4d4a,Object[_0x40e147(0x24f)](_0xd8e6ab,Symbol[_0x40e147(0x26e)],{'value':_0x40e147(0x1df)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.4-experimental.20251208-c4b8a44",
3
+ "version": "0.12.4-experimental.20251210-8d33c6e",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.12.4-experimental.20251208-c4b8a44",
61
- "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251208-c4b8a44",
62
- "@univerjs/core": "0.12.4-experimental.20251208-c4b8a44",
63
- "@univerjs/design": "0.12.4-experimental.20251208-c4b8a44",
64
- "@univerjs/engine-render": "0.12.4-experimental.20251208-c4b8a44",
65
- "@univerjs/sheets-ui": "0.12.4-experimental.20251208-c4b8a44",
66
- "@univerjs/ui": "0.12.4-experimental.20251208-c4b8a44",
67
- "@univerjs/sheets": "0.12.4-experimental.20251208-c4b8a44"
60
+ "@univerjs-pro/collaboration": "0.12.4-experimental.20251210-8d33c6e",
61
+ "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-8d33c6e",
62
+ "@univerjs/engine-render": "0.12.4-experimental.20251210-8d33c6e",
63
+ "@univerjs/sheets": "0.12.4-experimental.20251210-8d33c6e",
64
+ "@univerjs/design": "0.12.4-experimental.20251210-8d33c6e",
65
+ "@univerjs/sheets-ui": "0.12.4-experimental.20251210-8d33c6e",
66
+ "@univerjs/core": "0.12.4-experimental.20251210-8d33c6e",
67
+ "@univerjs/ui": "0.12.4-experimental.20251210-8d33c6e"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,8 +74,8 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.2.6",
76
76
  "vitest": "^4.0.15",
77
- "@univerjs-infra/shared": "0.12.4",
78
- "@univerjs/protocol": "0.1.47"
77
+ "@univerjs/protocol": "0.1.47",
78
+ "@univerjs-infra/shared": "0.12.4"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",