@univerjs-pro/live-share 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3441c7a

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 _0x4204b=_0x2264;function _0x2264(_0x5d1833,_0x2c981f){_0x5d1833=_0x5d1833-0xe5;const _0x175ff7=_0x175f();let _0x2264b2=_0x175ff7[_0x5d1833];return _0x2264b2;}(function(_0x487e16,_0x29f2f1){const _0x41df78=_0x2264,_0x7a70fc=_0x487e16();while(!![]){try{const _0x2be899=-parseInt(_0x41df78(0xeb))/0x1*(parseInt(_0x41df78(0x10f))/0x2)+-parseInt(_0x41df78(0xea))/0x3+parseInt(_0x41df78(0x106))/0x4*(-parseInt(_0x41df78(0xfb))/0x5)+parseInt(_0x41df78(0xf8))/0x6+parseInt(_0x41df78(0xec))/0x7*(-parseInt(_0x41df78(0x107))/0x8)+parseInt(_0x41df78(0x105))/0x9*(-parseInt(_0x41df78(0x101))/0xa)+parseInt(_0x41df78(0xe7))/0xb;if(_0x2be899===_0x29f2f1)break;else _0x7a70fc['push'](_0x7a70fc['shift']());}catch(_0x4788c1){_0x7a70fc['push'](_0x7a70fc['shift']());}}}(_0x175f,0xae686));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[_0x4204b(0xed)]{[_0x4204b(0xe6)](_0x41f5a6,_0x209d65,_0x4532fb,_0x53f44f,_0x1b9d51){const _0x4cb44c=_0x4204b,_0x58e1bf=_0x41f5a6[_0x4cb44c(0xfc)](n['LiveShareController']),_0x54ac6c=_0x41f5a6['get'](g['IRenderManagerService']),_0x27e621=_0x209d65[_0x4cb44c(0x108)](),_0x1218ac=_0x209d65[_0x4cb44c(0xf6)](),_0x241548=_0x58e1bf[_0x4cb44c(0xf7)](_0x27e621);(_0x241548==null?void 0x0:_0x241548[_0x4cb44c(0xf9)]())!==n[_0x4cb44c(0xee)][_0x4cb44c(0xe9)]||(_0x4532fb[_0x4cb44c(0xf5)]()!==_0x1218ac['getSheetId']()&&this[_0x4cb44c(0xf3)][_0x4cb44c(0x103)](u[_0x4cb44c(0xe5)]['id'],{'unitId':_0x27e621,'subUnitId':_0x4532fb['getSheetId']()}),!_0x54ac6c['getRenderById'](_0x27e621))||_0x1b9d51['syncExecuteCommand'](f[_0x4cb44c(0xff)]['id'],{'unitId':_0x209d65[_0x4cb44c(0x108)](),'sheetId':_0x4532fb[_0x4cb44c(0xf5)](),'sheetViewStartRow':_0x53f44f['startRow'],'sheetViewStartColumn':_0x53f44f[_0x4cb44c(0xe8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x4204b(0xed)]['extend'](w);class C extends a['FUniver']{[_0x4204b(0xfd)](){const _0x23937d=_0x4204b;var _0x82568f,_0x258ec8;const _0x44ba23=this[_0x23937d(0xfa)][_0x23937d(0xfc)](n[_0x23937d(0xf2)]),_0x2138c7=(_0x82568f=this[_0x23937d(0xef)]())==null?void 0x0:_0x82568f[_0x23937d(0x10a)]();if(!_0x2138c7)throw new Error(_0x23937d(0xfe));const _0x46ba8a=_0x44ba23[_0x23937d(0xf7)](_0x2138c7);return(_0x258ec8=_0x46ba8a==null?void 0x0:_0x46ba8a['getStatus']())!=null?_0x258ec8:n[_0x23937d(0xee)][_0x23937d(0x109)];}[_0x4204b(0xf1)](){const _0x4e0748=_0x4204b;var _0x1cffff;const _0x22480a=this['_injector'][_0x4e0748(0xfc)](n[_0x4e0748(0xf2)]),_0x41cd70=(_0x1cffff=this[_0x4e0748(0xef)]())==null?void 0x0:_0x1cffff[_0x4e0748(0x10a)]();if(!_0x41cd70)throw new Error(_0x4e0748(0xfe));const _0x519feb=_0x22480a['getLiveShareCoordinatorSync'](_0x41cd70);if(!_0x519feb)throw new Error(_0x4e0748(0x100));_0x519feb[_0x4e0748(0xf1)]();}[_0x4204b(0x10c)](){const _0xc937b5=_0x4204b;var _0x4082b1;const _0x131877=this['_injector'][_0xc937b5(0xfc)](n[_0xc937b5(0xf2)]),_0x238049=(_0x4082b1=this[_0xc937b5(0xef)]())==null?void 0x0:_0x4082b1[_0xc937b5(0x10a)]();if(!_0x238049)throw new Error(_0xc937b5(0xfe));const _0x233a5d=_0x131877[_0xc937b5(0xf7)](_0x238049);if(!_0x233a5d)throw new Error(_0xc937b5(0x100));_0x233a5d['stopFollowing']();}[_0x4204b(0x102)](){const _0x2baaf9=_0x4204b;var _0x36a465;const _0x1975e8=this[_0x2baaf9(0xfa)][_0x2baaf9(0xfc)](n['LiveShareController']),_0x4bc160=(_0x36a465=this['getActiveWorkbook']())==null?void 0x0:_0x36a465[_0x2baaf9(0x10a)]();if(!_0x4bc160)throw new Error(_0x2baaf9(0xfe));const _0x13abb0=_0x1975e8[_0x2baaf9(0xf7)](_0x4bc160);if(!_0x13abb0)throw new Error(_0x2baaf9(0x100));_0x13abb0[_0x2baaf9(0x104)]();}['stopPresenting'](){const _0x4415b5=_0x4204b;var _0x19a8b6;const _0x201ecf=this[_0x4415b5(0xfa)][_0x4415b5(0xfc)](n[_0x4415b5(0xf2)]),_0x221ac7=(_0x19a8b6=this[_0x4415b5(0xef)]())==null?void 0x0:_0x19a8b6['getId']();if(!_0x221ac7)throw new Error(_0x4415b5(0xfe));const _0x435049=_0x201ecf[_0x4415b5(0xf7)](_0x221ac7);if(!_0x435049)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x435049[_0x4415b5(0xf0)]();}}a[_0x4204b(0x10d)][_0x4204b(0x10e)](C);class L extends a[_0x4204b(0x10b)]{get[_0x4204b(0xf4)](){const _0x10fe3a=_0x4204b;return n[_0x10fe3a(0xee)];}}function _0x175f(){const _0x2c9c0b=['getUnitId','IDLE','getId','FEnum','stopFollowing','FUniver','extend','102556NKwLpD','SetWorksheetActiveOperation','_initialize','35244000vPehbK','startColumn','PRESENTING','301383jZSzFv','13AGIGFw','7JTAOjO','FRange','LiveShareStatus','getActiveWorkbook','stopPresenting','startFollowing','LiveShareController','_commandService','LiveShareStatusEnum','getSheetId','getActiveSheet','getLiveShareCoordinatorSync','6233346MAuMBz','getStatus','_injector','5307095TURzOu','get','getLiveShareStatus','No\x20active\x20workbook\x20found.','SetScrollOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1388630jxpAyB','startPresenting','executeCommand','tryStartPresenting','90iospdZ','4luTaKH','2491144ctRncy'];_0x175f=function(){return _0x2c9c0b;};return _0x175f();}a[_0x4204b(0x10b)][_0x4204b(0x10e)](L);
1
+ 'use strict';function _0x3bb2(){const _0x68999=['_injector','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','836220BBsoWM','SetScrollOperation','startFollowing','FRange','14408MKfqoR','1177975sitrvk','getActiveWorkbook','extend','get','syncExecuteCommand','tryStartPresenting','303730LQiIqc','getId','FEnum','34859MmFQDN','getUnitId','stopFollowing','getSheetId','33468zZmirW','LiveShareStatusEnum','144RnzZQd','144222cZpldZ','startPresenting','LiveShareController','getStatus','startRow','FUniver','executeCommand','LiveShareStatus','No\x20active\x20workbook\x20found.'];_0x3bb2=function(){return _0x68999;};return _0x3bb2();}const _0x531d44=_0x5615;(function(_0x10a67a,_0x3f4810){const _0x110167=_0x5615,_0x39163a=_0x10a67a();while(!![]){try{const _0x22d1ac=parseInt(_0x110167(0x1f4))/0x1+-parseInt(_0x110167(0x207))/0x2+parseInt(_0x110167(0x1fa))/0x3*(parseInt(_0x110167(0x1f8))/0x4)+parseInt(_0x110167(0x1eb))/0x5+parseInt(_0x110167(0x1fb))/0x6+-parseInt(_0x110167(0x1f1))/0x7+-parseInt(_0x110167(0x1ea))/0x8;if(_0x22d1ac===_0x3f4810)break;else _0x39163a['push'](_0x39163a['shift']());}catch(_0x162d65){_0x39163a['push'](_0x39163a['shift']());}}}(_0x3bb2,0x38d66));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[_0x531d44(0x1e9)]{['_initialize'](_0x34e6ea,_0xf299e9,_0x5cdc1,_0x2c4fd4,_0x5ec672){const _0x32ce9e=_0x531d44,_0x70d915=_0x34e6ea[_0x32ce9e(0x1ee)](n[_0x32ce9e(0x1fd)]),_0x28b62d=_0x34e6ea[_0x32ce9e(0x1ee)](g['IRenderManagerService']),_0x468743=_0xf299e9['getUnitId'](),_0x2404d2=_0xf299e9['getActiveSheet'](),_0x35abc7=_0x70d915[_0x32ce9e(0x205)](_0x468743);(_0x35abc7==null?void 0x0:_0x35abc7['getStatus']())!==n['LiveShareStatus']['PRESENTING']||(_0x5cdc1['getSheetId']()!==_0x2404d2[_0x32ce9e(0x1f7)]()&&this['_commandService'][_0x32ce9e(0x201)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x468743,'subUnitId':_0x5cdc1[_0x32ce9e(0x1f7)]()}),!_0x28b62d['getRenderById'](_0x468743))||_0x5ec672[_0x32ce9e(0x1ef)](f[_0x32ce9e(0x208)]['id'],{'unitId':_0xf299e9[_0x32ce9e(0x1f5)](),'sheetId':_0x5cdc1['getSheetId'](),'sheetViewStartRow':_0x2c4fd4[_0x32ce9e(0x1ff)],'sheetViewStartColumn':_0x2c4fd4['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x531d44(0x1e9)][_0x531d44(0x1ed)](w);function _0x5615(_0xee5cc8,_0x982139){_0xee5cc8=_0xee5cc8-0x1e8;const _0x3bb2f0=_0x3bb2();let _0x5615a9=_0x3bb2f0[_0xee5cc8];return _0x5615a9;}class C extends a[_0x531d44(0x200)]{['getLiveShareStatus'](){const _0x175f46=_0x531d44;var _0x2d7aa9,_0x16c3e0;const _0x5b6d57=this[_0x175f46(0x204)][_0x175f46(0x1ee)](n[_0x175f46(0x1fd)]),_0x2b50ba=(_0x2d7aa9=this[_0x175f46(0x1ec)]())==null?void 0x0:_0x2d7aa9[_0x175f46(0x1f2)]();if(!_0x2b50ba)throw new Error('No\x20active\x20workbook\x20found.');const _0x220efc=_0x5b6d57['getLiveShareCoordinatorSync'](_0x2b50ba);return(_0x16c3e0=_0x220efc==null?void 0x0:_0x220efc[_0x175f46(0x1fe)]())!=null?_0x16c3e0:n[_0x175f46(0x202)]['IDLE'];}['startFollowing'](){const _0x47d04d=_0x531d44;var _0xe1db39;const _0x40c162=this[_0x47d04d(0x204)][_0x47d04d(0x1ee)](n['LiveShareController']),_0xac0a34=(_0xe1db39=this[_0x47d04d(0x1ec)]())==null?void 0x0:_0xe1db39[_0x47d04d(0x1f2)]();if(!_0xac0a34)throw new Error(_0x47d04d(0x203));const _0x1342b6=_0x40c162[_0x47d04d(0x205)](_0xac0a34);if(!_0x1342b6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1342b6[_0x47d04d(0x1e8)]();}[_0x531d44(0x1f6)](){const _0x2675d1=_0x531d44;var _0x34afed;const _0x117ac8=this['_injector'][_0x2675d1(0x1ee)](n[_0x2675d1(0x1fd)]),_0x26a53e=(_0x34afed=this[_0x2675d1(0x1ec)]())==null?void 0x0:_0x34afed[_0x2675d1(0x1f2)]();if(!_0x26a53e)throw new Error(_0x2675d1(0x203));const _0x1b23a3=_0x117ac8['getLiveShareCoordinatorSync'](_0x26a53e);if(!_0x1b23a3)throw new Error(_0x2675d1(0x206));_0x1b23a3[_0x2675d1(0x1f6)]();}[_0x531d44(0x1fc)](){const _0x2533a5=_0x531d44;var _0x2144fb;const _0x5692d9=this['_injector'][_0x2533a5(0x1ee)](n[_0x2533a5(0x1fd)]),_0x22a04f=(_0x2144fb=this[_0x2533a5(0x1ec)]())==null?void 0x0:_0x2144fb[_0x2533a5(0x1f2)]();if(!_0x22a04f)throw new Error(_0x2533a5(0x203));const _0x1de0be=_0x5692d9[_0x2533a5(0x205)](_0x22a04f);if(!_0x1de0be)throw new Error(_0x2533a5(0x206));_0x1de0be[_0x2533a5(0x1f0)]();}['stopPresenting'](){const _0x215a1e=_0x531d44;var _0x371e20;const _0x4893c8=this['_injector'][_0x215a1e(0x1ee)](n[_0x215a1e(0x1fd)]),_0x41adf9=(_0x371e20=this[_0x215a1e(0x1ec)]())==null?void 0x0:_0x371e20['getId']();if(!_0x41adf9)throw new Error(_0x215a1e(0x203));const _0xc15524=_0x4893c8[_0x215a1e(0x205)](_0x41adf9);if(!_0xc15524)throw new Error(_0x215a1e(0x206));_0xc15524['stopPresenting']();}}a[_0x531d44(0x200)][_0x531d44(0x1ed)](C);class L extends a[_0x531d44(0x1f3)]{get[_0x531d44(0x1f9)](){const _0xa08a3d=_0x531d44;return n[_0xa08a3d(0x202)];}}a[_0x531d44(0x1f3)][_0x531d44(0x1ed)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x446e45=_0xb424;(function(_0x4879cc,_0x11416f){const _0x3461f3=_0xb424,_0x1fddee=_0x4879cc();while(!![]){try{const _0x45ba28=parseInt(_0x3461f3(0x1b2))/0x1*(parseInt(_0x3461f3(0x14d))/0x2)+parseInt(_0x3461f3(0x153))/0x3+parseInt(_0x3461f3(0x1bb))/0x4*(-parseInt(_0x3461f3(0x16b))/0x5)+parseInt(_0x3461f3(0x1be))/0x6*(parseInt(_0x3461f3(0x190))/0x7)+-parseInt(_0x3461f3(0x1d8))/0x8*(parseInt(_0x3461f3(0x19f))/0x9)+parseInt(_0x3461f3(0x193))/0xa+parseInt(_0x3461f3(0x149))/0xb*(-parseInt(_0x3461f3(0x197))/0xc);if(_0x45ba28===_0x11416f)break;else _0x1fddee['push'](_0x1fddee['shift']());}catch(_0x418f16){_0x1fddee['push'](_0x1fddee['shift']());}}}(_0x5f2c,0x777e1));var T=Object[_0x446e45(0x16d)],U=(_0x31d2a0,_0x2ea781,_0x10831b)=>_0x2ea781 in _0x31d2a0?T(_0x31d2a0,_0x2ea781,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10831b}):_0x31d2a0[_0x2ea781]=_0x10831b,_=(_0xb9d0c0,_0x1da6bd,_0x4ab03d)=>U(_0xb9d0c0,typeof _0x1da6bd!=_0x446e45(0x1ed)?_0x1da6bd+'':_0x1da6bd,_0x4ab03d);Object[_0x446e45(0x16d)](exports,Symbol[_0x446e45(0x1e0)],{'value':_0x446e45(0x1ae)});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:_0x42e1a9,..._0x551bd8}){const _0x43d9da=_0x446e45,{icon:_0x589cc6,id:_0x113af0,className:_0x2a0542,extend:_0x3f0073,..._0x993dab}=_0x551bd8,_0x350a49=(_0x43d9da(0x17b)+_0x113af0+'\x20'+(_0x2a0542||''))[_0x43d9da(0x209)](),_0x1293f5=v['useRef']('_'+H());return j(_0x589cc6,''+_0x113af0,{'defIds':_0x589cc6['defIds'],'idSuffix':_0x1293f5[_0x43d9da(0x1ac)]},{'ref':_0x42e1a9,'className':_0x350a49,..._0x993dab},_0x3f0073);}function j(_0x364216,_0x46b9d1,_0x344db8,_0x3d5bb7,_0x470d1a){const _0x3eb70b=_0x446e45;return v[_0x3eb70b(0x1ab)](_0x364216['tag'],{'key':_0x46b9d1,...y(_0x364216,_0x344db8,_0x470d1a),..._0x3d5bb7},(F(_0x364216,_0x344db8)['children']||[])[_0x3eb70b(0x146)]((_0x28aaff,_0x44f568)=>j(_0x28aaff,_0x46b9d1+'-'+_0x364216['tag']+'-'+_0x44f568,_0x344db8,void 0x0,_0x470d1a)));}function y(_0x3c697a,_0x1829ba,_0x557d62){const _0x4c72dd=_0x446e45,_0x4ebc5f={..._0x3c697a[_0x4c72dd(0x160)]};_0x557d62!=null&&_0x557d62[_0x4c72dd(0x17f)]&&_0x4ebc5f['fill']==='colorChannel1'&&(_0x4ebc5f['fill']=_0x557d62[_0x4c72dd(0x17f)]),_0x3c697a[_0x4c72dd(0x15c)]===_0x4c72dd(0x1bc)&&_0x4ebc5f['id']&&(_0x4ebc5f['id']=_0x4ebc5f['id']+_0x1829ba[_0x4c72dd(0x1fe)]),Object[_0x4c72dd(0x1a1)](_0x4ebc5f)[_0x4c72dd(0x16f)](([_0x4d0e1a,_0x579e4d])=>{const _0x307c00=_0x4c72dd;_0x4d0e1a===_0x307c00(0x1bc)&&typeof _0x579e4d==_0x307c00(0x203)&&(_0x4ebc5f[_0x4d0e1a]=_0x579e4d[_0x307c00(0x188)](/url\(#(.*)\)/,_0x307c00(0x218)+_0x1829ba[_0x307c00(0x1fe)]+')'));});const {defIds:_0xdb36e0}=_0x1829ba;return!_0xdb36e0||_0xdb36e0['length']===0x0||(_0x3c697a[_0x4c72dd(0x15c)]==='use'&&_0x4ebc5f[_0x4c72dd(0x1a4)]&&(_0x4ebc5f[_0x4c72dd(0x1a4)]=_0x4ebc5f['xlink:href']+_0x1829ba[_0x4c72dd(0x1fe)]),Object['entries'](_0x4ebc5f)[_0x4c72dd(0x16f)](([_0x5c9ec1,_0x4cfb18])=>{const _0x45f8b8=_0x4c72dd;typeof _0x4cfb18==_0x45f8b8(0x203)&&(_0x4ebc5f[_0x5c9ec1]=_0x4cfb18[_0x45f8b8(0x188)](/url\(#(.*)\)/,_0x45f8b8(0x218)+_0x1829ba[_0x45f8b8(0x1fe)]+')'));})),_0x4ebc5f;}function F(_0x358b3f,_0x196561){const _0x2ec363=_0x446e45;var _0x480532;const {defIds:_0x3f7b4b}=_0x196561;return!_0x3f7b4b||_0x3f7b4b[_0x2ec363(0x199)]===0x0?_0x358b3f:_0x358b3f[_0x2ec363(0x15c)]===_0x2ec363(0x212)&&((_0x480532=_0x358b3f[_0x2ec363(0x1c9)])!=null&&_0x480532[_0x2ec363(0x199)])?{..._0x358b3f,'children':_0x358b3f[_0x2ec363(0x1c9)][_0x2ec363(0x146)](_0xcee5cb=>typeof _0xcee5cb['attrs']['id']==_0x2ec363(0x203)&&_0x3f7b4b&&_0x3f7b4b[_0x2ec363(0x1dd)](_0xcee5cb[_0x2ec363(0x160)]['id'])?{..._0xcee5cb,'attrs':{..._0xcee5cb['attrs'],'id':_0xcee5cb[_0x2ec363(0x160)]['id']+_0x196561[_0x2ec363(0x1fe)]}}:_0xcee5cb)}:_0x358b3f;}function H(){const _0x5c395b=_0x446e45;return Math[_0x5c395b(0x1e8)]()[_0x5c395b(0x20c)](0x24)['substring'](0x2,0x8);}x[_0x446e45(0x1dc)]=_0x446e45(0x1f4);const V={'tag':_0x446e45(0x184),'attrs':{'xmlns':_0x446e45(0x18e),'fill':'none','viewBox':_0x446e45(0x206),'width':_0x446e45(0x1a7),'height':_0x446e45(0x1a7)},'children':[{'tag':_0x446e45(0x207),'attrs':{'fill':'currentColor','d':_0x446e45(0x14c)}},{'tag':'path','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':_0x446e45(0x15a),'clipRule':_0x446e45(0x15a)}}]},R=v[_0x446e45(0x1cc)](function(_0x477f7b,_0x37a021){const _0x31c2cc=_0x446e45;return v['createElement'](x,Object[_0x31c2cc(0x164)]({},_0x477f7b,{'id':_0x31c2cc(0x19b),'ref':_0x37a021,'icon':V}));});R['displayName']=_0x446e45(0x208);class E extends o[_0x446e45(0x1ee)]{constructor(){const _0x4769a5=_0x446e45;super(...arguments),_(this,_0x4769a5(0x18f),new Set()),_(this,_0x4769a5(0x204),new Set());}[_0x446e45(0x196)](_0x41bd1f){const _0x203b44=_0x446e45;return this[_0x203b44(0x18f)][_0x203b44(0x211)](_0x41bd1f),o[_0x203b44(0x1e7)](()=>this[_0x203b44(0x18f)][_0x203b44(0x1ad)](_0x41bd1f));}['registerInitialStateReporter'](_0x517c34){const _0xede4f7=_0x446e45;return this[_0xede4f7(0x204)][_0xede4f7(0x211)](_0x517c34),o[_0xede4f7(0x1e7)](()=>this[_0xede4f7(0x204)][_0xede4f7(0x1ad)](_0x517c34));}['shouldShareOperation'](_0x4d6014){const _0x1bceba=_0x446e45;return this['_sharedOperations'][_0x1bceba(0x1ff)](_0x4d6014);}[_0x446e45(0x1d1)](_0xa5912){const _0x53dbb4=_0x446e45;return Array['from'](this['_reporters'])[_0x53dbb4(0x146)](_0x21a4ef=>_0x21a4ef(_0xa5912));}}var M=Object[_0x446e45(0x1fb)],P=(_0x4ed2eb,_0x1f24e3,_0x535e2b,_0x1942c6)=>{const _0x33bb1e=_0x446e45;for(var _0x217b30=_0x1942c6>0x1?void 0x0:_0x1942c6?M(_0x1f24e3,_0x535e2b):_0x1f24e3,_0x51a36e=_0x4ed2eb[_0x33bb1e(0x199)]-0x1,_0x22ccc7;_0x51a36e>=0x0;_0x51a36e--)(_0x22ccc7=_0x4ed2eb[_0x51a36e])&&(_0x217b30=_0x22ccc7(_0x217b30)||_0x217b30);return _0x217b30;},S=(_0x3cd318,_0x56bf3b)=>(_0x3b06ad,_0x3ed518)=>_0x56bf3b(_0x3b06ad,_0x3ed518,_0x3cd318);exports['LiveShareController']=class extends o[_0x446e45(0x171)]{constructor(_0x4f13b0,_0x532025,_0x42c708){const _0x4bc507=_0x446e45;super(),_(this,_0x4bc507(0x1af),new Map()),(this['_univerInstanceService']=_0x4f13b0,this[_0x4bc507(0x1ea)]=_0x532025,this['_collabSessionService']=_0x42c708,this[_0x4bc507(0x1df)]());}async[_0x446e45(0x17d)](_0x3069ac){const _0x3aaba6=_0x446e45;return this[_0x3aaba6(0x1af)][_0x3aaba6(0x1ff)](_0x3069ac)||await this[_0x3aaba6(0x19c)](_0x3069ac),this[_0x3aaba6(0x1af)]['get'](_0x3069ac);}['getLiveShareCoordinatorSync'](_0x4eddff){const _0x297a34=_0x446e45;var _0x3f98e1;return(_0x3f98e1=this[_0x297a34(0x1af)][_0x297a34(0x144)](_0x4eddff))!=null?_0x3f98e1:null;}[_0x446e45(0x1df)](){const _0x346f1a=_0x446e45;this[_0x346f1a(0x180)][_0x346f1a(0x1cd)](o[_0x346f1a(0x1f5)][_0x346f1a(0x182)])[_0x346f1a(0x1c2)](I['takeUntil'](this['dispose$']))[_0x346f1a(0x186)](async _0x5c3b19=>{const _0x223249=_0x346f1a,_0x13b0b6=_0x5c3b19['getUnitId']();this[_0x223249(0x1af)][_0x223249(0x1ff)](_0x13b0b6)||this[_0x223249(0x19c)](_0x13b0b6);}),this[_0x346f1a(0x180)][_0x346f1a(0x168)](o[_0x346f1a(0x1f5)][_0x346f1a(0x182)])[_0x346f1a(0x1c2)](I[_0x346f1a(0x185)](this[_0x346f1a(0x1d6)]))[_0x346f1a(0x186)](_0x270bff=>{const _0x4e7196=_0x346f1a,_0x212df7=_0x270bff[_0x4e7196(0x14f)](),_0x5ab719=this[_0x4e7196(0x1af)][_0x4e7196(0x144)](_0x212df7);_0x5ab719==null||_0x5ab719['dispose']();});}async[_0x446e45(0x19c)](_0x3e2ad6){const _0x24a41c=_0x446e45,_0x417790=await this['_collabSessionService']['requireSession'](_0x3e2ad6),_0x578e56=this['_injector'][_0x24a41c(0x1c7)](exports[_0x24a41c(0x1cf)],_0x3e2ad6,_0x417790);return _0x578e56[_0x24a41c(0x156)](),this[_0x24a41c(0x1af)][_0x24a41c(0x1c3)](_0x3e2ad6,_0x578e56),_0x578e56;}},exports[_0x446e45(0x1e5)]=P([S(0x0,o[_0x446e45(0x1b8)]),S(0x1,o[_0x446e45(0x162)](o[_0x446e45(0x1c8)])),S(0x2,o[_0x446e45(0x162)](b[_0x446e45(0x1d4)]))],exports[_0x446e45(0x1e5)]);var u=(_0x331164=>(_0x331164[_0x446e45(0x16c)]=_0x446e45(0x1e9),_0x331164[_0x446e45(0x1d9)]=_0x446e45(0x1cb),_0x331164['FOLLOWING']='following',_0x331164[_0x446e45(0x145)]=_0x446e45(0x217),_0x331164[_0x446e45(0x15f)]=_0x446e45(0x165),_0x331164))(u||{});function _0x5f2c(){const _0x35e1c5=['parse','LiveShare','6030ANkeYi','OFFLINE','defineProperty','LIVESHARE_NEW_HOST','forEach','_presenter','RxDisposable','jsx','univer-size-4','UniverLiveSharePlugin','onRendered','complete','_fetchOperations','onStarting','_commandService','OPERATION','univerjs-icon\x20univerjs-icon-','_status','getLiveShareCoordinator','stopPresenting','colorChannel1','_univerInstanceService','getMemberID','UNIVER_SHEET','UNIVER_LIVE_SHARE_PLUGIN','svg','takeUntil','subscribe','DisposableCollection','replace','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','getConfig','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','http://www.w3.org/2000/svg','_sharedOperations','1503019xRCLAE','default','_config','6660050aZnOsg','_configService','registerComponent','registerSharedOperation','2055120GluVXZ','CollaborationEvent','length','following','live-share-icon','_startLiveShareCoordinator','text','_handleNewChangeSets','4377681hTPwWM','IConfigService','entries','useRef','_handleOnline','xlink:href','data','Subject','1em','BehaviorSubject','setConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','createElement','current','delete','Module','_entities','You\x27re\x20not\x20following\x20the\x20presenter','HEADER_MENU','1cvouOC','_stopPresenting','live-share.config','Dropdown','merge','useState','IUniverInstanceService','ICommandService','getValue','488vOIFYv','mask','stopFollowing','6KcfRdi','jsxs','You\x27re\x20presenting\x20the\x20document','_handleOperation','pipe','set','Present\x20this\x20document','dispose','_stopFollowing','createInstance','Injector','children','_handleOffline','idle','forwardRef','getTypeOfUnitAdded$','LIVESHARE_OPERATION','LiveShareCoordinator','executeCommand','getInitialStates','operations','Stop\x20following','CollaborationSessionService','Start\x20following','dispose$','registerDependencies','8zwctyo','IDLE','presenter','throttleTime','displayName','includes','override','_init','toStringTag','SAME_OPERATION_SHARE_INTERVAL','parseProtocolChangeset','connectInjector','FOLLOWING','LiveShareController','SetWorksheetActiveOperation','toDisposable','random','offline','_injector','stringify','clsx','symbol','Disposable','_beIdle','_handleTerminate','tryStartPresenting','_collabSession','LIVESHARE_REQUEST_HOST','UniverIcon','UniverInstanceType','button','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','_startFollowing','_status$','disposeWithMe','getOwnPropertyDescriptor','reverse','You\x27re\x20following\x20the\x20presenter','idSuffix','has','useDependency','LIVESHARE_TERMINATE','useEffect','string','_reporters','div','0\x200\x2017\x2017','path','LiveShareIcon','trim','SetZoomRatioOperation','unsubscribe','toString','end','You\x27are\x20offline.','touchDependencies','DesktopLiveShareController','add','defs','SessionStatus','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','params','not-following','url(#$1','status$','get','NOT_FOLLOWING','map','_uiPartsService','startFollowing','66IDqPnZ','Plugin','Start','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','1480204AkkrgM','BuiltInUIPart','getUnitId','_startPresenting','_handleNewHost','UNIVER_UNKNOWN','1589154fWVHnO','_commandDisposable','Fragment','init','send','unitId','SetScrollOperation','evenodd','NEW_CHANGESETS','tag','mutations','clear','PRESENTING','attrs','Button','Inject','_liveShareService','assign','presenting','next','then','getTypeOfUnitDisposed$'];_0x5f2c=function(){return _0x35e1c5;};return _0x5f2c();}const k=_0x446e45(0x1e1),q=0xc8;exports[_0x446e45(0x1cf)]=class extends o[_0x446e45(0x171)]{constructor(_0x57608d,_0x468823,_0x5da66a,_0x2d1acf,_0x448641){const _0x29aa8f=_0x446e45;super(),_(this,'_status$',new O[(_0x29aa8f(0x1a8))](_0x29aa8f(0x1cb))),_(this,_0x29aa8f(0x143),this[_0x29aa8f(0x1f9)]['asObservable']()),_(this,_0x29aa8f(0x1df),!0x1),_(this,_0x29aa8f(0x154),null),_(this,_0x29aa8f(0x170),null),(this['_unitID']=_0x57608d,this[_0x29aa8f(0x1f2)]=_0x468823,this[_0x29aa8f(0x194)]=_0x5da66a,this[_0x29aa8f(0x163)]=_0x2d1acf,this[_0x29aa8f(0x179)]=_0x448641);}get['_status'](){const _0x2b4aa7=_0x446e45;return this[_0x2b4aa7(0x1f9)][_0x2b4aa7(0x1ba)]();}[_0x446e45(0x1c5)](){const _0x2d4610=_0x446e45;var _0x1fe070;(_0x1fe070=this[_0x2d4610(0x154)])==null||_0x1fe070[_0x2d4610(0x1c5)](),this['_status$'][_0x2d4610(0x166)](_0x2d4610(0x1cb)),this[_0x2d4610(0x1f9)][_0x2d4610(0x176)]();}['getStatus'](){const _0x5d142e=_0x446e45;return this[_0x5d142e(0x17c)];}[_0x446e45(0x156)](){const _0x2c265d=_0x446e45;this[_0x2c265d(0x1df)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](I[_0x2c265d(0x185)](this['dispose$']))[_0x2c265d(0x186)](_0x8dc6f3=>{const _0x1a3b8c=_0x2c265d;switch(_0x8dc6f3){case b['SessionStatus']['OFFLINE']:this[_0x1a3b8c(0x1ca)]();break;case b[_0x1a3b8c(0x213)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2c265d(0x1f2)]['event$'][_0x2c265d(0x1c2)](I[_0x2c265d(0x185)](this[_0x2c265d(0x1d6)]))[_0x2c265d(0x186)](_0x376838=>{const _0x3ee0e5=_0x2c265d,{eventID:_0x46543d}=_0x376838;switch(_0x46543d){case d[_0x3ee0e5(0x198)][_0x3ee0e5(0x16e)]:this['_handleNewHost'](_0x376838);break;case d[_0x3ee0e5(0x198)][_0x3ee0e5(0x1ce)]:this[_0x3ee0e5(0x1c1)](_0x376838);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d[_0x3ee0e5(0x198)][_0x3ee0e5(0x15b)]:this[_0x3ee0e5(0x19e)](_0x376838);break;}}));}[_0x446e45(0x1f1)](){const _0xe06bf8=_0x446e45;this[_0xe06bf8(0x1f2)][_0xe06bf8(0x157)]({'eventID':d[_0xe06bf8(0x198)][_0xe06bf8(0x1f3)],'data':{'unitID':this[_0xe06bf8(0x215)],'userID':this[_0xe06bf8(0x1f2)][_0xe06bf8(0x181)]()}},this[_0xe06bf8(0x215)]);}[_0x446e45(0x17e)](){const _0x942653=_0x446e45;this[_0x942653(0x17c)]===_0x942653(0x165)&&(this[_0x942653(0x1f9)][_0x942653(0x166)](_0x942653(0x1cb)),this[_0x942653(0x1f2)][_0x942653(0x157)]({'eventID':d['CollaborationEvent'][_0x942653(0x201)],'data':{'unitID':this['_unitID']}},this[_0x942653(0x215)]));}[_0x446e45(0x148)](){const _0x1ff2e3=_0x446e45;this[_0x1ff2e3(0x17c)]===_0x1ff2e3(0x217)&&(this[_0x1ff2e3(0x1f9)][_0x1ff2e3(0x166)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x1ab492=_0x446e45;this[_0x1ab492(0x17c)]===_0x1ab492(0x19a)&&this[_0x1ab492(0x1c6)]();}[_0x446e45(0x151)](_0x1e470b){const _0x222ee8=_0x446e45,{presenter:_0x44dbfd}=_0x1e470b[_0x222ee8(0x1a5)],_0x54dfb2=this[_0x222ee8(0x1f2)]['getMemberID']();this[_0x222ee8(0x170)]=_0x44dbfd,_0x44dbfd===_0x54dfb2?(this[_0x222ee8(0x1c6)](),this[_0x222ee8(0x150)]()):this[_0x222ee8(0x17c)]!==_0x222ee8(0x217)&&(this[_0x222ee8(0x1b3)](),this[_0x222ee8(0x1f8)]());}[_0x446e45(0x177)](){const _0x6c3dc=_0x446e45,_0x12087f={'eventID':d[_0x6c3dc(0x198)][_0x6c3dc(0x18a)]};this[_0x6c3dc(0x1f2)][_0x6c3dc(0x157)](_0x12087f,this['_unitID']);}[_0x446e45(0x1f0)](){const _0x3f0c2c=_0x446e45;this[_0x3f0c2c(0x170)]=null,this[_0x3f0c2c(0x17c)]!=='presenting'&&this[_0x3f0c2c(0x1ef)]();}[_0x446e45(0x19e)](_0xd391f4){const _0x7dd905=_0x446e45;if(this[_0x7dd905(0x17c)]===_0x7dd905(0x19a)&&this[_0x7dd905(0x170)]===_0xd391f4[_0x7dd905(0x1a5)]['memberID']){const _0x2adf43=d[_0x7dd905(0x1e2)](_0xd391f4[_0x7dd905(0x1a5)])[_0x7dd905(0x15d)][_0x7dd905(0x1fc)]()['find'](_0xea7feb=>_0xea7feb['id']===C['InsertSheetMutation']['id']);if(_0x2adf43){const _0x3a8e6e=_0x2adf43[_0x7dd905(0x216)][_0x7dd905(0x158)],_0x13b012=_0x2adf43[_0x7dd905(0x216)]['sheet']['id'];setTimeout(()=>{const _0x30f7ee=_0x7dd905;this[_0x30f7ee(0x179)][_0x30f7ee(0x1d0)](C[_0x30f7ee(0x1e6)]['id'],{'unitId':_0x3a8e6e,'subUnitId':_0x13b012},{'fromCollab':!0x0});});}}}[_0x446e45(0x150)](){const _0x133db4=_0x446e45;this['_status$'][_0x133db4(0x166)](_0x133db4(0x165));const _0x2f7b60=new Map(),_0x469010=this[_0x133db4(0x154)]=new o[(_0x133db4(0x187))]();_0x469010[_0x133db4(0x211)](o[_0x133db4(0x1e7)](()=>{const _0x1f3edf=_0x133db4;_0x2f7b60['forEach'](_0x15b2ef=>_0x15b2ef['complete']()),_0x2f7b60[_0x1f3edf(0x15e)]();})),_0x469010[_0x133db4(0x211)](this[_0x133db4(0x179)]['onCommandExecuted'](_0x54bc17=>{const _0x14a1ca=_0x133db4;var _0x2d95f2;if(_0x54bc17['type']!==o['CommandType'][_0x14a1ca(0x17a)]||!this['_liveShareService']['shouldShareOperation'](_0x54bc17['id']))return;const {id:_0xbf9cc7}=_0x54bc17;let _0x37199e;_0x2f7b60['has'](_0xbf9cc7)?_0x37199e=_0x2f7b60['get'](_0xbf9cc7):(_0x37199e=new O[(_0x14a1ca(0x1a6))](),_0x2f7b60['set'](_0xbf9cc7,_0x37199e),_0x37199e['pipe'](I[_0x14a1ca(0x1db)]((_0x2d95f2=this[_0x14a1ca(0x194)][_0x14a1ca(0x18b)](k))!=null?_0x2d95f2:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xc9ecf7=>{const _0x24a633=_0x14a1ca;this['_collabSession'][_0x24a633(0x157)]({'eventID':d['CollaborationEvent'][_0x24a633(0x1ce)],'data':{'unitID':this['_unitID'],'operations':{[_0xc9ecf7['id']]:{'id':_0xc9ecf7['id'],'params':JSON[_0x24a633(0x1eb)](_0xc9ecf7[_0x24a633(0x216)])}}}},this['_unitID']);})),_0x37199e[_0x14a1ca(0x166)](_0x54bc17);})),this[_0x133db4(0x163)][_0x133db4(0x1d1)](this[_0x133db4(0x215)])[_0x133db4(0x16f)](_0x4e4e64=>this[_0x133db4(0x1f2)][_0x133db4(0x157)]({'eventID':d[_0x133db4(0x198)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x133db4(0x215)],'operations':{[_0x4e4e64['id']]:{'id':_0x4e4e64['id'],'params':JSON['stringify'](_0x4e4e64[_0x133db4(0x216)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x35fd44=_0x446e45;var _0x367dbd;this['_status$'][_0x35fd44(0x166)](_0x35fd44(0x1cb)),(_0x367dbd=this[_0x35fd44(0x154)])==null||_0x367dbd[_0x35fd44(0x1c5)](),this[_0x35fd44(0x154)]=null;}[_0x446e45(0x1f8)](){const _0x318ea4=_0x446e45;var _0x18428c;(_0x18428c=this[_0x318ea4(0x154)])==null||_0x18428c[_0x318ea4(0x1c5)](),this[_0x318ea4(0x1f9)][_0x318ea4(0x166)](_0x318ea4(0x19a));}['_beIdle'](){const _0x1d7bb9=_0x446e45;var _0xcbf76f;this['_status$']['next']('idle'),(_0xcbf76f=this['_commandDisposable'])==null||_0xcbf76f[_0x1d7bb9(0x1c5)](),this[_0x1d7bb9(0x154)]=null;}[_0x446e45(0x1c6)](){const _0x371cec=_0x446e45;var _0x438ab3;this[_0x371cec(0x1f9)][_0x371cec(0x166)](_0x371cec(0x217)),(_0x438ab3=this[_0x371cec(0x154)])==null||_0x438ab3[_0x371cec(0x1c5)]();}['_handleOperation'](_0x175032){const _0x303676=_0x446e45;if([_0x303676(0x165),_0x303676(0x217),_0x303676(0x1e9)][_0x303676(0x1dd)](this[_0x303676(0x17c)])||!_0x175032[_0x303676(0x1a5)][_0x303676(0x1da)]||_0x175032['data'][_0x303676(0x1da)]===this[_0x303676(0x1f2)]['getMemberID']())return;this[_0x303676(0x17c)]===_0x303676(0x1cb)&&this[_0x303676(0x1f8)]();const _0xbf772c=_0x175032[_0x303676(0x1a5)][_0x303676(0x1d2)];Object['values'](_0xbf772c)[_0x303676(0x16f)](_0x2b4506=>{const _0x48af84=_0x303676;this['_commandService']['executeCommand'](_0x2b4506['id'],_0x2b4506[_0x48af84(0x216)]?JSON[_0x48af84(0x169)](_0x2b4506[_0x48af84(0x216)]):null,{'fromCollab':!0x0});});}[_0x446e45(0x1ca)](){const _0x284382=_0x446e45;var _0x55c73f;this[_0x284382(0x1f9)][_0x284382(0x166)](_0x284382(0x1e9)),(_0x55c73f=this[_0x284382(0x154)])==null||_0x55c73f[_0x284382(0x1c5)]();}[_0x446e45(0x1a3)](){const _0x4648fe=_0x446e45;this[_0x4648fe(0x1f9)][_0x4648fe(0x166)]('idle'),this[_0x4648fe(0x177)]();}},exports[_0x446e45(0x1cf)]=P([S(0x2,o[_0x446e45(0x1a0)]),S(0x3,o[_0x446e45(0x162)](E)),S(0x4,o[_0x446e45(0x1b9)])],exports['LiveShareCoordinator']);function $(){const _0x906ab2=_0x446e45,_0x48efca=p[_0x906ab2(0x200)](exports[_0x906ab2(0x1e5)]),_0x5d698a=p['useDependency'](o[_0x906ab2(0x1b8)]),_0x243208=p['useObservable'](()=>_0x5d698a['getCurrentTypeOfUnit$'](o[_0x906ab2(0x1f5)][_0x906ab2(0x182)]),void 0x0,!0x1,[]),[_0xf3f250,_0x24a7d0]=v[_0x906ab2(0x1b7)](null),[_0x5379d8,_0x57b8d3]=v[_0x906ab2(0x1b7)](u[_0x906ab2(0x1d9)]),_0x311126=v[_0x906ab2(0x1a2)](null);return v[_0x906ab2(0x202)](()=>(_0x243208&&_0x48efca[_0x906ab2(0x17d)](_0x243208[_0x906ab2(0x14f)]())[_0x906ab2(0x167)](_0x10f826=>{const _0x40b35d=_0x906ab2;_0x24a7d0(_0x10f826),_0x311126[_0x40b35d(0x1ac)]=_0x10f826[_0x40b35d(0x143)][_0x40b35d(0x186)](_0x33680a=>{_0x57b8d3(_0x33680a);});}),()=>{const _0x4489e1=_0x906ab2;var _0x368207;(_0x368207=_0x311126[_0x4489e1(0x1ac)])==null||_0x368207[_0x4489e1(0x20b)](),_0x311126[_0x4489e1(0x1ac)]=null;}),[_0x243208,_0x48efca]),_0xf3f250?l['jsx'](f[_0x906ab2(0x1b5)],{'align':_0x906ab2(0x20d),'disabled':_0x5379d8===u['OFFLINE'],'className':_0x906ab2(0x1f7),'overlay':l[_0x906ab2(0x172)](W,{'status':_0x5379d8,'coordinator':_0xf3f250}),'children':l[_0x906ab2(0x172)](_0x906ab2(0x1f6),{'className':f[_0x906ab2(0x1ec)](_0x906ab2(0x214),{'univer-cursor-not-allowed':_0x5379d8===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5379d8!==u[_0x906ab2(0x16c)]}),'type':'button','children':l['jsx'](R,{'className':_0x906ab2(0x173)})})}):null;}function W(_0x15679a){const _0x150ebb=_0x446e45,{status:_0x5b0989,coordinator:_0x2df027}=_0x15679a;switch(_0x5b0989){case u[_0x150ebb(0x1d9)]:return l[_0x150ebb(0x172)](G,{'coordinator':_0x2df027});case u[_0x150ebb(0x1e4)]:return l[_0x150ebb(0x172)](B,{'coordinator':_0x2df027});case u[_0x150ebb(0x145)]:return l[_0x150ebb(0x172)](Y,{'coordinator':_0x2df027});case u[_0x150ebb(0x16c)]:return l[_0x150ebb(0x172)](J,{});case u[_0x150ebb(0x15f)]:return l['jsx'](Z,{'coordinator':_0x2df027});default:return null;}}function _0xb424(_0x180eb,_0x5a378b){_0x180eb=_0x180eb-0x143;const _0x5f2cd4=_0x5f2c();let _0xb4246d=_0x5f2cd4[_0x180eb];return _0xb4246d;}function G(_0x175b05){const _0x2303b0=_0x446e45,{coordinator:_0x4ceb93}=_0x175b05;return l['jsxs'](l['Fragment'],{'children':[l[_0x2303b0(0x172)](_0x2303b0(0x205),{'className':_0x2303b0(0x1aa),'children':_0x2303b0(0x1c4)}),l[_0x2303b0(0x172)](f[_0x2303b0(0x161)],{'onClick':()=>_0x4ceb93['tryStartPresenting'](),'children':_0x2303b0(0x14b)})]});}function B(_0x36abd6){const _0xeee8d0=_0x446e45,{coordinator:_0xfd2230}=_0x36abd6;return l[_0xeee8d0(0x1bf)](l['Fragment'],{'children':[l[_0xeee8d0(0x172)](_0xeee8d0(0x205),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xeee8d0(0x1fd)}),l[_0xeee8d0(0x172)](f[_0xeee8d0(0x161)],{'onClick':()=>_0xfd2230[_0xeee8d0(0x1bd)](),'children':_0xeee8d0(0x1d3)})]});}function Y(_0x4a446a){const _0x3ed709=_0x446e45,{coordinator:_0x473db1}=_0x4a446a;return l[_0x3ed709(0x1bf)](l['Fragment'],{'children':[l[_0x3ed709(0x172)](_0x3ed709(0x205),{'className':_0x3ed709(0x1aa),'children':_0x3ed709(0x1b0)}),l['jsx'](f[_0x3ed709(0x161)],{'variant':_0x3ed709(0x19d),'onClick':()=>_0x473db1[_0x3ed709(0x148)](),'children':_0x3ed709(0x1d5)})]});}function Z(_0x8d446c){const _0x13a436=_0x446e45,{coordinator:_0x55af8e}=_0x8d446c;return l[_0x13a436(0x1bf)](l[_0x13a436(0x155)],{'children':[l[_0x13a436(0x172)](_0x13a436(0x205),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x13a436(0x1c0)}),l[_0x13a436(0x172)](f[_0x13a436(0x161)],{'variant':_0x13a436(0x191),'onClick':()=>_0x55af8e[_0x13a436(0x17e)](),'children':'Stop\x20presenting'})]});}function J(){const _0x13a43c=_0x446e45;return l[_0x13a43c(0x172)](l[_0x13a43c(0x155)],{'children':_0x13a43c(0x20e)});}var K=Object[_0x446e45(0x1fb)],z=(_0x97fc55,_0x4f1871,_0x211594,_0x3ad741)=>{const _0x2a50de=_0x446e45;for(var _0xbdca8e=_0x3ad741>0x1?void 0x0:_0x3ad741?K(_0x4f1871,_0x211594):_0x4f1871,_0x38cefd=_0x97fc55[_0x2a50de(0x199)]-0x1,_0x2e4ee8;_0x38cefd>=0x0;_0x38cefd--)(_0x2e4ee8=_0x97fc55[_0x38cefd])&&(_0xbdca8e=_0x2e4ee8(_0xbdca8e)||_0xbdca8e);return _0xbdca8e;},L=(_0x4c8622,_0x37fa1d)=>(_0xf38546,_0x569bc1)=>_0x37fa1d(_0xf38546,_0x569bc1,_0x4c8622);exports[_0x446e45(0x210)]=class extends o[_0x446e45(0x1ee)]{constructor(_0x128380,_0x5913db){const _0x3747c3=_0x446e45;super(),this[_0x3747c3(0x1ea)]=_0x128380,this[_0x3747c3(0x147)]=_0x5913db,this['_mountLiveShare']();}[_0x446e45(0x189)](){const _0x256ffe=_0x446e45;this['disposeWithMe'](this[_0x256ffe(0x147)][_0x256ffe(0x195)](p[_0x256ffe(0x14e)][_0x256ffe(0x1b1)],()=>p[_0x256ffe(0x1e3)]($,this[_0x256ffe(0x1ea)])));}},exports[_0x446e45(0x210)]=z([L(0x0,o[_0x446e45(0x162)](o[_0x446e45(0x1c8)])),L(0x1,p['IUIPartsService'])],exports[_0x446e45(0x210)]);const Q=_0x446e45(0x1b4),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x542472,_0x303de2,_0x16c967,_0x56ab9e)=>{const _0xfbccc3=_0x446e45;for(var _0x1daf6d=_0x56ab9e>0x1?void 0x0:_0x56ab9e?X(_0x303de2,_0x16c967):_0x303de2,_0x584f4f=_0x542472[_0xfbccc3(0x199)]-0x1,_0xecca74;_0x584f4f>=0x0;_0x584f4f--)(_0xecca74=_0x542472[_0x584f4f])&&(_0x1daf6d=_0xecca74(_0x1daf6d)||_0x1daf6d);return _0x1daf6d;},te=(_0x219015,_0x19e4c9)=>(_0x573c4e,_0x1d7aa8)=>_0x19e4c9(_0x573c4e,_0x1d7aa8,_0x219015);let m=class extends o[_0x446e45(0x1ee)]{constructor(_0x51124b){const _0x2c879f=_0x446e45;super(),this[_0x2c879f(0x163)]=_0x51124b,this[_0x2c879f(0x1df)]();}[_0x446e45(0x1df)](){const _0x5e2941=_0x446e45;[D[_0x5e2941(0x20a)]['id'],D[_0x5e2941(0x159)]['id'],C[_0x5e2941(0x1e6)]['id']][_0x5e2941(0x16f)](_0x49a47c=>{const _0x20a9aa=_0x5e2941;this[_0x20a9aa(0x1fa)](this['_liveShareService'][_0x20a9aa(0x196)](_0x49a47c));});}};m=ee([te(0x0,o[_0x446e45(0x162)](E))],m);var ie=Object[_0x446e45(0x16d)],se=Object[_0x446e45(0x1fb)],ne=(_0x1c7a91,_0x2a6cd4,_0x41c499)=>_0x2a6cd4 in _0x1c7a91?ie(_0x1c7a91,_0x2a6cd4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c499}):_0x1c7a91[_0x2a6cd4]=_0x41c499,re=(_0x37142f,_0x3f9d89,_0x88b97b,_0x2add2a)=>{const _0x419dcd=_0x446e45;for(var _0x5f2ed2=_0x2add2a>0x1?void 0x0:_0x2add2a?se(_0x3f9d89,_0x88b97b):_0x3f9d89,_0x47ad6d=_0x37142f[_0x419dcd(0x199)]-0x1,_0xdf6a1c;_0x47ad6d>=0x0;_0x47ad6d--)(_0xdf6a1c=_0x37142f[_0x47ad6d])&&(_0x5f2ed2=_0xdf6a1c(_0x5f2ed2)||_0x5f2ed2);return _0x5f2ed2;},N=(_0x538c31,_0x140e8f)=>(_0x26296e,_0xf98fc9)=>_0x140e8f(_0x26296e,_0xf98fc9,_0x538c31),A=(_0x45aad1,_0x198865,_0x3e6b0e)=>ne(_0x45aad1,typeof _0x198865!=_0x446e45(0x1ed)?_0x198865+'':_0x198865,_0x3e6b0e);const oe=_0x446e45(0x183);exports['UniverLiveSharePlugin']=class extends o[_0x446e45(0x14a)]{constructor(_0x259a9b=w,_0x4d2a14,_0x5c5490){const _0x175e2e=_0x446e45;super(),this[_0x175e2e(0x192)]=_0x259a9b,this[_0x175e2e(0x1ea)]=_0x4d2a14,this[_0x175e2e(0x194)]=_0x5c5490;const {..._0x53740f}=o[_0x175e2e(0x1b6)]({},w,this[_0x175e2e(0x192)]);this[_0x175e2e(0x194)][_0x175e2e(0x1a9)](Q,_0x53740f);}[_0x446e45(0x178)](){const _0x8b7c00=_0x446e45;o[_0x8b7c00(0x1d7)](this[_0x8b7c00(0x1ea)],o[_0x8b7c00(0x18c)]([[E],[exports[_0x8b7c00(0x1e5)]],[m],[exports['DesktopLiveShareController']]],this[_0x8b7c00(0x192)][_0x8b7c00(0x1de)])),o[_0x8b7c00(0x20f)](this[_0x8b7c00(0x1ea)],[[m]]);}[_0x446e45(0x175)](){const _0x30282c=_0x446e45;o[_0x30282c(0x20f)](this[_0x30282c(0x1ea)],[[exports[_0x30282c(0x210)]]]);}},A(exports[_0x446e45(0x174)],'type',o[_0x446e45(0x1f5)][_0x446e45(0x152)]),A(exports[_0x446e45(0x174)],'pluginName',oe),exports[_0x446e45(0x174)]=re([o['DependentOn'](b[_0x446e45(0x18d)]),N(0x1,o[_0x446e45(0x162)](o[_0x446e45(0x1c8)])),N(0x2,o['IConfigService'])],exports[_0x446e45(0x174)]),exports[_0x446e45(0x16a)]=$,exports['LiveShareService']=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x6be33=_0x3402;(function(_0x2cce31,_0xb95da9){const _0x2e9f4a=_0x3402,_0x43f5f4=_0x2cce31();while(!![]){try{const _0x4d5c0e=parseInt(_0x2e9f4a(0x21e))/0x1+-parseInt(_0x2e9f4a(0x25a))/0x2*(parseInt(_0x2e9f4a(0x22f))/0x3)+parseInt(_0x2e9f4a(0x1da))/0x4+-parseInt(_0x2e9f4a(0x1d7))/0x5+parseInt(_0x2e9f4a(0x1bc))/0x6+-parseInt(_0x2e9f4a(0x1f9))/0x7*(parseInt(_0x2e9f4a(0x1b1))/0x8)+parseInt(_0x2e9f4a(0x1e1))/0x9*(parseInt(_0x2e9f4a(0x259))/0xa);if(_0x4d5c0e===_0xb95da9)break;else _0x43f5f4['push'](_0x43f5f4['shift']());}catch(_0x13894d){_0x43f5f4['push'](_0x43f5f4['shift']());}}}(_0x3ba1,0xc610e));var T=Object[_0x6be33(0x1c8)],U=(_0x4925d7,_0x4ada07,_0x452c42)=>_0x4ada07 in _0x4925d7?T(_0x4925d7,_0x4ada07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x452c42}):_0x4925d7[_0x4ada07]=_0x452c42,_=(_0x2d0a01,_0x4c0bf6,_0xcf080f)=>U(_0x2d0a01,typeof _0x4c0bf6!=_0x6be33(0x23d)?_0x4c0bf6+'':_0x4c0bf6,_0xcf080f);Object[_0x6be33(0x1c8)](exports,Symbol[_0x6be33(0x220)],{'value':_0x6be33(0x1eb)});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:_0x11400b,..._0x31bf2d}){const _0x3c54b2=_0x6be33,{icon:_0x338229,id:_0x45e81d,className:_0x45a739,extend:_0x53a4ef,..._0x1f39e9}=_0x31bf2d,_0x3bec7a=(_0x3c54b2(0x1db)+_0x45e81d+'\x20'+(_0x45a739||''))['trim'](),_0xb5932d=v[_0x3c54b2(0x24f)]('_'+H());return j(_0x338229,''+_0x45e81d,{'defIds':_0x338229[_0x3c54b2(0x1de)],'idSuffix':_0xb5932d[_0x3c54b2(0x241)]},{'ref':_0x11400b,'className':_0x3bec7a,..._0x1f39e9},_0x53a4ef);}function j(_0x3dcc7e,_0xcdd5a0,_0x38c590,_0x194d06,_0x165d0d){const _0x573b2f=_0x6be33;return v[_0x573b2f(0x25c)](_0x3dcc7e['tag'],{'key':_0xcdd5a0,...y(_0x3dcc7e,_0x38c590,_0x165d0d),..._0x194d06},(F(_0x3dcc7e,_0x38c590)[_0x573b2f(0x1ca)]||[])[_0x573b2f(0x198)]((_0x23dfaf,_0x4080ba)=>j(_0x23dfaf,_0xcdd5a0+'-'+_0x3dcc7e[_0x573b2f(0x256)]+'-'+_0x4080ba,_0x38c590,void 0x0,_0x165d0d)));}function y(_0xedc04b,_0x2044be,_0x431cf1){const _0x10e20c=_0x6be33,_0x48eb95={..._0xedc04b[_0x10e20c(0x206)]};_0x431cf1!=null&&_0x431cf1['colorChannel1']&&_0x48eb95['fill']===_0x10e20c(0x207)&&(_0x48eb95[_0x10e20c(0x1fb)]=_0x431cf1[_0x10e20c(0x207)]),_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x1b7)&&_0x48eb95['id']&&(_0x48eb95['id']=_0x48eb95['id']+_0x2044be['idSuffix']),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x18b9d5,_0x4664e1])=>{const _0x56df68=_0x10e20c;_0x18b9d5===_0x56df68(0x1b7)&&typeof _0x4664e1=='string'&&(_0x48eb95[_0x18b9d5]=_0x4664e1[_0x56df68(0x1d5)](/url\(#(.*)\)/,_0x56df68(0x22b)+_0x2044be['idSuffix']+')'));});const {defIds:_0x7f176a}=_0x2044be;return!_0x7f176a||_0x7f176a[_0x10e20c(0x267)]===0x0||(_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x233)&&_0x48eb95[_0x10e20c(0x21b)]&&(_0x48eb95[_0x10e20c(0x21b)]=_0x48eb95['xlink:href']+_0x2044be[_0x10e20c(0x1ab)]),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x47578b,_0x22446b])=>{const _0x4a3df7=_0x10e20c;typeof _0x22446b==_0x4a3df7(0x235)&&(_0x48eb95[_0x47578b]=_0x22446b['replace'](/url\(#(.*)\)/,_0x4a3df7(0x22b)+_0x2044be[_0x4a3df7(0x1ab)]+')'));})),_0x48eb95;}function F(_0x117ccc,_0xa4abd1){const _0x1680c7=_0x6be33;var _0x4d93b2;const {defIds:_0xfee9aa}=_0xa4abd1;return!_0xfee9aa||_0xfee9aa[_0x1680c7(0x267)]===0x0?_0x117ccc:_0x117ccc[_0x1680c7(0x256)]===_0x1680c7(0x1fa)&&((_0x4d93b2=_0x117ccc['children'])!=null&&_0x4d93b2[_0x1680c7(0x267)])?{..._0x117ccc,'children':_0x117ccc[_0x1680c7(0x1ca)][_0x1680c7(0x198)](_0x3a07a9=>typeof _0x3a07a9['attrs']['id']==_0x1680c7(0x235)&&_0xfee9aa&&_0xfee9aa[_0x1680c7(0x197)](_0x3a07a9[_0x1680c7(0x206)]['id'])?{..._0x3a07a9,'attrs':{..._0x3a07a9['attrs'],'id':_0x3a07a9[_0x1680c7(0x206)]['id']+_0xa4abd1[_0x1680c7(0x1ab)]}}:_0x3a07a9)}:_0x117ccc;}function H(){const _0x5709db=_0x6be33;return Math[_0x5709db(0x1b2)]()['toString'](0x24)['substring'](0x2,0x8);}x[_0x6be33(0x232)]=_0x6be33(0x1c1);const V={'tag':_0x6be33(0x1dc),'attrs':{'xmlns':_0x6be33(0x205),'fill':_0x6be33(0x1b0),'viewBox':_0x6be33(0x237),'width':'1em','height':'1em'},'children':[{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x211)}},{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x1b5),'fillRule':_0x6be33(0x249),'clipRule':_0x6be33(0x249)}}]},R=v['forwardRef'](function(_0x547c5f,_0x1d5533){const _0x14b889=_0x6be33;return v[_0x14b889(0x25c)](x,Object[_0x14b889(0x1a6)]({},_0x547c5f,{'id':_0x14b889(0x1d6),'ref':_0x1d5533,'icon':V}));});R[_0x6be33(0x232)]=_0x6be33(0x1a0);class E extends o['Disposable']{constructor(){const _0x49b52c=_0x6be33;super(...arguments),_(this,_0x49b52c(0x247),new Set()),_(this,_0x49b52c(0x231),new Set());}[_0x6be33(0x1df)](_0x14a4ae){const _0x17f494=_0x6be33;return this[_0x17f494(0x247)]['add'](_0x14a4ae),o[_0x17f494(0x1c2)](()=>this['_sharedOperations']['delete'](_0x14a4ae));}['registerInitialStateReporter'](_0x65e003){const _0x2f5bc2=_0x6be33;return this[_0x2f5bc2(0x231)][_0x2f5bc2(0x1e3)](_0x65e003),o['toDisposable'](()=>this['_reporters'][_0x2f5bc2(0x1c7)](_0x65e003));}[_0x6be33(0x202)](_0x43fa10){const _0x259563=_0x6be33;return this[_0x259563(0x247)][_0x259563(0x20b)](_0x43fa10);}[_0x6be33(0x1f0)](_0x50456c){const _0xfd2584=_0x6be33;return Array['from'](this[_0xfd2584(0x231)])[_0xfd2584(0x198)](_0x17e0c6=>_0x17e0c6(_0x50456c));}}var M=Object[_0x6be33(0x253)],P=(_0x47a9c0,_0x5027b3,_0x34dcc4,_0x5924f4)=>{const _0x4ec086=_0x6be33;for(var _0x13f438=_0x5924f4>0x1?void 0x0:_0x5924f4?M(_0x5027b3,_0x34dcc4):_0x5027b3,_0x56b025=_0x47a9c0[_0x4ec086(0x267)]-0x1,_0x3bfeba;_0x56b025>=0x0;_0x56b025--)(_0x3bfeba=_0x47a9c0[_0x56b025])&&(_0x13f438=_0x3bfeba(_0x13f438)||_0x13f438);return _0x13f438;},S=(_0x560423,_0x18a963)=>(_0x17e7e0,_0x83732)=>_0x18a963(_0x17e7e0,_0x83732,_0x560423);exports[_0x6be33(0x1d4)]=class extends o[_0x6be33(0x26e)]{constructor(_0x260b0c,_0x531775,_0x16cec6){const _0x3ef5d2=_0x6be33;super(),_(this,_0x3ef5d2(0x1d0),new Map()),(this['_univerInstanceService']=_0x260b0c,this[_0x3ef5d2(0x1b9)]=_0x531775,this[_0x3ef5d2(0x1c9)]=_0x16cec6,this[_0x3ef5d2(0x239)]());}async[_0x6be33(0x22a)](_0x402faa){const _0x4f1b54=_0x6be33;return this[_0x4f1b54(0x1d0)][_0x4f1b54(0x20b)](_0x402faa)||await this[_0x4f1b54(0x213)](_0x402faa),this[_0x4f1b54(0x1d0)][_0x4f1b54(0x1c0)](_0x402faa);}['getLiveShareCoordinatorSync'](_0x274894){const _0x14677a=_0x6be33;var _0x919dc8;return(_0x919dc8=this[_0x14677a(0x1d0)]['get'](_0x274894))!=null?_0x919dc8:null;}[_0x6be33(0x239)](){const _0x56d708=_0x6be33;this[_0x56d708(0x1ff)][_0x56d708(0x23b)](o[_0x56d708(0x1cb)][_0x56d708(0x23a)])[_0x56d708(0x1fe)](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](async _0x3ac7dc=>{const _0x338428=_0x56d708,_0x345e1b=_0x3ac7dc[_0x338428(0x224)]();this[_0x338428(0x1d0)][_0x338428(0x20b)](_0x345e1b)||this[_0x338428(0x213)](_0x345e1b);}),this[_0x56d708(0x1ff)][_0x56d708(0x219)](o['UniverInstanceType'][_0x56d708(0x23a)])['pipe'](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](_0x317fea=>{const _0x2b1417=_0x56d708,_0x2ee220=_0x317fea[_0x2b1417(0x224)](),_0x498bac=this[_0x2b1417(0x1d0)][_0x2b1417(0x1c0)](_0x2ee220);_0x498bac==null||_0x498bac['dispose']();});}async[_0x6be33(0x213)](_0x150157){const _0x42f68c=_0x6be33,_0x2a4c47=await this[_0x42f68c(0x1c9)]['requireSession'](_0x150157),_0x427e65=this['_injector'][_0x42f68c(0x1bf)](exports[_0x42f68c(0x238)],_0x150157,_0x2a4c47);return _0x427e65[_0x42f68c(0x1a8)](),this[_0x42f68c(0x1d0)][_0x42f68c(0x1b6)](_0x150157,_0x427e65),_0x427e65;}},exports[_0x6be33(0x1d4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6be33(0x22e)](o[_0x6be33(0x25f)])),S(0x2,o[_0x6be33(0x22e)](b['CollaborationSessionService']))],exports[_0x6be33(0x1d4)]);var u=(_0x2a5809=>(_0x2a5809[_0x6be33(0x25e)]='offline',_0x2a5809[_0x6be33(0x201)]='idle',_0x2a5809[_0x6be33(0x266)]='following',_0x2a5809['NOT_FOLLOWING']=_0x6be33(0x21c),_0x2a5809[_0x6be33(0x21f)]=_0x6be33(0x240),_0x2a5809))(u||{});const k=_0x6be33(0x20d),q=0xc8;exports[_0x6be33(0x238)]=class extends o[_0x6be33(0x26e)]{constructor(_0x456554,_0x448d3d,_0x279232,_0x13182f,_0x562322){const _0x5df246=_0x6be33;super(),_(this,_0x5df246(0x1bd),new O[(_0x5df246(0x22c))](_0x5df246(0x196))),_(this,_0x5df246(0x1d1),this['_status$'][_0x5df246(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x456554,this[_0x5df246(0x1b3)]=_0x448d3d,this[_0x5df246(0x20e)]=_0x279232,this[_0x5df246(0x1ce)]=_0x13182f,this[_0x5df246(0x1f7)]=_0x562322);}get[_0x6be33(0x258)](){const _0xfe86d8=_0x6be33;return this[_0xfe86d8(0x1bd)][_0xfe86d8(0x1dd)]();}[_0x6be33(0x26d)](){const _0x1b8b4d=_0x6be33;var _0x3d195c;(_0x3d195c=this['_commandDisposable'])==null||_0x3d195c['dispose'](),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1e7)]('idle'),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1a4)]();}[_0x6be33(0x1fd)](){return this['_status'];}[_0x6be33(0x1a8)](){const _0x5f0ef9=_0x6be33;this[_0x5f0ef9(0x239)]||(this[_0x5f0ef9(0x239)]=!0x0,this[_0x5f0ef9(0x1b3)][_0x5f0ef9(0x1b8)][_0x5f0ef9(0x1fe)](I[_0x5f0ef9(0x223)](this[_0x5f0ef9(0x210)]))[_0x5f0ef9(0x1ba)](_0xfbe112=>{const _0x159379=_0x5f0ef9;switch(_0xfbe112){case b[_0x159379(0x215)][_0x159379(0x25e)]:this[_0x159379(0x1ec)]();break;case b[_0x159379(0x215)][_0x159379(0x1f8)]:this[_0x159379(0x24e)]();break;}}),this[_0x5f0ef9(0x1b3)]['event$']['pipe'](I[_0x5f0ef9(0x223)](this['dispose$']))[_0x5f0ef9(0x1ba)](_0x3d31ab=>{const _0x5c32f2=_0x5f0ef9,{eventID:_0x1f0ca2}=_0x3d31ab;switch(_0x1f0ca2){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5c32f2(0x1f2)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1c4)]:this[_0x5c32f2(0x229)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x244)]:this[_0x5c32f2(0x26a)]();break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1f3)]:this[_0x5c32f2(0x1c3)](_0x3d31ab);break;}}));}[_0x6be33(0x1e2)](){const _0x1bd484=_0x6be33;this['_collabSession'][_0x1bd484(0x203)]({'eventID':d[_0x1bd484(0x236)][_0x1bd484(0x21d)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1bd484(0x19a)]()}},this[_0x1bd484(0x268)]);}[_0x6be33(0x264)](){const _0x215999=_0x6be33;this[_0x215999(0x258)]===_0x215999(0x240)&&(this[_0x215999(0x1bd)][_0x215999(0x1e7)]('idle'),this[_0x215999(0x1b3)][_0x215999(0x203)]({'eventID':d[_0x215999(0x236)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x215999(0x268)]));}['startFollowing'](){const _0x5c391b=_0x6be33;this[_0x5c391b(0x258)]==='not-following'&&(this['_status$'][_0x5c391b(0x1e7)]('following'),this['_startFollowing']());}[_0x6be33(0x225)](){const _0x2591cf=_0x6be33;this['_status']==='following'&&this[_0x2591cf(0x263)]();}[_0x6be33(0x1f2)](_0x310f69){const _0x50ab1c=_0x6be33,{presenter:_0x52b614}=_0x310f69['data'],_0x2255a0=this[_0x50ab1c(0x1b3)]['getMemberID']();this['_presenter']=_0x52b614,_0x52b614===_0x2255a0?(this[_0x50ab1c(0x263)](),this[_0x50ab1c(0x1ed)]()):this[_0x50ab1c(0x258)]!==_0x50ab1c(0x21c)&&(this[_0x50ab1c(0x1ee)](),this[_0x50ab1c(0x218)]());}[_0x6be33(0x1af)](){const _0x153f20=_0x6be33,_0x851603={'eventID':d[_0x153f20(0x236)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x153f20(0x1b3)][_0x153f20(0x203)](_0x851603,this['_unitID']);}[_0x6be33(0x26a)](){const _0xb021c4=_0x6be33;this['_presenter']=null,this[_0xb021c4(0x258)]!==_0xb021c4(0x240)&&this[_0xb021c4(0x1ae)]();}[_0x6be33(0x1c3)](_0x19bf1a){const _0x35aa1b=_0x6be33;if(this[_0x35aa1b(0x258)]===_0x35aa1b(0x257)&&this[_0x35aa1b(0x1a3)]===_0x19bf1a[_0x35aa1b(0x255)][_0x35aa1b(0x260)]){const _0x1c3451=d[_0x35aa1b(0x24c)](_0x19bf1a[_0x35aa1b(0x255)])[_0x35aa1b(0x25d)][_0x35aa1b(0x22d)]()['find'](_0x1223d0=>_0x1223d0['id']===C[_0x35aa1b(0x248)]['id']);if(_0x1c3451){const _0x56e10b=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x204)],_0x2d311a=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x216)]['id'];setTimeout(()=>{const _0xb02728=_0x35aa1b;this[_0xb02728(0x1f7)]['executeCommand'](C[_0xb02728(0x226)]['id'],{'unitId':_0x56e10b,'subUnitId':_0x2d311a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x262ae6=_0x6be33;this[_0x262ae6(0x1bd)][_0x262ae6(0x1e7)](_0x262ae6(0x240));const _0x20dfd6=new Map(),_0x809032=this['_commandDisposable']=new o[(_0x262ae6(0x19d))]();_0x809032['add'](o[_0x262ae6(0x1c2)](()=>{const _0x458a2e=_0x262ae6;_0x20dfd6['forEach'](_0x34b1f2=>_0x34b1f2[_0x458a2e(0x1a4)]()),_0x20dfd6[_0x458a2e(0x24b)]();})),_0x809032['add'](this[_0x262ae6(0x1f7)][_0x262ae6(0x20c)](_0xbb99aa=>{const _0x26e6dc=_0x262ae6;var _0x3159fa;if(_0xbb99aa[_0x26e6dc(0x199)]!==o[_0x26e6dc(0x230)][_0x26e6dc(0x1a1)]||!this[_0x26e6dc(0x1ce)][_0x26e6dc(0x202)](_0xbb99aa['id']))return;const {id:_0x559ac3}=_0xbb99aa;let _0x375e43;_0x20dfd6[_0x26e6dc(0x20b)](_0x559ac3)?_0x375e43=_0x20dfd6['get'](_0x559ac3):(_0x375e43=new O[(_0x26e6dc(0x1e4))](),_0x20dfd6[_0x26e6dc(0x1b6)](_0x559ac3,_0x375e43),_0x375e43[_0x26e6dc(0x1fe)](I[_0x26e6dc(0x1e9)]((_0x3159fa=this['_configService'][_0x26e6dc(0x261)](k))!=null?_0x3159fa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26e6dc(0x1ba)](_0x5dd222=>{const _0x324d20=_0x26e6dc;this[_0x324d20(0x1b3)][_0x324d20(0x203)]({'eventID':d[_0x324d20(0x236)][_0x324d20(0x1c4)],'data':{'unitID':this[_0x324d20(0x268)],'operations':{[_0x5dd222['id']]:{'id':_0x5dd222['id'],'params':JSON[_0x324d20(0x24a)](_0x5dd222[_0x324d20(0x1e8)])}}}},this[_0x324d20(0x268)]);})),_0x375e43['next'](_0xbb99aa);})),this['_liveShareService'][_0x262ae6(0x1f0)](this[_0x262ae6(0x268)])[_0x262ae6(0x1a5)](_0xc803c9=>this['_collabSession'][_0x262ae6(0x203)]({'eventID':d[_0x262ae6(0x236)][_0x262ae6(0x1c4)],'data':{'unitID':this[_0x262ae6(0x268)],'operations':{[_0xc803c9['id']]:{'id':_0xc803c9['id'],'params':JSON[_0x262ae6(0x24a)](_0xc803c9[_0x262ae6(0x1e8)])}}}},this[_0x262ae6(0x268)]));}[_0x6be33(0x1ee)](){const _0x37986c=_0x6be33;var _0x591079;this[_0x37986c(0x1bd)]['next'](_0x37986c(0x196)),(_0x591079=this[_0x37986c(0x1e6)])==null||_0x591079[_0x37986c(0x26d)](),this[_0x37986c(0x1e6)]=null;}[_0x6be33(0x218)](){const _0x349eb2=_0x6be33;var _0x4571c7;(_0x4571c7=this[_0x349eb2(0x1e6)])==null||_0x4571c7[_0x349eb2(0x26d)](),this['_status$'][_0x349eb2(0x1e7)](_0x349eb2(0x257));}[_0x6be33(0x1ae)](){const _0x5be756=_0x6be33;var _0xc02a95;this[_0x5be756(0x1bd)]['next'](_0x5be756(0x196)),(_0xc02a95=this[_0x5be756(0x1e6)])==null||_0xc02a95['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x47df77=_0x6be33;var _0x1db5ec;this['_status$'][_0x47df77(0x1e7)]('not-following'),(_0x1db5ec=this[_0x47df77(0x1e6)])==null||_0x1db5ec[_0x47df77(0x26d)]();}['_handleOperation'](_0x2e07b6){const _0x173d95=_0x6be33;if(['presenting',_0x173d95(0x21c),'offline']['includes'](this[_0x173d95(0x258)])||!_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]||_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]===this[_0x173d95(0x1b3)][_0x173d95(0x19a)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x542531=_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x23e)];Object['values'](_0x542531)[_0x173d95(0x1a5)](_0x5a1db0=>{const _0x45b6e5=_0x173d95;this[_0x45b6e5(0x1f7)][_0x45b6e5(0x228)](_0x5a1db0['id'],_0x5a1db0[_0x45b6e5(0x1e8)]?JSON[_0x45b6e5(0x217)](_0x5a1db0[_0x45b6e5(0x1e8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5133ff=_0x6be33;var _0x133b22;this[_0x5133ff(0x1bd)][_0x5133ff(0x1e7)](_0x5133ff(0x208)),(_0x133b22=this['_commandDisposable'])==null||_0x133b22[_0x5133ff(0x26d)]();}[_0x6be33(0x24e)](){const _0x4e60ba=_0x6be33;this['_status$'][_0x4e60ba(0x1e7)](_0x4e60ba(0x196)),this[_0x4e60ba(0x1af)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x6be33(0x26b)]),S(0x3,o[_0x6be33(0x22e)](E)),S(0x4,o[_0x6be33(0x209)])],exports[_0x6be33(0x238)]);function $(){const _0x122433=_0x6be33,_0x2ec90f=p['useDependency'](exports[_0x122433(0x1d4)]),_0x4d5101=p['useDependency'](o[_0x122433(0x20a)]),_0x506d65=p[_0x122433(0x265)](()=>_0x4d5101['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x122433(0x23a)]),void 0x0,!0x1,[]),[_0x1498e3,_0x5d54e6]=v[_0x122433(0x1b4)](null),[_0x1f930d,_0x586d4a]=v[_0x122433(0x1b4)](u[_0x122433(0x201)]),_0x24b11f=v[_0x122433(0x24f)](null);return v[_0x122433(0x222)](()=>(_0x506d65&&_0x2ec90f['getLiveShareCoordinator'](_0x506d65[_0x122433(0x224)]())[_0x122433(0x26c)](_0x41cbc3=>{const _0x27fcea=_0x122433;_0x5d54e6(_0x41cbc3),_0x24b11f[_0x27fcea(0x241)]=_0x41cbc3[_0x27fcea(0x1d1)][_0x27fcea(0x1ba)](_0x547617=>{_0x586d4a(_0x547617);});}),()=>{const _0x262f87=_0x122433;var _0x3df4e1;(_0x3df4e1=_0x24b11f[_0x262f87(0x241)])==null||_0x3df4e1[_0x262f87(0x1ad)](),_0x24b11f[_0x262f87(0x241)]=null;}),[_0x506d65,_0x2ec90f]),_0x1498e3?l[_0x122433(0x200)](f[_0x122433(0x1aa)],{'align':_0x122433(0x1ef),'disabled':_0x1f930d===u[_0x122433(0x25e)],'className':_0x122433(0x246),'overlay':l['jsx'](W,{'status':_0x1f930d,'coordinator':_0x1498e3}),'children':l[_0x122433(0x200)]('button',{'className':f['clsx'](_0x122433(0x214),{'univer-cursor-not-allowed':_0x1f930d===u[_0x122433(0x25e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f930d!==u['OFFLINE']}),'type':_0x122433(0x1ea),'children':l[_0x122433(0x200)](R,{'className':_0x122433(0x227)})})}):null;}function W(_0x39b859){const _0x4809b4=_0x6be33,{status:_0x370dc0,coordinator:_0x2aebb8}=_0x39b859;switch(_0x370dc0){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x266)]:return l[_0x4809b4(0x200)](B,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x21a)]:return l[_0x4809b4(0x200)](Y,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x25e)]:return l['jsx'](J,{});case u[_0x4809b4(0x21f)]:return l[_0x4809b4(0x200)](Z,{'coordinator':_0x2aebb8});default:return null;}}function G(_0xaff639){const _0x5cc1d8=_0x6be33,{coordinator:_0x57b2e9}=_0xaff639;return l[_0x5cc1d8(0x1cf)](l[_0x5cc1d8(0x254)],{'children':[l[_0x5cc1d8(0x200)](_0x5cc1d8(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cc1d8(0x269)}),l[_0x5cc1d8(0x200)](f[_0x5cc1d8(0x1cd)],{'onClick':()=>_0x57b2e9['tryStartPresenting'](),'children':_0x5cc1d8(0x1fc)})]});}function B(_0x50e192){const _0x1af003=_0x6be33,{coordinator:_0xd24b06}=_0x50e192;return l[_0x1af003(0x1cf)](l[_0x1af003(0x254)],{'children':[l[_0x1af003(0x200)](_0x1af003(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1af003(0x19c)}),l[_0x1af003(0x200)](f[_0x1af003(0x1cd)],{'onClick':()=>_0xd24b06['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x8a46c8){const _0x1d935c=_0x6be33,{coordinator:_0x213d73}=_0x8a46c8;return l['jsxs'](l[_0x1d935c(0x254)],{'children':[l[_0x1d935c(0x200)](_0x1d935c(0x1f4),{'className':_0x1d935c(0x24d),'children':_0x1d935c(0x1c5)}),l[_0x1d935c(0x200)](f[_0x1d935c(0x1cd)],{'variant':_0x1d935c(0x262),'onClick':()=>_0x213d73[_0x1d935c(0x1a9)](),'children':'Start\x20following'})]});}function Z(_0x26b027){const _0x565349=_0x6be33,{coordinator:_0x91572}=_0x26b027;return l[_0x565349(0x1cf)](l[_0x565349(0x254)],{'children':[l['jsx'](_0x565349(0x1f4),{'className':_0x565349(0x24d),'children':_0x565349(0x1f1)}),l[_0x565349(0x200)](f[_0x565349(0x1cd)],{'variant':'default','onClick':()=>_0x91572['stopPresenting'](),'children':_0x565349(0x1d2)})]});}function J(){const _0xf4db23=_0x6be33;return l[_0xf4db23(0x200)](l['Fragment'],{'children':_0xf4db23(0x251)});}var K=Object[_0x6be33(0x253)],z=(_0x103346,_0x4a6512,_0x3934e4,_0x5ab9cd)=>{const _0x285cb9=_0x6be33;for(var _0x5b0530=_0x5ab9cd>0x1?void 0x0:_0x5ab9cd?K(_0x4a6512,_0x3934e4):_0x4a6512,_0x20ff58=_0x103346[_0x285cb9(0x267)]-0x1,_0x108ef7;_0x20ff58>=0x0;_0x20ff58--)(_0x108ef7=_0x103346[_0x20ff58])&&(_0x5b0530=_0x108ef7(_0x5b0530)||_0x5b0530);return _0x5b0530;},L=(_0x4ef8c8,_0x2fbeef)=>(_0x1c7357,_0xb02dc2)=>_0x2fbeef(_0x1c7357,_0xb02dc2,_0x4ef8c8);exports[_0x6be33(0x1ac)]=class extends o[_0x6be33(0x1e0)]{constructor(_0x3a7ce1,_0x30618b){const _0x16af62=_0x6be33;super(),this[_0x16af62(0x1b9)]=_0x3a7ce1,this[_0x16af62(0x23c)]=_0x30618b,this[_0x16af62(0x1a2)]();}['_mountLiveShare'](){const _0x58c751=_0x6be33;this[_0x58c751(0x1d8)](this['_uiPartsService']['registerComponent'](p[_0x58c751(0x19e)][_0x58c751(0x250)],()=>p[_0x58c751(0x212)]($,this[_0x58c751(0x1b9)])));}},exports[_0x6be33(0x1ac)]=z([L(0x0,o[_0x6be33(0x22e)](o['Injector'])),L(0x1,p[_0x6be33(0x221)])],exports[_0x6be33(0x1ac)]);const Q=_0x6be33(0x234),w={};var X=Object[_0x6be33(0x253)],ee=(_0x2fa54a,_0x314da2,_0x26b71b,_0x38e100)=>{const _0x1d93cb=_0x6be33;for(var _0x2936d3=_0x38e100>0x1?void 0x0:_0x38e100?X(_0x314da2,_0x26b71b):_0x314da2,_0x37060c=_0x2fa54a[_0x1d93cb(0x267)]-0x1,_0x139792;_0x37060c>=0x0;_0x37060c--)(_0x139792=_0x2fa54a[_0x37060c])&&(_0x2936d3=_0x139792(_0x2936d3)||_0x2936d3);return _0x2936d3;},te=(_0x411ef3,_0x1d01a9)=>(_0x57d8b0,_0x5cff1a)=>_0x1d01a9(_0x57d8b0,_0x5cff1a,_0x411ef3);let m=class extends o['Disposable']{constructor(_0x2035f7){const _0x5c3da6=_0x6be33;super(),this[_0x5c3da6(0x1ce)]=_0x2035f7,this[_0x5c3da6(0x239)]();}[_0x6be33(0x239)](){const _0x5d164a=_0x6be33;[D['SetZoomRatioOperation']['id'],D[_0x5d164a(0x19b)]['id'],C[_0x5d164a(0x226)]['id']][_0x5d164a(0x1a5)](_0x52551b=>{const _0x550d38=_0x5d164a;this['disposeWithMe'](this[_0x550d38(0x1ce)]['registerSharedOperation'](_0x52551b));});}};function _0x3402(_0xfe1219,_0x270270){_0xfe1219=_0xfe1219-0x196;const _0x3ba128=_0x3ba1();let _0x3402a0=_0x3ba128[_0xfe1219];return _0x3402a0;}function _0x3ba1(){const _0x480d26=['delete','defineProperty','_collabSessionService','children','UniverInstanceType','_config','Button','_liveShareService','jsxs','_entities','status$','Stop\x20presenting','Plugin','LiveShareController','replace','live-share-icon','2307375kceSQN','disposeWithMe','onStarting','1402384vqOpOV','univerjs-icon\x20univerjs-icon-','svg','getValue','defIds','registerSharedOperation','Disposable','27rHGhid','tryStartPresenting','add','Subject','path','_commandDisposable','next','params','throttleTime','button','Module','_handleOffline','_startPresenting','_stopPresenting','end','getInitialStates','You\x27re\x20presenting\x20the\x20document','_handleNewHost','NEW_CHANGESETS','div','presenter','override','_commandService','ONLINE','182588wumlEE','defs','fill','Start','getStatus','pipe','_univerInstanceService','jsx','IDLE','shouldShareOperation','send','unitId','http://www.w3.org/2000/svg','attrs','colorChannel1','offline','ICommandService','IUniverInstanceService','has','onCommandExecuted','SAME_OPERATION_SHARE_INTERVAL','_configService','currentColor','dispose$','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','connectInjector','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SessionStatus','sheet','parse','_startFollowing','getTypeOfUnitDisposed$','NOT_FOLLOWING','xlink:href','not-following','LIVESHARE_REQUEST_HOST','897788zjUZvK','PRESENTING','toStringTag','IUIPartsService','useEffect','takeUntil','getUnitId','stopFollowing','SetWorksheetActiveOperation','univer-size-4','executeCommand','_handleOperation','getLiveShareCoordinator','url(#$1','BehaviorSubject','reverse','Inject','6VCzlND','CommandType','_reporters','displayName','use','live-share.config','string','CollaborationEvent','0\x200\x2017\x2017','LiveShareCoordinator','_init','UNIVER_SHEET','getTypeOfUnitAdded$','_uiPartsService','symbol','operations','onRendered','presenting','current','merge','UniverLiveSharePlugin','LIVESHARE_TERMINATE','touchDependencies','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','_sharedOperations','InsertSheetMutation','evenodd','stringify','clear','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','useRef','HEADER_MENU','You\x27are\x20offline.','LiveShareService','getOwnPropertyDescriptor','Fragment','data','tag','following','_status','4196970pNMAwK','1538374brUKzO','registerDependencies','createElement','mutations','OFFLINE','Injector','memberID','getConfig','text','_stopFollowing','stopPresenting','useObservable','FOLLOWING','length','_unitID','Present\x20this\x20document','_handleTerminate','IConfigService','then','dispose','RxDisposable','idle','includes','map','type','getMemberID','SetScrollOperation','You\x27re\x20following\x20the\x20presenter','DisposableCollection','BuiltInUIPart','pluginName','LiveShareIcon','OPERATION','_mountLiveShare','_presenter','complete','forEach','assign','entries','init','startFollowing','Dropdown','idSuffix','DesktopLiveShareController','unsubscribe','_beIdle','_fetchOperations','none','88hQOkCk','random','_collabSession','useState','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','set','mask','sessionStatus$','_injector','subscribe','asObservable','3543456HpTrRZ','_status$','setConfig','createInstance','get','UniverIcon','toDisposable','_handleNewChangeSets','LIVESHARE_OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x3ba1=function(){return _0x480d26;};return _0x3ba1();}m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x6be33(0x253)],ne=(_0x1a19d1,_0x4d8be3,_0x133a39)=>_0x4d8be3 in _0x1a19d1?ie(_0x1a19d1,_0x4d8be3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x133a39}):_0x1a19d1[_0x4d8be3]=_0x133a39,re=(_0x537699,_0x13d156,_0x576f10,_0x56c316)=>{const _0x5895c4=_0x6be33;for(var _0x2ba70e=_0x56c316>0x1?void 0x0:_0x56c316?se(_0x13d156,_0x576f10):_0x13d156,_0x49d266=_0x537699[_0x5895c4(0x267)]-0x1,_0x29c604;_0x49d266>=0x0;_0x49d266--)(_0x29c604=_0x537699[_0x49d266])&&(_0x2ba70e=_0x29c604(_0x2ba70e)||_0x2ba70e);return _0x2ba70e;},N=(_0x4c45a3,_0x22e876)=>(_0x4e2e03,_0x1a9bd7)=>_0x22e876(_0x4e2e03,_0x1a9bd7,_0x4c45a3),A=(_0x2f696e,_0xa563a3,_0xeacc20)=>ne(_0x2f696e,typeof _0xa563a3!=_0x6be33(0x23d)?_0xa563a3+'':_0xa563a3,_0xeacc20);const oe=_0x6be33(0x1c6);exports[_0x6be33(0x243)]=class extends o[_0x6be33(0x1d3)]{constructor(_0x42dcdb=w,_0x3e423e,_0x173e97){const _0x28573a=_0x6be33;super(),this['_config']=_0x42dcdb,this[_0x28573a(0x1b9)]=_0x3e423e,this[_0x28573a(0x20e)]=_0x173e97;const {..._0x27ed59}=o[_0x28573a(0x242)]({},w,this[_0x28573a(0x1cc)]);this[_0x28573a(0x20e)][_0x28573a(0x1be)](Q,_0x27ed59);}[_0x6be33(0x1d9)](){const _0x30d089=_0x6be33;o[_0x30d089(0x25b)](this[_0x30d089(0x1b9)],o['mergeOverrideWithDependencies']([[E],[exports[_0x30d089(0x1d4)]],[m],[exports[_0x30d089(0x1ac)]]],this[_0x30d089(0x1cc)][_0x30d089(0x1f6)])),o[_0x30d089(0x245)](this['_injector'],[[m]]);}[_0x6be33(0x23f)](){const _0x2cc9f8=_0x6be33;o['touchDependencies'](this[_0x2cc9f8(0x1b9)],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x6be33(0x199),o[_0x6be33(0x1cb)]['UNIVER_UNKNOWN']),A(exports[_0x6be33(0x243)],_0x6be33(0x19f),oe),exports[_0x6be33(0x243)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x6be33(0x25f)])),N(0x2,o[_0x6be33(0x26b)])],exports[_0x6be33(0x243)]),exports['LiveShare']=$,exports[_0x6be33(0x252)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x955fa9=_0x5b8f;function _0x49b9(){const _0x2d65b5=['6025460luhdRB','getUnitId','extend','getRenderById','startRow','_commandService','get','syncExecuteCommand','1594LlKkel','getLiveShareStatus','3664670qrvPMI','63uLdGCC','800147ckBzBw','_initialize','getLiveShareCoordinatorSync','tryStartPresenting','_injector','stopPresenting','No\x20active\x20workbook\x20found.','9692238smbjfF','startFollowing','IDLE','startPresenting','getActiveWorkbook','20085288WnlEIZ','9643655AgRGMX','stopFollowing','getId','getActiveSheet','PRESENTING','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getSheetId','getStatus'];_0x49b9=function(){return _0x2d65b5;};return _0x49b9();}(function(_0x3802a6,_0x5bd76a){const _0x5bd266=_0x5b8f,_0x13dada=_0x3802a6();while(!![]){try{const _0x3d48db=-parseInt(_0x5bd266(0x93))/0x1+parseInt(_0x5bd266(0x8f))/0x2*(parseInt(_0x5bd266(0x92))/0x3)+parseInt(_0x5bd266(0xaa))/0x4+parseInt(_0x5bd266(0x91))/0x5+-parseInt(_0x5bd266(0x9a))/0x6+-parseInt(_0x5bd266(0xa0))/0x7+parseInt(_0x5bd266(0x9f))/0x8;if(_0x3d48db===_0x5bd76a)break;else _0x13dada['push'](_0x13dada['shift']());}catch(_0x113545){_0x13dada['push'](_0x13dada['shift']());}}}(_0x49b9,0xedac8));import{LiveShareController as _0x31df89,LiveShareStatus as _0x3b1a8b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2cc937}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x7e9f45}from'@univerjs/sheets';import{SetScrollOperation as _0x44e013}from'@univerjs/sheets-ui';import{FRange as _0x1def79}from'@univerjs/sheets/facade';import{FUniver as _0x195fa9,FEnum as _0x4a60d6}from'@univerjs/core/facade';function _0x5b8f(_0x2559bd,_0x1af824){_0x2559bd=_0x2559bd-0x88;const _0x49b90d=_0x49b9();let _0x5b8f47=_0x49b90d[_0x2559bd];return _0x5b8f47;}class I extends _0x1def79{[_0x955fa9(0x94)](_0x58298f,_0x50d9d1,_0x32d148,_0x5da423,_0x31cb58){const _0x3b0802=_0x955fa9,_0x48b384=_0x58298f['get'](_0x31df89),_0x13c80d=_0x58298f['get'](_0x2cc937),_0x3f9969=_0x50d9d1[_0x3b0802(0x88)](),_0x2d62ab=_0x50d9d1[_0x3b0802(0xa3)](),_0x365d83=_0x48b384['getLiveShareCoordinatorSync'](_0x3f9969);(_0x365d83==null?void 0x0:_0x365d83[_0x3b0802(0xa9)]())!==_0x3b1a8b[_0x3b0802(0xa4)]||(_0x32d148[_0x3b0802(0xa8)]()!==_0x2d62ab[_0x3b0802(0xa8)]()&&this[_0x3b0802(0x8c)][_0x3b0802(0xa5)](_0x7e9f45['id'],{'unitId':_0x3f9969,'subUnitId':_0x32d148[_0x3b0802(0xa8)]()}),!_0x13c80d[_0x3b0802(0x8a)](_0x3f9969))||_0x31cb58[_0x3b0802(0x8e)](_0x44e013['id'],{'unitId':_0x50d9d1[_0x3b0802(0x88)](),'sheetId':_0x32d148[_0x3b0802(0xa8)](),'sheetViewStartRow':_0x5da423[_0x3b0802(0x8b)],'sheetViewStartColumn':_0x5da423[_0x3b0802(0xa7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1def79['extend'](I);class m extends _0x195fa9{[_0x955fa9(0x90)](){const _0x400655=_0x955fa9;var _0xe79811,_0x3f9926;const _0x45bcce=this[_0x400655(0x97)][_0x400655(0x8d)](_0x31df89),_0x59be94=(_0xe79811=this[_0x400655(0x9e)]())==null?void 0x0:_0xe79811['getId']();if(!_0x59be94)throw new Error(_0x400655(0x99));const _0x1d9b5e=_0x45bcce[_0x400655(0x95)](_0x59be94);return(_0x3f9926=_0x1d9b5e==null?void 0x0:_0x1d9b5e[_0x400655(0xa9)]())!=null?_0x3f9926:_0x3b1a8b[_0x400655(0x9c)];}[_0x955fa9(0x9b)](){const _0x225408=_0x955fa9;var _0x3fe84e;const _0x453b2b=this[_0x225408(0x97)][_0x225408(0x8d)](_0x31df89),_0x5229f6=(_0x3fe84e=this[_0x225408(0x9e)]())==null?void 0x0:_0x3fe84e['getId']();if(!_0x5229f6)throw new Error(_0x225408(0x99));const _0x128189=_0x453b2b['getLiveShareCoordinatorSync'](_0x5229f6);if(!_0x128189)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x128189['startFollowing']();}[_0x955fa9(0xa1)](){const _0x3207d2=_0x955fa9;var _0x1f1904;const _0x49d2ba=this[_0x3207d2(0x97)][_0x3207d2(0x8d)](_0x31df89),_0x4cb314=(_0x1f1904=this[_0x3207d2(0x9e)]())==null?void 0x0:_0x1f1904['getId']();if(!_0x4cb314)throw new Error(_0x3207d2(0x99));const _0x48e97f=_0x49d2ba[_0x3207d2(0x95)](_0x4cb314);if(!_0x48e97f)throw new Error(_0x3207d2(0xa6));_0x48e97f['stopFollowing']();}[_0x955fa9(0x9d)](){const _0x184717=_0x955fa9;var _0x58b929;const _0x3b1dcc=this[_0x184717(0x97)][_0x184717(0x8d)](_0x31df89),_0x51ea99=(_0x58b929=this[_0x184717(0x9e)]())==null?void 0x0:_0x58b929[_0x184717(0xa2)]();if(!_0x51ea99)throw new Error(_0x184717(0x99));const _0x196c82=_0x3b1dcc['getLiveShareCoordinatorSync'](_0x51ea99);if(!_0x196c82)throw new Error(_0x184717(0xa6));_0x196c82[_0x184717(0x96)]();}[_0x955fa9(0x98)](){const _0x264081=_0x955fa9;var _0x1df440;const _0x2f50c9=this['_injector']['get'](_0x31df89),_0x58e2c7=(_0x1df440=this[_0x264081(0x9e)]())==null?void 0x0:_0x1df440[_0x264081(0xa2)]();if(!_0x58e2c7)throw new Error(_0x264081(0x99));const _0x27907c=_0x2f50c9[_0x264081(0x95)](_0x58e2c7);if(!_0x27907c)throw new Error(_0x264081(0xa6));_0x27907c['stopPresenting']();}}_0x195fa9[_0x955fa9(0x89)](m);class C extends _0x4a60d6{get['LiveShareStatusEnum'](){return _0x3b1a8b;}}_0x4a60d6[_0x955fa9(0x89)](C);
1
+ const _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f272d=_0x12b5;(function(_0x3f5c27,_0x353db0){const _0x4541a6=_0x12b5,_0x5d36ae=_0x3f5c27();while(!![]){try{const _0x4a965a=parseInt(_0x4541a6(0x192))/0x1+parseInt(_0x4541a6(0x1ef))/0x2+-parseInt(_0x4541a6(0x172))/0x3*(parseInt(_0x4541a6(0x1fa))/0x4)+-parseInt(_0x4541a6(0x1f6))/0x5+-parseInt(_0x4541a6(0x1a5))/0x6*(-parseInt(_0x4541a6(0x1bf))/0x7)+-parseInt(_0x4541a6(0x200))/0x8+parseInt(_0x4541a6(0x1c3))/0x9*(parseInt(_0x4541a6(0x174))/0xa);if(_0x4a965a===_0x353db0)break;else _0x5d36ae['push'](_0x5d36ae['shift']());}catch(_0x487cf0){_0x5d36ae['push'](_0x5d36ae['shift']());}}}(_0x10f0,0xe26df));var J=Object[_0x4f272d(0x1b8)],K=(_0x2abf74,_0x7f0273,_0x588963)=>_0x7f0273 in _0x2abf74?J(_0x2abf74,_0x7f0273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x588963}):_0x2abf74[_0x7f0273]=_0x588963,u=(_0x30bb45,_0x5152d8,_0xb94a3e)=>K(_0x30bb45,typeof _0x5152d8!=_0x4f272d(0x191)?_0x5152d8+'':_0x5152d8,_0xb94a3e);function _0x12b5(_0x259c75,_0x34321f){_0x259c75=_0x259c75-0x16f;const _0x10f045=_0x10f0();let _0x12b5db=_0x10f045[_0x259c75];return _0x12b5db;}import{Disposable as _0x2a990a,toDisposable as _0x493c65,IUniverInstanceService as _0xd15b0a,Inject as _0x3c9052,Injector as _0x1ba966,IConfigService as _0x2a508c,ICommandService as _0x26858f,RxDisposable as _0x1b4131,UniverInstanceType as _0x39382c,DisposableCollection as _0x2e01bb,CommandType as _0x5efdf4,DependentOn as _0x45cd91,Plugin as _0x262c4f,merge as _0x262827,registerDependencies as _0x5b6cc8,mergeOverrideWithDependencies as _0x22807c,touchDependencies as _0x1cc958}from'@univerjs/core';import{useDependency as _0x2dbf82,useObservable as _0x5b48f0,IUIPartsService as _0x1556be,BuiltInUIPart as _0x2db817,connectInjector as _0x47868d}from'@univerjs/ui';import{jsx as _0x31d872,jsxs as _0x226895,Fragment as _0x45b536}from'react/jsx-runtime';import{Dropdown as _0x1bce87,clsx as _0x450603,Button as _0x3a140e}from'@univerjs/design';import{useRef as _0x3007da,createElement as _0x37a465,forwardRef as _0x5c088f,useState as _0x4a4515,useEffect as _0x2e4098}from'react';import{CollaborationEvent as _0x4c21ab,parseProtocolChangeset as _0x1017ae}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4c1567,SessionStatus as _0x7be42a,UniverCollaborationClientPlugin as _0x5e658c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3deb4,SetWorksheetActiveOperation as _0x591f93}from'@univerjs/sheets';import{BehaviorSubject as _0x21cfae,Subject as _0x2609e3}from'rxjs';import{takeUntil as _0x44ddd5,throttleTime as _0x6b1f72}from'rxjs/operators';import{SetZoomRatioOperation as _0x2ceadd,SetScrollOperation as _0x388d02}from'@univerjs/sheets-ui';function k({ref:_0x560d32,..._0x16137f}){const _0x423c6e=_0x4f272d,{icon:_0x3f9717,id:_0x3473ff,className:_0x26d8fa,extend:_0x23d0a5,..._0x2d13b2}=_0x16137f,_0x110366=(_0x423c6e(0x1e9)+_0x3473ff+'\x20'+(_0x26d8fa||''))[_0x423c6e(0x1db)](),_0x34b0ca=_0x3007da('_'+Oe());return G(_0x3f9717,''+_0x3473ff,{'defIds':_0x3f9717[_0x423c6e(0x187)],'idSuffix':_0x34b0ca[_0x423c6e(0x195)]},{'ref':_0x560d32,'className':_0x110366,..._0x2d13b2},_0x23d0a5);}function G(_0x5919df,_0x5157d9,_0x4f7b1f,_0x3ff3ee,_0x3e3f36){const _0x3cbfd0=_0x4f272d;return _0x37a465(_0x5919df[_0x3cbfd0(0x1d3)],{'key':_0x5157d9,...be(_0x5919df,_0x4f7b1f,_0x3e3f36),..._0x3ff3ee},(Ee(_0x5919df,_0x4f7b1f)[_0x3cbfd0(0x18c)]||[])[_0x3cbfd0(0x1d6)]((_0x411e67,_0x309c70)=>G(_0x411e67,_0x5157d9+'-'+_0x5919df[_0x3cbfd0(0x1d3)]+'-'+_0x309c70,_0x4f7b1f,void 0x0,_0x3e3f36)));}function be(_0x91c44f,_0x457e21,_0x2ccff4){const _0x4a1f68=_0x4f272d,_0x22c576={..._0x91c44f[_0x4a1f68(0x184)]};_0x2ccff4!=null&&_0x2ccff4[_0x4a1f68(0x1c8)]&&_0x22c576[_0x4a1f68(0x1e3)]===_0x4a1f68(0x1c8)&&(_0x22c576[_0x4a1f68(0x1e3)]=_0x2ccff4[_0x4a1f68(0x1c8)]),_0x91c44f[_0x4a1f68(0x1d3)]===_0x4a1f68(0x1fe)&&_0x22c576['id']&&(_0x22c576['id']=_0x22c576['id']+_0x457e21[_0x4a1f68(0x17f)]),Object['entries'](_0x22c576)[_0x4a1f68(0x19b)](([_0x43d253,_0x34982b])=>{const _0x18cc57=_0x4a1f68;_0x43d253===_0x18cc57(0x1fe)&&typeof _0x34982b==_0x18cc57(0x1aa)&&(_0x22c576[_0x43d253]=_0x34982b[_0x18cc57(0x178)](/url\(#(.*)\)/,_0x18cc57(0x1c1)+_0x457e21[_0x18cc57(0x17f)]+')'));});const {defIds:_0x52cd66}=_0x457e21;return!_0x52cd66||_0x52cd66['length']===0x0||(_0x91c44f[_0x4a1f68(0x1d3)]===_0x4a1f68(0x1c7)&&_0x22c576['xlink:href']&&(_0x22c576[_0x4a1f68(0x1eb)]=_0x22c576[_0x4a1f68(0x1eb)]+_0x457e21[_0x4a1f68(0x17f)]),Object['entries'](_0x22c576)[_0x4a1f68(0x19b)](([_0x2c29d1,_0x2b9bab])=>{const _0x3d4f3d=_0x4a1f68;typeof _0x2b9bab==_0x3d4f3d(0x1aa)&&(_0x22c576[_0x2c29d1]=_0x2b9bab[_0x3d4f3d(0x178)](/url\(#(.*)\)/,_0x3d4f3d(0x1c1)+_0x457e21[_0x3d4f3d(0x17f)]+')'));})),_0x22c576;}function Ee(_0x11119e,_0x279047){const _0x24122c=_0x4f272d;var _0x3c2b24;const {defIds:_0x4ad77a}=_0x279047;return!_0x4ad77a||_0x4ad77a[_0x24122c(0x199)]===0x0?_0x11119e:_0x11119e[_0x24122c(0x1d3)]==='defs'&&((_0x3c2b24=_0x11119e['children'])!=null&&_0x3c2b24[_0x24122c(0x199)])?{..._0x11119e,'children':_0x11119e['children'][_0x24122c(0x1d6)](_0x15b3d0=>typeof _0x15b3d0[_0x24122c(0x184)]['id']==_0x24122c(0x1aa)&&_0x4ad77a&&_0x4ad77a['includes'](_0x15b3d0['attrs']['id'])?{..._0x15b3d0,'attrs':{..._0x15b3d0[_0x24122c(0x184)],'id':_0x15b3d0[_0x24122c(0x184)]['id']+_0x279047[_0x24122c(0x17f)]}}:_0x15b3d0)}:_0x11119e;}function Oe(){const _0x5e9bbd=_0x4f272d;return Math[_0x5e9bbd(0x1fc)]()['toString'](0x24)[_0x5e9bbd(0x208)](0x2,0x8);}k[_0x4f272d(0x1e1)]=_0x4f272d(0x1f0);const we={'tag':_0x4f272d(0x218),'attrs':{'xmlns':_0x4f272d(0x1b1),'fill':_0x4f272d(0x1ee),'viewBox':'0\x200\x2017\x2017','width':_0x4f272d(0x1cc),'height':_0x4f272d(0x1cc)},'children':[{'tag':_0x4f272d(0x1a6),'attrs':{'fill':_0x4f272d(0x1a9),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4f272d(0x1a6),'attrs':{'fill':_0x4f272d(0x1a9),'d':_0x4f272d(0x1e8),'fillRule':_0x4f272d(0x1fd),'clipRule':_0x4f272d(0x1fd)}}]},W=_0x5c088f(function(_0x4b96a2,_0x196d0d){const _0x4b56f9=_0x4f272d;return _0x37a465(k,Object[_0x4b56f9(0x1c0)]({},_0x4b96a2,{'id':_0x4b56f9(0x214),'ref':_0x196d0d,'icon':we}));});W[_0x4f272d(0x1e1)]=_0x4f272d(0x1d1);class L extends _0x2a990a{constructor(){const _0x3c0bef=_0x4f272d;super(...arguments),u(this,_0x3c0bef(0x1ed),new Set()),u(this,'_reporters',new Set());}[_0x4f272d(0x1fb)](_0x28c22f){const _0x31108f=_0x4f272d;return this[_0x31108f(0x1ed)]['add'](_0x28c22f),_0x493c65(()=>this[_0x31108f(0x1ed)][_0x31108f(0x16f)](_0x28c22f));}[_0x4f272d(0x176)](_0x5584ad){const _0x591af4=_0x4f272d;return this[_0x591af4(0x18b)][_0x591af4(0x203)](_0x5584ad),_0x493c65(()=>this[_0x591af4(0x18b)]['delete'](_0x5584ad));}[_0x4f272d(0x175)](_0x59c299){const _0x598715=_0x4f272d;return this[_0x598715(0x1ed)][_0x598715(0x1c4)](_0x59c299);}['getInitialStates'](_0x45df58){const _0x71fe9c=_0x4f272d;return Array[_0x71fe9c(0x204)](this[_0x71fe9c(0x18b)])[_0x71fe9c(0x1d6)](_0x439b85=>_0x439b85(_0x45df58));}}var Ne=Object[_0x4f272d(0x20c)],Y=(_0x741358,_0x44dbaa,_0x2f5db0,_0x546f21)=>{for(var _0x43548d=_0x546f21>0x1?void 0x0:_0x546f21?Ne(_0x44dbaa,_0x2f5db0):_0x44dbaa,_0x2f8eb0=_0x741358['length']-0x1,_0xf89738;_0x2f8eb0>=0x0;_0x2f8eb0--)(_0xf89738=_0x741358[_0x2f8eb0])&&(_0x43548d=_0xf89738(_0x43548d)||_0x43548d);return _0x43548d;},_=(_0x27279b,_0x402e95)=>(_0x1060b9,_0x342cbd)=>_0x402e95(_0x1060b9,_0x342cbd,_0x27279b);let S=class extends _0x1b4131{constructor(_0x60f2f4,_0x1cb44a,_0x16b468){const _0x39bb5d=_0x4f272d;super(),u(this,_0x39bb5d(0x197),new Map()),(this['_univerInstanceService']=_0x60f2f4,this[_0x39bb5d(0x1f9)]=_0x1cb44a,this[_0x39bb5d(0x1ea)]=_0x16b468,this[_0x39bb5d(0x206)]());}async[_0x4f272d(0x1ca)](_0x12ddb0){const _0x3610dd=_0x4f272d;return this[_0x3610dd(0x197)][_0x3610dd(0x1c4)](_0x12ddb0)||await this[_0x3610dd(0x209)](_0x12ddb0),this[_0x3610dd(0x197)][_0x3610dd(0x185)](_0x12ddb0);}[_0x4f272d(0x1e6)](_0x8e37d5){const _0x3a503e=_0x4f272d;var _0x2189f2;return(_0x2189f2=this[_0x3a503e(0x197)][_0x3a503e(0x185)](_0x8e37d5))!=null?_0x2189f2:null;}[_0x4f272d(0x206)](){const _0x32c7d3=_0x4f272d;this[_0x32c7d3(0x1a7)][_0x32c7d3(0x217)](_0x39382c[_0x32c7d3(0x20e)])[_0x32c7d3(0x1c6)](_0x44ddd5(this[_0x32c7d3(0x19d)]))[_0x32c7d3(0x1b0)](async _0x2a8083=>{const _0x5c4371=_0x32c7d3,_0x55c65c=_0x2a8083[_0x5c4371(0x1d9)]();this[_0x5c4371(0x197)][_0x5c4371(0x1c4)](_0x55c65c)||this[_0x5c4371(0x209)](_0x55c65c);}),this[_0x32c7d3(0x1a7)][_0x32c7d3(0x20a)](_0x39382c['UNIVER_SHEET'])[_0x32c7d3(0x1c6)](_0x44ddd5(this['dispose$']))[_0x32c7d3(0x1b0)](_0xd8a549=>{const _0x45c5d0=_0x32c7d3,_0x17b8a0=_0xd8a549[_0x45c5d0(0x1d9)](),_0x2a204f=this[_0x45c5d0(0x197)][_0x45c5d0(0x185)](_0x17b8a0);_0x2a204f==null||_0x2a204f[_0x45c5d0(0x211)]();});}async['_startLiveShareCoordinator'](_0x222873){const _0x43ffb3=_0x4f272d,_0x368497=await this['_collabSessionService']['requireSession'](_0x222873),_0x4b7d14=this[_0x43ffb3(0x1f9)][_0x43ffb3(0x1f4)](N,_0x222873,_0x368497);return _0x4b7d14[_0x43ffb3(0x1d7)](),this[_0x43ffb3(0x197)][_0x43ffb3(0x1e4)](_0x222873,_0x4b7d14),_0x4b7d14;}};S=Y([_(0x0,_0xd15b0a),_(0x1,_0x3c9052(_0x1ba966)),_(0x2,_0x3c9052(_0x4c1567))],S);var c=(_0x403386=>(_0x403386[_0x4f272d(0x170)]=_0x4f272d(0x212),_0x403386[_0x4f272d(0x1b9)]=_0x4f272d(0x1c2),_0x403386[_0x4f272d(0x194)]=_0x4f272d(0x1b6),_0x403386['NOT_FOLLOWING']=_0x4f272d(0x1a4),_0x403386[_0x4f272d(0x190)]=_0x4f272d(0x18a),_0x403386))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1b4131{constructor(_0x525917,_0x1359fd,_0x2bdc20,_0x192db4,_0x43637a){const _0x697db=_0x4f272d;super(),u(this,_0x697db(0x1bc),new _0x21cfae(_0x697db(0x1c2))),u(this,_0x697db(0x18e),this[_0x697db(0x1bc)][_0x697db(0x202)]()),u(this,_0x697db(0x206),!0x1),u(this,_0x697db(0x198),null),u(this,_0x697db(0x17d),null),(this[_0x697db(0x182)]=_0x525917,this[_0x697db(0x1ae)]=_0x1359fd,this[_0x697db(0x18f)]=_0x2bdc20,this[_0x697db(0x1a0)]=_0x192db4,this[_0x697db(0x1e0)]=_0x43637a);}get['_status'](){const _0x17a8fe=_0x4f272d;return this[_0x17a8fe(0x1bc)][_0x17a8fe(0x1a8)]();}[_0x4f272d(0x211)](){const _0x582da1=_0x4f272d;var _0x326765;(_0x326765=this['_commandDisposable'])==null||_0x326765['dispose'](),this[_0x582da1(0x1bc)][_0x582da1(0x1de)](_0x582da1(0x1c2)),this['_status$'][_0x582da1(0x1df)]();}[_0x4f272d(0x19e)](){const _0x174715=_0x4f272d;return this[_0x174715(0x1cb)];}['init'](){const _0x4ee925=_0x4f272d;this[_0x4ee925(0x206)]||(this[_0x4ee925(0x206)]=!0x0,this[_0x4ee925(0x1ae)][_0x4ee925(0x1cd)]['pipe'](_0x44ddd5(this[_0x4ee925(0x19d)]))[_0x4ee925(0x1b0)](_0x383f01=>{const _0x4a0c15=_0x4ee925;switch(_0x383f01){case _0x7be42a[_0x4a0c15(0x170)]:this[_0x4a0c15(0x210)]();break;case _0x7be42a['ONLINE']:this['_handleOnline']();break;}}),this[_0x4ee925(0x1ae)][_0x4ee925(0x19a)][_0x4ee925(0x1c6)](_0x44ddd5(this[_0x4ee925(0x19d)]))[_0x4ee925(0x1b0)](_0x3d88f1=>{const _0x3173de=_0x4ee925,{eventID:_0x1afa6e}=_0x3d88f1;switch(_0x1afa6e){case _0x4c21ab['LIVESHARE_NEW_HOST']:this[_0x3173de(0x1e2)](_0x3d88f1);break;case _0x4c21ab['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3d88f1);break;case _0x4c21ab['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x4c21ab[_0x3173de(0x1b4)]:this[_0x3173de(0x1d2)](_0x3d88f1);break;}}));}['tryStartPresenting'](){const _0x5389f6=_0x4f272d;this[_0x5389f6(0x1ae)][_0x5389f6(0x1ce)]({'eventID':_0x4c21ab[_0x5389f6(0x1be)],'data':{'unitID':this[_0x5389f6(0x182)],'userID':this[_0x5389f6(0x1ae)][_0x5389f6(0x1dc)]()}},this[_0x5389f6(0x182)]);}[_0x4f272d(0x1d0)](){const _0x12f1d2=_0x4f272d;this['_status']==='presenting'&&(this[_0x12f1d2(0x1bc)][_0x12f1d2(0x1de)](_0x12f1d2(0x1c2)),this[_0x12f1d2(0x1ae)][_0x12f1d2(0x1ce)]({'eventID':_0x4c21ab[_0x12f1d2(0x179)],'data':{'unitID':this[_0x12f1d2(0x182)]}},this[_0x12f1d2(0x182)]));}[_0x4f272d(0x1b7)](){const _0x29f7f9=_0x4f272d;this[_0x29f7f9(0x1cb)]===_0x29f7f9(0x1a4)&&(this[_0x29f7f9(0x1bc)][_0x29f7f9(0x1de)](_0x29f7f9(0x1b6)),this[_0x29f7f9(0x1f3)]());}['stopFollowing'](){const _0x489810=_0x4f272d;this[_0x489810(0x1cb)]==='following'&&this[_0x489810(0x207)]();}[_0x4f272d(0x1e2)](_0x1ea4af){const _0x4727e0=_0x4f272d,{presenter:_0x500b1f}=_0x1ea4af[_0x4727e0(0x1cf)],_0x164d71=this['_collabSession'][_0x4727e0(0x1dc)]();this[_0x4727e0(0x17d)]=_0x500b1f,_0x500b1f===_0x164d71?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x4727e0(0x1cb)]!==_0x4727e0(0x1a4)&&(this[_0x4727e0(0x1f5)](),this[_0x4727e0(0x1f3)]());}['_fetchOperations'](){const _0x55a3a2=_0x4f272d,_0x9acd81={'eventID':_0x4c21ab[_0x55a3a2(0x1d4)]};this[_0x55a3a2(0x1ae)][_0x55a3a2(0x1ce)](_0x9acd81,this[_0x55a3a2(0x182)]);}[_0x4f272d(0x1c5)](){const _0x1081e7=_0x4f272d;this[_0x1081e7(0x17d)]=null,this['_status']!==_0x1081e7(0x18a)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4fb4e3){const _0xbb09ce=_0x4f272d;if(this['_status']===_0xbb09ce(0x1b6)&&this[_0xbb09ce(0x17d)]===_0x4fb4e3[_0xbb09ce(0x1cf)][_0xbb09ce(0x20b)]){const _0x371b52=_0x1017ae(_0x4fb4e3[_0xbb09ce(0x1cf)])[_0xbb09ce(0x1dd)][_0xbb09ce(0x1d5)]()['find'](_0x3af2ef=>_0x3af2ef['id']===_0x3deb4['id']);if(_0x371b52){const _0x31b50=_0x371b52['params'][_0xbb09ce(0x1ab)],_0x266ad9=_0x371b52['params']['sheet']['id'];setTimeout(()=>{const _0x257bc0=_0xbb09ce;this[_0x257bc0(0x1e0)][_0x257bc0(0x1ac)](_0x591f93['id'],{'unitId':_0x31b50,'subUnitId':_0x266ad9},{'fromCollab':!0x0});});}}}[_0x4f272d(0x1b3)](){const _0x2129fa=_0x4f272d;this[_0x2129fa(0x1bc)][_0x2129fa(0x1de)]('presenting');const _0x18626a=new Map(),_0x57b131=this[_0x2129fa(0x198)]=new _0x2e01bb();_0x57b131['add'](_0x493c65(()=>{const _0x59ff7d=_0x2129fa;_0x18626a[_0x59ff7d(0x19b)](_0x3c1d1c=>_0x3c1d1c[_0x59ff7d(0x1df)]()),_0x18626a[_0x59ff7d(0x193)]();})),_0x57b131[_0x2129fa(0x203)](this[_0x2129fa(0x1e0)][_0x2129fa(0x1f2)](_0x47b7c8=>{const _0x3ff7f5=_0x2129fa;var _0x41afae;if(_0x47b7c8[_0x3ff7f5(0x171)]!==_0x5efdf4[_0x3ff7f5(0x181)]||!this[_0x3ff7f5(0x1a0)]['shouldShareOperation'](_0x47b7c8['id']))return;const {id:_0x1b7f6b}=_0x47b7c8;let _0x59a782;_0x18626a[_0x3ff7f5(0x1c4)](_0x1b7f6b)?_0x59a782=_0x18626a[_0x3ff7f5(0x185)](_0x1b7f6b):(_0x59a782=new _0x2609e3(),_0x18626a[_0x3ff7f5(0x1e4)](_0x1b7f6b,_0x59a782),_0x59a782[_0x3ff7f5(0x1c6)](_0x6b1f72((_0x41afae=this['_configService'][_0x3ff7f5(0x1bd)](Ce))!=null?_0x41afae:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ff7f5(0x1b0)](_0x4c29fa=>{const _0xf621f0=_0x3ff7f5;this[_0xf621f0(0x1ae)][_0xf621f0(0x1ce)]({'eventID':_0x4c21ab['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4c29fa['id']]:{'id':_0x4c29fa['id'],'params':JSON[_0xf621f0(0x1b5)](_0x4c29fa['params'])}}}},this[_0xf621f0(0x182)]);})),_0x59a782[_0x3ff7f5(0x1de)](_0x47b7c8);})),this[_0x2129fa(0x1a0)][_0x2129fa(0x17c)](this[_0x2129fa(0x182)])[_0x2129fa(0x19b)](_0x3896ca=>this[_0x2129fa(0x1ae)][_0x2129fa(0x1ce)]({'eventID':_0x4c21ab[_0x2129fa(0x1ec)],'data':{'unitID':this[_0x2129fa(0x182)],'operations':{[_0x3896ca['id']]:{'id':_0x3896ca['id'],'params':JSON[_0x2129fa(0x1b5)](_0x3896ca['params'])}}}},this[_0x2129fa(0x182)]));}[_0x4f272d(0x1f5)](){const _0x105c8f=_0x4f272d;var _0x5e8df9;this[_0x105c8f(0x1bc)][_0x105c8f(0x1de)](_0x105c8f(0x1c2)),(_0x5e8df9=this[_0x105c8f(0x198)])==null||_0x5e8df9[_0x105c8f(0x211)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x49423f=_0x4f272d;var _0x4905be;(_0x4905be=this[_0x49423f(0x198)])==null||_0x4905be[_0x49423f(0x211)](),this[_0x49423f(0x1bc)][_0x49423f(0x1de)](_0x49423f(0x1b6));}[_0x4f272d(0x17e)](){const _0x1e907a=_0x4f272d;var _0x19e5db;this['_status$'][_0x1e907a(0x1de)](_0x1e907a(0x1c2)),(_0x19e5db=this[_0x1e907a(0x198)])==null||_0x19e5db[_0x1e907a(0x211)](),this[_0x1e907a(0x198)]=null;}['_stopFollowing'](){const _0x42e926=_0x4f272d;var _0x44e27b;this[_0x42e926(0x1bc)][_0x42e926(0x1de)](_0x42e926(0x1a4)),(_0x44e27b=this[_0x42e926(0x198)])==null||_0x44e27b[_0x42e926(0x211)]();}[_0x4f272d(0x18d)](_0x1ea62d){const _0x4a6b81=_0x4f272d;if([_0x4a6b81(0x18a),'not-following',_0x4a6b81(0x212)]['includes'](this[_0x4a6b81(0x1cb)])||!_0x1ea62d[_0x4a6b81(0x1cf)][_0x4a6b81(0x1a2)]||_0x1ea62d['data'][_0x4a6b81(0x1a2)]===this[_0x4a6b81(0x1ae)][_0x4a6b81(0x1dc)]())return;this[_0x4a6b81(0x1cb)]==='idle'&&this[_0x4a6b81(0x1f3)]();const _0x2e541f=_0x1ea62d['data'][_0x4a6b81(0x196)];Object[_0x4a6b81(0x1a1)](_0x2e541f)[_0x4a6b81(0x19b)](_0x48c1f8=>{const _0x4493ab=_0x4a6b81;this[_0x4493ab(0x1e0)][_0x4493ab(0x1ac)](_0x48c1f8['id'],_0x48c1f8[_0x4493ab(0x1e7)]?JSON[_0x4493ab(0x215)](_0x48c1f8[_0x4493ab(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x4f272d(0x210)](){const _0x5ee6c1=_0x4f272d;var _0x480927;this[_0x5ee6c1(0x1bc)][_0x5ee6c1(0x1de)](_0x5ee6c1(0x212)),(_0x480927=this[_0x5ee6c1(0x198)])==null||_0x480927[_0x5ee6c1(0x211)]();}['_handleOnline'](){const _0x5926b9=_0x4f272d;this['_status$'][_0x5926b9(0x1de)](_0x5926b9(0x1c2)),this[_0x5926b9(0x213)]();}};N=Y([_(0x2,_0x2a508c),_(0x3,_0x3c9052(L)),_(0x4,_0x26858f)],N);function Le(){const _0x31bef3=_0x4f272d,_0x59297e=_0x2dbf82(S),_0x33f0cf=_0x2dbf82(_0xd15b0a),_0x59ac15=_0x5b48f0(()=>_0x33f0cf['getCurrentTypeOfUnit$'](_0x39382c[_0x31bef3(0x20e)]),void 0x0,!0x1,[]),[_0x263c92,_0x544821]=_0x4a4515(null),[_0x541fb2,_0x508c13]=_0x4a4515(c['IDLE']),_0xcd9889=_0x3007da(null);return _0x2e4098(()=>(_0x59ac15&&_0x59297e[_0x31bef3(0x1ca)](_0x59ac15[_0x31bef3(0x1d9)]())[_0x31bef3(0x1bb)](_0x5127f8=>{const _0xa70c4b=_0x31bef3;_0x544821(_0x5127f8),_0xcd9889['current']=_0x5127f8[_0xa70c4b(0x18e)][_0xa70c4b(0x1b0)](_0xb3f115=>{_0x508c13(_0xb3f115);});}),()=>{const _0xf7285=_0x31bef3;var _0x2c429f;(_0x2c429f=_0xcd9889[_0xf7285(0x195)])==null||_0x2c429f[_0xf7285(0x1ad)](),_0xcd9889[_0xf7285(0x195)]=null;}),[_0x59ac15,_0x59297e]),_0x263c92?_0x31d872(_0x1bce87,{'align':'end','disabled':_0x541fb2===c['OFFLINE'],'className':_0x31bef3(0x1f8),'overlay':_0x31d872(Re,{'status':_0x541fb2,'coordinator':_0x263c92}),'children':_0x31d872(_0x31bef3(0x1c9),{'className':_0x450603(_0x31bef3(0x1ba),{'univer-cursor-not-allowed':_0x541fb2===c[_0x31bef3(0x170)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x541fb2!==c[_0x31bef3(0x170)]}),'type':_0x31bef3(0x1c9),'children':_0x31d872(W,{'className':_0x31bef3(0x1f1)})})}):null;}function Re(_0x3c52fe){const _0x3d4c90=_0x4f272d,{status:_0x339c68,coordinator:_0x48f0a0}=_0x3c52fe;switch(_0x339c68){case c[_0x3d4c90(0x1b9)]:return _0x31d872($e,{'coordinator':_0x48f0a0});case c['FOLLOWING']:return _0x31d872(xe,{'coordinator':_0x48f0a0});case c['NOT_FOLLOWING']:return _0x31d872(Pe,{'coordinator':_0x48f0a0});case c['OFFLINE']:return _0x31d872(Te,{});case c[_0x3d4c90(0x190)]:return _0x31d872(Ae,{'coordinator':_0x48f0a0});default:return null;}}function $e(_0x508b64){const _0x508a98=_0x4f272d,{coordinator:_0x12488e}=_0x508b64;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x508a98(0x17a)}),_0x31d872(_0x3a140e,{'onClick':()=>_0x12488e[_0x508a98(0x183)](),'children':'Start'})]});}function xe(_0x15ce10){const _0x111fd5=_0x4f272d,{coordinator:_0x5c6ce8}=_0x15ce10;return _0x226895(_0x45b536,{'children':[_0x31d872(_0x111fd5(0x205),{'className':_0x111fd5(0x1b2),'children':_0x111fd5(0x19f)}),_0x31d872(_0x3a140e,{'onClick':()=>_0x5c6ce8[_0x111fd5(0x1f7)](),'children':'Stop\x20following'})]});}function Pe(_0x258a3c){const _0x4def01=_0x4f272d,{coordinator:_0x5c20ef}=_0x258a3c;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':_0x4def01(0x1b2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x31d872(_0x3a140e,{'variant':_0x4def01(0x173),'onClick':()=>_0x5c20ef['startFollowing'](),'children':_0x4def01(0x186)})]});}function Ae(_0xa9ef4c){const _0x3b6d00=_0x4f272d,{coordinator:_0x4fe7ee}=_0xa9ef4c;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3b6d00(0x1a3)}),_0x31d872(_0x3a140e,{'variant':_0x3b6d00(0x201),'onClick':()=>_0x4fe7ee[_0x3b6d00(0x1d0)](),'children':_0x3b6d00(0x1d8)})]});}function Te(){const _0x3fc1cb=_0x4f272d;return _0x31d872(_0x45b536,{'children':_0x3fc1cb(0x19c)});}var Fe=Object[_0x4f272d(0x20c)],He=(_0x581929,_0x59cfb8,_0x285fd5,_0x4741dc)=>{const _0x3f6964=_0x4f272d;for(var _0x160ce5=_0x4741dc>0x1?void 0x0:_0x4741dc?Fe(_0x59cfb8,_0x285fd5):_0x59cfb8,_0x42d107=_0x581929[_0x3f6964(0x199)]-0x1,_0x196e05;_0x42d107>=0x0;_0x42d107--)(_0x196e05=_0x581929[_0x42d107])&&(_0x160ce5=_0x196e05(_0x160ce5)||_0x160ce5);return _0x160ce5;},A=(_0x70592f,_0x4c2d1b)=>(_0x48c159,_0x2c5967)=>_0x4c2d1b(_0x48c159,_0x2c5967,_0x70592f);let m=class extends _0x2a990a{constructor(_0x1e9855,_0x2b4836){const _0x2d6841=_0x4f272d;super(),this[_0x2d6841(0x1f9)]=_0x1e9855,this[_0x2d6841(0x20f)]=_0x2b4836,this[_0x2d6841(0x17b)]();}[_0x4f272d(0x17b)](){const _0x34636a=_0x4f272d;this['disposeWithMe'](this[_0x34636a(0x20f)][_0x34636a(0x1ff)](_0x2db817[_0x34636a(0x1e5)],()=>_0x47868d(Le,this[_0x34636a(0x1f9)])));}};m=He([A(0x0,_0x3c9052(_0x1ba966)),A(0x1,_0x1556be)],m);const ye=_0x4f272d(0x216),T={};var Ue=Object[_0x4f272d(0x20c)],Ve=(_0x2e88f7,_0x50b8d8,_0x239598,_0x4d40f4)=>{const _0x4303b2=_0x4f272d;for(var _0x2924f7=_0x4d40f4>0x1?void 0x0:_0x4d40f4?Ue(_0x50b8d8,_0x239598):_0x50b8d8,_0x72c7e0=_0x2e88f7[_0x4303b2(0x199)]-0x1,_0x2a2224;_0x72c7e0>=0x0;_0x72c7e0--)(_0x2a2224=_0x2e88f7[_0x72c7e0])&&(_0x2924f7=_0x2a2224(_0x2924f7)||_0x2924f7);return _0x2924f7;},je=(_0xdd951f,_0x2fc8c0)=>(_0x40e7fa,_0x589d60)=>_0x2fc8c0(_0x40e7fa,_0x589d60,_0xdd951f);let I=class extends _0x2a990a{constructor(_0x16581f){const _0x127c79=_0x4f272d;super(),this[_0x127c79(0x1a0)]=_0x16581f,this['_init']();}[_0x4f272d(0x206)](){[_0x2ceadd['id'],_0x388d02['id'],_0x591f93['id']]['forEach'](_0x57838a=>{const _0x5c98e4=_0x12b5;this['disposeWithMe'](this[_0x5c98e4(0x1a0)]['registerSharedOperation'](_0x57838a));});}};I=Ve([je(0x0,_0x3c9052(L))],I);var Me=Object[_0x4f272d(0x1b8)],ke=Object[_0x4f272d(0x20c)],Ge=(_0x1def28,_0x416ce8,_0x134511)=>_0x416ce8 in _0x1def28?Me(_0x1def28,_0x416ce8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134511}):_0x1def28[_0x416ce8]=_0x134511,We=(_0x255324,_0xca5202,_0x384f21,_0x53d443)=>{for(var _0x3f27c0=_0x53d443>0x1?void 0x0:_0x53d443?ke(_0xca5202,_0x384f21):_0xca5202,_0x5f4730=_0x255324['length']-0x1,_0x30444d;_0x5f4730>=0x0;_0x5f4730--)(_0x30444d=_0x255324[_0x5f4730])&&(_0x3f27c0=_0x30444d(_0x3f27c0)||_0x3f27c0);return _0x3f27c0;},F=(_0x4a452c,_0x2bedb0)=>(_0x396f3e,_0x29fe47)=>_0x2bedb0(_0x396f3e,_0x29fe47,_0x4a452c),B=(_0x478167,_0x3272a3,_0x1f947e)=>Ge(_0x478167,typeof _0x3272a3!=_0x4f272d(0x191)?_0x3272a3+'':_0x3272a3,_0x1f947e);function _0x10f0(){const _0x8bcc70=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','then','_status$','getConfig','LIVESHARE_REQUEST_HOST','7357mPKucO','assign','url(#$1','idle','28014813ZBYkut','has','_handleTerminate','pipe','use','colorChannel1','button','getLiveShareCoordinator','_status','1em','sessionStatus$','send','data','stopPresenting','LiveShareIcon','_handleNewChangeSets','tag','LIVESHARE_FETCH_OPERATIONS','reverse','map','init','Stop\x20presenting','getUnitId','override','trim','getMemberID','mutations','next','complete','_commandService','displayName','_handleNewHost','fill','set','HEADER_MENU','getLiveShareCoordinatorSync','params','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','univerjs-icon\x20univerjs-icon-','_collabSessionService','xlink:href','LIVESHARE_OPERATION','_sharedOperations','none','2196434eAJZIy','UniverIcon','univer-size-4','onCommandExecuted','_startFollowing','createInstance','_stopPresenting','6589435vUMrAl','stopFollowing','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','_injector','6214832NNZyuD','registerSharedOperation','random','evenodd','mask','registerComponent','14393472vtyPug','default','asObservable','add','from','div','_init','_stopFollowing','substring','_startLiveShareCoordinator','getTypeOfUnitDisposed$','memberID','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_uiPartsService','_handleOffline','dispose','offline','_fetchOperations','live-share-icon','parse','live-share.config','getTypeOfUnitAdded$','svg','delete','OFFLINE','type','3ESHxlY','text','10Jjkllh','shouldShareOperation','registerInitialStateReporter','_config','replace','LIVESHARE_TERMINATE','Present\x20this\x20document','_mountLiveShare','getInitialStates','_presenter','_beIdle','idSuffix','UNIVER_UNKNOWN','OPERATION','_unitID','tryStartPresenting','attrs','get','Start\x20following','defIds','pluginName','onStarting','presenting','_reporters','children','_handleOperation','status$','_configService','PRESENTING','symbol','49337TcpzIA','clear','FOLLOWING','current','operations','_entities','_commandDisposable','length','event$','forEach','You\x27are\x20offline.','dispose$','getStatus','You\x27re\x20following\x20the\x20presenter','_liveShareService','values','presenter','You\x27re\x20presenting\x20the\x20document','not-following','7638UhOpwR','path','_univerInstanceService','getValue','currentColor','string','unitId','executeCommand','unsubscribe','_collabSession','setConfig','subscribe','http://www.w3.org/2000/svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','NEW_CHANGESETS','stringify','following','startFollowing','defineProperty','IDLE'];_0x10f0=function(){return _0x8bcc70;};return _0x10f0();}const Ye=_0x4f272d(0x20d);let b=class extends _0x262c4f{constructor(_0x47fc7c=T,_0x5c88b7,_0xb0357e){const _0x9dcd3=_0x4f272d;super(),this[_0x9dcd3(0x177)]=_0x47fc7c,this[_0x9dcd3(0x1f9)]=_0x5c88b7,this['_configService']=_0xb0357e;const {..._0x5437aa}=_0x262827({},T,this[_0x9dcd3(0x177)]);this['_configService'][_0x9dcd3(0x1af)](ye,_0x5437aa);}[_0x4f272d(0x189)](){const _0x9cdbb8=_0x4f272d;_0x5b6cc8(this['_injector'],_0x22807c([[L],[S],[I],[m]],this[_0x9cdbb8(0x177)][_0x9cdbb8(0x1da)])),_0x1cc958(this[_0x9cdbb8(0x1f9)],[[I]]);}['onRendered'](){const _0x3a85bd=_0x4f272d;_0x1cc958(this[_0x3a85bd(0x1f9)],[[m]]);}};B(b,_0x4f272d(0x171),_0x39382c[_0x4f272d(0x180)]),B(b,_0x4f272d(0x188),Ye),b=We([_0x45cd91(_0x5e658c),F(0x1,_0x3c9052(_0x1ba966)),F(0x2,_0x2a508c)],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 _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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 _0x955fa9=_0x5b8f;function _0x49b9(){const _0x2d65b5=['6025460luhdRB','getUnitId','extend','getRenderById','startRow','_commandService','get','syncExecuteCommand','1594LlKkel','getLiveShareStatus','3664670qrvPMI','63uLdGCC','800147ckBzBw','_initialize','getLiveShareCoordinatorSync','tryStartPresenting','_injector','stopPresenting','No\x20active\x20workbook\x20found.','9692238smbjfF','startFollowing','IDLE','startPresenting','getActiveWorkbook','20085288WnlEIZ','9643655AgRGMX','stopFollowing','getId','getActiveSheet','PRESENTING','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getSheetId','getStatus'];_0x49b9=function(){return _0x2d65b5;};return _0x49b9();}(function(_0x3802a6,_0x5bd76a){const _0x5bd266=_0x5b8f,_0x13dada=_0x3802a6();while(!![]){try{const _0x3d48db=-parseInt(_0x5bd266(0x93))/0x1+parseInt(_0x5bd266(0x8f))/0x2*(parseInt(_0x5bd266(0x92))/0x3)+parseInt(_0x5bd266(0xaa))/0x4+parseInt(_0x5bd266(0x91))/0x5+-parseInt(_0x5bd266(0x9a))/0x6+-parseInt(_0x5bd266(0xa0))/0x7+parseInt(_0x5bd266(0x9f))/0x8;if(_0x3d48db===_0x5bd76a)break;else _0x13dada['push'](_0x13dada['shift']());}catch(_0x113545){_0x13dada['push'](_0x13dada['shift']());}}}(_0x49b9,0xedac8));import{LiveShareController as _0x31df89,LiveShareStatus as _0x3b1a8b}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2cc937}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x7e9f45}from'@univerjs/sheets';import{SetScrollOperation as _0x44e013}from'@univerjs/sheets-ui';import{FRange as _0x1def79}from'@univerjs/sheets/facade';import{FUniver as _0x195fa9,FEnum as _0x4a60d6}from'@univerjs/core/facade';function _0x5b8f(_0x2559bd,_0x1af824){_0x2559bd=_0x2559bd-0x88;const _0x49b90d=_0x49b9();let _0x5b8f47=_0x49b90d[_0x2559bd];return _0x5b8f47;}class I extends _0x1def79{[_0x955fa9(0x94)](_0x58298f,_0x50d9d1,_0x32d148,_0x5da423,_0x31cb58){const _0x3b0802=_0x955fa9,_0x48b384=_0x58298f['get'](_0x31df89),_0x13c80d=_0x58298f['get'](_0x2cc937),_0x3f9969=_0x50d9d1[_0x3b0802(0x88)](),_0x2d62ab=_0x50d9d1[_0x3b0802(0xa3)](),_0x365d83=_0x48b384['getLiveShareCoordinatorSync'](_0x3f9969);(_0x365d83==null?void 0x0:_0x365d83[_0x3b0802(0xa9)]())!==_0x3b1a8b[_0x3b0802(0xa4)]||(_0x32d148[_0x3b0802(0xa8)]()!==_0x2d62ab[_0x3b0802(0xa8)]()&&this[_0x3b0802(0x8c)][_0x3b0802(0xa5)](_0x7e9f45['id'],{'unitId':_0x3f9969,'subUnitId':_0x32d148[_0x3b0802(0xa8)]()}),!_0x13c80d[_0x3b0802(0x8a)](_0x3f9969))||_0x31cb58[_0x3b0802(0x8e)](_0x44e013['id'],{'unitId':_0x50d9d1[_0x3b0802(0x88)](),'sheetId':_0x32d148[_0x3b0802(0xa8)](),'sheetViewStartRow':_0x5da423[_0x3b0802(0x8b)],'sheetViewStartColumn':_0x5da423[_0x3b0802(0xa7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1def79['extend'](I);class m extends _0x195fa9{[_0x955fa9(0x90)](){const _0x400655=_0x955fa9;var _0xe79811,_0x3f9926;const _0x45bcce=this[_0x400655(0x97)][_0x400655(0x8d)](_0x31df89),_0x59be94=(_0xe79811=this[_0x400655(0x9e)]())==null?void 0x0:_0xe79811['getId']();if(!_0x59be94)throw new Error(_0x400655(0x99));const _0x1d9b5e=_0x45bcce[_0x400655(0x95)](_0x59be94);return(_0x3f9926=_0x1d9b5e==null?void 0x0:_0x1d9b5e[_0x400655(0xa9)]())!=null?_0x3f9926:_0x3b1a8b[_0x400655(0x9c)];}[_0x955fa9(0x9b)](){const _0x225408=_0x955fa9;var _0x3fe84e;const _0x453b2b=this[_0x225408(0x97)][_0x225408(0x8d)](_0x31df89),_0x5229f6=(_0x3fe84e=this[_0x225408(0x9e)]())==null?void 0x0:_0x3fe84e['getId']();if(!_0x5229f6)throw new Error(_0x225408(0x99));const _0x128189=_0x453b2b['getLiveShareCoordinatorSync'](_0x5229f6);if(!_0x128189)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x128189['startFollowing']();}[_0x955fa9(0xa1)](){const _0x3207d2=_0x955fa9;var _0x1f1904;const _0x49d2ba=this[_0x3207d2(0x97)][_0x3207d2(0x8d)](_0x31df89),_0x4cb314=(_0x1f1904=this[_0x3207d2(0x9e)]())==null?void 0x0:_0x1f1904['getId']();if(!_0x4cb314)throw new Error(_0x3207d2(0x99));const _0x48e97f=_0x49d2ba[_0x3207d2(0x95)](_0x4cb314);if(!_0x48e97f)throw new Error(_0x3207d2(0xa6));_0x48e97f['stopFollowing']();}[_0x955fa9(0x9d)](){const _0x184717=_0x955fa9;var _0x58b929;const _0x3b1dcc=this[_0x184717(0x97)][_0x184717(0x8d)](_0x31df89),_0x51ea99=(_0x58b929=this[_0x184717(0x9e)]())==null?void 0x0:_0x58b929[_0x184717(0xa2)]();if(!_0x51ea99)throw new Error(_0x184717(0x99));const _0x196c82=_0x3b1dcc['getLiveShareCoordinatorSync'](_0x51ea99);if(!_0x196c82)throw new Error(_0x184717(0xa6));_0x196c82[_0x184717(0x96)]();}[_0x955fa9(0x98)](){const _0x264081=_0x955fa9;var _0x1df440;const _0x2f50c9=this['_injector']['get'](_0x31df89),_0x58e2c7=(_0x1df440=this[_0x264081(0x9e)]())==null?void 0x0:_0x1df440[_0x264081(0xa2)]();if(!_0x58e2c7)throw new Error(_0x264081(0x99));const _0x27907c=_0x2f50c9[_0x264081(0x95)](_0x58e2c7);if(!_0x27907c)throw new Error(_0x264081(0xa6));_0x27907c['stopPresenting']();}}_0x195fa9[_0x955fa9(0x89)](m);class C extends _0x4a60d6{get['LiveShareStatusEnum'](){return _0x3b1a8b;}}_0x4a60d6[_0x955fa9(0x89)](C);
1
+ const _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f272d=_0x12b5;(function(_0x3f5c27,_0x353db0){const _0x4541a6=_0x12b5,_0x5d36ae=_0x3f5c27();while(!![]){try{const _0x4a965a=parseInt(_0x4541a6(0x192))/0x1+parseInt(_0x4541a6(0x1ef))/0x2+-parseInt(_0x4541a6(0x172))/0x3*(parseInt(_0x4541a6(0x1fa))/0x4)+-parseInt(_0x4541a6(0x1f6))/0x5+-parseInt(_0x4541a6(0x1a5))/0x6*(-parseInt(_0x4541a6(0x1bf))/0x7)+-parseInt(_0x4541a6(0x200))/0x8+parseInt(_0x4541a6(0x1c3))/0x9*(parseInt(_0x4541a6(0x174))/0xa);if(_0x4a965a===_0x353db0)break;else _0x5d36ae['push'](_0x5d36ae['shift']());}catch(_0x487cf0){_0x5d36ae['push'](_0x5d36ae['shift']());}}}(_0x10f0,0xe26df));var J=Object[_0x4f272d(0x1b8)],K=(_0x2abf74,_0x7f0273,_0x588963)=>_0x7f0273 in _0x2abf74?J(_0x2abf74,_0x7f0273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x588963}):_0x2abf74[_0x7f0273]=_0x588963,u=(_0x30bb45,_0x5152d8,_0xb94a3e)=>K(_0x30bb45,typeof _0x5152d8!=_0x4f272d(0x191)?_0x5152d8+'':_0x5152d8,_0xb94a3e);function _0x12b5(_0x259c75,_0x34321f){_0x259c75=_0x259c75-0x16f;const _0x10f045=_0x10f0();let _0x12b5db=_0x10f045[_0x259c75];return _0x12b5db;}import{Disposable as _0x2a990a,toDisposable as _0x493c65,IUniverInstanceService as _0xd15b0a,Inject as _0x3c9052,Injector as _0x1ba966,IConfigService as _0x2a508c,ICommandService as _0x26858f,RxDisposable as _0x1b4131,UniverInstanceType as _0x39382c,DisposableCollection as _0x2e01bb,CommandType as _0x5efdf4,DependentOn as _0x45cd91,Plugin as _0x262c4f,merge as _0x262827,registerDependencies as _0x5b6cc8,mergeOverrideWithDependencies as _0x22807c,touchDependencies as _0x1cc958}from'@univerjs/core';import{useDependency as _0x2dbf82,useObservable as _0x5b48f0,IUIPartsService as _0x1556be,BuiltInUIPart as _0x2db817,connectInjector as _0x47868d}from'@univerjs/ui';import{jsx as _0x31d872,jsxs as _0x226895,Fragment as _0x45b536}from'react/jsx-runtime';import{Dropdown as _0x1bce87,clsx as _0x450603,Button as _0x3a140e}from'@univerjs/design';import{useRef as _0x3007da,createElement as _0x37a465,forwardRef as _0x5c088f,useState as _0x4a4515,useEffect as _0x2e4098}from'react';import{CollaborationEvent as _0x4c21ab,parseProtocolChangeset as _0x1017ae}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4c1567,SessionStatus as _0x7be42a,UniverCollaborationClientPlugin as _0x5e658c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3deb4,SetWorksheetActiveOperation as _0x591f93}from'@univerjs/sheets';import{BehaviorSubject as _0x21cfae,Subject as _0x2609e3}from'rxjs';import{takeUntil as _0x44ddd5,throttleTime as _0x6b1f72}from'rxjs/operators';import{SetZoomRatioOperation as _0x2ceadd,SetScrollOperation as _0x388d02}from'@univerjs/sheets-ui';function k({ref:_0x560d32,..._0x16137f}){const _0x423c6e=_0x4f272d,{icon:_0x3f9717,id:_0x3473ff,className:_0x26d8fa,extend:_0x23d0a5,..._0x2d13b2}=_0x16137f,_0x110366=(_0x423c6e(0x1e9)+_0x3473ff+'\x20'+(_0x26d8fa||''))[_0x423c6e(0x1db)](),_0x34b0ca=_0x3007da('_'+Oe());return G(_0x3f9717,''+_0x3473ff,{'defIds':_0x3f9717[_0x423c6e(0x187)],'idSuffix':_0x34b0ca[_0x423c6e(0x195)]},{'ref':_0x560d32,'className':_0x110366,..._0x2d13b2},_0x23d0a5);}function G(_0x5919df,_0x5157d9,_0x4f7b1f,_0x3ff3ee,_0x3e3f36){const _0x3cbfd0=_0x4f272d;return _0x37a465(_0x5919df[_0x3cbfd0(0x1d3)],{'key':_0x5157d9,...be(_0x5919df,_0x4f7b1f,_0x3e3f36),..._0x3ff3ee},(Ee(_0x5919df,_0x4f7b1f)[_0x3cbfd0(0x18c)]||[])[_0x3cbfd0(0x1d6)]((_0x411e67,_0x309c70)=>G(_0x411e67,_0x5157d9+'-'+_0x5919df[_0x3cbfd0(0x1d3)]+'-'+_0x309c70,_0x4f7b1f,void 0x0,_0x3e3f36)));}function be(_0x91c44f,_0x457e21,_0x2ccff4){const _0x4a1f68=_0x4f272d,_0x22c576={..._0x91c44f[_0x4a1f68(0x184)]};_0x2ccff4!=null&&_0x2ccff4[_0x4a1f68(0x1c8)]&&_0x22c576[_0x4a1f68(0x1e3)]===_0x4a1f68(0x1c8)&&(_0x22c576[_0x4a1f68(0x1e3)]=_0x2ccff4[_0x4a1f68(0x1c8)]),_0x91c44f[_0x4a1f68(0x1d3)]===_0x4a1f68(0x1fe)&&_0x22c576['id']&&(_0x22c576['id']=_0x22c576['id']+_0x457e21[_0x4a1f68(0x17f)]),Object['entries'](_0x22c576)[_0x4a1f68(0x19b)](([_0x43d253,_0x34982b])=>{const _0x18cc57=_0x4a1f68;_0x43d253===_0x18cc57(0x1fe)&&typeof _0x34982b==_0x18cc57(0x1aa)&&(_0x22c576[_0x43d253]=_0x34982b[_0x18cc57(0x178)](/url\(#(.*)\)/,_0x18cc57(0x1c1)+_0x457e21[_0x18cc57(0x17f)]+')'));});const {defIds:_0x52cd66}=_0x457e21;return!_0x52cd66||_0x52cd66['length']===0x0||(_0x91c44f[_0x4a1f68(0x1d3)]===_0x4a1f68(0x1c7)&&_0x22c576['xlink:href']&&(_0x22c576[_0x4a1f68(0x1eb)]=_0x22c576[_0x4a1f68(0x1eb)]+_0x457e21[_0x4a1f68(0x17f)]),Object['entries'](_0x22c576)[_0x4a1f68(0x19b)](([_0x2c29d1,_0x2b9bab])=>{const _0x3d4f3d=_0x4a1f68;typeof _0x2b9bab==_0x3d4f3d(0x1aa)&&(_0x22c576[_0x2c29d1]=_0x2b9bab[_0x3d4f3d(0x178)](/url\(#(.*)\)/,_0x3d4f3d(0x1c1)+_0x457e21[_0x3d4f3d(0x17f)]+')'));})),_0x22c576;}function Ee(_0x11119e,_0x279047){const _0x24122c=_0x4f272d;var _0x3c2b24;const {defIds:_0x4ad77a}=_0x279047;return!_0x4ad77a||_0x4ad77a[_0x24122c(0x199)]===0x0?_0x11119e:_0x11119e[_0x24122c(0x1d3)]==='defs'&&((_0x3c2b24=_0x11119e['children'])!=null&&_0x3c2b24[_0x24122c(0x199)])?{..._0x11119e,'children':_0x11119e['children'][_0x24122c(0x1d6)](_0x15b3d0=>typeof _0x15b3d0[_0x24122c(0x184)]['id']==_0x24122c(0x1aa)&&_0x4ad77a&&_0x4ad77a['includes'](_0x15b3d0['attrs']['id'])?{..._0x15b3d0,'attrs':{..._0x15b3d0[_0x24122c(0x184)],'id':_0x15b3d0[_0x24122c(0x184)]['id']+_0x279047[_0x24122c(0x17f)]}}:_0x15b3d0)}:_0x11119e;}function Oe(){const _0x5e9bbd=_0x4f272d;return Math[_0x5e9bbd(0x1fc)]()['toString'](0x24)[_0x5e9bbd(0x208)](0x2,0x8);}k[_0x4f272d(0x1e1)]=_0x4f272d(0x1f0);const we={'tag':_0x4f272d(0x218),'attrs':{'xmlns':_0x4f272d(0x1b1),'fill':_0x4f272d(0x1ee),'viewBox':'0\x200\x2017\x2017','width':_0x4f272d(0x1cc),'height':_0x4f272d(0x1cc)},'children':[{'tag':_0x4f272d(0x1a6),'attrs':{'fill':_0x4f272d(0x1a9),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4f272d(0x1a6),'attrs':{'fill':_0x4f272d(0x1a9),'d':_0x4f272d(0x1e8),'fillRule':_0x4f272d(0x1fd),'clipRule':_0x4f272d(0x1fd)}}]},W=_0x5c088f(function(_0x4b96a2,_0x196d0d){const _0x4b56f9=_0x4f272d;return _0x37a465(k,Object[_0x4b56f9(0x1c0)]({},_0x4b96a2,{'id':_0x4b56f9(0x214),'ref':_0x196d0d,'icon':we}));});W[_0x4f272d(0x1e1)]=_0x4f272d(0x1d1);class L extends _0x2a990a{constructor(){const _0x3c0bef=_0x4f272d;super(...arguments),u(this,_0x3c0bef(0x1ed),new Set()),u(this,'_reporters',new Set());}[_0x4f272d(0x1fb)](_0x28c22f){const _0x31108f=_0x4f272d;return this[_0x31108f(0x1ed)]['add'](_0x28c22f),_0x493c65(()=>this[_0x31108f(0x1ed)][_0x31108f(0x16f)](_0x28c22f));}[_0x4f272d(0x176)](_0x5584ad){const _0x591af4=_0x4f272d;return this[_0x591af4(0x18b)][_0x591af4(0x203)](_0x5584ad),_0x493c65(()=>this[_0x591af4(0x18b)]['delete'](_0x5584ad));}[_0x4f272d(0x175)](_0x59c299){const _0x598715=_0x4f272d;return this[_0x598715(0x1ed)][_0x598715(0x1c4)](_0x59c299);}['getInitialStates'](_0x45df58){const _0x71fe9c=_0x4f272d;return Array[_0x71fe9c(0x204)](this[_0x71fe9c(0x18b)])[_0x71fe9c(0x1d6)](_0x439b85=>_0x439b85(_0x45df58));}}var Ne=Object[_0x4f272d(0x20c)],Y=(_0x741358,_0x44dbaa,_0x2f5db0,_0x546f21)=>{for(var _0x43548d=_0x546f21>0x1?void 0x0:_0x546f21?Ne(_0x44dbaa,_0x2f5db0):_0x44dbaa,_0x2f8eb0=_0x741358['length']-0x1,_0xf89738;_0x2f8eb0>=0x0;_0x2f8eb0--)(_0xf89738=_0x741358[_0x2f8eb0])&&(_0x43548d=_0xf89738(_0x43548d)||_0x43548d);return _0x43548d;},_=(_0x27279b,_0x402e95)=>(_0x1060b9,_0x342cbd)=>_0x402e95(_0x1060b9,_0x342cbd,_0x27279b);let S=class extends _0x1b4131{constructor(_0x60f2f4,_0x1cb44a,_0x16b468){const _0x39bb5d=_0x4f272d;super(),u(this,_0x39bb5d(0x197),new Map()),(this['_univerInstanceService']=_0x60f2f4,this[_0x39bb5d(0x1f9)]=_0x1cb44a,this[_0x39bb5d(0x1ea)]=_0x16b468,this[_0x39bb5d(0x206)]());}async[_0x4f272d(0x1ca)](_0x12ddb0){const _0x3610dd=_0x4f272d;return this[_0x3610dd(0x197)][_0x3610dd(0x1c4)](_0x12ddb0)||await this[_0x3610dd(0x209)](_0x12ddb0),this[_0x3610dd(0x197)][_0x3610dd(0x185)](_0x12ddb0);}[_0x4f272d(0x1e6)](_0x8e37d5){const _0x3a503e=_0x4f272d;var _0x2189f2;return(_0x2189f2=this[_0x3a503e(0x197)][_0x3a503e(0x185)](_0x8e37d5))!=null?_0x2189f2:null;}[_0x4f272d(0x206)](){const _0x32c7d3=_0x4f272d;this[_0x32c7d3(0x1a7)][_0x32c7d3(0x217)](_0x39382c[_0x32c7d3(0x20e)])[_0x32c7d3(0x1c6)](_0x44ddd5(this[_0x32c7d3(0x19d)]))[_0x32c7d3(0x1b0)](async _0x2a8083=>{const _0x5c4371=_0x32c7d3,_0x55c65c=_0x2a8083[_0x5c4371(0x1d9)]();this[_0x5c4371(0x197)][_0x5c4371(0x1c4)](_0x55c65c)||this[_0x5c4371(0x209)](_0x55c65c);}),this[_0x32c7d3(0x1a7)][_0x32c7d3(0x20a)](_0x39382c['UNIVER_SHEET'])[_0x32c7d3(0x1c6)](_0x44ddd5(this['dispose$']))[_0x32c7d3(0x1b0)](_0xd8a549=>{const _0x45c5d0=_0x32c7d3,_0x17b8a0=_0xd8a549[_0x45c5d0(0x1d9)](),_0x2a204f=this[_0x45c5d0(0x197)][_0x45c5d0(0x185)](_0x17b8a0);_0x2a204f==null||_0x2a204f[_0x45c5d0(0x211)]();});}async['_startLiveShareCoordinator'](_0x222873){const _0x43ffb3=_0x4f272d,_0x368497=await this['_collabSessionService']['requireSession'](_0x222873),_0x4b7d14=this[_0x43ffb3(0x1f9)][_0x43ffb3(0x1f4)](N,_0x222873,_0x368497);return _0x4b7d14[_0x43ffb3(0x1d7)](),this[_0x43ffb3(0x197)][_0x43ffb3(0x1e4)](_0x222873,_0x4b7d14),_0x4b7d14;}};S=Y([_(0x0,_0xd15b0a),_(0x1,_0x3c9052(_0x1ba966)),_(0x2,_0x3c9052(_0x4c1567))],S);var c=(_0x403386=>(_0x403386[_0x4f272d(0x170)]=_0x4f272d(0x212),_0x403386[_0x4f272d(0x1b9)]=_0x4f272d(0x1c2),_0x403386[_0x4f272d(0x194)]=_0x4f272d(0x1b6),_0x403386['NOT_FOLLOWING']=_0x4f272d(0x1a4),_0x403386[_0x4f272d(0x190)]=_0x4f272d(0x18a),_0x403386))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x1b4131{constructor(_0x525917,_0x1359fd,_0x2bdc20,_0x192db4,_0x43637a){const _0x697db=_0x4f272d;super(),u(this,_0x697db(0x1bc),new _0x21cfae(_0x697db(0x1c2))),u(this,_0x697db(0x18e),this[_0x697db(0x1bc)][_0x697db(0x202)]()),u(this,_0x697db(0x206),!0x1),u(this,_0x697db(0x198),null),u(this,_0x697db(0x17d),null),(this[_0x697db(0x182)]=_0x525917,this[_0x697db(0x1ae)]=_0x1359fd,this[_0x697db(0x18f)]=_0x2bdc20,this[_0x697db(0x1a0)]=_0x192db4,this[_0x697db(0x1e0)]=_0x43637a);}get['_status'](){const _0x17a8fe=_0x4f272d;return this[_0x17a8fe(0x1bc)][_0x17a8fe(0x1a8)]();}[_0x4f272d(0x211)](){const _0x582da1=_0x4f272d;var _0x326765;(_0x326765=this['_commandDisposable'])==null||_0x326765['dispose'](),this[_0x582da1(0x1bc)][_0x582da1(0x1de)](_0x582da1(0x1c2)),this['_status$'][_0x582da1(0x1df)]();}[_0x4f272d(0x19e)](){const _0x174715=_0x4f272d;return this[_0x174715(0x1cb)];}['init'](){const _0x4ee925=_0x4f272d;this[_0x4ee925(0x206)]||(this[_0x4ee925(0x206)]=!0x0,this[_0x4ee925(0x1ae)][_0x4ee925(0x1cd)]['pipe'](_0x44ddd5(this[_0x4ee925(0x19d)]))[_0x4ee925(0x1b0)](_0x383f01=>{const _0x4a0c15=_0x4ee925;switch(_0x383f01){case _0x7be42a[_0x4a0c15(0x170)]:this[_0x4a0c15(0x210)]();break;case _0x7be42a['ONLINE']:this['_handleOnline']();break;}}),this[_0x4ee925(0x1ae)][_0x4ee925(0x19a)][_0x4ee925(0x1c6)](_0x44ddd5(this[_0x4ee925(0x19d)]))[_0x4ee925(0x1b0)](_0x3d88f1=>{const _0x3173de=_0x4ee925,{eventID:_0x1afa6e}=_0x3d88f1;switch(_0x1afa6e){case _0x4c21ab['LIVESHARE_NEW_HOST']:this[_0x3173de(0x1e2)](_0x3d88f1);break;case _0x4c21ab['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3d88f1);break;case _0x4c21ab['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x4c21ab[_0x3173de(0x1b4)]:this[_0x3173de(0x1d2)](_0x3d88f1);break;}}));}['tryStartPresenting'](){const _0x5389f6=_0x4f272d;this[_0x5389f6(0x1ae)][_0x5389f6(0x1ce)]({'eventID':_0x4c21ab[_0x5389f6(0x1be)],'data':{'unitID':this[_0x5389f6(0x182)],'userID':this[_0x5389f6(0x1ae)][_0x5389f6(0x1dc)]()}},this[_0x5389f6(0x182)]);}[_0x4f272d(0x1d0)](){const _0x12f1d2=_0x4f272d;this['_status']==='presenting'&&(this[_0x12f1d2(0x1bc)][_0x12f1d2(0x1de)](_0x12f1d2(0x1c2)),this[_0x12f1d2(0x1ae)][_0x12f1d2(0x1ce)]({'eventID':_0x4c21ab[_0x12f1d2(0x179)],'data':{'unitID':this[_0x12f1d2(0x182)]}},this[_0x12f1d2(0x182)]));}[_0x4f272d(0x1b7)](){const _0x29f7f9=_0x4f272d;this[_0x29f7f9(0x1cb)]===_0x29f7f9(0x1a4)&&(this[_0x29f7f9(0x1bc)][_0x29f7f9(0x1de)](_0x29f7f9(0x1b6)),this[_0x29f7f9(0x1f3)]());}['stopFollowing'](){const _0x489810=_0x4f272d;this[_0x489810(0x1cb)]==='following'&&this[_0x489810(0x207)]();}[_0x4f272d(0x1e2)](_0x1ea4af){const _0x4727e0=_0x4f272d,{presenter:_0x500b1f}=_0x1ea4af[_0x4727e0(0x1cf)],_0x164d71=this['_collabSession'][_0x4727e0(0x1dc)]();this[_0x4727e0(0x17d)]=_0x500b1f,_0x500b1f===_0x164d71?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x4727e0(0x1cb)]!==_0x4727e0(0x1a4)&&(this[_0x4727e0(0x1f5)](),this[_0x4727e0(0x1f3)]());}['_fetchOperations'](){const _0x55a3a2=_0x4f272d,_0x9acd81={'eventID':_0x4c21ab[_0x55a3a2(0x1d4)]};this[_0x55a3a2(0x1ae)][_0x55a3a2(0x1ce)](_0x9acd81,this[_0x55a3a2(0x182)]);}[_0x4f272d(0x1c5)](){const _0x1081e7=_0x4f272d;this[_0x1081e7(0x17d)]=null,this['_status']!==_0x1081e7(0x18a)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4fb4e3){const _0xbb09ce=_0x4f272d;if(this['_status']===_0xbb09ce(0x1b6)&&this[_0xbb09ce(0x17d)]===_0x4fb4e3[_0xbb09ce(0x1cf)][_0xbb09ce(0x20b)]){const _0x371b52=_0x1017ae(_0x4fb4e3[_0xbb09ce(0x1cf)])[_0xbb09ce(0x1dd)][_0xbb09ce(0x1d5)]()['find'](_0x3af2ef=>_0x3af2ef['id']===_0x3deb4['id']);if(_0x371b52){const _0x31b50=_0x371b52['params'][_0xbb09ce(0x1ab)],_0x266ad9=_0x371b52['params']['sheet']['id'];setTimeout(()=>{const _0x257bc0=_0xbb09ce;this[_0x257bc0(0x1e0)][_0x257bc0(0x1ac)](_0x591f93['id'],{'unitId':_0x31b50,'subUnitId':_0x266ad9},{'fromCollab':!0x0});});}}}[_0x4f272d(0x1b3)](){const _0x2129fa=_0x4f272d;this[_0x2129fa(0x1bc)][_0x2129fa(0x1de)]('presenting');const _0x18626a=new Map(),_0x57b131=this[_0x2129fa(0x198)]=new _0x2e01bb();_0x57b131['add'](_0x493c65(()=>{const _0x59ff7d=_0x2129fa;_0x18626a[_0x59ff7d(0x19b)](_0x3c1d1c=>_0x3c1d1c[_0x59ff7d(0x1df)]()),_0x18626a[_0x59ff7d(0x193)]();})),_0x57b131[_0x2129fa(0x203)](this[_0x2129fa(0x1e0)][_0x2129fa(0x1f2)](_0x47b7c8=>{const _0x3ff7f5=_0x2129fa;var _0x41afae;if(_0x47b7c8[_0x3ff7f5(0x171)]!==_0x5efdf4[_0x3ff7f5(0x181)]||!this[_0x3ff7f5(0x1a0)]['shouldShareOperation'](_0x47b7c8['id']))return;const {id:_0x1b7f6b}=_0x47b7c8;let _0x59a782;_0x18626a[_0x3ff7f5(0x1c4)](_0x1b7f6b)?_0x59a782=_0x18626a[_0x3ff7f5(0x185)](_0x1b7f6b):(_0x59a782=new _0x2609e3(),_0x18626a[_0x3ff7f5(0x1e4)](_0x1b7f6b,_0x59a782),_0x59a782[_0x3ff7f5(0x1c6)](_0x6b1f72((_0x41afae=this['_configService'][_0x3ff7f5(0x1bd)](Ce))!=null?_0x41afae:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ff7f5(0x1b0)](_0x4c29fa=>{const _0xf621f0=_0x3ff7f5;this[_0xf621f0(0x1ae)][_0xf621f0(0x1ce)]({'eventID':_0x4c21ab['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4c29fa['id']]:{'id':_0x4c29fa['id'],'params':JSON[_0xf621f0(0x1b5)](_0x4c29fa['params'])}}}},this[_0xf621f0(0x182)]);})),_0x59a782[_0x3ff7f5(0x1de)](_0x47b7c8);})),this[_0x2129fa(0x1a0)][_0x2129fa(0x17c)](this[_0x2129fa(0x182)])[_0x2129fa(0x19b)](_0x3896ca=>this[_0x2129fa(0x1ae)][_0x2129fa(0x1ce)]({'eventID':_0x4c21ab[_0x2129fa(0x1ec)],'data':{'unitID':this[_0x2129fa(0x182)],'operations':{[_0x3896ca['id']]:{'id':_0x3896ca['id'],'params':JSON[_0x2129fa(0x1b5)](_0x3896ca['params'])}}}},this[_0x2129fa(0x182)]));}[_0x4f272d(0x1f5)](){const _0x105c8f=_0x4f272d;var _0x5e8df9;this[_0x105c8f(0x1bc)][_0x105c8f(0x1de)](_0x105c8f(0x1c2)),(_0x5e8df9=this[_0x105c8f(0x198)])==null||_0x5e8df9[_0x105c8f(0x211)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x49423f=_0x4f272d;var _0x4905be;(_0x4905be=this[_0x49423f(0x198)])==null||_0x4905be[_0x49423f(0x211)](),this[_0x49423f(0x1bc)][_0x49423f(0x1de)](_0x49423f(0x1b6));}[_0x4f272d(0x17e)](){const _0x1e907a=_0x4f272d;var _0x19e5db;this['_status$'][_0x1e907a(0x1de)](_0x1e907a(0x1c2)),(_0x19e5db=this[_0x1e907a(0x198)])==null||_0x19e5db[_0x1e907a(0x211)](),this[_0x1e907a(0x198)]=null;}['_stopFollowing'](){const _0x42e926=_0x4f272d;var _0x44e27b;this[_0x42e926(0x1bc)][_0x42e926(0x1de)](_0x42e926(0x1a4)),(_0x44e27b=this[_0x42e926(0x198)])==null||_0x44e27b[_0x42e926(0x211)]();}[_0x4f272d(0x18d)](_0x1ea62d){const _0x4a6b81=_0x4f272d;if([_0x4a6b81(0x18a),'not-following',_0x4a6b81(0x212)]['includes'](this[_0x4a6b81(0x1cb)])||!_0x1ea62d[_0x4a6b81(0x1cf)][_0x4a6b81(0x1a2)]||_0x1ea62d['data'][_0x4a6b81(0x1a2)]===this[_0x4a6b81(0x1ae)][_0x4a6b81(0x1dc)]())return;this[_0x4a6b81(0x1cb)]==='idle'&&this[_0x4a6b81(0x1f3)]();const _0x2e541f=_0x1ea62d['data'][_0x4a6b81(0x196)];Object[_0x4a6b81(0x1a1)](_0x2e541f)[_0x4a6b81(0x19b)](_0x48c1f8=>{const _0x4493ab=_0x4a6b81;this[_0x4493ab(0x1e0)][_0x4493ab(0x1ac)](_0x48c1f8['id'],_0x48c1f8[_0x4493ab(0x1e7)]?JSON[_0x4493ab(0x215)](_0x48c1f8[_0x4493ab(0x1e7)]):null,{'fromCollab':!0x0});});}[_0x4f272d(0x210)](){const _0x5ee6c1=_0x4f272d;var _0x480927;this[_0x5ee6c1(0x1bc)][_0x5ee6c1(0x1de)](_0x5ee6c1(0x212)),(_0x480927=this[_0x5ee6c1(0x198)])==null||_0x480927[_0x5ee6c1(0x211)]();}['_handleOnline'](){const _0x5926b9=_0x4f272d;this['_status$'][_0x5926b9(0x1de)](_0x5926b9(0x1c2)),this[_0x5926b9(0x213)]();}};N=Y([_(0x2,_0x2a508c),_(0x3,_0x3c9052(L)),_(0x4,_0x26858f)],N);function Le(){const _0x31bef3=_0x4f272d,_0x59297e=_0x2dbf82(S),_0x33f0cf=_0x2dbf82(_0xd15b0a),_0x59ac15=_0x5b48f0(()=>_0x33f0cf['getCurrentTypeOfUnit$'](_0x39382c[_0x31bef3(0x20e)]),void 0x0,!0x1,[]),[_0x263c92,_0x544821]=_0x4a4515(null),[_0x541fb2,_0x508c13]=_0x4a4515(c['IDLE']),_0xcd9889=_0x3007da(null);return _0x2e4098(()=>(_0x59ac15&&_0x59297e[_0x31bef3(0x1ca)](_0x59ac15[_0x31bef3(0x1d9)]())[_0x31bef3(0x1bb)](_0x5127f8=>{const _0xa70c4b=_0x31bef3;_0x544821(_0x5127f8),_0xcd9889['current']=_0x5127f8[_0xa70c4b(0x18e)][_0xa70c4b(0x1b0)](_0xb3f115=>{_0x508c13(_0xb3f115);});}),()=>{const _0xf7285=_0x31bef3;var _0x2c429f;(_0x2c429f=_0xcd9889[_0xf7285(0x195)])==null||_0x2c429f[_0xf7285(0x1ad)](),_0xcd9889[_0xf7285(0x195)]=null;}),[_0x59ac15,_0x59297e]),_0x263c92?_0x31d872(_0x1bce87,{'align':'end','disabled':_0x541fb2===c['OFFLINE'],'className':_0x31bef3(0x1f8),'overlay':_0x31d872(Re,{'status':_0x541fb2,'coordinator':_0x263c92}),'children':_0x31d872(_0x31bef3(0x1c9),{'className':_0x450603(_0x31bef3(0x1ba),{'univer-cursor-not-allowed':_0x541fb2===c[_0x31bef3(0x170)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x541fb2!==c[_0x31bef3(0x170)]}),'type':_0x31bef3(0x1c9),'children':_0x31d872(W,{'className':_0x31bef3(0x1f1)})})}):null;}function Re(_0x3c52fe){const _0x3d4c90=_0x4f272d,{status:_0x339c68,coordinator:_0x48f0a0}=_0x3c52fe;switch(_0x339c68){case c[_0x3d4c90(0x1b9)]:return _0x31d872($e,{'coordinator':_0x48f0a0});case c['FOLLOWING']:return _0x31d872(xe,{'coordinator':_0x48f0a0});case c['NOT_FOLLOWING']:return _0x31d872(Pe,{'coordinator':_0x48f0a0});case c['OFFLINE']:return _0x31d872(Te,{});case c[_0x3d4c90(0x190)]:return _0x31d872(Ae,{'coordinator':_0x48f0a0});default:return null;}}function $e(_0x508b64){const _0x508a98=_0x4f272d,{coordinator:_0x12488e}=_0x508b64;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x508a98(0x17a)}),_0x31d872(_0x3a140e,{'onClick':()=>_0x12488e[_0x508a98(0x183)](),'children':'Start'})]});}function xe(_0x15ce10){const _0x111fd5=_0x4f272d,{coordinator:_0x5c6ce8}=_0x15ce10;return _0x226895(_0x45b536,{'children':[_0x31d872(_0x111fd5(0x205),{'className':_0x111fd5(0x1b2),'children':_0x111fd5(0x19f)}),_0x31d872(_0x3a140e,{'onClick':()=>_0x5c6ce8[_0x111fd5(0x1f7)](),'children':'Stop\x20following'})]});}function Pe(_0x258a3c){const _0x4def01=_0x4f272d,{coordinator:_0x5c20ef}=_0x258a3c;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':_0x4def01(0x1b2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x31d872(_0x3a140e,{'variant':_0x4def01(0x173),'onClick':()=>_0x5c20ef['startFollowing'](),'children':_0x4def01(0x186)})]});}function Ae(_0xa9ef4c){const _0x3b6d00=_0x4f272d,{coordinator:_0x4fe7ee}=_0xa9ef4c;return _0x226895(_0x45b536,{'children':[_0x31d872('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3b6d00(0x1a3)}),_0x31d872(_0x3a140e,{'variant':_0x3b6d00(0x201),'onClick':()=>_0x4fe7ee[_0x3b6d00(0x1d0)](),'children':_0x3b6d00(0x1d8)})]});}function Te(){const _0x3fc1cb=_0x4f272d;return _0x31d872(_0x45b536,{'children':_0x3fc1cb(0x19c)});}var Fe=Object[_0x4f272d(0x20c)],He=(_0x581929,_0x59cfb8,_0x285fd5,_0x4741dc)=>{const _0x3f6964=_0x4f272d;for(var _0x160ce5=_0x4741dc>0x1?void 0x0:_0x4741dc?Fe(_0x59cfb8,_0x285fd5):_0x59cfb8,_0x42d107=_0x581929[_0x3f6964(0x199)]-0x1,_0x196e05;_0x42d107>=0x0;_0x42d107--)(_0x196e05=_0x581929[_0x42d107])&&(_0x160ce5=_0x196e05(_0x160ce5)||_0x160ce5);return _0x160ce5;},A=(_0x70592f,_0x4c2d1b)=>(_0x48c159,_0x2c5967)=>_0x4c2d1b(_0x48c159,_0x2c5967,_0x70592f);let m=class extends _0x2a990a{constructor(_0x1e9855,_0x2b4836){const _0x2d6841=_0x4f272d;super(),this[_0x2d6841(0x1f9)]=_0x1e9855,this[_0x2d6841(0x20f)]=_0x2b4836,this[_0x2d6841(0x17b)]();}[_0x4f272d(0x17b)](){const _0x34636a=_0x4f272d;this['disposeWithMe'](this[_0x34636a(0x20f)][_0x34636a(0x1ff)](_0x2db817[_0x34636a(0x1e5)],()=>_0x47868d(Le,this[_0x34636a(0x1f9)])));}};m=He([A(0x0,_0x3c9052(_0x1ba966)),A(0x1,_0x1556be)],m);const ye=_0x4f272d(0x216),T={};var Ue=Object[_0x4f272d(0x20c)],Ve=(_0x2e88f7,_0x50b8d8,_0x239598,_0x4d40f4)=>{const _0x4303b2=_0x4f272d;for(var _0x2924f7=_0x4d40f4>0x1?void 0x0:_0x4d40f4?Ue(_0x50b8d8,_0x239598):_0x50b8d8,_0x72c7e0=_0x2e88f7[_0x4303b2(0x199)]-0x1,_0x2a2224;_0x72c7e0>=0x0;_0x72c7e0--)(_0x2a2224=_0x2e88f7[_0x72c7e0])&&(_0x2924f7=_0x2a2224(_0x2924f7)||_0x2924f7);return _0x2924f7;},je=(_0xdd951f,_0x2fc8c0)=>(_0x40e7fa,_0x589d60)=>_0x2fc8c0(_0x40e7fa,_0x589d60,_0xdd951f);let I=class extends _0x2a990a{constructor(_0x16581f){const _0x127c79=_0x4f272d;super(),this[_0x127c79(0x1a0)]=_0x16581f,this['_init']();}[_0x4f272d(0x206)](){[_0x2ceadd['id'],_0x388d02['id'],_0x591f93['id']]['forEach'](_0x57838a=>{const _0x5c98e4=_0x12b5;this['disposeWithMe'](this[_0x5c98e4(0x1a0)]['registerSharedOperation'](_0x57838a));});}};I=Ve([je(0x0,_0x3c9052(L))],I);var Me=Object[_0x4f272d(0x1b8)],ke=Object[_0x4f272d(0x20c)],Ge=(_0x1def28,_0x416ce8,_0x134511)=>_0x416ce8 in _0x1def28?Me(_0x1def28,_0x416ce8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134511}):_0x1def28[_0x416ce8]=_0x134511,We=(_0x255324,_0xca5202,_0x384f21,_0x53d443)=>{for(var _0x3f27c0=_0x53d443>0x1?void 0x0:_0x53d443?ke(_0xca5202,_0x384f21):_0xca5202,_0x5f4730=_0x255324['length']-0x1,_0x30444d;_0x5f4730>=0x0;_0x5f4730--)(_0x30444d=_0x255324[_0x5f4730])&&(_0x3f27c0=_0x30444d(_0x3f27c0)||_0x3f27c0);return _0x3f27c0;},F=(_0x4a452c,_0x2bedb0)=>(_0x396f3e,_0x29fe47)=>_0x2bedb0(_0x396f3e,_0x29fe47,_0x4a452c),B=(_0x478167,_0x3272a3,_0x1f947e)=>Ge(_0x478167,typeof _0x3272a3!=_0x4f272d(0x191)?_0x3272a3+'':_0x3272a3,_0x1f947e);function _0x10f0(){const _0x8bcc70=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','then','_status$','getConfig','LIVESHARE_REQUEST_HOST','7357mPKucO','assign','url(#$1','idle','28014813ZBYkut','has','_handleTerminate','pipe','use','colorChannel1','button','getLiveShareCoordinator','_status','1em','sessionStatus$','send','data','stopPresenting','LiveShareIcon','_handleNewChangeSets','tag','LIVESHARE_FETCH_OPERATIONS','reverse','map','init','Stop\x20presenting','getUnitId','override','trim','getMemberID','mutations','next','complete','_commandService','displayName','_handleNewHost','fill','set','HEADER_MENU','getLiveShareCoordinatorSync','params','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','univerjs-icon\x20univerjs-icon-','_collabSessionService','xlink:href','LIVESHARE_OPERATION','_sharedOperations','none','2196434eAJZIy','UniverIcon','univer-size-4','onCommandExecuted','_startFollowing','createInstance','_stopPresenting','6589435vUMrAl','stopFollowing','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','_injector','6214832NNZyuD','registerSharedOperation','random','evenodd','mask','registerComponent','14393472vtyPug','default','asObservable','add','from','div','_init','_stopFollowing','substring','_startLiveShareCoordinator','getTypeOfUnitDisposed$','memberID','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_uiPartsService','_handleOffline','dispose','offline','_fetchOperations','live-share-icon','parse','live-share.config','getTypeOfUnitAdded$','svg','delete','OFFLINE','type','3ESHxlY','text','10Jjkllh','shouldShareOperation','registerInitialStateReporter','_config','replace','LIVESHARE_TERMINATE','Present\x20this\x20document','_mountLiveShare','getInitialStates','_presenter','_beIdle','idSuffix','UNIVER_UNKNOWN','OPERATION','_unitID','tryStartPresenting','attrs','get','Start\x20following','defIds','pluginName','onStarting','presenting','_reporters','children','_handleOperation','status$','_configService','PRESENTING','symbol','49337TcpzIA','clear','FOLLOWING','current','operations','_entities','_commandDisposable','length','event$','forEach','You\x27are\x20offline.','dispose$','getStatus','You\x27re\x20following\x20the\x20presenter','_liveShareService','values','presenter','You\x27re\x20presenting\x20the\x20document','not-following','7638UhOpwR','path','_univerInstanceService','getValue','currentColor','string','unitId','executeCommand','unsubscribe','_collabSession','setConfig','subscribe','http://www.w3.org/2000/svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','NEW_CHANGESETS','stringify','following','startFollowing','defineProperty','IDLE'];_0x10f0=function(){return _0x8bcc70;};return _0x10f0();}const Ye=_0x4f272d(0x20d);let b=class extends _0x262c4f{constructor(_0x47fc7c=T,_0x5c88b7,_0xb0357e){const _0x9dcd3=_0x4f272d;super(),this[_0x9dcd3(0x177)]=_0x47fc7c,this[_0x9dcd3(0x1f9)]=_0x5c88b7,this['_configService']=_0xb0357e;const {..._0x5437aa}=_0x262827({},T,this[_0x9dcd3(0x177)]);this['_configService'][_0x9dcd3(0x1af)](ye,_0x5437aa);}[_0x4f272d(0x189)](){const _0x9cdbb8=_0x4f272d;_0x5b6cc8(this['_injector'],_0x22807c([[L],[S],[I],[m]],this[_0x9cdbb8(0x177)][_0x9cdbb8(0x1da)])),_0x1cc958(this[_0x9cdbb8(0x1f9)],[[I]]);}['onRendered'](){const _0x3a85bd=_0x4f272d;_0x1cc958(this[_0x3a85bd(0x1f9)],[[m]]);}};B(b,_0x4f272d(0x171),_0x39382c[_0x4f272d(0x180)]),B(b,_0x4f272d(0x188),Ye),b=We([_0x45cd91(_0x5e658c),F(0x1,_0x3c9052(_0x1ba966)),F(0x2,_0x2a508c)],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 _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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(_0x15ce24,_0x2dce69){const _0x3efb45=_0x1e95,_0x467f81=_0x15ce24();while(!![]){try{const _0x20d20a=parseInt(_0x3efb45(0x16b))/0x1*(parseInt(_0x3efb45(0x160))/0x2)+-parseInt(_0x3efb45(0x157))/0x3+parseInt(_0x3efb45(0x15e))/0x4+parseInt(_0x3efb45(0x14a))/0x5+-parseInt(_0x3efb45(0x15a))/0x6*(parseInt(_0x3efb45(0x177))/0x7)+-parseInt(_0x3efb45(0x162))/0x8+-parseInt(_0x3efb45(0x16d))/0x9*(parseInt(_0x3efb45(0x16f))/0xa);if(_0x20d20a===_0x2dce69)break;else _0x467f81['push'](_0x467f81['shift']());}catch(_0x31542e){_0x467f81['push'](_0x467f81['shift']());}}}(_0x5d04,0x1efb8),function(_0x1e0657,_0x5dd6c6){const _0x5c8991=_0x1e95;typeof exports=='object'&&typeof module<'u'?_0x5dd6c6(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==_0x5c8991(0x179)&&define[_0x5c8991(0x173)]?define(['@univerjs-pro/live-share',_0x5c8991(0x151),_0x5c8991(0x159),_0x5c8991(0x169),_0x5c8991(0x14b),_0x5c8991(0x158)],_0x5dd6c6):(_0x1e0657=typeof globalThis<'u'?globalThis:_0x1e0657||self,_0x5dd6c6(_0x1e0657['UniverProLiveShare'],_0x1e0657[_0x5c8991(0x164)],_0x1e0657[_0x5c8991(0x156)],_0x1e0657['UniverSheetsUi'],_0x1e0657['UniverSheetsFacade'],_0x1e0657[_0x5c8991(0x167)]));}(this,function(_0x402af4,_0x45d3a7,_0xec56d2,_0xe20602,_0x37589d,_0x307981){'use strict';const _0x77a3fe=_0x1e95;class _0x1c401b extends _0x37589d[_0x77a3fe(0x166)]{[_0x77a3fe(0x16e)](_0x2faf83,_0x58e3e4,_0x15df37,_0x2b044d,_0x230503){const _0x5e20f0=_0x77a3fe,_0x1dad93=_0x2faf83['get'](_0x402af4[_0x5e20f0(0x153)]),_0x10c483=_0x2faf83[_0x5e20f0(0x172)](_0x45d3a7[_0x5e20f0(0x168)]),_0x59d02f=_0x58e3e4[_0x5e20f0(0x174)](),_0x39f5f8=_0x58e3e4[_0x5e20f0(0x17a)](),_0x2b3c50=_0x1dad93['getLiveShareCoordinatorSync'](_0x59d02f);(_0x2b3c50==null?void 0x0:_0x2b3c50['getStatus']())!==_0x402af4['LiveShareStatus'][_0x5e20f0(0x154)]||(_0x15df37[_0x5e20f0(0x161)]()!==_0x39f5f8[_0x5e20f0(0x161)]()&&this[_0x5e20f0(0x15d)][_0x5e20f0(0x175)](_0xec56d2['SetWorksheetActiveOperation']['id'],{'unitId':_0x59d02f,'subUnitId':_0x15df37[_0x5e20f0(0x161)]()}),!_0x10c483[_0x5e20f0(0x14f)](_0x59d02f))||_0x230503[_0x5e20f0(0x14e)](_0xe20602['SetScrollOperation']['id'],{'unitId':_0x58e3e4['getUnitId'](),'sheetId':_0x15df37[_0x5e20f0(0x161)](),'sheetViewStartRow':_0x2b044d[_0x5e20f0(0x176)],'sheetViewStartColumn':_0x2b044d['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x37589d[_0x77a3fe(0x166)][_0x77a3fe(0x170)](_0x1c401b);class _0x516392 extends _0x307981['FUniver']{[_0x77a3fe(0x14c)](){const _0x1bd140=_0x77a3fe;var _0x3aa158,_0x573ea6;const _0x309b54=this[_0x1bd140(0x15f)][_0x1bd140(0x172)](_0x402af4[_0x1bd140(0x153)]),_0x38411d=(_0x3aa158=this[_0x1bd140(0x16c)]())==null?void 0x0:_0x3aa158[_0x1bd140(0x171)]();if(!_0x38411d)throw new Error(_0x1bd140(0x14d));const _0xd11bc9=_0x309b54[_0x1bd140(0x165)](_0x38411d);return(_0x573ea6=_0xd11bc9==null?void 0x0:_0xd11bc9[_0x1bd140(0x178)]())!=null?_0x573ea6:_0x402af4['LiveShareStatus']['IDLE'];}['startFollowing'](){const _0x1690f4=_0x77a3fe;var _0xef5297;const _0x1d025c=this[_0x1690f4(0x15f)]['get'](_0x402af4[_0x1690f4(0x153)]),_0x46a8af=(_0xef5297=this[_0x1690f4(0x16c)]())==null?void 0x0:_0xef5297[_0x1690f4(0x171)]();if(!_0x46a8af)throw new Error(_0x1690f4(0x14d));const _0x4b62a5=_0x1d025c[_0x1690f4(0x165)](_0x46a8af);if(!_0x4b62a5)throw new Error(_0x1690f4(0x17b));_0x4b62a5[_0x1690f4(0x15b)]();}[_0x77a3fe(0x16a)](){const _0x59b707=_0x77a3fe;var _0x2c8a9a;const _0xda1395=this[_0x59b707(0x15f)][_0x59b707(0x172)](_0x402af4[_0x59b707(0x153)]),_0x5d689f=(_0x2c8a9a=this[_0x59b707(0x16c)]())==null?void 0x0:_0x2c8a9a[_0x59b707(0x171)]();if(!_0x5d689f)throw new Error('No\x20active\x20workbook\x20found.');const _0x23542d=_0xda1395[_0x59b707(0x165)](_0x5d689f);if(!_0x23542d)throw new Error(_0x59b707(0x17b));_0x23542d[_0x59b707(0x16a)]();}[_0x77a3fe(0x15c)](){const _0x5a23a3=_0x77a3fe;var _0x2d99fd;const _0x888d2e=this[_0x5a23a3(0x15f)][_0x5a23a3(0x172)](_0x402af4[_0x5a23a3(0x153)]),_0x2c3191=(_0x2d99fd=this['getActiveWorkbook']())==null?void 0x0:_0x2d99fd[_0x5a23a3(0x171)]();if(!_0x2c3191)throw new Error(_0x5a23a3(0x14d));const _0xc5ab60=_0x888d2e[_0x5a23a3(0x165)](_0x2c3191);if(!_0xc5ab60)throw new Error(_0x5a23a3(0x17b));_0xc5ab60[_0x5a23a3(0x17c)]();}[_0x77a3fe(0x150)](){const _0x2f52a3=_0x77a3fe;var _0x4f1337;const _0x58ed9a=this[_0x2f52a3(0x15f)]['get'](_0x402af4[_0x2f52a3(0x153)]),_0x3007ea=(_0x4f1337=this[_0x2f52a3(0x16c)]())==null?void 0x0:_0x4f1337[_0x2f52a3(0x171)]();if(!_0x3007ea)throw new Error(_0x2f52a3(0x14d));const _0x15c491=_0x58ed9a[_0x2f52a3(0x165)](_0x3007ea);if(!_0x15c491)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x15c491[_0x2f52a3(0x150)]();}}_0x307981[_0x77a3fe(0x155)]['extend'](_0x516392);class _0x43fb62 extends _0x307981['FEnum']{get['LiveShareStatusEnum'](){const _0x4b8412=_0x77a3fe;return _0x402af4[_0x4b8412(0x152)];}}_0x307981[_0x77a3fe(0x163)][_0x77a3fe(0x170)](_0x43fb62);}));function _0x1e95(_0xf43b76,_0x29aabc){_0xf43b76=_0xf43b76-0x14a;const _0x5d04d8=_0x5d04();let _0x1e9520=_0x5d04d8[_0xf43b76];return _0x1e9520;}function _0x5d04(){const _0x46b783=['getStatus','function','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','371820nSoTek','@univerjs/sheets/facade','getLiveShareStatus','No\x20active\x20workbook\x20found.','syncExecuteCommand','getRenderById','stopPresenting','@univerjs/engine-render','LiveShareStatus','LiveShareController','PRESENTING','FUniver','UniverSheets','248721osTTQF','@univerjs/core/facade','@univerjs/sheets','30hqJOri','startFollowing','startPresenting','_commandService','831804YqnpJA','_injector','306890sUnKeB','getSheetId','124648HRbfox','FEnum','UniverEngineRender','getLiveShareCoordinatorSync','FRange','UniverCoreFacade','IRenderManagerService','@univerjs/sheets-ui','stopFollowing','1tkbZUM','getActiveWorkbook','9cDnziu','_initialize','479530HucDmW','extend','getId','get','amd','getUnitId','executeCommand','startRow','227381SiYeee'];_0x5d04=function(){return _0x46b783;};return _0x5d04();}
1
+ function _0x184b(){const _0x1fb4c7=['24UEqPnX','_injector','UniverSheetsUi','function','3243033DIgpQF','extend','getUnitId','UniverSheetsFacade','getSheetId','FEnum','tryStartPresenting','startFollowing','1758044lxxGNt','6362DoZgAE','PRESENTING','UniverCoreFacade','getActiveWorkbook','startColumn','LiveShareStatusEnum','UniverSheets','15Xfqqhg','getLiveShareStatus','16635470xoUaEA','UniverEngineRender','@univerjs/core/facade','9004626JmgaBE','getId','object','getActiveSheet','getRenderById','3397179QUxurJ','@univerjs/engine-render','stopFollowing','_commandService','getLiveShareCoordinatorSync','LiveShareController','@univerjs/sheets-ui','FUniver','getStatus','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','@univerjs/sheets/facade','3956687IILJWX','IRenderManagerService','No\x20active\x20workbook\x20found.','stopPresenting','startPresenting','get','353SBcUdl','11tCQojR','LiveShareStatus'];_0x184b=function(){return _0x1fb4c7;};return _0x184b();}function _0x3177(_0x1025d1,_0x2f5974){_0x1025d1=_0x1025d1-0x133;const _0x184b86=_0x184b();let _0x31773d=_0x184b86[_0x1025d1];return _0x31773d;}(function(_0x38bec1,_0x13987a){const _0x5e3add=_0x3177,_0x4a558f=_0x38bec1();while(!![]){try{const _0x1addbe=parseInt(_0x5e3add(0x148))/0x1*(parseInt(_0x5e3add(0x158))/0x2)+parseInt(_0x5e3add(0x135))/0x3+-parseInt(_0x5e3add(0x157))/0x4*(-parseInt(_0x5e3add(0x15f))/0x5)+-parseInt(_0x5e3add(0x164))/0x6+-parseInt(_0x5e3add(0x142))/0x7+parseInt(_0x5e3add(0x14b))/0x8*(parseInt(_0x5e3add(0x14f))/0x9)+parseInt(_0x5e3add(0x161))/0xa*(-parseInt(_0x5e3add(0x149))/0xb);if(_0x1addbe===_0x13987a)break;else _0x4a558f['push'](_0x4a558f['shift']());}catch(_0x5de97b){_0x4a558f['push'](_0x4a558f['shift']());}}}(_0x184b,0xe1e57),function(_0x23b9af,_0x5ea572){const _0x1fa31a=_0x3177;typeof exports==_0x1fa31a(0x166)&&typeof module<'u'?_0x5ea572(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==_0x1fa31a(0x14e)&&define['amd']?define([_0x1fa31a(0x140),_0x1fa31a(0x136),'@univerjs/sheets',_0x1fa31a(0x13b),_0x1fa31a(0x141),_0x1fa31a(0x163)],_0x5ea572):(_0x23b9af=typeof globalThis<'u'?globalThis:_0x23b9af||self,_0x5ea572(_0x23b9af['UniverProLiveShare'],_0x23b9af[_0x1fa31a(0x162)],_0x23b9af[_0x1fa31a(0x15e)],_0x23b9af[_0x1fa31a(0x14d)],_0x23b9af[_0x1fa31a(0x152)],_0x23b9af[_0x1fa31a(0x15a)]));}(this,function(_0x356370,_0x45abd8,_0x3bc2de,_0x3a8b23,_0x3a08f6,_0x4fc22c){'use strict';const _0x437d23=_0x3177;class _0x1c052f extends _0x3a08f6['FRange']{['_initialize'](_0x49bdf9,_0x593056,_0x3d0a3b,_0x3e7ef2,_0x11267f){const _0x41a94a=_0x3177,_0x41c117=_0x49bdf9[_0x41a94a(0x147)](_0x356370[_0x41a94a(0x13a)]),_0x4c0895=_0x49bdf9[_0x41a94a(0x147)](_0x45abd8[_0x41a94a(0x143)]),_0x5255f9=_0x593056[_0x41a94a(0x151)](),_0x3c4003=_0x593056[_0x41a94a(0x133)](),_0x21a1ba=_0x41c117['getLiveShareCoordinatorSync'](_0x5255f9);(_0x21a1ba==null?void 0x0:_0x21a1ba['getStatus']())!==_0x356370[_0x41a94a(0x14a)][_0x41a94a(0x159)]||(_0x3d0a3b[_0x41a94a(0x153)]()!==_0x3c4003[_0x41a94a(0x153)]()&&this[_0x41a94a(0x138)]['executeCommand'](_0x3bc2de['SetWorksheetActiveOperation']['id'],{'unitId':_0x5255f9,'subUnitId':_0x3d0a3b['getSheetId']()}),!_0x4c0895[_0x41a94a(0x134)](_0x5255f9))||_0x11267f['syncExecuteCommand'](_0x3a8b23['SetScrollOperation']['id'],{'unitId':_0x593056[_0x41a94a(0x151)](),'sheetId':_0x3d0a3b[_0x41a94a(0x153)](),'sheetViewStartRow':_0x3e7ef2['startRow'],'sheetViewStartColumn':_0x3e7ef2[_0x41a94a(0x15c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3a08f6['FRange']['extend'](_0x1c052f);class _0x8a53b0 extends _0x4fc22c['FUniver']{[_0x437d23(0x160)](){const _0x7de63e=_0x437d23;var _0x5026b8,_0x3ff529;const _0x57f79a=this['_injector'][_0x7de63e(0x147)](_0x356370[_0x7de63e(0x13a)]),_0x16ca57=(_0x5026b8=this[_0x7de63e(0x15b)]())==null?void 0x0:_0x5026b8[_0x7de63e(0x165)]();if(!_0x16ca57)throw new Error(_0x7de63e(0x144));const _0x1327df=_0x57f79a[_0x7de63e(0x139)](_0x16ca57);return(_0x3ff529=_0x1327df==null?void 0x0:_0x1327df[_0x7de63e(0x13d)]())!=null?_0x3ff529:_0x356370[_0x7de63e(0x14a)][_0x7de63e(0x13e)];}[_0x437d23(0x156)](){const _0x4f0493=_0x437d23;var _0x3d85b4;const _0x40d2ad=this['_injector'][_0x4f0493(0x147)](_0x356370[_0x4f0493(0x13a)]),_0x4da09f=(_0x3d85b4=this[_0x4f0493(0x15b)]())==null?void 0x0:_0x3d85b4['getId']();if(!_0x4da09f)throw new Error(_0x4f0493(0x144));const _0x9ee365=_0x40d2ad[_0x4f0493(0x139)](_0x4da09f);if(!_0x9ee365)throw new Error(_0x4f0493(0x13f));_0x9ee365[_0x4f0493(0x156)]();}[_0x437d23(0x137)](){const _0x1acad3=_0x437d23;var _0x479f17;const _0x5c25ed=this[_0x1acad3(0x14c)]['get'](_0x356370[_0x1acad3(0x13a)]),_0xac21dc=(_0x479f17=this['getActiveWorkbook']())==null?void 0x0:_0x479f17[_0x1acad3(0x165)]();if(!_0xac21dc)throw new Error('No\x20active\x20workbook\x20found.');const _0x3bd355=_0x5c25ed['getLiveShareCoordinatorSync'](_0xac21dc);if(!_0x3bd355)throw new Error(_0x1acad3(0x13f));_0x3bd355[_0x1acad3(0x137)]();}[_0x437d23(0x146)](){const _0x574be5=_0x437d23;var _0xed8ec9;const _0x1c4b73=this[_0x574be5(0x14c)][_0x574be5(0x147)](_0x356370[_0x574be5(0x13a)]),_0x3d33f2=(_0xed8ec9=this[_0x574be5(0x15b)]())==null?void 0x0:_0xed8ec9[_0x574be5(0x165)]();if(!_0x3d33f2)throw new Error(_0x574be5(0x144));const _0x4ae96f=_0x1c4b73['getLiveShareCoordinatorSync'](_0x3d33f2);if(!_0x4ae96f)throw new Error(_0x574be5(0x13f));_0x4ae96f[_0x574be5(0x155)]();}[_0x437d23(0x145)](){const _0x1159ed=_0x437d23;var _0xfb8945;const _0x1e072e=this[_0x1159ed(0x14c)]['get'](_0x356370[_0x1159ed(0x13a)]),_0x5c1187=(_0xfb8945=this[_0x1159ed(0x15b)]())==null?void 0x0:_0xfb8945[_0x1159ed(0x165)]();if(!_0x5c1187)throw new Error(_0x1159ed(0x144));const _0x2f6ada=_0x1e072e[_0x1159ed(0x139)](_0x5c1187);if(!_0x2f6ada)throw new Error(_0x1159ed(0x13f));_0x2f6ada['stopPresenting']();}}_0x4fc22c[_0x437d23(0x13c)][_0x437d23(0x150)](_0x8a53b0);class _0x411215 extends _0x4fc22c[_0x437d23(0x154)]{get[_0x437d23(0x15d)](){return _0x356370['LiveShareStatus'];}}_0x4fc22c[_0x437d23(0x154)]['extend'](_0x411215);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a66(_0x26bcb1,_0x65e0cd){_0x26bcb1=_0x26bcb1-0x1ad;const _0x2f1885=_0x2f18();let _0x1a668e=_0x2f1885[_0x26bcb1];return _0x1a668e;}function _0x2f18(){const _0x1380cc=['You\x27are\x20offline.','getTypeOfUnitDisposed$','UniverCollaborationClientPlugin','tag','DisposableCollection','LIVESHARE_NEW_HOST','getLiveShareCoordinatorSync','operators','UniverLiveSharePlugin','_handleNewHost','Dropdown','stopFollowing','values','defineProperty','OPERATION','Injector','RxDisposable','_univerInstanceService','entries','_entities','UniverProCollaborationClient','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','shouldShareOperation','UNIVER_LIVE_SHARE_PLUGIN','_init','delete','status$','idle','pluginName','parse','subscribe','504261LMfyCc','Inject','ONLINE','LIVESHARE_TERMINATE','univer-size-4','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','FOLLOWING','fill','memberID','map','_collabSessionService','_unitID','path','forEach','IConfigService','690294vaQhzb','_liveShareService','48360kDBejW','amd','IUIPartsService','react','react/jsx-runtime','_handleTerminate','registerDependencies','_status$','displayName','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Start\x20following','UniverCore','_stopPresenting','PRESENTING','stringify','toStringTag','_handleOffline','takeUntil','requireSession','CollaborationEvent','Disposable','forwardRef','from','exports','Button','live-share-icon','has','registerInitialStateReporter','CommandType','object','toDisposable','_stopFollowing','mergeOverrideWithDependencies','SetScrollOperation','pipe','LiveShareController','@univerjs/design','4867639WHYimP','UniverProCollaboration','evenodd','xlink:href','NOT_FOLLOWING','Plugin','UNIVER_SHEET','not-following','params','defs','_injector','getConfig','jsxs','complete','tryStartPresenting','Stop\x20presenting','Subject','length','jsx','IDLE','idSuffix','registerSharedOperation','Stop\x20following','onStarting','_reporters','presenter','@univerjs/ui','Present\x20this\x20document','10669fjxMzt','throttleTime','1589642PVFXuY','send','get','438NaEkbH','DependentOn','SetWorksheetActiveOperation','next','univerjs-icon\x20univerjs-icon-','_presenter','UniverProLiveShare','NEW_CHANGESETS','_status','3212156NhNIxw','createInstance','IUniverInstanceService','_uiPartsService','getCurrentTypeOfUnit$','mask','createElement','includes','getInitialStates','replace','attrs','getOwnPropertyDescriptor','useRef','getUnitId','_fetchOperations','live-share.config','http://www.w3.org/2000/svg','data','trim','colorChannel1','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','UniverUi','mutations','startFollowing','@univerjs/sheets-ui','_config','clsx','useDependency','dispose','unsubscribe','reverse','getStatus','registerComponent','toString','onCommandExecuted','InsertSheetMutation','string','UniverIcon','assign','set','getMemberID','getLiveShareCoordinator','_handleNewChangeSets','presenting','offline','text','use','SessionStatus','_sharedOperations','_commandService','80TOLQoB','_handleOnline','parseProtocolChangeset','_configService','current','svg','_startPresenting','SetZoomRatioOperation','Module','sheet','@univerjs/core','asObservable','disposeWithMe','Start','_collabSession','BehaviorSubject','onRendered','symbol','unitId','following','UniverSheets','touchDependencies','none','OFFLINE','connectInjector','function','currentColor','1em','Fragment','DesktopLiveShareController','UniverSheetsUi','React','_beIdle','useState','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','div','LIVESHARE_OPERATION','_commandDisposable','type','add','UniverInstanceType','BuiltInUIPart','url(#$1','_startFollowing','_startLiveShareCoordinator','event$','@univerjs/sheets','_mountLiveShare','children','find','UniverDesign','stopPresenting','dispose$','_handleOperation','executeCommand','button','LiveShareCoordinator'];_0x2f18=function(){return _0x1380cc;};return _0x2f18();}(function(_0x2482dc,_0x12ff65){const _0x4eae62=_0x1a66,_0x294089=_0x2482dc();while(!![]){try{const _0x3c11c4=-parseInt(_0x4eae62(0x26c))/0x1+-parseInt(_0x4eae62(0x26e))/0x2+parseInt(_0x4eae62(0x228))/0x3+-parseInt(_0x4eae62(0x27a))/0x4+-parseInt(_0x4eae62(0x22a))/0x5*(-parseInt(_0x4eae62(0x271))/0x6)+parseInt(_0x4eae62(0x250))/0x7+parseInt(_0x4eae62(0x1bf))/0x8*(parseInt(_0x4eae62(0x219))/0x9);if(_0x3c11c4===_0x12ff65)break;else _0x294089['push'](_0x294089['shift']());}catch(_0xfc5e88){_0x294089['push'](_0x294089['shift']());}}}(_0x2f18,0x8e67c),function(_0x2b7364,_0xd21a9){const _0x52eb4d=_0x1a66;typeof exports==_0x52eb4d(0x248)&&typeof module<'u'?_0xd21a9(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==_0x52eb4d(0x1d8)&&define[_0x52eb4d(0x22b)]?define([_0x52eb4d(0x242),_0x52eb4d(0x1c9),_0x52eb4d(0x26a),_0x52eb4d(0x22e),_0x52eb4d(0x24f),_0x52eb4d(0x22d),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x52eb4d(0x1ee),'rxjs','rxjs/operators',_0x52eb4d(0x292)],_0xd21a9):(_0x2b7364=typeof globalThis<'u'?globalThis:_0x2b7364||self,_0xd21a9(_0x2b7364[_0x52eb4d(0x277)]={},_0x2b7364[_0x52eb4d(0x236)],_0x2b7364[_0x52eb4d(0x28f)],_0x2b7364[_0x52eb4d(0x1de)],_0x2b7364[_0x52eb4d(0x1f2)],_0x2b7364[_0x52eb4d(0x1de)],_0x2b7364[_0x52eb4d(0x251)],_0x2b7364[_0x52eb4d(0x20d)],_0x2b7364[_0x52eb4d(0x1d3)],_0x2b7364['rxjs'],_0x2b7364['rxjs'][_0x52eb4d(0x200)],_0x2b7364[_0x52eb4d(0x1dd)]));}(this,function(_0x343991,_0x419aba,_0x12b1c3,_0x1803f2,_0x16c3d3,_0x3b5e3c,_0x54c9ea,_0x4c5835,_0x55923b,_0x5a1ef5,_0x14ee26,_0x53d7b4){'use strict';const _0x281a1b=_0x1a66;var _0x2f3b9b=Object[_0x281a1b(0x206)],_0x535ba0=(_0x27d7d5,_0x1a2583,_0x3d3a27)=>_0x1a2583 in _0x27d7d5?_0x2f3b9b(_0x27d7d5,_0x1a2583,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d3a27}):_0x27d7d5[_0x1a2583]=_0x3d3a27,_0x27213f=(_0x547246,_0x22172e,_0x4947c9)=>_0x535ba0(_0x547246,typeof _0x22172e!='symbol'?_0x22172e+'':_0x22172e,_0x4947c9);function _0x1d071f({ref:_0x32446b,..._0x36afd2}){const _0x49c588=_0x281a1b,{icon:_0x5409ea,id:_0x4a0330,className:_0x358c35,extend:_0x22680f,..._0x3e5df6}=_0x36afd2,_0x3cdd54=(_0x49c588(0x275)+_0x4a0330+'\x20'+(_0x358c35||''))[_0x49c588(0x28c)](),_0x4c24cb=_0x3b5e3c['useRef']('_'+_0x85ea34());return _0x582ddb(_0x5409ea,''+_0x4a0330,{'defIds':_0x5409ea['defIds'],'idSuffix':_0x4c24cb['current']},{'ref':_0x32446b,'className':_0x3cdd54,..._0x3e5df6},_0x22680f);}function _0x582ddb(_0x4393c3,_0x163ccf,_0x2f30a1,_0x651e72,_0x54a68c){const _0x23868d=_0x281a1b;return _0x3b5e3c[_0x23868d(0x280)](_0x4393c3[_0x23868d(0x1fc)],{'key':_0x163ccf,..._0x2af4cd(_0x4393c3,_0x2f30a1,_0x54a68c),..._0x651e72},(_0x172862(_0x4393c3,_0x2f30a1)[_0x23868d(0x1f0)]||[])[_0x23868d(0x222)]((_0x2d9d34,_0x35cbbc)=>_0x582ddb(_0x2d9d34,_0x163ccf+'-'+_0x4393c3[_0x23868d(0x1fc)]+'-'+_0x35cbbc,_0x2f30a1,void 0x0,_0x54a68c)));}function _0x2af4cd(_0x5b47c2,_0x483e5b,_0xe6c9f2){const _0x15b34e=_0x281a1b,_0x23b53e={..._0x5b47c2[_0x15b34e(0x284)]};_0xe6c9f2!=null&&_0xe6c9f2[_0x15b34e(0x28d)]&&_0x23b53e[_0x15b34e(0x220)]==='colorChannel1'&&(_0x23b53e['fill']=_0xe6c9f2[_0x15b34e(0x28d)]),_0x5b47c2['tag']==='mask'&&_0x23b53e['id']&&(_0x23b53e['id']=_0x23b53e['id']+_0x483e5b[_0x15b34e(0x264)]),Object[_0x15b34e(0x20b)](_0x23b53e)[_0x15b34e(0x226)](([_0x429f8e,_0xfffdd7])=>{const _0x5215a7=_0x15b34e;_0x429f8e===_0x5215a7(0x27f)&&typeof _0xfffdd7==_0x5215a7(0x1b1)&&(_0x23b53e[_0x429f8e]=_0xfffdd7['replace'](/url\(#(.*)\)/,'url(#$1'+_0x483e5b[_0x5215a7(0x264)]+')'));});const {defIds:_0x53f9c5}=_0x483e5b;return!_0x53f9c5||_0x53f9c5[_0x15b34e(0x261)]===0x0||(_0x5b47c2['tag']===_0x15b34e(0x1bb)&&_0x23b53e[_0x15b34e(0x253)]&&(_0x23b53e[_0x15b34e(0x253)]=_0x23b53e[_0x15b34e(0x253)]+_0x483e5b[_0x15b34e(0x264)]),Object[_0x15b34e(0x20b)](_0x23b53e)[_0x15b34e(0x226)](([_0x9a1fd,_0x125bde])=>{const _0x38849f=_0x15b34e;typeof _0x125bde==_0x38849f(0x1b1)&&(_0x23b53e[_0x9a1fd]=_0x125bde[_0x38849f(0x283)](/url\(#(.*)\)/,_0x38849f(0x1ea)+_0x483e5b[_0x38849f(0x264)]+')'));})),_0x23b53e;}function _0x172862(_0x3b59a6,_0x29b727){const _0x34ada8=_0x281a1b;var _0x181bc2;const {defIds:_0x659760}=_0x29b727;return!_0x659760||_0x659760['length']===0x0?_0x3b59a6:_0x3b59a6['tag']===_0x34ada8(0x259)&&((_0x181bc2=_0x3b59a6[_0x34ada8(0x1f0)])!=null&&_0x181bc2[_0x34ada8(0x261)])?{..._0x3b59a6,'children':_0x3b59a6['children'][_0x34ada8(0x222)](_0x10a6e9=>typeof _0x10a6e9[_0x34ada8(0x284)]['id']==_0x34ada8(0x1b1)&&_0x659760&&_0x659760[_0x34ada8(0x281)](_0x10a6e9[_0x34ada8(0x284)]['id'])?{..._0x10a6e9,'attrs':{..._0x10a6e9[_0x34ada8(0x284)],'id':_0x10a6e9['attrs']['id']+_0x29b727['idSuffix']}}:_0x10a6e9)}:_0x3b59a6;}function _0x85ea34(){const _0x1654d0=_0x281a1b;return Math['random']()[_0x1654d0(0x1ae)](0x24)['substring'](0x2,0x8);}_0x1d071f[_0x281a1b(0x232)]=_0x281a1b(0x1b2);const _0x266ab1={'tag':_0x281a1b(0x1c4),'attrs':{'xmlns':_0x281a1b(0x28a),'fill':_0x281a1b(0x1d5),'viewBox':'0\x200\x2017\x2017','width':_0x281a1b(0x1da),'height':_0x281a1b(0x1da)},'children':[{'tag':_0x281a1b(0x225),'attrs':{'fill':'currentColor','d':_0x281a1b(0x28e)}},{'tag':_0x281a1b(0x225),'attrs':{'fill':_0x281a1b(0x1d9),'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':_0x281a1b(0x252),'clipRule':_0x281a1b(0x252)}}]},_0x5f24c0=_0x3b5e3c[_0x281a1b(0x240)](function(_0x1c90ab,_0x295379){const _0x1f6d87=_0x281a1b;return _0x3b5e3c[_0x1f6d87(0x280)](_0x1d071f,Object[_0x1f6d87(0x1b3)]({},_0x1c90ab,{'id':_0x1f6d87(0x244),'ref':_0x295379,'icon':_0x266ab1}));});_0x5f24c0['displayName']='LiveShareIcon';class _0x58c8c6 extends _0x419aba[_0x281a1b(0x23f)]{constructor(){const _0x431c81=_0x281a1b;super(...arguments),_0x27213f(this,_0x431c81(0x1bd),new Set()),_0x27213f(this,_0x431c81(0x268),new Set());}[_0x281a1b(0x265)](_0x54ff5a){const _0x2dcc64=_0x281a1b;return this[_0x2dcc64(0x1bd)][_0x2dcc64(0x1e7)](_0x54ff5a),_0x419aba[_0x2dcc64(0x249)](()=>this[_0x2dcc64(0x1bd)][_0x2dcc64(0x213)](_0x54ff5a));}[_0x281a1b(0x246)](_0x3d1392){const _0x482f0e=_0x281a1b;return this[_0x482f0e(0x268)][_0x482f0e(0x1e7)](_0x3d1392),_0x419aba[_0x482f0e(0x249)](()=>this[_0x482f0e(0x268)][_0x482f0e(0x213)](_0x3d1392));}['shouldShareOperation'](_0x285007){const _0x497228=_0x281a1b;return this[_0x497228(0x1bd)][_0x497228(0x245)](_0x285007);}['getInitialStates'](_0x475fbe){const _0x498e0f=_0x281a1b;return Array[_0x498e0f(0x241)](this[_0x498e0f(0x268)])[_0x498e0f(0x222)](_0x3ebb7a=>_0x3ebb7a(_0x475fbe));}}var _0x192111=Object['getOwnPropertyDescriptor'],_0xfddd1b=(_0x5e472f,_0xdad4b1,_0x10530a,_0xe97897)=>{const _0x260587=_0x281a1b;for(var _0x2e9849=_0xe97897>0x1?void 0x0:_0xe97897?_0x192111(_0xdad4b1,_0x10530a):_0xdad4b1,_0x448bba=_0x5e472f[_0x260587(0x261)]-0x1,_0x38a242;_0x448bba>=0x0;_0x448bba--)(_0x38a242=_0x5e472f[_0x448bba])&&(_0x2e9849=_0x38a242(_0x2e9849)||_0x2e9849);return _0x2e9849;},_0x471915=(_0x14a456,_0x3719dc)=>(_0x872300,_0x46879d)=>_0x3719dc(_0x872300,_0x46879d,_0x14a456);_0x343991[_0x281a1b(0x24e)]=class extends _0x419aba['RxDisposable']{constructor(_0x3c8e5e,_0x24a808,_0x516443){const _0x2358f2=_0x281a1b;super(),_0x27213f(this,'_entities',new Map()),(this[_0x2358f2(0x20a)]=_0x3c8e5e,this[_0x2358f2(0x25a)]=_0x24a808,this[_0x2358f2(0x223)]=_0x516443,this[_0x2358f2(0x212)]());}async[_0x281a1b(0x1b6)](_0x107296){const _0x31c913=_0x281a1b;return this[_0x31c913(0x20c)][_0x31c913(0x245)](_0x107296)||await this['_startLiveShareCoordinator'](_0x107296),this[_0x31c913(0x20c)]['get'](_0x107296);}[_0x281a1b(0x1ff)](_0x705072){const _0x5b2a4c=_0x281a1b;var _0x246df6;return(_0x246df6=this[_0x5b2a4c(0x20c)][_0x5b2a4c(0x270)](_0x705072))!=null?_0x246df6:null;}[_0x281a1b(0x212)](){const _0x4a8af1=_0x281a1b;this[_0x4a8af1(0x20a)][_0x4a8af1(0x20e)](_0x419aba[_0x4a8af1(0x1e8)][_0x4a8af1(0x256)])[_0x4a8af1(0x24d)](_0x14ee26['takeUntil'](this[_0x4a8af1(0x1f4)]))['subscribe'](async _0x35d5ec=>{const _0x3a2db0=_0x4a8af1,_0x23d1a3=_0x35d5ec['getUnitId']();this[_0x3a2db0(0x20c)][_0x3a2db0(0x245)](_0x23d1a3)||this[_0x3a2db0(0x1ec)](_0x23d1a3);}),this[_0x4a8af1(0x20a)][_0x4a8af1(0x1fa)](_0x419aba[_0x4a8af1(0x1e8)][_0x4a8af1(0x256)])[_0x4a8af1(0x24d)](_0x14ee26[_0x4a8af1(0x23c)](this['dispose$']))[_0x4a8af1(0x218)](_0x49cc1b=>{const _0x36a9b3=_0x4a8af1,_0x35f5f0=_0x49cc1b['getUnitId'](),_0x3afd6b=this['_entities'][_0x36a9b3(0x270)](_0x35f5f0);_0x3afd6b==null||_0x3afd6b[_0x36a9b3(0x296)]();});}async[_0x281a1b(0x1ec)](_0x3e4c36){const _0x45d1a0=_0x281a1b,_0x419683=await this[_0x45d1a0(0x223)][_0x45d1a0(0x23d)](_0x3e4c36),_0x223195=this[_0x45d1a0(0x25a)][_0x45d1a0(0x27b)](_0x343991[_0x45d1a0(0x1f8)],_0x3e4c36,_0x419683);return _0x223195['init'](),this[_0x45d1a0(0x20c)][_0x45d1a0(0x1b4)](_0x3e4c36,_0x223195),_0x223195;}},_0x343991['LiveShareController']=_0xfddd1b([_0x471915(0x0,_0x419aba[_0x281a1b(0x27c)]),_0x471915(0x1,_0x419aba[_0x281a1b(0x21a)](_0x419aba[_0x281a1b(0x208)])),_0x471915(0x2,_0x419aba[_0x281a1b(0x21a)](_0x4c5835['CollaborationSessionService']))],_0x343991[_0x281a1b(0x24e)]);var _0x2a1584=(_0x53da8c=>(_0x53da8c['OFFLINE']=_0x281a1b(0x1b9),_0x53da8c['IDLE']='idle',_0x53da8c[_0x281a1b(0x21f)]=_0x281a1b(0x1d2),_0x53da8c[_0x281a1b(0x254)]='not-following',_0x53da8c[_0x281a1b(0x238)]=_0x281a1b(0x1b8),_0x53da8c))(_0x2a1584||{});const _0x200ec3='SAME_OPERATION_SHARE_INTERVAL',_0x1acac5=0xc8;_0x343991['LiveShareCoordinator']=class extends _0x419aba[_0x281a1b(0x209)]{constructor(_0x1a2562,_0xf09099,_0x232008,_0x396ee0,_0x3efb93){const _0x2b6974=_0x281a1b;super(),_0x27213f(this,'_status$',new _0x5a1ef5[(_0x2b6974(0x1ce))]('idle')),_0x27213f(this,_0x2b6974(0x214),this[_0x2b6974(0x231)][_0x2b6974(0x1ca)]()),_0x27213f(this,_0x2b6974(0x212),!0x1),_0x27213f(this,_0x2b6974(0x1e5),null),_0x27213f(this,'_presenter',null),(this[_0x2b6974(0x224)]=_0x1a2562,this[_0x2b6974(0x1cd)]=_0xf09099,this[_0x2b6974(0x1c2)]=_0x232008,this[_0x2b6974(0x229)]=_0x396ee0,this[_0x2b6974(0x1be)]=_0x3efb93);}get['_status'](){const _0x4568e0=_0x281a1b;return this[_0x4568e0(0x231)]['getValue']();}[_0x281a1b(0x296)](){const _0x5e2fa8=_0x281a1b;var _0x3158bd;(_0x3158bd=this[_0x5e2fa8(0x1e5)])==null||_0x3158bd[_0x5e2fa8(0x296)](),this[_0x5e2fa8(0x231)]['next']('idle'),this[_0x5e2fa8(0x231)][_0x5e2fa8(0x25d)]();}[_0x281a1b(0x299)](){const _0x57da5c=_0x281a1b;return this[_0x57da5c(0x279)];}[_0x281a1b(0x1e2)](){const _0x38c451=_0x281a1b;this[_0x38c451(0x212)]||(this[_0x38c451(0x212)]=!0x0,this[_0x38c451(0x1cd)][_0x38c451(0x233)][_0x38c451(0x24d)](_0x14ee26['takeUntil'](this[_0x38c451(0x1f4)]))[_0x38c451(0x218)](_0xb7fa69=>{const _0x17a6f5=_0x38c451;switch(_0xb7fa69){case _0x4c5835[_0x17a6f5(0x1bc)][_0x17a6f5(0x1d6)]:this[_0x17a6f5(0x23b)]();break;case _0x4c5835['SessionStatus'][_0x17a6f5(0x21b)]:this[_0x17a6f5(0x1c0)]();break;}}),this[_0x38c451(0x1cd)][_0x38c451(0x1ed)][_0x38c451(0x24d)](_0x14ee26[_0x38c451(0x23c)](this[_0x38c451(0x1f4)]))[_0x38c451(0x218)](_0x48fbd0=>{const _0x511f10=_0x38c451,{eventID:_0x386b40}=_0x48fbd0;switch(_0x386b40){case _0x54c9ea['CollaborationEvent'][_0x511f10(0x1fe)]:this['_handleNewHost'](_0x48fbd0);break;case _0x54c9ea[_0x511f10(0x23e)][_0x511f10(0x1e4)]:this[_0x511f10(0x1f5)](_0x48fbd0);break;case _0x54c9ea[_0x511f10(0x23e)][_0x511f10(0x21c)]:this[_0x511f10(0x22f)]();break;case _0x54c9ea[_0x511f10(0x23e)][_0x511f10(0x278)]:this['_handleNewChangeSets'](_0x48fbd0);break;}}));}[_0x281a1b(0x25e)](){const _0x4bcde6=_0x281a1b;this[_0x4bcde6(0x1cd)][_0x4bcde6(0x26f)]({'eventID':_0x54c9ea[_0x4bcde6(0x23e)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4bcde6(0x224)],'userID':this[_0x4bcde6(0x1cd)][_0x4bcde6(0x1b5)]()}},this['_unitID']);}[_0x281a1b(0x1f3)](){const _0x593ce5=_0x281a1b;this['_status']==='presenting'&&(this[_0x593ce5(0x231)][_0x593ce5(0x274)](_0x593ce5(0x215)),this[_0x593ce5(0x1cd)][_0x593ce5(0x26f)]({'eventID':_0x54c9ea[_0x593ce5(0x23e)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x593ce5(0x224)]}},this[_0x593ce5(0x224)]));}[_0x281a1b(0x291)](){const _0x50f35a=_0x281a1b;this[_0x50f35a(0x279)]===_0x50f35a(0x257)&&(this[_0x50f35a(0x231)][_0x50f35a(0x274)](_0x50f35a(0x1d2)),this[_0x50f35a(0x1eb)]());}[_0x281a1b(0x204)](){const _0x1040fb=_0x281a1b;this[_0x1040fb(0x279)]===_0x1040fb(0x1d2)&&this[_0x1040fb(0x24a)]();}[_0x281a1b(0x202)](_0x4a7fc2){const _0x19ceeb=_0x281a1b,{presenter:_0x198cbe}=_0x4a7fc2['data'],_0x5ae819=this[_0x19ceeb(0x1cd)]['getMemberID']();this[_0x19ceeb(0x276)]=_0x198cbe,_0x198cbe===_0x5ae819?(this['_stopFollowing'](),this[_0x19ceeb(0x1c5)]()):this['_status']!==_0x19ceeb(0x257)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x281a1b(0x288)](){const _0x444fe2=_0x281a1b,_0x30e07d={'eventID':_0x54c9ea[_0x444fe2(0x23e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x444fe2(0x26f)](_0x30e07d,this[_0x444fe2(0x224)]);}[_0x281a1b(0x22f)](){const _0x4f11cf=_0x281a1b;this[_0x4f11cf(0x276)]=null,this[_0x4f11cf(0x279)]!==_0x4f11cf(0x1b8)&&this[_0x4f11cf(0x1df)]();}[_0x281a1b(0x1b7)](_0x14fd97){const _0x940e12=_0x281a1b;if(this[_0x940e12(0x279)]===_0x940e12(0x1d2)&&this['_presenter']===_0x14fd97[_0x940e12(0x28b)][_0x940e12(0x221)]){const _0x16ce21=_0x54c9ea[_0x940e12(0x1c1)](_0x14fd97[_0x940e12(0x28b)])[_0x940e12(0x290)][_0x940e12(0x298)]()[_0x940e12(0x1f1)](_0xf8c9a9=>_0xf8c9a9['id']===_0x55923b[_0x940e12(0x1b0)]['id']);if(_0x16ce21){const _0x541895=_0x16ce21[_0x940e12(0x258)][_0x940e12(0x1d1)],_0x1534b0=_0x16ce21['params'][_0x940e12(0x1c8)]['id'];setTimeout(()=>{const _0x4bc089=_0x940e12;this[_0x4bc089(0x1be)][_0x4bc089(0x1f6)](_0x55923b[_0x4bc089(0x273)]['id'],{'unitId':_0x541895,'subUnitId':_0x1534b0},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x336f92=_0x281a1b;this[_0x336f92(0x231)][_0x336f92(0x274)](_0x336f92(0x1b8));const _0xf043ca=new Map(),_0x16426e=this[_0x336f92(0x1e5)]=new _0x419aba[(_0x336f92(0x1fd))]();_0x16426e['add'](_0x419aba['toDisposable'](()=>{const _0x1d09ad=_0x336f92;_0xf043ca[_0x1d09ad(0x226)](_0x122d34=>_0x122d34[_0x1d09ad(0x25d)]()),_0xf043ca['clear']();})),_0x16426e[_0x336f92(0x1e7)](this['_commandService'][_0x336f92(0x1af)](_0x1df75f=>{const _0xe48c12=_0x336f92;var _0x2dcde6;if(_0x1df75f['type']!==_0x419aba[_0xe48c12(0x247)][_0xe48c12(0x207)]||!this['_liveShareService'][_0xe48c12(0x210)](_0x1df75f['id']))return;const {id:_0x5206b2}=_0x1df75f;let _0x4632c0;_0xf043ca[_0xe48c12(0x245)](_0x5206b2)?_0x4632c0=_0xf043ca['get'](_0x5206b2):(_0x4632c0=new _0x5a1ef5[(_0xe48c12(0x260))](),_0xf043ca[_0xe48c12(0x1b4)](_0x5206b2,_0x4632c0),_0x4632c0['pipe'](_0x14ee26[_0xe48c12(0x26d)]((_0x2dcde6=this['_configService'][_0xe48c12(0x25b)](_0x200ec3))!=null?_0x2dcde6:_0x1acac5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe48c12(0x218)](_0x225e2e=>{const _0x4c1369=_0xe48c12;this[_0x4c1369(0x1cd)][_0x4c1369(0x26f)]({'eventID':_0x54c9ea[_0x4c1369(0x23e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4c1369(0x224)],'operations':{[_0x225e2e['id']]:{'id':_0x225e2e['id'],'params':JSON[_0x4c1369(0x239)](_0x225e2e[_0x4c1369(0x258)])}}}},this['_unitID']);})),_0x4632c0['next'](_0x1df75f);})),this[_0x336f92(0x229)][_0x336f92(0x282)](this[_0x336f92(0x224)])[_0x336f92(0x226)](_0x5d9dc8=>this[_0x336f92(0x1cd)][_0x336f92(0x26f)]({'eventID':_0x54c9ea[_0x336f92(0x23e)][_0x336f92(0x1e4)],'data':{'unitID':this[_0x336f92(0x224)],'operations':{[_0x5d9dc8['id']]:{'id':_0x5d9dc8['id'],'params':JSON[_0x336f92(0x239)](_0x5d9dc8['params'])}}}},this['_unitID']));}[_0x281a1b(0x237)](){const _0x5d6b96=_0x281a1b;var _0x51ac67;this[_0x5d6b96(0x231)][_0x5d6b96(0x274)](_0x5d6b96(0x215)),(_0x51ac67=this['_commandDisposable'])==null||_0x51ac67['dispose'](),this[_0x5d6b96(0x1e5)]=null;}['_startFollowing'](){const _0x1e3d1d=_0x281a1b;var _0x232e6b;(_0x232e6b=this[_0x1e3d1d(0x1e5)])==null||_0x232e6b[_0x1e3d1d(0x296)](),this[_0x1e3d1d(0x231)]['next'](_0x1e3d1d(0x1d2));}[_0x281a1b(0x1df)](){const _0x5b906c=_0x281a1b;var _0x58e55d;this[_0x5b906c(0x231)][_0x5b906c(0x274)](_0x5b906c(0x215)),(_0x58e55d=this['_commandDisposable'])==null||_0x58e55d[_0x5b906c(0x296)](),this[_0x5b906c(0x1e5)]=null;}[_0x281a1b(0x24a)](){const _0x1374af=_0x281a1b;var _0x361e0f;this[_0x1374af(0x231)][_0x1374af(0x274)](_0x1374af(0x257)),(_0x361e0f=this[_0x1374af(0x1e5)])==null||_0x361e0f[_0x1374af(0x296)]();}[_0x281a1b(0x1f5)](_0x4d4f40){const _0x2e4a22=_0x281a1b;if(['presenting',_0x2e4a22(0x257),_0x2e4a22(0x1b9)][_0x2e4a22(0x281)](this[_0x2e4a22(0x279)])||!_0x4d4f40[_0x2e4a22(0x28b)][_0x2e4a22(0x269)]||_0x4d4f40[_0x2e4a22(0x28b)][_0x2e4a22(0x269)]===this[_0x2e4a22(0x1cd)][_0x2e4a22(0x1b5)]())return;this[_0x2e4a22(0x279)]===_0x2e4a22(0x215)&&this[_0x2e4a22(0x1eb)]();const _0x31496c=_0x4d4f40[_0x2e4a22(0x28b)]['operations'];Object[_0x2e4a22(0x205)](_0x31496c)[_0x2e4a22(0x226)](_0x437f4e=>{const _0x330ab8=_0x2e4a22;this[_0x330ab8(0x1be)][_0x330ab8(0x1f6)](_0x437f4e['id'],_0x437f4e[_0x330ab8(0x258)]?JSON[_0x330ab8(0x217)](_0x437f4e['params']):null,{'fromCollab':!0x0});});}[_0x281a1b(0x23b)](){const _0x421ea3=_0x281a1b;var _0x1f69a1;this[_0x421ea3(0x231)][_0x421ea3(0x274)]('offline'),(_0x1f69a1=this[_0x421ea3(0x1e5)])==null||_0x1f69a1[_0x421ea3(0x296)]();}[_0x281a1b(0x1c0)](){const _0x2e7934=_0x281a1b;this[_0x2e7934(0x231)][_0x2e7934(0x274)](_0x2e7934(0x215)),this[_0x2e7934(0x288)]();}},_0x343991[_0x281a1b(0x1f8)]=_0xfddd1b([_0x471915(0x2,_0x419aba[_0x281a1b(0x227)]),_0x471915(0x3,_0x419aba[_0x281a1b(0x21a)](_0x58c8c6)),_0x471915(0x4,_0x419aba['ICommandService'])],_0x343991[_0x281a1b(0x1f8)]);function _0x159047(){const _0x1290f5=_0x281a1b,_0x3f09c5=_0x12b1c3[_0x1290f5(0x295)](_0x343991['LiveShareController']),_0x37887a=_0x12b1c3['useDependency'](_0x419aba['IUniverInstanceService']),_0x57468e=_0x12b1c3['useObservable'](()=>_0x37887a[_0x1290f5(0x27e)](_0x419aba['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x54a152,_0x194b88]=_0x3b5e3c[_0x1290f5(0x1e0)](null),[_0x990d8,_0x418da5]=_0x3b5e3c[_0x1290f5(0x1e0)](_0x2a1584['IDLE']),_0x9c7690=_0x3b5e3c[_0x1290f5(0x286)](null);return _0x3b5e3c['useEffect'](()=>(_0x57468e&&_0x3f09c5[_0x1290f5(0x1b6)](_0x57468e[_0x1290f5(0x287)]())['then'](_0x22fbcf=>{const _0x4e9101=_0x1290f5;_0x194b88(_0x22fbcf),_0x9c7690[_0x4e9101(0x1c3)]=_0x22fbcf[_0x4e9101(0x214)][_0x4e9101(0x218)](_0x453936=>{_0x418da5(_0x453936);});}),()=>{const _0x3428c5=_0x1290f5;var _0x1a2a8a;(_0x1a2a8a=_0x9c7690[_0x3428c5(0x1c3)])==null||_0x1a2a8a[_0x3428c5(0x297)](),_0x9c7690[_0x3428c5(0x1c3)]=null;}),[_0x57468e,_0x3f09c5]),_0x54a152?_0x1803f2[_0x1290f5(0x262)](_0x16c3d3[_0x1290f5(0x203)],{'align':'end','disabled':_0x990d8===_0x2a1584[_0x1290f5(0x1d6)],'className':_0x1290f5(0x21e),'overlay':_0x1803f2[_0x1290f5(0x262)](_0x13fc8b,{'status':_0x990d8,'coordinator':_0x54a152}),'children':_0x1803f2[_0x1290f5(0x262)]('button',{'className':_0x16c3d3[_0x1290f5(0x294)](_0x1290f5(0x234),{'univer-cursor-not-allowed':_0x990d8===_0x2a1584[_0x1290f5(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x990d8!==_0x2a1584[_0x1290f5(0x1d6)]}),'type':_0x1290f5(0x1f7),'children':_0x1803f2[_0x1290f5(0x262)](_0x5f24c0,{'className':_0x1290f5(0x21d)})})}):null;}function _0x13fc8b(_0x3d9508){const _0x5f5048=_0x281a1b,{status:_0x4c2f7d,coordinator:_0x51891c}=_0x3d9508;switch(_0x4c2f7d){case _0x2a1584[_0x5f5048(0x263)]:return _0x1803f2[_0x5f5048(0x262)](_0x30d1df,{'coordinator':_0x51891c});case _0x2a1584['FOLLOWING']:return _0x1803f2[_0x5f5048(0x262)](_0x2ff567,{'coordinator':_0x51891c});case _0x2a1584[_0x5f5048(0x254)]:return _0x1803f2[_0x5f5048(0x262)](_0x2d28f4,{'coordinator':_0x51891c});case _0x2a1584[_0x5f5048(0x1d6)]:return _0x1803f2[_0x5f5048(0x262)](_0x513aa8,{});case _0x2a1584[_0x5f5048(0x238)]:return _0x1803f2[_0x5f5048(0x262)](_0xe1dee1,{'coordinator':_0x51891c});default:return null;}}function _0x30d1df(_0x18e07e){const _0x312cb0=_0x281a1b,{coordinator:_0x4ab78c}=_0x18e07e;return _0x1803f2[_0x312cb0(0x25c)](_0x1803f2[_0x312cb0(0x1db)],{'children':[_0x1803f2['jsx'](_0x312cb0(0x1e3),{'className':_0x312cb0(0x1e1),'children':_0x312cb0(0x26b)}),_0x1803f2[_0x312cb0(0x262)](_0x16c3d3[_0x312cb0(0x243)],{'onClick':()=>_0x4ab78c['tryStartPresenting'](),'children':_0x312cb0(0x1cc)})]});}function _0x2ff567(_0x31a3e9){const _0x2a04a1=_0x281a1b,{coordinator:_0x13de5a}=_0x31a3e9;return _0x1803f2[_0x2a04a1(0x25c)](_0x1803f2['Fragment'],{'children':[_0x1803f2[_0x2a04a1(0x262)](_0x2a04a1(0x1e3),{'className':_0x2a04a1(0x1e1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1803f2[_0x2a04a1(0x262)](_0x16c3d3[_0x2a04a1(0x243)],{'onClick':()=>_0x13de5a['stopFollowing'](),'children':_0x2a04a1(0x266)})]});}function _0x2d28f4(_0x945298){const _0x4677a8=_0x281a1b,{coordinator:_0x49194f}=_0x945298;return _0x1803f2[_0x4677a8(0x25c)](_0x1803f2[_0x4677a8(0x1db)],{'children':[_0x1803f2['jsx']('div',{'className':_0x4677a8(0x1e1),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1803f2[_0x4677a8(0x262)](_0x16c3d3[_0x4677a8(0x243)],{'variant':_0x4677a8(0x1ba),'onClick':()=>_0x49194f[_0x4677a8(0x291)](),'children':_0x4677a8(0x235)})]});}function _0xe1dee1(_0x32b0cd){const _0x2221a4=_0x281a1b,{coordinator:_0x2009bb}=_0x32b0cd;return _0x1803f2[_0x2221a4(0x25c)](_0x1803f2[_0x2221a4(0x1db)],{'children':[_0x1803f2['jsx'](_0x2221a4(0x1e3),{'className':_0x2221a4(0x1e1),'children':_0x2221a4(0x20f)}),_0x1803f2[_0x2221a4(0x262)](_0x16c3d3[_0x2221a4(0x243)],{'variant':'default','onClick':()=>_0x2009bb[_0x2221a4(0x1f3)](),'children':_0x2221a4(0x25f)})]});}function _0x513aa8(){const _0x1679bb=_0x281a1b;return _0x1803f2[_0x1679bb(0x262)](_0x1803f2[_0x1679bb(0x1db)],{'children':_0x1679bb(0x1f9)});}var _0x3a5d1a=Object[_0x281a1b(0x285)],_0x55a9fe=(_0x28e33b,_0x17a9a1,_0x56a06b,_0x2f38fa)=>{const _0x294b82=_0x281a1b;for(var _0x13f383=_0x2f38fa>0x1?void 0x0:_0x2f38fa?_0x3a5d1a(_0x17a9a1,_0x56a06b):_0x17a9a1,_0x43f45c=_0x28e33b[_0x294b82(0x261)]-0x1,_0xac9add;_0x43f45c>=0x0;_0x43f45c--)(_0xac9add=_0x28e33b[_0x43f45c])&&(_0x13f383=_0xac9add(_0x13f383)||_0x13f383);return _0x13f383;},_0x3a54e=(_0x3c4ad2,_0xbcfae5)=>(_0x574a13,_0x189a12)=>_0xbcfae5(_0x574a13,_0x189a12,_0x3c4ad2);_0x343991['DesktopLiveShareController']=class extends _0x419aba[_0x281a1b(0x23f)]{constructor(_0x2c5c69,_0x3bb7d3){const _0x2bb450=_0x281a1b;super(),this[_0x2bb450(0x25a)]=_0x2c5c69,this[_0x2bb450(0x27d)]=_0x3bb7d3,this[_0x2bb450(0x1ef)]();}[_0x281a1b(0x1ef)](){const _0x3c6aa2=_0x281a1b;this[_0x3c6aa2(0x1cb)](this[_0x3c6aa2(0x27d)][_0x3c6aa2(0x1ad)](_0x12b1c3[_0x3c6aa2(0x1e9)]['HEADER_MENU'],()=>_0x12b1c3[_0x3c6aa2(0x1d7)](_0x159047,this[_0x3c6aa2(0x25a)])));}},_0x343991[_0x281a1b(0x1dc)]=_0x55a9fe([_0x3a54e(0x0,_0x419aba['Inject'](_0x419aba[_0x281a1b(0x208)])),_0x3a54e(0x1,_0x12b1c3[_0x281a1b(0x22c)])],_0x343991[_0x281a1b(0x1dc)]);const _0x379ea6=_0x281a1b(0x289),_0x474c64={};var _0x1fc054=Object[_0x281a1b(0x285)],_0x9eb14a=(_0x1fd5df,_0x3b5504,_0x34cec6,_0x15b6a5)=>{for(var _0x7a7e45=_0x15b6a5>0x1?void 0x0:_0x15b6a5?_0x1fc054(_0x3b5504,_0x34cec6):_0x3b5504,_0x5e73b2=_0x1fd5df['length']-0x1,_0x4fbead;_0x5e73b2>=0x0;_0x5e73b2--)(_0x4fbead=_0x1fd5df[_0x5e73b2])&&(_0x7a7e45=_0x4fbead(_0x7a7e45)||_0x7a7e45);return _0x7a7e45;},_0x24b81b=(_0x3ade13,_0x16e33f)=>(_0x59b2f0,_0x5ea6f4)=>_0x16e33f(_0x59b2f0,_0x5ea6f4,_0x3ade13);let _0x1878f0=class extends _0x419aba['Disposable']{constructor(_0x5d9121){const _0x2f7f55=_0x281a1b;super(),this[_0x2f7f55(0x229)]=_0x5d9121,this[_0x2f7f55(0x212)]();}[_0x281a1b(0x212)](){const _0x4ac9ee=_0x281a1b;[_0x53d7b4[_0x4ac9ee(0x1c6)]['id'],_0x53d7b4[_0x4ac9ee(0x24c)]['id'],_0x55923b[_0x4ac9ee(0x273)]['id']]['forEach'](_0x4ec089=>{const _0x21b70e=_0x4ac9ee;this['disposeWithMe'](this['_liveShareService'][_0x21b70e(0x265)](_0x4ec089));});}};_0x1878f0=_0x9eb14a([_0x24b81b(0x0,_0x419aba[_0x281a1b(0x21a)](_0x58c8c6))],_0x1878f0);var _0x3c9baf=Object[_0x281a1b(0x206)],_0x250dd6=Object[_0x281a1b(0x285)],_0x325761=(_0x1fbc68,_0x28700d,_0x48ef32)=>_0x28700d in _0x1fbc68?_0x3c9baf(_0x1fbc68,_0x28700d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ef32}):_0x1fbc68[_0x28700d]=_0x48ef32,_0x4f7245=(_0x281e5b,_0x38ef30,_0x56ff55,_0x3b9293)=>{const _0x45ad7d=_0x281a1b;for(var _0x2c53a1=_0x3b9293>0x1?void 0x0:_0x3b9293?_0x250dd6(_0x38ef30,_0x56ff55):_0x38ef30,_0x2623fb=_0x281e5b[_0x45ad7d(0x261)]-0x1,_0x3cc186;_0x2623fb>=0x0;_0x2623fb--)(_0x3cc186=_0x281e5b[_0x2623fb])&&(_0x2c53a1=_0x3cc186(_0x2c53a1)||_0x2c53a1);return _0x2c53a1;},_0x1dda6f=(_0x23309e,_0x464764)=>(_0xf80039,_0xb99659)=>_0x464764(_0xf80039,_0xb99659,_0x23309e),_0x1ece15=(_0x570574,_0x4b1b42,_0x17f8ee)=>_0x325761(_0x570574,typeof _0x4b1b42!=_0x281a1b(0x1d0)?_0x4b1b42+'':_0x4b1b42,_0x17f8ee);const _0x405018=_0x281a1b(0x211);_0x343991['UniverLiveSharePlugin']=class extends _0x419aba[_0x281a1b(0x255)]{constructor(_0x578bb0=_0x474c64,_0x3b2ddf,_0x19933b){const _0x4c4db1=_0x281a1b;super(),this[_0x4c4db1(0x293)]=_0x578bb0,this[_0x4c4db1(0x25a)]=_0x3b2ddf,this[_0x4c4db1(0x1c2)]=_0x19933b;const {..._0x82bc65}=_0x419aba['merge']({},_0x474c64,this['_config']);this[_0x4c4db1(0x1c2)]['setConfig'](_0x379ea6,_0x82bc65);}[_0x281a1b(0x267)](){const _0x29c7ad=_0x281a1b;_0x419aba[_0x29c7ad(0x230)](this[_0x29c7ad(0x25a)],_0x419aba[_0x29c7ad(0x24b)]([[_0x58c8c6],[_0x343991[_0x29c7ad(0x24e)]],[_0x1878f0],[_0x343991['DesktopLiveShareController']]],this['_config']['override'])),_0x419aba[_0x29c7ad(0x1d4)](this[_0x29c7ad(0x25a)],[[_0x1878f0]]);}[_0x281a1b(0x1cf)](){const _0x45f8e8=_0x281a1b;_0x419aba[_0x45f8e8(0x1d4)](this[_0x45f8e8(0x25a)],[[_0x343991['DesktopLiveShareController']]]);}},_0x1ece15(_0x343991[_0x281a1b(0x201)],_0x281a1b(0x1e6),_0x419aba['UniverInstanceType']['UNIVER_UNKNOWN']),_0x1ece15(_0x343991['UniverLiveSharePlugin'],_0x281a1b(0x216),_0x405018),_0x343991[_0x281a1b(0x201)]=_0x4f7245([_0x419aba[_0x281a1b(0x272)](_0x4c5835[_0x281a1b(0x1fb)]),_0x1dda6f(0x1,_0x419aba[_0x281a1b(0x21a)](_0x419aba[_0x281a1b(0x208)])),_0x1dda6f(0x2,_0x419aba[_0x281a1b(0x227)])],_0x343991['UniverLiveSharePlugin']),_0x343991['LiveShare']=_0x159047,_0x343991['LiveShareService']=_0x58c8c6,_0x343991['LiveShareStatus']=_0x2a1584,Object[_0x281a1b(0x206)](_0x343991,Symbol[_0x281a1b(0x23a)],{'value':_0x281a1b(0x1c7)});}));
1
+ (function(_0x256ba4,_0x1451a0){const _0xc91a9f=_0x50e4,_0x5e3335=_0x256ba4();while(!![]){try{const _0x2a778e=parseInt(_0xc91a9f(0x108))/0x1*(-parseInt(_0xc91a9f(0x1c5))/0x2)+parseInt(_0xc91a9f(0x11b))/0x3*(-parseInt(_0xc91a9f(0x1a5))/0x4)+-parseInt(_0xc91a9f(0x161))/0x5+-parseInt(_0xc91a9f(0x1a1))/0x6*(parseInt(_0xc91a9f(0x143))/0x7)+-parseInt(_0xc91a9f(0x13f))/0x8*(-parseInt(_0xc91a9f(0x107))/0x9)+parseInt(_0xc91a9f(0x126))/0xa+parseInt(_0xc91a9f(0x16e))/0xb;if(_0x2a778e===_0x1451a0)break;else _0x5e3335['push'](_0x5e3335['shift']());}catch(_0x267662){_0x5e3335['push'](_0x5e3335['shift']());}}}(_0x25fb,0x9be0f),function(_0x321a60,_0x1d77dd){const _0x830e2a=_0x50e4;typeof exports==_0x830e2a(0x1c1)&&typeof module<'u'?_0x1d77dd(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==_0x830e2a(0x15d)&&define['amd']?define([_0x830e2a(0x10f),_0x830e2a(0x11c),_0x830e2a(0x106),'react/jsx-runtime','@univerjs/design',_0x830e2a(0x147),_0x830e2a(0x124),_0x830e2a(0x1c6),_0x830e2a(0x1bb),_0x830e2a(0x116),_0x830e2a(0x122),_0x830e2a(0x170)],_0x1d77dd):(_0x321a60=typeof globalThis<'u'?globalThis:_0x321a60||self,_0x1d77dd(_0x321a60[_0x830e2a(0x1b0)]={},_0x321a60[_0x830e2a(0x15c)],_0x321a60[_0x830e2a(0x10e)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x1c0)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x132)],_0x321a60[_0x830e2a(0x1cb)],_0x321a60[_0x830e2a(0x10a)],_0x321a60[_0x830e2a(0x116)],_0x321a60['rxjs'][_0x830e2a(0xed)],_0x321a60['UniverSheetsUi']));}(this,function(_0x491357,_0x3cd3bb,_0x672739,_0x164c98,_0x29f95a,_0x29551b,_0x470106,_0x3f3ef9,_0x103de8,_0xb17181,_0x4f2afb,_0x405304){'use strict';const _0x36a365=_0x50e4;var _0x5d242e=Object[_0x36a365(0x130)],_0x577596=(_0x3e730f,_0x44c3e8,_0x4cafe0)=>_0x44c3e8 in _0x3e730f?_0x5d242e(_0x3e730f,_0x44c3e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cafe0}):_0x3e730f[_0x44c3e8]=_0x4cafe0,_0x5abcce=(_0x576cd5,_0x34e6ca,_0x104d7e)=>_0x577596(_0x576cd5,typeof _0x34e6ca!=_0x36a365(0x158)?_0x34e6ca+'':_0x34e6ca,_0x104d7e);function _0x2c7261({ref:_0x1c702c,..._0x3a3c8f}){const _0x1ac38f=_0x36a365,{icon:_0x3cdad0,id:_0x16bbd5,className:_0x57723d,extend:_0xe7b8bc,..._0x3fd566}=_0x3a3c8f,_0x3fe8ee=('univerjs-icon\x20univerjs-icon-'+_0x16bbd5+'\x20'+(_0x57723d||''))[_0x1ac38f(0x1a8)](),_0x3b92fb=_0x29551b[_0x1ac38f(0x181)]('_'+_0x501319());return _0x455187(_0x3cdad0,''+_0x16bbd5,{'defIds':_0x3cdad0[_0x1ac38f(0x17e)],'idSuffix':_0x3b92fb['current']},{'ref':_0x1c702c,'className':_0x3fe8ee,..._0x3fd566},_0xe7b8bc);}function _0x455187(_0x3ba8ef,_0x17ccd9,_0x3f6a02,_0x13bb5b,_0x5a082b){const _0x1cd4a5=_0x36a365;return _0x29551b[_0x1cd4a5(0x129)](_0x3ba8ef[_0x1cd4a5(0x155)],{'key':_0x17ccd9,..._0x16a26e(_0x3ba8ef,_0x3f6a02,_0x5a082b),..._0x13bb5b},(_0x3da627(_0x3ba8ef,_0x3f6a02)['children']||[])[_0x1cd4a5(0x1bd)]((_0x4aee43,_0x2a0c7e)=>_0x455187(_0x4aee43,_0x17ccd9+'-'+_0x3ba8ef[_0x1cd4a5(0x155)]+'-'+_0x2a0c7e,_0x3f6a02,void 0x0,_0x5a082b)));}function _0x16a26e(_0x306970,_0xdd763d,_0x312224){const _0x4d170d=_0x36a365,_0x350902={..._0x306970[_0x4d170d(0x1ae)]};_0x312224!=null&&_0x312224[_0x4d170d(0x1b2)]&&_0x350902['fill']===_0x4d170d(0x1b2)&&(_0x350902[_0x4d170d(0x183)]=_0x312224[_0x4d170d(0x1b2)]),_0x306970['tag']===_0x4d170d(0x1ca)&&_0x350902['id']&&(_0x350902['id']=_0x350902['id']+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)['forEach'](([_0x3af791,_0x3654c3])=>{const _0x9b3a73=_0x4d170d;_0x3af791===_0x9b3a73(0x1ca)&&typeof _0x3654c3==_0x9b3a73(0x163)&&(_0x350902[_0x3af791]=_0x3654c3[_0x9b3a73(0x100)](/url\(#(.*)\)/,_0x9b3a73(0x13b)+_0xdd763d[_0x9b3a73(0x19c)]+')'));});const {defIds:_0x546e18}=_0xdd763d;return!_0x546e18||_0x546e18[_0x4d170d(0x117)]===0x0||(_0x306970[_0x4d170d(0x155)]===_0x4d170d(0xfc)&&_0x350902[_0x4d170d(0x16d)]&&(_0x350902[_0x4d170d(0x16d)]=_0x350902[_0x4d170d(0x16d)]+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)[_0x4d170d(0xf9)](([_0x4fa374,_0x2f447c])=>{const _0xa24093=_0x4d170d;typeof _0x2f447c==_0xa24093(0x163)&&(_0x350902[_0x4fa374]=_0x2f447c[_0xa24093(0x100)](/url\(#(.*)\)/,_0xa24093(0x13b)+_0xdd763d[_0xa24093(0x19c)]+')'));})),_0x350902;}function _0x3da627(_0xa39da8,_0xcf1e1a){const _0x3a4cc9=_0x36a365;var _0x3b82c0;const {defIds:_0x491a59}=_0xcf1e1a;return!_0x491a59||_0x491a59[_0x3a4cc9(0x117)]===0x0?_0xa39da8:_0xa39da8[_0x3a4cc9(0x155)]===_0x3a4cc9(0x16a)&&((_0x3b82c0=_0xa39da8[_0x3a4cc9(0x1c8)])!=null&&_0x3b82c0[_0x3a4cc9(0x117)])?{..._0xa39da8,'children':_0xa39da8['children'][_0x3a4cc9(0x1bd)](_0x5cecc8=>typeof _0x5cecc8[_0x3a4cc9(0x1ae)]['id']==_0x3a4cc9(0x163)&&_0x491a59&&_0x491a59[_0x3a4cc9(0x142)](_0x5cecc8[_0x3a4cc9(0x1ae)]['id'])?{..._0x5cecc8,'attrs':{..._0x5cecc8[_0x3a4cc9(0x1ae)],'id':_0x5cecc8['attrs']['id']+_0xcf1e1a[_0x3a4cc9(0x19c)]}}:_0x5cecc8)}:_0xa39da8;}function _0x501319(){const _0x627ea6=_0x36a365;return Math[_0x627ea6(0x14f)]()[_0x627ea6(0x11e)](0x24)['substring'](0x2,0x8);}_0x2c7261[_0x36a365(0xf7)]=_0x36a365(0x153);const _0x790996={'tag':_0x36a365(0x120),'attrs':{'xmlns':_0x36a365(0x1ce),'fill':_0x36a365(0xf0),'viewBox':_0x36a365(0x1c4),'width':'1em','height':'1em'},'children':[{'tag':_0x36a365(0x1a4),'attrs':{'fill':'currentColor','d':_0x36a365(0xee)}},{'tag':_0x36a365(0x1a4),'attrs':{'fill':_0x36a365(0x14a),'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':_0x36a365(0x16f),'clipRule':_0x36a365(0x16f)}}]},_0x3bc5e6=_0x29551b[_0x36a365(0x190)](function(_0x5237ac,_0x5482bf){const _0x449a5b=_0x36a365;return _0x29551b[_0x449a5b(0x129)](_0x2c7261,Object[_0x449a5b(0x140)]({},_0x5237ac,{'id':'live-share-icon','ref':_0x5482bf,'icon':_0x790996}));});_0x3bc5e6['displayName']=_0x36a365(0x11a);class _0x18b732 extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(){const _0x77daa5=_0x36a365;super(...arguments),_0x5abcce(this,_0x77daa5(0x12f),new Set()),_0x5abcce(this,_0x77daa5(0x168),new Set());}['registerSharedOperation'](_0x32882c){const _0x4483b8=_0x36a365;return this[_0x4483b8(0x12f)][_0x4483b8(0x13d)](_0x32882c),_0x3cd3bb[_0x4483b8(0x1be)](()=>this[_0x4483b8(0x12f)]['delete'](_0x32882c));}['registerInitialStateReporter'](_0x3ab8e4){const _0x4a806a=_0x36a365;return this[_0x4a806a(0x168)][_0x4a806a(0x13d)](_0x3ab8e4),_0x3cd3bb['toDisposable'](()=>this[_0x4a806a(0x168)][_0x4a806a(0x10b)](_0x3ab8e4));}[_0x36a365(0xf2)](_0x1e46c5){const _0x1fc4c9=_0x36a365;return this[_0x1fc4c9(0x12f)][_0x1fc4c9(0x151)](_0x1e46c5);}[_0x36a365(0x15f)](_0xa7077f){const _0x2687fd=_0x36a365;return Array[_0x2687fd(0x16c)](this[_0x2687fd(0x168)])[_0x2687fd(0x1bd)](_0x484e46=>_0x484e46(_0xa7077f));}}var _0x5b837f=Object[_0x36a365(0x1cd)],_0xe9851c=(_0x5b1915,_0x43aef0,_0x18bfcd,_0x51de18)=>{for(var _0x430610=_0x51de18>0x1?void 0x0:_0x51de18?_0x5b837f(_0x43aef0,_0x18bfcd):_0x43aef0,_0x47ddc9=_0x5b1915['length']-0x1,_0x1bca34;_0x47ddc9>=0x0;_0x47ddc9--)(_0x1bca34=_0x5b1915[_0x47ddc9])&&(_0x430610=_0x1bca34(_0x430610)||_0x430610);return _0x430610;},_0x51da42=(_0x97ecb3,_0x35cbc6)=>(_0x6112f9,_0x4015a2)=>_0x35cbc6(_0x6112f9,_0x4015a2,_0x97ecb3);_0x491357[_0x36a365(0xf4)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x4e70f7,_0x1961d6,_0x31a690){const _0x2451c6=_0x36a365;super(),_0x5abcce(this,'_entities',new Map()),(this[_0x2451c6(0x167)]=_0x4e70f7,this[_0x2451c6(0x1af)]=_0x1961d6,this[_0x2451c6(0x162)]=_0x31a690,this[_0x2451c6(0x123)]());}async[_0x36a365(0x141)](_0x43e3ac){const _0x3478d7=_0x36a365;return this[_0x3478d7(0xfd)][_0x3478d7(0x151)](_0x43e3ac)||await this[_0x3478d7(0x1c7)](_0x43e3ac),this[_0x3478d7(0xfd)][_0x3478d7(0x10c)](_0x43e3ac);}['getLiveShareCoordinatorSync'](_0x27383d){const _0x116e48=_0x36a365;var _0x23d96d;return(_0x23d96d=this[_0x116e48(0xfd)][_0x116e48(0x10c)](_0x27383d))!=null?_0x23d96d:null;}[_0x36a365(0x123)](){const _0x49187a=_0x36a365;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cd3bb[_0x49187a(0xf3)]['UNIVER_SHEET'])['pipe'](_0x4f2afb['takeUntil'](this[_0x49187a(0xf1)]))[_0x49187a(0x18a)](async _0x1f37ff=>{const _0x5f1ad2=_0x49187a,_0x28eafe=_0x1f37ff['getUnitId']();this['_entities'][_0x5f1ad2(0x151)](_0x28eafe)||this[_0x5f1ad2(0x1c7)](_0x28eafe);}),this[_0x49187a(0x167)][_0x49187a(0x199)](_0x3cd3bb['UniverInstanceType']['UNIVER_SHEET'])[_0x49187a(0x1cf)](_0x4f2afb[_0x49187a(0x17d)](this['dispose$']))[_0x49187a(0x18a)](_0x1e93b5=>{const _0x22bc33=_0x49187a,_0x5821d6=_0x1e93b5[_0x22bc33(0x1a6)](),_0x4a8ccd=this[_0x22bc33(0xfd)]['get'](_0x5821d6);_0x4a8ccd==null||_0x4a8ccd[_0x22bc33(0x15e)]();});}async[_0x36a365(0x1c7)](_0x13acf1){const _0x304867=_0x36a365,_0x4a6e03=await this[_0x304867(0x162)][_0x304867(0x156)](_0x13acf1),_0x3f8226=this['_injector'][_0x304867(0x19e)](_0x491357['LiveShareCoordinator'],_0x13acf1,_0x4a6e03);return _0x3f8226['init'](),this[_0x304867(0xfd)][_0x304867(0x18b)](_0x13acf1,_0x3f8226),_0x3f8226;}},_0x491357[_0x36a365(0xf4)]=_0xe9851c([_0x51da42(0x0,_0x3cd3bb[_0x36a365(0x1aa)]),_0x51da42(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x51da42(0x2,_0x3cd3bb[_0x36a365(0xff)](_0x3f3ef9[_0x36a365(0x13a)]))],_0x491357['LiveShareController']);var _0x3df07c=(_0x5ad58f=>(_0x5ad58f[_0x36a365(0x138)]='offline',_0x5ad58f[_0x36a365(0x135)]='idle',_0x5ad58f[_0x36a365(0x15a)]=_0x36a365(0xf5),_0x5ad58f[_0x36a365(0x17a)]=_0x36a365(0x193),_0x5ad58f['PRESENTING']='presenting',_0x5ad58f))(_0x3df07c||{});const _0x4de5d6=_0x36a365(0x11f),_0x5457f3=0xc8;_0x491357[_0x36a365(0x180)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x3ae48a,_0x154c2d,_0x3daef5,_0x3896b7,_0xee1013){const _0x105769=_0x36a365;super(),_0x5abcce(this,_0x105769(0x119),new _0xb17181['BehaviorSubject'](_0x105769(0x18c))),_0x5abcce(this,_0x105769(0x102),this[_0x105769(0x119)]['asObservable']()),_0x5abcce(this,_0x105769(0x123),!0x1),_0x5abcce(this,_0x105769(0x172),null),_0x5abcce(this,_0x105769(0x176),null),(this[_0x105769(0x1bf)]=_0x3ae48a,this[_0x105769(0x1b8)]=_0x154c2d,this['_configService']=_0x3daef5,this[_0x105769(0x1c3)]=_0x3896b7,this['_commandService']=_0xee1013);}get[_0x36a365(0x131)](){const _0x48d6c0=_0x36a365;return this[_0x48d6c0(0x119)]['getValue']();}[_0x36a365(0x15e)](){const _0x3a12c6=_0x36a365;var _0x5d6109;(_0x5d6109=this[_0x3a12c6(0x172)])==null||_0x5d6109['dispose'](),this[_0x3a12c6(0x119)][_0x3a12c6(0x1ab)](_0x3a12c6(0x18c)),this[_0x3a12c6(0x119)][_0x3a12c6(0x14d)]();}[_0x36a365(0x10d)](){const _0xd71700=_0x36a365;return this[_0xd71700(0x131)];}[_0x36a365(0x18e)](){const _0x18e200=_0x36a365;this[_0x18e200(0x123)]||(this[_0x18e200(0x123)]=!0x0,this[_0x18e200(0x1b8)]['sessionStatus$'][_0x18e200(0x1cf)](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x44ffd8=>{const _0x49be6a=_0x18e200;switch(_0x44ffd8){case _0x3f3ef9[_0x49be6a(0x12c)]['OFFLINE']:this[_0x49be6a(0xf8)]();break;case _0x3f3ef9[_0x49be6a(0x12c)][_0x49be6a(0x12b)]:this[_0x49be6a(0x19d)]();break;}}),this[_0x18e200(0x1b8)][_0x18e200(0x11d)]['pipe'](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x5971ec=>{const _0x542af9=_0x18e200,{eventID:_0x526d75}=_0x5971ec;switch(_0x526d75){case _0x470106[_0x542af9(0x19b)][_0x542af9(0x192)]:this[_0x542af9(0x14c)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x148)]:this[_0x542af9(0x160)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x17b)]:this[_0x542af9(0x152)]();break;case _0x470106[_0x542af9(0x19b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5971ec);break;}}));}[_0x36a365(0x157)](){const _0x505909=_0x36a365;this[_0x505909(0x1b8)]['send']({'eventID':_0x470106[_0x505909(0x19b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x505909(0x1bf)],'userID':this[_0x505909(0x1b8)][_0x505909(0x1a3)]()}},this[_0x505909(0x1bf)]);}['stopPresenting'](){const _0x446196=_0x36a365;this[_0x446196(0x131)]===_0x446196(0x134)&&(this[_0x446196(0x119)][_0x446196(0x1ab)]('idle'),this[_0x446196(0x1b8)]['send']({'eventID':_0x470106[_0x446196(0x19b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x446196(0x1bf)]}},this[_0x446196(0x1bf)]));}[_0x36a365(0xf6)](){const _0xfd5485=_0x36a365;this[_0xfd5485(0x131)]===_0xfd5485(0x193)&&(this['_status$'][_0xfd5485(0x1ab)]('following'),this[_0xfd5485(0x144)]());}[_0x36a365(0x1b6)](){const _0x4062be=_0x36a365;this[_0x4062be(0x131)]===_0x4062be(0xf5)&&this['_stopFollowing']();}['_handleNewHost'](_0x1804a9){const _0x156d3d=_0x36a365,{presenter:_0x3317a4}=_0x1804a9[_0x156d3d(0x184)],_0x37c5ab=this[_0x156d3d(0x1b8)][_0x156d3d(0x1a3)]();this[_0x156d3d(0x176)]=_0x3317a4,_0x3317a4===_0x37c5ab?(this[_0x156d3d(0x121)](),this[_0x156d3d(0x1bc)]()):this['_status']!==_0x156d3d(0x193)&&(this[_0x156d3d(0x14b)](),this[_0x156d3d(0x144)]());}[_0x36a365(0x115)](){const _0xc6c74=_0x36a365,_0x1eacd6={'eventID':_0x470106[_0xc6c74(0x19b)][_0xc6c74(0x1ad)]};this[_0xc6c74(0x1b8)][_0xc6c74(0x17f)](_0x1eacd6,this[_0xc6c74(0x1bf)]);}[_0x36a365(0x152)](){const _0x54c8a8=_0x36a365;this[_0x54c8a8(0x176)]=null,this[_0x54c8a8(0x131)]!==_0x54c8a8(0x134)&&this[_0x54c8a8(0x166)]();}['_handleNewChangeSets'](_0x50b2ee){const _0x5770bc=_0x36a365;if(this['_status']===_0x5770bc(0xf5)&&this[_0x5770bc(0x176)]===_0x50b2ee[_0x5770bc(0x184)][_0x5770bc(0x133)]){const _0x545722=_0x470106[_0x5770bc(0x136)](_0x50b2ee[_0x5770bc(0x184)])[_0x5770bc(0xef)]['reverse']()['find'](_0x6ed44d=>_0x6ed44d['id']===_0x103de8[_0x5770bc(0x19f)]['id']);if(_0x545722){const _0x273581=_0x545722[_0x5770bc(0x188)][_0x5770bc(0x15b)],_0x327320=_0x545722['params'][_0x5770bc(0x109)]['id'];setTimeout(()=>{const _0x48a24e=_0x5770bc;this['_commandService']['executeCommand'](_0x103de8[_0x48a24e(0x113)]['id'],{'unitId':_0x273581,'subUnitId':_0x327320},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1b0da3=_0x36a365;this['_status$'][_0x1b0da3(0x1ab)](_0x1b0da3(0x134));const _0x22926a=new Map(),_0x492ced=this['_commandDisposable']=new _0x3cd3bb[(_0x1b0da3(0x159))]();_0x492ced[_0x1b0da3(0x13d)](_0x3cd3bb[_0x1b0da3(0x1be)](()=>{const _0x9845df=_0x1b0da3;_0x22926a[_0x9845df(0xf9)](_0x1eeea7=>_0x1eeea7[_0x9845df(0x14d)]()),_0x22926a['clear']();})),_0x492ced[_0x1b0da3(0x13d)](this[_0x1b0da3(0x1a7)]['onCommandExecuted'](_0x58d0c7=>{const _0x5e53e3=_0x1b0da3;var _0x2c7631;if(_0x58d0c7[_0x5e53e3(0x194)]!==_0x3cd3bb[_0x5e53e3(0x196)][_0x5e53e3(0x19a)]||!this[_0x5e53e3(0x1c3)]['shouldShareOperation'](_0x58d0c7['id']))return;const {id:_0x1a87a6}=_0x58d0c7;let _0x2ec9c4;_0x22926a[_0x5e53e3(0x151)](_0x1a87a6)?_0x2ec9c4=_0x22926a[_0x5e53e3(0x10c)](_0x1a87a6):(_0x2ec9c4=new _0xb17181['Subject'](),_0x22926a[_0x5e53e3(0x18b)](_0x1a87a6,_0x2ec9c4),_0x2ec9c4[_0x5e53e3(0x1cf)](_0x4f2afb['throttleTime']((_0x2c7631=this['_configService']['getConfig'](_0x4de5d6))!=null?_0x2c7631:_0x5457f3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8ab933=>{const _0x19b41f=_0x5e53e3;this[_0x19b41f(0x1b8)][_0x19b41f(0x17f)]({'eventID':_0x470106[_0x19b41f(0x19b)][_0x19b41f(0x148)],'data':{'unitID':this[_0x19b41f(0x1bf)],'operations':{[_0x8ab933['id']]:{'id':_0x8ab933['id'],'params':JSON[_0x19b41f(0x175)](_0x8ab933['params'])}}}},this['_unitID']);})),_0x2ec9c4['next'](_0x58d0c7);})),this['_liveShareService'][_0x1b0da3(0x15f)](this[_0x1b0da3(0x1bf)])['forEach'](_0x553b3d=>this[_0x1b0da3(0x1b8)][_0x1b0da3(0x17f)]({'eventID':_0x470106['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x553b3d['id']]:{'id':_0x553b3d['id'],'params':JSON['stringify'](_0x553b3d['params'])}}}},this[_0x1b0da3(0x1bf)]));}[_0x36a365(0x14b)](){const _0x2e0d45=_0x36a365;var _0x41fa55;this[_0x2e0d45(0x119)][_0x2e0d45(0x1ab)](_0x2e0d45(0x18c)),(_0x41fa55=this[_0x2e0d45(0x172)])==null||_0x41fa55[_0x2e0d45(0x15e)](),this[_0x2e0d45(0x172)]=null;}[_0x36a365(0x144)](){const _0x1af7d8=_0x36a365;var _0x210495;(_0x210495=this['_commandDisposable'])==null||_0x210495['dispose'](),this[_0x1af7d8(0x119)]['next'](_0x1af7d8(0xf5));}[_0x36a365(0x166)](){const _0x45ec7b=_0x36a365;var _0x15190c;this[_0x45ec7b(0x119)][_0x45ec7b(0x1ab)](_0x45ec7b(0x18c)),(_0x15190c=this[_0x45ec7b(0x172)])==null||_0x15190c[_0x45ec7b(0x15e)](),this[_0x45ec7b(0x172)]=null;}['_stopFollowing'](){const _0x5accaa=_0x36a365;var _0x2e3b14;this[_0x5accaa(0x119)][_0x5accaa(0x1ab)](_0x5accaa(0x193)),(_0x2e3b14=this[_0x5accaa(0x172)])==null||_0x2e3b14['dispose']();}[_0x36a365(0x160)](_0x3f140e){const _0x4f70cd=_0x36a365;if([_0x4f70cd(0x134),'not-following',_0x4f70cd(0x186)][_0x4f70cd(0x142)](this[_0x4f70cd(0x131)])||!_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]||_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]===this[_0x4f70cd(0x1b8)]['getMemberID']())return;this[_0x4f70cd(0x131)]===_0x4f70cd(0x18c)&&this[_0x4f70cd(0x144)]();const _0x525bc2=_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x174)];Object[_0x4f70cd(0x104)](_0x525bc2)['forEach'](_0x5b083f=>{const _0x46bb14=_0x4f70cd;this[_0x46bb14(0x1a7)]['executeCommand'](_0x5b083f['id'],_0x5b083f[_0x46bb14(0x188)]?JSON[_0x46bb14(0x171)](_0x5b083f[_0x46bb14(0x188)]):null,{'fromCollab':!0x0});});}[_0x36a365(0xf8)](){const _0x5d9fbb=_0x36a365;var _0x2e1ba1;this[_0x5d9fbb(0x119)][_0x5d9fbb(0x1ab)](_0x5d9fbb(0x186)),(_0x2e1ba1=this[_0x5d9fbb(0x172)])==null||_0x2e1ba1['dispose']();}[_0x36a365(0x19d)](){const _0x2f0779=_0x36a365;this[_0x2f0779(0x119)][_0x2f0779(0x1ab)]('idle'),this['_fetchOperations']();}},_0x491357[_0x36a365(0x180)]=_0xe9851c([_0x51da42(0x2,_0x3cd3bb[_0x36a365(0x1b7)]),_0x51da42(0x3,_0x3cd3bb[_0x36a365(0xff)](_0x18b732)),_0x51da42(0x4,_0x3cd3bb[_0x36a365(0x1b3)])],_0x491357['LiveShareCoordinator']);function _0x2ea681(){const _0x467b8b=_0x36a365,_0xb886c5=_0x672739['useDependency'](_0x491357[_0x467b8b(0xf4)]),_0x454f7d=_0x672739[_0x467b8b(0x118)](_0x3cd3bb[_0x467b8b(0x1aa)]),_0x309003=_0x672739['useObservable'](()=>_0x454f7d[_0x467b8b(0x187)](_0x3cd3bb[_0x467b8b(0xf3)][_0x467b8b(0x13e)]),void 0x0,!0x1,[]),[_0x156559,_0x3d4952]=_0x29551b[_0x467b8b(0x182)](null),[_0xe1a51b,_0x257e7e]=_0x29551b['useState'](_0x3df07c[_0x467b8b(0x135)]),_0x2a0830=_0x29551b[_0x467b8b(0x181)](null);return _0x29551b[_0x467b8b(0x198)](()=>(_0x309003&&_0xb886c5[_0x467b8b(0x141)](_0x309003[_0x467b8b(0x1a6)]())[_0x467b8b(0x164)](_0x4b989d=>{const _0x46d4e5=_0x467b8b;_0x3d4952(_0x4b989d),_0x2a0830[_0x46d4e5(0x145)]=_0x4b989d[_0x46d4e5(0x102)]['subscribe'](_0x786c59=>{_0x257e7e(_0x786c59);});}),()=>{const _0x163108=_0x467b8b;var _0x43c0bd;(_0x43c0bd=_0x2a0830[_0x163108(0x145)])==null||_0x43c0bd['unsubscribe'](),_0x2a0830[_0x163108(0x145)]=null;}),[_0x309003,_0xb886c5]),_0x156559?_0x164c98[_0x467b8b(0x14e)](_0x29f95a[_0x467b8b(0x17c)],{'align':'end','disabled':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'className':_0x467b8b(0x18f),'overlay':_0x164c98['jsx'](_0x25883b,{'status':_0xe1a51b,'coordinator':_0x156559}),'children':_0x164c98[_0x467b8b(0x14e)]('button',{'className':_0x29f95a['clsx'](_0x467b8b(0x114),{'univer-cursor-not-allowed':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1a51b!==_0x3df07c[_0x467b8b(0x138)]}),'type':_0x467b8b(0x1a2),'children':_0x164c98[_0x467b8b(0x14e)](_0x3bc5e6,{'className':_0x467b8b(0x101)})})}):null;}function _0x25883b(_0x283d9a){const _0x433a0a=_0x36a365,{status:_0x2e960a,coordinator:_0x3c9e62}=_0x283d9a;switch(_0x2e960a){case _0x3df07c[_0x433a0a(0x135)]:return _0x164c98[_0x433a0a(0x14e)](_0x2e699c,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x15a)]:return _0x164c98['jsx'](_0xf279b1,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x17a)]:return _0x164c98[_0x433a0a(0x14e)](_0x585135,{'coordinator':_0x3c9e62});case _0x3df07c['OFFLINE']:return _0x164c98[_0x433a0a(0x14e)](_0x237e8e,{});case _0x3df07c[_0x433a0a(0x189)]:return _0x164c98[_0x433a0a(0x14e)](_0x18f485,{'coordinator':_0x3c9e62});default:return null;}}function _0x2e699c(_0x58143d){const _0x5a32a1=_0x36a365,{coordinator:_0x2f0364}=_0x58143d;return _0x164c98[_0x5a32a1(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x5a32a1(0x14e)](_0x5a32a1(0x12a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5a32a1(0x111)}),_0x164c98[_0x5a32a1(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x2f0364[_0x5a32a1(0x157)](),'children':'Start'})]});}function _0xf279b1(_0x41f3e4){const _0x56080d=_0x36a365,{coordinator:_0x5ee280}=_0x41f3e4;return _0x164c98[_0x56080d(0x197)](_0x164c98[_0x56080d(0x195)],{'children':[_0x164c98[_0x56080d(0x14e)](_0x56080d(0x12a),{'className':_0x56080d(0x1ac),'children':_0x56080d(0x127)}),_0x164c98[_0x56080d(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x5ee280[_0x56080d(0x1b6)](),'children':'Stop\x20following'})]});}function _0x585135(_0x8de4ab){const _0x4f3437=_0x36a365,{coordinator:_0x268243}=_0x8de4ab;return _0x164c98[_0x4f3437(0x197)](_0x164c98[_0x4f3437(0x195)],{'children':[_0x164c98['jsx'](_0x4f3437(0x12a),{'className':_0x4f3437(0x1ac),'children':_0x4f3437(0xfe)}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':'text','onClick':()=>_0x268243[_0x4f3437(0xf6)](),'children':_0x4f3437(0x154)})]});}function _0x18f485(_0x42792a){const _0x42631e=_0x36a365,{coordinator:_0x5f2e9a}=_0x42792a;return _0x164c98[_0x42631e(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x42631e(0x14e)](_0x42631e(0x12a),{'className':_0x42631e(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':_0x42631e(0x165),'onClick':()=>_0x5f2e9a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x237e8e(){const _0x2d85a9=_0x36a365;return _0x164c98[_0x2d85a9(0x14e)](_0x164c98[_0x2d85a9(0x195)],{'children':'You\x27are\x20offline.'});}var _0xcc146=Object[_0x36a365(0x1cd)],_0x225f4e=(_0x3d4020,_0x5b7b2c,_0x17fdd2,_0x354cac)=>{const _0xabc629=_0x36a365;for(var _0x134029=_0x354cac>0x1?void 0x0:_0x354cac?_0xcc146(_0x5b7b2c,_0x17fdd2):_0x5b7b2c,_0x24661a=_0x3d4020[_0xabc629(0x117)]-0x1,_0x2be5b6;_0x24661a>=0x0;_0x24661a--)(_0x2be5b6=_0x3d4020[_0x24661a])&&(_0x134029=_0x2be5b6(_0x134029)||_0x134029);return _0x134029;},_0x2d0621=(_0x9ae30b,_0x522add)=>(_0x309222,_0x5b72d3)=>_0x522add(_0x309222,_0x5b72d3,_0x9ae30b);_0x491357[_0x36a365(0x1cc)]=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0xbdd968,_0xb37d8a){const _0x44d3f2=_0x36a365;super(),this[_0x44d3f2(0x1af)]=_0xbdd968,this[_0x44d3f2(0x12e)]=_0xb37d8a,this['_mountLiveShare']();}[_0x36a365(0x1b5)](){const _0x576c09=_0x36a365;this[_0x576c09(0x125)](this[_0x576c09(0x12e)][_0x576c09(0x128)](_0x672739['BuiltInUIPart'][_0x576c09(0x110)],()=>_0x672739[_0x576c09(0x1b4)](_0x2ea681,this[_0x576c09(0x1af)])));}},_0x491357[_0x36a365(0x1cc)]=_0x225f4e([_0x2d0621(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x2d0621(0x1,_0x672739['IUIPartsService'])],_0x491357[_0x36a365(0x1cc)]);const _0x113052='live-share.config',_0x513162={};var _0x2e44b3=Object[_0x36a365(0x1cd)],_0xb50faa=(_0x55f961,_0x3e12f8,_0x114dad,_0x1323fa)=>{const _0x21a235=_0x36a365;for(var _0x2f4ecb=_0x1323fa>0x1?void 0x0:_0x1323fa?_0x2e44b3(_0x3e12f8,_0x114dad):_0x3e12f8,_0x2767dd=_0x55f961[_0x21a235(0x117)]-0x1,_0x51ce4d;_0x2767dd>=0x0;_0x2767dd--)(_0x51ce4d=_0x55f961[_0x2767dd])&&(_0x2f4ecb=_0x51ce4d(_0x2f4ecb)||_0x2f4ecb);return _0x2f4ecb;},_0xe4a308=(_0xb58d0f,_0x522bf4)=>(_0x2fdcf4,_0x257e87)=>_0x522bf4(_0x2fdcf4,_0x257e87,_0xb58d0f);let _0x4ffbd9=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0x4ca743){const _0xbb66fa=_0x36a365;super(),this[_0xbb66fa(0x1c3)]=_0x4ca743,this['_init']();}[_0x36a365(0x123)](){const _0x42ad04=_0x36a365;[_0x405304[_0x42ad04(0x13c)]['id'],_0x405304[_0x42ad04(0x146)]['id'],_0x103de8[_0x42ad04(0x113)]['id']]['forEach'](_0x29fb41=>{const _0x46cf32=_0x42ad04;this[_0x46cf32(0x125)](this['_liveShareService'][_0x46cf32(0x16b)](_0x29fb41));});}};_0x4ffbd9=_0xb50faa([_0xe4a308(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x18b732))],_0x4ffbd9);var _0x38145c=Object[_0x36a365(0x130)],_0x54e80a=Object[_0x36a365(0x1cd)],_0x1c1cff=(_0x8137b2,_0x34e2b8,_0x3db8bf)=>_0x34e2b8 in _0x8137b2?_0x38145c(_0x8137b2,_0x34e2b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db8bf}):_0x8137b2[_0x34e2b8]=_0x3db8bf,_0x4b6478=(_0x75f138,_0x224f53,_0x1da574,_0x7ea292)=>{const _0x51e164=_0x36a365;for(var _0x38d983=_0x7ea292>0x1?void 0x0:_0x7ea292?_0x54e80a(_0x224f53,_0x1da574):_0x224f53,_0x3ce49f=_0x75f138[_0x51e164(0x117)]-0x1,_0x984f87;_0x3ce49f>=0x0;_0x3ce49f--)(_0x984f87=_0x75f138[_0x3ce49f])&&(_0x38d983=_0x984f87(_0x38d983)||_0x38d983);return _0x38d983;},_0x3df10e=(_0x1fbee1,_0xef1bf2)=>(_0x4da6bd,_0x2e2596)=>_0xef1bf2(_0x4da6bd,_0x2e2596,_0x1fbee1),_0x1e8743=(_0x3c4514,_0x11a72d,_0x4889cd)=>_0x1c1cff(_0x3c4514,typeof _0x11a72d!=_0x36a365(0x158)?_0x11a72d+'':_0x11a72d,_0x4889cd);const _0x36851a=_0x36a365(0x150);_0x491357[_0x36a365(0x1ba)]=class extends _0x3cd3bb[_0x36a365(0x139)]{constructor(_0x4a6b27=_0x513162,_0x2d16d9,_0x145abd){const _0x25d5b8=_0x36a365;super(),this[_0x25d5b8(0x173)]=_0x4a6b27,this[_0x25d5b8(0x1af)]=_0x2d16d9,this[_0x25d5b8(0x112)]=_0x145abd;const {..._0x52d8a7}=_0x3cd3bb[_0x25d5b8(0x149)]({},_0x513162,this[_0x25d5b8(0x173)]);this['_configService'][_0x25d5b8(0x185)](_0x113052,_0x52d8a7);}[_0x36a365(0xfa)](){const _0x9bf4cd=_0x36a365;_0x3cd3bb[_0x9bf4cd(0x169)](this[_0x9bf4cd(0x1af)],_0x3cd3bb[_0x9bf4cd(0x137)]([[_0x18b732],[_0x491357[_0x9bf4cd(0xf4)]],[_0x4ffbd9],[_0x491357[_0x9bf4cd(0x1cc)]]],this['_config'][_0x9bf4cd(0x177)])),_0x3cd3bb[_0x9bf4cd(0x1c2)](this['_injector'],[[_0x4ffbd9]]);}[_0x36a365(0x179)](){const _0x3c33ae=_0x36a365;_0x3cd3bb[_0x3c33ae(0x1c2)](this[_0x3c33ae(0x1af)],[[_0x491357['DesktopLiveShareController']]]);}},_0x1e8743(_0x491357[_0x36a365(0x1ba)],'type',_0x3cd3bb[_0x36a365(0xf3)][_0x36a365(0x18d)]),_0x1e8743(_0x491357['UniverLiveSharePlugin'],_0x36a365(0x1a9),_0x36851a),_0x491357['UniverLiveSharePlugin']=_0x4b6478([_0x3cd3bb[_0x36a365(0x1b9)](_0x3f3ef9['UniverCollaborationClientPlugin']),_0x3df10e(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x3df10e(0x2,_0x3cd3bb[_0x36a365(0x1b7)])],_0x491357[_0x36a365(0x1ba)]),_0x491357[_0x36a365(0x1b1)]=_0x2ea681,_0x491357[_0x36a365(0x1c9)]=_0x18b732,_0x491357['LiveShareStatus']=_0x3df07c,Object[_0x36a365(0x130)](_0x491357,Symbol[_0x36a365(0x178)],{'value':'Module'});}));function _0x50e4(_0x4db43a,_0x1dfd64){_0x4db43a=_0x4db43a-0xed;const _0x25fbd1=_0x25fb();let _0x50e4e5=_0x25fbd1[_0x4db43a];return _0x50e4e5;}function _0x25fb(){const _0x5abef2=['evenodd','@univerjs/sheets-ui','parse','_commandDisposable','_config','operations','stringify','_presenter','override','toStringTag','onRendered','NOT_FOLLOWING','LIVESHARE_TERMINATE','Dropdown','takeUntil','defIds','send','LiveShareCoordinator','useRef','useState','fill','data','setConfig','offline','getCurrentTypeOfUnit$','params','PRESENTING','subscribe','set','idle','UNIVER_UNKNOWN','init','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','forwardRef','presenter','LIVESHARE_NEW_HOST','not-following','type','Fragment','CommandType','jsxs','useEffect','getTypeOfUnitDisposed$','OPERATION','CollaborationEvent','idSuffix','_handleOnline','createInstance','InsertSheetMutation','Disposable','5574ExEgkB','button','getMemberID','path','1516ZYTPdW','getUnitId','_commandService','trim','pluginName','IUniverInstanceService','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','attrs','_injector','UniverProLiveShare','LiveShare','colorChannel1','ICommandService','connectInjector','_mountLiveShare','stopFollowing','IConfigService','_collabSession','DependentOn','UniverLiveSharePlugin','@univerjs/sheets','_startPresenting','map','toDisposable','_unitID','UniverDesign','object','touchDependencies','_liveShareService','0\x200\x2017\x2017','22sPRvtz','@univerjs-pro/collaboration-client','_startLiveShareCoordinator','children','LiveShareService','mask','UniverProCollaborationClient','DesktopLiveShareController','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','pipe','operators','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','mutations','none','dispose$','shouldShareOperation','UniverInstanceType','LiveShareController','following','startFollowing','displayName','_handleOffline','forEach','onStarting','Injector','use','_entities','You\x27re\x20not\x20following\x20the\x20presenter','Inject','replace','univer-size-4','status$','React','values','entries','@univerjs/ui','41589xHqfkZ','26651leLUlM','sheet','UniverSheets','delete','get','getStatus','UniverUi','exports','HEADER_MENU','Present\x20this\x20document','_configService','SetWorksheetActiveOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','rxjs','length','useDependency','_status$','LiveShareIcon','6423jsXNvm','@univerjs/core','event$','toString','SAME_OPERATION_SHARE_INTERVAL','svg','_stopFollowing','rxjs/operators','_init','@univerjs-pro/collaboration','disposeWithMe','11893980TkhqwN','You\x27re\x20following\x20the\x20presenter','registerComponent','createElement','div','ONLINE','SessionStatus','RxDisposable','_uiPartsService','_sharedOperations','defineProperty','_status','UniverProCollaboration','memberID','presenting','IDLE','parseProtocolChangeset','mergeOverrideWithDependencies','OFFLINE','Plugin','CollaborationSessionService','url(#$1','SetZoomRatioOperation','add','UNIVER_SHEET','1832TrCYPw','assign','getLiveShareCoordinator','includes','9429trzwPA','_startFollowing','current','SetScrollOperation','react','LIVESHARE_OPERATION','merge','currentColor','_stopPresenting','_handleNewHost','complete','jsx','random','UNIVER_LIVE_SHARE_PLUGIN','has','_handleTerminate','UniverIcon','Start\x20following','tag','requireSession','tryStartPresenting','symbol','DisposableCollection','FOLLOWING','unitId','UniverCore','function','dispose','getInitialStates','_handleOperation','1864995WGBKbF','_collabSessionService','string','then','default','_beIdle','_univerInstanceService','_reporters','registerDependencies','defs','registerSharedOperation','from','xlink:href','12318174mkJrMs'];_0x25fb=function(){return _0x5abef2;};return _0x25fb();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0-insiders.20260106-79b11f9",
3
+ "version": "0.15.0-insiders.20260107-3441c7a",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260106-79b11f9",
61
- "@univerjs-pro/collaboration": "0.15.0-insiders.20260106-79b11f9",
62
- "@univerjs/engine-render": "0.15.0-insiders.20260106-79b11f9",
63
- "@univerjs/sheets-ui": "0.15.0-insiders.20260106-79b11f9",
64
- "@univerjs/sheets": "0.15.0-insiders.20260106-79b11f9",
65
- "@univerjs/design": "0.15.0-insiders.20260106-79b11f9",
66
- "@univerjs/ui": "0.15.0-insiders.20260106-79b11f9",
67
- "@univerjs/core": "0.15.0-insiders.20260106-79b11f9"
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3441c7a",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3441c7a",
62
+ "@univerjs/design": "0.15.0-insiders.20260107-3441c7a",
63
+ "@univerjs/engine-render": "0.15.0-insiders.20260107-3441c7a",
64
+ "@univerjs/core": "0.15.0-insiders.20260107-3441c7a",
65
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3441c7a",
66
+ "@univerjs/sheets": "0.15.0-insiders.20260107-3441c7a",
67
+ "@univerjs/ui": "0.15.0-insiders.20260107-3441c7a"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,8 +74,8 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.3.0",
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",