@univerjs-pro/live-share 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-47c73e3

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 _0x5ce0e1=_0x28b5;(function(_0x45623f,_0x34432e){const _0x5a5c0c=_0x28b5,_0x5457bd=_0x45623f();while(!![]){try{const _0x437028=-parseInt(_0x5a5c0c(0x9b))/0x1+parseInt(_0x5a5c0c(0xb7))/0x2+-parseInt(_0x5a5c0c(0xa2))/0x3*(parseInt(_0x5a5c0c(0xb1))/0x4)+parseInt(_0x5a5c0c(0xad))/0x5+-parseInt(_0x5a5c0c(0xa7))/0x6*(parseInt(_0x5a5c0c(0x9c))/0x7)+-parseInt(_0x5a5c0c(0xa0))/0x8*(-parseInt(_0x5a5c0c(0xba))/0x9)+parseInt(_0x5a5c0c(0xaf))/0xa;if(_0x437028===_0x34432e)break;else _0x5457bd['push'](_0x5457bd['shift']());}catch(_0x252b13){_0x5457bd['push'](_0x5457bd['shift']());}}}(_0x3298,0xb0f60));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[_0x5ce0e1(0x9e)]{[_0x5ce0e1(0xb2)](_0x2e6c0d,_0x11dfe4,_0x42a5c5,_0x213480,_0x2d399c){const _0x2bb76c=_0x5ce0e1,_0x8355a0=_0x2e6c0d[_0x2bb76c(0xab)](n[_0x2bb76c(0x98)]),_0x3e4f07=_0x2e6c0d['get'](g[_0x2bb76c(0x97)]),_0x47e9ff=_0x11dfe4['getUnitId'](),_0x67bd81=_0x11dfe4[_0x2bb76c(0x96)](),_0x54380d=_0x8355a0[_0x2bb76c(0x95)](_0x47e9ff);(_0x54380d==null?void 0x0:_0x54380d['getStatus']())!==n[_0x2bb76c(0xbd)][_0x2bb76c(0xa1)]||(_0x42a5c5['getSheetId']()!==_0x67bd81['getSheetId']()&&this['_commandService'][_0x2bb76c(0xa3)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x47e9ff,'subUnitId':_0x42a5c5[_0x2bb76c(0xb5)]()}),!_0x3e4f07['getRenderById'](_0x47e9ff))||_0x2d399c[_0x2bb76c(0xaa)](f[_0x2bb76c(0xbe)]['id'],{'unitId':_0x11dfe4[_0x2bb76c(0xb8)](),'sheetId':_0x42a5c5[_0x2bb76c(0xb5)](),'sheetViewStartRow':_0x213480[_0x2bb76c(0xa6)],'sheetViewStartColumn':_0x213480[_0x2bb76c(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x28b5(_0x385e13,_0x44ebbe){_0x385e13=_0x385e13-0x94;const _0x3298e4=_0x3298();let _0x28b520=_0x3298e4[_0x385e13];return _0x28b520;}d[_0x5ce0e1(0x9e)][_0x5ce0e1(0x99)](w);class C extends a[_0x5ce0e1(0xac)]{[_0x5ce0e1(0xbc)](){const _0x57d0eb=_0x5ce0e1;var _0x267ad5,_0x20ee65;const _0x178210=this['_injector'][_0x57d0eb(0xab)](n[_0x57d0eb(0x98)]),_0x55e786=(_0x267ad5=this[_0x57d0eb(0xb3)]())==null?void 0x0:_0x267ad5[_0x57d0eb(0xbb)]();if(!_0x55e786)throw new Error(_0x57d0eb(0xb4));const _0xcd31c3=_0x178210[_0x57d0eb(0x95)](_0x55e786);return(_0x20ee65=_0xcd31c3==null?void 0x0:_0xcd31c3[_0x57d0eb(0xa8)]())!=null?_0x20ee65:n[_0x57d0eb(0xbd)][_0x57d0eb(0xb0)];}['startFollowing'](){const _0x2449e4=_0x5ce0e1;var _0x3ee8b4;const _0xf11da=this['_injector'][_0x2449e4(0xab)](n[_0x2449e4(0x98)]),_0x9cdc58=(_0x3ee8b4=this[_0x2449e4(0xb3)]())==null?void 0x0:_0x3ee8b4[_0x2449e4(0xbb)]();if(!_0x9cdc58)throw new Error(_0x2449e4(0xb4));const _0xa64449=_0xf11da[_0x2449e4(0x95)](_0x9cdc58);if(!_0xa64449)throw new Error(_0x2449e4(0xb6));_0xa64449[_0x2449e4(0x9d)]();}['stopFollowing'](){const _0x145a07=_0x5ce0e1;var _0x3633d0;const _0x2a279d=this[_0x145a07(0xb9)][_0x145a07(0xab)](n[_0x145a07(0x98)]),_0x861817=(_0x3633d0=this[_0x145a07(0xb3)]())==null?void 0x0:_0x3633d0[_0x145a07(0xbb)]();if(!_0x861817)throw new Error(_0x145a07(0xb4));const _0x261622=_0x2a279d[_0x145a07(0x95)](_0x861817);if(!_0x261622)throw new Error(_0x145a07(0xb6));_0x261622[_0x145a07(0x94)]();}[_0x5ce0e1(0xa9)](){const _0x37afd2=_0x5ce0e1;var _0x3e29fc;const _0x460c4a=this[_0x37afd2(0xb9)][_0x37afd2(0xab)](n[_0x37afd2(0x98)]),_0x3c2b10=(_0x3e29fc=this[_0x37afd2(0xb3)]())==null?void 0x0:_0x3e29fc[_0x37afd2(0xbb)]();if(!_0x3c2b10)throw new Error(_0x37afd2(0xb4));const _0x59d942=_0x460c4a[_0x37afd2(0x95)](_0x3c2b10);if(!_0x59d942)throw new Error(_0x37afd2(0xb6));_0x59d942[_0x37afd2(0xae)]();}[_0x5ce0e1(0x9f)](){const _0x4a9a2d=_0x5ce0e1;var _0x30632e;const _0x404416=this[_0x4a9a2d(0xb9)]['get'](n[_0x4a9a2d(0x98)]),_0x349433=(_0x30632e=this['getActiveWorkbook']())==null?void 0x0:_0x30632e[_0x4a9a2d(0xbb)]();if(!_0x349433)throw new Error(_0x4a9a2d(0xb4));const _0x47ce5e=_0x404416[_0x4a9a2d(0x95)](_0x349433);if(!_0x47ce5e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47ce5e['stopPresenting']();}}a[_0x5ce0e1(0xac)][_0x5ce0e1(0x99)](C);class L extends a[_0x5ce0e1(0xa5)]{get[_0x5ce0e1(0x9a)](){const _0x5d99f8=_0x5ce0e1;return n[_0x5d99f8(0xbd)];}}a['FEnum']['extend'](L);function _0x3298(){const _0x3bb4b7=['stopPresenting','268928BIcXQW','PRESENTING','177CNkAVG','executeCommand','startColumn','FEnum','startRow','42tNWEdq','getStatus','startPresenting','syncExecuteCommand','get','FUniver','4032420UuHGSn','tryStartPresenting','1656010hRhAqB','IDLE','50824aanann','_initialize','getActiveWorkbook','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2471542tNbVET','getUnitId','_injector','207wYEfVD','getId','getLiveShareStatus','LiveShareStatus','SetScrollOperation','stopFollowing','getLiveShareCoordinatorSync','getActiveSheet','IRenderManagerService','LiveShareController','extend','LiveShareStatusEnum','1185539fFXNvD','320999EaWzQq','startFollowing','FRange'];_0x3298=function(){return _0x3bb4b7;};return _0x3298();}
1
+ 'use strict';const _0x1259c2=_0x128a;(function(_0x10b5c3,_0x39e9d8){const _0x24ccc3=_0x128a,_0x157c0a=_0x10b5c3();while(!![]){try{const _0x5d2e15=parseInt(_0x24ccc3(0x1d3))/0x1+-parseInt(_0x24ccc3(0x1de))/0x2*(-parseInt(_0x24ccc3(0x1c5))/0x3)+-parseInt(_0x24ccc3(0x1c2))/0x4+parseInt(_0x24ccc3(0x1bf))/0x5+-parseInt(_0x24ccc3(0x1cd))/0x6+parseInt(_0x24ccc3(0x1d0))/0x7*(parseInt(_0x24ccc3(0x1d9))/0x8)+-parseInt(_0x24ccc3(0x1c8))/0x9*(parseInt(_0x24ccc3(0x1cc))/0xa);if(_0x5d2e15===_0x39e9d8)break;else _0x157c0a['push'](_0x157c0a['shift']());}catch(_0xf2a444){_0x157c0a['push'](_0x157c0a['shift']());}}}(_0x4695,0x3fd83));function _0x4695(){const _0x499f35=['executeCommand','9219fuRiWN','getActiveSheet','LiveShareController','93SUMMbY','PRESENTING','stopFollowing','getId','syncExecuteCommand','extend','1928hcwNmn','getLiveShareCoordinatorSync','FUniver','getSheetId','getLiveShareStatus','1642kNxQwE','FRange','stopPresenting','tryStartPresenting','startRow','startFollowing','getRenderById','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','1573440VkTSQr','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','419752ImbOwH','IRenderManagerService','get','783ZWJLAm','IDLE','SetWorksheetActiveOperation','9lpPMtE','_initialize','getStatus','_injector','2348480YDhFHW','1470996SqdntB','LiveShareStatus'];_0x4695=function(){return _0x499f35;};return _0x4695();}function _0x128a(_0x2155f2,_0x10c032){_0x2155f2=_0x2155f2-0x1bc;const _0x469548=_0x4695();let _0x128ac3=_0x469548[_0x2155f2];return _0x128ac3;}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[_0x1259c2(0x1df)]{[_0x1259c2(0x1c9)](_0x8eec8d,_0x106ea5,_0x21a33d,_0x56cb86,_0x200f9c){const _0x507eea=_0x1259c2,_0x519425=_0x8eec8d[_0x507eea(0x1c4)](n[_0x507eea(0x1d2)]),_0xbc46a0=_0x8eec8d[_0x507eea(0x1c4)](g[_0x507eea(0x1c3)]),_0x539f7c=_0x106ea5['getUnitId'](),_0x311c5c=_0x106ea5[_0x507eea(0x1d1)](),_0x2612b7=_0x519425['getLiveShareCoordinatorSync'](_0x539f7c);(_0x2612b7==null?void 0x0:_0x2612b7[_0x507eea(0x1ca)]())!==n[_0x507eea(0x1ce)][_0x507eea(0x1d4)]||(_0x21a33d[_0x507eea(0x1dc)]()!==_0x311c5c[_0x507eea(0x1dc)]()&&this['_commandService'][_0x507eea(0x1cf)](u[_0x507eea(0x1c7)]['id'],{'unitId':_0x539f7c,'subUnitId':_0x21a33d['getSheetId']()}),!_0xbc46a0[_0x507eea(0x1bc)](_0x539f7c))||_0x200f9c[_0x507eea(0x1d7)](f['SetScrollOperation']['id'],{'unitId':_0x106ea5['getUnitId'](),'sheetId':_0x21a33d['getSheetId'](),'sheetViewStartRow':_0x56cb86[_0x507eea(0x1e2)],'sheetViewStartColumn':_0x56cb86['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x1259c2(0x1df)][_0x1259c2(0x1d8)](w);class C extends a[_0x1259c2(0x1db)]{[_0x1259c2(0x1dd)](){const _0x5e3b71=_0x1259c2;var _0x2d7de1,_0x4a76fa;const _0x23f6a0=this['_injector'][_0x5e3b71(0x1c4)](n[_0x5e3b71(0x1d2)]),_0x4bfa62=(_0x2d7de1=this['getActiveWorkbook']())==null?void 0x0:_0x2d7de1['getId']();if(!_0x4bfa62)throw new Error(_0x5e3b71(0x1be));const _0x1a49bf=_0x23f6a0[_0x5e3b71(0x1da)](_0x4bfa62);return(_0x4a76fa=_0x1a49bf==null?void 0x0:_0x1a49bf['getStatus']())!=null?_0x4a76fa:n[_0x5e3b71(0x1ce)][_0x5e3b71(0x1c6)];}[_0x1259c2(0x1e3)](){const _0x960f2d=_0x1259c2;var _0x11afe0;const _0x4ac7a9=this[_0x960f2d(0x1cb)][_0x960f2d(0x1c4)](n['LiveShareController']),_0x4ecc3f=(_0x11afe0=this['getActiveWorkbook']())==null?void 0x0:_0x11afe0[_0x960f2d(0x1d6)]();if(!_0x4ecc3f)throw new Error(_0x960f2d(0x1be));const _0x366988=_0x4ac7a9[_0x960f2d(0x1da)](_0x4ecc3f);if(!_0x366988)throw new Error(_0x960f2d(0x1c0));_0x366988[_0x960f2d(0x1e3)]();}[_0x1259c2(0x1d5)](){const _0x3ba272=_0x1259c2;var _0x50bb4c;const _0x4b3c0a=this[_0x3ba272(0x1cb)][_0x3ba272(0x1c4)](n[_0x3ba272(0x1d2)]),_0x3e5c11=(_0x50bb4c=this[_0x3ba272(0x1c1)]())==null?void 0x0:_0x50bb4c[_0x3ba272(0x1d6)]();if(!_0x3e5c11)throw new Error(_0x3ba272(0x1be));const _0x40d9fa=_0x4b3c0a['getLiveShareCoordinatorSync'](_0x3e5c11);if(!_0x40d9fa)throw new Error(_0x3ba272(0x1c0));_0x40d9fa[_0x3ba272(0x1d5)]();}['startPresenting'](){const _0x3a688f=_0x1259c2;var _0x52b283;const _0x195cec=this[_0x3a688f(0x1cb)][_0x3a688f(0x1c4)](n[_0x3a688f(0x1d2)]),_0x135530=(_0x52b283=this[_0x3a688f(0x1c1)]())==null?void 0x0:_0x52b283[_0x3a688f(0x1d6)]();if(!_0x135530)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac5bd=_0x195cec[_0x3a688f(0x1da)](_0x135530);if(!_0x3ac5bd)throw new Error(_0x3a688f(0x1c0));_0x3ac5bd[_0x3a688f(0x1e1)]();}[_0x1259c2(0x1e0)](){const _0x102e53=_0x1259c2;var _0x44f4dd;const _0x53c3c0=this[_0x102e53(0x1cb)][_0x102e53(0x1c4)](n[_0x102e53(0x1d2)]),_0x38cbfc=(_0x44f4dd=this[_0x102e53(0x1c1)]())==null?void 0x0:_0x44f4dd[_0x102e53(0x1d6)]();if(!_0x38cbfc)throw new Error(_0x102e53(0x1be));const _0x3a787f=_0x53c3c0[_0x102e53(0x1da)](_0x38cbfc);if(!_0x3a787f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3a787f[_0x102e53(0x1e0)]();}}a[_0x1259c2(0x1db)]['extend'](C);class L extends a['FEnum']{get[_0x1259c2(0x1bd)](){const _0x42b7a9=_0x1259c2;return n[_0x42b7a9(0x1ce)];}}a['FEnum'][_0x1259c2(0x1d8)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5ebda9=_0x108d;(function(_0x3fda51,_0xdbbd56){const _0x4d02ba=_0x108d,_0x586fed=_0x3fda51();while(!![]){try{const _0xc2e1c6=parseInt(_0x4d02ba(0x12e))/0x1+parseInt(_0x4d02ba(0x14f))/0x2+parseInt(_0x4d02ba(0xf2))/0x3*(parseInt(_0x4d02ba(0xf7))/0x4)+-parseInt(_0x4d02ba(0xe7))/0x5*(parseInt(_0x4d02ba(0x131))/0x6)+-parseInt(_0x4d02ba(0x165))/0x7+-parseInt(_0x4d02ba(0x153))/0x8*(-parseInt(_0x4d02ba(0x14e))/0x9)+-parseInt(_0x4d02ba(0x106))/0xa*(parseInt(_0x4d02ba(0x10f))/0xb);if(_0xc2e1c6===_0xdbbd56)break;else _0x586fed['push'](_0x586fed['shift']());}catch(_0x19f6e2){_0x586fed['push'](_0x586fed['shift']());}}}(_0x47d9,0x52706));var T=Object[_0x5ebda9(0x100)],U=(_0x22a205,_0x21b735,_0x732931)=>_0x21b735 in _0x22a205?T(_0x22a205,_0x21b735,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x732931}):_0x22a205[_0x21b735]=_0x732931,_=(_0xe46a60,_0x3fe54e,_0x749b5)=>U(_0xe46a60,typeof _0x3fe54e!=_0x5ebda9(0x179)?_0x3fe54e+'':_0x3fe54e,_0x749b5);Object[_0x5ebda9(0x100)](exports,Symbol['toStringTag'],{'value':_0x5ebda9(0xd9)});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:_0x313096,..._0x3e31f6}){const _0x340b83=_0x5ebda9,{icon:_0xc7d88d,id:_0x5edb09,className:_0x497256,extend:_0x1b93ba,..._0x28f671}=_0x3e31f6,_0x40ac2b=(_0x340b83(0x133)+_0x5edb09+'\x20'+(_0x497256||''))['trim'](),_0x2ae2a6=v['useRef']('_'+H());return j(_0xc7d88d,''+_0x5edb09,{'defIds':_0xc7d88d['defIds'],'idSuffix':_0x2ae2a6[_0x340b83(0x10e)]},{'ref':_0x313096,'className':_0x40ac2b,..._0x28f671},_0x1b93ba);}function j(_0x2fc3d4,_0x4dffa4,_0x177438,_0xe5320a,_0xd2567e){const _0x452543=_0x5ebda9;return v[_0x452543(0xe0)](_0x2fc3d4[_0x452543(0x17c)],{'key':_0x4dffa4,...y(_0x2fc3d4,_0x177438,_0xd2567e),..._0xe5320a},(F(_0x2fc3d4,_0x177438)['children']||[])[_0x452543(0x152)]((_0x1231ce,_0x1b2f6c)=>j(_0x1231ce,_0x4dffa4+'-'+_0x2fc3d4[_0x452543(0x17c)]+'-'+_0x1b2f6c,_0x177438,void 0x0,_0xd2567e)));}function y(_0x33bef4,_0xbe4d32,_0x40cb7f){const _0x2feb1b=_0x5ebda9,_0x487a7d={..._0x33bef4['attrs']};_0x40cb7f!=null&&_0x40cb7f[_0x2feb1b(0x11e)]&&_0x487a7d[_0x2feb1b(0xc8)]===_0x2feb1b(0x11e)&&(_0x487a7d[_0x2feb1b(0xc8)]=_0x40cb7f[_0x2feb1b(0x11e)]),_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0xf0)&&_0x487a7d['id']&&(_0x487a7d['id']=_0x487a7d['id']+_0xbe4d32['idSuffix']),Object[_0x2feb1b(0x138)](_0x487a7d)['forEach'](([_0x56fc13,_0x1c89bf])=>{const _0x2f7b2b=_0x2feb1b;_0x56fc13===_0x2f7b2b(0xf0)&&typeof _0x1c89bf==_0x2f7b2b(0xcc)&&(_0x487a7d[_0x56fc13]=_0x1c89bf[_0x2f7b2b(0x122)](/url\(#(.*)\)/,_0x2f7b2b(0x11b)+_0xbe4d32['idSuffix']+')'));});const {defIds:_0x2fd0c9}=_0xbe4d32;return!_0x2fd0c9||_0x2fd0c9[_0x2feb1b(0x196)]===0x0||(_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0x109)&&_0x487a7d[_0x2feb1b(0x173)]&&(_0x487a7d['xlink:href']=_0x487a7d[_0x2feb1b(0x173)]+_0xbe4d32[_0x2feb1b(0x183)]),Object[_0x2feb1b(0x138)](_0x487a7d)[_0x2feb1b(0xeb)](([_0x3c01de,_0x5462a3])=>{const _0x4c16cc=_0x2feb1b;typeof _0x5462a3==_0x4c16cc(0xcc)&&(_0x487a7d[_0x3c01de]=_0x5462a3[_0x4c16cc(0x122)](/url\(#(.*)\)/,'url(#$1'+_0xbe4d32[_0x4c16cc(0x183)]+')'));})),_0x487a7d;}function F(_0x3e52ef,_0x58a2f8){const _0x59dd00=_0x5ebda9;var _0x5e9bd4;const {defIds:_0x258491}=_0x58a2f8;return!_0x258491||_0x258491[_0x59dd00(0x196)]===0x0?_0x3e52ef:_0x3e52ef['tag']===_0x59dd00(0x127)&&((_0x5e9bd4=_0x3e52ef[_0x59dd00(0x191)])!=null&&_0x5e9bd4[_0x59dd00(0x196)])?{..._0x3e52ef,'children':_0x3e52ef[_0x59dd00(0x191)][_0x59dd00(0x152)](_0x4d3d70=>typeof _0x4d3d70[_0x59dd00(0xe1)]['id']==_0x59dd00(0xcc)&&_0x258491&&_0x258491['includes'](_0x4d3d70['attrs']['id'])?{..._0x4d3d70,'attrs':{..._0x4d3d70[_0x59dd00(0xe1)],'id':_0x4d3d70[_0x59dd00(0xe1)]['id']+_0x58a2f8[_0x59dd00(0x183)]}}:_0x4d3d70)}:_0x3e52ef;}function H(){const _0x4e76b5=_0x5ebda9;return Math[_0x4e76b5(0x124)]()[_0x4e76b5(0x166)](0x24)[_0x4e76b5(0x13f)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x5ebda9(0x129),'fill':'none','viewBox':_0x5ebda9(0x17f),'width':_0x5ebda9(0xea),'height':_0x5ebda9(0xea)},'children':[{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':_0x5ebda9(0x13e)}},{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5ebda9(0x13b),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x19699c,_0x5a49b8){const _0x7f8259=_0x5ebda9;return v[_0x7f8259(0xe0)](x,Object['assign']({},_0x19699c,{'id':_0x7f8259(0x15c),'ref':_0x5a49b8,'icon':V}));});R['displayName']=_0x5ebda9(0x12c);class E extends o['Disposable']{constructor(){const _0x2a4d79=_0x5ebda9;super(...arguments),_(this,_0x2a4d79(0xd4),new Set()),_(this,_0x2a4d79(0x128),new Set());}[_0x5ebda9(0x11a)](_0x5c37f6){const _0x5442dc=_0x5ebda9;return this[_0x5442dc(0xd4)][_0x5442dc(0x154)](_0x5c37f6),o[_0x5442dc(0xfd)](()=>this[_0x5442dc(0xd4)][_0x5442dc(0xed)](_0x5c37f6));}[_0x5ebda9(0x189)](_0x4f651f){const _0x5df325=_0x5ebda9;return this[_0x5df325(0x128)][_0x5df325(0x154)](_0x4f651f),o[_0x5df325(0xfd)](()=>this[_0x5df325(0x128)]['delete'](_0x4f651f));}[_0x5ebda9(0xdc)](_0x475cb3){const _0x566cbc=_0x5ebda9;return this['_sharedOperations'][_0x566cbc(0x15f)](_0x475cb3);}[_0x5ebda9(0x105)](_0x1e7c98){const _0x39143d=_0x5ebda9;return Array[_0x39143d(0xec)](this['_reporters'])[_0x39143d(0x152)](_0x190684=>_0x190684(_0x1e7c98));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x440c5b,_0x56961a,_0x53a6b8,_0x5a344f)=>{for(var _0x1e2475=_0x5a344f>0x1?void 0x0:_0x5a344f?M(_0x56961a,_0x53a6b8):_0x56961a,_0x1388b8=_0x440c5b['length']-0x1,_0x4961a1;_0x1388b8>=0x0;_0x1388b8--)(_0x4961a1=_0x440c5b[_0x1388b8])&&(_0x1e2475=_0x4961a1(_0x1e2475)||_0x1e2475);return _0x1e2475;},S=(_0x2e5be5,_0xca9822)=>(_0x4e18e4,_0x42f762)=>_0xca9822(_0x4e18e4,_0x42f762,_0x2e5be5);exports[_0x5ebda9(0xf8)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0xe43374,_0x2163bf,_0x5be6c2){const _0xc3af71=_0x5ebda9;super(),_(this,_0xc3af71(0x108),new Map()),(this[_0xc3af71(0x142)]=_0xe43374,this[_0xc3af71(0x113)]=_0x2163bf,this['_collabSessionService']=_0x5be6c2,this[_0xc3af71(0xf1)]());}async[_0x5ebda9(0x112)](_0xf7a880){const _0x45fe66=_0x5ebda9;return this[_0x45fe66(0x108)]['has'](_0xf7a880)||await this[_0x45fe66(0xdf)](_0xf7a880),this[_0x45fe66(0x108)][_0x45fe66(0x102)](_0xf7a880);}[_0x5ebda9(0x117)](_0x439978){const _0x4ceeb0=_0x5ebda9;var _0x1cf5f5;return(_0x1cf5f5=this[_0x4ceeb0(0x108)][_0x4ceeb0(0x102)](_0x439978))!=null?_0x1cf5f5:null;}[_0x5ebda9(0xf1)](){const _0x28ba1e=_0x5ebda9;this['_univerInstanceService'][_0x28ba1e(0xe2)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](async _0x3d8e9f=>{const _0x502591=_0x28ba1e,_0x228429=_0x3d8e9f[_0x502591(0x140)]();this[_0x502591(0x108)][_0x502591(0x15f)](_0x228429)||this[_0x502591(0xdf)](_0x228429);}),this['_univerInstanceService'][_0x28ba1e(0xcd)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](_0x51f319=>{const _0x3b9aa0=_0x28ba1e,_0x218dbc=_0x51f319[_0x3b9aa0(0x140)](),_0x1c1012=this[_0x3b9aa0(0x108)][_0x3b9aa0(0x102)](_0x218dbc);_0x1c1012==null||_0x1c1012['dispose']();});}async[_0x5ebda9(0xdf)](_0x185b38){const _0x503618=_0x5ebda9,_0x3b6d4f=await this['_collabSessionService'][_0x503618(0x114)](_0x185b38),_0x558a20=this[_0x503618(0x113)][_0x503618(0x107)](exports[_0x503618(0x158)],_0x185b38,_0x3b6d4f);return _0x558a20[_0x503618(0x119)](),this[_0x503618(0x108)]['set'](_0x185b38,_0x558a20),_0x558a20;}},exports['LiveShareController']=P([S(0x0,o[_0x5ebda9(0x10b)]),S(0x1,o['Inject'](o[_0x5ebda9(0xef)])),S(0x2,o['Inject'](b[_0x5ebda9(0x144)]))],exports['LiveShareController']);var u=(_0x21a257=>(_0x21a257[_0x5ebda9(0x103)]=_0x5ebda9(0x101),_0x21a257[_0x5ebda9(0x16b)]=_0x5ebda9(0x136),_0x21a257[_0x5ebda9(0x178)]=_0x5ebda9(0xee),_0x21a257['NOT_FOLLOWING']=_0x5ebda9(0x155),_0x21a257[_0x5ebda9(0x10a)]=_0x5ebda9(0x141),_0x21a257))(u||{});const k=_0x5ebda9(0xd2),q=0xc8;exports[_0x5ebda9(0x158)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0x501301,_0x574635,_0x38bff8,_0x3d6fa8,_0xc1a4c6){const _0x158df7=_0x5ebda9;super(),_(this,_0x158df7(0x18e),new O[(_0x158df7(0x145))](_0x158df7(0x136))),_(this,'status$',this[_0x158df7(0x18e)][_0x158df7(0x111)]()),_(this,_0x158df7(0xf1),!0x1),_(this,_0x158df7(0x104),null),_(this,'_presenter',null),(this[_0x158df7(0x125)]=_0x501301,this[_0x158df7(0x194)]=_0x574635,this['_configService']=_0x38bff8,this[_0x158df7(0xf4)]=_0x3d6fa8,this['_commandService']=_0xc1a4c6);}get[_0x5ebda9(0xff)](){const _0x58c2fe=_0x5ebda9;return this[_0x58c2fe(0x18e)][_0x58c2fe(0x13a)]();}['dispose'](){const _0x53c160=_0x5ebda9;var _0x135a9b;(_0x135a9b=this['_commandDisposable'])==null||_0x135a9b[_0x53c160(0x115)](),this[_0x53c160(0x18e)][_0x53c160(0x147)](_0x53c160(0x136)),this[_0x53c160(0x18e)][_0x53c160(0x195)]();}[_0x5ebda9(0x18c)](){const _0x3d8c0c=_0x5ebda9;return this[_0x3d8c0c(0xff)];}[_0x5ebda9(0x119)](){const _0x5bfccf=_0x5ebda9;this[_0x5bfccf(0xf1)]||(this[_0x5bfccf(0xf1)]=!0x0,this[_0x5bfccf(0x194)][_0x5bfccf(0xd5)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x49311a=>{const _0x440b5e=_0x5bfccf;switch(_0x49311a){case b[_0x440b5e(0xdb)][_0x440b5e(0x103)]:this['_handleOffline']();break;case b[_0x440b5e(0xdb)][_0x440b5e(0xe3)]:this[_0x440b5e(0xd7)]();break;}}),this[_0x5bfccf(0x194)][_0x5bfccf(0x18a)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x12ba78=>{const _0x37583a=_0x5bfccf,{eventID:_0x4c0e0b}=_0x12ba78;switch(_0x4c0e0b){case d[_0x37583a(0x190)]['LIVESHARE_NEW_HOST']:this[_0x37583a(0x177)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0xe6)]:this[_0x37583a(0xde)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0x12d)]:this[_0x37583a(0x156)]();break;case d[_0x37583a(0x190)][_0x37583a(0x146)]:this['_handleNewChangeSets'](_0x12ba78);break;}}));}[_0x5ebda9(0xc9)](){const _0x3fd5d1=_0x5ebda9;this[_0x3fd5d1(0x194)][_0x3fd5d1(0x175)]({'eventID':d['CollaborationEvent'][_0x3fd5d1(0x150)],'data':{'unitID':this[_0x3fd5d1(0x125)],'userID':this[_0x3fd5d1(0x194)][_0x3fd5d1(0x181)]()}},this[_0x3fd5d1(0x125)]);}['stopPresenting'](){const _0x39c143=_0x5ebda9;this[_0x39c143(0xff)]===_0x39c143(0x141)&&(this['_status$'][_0x39c143(0x147)](_0x39c143(0x136)),this[_0x39c143(0x194)][_0x39c143(0x175)]({'eventID':d[_0x39c143(0x190)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x39c143(0x125)]}},this[_0x39c143(0x125)]));}[_0x5ebda9(0xca)](){const _0x2541f7=_0x5ebda9;this['_status']==='not-following'&&(this[_0x2541f7(0x18e)][_0x2541f7(0x147)](_0x2541f7(0xee)),this[_0x2541f7(0x11f)]());}[_0x5ebda9(0xc3)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x5ebda9(0x177)](_0x1ca3f4){const _0x110ae4=_0x5ebda9,{presenter:_0x17ff24}=_0x1ca3f4['data'],_0x555e0b=this['_collabSession'][_0x110ae4(0x181)]();this[_0x110ae4(0xfb)]=_0x17ff24,_0x17ff24===_0x555e0b?(this[_0x110ae4(0xfe)](),this[_0x110ae4(0x16e)]()):this[_0x110ae4(0xff)]!==_0x110ae4(0x155)&&(this[_0x110ae4(0x126)](),this[_0x110ae4(0x11f)]());}['_fetchOperations'](){const _0xc89bd4=_0x5ebda9,_0x10315f={'eventID':d[_0xc89bd4(0x190)][_0xc89bd4(0xdd)]};this['_collabSession'][_0xc89bd4(0x175)](_0x10315f,this[_0xc89bd4(0x125)]);}[_0x5ebda9(0x156)](){const _0x49288d=_0x5ebda9;this['_presenter']=null,this[_0x49288d(0xff)]!==_0x49288d(0x141)&&this[_0x49288d(0x192)]();}[_0x5ebda9(0x13c)](_0x3768c5){const _0x3dda2e=_0x5ebda9;if(this[_0x3dda2e(0xff)]===_0x3dda2e(0xee)&&this['_presenter']===_0x3768c5[_0x3dda2e(0x16d)][_0x3dda2e(0xd1)]){const _0x430a25=d[_0x3dda2e(0x149)](_0x3768c5['data'])['mutations'][_0x3dda2e(0xc7)]()[_0x3dda2e(0x16f)](_0xca7e3e=>_0xca7e3e['id']===C[_0x3dda2e(0x186)]['id']);if(_0x430a25){const _0x5b8db6=_0x430a25[_0x3dda2e(0x171)]['unitId'],_0xe662da=_0x430a25[_0x3dda2e(0x171)][_0x3dda2e(0x184)]['id'];setTimeout(()=>{const _0x4350d8=_0x3dda2e;this[_0x4350d8(0x18d)]['executeCommand'](C[_0x4350d8(0x17a)]['id'],{'unitId':_0x5b8db6,'subUnitId':_0xe662da},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4263d8=_0x5ebda9;this[_0x4263d8(0x18e)]['next'](_0x4263d8(0x141));const _0x3e3840=new Map(),_0x289e6f=this[_0x4263d8(0x104)]=new o[(_0x4263d8(0xd0))]();_0x289e6f[_0x4263d8(0x154)](o[_0x4263d8(0xfd)](()=>{const _0x173a75=_0x4263d8;_0x3e3840[_0x173a75(0xeb)](_0x57b94d=>_0x57b94d[_0x173a75(0x195)]()),_0x3e3840['clear']();})),_0x289e6f[_0x4263d8(0x154)](this['_commandService'][_0x4263d8(0x132)](_0x1401d1=>{const _0x648c9a=_0x4263d8;var _0x5c716c;if(_0x1401d1[_0x648c9a(0x164)]!==o[_0x648c9a(0x15a)][_0x648c9a(0x151)]||!this[_0x648c9a(0xf4)][_0x648c9a(0xdc)](_0x1401d1['id']))return;const {id:_0x404581}=_0x1401d1;let _0x2a88b3;_0x3e3840[_0x648c9a(0x15f)](_0x404581)?_0x2a88b3=_0x3e3840['get'](_0x404581):(_0x2a88b3=new O[(_0x648c9a(0x180))](),_0x3e3840['set'](_0x404581,_0x2a88b3),_0x2a88b3[_0x648c9a(0x14d)](I[_0x648c9a(0x121)]((_0x5c716c=this['_configService'][_0x648c9a(0xf5)](k))!=null?_0x5c716c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x24097c=>{const _0x5f35b9=_0x648c9a;this[_0x5f35b9(0x194)][_0x5f35b9(0x175)]({'eventID':d[_0x5f35b9(0x190)][_0x5f35b9(0xe6)],'data':{'unitID':this[_0x5f35b9(0x125)],'operations':{[_0x24097c['id']]:{'id':_0x24097c['id'],'params':JSON[_0x5f35b9(0x11c)](_0x24097c[_0x5f35b9(0x171)])}}}},this['_unitID']);})),_0x2a88b3[_0x648c9a(0x147)](_0x1401d1);})),this[_0x4263d8(0xf4)][_0x4263d8(0x105)](this[_0x4263d8(0x125)])[_0x4263d8(0xeb)](_0x1cdc3f=>this[_0x4263d8(0x194)][_0x4263d8(0x175)]({'eventID':d[_0x4263d8(0x190)][_0x4263d8(0xe6)],'data':{'unitID':this[_0x4263d8(0x125)],'operations':{[_0x1cdc3f['id']]:{'id':_0x1cdc3f['id'],'params':JSON['stringify'](_0x1cdc3f['params'])}}}},this[_0x4263d8(0x125)]));}['_stopPresenting'](){const _0x148f9e=_0x5ebda9;var _0x32c109;this[_0x148f9e(0x18e)][_0x148f9e(0x147)](_0x148f9e(0x136)),(_0x32c109=this[_0x148f9e(0x104)])==null||_0x32c109['dispose'](),this['_commandDisposable']=null;}[_0x5ebda9(0x11f)](){const _0xf33d0=_0x5ebda9;var _0x526cc9;(_0x526cc9=this['_commandDisposable'])==null||_0x526cc9[_0xf33d0(0x115)](),this[_0xf33d0(0x18e)][_0xf33d0(0x147)]('following');}[_0x5ebda9(0x192)](){const _0x4a3f8c=_0x5ebda9;var _0x20608c;this[_0x4a3f8c(0x18e)]['next'](_0x4a3f8c(0x136)),(_0x20608c=this[_0x4a3f8c(0x104)])==null||_0x20608c['dispose'](),this[_0x4a3f8c(0x104)]=null;}[_0x5ebda9(0xfe)](){const _0x21b1f2=_0x5ebda9;var _0x36979d;this[_0x21b1f2(0x18e)][_0x21b1f2(0x147)](_0x21b1f2(0x155)),(_0x36979d=this[_0x21b1f2(0x104)])==null||_0x36979d[_0x21b1f2(0x115)]();}[_0x5ebda9(0xde)](_0x2bc0e3){const _0x3be5e1=_0x5ebda9;if([_0x3be5e1(0x141),'not-following',_0x3be5e1(0x101)][_0x3be5e1(0x176)](this[_0x3be5e1(0xff)])||!_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]||_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]===this[_0x3be5e1(0x194)]['getMemberID']())return;this[_0x3be5e1(0xff)]===_0x3be5e1(0x136)&&this[_0x3be5e1(0x11f)]();const _0x63ec75=_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0xd3)];Object[_0x3be5e1(0x143)](_0x63ec75)[_0x3be5e1(0xeb)](_0x2618a6=>{const _0x5df6e4=_0x3be5e1;this[_0x5df6e4(0x18d)][_0x5df6e4(0xe5)](_0x2618a6['id'],_0x2618a6[_0x5df6e4(0x171)]?JSON['parse'](_0x2618a6[_0x5df6e4(0x171)]):null,{'fromCollab':!0x0});});}[_0x5ebda9(0x185)](){const _0xb79ab6=_0x5ebda9;var _0x1a2b34;this[_0xb79ab6(0x18e)]['next'](_0xb79ab6(0x101)),(_0x1a2b34=this['_commandDisposable'])==null||_0x1a2b34[_0xb79ab6(0x115)]();}[_0x5ebda9(0xd7)](){const _0x1b4dd2=_0x5ebda9;this[_0x1b4dd2(0x18e)][_0x1b4dd2(0x147)](_0x1b4dd2(0x136)),this[_0x1b4dd2(0x12b)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x5ebda9(0x14b)]),S(0x3,o[_0x5ebda9(0xcf)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x108d(_0x1f8f69,_0x23af53){_0x1f8f69=_0x1f8f69-0xc1;const _0x47d982=_0x47d9();let _0x108dbc=_0x47d982[_0x1f8f69];return _0x108dbc;}function $(){const _0x30a48c=_0x5ebda9,_0x9a2bfc=p['useDependency'](exports[_0x30a48c(0xf8)]),_0x1b1a72=p['useDependency'](o[_0x30a48c(0x10b)]),_0x43478b=p[_0x30a48c(0x17e)](()=>_0x1b1a72['getCurrentTypeOfUnit$'](o[_0x30a48c(0x110)][_0x30a48c(0x10c)]),void 0x0,!0x1,[]),[_0xa0c3b1,_0x38aee3]=v[_0x30a48c(0x123)](null),[_0xb6997d,_0x3540f3]=v[_0x30a48c(0x123)](u[_0x30a48c(0x16b)]),_0x2a5704=v[_0x30a48c(0x187)](null);return v[_0x30a48c(0x188)](()=>(_0x43478b&&_0x9a2bfc[_0x30a48c(0x112)](_0x43478b['getUnitId']())[_0x30a48c(0xcb)](_0x58fd12=>{const _0x3cd9de=_0x30a48c;_0x38aee3(_0x58fd12),_0x2a5704[_0x3cd9de(0x10e)]=_0x58fd12[_0x3cd9de(0xe4)][_0x3cd9de(0x172)](_0x15e06f=>{_0x3540f3(_0x15e06f);});}),()=>{const _0x51ef43=_0x30a48c;var _0x267af5;(_0x267af5=_0x2a5704['current'])==null||_0x267af5['unsubscribe'](),_0x2a5704[_0x51ef43(0x10e)]=null;}),[_0x43478b,_0x9a2bfc]),_0xa0c3b1?l['jsx'](f[_0x30a48c(0x167)],{'align':_0x30a48c(0x16a),'disabled':_0xb6997d===u[_0x30a48c(0x103)],'className':_0x30a48c(0x120),'overlay':l[_0x30a48c(0xf9)](W,{'status':_0xb6997d,'coordinator':_0xa0c3b1}),'children':l[_0x30a48c(0xf9)](_0x30a48c(0xfa),{'className':f[_0x30a48c(0x137)](_0x30a48c(0x13d),{'univer-cursor-not-allowed':_0xb6997d===u[_0x30a48c(0x103)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6997d!==u[_0x30a48c(0x103)]}),'type':_0x30a48c(0xfa),'children':l[_0x30a48c(0xf9)](R,{'className':_0x30a48c(0x17b)})})}):null;}function W(_0x59b992){const _0x25aea1=_0x5ebda9,{status:_0x429252,coordinator:_0x3e42e9}=_0x59b992;switch(_0x429252){case u['IDLE']:return l[_0x25aea1(0xf9)](G,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x178)]:return l['jsx'](B,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x134)]:return l[_0x25aea1(0xf9)](Y,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x103)]:return l[_0x25aea1(0xf9)](J,{});case u['PRESENTING']:return l[_0x25aea1(0xf9)](Z,{'coordinator':_0x3e42e9});default:return null;}}function G(_0x16eb9a){const _0xe23b41=_0x5ebda9,{coordinator:_0x53cc16}=_0x16eb9a;return l[_0xe23b41(0xc6)](l['Fragment'],{'children':[l[_0xe23b41(0xf9)](_0xe23b41(0x160),{'className':_0xe23b41(0x174),'children':_0xe23b41(0x12f)}),l[_0xe23b41(0xf9)](f[_0xe23b41(0x18f)],{'onClick':()=>_0x53cc16['tryStartPresenting'](),'children':'Start'})]});}function B(_0x1c3645){const _0x53761a=_0x5ebda9,{coordinator:_0xd0af3b}=_0x1c3645;return l['jsxs'](l[_0x53761a(0x159)],{'children':[l['jsx'](_0x53761a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x53761a(0x170)}),l['jsx'](f['Button'],{'onClick':()=>_0xd0af3b['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x373a4c){const _0x122be1=_0x5ebda9,{coordinator:_0x365efa}=_0x373a4c;return l[_0x122be1(0xc6)](l[_0x122be1(0x159)],{'children':[l[_0x122be1(0xf9)](_0x122be1(0x160),{'className':_0x122be1(0x174),'children':_0x122be1(0x161)}),l['jsx'](f[_0x122be1(0x18f)],{'variant':_0x122be1(0xd8),'onClick':()=>_0x365efa[_0x122be1(0xca)](),'children':_0x122be1(0xe8)})]});}function Z(_0x4159ae){const _0x1b7d89=_0x5ebda9,{coordinator:_0x5d7c87}=_0x4159ae;return l[_0x1b7d89(0xc6)](l[_0x1b7d89(0x159)],{'children':[l[_0x1b7d89(0xf9)](_0x1b7d89(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1b7d89(0xf9)](f[_0x1b7d89(0x18f)],{'variant':'default','onClick':()=>_0x5d7c87['stopPresenting'](),'children':_0x1b7d89(0x135)})]});}function J(){const _0x4e267b=_0x5ebda9;return l[_0x4e267b(0xf9)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5ebda9(0x169)],z=(_0x55a8c0,_0x42104f,_0x239243,_0x393cd1)=>{const _0x349e1d=_0x5ebda9;for(var _0x4cf846=_0x393cd1>0x1?void 0x0:_0x393cd1?K(_0x42104f,_0x239243):_0x42104f,_0x39d3e7=_0x55a8c0[_0x349e1d(0x196)]-0x1,_0x32caaa;_0x39d3e7>=0x0;_0x39d3e7--)(_0x32caaa=_0x55a8c0[_0x39d3e7])&&(_0x4cf846=_0x32caaa(_0x4cf846)||_0x4cf846);return _0x4cf846;},L=(_0x11bb94,_0x385b59)=>(_0x4178ae,_0x1896ae)=>_0x385b59(_0x4178ae,_0x1896ae,_0x11bb94);exports[_0x5ebda9(0xce)]=class extends o['Disposable']{constructor(_0x5c48c6,_0x49cad2){const _0x14e9ca=_0x5ebda9;super(),this[_0x14e9ca(0x113)]=_0x5c48c6,this[_0x14e9ca(0x14c)]=_0x49cad2,this[_0x14e9ca(0xf3)]();}['_mountLiveShare'](){const _0x1cbd30=_0x5ebda9;this[_0x1cbd30(0xda)](this[_0x1cbd30(0x14c)][_0x1cbd30(0xe9)](p[_0x1cbd30(0x130)][_0x1cbd30(0x15e)],()=>p['connectInjector']($,this[_0x1cbd30(0x113)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),L(0x1,p['IUIPartsService'])],exports[_0x5ebda9(0xce)]);const Q=_0x5ebda9(0xc5),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x599362,_0x209ec2,_0x5f01bb,_0x3a1efe)=>{for(var _0x369065=_0x3a1efe>0x1?void 0x0:_0x3a1efe?X(_0x209ec2,_0x5f01bb):_0x209ec2,_0xd2033e=_0x599362['length']-0x1,_0x27ea81;_0xd2033e>=0x0;_0xd2033e--)(_0x27ea81=_0x599362[_0xd2033e])&&(_0x369065=_0x27ea81(_0x369065)||_0x369065);return _0x369065;},te=(_0x1c60f9,_0x85863a)=>(_0x2392a6,_0x4ae57e)=>_0x85863a(_0x2392a6,_0x4ae57e,_0x1c60f9);let m=class extends o[_0x5ebda9(0x15b)]{constructor(_0x1b67fb){const _0x14493b=_0x5ebda9;super(),this['_liveShareService']=_0x1b67fb,this[_0x14493b(0xf1)]();}[_0x5ebda9(0xf1)](){const _0x51fc7a=_0x5ebda9;[D[_0x51fc7a(0x157)]['id'],D[_0x51fc7a(0x15d)]['id'],C[_0x51fc7a(0x17a)]['id']][_0x51fc7a(0xeb)](_0x109914=>{const _0x3d64ab=_0x51fc7a;this[_0x3d64ab(0xda)](this[_0x3d64ab(0xf4)][_0x3d64ab(0x11a)](_0x109914));});}};m=ee([te(0x0,o[_0x5ebda9(0xcf)](E))],m);var ie=Object[_0x5ebda9(0x100)],se=Object[_0x5ebda9(0x169)],ne=(_0x4e6736,_0x468505,_0x17937b)=>_0x468505 in _0x4e6736?ie(_0x4e6736,_0x468505,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17937b}):_0x4e6736[_0x468505]=_0x17937b,re=(_0x1a45f5,_0xa245de,_0x29d938,_0x27214a)=>{const _0x5cce3f=_0x5ebda9;for(var _0x4e16c4=_0x27214a>0x1?void 0x0:_0x27214a?se(_0xa245de,_0x29d938):_0xa245de,_0x2700f7=_0x1a45f5[_0x5cce3f(0x196)]-0x1,_0x4c2805;_0x2700f7>=0x0;_0x2700f7--)(_0x4c2805=_0x1a45f5[_0x2700f7])&&(_0x4e16c4=_0x4c2805(_0x4e16c4)||_0x4e16c4);return _0x4e16c4;},N=(_0x13542e,_0x1f61bd)=>(_0x3e1ceb,_0x4a11a8)=>_0x1f61bd(_0x3e1ceb,_0x4a11a8,_0x13542e),A=(_0x4dd5f6,_0x5d80bf,_0x12419b)=>ne(_0x4dd5f6,typeof _0x5d80bf!=_0x5ebda9(0x179)?_0x5d80bf+'':_0x5d80bf,_0x12419b);const oe=_0x5ebda9(0x17d);function _0x47d9(){const _0xe77b66=['params','subscribe','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','includes','_handleNewHost','FOLLOWING','symbol','SetWorksheetActiveOperation','univer-size-4','tag','UNIVER_LIVE_SHARE_PLUGIN','useObservable','0\x200\x2017\x2017','Subject','getMemberID','_configService','idSuffix','sheet','_handleOffline','InsertSheetMutation','useRef','useEffect','registerInitialStateReporter','event$','pluginName','getStatus','_commandService','_status$','Button','CollaborationEvent','children','_beIdle','merge','_collabSession','complete','length','DependentOn','setConfig','stopFollowing','dispose$','live-share.config','jsxs','reverse','fill','tryStartPresenting','startFollowing','then','string','getTypeOfUnitDisposed$','DesktopLiveShareController','Inject','DisposableCollection','memberID','SAME_OPERATION_SHARE_INTERVAL','operations','_sharedOperations','sessionStatus$','UniverCollaborationClientPlugin','_handleOnline','text','Module','disposeWithMe','SessionStatus','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','_handleOperation','_startLiveShareCoordinator','createElement','attrs','getTypeOfUnitAdded$','ONLINE','status$','executeCommand','LIVESHARE_OPERATION','125cJvUnr','Start\x20following','registerComponent','1em','forEach','from','delete','following','Injector','mask','_init','3yEbKHL','_mountLiveShare','_liveShareService','getConfig','path','193220qGMQDH','LiveShareController','jsx','button','_presenter','RxDisposable','toDisposable','_stopFollowing','_status','defineProperty','offline','get','OFFLINE','_commandDisposable','getInitialStates','2360vEmbMR','createInstance','_entities','use','PRESENTING','IUniverInstanceService','UNIVER_SHEET','LiveShare','current','1034VRaVnr','UniverInstanceType','asObservable','getLiveShareCoordinator','_injector','requireSession','dispose','takeUntil','getLiveShareCoordinatorSync','Plugin','init','registerSharedOperation','url(#$1','stringify','onRendered','colorChannel1','_startFollowing','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','throttleTime','replace','useState','random','_unitID','_stopPresenting','defs','_reporters','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','_fetchOperations','LiveShareIcon','LIVESHARE_TERMINATE','448169wfdIew','Present\x20this\x20document','BuiltInUIPart','141888IACMfg','onCommandExecuted','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','Stop\x20presenting','idle','clsx','entries','LiveShareService','getValue','evenodd','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','substring','getUnitId','presenting','_univerInstanceService','values','CollaborationSessionService','BehaviorSubject','NEW_CHANGESETS','next','presenter','parseProtocolChangeset','LiveShareStatus','IConfigService','_uiPartsService','pipe','3497652EKkdkH','636516wdLDMk','LIVESHARE_REQUEST_HOST','OPERATION','map','8sAHsWM','add','not-following','_handleTerminate','SetZoomRatioOperation','LiveShareCoordinator','Fragment','CommandType','Disposable','live-share-icon','SetScrollOperation','HEADER_MENU','has','div','You\x27re\x20not\x20following\x20the\x20presenter','_config','registerDependencies','type','1766142rOfkOQ','toString','Dropdown','UniverLiveSharePlugin','getOwnPropertyDescriptor','end','IDLE','touchDependencies','data','_startPresenting','find','You\x27re\x20following\x20the\x20presenter'];_0x47d9=function(){return _0xe77b66;};return _0x47d9();}exports[_0x5ebda9(0x168)]=class extends o[_0x5ebda9(0x118)]{constructor(_0xb5abe0=w,_0x3fdf6e,_0x30a4de){const _0xbecc53=_0x5ebda9;super(),this['_config']=_0xb5abe0,this['_injector']=_0x3fdf6e,this[_0xbecc53(0x182)]=_0x30a4de;const {..._0x5e7264}=o[_0xbecc53(0x193)]({},w,this['_config']);this['_configService'][_0xbecc53(0xc2)](Q,_0x5e7264);}['onStarting'](){const _0x32687f=_0x5ebda9;o[_0x32687f(0x163)](this[_0x32687f(0x113)],o[_0x32687f(0x12a)]([[E],[exports['LiveShareController']],[m],[exports[_0x32687f(0xce)]]],this[_0x32687f(0x162)]['override'])),o[_0x32687f(0x16c)](this[_0x32687f(0x113)],[[m]]);}[_0x5ebda9(0x11d)](){const _0x48e6ac=_0x5ebda9;o['touchDependencies'](this[_0x48e6ac(0x113)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x5ebda9(0x168)],'type',o[_0x5ebda9(0x110)]['UNIVER_UNKNOWN']),A(exports[_0x5ebda9(0x168)],_0x5ebda9(0x18b),oe),exports[_0x5ebda9(0x168)]=re([o[_0x5ebda9(0xc1)](b[_0x5ebda9(0xd6)]),N(0x1,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),N(0x2,o['IConfigService'])],exports[_0x5ebda9(0x168)]),exports[_0x5ebda9(0x10d)]=$,exports[_0x5ebda9(0x139)]=E,exports[_0x5ebda9(0x14a)]=u;
1
+ 'use strict';const _0x526036=_0x20e8;function _0x5e92(){const _0x23bc99=['_collabSessionService','DesktopLiveShareController','LiveShare','_startPresenting','_commandService','_configService','live-share-icon','SessionStatus','IDLE','IUniverInstanceService','LIVESHARE_TERMINATE','getTypeOfUnitAdded$','_handleOnline','substring','onStarting','string','toStringTag','DependentOn','1em','stopPresenting','_stopPresenting','dispose$','path','http://www.w3.org/2000/svg','ONLINE','130rUvoVb','Stop\x20following','get','35408dQdcWj','event$','Plugin','clsx','813556UyRszk','UniverLiveSharePlugin','data','_mountLiveShare','_collabSession','div','LIVESHARE_OPERATION','getOwnPropertyDescriptor','defs','replace','xlink:href','getValue','8810934wIJVKS','setConfig','UNIVER_UNKNOWN','length','random','pipe','_liveShareService','_handleOperation','450yITfKB','params','map','defIds','startFollowing','send','parse','useRef','merge','takeUntil','url(#$1','UNIVER_SHEET','LIVESHARE_NEW_HOST','_startFollowing','complete','throttleTime','CollaborationEvent','_unitID','symbol','Module','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','LiveShareController','end','current','registerInitialStateReporter','Button','useObservable','default','getConfig','getLiveShareCoordinator','_startLiveShareCoordinator','entries','Disposable','NOT_FOLLOWING','delete','LiveShareService','getMemberID','idSuffix','unitId','not-following','fill','toString','svg','You\x27are\x20offline.','createInstance','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandDisposable','Dropdown','PRESENTING','has','init','FOLLOWING','847hQHxKh','operations','_univerInstanceService','subscribe','_init','status$','SetScrollOperation','Start','UNIVER_LIVE_SHARE_PLUGIN','IUIPartsService','children','_entities','SetWorksheetActiveOperation','requireSession','attrs','LiveShareStatus','_handleOffline','tag','idle','SetZoomRatioOperation','includes','next','_uiPartsService','DisposableCollection','presenting','_sharedOperations','_stopFollowing','useDependency','Injector','button','_config','Inject','offline','RxDisposable','You\x27re\x20not\x20following\x20the\x20presenter','useState','following','UniverInstanceType','You\x27re\x20presenting\x20the\x20document','_reporters','add','type','Subject','CollaborationSessionService','jsxs','disposeWithMe','univerjs-icon\x20univerjs-icon-','getInitialStates','reverse','_beIdle','BehaviorSubject','onCommandExecuted','UniverCollaborationClientPlugin','_fetchOperations','currentColor','getTypeOfUnitDisposed$','HEADER_MENU','_injector','defineProperty','forwardRef','_status$','ICommandService','SAME_OPERATION_SHARE_INTERVAL','37917QIgPXz','createElement','OFFLINE','assign','sessionStatus$','colorChannel1','pluginName','presenter','_handleNewChangeSets','mask','_status','trim','asObservable','forEach','IConfigService','jsx','registerDependencies','LiveShareIcon','mutations','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','75822NkkbST','dispose','20226gzlqjf','Fragment','shouldShareOperation','executeCommand','304zTKVuK','_presenter','useEffect','LiveShareCoordinator','_handleNewHost','getUnitId','registerSharedOperation','728652GgroAY'];_0x5e92=function(){return _0x23bc99;};return _0x5e92();}(function(_0x547325,_0x43dc98){const _0xb48a0b=_0x20e8,_0x512b9f=_0x547325();while(!![]){try{const _0x1de8c0=-parseInt(_0xb48a0b(0x216))/0x1+-parseInt(_0xb48a0b(0x1f5))/0x2+-parseInt(_0xb48a0b(0x1ea))/0x3*(-parseInt(_0xb48a0b(0x1ee))/0x4)+parseInt(_0xb48a0b(0x20f))/0x5*(-parseInt(_0xb48a0b(0x1e8))/0x6)+-parseInt(_0xb48a0b(0x194))/0x7*(-parseInt(_0xb48a0b(0x212))/0x8)+parseInt(_0xb48a0b(0x1d3))/0x9*(parseInt(_0xb48a0b(0x22a))/0xa)+parseInt(_0xb48a0b(0x222))/0xb;if(_0x1de8c0===_0x43dc98)break;else _0x512b9f['push'](_0x512b9f['shift']());}catch(_0x17dd68){_0x512b9f['push'](_0x512b9f['shift']());}}}(_0x5e92,0x81e69));var T=Object['defineProperty'],U=(_0x549e49,_0x5b6245,_0x19334b)=>_0x5b6245 in _0x549e49?T(_0x549e49,_0x5b6245,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19334b}):_0x549e49[_0x5b6245]=_0x19334b,_=(_0x6169f9,_0x5351c7,_0x2392b7)=>U(_0x6169f9,typeof _0x5351c7!=_0x526036(0x171)?_0x5351c7+'':_0x5351c7,_0x2392b7);Object[_0x526036(0x1ce)](exports,Symbol[_0x526036(0x206)],{'value':_0x526036(0x172)});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:_0x454848,..._0x367e0e}){const _0x1ebc69=_0x526036,{icon:_0xa058bf,id:_0x5a1179,className:_0x1f730f,extend:_0x2edaaf,..._0x3cfdf6}=_0x367e0e,_0x4e2c81=(_0x1ebc69(0x1c2)+_0x5a1179+'\x20'+(_0x1f730f||''))[_0x1ebc69(0x1de)](),_0x537bd6=v[_0x1ebc69(0x231)]('_'+H());return j(_0xa058bf,''+_0x5a1179,{'defIds':_0xa058bf[_0x1ebc69(0x22d)],'idSuffix':_0x537bd6[_0x1ebc69(0x176)]},{'ref':_0x454848,'className':_0x4e2c81,..._0x3cfdf6},_0x2edaaf);}function j(_0x40000d,_0x2c480e,_0x2547e9,_0x342daa,_0x3880ef){const _0x5c6777=_0x526036;return v[_0x5c6777(0x1d4)](_0x40000d[_0x5c6777(0x1a5)],{'key':_0x2c480e,...y(_0x40000d,_0x2547e9,_0x3880ef),..._0x342daa},(F(_0x40000d,_0x2547e9)[_0x5c6777(0x19e)]||[])[_0x5c6777(0x22c)]((_0x125668,_0x5924db)=>j(_0x125668,_0x2c480e+'-'+_0x40000d[_0x5c6777(0x1a5)]+'-'+_0x5924db,_0x2547e9,void 0x0,_0x3880ef)));}function y(_0x20de8b,_0xef55d3,_0x59e643){const _0x316434=_0x526036,_0x60ab8a={..._0x20de8b['attrs']};_0x59e643!=null&&_0x59e643[_0x316434(0x1d8)]&&_0x60ab8a[_0x316434(0x187)]===_0x316434(0x1d8)&&(_0x60ab8a[_0x316434(0x187)]=_0x59e643['colorChannel1']),_0x20de8b[_0x316434(0x1a5)]===_0x316434(0x1dc)&&_0x60ab8a['id']&&(_0x60ab8a['id']=_0x60ab8a['id']+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)['forEach'](([_0x4c4e85,_0x3be627])=>{const _0x460600=_0x316434;_0x4c4e85===_0x460600(0x1dc)&&typeof _0x3be627=='string'&&(_0x60ab8a[_0x4c4e85]=_0x3be627['replace'](/url\(#(.*)\)/,_0x460600(0x169)+_0xef55d3[_0x460600(0x184)]+')'));});const {defIds:_0x3591d8}=_0xef55d3;return!_0x3591d8||_0x3591d8[_0x316434(0x225)]===0x0||(_0x20de8b[_0x316434(0x1a5)]==='use'&&_0x60ab8a['xlink:href']&&(_0x60ab8a[_0x316434(0x220)]=_0x60ab8a[_0x316434(0x220)]+_0xef55d3[_0x316434(0x184)]),Object[_0x316434(0x17e)](_0x60ab8a)[_0x316434(0x1e0)](([_0x4be060,_0x32f5cc])=>{const _0x43047b=_0x316434;typeof _0x32f5cc==_0x43047b(0x205)&&(_0x60ab8a[_0x4be060]=_0x32f5cc[_0x43047b(0x21f)](/url\(#(.*)\)/,_0x43047b(0x169)+_0xef55d3[_0x43047b(0x184)]+')'));})),_0x60ab8a;}function F(_0x4e8236,_0x23b7b2){const _0x1bd695=_0x526036;var _0x4d2cf0;const {defIds:_0xf272e7}=_0x23b7b2;return!_0xf272e7||_0xf272e7[_0x1bd695(0x225)]===0x0?_0x4e8236:_0x4e8236[_0x1bd695(0x1a5)]===_0x1bd695(0x21e)&&((_0x4d2cf0=_0x4e8236['children'])!=null&&_0x4d2cf0[_0x1bd695(0x225)])?{..._0x4e8236,'children':_0x4e8236['children']['map'](_0x3c63ce=>typeof _0x3c63ce[_0x1bd695(0x1a2)]['id']=='string'&&_0xf272e7&&_0xf272e7[_0x1bd695(0x1a8)](_0x3c63ce[_0x1bd695(0x1a2)]['id'])?{..._0x3c63ce,'attrs':{..._0x3c63ce[_0x1bd695(0x1a2)],'id':_0x3c63ce[_0x1bd695(0x1a2)]['id']+_0x23b7b2[_0x1bd695(0x184)]}}:_0x3c63ce)}:_0x4e8236;}function H(){const _0x188a7a=_0x526036;return Math[_0x188a7a(0x226)]()[_0x188a7a(0x188)](0x24)[_0x188a7a(0x203)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x526036(0x189),'attrs':{'xmlns':_0x526036(0x20d),'fill':_0x526036(0x18c),'viewBox':_0x526036(0x1e6),'width':'1em','height':_0x526036(0x208)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x526036(0x173)}},{'tag':_0x526036(0x20c),'attrs':{'fill':_0x526036(0x1ca),'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':'evenodd'}}]},R=v[_0x526036(0x1cf)](function(_0x571e3c,_0x22fae8){const _0x193941=_0x526036;return v[_0x193941(0x1d4)](x,Object[_0x193941(0x1d6)]({},_0x571e3c,{'id':_0x193941(0x1fc),'ref':_0x22fae8,'icon':V}));});R['displayName']=_0x526036(0x1e4);class E extends o[_0x526036(0x17f)]{constructor(){const _0x3854f9=_0x526036;super(...arguments),_(this,_0x3854f9(0x1ad),new Set()),_(this,_0x3854f9(0x1bb),new Set());}['registerSharedOperation'](_0x3b0c98){const _0x32cf77=_0x526036;return this[_0x32cf77(0x1ad)][_0x32cf77(0x1bc)](_0x3b0c98),o['toDisposable'](()=>this[_0x32cf77(0x1ad)][_0x32cf77(0x181)](_0x3b0c98));}[_0x526036(0x177)](_0x17c0bd){const _0x576fd1=_0x526036;return this[_0x576fd1(0x1bb)][_0x576fd1(0x1bc)](_0x17c0bd),o['toDisposable'](()=>this[_0x576fd1(0x1bb)][_0x576fd1(0x181)](_0x17c0bd));}[_0x526036(0x1ec)](_0x7055b0){const _0x4f1a58=_0x526036;return this[_0x4f1a58(0x1ad)][_0x4f1a58(0x191)](_0x7055b0);}[_0x526036(0x1c3)](_0x21adb1){const _0x475a23=_0x526036;return Array['from'](this['_reporters'])[_0x475a23(0x22c)](_0x3a68b6=>_0x3a68b6(_0x21adb1));}}var M=Object[_0x526036(0x21d)],P=(_0x489f7d,_0x4080a5,_0x3e602e,_0x55d75d)=>{const _0x3135da=_0x526036;for(var _0x4a4f94=_0x55d75d>0x1?void 0x0:_0x55d75d?M(_0x4080a5,_0x3e602e):_0x4080a5,_0x5eca13=_0x489f7d[_0x3135da(0x225)]-0x1,_0x581c38;_0x5eca13>=0x0;_0x5eca13--)(_0x581c38=_0x489f7d[_0x5eca13])&&(_0x4a4f94=_0x581c38(_0x4a4f94)||_0x4a4f94);return _0x4a4f94;},S=(_0x3f792e,_0x2aad04)=>(_0x2e064b,_0x5ee46f)=>_0x2aad04(_0x2e064b,_0x5ee46f,_0x3f792e);exports['LiveShareController']=class extends o[_0x526036(0x1b5)]{constructor(_0x9c0a5d,_0x5f2ece,_0x403e26){const _0x3d5b28=_0x526036;super(),_(this,_0x3d5b28(0x19f),new Map()),(this[_0x3d5b28(0x196)]=_0x9c0a5d,this['_injector']=_0x5f2ece,this[_0x3d5b28(0x1f6)]=_0x403e26,this[_0x3d5b28(0x198)]());}async[_0x526036(0x17c)](_0x5d0177){const _0x1e9490=_0x526036;return this[_0x1e9490(0x19f)][_0x1e9490(0x191)](_0x5d0177)||await this[_0x1e9490(0x17d)](_0x5d0177),this[_0x1e9490(0x19f)][_0x1e9490(0x211)](_0x5d0177);}['getLiveShareCoordinatorSync'](_0x2a1219){const _0x109927=_0x526036;var _0x503436;return(_0x503436=this[_0x109927(0x19f)][_0x109927(0x211)](_0x2a1219))!=null?_0x503436:null;}[_0x526036(0x198)](){const _0x409dcb=_0x526036;this[_0x409dcb(0x196)][_0x409dcb(0x201)](o[_0x409dcb(0x1b9)][_0x409dcb(0x16a)])['pipe'](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))['subscribe'](async _0x8d7685=>{const _0x1e1ccb=_0x409dcb,_0x26d5cb=_0x8d7685[_0x1e1ccb(0x1f3)]();this[_0x1e1ccb(0x19f)][_0x1e1ccb(0x191)](_0x26d5cb)||this['_startLiveShareCoordinator'](_0x26d5cb);}),this['_univerInstanceService'][_0x409dcb(0x1cb)](o[_0x409dcb(0x1b9)]['UNIVER_SHEET'])[_0x409dcb(0x227)](I[_0x409dcb(0x233)](this[_0x409dcb(0x20b)]))[_0x409dcb(0x197)](_0x1a830c=>{const _0x5327d7=_0x409dcb,_0x50159d=_0x1a830c[_0x5327d7(0x1f3)](),_0x488c48=this[_0x5327d7(0x19f)][_0x5327d7(0x211)](_0x50159d);_0x488c48==null||_0x488c48[_0x5327d7(0x1e9)]();});}async[_0x526036(0x17d)](_0x38a62e){const _0x5c5b16=_0x526036,_0x4a00fc=await this[_0x5c5b16(0x1f6)][_0x5c5b16(0x1a1)](_0x38a62e),_0x39fec0=this[_0x5c5b16(0x1cd)][_0x5c5b16(0x18b)](exports['LiveShareCoordinator'],_0x38a62e,_0x4a00fc);return _0x39fec0['init'](),this[_0x5c5b16(0x19f)]['set'](_0x38a62e,_0x39fec0),_0x39fec0;}},exports[_0x526036(0x174)]=P([S(0x0,o[_0x526036(0x1ff)]),S(0x1,o[_0x526036(0x1b3)](o['Injector'])),S(0x2,o[_0x526036(0x1b3)](b[_0x526036(0x1bf)]))],exports['LiveShareController']);var u=(_0x3a5822=>(_0x3a5822[_0x526036(0x1d5)]=_0x526036(0x1b4),_0x3a5822[_0x526036(0x1fe)]=_0x526036(0x1a6),_0x3a5822[_0x526036(0x193)]=_0x526036(0x1b8),_0x3a5822[_0x526036(0x180)]=_0x526036(0x186),_0x3a5822[_0x526036(0x190)]=_0x526036(0x1ac),_0x3a5822))(u||{});const k=_0x526036(0x1d2),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x526036(0x1b5)]{constructor(_0x81d7ae,_0x2fdb29,_0x5784bb,_0x53dcb0,_0x58c700){const _0x59b344=_0x526036;super(),_(this,'_status$',new O[(_0x59b344(0x1c6))](_0x59b344(0x1a6))),_(this,'status$',this[_0x59b344(0x1d0)][_0x59b344(0x1df)]()),_(this,_0x59b344(0x198),!0x1),_(this,_0x59b344(0x18e),null),_(this,_0x59b344(0x1ef),null),(this[_0x59b344(0x170)]=_0x81d7ae,this[_0x59b344(0x21a)]=_0x2fdb29,this[_0x59b344(0x1fb)]=_0x5784bb,this[_0x59b344(0x228)]=_0x53dcb0,this[_0x59b344(0x1fa)]=_0x58c700);}get['_status'](){const _0x2617cc=_0x526036;return this['_status$'][_0x2617cc(0x221)]();}[_0x526036(0x1e9)](){const _0x1a8010=_0x526036;var _0x5ae805;(_0x5ae805=this[_0x1a8010(0x18e)])==null||_0x5ae805[_0x1a8010(0x1e9)](),this[_0x1a8010(0x1d0)][_0x1a8010(0x1a9)](_0x1a8010(0x1a6)),this[_0x1a8010(0x1d0)][_0x1a8010(0x16d)]();}['getStatus'](){const _0x2b2174=_0x526036;return this[_0x2b2174(0x1dd)];}[_0x526036(0x192)](){const _0x2b5129=_0x526036;this[_0x2b5129(0x198)]||(this[_0x2b5129(0x198)]=!0x0,this[_0x2b5129(0x21a)][_0x2b5129(0x1d7)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x17bdf5=>{const _0x58c999=_0x2b5129;switch(_0x17bdf5){case b[_0x58c999(0x1fd)][_0x58c999(0x1d5)]:this[_0x58c999(0x1a4)]();break;case b[_0x58c999(0x1fd)][_0x58c999(0x20e)]:this['_handleOnline']();break;}}),this[_0x2b5129(0x21a)][_0x2b5129(0x213)][_0x2b5129(0x227)](I[_0x2b5129(0x233)](this[_0x2b5129(0x20b)]))['subscribe'](_0x225faf=>{const _0x37987e=_0x2b5129,{eventID:_0x539828}=_0x225faf;switch(_0x539828){case d['CollaborationEvent'][_0x37987e(0x16b)]:this['_handleNewHost'](_0x225faf);break;case d[_0x37987e(0x16f)][_0x37987e(0x21c)]:this['_handleOperation'](_0x225faf);break;case d['CollaborationEvent'][_0x37987e(0x200)]:this['_handleTerminate']();break;case d[_0x37987e(0x16f)]['NEW_CHANGESETS']:this[_0x37987e(0x1db)](_0x225faf);break;}}));}['tryStartPresenting'](){const _0x5b5fc3=_0x526036;this[_0x5b5fc3(0x21a)][_0x5b5fc3(0x22f)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5b5fc3(0x170)],'userID':this['_collabSession'][_0x5b5fc3(0x183)]()}},this[_0x5b5fc3(0x170)]);}[_0x526036(0x209)](){const _0x1fa2a9=_0x526036;this['_status']===_0x1fa2a9(0x1ac)&&(this[_0x1fa2a9(0x1d0)][_0x1fa2a9(0x1a9)](_0x1fa2a9(0x1a6)),this[_0x1fa2a9(0x21a)][_0x1fa2a9(0x22f)]({'eventID':d['CollaborationEvent'][_0x1fa2a9(0x200)],'data':{'unitID':this['_unitID']}},this[_0x1fa2a9(0x170)]));}['startFollowing'](){const _0x60113e=_0x526036;this[_0x60113e(0x1dd)]===_0x60113e(0x186)&&(this[_0x60113e(0x1d0)][_0x60113e(0x1a9)](_0x60113e(0x1b8)),this[_0x60113e(0x16c)]());}['stopFollowing'](){const _0x306563=_0x526036;this[_0x306563(0x1dd)]===_0x306563(0x1b8)&&this[_0x306563(0x1ae)]();}[_0x526036(0x1f2)](_0x7298f4){const _0x4e6c6b=_0x526036,{presenter:_0x26b368}=_0x7298f4[_0x4e6c6b(0x218)],_0x163652=this[_0x4e6c6b(0x21a)][_0x4e6c6b(0x183)]();this[_0x4e6c6b(0x1ef)]=_0x26b368,_0x26b368===_0x163652?(this[_0x4e6c6b(0x1ae)](),this[_0x4e6c6b(0x1f9)]()):this[_0x4e6c6b(0x1dd)]!=='not-following'&&(this[_0x4e6c6b(0x20a)](),this[_0x4e6c6b(0x16c)]());}[_0x526036(0x1c9)](){const _0x128a78=_0x526036,_0x5e13c8={'eventID':d[_0x128a78(0x16f)][_0x128a78(0x1e7)]};this[_0x128a78(0x21a)][_0x128a78(0x22f)](_0x5e13c8,this[_0x128a78(0x170)]);}['_handleTerminate'](){const _0x2a57fd=_0x526036;this[_0x2a57fd(0x1ef)]=null,this[_0x2a57fd(0x1dd)]!==_0x2a57fd(0x1ac)&&this[_0x2a57fd(0x1c5)]();}[_0x526036(0x1db)](_0x4f7597){const _0x56ffab=_0x526036;if(this['_status']===_0x56ffab(0x1b8)&&this[_0x56ffab(0x1ef)]===_0x4f7597[_0x56ffab(0x218)]['memberID']){const _0x200c75=d['parseProtocolChangeset'](_0x4f7597['data'])[_0x56ffab(0x1e5)][_0x56ffab(0x1c4)]()['find'](_0x4b9c8f=>_0x4b9c8f['id']===C['InsertSheetMutation']['id']);if(_0x200c75){const _0x33d2da=_0x200c75['params'][_0x56ffab(0x185)],_0x2162d5=_0x200c75[_0x56ffab(0x22b)]['sheet']['id'];setTimeout(()=>{const _0x2c91bb=_0x56ffab;this[_0x2c91bb(0x1fa)][_0x2c91bb(0x1ed)](C[_0x2c91bb(0x1a0)]['id'],{'unitId':_0x33d2da,'subUnitId':_0x2162d5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x34788d=_0x526036;this[_0x34788d(0x1d0)][_0x34788d(0x1a9)](_0x34788d(0x1ac));const _0x2fc768=new Map(),_0xbb1713=this[_0x34788d(0x18e)]=new o[(_0x34788d(0x1ab))]();_0xbb1713[_0x34788d(0x1bc)](o['toDisposable'](()=>{const _0x31c84e=_0x34788d;_0x2fc768[_0x31c84e(0x1e0)](_0x446e9c=>_0x446e9c['complete']()),_0x2fc768['clear']();})),_0xbb1713[_0x34788d(0x1bc)](this[_0x34788d(0x1fa)][_0x34788d(0x1c7)](_0x46ecb5=>{const _0x4ada15=_0x34788d;var _0x1950d5;if(_0x46ecb5[_0x4ada15(0x1bd)]!==o['CommandType']['OPERATION']||!this[_0x4ada15(0x228)][_0x4ada15(0x1ec)](_0x46ecb5['id']))return;const {id:_0x3322d8}=_0x46ecb5;let _0x1a832a;_0x2fc768[_0x4ada15(0x191)](_0x3322d8)?_0x1a832a=_0x2fc768[_0x4ada15(0x211)](_0x3322d8):(_0x1a832a=new O[(_0x4ada15(0x1be))](),_0x2fc768['set'](_0x3322d8,_0x1a832a),_0x1a832a[_0x4ada15(0x227)](I[_0x4ada15(0x16e)]((_0x1950d5=this[_0x4ada15(0x1fb)][_0x4ada15(0x17b)](k))!=null?_0x1950d5:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ada15(0x197)](_0x43a239=>{const _0x20feb1=_0x4ada15;this[_0x20feb1(0x21a)]['send']({'eventID':d['CollaborationEvent'][_0x20feb1(0x21c)],'data':{'unitID':this[_0x20feb1(0x170)],'operations':{[_0x43a239['id']]:{'id':_0x43a239['id'],'params':JSON['stringify'](_0x43a239[_0x20feb1(0x22b)])}}}},this[_0x20feb1(0x170)]);})),_0x1a832a['next'](_0x46ecb5);})),this[_0x34788d(0x228)][_0x34788d(0x1c3)](this[_0x34788d(0x170)])['forEach'](_0x2fa0c5=>this[_0x34788d(0x21a)][_0x34788d(0x22f)]({'eventID':d[_0x34788d(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2fa0c5['id']]:{'id':_0x2fa0c5['id'],'params':JSON['stringify'](_0x2fa0c5[_0x34788d(0x22b)])}}}},this[_0x34788d(0x170)]));}[_0x526036(0x20a)](){const _0x5509bb=_0x526036;var _0x5dcfc6;this[_0x5509bb(0x1d0)]['next'](_0x5509bb(0x1a6)),(_0x5dcfc6=this[_0x5509bb(0x18e)])==null||_0x5dcfc6['dispose'](),this['_commandDisposable']=null;}[_0x526036(0x16c)](){const _0x2f2a59=_0x526036;var _0x226313;(_0x226313=this[_0x2f2a59(0x18e)])==null||_0x226313[_0x2f2a59(0x1e9)](),this['_status$'][_0x2f2a59(0x1a9)](_0x2f2a59(0x1b8));}[_0x526036(0x1c5)](){const _0x260455=_0x526036;var _0x463ea4;this[_0x260455(0x1d0)][_0x260455(0x1a9)](_0x260455(0x1a6)),(_0x463ea4=this[_0x260455(0x18e)])==null||_0x463ea4[_0x260455(0x1e9)](),this['_commandDisposable']=null;}[_0x526036(0x1ae)](){const _0x235ac6=_0x526036;var _0x27c8b0;this[_0x235ac6(0x1d0)][_0x235ac6(0x1a9)](_0x235ac6(0x186)),(_0x27c8b0=this['_commandDisposable'])==null||_0x27c8b0[_0x235ac6(0x1e9)]();}[_0x526036(0x229)](_0x200f82){const _0x1c9893=_0x526036;if([_0x1c9893(0x1ac),_0x1c9893(0x186),'offline'][_0x1c9893(0x1a8)](this[_0x1c9893(0x1dd)])||!_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]||_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x1da)]===this[_0x1c9893(0x21a)][_0x1c9893(0x183)]())return;this[_0x1c9893(0x1dd)]===_0x1c9893(0x1a6)&&this[_0x1c9893(0x16c)]();const _0x63c23a=_0x200f82[_0x1c9893(0x218)][_0x1c9893(0x195)];Object['values'](_0x63c23a)['forEach'](_0x459838=>{const _0x2fdecc=_0x1c9893;this[_0x2fdecc(0x1fa)][_0x2fdecc(0x1ed)](_0x459838['id'],_0x459838[_0x2fdecc(0x22b)]?JSON[_0x2fdecc(0x230)](_0x459838[_0x2fdecc(0x22b)]):null,{'fromCollab':!0x0});});}[_0x526036(0x1a4)](){const _0x10c2c9=_0x526036;var _0x5a99c3;this[_0x10c2c9(0x1d0)][_0x10c2c9(0x1a9)](_0x10c2c9(0x1b4)),(_0x5a99c3=this[_0x10c2c9(0x18e)])==null||_0x5a99c3[_0x10c2c9(0x1e9)]();}[_0x526036(0x202)](){const _0xc2bbf=_0x526036;this[_0xc2bbf(0x1d0)]['next']('idle'),this['_fetchOperations']();}},exports[_0x526036(0x1f1)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x526036(0x1d1)])],exports[_0x526036(0x1f1)]);function $(){const _0x3e982b=_0x526036,_0x31ba79=p['useDependency'](exports[_0x3e982b(0x174)]),_0x16d944=p[_0x3e982b(0x1af)](o[_0x3e982b(0x1ff)]),_0x75132c=p[_0x3e982b(0x179)](()=>_0x16d944['getCurrentTypeOfUnit$'](o[_0x3e982b(0x1b9)][_0x3e982b(0x16a)]),void 0x0,!0x1,[]),[_0x41405a,_0x1211a6]=v[_0x3e982b(0x1b7)](null),[_0x172265,_0x5e6b18]=v[_0x3e982b(0x1b7)](u[_0x3e982b(0x1fe)]),_0x19a7fe=v[_0x3e982b(0x231)](null);return v[_0x3e982b(0x1f0)](()=>(_0x75132c&&_0x31ba79[_0x3e982b(0x17c)](_0x75132c[_0x3e982b(0x1f3)]())['then'](_0x121136=>{const _0x46ada4=_0x3e982b;_0x1211a6(_0x121136),_0x19a7fe[_0x46ada4(0x176)]=_0x121136[_0x46ada4(0x199)][_0x46ada4(0x197)](_0x561767=>{_0x5e6b18(_0x561767);});}),()=>{const _0x31ac38=_0x3e982b;var _0x6bc10f;(_0x6bc10f=_0x19a7fe['current'])==null||_0x6bc10f['unsubscribe'](),_0x19a7fe[_0x31ac38(0x176)]=null;}),[_0x75132c,_0x31ba79]),_0x41405a?l[_0x3e982b(0x1e2)](f[_0x3e982b(0x18f)],{'align':_0x3e982b(0x175),'disabled':_0x172265===u[_0x3e982b(0x1d5)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x3e982b(0x1e2)](W,{'status':_0x172265,'coordinator':_0x41405a}),'children':l[_0x3e982b(0x1e2)]('button',{'className':f[_0x3e982b(0x215)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x172265===u[_0x3e982b(0x1d5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x172265!==u['OFFLINE']}),'type':_0x3e982b(0x1b1),'children':l[_0x3e982b(0x1e2)](R,{'className':'univer-size-4'})})}):null;}function W(_0x59c69a){const _0x18f662=_0x526036,{status:_0x490cc4,coordinator:_0x42f92b}=_0x59c69a;switch(_0x490cc4){case u[_0x18f662(0x1fe)]:return l[_0x18f662(0x1e2)](G,{'coordinator':_0x42f92b});case u[_0x18f662(0x193)]:return l[_0x18f662(0x1e2)](B,{'coordinator':_0x42f92b});case u[_0x18f662(0x180)]:return l[_0x18f662(0x1e2)](Y,{'coordinator':_0x42f92b});case u[_0x18f662(0x1d5)]:return l['jsx'](J,{});case u[_0x18f662(0x190)]:return l[_0x18f662(0x1e2)](Z,{'coordinator':_0x42f92b});default:return null;}}function G(_0x745c58){const _0x2f083d=_0x526036,{coordinator:_0x1ada63}=_0x745c58;return l[_0x2f083d(0x1c0)](l['Fragment'],{'children':[l['jsx'](_0x2f083d(0x21b),{'className':_0x2f083d(0x18d),'children':'Present\x20this\x20document'}),l[_0x2f083d(0x1e2)](f[_0x2f083d(0x178)],{'onClick':()=>_0x1ada63['tryStartPresenting'](),'children':_0x2f083d(0x19b)})]});}function B(_0x3abca2){const _0x1d1c6a=_0x526036,{coordinator:_0x1be69f}=_0x3abca2;return l[_0x1d1c6a(0x1c0)](l[_0x1d1c6a(0x1eb)],{'children':[l[_0x1d1c6a(0x1e2)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1d1c6a(0x1e2)](f[_0x1d1c6a(0x178)],{'onClick':()=>_0x1be69f['stopFollowing'](),'children':_0x1d1c6a(0x210)})]});}function Y(_0x1e8f94){const _0x4b0f10=_0x526036,{coordinator:_0x20b3d0}=_0x1e8f94;return l[_0x4b0f10(0x1c0)](l[_0x4b0f10(0x1eb)],{'children':[l[_0x4b0f10(0x1e2)](_0x4b0f10(0x21b),{'className':_0x4b0f10(0x18d),'children':_0x4b0f10(0x1b6)}),l['jsx'](f['Button'],{'variant':'text','onClick':()=>_0x20b3d0[_0x4b0f10(0x22e)](),'children':'Start\x20following'})]});}function Z(_0x149f5f){const _0x1fa039=_0x526036,{coordinator:_0x3ec2df}=_0x149f5f;return l[_0x1fa039(0x1c0)](l[_0x1fa039(0x1eb)],{'children':[l[_0x1fa039(0x1e2)](_0x1fa039(0x21b),{'className':_0x1fa039(0x18d),'children':_0x1fa039(0x1ba)}),l[_0x1fa039(0x1e2)](f[_0x1fa039(0x178)],{'variant':_0x1fa039(0x17a),'onClick':()=>_0x3ec2df[_0x1fa039(0x209)](),'children':'Stop\x20presenting'})]});}function J(){const _0x273486=_0x526036;return l[_0x273486(0x1e2)](l[_0x273486(0x1eb)],{'children':_0x273486(0x18a)});}var K=Object[_0x526036(0x21d)],z=(_0xaa2a6c,_0x5112cc,_0x14cc21,_0xebfeb)=>{const _0x3d8e9d=_0x526036;for(var _0x3200e1=_0xebfeb>0x1?void 0x0:_0xebfeb?K(_0x5112cc,_0x14cc21):_0x5112cc,_0x517c01=_0xaa2a6c[_0x3d8e9d(0x225)]-0x1,_0x3e9a46;_0x517c01>=0x0;_0x517c01--)(_0x3e9a46=_0xaa2a6c[_0x517c01])&&(_0x3200e1=_0x3e9a46(_0x3200e1)||_0x3200e1);return _0x3200e1;},L=(_0x19969d,_0x5b8c5d)=>(_0x4575f7,_0x234b24)=>_0x5b8c5d(_0x4575f7,_0x234b24,_0x19969d);exports[_0x526036(0x1f7)]=class extends o['Disposable']{constructor(_0x1c3186,_0x150fe3){const _0xbf2000=_0x526036;super(),this[_0xbf2000(0x1cd)]=_0x1c3186,this[_0xbf2000(0x1aa)]=_0x150fe3,this[_0xbf2000(0x219)]();}[_0x526036(0x219)](){const _0x148134=_0x526036;this[_0x148134(0x1c1)](this[_0x148134(0x1aa)]['registerComponent'](p['BuiltInUIPart'][_0x148134(0x1cc)],()=>p['connectInjector']($,this[_0x148134(0x1cd)])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x526036(0x1b0)])),L(0x1,p[_0x526036(0x19d)])],exports['DesktopLiveShareController']);function _0x20e8(_0x199ea9,_0x3a160f){_0x199ea9=_0x199ea9-0x169;const _0x5e9278=_0x5e92();let _0x20e812=_0x5e9278[_0x199ea9];return _0x20e812;}const Q='live-share.config',w={};var X=Object[_0x526036(0x21d)],ee=(_0x5cc606,_0x56a4cc,_0x21cd94,_0x33b5ce)=>{const _0x125832=_0x526036;for(var _0x32c399=_0x33b5ce>0x1?void 0x0:_0x33b5ce?X(_0x56a4cc,_0x21cd94):_0x56a4cc,_0x1d12dc=_0x5cc606[_0x125832(0x225)]-0x1,_0xf1c481;_0x1d12dc>=0x0;_0x1d12dc--)(_0xf1c481=_0x5cc606[_0x1d12dc])&&(_0x32c399=_0xf1c481(_0x32c399)||_0x32c399);return _0x32c399;},te=(_0x4b7e59,_0x23e4b3)=>(_0x3be4b3,_0x41187d)=>_0x23e4b3(_0x3be4b3,_0x41187d,_0x4b7e59);let m=class extends o[_0x526036(0x17f)]{constructor(_0x4aa2b0){const _0x82d8b3=_0x526036;super(),this[_0x82d8b3(0x228)]=_0x4aa2b0,this[_0x82d8b3(0x198)]();}['_init'](){const _0x3dc30b=_0x526036;[D[_0x3dc30b(0x1a7)]['id'],D[_0x3dc30b(0x19a)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x119226=>{const _0x5802b5=_0x3dc30b;this['disposeWithMe'](this[_0x5802b5(0x228)][_0x5802b5(0x1f4)](_0x119226));});}};m=ee([te(0x0,o[_0x526036(0x1b3)](E))],m);var ie=Object['defineProperty'],se=Object[_0x526036(0x21d)],ne=(_0xbbfe96,_0x5d03c4,_0x130789)=>_0x5d03c4 in _0xbbfe96?ie(_0xbbfe96,_0x5d03c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x130789}):_0xbbfe96[_0x5d03c4]=_0x130789,re=(_0x49ee8d,_0x419a63,_0x44f550,_0x2903e4)=>{const _0x1d6771=_0x526036;for(var _0x38bff9=_0x2903e4>0x1?void 0x0:_0x2903e4?se(_0x419a63,_0x44f550):_0x419a63,_0x41f827=_0x49ee8d[_0x1d6771(0x225)]-0x1,_0x6f54af;_0x41f827>=0x0;_0x41f827--)(_0x6f54af=_0x49ee8d[_0x41f827])&&(_0x38bff9=_0x6f54af(_0x38bff9)||_0x38bff9);return _0x38bff9;},N=(_0x573718,_0x4eba6e)=>(_0x2603df,_0x621b2d)=>_0x4eba6e(_0x2603df,_0x621b2d,_0x573718),A=(_0x540245,_0x32d6c6,_0x1d052f)=>ne(_0x540245,typeof _0x32d6c6!=_0x526036(0x171)?_0x32d6c6+'':_0x32d6c6,_0x1d052f);const oe=_0x526036(0x19c);exports['UniverLiveSharePlugin']=class extends o[_0x526036(0x214)]{constructor(_0x910f4b=w,_0x3f4c77,_0x4d8c26){const _0x4638cd=_0x526036;super(),this[_0x4638cd(0x1b2)]=_0x910f4b,this[_0x4638cd(0x1cd)]=_0x3f4c77,this['_configService']=_0x4d8c26;const {..._0x158768}=o[_0x4638cd(0x232)]({},w,this[_0x4638cd(0x1b2)]);this[_0x4638cd(0x1fb)][_0x4638cd(0x223)](Q,_0x158768);}[_0x526036(0x204)](){const _0x6ba27=_0x526036;o[_0x6ba27(0x1e3)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x6ba27(0x174)]],[m],[exports[_0x6ba27(0x1f7)]]],this[_0x6ba27(0x1b2)]['override'])),o['touchDependencies'](this[_0x6ba27(0x1cd)],[[m]]);}['onRendered'](){const _0xac9830=_0x526036;o['touchDependencies'](this[_0xac9830(0x1cd)],[[exports[_0xac9830(0x1f7)]]]);}},A(exports[_0x526036(0x217)],'type',o['UniverInstanceType'][_0x526036(0x224)]),A(exports[_0x526036(0x217)],_0x526036(0x1d9),oe),exports[_0x526036(0x217)]=re([o[_0x526036(0x207)](b[_0x526036(0x1c8)]),N(0x1,o['Inject'](o[_0x526036(0x1b0)])),N(0x2,o[_0x526036(0x1e1)])],exports[_0x526036(0x217)]),exports[_0x526036(0x1f8)]=$,exports[_0x526036(0x182)]=E,exports[_0x526036(0x1a3)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
1
+ const _0x3cf2eb=_0x25fd;(function(_0x3426c4,_0xc300d5){const _0x1b917e=_0x25fd,_0x52bd99=_0x3426c4();while(!![]){try{const _0x2ebdaa=parseInt(_0x1b917e(0xca))/0x1+parseInt(_0x1b917e(0xbf))/0x2+-parseInt(_0x1b917e(0xc1))/0x3+-parseInt(_0x1b917e(0xbe))/0x4*(parseInt(_0x1b917e(0xc7))/0x5)+parseInt(_0x1b917e(0xcc))/0x6+parseInt(_0x1b917e(0xb9))/0x7*(-parseInt(_0x1b917e(0xc8))/0x8)+-parseInt(_0x1b917e(0xcf))/0x9*(-parseInt(_0x1b917e(0xd0))/0xa);if(_0x2ebdaa===_0xc300d5)break;else _0x52bd99['push'](_0x52bd99['shift']());}catch(_0x1d1cb6){_0x52bd99['push'](_0x52bd99['shift']());}}}(_0x5ee6,0x5bd55));import{LiveShareController as _0x3a1fd5,LiveShareStatus as _0x77b83f}from'@univerjs-pro/live-share';function _0x5ee6(){const _0x2d767a=['getActiveSheet','stopPresenting','getSheetId','startRow','3135wEAthP','54976Vnupms','tryStartPresenting','519533jESrhi','getLiveShareStatus','1982910yISqTe','No\x20active\x20workbook\x20found.','get','368361ZJNXgJ','150slyQkK','getRenderById','_commandService','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','IDLE','getId','PRESENTING','LiveShareStatusEnum','stopFollowing','getLiveShareCoordinatorSync','434lgpIzs','getActiveWorkbook','extend','getStatus','startFollowing','4588gCyMwT','246794YxixNo','getUnitId','197904xEJQyR','syncExecuteCommand'];_0x5ee6=function(){return _0x2d767a;};return _0x5ee6();}import{IRenderManagerService as _0x375d36}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4be7a4}from'@univerjs/sheets';import{SetScrollOperation as _0x14c1d9}from'@univerjs/sheets-ui';import{FRange as _0xf46abf}from'@univerjs/sheets/facade';import{FUniver as _0x5a3a54,FEnum as _0x1a4f3f}from'@univerjs/core/facade';class I extends _0xf46abf{['_initialize'](_0x114ef4,_0x4d389a,_0x11b815,_0x1bfcba,_0x531be3){const _0x1daa41=_0x25fd,_0x377218=_0x114ef4[_0x1daa41(0xce)](_0x3a1fd5),_0x43d003=_0x114ef4[_0x1daa41(0xce)](_0x375d36),_0x1a6b58=_0x4d389a['getUnitId'](),_0x33a7a5=_0x4d389a[_0x1daa41(0xc3)](),_0x242f2c=_0x377218['getLiveShareCoordinatorSync'](_0x1a6b58);(_0x242f2c==null?void 0x0:_0x242f2c['getStatus']())!==_0x77b83f[_0x1daa41(0xb5)]||(_0x11b815[_0x1daa41(0xc5)]()!==_0x33a7a5[_0x1daa41(0xc5)]()&&this[_0x1daa41(0xd2)]['executeCommand'](_0x4be7a4['id'],{'unitId':_0x1a6b58,'subUnitId':_0x11b815[_0x1daa41(0xc5)]()}),!_0x43d003[_0x1daa41(0xd1)](_0x1a6b58))||_0x531be3[_0x1daa41(0xc2)](_0x14c1d9['id'],{'unitId':_0x4d389a[_0x1daa41(0xc0)](),'sheetId':_0x11b815[_0x1daa41(0xc5)](),'sheetViewStartRow':_0x1bfcba[_0x1daa41(0xc6)],'sheetViewStartColumn':_0x1bfcba[_0x1daa41(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf46abf['extend'](I);class m extends _0x5a3a54{[_0x3cf2eb(0xcb)](){const _0xff1c3f=_0x3cf2eb;var _0x2ccf21,_0x181c46;const _0x1d2a53=this[_0xff1c3f(0xd3)][_0xff1c3f(0xce)](_0x3a1fd5),_0x273fb5=(_0x2ccf21=this['getActiveWorkbook']())==null?void 0x0:_0x2ccf21['getId']();if(!_0x273fb5)throw new Error(_0xff1c3f(0xcd));const _0xa59f44=_0x1d2a53[_0xff1c3f(0xb8)](_0x273fb5);return(_0x181c46=_0xa59f44==null?void 0x0:_0xa59f44[_0xff1c3f(0xbc)]())!=null?_0x181c46:_0x77b83f[_0xff1c3f(0xd6)];}['startFollowing'](){const _0x3c1928=_0x3cf2eb;var _0x539cdc;const _0x36da3b=this[_0x3c1928(0xd3)][_0x3c1928(0xce)](_0x3a1fd5),_0x166f01=(_0x539cdc=this['getActiveWorkbook']())==null?void 0x0:_0x539cdc[_0x3c1928(0xb4)]();if(!_0x166f01)throw new Error('No\x20active\x20workbook\x20found.');const _0x55a7dc=_0x36da3b['getLiveShareCoordinatorSync'](_0x166f01);if(!_0x55a7dc)throw new Error(_0x3c1928(0xd4));_0x55a7dc[_0x3c1928(0xbd)]();}['stopFollowing'](){const _0x54f288=_0x3cf2eb;var _0x13fd99;const _0x28ff65=this[_0x54f288(0xd3)][_0x54f288(0xce)](_0x3a1fd5),_0x494311=(_0x13fd99=this[_0x54f288(0xba)]())==null?void 0x0:_0x13fd99[_0x54f288(0xb4)]();if(!_0x494311)throw new Error('No\x20active\x20workbook\x20found.');const _0x141a13=_0x28ff65[_0x54f288(0xb8)](_0x494311);if(!_0x141a13)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x141a13[_0x54f288(0xb7)]();}['startPresenting'](){const _0x17c0e4=_0x3cf2eb;var _0x4cdf7b;const _0x93dff6=this[_0x17c0e4(0xd3)][_0x17c0e4(0xce)](_0x3a1fd5),_0x499c1b=(_0x4cdf7b=this['getActiveWorkbook']())==null?void 0x0:_0x4cdf7b['getId']();if(!_0x499c1b)throw new Error(_0x17c0e4(0xcd));const _0x38a621=_0x93dff6['getLiveShareCoordinatorSync'](_0x499c1b);if(!_0x38a621)throw new Error(_0x17c0e4(0xd4));_0x38a621[_0x17c0e4(0xc9)]();}[_0x3cf2eb(0xc4)](){const _0x12d925=_0x3cf2eb;var _0x149715;const _0x53e249=this[_0x12d925(0xd3)][_0x12d925(0xce)](_0x3a1fd5),_0x3b989c=(_0x149715=this[_0x12d925(0xba)]())==null?void 0x0:_0x149715[_0x12d925(0xb4)]();if(!_0x3b989c)throw new Error(_0x12d925(0xcd));const _0x4eaa7b=_0x53e249[_0x12d925(0xb8)](_0x3b989c);if(!_0x4eaa7b)throw new Error(_0x12d925(0xd4));_0x4eaa7b[_0x12d925(0xc4)]();}}_0x5a3a54[_0x3cf2eb(0xbb)](m);class C extends _0x1a4f3f{get[_0x3cf2eb(0xb6)](){return _0x77b83f;}}function _0x25fd(_0x228d1d,_0x100868){_0x228d1d=_0x228d1d-0xb4;const _0x5ee61f=_0x5ee6();let _0x25fd14=_0x5ee61f[_0x228d1d];return _0x25fd14;}_0x1a4f3f['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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 _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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 _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
1
+ const _0x3cf2eb=_0x25fd;(function(_0x3426c4,_0xc300d5){const _0x1b917e=_0x25fd,_0x52bd99=_0x3426c4();while(!![]){try{const _0x2ebdaa=parseInt(_0x1b917e(0xca))/0x1+parseInt(_0x1b917e(0xbf))/0x2+-parseInt(_0x1b917e(0xc1))/0x3+-parseInt(_0x1b917e(0xbe))/0x4*(parseInt(_0x1b917e(0xc7))/0x5)+parseInt(_0x1b917e(0xcc))/0x6+parseInt(_0x1b917e(0xb9))/0x7*(-parseInt(_0x1b917e(0xc8))/0x8)+-parseInt(_0x1b917e(0xcf))/0x9*(-parseInt(_0x1b917e(0xd0))/0xa);if(_0x2ebdaa===_0xc300d5)break;else _0x52bd99['push'](_0x52bd99['shift']());}catch(_0x1d1cb6){_0x52bd99['push'](_0x52bd99['shift']());}}}(_0x5ee6,0x5bd55));import{LiveShareController as _0x3a1fd5,LiveShareStatus as _0x77b83f}from'@univerjs-pro/live-share';function _0x5ee6(){const _0x2d767a=['getActiveSheet','stopPresenting','getSheetId','startRow','3135wEAthP','54976Vnupms','tryStartPresenting','519533jESrhi','getLiveShareStatus','1982910yISqTe','No\x20active\x20workbook\x20found.','get','368361ZJNXgJ','150slyQkK','getRenderById','_commandService','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','IDLE','getId','PRESENTING','LiveShareStatusEnum','stopFollowing','getLiveShareCoordinatorSync','434lgpIzs','getActiveWorkbook','extend','getStatus','startFollowing','4588gCyMwT','246794YxixNo','getUnitId','197904xEJQyR','syncExecuteCommand'];_0x5ee6=function(){return _0x2d767a;};return _0x5ee6();}import{IRenderManagerService as _0x375d36}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4be7a4}from'@univerjs/sheets';import{SetScrollOperation as _0x14c1d9}from'@univerjs/sheets-ui';import{FRange as _0xf46abf}from'@univerjs/sheets/facade';import{FUniver as _0x5a3a54,FEnum as _0x1a4f3f}from'@univerjs/core/facade';class I extends _0xf46abf{['_initialize'](_0x114ef4,_0x4d389a,_0x11b815,_0x1bfcba,_0x531be3){const _0x1daa41=_0x25fd,_0x377218=_0x114ef4[_0x1daa41(0xce)](_0x3a1fd5),_0x43d003=_0x114ef4[_0x1daa41(0xce)](_0x375d36),_0x1a6b58=_0x4d389a['getUnitId'](),_0x33a7a5=_0x4d389a[_0x1daa41(0xc3)](),_0x242f2c=_0x377218['getLiveShareCoordinatorSync'](_0x1a6b58);(_0x242f2c==null?void 0x0:_0x242f2c['getStatus']())!==_0x77b83f[_0x1daa41(0xb5)]||(_0x11b815[_0x1daa41(0xc5)]()!==_0x33a7a5[_0x1daa41(0xc5)]()&&this[_0x1daa41(0xd2)]['executeCommand'](_0x4be7a4['id'],{'unitId':_0x1a6b58,'subUnitId':_0x11b815[_0x1daa41(0xc5)]()}),!_0x43d003[_0x1daa41(0xd1)](_0x1a6b58))||_0x531be3[_0x1daa41(0xc2)](_0x14c1d9['id'],{'unitId':_0x4d389a[_0x1daa41(0xc0)](),'sheetId':_0x11b815[_0x1daa41(0xc5)](),'sheetViewStartRow':_0x1bfcba[_0x1daa41(0xc6)],'sheetViewStartColumn':_0x1bfcba[_0x1daa41(0xd5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf46abf['extend'](I);class m extends _0x5a3a54{[_0x3cf2eb(0xcb)](){const _0xff1c3f=_0x3cf2eb;var _0x2ccf21,_0x181c46;const _0x1d2a53=this[_0xff1c3f(0xd3)][_0xff1c3f(0xce)](_0x3a1fd5),_0x273fb5=(_0x2ccf21=this['getActiveWorkbook']())==null?void 0x0:_0x2ccf21['getId']();if(!_0x273fb5)throw new Error(_0xff1c3f(0xcd));const _0xa59f44=_0x1d2a53[_0xff1c3f(0xb8)](_0x273fb5);return(_0x181c46=_0xa59f44==null?void 0x0:_0xa59f44[_0xff1c3f(0xbc)]())!=null?_0x181c46:_0x77b83f[_0xff1c3f(0xd6)];}['startFollowing'](){const _0x3c1928=_0x3cf2eb;var _0x539cdc;const _0x36da3b=this[_0x3c1928(0xd3)][_0x3c1928(0xce)](_0x3a1fd5),_0x166f01=(_0x539cdc=this['getActiveWorkbook']())==null?void 0x0:_0x539cdc[_0x3c1928(0xb4)]();if(!_0x166f01)throw new Error('No\x20active\x20workbook\x20found.');const _0x55a7dc=_0x36da3b['getLiveShareCoordinatorSync'](_0x166f01);if(!_0x55a7dc)throw new Error(_0x3c1928(0xd4));_0x55a7dc[_0x3c1928(0xbd)]();}['stopFollowing'](){const _0x54f288=_0x3cf2eb;var _0x13fd99;const _0x28ff65=this[_0x54f288(0xd3)][_0x54f288(0xce)](_0x3a1fd5),_0x494311=(_0x13fd99=this[_0x54f288(0xba)]())==null?void 0x0:_0x13fd99[_0x54f288(0xb4)]();if(!_0x494311)throw new Error('No\x20active\x20workbook\x20found.');const _0x141a13=_0x28ff65[_0x54f288(0xb8)](_0x494311);if(!_0x141a13)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x141a13[_0x54f288(0xb7)]();}['startPresenting'](){const _0x17c0e4=_0x3cf2eb;var _0x4cdf7b;const _0x93dff6=this[_0x17c0e4(0xd3)][_0x17c0e4(0xce)](_0x3a1fd5),_0x499c1b=(_0x4cdf7b=this['getActiveWorkbook']())==null?void 0x0:_0x4cdf7b['getId']();if(!_0x499c1b)throw new Error(_0x17c0e4(0xcd));const _0x38a621=_0x93dff6['getLiveShareCoordinatorSync'](_0x499c1b);if(!_0x38a621)throw new Error(_0x17c0e4(0xd4));_0x38a621[_0x17c0e4(0xc9)]();}[_0x3cf2eb(0xc4)](){const _0x12d925=_0x3cf2eb;var _0x149715;const _0x53e249=this[_0x12d925(0xd3)][_0x12d925(0xce)](_0x3a1fd5),_0x3b989c=(_0x149715=this[_0x12d925(0xba)]())==null?void 0x0:_0x149715[_0x12d925(0xb4)]();if(!_0x3b989c)throw new Error(_0x12d925(0xcd));const _0x4eaa7b=_0x53e249[_0x12d925(0xb8)](_0x3b989c);if(!_0x4eaa7b)throw new Error(_0x12d925(0xd4));_0x4eaa7b[_0x12d925(0xc4)]();}}_0x5a3a54[_0x3cf2eb(0xbb)](m);class C extends _0x1a4f3f{get[_0x3cf2eb(0xb6)](){return _0x77b83f;}}function _0x25fd(_0x228d1d,_0x100868){_0x228d1d=_0x228d1d-0xb4;const _0x5ee61f=_0x5ee6();let _0x25fd14=_0x5ee61f[_0x228d1d];return _0x25fd14;}_0x1a4f3f['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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 _0x37c48f=_0xe409;(function(_0xca09e3,_0x23be34){const _0x503460=_0xe409,_0xabed41=_0xca09e3();while(!![]){try{const _0x1b3726=parseInt(_0x503460(0x171))/0x1+-parseInt(_0x503460(0x1dd))/0x2+-parseInt(_0x503460(0x182))/0x3*(parseInt(_0x503460(0x1ed))/0x4)+parseInt(_0x503460(0x155))/0x5*(-parseInt(_0x503460(0x1a5))/0x6)+parseInt(_0x503460(0x15d))/0x7+-parseInt(_0x503460(0x16d))/0x8+-parseInt(_0x503460(0x18f))/0x9*(-parseInt(_0x503460(0x1d5))/0xa);if(_0x1b3726===_0x23be34)break;else _0xabed41['push'](_0xabed41['shift']());}catch(_0x3c4d11){_0xabed41['push'](_0xabed41['shift']());}}}(_0x33ed,0x571d8));var J=Object['defineProperty'],K=(_0x4f7e0a,_0x24e8b5,_0xe4ea7)=>_0x24e8b5 in _0x4f7e0a?J(_0x4f7e0a,_0x24e8b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4ea7}):_0x4f7e0a[_0x24e8b5]=_0xe4ea7,u=(_0x2a9c80,_0x6b58ae,_0x256c56)=>K(_0x2a9c80,typeof _0x6b58ae!='symbol'?_0x6b58ae+'':_0x6b58ae,_0x256c56);import{Disposable as _0x56ac81,toDisposable as _0x14fed3,IUniverInstanceService as _0x3fde3e,Inject as _0x19be43,Injector as _0x26383e,IConfigService as _0x347dc0,ICommandService as _0x4afaea,RxDisposable as _0x46b3fc,UniverInstanceType as _0x339dac,DisposableCollection as _0x2d7a31,CommandType as _0x412c4e,DependentOn as _0x2d581b,Plugin as _0x541451,merge as _0x367c89,registerDependencies as _0x5a7450,mergeOverrideWithDependencies as _0x3edeed,touchDependencies as _0x427e11}from'@univerjs/core';import{useDependency as _0x3d5a42,useObservable as _0x38adb2,IUIPartsService as _0x5ded7e,BuiltInUIPart as _0x1d340b,connectInjector as _0x573695}from'@univerjs/ui';import{jsx as _0x1c493a,jsxs as _0x151147,Fragment as _0xc16d68}from'react/jsx-runtime';import{Dropdown as _0x271335,clsx as _0x4fc2f0,Button as _0x47c0d7}from'@univerjs/design';import{useRef as _0x43a44d,createElement as _0x9d760e,forwardRef as _0x5dd029,useState as _0x105361,useEffect as _0xf1fe}from'react';import{CollaborationEvent as _0xfbd7ce,parseProtocolChangeset as _0x3bd4cc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1eb5ad,SessionStatus as _0x2028a0,UniverCollaborationClientPlugin as _0x32695c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4662fb,SetWorksheetActiveOperation as _0x382fbd}from'@univerjs/sheets';import{BehaviorSubject as _0x22afaf,Subject as _0x4d5a8a}from'rxjs';import{takeUntil as _0x5c0ffb,throttleTime as _0x3d75be}from'rxjs/operators';import{SetZoomRatioOperation as _0x3e9230,SetScrollOperation as _0x10ff22}from'@univerjs/sheets-ui';function k({ref:_0x6a9a4b,..._0x6607ad}){const _0x3eb271=_0xe409,{icon:_0x3fc80f,id:_0x4f9876,className:_0x3da3d3,extend:_0xf6b093,..._0x2044a2}=_0x6607ad,_0x3cb262=('univerjs-icon\x20univerjs-icon-'+_0x4f9876+'\x20'+(_0x3da3d3||''))[_0x3eb271(0x179)](),_0x1ced54=_0x43a44d('_'+Oe());return G(_0x3fc80f,''+_0x4f9876,{'defIds':_0x3fc80f[_0x3eb271(0x1b1)],'idSuffix':_0x1ced54[_0x3eb271(0x163)]},{'ref':_0x6a9a4b,'className':_0x3cb262,..._0x2044a2},_0xf6b093);}function G(_0x21771a,_0xa9d86f,_0x3dc626,_0x5cd706,_0x6b83d0){const _0x1104eb=_0xe409;return _0x9d760e(_0x21771a[_0x1104eb(0x156)],{'key':_0xa9d86f,...be(_0x21771a,_0x3dc626,_0x6b83d0),..._0x5cd706},(Ee(_0x21771a,_0x3dc626)[_0x1104eb(0x1e5)]||[])['map']((_0x2324d8,_0x44da57)=>G(_0x2324d8,_0xa9d86f+'-'+_0x21771a[_0x1104eb(0x156)]+'-'+_0x44da57,_0x3dc626,void 0x0,_0x6b83d0)));}function be(_0x405bd8,_0x497cb1,_0x3c8e7a){const _0x5697c3=_0xe409,_0x19d15b={..._0x405bd8[_0x5697c3(0x17b)]};_0x3c8e7a!=null&&_0x3c8e7a[_0x5697c3(0x1bb)]&&_0x19d15b[_0x5697c3(0x1b3)]===_0x5697c3(0x1bb)&&(_0x19d15b[_0x5697c3(0x1b3)]=_0x3c8e7a[_0x5697c3(0x1bb)]),_0x405bd8[_0x5697c3(0x156)]==='mask'&&_0x19d15b['id']&&(_0x19d15b['id']=_0x19d15b['id']+_0x497cb1[_0x5697c3(0x185)]),Object[_0x5697c3(0x18d)](_0x19d15b)[_0x5697c3(0x184)](([_0x27af38,_0x434ca1])=>{const _0x2d16ee=_0x5697c3;_0x27af38===_0x2d16ee(0x1ef)&&typeof _0x434ca1==_0x2d16ee(0x1f0)&&(_0x19d15b[_0x27af38]=_0x434ca1[_0x2d16ee(0x1b6)](/url\(#(.*)\)/,_0x2d16ee(0x177)+_0x497cb1[_0x2d16ee(0x185)]+')'));});const {defIds:_0x3ef991}=_0x497cb1;return!_0x3ef991||_0x3ef991[_0x5697c3(0x18e)]===0x0||(_0x405bd8[_0x5697c3(0x156)]===_0x5697c3(0x19f)&&_0x19d15b['xlink:href']&&(_0x19d15b[_0x5697c3(0x170)]=_0x19d15b[_0x5697c3(0x170)]+_0x497cb1['idSuffix']),Object['entries'](_0x19d15b)[_0x5697c3(0x184)](([_0x1e16c5,_0xd1753c])=>{const _0x48282f=_0x5697c3;typeof _0xd1753c==_0x48282f(0x1f0)&&(_0x19d15b[_0x1e16c5]=_0xd1753c[_0x48282f(0x1b6)](/url\(#(.*)\)/,'url(#$1'+_0x497cb1[_0x48282f(0x185)]+')'));})),_0x19d15b;}function Ee(_0x5ecafc,_0xb0ff3d){const _0xaac6fc=_0xe409;var _0x1649af;const {defIds:_0x57fb24}=_0xb0ff3d;return!_0x57fb24||_0x57fb24[_0xaac6fc(0x18e)]===0x0?_0x5ecafc:_0x5ecafc['tag']===_0xaac6fc(0x19a)&&((_0x1649af=_0x5ecafc['children'])!=null&&_0x1649af[_0xaac6fc(0x18e)])?{..._0x5ecafc,'children':_0x5ecafc[_0xaac6fc(0x1e5)]['map'](_0x2097ed=>typeof _0x2097ed[_0xaac6fc(0x17b)]['id']==_0xaac6fc(0x1f0)&&_0x57fb24&&_0x57fb24['includes'](_0x2097ed[_0xaac6fc(0x17b)]['id'])?{..._0x2097ed,'attrs':{..._0x2097ed[_0xaac6fc(0x17b)],'id':_0x2097ed[_0xaac6fc(0x17b)]['id']+_0xb0ff3d[_0xaac6fc(0x185)]}}:_0x2097ed)}:_0x5ecafc;}function Oe(){const _0x4c634c=_0xe409;return Math['random']()['toString'](0x24)[_0x4c634c(0x18b)](0x2,0x8);}function _0x33ed(){const _0x4233a7=['_unitID','PRESENTING','type','executeCommand','get','1729788GBCzyd','Present\x20this\x20document','_handleOffline','getLiveShareCoordinator','_commandService','FOLLOWING','map','LIVESHARE_FETCH_OPERATIONS','1em','init','unsubscribe','then','defIds','getUnitId','fill','UNIVER_SHEET','getTypeOfUnitAdded$','replace','parse','evenodd','onRendered','_mountLiveShare','colorChannel1','path','LIVESHARE_OPERATION','sessionStatus$','_presenter','button','HEADER_MENU','_handleOnline','IDLE','currentColor','_configService','_injector','displayName','sheet','default','live-share.config','LiveShareIcon','has','requireSession','_startLiveShareCoordinator','_collabSession','NEW_CHANGESETS','_startPresenting','data','disposeWithMe','next','470eqiCep','_stopFollowing','_beIdle','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','dispose','247406IwrpSk','_collabSessionService','ONLINE','_entities','_config','onCommandExecuted','getLiveShareCoordinatorSync','_sharedOperations','children','stopFollowing','presenting','stringify','_handleNewChangeSets','univer-size-4','_status$','live-share-icon','196dIBLcj','Stop\x20following','mask','string','reverse','dispose$','UNIVER_UNKNOWN','unitId','_commandDisposable','clear','memberID','5OqqcmR','tag','registerSharedOperation','registerComponent','send','values','text','assign','3393236xuwqKQ','getInitialStates','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','presenter','stopPresenting','current','none','delete','getMemberID','_reporters','getOwnPropertyDescriptor','from','getConfig','div','getCurrentTypeOfUnit$','4386376grmqFS','setConfig','offline','xlink:href','285137PKrCMj','_fetchOperations','asObservable','set','_uiPartsService','_stopPresenting','url(#$1','http://www.w3.org/2000/svg','trim','add','attrs','You\x27re\x20following\x20the\x20presenter','_status','idle','defineProperty','Start\x20following','includes','41430gpasBe','createInstance','forEach','idSuffix','LIVESHARE_NEW_HOST','shouldShareOperation','_univerInstanceService','following','OFFLINE','substring','Start','entries','length','234369DfjfQR','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','_init','subscribe','_handleTerminate','startFollowing','_liveShareService','pipe','UNIVER_LIVE_SHARE_PLUGIN','operations','defs','complete','Stop\x20presenting','params','NOT_FOLLOWING','use'];_0x33ed=function(){return _0x4233a7;};return _0x33ed();}k[_0x37c48f(0x1c7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x37c48f(0x178),'fill':_0x37c48f(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x37c48f(0x1ad),'height':'1em'},'children':[{'tag':_0x37c48f(0x1bc),'attrs':{'fill':_0x37c48f(0x1c4),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x37c48f(0x1c4),'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':_0x37c48f(0x1b8),'clipRule':'evenodd'}}]},W=_0x5dd029(function(_0x31e086,_0x8c82f6){const _0x3cad22=_0x37c48f;return _0x9d760e(k,Object[_0x3cad22(0x15c)]({},_0x31e086,{'id':_0x3cad22(0x1ec),'ref':_0x8c82f6,'icon':we}));});W[_0x37c48f(0x1c7)]=_0x37c48f(0x1cb);class L extends _0x56ac81{constructor(){const _0x4dd519=_0x37c48f;super(...arguments),u(this,_0x4dd519(0x1e4),new Set()),u(this,_0x4dd519(0x167),new Set());}[_0x37c48f(0x157)](_0x2c4f01){const _0x2a6c26=_0x37c48f;return this[_0x2a6c26(0x1e4)][_0x2a6c26(0x17a)](_0x2c4f01),_0x14fed3(()=>this[_0x2a6c26(0x1e4)][_0x2a6c26(0x165)](_0x2c4f01));}['registerInitialStateReporter'](_0x4d105b){const _0x7286ea=_0x37c48f;return this[_0x7286ea(0x167)][_0x7286ea(0x17a)](_0x4d105b),_0x14fed3(()=>this[_0x7286ea(0x167)][_0x7286ea(0x165)](_0x4d105b));}[_0x37c48f(0x187)](_0x2dfe0a){const _0x14cc4c=_0x37c48f;return this[_0x14cc4c(0x1e4)][_0x14cc4c(0x1cc)](_0x2dfe0a);}[_0x37c48f(0x15e)](_0xe3cf1a){const _0x37aea6=_0x37c48f;return Array[_0x37aea6(0x169)](this[_0x37aea6(0x167)])[_0x37aea6(0x1ab)](_0x35e6a2=>_0x35e6a2(_0xe3cf1a));}}var Ne=Object[_0x37c48f(0x168)],Y=(_0x123d7,_0x1484b4,_0x49d19f,_0x3c0cdd)=>{const _0x9ce59e=_0x37c48f;for(var _0x45c3b6=_0x3c0cdd>0x1?void 0x0:_0x3c0cdd?Ne(_0x1484b4,_0x49d19f):_0x1484b4,_0x3d5235=_0x123d7[_0x9ce59e(0x18e)]-0x1,_0x488a22;_0x3d5235>=0x0;_0x3d5235--)(_0x488a22=_0x123d7[_0x3d5235])&&(_0x45c3b6=_0x488a22(_0x45c3b6)||_0x45c3b6);return _0x45c3b6;},_=(_0x3839bc,_0x1b3d1b)=>(_0x32464c,_0x1ae4f3)=>_0x1b3d1b(_0x32464c,_0x1ae4f3,_0x3839bc);let S=class extends _0x46b3fc{constructor(_0x370983,_0xe71a93,_0x1f54c1){const _0x5a7010=_0x37c48f;super(),u(this,_0x5a7010(0x1e0),new Map()),(this[_0x5a7010(0x188)]=_0x370983,this['_injector']=_0xe71a93,this[_0x5a7010(0x1de)]=_0x1f54c1,this[_0x5a7010(0x192)]());}async[_0x37c48f(0x1a8)](_0xbaa191){const _0x5aac94=_0x37c48f;return this[_0x5aac94(0x1e0)][_0x5aac94(0x1cc)](_0xbaa191)||await this['_startLiveShareCoordinator'](_0xbaa191),this['_entities'][_0x5aac94(0x1a4)](_0xbaa191);}[_0x37c48f(0x1e3)](_0x1e78a2){const _0x1bd250=_0x37c48f;var _0x5ade84;return(_0x5ade84=this[_0x1bd250(0x1e0)][_0x1bd250(0x1a4)](_0x1e78a2))!=null?_0x5ade84:null;}[_0x37c48f(0x192)](){const _0x172b40=_0x37c48f;this['_univerInstanceService'][_0x172b40(0x1b5)](_0x339dac[_0x172b40(0x1b4)])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](async _0x12f299=>{const _0x1f164a=_0x172b40,_0x17e224=_0x12f299[_0x1f164a(0x1b2)]();this[_0x1f164a(0x1e0)][_0x1f164a(0x1cc)](_0x17e224)||this[_0x1f164a(0x1ce)](_0x17e224);}),this[_0x172b40(0x188)]['getTypeOfUnitDisposed$'](_0x339dac['UNIVER_SHEET'])[_0x172b40(0x197)](_0x5c0ffb(this[_0x172b40(0x1f2)]))[_0x172b40(0x193)](_0x102a61=>{const _0x2e9cf2=_0x172b40,_0x56aa42=_0x102a61[_0x2e9cf2(0x1b2)](),_0x2b0201=this['_entities'][_0x2e9cf2(0x1a4)](_0x56aa42);_0x2b0201==null||_0x2b0201['dispose']();});}async[_0x37c48f(0x1ce)](_0x5b5fdf){const _0xd07fe1=_0x37c48f,_0x448e24=await this['_collabSessionService'][_0xd07fe1(0x1cd)](_0x5b5fdf),_0x2217ff=this[_0xd07fe1(0x1c6)][_0xd07fe1(0x183)](N,_0x5b5fdf,_0x448e24);return _0x2217ff['init'](),this['_entities'][_0xd07fe1(0x174)](_0x5b5fdf,_0x2217ff),_0x2217ff;}};S=Y([_(0x0,_0x3fde3e),_(0x1,_0x19be43(_0x26383e)),_(0x2,_0x19be43(_0x1eb5ad))],S);var c=(_0x39528e=>(_0x39528e[_0x37c48f(0x18a)]=_0x37c48f(0x16f),_0x39528e[_0x37c48f(0x1c3)]=_0x37c48f(0x17e),_0x39528e[_0x37c48f(0x1aa)]=_0x37c48f(0x189),_0x39528e[_0x37c48f(0x19e)]=_0x37c48f(0x191),_0x39528e[_0x37c48f(0x1a1)]=_0x37c48f(0x1e7),_0x39528e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x46b3fc{constructor(_0x24039b,_0x1907e1,_0x3d58c3,_0x471940,_0x78b654){const _0x4078f8=_0x37c48f;super(),u(this,_0x4078f8(0x1eb),new _0x22afaf(_0x4078f8(0x17e))),u(this,'status$',this[_0x4078f8(0x1eb)][_0x4078f8(0x173)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x4078f8(0x1bf),null),(this[_0x4078f8(0x1a0)]=_0x24039b,this[_0x4078f8(0x1cf)]=_0x1907e1,this[_0x4078f8(0x1c5)]=_0x3d58c3,this[_0x4078f8(0x196)]=_0x471940,this['_commandService']=_0x78b654);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){const _0x3c9b6a=_0x37c48f;var _0x3004c1;(_0x3004c1=this[_0x3c9b6a(0x152)])==null||_0x3004c1[_0x3c9b6a(0x1dc)](),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x1d4)](_0x3c9b6a(0x17e)),this[_0x3c9b6a(0x1eb)][_0x3c9b6a(0x19b)]();}['getStatus'](){const _0x434247=_0x37c48f;return this[_0x434247(0x17d)];}[_0x37c48f(0x1ae)](){const _0x582012=_0x37c48f;this[_0x582012(0x192)]||(this[_0x582012(0x192)]=!0x0,this[_0x582012(0x1cf)][_0x582012(0x1be)][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x474db0=>{const _0x3b3a2a=_0x582012;switch(_0x474db0){case _0x2028a0['OFFLINE']:this[_0x3b3a2a(0x1a7)]();break;case _0x2028a0[_0x3b3a2a(0x1df)]:this[_0x3b3a2a(0x1c2)]();break;}}),this[_0x582012(0x1cf)]['event$'][_0x582012(0x197)](_0x5c0ffb(this[_0x582012(0x1f2)]))['subscribe'](_0x31de8c=>{const _0x5e9b77=_0x582012,{eventID:_0x506dec}=_0x31de8c;switch(_0x506dec){case _0xfbd7ce[_0x5e9b77(0x186)]:this[_0x5e9b77(0x15f)](_0x31de8c);break;case _0xfbd7ce['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31de8c);break;case _0xfbd7ce[_0x5e9b77(0x1db)]:this['_handleTerminate']();break;case _0xfbd7ce[_0x5e9b77(0x1d0)]:this[_0x5e9b77(0x1e9)](_0x31de8c);break;}}));}[_0x37c48f(0x1d9)](){const _0x3eecda=_0x37c48f;this[_0x3eecda(0x1cf)]['send']({'eventID':_0xfbd7ce['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3eecda(0x1a0)],'userID':this[_0x3eecda(0x1cf)][_0x3eecda(0x166)]()}},this[_0x3eecda(0x1a0)]);}[_0x37c48f(0x162)](){const _0x5906ad=_0x37c48f;this[_0x5906ad(0x17d)]===_0x5906ad(0x1e7)&&(this[_0x5906ad(0x1eb)]['next'](_0x5906ad(0x17e)),this[_0x5906ad(0x1cf)][_0x5906ad(0x159)]({'eventID':_0xfbd7ce[_0x5906ad(0x1db)],'data':{'unitID':this[_0x5906ad(0x1a0)]}},this[_0x5906ad(0x1a0)]));}[_0x37c48f(0x195)](){const _0x10cb14=_0x37c48f;this[_0x10cb14(0x17d)]===_0x10cb14(0x191)&&(this[_0x10cb14(0x1eb)][_0x10cb14(0x1d4)]('following'),this['_startFollowing']());}[_0x37c48f(0x1e6)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x37c48f(0x15f)](_0x575056){const _0x452080=_0x37c48f,{presenter:_0x26a52b}=_0x575056[_0x452080(0x1d2)],_0x1ec058=this[_0x452080(0x1cf)][_0x452080(0x166)]();this['_presenter']=_0x26a52b,_0x26a52b===_0x1ec058?(this[_0x452080(0x1d6)](),this[_0x452080(0x1d1)]()):this['_status']!=='not-following'&&(this[_0x452080(0x176)](),this['_startFollowing']());}[_0x37c48f(0x172)](){const _0x26024b=_0x37c48f,_0x18a090={'eventID':_0xfbd7ce[_0x26024b(0x1ac)]};this[_0x26024b(0x1cf)][_0x26024b(0x159)](_0x18a090,this['_unitID']);}[_0x37c48f(0x194)](){const _0xa0f93=_0x37c48f;this[_0xa0f93(0x1bf)]=null,this['_status']!==_0xa0f93(0x1e7)&&this[_0xa0f93(0x1d7)]();}[_0x37c48f(0x1e9)](_0xf00b52){const _0x260620=_0x37c48f;if(this[_0x260620(0x17d)]===_0x260620(0x189)&&this[_0x260620(0x1bf)]===_0xf00b52[_0x260620(0x1d2)][_0x260620(0x154)]){const _0x53f7bf=_0x3bd4cc(_0xf00b52[_0x260620(0x1d2)])['mutations'][_0x260620(0x1f1)]()['find'](_0x5419f1=>_0x5419f1['id']===_0x4662fb['id']);if(_0x53f7bf){const _0x17a862=_0x53f7bf[_0x260620(0x19d)][_0x260620(0x1f4)],_0x12d9c8=_0x53f7bf['params'][_0x260620(0x1c8)]['id'];setTimeout(()=>{const _0x460506=_0x260620;this[_0x460506(0x1a9)][_0x460506(0x1a3)](_0x382fbd['id'],{'unitId':_0x17a862,'subUnitId':_0x12d9c8},{'fromCollab':!0x0});});}}}[_0x37c48f(0x1d1)](){const _0x1c754c=_0x37c48f;this[_0x1c754c(0x1eb)][_0x1c754c(0x1d4)](_0x1c754c(0x1e7));const _0x2a2428=new Map(),_0x2efb46=this[_0x1c754c(0x152)]=new _0x2d7a31();_0x2efb46[_0x1c754c(0x17a)](_0x14fed3(()=>{const _0x2aab58=_0x1c754c;_0x2a2428['forEach'](_0x5d25ad=>_0x5d25ad['complete']()),_0x2a2428[_0x2aab58(0x153)]();})),_0x2efb46[_0x1c754c(0x17a)](this[_0x1c754c(0x1a9)][_0x1c754c(0x1e2)](_0x454cc7=>{const _0x3e998b=_0x1c754c;var _0x5020ce;if(_0x454cc7['type']!==_0x412c4e['OPERATION']||!this['_liveShareService'][_0x3e998b(0x187)](_0x454cc7['id']))return;const {id:_0x313e1d}=_0x454cc7;let _0x1bca42;_0x2a2428[_0x3e998b(0x1cc)](_0x313e1d)?_0x1bca42=_0x2a2428['get'](_0x313e1d):(_0x1bca42=new _0x4d5a8a(),_0x2a2428[_0x3e998b(0x174)](_0x313e1d,_0x1bca42),_0x1bca42[_0x3e998b(0x197)](_0x3d75be((_0x5020ce=this[_0x3e998b(0x1c5)][_0x3e998b(0x16a)](Ce))!=null?_0x5020ce:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e998b(0x193)](_0x26576b=>{const _0x20d493=_0x3e998b;this[_0x20d493(0x1cf)][_0x20d493(0x159)]({'eventID':_0xfbd7ce[_0x20d493(0x1bd)],'data':{'unitID':this[_0x20d493(0x1a0)],'operations':{[_0x26576b['id']]:{'id':_0x26576b['id'],'params':JSON[_0x20d493(0x1e8)](_0x26576b[_0x20d493(0x19d)])}}}},this[_0x20d493(0x1a0)]);})),_0x1bca42[_0x3e998b(0x1d4)](_0x454cc7);})),this[_0x1c754c(0x196)][_0x1c754c(0x15e)](this[_0x1c754c(0x1a0)])[_0x1c754c(0x184)](_0x11a717=>this[_0x1c754c(0x1cf)][_0x1c754c(0x159)]({'eventID':_0xfbd7ce[_0x1c754c(0x1bd)],'data':{'unitID':this[_0x1c754c(0x1a0)],'operations':{[_0x11a717['id']]:{'id':_0x11a717['id'],'params':JSON['stringify'](_0x11a717['params'])}}}},this[_0x1c754c(0x1a0)]));}[_0x37c48f(0x176)](){const _0x4fa1ae=_0x37c48f;var _0x1e6b49;this[_0x4fa1ae(0x1eb)][_0x4fa1ae(0x1d4)](_0x4fa1ae(0x17e)),(_0x1e6b49=this[_0x4fa1ae(0x152)])==null||_0x1e6b49[_0x4fa1ae(0x1dc)](),this[_0x4fa1ae(0x152)]=null;}['_startFollowing'](){const _0x59deb8=_0x37c48f;var _0x20e2fd;(_0x20e2fd=this[_0x59deb8(0x152)])==null||_0x20e2fd[_0x59deb8(0x1dc)](),this['_status$'][_0x59deb8(0x1d4)](_0x59deb8(0x189));}['_beIdle'](){const _0xb90c9=_0x37c48f;var _0x97f99b;this['_status$'][_0xb90c9(0x1d4)](_0xb90c9(0x17e)),(_0x97f99b=this[_0xb90c9(0x152)])==null||_0x97f99b['dispose'](),this[_0xb90c9(0x152)]=null;}['_stopFollowing'](){const _0x2100ba=_0x37c48f;var _0x4dc1e1;this['_status$'][_0x2100ba(0x1d4)](_0x2100ba(0x191)),(_0x4dc1e1=this['_commandDisposable'])==null||_0x4dc1e1[_0x2100ba(0x1dc)]();}['_handleOperation'](_0x31017b){const _0x2637e2=_0x37c48f;if([_0x2637e2(0x1e7),_0x2637e2(0x191),'offline'][_0x2637e2(0x181)](this[_0x2637e2(0x17d)])||!_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]||_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x161)]===this[_0x2637e2(0x1cf)][_0x2637e2(0x166)]())return;this[_0x2637e2(0x17d)]===_0x2637e2(0x17e)&&this['_startFollowing']();const _0x22448a=_0x31017b[_0x2637e2(0x1d2)][_0x2637e2(0x199)];Object[_0x2637e2(0x15a)](_0x22448a)[_0x2637e2(0x184)](_0x27d47b=>{const _0x586c00=_0x2637e2;this[_0x586c00(0x1a9)][_0x586c00(0x1a3)](_0x27d47b['id'],_0x27d47b[_0x586c00(0x19d)]?JSON[_0x586c00(0x1b7)](_0x27d47b[_0x586c00(0x19d)]):null,{'fromCollab':!0x0});});}[_0x37c48f(0x1a7)](){const _0x329270=_0x37c48f;var _0x6f6b0a;this[_0x329270(0x1eb)][_0x329270(0x1d4)]('offline'),(_0x6f6b0a=this['_commandDisposable'])==null||_0x6f6b0a[_0x329270(0x1dc)]();}[_0x37c48f(0x1c2)](){const _0x4dcb9b=_0x37c48f;this[_0x4dcb9b(0x1eb)][_0x4dcb9b(0x1d4)]('idle'),this[_0x4dcb9b(0x172)]();}};N=Y([_(0x2,_0x347dc0),_(0x3,_0x19be43(L)),_(0x4,_0x4afaea)],N);function Le(){const _0x1ea1a8=_0x37c48f,_0x22966e=_0x3d5a42(S),_0x2236d8=_0x3d5a42(_0x3fde3e),_0x5cd4cb=_0x38adb2(()=>_0x2236d8[_0x1ea1a8(0x16c)](_0x339dac[_0x1ea1a8(0x1b4)]),void 0x0,!0x1,[]),[_0x1611cd,_0x217445]=_0x105361(null),[_0x55b7dd,_0x20ae94]=_0x105361(c[_0x1ea1a8(0x1c3)]),_0x315ebb=_0x43a44d(null);return _0xf1fe(()=>(_0x5cd4cb&&_0x22966e[_0x1ea1a8(0x1a8)](_0x5cd4cb['getUnitId']())[_0x1ea1a8(0x1b0)](_0x3c2aef=>{_0x217445(_0x3c2aef),_0x315ebb['current']=_0x3c2aef['status$']['subscribe'](_0x3e5d2d=>{_0x20ae94(_0x3e5d2d);});}),()=>{const _0x819182=_0x1ea1a8;var _0x258e73;(_0x258e73=_0x315ebb[_0x819182(0x163)])==null||_0x258e73[_0x819182(0x1af)](),_0x315ebb[_0x819182(0x163)]=null;}),[_0x5cd4cb,_0x22966e]),_0x1611cd?_0x1c493a(_0x271335,{'align':'end','disabled':_0x55b7dd===c[_0x1ea1a8(0x18a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1c493a(Re,{'status':_0x55b7dd,'coordinator':_0x1611cd}),'children':_0x1c493a(_0x1ea1a8(0x1c0),{'className':_0x4fc2f0(_0x1ea1a8(0x1da),{'univer-cursor-not-allowed':_0x55b7dd===c[_0x1ea1a8(0x18a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7dd!==c['OFFLINE']}),'type':_0x1ea1a8(0x1c0),'children':_0x1c493a(W,{'className':_0x1ea1a8(0x1ea)})})}):null;}function Re(_0x37a44d){const _0x147e21=_0x37c48f,{status:_0x4931d6,coordinator:_0x557276}=_0x37a44d;switch(_0x4931d6){case c[_0x147e21(0x1c3)]:return _0x1c493a($e,{'coordinator':_0x557276});case c[_0x147e21(0x1aa)]:return _0x1c493a(xe,{'coordinator':_0x557276});case c[_0x147e21(0x19e)]:return _0x1c493a(Pe,{'coordinator':_0x557276});case c['OFFLINE']:return _0x1c493a(Te,{});case c[_0x147e21(0x1a1)]:return _0x1c493a(Ae,{'coordinator':_0x557276});default:return null;}}function $e(_0x391410){const _0x40007c=_0x37c48f,{coordinator:_0x5774ff}=_0x391410;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x40007c(0x16b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40007c(0x1a6)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5774ff[_0x40007c(0x1d9)](),'children':_0x40007c(0x18c)})]});}function xe(_0xcdaabc){const _0x131849=_0x37c48f,{coordinator:_0x5a040e}=_0xcdaabc;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x131849(0x16b),{'className':_0x131849(0x190),'children':_0x131849(0x17c)}),_0x1c493a(_0x47c0d7,{'onClick':()=>_0x5a040e['stopFollowing'](),'children':_0x131849(0x1ee)})]});}function Pe(_0x1887a6){const _0x347485=_0x37c48f,{coordinator:_0x1a1a0b}=_0x1887a6;return _0x151147(_0xc16d68,{'children':[_0x1c493a('div',{'className':_0x347485(0x190),'children':_0x347485(0x160)}),_0x1c493a(_0x47c0d7,{'variant':_0x347485(0x15b),'onClick':()=>_0x1a1a0b[_0x347485(0x195)](),'children':_0x347485(0x180)})]});}function Ae(_0x412684){const _0x4e2d21=_0x37c48f,{coordinator:_0x1d6da3}=_0x412684;return _0x151147(_0xc16d68,{'children':[_0x1c493a(_0x4e2d21(0x16b),{'className':_0x4e2d21(0x190),'children':_0x4e2d21(0x1d8)}),_0x1c493a(_0x47c0d7,{'variant':_0x4e2d21(0x1c9),'onClick':()=>_0x1d6da3['stopPresenting'](),'children':_0x4e2d21(0x19c)})]});}function Te(){return _0x1c493a(_0xc16d68,{'children':'You\x27are\x20offline.'});}function _0xe409(_0xaa3080,_0x1dee92){_0xaa3080=_0xaa3080-0x152;const _0x33ed51=_0x33ed();let _0xe409db=_0x33ed51[_0xaa3080];return _0xe409db;}var Fe=Object[_0x37c48f(0x168)],He=(_0x230e79,_0x12bf92,_0x2e8b43,_0x205585)=>{const _0x88815=_0x37c48f;for(var _0x20393d=_0x205585>0x1?void 0x0:_0x205585?Fe(_0x12bf92,_0x2e8b43):_0x12bf92,_0x13c93a=_0x230e79[_0x88815(0x18e)]-0x1,_0x13d586;_0x13c93a>=0x0;_0x13c93a--)(_0x13d586=_0x230e79[_0x13c93a])&&(_0x20393d=_0x13d586(_0x20393d)||_0x20393d);return _0x20393d;},A=(_0x10527a,_0x4d9110)=>(_0x4994de,_0x51e168)=>_0x4d9110(_0x4994de,_0x51e168,_0x10527a);let m=class extends _0x56ac81{constructor(_0x4bb6d3,_0x5d888e){const _0x58644e=_0x37c48f;super(),this[_0x58644e(0x1c6)]=_0x4bb6d3,this[_0x58644e(0x175)]=_0x5d888e,this[_0x58644e(0x1ba)]();}[_0x37c48f(0x1ba)](){const _0x47fac4=_0x37c48f;this[_0x47fac4(0x1d3)](this[_0x47fac4(0x175)][_0x47fac4(0x158)](_0x1d340b[_0x47fac4(0x1c1)],()=>_0x573695(Le,this[_0x47fac4(0x1c6)])));}};m=He([A(0x0,_0x19be43(_0x26383e)),A(0x1,_0x5ded7e)],m);const ye=_0x37c48f(0x1ca),T={};var Ue=Object[_0x37c48f(0x168)],Ve=(_0x540eb4,_0x2a9b18,_0x455760,_0x812682)=>{for(var _0x37e0d4=_0x812682>0x1?void 0x0:_0x812682?Ue(_0x2a9b18,_0x455760):_0x2a9b18,_0x1f81a3=_0x540eb4['length']-0x1,_0x1ca031;_0x1f81a3>=0x0;_0x1f81a3--)(_0x1ca031=_0x540eb4[_0x1f81a3])&&(_0x37e0d4=_0x1ca031(_0x37e0d4)||_0x37e0d4);return _0x37e0d4;},je=(_0x225310,_0x4a766c)=>(_0x4352a8,_0x7b2082)=>_0x4a766c(_0x4352a8,_0x7b2082,_0x225310);let I=class extends _0x56ac81{constructor(_0x1ca355){const _0x21146b=_0x37c48f;super(),this[_0x21146b(0x196)]=_0x1ca355,this['_init']();}['_init'](){const _0x1e41bd=_0x37c48f;[_0x3e9230['id'],_0x10ff22['id'],_0x382fbd['id']][_0x1e41bd(0x184)](_0x442392=>{const _0x5a4ee6=_0x1e41bd;this[_0x5a4ee6(0x1d3)](this['_liveShareService']['registerSharedOperation'](_0x442392));});}};I=Ve([je(0x0,_0x19be43(L))],I);var Me=Object[_0x37c48f(0x17f)],ke=Object[_0x37c48f(0x168)],Ge=(_0x4d96d2,_0x46dd97,_0x578493)=>_0x46dd97 in _0x4d96d2?Me(_0x4d96d2,_0x46dd97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x578493}):_0x4d96d2[_0x46dd97]=_0x578493,We=(_0x124c68,_0x4ea24f,_0x4db16c,_0x23dbd8)=>{const _0x16e381=_0x37c48f;for(var _0x4bbc4c=_0x23dbd8>0x1?void 0x0:_0x23dbd8?ke(_0x4ea24f,_0x4db16c):_0x4ea24f,_0x8b876f=_0x124c68[_0x16e381(0x18e)]-0x1,_0x1828b3;_0x8b876f>=0x0;_0x8b876f--)(_0x1828b3=_0x124c68[_0x8b876f])&&(_0x4bbc4c=_0x1828b3(_0x4bbc4c)||_0x4bbc4c);return _0x4bbc4c;},F=(_0x2ea2ad,_0x5bd073)=>(_0x23bb14,_0x3baa36)=>_0x5bd073(_0x23bb14,_0x3baa36,_0x2ea2ad),B=(_0x177243,_0x12ee22,_0x5f074d)=>Ge(_0x177243,typeof _0x12ee22!='symbol'?_0x12ee22+'':_0x12ee22,_0x5f074d);const Ye=_0x37c48f(0x198);let b=class extends _0x541451{constructor(_0x42ba05=T,_0x18530,_0x4a93fd){const _0x22037d=_0x37c48f;super(),this[_0x22037d(0x1e1)]=_0x42ba05,this[_0x22037d(0x1c6)]=_0x18530,this[_0x22037d(0x1c5)]=_0x4a93fd;const {..._0x28cc9a}=_0x367c89({},T,this[_0x22037d(0x1e1)]);this[_0x22037d(0x1c5)][_0x22037d(0x16e)](ye,_0x28cc9a);}['onStarting'](){const _0x66a57b=_0x37c48f;_0x5a7450(this[_0x66a57b(0x1c6)],_0x3edeed([[L],[S],[I],[m]],this['_config']['override'])),_0x427e11(this[_0x66a57b(0x1c6)],[[I]]);}[_0x37c48f(0x1b9)](){const _0x2a4dcb=_0x37c48f;_0x427e11(this[_0x2a4dcb(0x1c6)],[[m]]);}};B(b,_0x37c48f(0x1a2),_0x339dac[_0x37c48f(0x1f3)]),B(b,'pluginName',Ye),b=We([_0x2d581b(_0x32695c),F(0x1,_0x19be43(_0x26383e)),F(0x2,_0x347dc0)],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(_0x4b7d6e,_0x53400c){const _0x433885=_0x53cd,_0x250ecd=_0x4b7d6e();while(!![]){try{const _0x54aefc=-parseInt(_0x433885(0x80))/0x1+parseInt(_0x433885(0x9b))/0x2+parseInt(_0x433885(0x73))/0x3*(-parseInt(_0x433885(0x7a))/0x4)+-parseInt(_0x433885(0x96))/0x5*(parseInt(_0x433885(0x7b))/0x6)+-parseInt(_0x433885(0x6c))/0x7*(-parseInt(_0x433885(0x84))/0x8)+-parseInt(_0x433885(0x78))/0x9*(-parseInt(_0x433885(0x8d))/0xa)+-parseInt(_0x433885(0x8b))/0xb;if(_0x54aefc===_0x53400c)break;else _0x250ecd['push'](_0x250ecd['shift']());}catch(_0x54960f){_0x250ecd['push'](_0x250ecd['shift']());}}}(_0x51b6,0x4221f),function(_0x493be2,_0x5a00a3){const _0x2ba48d=_0x53cd;typeof exports==_0x2ba48d(0x8c)&&typeof module<'u'?_0x5a00a3(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==_0x2ba48d(0x95)&&define[_0x2ba48d(0x7d)]?define([_0x2ba48d(0x8e),_0x2ba48d(0x89),_0x2ba48d(0x88),'@univerjs/sheets-ui',_0x2ba48d(0x90),_0x2ba48d(0x6f)],_0x5a00a3):(_0x493be2=typeof globalThis<'u'?globalThis:_0x493be2||self,_0x5a00a3(_0x493be2[_0x2ba48d(0x71)],_0x493be2[_0x2ba48d(0x8f)],_0x493be2[_0x2ba48d(0x68)],_0x493be2['UniverSheetsUi'],_0x493be2[_0x2ba48d(0x65)],_0x493be2[_0x2ba48d(0x99)]));}(this,function(_0x2a6d35,_0x1a94c1,_0x5829e5,_0x254a83,_0x5de0cf,_0x1b0429){'use strict';const _0x39a1a7=_0x53cd;class _0x18180d extends _0x5de0cf[_0x39a1a7(0x77)]{[_0x39a1a7(0x79)](_0x269a0f,_0x2e5321,_0x5998c0,_0x39985d,_0x241e7e){const _0xb2bd5a=_0x39a1a7,_0x5eece1=_0x269a0f['get'](_0x2a6d35['LiveShareController']),_0x1a55b7=_0x269a0f['get'](_0x1a94c1[_0xb2bd5a(0x66)]),_0x1facf3=_0x2e5321[_0xb2bd5a(0x72)](),_0x4241d8=_0x2e5321[_0xb2bd5a(0x9c)](),_0x2c7d33=_0x5eece1[_0xb2bd5a(0x82)](_0x1facf3);(_0x2c7d33==null?void 0x0:_0x2c7d33['getStatus']())!==_0x2a6d35[_0xb2bd5a(0x81)][_0xb2bd5a(0x91)]||(_0x5998c0['getSheetId']()!==_0x4241d8[_0xb2bd5a(0x76)]()&&this[_0xb2bd5a(0x7f)][_0xb2bd5a(0x87)](_0x5829e5[_0xb2bd5a(0x6e)]['id'],{'unitId':_0x1facf3,'subUnitId':_0x5998c0[_0xb2bd5a(0x76)]()}),!_0x1a55b7[_0xb2bd5a(0x7c)](_0x1facf3))||_0x241e7e[_0xb2bd5a(0x97)](_0x254a83[_0xb2bd5a(0x98)]['id'],{'unitId':_0x2e5321['getUnitId'](),'sheetId':_0x5998c0['getSheetId'](),'sheetViewStartRow':_0x39985d[_0xb2bd5a(0x69)],'sheetViewStartColumn':_0x39985d[_0xb2bd5a(0x74)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5de0cf[_0x39a1a7(0x77)][_0x39a1a7(0x83)](_0x18180d);class _0x2ab3c7 extends _0x1b0429[_0x39a1a7(0x94)]{['getLiveShareStatus'](){const _0x247ce6=_0x39a1a7;var _0x3c3ec3,_0x120242;const _0x23d4cb=this[_0x247ce6(0x6d)][_0x247ce6(0x92)](_0x2a6d35[_0x247ce6(0x64)]),_0x275d29=(_0x3c3ec3=this[_0x247ce6(0x93)]())==null?void 0x0:_0x3c3ec3['getId']();if(!_0x275d29)throw new Error(_0x247ce6(0x6b));const _0x1cb456=_0x23d4cb[_0x247ce6(0x82)](_0x275d29);return(_0x120242=_0x1cb456==null?void 0x0:_0x1cb456[_0x247ce6(0x85)]())!=null?_0x120242:_0x2a6d35[_0x247ce6(0x81)][_0x247ce6(0x86)];}[_0x39a1a7(0x75)](){const _0x2a7423=_0x39a1a7;var _0x25c617;const _0x3562ef=this[_0x2a7423(0x6d)]['get'](_0x2a6d35[_0x2a7423(0x64)]),_0x3b665b=(_0x25c617=this[_0x2a7423(0x93)]())==null?void 0x0:_0x25c617[_0x2a7423(0x8a)]();if(!_0x3b665b)throw new Error(_0x2a7423(0x6b));const _0x13afe4=_0x3562ef[_0x2a7423(0x82)](_0x3b665b);if(!_0x13afe4)throw new Error(_0x2a7423(0x6a));_0x13afe4['startFollowing']();}[_0x39a1a7(0x7e)](){const _0xb7b84f=_0x39a1a7;var _0x121de4;const _0x4d7793=this[_0xb7b84f(0x6d)][_0xb7b84f(0x92)](_0x2a6d35[_0xb7b84f(0x64)]),_0x51bd10=(_0x121de4=this[_0xb7b84f(0x93)]())==null?void 0x0:_0x121de4['getId']();if(!_0x51bd10)throw new Error('No\x20active\x20workbook\x20found.');const _0x42907d=_0x4d7793[_0xb7b84f(0x82)](_0x51bd10);if(!_0x42907d)throw new Error(_0xb7b84f(0x6a));_0x42907d[_0xb7b84f(0x7e)]();}[_0x39a1a7(0x67)](){const _0xf5c575=_0x39a1a7;var _0x243ec6;const _0x401d20=this['_injector'][_0xf5c575(0x92)](_0x2a6d35[_0xf5c575(0x64)]),_0x4d1838=(_0x243ec6=this['getActiveWorkbook']())==null?void 0x0:_0x243ec6[_0xf5c575(0x8a)]();if(!_0x4d1838)throw new Error('No\x20active\x20workbook\x20found.');const _0x1786f0=_0x401d20[_0xf5c575(0x82)](_0x4d1838);if(!_0x1786f0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1786f0[_0xf5c575(0x70)]();}['stopPresenting'](){const _0x290448=_0x39a1a7;var _0x658dd5;const _0x235215=this[_0x290448(0x6d)][_0x290448(0x92)](_0x2a6d35[_0x290448(0x64)]),_0x48c3be=(_0x658dd5=this[_0x290448(0x93)]())==null?void 0x0:_0x658dd5[_0x290448(0x8a)]();if(!_0x48c3be)throw new Error(_0x290448(0x6b));const _0x298b3f=_0x235215[_0x290448(0x82)](_0x48c3be);if(!_0x298b3f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x298b3f['stopPresenting']();}}_0x1b0429['FUniver']['extend'](_0x2ab3c7);class _0x347a4e extends _0x1b0429[_0x39a1a7(0x9a)]{get['LiveShareStatusEnum'](){return _0x2a6d35['LiveShareStatus'];}}_0x1b0429[_0x39a1a7(0x9a)]['extend'](_0x347a4e);}));function _0x53cd(_0x4e4c01,_0x3c2104){_0x4e4c01=_0x4e4c01-0x64;const _0x51b69b=_0x51b6();let _0x53cd0b=_0x51b69b[_0x4e4c01];return _0x53cd0b;}function _0x51b6(){const _0x3398ca=['20920euTtrm','getStatus','IDLE','executeCommand','@univerjs/sheets','@univerjs/engine-render','getId','1764928frBCNp','object','2260790fkLwtx','@univerjs-pro/live-share','UniverEngineRender','@univerjs/sheets/facade','PRESENTING','get','getActiveWorkbook','FUniver','function','5emFzPn','syncExecuteCommand','SetScrollOperation','UniverCoreFacade','FEnum','1014104mpDHgi','getActiveSheet','LiveShareController','UniverSheetsFacade','IRenderManagerService','startPresenting','UniverSheets','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','1057XQMaNI','_injector','SetWorksheetActiveOperation','@univerjs/core/facade','tryStartPresenting','UniverProLiveShare','getUnitId','759219mdaIxZ','startColumn','startFollowing','getSheetId','FRange','9gjBsoc','_initialize','4ZqwSXY','88800MlUwcO','getRenderById','amd','stopFollowing','_commandService','428796DdbeiI','LiveShareStatus','getLiveShareCoordinatorSync','extend'];_0x51b6=function(){return _0x3398ca;};return _0x51b6();}
1
+ (function(_0x351bb0,_0x5aa1d0){const _0x2201d3=_0x4625,_0xd07dfd=_0x351bb0();while(!![]){try{const _0x19a054=-parseInt(_0x2201d3(0x1b4))/0x1*(-parseInt(_0x2201d3(0x1c1))/0x2)+-parseInt(_0x2201d3(0x1c8))/0x3+parseInt(_0x2201d3(0x1cd))/0x4+parseInt(_0x2201d3(0x1b5))/0x5+parseInt(_0x2201d3(0x1b9))/0x6+-parseInt(_0x2201d3(0x1c2))/0x7*(parseInt(_0x2201d3(0x1b6))/0x8)+-parseInt(_0x2201d3(0x1ac))/0x9;if(_0x19a054===_0x5aa1d0)break;else _0xd07dfd['push'](_0xd07dfd['shift']());}catch(_0x21423f){_0xd07dfd['push'](_0xd07dfd['shift']());}}}(_0x116a,0xeb0a6),function(_0x520eb5,_0x68c8de){const _0x3a6024=_0x4625;typeof exports==_0x3a6024(0x1be)&&typeof module<'u'?_0x68c8de(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==_0x3a6024(0x1ae)&&define[_0x3a6024(0x1c7)]?define([_0x3a6024(0x1d2),_0x3a6024(0x1d8),_0x3a6024(0x1ce),_0x3a6024(0x1c6),'@univerjs/sheets/facade',_0x3a6024(0x1d0)],_0x68c8de):(_0x520eb5=typeof globalThis<'u'?globalThis:_0x520eb5||self,_0x68c8de(_0x520eb5[_0x3a6024(0x1ca)],_0x520eb5[_0x3a6024(0x1d6)],_0x520eb5[_0x3a6024(0x1a7)],_0x520eb5['UniverSheetsUi'],_0x520eb5[_0x3a6024(0x1aa)],_0x520eb5['UniverCoreFacade']));}(this,function(_0x536deb,_0x495ed0,_0x797dbf,_0x42d561,_0x133aaf,_0x1f9887){'use strict';const _0x582fd6=_0x4625;class _0x4b4201 extends _0x133aaf['FRange']{['_initialize'](_0x382676,_0x538d88,_0x11b598,_0x6b508c,_0x5b07dc){const _0x3b0840=_0x4625,_0x1d7d37=_0x382676['get'](_0x536deb[_0x3b0840(0x1d7)]),_0x1c2058=_0x382676['get'](_0x495ed0[_0x3b0840(0x1b2)]),_0x1702d5=_0x538d88[_0x3b0840(0x1b7)](),_0x4e7e34=_0x538d88[_0x3b0840(0x1c0)](),_0x25fa94=_0x1d7d37[_0x3b0840(0x1cf)](_0x1702d5);(_0x25fa94==null?void 0x0:_0x25fa94[_0x3b0840(0x1cb)]())!==_0x536deb['LiveShareStatus'][_0x3b0840(0x1da)]||(_0x11b598[_0x3b0840(0x1bc)]()!==_0x4e7e34[_0x3b0840(0x1bc)]()&&this[_0x3b0840(0x1cc)]['executeCommand'](_0x797dbf[_0x3b0840(0x1b1)]['id'],{'unitId':_0x1702d5,'subUnitId':_0x11b598[_0x3b0840(0x1bc)]()}),!_0x1c2058['getRenderById'](_0x1702d5))||_0x5b07dc[_0x3b0840(0x1b8)](_0x42d561[_0x3b0840(0x1c4)]['id'],{'unitId':_0x538d88['getUnitId'](),'sheetId':_0x11b598[_0x3b0840(0x1bc)](),'sheetViewStartRow':_0x6b508c[_0x3b0840(0x1ab)],'sheetViewStartColumn':_0x6b508c[_0x3b0840(0x1af)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x133aaf[_0x582fd6(0x1ba)]['extend'](_0x4b4201);class _0x25ae0d extends _0x1f9887[_0x582fd6(0x1d3)]{[_0x582fd6(0x1bf)](){const _0x5c2f76=_0x582fd6;var _0x486118,_0x421712;const _0x518d4a=this[_0x5c2f76(0x1a8)][_0x5c2f76(0x1c5)](_0x536deb[_0x5c2f76(0x1d7)]),_0x5da0b9=(_0x486118=this[_0x5c2f76(0x1b3)]())==null?void 0x0:_0x486118[_0x5c2f76(0x1c9)]();if(!_0x5da0b9)throw new Error('No\x20active\x20workbook\x20found.');const _0x572f88=_0x518d4a[_0x5c2f76(0x1cf)](_0x5da0b9);return(_0x421712=_0x572f88==null?void 0x0:_0x572f88[_0x5c2f76(0x1cb)]())!=null?_0x421712:_0x536deb['LiveShareStatus']['IDLE'];}[_0x582fd6(0x1d1)](){const _0x217bbd=_0x582fd6;var _0x4c08b6;const _0xf7aad6=this['_injector'][_0x217bbd(0x1c5)](_0x536deb[_0x217bbd(0x1d7)]),_0x58f272=(_0x4c08b6=this[_0x217bbd(0x1b3)]())==null?void 0x0:_0x4c08b6[_0x217bbd(0x1c9)]();if(!_0x58f272)throw new Error(_0x217bbd(0x1bb));const _0x2da593=_0xf7aad6['getLiveShareCoordinatorSync'](_0x58f272);if(!_0x2da593)throw new Error(_0x217bbd(0x1bd));_0x2da593[_0x217bbd(0x1d1)]();}[_0x582fd6(0x1d4)](){const _0x2ead18=_0x582fd6;var _0x2c2236;const _0x2a18d5=this['_injector']['get'](_0x536deb[_0x2ead18(0x1d7)]),_0x1d7d12=(_0x2c2236=this[_0x2ead18(0x1b3)]())==null?void 0x0:_0x2c2236[_0x2ead18(0x1c9)]();if(!_0x1d7d12)throw new Error(_0x2ead18(0x1bb));const _0x3301df=_0x2a18d5['getLiveShareCoordinatorSync'](_0x1d7d12);if(!_0x3301df)throw new Error(_0x2ead18(0x1bd));_0x3301df['stopFollowing']();}[_0x582fd6(0x1ad)](){const _0x38d986=_0x582fd6;var _0x11a337;const _0x5cc98f=this[_0x38d986(0x1a8)]['get'](_0x536deb[_0x38d986(0x1d7)]),_0x44e957=(_0x11a337=this[_0x38d986(0x1b3)]())==null?void 0x0:_0x11a337[_0x38d986(0x1c9)]();if(!_0x44e957)throw new Error(_0x38d986(0x1bb));const _0x342a7f=_0x5cc98f[_0x38d986(0x1cf)](_0x44e957);if(!_0x342a7f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x342a7f[_0x38d986(0x1d9)]();}['stopPresenting'](){const _0x37b041=_0x582fd6;var _0x2a4a24;const _0x3b52a3=this['_injector'][_0x37b041(0x1c5)](_0x536deb['LiveShareController']),_0x38d14d=(_0x2a4a24=this[_0x37b041(0x1b3)]())==null?void 0x0:_0x2a4a24[_0x37b041(0x1c9)]();if(!_0x38d14d)throw new Error(_0x37b041(0x1bb));const _0x4d2b42=_0x3b52a3['getLiveShareCoordinatorSync'](_0x38d14d);if(!_0x4d2b42)throw new Error(_0x37b041(0x1bd));_0x4d2b42[_0x37b041(0x1c3)]();}}_0x1f9887['FUniver'][_0x582fd6(0x1a9)](_0x25ae0d);class _0x5f2ea7 extends _0x1f9887['FEnum']{get['LiveShareStatusEnum'](){const _0xbaa14a=_0x582fd6;return _0x536deb[_0xbaa14a(0x1d5)];}}_0x1f9887[_0x582fd6(0x1b0)]['extend'](_0x5f2ea7);}));function _0x4625(_0x3eed7f,_0xe1264c){_0x3eed7f=_0x3eed7f-0x1a7;const _0x116a7a=_0x116a();let _0x4625fe=_0x116a7a[_0x3eed7f];return _0x4625fe;}function _0x116a(){const _0x1ea847=['@univerjs-pro/live-share','FUniver','stopFollowing','LiveShareStatus','UniverEngineRender','LiveShareController','@univerjs/engine-render','tryStartPresenting','PRESENTING','UniverSheets','_injector','extend','UniverSheetsFacade','startRow','24810669MvPARz','startPresenting','function','startColumn','FEnum','SetWorksheetActiveOperation','IRenderManagerService','getActiveWorkbook','6xyRWaj','9070785hEIvVs','8guRbmo','getUnitId','syncExecuteCommand','8670510Clhkzw','FRange','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','getLiveShareStatus','getActiveSheet','313126iXdlUe','8874803kqApdm','stopPresenting','SetScrollOperation','get','@univerjs/sheets-ui','amd','2286477NLFbgl','getId','UniverProLiveShare','getStatus','_commandService','6203340yUoPUj','@univerjs/sheets','getLiveShareCoordinatorSync','@univerjs/core/facade','startFollowing'];_0x116a=function(){return _0x1ea847;};return _0x116a();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xac2f(_0x1b480b,_0x5eae69){_0x1b480b=_0x1b480b-0x1ae;const _0x4a3996=_0x4a39();let _0xac2f9e=_0x4a3996[_0x1b480b];return _0xac2f9e;}function _0x4a39(){const _0x28dc4d=['80oXgkZB','UniverDesign','LIVESHARE_NEW_HOST','_handleNewHost','useRef','has','unitId','Disposable','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','button','use','defs','react','fill','sheet','live-share.config','_startFollowing','length','operators','You\x27are\x20offline.','createElement','assign','useEffect','registerComponent','setConfig','SessionStatus','dispose','_mountLiveShare','UniverSheets','symbol','NOT_FOLLOWING','sessionStatus$','asObservable','LiveShareCoordinator','trim','presenting','LIVESHARE_OPERATION','text','SAME_OPERATION_SHARE_INTERVAL','@univerjs/sheets-ui','object','IUniverInstanceService','_unitID','UNIVER_LIVE_SHARE_PLUGIN','send','Injector','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','createInstance','idle','displayName','IUIPartsService','_config','params','tag','Module','_handleOperation','operations','InsertSheetMutation','62590HuEkfl','UNIVER_UNKNOWN','executeCommand','onCommandExecuted','onRendered','_collabSessionService','none','BuiltInUIPart','useObservable','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','rxjs','string','registerDependencies','startFollowing','1em','Start','getStatus','_stopPresenting','UniverIcon','presenter','merge','getOwnPropertyDescriptor','default','not-following','jsx','unsubscribe','add','UniverLiveSharePlugin','SetWorksheetActiveOperation','svg','NEW_CHANGESETS','from','_stopFollowing','registerSharedOperation','UniverSheetsUi','_commandService','LIVESHARE_TERMINATE','path','stopFollowing','xlink:href','throttleTime','getCurrentTypeOfUnit$','delete','values','children','UniverUi','connectInjector','LIVESHARE_FETCH_OPERATIONS','1117389Ksakgm','map','SetScrollOperation','Button','getTypeOfUnitDisposed$','_init','touchDependencies','currentColor','subscribe','useDependency','LiveShareController','univerjs-icon\x20univerjs-icon-','_univerInstanceService','FOLLOWING','_handleNewChangeSets','shouldShareOperation','complete','status$','toDisposable','useState','forEach','Inject','_handleTerminate','@univerjs/sheets','getInitialStates','mask','idSuffix','init','IDLE','331590QmVXOp','RxDisposable','CommandType','offline','ICommandService','next','random','amd','disposeWithMe','Present\x20this\x20document','following','_startLiveShareCoordinator','_sharedOperations','1048884RnGGUm','136146BqwSxc','event$','registerInitialStateReporter','jsxs','_beIdle','@univerjs/core','get','HEADER_MENU','reverse','9TqfuuO','mutations','React','PRESENTING','7245820krwUJL','@univerjs/design','UNIVER_SHEET','getValue','react/jsx-runtime','_startPresenting','0\x200\x2017\x2017','UniverCore','DesktopLiveShareController','data','colorChannel1','Stop\x20following','requireSession','UniverProCollaboration','DisposableCollection','evenodd','_configService','_uiPartsService','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','_fetchOperations','defineProperty','dispose$','includes','pipe','exports','_commandDisposable','stopPresenting','Start\x20following','_liveShareService','div','DependentOn','stringify','_collabSession','substring','then','mergeOverrideWithDependencies','CollaborationEvent','LIVESHARE_REQUEST_HOST','univer-size-4','6KzxJLy','BehaviorSubject','getMemberID','You\x27re\x20following\x20the\x20presenter','_reporters','_entities','OFFLINE','current','getLiveShareCoordinatorSync','_status$','attrs','ONLINE','UniverCollaborationClientPlugin','replace','363400UouZbP','_presenter','_injector','toString','UniverInstanceType','_status','CollaborationSessionService','getUnitId','clsx','toStringTag','Fragment','IConfigService','takeUntil','find'];_0x4a39=function(){return _0x28dc4d;};return _0x4a39();}(function(_0x400650,_0x172601){const _0xacd9ac=_0xac2f,_0x576860=_0x400650();while(!![]){try{const _0x515a09=-parseInt(_0xacd9ac(0x217))/0x1*(-parseInt(_0xacd9ac(0x270))/0x2)+parseInt(_0xacd9ac(0x1d5))/0x3+-parseInt(_0xacd9ac(0x1e2))/0x4+-parseInt(_0xacd9ac(0x233))/0x5*(parseInt(_0xacd9ac(0x1e3))/0x6)+-parseInt(_0xacd9ac(0x1b8))/0x7+-parseInt(_0xacd9ac(0x225))/0x8*(parseInt(_0xacd9ac(0x1ec))/0x9)+parseInt(_0xacd9ac(0x1f0))/0xa;if(_0x515a09===_0x172601)break;else _0x576860['push'](_0x576860['shift']());}catch(_0x3dd518){_0x576860['push'](_0x576860['shift']());}}}(_0x4a39,0x2f029),function(_0x42ebb6,_0x181594){const _0x102e8d=_0xac2f;typeof exports==_0x102e8d(0x25b)&&typeof module<'u'?_0x181594(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[_0x102e8d(0x1dc)]?define([_0x102e8d(0x208),_0x102e8d(0x1e8),'@univerjs/ui',_0x102e8d(0x1f4),_0x102e8d(0x1f1),_0x102e8d(0x23f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x102e8d(0x1cf),_0x102e8d(0x27b),'rxjs/operators',_0x102e8d(0x25a)],_0x181594):(_0x42ebb6=typeof globalThis<'u'?globalThis:_0x42ebb6||self,_0x181594(_0x42ebb6['UniverProLiveShare']={},_0x42ebb6[_0x102e8d(0x1f7)],_0x42ebb6[_0x102e8d(0x1b5)],_0x42ebb6['React'],_0x42ebb6[_0x102e8d(0x234)],_0x42ebb6[_0x102e8d(0x1ee)],_0x42ebb6[_0x102e8d(0x1fd)],_0x42ebb6['UniverProCollaborationClient'],_0x42ebb6[_0x102e8d(0x24f)],_0x42ebb6[_0x102e8d(0x27b)],_0x42ebb6[_0x102e8d(0x27b)][_0x102e8d(0x245)],_0x42ebb6[_0x102e8d(0x293)]));}(this,function(_0x2c0109,_0x545d76,_0x1a8727,_0x20946c,_0x32ca4b,_0x28aa9a,_0x2352d3,_0x3f0a5f,_0x19e44f,_0x134f05,_0x13542d,_0x5696ca){'use strict';const _0x415a73=_0xac2f;var _0x26a658=Object[_0x415a73(0x204)],_0x452534=(_0x34291f,_0x16a403,_0x7f79e8)=>_0x16a403 in _0x34291f?_0x26a658(_0x34291f,_0x16a403,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f79e8}):_0x34291f[_0x16a403]=_0x7f79e8,_0x44028a=(_0x2441f0,_0x31eea4,_0x969adf)=>_0x452534(_0x2441f0,typeof _0x31eea4!=_0x415a73(0x250)?_0x31eea4+'':_0x31eea4,_0x969adf);function _0x311f12({ref:_0x3d71a4,..._0x78efbf}){const _0x4d3cd8=_0x415a73,{icon:_0x5f1cba,id:_0x5e593a,className:_0xbcc6a1,extend:_0x534b8d,..._0x1a7293}=_0x78efbf,_0x1ee0c0=(_0x4d3cd8(0x1c3)+_0x5e593a+'\x20'+(_0xbcc6a1||''))[_0x4d3cd8(0x255)](),_0x4ab7d4=_0x28aa9a[_0x4d3cd8(0x237)]('_'+_0x38864b());return _0x16fee1(_0x5f1cba,''+_0x5e593a,{'defIds':_0x5f1cba['defIds'],'idSuffix':_0x4ab7d4['current']},{'ref':_0x3d71a4,'className':_0x1ee0c0,..._0x1a7293},_0x534b8d);}function _0x16fee1(_0x7cfb25,_0x2bfda2,_0x143e60,_0x3e7987,_0xf6e73c){const _0x597a08=_0x415a73;return _0x28aa9a['createElement'](_0x7cfb25[_0x597a08(0x26b)],{'key':_0x2bfda2,..._0x331047(_0x7cfb25,_0x143e60,_0xf6e73c),..._0x3e7987},(_0x25e68d(_0x7cfb25,_0x143e60)[_0x597a08(0x1b4)]||[])[_0x597a08(0x1b9)]((_0x570d57,_0x44e152)=>_0x16fee1(_0x570d57,_0x2bfda2+'-'+_0x7cfb25[_0x597a08(0x26b)]+'-'+_0x44e152,_0x143e60,void 0x0,_0xf6e73c)));}function _0x331047(_0x2d6867,_0x522b47,_0x40d96a){const _0x25e7c9=_0x415a73,_0x30087f={..._0x2d6867['attrs']};_0x40d96a!=null&&_0x40d96a[_0x25e7c9(0x1fa)]&&_0x30087f[_0x25e7c9(0x240)]===_0x25e7c9(0x1fa)&&(_0x30087f['fill']=_0x40d96a['colorChannel1']),_0x2d6867['tag']===_0x25e7c9(0x1d1)&&_0x30087f['id']&&(_0x30087f['id']=_0x30087f['id']+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x3dcf2d,_0x191950])=>{const _0x78c768=_0x25e7c9;_0x3dcf2d===_0x78c768(0x1d1)&&typeof _0x191950==_0x78c768(0x27c)&&(_0x30087f[_0x3dcf2d]=_0x191950[_0x78c768(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x78c768(0x1d2)]+')'));});const {defIds:_0x2a86cf}=_0x522b47;return!_0x2a86cf||_0x2a86cf['length']===0x0||(_0x2d6867['tag']===_0x25e7c9(0x23d)&&_0x30087f['xlink:href']&&(_0x30087f[_0x25e7c9(0x1af)]=_0x30087f[_0x25e7c9(0x1af)]+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x382210,_0x49401c])=>{const _0x306932=_0x25e7c9;typeof _0x49401c==_0x306932(0x27c)&&(_0x30087f[_0x382210]=_0x49401c[_0x306932(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x306932(0x1d2)]+')'));})),_0x30087f;}function _0x25e68d(_0x14457d,_0x551a91){const _0x1468ba=_0x415a73;var _0x2183c7;const {defIds:_0x46bf1a}=_0x551a91;return!_0x46bf1a||_0x46bf1a[_0x1468ba(0x244)]===0x0?_0x14457d:_0x14457d[_0x1468ba(0x26b)]===_0x1468ba(0x23e)&&((_0x2183c7=_0x14457d[_0x1468ba(0x1b4)])!=null&&_0x2183c7[_0x1468ba(0x244)])?{..._0x14457d,'children':_0x14457d[_0x1468ba(0x1b4)][_0x1468ba(0x1b9)](_0x150c43=>typeof _0x150c43[_0x1468ba(0x221)]['id']==_0x1468ba(0x27c)&&_0x46bf1a&&_0x46bf1a[_0x1468ba(0x206)](_0x150c43[_0x1468ba(0x221)]['id'])?{..._0x150c43,'attrs':{..._0x150c43[_0x1468ba(0x221)],'id':_0x150c43[_0x1468ba(0x221)]['id']+_0x551a91[_0x1468ba(0x1d2)]}}:_0x150c43)}:_0x14457d;}function _0x38864b(){const _0x5af02=_0x415a73;return Math[_0x5af02(0x1db)]()[_0x5af02(0x228)](0x24)[_0x5af02(0x211)](0x2,0x8);}_0x311f12['displayName']=_0x415a73(0x283);const _0x1e9035={'tag':_0x415a73(0x28e),'attrs':{'xmlns':_0x415a73(0x279),'fill':_0x415a73(0x276),'viewBox':_0x415a73(0x1f6),'width':_0x415a73(0x27f),'height':_0x415a73(0x27f)},'children':[{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x23b)}},{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x264),'fillRule':_0x415a73(0x1ff),'clipRule':_0x415a73(0x1ff)}}]},_0x5b6cad=_0x28aa9a['forwardRef'](function(_0x333c17,_0x34c239){const _0x4f8f02=_0x415a73;return _0x28aa9a[_0x4f8f02(0x247)](_0x311f12,Object[_0x4f8f02(0x248)]({},_0x333c17,{'id':'live-share-icon','ref':_0x34c239,'icon':_0x1e9035}));});_0x5b6cad[_0x415a73(0x267)]='LiveShareIcon';class _0x56aeba extends _0x545d76[_0x415a73(0x23a)]{constructor(){const _0x25781f=_0x415a73;super(...arguments),_0x44028a(this,_0x25781f(0x1e1),new Set()),_0x44028a(this,_0x25781f(0x21b),new Set());}[_0x415a73(0x292)](_0x7d7fb7){const _0x60a160=_0x415a73;return this[_0x60a160(0x1e1)][_0x60a160(0x28b)](_0x7d7fb7),_0x545d76['toDisposable'](()=>this[_0x60a160(0x1e1)][_0x60a160(0x1b2)](_0x7d7fb7));}[_0x415a73(0x1e5)](_0x1b5035){const _0x293ba1=_0x415a73;return this['_reporters'][_0x293ba1(0x28b)](_0x1b5035),_0x545d76[_0x293ba1(0x1ca)](()=>this[_0x293ba1(0x21b)]['delete'](_0x1b5035));}[_0x415a73(0x1c7)](_0x89eca8){const _0x20c834=_0x415a73;return this['_sharedOperations'][_0x20c834(0x238)](_0x89eca8);}[_0x415a73(0x1d0)](_0x5c16ab){const _0x2fa3e1=_0x415a73;return Array[_0x2fa3e1(0x290)](this[_0x2fa3e1(0x21b)])[_0x2fa3e1(0x1b9)](_0x213917=>_0x213917(_0x5c16ab));}}var _0x4122f9=Object[_0x415a73(0x286)],_0x56b12d=(_0x6a3ae5,_0x3bbe74,_0x42524d,_0x36e522)=>{const _0x4dff9a=_0x415a73;for(var _0x13b3b5=_0x36e522>0x1?void 0x0:_0x36e522?_0x4122f9(_0x3bbe74,_0x42524d):_0x3bbe74,_0x2304ea=_0x6a3ae5[_0x4dff9a(0x244)]-0x1,_0x2c3624;_0x2304ea>=0x0;_0x2304ea--)(_0x2c3624=_0x6a3ae5[_0x2304ea])&&(_0x13b3b5=_0x2c3624(_0x13b3b5)||_0x13b3b5);return _0x13b3b5;},_0x201fe6=(_0x218705,_0x3f2123)=>(_0x811bd6,_0xe75ef3)=>_0x3f2123(_0x811bd6,_0xe75ef3,_0x218705);_0x2c0109[_0x415a73(0x1c2)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x18ceac,_0x428287,_0x5dbf5f){const _0x2ab7cc=_0x415a73;super(),_0x44028a(this,_0x2ab7cc(0x21c),new Map()),(this[_0x2ab7cc(0x1c4)]=_0x18ceac,this[_0x2ab7cc(0x227)]=_0x428287,this[_0x2ab7cc(0x275)]=_0x5dbf5f,this[_0x2ab7cc(0x1bd)]());}async['getLiveShareCoordinator'](_0x5aa2d7){const _0x3c7bfe=_0x415a73;return this['_entities']['has'](_0x5aa2d7)||await this[_0x3c7bfe(0x1e0)](_0x5aa2d7),this[_0x3c7bfe(0x21c)][_0x3c7bfe(0x1e9)](_0x5aa2d7);}[_0x415a73(0x21f)](_0x54ebe3){const _0x406c83=_0x415a73;var _0x5c253f;return(_0x5c253f=this['_entities'][_0x406c83(0x1e9)](_0x54ebe3))!=null?_0x5c253f:null;}['_init'](){const _0x5a04a0=_0x415a73;this[_0x5a04a0(0x1c4)]['getTypeOfUnitAdded$'](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this['dispose$']))[_0x5a04a0(0x1c0)](async _0x32a0d7=>{const _0x583975=_0x5a04a0,_0x4329df=_0x32a0d7[_0x583975(0x22c)]();this[_0x583975(0x21c)]['has'](_0x4329df)||this[_0x583975(0x1e0)](_0x4329df);}),this[_0x5a04a0(0x1c4)][_0x5a04a0(0x1bc)](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this[_0x5a04a0(0x205)]))['subscribe'](_0x50ea83=>{const _0x3be3c9=_0x5a04a0,_0x1534e7=_0x50ea83['getUnitId'](),_0x13aace=this[_0x3be3c9(0x21c)][_0x3be3c9(0x1e9)](_0x1534e7);_0x13aace==null||_0x13aace[_0x3be3c9(0x24d)]();});}async[_0x415a73(0x1e0)](_0x19e26c){const _0x57cfeb=_0x415a73,_0x1bba39=await this['_collabSessionService'][_0x57cfeb(0x1fc)](_0x19e26c),_0x1d044a=this[_0x57cfeb(0x227)][_0x57cfeb(0x265)](_0x2c0109['LiveShareCoordinator'],_0x19e26c,_0x1bba39);return _0x1d044a['init'](),this[_0x57cfeb(0x21c)]['set'](_0x19e26c,_0x1d044a),_0x1d044a;}},_0x2c0109[_0x415a73(0x1c2)]=_0x56b12d([_0x201fe6(0x0,_0x545d76[_0x415a73(0x25c)]),_0x201fe6(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x201fe6(0x2,_0x545d76['Inject'](_0x3f0a5f[_0x415a73(0x22b)]))],_0x2c0109['LiveShareController']);var _0x1a6c0f=(_0x3b9ffb=>(_0x3b9ffb['OFFLINE']=_0x415a73(0x1d8),_0x3b9ffb['IDLE']=_0x415a73(0x266),_0x3b9ffb[_0x415a73(0x1c5)]=_0x415a73(0x1df),_0x3b9ffb[_0x415a73(0x251)]=_0x415a73(0x288),_0x3b9ffb[_0x415a73(0x1ef)]=_0x415a73(0x256),_0x3b9ffb))(_0x1a6c0f||{});const _0x740a88=_0x415a73(0x259),_0x1eb84c=0xc8;_0x2c0109[_0x415a73(0x254)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x27cdee,_0x463a0d,_0x4f5c1b,_0x20d987,_0x4ae9c8){const _0x1643f0=_0x415a73;super(),_0x44028a(this,_0x1643f0(0x220),new _0x134f05[(_0x1643f0(0x218))]('idle')),_0x44028a(this,_0x1643f0(0x1c9),this['_status$'][_0x1643f0(0x253)]()),_0x44028a(this,_0x1643f0(0x1bd),!0x1),_0x44028a(this,_0x1643f0(0x209),null),_0x44028a(this,'_presenter',null),(this[_0x1643f0(0x25d)]=_0x27cdee,this[_0x1643f0(0x210)]=_0x463a0d,this[_0x1643f0(0x200)]=_0x4f5c1b,this['_liveShareService']=_0x20d987,this[_0x1643f0(0x294)]=_0x4ae9c8);}get['_status'](){const _0x2b4b6b=_0x415a73;return this['_status$'][_0x2b4b6b(0x1f3)]();}['dispose'](){const _0x2d0233=_0x415a73;var _0x11b6b4;(_0x11b6b4=this[_0x2d0233(0x209)])==null||_0x11b6b4[_0x2d0233(0x24d)](),this[_0x2d0233(0x220)][_0x2d0233(0x1da)](_0x2d0233(0x266)),this[_0x2d0233(0x220)][_0x2d0233(0x1c8)]();}[_0x415a73(0x281)](){const _0x18e80e=_0x415a73;return this[_0x18e80e(0x22a)];}[_0x415a73(0x1d3)](){const _0x11abf0=_0x415a73;this[_0x11abf0(0x1bd)]||(this[_0x11abf0(0x1bd)]=!0x0,this[_0x11abf0(0x210)][_0x11abf0(0x252)]['pipe'](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a358a=>{const _0x20d5cc=_0x11abf0;switch(_0x4a358a){case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x21d)]:this[_0x20d5cc(0x261)]();break;case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x222)]:this['_handleOnline']();break;}}),this[_0x11abf0(0x210)][_0x11abf0(0x1e4)][_0x11abf0(0x207)](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a6a98=>{const _0x35b618=_0x11abf0,{eventID:_0x4cf6a7}=_0x4a6a98;switch(_0x4cf6a7){case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x235)]:this[_0x35b618(0x236)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x257)]:this[_0x35b618(0x26d)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)]['LIVESHARE_TERMINATE']:this[_0x35b618(0x1ce)]();break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x28f)]:this[_0x35b618(0x1c6)](_0x4a6a98);break;}}));}['tryStartPresenting'](){const _0x455721=_0x415a73;this['_collabSession'][_0x455721(0x25f)]({'eventID':_0x2352d3[_0x455721(0x214)][_0x455721(0x215)],'data':{'unitID':this[_0x455721(0x25d)],'userID':this[_0x455721(0x210)]['getMemberID']()}},this[_0x455721(0x25d)]);}[_0x415a73(0x20a)](){const _0x1ae1cb=_0x415a73;this[_0x1ae1cb(0x22a)]===_0x1ae1cb(0x256)&&(this[_0x1ae1cb(0x220)]['next']('idle'),this[_0x1ae1cb(0x210)][_0x1ae1cb(0x25f)]({'eventID':_0x2352d3['CollaborationEvent'][_0x1ae1cb(0x295)],'data':{'unitID':this[_0x1ae1cb(0x25d)]}},this[_0x1ae1cb(0x25d)]));}[_0x415a73(0x27e)](){const _0x11d4f6=_0x415a73;this['_status']==='not-following'&&(this[_0x11d4f6(0x220)]['next']('following'),this[_0x11d4f6(0x243)]());}['stopFollowing'](){const _0x4bc734=_0x415a73;this[_0x4bc734(0x22a)]===_0x4bc734(0x1df)&&this['_stopFollowing']();}[_0x415a73(0x236)](_0x1ae82b){const _0x2172df=_0x415a73,{presenter:_0x59450a}=_0x1ae82b['data'],_0x2deca2=this[_0x2172df(0x210)][_0x2172df(0x219)]();this[_0x2172df(0x226)]=_0x59450a,_0x59450a===_0x2deca2?(this['_stopFollowing'](),this[_0x2172df(0x1f5)]()):this[_0x2172df(0x22a)]!==_0x2172df(0x288)&&(this[_0x2172df(0x282)](),this['_startFollowing']());}[_0x415a73(0x203)](){const _0x3bd148=_0x415a73,_0xbd4bc9={'eventID':_0x2352d3[_0x3bd148(0x214)][_0x3bd148(0x1b7)]};this[_0x3bd148(0x210)]['send'](_0xbd4bc9,this[_0x3bd148(0x25d)]);}[_0x415a73(0x1ce)](){const _0x3c6bf5=_0x415a73;this[_0x3c6bf5(0x226)]=null,this[_0x3c6bf5(0x22a)]!==_0x3c6bf5(0x256)&&this[_0x3c6bf5(0x1e7)]();}[_0x415a73(0x1c6)](_0x235532){const _0x285482=_0x415a73;if(this['_status']===_0x285482(0x1df)&&this[_0x285482(0x226)]===_0x235532[_0x285482(0x1f9)]['memberID']){const _0x4e811c=_0x2352d3['parseProtocolChangeset'](_0x235532[_0x285482(0x1f9)])[_0x285482(0x1ed)][_0x285482(0x1eb)]()[_0x285482(0x232)](_0x33aead=>_0x33aead['id']===_0x19e44f[_0x285482(0x26f)]['id']);if(_0x4e811c){const _0x882937=_0x4e811c[_0x285482(0x26a)][_0x285482(0x239)],_0x3985c8=_0x4e811c[_0x285482(0x26a)][_0x285482(0x241)]['id'];setTimeout(()=>{const _0x2b0ae8=_0x285482;this[_0x2b0ae8(0x294)][_0x2b0ae8(0x272)](_0x19e44f[_0x2b0ae8(0x28d)]['id'],{'unitId':_0x882937,'subUnitId':_0x3985c8},{'fromCollab':!0x0});});}}}[_0x415a73(0x1f5)](){const _0x74239e=_0x415a73;this[_0x74239e(0x220)][_0x74239e(0x1da)](_0x74239e(0x256));const _0x299855=new Map(),_0x214a7a=this['_commandDisposable']=new _0x545d76[(_0x74239e(0x1fe))]();_0x214a7a[_0x74239e(0x28b)](_0x545d76[_0x74239e(0x1ca)](()=>{const _0x556ef8=_0x74239e;_0x299855[_0x556ef8(0x1cc)](_0xc6dbb1=>_0xc6dbb1[_0x556ef8(0x1c8)]()),_0x299855['clear']();})),_0x214a7a[_0x74239e(0x28b)](this[_0x74239e(0x294)][_0x74239e(0x273)](_0x35f4a2=>{const _0x48225d=_0x74239e;var _0x4f3b67;if(_0x35f4a2['type']!==_0x545d76[_0x48225d(0x1d7)]['OPERATION']||!this[_0x48225d(0x20c)]['shouldShareOperation'](_0x35f4a2['id']))return;const {id:_0x4722c1}=_0x35f4a2;let _0x180b3e;_0x299855[_0x48225d(0x238)](_0x4722c1)?_0x180b3e=_0x299855[_0x48225d(0x1e9)](_0x4722c1):(_0x180b3e=new _0x134f05[(_0x48225d(0x262))](),_0x299855['set'](_0x4722c1,_0x180b3e),_0x180b3e[_0x48225d(0x207)](_0x13542d[_0x48225d(0x1b0)]((_0x4f3b67=this[_0x48225d(0x200)]['getConfig'](_0x740a88))!=null?_0x4f3b67:_0x1eb84c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x48225d(0x1c0)](_0x4ca3b2=>{const _0x54e341=_0x48225d;this['_collabSession']['send']({'eventID':_0x2352d3[_0x54e341(0x214)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x54e341(0x25d)],'operations':{[_0x4ca3b2['id']]:{'id':_0x4ca3b2['id'],'params':JSON[_0x54e341(0x20f)](_0x4ca3b2[_0x54e341(0x26a)])}}}},this['_unitID']);})),_0x180b3e[_0x48225d(0x1da)](_0x35f4a2);})),this[_0x74239e(0x20c)][_0x74239e(0x1d0)](this[_0x74239e(0x25d)])[_0x74239e(0x1cc)](_0x172709=>this[_0x74239e(0x210)]['send']({'eventID':_0x2352d3[_0x74239e(0x214)][_0x74239e(0x257)],'data':{'unitID':this[_0x74239e(0x25d)],'operations':{[_0x172709['id']]:{'id':_0x172709['id'],'params':JSON[_0x74239e(0x20f)](_0x172709[_0x74239e(0x26a)])}}}},this[_0x74239e(0x25d)]));}[_0x415a73(0x282)](){const _0x3b19f8=_0x415a73;var _0x6493b;this['_status$']['next'](_0x3b19f8(0x266)),(_0x6493b=this[_0x3b19f8(0x209)])==null||_0x6493b[_0x3b19f8(0x24d)](),this['_commandDisposable']=null;}[_0x415a73(0x243)](){const _0x3856e6=_0x415a73;var _0x36a302;(_0x36a302=this[_0x3856e6(0x209)])==null||_0x36a302[_0x3856e6(0x24d)](),this[_0x3856e6(0x220)][_0x3856e6(0x1da)](_0x3856e6(0x1df));}['_beIdle'](){const _0x3f955b=_0x415a73;var _0x25e5cd;this[_0x3f955b(0x220)][_0x3f955b(0x1da)]('idle'),(_0x25e5cd=this[_0x3f955b(0x209)])==null||_0x25e5cd['dispose'](),this['_commandDisposable']=null;}[_0x415a73(0x291)](){const _0xfbb5b=_0x415a73;var _0x347ae6;this['_status$'][_0xfbb5b(0x1da)](_0xfbb5b(0x288)),(_0x347ae6=this[_0xfbb5b(0x209)])==null||_0x347ae6[_0xfbb5b(0x24d)]();}[_0x415a73(0x26d)](_0x293a95){const _0x364d9f=_0x415a73;if([_0x364d9f(0x256),_0x364d9f(0x288),_0x364d9f(0x1d8)]['includes'](this[_0x364d9f(0x22a)])||!_0x293a95['data'][_0x364d9f(0x284)]||_0x293a95['data'][_0x364d9f(0x284)]===this[_0x364d9f(0x210)]['getMemberID']())return;this['_status']==='idle'&&this[_0x364d9f(0x243)]();const _0x2e1475=_0x293a95[_0x364d9f(0x1f9)][_0x364d9f(0x26e)];Object[_0x364d9f(0x1b3)](_0x2e1475)[_0x364d9f(0x1cc)](_0x1ed9e7=>{const _0x4cdba0=_0x364d9f;this[_0x4cdba0(0x294)][_0x4cdba0(0x272)](_0x1ed9e7['id'],_0x1ed9e7[_0x4cdba0(0x26a)]?JSON['parse'](_0x1ed9e7[_0x4cdba0(0x26a)]):null,{'fromCollab':!0x0});});}[_0x415a73(0x261)](){const _0x5ef5d9=_0x415a73;var _0x16ce6d;this[_0x5ef5d9(0x220)][_0x5ef5d9(0x1da)]('offline'),(_0x16ce6d=this[_0x5ef5d9(0x209)])==null||_0x16ce6d['dispose']();}['_handleOnline'](){const _0x201d3b=_0x415a73;this[_0x201d3b(0x220)][_0x201d3b(0x1da)](_0x201d3b(0x266)),this['_fetchOperations']();}},_0x2c0109[_0x415a73(0x254)]=_0x56b12d([_0x201fe6(0x2,_0x545d76[_0x415a73(0x230)]),_0x201fe6(0x3,_0x545d76[_0x415a73(0x1cd)](_0x56aeba)),_0x201fe6(0x4,_0x545d76[_0x415a73(0x1d9)])],_0x2c0109[_0x415a73(0x254)]);function _0x10c2b0(){const _0x443493=_0x415a73,_0xabe22=_0x1a8727[_0x443493(0x1c1)](_0x2c0109[_0x443493(0x1c2)]),_0x20e21c=_0x1a8727['useDependency'](_0x545d76[_0x443493(0x25c)]),_0x2dcd6a=_0x1a8727[_0x443493(0x278)](()=>_0x20e21c[_0x443493(0x1b1)](_0x545d76[_0x443493(0x229)][_0x443493(0x1f2)]),void 0x0,!0x1,[]),[_0x1f16bd,_0x1c71f7]=_0x28aa9a[_0x443493(0x1cb)](null),[_0x241a61,_0x21e108]=_0x28aa9a[_0x443493(0x1cb)](_0x1a6c0f['IDLE']),_0x8c752e=_0x28aa9a[_0x443493(0x237)](null);return _0x28aa9a[_0x443493(0x249)](()=>(_0x2dcd6a&&_0xabe22['getLiveShareCoordinator'](_0x2dcd6a[_0x443493(0x22c)]())[_0x443493(0x212)](_0x4e276d=>{const _0x1eebed=_0x443493;_0x1c71f7(_0x4e276d),_0x8c752e[_0x1eebed(0x21e)]=_0x4e276d[_0x1eebed(0x1c9)][_0x1eebed(0x1c0)](_0x4cc8a2=>{_0x21e108(_0x4cc8a2);});}),()=>{const _0x54ffe3=_0x443493;var _0x144d0f;(_0x144d0f=_0x8c752e[_0x54ffe3(0x21e)])==null||_0x144d0f[_0x54ffe3(0x28a)](),_0x8c752e[_0x54ffe3(0x21e)]=null;}),[_0x2dcd6a,_0xabe22]),_0x1f16bd?_0x20946c[_0x443493(0x289)](_0x32ca4b['Dropdown'],{'align':'end','disabled':_0x241a61===_0x1a6c0f['OFFLINE'],'className':_0x443493(0x202),'overlay':_0x20946c[_0x443493(0x289)](_0x3fc6db,{'status':_0x241a61,'coordinator':_0x1f16bd}),'children':_0x20946c[_0x443493(0x289)](_0x443493(0x23c),{'className':_0x32ca4b[_0x443493(0x22d)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x241a61===_0x1a6c0f[_0x443493(0x21d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x241a61!==_0x1a6c0f[_0x443493(0x21d)]}),'type':_0x443493(0x23c),'children':_0x20946c[_0x443493(0x289)](_0x5b6cad,{'className':_0x443493(0x216)})})}):null;}function _0x3fc6db(_0x2dfb51){const _0x5b59d4=_0x415a73,{status:_0x525163,coordinator:_0x41edca}=_0x2dfb51;switch(_0x525163){case _0x1a6c0f[_0x5b59d4(0x1d4)]:return _0x20946c['jsx'](_0x10ee18,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x1c5)]:return _0x20946c['jsx'](_0x53b861,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x251)]:return _0x20946c['jsx'](_0x1bf957,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x21d)]:return _0x20946c['jsx'](_0x29195f,{});case _0x1a6c0f[_0x5b59d4(0x1ef)]:return _0x20946c[_0x5b59d4(0x289)](_0x2d518d,{'coordinator':_0x41edca});default:return null;}}function _0x10ee18(_0x3345aa){const _0x1f66e0=_0x415a73,{coordinator:_0x3bed0b}=_0x3345aa;return _0x20946c[_0x1f66e0(0x1e6)](_0x20946c[_0x1f66e0(0x22f)],{'children':[_0x20946c[_0x1f66e0(0x289)](_0x1f66e0(0x20d),{'className':_0x1f66e0(0x263),'children':_0x1f66e0(0x1de)}),_0x20946c[_0x1f66e0(0x289)](_0x32ca4b[_0x1f66e0(0x1bb)],{'onClick':()=>_0x3bed0b['tryStartPresenting'](),'children':_0x1f66e0(0x280)})]});}function _0x53b861(_0x46b991){const _0x7165bf=_0x415a73,{coordinator:_0x46ed6c}=_0x46b991;return _0x20946c['jsxs'](_0x20946c[_0x7165bf(0x22f)],{'children':[_0x20946c[_0x7165bf(0x289)](_0x7165bf(0x20d),{'className':_0x7165bf(0x263),'children':_0x7165bf(0x21a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'onClick':()=>_0x46ed6c[_0x7165bf(0x1ae)](),'children':_0x7165bf(0x1fb)})]});}function _0x1bf957(_0x27d6fb){const _0x4cebda=_0x415a73,{coordinator:_0x44be3e}=_0x27d6fb;return _0x20946c[_0x4cebda(0x1e6)](_0x20946c[_0x4cebda(0x22f)],{'children':[_0x20946c['jsx'](_0x4cebda(0x20d),{'className':_0x4cebda(0x263),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20946c['jsx'](_0x32ca4b[_0x4cebda(0x1bb)],{'variant':_0x4cebda(0x258),'onClick':()=>_0x44be3e['startFollowing'](),'children':_0x4cebda(0x20b)})]});}function _0x2d518d(_0x48a797){const _0x4c1fd7=_0x415a73,{coordinator:_0x4ea34f}=_0x48a797;return _0x20946c[_0x4c1fd7(0x1e6)](_0x20946c[_0x4c1fd7(0x22f)],{'children':[_0x20946c[_0x4c1fd7(0x289)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c1fd7(0x27a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'variant':_0x4c1fd7(0x287),'onClick':()=>_0x4ea34f[_0x4c1fd7(0x20a)](),'children':'Stop\x20presenting'})]});}function _0x29195f(){const _0x22f3d9=_0x415a73;return _0x20946c[_0x22f3d9(0x289)](_0x20946c[_0x22f3d9(0x22f)],{'children':_0x22f3d9(0x246)});}var _0x3164f8=Object[_0x415a73(0x286)],_0x26000f=(_0x26802d,_0x1d7519,_0x34a259,_0x396641)=>{const _0x5ade82=_0x415a73;for(var _0x1f8c72=_0x396641>0x1?void 0x0:_0x396641?_0x3164f8(_0x1d7519,_0x34a259):_0x1d7519,_0x3cd0a3=_0x26802d[_0x5ade82(0x244)]-0x1,_0x33c449;_0x3cd0a3>=0x0;_0x3cd0a3--)(_0x33c449=_0x26802d[_0x3cd0a3])&&(_0x1f8c72=_0x33c449(_0x1f8c72)||_0x1f8c72);return _0x1f8c72;},_0x4a3cf8=(_0x4059e8,_0x423f8b)=>(_0x2ddbe9,_0x4fcd71)=>_0x423f8b(_0x2ddbe9,_0x4fcd71,_0x4059e8);_0x2c0109[_0x415a73(0x1f8)]=class extends _0x545d76['Disposable']{constructor(_0x285c7f,_0x5d908f){const _0xed06aa=_0x415a73;super(),this[_0xed06aa(0x227)]=_0x285c7f,this[_0xed06aa(0x201)]=_0x5d908f,this[_0xed06aa(0x24e)]();}[_0x415a73(0x24e)](){const _0x5a7671=_0x415a73;this[_0x5a7671(0x1dd)](this['_uiPartsService'][_0x5a7671(0x24a)](_0x1a8727[_0x5a7671(0x277)][_0x5a7671(0x1ea)],()=>_0x1a8727[_0x5a7671(0x1b6)](_0x10c2b0,this[_0x5a7671(0x227)])));}},_0x2c0109[_0x415a73(0x1f8)]=_0x26000f([_0x4a3cf8(0x0,_0x545d76[_0x415a73(0x1cd)](_0x545d76['Injector'])),_0x4a3cf8(0x1,_0x1a8727[_0x415a73(0x268)])],_0x2c0109['DesktopLiveShareController']);const _0x5a9f0c=_0x415a73(0x242),_0x19b59f={};var _0x5a81dc=Object[_0x415a73(0x286)],_0x3d72da=(_0x46068e,_0x56ca5e,_0xf4706f,_0x4eedc7)=>{const _0x53c5ac=_0x415a73;for(var _0x2d1b99=_0x4eedc7>0x1?void 0x0:_0x4eedc7?_0x5a81dc(_0x56ca5e,_0xf4706f):_0x56ca5e,_0xa5f72=_0x46068e[_0x53c5ac(0x244)]-0x1,_0x2644ed;_0xa5f72>=0x0;_0xa5f72--)(_0x2644ed=_0x46068e[_0xa5f72])&&(_0x2d1b99=_0x2644ed(_0x2d1b99)||_0x2d1b99);return _0x2d1b99;},_0x2fbd0e=(_0x52e06f,_0x4c26ad)=>(_0x1e771e,_0x3578f2)=>_0x4c26ad(_0x1e771e,_0x3578f2,_0x52e06f);let _0x194840=class extends _0x545d76['Disposable']{constructor(_0xa8933){const _0x58f92f=_0x415a73;super(),this['_liveShareService']=_0xa8933,this[_0x58f92f(0x1bd)]();}[_0x415a73(0x1bd)](){const _0xcde255=_0x415a73;[_0x5696ca['SetZoomRatioOperation']['id'],_0x5696ca[_0xcde255(0x1ba)]['id'],_0x19e44f['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ef25b=>{const _0x85cd43=_0xcde255;this[_0x85cd43(0x1dd)](this[_0x85cd43(0x20c)][_0x85cd43(0x292)](_0x4ef25b));});}};_0x194840=_0x3d72da([_0x2fbd0e(0x0,_0x545d76[_0x415a73(0x1cd)](_0x56aeba))],_0x194840);var _0x441f69=Object[_0x415a73(0x204)],_0x5dc34c=Object[_0x415a73(0x286)],_0x2b7b61=(_0x1583fe,_0x324feb,_0x55c4e2)=>_0x324feb in _0x1583fe?_0x441f69(_0x1583fe,_0x324feb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c4e2}):_0x1583fe[_0x324feb]=_0x55c4e2,_0x3f9665=(_0x1d6502,_0x45d90a,_0x7c2617,_0xd738ea)=>{const _0x1c08a5=_0x415a73;for(var _0x4afae9=_0xd738ea>0x1?void 0x0:_0xd738ea?_0x5dc34c(_0x45d90a,_0x7c2617):_0x45d90a,_0x522ba4=_0x1d6502[_0x1c08a5(0x244)]-0x1,_0x2a9c64;_0x522ba4>=0x0;_0x522ba4--)(_0x2a9c64=_0x1d6502[_0x522ba4])&&(_0x4afae9=_0x2a9c64(_0x4afae9)||_0x4afae9);return _0x4afae9;},_0x49a4e0=(_0x2ed793,_0x361f10)=>(_0x27c3ee,_0x230174)=>_0x361f10(_0x27c3ee,_0x230174,_0x2ed793),_0x2c8a99=(_0x3544bd,_0x498223,_0x51bb70)=>_0x2b7b61(_0x3544bd,typeof _0x498223!='symbol'?_0x498223+'':_0x498223,_0x51bb70);const _0x2e97d3=_0x415a73(0x25e);_0x2c0109[_0x415a73(0x28c)]=class extends _0x545d76['Plugin']{constructor(_0x5d27fa=_0x19b59f,_0x48655,_0x598257){const _0x4fb8e2=_0x415a73;super(),this['_config']=_0x5d27fa,this['_injector']=_0x48655,this[_0x4fb8e2(0x200)]=_0x598257;const {..._0x276a56}=_0x545d76[_0x4fb8e2(0x285)]({},_0x19b59f,this[_0x4fb8e2(0x269)]);this[_0x4fb8e2(0x200)][_0x4fb8e2(0x24b)](_0x5a9f0c,_0x276a56);}['onStarting'](){const _0x4c6223=_0x415a73;_0x545d76[_0x4c6223(0x27d)](this[_0x4c6223(0x227)],_0x545d76[_0x4c6223(0x213)]([[_0x56aeba],[_0x2c0109[_0x4c6223(0x1c2)]],[_0x194840],[_0x2c0109[_0x4c6223(0x1f8)]]],this[_0x4c6223(0x269)]['override'])),_0x545d76[_0x4c6223(0x1be)](this['_injector'],[[_0x194840]]);}[_0x415a73(0x274)](){const _0x292e43=_0x415a73;_0x545d76[_0x292e43(0x1be)](this['_injector'],[[_0x2c0109[_0x292e43(0x1f8)]]]);}},_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'type',_0x545d76[_0x415a73(0x229)][_0x415a73(0x271)]),_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'pluginName',_0x2e97d3),_0x2c0109[_0x415a73(0x28c)]=_0x3f9665([_0x545d76[_0x415a73(0x20e)](_0x3f0a5f[_0x415a73(0x223)]),_0x49a4e0(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x49a4e0(0x2,_0x545d76[_0x415a73(0x230)])],_0x2c0109[_0x415a73(0x28c)]),_0x2c0109['LiveShare']=_0x10c2b0,_0x2c0109['LiveShareService']=_0x56aeba,_0x2c0109['LiveShareStatus']=_0x1a6c0f,Object[_0x415a73(0x204)](_0x2c0109,Symbol[_0x415a73(0x22e)],{'value':_0x415a73(0x26c)});}));
1
+ function _0x9052(_0x1c12fb,_0x13524d){_0x1c12fb=_0x1c12fb-0x126;const _0x2f9cc0=_0x2f9c();let _0x90527b=_0x2f9cc0[_0x1c12fb];return _0x90527b;}(function(_0x19b239,_0x489bbd){const _0x5ebd20=_0x9052,_0x38ff74=_0x19b239();while(!![]){try{const _0x16e011=-parseInt(_0x5ebd20(0x191))/0x1+-parseInt(_0x5ebd20(0x204))/0x2*(-parseInt(_0x5ebd20(0x1a4))/0x3)+-parseInt(_0x5ebd20(0x198))/0x4+-parseInt(_0x5ebd20(0x14a))/0x5*(-parseInt(_0x5ebd20(0x1c4))/0x6)+-parseInt(_0x5ebd20(0x1db))/0x7+parseInt(_0x5ebd20(0x169))/0x8*(-parseInt(_0x5ebd20(0x148))/0x9)+parseInt(_0x5ebd20(0x134))/0xa;if(_0x16e011===_0x489bbd)break;else _0x38ff74['push'](_0x38ff74['shift']());}catch(_0x4bc5b8){_0x38ff74['push'](_0x38ff74['shift']());}}}(_0x2f9c,0x5b79e),function(_0x492156,_0x20b2fb){const _0x5cf0de=_0x9052;typeof exports==_0x5cf0de(0x1e9)&&typeof module<'u'?_0x20b2fb(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==_0x5cf0de(0x13e)&&define[_0x5cf0de(0x1f0)]?define(['exports',_0x5cf0de(0x129),_0x5cf0de(0x1c6),_0x5cf0de(0x1c8),'@univerjs/design',_0x5cf0de(0x1ec),_0x5cf0de(0x1d6),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x5cf0de(0x1d5),_0x5cf0de(0x136),_0x5cf0de(0x1e8)],_0x20b2fb):(_0x492156=typeof globalThis<'u'?globalThis:_0x492156||self,_0x20b2fb(_0x492156['UniverProLiveShare']={},_0x492156['UniverCore'],_0x492156['UniverUi'],_0x492156[_0x5cf0de(0x193)],_0x492156['UniverDesign'],_0x492156[_0x5cf0de(0x193)],_0x492156[_0x5cf0de(0x13b)],_0x492156[_0x5cf0de(0x133)],_0x492156[_0x5cf0de(0x1ae)],_0x492156[_0x5cf0de(0x1d5)],_0x492156['rxjs'][_0x5cf0de(0x20c)],_0x492156[_0x5cf0de(0x152)]));}(this,function(_0x124aa4,_0x2e6932,_0x2124f8,_0x479a5c,_0x1b6253,_0x27bb21,_0x25a5e1,_0x21ff7a,_0x113b7d,_0x241a2b,_0x352fbc,_0x37f5a8){'use strict';const _0xff167c=_0x9052;var _0x2a0138=Object['defineProperty'],_0x12156b=(_0x5546d9,_0x36649e,_0x47773c)=>_0x36649e in _0x5546d9?_0x2a0138(_0x5546d9,_0x36649e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47773c}):_0x5546d9[_0x36649e]=_0x47773c,_0x4aa7f7=(_0x17cb18,_0x3bc3bf,_0xb9a8a0)=>_0x12156b(_0x17cb18,typeof _0x3bc3bf!=_0xff167c(0x1a2)?_0x3bc3bf+'':_0x3bc3bf,_0xb9a8a0);function _0x17d749({ref:_0x5d007f,..._0x1f99bb}){const _0x2ad43b=_0xff167c,{icon:_0x267217,id:_0x58c154,className:_0x2d6a58,extend:_0x589a63,..._0x45cfd6}=_0x1f99bb,_0x4b2f2a=(_0x2ad43b(0x1a0)+_0x58c154+'\x20'+(_0x2d6a58||''))[_0x2ad43b(0x172)](),_0x4c3890=_0x27bb21[_0x2ad43b(0x1fd)]('_'+_0x36960d());return _0x44cec6(_0x267217,''+_0x58c154,{'defIds':_0x267217[_0x2ad43b(0x1ad)],'idSuffix':_0x4c3890[_0x2ad43b(0x173)]},{'ref':_0x5d007f,'className':_0x4b2f2a,..._0x45cfd6},_0x589a63);}function _0x44cec6(_0x2c5117,_0x4b0cc9,_0x9a3701,_0x500d1f,_0x103d6f){const _0x2ca9d6=_0xff167c;return _0x27bb21[_0x2ca9d6(0x183)](_0x2c5117[_0x2ca9d6(0x150)],{'key':_0x4b0cc9,..._0xa85129(_0x2c5117,_0x9a3701,_0x103d6f),..._0x500d1f},(_0x9dc60c(_0x2c5117,_0x9a3701)[_0x2ca9d6(0x17b)]||[])['map']((_0x2743e6,_0x587f3b)=>_0x44cec6(_0x2743e6,_0x4b0cc9+'-'+_0x2c5117[_0x2ca9d6(0x150)]+'-'+_0x587f3b,_0x9a3701,void 0x0,_0x103d6f)));}function _0xa85129(_0x5e2ac9,_0x4de84f,_0x5643d4){const _0x4078a1=_0xff167c,_0x133622={..._0x5e2ac9['attrs']};_0x5643d4!=null&&_0x5643d4[_0x4078a1(0x1fc)]&&_0x133622[_0x4078a1(0x155)]==='colorChannel1'&&(_0x133622[_0x4078a1(0x155)]=_0x5643d4[_0x4078a1(0x1fc)]),_0x5e2ac9[_0x4078a1(0x150)]===_0x4078a1(0x1bb)&&_0x133622['id']&&(_0x133622['id']=_0x133622['id']+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x5b80b9,_0xc2780b])=>{const _0x1171d4=_0x4078a1;_0x5b80b9===_0x1171d4(0x1bb)&&typeof _0xc2780b==_0x1171d4(0x189)&&(_0x133622[_0x5b80b9]=_0xc2780b[_0x1171d4(0x1c0)](/url\(#(.*)\)/,_0x1171d4(0x184)+_0x4de84f[_0x1171d4(0x12e)]+')'));});const {defIds:_0x119b73}=_0x4de84f;return!_0x119b73||_0x119b73[_0x4078a1(0x19b)]===0x0||(_0x5e2ac9['tag']===_0x4078a1(0x199)&&_0x133622[_0x4078a1(0x1c5)]&&(_0x133622[_0x4078a1(0x1c5)]=_0x133622[_0x4078a1(0x1c5)]+_0x4de84f[_0x4078a1(0x12e)]),Object[_0x4078a1(0x205)](_0x133622)[_0x4078a1(0x19e)](([_0x317063,_0x364302])=>{const _0x1e5771=_0x4078a1;typeof _0x364302==_0x1e5771(0x189)&&(_0x133622[_0x317063]=_0x364302[_0x1e5771(0x1c0)](/url\(#(.*)\)/,_0x1e5771(0x184)+_0x4de84f[_0x1e5771(0x12e)]+')'));})),_0x133622;}function _0x9dc60c(_0xa05f7c,_0x22e11c){const _0x4aff54=_0xff167c;var _0x54e25e;const {defIds:_0x4c305a}=_0x22e11c;return!_0x4c305a||_0x4c305a[_0x4aff54(0x19b)]===0x0?_0xa05f7c:_0xa05f7c[_0x4aff54(0x150)]===_0x4aff54(0x181)&&((_0x54e25e=_0xa05f7c['children'])!=null&&_0x54e25e['length'])?{..._0xa05f7c,'children':_0xa05f7c['children']['map'](_0x4cc245=>typeof _0x4cc245[_0x4aff54(0x1b4)]['id']==_0x4aff54(0x189)&&_0x4c305a&&_0x4c305a[_0x4aff54(0x1a5)](_0x4cc245[_0x4aff54(0x1b4)]['id'])?{..._0x4cc245,'attrs':{..._0x4cc245[_0x4aff54(0x1b4)],'id':_0x4cc245[_0x4aff54(0x1b4)]['id']+_0x22e11c[_0x4aff54(0x12e)]}}:_0x4cc245)}:_0xa05f7c;}function _0x36960d(){const _0x39dfc7=_0xff167c;return Math[_0x39dfc7(0x12f)]()['toString'](0x24)[_0x39dfc7(0x1df)](0x2,0x8);}_0x17d749['displayName']=_0xff167c(0x16e);const _0x431634={'tag':_0xff167c(0x18c),'attrs':{'xmlns':_0xff167c(0x1e4),'fill':'none','viewBox':_0xff167c(0x149),'width':_0xff167c(0x167),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xff167c(0x1e7),'d':_0xff167c(0x174)}},{'tag':_0xff167c(0x14f),'attrs':{'fill':'currentColor','d':_0xff167c(0x18f),'fillRule':_0xff167c(0x188),'clipRule':_0xff167c(0x188)}}]},_0x4b6f68=_0x27bb21[_0xff167c(0x1fe)](function(_0x43c13c,_0x7fb67f){const _0x582284=_0xff167c;return _0x27bb21['createElement'](_0x17d749,Object[_0x582284(0x1e1)]({},_0x43c13c,{'id':'live-share-icon','ref':_0x7fb67f,'icon':_0x431634}));});_0x4b6f68[_0xff167c(0x1a6)]='LiveShareIcon';class _0x91f7c9 extends _0x2e6932[_0xff167c(0x1b7)]{constructor(){const _0x368338=_0xff167c;super(...arguments),_0x4aa7f7(this,_0x368338(0x1a8),new Set()),_0x4aa7f7(this,_0x368338(0x147),new Set());}[_0xff167c(0x12a)](_0x215d02){const _0x15737d=_0xff167c;return this[_0x15737d(0x1a8)]['add'](_0x215d02),_0x2e6932['toDisposable'](()=>this['_sharedOperations'][_0x15737d(0x1af)](_0x215d02));}[_0xff167c(0x208)](_0x292d7f){const _0x1d419a=_0xff167c;return this[_0x1d419a(0x147)][_0x1d419a(0x165)](_0x292d7f),_0x2e6932[_0x1d419a(0x182)](()=>this[_0x1d419a(0x147)]['delete'](_0x292d7f));}['shouldShareOperation'](_0x23e3a4){const _0x10919a=_0xff167c;return this[_0x10919a(0x1a8)][_0x10919a(0x18a)](_0x23e3a4);}['getInitialStates'](_0x4e076e){return Array['from'](this['_reporters'])['map'](_0x4c505a=>_0x4c505a(_0x4e076e));}}var _0x32a6b7=Object[_0xff167c(0x160)],_0x212b37=(_0x791078,_0x334187,_0x505f31,_0x5b2841)=>{const _0x3abb97=_0xff167c;for(var _0x82a75=_0x5b2841>0x1?void 0x0:_0x5b2841?_0x32a6b7(_0x334187,_0x505f31):_0x334187,_0x41d96e=_0x791078[_0x3abb97(0x19b)]-0x1,_0x4bd210;_0x41d96e>=0x0;_0x41d96e--)(_0x4bd210=_0x791078[_0x41d96e])&&(_0x82a75=_0x4bd210(_0x82a75)||_0x82a75);return _0x82a75;},_0x4379c2=(_0x4f7dac,_0x5af90e)=>(_0x1a2c11,_0x33db49)=>_0x5af90e(_0x1a2c11,_0x33db49,_0x4f7dac);_0x124aa4[_0xff167c(0x19f)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0x2efbce,_0xeb1310,_0x4f6f2a){const _0x4542e8=_0xff167c;super(),_0x4aa7f7(this,_0x4542e8(0x1f6),new Map()),(this[_0x4542e8(0x20a)]=_0x2efbce,this[_0x4542e8(0x186)]=_0xeb1310,this[_0x4542e8(0x15b)]=_0x4f6f2a,this[_0x4542e8(0x170)]());}async[_0xff167c(0x131)](_0x10a52a){const _0x4eebce=_0xff167c;return this[_0x4eebce(0x1f6)][_0x4eebce(0x18a)](_0x10a52a)||await this[_0x4eebce(0x1f8)](_0x10a52a),this[_0x4eebce(0x1f6)]['get'](_0x10a52a);}[_0xff167c(0x19d)](_0x2a9b88){const _0xc59744=_0xff167c;var _0x5b1919;return(_0x5b1919=this[_0xc59744(0x1f6)]['get'](_0x2a9b88))!=null?_0x5b1919:null;}[_0xff167c(0x170)](){const _0xb13e2c=_0xff167c;this[_0xb13e2c(0x20a)][_0xb13e2c(0x1d0)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc[_0xb13e2c(0x176)](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](async _0x31b8b4=>{const _0x499a5e=_0xb13e2c,_0x5f0a10=_0x31b8b4[_0x499a5e(0x19c)]();this['_entities'][_0x499a5e(0x18a)](_0x5f0a10)||this[_0x499a5e(0x1f8)](_0x5f0a10);}),this[_0xb13e2c(0x20a)][_0xb13e2c(0x1e6)](_0x2e6932[_0xb13e2c(0x1ca)][_0xb13e2c(0x1ee)])[_0xb13e2c(0x190)](_0x352fbc['takeUntil'](this[_0xb13e2c(0x1c3)]))[_0xb13e2c(0x1cd)](_0x4957f2=>{const _0x105c00=_0xb13e2c,_0x3684b3=_0x4957f2['getUnitId'](),_0x45bad2=this[_0x105c00(0x1f6)]['get'](_0x3684b3);_0x45bad2==null||_0x45bad2[_0x105c00(0x1bd)]();});}async[_0xff167c(0x1f8)](_0xf30db7){const _0x3c571d=_0xff167c,_0x5a63e4=await this['_collabSessionService'][_0x3c571d(0x195)](_0xf30db7),_0x3f8354=this['_injector'][_0x3c571d(0x1b5)](_0x124aa4[_0x3c571d(0x141)],_0xf30db7,_0x5a63e4);return _0x3f8354[_0x3c571d(0x153)](),this['_entities'][_0x3c571d(0x194)](_0xf30db7,_0x3f8354),_0x3f8354;}},_0x124aa4[_0xff167c(0x19f)]=_0x212b37([_0x4379c2(0x0,_0x2e6932['IUniverInstanceService']),_0x4379c2(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4379c2(0x2,_0x2e6932[_0xff167c(0x1ed)](_0x21ff7a['CollaborationSessionService']))],_0x124aa4[_0xff167c(0x19f)]);var _0x3960af=(_0x47f314=>(_0x47f314[_0xff167c(0x12c)]='offline',_0x47f314[_0xff167c(0x1f9)]=_0xff167c(0x1c2),_0x47f314['FOLLOWING']=_0xff167c(0x146),_0x47f314[_0xff167c(0x17c)]=_0xff167c(0x1c9),_0x47f314[_0xff167c(0x179)]='presenting',_0x47f314))(_0x3960af||{});const _0x4e7fe0=_0xff167c(0x1d2),_0x30cfe0=0xc8;_0x124aa4[_0xff167c(0x141)]=class extends _0x2e6932[_0xff167c(0x14c)]{constructor(_0xb0c605,_0x127c6f,_0x483a0a,_0x27bf4e,_0x3bc9f1){const _0x16fc74=_0xff167c;super(),_0x4aa7f7(this,_0x16fc74(0x126),new _0x241a2b[(_0x16fc74(0x1b9))](_0x16fc74(0x1c2))),_0x4aa7f7(this,_0x16fc74(0x177),this[_0x16fc74(0x126)][_0x16fc74(0x17d)]()),_0x4aa7f7(this,_0x16fc74(0x170),!0x1),_0x4aa7f7(this,_0x16fc74(0x151),null),_0x4aa7f7(this,'_presenter',null),(this[_0x16fc74(0x132)]=_0xb0c605,this[_0x16fc74(0x1dc)]=_0x127c6f,this[_0x16fc74(0x1ef)]=_0x483a0a,this[_0x16fc74(0x15c)]=_0x27bf4e,this[_0x16fc74(0x17a)]=_0x3bc9f1);}get[_0xff167c(0x164)](){const _0x45f3e9=_0xff167c;return this[_0x45f3e9(0x126)][_0x45f3e9(0x20d)]();}[_0xff167c(0x1bd)](){const _0x49aeef=_0xff167c;var _0x42fcab;(_0x42fcab=this[_0x49aeef(0x151)])==null||_0x42fcab[_0x49aeef(0x1bd)](),this[_0x49aeef(0x126)][_0x49aeef(0x17f)](_0x49aeef(0x1c2)),this[_0x49aeef(0x126)][_0x49aeef(0x128)]();}['getStatus'](){return this['_status'];}[_0xff167c(0x153)](){const _0x392008=_0xff167c;this[_0x392008(0x170)]||(this[_0x392008(0x170)]=!0x0,this[_0x392008(0x1dc)][_0x392008(0x196)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x32d2b6=>{const _0x414b47=_0x392008;switch(_0x32d2b6){case _0x21ff7a['SessionStatus'][_0x414b47(0x12c)]:this[_0x414b47(0x1c1)]();break;case _0x21ff7a[_0x414b47(0x156)][_0x414b47(0x209)]:this['_handleOnline']();break;}}),this[_0x392008(0x1dc)][_0x392008(0x16f)][_0x392008(0x190)](_0x352fbc[_0x392008(0x176)](this[_0x392008(0x1c3)]))[_0x392008(0x1cd)](_0x2f1ec5=>{const _0x203c82=_0x392008,{eventID:_0xa01515}=_0x2f1ec5;switch(_0xa01515){case _0x25a5e1['CollaborationEvent'][_0x203c82(0x1ac)]:this[_0x203c82(0x135)](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b0)]:this['_handleOperation'](_0x2f1ec5);break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1f2)]:this['_handleTerminate']();break;case _0x25a5e1[_0x203c82(0x1ab)][_0x203c82(0x1b8)]:this[_0x203c82(0x15f)](_0x2f1ec5);break;}}));}[_0xff167c(0x154)](){const _0x4002ad=_0xff167c;this['_collabSession'][_0x4002ad(0x1bf)]({'eventID':_0x25a5e1[_0x4002ad(0x1ab)][_0x4002ad(0x161)],'data':{'unitID':this[_0x4002ad(0x132)],'userID':this['_collabSession'][_0x4002ad(0x16c)]()}},this[_0x4002ad(0x132)]);}[_0xff167c(0x1c7)](){const _0x179481=_0xff167c;this['_status']==='presenting'&&(this[_0x179481(0x126)][_0x179481(0x17f)](_0x179481(0x1c2)),this['_collabSession'][_0x179481(0x1bf)]({'eventID':_0x25a5e1[_0x179481(0x1ab)][_0x179481(0x1f2)],'data':{'unitID':this['_unitID']}},this[_0x179481(0x132)]));}[_0xff167c(0x158)](){const _0xf6caac=_0xff167c;this[_0xf6caac(0x164)]==='not-following'&&(this[_0xf6caac(0x126)][_0xf6caac(0x17f)](_0xf6caac(0x146)),this[_0xf6caac(0x1a7)]());}['stopFollowing'](){const _0x5a5e5d=_0xff167c;this['_status']==='following'&&this[_0x5a5e5d(0x15d)]();}['_handleNewHost'](_0x39d721){const _0x49856d=_0xff167c,{presenter:_0x3312ef}=_0x39d721['data'],_0x2c93d1=this[_0x49856d(0x1dc)]['getMemberID']();this['_presenter']=_0x3312ef,_0x3312ef===_0x2c93d1?(this[_0x49856d(0x15d)](),this[_0x49856d(0x197)]()):this[_0x49856d(0x164)]!==_0x49856d(0x1c9)&&(this[_0x49856d(0x1e2)](),this['_startFollowing']());}[_0xff167c(0x1e5)](){const _0x5aab9c=_0xff167c,_0x79866e={'eventID':_0x25a5e1[_0x5aab9c(0x1ab)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5aab9c(0x1dc)][_0x5aab9c(0x1bf)](_0x79866e,this[_0x5aab9c(0x132)]);}[_0xff167c(0x1ce)](){const _0x382909=_0xff167c;this[_0x382909(0x1cb)]=null,this[_0x382909(0x164)]!==_0x382909(0x18e)&&this[_0x382909(0x1a3)]();}[_0xff167c(0x15f)](_0x55cb47){const _0x200cba=_0xff167c;if(this[_0x200cba(0x164)]===_0x200cba(0x146)&&this[_0x200cba(0x1cb)]===_0x55cb47[_0x200cba(0x1b6)]['memberID']){const _0x42df3d=_0x25a5e1[_0x200cba(0x14b)](_0x55cb47['data'])[_0x200cba(0x1d7)][_0x200cba(0x18b)]()['find'](_0x1ca576=>_0x1ca576['id']===_0x113b7d['InsertSheetMutation']['id']);if(_0x42df3d){const _0x379542=_0x42df3d[_0x200cba(0x1be)]['unitId'],_0x8ddbbd=_0x42df3d['params'][_0x200cba(0x1ea)]['id'];setTimeout(()=>{const _0x3d96d7=_0x200cba;this[_0x3d96d7(0x17a)]['executeCommand'](_0x113b7d[_0x3d96d7(0x1a9)]['id'],{'unitId':_0x379542,'subUnitId':_0x8ddbbd},{'fromCollab':!0x0});});}}}[_0xff167c(0x197)](){const _0x91ee5c=_0xff167c;this['_status$'][_0x91ee5c(0x17f)]('presenting');const _0x19a18a=new Map(),_0x5a1d25=this['_commandDisposable']=new _0x2e6932[(_0x91ee5c(0x1b1))]();_0x5a1d25[_0x91ee5c(0x165)](_0x2e6932[_0x91ee5c(0x182)](()=>{const _0x412d6f=_0x91ee5c;_0x19a18a['forEach'](_0x572a2d=>_0x572a2d[_0x412d6f(0x128)]()),_0x19a18a[_0x412d6f(0x16d)]();})),_0x5a1d25[_0x91ee5c(0x165)](this[_0x91ee5c(0x17a)]['onCommandExecuted'](_0x51b613=>{const _0x423f1f=_0x91ee5c;var _0x41b713;if(_0x51b613[_0x423f1f(0x159)]!==_0x2e6932[_0x423f1f(0x1f4)][_0x423f1f(0x19a)]||!this[_0x423f1f(0x15c)]['shouldShareOperation'](_0x51b613['id']))return;const {id:_0x34a7a5}=_0x51b613;let _0x22d293;_0x19a18a['has'](_0x34a7a5)?_0x22d293=_0x19a18a[_0x423f1f(0x178)](_0x34a7a5):(_0x22d293=new _0x241a2b['Subject'](),_0x19a18a['set'](_0x34a7a5,_0x22d293),_0x22d293[_0x423f1f(0x190)](_0x352fbc[_0x423f1f(0x144)]((_0x41b713=this[_0x423f1f(0x1ef)][_0x423f1f(0x1fb)](_0x4e7fe0))!=null?_0x41b713:_0x30cfe0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x423f1f(0x1cd)](_0x5267f6=>{const _0x16d84c=_0x423f1f;this['_collabSession'][_0x16d84c(0x1bf)]({'eventID':_0x25a5e1[_0x16d84c(0x1ab)][_0x16d84c(0x1b0)],'data':{'unitID':this[_0x16d84c(0x132)],'operations':{[_0x5267f6['id']]:{'id':_0x5267f6['id'],'params':JSON[_0x16d84c(0x1e3)](_0x5267f6[_0x16d84c(0x1be)])}}}},this[_0x16d84c(0x132)]);})),_0x22d293[_0x423f1f(0x17f)](_0x51b613);})),this[_0x91ee5c(0x15c)][_0x91ee5c(0x201)](this[_0x91ee5c(0x132)])[_0x91ee5c(0x19e)](_0x4a1b71=>this['_collabSession'][_0x91ee5c(0x1bf)]({'eventID':_0x25a5e1['CollaborationEvent'][_0x91ee5c(0x1b0)],'data':{'unitID':this[_0x91ee5c(0x132)],'operations':{[_0x4a1b71['id']]:{'id':_0x4a1b71['id'],'params':JSON[_0x91ee5c(0x1e3)](_0x4a1b71[_0x91ee5c(0x1be)])}}}},this[_0x91ee5c(0x132)]));}[_0xff167c(0x1e2)](){const _0x2750e1=_0xff167c;var _0x3898de;this['_status$']['next']('idle'),(_0x3898de=this[_0x2750e1(0x151)])==null||_0x3898de[_0x2750e1(0x1bd)](),this[_0x2750e1(0x151)]=null;}[_0xff167c(0x1a7)](){const _0x3a1104=_0xff167c;var _0x1bd966;(_0x1bd966=this[_0x3a1104(0x151)])==null||_0x1bd966[_0x3a1104(0x1bd)](),this['_status$'][_0x3a1104(0x17f)](_0x3a1104(0x146));}[_0xff167c(0x1a3)](){const _0x3e5e8d=_0xff167c;var _0x486c3c;this['_status$'][_0x3e5e8d(0x17f)](_0x3e5e8d(0x1c2)),(_0x486c3c=this[_0x3e5e8d(0x151)])==null||_0x486c3c[_0x3e5e8d(0x1bd)](),this[_0x3e5e8d(0x151)]=null;}[_0xff167c(0x15d)](){const _0x536b98=_0xff167c;var _0x4892c2;this['_status$'][_0x536b98(0x17f)]('not-following'),(_0x4892c2=this[_0x536b98(0x151)])==null||_0x4892c2['dispose']();}[_0xff167c(0x1f7)](_0x1199f5){const _0x3261b5=_0xff167c;if(['presenting',_0x3261b5(0x1c9),_0x3261b5(0x142)][_0x3261b5(0x1a5)](this[_0x3261b5(0x164)])||!_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]||_0x1199f5[_0x3261b5(0x1b6)][_0x3261b5(0x127)]===this['_collabSession'][_0x3261b5(0x16c)]())return;this[_0x3261b5(0x164)]===_0x3261b5(0x1c2)&&this['_startFollowing']();const _0x2d7a3c=_0x1199f5['data'][_0x3261b5(0x13a)];Object['values'](_0x2d7a3c)[_0x3261b5(0x19e)](_0x38e0e9=>{const _0x54b79e=_0x3261b5;this[_0x54b79e(0x17a)][_0x54b79e(0x1d1)](_0x38e0e9['id'],_0x38e0e9[_0x54b79e(0x1be)]?JSON['parse'](_0x38e0e9[_0x54b79e(0x1be)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5b5888=_0xff167c;var _0x34bd52;this[_0x5b5888(0x126)][_0x5b5888(0x17f)]('offline'),(_0x34bd52=this[_0x5b5888(0x151)])==null||_0x34bd52[_0x5b5888(0x1bd)]();}[_0xff167c(0x14e)](){const _0x38a3ed=_0xff167c;this[_0x38a3ed(0x126)]['next'](_0x38a3ed(0x1c2)),this['_fetchOperations']();}},_0x124aa4[_0xff167c(0x141)]=_0x212b37([_0x4379c2(0x2,_0x2e6932['IConfigService']),_0x4379c2(0x3,_0x2e6932['Inject'](_0x91f7c9)),_0x4379c2(0x4,_0x2e6932[_0xff167c(0x13f)])],_0x124aa4[_0xff167c(0x141)]);function _0x1245b9(){const _0x3b9e82=_0xff167c,_0x578162=_0x2124f8[_0x3b9e82(0x1ff)](_0x124aa4[_0x3b9e82(0x19f)]),_0x57d449=_0x2124f8[_0x3b9e82(0x1ff)](_0x2e6932[_0x3b9e82(0x12b)]),_0x3d76c5=_0x2124f8[_0x3b9e82(0x202)](()=>_0x57d449[_0x3b9e82(0x157)](_0x2e6932[_0x3b9e82(0x1ca)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27fc08,_0x46d9b8]=_0x27bb21[_0x3b9e82(0x180)](null),[_0x3316bb,_0x51f042]=_0x27bb21['useState'](_0x3960af[_0x3b9e82(0x1f9)]),_0x582cd9=_0x27bb21[_0x3b9e82(0x1fd)](null);return _0x27bb21[_0x3b9e82(0x1dd)](()=>(_0x3d76c5&&_0x578162[_0x3b9e82(0x131)](_0x3d76c5[_0x3b9e82(0x19c)]())['then'](_0x93b0ac=>{const _0x314eb4=_0x3b9e82;_0x46d9b8(_0x93b0ac),_0x582cd9[_0x314eb4(0x173)]=_0x93b0ac[_0x314eb4(0x177)][_0x314eb4(0x1cd)](_0x482bf2=>{_0x51f042(_0x482bf2);});}),()=>{const _0x41188b=_0x3b9e82;var _0x25bf46;(_0x25bf46=_0x582cd9[_0x41188b(0x173)])==null||_0x25bf46[_0x41188b(0x1d9)](),_0x582cd9['current']=null;}),[_0x3d76c5,_0x578162]),_0x27fc08?_0x479a5c['jsx'](_0x1b6253['Dropdown'],{'align':_0x3b9e82(0x1aa),'disabled':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'className':_0x3b9e82(0x162),'overlay':_0x479a5c[_0x3b9e82(0x140)](_0x2fe7fd,{'status':_0x3316bb,'coordinator':_0x27fc08}),'children':_0x479a5c[_0x3b9e82(0x140)](_0x3b9e82(0x15a),{'className':_0x1b6253[_0x3b9e82(0x163)](_0x3b9e82(0x17e),{'univer-cursor-not-allowed':_0x3316bb===_0x3960af[_0x3b9e82(0x12c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3316bb!==_0x3960af[_0x3b9e82(0x12c)]}),'type':_0x3b9e82(0x15a),'children':_0x479a5c[_0x3b9e82(0x140)](_0x4b6f68,{'className':_0x3b9e82(0x1de)})})}):null;}function _0x2fe7fd(_0x58fd00){const _0x19b0a6=_0xff167c,{status:_0x42fbcc,coordinator:_0x8f0b62}=_0x58fd00;switch(_0x42fbcc){case _0x3960af[_0x19b0a6(0x1f9)]:return _0x479a5c[_0x19b0a6(0x140)](_0x21b95c,{'coordinator':_0x8f0b62});case _0x3960af['FOLLOWING']:return _0x479a5c[_0x19b0a6(0x140)](_0x51592b,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x17c)]:return _0x479a5c[_0x19b0a6(0x140)](_0x5a680d,{'coordinator':_0x8f0b62});case _0x3960af[_0x19b0a6(0x12c)]:return _0x479a5c['jsx'](_0x30309f,{});case _0x3960af[_0x19b0a6(0x179)]:return _0x479a5c[_0x19b0a6(0x140)](_0x44be0d,{'coordinator':_0x8f0b62});default:return null;}}function _0x21b95c(_0x4f783e){const _0x158ba8=_0xff167c,{coordinator:_0x3c34f1}=_0x4f783e;return _0x479a5c[_0x158ba8(0x20b)](_0x479a5c[_0x158ba8(0x16a)],{'children':[_0x479a5c[_0x158ba8(0x140)](_0x158ba8(0x12d),{'className':_0x158ba8(0x207),'children':'Present\x20this\x20document'}),_0x479a5c['jsx'](_0x1b6253[_0x158ba8(0x18d)],{'onClick':()=>_0x3c34f1[_0x158ba8(0x154)](),'children':_0x158ba8(0x143)})]});}function _0x51592b(_0x33003f){const _0x3a7679=_0xff167c,{coordinator:_0x5df222}=_0x33003f;return _0x479a5c[_0x3a7679(0x20b)](_0x479a5c[_0x3a7679(0x16a)],{'children':[_0x479a5c[_0x3a7679(0x140)]('div',{'className':_0x3a7679(0x207),'children':_0x3a7679(0x13c)}),_0x479a5c[_0x3a7679(0x140)](_0x1b6253['Button'],{'onClick':()=>_0x5df222[_0x3a7679(0x1bc)](),'children':_0x3a7679(0x1cf)})]});}function _0x5a680d(_0x17c7ec){const _0x5e7236=_0xff167c,{coordinator:_0x121ced}=_0x17c7ec;return _0x479a5c[_0x5e7236(0x20b)](_0x479a5c['Fragment'],{'children':[_0x479a5c[_0x5e7236(0x140)](_0x5e7236(0x12d),{'className':_0x5e7236(0x207),'children':_0x5e7236(0x1e0)}),_0x479a5c[_0x5e7236(0x140)](_0x1b6253[_0x5e7236(0x18d)],{'variant':_0x5e7236(0x1cc),'onClick':()=>_0x121ced[_0x5e7236(0x158)](),'children':_0x5e7236(0x20e)})]});}function _0x44be0d(_0xf6aae6){const _0x2abc0a=_0xff167c,{coordinator:_0x2ae248}=_0xf6aae6;return _0x479a5c['jsxs'](_0x479a5c[_0x2abc0a(0x16a)],{'children':[_0x479a5c[_0x2abc0a(0x140)](_0x2abc0a(0x12d),{'className':_0x2abc0a(0x207),'children':_0x2abc0a(0x171)}),_0x479a5c[_0x2abc0a(0x140)](_0x1b6253[_0x2abc0a(0x18d)],{'variant':_0x2abc0a(0x1f1),'onClick':()=>_0x2ae248[_0x2abc0a(0x1c7)](),'children':_0x2abc0a(0x13d)})]});}function _0x30309f(){return _0x479a5c['jsx'](_0x479a5c['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x4fe67c=Object[_0xff167c(0x160)],_0x21d3ff=(_0x1f0fe0,_0x262210,_0xb34d2,_0x3d7149)=>{for(var _0xebbe25=_0x3d7149>0x1?void 0x0:_0x3d7149?_0x4fe67c(_0x262210,_0xb34d2):_0x262210,_0x2e7540=_0x1f0fe0['length']-0x1,_0x214ee0;_0x2e7540>=0x0;_0x2e7540--)(_0x214ee0=_0x1f0fe0[_0x2e7540])&&(_0xebbe25=_0x214ee0(_0xebbe25)||_0xebbe25);return _0xebbe25;},_0xbff61b=(_0x45b303,_0xaa3405)=>(_0x652b97,_0x1c1673)=>_0xaa3405(_0x652b97,_0x1c1673,_0x45b303);_0x124aa4[_0xff167c(0x1d3)]=class extends _0x2e6932[_0xff167c(0x1b7)]{constructor(_0x213579,_0x39a5e7){const _0x211b2d=_0xff167c;super(),this[_0x211b2d(0x186)]=_0x213579,this['_uiPartsService']=_0x39a5e7,this[_0x211b2d(0x1b3)]();}[_0xff167c(0x1b3)](){const _0x5cbc67=_0xff167c;this['disposeWithMe'](this[_0x5cbc67(0x1b2)][_0x5cbc67(0x1d4)](_0x2124f8[_0x5cbc67(0x1d8)][_0x5cbc67(0x203)],()=>_0x2124f8['connectInjector'](_0x1245b9,this[_0x5cbc67(0x186)])));}},_0x124aa4['DesktopLiveShareController']=_0x21d3ff([_0xbff61b(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932['Injector'])),_0xbff61b(0x1,_0x2124f8[_0xff167c(0x168)])],_0x124aa4[_0xff167c(0x1d3)]);const _0x2be868=_0xff167c(0x1f3),_0x5f4f08={};var _0x4045d7=Object['getOwnPropertyDescriptor'],_0x2d5431=(_0x469d09,_0x54e0ad,_0x500a94,_0x25e0bb)=>{for(var _0x4d207d=_0x25e0bb>0x1?void 0x0:_0x25e0bb?_0x4045d7(_0x54e0ad,_0x500a94):_0x54e0ad,_0x2fcabf=_0x469d09['length']-0x1,_0x539e4e;_0x2fcabf>=0x0;_0x2fcabf--)(_0x539e4e=_0x469d09[_0x2fcabf])&&(_0x4d207d=_0x539e4e(_0x4d207d)||_0x4d207d);return _0x4d207d;},_0x472b04=(_0x43a2fc,_0xd07ee9)=>(_0x582d30,_0x408471)=>_0xd07ee9(_0x582d30,_0x408471,_0x43a2fc);let _0x1c348a=class extends _0x2e6932['Disposable']{constructor(_0x2f3c13){const _0x5c4e3b=_0xff167c;super(),this['_liveShareService']=_0x2f3c13,this[_0x5c4e3b(0x170)]();}['_init'](){const _0x5f407b=_0xff167c;[_0x37f5a8[_0x5f407b(0x1a1)]['id'],_0x37f5a8[_0x5f407b(0x187)]['id'],_0x113b7d[_0x5f407b(0x1a9)]['id']]['forEach'](_0x7fef13=>{const _0x17977e=_0x5f407b;this[_0x17977e(0x145)](this[_0x17977e(0x15c)][_0x17977e(0x12a)](_0x7fef13));});}};_0x1c348a=_0x2d5431([_0x472b04(0x0,_0x2e6932[_0xff167c(0x1ed)](_0x91f7c9))],_0x1c348a);var _0x34eef2=Object['defineProperty'],_0x2924f8=Object['getOwnPropertyDescriptor'],_0x5ec996=(_0x273783,_0x457954,_0x212dd3)=>_0x457954 in _0x273783?_0x34eef2(_0x273783,_0x457954,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212dd3}):_0x273783[_0x457954]=_0x212dd3,_0x4c7219=(_0x1e511a,_0x255f4e,_0x36a4f0,_0x31e64d)=>{const _0xfaece2=_0xff167c;for(var _0x1b701c=_0x31e64d>0x1?void 0x0:_0x31e64d?_0x2924f8(_0x255f4e,_0x36a4f0):_0x255f4e,_0x3d009e=_0x1e511a[_0xfaece2(0x19b)]-0x1,_0x5bf5b3;_0x3d009e>=0x0;_0x3d009e--)(_0x5bf5b3=_0x1e511a[_0x3d009e])&&(_0x1b701c=_0x5bf5b3(_0x1b701c)||_0x1b701c);return _0x1b701c;},_0x4fae5d=(_0xfe56b8,_0x332b07)=>(_0x221e3a,_0x5e6229)=>_0x332b07(_0x221e3a,_0x5e6229,_0xfe56b8),_0x1eab69=(_0x1ca381,_0x552dd4,_0x49d00c)=>_0x5ec996(_0x1ca381,typeof _0x552dd4!=_0xff167c(0x1a2)?_0x552dd4+'':_0x552dd4,_0x49d00c);const _0x3aae4a=_0xff167c(0x175);_0x124aa4[_0xff167c(0x130)]=class extends _0x2e6932[_0xff167c(0x137)]{constructor(_0x43477f=_0x5f4f08,_0x34ba7d,_0x502d79){const _0x42dc86=_0xff167c;super(),this[_0x42dc86(0x1da)]=_0x43477f,this['_injector']=_0x34ba7d,this[_0x42dc86(0x1ef)]=_0x502d79;const {..._0x2f11ee}=_0x2e6932[_0x42dc86(0x1ba)]({},_0x5f4f08,this[_0x42dc86(0x1da)]);this[_0x42dc86(0x1ef)][_0x42dc86(0x200)](_0x2be868,_0x2f11ee);}['onStarting'](){const _0x3ed0a1=_0xff167c;_0x2e6932[_0x3ed0a1(0x138)](this[_0x3ed0a1(0x186)],_0x2e6932[_0x3ed0a1(0x15e)]([[_0x91f7c9],[_0x124aa4[_0x3ed0a1(0x19f)]],[_0x1c348a],[_0x124aa4[_0x3ed0a1(0x1d3)]]],this[_0x3ed0a1(0x1da)][_0x3ed0a1(0x206)])),_0x2e6932[_0x3ed0a1(0x1fa)](this[_0x3ed0a1(0x186)],[[_0x1c348a]]);}[_0xff167c(0x1f5)](){const _0x2ea001=_0xff167c;_0x2e6932['touchDependencies'](this[_0x2ea001(0x186)],[[_0x124aa4[_0x2ea001(0x1d3)]]]);}},_0x1eab69(_0x124aa4[_0xff167c(0x130)],_0xff167c(0x159),_0x2e6932[_0xff167c(0x1ca)]['UNIVER_UNKNOWN']),_0x1eab69(_0x124aa4[_0xff167c(0x130)],'pluginName',_0x3aae4a),_0x124aa4[_0xff167c(0x130)]=_0x4c7219([_0x2e6932[_0xff167c(0x139)](_0x21ff7a[_0xff167c(0x16b)]),_0x4fae5d(0x1,_0x2e6932[_0xff167c(0x1ed)](_0x2e6932[_0xff167c(0x1eb)])),_0x4fae5d(0x2,_0x2e6932[_0xff167c(0x166)])],_0x124aa4[_0xff167c(0x130)]),_0x124aa4[_0xff167c(0x185)]=_0x1245b9,_0x124aa4['LiveShareService']=_0x91f7c9,_0x124aa4[_0xff167c(0x192)]=_0x3960af,Object['defineProperty'](_0x124aa4,Symbol[_0xff167c(0x14d)],{'value':'Module'});}));function _0x2f9c(){const _0x320927=['next','useState','defs','toDisposable','createElement','url(#$1','LiveShare','_injector','SetScrollOperation','evenodd','string','has','reverse','svg','Button','presenting','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','pipe','136847XaemHF','LiveShareStatus','React','set','requireSession','sessionStatus$','_startPresenting','1174964uwnRxi','use','OPERATION','length','getUnitId','getLiveShareCoordinatorSync','forEach','LiveShareController','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','symbol','_beIdle','9651BIiCaw','includes','displayName','_startFollowing','_sharedOperations','SetWorksheetActiveOperation','end','CollaborationEvent','LIVESHARE_NEW_HOST','defIds','UniverSheets','delete','LIVESHARE_OPERATION','DisposableCollection','_uiPartsService','_mountLiveShare','attrs','createInstance','data','Disposable','NEW_CHANGESETS','BehaviorSubject','merge','mask','stopFollowing','dispose','params','send','replace','_handleOffline','idle','dispose$','30wwRfmx','xlink:href','@univerjs/ui','stopPresenting','react/jsx-runtime','not-following','UniverInstanceType','_presenter','text','subscribe','_handleTerminate','Stop\x20following','getTypeOfUnitAdded$','executeCommand','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','registerComponent','rxjs','@univerjs-pro/collaboration','mutations','BuiltInUIPart','unsubscribe','_config','2758693mNZqGX','_collabSession','useEffect','univer-size-4','substring','You\x27re\x20not\x20following\x20the\x20presenter','assign','_stopPresenting','stringify','http://www.w3.org/2000/svg','_fetchOperations','getTypeOfUnitDisposed$','currentColor','@univerjs/sheets-ui','object','sheet','Injector','react','Inject','UNIVER_SHEET','_configService','amd','default','LIVESHARE_TERMINATE','live-share.config','CommandType','onRendered','_entities','_handleOperation','_startLiveShareCoordinator','IDLE','touchDependencies','getConfig','colorChannel1','useRef','forwardRef','useDependency','setConfig','getInitialStates','useObservable','HEADER_MENU','282DzrJeF','entries','override','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerInitialStateReporter','ONLINE','_univerInstanceService','jsxs','operators','getValue','Start\x20following','_status$','presenter','complete','@univerjs/core','registerSharedOperation','IUniverInstanceService','OFFLINE','div','idSuffix','random','UniverLiveSharePlugin','getLiveShareCoordinator','_unitID','UniverProCollaborationClient','11570460lsDZKL','_handleNewHost','rxjs/operators','Plugin','registerDependencies','DependentOn','operations','UniverProCollaboration','You\x27re\x20following\x20the\x20presenter','Stop\x20presenting','function','ICommandService','jsx','LiveShareCoordinator','offline','Start','throttleTime','disposeWithMe','following','_reporters','2115PXIkSw','0\x200\x2017\x2017','11965ZWvdjy','parseProtocolChangeset','RxDisposable','toStringTag','_handleOnline','path','tag','_commandDisposable','UniverSheetsUi','init','tryStartPresenting','fill','SessionStatus','getCurrentTypeOfUnit$','startFollowing','type','button','_collabSessionService','_liveShareService','_stopFollowing','mergeOverrideWithDependencies','_handleNewChangeSets','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','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','clsx','_status','add','IConfigService','1em','IUIPartsService','14408QstkmJ','Fragment','UniverCollaborationClientPlugin','getMemberID','clear','UniverIcon','event$','_init','You\x27re\x20presenting\x20the\x20document','trim','current','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','UNIVER_LIVE_SHARE_PLUGIN','takeUntil','status$','get','PRESENTING','_commandService','children','NOT_FOLLOWING','asObservable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x2f9c=function(){return _0x320927;};return _0x2f9c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0-insiders.20260107-3d1cfdf",
3
+ "version": "0.15.0-insiders.20260108-47c73e3",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,15 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3d1cfdf",
61
- "@univerjs/core": "0.15.0-insiders.20260107-3d1cfdf",
62
- "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3d1cfdf",
63
- "@univerjs/design": "0.15.0-insiders.20260107-3d1cfdf",
64
- "@univerjs/engine-render": "0.15.0-insiders.20260107-3d1cfdf",
65
- "@univerjs/sheets": "0.15.0-insiders.20260107-3d1cfdf",
66
- "@univerjs/ui": "0.15.0-insiders.20260107-3d1cfdf",
67
- "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3d1cfdf"
59
+ "@univerjs/icons": "^1.1.1",
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20260108-47c73e3",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260108-47c73e3",
62
+ "@univerjs/design": "0.15.0-insiders.20260108-47c73e3",
63
+ "@univerjs/engine-render": "0.15.0-insiders.20260108-47c73e3",
64
+ "@univerjs/core": "0.15.0-insiders.20260108-47c73e3",
65
+ "@univerjs/sheets": "0.15.0-insiders.20260108-47c73e3",
66
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260108-47c73e3",
67
+ "@univerjs/ui": "0.15.0-insiders.20260108-47c73e3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.3.0",
75
+ "vite": "^7.3.1",
76
76
  "vitest": "^4.0.16",
77
- "@univerjs-infra/shared": "0.15.0",
78
- "@univerjs/protocol": "0.1.48"
77
+ "@univerjs/protocol": "0.1.48",
78
+ "@univerjs-infra/shared": "0.15.0"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",