@univerjs-pro/live-share 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3d1cfdf

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';const _0x5ce0e1=_0x28b5;(function(_0x45623f,_0x34432e){const _0x5a5c0c=_0x28b5,_0x5457bd=_0x45623f();while(!![]){try{const _0x437028=-parseInt(_0x5a5c0c(0x9b))/0x1+parseInt(_0x5a5c0c(0xb7))/0x2+-parseInt(_0x5a5c0c(0xa2))/0x3*(parseInt(_0x5a5c0c(0xb1))/0x4)+parseInt(_0x5a5c0c(0xad))/0x5+-parseInt(_0x5a5c0c(0xa7))/0x6*(parseInt(_0x5a5c0c(0x9c))/0x7)+-parseInt(_0x5a5c0c(0xa0))/0x8*(-parseInt(_0x5a5c0c(0xba))/0x9)+parseInt(_0x5a5c0c(0xaf))/0xa;if(_0x437028===_0x34432e)break;else _0x5457bd['push'](_0x5457bd['shift']());}catch(_0x252b13){_0x5457bd['push'](_0x5457bd['shift']());}}}(_0x3298,0xb0f60));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x5ce0e1(0x9e)]{[_0x5ce0e1(0xb2)](_0x2e6c0d,_0x11dfe4,_0x42a5c5,_0x213480,_0x2d399c){const _0x2bb76c=_0x5ce0e1,_0x8355a0=_0x2e6c0d[_0x2bb76c(0xab)](n[_0x2bb76c(0x98)]),_0x3e4f07=_0x2e6c0d['get'](g[_0x2bb76c(0x97)]),_0x47e9ff=_0x11dfe4['getUnitId'](),_0x67bd81=_0x11dfe4[_0x2bb76c(0x96)](),_0x54380d=_0x8355a0[_0x2bb76c(0x95)](_0x47e9ff);(_0x54380d==null?void 0x0:_0x54380d['getStatus']())!==n[_0x2bb76c(0xbd)][_0x2bb76c(0xa1)]||(_0x42a5c5['getSheetId']()!==_0x67bd81['getSheetId']()&&this['_commandService'][_0x2bb76c(0xa3)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x47e9ff,'subUnitId':_0x42a5c5[_0x2bb76c(0xb5)]()}),!_0x3e4f07['getRenderById'](_0x47e9ff))||_0x2d399c[_0x2bb76c(0xaa)](f[_0x2bb76c(0xbe)]['id'],{'unitId':_0x11dfe4[_0x2bb76c(0xb8)](),'sheetId':_0x42a5c5[_0x2bb76c(0xb5)](),'sheetViewStartRow':_0x213480[_0x2bb76c(0xa6)],'sheetViewStartColumn':_0x213480[_0x2bb76c(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x28b5(_0x385e13,_0x44ebbe){_0x385e13=_0x385e13-0x94;const _0x3298e4=_0x3298();let _0x28b520=_0x3298e4[_0x385e13];return _0x28b520;}d[_0x5ce0e1(0x9e)][_0x5ce0e1(0x99)](w);class C extends a[_0x5ce0e1(0xac)]{[_0x5ce0e1(0xbc)](){const _0x57d0eb=_0x5ce0e1;var _0x267ad5,_0x20ee65;const _0x178210=this['_injector'][_0x57d0eb(0xab)](n[_0x57d0eb(0x98)]),_0x55e786=(_0x267ad5=this[_0x57d0eb(0xb3)]())==null?void 0x0:_0x267ad5[_0x57d0eb(0xbb)]();if(!_0x55e786)throw new Error(_0x57d0eb(0xb4));const _0xcd31c3=_0x178210[_0x57d0eb(0x95)](_0x55e786);return(_0x20ee65=_0xcd31c3==null?void 0x0:_0xcd31c3[_0x57d0eb(0xa8)]())!=null?_0x20ee65:n[_0x57d0eb(0xbd)][_0x57d0eb(0xb0)];}['startFollowing'](){const _0x2449e4=_0x5ce0e1;var _0x3ee8b4;const _0xf11da=this['_injector'][_0x2449e4(0xab)](n[_0x2449e4(0x98)]),_0x9cdc58=(_0x3ee8b4=this[_0x2449e4(0xb3)]())==null?void 0x0:_0x3ee8b4[_0x2449e4(0xbb)]();if(!_0x9cdc58)throw new Error(_0x2449e4(0xb4));const _0xa64449=_0xf11da[_0x2449e4(0x95)](_0x9cdc58);if(!_0xa64449)throw new Error(_0x2449e4(0xb6));_0xa64449[_0x2449e4(0x9d)]();}['stopFollowing'](){const _0x145a07=_0x5ce0e1;var _0x3633d0;const _0x2a279d=this[_0x145a07(0xb9)][_0x145a07(0xab)](n[_0x145a07(0x98)]),_0x861817=(_0x3633d0=this[_0x145a07(0xb3)]())==null?void 0x0:_0x3633d0[_0x145a07(0xbb)]();if(!_0x861817)throw new Error(_0x145a07(0xb4));const _0x261622=_0x2a279d[_0x145a07(0x95)](_0x861817);if(!_0x261622)throw new Error(_0x145a07(0xb6));_0x261622[_0x145a07(0x94)]();}[_0x5ce0e1(0xa9)](){const _0x37afd2=_0x5ce0e1;var _0x3e29fc;const _0x460c4a=this[_0x37afd2(0xb9)][_0x37afd2(0xab)](n[_0x37afd2(0x98)]),_0x3c2b10=(_0x3e29fc=this[_0x37afd2(0xb3)]())==null?void 0x0:_0x3e29fc[_0x37afd2(0xbb)]();if(!_0x3c2b10)throw new Error(_0x37afd2(0xb4));const _0x59d942=_0x460c4a[_0x37afd2(0x95)](_0x3c2b10);if(!_0x59d942)throw new Error(_0x37afd2(0xb6));_0x59d942[_0x37afd2(0xae)]();}[_0x5ce0e1(0x9f)](){const _0x4a9a2d=_0x5ce0e1;var _0x30632e;const _0x404416=this[_0x4a9a2d(0xb9)]['get'](n[_0x4a9a2d(0x98)]),_0x349433=(_0x30632e=this['getActiveWorkbook']())==null?void 0x0:_0x30632e[_0x4a9a2d(0xbb)]();if(!_0x349433)throw new Error(_0x4a9a2d(0xb4));const _0x47ce5e=_0x404416[_0x4a9a2d(0x95)](_0x349433);if(!_0x47ce5e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47ce5e['stopPresenting']();}}a[_0x5ce0e1(0xac)][_0x5ce0e1(0x99)](C);class L extends a[_0x5ce0e1(0xa5)]{get[_0x5ce0e1(0x9a)](){const _0x5d99f8=_0x5ce0e1;return n[_0x5d99f8(0xbd)];}}a['FEnum']['extend'](L);function _0x3298(){const _0x3bb4b7=['stopPresenting','268928BIcXQW','PRESENTING','177CNkAVG','executeCommand','startColumn','FEnum','startRow','42tNWEdq','getStatus','startPresenting','syncExecuteCommand','get','FUniver','4032420UuHGSn','tryStartPresenting','1656010hRhAqB','IDLE','50824aanann','_initialize','getActiveWorkbook','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2471542tNbVET','getUnitId','_injector','207wYEfVD','getId','getLiveShareStatus','LiveShareStatus','SetScrollOperation','stopFollowing','getLiveShareCoordinatorSync','getActiveSheet','IRenderManagerService','LiveShareController','extend','LiveShareStatusEnum','1185539fFXNvD','320999EaWzQq','startFollowing','FRange'];_0x3298=function(){return _0x3bb4b7;};return _0x3298();}
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 _0x5ebda9=_0x108d;(function(_0x3fda51,_0xdbbd56){const _0x4d02ba=_0x108d,_0x586fed=_0x3fda51();while(!![]){try{const _0xc2e1c6=parseInt(_0x4d02ba(0x12e))/0x1+parseInt(_0x4d02ba(0x14f))/0x2+parseInt(_0x4d02ba(0xf2))/0x3*(parseInt(_0x4d02ba(0xf7))/0x4)+-parseInt(_0x4d02ba(0xe7))/0x5*(parseInt(_0x4d02ba(0x131))/0x6)+-parseInt(_0x4d02ba(0x165))/0x7+-parseInt(_0x4d02ba(0x153))/0x8*(-parseInt(_0x4d02ba(0x14e))/0x9)+-parseInt(_0x4d02ba(0x106))/0xa*(parseInt(_0x4d02ba(0x10f))/0xb);if(_0xc2e1c6===_0xdbbd56)break;else _0x586fed['push'](_0x586fed['shift']());}catch(_0x19f6e2){_0x586fed['push'](_0x586fed['shift']());}}}(_0x47d9,0x52706));var T=Object[_0x5ebda9(0x100)],U=(_0x22a205,_0x21b735,_0x732931)=>_0x21b735 in _0x22a205?T(_0x22a205,_0x21b735,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x732931}):_0x22a205[_0x21b735]=_0x732931,_=(_0xe46a60,_0x3fe54e,_0x749b5)=>U(_0xe46a60,typeof _0x3fe54e!=_0x5ebda9(0x179)?_0x3fe54e+'':_0x3fe54e,_0x749b5);Object[_0x5ebda9(0x100)](exports,Symbol['toStringTag'],{'value':_0x5ebda9(0xd9)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x313096,..._0x3e31f6}){const _0x340b83=_0x5ebda9,{icon:_0xc7d88d,id:_0x5edb09,className:_0x497256,extend:_0x1b93ba,..._0x28f671}=_0x3e31f6,_0x40ac2b=(_0x340b83(0x133)+_0x5edb09+'\x20'+(_0x497256||''))['trim'](),_0x2ae2a6=v['useRef']('_'+H());return j(_0xc7d88d,''+_0x5edb09,{'defIds':_0xc7d88d['defIds'],'idSuffix':_0x2ae2a6[_0x340b83(0x10e)]},{'ref':_0x313096,'className':_0x40ac2b,..._0x28f671},_0x1b93ba);}function j(_0x2fc3d4,_0x4dffa4,_0x177438,_0xe5320a,_0xd2567e){const _0x452543=_0x5ebda9;return v[_0x452543(0xe0)](_0x2fc3d4[_0x452543(0x17c)],{'key':_0x4dffa4,...y(_0x2fc3d4,_0x177438,_0xd2567e),..._0xe5320a},(F(_0x2fc3d4,_0x177438)['children']||[])[_0x452543(0x152)]((_0x1231ce,_0x1b2f6c)=>j(_0x1231ce,_0x4dffa4+'-'+_0x2fc3d4[_0x452543(0x17c)]+'-'+_0x1b2f6c,_0x177438,void 0x0,_0xd2567e)));}function y(_0x33bef4,_0xbe4d32,_0x40cb7f){const _0x2feb1b=_0x5ebda9,_0x487a7d={..._0x33bef4['attrs']};_0x40cb7f!=null&&_0x40cb7f[_0x2feb1b(0x11e)]&&_0x487a7d[_0x2feb1b(0xc8)]===_0x2feb1b(0x11e)&&(_0x487a7d[_0x2feb1b(0xc8)]=_0x40cb7f[_0x2feb1b(0x11e)]),_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0xf0)&&_0x487a7d['id']&&(_0x487a7d['id']=_0x487a7d['id']+_0xbe4d32['idSuffix']),Object[_0x2feb1b(0x138)](_0x487a7d)['forEach'](([_0x56fc13,_0x1c89bf])=>{const _0x2f7b2b=_0x2feb1b;_0x56fc13===_0x2f7b2b(0xf0)&&typeof _0x1c89bf==_0x2f7b2b(0xcc)&&(_0x487a7d[_0x56fc13]=_0x1c89bf[_0x2f7b2b(0x122)](/url\(#(.*)\)/,_0x2f7b2b(0x11b)+_0xbe4d32['idSuffix']+')'));});const {defIds:_0x2fd0c9}=_0xbe4d32;return!_0x2fd0c9||_0x2fd0c9[_0x2feb1b(0x196)]===0x0||(_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0x109)&&_0x487a7d[_0x2feb1b(0x173)]&&(_0x487a7d['xlink:href']=_0x487a7d[_0x2feb1b(0x173)]+_0xbe4d32[_0x2feb1b(0x183)]),Object[_0x2feb1b(0x138)](_0x487a7d)[_0x2feb1b(0xeb)](([_0x3c01de,_0x5462a3])=>{const _0x4c16cc=_0x2feb1b;typeof _0x5462a3==_0x4c16cc(0xcc)&&(_0x487a7d[_0x3c01de]=_0x5462a3[_0x4c16cc(0x122)](/url\(#(.*)\)/,'url(#$1'+_0xbe4d32[_0x4c16cc(0x183)]+')'));})),_0x487a7d;}function F(_0x3e52ef,_0x58a2f8){const _0x59dd00=_0x5ebda9;var _0x5e9bd4;const {defIds:_0x258491}=_0x58a2f8;return!_0x258491||_0x258491[_0x59dd00(0x196)]===0x0?_0x3e52ef:_0x3e52ef['tag']===_0x59dd00(0x127)&&((_0x5e9bd4=_0x3e52ef[_0x59dd00(0x191)])!=null&&_0x5e9bd4[_0x59dd00(0x196)])?{..._0x3e52ef,'children':_0x3e52ef[_0x59dd00(0x191)][_0x59dd00(0x152)](_0x4d3d70=>typeof _0x4d3d70[_0x59dd00(0xe1)]['id']==_0x59dd00(0xcc)&&_0x258491&&_0x258491['includes'](_0x4d3d70['attrs']['id'])?{..._0x4d3d70,'attrs':{..._0x4d3d70[_0x59dd00(0xe1)],'id':_0x4d3d70[_0x59dd00(0xe1)]['id']+_0x58a2f8[_0x59dd00(0x183)]}}:_0x4d3d70)}:_0x3e52ef;}function H(){const _0x4e76b5=_0x5ebda9;return Math[_0x4e76b5(0x124)]()[_0x4e76b5(0x166)](0x24)[_0x4e76b5(0x13f)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x5ebda9(0x129),'fill':'none','viewBox':_0x5ebda9(0x17f),'width':_0x5ebda9(0xea),'height':_0x5ebda9(0xea)},'children':[{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':_0x5ebda9(0x13e)}},{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5ebda9(0x13b),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x19699c,_0x5a49b8){const _0x7f8259=_0x5ebda9;return v[_0x7f8259(0xe0)](x,Object['assign']({},_0x19699c,{'id':_0x7f8259(0x15c),'ref':_0x5a49b8,'icon':V}));});R['displayName']=_0x5ebda9(0x12c);class E extends o['Disposable']{constructor(){const _0x2a4d79=_0x5ebda9;super(...arguments),_(this,_0x2a4d79(0xd4),new Set()),_(this,_0x2a4d79(0x128),new Set());}[_0x5ebda9(0x11a)](_0x5c37f6){const _0x5442dc=_0x5ebda9;return this[_0x5442dc(0xd4)][_0x5442dc(0x154)](_0x5c37f6),o[_0x5442dc(0xfd)](()=>this[_0x5442dc(0xd4)][_0x5442dc(0xed)](_0x5c37f6));}[_0x5ebda9(0x189)](_0x4f651f){const _0x5df325=_0x5ebda9;return this[_0x5df325(0x128)][_0x5df325(0x154)](_0x4f651f),o[_0x5df325(0xfd)](()=>this[_0x5df325(0x128)]['delete'](_0x4f651f));}[_0x5ebda9(0xdc)](_0x475cb3){const _0x566cbc=_0x5ebda9;return this['_sharedOperations'][_0x566cbc(0x15f)](_0x475cb3);}[_0x5ebda9(0x105)](_0x1e7c98){const _0x39143d=_0x5ebda9;return Array[_0x39143d(0xec)](this['_reporters'])[_0x39143d(0x152)](_0x190684=>_0x190684(_0x1e7c98));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x440c5b,_0x56961a,_0x53a6b8,_0x5a344f)=>{for(var _0x1e2475=_0x5a344f>0x1?void 0x0:_0x5a344f?M(_0x56961a,_0x53a6b8):_0x56961a,_0x1388b8=_0x440c5b['length']-0x1,_0x4961a1;_0x1388b8>=0x0;_0x1388b8--)(_0x4961a1=_0x440c5b[_0x1388b8])&&(_0x1e2475=_0x4961a1(_0x1e2475)||_0x1e2475);return _0x1e2475;},S=(_0x2e5be5,_0xca9822)=>(_0x4e18e4,_0x42f762)=>_0xca9822(_0x4e18e4,_0x42f762,_0x2e5be5);exports[_0x5ebda9(0xf8)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0xe43374,_0x2163bf,_0x5be6c2){const _0xc3af71=_0x5ebda9;super(),_(this,_0xc3af71(0x108),new Map()),(this[_0xc3af71(0x142)]=_0xe43374,this[_0xc3af71(0x113)]=_0x2163bf,this['_collabSessionService']=_0x5be6c2,this[_0xc3af71(0xf1)]());}async[_0x5ebda9(0x112)](_0xf7a880){const _0x45fe66=_0x5ebda9;return this[_0x45fe66(0x108)]['has'](_0xf7a880)||await this[_0x45fe66(0xdf)](_0xf7a880),this[_0x45fe66(0x108)][_0x45fe66(0x102)](_0xf7a880);}[_0x5ebda9(0x117)](_0x439978){const _0x4ceeb0=_0x5ebda9;var _0x1cf5f5;return(_0x1cf5f5=this[_0x4ceeb0(0x108)][_0x4ceeb0(0x102)](_0x439978))!=null?_0x1cf5f5:null;}[_0x5ebda9(0xf1)](){const _0x28ba1e=_0x5ebda9;this['_univerInstanceService'][_0x28ba1e(0xe2)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](async _0x3d8e9f=>{const _0x502591=_0x28ba1e,_0x228429=_0x3d8e9f[_0x502591(0x140)]();this[_0x502591(0x108)][_0x502591(0x15f)](_0x228429)||this[_0x502591(0xdf)](_0x228429);}),this['_univerInstanceService'][_0x28ba1e(0xcd)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](_0x51f319=>{const _0x3b9aa0=_0x28ba1e,_0x218dbc=_0x51f319[_0x3b9aa0(0x140)](),_0x1c1012=this[_0x3b9aa0(0x108)][_0x3b9aa0(0x102)](_0x218dbc);_0x1c1012==null||_0x1c1012['dispose']();});}async[_0x5ebda9(0xdf)](_0x185b38){const _0x503618=_0x5ebda9,_0x3b6d4f=await this['_collabSessionService'][_0x503618(0x114)](_0x185b38),_0x558a20=this[_0x503618(0x113)][_0x503618(0x107)](exports[_0x503618(0x158)],_0x185b38,_0x3b6d4f);return _0x558a20[_0x503618(0x119)](),this[_0x503618(0x108)]['set'](_0x185b38,_0x558a20),_0x558a20;}},exports['LiveShareController']=P([S(0x0,o[_0x5ebda9(0x10b)]),S(0x1,o['Inject'](o[_0x5ebda9(0xef)])),S(0x2,o['Inject'](b[_0x5ebda9(0x144)]))],exports['LiveShareController']);var u=(_0x21a257=>(_0x21a257[_0x5ebda9(0x103)]=_0x5ebda9(0x101),_0x21a257[_0x5ebda9(0x16b)]=_0x5ebda9(0x136),_0x21a257[_0x5ebda9(0x178)]=_0x5ebda9(0xee),_0x21a257['NOT_FOLLOWING']=_0x5ebda9(0x155),_0x21a257[_0x5ebda9(0x10a)]=_0x5ebda9(0x141),_0x21a257))(u||{});const k=_0x5ebda9(0xd2),q=0xc8;exports[_0x5ebda9(0x158)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0x501301,_0x574635,_0x38bff8,_0x3d6fa8,_0xc1a4c6){const _0x158df7=_0x5ebda9;super(),_(this,_0x158df7(0x18e),new O[(_0x158df7(0x145))](_0x158df7(0x136))),_(this,'status$',this[_0x158df7(0x18e)][_0x158df7(0x111)]()),_(this,_0x158df7(0xf1),!0x1),_(this,_0x158df7(0x104),null),_(this,'_presenter',null),(this[_0x158df7(0x125)]=_0x501301,this[_0x158df7(0x194)]=_0x574635,this['_configService']=_0x38bff8,this[_0x158df7(0xf4)]=_0x3d6fa8,this['_commandService']=_0xc1a4c6);}get[_0x5ebda9(0xff)](){const _0x58c2fe=_0x5ebda9;return this[_0x58c2fe(0x18e)][_0x58c2fe(0x13a)]();}['dispose'](){const _0x53c160=_0x5ebda9;var _0x135a9b;(_0x135a9b=this['_commandDisposable'])==null||_0x135a9b[_0x53c160(0x115)](),this[_0x53c160(0x18e)][_0x53c160(0x147)](_0x53c160(0x136)),this[_0x53c160(0x18e)][_0x53c160(0x195)]();}[_0x5ebda9(0x18c)](){const _0x3d8c0c=_0x5ebda9;return this[_0x3d8c0c(0xff)];}[_0x5ebda9(0x119)](){const _0x5bfccf=_0x5ebda9;this[_0x5bfccf(0xf1)]||(this[_0x5bfccf(0xf1)]=!0x0,this[_0x5bfccf(0x194)][_0x5bfccf(0xd5)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x49311a=>{const _0x440b5e=_0x5bfccf;switch(_0x49311a){case b[_0x440b5e(0xdb)][_0x440b5e(0x103)]:this['_handleOffline']();break;case b[_0x440b5e(0xdb)][_0x440b5e(0xe3)]:this[_0x440b5e(0xd7)]();break;}}),this[_0x5bfccf(0x194)][_0x5bfccf(0x18a)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x12ba78=>{const _0x37583a=_0x5bfccf,{eventID:_0x4c0e0b}=_0x12ba78;switch(_0x4c0e0b){case d[_0x37583a(0x190)]['LIVESHARE_NEW_HOST']:this[_0x37583a(0x177)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0xe6)]:this[_0x37583a(0xde)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0x12d)]:this[_0x37583a(0x156)]();break;case d[_0x37583a(0x190)][_0x37583a(0x146)]:this['_handleNewChangeSets'](_0x12ba78);break;}}));}[_0x5ebda9(0xc9)](){const _0x3fd5d1=_0x5ebda9;this[_0x3fd5d1(0x194)][_0x3fd5d1(0x175)]({'eventID':d['CollaborationEvent'][_0x3fd5d1(0x150)],'data':{'unitID':this[_0x3fd5d1(0x125)],'userID':this[_0x3fd5d1(0x194)][_0x3fd5d1(0x181)]()}},this[_0x3fd5d1(0x125)]);}['stopPresenting'](){const _0x39c143=_0x5ebda9;this[_0x39c143(0xff)]===_0x39c143(0x141)&&(this['_status$'][_0x39c143(0x147)](_0x39c143(0x136)),this[_0x39c143(0x194)][_0x39c143(0x175)]({'eventID':d[_0x39c143(0x190)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x39c143(0x125)]}},this[_0x39c143(0x125)]));}[_0x5ebda9(0xca)](){const _0x2541f7=_0x5ebda9;this['_status']==='not-following'&&(this[_0x2541f7(0x18e)][_0x2541f7(0x147)](_0x2541f7(0xee)),this[_0x2541f7(0x11f)]());}[_0x5ebda9(0xc3)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x5ebda9(0x177)](_0x1ca3f4){const _0x110ae4=_0x5ebda9,{presenter:_0x17ff24}=_0x1ca3f4['data'],_0x555e0b=this['_collabSession'][_0x110ae4(0x181)]();this[_0x110ae4(0xfb)]=_0x17ff24,_0x17ff24===_0x555e0b?(this[_0x110ae4(0xfe)](),this[_0x110ae4(0x16e)]()):this[_0x110ae4(0xff)]!==_0x110ae4(0x155)&&(this[_0x110ae4(0x126)](),this[_0x110ae4(0x11f)]());}['_fetchOperations'](){const _0xc89bd4=_0x5ebda9,_0x10315f={'eventID':d[_0xc89bd4(0x190)][_0xc89bd4(0xdd)]};this['_collabSession'][_0xc89bd4(0x175)](_0x10315f,this[_0xc89bd4(0x125)]);}[_0x5ebda9(0x156)](){const _0x49288d=_0x5ebda9;this['_presenter']=null,this[_0x49288d(0xff)]!==_0x49288d(0x141)&&this[_0x49288d(0x192)]();}[_0x5ebda9(0x13c)](_0x3768c5){const _0x3dda2e=_0x5ebda9;if(this[_0x3dda2e(0xff)]===_0x3dda2e(0xee)&&this['_presenter']===_0x3768c5[_0x3dda2e(0x16d)][_0x3dda2e(0xd1)]){const _0x430a25=d[_0x3dda2e(0x149)](_0x3768c5['data'])['mutations'][_0x3dda2e(0xc7)]()[_0x3dda2e(0x16f)](_0xca7e3e=>_0xca7e3e['id']===C[_0x3dda2e(0x186)]['id']);if(_0x430a25){const _0x5b8db6=_0x430a25[_0x3dda2e(0x171)]['unitId'],_0xe662da=_0x430a25[_0x3dda2e(0x171)][_0x3dda2e(0x184)]['id'];setTimeout(()=>{const _0x4350d8=_0x3dda2e;this[_0x4350d8(0x18d)]['executeCommand'](C[_0x4350d8(0x17a)]['id'],{'unitId':_0x5b8db6,'subUnitId':_0xe662da},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4263d8=_0x5ebda9;this[_0x4263d8(0x18e)]['next'](_0x4263d8(0x141));const _0x3e3840=new Map(),_0x289e6f=this[_0x4263d8(0x104)]=new o[(_0x4263d8(0xd0))]();_0x289e6f[_0x4263d8(0x154)](o[_0x4263d8(0xfd)](()=>{const _0x173a75=_0x4263d8;_0x3e3840[_0x173a75(0xeb)](_0x57b94d=>_0x57b94d[_0x173a75(0x195)]()),_0x3e3840['clear']();})),_0x289e6f[_0x4263d8(0x154)](this['_commandService'][_0x4263d8(0x132)](_0x1401d1=>{const _0x648c9a=_0x4263d8;var _0x5c716c;if(_0x1401d1[_0x648c9a(0x164)]!==o[_0x648c9a(0x15a)][_0x648c9a(0x151)]||!this[_0x648c9a(0xf4)][_0x648c9a(0xdc)](_0x1401d1['id']))return;const {id:_0x404581}=_0x1401d1;let _0x2a88b3;_0x3e3840[_0x648c9a(0x15f)](_0x404581)?_0x2a88b3=_0x3e3840['get'](_0x404581):(_0x2a88b3=new O[(_0x648c9a(0x180))](),_0x3e3840['set'](_0x404581,_0x2a88b3),_0x2a88b3[_0x648c9a(0x14d)](I[_0x648c9a(0x121)]((_0x5c716c=this['_configService'][_0x648c9a(0xf5)](k))!=null?_0x5c716c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x24097c=>{const _0x5f35b9=_0x648c9a;this[_0x5f35b9(0x194)][_0x5f35b9(0x175)]({'eventID':d[_0x5f35b9(0x190)][_0x5f35b9(0xe6)],'data':{'unitID':this[_0x5f35b9(0x125)],'operations':{[_0x24097c['id']]:{'id':_0x24097c['id'],'params':JSON[_0x5f35b9(0x11c)](_0x24097c[_0x5f35b9(0x171)])}}}},this['_unitID']);})),_0x2a88b3[_0x648c9a(0x147)](_0x1401d1);})),this[_0x4263d8(0xf4)][_0x4263d8(0x105)](this[_0x4263d8(0x125)])[_0x4263d8(0xeb)](_0x1cdc3f=>this[_0x4263d8(0x194)][_0x4263d8(0x175)]({'eventID':d[_0x4263d8(0x190)][_0x4263d8(0xe6)],'data':{'unitID':this[_0x4263d8(0x125)],'operations':{[_0x1cdc3f['id']]:{'id':_0x1cdc3f['id'],'params':JSON['stringify'](_0x1cdc3f['params'])}}}},this[_0x4263d8(0x125)]));}['_stopPresenting'](){const _0x148f9e=_0x5ebda9;var _0x32c109;this[_0x148f9e(0x18e)][_0x148f9e(0x147)](_0x148f9e(0x136)),(_0x32c109=this[_0x148f9e(0x104)])==null||_0x32c109['dispose'](),this['_commandDisposable']=null;}[_0x5ebda9(0x11f)](){const _0xf33d0=_0x5ebda9;var _0x526cc9;(_0x526cc9=this['_commandDisposable'])==null||_0x526cc9[_0xf33d0(0x115)](),this[_0xf33d0(0x18e)][_0xf33d0(0x147)]('following');}[_0x5ebda9(0x192)](){const _0x4a3f8c=_0x5ebda9;var _0x20608c;this[_0x4a3f8c(0x18e)]['next'](_0x4a3f8c(0x136)),(_0x20608c=this[_0x4a3f8c(0x104)])==null||_0x20608c['dispose'](),this[_0x4a3f8c(0x104)]=null;}[_0x5ebda9(0xfe)](){const _0x21b1f2=_0x5ebda9;var _0x36979d;this[_0x21b1f2(0x18e)][_0x21b1f2(0x147)](_0x21b1f2(0x155)),(_0x36979d=this[_0x21b1f2(0x104)])==null||_0x36979d[_0x21b1f2(0x115)]();}[_0x5ebda9(0xde)](_0x2bc0e3){const _0x3be5e1=_0x5ebda9;if([_0x3be5e1(0x141),'not-following',_0x3be5e1(0x101)][_0x3be5e1(0x176)](this[_0x3be5e1(0xff)])||!_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]||_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]===this[_0x3be5e1(0x194)]['getMemberID']())return;this[_0x3be5e1(0xff)]===_0x3be5e1(0x136)&&this[_0x3be5e1(0x11f)]();const _0x63ec75=_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0xd3)];Object[_0x3be5e1(0x143)](_0x63ec75)[_0x3be5e1(0xeb)](_0x2618a6=>{const _0x5df6e4=_0x3be5e1;this[_0x5df6e4(0x18d)][_0x5df6e4(0xe5)](_0x2618a6['id'],_0x2618a6[_0x5df6e4(0x171)]?JSON['parse'](_0x2618a6[_0x5df6e4(0x171)]):null,{'fromCollab':!0x0});});}[_0x5ebda9(0x185)](){const _0xb79ab6=_0x5ebda9;var _0x1a2b34;this[_0xb79ab6(0x18e)]['next'](_0xb79ab6(0x101)),(_0x1a2b34=this['_commandDisposable'])==null||_0x1a2b34[_0xb79ab6(0x115)]();}[_0x5ebda9(0xd7)](){const _0x1b4dd2=_0x5ebda9;this[_0x1b4dd2(0x18e)][_0x1b4dd2(0x147)](_0x1b4dd2(0x136)),this[_0x1b4dd2(0x12b)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x5ebda9(0x14b)]),S(0x3,o[_0x5ebda9(0xcf)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x108d(_0x1f8f69,_0x23af53){_0x1f8f69=_0x1f8f69-0xc1;const _0x47d982=_0x47d9();let _0x108dbc=_0x47d982[_0x1f8f69];return _0x108dbc;}function $(){const _0x30a48c=_0x5ebda9,_0x9a2bfc=p['useDependency'](exports[_0x30a48c(0xf8)]),_0x1b1a72=p['useDependency'](o[_0x30a48c(0x10b)]),_0x43478b=p[_0x30a48c(0x17e)](()=>_0x1b1a72['getCurrentTypeOfUnit$'](o[_0x30a48c(0x110)][_0x30a48c(0x10c)]),void 0x0,!0x1,[]),[_0xa0c3b1,_0x38aee3]=v[_0x30a48c(0x123)](null),[_0xb6997d,_0x3540f3]=v[_0x30a48c(0x123)](u[_0x30a48c(0x16b)]),_0x2a5704=v[_0x30a48c(0x187)](null);return v[_0x30a48c(0x188)](()=>(_0x43478b&&_0x9a2bfc[_0x30a48c(0x112)](_0x43478b['getUnitId']())[_0x30a48c(0xcb)](_0x58fd12=>{const _0x3cd9de=_0x30a48c;_0x38aee3(_0x58fd12),_0x2a5704[_0x3cd9de(0x10e)]=_0x58fd12[_0x3cd9de(0xe4)][_0x3cd9de(0x172)](_0x15e06f=>{_0x3540f3(_0x15e06f);});}),()=>{const _0x51ef43=_0x30a48c;var _0x267af5;(_0x267af5=_0x2a5704['current'])==null||_0x267af5['unsubscribe'](),_0x2a5704[_0x51ef43(0x10e)]=null;}),[_0x43478b,_0x9a2bfc]),_0xa0c3b1?l['jsx'](f[_0x30a48c(0x167)],{'align':_0x30a48c(0x16a),'disabled':_0xb6997d===u[_0x30a48c(0x103)],'className':_0x30a48c(0x120),'overlay':l[_0x30a48c(0xf9)](W,{'status':_0xb6997d,'coordinator':_0xa0c3b1}),'children':l[_0x30a48c(0xf9)](_0x30a48c(0xfa),{'className':f[_0x30a48c(0x137)](_0x30a48c(0x13d),{'univer-cursor-not-allowed':_0xb6997d===u[_0x30a48c(0x103)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6997d!==u[_0x30a48c(0x103)]}),'type':_0x30a48c(0xfa),'children':l[_0x30a48c(0xf9)](R,{'className':_0x30a48c(0x17b)})})}):null;}function W(_0x59b992){const _0x25aea1=_0x5ebda9,{status:_0x429252,coordinator:_0x3e42e9}=_0x59b992;switch(_0x429252){case u['IDLE']:return l[_0x25aea1(0xf9)](G,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x178)]:return l['jsx'](B,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x134)]:return l[_0x25aea1(0xf9)](Y,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x103)]:return l[_0x25aea1(0xf9)](J,{});case u['PRESENTING']:return l[_0x25aea1(0xf9)](Z,{'coordinator':_0x3e42e9});default:return null;}}function G(_0x16eb9a){const _0xe23b41=_0x5ebda9,{coordinator:_0x53cc16}=_0x16eb9a;return l[_0xe23b41(0xc6)](l['Fragment'],{'children':[l[_0xe23b41(0xf9)](_0xe23b41(0x160),{'className':_0xe23b41(0x174),'children':_0xe23b41(0x12f)}),l[_0xe23b41(0xf9)](f[_0xe23b41(0x18f)],{'onClick':()=>_0x53cc16['tryStartPresenting'](),'children':'Start'})]});}function B(_0x1c3645){const _0x53761a=_0x5ebda9,{coordinator:_0xd0af3b}=_0x1c3645;return l['jsxs'](l[_0x53761a(0x159)],{'children':[l['jsx'](_0x53761a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x53761a(0x170)}),l['jsx'](f['Button'],{'onClick':()=>_0xd0af3b['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x373a4c){const _0x122be1=_0x5ebda9,{coordinator:_0x365efa}=_0x373a4c;return l[_0x122be1(0xc6)](l[_0x122be1(0x159)],{'children':[l[_0x122be1(0xf9)](_0x122be1(0x160),{'className':_0x122be1(0x174),'children':_0x122be1(0x161)}),l['jsx'](f[_0x122be1(0x18f)],{'variant':_0x122be1(0xd8),'onClick':()=>_0x365efa[_0x122be1(0xca)](),'children':_0x122be1(0xe8)})]});}function Z(_0x4159ae){const _0x1b7d89=_0x5ebda9,{coordinator:_0x5d7c87}=_0x4159ae;return l[_0x1b7d89(0xc6)](l[_0x1b7d89(0x159)],{'children':[l[_0x1b7d89(0xf9)](_0x1b7d89(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1b7d89(0xf9)](f[_0x1b7d89(0x18f)],{'variant':'default','onClick':()=>_0x5d7c87['stopPresenting'](),'children':_0x1b7d89(0x135)})]});}function J(){const _0x4e267b=_0x5ebda9;return l[_0x4e267b(0xf9)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5ebda9(0x169)],z=(_0x55a8c0,_0x42104f,_0x239243,_0x393cd1)=>{const _0x349e1d=_0x5ebda9;for(var _0x4cf846=_0x393cd1>0x1?void 0x0:_0x393cd1?K(_0x42104f,_0x239243):_0x42104f,_0x39d3e7=_0x55a8c0[_0x349e1d(0x196)]-0x1,_0x32caaa;_0x39d3e7>=0x0;_0x39d3e7--)(_0x32caaa=_0x55a8c0[_0x39d3e7])&&(_0x4cf846=_0x32caaa(_0x4cf846)||_0x4cf846);return _0x4cf846;},L=(_0x11bb94,_0x385b59)=>(_0x4178ae,_0x1896ae)=>_0x385b59(_0x4178ae,_0x1896ae,_0x11bb94);exports[_0x5ebda9(0xce)]=class extends o['Disposable']{constructor(_0x5c48c6,_0x49cad2){const _0x14e9ca=_0x5ebda9;super(),this[_0x14e9ca(0x113)]=_0x5c48c6,this[_0x14e9ca(0x14c)]=_0x49cad2,this[_0x14e9ca(0xf3)]();}['_mountLiveShare'](){const _0x1cbd30=_0x5ebda9;this[_0x1cbd30(0xda)](this[_0x1cbd30(0x14c)][_0x1cbd30(0xe9)](p[_0x1cbd30(0x130)][_0x1cbd30(0x15e)],()=>p['connectInjector']($,this[_0x1cbd30(0x113)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),L(0x1,p['IUIPartsService'])],exports[_0x5ebda9(0xce)]);const Q=_0x5ebda9(0xc5),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x599362,_0x209ec2,_0x5f01bb,_0x3a1efe)=>{for(var _0x369065=_0x3a1efe>0x1?void 0x0:_0x3a1efe?X(_0x209ec2,_0x5f01bb):_0x209ec2,_0xd2033e=_0x599362['length']-0x1,_0x27ea81;_0xd2033e>=0x0;_0xd2033e--)(_0x27ea81=_0x599362[_0xd2033e])&&(_0x369065=_0x27ea81(_0x369065)||_0x369065);return _0x369065;},te=(_0x1c60f9,_0x85863a)=>(_0x2392a6,_0x4ae57e)=>_0x85863a(_0x2392a6,_0x4ae57e,_0x1c60f9);let m=class extends o[_0x5ebda9(0x15b)]{constructor(_0x1b67fb){const _0x14493b=_0x5ebda9;super(),this['_liveShareService']=_0x1b67fb,this[_0x14493b(0xf1)]();}[_0x5ebda9(0xf1)](){const _0x51fc7a=_0x5ebda9;[D[_0x51fc7a(0x157)]['id'],D[_0x51fc7a(0x15d)]['id'],C[_0x51fc7a(0x17a)]['id']][_0x51fc7a(0xeb)](_0x109914=>{const _0x3d64ab=_0x51fc7a;this[_0x3d64ab(0xda)](this[_0x3d64ab(0xf4)][_0x3d64ab(0x11a)](_0x109914));});}};m=ee([te(0x0,o[_0x5ebda9(0xcf)](E))],m);var ie=Object[_0x5ebda9(0x100)],se=Object[_0x5ebda9(0x169)],ne=(_0x4e6736,_0x468505,_0x17937b)=>_0x468505 in _0x4e6736?ie(_0x4e6736,_0x468505,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17937b}):_0x4e6736[_0x468505]=_0x17937b,re=(_0x1a45f5,_0xa245de,_0x29d938,_0x27214a)=>{const _0x5cce3f=_0x5ebda9;for(var _0x4e16c4=_0x27214a>0x1?void 0x0:_0x27214a?se(_0xa245de,_0x29d938):_0xa245de,_0x2700f7=_0x1a45f5[_0x5cce3f(0x196)]-0x1,_0x4c2805;_0x2700f7>=0x0;_0x2700f7--)(_0x4c2805=_0x1a45f5[_0x2700f7])&&(_0x4e16c4=_0x4c2805(_0x4e16c4)||_0x4e16c4);return _0x4e16c4;},N=(_0x13542e,_0x1f61bd)=>(_0x3e1ceb,_0x4a11a8)=>_0x1f61bd(_0x3e1ceb,_0x4a11a8,_0x13542e),A=(_0x4dd5f6,_0x5d80bf,_0x12419b)=>ne(_0x4dd5f6,typeof _0x5d80bf!=_0x5ebda9(0x179)?_0x5d80bf+'':_0x5d80bf,_0x12419b);const oe=_0x5ebda9(0x17d);function _0x47d9(){const _0xe77b66=['params','subscribe','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','includes','_handleNewHost','FOLLOWING','symbol','SetWorksheetActiveOperation','univer-size-4','tag','UNIVER_LIVE_SHARE_PLUGIN','useObservable','0\x200\x2017\x2017','Subject','getMemberID','_configService','idSuffix','sheet','_handleOffline','InsertSheetMutation','useRef','useEffect','registerInitialStateReporter','event$','pluginName','getStatus','_commandService','_status$','Button','CollaborationEvent','children','_beIdle','merge','_collabSession','complete','length','DependentOn','setConfig','stopFollowing','dispose$','live-share.config','jsxs','reverse','fill','tryStartPresenting','startFollowing','then','string','getTypeOfUnitDisposed$','DesktopLiveShareController','Inject','DisposableCollection','memberID','SAME_OPERATION_SHARE_INTERVAL','operations','_sharedOperations','sessionStatus$','UniverCollaborationClientPlugin','_handleOnline','text','Module','disposeWithMe','SessionStatus','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','_handleOperation','_startLiveShareCoordinator','createElement','attrs','getTypeOfUnitAdded$','ONLINE','status$','executeCommand','LIVESHARE_OPERATION','125cJvUnr','Start\x20following','registerComponent','1em','forEach','from','delete','following','Injector','mask','_init','3yEbKHL','_mountLiveShare','_liveShareService','getConfig','path','193220qGMQDH','LiveShareController','jsx','button','_presenter','RxDisposable','toDisposable','_stopFollowing','_status','defineProperty','offline','get','OFFLINE','_commandDisposable','getInitialStates','2360vEmbMR','createInstance','_entities','use','PRESENTING','IUniverInstanceService','UNIVER_SHEET','LiveShare','current','1034VRaVnr','UniverInstanceType','asObservable','getLiveShareCoordinator','_injector','requireSession','dispose','takeUntil','getLiveShareCoordinatorSync','Plugin','init','registerSharedOperation','url(#$1','stringify','onRendered','colorChannel1','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','throttleTime','replace','useState','random','_unitID','_stopPresenting','defs','_reporters','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','_fetchOperations','LiveShareIcon','LIVESHARE_TERMINATE','448169wfdIew','Present\x20this\x20document','BuiltInUIPart','141888IACMfg','onCommandExecuted','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','Stop\x20presenting','idle','clsx','entries','LiveShareService','getValue','evenodd','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','substring','getUnitId','presenting','_univerInstanceService','values','CollaborationSessionService','BehaviorSubject','NEW_CHANGESETS','next','presenter','parseProtocolChangeset','LiveShareStatus','IConfigService','_uiPartsService','pipe','3497652EKkdkH','636516wdLDMk','LIVESHARE_REQUEST_HOST','OPERATION','map','8sAHsWM','add','not-following','_handleTerminate','SetZoomRatioOperation','LiveShareCoordinator','Fragment','CommandType','Disposable','live-share-icon','SetScrollOperation','HEADER_MENU','has','div','You\x27re\x20not\x20following\x20the\x20presenter','_config','registerDependencies','type','1766142rOfkOQ','toString','Dropdown','UniverLiveSharePlugin','getOwnPropertyDescriptor','end','IDLE','touchDependencies','data','_startPresenting','find','You\x27re\x20following\x20the\x20presenter'];_0x47d9=function(){return _0xe77b66;};return _0x47d9();}exports[_0x5ebda9(0x168)]=class extends o[_0x5ebda9(0x118)]{constructor(_0xb5abe0=w,_0x3fdf6e,_0x30a4de){const _0xbecc53=_0x5ebda9;super(),this['_config']=_0xb5abe0,this['_injector']=_0x3fdf6e,this[_0xbecc53(0x182)]=_0x30a4de;const {..._0x5e7264}=o[_0xbecc53(0x193)]({},w,this['_config']);this['_configService'][_0xbecc53(0xc2)](Q,_0x5e7264);}['onStarting'](){const _0x32687f=_0x5ebda9;o[_0x32687f(0x163)](this[_0x32687f(0x113)],o[_0x32687f(0x12a)]([[E],[exports['LiveShareController']],[m],[exports[_0x32687f(0xce)]]],this[_0x32687f(0x162)]['override'])),o[_0x32687f(0x16c)](this[_0x32687f(0x113)],[[m]]);}[_0x5ebda9(0x11d)](){const _0x48e6ac=_0x5ebda9;o['touchDependencies'](this[_0x48e6ac(0x113)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x5ebda9(0x168)],'type',o[_0x5ebda9(0x110)]['UNIVER_UNKNOWN']),A(exports[_0x5ebda9(0x168)],_0x5ebda9(0x18b),oe),exports[_0x5ebda9(0x168)]=re([o[_0x5ebda9(0xc1)](b[_0x5ebda9(0xd6)]),N(0x1,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),N(0x2,o['IConfigService'])],exports[_0x5ebda9(0x168)]),exports[_0x5ebda9(0x10d)]=$,exports[_0x5ebda9(0x139)]=E,exports[_0x5ebda9(0x14a)]=u;
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 _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
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 _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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 _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
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 _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
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(_0x4b7d6e,_0x53400c){const _0x433885=_0x53cd,_0x250ecd=_0x4b7d6e();while(!![]){try{const _0x54aefc=-parseInt(_0x433885(0x80))/0x1+parseInt(_0x433885(0x9b))/0x2+parseInt(_0x433885(0x73))/0x3*(-parseInt(_0x433885(0x7a))/0x4)+-parseInt(_0x433885(0x96))/0x5*(parseInt(_0x433885(0x7b))/0x6)+-parseInt(_0x433885(0x6c))/0x7*(-parseInt(_0x433885(0x84))/0x8)+-parseInt(_0x433885(0x78))/0x9*(-parseInt(_0x433885(0x8d))/0xa)+-parseInt(_0x433885(0x8b))/0xb;if(_0x54aefc===_0x53400c)break;else _0x250ecd['push'](_0x250ecd['shift']());}catch(_0x54960f){_0x250ecd['push'](_0x250ecd['shift']());}}}(_0x51b6,0x4221f),function(_0x493be2,_0x5a00a3){const _0x2ba48d=_0x53cd;typeof exports==_0x2ba48d(0x8c)&&typeof module<'u'?_0x5a00a3(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x2ba48d(0x95)&&define[_0x2ba48d(0x7d)]?define([_0x2ba48d(0x8e),_0x2ba48d(0x89),_0x2ba48d(0x88),'@univerjs/sheets-ui',_0x2ba48d(0x90),_0x2ba48d(0x6f)],_0x5a00a3):(_0x493be2=typeof globalThis<'u'?globalThis:_0x493be2||self,_0x5a00a3(_0x493be2[_0x2ba48d(0x71)],_0x493be2[_0x2ba48d(0x8f)],_0x493be2[_0x2ba48d(0x68)],_0x493be2['UniverSheetsUi'],_0x493be2[_0x2ba48d(0x65)],_0x493be2[_0x2ba48d(0x99)]));}(this,function(_0x2a6d35,_0x1a94c1,_0x5829e5,_0x254a83,_0x5de0cf,_0x1b0429){'use strict';const _0x39a1a7=_0x53cd;class _0x18180d extends _0x5de0cf[_0x39a1a7(0x77)]{[_0x39a1a7(0x79)](_0x269a0f,_0x2e5321,_0x5998c0,_0x39985d,_0x241e7e){const _0xb2bd5a=_0x39a1a7,_0x5eece1=_0x269a0f['get'](_0x2a6d35['LiveShareController']),_0x1a55b7=_0x269a0f['get'](_0x1a94c1[_0xb2bd5a(0x66)]),_0x1facf3=_0x2e5321[_0xb2bd5a(0x72)](),_0x4241d8=_0x2e5321[_0xb2bd5a(0x9c)](),_0x2c7d33=_0x5eece1[_0xb2bd5a(0x82)](_0x1facf3);(_0x2c7d33==null?void 0x0:_0x2c7d33['getStatus']())!==_0x2a6d35[_0xb2bd5a(0x81)][_0xb2bd5a(0x91)]||(_0x5998c0['getSheetId']()!==_0x4241d8[_0xb2bd5a(0x76)]()&&this[_0xb2bd5a(0x7f)][_0xb2bd5a(0x87)](_0x5829e5[_0xb2bd5a(0x6e)]['id'],{'unitId':_0x1facf3,'subUnitId':_0x5998c0[_0xb2bd5a(0x76)]()}),!_0x1a55b7[_0xb2bd5a(0x7c)](_0x1facf3))||_0x241e7e[_0xb2bd5a(0x97)](_0x254a83[_0xb2bd5a(0x98)]['id'],{'unitId':_0x2e5321['getUnitId'](),'sheetId':_0x5998c0['getSheetId'](),'sheetViewStartRow':_0x39985d[_0xb2bd5a(0x69)],'sheetViewStartColumn':_0x39985d[_0xb2bd5a(0x74)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5de0cf[_0x39a1a7(0x77)][_0x39a1a7(0x83)](_0x18180d);class _0x2ab3c7 extends _0x1b0429[_0x39a1a7(0x94)]{['getLiveShareStatus'](){const _0x247ce6=_0x39a1a7;var _0x3c3ec3,_0x120242;const _0x23d4cb=this[_0x247ce6(0x6d)][_0x247ce6(0x92)](_0x2a6d35[_0x247ce6(0x64)]),_0x275d29=(_0x3c3ec3=this[_0x247ce6(0x93)]())==null?void 0x0:_0x3c3ec3['getId']();if(!_0x275d29)throw new Error(_0x247ce6(0x6b));const _0x1cb456=_0x23d4cb[_0x247ce6(0x82)](_0x275d29);return(_0x120242=_0x1cb456==null?void 0x0:_0x1cb456[_0x247ce6(0x85)]())!=null?_0x120242:_0x2a6d35[_0x247ce6(0x81)][_0x247ce6(0x86)];}[_0x39a1a7(0x75)](){const _0x2a7423=_0x39a1a7;var _0x25c617;const _0x3562ef=this[_0x2a7423(0x6d)]['get'](_0x2a6d35[_0x2a7423(0x64)]),_0x3b665b=(_0x25c617=this[_0x2a7423(0x93)]())==null?void 0x0:_0x25c617[_0x2a7423(0x8a)]();if(!_0x3b665b)throw new Error(_0x2a7423(0x6b));const _0x13afe4=_0x3562ef[_0x2a7423(0x82)](_0x3b665b);if(!_0x13afe4)throw new Error(_0x2a7423(0x6a));_0x13afe4['startFollowing']();}[_0x39a1a7(0x7e)](){const _0xb7b84f=_0x39a1a7;var _0x121de4;const _0x4d7793=this[_0xb7b84f(0x6d)][_0xb7b84f(0x92)](_0x2a6d35[_0xb7b84f(0x64)]),_0x51bd10=(_0x121de4=this[_0xb7b84f(0x93)]())==null?void 0x0:_0x121de4['getId']();if(!_0x51bd10)throw new Error('No\x20active\x20workbook\x20found.');const _0x42907d=_0x4d7793[_0xb7b84f(0x82)](_0x51bd10);if(!_0x42907d)throw new Error(_0xb7b84f(0x6a));_0x42907d[_0xb7b84f(0x7e)]();}[_0x39a1a7(0x67)](){const _0xf5c575=_0x39a1a7;var _0x243ec6;const _0x401d20=this['_injector'][_0xf5c575(0x92)](_0x2a6d35[_0xf5c575(0x64)]),_0x4d1838=(_0x243ec6=this['getActiveWorkbook']())==null?void 0x0:_0x243ec6[_0xf5c575(0x8a)]();if(!_0x4d1838)throw new Error('No\x20active\x20workbook\x20found.');const _0x1786f0=_0x401d20[_0xf5c575(0x82)](_0x4d1838);if(!_0x1786f0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1786f0[_0xf5c575(0x70)]();}['stopPresenting'](){const _0x290448=_0x39a1a7;var _0x658dd5;const _0x235215=this[_0x290448(0x6d)][_0x290448(0x92)](_0x2a6d35[_0x290448(0x64)]),_0x48c3be=(_0x658dd5=this[_0x290448(0x93)]())==null?void 0x0:_0x658dd5[_0x290448(0x8a)]();if(!_0x48c3be)throw new Error(_0x290448(0x6b));const _0x298b3f=_0x235215[_0x290448(0x82)](_0x48c3be);if(!_0x298b3f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x298b3f['stopPresenting']();}}_0x1b0429['FUniver']['extend'](_0x2ab3c7);class _0x347a4e extends _0x1b0429[_0x39a1a7(0x9a)]{get['LiveShareStatusEnum'](){return _0x2a6d35['LiveShareStatus'];}}_0x1b0429[_0x39a1a7(0x9a)]['extend'](_0x347a4e);}));function _0x53cd(_0x4e4c01,_0x3c2104){_0x4e4c01=_0x4e4c01-0x64;const _0x51b69b=_0x51b6();let _0x53cd0b=_0x51b69b[_0x4e4c01];return _0x53cd0b;}function _0x51b6(){const _0x3398ca=['20920euTtrm','getStatus','IDLE','executeCommand','@univerjs/sheets','@univerjs/engine-render','getId','1764928frBCNp','object','2260790fkLwtx','@univerjs-pro/live-share','UniverEngineRender','@univerjs/sheets/facade','PRESENTING','get','getActiveWorkbook','FUniver','function','5emFzPn','syncExecuteCommand','SetScrollOperation','UniverCoreFacade','FEnum','1014104mpDHgi','getActiveSheet','LiveShareController','UniverSheetsFacade','IRenderManagerService','startPresenting','UniverSheets','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','1057XQMaNI','_injector','SetWorksheetActiveOperation','@univerjs/core/facade','tryStartPresenting','UniverProLiveShare','getUnitId','759219mdaIxZ','startColumn','startFollowing','getSheetId','FRange','9gjBsoc','_initialize','4ZqwSXY','88800MlUwcO','getRenderById','amd','stopFollowing','_commandService','428796DdbeiI','LiveShareStatus','getLiveShareCoordinatorSync','extend'];_0x51b6=function(){return _0x3398ca;};return _0x51b6();}
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 _0xac2f(_0x1b480b,_0x5eae69){_0x1b480b=_0x1b480b-0x1ae;const _0x4a3996=_0x4a39();let _0xac2f9e=_0x4a3996[_0x1b480b];return _0xac2f9e;}function _0x4a39(){const _0x28dc4d=['80oXgkZB','UniverDesign','LIVESHARE_NEW_HOST','_handleNewHost','useRef','has','unitId','Disposable','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','button','use','defs','react','fill','sheet','live-share.config','_startFollowing','length','operators','You\x27are\x20offline.','createElement','assign','useEffect','registerComponent','setConfig','SessionStatus','dispose','_mountLiveShare','UniverSheets','symbol','NOT_FOLLOWING','sessionStatus$','asObservable','LiveShareCoordinator','trim','presenting','LIVESHARE_OPERATION','text','SAME_OPERATION_SHARE_INTERVAL','@univerjs/sheets-ui','object','IUniverInstanceService','_unitID','UNIVER_LIVE_SHARE_PLUGIN','send','Injector','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','createInstance','idle','displayName','IUIPartsService','_config','params','tag','Module','_handleOperation','operations','InsertSheetMutation','62590HuEkfl','UNIVER_UNKNOWN','executeCommand','onCommandExecuted','onRendered','_collabSessionService','none','BuiltInUIPart','useObservable','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','rxjs','string','registerDependencies','startFollowing','1em','Start','getStatus','_stopPresenting','UniverIcon','presenter','merge','getOwnPropertyDescriptor','default','not-following','jsx','unsubscribe','add','UniverLiveSharePlugin','SetWorksheetActiveOperation','svg','NEW_CHANGESETS','from','_stopFollowing','registerSharedOperation','UniverSheetsUi','_commandService','LIVESHARE_TERMINATE','path','stopFollowing','xlink:href','throttleTime','getCurrentTypeOfUnit$','delete','values','children','UniverUi','connectInjector','LIVESHARE_FETCH_OPERATIONS','1117389Ksakgm','map','SetScrollOperation','Button','getTypeOfUnitDisposed$','_init','touchDependencies','currentColor','subscribe','useDependency','LiveShareController','univerjs-icon\x20univerjs-icon-','_univerInstanceService','FOLLOWING','_handleNewChangeSets','shouldShareOperation','complete','status$','toDisposable','useState','forEach','Inject','_handleTerminate','@univerjs/sheets','getInitialStates','mask','idSuffix','init','IDLE','331590QmVXOp','RxDisposable','CommandType','offline','ICommandService','next','random','amd','disposeWithMe','Present\x20this\x20document','following','_startLiveShareCoordinator','_sharedOperations','1048884RnGGUm','136146BqwSxc','event$','registerInitialStateReporter','jsxs','_beIdle','@univerjs/core','get','HEADER_MENU','reverse','9TqfuuO','mutations','React','PRESENTING','7245820krwUJL','@univerjs/design','UNIVER_SHEET','getValue','react/jsx-runtime','_startPresenting','0\x200\x2017\x2017','UniverCore','DesktopLiveShareController','data','colorChannel1','Stop\x20following','requireSession','UniverProCollaboration','DisposableCollection','evenodd','_configService','_uiPartsService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_fetchOperations','defineProperty','dispose$','includes','pipe','exports','_commandDisposable','stopPresenting','Start\x20following','_liveShareService','div','DependentOn','stringify','_collabSession','substring','then','mergeOverrideWithDependencies','CollaborationEvent','LIVESHARE_REQUEST_HOST','univer-size-4','6KzxJLy','BehaviorSubject','getMemberID','You\x27re\x20following\x20the\x20presenter','_reporters','_entities','OFFLINE','current','getLiveShareCoordinatorSync','_status$','attrs','ONLINE','UniverCollaborationClientPlugin','replace','363400UouZbP','_presenter','_injector','toString','UniverInstanceType','_status','CollaborationSessionService','getUnitId','clsx','toStringTag','Fragment','IConfigService','takeUntil','find'];_0x4a39=function(){return _0x28dc4d;};return _0x4a39();}(function(_0x400650,_0x172601){const _0xacd9ac=_0xac2f,_0x576860=_0x400650();while(!![]){try{const _0x515a09=-parseInt(_0xacd9ac(0x217))/0x1*(-parseInt(_0xacd9ac(0x270))/0x2)+parseInt(_0xacd9ac(0x1d5))/0x3+-parseInt(_0xacd9ac(0x1e2))/0x4+-parseInt(_0xacd9ac(0x233))/0x5*(parseInt(_0xacd9ac(0x1e3))/0x6)+-parseInt(_0xacd9ac(0x1b8))/0x7+-parseInt(_0xacd9ac(0x225))/0x8*(parseInt(_0xacd9ac(0x1ec))/0x9)+parseInt(_0xacd9ac(0x1f0))/0xa;if(_0x515a09===_0x172601)break;else _0x576860['push'](_0x576860['shift']());}catch(_0x3dd518){_0x576860['push'](_0x576860['shift']());}}}(_0x4a39,0x2f029),function(_0x42ebb6,_0x181594){const _0x102e8d=_0xac2f;typeof exports==_0x102e8d(0x25b)&&typeof module<'u'?_0x181594(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x102e8d(0x1dc)]?define([_0x102e8d(0x208),_0x102e8d(0x1e8),'@univerjs/ui',_0x102e8d(0x1f4),_0x102e8d(0x1f1),_0x102e8d(0x23f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x102e8d(0x1cf),_0x102e8d(0x27b),'rxjs/operators',_0x102e8d(0x25a)],_0x181594):(_0x42ebb6=typeof globalThis<'u'?globalThis:_0x42ebb6||self,_0x181594(_0x42ebb6['UniverProLiveShare']={},_0x42ebb6[_0x102e8d(0x1f7)],_0x42ebb6[_0x102e8d(0x1b5)],_0x42ebb6['React'],_0x42ebb6[_0x102e8d(0x234)],_0x42ebb6[_0x102e8d(0x1ee)],_0x42ebb6[_0x102e8d(0x1fd)],_0x42ebb6['UniverProCollaborationClient'],_0x42ebb6[_0x102e8d(0x24f)],_0x42ebb6[_0x102e8d(0x27b)],_0x42ebb6[_0x102e8d(0x27b)][_0x102e8d(0x245)],_0x42ebb6[_0x102e8d(0x293)]));}(this,function(_0x2c0109,_0x545d76,_0x1a8727,_0x20946c,_0x32ca4b,_0x28aa9a,_0x2352d3,_0x3f0a5f,_0x19e44f,_0x134f05,_0x13542d,_0x5696ca){'use strict';const _0x415a73=_0xac2f;var _0x26a658=Object[_0x415a73(0x204)],_0x452534=(_0x34291f,_0x16a403,_0x7f79e8)=>_0x16a403 in _0x34291f?_0x26a658(_0x34291f,_0x16a403,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f79e8}):_0x34291f[_0x16a403]=_0x7f79e8,_0x44028a=(_0x2441f0,_0x31eea4,_0x969adf)=>_0x452534(_0x2441f0,typeof _0x31eea4!=_0x415a73(0x250)?_0x31eea4+'':_0x31eea4,_0x969adf);function _0x311f12({ref:_0x3d71a4,..._0x78efbf}){const _0x4d3cd8=_0x415a73,{icon:_0x5f1cba,id:_0x5e593a,className:_0xbcc6a1,extend:_0x534b8d,..._0x1a7293}=_0x78efbf,_0x1ee0c0=(_0x4d3cd8(0x1c3)+_0x5e593a+'\x20'+(_0xbcc6a1||''))[_0x4d3cd8(0x255)](),_0x4ab7d4=_0x28aa9a[_0x4d3cd8(0x237)]('_'+_0x38864b());return _0x16fee1(_0x5f1cba,''+_0x5e593a,{'defIds':_0x5f1cba['defIds'],'idSuffix':_0x4ab7d4['current']},{'ref':_0x3d71a4,'className':_0x1ee0c0,..._0x1a7293},_0x534b8d);}function _0x16fee1(_0x7cfb25,_0x2bfda2,_0x143e60,_0x3e7987,_0xf6e73c){const _0x597a08=_0x415a73;return _0x28aa9a['createElement'](_0x7cfb25[_0x597a08(0x26b)],{'key':_0x2bfda2,..._0x331047(_0x7cfb25,_0x143e60,_0xf6e73c),..._0x3e7987},(_0x25e68d(_0x7cfb25,_0x143e60)[_0x597a08(0x1b4)]||[])[_0x597a08(0x1b9)]((_0x570d57,_0x44e152)=>_0x16fee1(_0x570d57,_0x2bfda2+'-'+_0x7cfb25[_0x597a08(0x26b)]+'-'+_0x44e152,_0x143e60,void 0x0,_0xf6e73c)));}function _0x331047(_0x2d6867,_0x522b47,_0x40d96a){const _0x25e7c9=_0x415a73,_0x30087f={..._0x2d6867['attrs']};_0x40d96a!=null&&_0x40d96a[_0x25e7c9(0x1fa)]&&_0x30087f[_0x25e7c9(0x240)]===_0x25e7c9(0x1fa)&&(_0x30087f['fill']=_0x40d96a['colorChannel1']),_0x2d6867['tag']===_0x25e7c9(0x1d1)&&_0x30087f['id']&&(_0x30087f['id']=_0x30087f['id']+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x3dcf2d,_0x191950])=>{const _0x78c768=_0x25e7c9;_0x3dcf2d===_0x78c768(0x1d1)&&typeof _0x191950==_0x78c768(0x27c)&&(_0x30087f[_0x3dcf2d]=_0x191950[_0x78c768(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x78c768(0x1d2)]+')'));});const {defIds:_0x2a86cf}=_0x522b47;return!_0x2a86cf||_0x2a86cf['length']===0x0||(_0x2d6867['tag']===_0x25e7c9(0x23d)&&_0x30087f['xlink:href']&&(_0x30087f[_0x25e7c9(0x1af)]=_0x30087f[_0x25e7c9(0x1af)]+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x382210,_0x49401c])=>{const _0x306932=_0x25e7c9;typeof _0x49401c==_0x306932(0x27c)&&(_0x30087f[_0x382210]=_0x49401c[_0x306932(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x306932(0x1d2)]+')'));})),_0x30087f;}function _0x25e68d(_0x14457d,_0x551a91){const _0x1468ba=_0x415a73;var _0x2183c7;const {defIds:_0x46bf1a}=_0x551a91;return!_0x46bf1a||_0x46bf1a[_0x1468ba(0x244)]===0x0?_0x14457d:_0x14457d[_0x1468ba(0x26b)]===_0x1468ba(0x23e)&&((_0x2183c7=_0x14457d[_0x1468ba(0x1b4)])!=null&&_0x2183c7[_0x1468ba(0x244)])?{..._0x14457d,'children':_0x14457d[_0x1468ba(0x1b4)][_0x1468ba(0x1b9)](_0x150c43=>typeof _0x150c43[_0x1468ba(0x221)]['id']==_0x1468ba(0x27c)&&_0x46bf1a&&_0x46bf1a[_0x1468ba(0x206)](_0x150c43[_0x1468ba(0x221)]['id'])?{..._0x150c43,'attrs':{..._0x150c43[_0x1468ba(0x221)],'id':_0x150c43[_0x1468ba(0x221)]['id']+_0x551a91[_0x1468ba(0x1d2)]}}:_0x150c43)}:_0x14457d;}function _0x38864b(){const _0x5af02=_0x415a73;return Math[_0x5af02(0x1db)]()[_0x5af02(0x228)](0x24)[_0x5af02(0x211)](0x2,0x8);}_0x311f12['displayName']=_0x415a73(0x283);const _0x1e9035={'tag':_0x415a73(0x28e),'attrs':{'xmlns':_0x415a73(0x279),'fill':_0x415a73(0x276),'viewBox':_0x415a73(0x1f6),'width':_0x415a73(0x27f),'height':_0x415a73(0x27f)},'children':[{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x23b)}},{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x264),'fillRule':_0x415a73(0x1ff),'clipRule':_0x415a73(0x1ff)}}]},_0x5b6cad=_0x28aa9a['forwardRef'](function(_0x333c17,_0x34c239){const _0x4f8f02=_0x415a73;return _0x28aa9a[_0x4f8f02(0x247)](_0x311f12,Object[_0x4f8f02(0x248)]({},_0x333c17,{'id':'live-share-icon','ref':_0x34c239,'icon':_0x1e9035}));});_0x5b6cad[_0x415a73(0x267)]='LiveShareIcon';class _0x56aeba extends _0x545d76[_0x415a73(0x23a)]{constructor(){const _0x25781f=_0x415a73;super(...arguments),_0x44028a(this,_0x25781f(0x1e1),new Set()),_0x44028a(this,_0x25781f(0x21b),new Set());}[_0x415a73(0x292)](_0x7d7fb7){const _0x60a160=_0x415a73;return this[_0x60a160(0x1e1)][_0x60a160(0x28b)](_0x7d7fb7),_0x545d76['toDisposable'](()=>this[_0x60a160(0x1e1)][_0x60a160(0x1b2)](_0x7d7fb7));}[_0x415a73(0x1e5)](_0x1b5035){const _0x293ba1=_0x415a73;return this['_reporters'][_0x293ba1(0x28b)](_0x1b5035),_0x545d76[_0x293ba1(0x1ca)](()=>this[_0x293ba1(0x21b)]['delete'](_0x1b5035));}[_0x415a73(0x1c7)](_0x89eca8){const _0x20c834=_0x415a73;return this['_sharedOperations'][_0x20c834(0x238)](_0x89eca8);}[_0x415a73(0x1d0)](_0x5c16ab){const _0x2fa3e1=_0x415a73;return Array[_0x2fa3e1(0x290)](this[_0x2fa3e1(0x21b)])[_0x2fa3e1(0x1b9)](_0x213917=>_0x213917(_0x5c16ab));}}var _0x4122f9=Object[_0x415a73(0x286)],_0x56b12d=(_0x6a3ae5,_0x3bbe74,_0x42524d,_0x36e522)=>{const _0x4dff9a=_0x415a73;for(var _0x13b3b5=_0x36e522>0x1?void 0x0:_0x36e522?_0x4122f9(_0x3bbe74,_0x42524d):_0x3bbe74,_0x2304ea=_0x6a3ae5[_0x4dff9a(0x244)]-0x1,_0x2c3624;_0x2304ea>=0x0;_0x2304ea--)(_0x2c3624=_0x6a3ae5[_0x2304ea])&&(_0x13b3b5=_0x2c3624(_0x13b3b5)||_0x13b3b5);return _0x13b3b5;},_0x201fe6=(_0x218705,_0x3f2123)=>(_0x811bd6,_0xe75ef3)=>_0x3f2123(_0x811bd6,_0xe75ef3,_0x218705);_0x2c0109[_0x415a73(0x1c2)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x18ceac,_0x428287,_0x5dbf5f){const _0x2ab7cc=_0x415a73;super(),_0x44028a(this,_0x2ab7cc(0x21c),new Map()),(this[_0x2ab7cc(0x1c4)]=_0x18ceac,this[_0x2ab7cc(0x227)]=_0x428287,this[_0x2ab7cc(0x275)]=_0x5dbf5f,this[_0x2ab7cc(0x1bd)]());}async['getLiveShareCoordinator'](_0x5aa2d7){const _0x3c7bfe=_0x415a73;return this['_entities']['has'](_0x5aa2d7)||await this[_0x3c7bfe(0x1e0)](_0x5aa2d7),this[_0x3c7bfe(0x21c)][_0x3c7bfe(0x1e9)](_0x5aa2d7);}[_0x415a73(0x21f)](_0x54ebe3){const _0x406c83=_0x415a73;var _0x5c253f;return(_0x5c253f=this['_entities'][_0x406c83(0x1e9)](_0x54ebe3))!=null?_0x5c253f:null;}['_init'](){const _0x5a04a0=_0x415a73;this[_0x5a04a0(0x1c4)]['getTypeOfUnitAdded$'](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this['dispose$']))[_0x5a04a0(0x1c0)](async _0x32a0d7=>{const _0x583975=_0x5a04a0,_0x4329df=_0x32a0d7[_0x583975(0x22c)]();this[_0x583975(0x21c)]['has'](_0x4329df)||this[_0x583975(0x1e0)](_0x4329df);}),this[_0x5a04a0(0x1c4)][_0x5a04a0(0x1bc)](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this[_0x5a04a0(0x205)]))['subscribe'](_0x50ea83=>{const _0x3be3c9=_0x5a04a0,_0x1534e7=_0x50ea83['getUnitId'](),_0x13aace=this[_0x3be3c9(0x21c)][_0x3be3c9(0x1e9)](_0x1534e7);_0x13aace==null||_0x13aace[_0x3be3c9(0x24d)]();});}async[_0x415a73(0x1e0)](_0x19e26c){const _0x57cfeb=_0x415a73,_0x1bba39=await this['_collabSessionService'][_0x57cfeb(0x1fc)](_0x19e26c),_0x1d044a=this[_0x57cfeb(0x227)][_0x57cfeb(0x265)](_0x2c0109['LiveShareCoordinator'],_0x19e26c,_0x1bba39);return _0x1d044a['init'](),this[_0x57cfeb(0x21c)]['set'](_0x19e26c,_0x1d044a),_0x1d044a;}},_0x2c0109[_0x415a73(0x1c2)]=_0x56b12d([_0x201fe6(0x0,_0x545d76[_0x415a73(0x25c)]),_0x201fe6(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x201fe6(0x2,_0x545d76['Inject'](_0x3f0a5f[_0x415a73(0x22b)]))],_0x2c0109['LiveShareController']);var _0x1a6c0f=(_0x3b9ffb=>(_0x3b9ffb['OFFLINE']=_0x415a73(0x1d8),_0x3b9ffb['IDLE']=_0x415a73(0x266),_0x3b9ffb[_0x415a73(0x1c5)]=_0x415a73(0x1df),_0x3b9ffb[_0x415a73(0x251)]=_0x415a73(0x288),_0x3b9ffb[_0x415a73(0x1ef)]=_0x415a73(0x256),_0x3b9ffb))(_0x1a6c0f||{});const _0x740a88=_0x415a73(0x259),_0x1eb84c=0xc8;_0x2c0109[_0x415a73(0x254)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x27cdee,_0x463a0d,_0x4f5c1b,_0x20d987,_0x4ae9c8){const _0x1643f0=_0x415a73;super(),_0x44028a(this,_0x1643f0(0x220),new _0x134f05[(_0x1643f0(0x218))]('idle')),_0x44028a(this,_0x1643f0(0x1c9),this['_status$'][_0x1643f0(0x253)]()),_0x44028a(this,_0x1643f0(0x1bd),!0x1),_0x44028a(this,_0x1643f0(0x209),null),_0x44028a(this,'_presenter',null),(this[_0x1643f0(0x25d)]=_0x27cdee,this[_0x1643f0(0x210)]=_0x463a0d,this[_0x1643f0(0x200)]=_0x4f5c1b,this['_liveShareService']=_0x20d987,this[_0x1643f0(0x294)]=_0x4ae9c8);}get['_status'](){const _0x2b4b6b=_0x415a73;return this['_status$'][_0x2b4b6b(0x1f3)]();}['dispose'](){const _0x2d0233=_0x415a73;var _0x11b6b4;(_0x11b6b4=this[_0x2d0233(0x209)])==null||_0x11b6b4[_0x2d0233(0x24d)](),this[_0x2d0233(0x220)][_0x2d0233(0x1da)](_0x2d0233(0x266)),this[_0x2d0233(0x220)][_0x2d0233(0x1c8)]();}[_0x415a73(0x281)](){const _0x18e80e=_0x415a73;return this[_0x18e80e(0x22a)];}[_0x415a73(0x1d3)](){const _0x11abf0=_0x415a73;this[_0x11abf0(0x1bd)]||(this[_0x11abf0(0x1bd)]=!0x0,this[_0x11abf0(0x210)][_0x11abf0(0x252)]['pipe'](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a358a=>{const _0x20d5cc=_0x11abf0;switch(_0x4a358a){case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x21d)]:this[_0x20d5cc(0x261)]();break;case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x222)]:this['_handleOnline']();break;}}),this[_0x11abf0(0x210)][_0x11abf0(0x1e4)][_0x11abf0(0x207)](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a6a98=>{const _0x35b618=_0x11abf0,{eventID:_0x4cf6a7}=_0x4a6a98;switch(_0x4cf6a7){case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x235)]:this[_0x35b618(0x236)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x257)]:this[_0x35b618(0x26d)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)]['LIVESHARE_TERMINATE']:this[_0x35b618(0x1ce)]();break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x28f)]:this[_0x35b618(0x1c6)](_0x4a6a98);break;}}));}['tryStartPresenting'](){const _0x455721=_0x415a73;this['_collabSession'][_0x455721(0x25f)]({'eventID':_0x2352d3[_0x455721(0x214)][_0x455721(0x215)],'data':{'unitID':this[_0x455721(0x25d)],'userID':this[_0x455721(0x210)]['getMemberID']()}},this[_0x455721(0x25d)]);}[_0x415a73(0x20a)](){const _0x1ae1cb=_0x415a73;this[_0x1ae1cb(0x22a)]===_0x1ae1cb(0x256)&&(this[_0x1ae1cb(0x220)]['next']('idle'),this[_0x1ae1cb(0x210)][_0x1ae1cb(0x25f)]({'eventID':_0x2352d3['CollaborationEvent'][_0x1ae1cb(0x295)],'data':{'unitID':this[_0x1ae1cb(0x25d)]}},this[_0x1ae1cb(0x25d)]));}[_0x415a73(0x27e)](){const _0x11d4f6=_0x415a73;this['_status']==='not-following'&&(this[_0x11d4f6(0x220)]['next']('following'),this[_0x11d4f6(0x243)]());}['stopFollowing'](){const _0x4bc734=_0x415a73;this[_0x4bc734(0x22a)]===_0x4bc734(0x1df)&&this['_stopFollowing']();}[_0x415a73(0x236)](_0x1ae82b){const _0x2172df=_0x415a73,{presenter:_0x59450a}=_0x1ae82b['data'],_0x2deca2=this[_0x2172df(0x210)][_0x2172df(0x219)]();this[_0x2172df(0x226)]=_0x59450a,_0x59450a===_0x2deca2?(this['_stopFollowing'](),this[_0x2172df(0x1f5)]()):this[_0x2172df(0x22a)]!==_0x2172df(0x288)&&(this[_0x2172df(0x282)](),this['_startFollowing']());}[_0x415a73(0x203)](){const _0x3bd148=_0x415a73,_0xbd4bc9={'eventID':_0x2352d3[_0x3bd148(0x214)][_0x3bd148(0x1b7)]};this[_0x3bd148(0x210)]['send'](_0xbd4bc9,this[_0x3bd148(0x25d)]);}[_0x415a73(0x1ce)](){const _0x3c6bf5=_0x415a73;this[_0x3c6bf5(0x226)]=null,this[_0x3c6bf5(0x22a)]!==_0x3c6bf5(0x256)&&this[_0x3c6bf5(0x1e7)]();}[_0x415a73(0x1c6)](_0x235532){const _0x285482=_0x415a73;if(this['_status']===_0x285482(0x1df)&&this[_0x285482(0x226)]===_0x235532[_0x285482(0x1f9)]['memberID']){const _0x4e811c=_0x2352d3['parseProtocolChangeset'](_0x235532[_0x285482(0x1f9)])[_0x285482(0x1ed)][_0x285482(0x1eb)]()[_0x285482(0x232)](_0x33aead=>_0x33aead['id']===_0x19e44f[_0x285482(0x26f)]['id']);if(_0x4e811c){const _0x882937=_0x4e811c[_0x285482(0x26a)][_0x285482(0x239)],_0x3985c8=_0x4e811c[_0x285482(0x26a)][_0x285482(0x241)]['id'];setTimeout(()=>{const _0x2b0ae8=_0x285482;this[_0x2b0ae8(0x294)][_0x2b0ae8(0x272)](_0x19e44f[_0x2b0ae8(0x28d)]['id'],{'unitId':_0x882937,'subUnitId':_0x3985c8},{'fromCollab':!0x0});});}}}[_0x415a73(0x1f5)](){const _0x74239e=_0x415a73;this[_0x74239e(0x220)][_0x74239e(0x1da)](_0x74239e(0x256));const _0x299855=new Map(),_0x214a7a=this['_commandDisposable']=new _0x545d76[(_0x74239e(0x1fe))]();_0x214a7a[_0x74239e(0x28b)](_0x545d76[_0x74239e(0x1ca)](()=>{const _0x556ef8=_0x74239e;_0x299855[_0x556ef8(0x1cc)](_0xc6dbb1=>_0xc6dbb1[_0x556ef8(0x1c8)]()),_0x299855['clear']();})),_0x214a7a[_0x74239e(0x28b)](this[_0x74239e(0x294)][_0x74239e(0x273)](_0x35f4a2=>{const _0x48225d=_0x74239e;var _0x4f3b67;if(_0x35f4a2['type']!==_0x545d76[_0x48225d(0x1d7)]['OPERATION']||!this[_0x48225d(0x20c)]['shouldShareOperation'](_0x35f4a2['id']))return;const {id:_0x4722c1}=_0x35f4a2;let _0x180b3e;_0x299855[_0x48225d(0x238)](_0x4722c1)?_0x180b3e=_0x299855[_0x48225d(0x1e9)](_0x4722c1):(_0x180b3e=new _0x134f05[(_0x48225d(0x262))](),_0x299855['set'](_0x4722c1,_0x180b3e),_0x180b3e[_0x48225d(0x207)](_0x13542d[_0x48225d(0x1b0)]((_0x4f3b67=this[_0x48225d(0x200)]['getConfig'](_0x740a88))!=null?_0x4f3b67:_0x1eb84c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x48225d(0x1c0)](_0x4ca3b2=>{const _0x54e341=_0x48225d;this['_collabSession']['send']({'eventID':_0x2352d3[_0x54e341(0x214)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x54e341(0x25d)],'operations':{[_0x4ca3b2['id']]:{'id':_0x4ca3b2['id'],'params':JSON[_0x54e341(0x20f)](_0x4ca3b2[_0x54e341(0x26a)])}}}},this['_unitID']);})),_0x180b3e[_0x48225d(0x1da)](_0x35f4a2);})),this[_0x74239e(0x20c)][_0x74239e(0x1d0)](this[_0x74239e(0x25d)])[_0x74239e(0x1cc)](_0x172709=>this[_0x74239e(0x210)]['send']({'eventID':_0x2352d3[_0x74239e(0x214)][_0x74239e(0x257)],'data':{'unitID':this[_0x74239e(0x25d)],'operations':{[_0x172709['id']]:{'id':_0x172709['id'],'params':JSON[_0x74239e(0x20f)](_0x172709[_0x74239e(0x26a)])}}}},this[_0x74239e(0x25d)]));}[_0x415a73(0x282)](){const _0x3b19f8=_0x415a73;var _0x6493b;this['_status$']['next'](_0x3b19f8(0x266)),(_0x6493b=this[_0x3b19f8(0x209)])==null||_0x6493b[_0x3b19f8(0x24d)](),this['_commandDisposable']=null;}[_0x415a73(0x243)](){const _0x3856e6=_0x415a73;var _0x36a302;(_0x36a302=this[_0x3856e6(0x209)])==null||_0x36a302[_0x3856e6(0x24d)](),this[_0x3856e6(0x220)][_0x3856e6(0x1da)](_0x3856e6(0x1df));}['_beIdle'](){const _0x3f955b=_0x415a73;var _0x25e5cd;this[_0x3f955b(0x220)][_0x3f955b(0x1da)]('idle'),(_0x25e5cd=this[_0x3f955b(0x209)])==null||_0x25e5cd['dispose'](),this['_commandDisposable']=null;}[_0x415a73(0x291)](){const _0xfbb5b=_0x415a73;var _0x347ae6;this['_status$'][_0xfbb5b(0x1da)](_0xfbb5b(0x288)),(_0x347ae6=this[_0xfbb5b(0x209)])==null||_0x347ae6[_0xfbb5b(0x24d)]();}[_0x415a73(0x26d)](_0x293a95){const _0x364d9f=_0x415a73;if([_0x364d9f(0x256),_0x364d9f(0x288),_0x364d9f(0x1d8)]['includes'](this[_0x364d9f(0x22a)])||!_0x293a95['data'][_0x364d9f(0x284)]||_0x293a95['data'][_0x364d9f(0x284)]===this[_0x364d9f(0x210)]['getMemberID']())return;this['_status']==='idle'&&this[_0x364d9f(0x243)]();const _0x2e1475=_0x293a95[_0x364d9f(0x1f9)][_0x364d9f(0x26e)];Object[_0x364d9f(0x1b3)](_0x2e1475)[_0x364d9f(0x1cc)](_0x1ed9e7=>{const _0x4cdba0=_0x364d9f;this[_0x4cdba0(0x294)][_0x4cdba0(0x272)](_0x1ed9e7['id'],_0x1ed9e7[_0x4cdba0(0x26a)]?JSON['parse'](_0x1ed9e7[_0x4cdba0(0x26a)]):null,{'fromCollab':!0x0});});}[_0x415a73(0x261)](){const _0x5ef5d9=_0x415a73;var _0x16ce6d;this[_0x5ef5d9(0x220)][_0x5ef5d9(0x1da)]('offline'),(_0x16ce6d=this[_0x5ef5d9(0x209)])==null||_0x16ce6d['dispose']();}['_handleOnline'](){const _0x201d3b=_0x415a73;this[_0x201d3b(0x220)][_0x201d3b(0x1da)](_0x201d3b(0x266)),this['_fetchOperations']();}},_0x2c0109[_0x415a73(0x254)]=_0x56b12d([_0x201fe6(0x2,_0x545d76[_0x415a73(0x230)]),_0x201fe6(0x3,_0x545d76[_0x415a73(0x1cd)](_0x56aeba)),_0x201fe6(0x4,_0x545d76[_0x415a73(0x1d9)])],_0x2c0109[_0x415a73(0x254)]);function _0x10c2b0(){const _0x443493=_0x415a73,_0xabe22=_0x1a8727[_0x443493(0x1c1)](_0x2c0109[_0x443493(0x1c2)]),_0x20e21c=_0x1a8727['useDependency'](_0x545d76[_0x443493(0x25c)]),_0x2dcd6a=_0x1a8727[_0x443493(0x278)](()=>_0x20e21c[_0x443493(0x1b1)](_0x545d76[_0x443493(0x229)][_0x443493(0x1f2)]),void 0x0,!0x1,[]),[_0x1f16bd,_0x1c71f7]=_0x28aa9a[_0x443493(0x1cb)](null),[_0x241a61,_0x21e108]=_0x28aa9a[_0x443493(0x1cb)](_0x1a6c0f['IDLE']),_0x8c752e=_0x28aa9a[_0x443493(0x237)](null);return _0x28aa9a[_0x443493(0x249)](()=>(_0x2dcd6a&&_0xabe22['getLiveShareCoordinator'](_0x2dcd6a[_0x443493(0x22c)]())[_0x443493(0x212)](_0x4e276d=>{const _0x1eebed=_0x443493;_0x1c71f7(_0x4e276d),_0x8c752e[_0x1eebed(0x21e)]=_0x4e276d[_0x1eebed(0x1c9)][_0x1eebed(0x1c0)](_0x4cc8a2=>{_0x21e108(_0x4cc8a2);});}),()=>{const _0x54ffe3=_0x443493;var _0x144d0f;(_0x144d0f=_0x8c752e[_0x54ffe3(0x21e)])==null||_0x144d0f[_0x54ffe3(0x28a)](),_0x8c752e[_0x54ffe3(0x21e)]=null;}),[_0x2dcd6a,_0xabe22]),_0x1f16bd?_0x20946c[_0x443493(0x289)](_0x32ca4b['Dropdown'],{'align':'end','disabled':_0x241a61===_0x1a6c0f['OFFLINE'],'className':_0x443493(0x202),'overlay':_0x20946c[_0x443493(0x289)](_0x3fc6db,{'status':_0x241a61,'coordinator':_0x1f16bd}),'children':_0x20946c[_0x443493(0x289)](_0x443493(0x23c),{'className':_0x32ca4b[_0x443493(0x22d)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x241a61===_0x1a6c0f[_0x443493(0x21d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x241a61!==_0x1a6c0f[_0x443493(0x21d)]}),'type':_0x443493(0x23c),'children':_0x20946c[_0x443493(0x289)](_0x5b6cad,{'className':_0x443493(0x216)})})}):null;}function _0x3fc6db(_0x2dfb51){const _0x5b59d4=_0x415a73,{status:_0x525163,coordinator:_0x41edca}=_0x2dfb51;switch(_0x525163){case _0x1a6c0f[_0x5b59d4(0x1d4)]:return _0x20946c['jsx'](_0x10ee18,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x1c5)]:return _0x20946c['jsx'](_0x53b861,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x251)]:return _0x20946c['jsx'](_0x1bf957,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x21d)]:return _0x20946c['jsx'](_0x29195f,{});case _0x1a6c0f[_0x5b59d4(0x1ef)]:return _0x20946c[_0x5b59d4(0x289)](_0x2d518d,{'coordinator':_0x41edca});default:return null;}}function _0x10ee18(_0x3345aa){const _0x1f66e0=_0x415a73,{coordinator:_0x3bed0b}=_0x3345aa;return _0x20946c[_0x1f66e0(0x1e6)](_0x20946c[_0x1f66e0(0x22f)],{'children':[_0x20946c[_0x1f66e0(0x289)](_0x1f66e0(0x20d),{'className':_0x1f66e0(0x263),'children':_0x1f66e0(0x1de)}),_0x20946c[_0x1f66e0(0x289)](_0x32ca4b[_0x1f66e0(0x1bb)],{'onClick':()=>_0x3bed0b['tryStartPresenting'](),'children':_0x1f66e0(0x280)})]});}function _0x53b861(_0x46b991){const _0x7165bf=_0x415a73,{coordinator:_0x46ed6c}=_0x46b991;return _0x20946c['jsxs'](_0x20946c[_0x7165bf(0x22f)],{'children':[_0x20946c[_0x7165bf(0x289)](_0x7165bf(0x20d),{'className':_0x7165bf(0x263),'children':_0x7165bf(0x21a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'onClick':()=>_0x46ed6c[_0x7165bf(0x1ae)](),'children':_0x7165bf(0x1fb)})]});}function _0x1bf957(_0x27d6fb){const _0x4cebda=_0x415a73,{coordinator:_0x44be3e}=_0x27d6fb;return _0x20946c[_0x4cebda(0x1e6)](_0x20946c[_0x4cebda(0x22f)],{'children':[_0x20946c['jsx'](_0x4cebda(0x20d),{'className':_0x4cebda(0x263),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20946c['jsx'](_0x32ca4b[_0x4cebda(0x1bb)],{'variant':_0x4cebda(0x258),'onClick':()=>_0x44be3e['startFollowing'](),'children':_0x4cebda(0x20b)})]});}function _0x2d518d(_0x48a797){const _0x4c1fd7=_0x415a73,{coordinator:_0x4ea34f}=_0x48a797;return _0x20946c[_0x4c1fd7(0x1e6)](_0x20946c[_0x4c1fd7(0x22f)],{'children':[_0x20946c[_0x4c1fd7(0x289)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c1fd7(0x27a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'variant':_0x4c1fd7(0x287),'onClick':()=>_0x4ea34f[_0x4c1fd7(0x20a)](),'children':'Stop\x20presenting'})]});}function _0x29195f(){const _0x22f3d9=_0x415a73;return _0x20946c[_0x22f3d9(0x289)](_0x20946c[_0x22f3d9(0x22f)],{'children':_0x22f3d9(0x246)});}var _0x3164f8=Object[_0x415a73(0x286)],_0x26000f=(_0x26802d,_0x1d7519,_0x34a259,_0x396641)=>{const _0x5ade82=_0x415a73;for(var _0x1f8c72=_0x396641>0x1?void 0x0:_0x396641?_0x3164f8(_0x1d7519,_0x34a259):_0x1d7519,_0x3cd0a3=_0x26802d[_0x5ade82(0x244)]-0x1,_0x33c449;_0x3cd0a3>=0x0;_0x3cd0a3--)(_0x33c449=_0x26802d[_0x3cd0a3])&&(_0x1f8c72=_0x33c449(_0x1f8c72)||_0x1f8c72);return _0x1f8c72;},_0x4a3cf8=(_0x4059e8,_0x423f8b)=>(_0x2ddbe9,_0x4fcd71)=>_0x423f8b(_0x2ddbe9,_0x4fcd71,_0x4059e8);_0x2c0109[_0x415a73(0x1f8)]=class extends _0x545d76['Disposable']{constructor(_0x285c7f,_0x5d908f){const _0xed06aa=_0x415a73;super(),this[_0xed06aa(0x227)]=_0x285c7f,this[_0xed06aa(0x201)]=_0x5d908f,this[_0xed06aa(0x24e)]();}[_0x415a73(0x24e)](){const _0x5a7671=_0x415a73;this[_0x5a7671(0x1dd)](this['_uiPartsService'][_0x5a7671(0x24a)](_0x1a8727[_0x5a7671(0x277)][_0x5a7671(0x1ea)],()=>_0x1a8727[_0x5a7671(0x1b6)](_0x10c2b0,this[_0x5a7671(0x227)])));}},_0x2c0109[_0x415a73(0x1f8)]=_0x26000f([_0x4a3cf8(0x0,_0x545d76[_0x415a73(0x1cd)](_0x545d76['Injector'])),_0x4a3cf8(0x1,_0x1a8727[_0x415a73(0x268)])],_0x2c0109['DesktopLiveShareController']);const _0x5a9f0c=_0x415a73(0x242),_0x19b59f={};var _0x5a81dc=Object[_0x415a73(0x286)],_0x3d72da=(_0x46068e,_0x56ca5e,_0xf4706f,_0x4eedc7)=>{const _0x53c5ac=_0x415a73;for(var _0x2d1b99=_0x4eedc7>0x1?void 0x0:_0x4eedc7?_0x5a81dc(_0x56ca5e,_0xf4706f):_0x56ca5e,_0xa5f72=_0x46068e[_0x53c5ac(0x244)]-0x1,_0x2644ed;_0xa5f72>=0x0;_0xa5f72--)(_0x2644ed=_0x46068e[_0xa5f72])&&(_0x2d1b99=_0x2644ed(_0x2d1b99)||_0x2d1b99);return _0x2d1b99;},_0x2fbd0e=(_0x52e06f,_0x4c26ad)=>(_0x1e771e,_0x3578f2)=>_0x4c26ad(_0x1e771e,_0x3578f2,_0x52e06f);let _0x194840=class extends _0x545d76['Disposable']{constructor(_0xa8933){const _0x58f92f=_0x415a73;super(),this['_liveShareService']=_0xa8933,this[_0x58f92f(0x1bd)]();}[_0x415a73(0x1bd)](){const _0xcde255=_0x415a73;[_0x5696ca['SetZoomRatioOperation']['id'],_0x5696ca[_0xcde255(0x1ba)]['id'],_0x19e44f['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ef25b=>{const _0x85cd43=_0xcde255;this[_0x85cd43(0x1dd)](this[_0x85cd43(0x20c)][_0x85cd43(0x292)](_0x4ef25b));});}};_0x194840=_0x3d72da([_0x2fbd0e(0x0,_0x545d76[_0x415a73(0x1cd)](_0x56aeba))],_0x194840);var _0x441f69=Object[_0x415a73(0x204)],_0x5dc34c=Object[_0x415a73(0x286)],_0x2b7b61=(_0x1583fe,_0x324feb,_0x55c4e2)=>_0x324feb in _0x1583fe?_0x441f69(_0x1583fe,_0x324feb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c4e2}):_0x1583fe[_0x324feb]=_0x55c4e2,_0x3f9665=(_0x1d6502,_0x45d90a,_0x7c2617,_0xd738ea)=>{const _0x1c08a5=_0x415a73;for(var _0x4afae9=_0xd738ea>0x1?void 0x0:_0xd738ea?_0x5dc34c(_0x45d90a,_0x7c2617):_0x45d90a,_0x522ba4=_0x1d6502[_0x1c08a5(0x244)]-0x1,_0x2a9c64;_0x522ba4>=0x0;_0x522ba4--)(_0x2a9c64=_0x1d6502[_0x522ba4])&&(_0x4afae9=_0x2a9c64(_0x4afae9)||_0x4afae9);return _0x4afae9;},_0x49a4e0=(_0x2ed793,_0x361f10)=>(_0x27c3ee,_0x230174)=>_0x361f10(_0x27c3ee,_0x230174,_0x2ed793),_0x2c8a99=(_0x3544bd,_0x498223,_0x51bb70)=>_0x2b7b61(_0x3544bd,typeof _0x498223!='symbol'?_0x498223+'':_0x498223,_0x51bb70);const _0x2e97d3=_0x415a73(0x25e);_0x2c0109[_0x415a73(0x28c)]=class extends _0x545d76['Plugin']{constructor(_0x5d27fa=_0x19b59f,_0x48655,_0x598257){const _0x4fb8e2=_0x415a73;super(),this['_config']=_0x5d27fa,this['_injector']=_0x48655,this[_0x4fb8e2(0x200)]=_0x598257;const {..._0x276a56}=_0x545d76[_0x4fb8e2(0x285)]({},_0x19b59f,this[_0x4fb8e2(0x269)]);this[_0x4fb8e2(0x200)][_0x4fb8e2(0x24b)](_0x5a9f0c,_0x276a56);}['onStarting'](){const _0x4c6223=_0x415a73;_0x545d76[_0x4c6223(0x27d)](this[_0x4c6223(0x227)],_0x545d76[_0x4c6223(0x213)]([[_0x56aeba],[_0x2c0109[_0x4c6223(0x1c2)]],[_0x194840],[_0x2c0109[_0x4c6223(0x1f8)]]],this[_0x4c6223(0x269)]['override'])),_0x545d76[_0x4c6223(0x1be)](this['_injector'],[[_0x194840]]);}[_0x415a73(0x274)](){const _0x292e43=_0x415a73;_0x545d76[_0x292e43(0x1be)](this['_injector'],[[_0x2c0109[_0x292e43(0x1f8)]]]);}},_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'type',_0x545d76[_0x415a73(0x229)][_0x415a73(0x271)]),_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'pluginName',_0x2e97d3),_0x2c0109[_0x415a73(0x28c)]=_0x3f9665([_0x545d76[_0x415a73(0x20e)](_0x3f0a5f[_0x415a73(0x223)]),_0x49a4e0(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x49a4e0(0x2,_0x545d76[_0x415a73(0x230)])],_0x2c0109[_0x415a73(0x28c)]),_0x2c0109['LiveShare']=_0x10c2b0,_0x2c0109['LiveShareService']=_0x56aeba,_0x2c0109['LiveShareStatus']=_0x1a6c0f,Object[_0x415a73(0x204)](_0x2c0109,Symbol[_0x415a73(0x22e)],{'value':_0x415a73(0x26c)});}));
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-3d1cfdf",
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-3d1cfdf",
61
+ "@univerjs/core": "0.15.0-insiders.20260107-3d1cfdf",
62
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3d1cfdf",
63
+ "@univerjs/design": "0.15.0-insiders.20260107-3d1cfdf",
64
+ "@univerjs/engine-render": "0.15.0-insiders.20260107-3d1cfdf",
65
+ "@univerjs/sheets": "0.15.0-insiders.20260107-3d1cfdf",
66
+ "@univerjs/ui": "0.15.0-insiders.20260107-3d1cfdf",
67
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3d1cfdf"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",