@univerjs-pro/live-share 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-45172c6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x4716(_0x12e6d2,_0x43d543){const _0x57fa5c=_0x57fa();return _0x4716=function(_0x4716a9,_0x20079b){_0x4716a9=_0x4716a9-0x126;let _0x467da4=_0x57fa5c[_0x4716a9];return _0x467da4;},_0x4716(_0x12e6d2,_0x43d543);}const _0x4c3477=_0x4716;(function(_0x4115dd,_0x105dad){const _0x3b0cb6=_0x4716,_0x1d7c4a=_0x4115dd();while(!![]){try{const _0x2246b7=-parseInt(_0x3b0cb6(0x144))/0x1*(parseInt(_0x3b0cb6(0x139))/0x2)+-parseInt(_0x3b0cb6(0x135))/0x3+-parseInt(_0x3b0cb6(0x129))/0x4+-parseInt(_0x3b0cb6(0x148))/0x5*(-parseInt(_0x3b0cb6(0x13a))/0x6)+-parseInt(_0x3b0cb6(0x131))/0x7+-parseInt(_0x3b0cb6(0x145))/0x8*(parseInt(_0x3b0cb6(0x134))/0x9)+-parseInt(_0x3b0cb6(0x133))/0xa*(-parseInt(_0x3b0cb6(0x12e))/0xb);if(_0x2246b7===_0x105dad)break;else _0x1d7c4a['push'](_0x1d7c4a['shift']());}catch(_0x2c3e2b){_0x1d7c4a['push'](_0x1d7c4a['shift']());}}}(_0x57fa,0xc22e4));function _0x57fa(){const _0x441afa=['startRow','14788sgxHzM','1357344lfIyUt','getActiveWorkbook','SetScrollOperation','_injector','startFollowing','getUnitId','extend','executeCommand','No\x20active\x20workbook\x20found.','getActiveSheet','97ktKxBN','8HAOdJU','LiveShareStatus','FRange','15pZkNde','IDLE','getRenderById','FEnum','stopFollowing','getLiveShareCoordinatorSync','syncExecuteCommand','tryStartPresenting','getStatus','FUniver','getLiveShareStatus','startColumn','1517808jCanpd','get','SetWorksheetActiveOperation','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','45774674MEQnRu','startPresenting','LiveShareController','9050069UdbVmy','getSheetId','10TonvfQ','8084142GdILFJ','2270601MuNVss','_commandService','getId'];_0x57fa=function(){return _0x441afa;};return _0x57fa();}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[_0x4c3477(0x147)]{['_initialize'](_0x36e6eb,_0x36600d,_0x1094fd,_0x577892,_0x5a97f7){const _0x5474f5=_0x4c3477,_0x537cba=_0x36e6eb[_0x5474f5(0x12a)](n[_0x5474f5(0x130)]),_0x58fe80=_0x36e6eb[_0x5474f5(0x12a)](g['IRenderManagerService']),_0x26a13f=_0x36600d[_0x5474f5(0x13f)](),_0x398056=_0x36600d[_0x5474f5(0x143)](),_0x15f1dc=_0x537cba[_0x5474f5(0x14d)](_0x26a13f);(_0x15f1dc==null?void 0x0:_0x15f1dc[_0x5474f5(0x150)]())!==n[_0x5474f5(0x146)]['PRESENTING']||(_0x1094fd['getSheetId']()!==_0x398056['getSheetId']()&&this[_0x5474f5(0x136)][_0x5474f5(0x141)](u[_0x5474f5(0x12b)]['id'],{'unitId':_0x26a13f,'subUnitId':_0x1094fd['getSheetId']()}),!_0x58fe80[_0x5474f5(0x14a)](_0x26a13f))||_0x5a97f7[_0x5474f5(0x14e)](f[_0x5474f5(0x13c)]['id'],{'unitId':_0x36600d[_0x5474f5(0x13f)](),'sheetId':_0x1094fd[_0x5474f5(0x132)](),'sheetViewStartRow':_0x577892[_0x5474f5(0x138)],'sheetViewStartColumn':_0x577892[_0x5474f5(0x128)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x4c3477(0x147)]['extend'](w);class C extends a[_0x4c3477(0x126)]{[_0x4c3477(0x127)](){const _0x3ce8f9=_0x4c3477;var _0x5c4e41,_0x4ff7c8;const _0x4df02f=this['_injector']['get'](n[_0x3ce8f9(0x130)]),_0x4b3030=(_0x5c4e41=this['getActiveWorkbook']())==null?void 0x0:_0x5c4e41['getId']();if(!_0x4b3030)throw new Error(_0x3ce8f9(0x142));const _0x596be3=_0x4df02f[_0x3ce8f9(0x14d)](_0x4b3030);return(_0x4ff7c8=_0x596be3==null?void 0x0:_0x596be3[_0x3ce8f9(0x150)]())!=null?_0x4ff7c8:n['LiveShareStatus'][_0x3ce8f9(0x149)];}[_0x4c3477(0x13e)](){const _0x4ebc28=_0x4c3477;var _0x52d74c;const _0x505703=this[_0x4ebc28(0x13d)][_0x4ebc28(0x12a)](n[_0x4ebc28(0x130)]),_0x5c713a=(_0x52d74c=this[_0x4ebc28(0x13b)]())==null?void 0x0:_0x52d74c['getId']();if(!_0x5c713a)throw new Error('No\x20active\x20workbook\x20found.');const _0x33770c=_0x505703[_0x4ebc28(0x14d)](_0x5c713a);if(!_0x33770c)throw new Error(_0x4ebc28(0x12d));_0x33770c['startFollowing']();}[_0x4c3477(0x14c)](){const _0x4506a0=_0x4c3477;var _0x48c237;const _0x2ea826=this[_0x4506a0(0x13d)][_0x4506a0(0x12a)](n[_0x4506a0(0x130)]),_0x38d975=(_0x48c237=this[_0x4506a0(0x13b)]())==null?void 0x0:_0x48c237[_0x4506a0(0x137)]();if(!_0x38d975)throw new Error(_0x4506a0(0x142));const _0x5e0283=_0x2ea826[_0x4506a0(0x14d)](_0x38d975);if(!_0x5e0283)throw new Error(_0x4506a0(0x12d));_0x5e0283[_0x4506a0(0x14c)]();}[_0x4c3477(0x12f)](){const _0x360142=_0x4c3477;var _0x36aba3;const _0x58b0b4=this[_0x360142(0x13d)][_0x360142(0x12a)](n[_0x360142(0x130)]),_0x5e1932=(_0x36aba3=this[_0x360142(0x13b)]())==null?void 0x0:_0x36aba3[_0x360142(0x137)]();if(!_0x5e1932)throw new Error(_0x360142(0x142));const _0x54cf9a=_0x58b0b4[_0x360142(0x14d)](_0x5e1932);if(!_0x54cf9a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54cf9a[_0x360142(0x14f)]();}[_0x4c3477(0x12c)](){const _0x263581=_0x4c3477;var _0x1c6a79;const _0x307807=this['_injector'][_0x263581(0x12a)](n[_0x263581(0x130)]),_0x229d99=(_0x1c6a79=this[_0x263581(0x13b)]())==null?void 0x0:_0x1c6a79[_0x263581(0x137)]();if(!_0x229d99)throw new Error(_0x263581(0x142));const _0x2622b5=_0x307807[_0x263581(0x14d)](_0x229d99);if(!_0x2622b5)throw new Error(_0x263581(0x12d));_0x2622b5[_0x263581(0x12c)]();}}a[_0x4c3477(0x126)][_0x4c3477(0x140)](C);class L extends a[_0x4c3477(0x14b)]{get['LiveShareStatusEnum'](){return n['LiveShareStatus'];}}a[_0x4c3477(0x14b)][_0x4c3477(0x140)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x141999=_0x10fc;(function(_0x4b1bca,_0x44250b){const _0x5c42c3=_0x10fc,_0x52c951=_0x4b1bca();while(!![]){try{const _0x413a56=parseInt(_0x5c42c3(0x20f))/0x1*(-parseInt(_0x5c42c3(0x1d9))/0x2)+-parseInt(_0x5c42c3(0x22c))/0x3+parseInt(_0x5c42c3(0x237))/0x4*(parseInt(_0x5c42c3(0x205))/0x5)+parseInt(_0x5c42c3(0x1d7))/0x6*(parseInt(_0x5c42c3(0x27f))/0x7)+parseInt(_0x5c42c3(0x278))/0x8+-parseInt(_0x5c42c3(0x24a))/0x9+parseInt(_0x5c42c3(0x266))/0xa;if(_0x413a56===_0x44250b)break;else _0x52c951['push'](_0x52c951['shift']());}catch(_0x3c0928){_0x52c951['push'](_0x52c951['shift']());}}}(_0x3491,0xb3afe));var T=Object[_0x141999(0x1cc)],U=(_0xe02584,_0x5dd677,_0x2b4209)=>_0x5dd677 in _0xe02584?T(_0xe02584,_0x5dd677,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b4209}):_0xe02584[_0x5dd677]=_0x2b4209,_=(_0x41e9d1,_0x27e852,_0x5cf05e)=>U(_0x41e9d1,typeof _0x27e852!='symbol'?_0x27e852+'':_0x27e852,_0x5cf05e);Object['defineProperty'](exports,Symbol[_0x141999(0x1e8)],{'value':_0x141999(0x1e7)});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:_0x3af414,..._0x56a8dc}){const _0x460619=_0x141999,{icon:_0xe7a7b,id:_0x3703ce,className:_0x40ae58,extend:_0x15a4ed,..._0x410b2b}=_0x56a8dc,_0x5c422d=(_0x460619(0x277)+_0x3703ce+'\x20'+(_0x40ae58||''))[_0x460619(0x1dc)](),_0x157aba=v['useRef']('_'+H());return j(_0xe7a7b,''+_0x3703ce,{'defIds':_0xe7a7b[_0x460619(0x293)],'idSuffix':_0x157aba[_0x460619(0x1e2)]},{'ref':_0x3af414,'className':_0x5c422d,..._0x410b2b},_0x15a4ed);}function j(_0x2bb2ac,_0x40a2d1,_0xaa3f65,_0x2ce93d,_0x4e1845){const _0x783034=_0x141999;return v['createElement'](_0x2bb2ac[_0x783034(0x206)],{'key':_0x40a2d1,...y(_0x2bb2ac,_0xaa3f65,_0x4e1845),..._0x2ce93d},(F(_0x2bb2ac,_0xaa3f65)[_0x783034(0x210)]||[])[_0x783034(0x243)]((_0xffba7e,_0x1f7632)=>j(_0xffba7e,_0x40a2d1+'-'+_0x2bb2ac[_0x783034(0x206)]+'-'+_0x1f7632,_0xaa3f65,void 0x0,_0x4e1845)));}function y(_0x2eef6f,_0x56445f,_0x350a6a){const _0x5ec6d7=_0x141999,_0x5afa90={..._0x2eef6f['attrs']};_0x350a6a!=null&&_0x350a6a[_0x5ec6d7(0x21f)]&&_0x5afa90['fill']===_0x5ec6d7(0x21f)&&(_0x5afa90[_0x5ec6d7(0x242)]=_0x350a6a[_0x5ec6d7(0x21f)]),_0x2eef6f[_0x5ec6d7(0x206)]===_0x5ec6d7(0x2a1)&&_0x5afa90['id']&&(_0x5afa90['id']=_0x5afa90['id']+_0x56445f[_0x5ec6d7(0x239)]),Object[_0x5ec6d7(0x297)](_0x5afa90)[_0x5ec6d7(0x1d1)](([_0x5242dc,_0xeee3ef])=>{const _0x48ccdb=_0x5ec6d7;_0x5242dc===_0x48ccdb(0x2a1)&&typeof _0xeee3ef==_0x48ccdb(0x233)&&(_0x5afa90[_0x5242dc]=_0xeee3ef['replace'](/url\(#(.*)\)/,'url(#$1'+_0x56445f['idSuffix']+')'));});const {defIds:_0x2957db}=_0x56445f;return!_0x2957db||_0x2957db[_0x5ec6d7(0x246)]===0x0||(_0x2eef6f[_0x5ec6d7(0x206)]===_0x5ec6d7(0x267)&&_0x5afa90[_0x5ec6d7(0x1cf)]&&(_0x5afa90[_0x5ec6d7(0x1cf)]=_0x5afa90[_0x5ec6d7(0x1cf)]+_0x56445f[_0x5ec6d7(0x239)]),Object[_0x5ec6d7(0x297)](_0x5afa90)[_0x5ec6d7(0x1d1)](([_0x35a45d,_0x31ce8e])=>{const _0x1514cc=_0x5ec6d7;typeof _0x31ce8e==_0x1514cc(0x233)&&(_0x5afa90[_0x35a45d]=_0x31ce8e[_0x1514cc(0x24f)](/url\(#(.*)\)/,_0x1514cc(0x221)+_0x56445f[_0x1514cc(0x239)]+')'));})),_0x5afa90;}function F(_0x54d15c,_0x420725){const _0x112b8f=_0x141999;var _0x12006a;const {defIds:_0xc1f41c}=_0x420725;return!_0xc1f41c||_0xc1f41c['length']===0x0?_0x54d15c:_0x54d15c['tag']===_0x112b8f(0x1fc)&&((_0x12006a=_0x54d15c['children'])!=null&&_0x12006a[_0x112b8f(0x246)])?{..._0x54d15c,'children':_0x54d15c[_0x112b8f(0x210)][_0x112b8f(0x243)](_0x59ecaf=>typeof _0x59ecaf[_0x112b8f(0x235)]['id']==_0x112b8f(0x233)&&_0xc1f41c&&_0xc1f41c['includes'](_0x59ecaf['attrs']['id'])?{..._0x59ecaf,'attrs':{..._0x59ecaf[_0x112b8f(0x235)],'id':_0x59ecaf['attrs']['id']+_0x420725[_0x112b8f(0x239)]}}:_0x59ecaf)}:_0x54d15c;}function H(){const _0x9337e0=_0x141999;return Math[_0x9337e0(0x1f1)]()[_0x9337e0(0x270)](0x24)['substring'](0x2,0x8);}x[_0x141999(0x1ea)]='UniverIcon';const V={'tag':_0x141999(0x213),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x141999(0x280),'viewBox':_0x141999(0x265),'width':_0x141999(0x28d),'height':_0x141999(0x28d)},'children':[{'tag':_0x141999(0x227),'attrs':{'fill':'currentColor','d':_0x141999(0x212)}},{'tag':_0x141999(0x227),'attrs':{'fill':'currentColor','d':_0x141999(0x263),'fillRule':'evenodd','clipRule':_0x141999(0x214)}}]},R=v[_0x141999(0x290)](function(_0xd7b4e4,_0x5add11){const _0x5534c5=_0x141999;return v['createElement'](x,Object[_0x5534c5(0x29f)]({},_0xd7b4e4,{'id':_0x5534c5(0x1f9),'ref':_0x5add11,'icon':V}));});function _0x10fc(_0xdfb522,_0x2f9d78){const _0x349181=_0x3491();return _0x10fc=function(_0x10fc71,_0xeb07e0){_0x10fc71=_0x10fc71-0x1c7;let _0x342e05=_0x349181[_0x10fc71];return _0x342e05;},_0x10fc(_0xdfb522,_0x2f9d78);}R[_0x141999(0x1ea)]=_0x141999(0x1db);class E extends o[_0x141999(0x21b)]{constructor(){const _0x8a5b10=_0x141999;super(...arguments),_(this,_0x8a5b10(0x20e),new Set()),_(this,_0x8a5b10(0x207),new Set());}[_0x141999(0x281)](_0x1830f2){const _0x2b3969=_0x141999;return this[_0x2b3969(0x20e)][_0x2b3969(0x1e0)](_0x1830f2),o[_0x2b3969(0x20a)](()=>this[_0x2b3969(0x20e)][_0x2b3969(0x1fe)](_0x1830f2));}[_0x141999(0x1c9)](_0xaeea43){const _0x290f3f=_0x141999;return this[_0x290f3f(0x207)]['add'](_0xaeea43),o[_0x290f3f(0x20a)](()=>this['_reporters'][_0x290f3f(0x1fe)](_0xaeea43));}[_0x141999(0x1d0)](_0x4f87b9){const _0x5222b5=_0x141999;return this[_0x5222b5(0x20e)]['has'](_0x4f87b9);}['getInitialStates'](_0x17e8ae){const _0x530e6d=_0x141999;return Array[_0x530e6d(0x1ec)](this['_reporters'])[_0x530e6d(0x243)](_0x385178=>_0x385178(_0x17e8ae));}}var M=Object[_0x141999(0x248)],P=(_0x4cb9cd,_0x14a13a,_0x42ad60,_0x6e04fe)=>{const _0x519ce4=_0x141999;for(var _0x2b1d3c=_0x6e04fe>0x1?void 0x0:_0x6e04fe?M(_0x14a13a,_0x42ad60):_0x14a13a,_0x4b9f2a=_0x4cb9cd[_0x519ce4(0x246)]-0x1,_0x60f7b;_0x4b9f2a>=0x0;_0x4b9f2a--)(_0x60f7b=_0x4cb9cd[_0x4b9f2a])&&(_0x2b1d3c=_0x60f7b(_0x2b1d3c)||_0x2b1d3c);return _0x2b1d3c;},S=(_0x561062,_0x50524e)=>(_0x45e033,_0x72c983)=>_0x50524e(_0x45e033,_0x72c983,_0x561062);exports[_0x141999(0x289)]=class extends o[_0x141999(0x254)]{constructor(_0x2c909f,_0x2975d0,_0x210379){const _0x65e81f=_0x141999;super(),_(this,_0x65e81f(0x27e),new Map()),(this[_0x65e81f(0x282)]=_0x2c909f,this['_injector']=_0x2975d0,this[_0x65e81f(0x250)]=_0x210379,this[_0x65e81f(0x251)]());}async[_0x141999(0x1ca)](_0x15fce1){const _0x29629f=_0x141999;return this[_0x29629f(0x27e)]['has'](_0x15fce1)||await this[_0x29629f(0x2a4)](_0x15fce1),this[_0x29629f(0x27e)][_0x29629f(0x299)](_0x15fce1);}[_0x141999(0x23c)](_0x8eb8be){const _0xd71677=_0x141999;var _0x49787c;return(_0x49787c=this[_0xd71677(0x27e)]['get'](_0x8eb8be))!=null?_0x49787c:null;}[_0x141999(0x251)](){const _0x1dedbf=_0x141999;this[_0x1dedbf(0x282)][_0x1dedbf(0x283)](o[_0x1dedbf(0x223)][_0x1dedbf(0x1e5)])[_0x1dedbf(0x22e)](I['takeUntil'](this[_0x1dedbf(0x225)]))[_0x1dedbf(0x1cd)](async _0x3ba579=>{const _0x59465a=_0x1dedbf,_0x23ca60=_0x3ba579['getUnitId']();this[_0x59465a(0x27e)][_0x59465a(0x21d)](_0x23ca60)||this[_0x59465a(0x2a4)](_0x23ca60);}),this['_univerInstanceService'][_0x1dedbf(0x28f)](o[_0x1dedbf(0x223)][_0x1dedbf(0x1e5)])['pipe'](I['takeUntil'](this[_0x1dedbf(0x225)]))[_0x1dedbf(0x1cd)](_0x54e830=>{const _0x144d71=_0x1dedbf,_0xaa0d97=_0x54e830[_0x144d71(0x284)](),_0x4aa8fe=this['_entities'][_0x144d71(0x299)](_0xaa0d97);_0x4aa8fe==null||_0x4aa8fe[_0x144d71(0x1df)]();});}async[_0x141999(0x2a4)](_0x3eeb3f){const _0x432ab6=_0x141999,_0x5c3e6b=await this[_0x432ab6(0x250)][_0x432ab6(0x29e)](_0x3eeb3f),_0x315bec=this['_injector'][_0x432ab6(0x1d4)](exports['LiveShareCoordinator'],_0x3eeb3f,_0x5c3e6b);return _0x315bec[_0x432ab6(0x1f0)](),this[_0x432ab6(0x27e)][_0x432ab6(0x247)](_0x3eeb3f,_0x315bec),_0x315bec;}},exports['LiveShareController']=P([S(0x0,o[_0x141999(0x1dd)]),S(0x1,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),S(0x2,o['Inject'](b[_0x141999(0x1ed)]))],exports[_0x141999(0x289)]);var u=(_0x18619f=>(_0x18619f['OFFLINE']=_0x141999(0x273),_0x18619f[_0x141999(0x262)]='idle',_0x18619f[_0x141999(0x261)]=_0x141999(0x29c),_0x18619f[_0x141999(0x1ce)]=_0x141999(0x2a2),_0x18619f[_0x141999(0x26a)]=_0x141999(0x215),_0x18619f))(u||{});const k=_0x141999(0x264),q=0xc8;exports[_0x141999(0x1fb)]=class extends o[_0x141999(0x254)]{constructor(_0x18f638,_0x5b567d,_0x1ed41b,_0xef47b8,_0x26bb3f){const _0x328e70=_0x141999;super(),_(this,_0x328e70(0x26c),new O[(_0x328e70(0x226))](_0x328e70(0x217))),_(this,_0x328e70(0x29d),this[_0x328e70(0x26c)][_0x328e70(0x25a)]()),_(this,_0x328e70(0x251),!0x1),_(this,'_commandDisposable',null),_(this,_0x328e70(0x21e),null),(this[_0x328e70(0x208)]=_0x18f638,this['_collabSession']=_0x5b567d,this[_0x328e70(0x26f)]=_0x1ed41b,this[_0x328e70(0x28a)]=_0xef47b8,this[_0x328e70(0x204)]=_0x26bb3f);}get[_0x141999(0x271)](){const _0x430a01=_0x141999;return this['_status$'][_0x430a01(0x259)]();}[_0x141999(0x1df)](){const _0x1ea98f=_0x141999;var _0x39541c;(_0x39541c=this['_commandDisposable'])==null||_0x39541c[_0x1ea98f(0x1df)](),this[_0x1ea98f(0x26c)][_0x1ea98f(0x24d)]('idle'),this[_0x1ea98f(0x26c)][_0x1ea98f(0x1d6)]();}[_0x141999(0x298)](){const _0x16cf93=_0x141999;return this[_0x16cf93(0x271)];}[_0x141999(0x1f0)](){const _0x204f44=_0x141999;this[_0x204f44(0x251)]||(this[_0x204f44(0x251)]=!0x0,this['_collabSession'][_0x204f44(0x21c)][_0x204f44(0x22e)](I[_0x204f44(0x20d)](this['dispose$']))['subscribe'](_0x2510e1=>{const _0x4d4bc3=_0x204f44;switch(_0x2510e1){case b[_0x4d4bc3(0x245)][_0x4d4bc3(0x256)]:this[_0x4d4bc3(0x294)]();break;case b['SessionStatus'][_0x4d4bc3(0x22a)]:this[_0x4d4bc3(0x220)]();break;}}),this[_0x204f44(0x23d)][_0x204f44(0x231)][_0x204f44(0x22e)](I['takeUntil'](this[_0x204f44(0x225)]))[_0x204f44(0x1cd)](_0x5e2913=>{const _0x3b6ec9=_0x204f44,{eventID:_0x5803a7}=_0x5e2913;switch(_0x5803a7){case d['CollaborationEvent'][_0x3b6ec9(0x20c)]:this['_handleNewHost'](_0x5e2913);break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x1f4)]:this['_handleOperation'](_0x5e2913);break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x1f7)]:this['_handleTerminate']();break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x285)]:this[_0x3b6ec9(0x28e)](_0x5e2913);break;}}));}[_0x141999(0x28c)](){const _0x4f2107=_0x141999;this[_0x4f2107(0x23d)][_0x4f2107(0x228)]({'eventID':d[_0x4f2107(0x286)][_0x4f2107(0x23b)],'data':{'unitID':this[_0x4f2107(0x208)],'userID':this[_0x4f2107(0x23d)][_0x4f2107(0x26b)]()}},this['_unitID']);}[_0x141999(0x1fd)](){const _0xd68b4a=_0x141999;this[_0xd68b4a(0x271)]==='presenting'&&(this[_0xd68b4a(0x26c)]['next'](_0xd68b4a(0x217)),this[_0xd68b4a(0x23d)][_0xd68b4a(0x228)]({'eventID':d[_0xd68b4a(0x286)][_0xd68b4a(0x1f7)],'data':{'unitID':this[_0xd68b4a(0x208)]}},this[_0xd68b4a(0x208)]));}[_0x141999(0x222)](){const _0xdff30d=_0x141999;this['_status']==='not-following'&&(this[_0xdff30d(0x26c)][_0xdff30d(0x24d)]('following'),this[_0xdff30d(0x1e3)]());}['stopFollowing'](){const _0xdd31a7=_0x141999;this[_0xdd31a7(0x271)]===_0xdd31a7(0x29c)&&this[_0xdd31a7(0x2a5)]();}[_0x141999(0x1f5)](_0x362768){const _0x865d0d=_0x141999,{presenter:_0xfe7f1c}=_0x362768[_0x865d0d(0x21a)],_0x349ab6=this[_0x865d0d(0x23d)][_0x865d0d(0x26b)]();this['_presenter']=_0xfe7f1c,_0xfe7f1c===_0x349ab6?(this[_0x865d0d(0x2a5)](),this[_0x865d0d(0x209)]()):this['_status']!==_0x865d0d(0x2a2)&&(this[_0x865d0d(0x292)](),this[_0x865d0d(0x1e3)]());}['_fetchOperations'](){const _0x129272=_0x141999,_0x11b2d0={'eventID':d[_0x129272(0x286)][_0x129272(0x1e4)]};this['_collabSession'][_0x129272(0x228)](_0x11b2d0,this[_0x129272(0x208)]);}['_handleTerminate'](){const _0x1596cf=_0x141999;this[_0x1596cf(0x21e)]=null,this[_0x1596cf(0x271)]!=='presenting'&&this[_0x1596cf(0x252)]();}[_0x141999(0x28e)](_0x58c26a){const _0x59c12f=_0x141999;if(this[_0x59c12f(0x271)]===_0x59c12f(0x29c)&&this[_0x59c12f(0x21e)]===_0x58c26a[_0x59c12f(0x21a)][_0x59c12f(0x27c)]){const _0x3237d7=d['parseProtocolChangeset'](_0x58c26a['data'])[_0x59c12f(0x25f)]['reverse']()[_0x59c12f(0x1f2)](_0xa97cf9=>_0xa97cf9['id']===C[_0x59c12f(0x240)]['id']);if(_0x3237d7){const _0x35aee4=_0x3237d7[_0x59c12f(0x288)][_0x59c12f(0x291)],_0x198543=_0x3237d7[_0x59c12f(0x288)][_0x59c12f(0x20b)]['id'];setTimeout(()=>{const _0x42720a=_0x59c12f;this['_commandService'][_0x42720a(0x26e)](C[_0x42720a(0x2a6)]['id'],{'unitId':_0x35aee4,'subUnitId':_0x198543},{'fromCollab':!0x0});});}}}[_0x141999(0x209)](){const _0x4fc938=_0x141999;this['_status$'][_0x4fc938(0x24d)]('presenting');const _0x396629=new Map(),_0x558aa9=this['_commandDisposable']=new o[(_0x4fc938(0x216))]();_0x558aa9['add'](o[_0x4fc938(0x20a)](()=>{const _0x5c9f2a=_0x4fc938;_0x396629['forEach'](_0x5c561e=>_0x5c561e['complete']()),_0x396629[_0x5c9f2a(0x1e9)]();})),_0x558aa9[_0x4fc938(0x1e0)](this['_commandService'][_0x4fc938(0x253)](_0x39e4e5=>{const _0x7ae5ed=_0x4fc938;var _0x43b775;if(_0x39e4e5[_0x7ae5ed(0x211)]!==o['CommandType'][_0x7ae5ed(0x1d5)]||!this['_liveShareService']['shouldShareOperation'](_0x39e4e5['id']))return;const {id:_0x4ed897}=_0x39e4e5;let _0x4a74d5;_0x396629[_0x7ae5ed(0x21d)](_0x4ed897)?_0x4a74d5=_0x396629['get'](_0x4ed897):(_0x4a74d5=new O[(_0x7ae5ed(0x29b))](),_0x396629[_0x7ae5ed(0x247)](_0x4ed897,_0x4a74d5),_0x4a74d5['pipe'](I[_0x7ae5ed(0x1fa)]((_0x43b775=this[_0x7ae5ed(0x26f)][_0x7ae5ed(0x1eb)](k))!=null?_0x43b775:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7ae5ed(0x1cd)](_0x3f5224=>{const _0x307054=_0x7ae5ed;this[_0x307054(0x23d)][_0x307054(0x228)]({'eventID':d[_0x307054(0x286)][_0x307054(0x1f4)],'data':{'unitID':this[_0x307054(0x208)],'operations':{[_0x3f5224['id']]:{'id':_0x3f5224['id'],'params':JSON['stringify'](_0x3f5224['params'])}}}},this['_unitID']);})),_0x4a74d5[_0x7ae5ed(0x24d)](_0x39e4e5);})),this[_0x4fc938(0x28a)][_0x4fc938(0x27b)](this[_0x4fc938(0x208)])[_0x4fc938(0x1d1)](_0x1c6335=>this[_0x4fc938(0x23d)]['send']({'eventID':d[_0x4fc938(0x286)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fc938(0x208)],'operations':{[_0x1c6335['id']]:{'id':_0x1c6335['id'],'params':JSON['stringify'](_0x1c6335[_0x4fc938(0x288)])}}}},this[_0x4fc938(0x208)]));}[_0x141999(0x292)](){const _0x43983f=_0x141999;var _0x3a5b33;this[_0x43983f(0x26c)][_0x43983f(0x24d)](_0x43983f(0x217)),(_0x3a5b33=this[_0x43983f(0x1e6)])==null||_0x3a5b33[_0x43983f(0x1df)](),this[_0x43983f(0x1e6)]=null;}['_startFollowing'](){const _0x244299=_0x141999;var _0x1795c4;(_0x1795c4=this['_commandDisposable'])==null||_0x1795c4['dispose'](),this[_0x244299(0x26c)][_0x244299(0x24d)](_0x244299(0x29c));}[_0x141999(0x252)](){const _0x4ec7f5=_0x141999;var _0x586224;this[_0x4ec7f5(0x26c)][_0x4ec7f5(0x24d)](_0x4ec7f5(0x217)),(_0x586224=this[_0x4ec7f5(0x1e6)])==null||_0x586224[_0x4ec7f5(0x1df)](),this[_0x4ec7f5(0x1e6)]=null;}[_0x141999(0x2a5)](){const _0x59e98f=_0x141999;var _0x291d79;this[_0x59e98f(0x26c)][_0x59e98f(0x24d)](_0x59e98f(0x2a2)),(_0x291d79=this[_0x59e98f(0x1e6)])==null||_0x291d79[_0x59e98f(0x1df)]();}[_0x141999(0x25e)](_0x39570a){const _0x28d1b4=_0x141999;if([_0x28d1b4(0x215),_0x28d1b4(0x2a2),_0x28d1b4(0x273)][_0x28d1b4(0x258)](this['_status'])||!_0x39570a['data'][_0x28d1b4(0x224)]||_0x39570a[_0x28d1b4(0x21a)]['presenter']===this['_collabSession'][_0x28d1b4(0x26b)]())return;this['_status']===_0x28d1b4(0x217)&&this['_startFollowing']();const _0x4f258d=_0x39570a[_0x28d1b4(0x21a)][_0x28d1b4(0x201)];Object[_0x28d1b4(0x28b)](_0x4f258d)[_0x28d1b4(0x1d1)](_0x234472=>{const _0x40905d=_0x28d1b4;this[_0x40905d(0x204)][_0x40905d(0x26e)](_0x234472['id'],_0x234472[_0x40905d(0x288)]?JSON[_0x40905d(0x218)](_0x234472[_0x40905d(0x288)]):null,{'fromCollab':!0x0});});}[_0x141999(0x294)](){const _0xbe9bfc=_0x141999;var _0x10b2b3;this[_0xbe9bfc(0x26c)]['next'](_0xbe9bfc(0x273)),(_0x10b2b3=this['_commandDisposable'])==null||_0x10b2b3[_0xbe9bfc(0x1df)]();}[_0x141999(0x220)](){const _0x237fe0=_0x141999;this[_0x237fe0(0x26c)][_0x237fe0(0x24d)](_0x237fe0(0x217)),this[_0x237fe0(0x257)]();}},exports[_0x141999(0x1fb)]=P([S(0x2,o[_0x141999(0x1de)]),S(0x3,o[_0x141999(0x274)](E)),S(0x4,o[_0x141999(0x255)])],exports[_0x141999(0x1fb)]);function $(){const _0x8882d=_0x141999,_0x3bf566=p[_0x8882d(0x26d)](exports[_0x8882d(0x289)]),_0x41dba3=p[_0x8882d(0x26d)](o[_0x8882d(0x1dd)]),_0x5d719c=p[_0x8882d(0x269)](()=>_0x41dba3[_0x8882d(0x23e)](o[_0x8882d(0x223)][_0x8882d(0x1e5)]),void 0x0,!0x1,[]),[_0x280561,_0x1a4b8f]=v[_0x8882d(0x1e1)](null),[_0x54be5b,_0x561dbc]=v[_0x8882d(0x1e1)](u[_0x8882d(0x262)]),_0x5ff9c1=v[_0x8882d(0x22b)](null);return v['useEffect'](()=>(_0x5d719c&&_0x3bf566[_0x8882d(0x1ca)](_0x5d719c['getUnitId']())[_0x8882d(0x1f6)](_0xfe8b83=>{const _0x461040=_0x8882d;_0x1a4b8f(_0xfe8b83),_0x5ff9c1[_0x461040(0x1e2)]=_0xfe8b83[_0x461040(0x29d)][_0x461040(0x1cd)](_0x460367=>{_0x561dbc(_0x460367);});}),()=>{const _0x1a7c48=_0x8882d;var _0xb39d2e;(_0xb39d2e=_0x5ff9c1[_0x1a7c48(0x1e2)])==null||_0xb39d2e[_0x1a7c48(0x1ef)](),_0x5ff9c1[_0x1a7c48(0x1e2)]=null;}),[_0x5d719c,_0x3bf566]),_0x280561?l[_0x8882d(0x296)](f[_0x8882d(0x23f)],{'align':_0x8882d(0x202),'disabled':_0x54be5b===u['OFFLINE'],'className':_0x8882d(0x2a3),'overlay':l[_0x8882d(0x296)](W,{'status':_0x54be5b,'coordinator':_0x280561}),'children':l['jsx'](_0x8882d(0x200),{'className':f[_0x8882d(0x1f8)](_0x8882d(0x24c),{'univer-cursor-not-allowed':_0x54be5b===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54be5b!==u['OFFLINE']}),'type':_0x8882d(0x200),'children':l[_0x8882d(0x296)](R,{'className':'univer-size-4'})})}):null;}function W(_0x28f90d){const _0x4b42ee=_0x141999,{status:_0x41f55d,coordinator:_0x236977}=_0x28f90d;switch(_0x41f55d){case u[_0x4b42ee(0x262)]:return l['jsx'](G,{'coordinator':_0x236977});case u[_0x4b42ee(0x261)]:return l['jsx'](B,{'coordinator':_0x236977});case u[_0x4b42ee(0x1ce)]:return l[_0x4b42ee(0x296)](Y,{'coordinator':_0x236977});case u[_0x4b42ee(0x256)]:return l[_0x4b42ee(0x296)](J,{});case u[_0x4b42ee(0x26a)]:return l['jsx'](Z,{'coordinator':_0x236977});default:return null;}}function G(_0x2e1e3d){const _0x3f612c=_0x141999,{coordinator:_0xc2ce45}=_0x2e1e3d;return l[_0x3f612c(0x22d)](l[_0x3f612c(0x241)],{'children':[l[_0x3f612c(0x296)](_0x3f612c(0x27a),{'className':_0x3f612c(0x22f),'children':_0x3f612c(0x27d)}),l[_0x3f612c(0x296)](f[_0x3f612c(0x275)],{'onClick':()=>_0xc2ce45[_0x3f612c(0x28c)](),'children':'Start'})]});}function B(_0x2fc9e2){const _0x28b5cf=_0x141999,{coordinator:_0x1d4624}=_0x2fc9e2;return l['jsxs'](l['Fragment'],{'children':[l[_0x28b5cf(0x296)](_0x28b5cf(0x27a),{'className':_0x28b5cf(0x22f),'children':_0x28b5cf(0x1c8)}),l[_0x28b5cf(0x296)](f[_0x28b5cf(0x275)],{'onClick':()=>_0x1d4624[_0x28b5cf(0x295)](),'children':_0x28b5cf(0x1d3)})]});}function Y(_0xca9c33){const _0x5c0e42=_0x141999,{coordinator:_0x422549}=_0xca9c33;return l[_0x5c0e42(0x22d)](l['Fragment'],{'children':[l[_0x5c0e42(0x296)](_0x5c0e42(0x27a),{'className':_0x5c0e42(0x22f),'children':_0x5c0e42(0x260)}),l['jsx'](f[_0x5c0e42(0x275)],{'variant':_0x5c0e42(0x244),'onClick':()=>_0x422549[_0x5c0e42(0x222)](),'children':_0x5c0e42(0x24e)})]});}function Z(_0x3fbbd2){const _0x3f6c7=_0x141999,{coordinator:_0x23a2af}=_0x3fbbd2;return l['jsxs'](l[_0x3f6c7(0x241)],{'children':[l[_0x3f6c7(0x296)](_0x3f6c7(0x27a),{'className':_0x3f6c7(0x22f),'children':_0x3f6c7(0x279)}),l[_0x3f6c7(0x296)](f['Button'],{'variant':_0x3f6c7(0x29a),'onClick':()=>_0x23a2af[_0x3f6c7(0x1fd)](),'children':_0x3f6c7(0x249)})]});}function J(){const _0x1b86c2=_0x141999;return l[_0x1b86c2(0x296)](l[_0x1b86c2(0x241)],{'children':_0x1b86c2(0x24b)});}var K=Object[_0x141999(0x248)],z=(_0x56528b,_0x1f678c,_0x10e4c0,_0x1b1fd2)=>{const _0x56e61f=_0x141999;for(var _0xed6429=_0x1b1fd2>0x1?void 0x0:_0x1b1fd2?K(_0x1f678c,_0x10e4c0):_0x1f678c,_0xcc9e20=_0x56528b[_0x56e61f(0x246)]-0x1,_0x14d481;_0xcc9e20>=0x0;_0xcc9e20--)(_0x14d481=_0x56528b[_0xcc9e20])&&(_0xed6429=_0x14d481(_0xed6429)||_0xed6429);return _0xed6429;},L=(_0x255621,_0x3bb99e)=>(_0x382a96,_0x424c22)=>_0x3bb99e(_0x382a96,_0x424c22,_0x255621);exports[_0x141999(0x1d8)]=class extends o[_0x141999(0x21b)]{constructor(_0x381072,_0x30976a){const _0x5c29b1=_0x141999;super(),this[_0x5c29b1(0x219)]=_0x381072,this[_0x5c29b1(0x2a0)]=_0x30976a,this[_0x5c29b1(0x268)]();}[_0x141999(0x268)](){const _0x3fd802=_0x141999;this[_0x3fd802(0x1f3)](this[_0x3fd802(0x2a0)]['registerComponent'](p[_0x3fd802(0x25d)]['HEADER_MENU'],()=>p[_0x3fd802(0x25b)]($,this[_0x3fd802(0x219)])));}},exports[_0x141999(0x1d8)]=z([L(0x0,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),L(0x1,p[_0x141999(0x238)])],exports[_0x141999(0x1d8)]);const Q=_0x141999(0x234),w={};var X=Object[_0x141999(0x248)],ee=(_0x5124b,_0x2a1d45,_0x72437b,_0x1be898)=>{const _0x3fdad3=_0x141999;for(var _0x3522d2=_0x1be898>0x1?void 0x0:_0x1be898?X(_0x2a1d45,_0x72437b):_0x2a1d45,_0x58eaea=_0x5124b[_0x3fdad3(0x246)]-0x1,_0x2f8c90;_0x58eaea>=0x0;_0x58eaea--)(_0x2f8c90=_0x5124b[_0x58eaea])&&(_0x3522d2=_0x2f8c90(_0x3522d2)||_0x3522d2);return _0x3522d2;},te=(_0x1703a5,_0x307e24)=>(_0x2aa160,_0x5a2493)=>_0x307e24(_0x2aa160,_0x5a2493,_0x1703a5);let m=class extends o[_0x141999(0x21b)]{constructor(_0x13d79f){const _0xe43b72=_0x141999;super(),this[_0xe43b72(0x28a)]=_0x13d79f,this[_0xe43b72(0x251)]();}['_init'](){const _0x199803=_0x141999;[D[_0x199803(0x203)]['id'],D[_0x199803(0x276)]['id'],C['SetWorksheetActiveOperation']['id']][_0x199803(0x1d1)](_0x440828=>{const _0x3dd0a8=_0x199803;this[_0x3dd0a8(0x1f3)](this[_0x3dd0a8(0x28a)][_0x3dd0a8(0x281)](_0x440828));});}};m=ee([te(0x0,o['Inject'](E))],m);function _0x3491(){const _0x4380fe=['startFollowing','UniverInstanceType','presenter','dispose$','BehaviorSubject','path','send','touchDependencies','ONLINE','useRef','4237458lhWbbG','jsxs','pipe','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','event$','_config','string','live-share.config','attrs','Plugin','5212LBzaaa','IUIPartsService','idSuffix','mergeOverrideWithDependencies','LIVESHARE_REQUEST_HOST','getLiveShareCoordinatorSync','_collabSession','getCurrentTypeOfUnit$','Dropdown','InsertSheetMutation','Fragment','fill','map','text','SessionStatus','length','set','getOwnPropertyDescriptor','Stop\x20presenting','360621LjMyfu','You\x27are\x20offline.','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','next','Start\x20following','replace','_collabSessionService','_init','_beIdle','onCommandExecuted','RxDisposable','ICommandService','OFFLINE','_fetchOperations','includes','getValue','asObservable','connectInjector','symbol','BuiltInUIPart','_handleOperation','mutations','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','IDLE','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','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','4191950RGIfgv','use','_mountLiveShare','useObservable','PRESENTING','getMemberID','_status$','useDependency','executeCommand','_configService','toString','_status','UNIVER_UNKNOWN','offline','Inject','Button','SetScrollOperation','univerjs-icon\x20univerjs-icon-','7598616KhFCSU','You\x27re\x20presenting\x20the\x20document','div','getInitialStates','memberID','Present\x20this\x20document','_entities','5782dWRXvi','none','registerSharedOperation','_univerInstanceService','getTypeOfUnitAdded$','getUnitId','NEW_CHANGESETS','CollaborationEvent','pluginName','params','LiveShareController','_liveShareService','values','tryStartPresenting','1em','_handleNewChangeSets','getTypeOfUnitDisposed$','forwardRef','unitId','_stopPresenting','defIds','_handleOffline','stopFollowing','jsx','entries','getStatus','get','default','Subject','following','status$','requireSession','assign','_uiPartsService','mask','not-following','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','_startLiveShareCoordinator','_stopFollowing','SetWorksheetActiveOperation','UniverLiveSharePlugin','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','getLiveShareCoordinator','Injector','defineProperty','subscribe','NOT_FOLLOWING','xlink:href','shouldShareOperation','forEach','LiveShareStatus','Stop\x20following','createInstance','OPERATION','complete','5376xKPeFT','DesktopLiveShareController','776636VkzfpA','UniverCollaborationClientPlugin','LiveShareIcon','trim','IUniverInstanceService','IConfigService','dispose','add','useState','current','_startFollowing','LIVESHARE_FETCH_OPERATIONS','UNIVER_SHEET','_commandDisposable','Module','toStringTag','clear','displayName','getConfig','from','CollaborationSessionService','merge','unsubscribe','init','random','find','disposeWithMe','LIVESHARE_OPERATION','_handleNewHost','then','LIVESHARE_TERMINATE','clsx','live-share-icon','throttleTime','LiveShareCoordinator','defs','stopPresenting','delete','override','button','operations','end','SetZoomRatioOperation','_commandService','3285DHjWAP','tag','_reporters','_unitID','_startPresenting','toDisposable','sheet','LIVESHARE_NEW_HOST','takeUntil','_sharedOperations','2LvYLOy','children','type','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','svg','evenodd','presenting','DisposableCollection','idle','parse','_injector','data','Disposable','sessionStatus$','has','_presenter','colorChannel1','_handleOnline','url(#$1'];_0x3491=function(){return _0x4380fe;};return _0x3491();}var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x1a84e0,_0x5e1e2e,_0x3b06ce)=>_0x5e1e2e in _0x1a84e0?ie(_0x1a84e0,_0x5e1e2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b06ce}):_0x1a84e0[_0x5e1e2e]=_0x3b06ce,re=(_0x33636b,_0x26d19a,_0x7c8f79,_0x190d3e)=>{const _0x5b82d2=_0x141999;for(var _0x30e586=_0x190d3e>0x1?void 0x0:_0x190d3e?se(_0x26d19a,_0x7c8f79):_0x26d19a,_0x99c3ec=_0x33636b[_0x5b82d2(0x246)]-0x1,_0x1d18c2;_0x99c3ec>=0x0;_0x99c3ec--)(_0x1d18c2=_0x33636b[_0x99c3ec])&&(_0x30e586=_0x1d18c2(_0x30e586)||_0x30e586);return _0x30e586;},N=(_0x20bab5,_0x407579)=>(_0x1178aa,_0x3620c1)=>_0x407579(_0x1178aa,_0x3620c1,_0x20bab5),A=(_0x2918b6,_0x3987d5,_0x538cf0)=>ne(_0x2918b6,typeof _0x3987d5!=_0x141999(0x25c)?_0x3987d5+'':_0x3987d5,_0x538cf0);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x141999(0x1c7)]=class extends o[_0x141999(0x236)]{constructor(_0x480d5b=w,_0x71c347,_0x2274b1){const _0x3e2655=_0x141999;super(),this[_0x3e2655(0x232)]=_0x480d5b,this[_0x3e2655(0x219)]=_0x71c347,this[_0x3e2655(0x26f)]=_0x2274b1;const {..._0x31624c}=o[_0x3e2655(0x1ee)]({},w,this[_0x3e2655(0x232)]);this[_0x3e2655(0x26f)]['setConfig'](Q,_0x31624c);}['onStarting'](){const _0x533edf=_0x141999;o['registerDependencies'](this['_injector'],o[_0x533edf(0x23a)]([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this[_0x533edf(0x232)][_0x533edf(0x1ff)])),o[_0x533edf(0x229)](this[_0x533edf(0x219)],[[m]]);}['onRendered'](){const _0xd767c0=_0x141999;o['touchDependencies'](this['_injector'],[[exports[_0xd767c0(0x1d8)]]]);}},A(exports[_0x141999(0x1c7)],_0x141999(0x211),o['UniverInstanceType'][_0x141999(0x272)]),A(exports['UniverLiveSharePlugin'],_0x141999(0x287),oe),exports[_0x141999(0x1c7)]=re([o['DependentOn'](b[_0x141999(0x1da)]),N(0x1,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),N(0x2,o[_0x141999(0x1de)])],exports['UniverLiveSharePlugin']),exports[_0x141999(0x230)]=$,exports['LiveShareService']=E,exports[_0x141999(0x1d2)]=u;
|
|
1
|
+
'use strict';const _0x46cccf=_0x4de5;(function(_0x1681db,_0x41b78e){const _0x2eb5f3=_0x4de5,_0x4b658b=_0x1681db();while(!![]){try{const _0x2fa4a7=-parseInt(_0x2eb5f3(0x154))/0x1*(parseInt(_0x2eb5f3(0x1ac))/0x2)+-parseInt(_0x2eb5f3(0x1b1))/0x3*(-parseInt(_0x2eb5f3(0x1cb))/0x4)+parseInt(_0x2eb5f3(0x18f))/0x5+parseInt(_0x2eb5f3(0x160))/0x6*(-parseInt(_0x2eb5f3(0x172))/0x7)+-parseInt(_0x2eb5f3(0x15e))/0x8*(-parseInt(_0x2eb5f3(0x126))/0x9)+parseInt(_0x2eb5f3(0x1cf))/0xa*(-parseInt(_0x2eb5f3(0x197))/0xb)+-parseInt(_0x2eb5f3(0x18c))/0xc*(-parseInt(_0x2eb5f3(0x125))/0xd);if(_0x2fa4a7===_0x41b78e)break;else _0x4b658b['push'](_0x4b658b['shift']());}catch(_0x3c7e1b){_0x4b658b['push'](_0x4b658b['shift']());}}}(_0x259c,0x5cb36));var T=Object[_0x46cccf(0x1b6)],U=(_0x8e40ce,_0x456470,_0x32382c)=>_0x456470 in _0x8e40ce?T(_0x8e40ce,_0x456470,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32382c}):_0x8e40ce[_0x456470]=_0x32382c,_=(_0xbb1fce,_0x573ad5,_0x45dc3c)=>U(_0xbb1fce,typeof _0x573ad5!=_0x46cccf(0x1bf)?_0x573ad5+'':_0x573ad5,_0x45dc3c);Object[_0x46cccf(0x1b6)](exports,Symbol[_0x46cccf(0x171)],{'value':_0x46cccf(0x1e3)});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:_0x54a9f5,..._0x5e2218}){const _0x2537cb=_0x46cccf,{icon:_0x1eb749,id:_0x30cd22,className:_0x457bcb,extend:_0xcf974e,..._0x24e4cb}=_0x5e2218,_0x470dd4=(_0x2537cb(0x174)+_0x30cd22+'\x20'+(_0x457bcb||''))[_0x2537cb(0x146)](),_0x4afc15=v[_0x2537cb(0x122)]('_'+H());return j(_0x1eb749,''+_0x30cd22,{'defIds':_0x1eb749['defIds'],'idSuffix':_0x4afc15[_0x2537cb(0x167)]},{'ref':_0x54a9f5,'className':_0x470dd4,..._0x24e4cb},_0xcf974e);}function j(_0x242da5,_0x57bf67,_0x38d9f1,_0x396ab2,_0x35d5f5){const _0x4d6f4a=_0x46cccf;return v[_0x4d6f4a(0x17b)](_0x242da5[_0x4d6f4a(0x1aa)],{'key':_0x57bf67,...y(_0x242da5,_0x38d9f1,_0x35d5f5),..._0x396ab2},(F(_0x242da5,_0x38d9f1)['children']||[])['map']((_0x34e580,_0x230775)=>j(_0x34e580,_0x57bf67+'-'+_0x242da5[_0x4d6f4a(0x1aa)]+'-'+_0x230775,_0x38d9f1,void 0x0,_0x35d5f5)));}function y(_0x2e626f,_0x28d09f,_0x253b46){const _0x3e4e36=_0x46cccf,_0x3aca9a={..._0x2e626f[_0x3e4e36(0x1bc)]};_0x253b46!=null&&_0x253b46[_0x3e4e36(0x13a)]&&_0x3aca9a[_0x3e4e36(0x19d)]==='colorChannel1'&&(_0x3aca9a['fill']=_0x253b46[_0x3e4e36(0x13a)]),_0x2e626f[_0x3e4e36(0x1aa)]===_0x3e4e36(0x1e8)&&_0x3aca9a['id']&&(_0x3aca9a['id']=_0x3aca9a['id']+_0x28d09f[_0x3e4e36(0x151)]),Object[_0x3e4e36(0x152)](_0x3aca9a)['forEach'](([_0xb7f9d8,_0x41603e])=>{const _0x479ff7=_0x3e4e36;_0xb7f9d8===_0x479ff7(0x1e8)&&typeof _0x41603e==_0x479ff7(0x14a)&&(_0x3aca9a[_0xb7f9d8]=_0x41603e['replace'](/url\(#(.*)\)/,_0x479ff7(0x11d)+_0x28d09f[_0x479ff7(0x151)]+')'));});const {defIds:_0x1b2764}=_0x28d09f;return!_0x1b2764||_0x1b2764['length']===0x0||(_0x2e626f['tag']===_0x3e4e36(0x16b)&&_0x3aca9a[_0x3e4e36(0x16d)]&&(_0x3aca9a[_0x3e4e36(0x16d)]=_0x3aca9a[_0x3e4e36(0x16d)]+_0x28d09f['idSuffix']),Object[_0x3e4e36(0x152)](_0x3aca9a)[_0x3e4e36(0x130)](([_0x5deba9,_0x15a696])=>{const _0x272de7=_0x3e4e36;typeof _0x15a696==_0x272de7(0x14a)&&(_0x3aca9a[_0x5deba9]=_0x15a696[_0x272de7(0x1cc)](/url\(#(.*)\)/,_0x272de7(0x11d)+_0x28d09f[_0x272de7(0x151)]+')'));})),_0x3aca9a;}function F(_0x3604f4,_0x4808b4){const _0x4f7d20=_0x46cccf;var _0x373c4b;const {defIds:_0x3ba0f0}=_0x4808b4;return!_0x3ba0f0||_0x3ba0f0[_0x4f7d20(0x1ab)]===0x0?_0x3604f4:_0x3604f4[_0x4f7d20(0x1aa)]==='defs'&&((_0x373c4b=_0x3604f4[_0x4f7d20(0x187)])!=null&&_0x373c4b[_0x4f7d20(0x1ab)])?{..._0x3604f4,'children':_0x3604f4[_0x4f7d20(0x187)][_0x4f7d20(0x1c5)](_0x31e9d8=>typeof _0x31e9d8[_0x4f7d20(0x1bc)]['id']=='string'&&_0x3ba0f0&&_0x3ba0f0[_0x4f7d20(0x164)](_0x31e9d8[_0x4f7d20(0x1bc)]['id'])?{..._0x31e9d8,'attrs':{..._0x31e9d8[_0x4f7d20(0x1bc)],'id':_0x31e9d8['attrs']['id']+_0x4808b4['idSuffix']}}:_0x31e9d8)}:_0x3604f4;}function H(){const _0x1805e3=_0x46cccf;return Math[_0x1805e3(0x1e1)]()[_0x1805e3(0x1d7)](0x24)[_0x1805e3(0x12d)](0x2,0x8);}x[_0x46cccf(0x1b7)]=_0x46cccf(0x189);function _0x259c(){const _0x324080=['substring','toDisposable','useState','forEach','RxDisposable','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','getConfig','DisposableCollection','stopPresenting','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareStatus','colorChannel1','presenting','currentColor','SetScrollOperation','OFFLINE','_config','UNIVER_SHEET','LiveShareCoordinator','sessionStatus$','getMemberID','registerDependencies','takeUntil','trim','SessionStatus','_collabSession','assign','string','live-share-icon','jsx','delete','from','_commandService','BehaviorSubject','idSuffix','entries','univer-size-4','3Qkjzpl','_entities','You\x27re\x20presenting\x20the\x20document','IUIPartsService','You\x27are\x20offline.','Subject','DesktopLiveShareController','_handleOnline','LiveShareIcon','SetZoomRatioOperation','8mgHCss','send','1503990BVPFnJ','IConfigService','_mountLiveShare','Injector','includes','_sharedOperations','getLiveShareCoordinator','current','stringify','following','FOLLOWING','use','_init','xlink:href','IUniverInstanceService','_beIdle','You\x27re\x20following\x20the\x20presenter','toStringTag','21TIDeIA','startFollowing','univerjs-icon\x20univerjs-icon-','Plugin','getInitialStates','registerComponent','DependentOn','getTypeOfUnitDisposed$','dispose','createElement','0\x200\x2017\x2017','NEW_CHANGESETS','mutations','params','_commandDisposable','getOwnPropertyDescriptor','SetWorksheetActiveOperation','_stopFollowing','LiveShare','_startLiveShareCoordinator','_uiPartsService','children','onCommandExecuted','UniverIcon','useEffect','CommandType','12rRKvLp','pipe','_reporters','3373300gcICcx','http://www.w3.org/2000/svg','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','useDependency','_configService','_unitID','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','PRESENTING','32714UVioUd','Start\x20following','idle','memberID','_startFollowing','throttleTime','fill','_fetchOperations','setConfig','forwardRef','disposeWithMe','add','LiveShareController','merge','NOT_FOLLOWING','_liveShareService','UniverInstanceType','mergeOverrideWithDependencies','parseProtocolChangeset','tag','length','148468hZfLLD','reverse','_startPresenting','_stopPresenting','_handleTerminate','360483FdBBSw','OPERATION','next','tryStartPresenting','get','defineProperty','displayName','find','pluginName','_collabSessionService','getValue','attrs','type','Dropdown','symbol','Button','dispose$','_status$','set','text','map','path','parse','jsxs','getUnitId','presenter','4jSNBnz','replace','live-share.config','UNIVER_UNKNOWN','1920NVkBPd','stopFollowing','not-following','Inject','Present\x20this\x20document','createInstance','registerInitialStateReporter','_handleOffline','toString','_presenter','onRendered','button','LIVESHARE_OPERATION','IDLE','getCurrentTypeOfUnit$','1em','_univerInstanceService','has','random','_handleNewChangeSets','Module','init','subscribe','executeCommand','CollaborationEvent','mask','touchDependencies','evenodd','_handleNewHost','ICommandService','shouldShareOperation','override','CollaborationSessionService','Fragment','LIVESHARE_TERMINATE','status$','url(#$1','Start','event$','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useRef','registerSharedOperation','operations','13365157TRXmZT','922473RNOYCr','clear','_injector','unitId','data','div','complete'];_0x259c=function(){return _0x324080;};return _0x259c();}const V={'tag':'svg','attrs':{'xmlns':_0x46cccf(0x190),'fill':'none','viewBox':_0x46cccf(0x17c),'width':_0x46cccf(0x1de),'height':_0x46cccf(0x1de)},'children':[{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'d':_0x46cccf(0x195)}},{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'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':_0x46cccf(0x1ea),'clipRule':'evenodd'}}]},R=v[_0x46cccf(0x1a0)](function(_0x289627,_0x24ef6f){const _0x27bba2=_0x46cccf;return v[_0x27bba2(0x17b)](x,Object[_0x27bba2(0x149)]({},_0x289627,{'id':_0x27bba2(0x14b),'ref':_0x24ef6f,'icon':V}));});R[_0x46cccf(0x1b7)]=_0x46cccf(0x15c);class E extends o[_0x46cccf(0x120)]{constructor(){const _0x4f9b86=_0x46cccf;super(...arguments),_(this,_0x4f9b86(0x165),new Set()),_(this,_0x4f9b86(0x18e),new Set());}[_0x46cccf(0x123)](_0x57e576){const _0x469dc5=_0x46cccf;return this[_0x469dc5(0x165)][_0x469dc5(0x1a2)](_0x57e576),o['toDisposable'](()=>this['_sharedOperations'][_0x469dc5(0x14d)](_0x57e576));}[_0x46cccf(0x1d5)](_0x407681){const _0x4b9087=_0x46cccf;return this[_0x4b9087(0x18e)]['add'](_0x407681),o['toDisposable'](()=>this[_0x4b9087(0x18e)][_0x4b9087(0x14d)](_0x407681));}[_0x46cccf(0x1ed)](_0x1e2668){const _0x315966=_0x46cccf;return this[_0x315966(0x165)][_0x315966(0x1e0)](_0x1e2668);}[_0x46cccf(0x176)](_0x46f11c){const _0x2656bb=_0x46cccf;return Array[_0x2656bb(0x14e)](this['_reporters'])['map'](_0x179833=>_0x179833(_0x46f11c));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x48f1e9,_0x34fa15,_0x1bf0f9,_0x587632)=>{const _0x2f166e=_0x46cccf;for(var _0x34fc9d=_0x587632>0x1?void 0x0:_0x587632?M(_0x34fa15,_0x1bf0f9):_0x34fa15,_0x49cb12=_0x48f1e9[_0x2f166e(0x1ab)]-0x1,_0x5ba111;_0x49cb12>=0x0;_0x49cb12--)(_0x5ba111=_0x48f1e9[_0x49cb12])&&(_0x34fc9d=_0x5ba111(_0x34fc9d)||_0x34fc9d);return _0x34fc9d;},S=(_0x159e0c,_0x54c2a6)=>(_0x3632e4,_0x189415)=>_0x54c2a6(_0x3632e4,_0x189415,_0x159e0c);exports[_0x46cccf(0x1a3)]=class extends o[_0x46cccf(0x131)]{constructor(_0x1691f9,_0xbd1c5b,_0x48b386){const _0x203347=_0x46cccf;super(),_(this,_0x203347(0x155),new Map()),(this[_0x203347(0x1df)]=_0x1691f9,this[_0x203347(0x128)]=_0xbd1c5b,this['_collabSessionService']=_0x48b386,this[_0x203347(0x16c)]());}async[_0x46cccf(0x166)](_0x4d0f21){const _0x114626=_0x46cccf;return this[_0x114626(0x155)][_0x114626(0x1e0)](_0x4d0f21)||await this[_0x114626(0x185)](_0x4d0f21),this[_0x114626(0x155)][_0x114626(0x1b5)](_0x4d0f21);}['getLiveShareCoordinatorSync'](_0x57b009){const _0x4aa657=_0x46cccf;var _0x166bf1;return(_0x166bf1=this[_0x4aa657(0x155)]['get'](_0x57b009))!=null?_0x166bf1:null;}[_0x46cccf(0x16c)](){const _0x1e8e65=_0x46cccf;this[_0x1e8e65(0x1df)]['getTypeOfUnitAdded$'](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I['takeUntil'](this[_0x1e8e65(0x1c1)]))[_0x1e8e65(0x1e5)](async _0x6f4d9f=>{const _0xabc016=_0x1e8e65,_0x10ba9b=_0x6f4d9f[_0xabc016(0x1c9)]();this[_0xabc016(0x155)][_0xabc016(0x1e0)](_0x10ba9b)||this[_0xabc016(0x185)](_0x10ba9b);}),this[_0x1e8e65(0x1df)][_0x1e8e65(0x179)](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I[_0x1e8e65(0x145)](this['dispose$']))[_0x1e8e65(0x1e5)](_0x362baa=>{const _0x3ecff4=_0x1e8e65,_0x7f12af=_0x362baa[_0x3ecff4(0x1c9)](),_0x2e4552=this[_0x3ecff4(0x155)]['get'](_0x7f12af);_0x2e4552==null||_0x2e4552[_0x3ecff4(0x17a)]();});}async[_0x46cccf(0x185)](_0x2d868){const _0x430a3d=_0x46cccf,_0x2aff17=await this[_0x430a3d(0x1ba)]['requireSession'](_0x2d868),_0xc65cb5=this[_0x430a3d(0x128)][_0x430a3d(0x1d4)](exports['LiveShareCoordinator'],_0x2d868,_0x2aff17);return _0xc65cb5[_0x430a3d(0x1e4)](),this[_0x430a3d(0x155)][_0x430a3d(0x1c3)](_0x2d868,_0xc65cb5),_0xc65cb5;}},exports[_0x46cccf(0x1a3)]=P([S(0x0,o[_0x46cccf(0x16e)]),S(0x1,o[_0x46cccf(0x1d2)](o['Injector'])),S(0x2,o['Inject'](b[_0x46cccf(0x1ef)]))],exports[_0x46cccf(0x1a3)]);var u=(_0x16b477=>(_0x16b477['OFFLINE']='offline',_0x16b477[_0x46cccf(0x1dc)]=_0x46cccf(0x199),_0x16b477['FOLLOWING']=_0x46cccf(0x169),_0x16b477[_0x46cccf(0x1a5)]=_0x46cccf(0x1d1),_0x16b477[_0x46cccf(0x196)]=_0x46cccf(0x13b),_0x16b477))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x46cccf(0x141)]=class extends o[_0x46cccf(0x131)]{constructor(_0xd46c61,_0x4d58e4,_0x596f6a,_0x11e70b,_0x29a4b9){const _0x34fccb=_0x46cccf;super(),_(this,_0x34fccb(0x1c2),new O[(_0x34fccb(0x150))](_0x34fccb(0x199))),_(this,_0x34fccb(0x11c),this[_0x34fccb(0x1c2)]['asObservable']()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x34fccb(0x1d8),null),(this[_0x34fccb(0x194)]=_0xd46c61,this['_collabSession']=_0x4d58e4,this[_0x34fccb(0x193)]=_0x596f6a,this[_0x34fccb(0x1a6)]=_0x11e70b,this[_0x34fccb(0x14f)]=_0x29a4b9);}get['_status'](){const _0x34ba50=_0x46cccf;return this[_0x34ba50(0x1c2)][_0x34ba50(0x1bb)]();}['dispose'](){const _0x580f83=_0x46cccf;var _0x58db7e;(_0x58db7e=this[_0x580f83(0x180)])==null||_0x58db7e[_0x580f83(0x17a)](),this[_0x580f83(0x1c2)][_0x580f83(0x1b3)](_0x580f83(0x199)),this[_0x580f83(0x1c2)]['complete']();}['getStatus'](){const _0xb69546=_0x46cccf;return this[_0xb69546(0x137)];}[_0x46cccf(0x1e4)](){const _0x485f7a=_0x46cccf;this[_0x485f7a(0x16c)]||(this[_0x485f7a(0x16c)]=!0x0,this[_0x485f7a(0x148)][_0x485f7a(0x142)][_0x485f7a(0x18d)](I[_0x485f7a(0x145)](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x6fb077=>{const _0x4f034e=_0x485f7a;switch(_0x6fb077){case b[_0x4f034e(0x147)][_0x4f034e(0x13e)]:this[_0x4f034e(0x1d6)]();break;case b['SessionStatus']['ONLINE']:this[_0x4f034e(0x15b)]();break;}}),this[_0x485f7a(0x148)][_0x485f7a(0x11f)][_0x485f7a(0x18d)](I['takeUntil'](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x11ad3b=>{const _0x5171ac=_0x485f7a,{eventID:_0x33c443}=_0x11ad3b;switch(_0x33c443){case d[_0x5171ac(0x1e7)][_0x5171ac(0x132)]:this['_handleNewHost'](_0x11ad3b);break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x1db)]:this['_handleOperation'](_0x11ad3b);break;case d['CollaborationEvent'][_0x5171ac(0x11b)]:this[_0x5171ac(0x1b0)]();break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x17d)]:this['_handleNewChangeSets'](_0x11ad3b);break;}}));}[_0x46cccf(0x1b4)](){const _0x55852a=_0x46cccf;this[_0x55852a(0x148)][_0x55852a(0x15f)]({'eventID':d[_0x55852a(0x1e7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x55852a(0x194)],'userID':this['_collabSession'][_0x55852a(0x143)]()}},this[_0x55852a(0x194)]);}[_0x46cccf(0x136)](){const _0x274aab=_0x46cccf;this[_0x274aab(0x137)]==='presenting'&&(this['_status$'][_0x274aab(0x1b3)](_0x274aab(0x199)),this[_0x274aab(0x148)][_0x274aab(0x15f)]({'eventID':d[_0x274aab(0x1e7)][_0x274aab(0x11b)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x46cccf(0x173)](){const _0x2b60da=_0x46cccf;this['_status']===_0x2b60da(0x1d1)&&(this['_status$'][_0x2b60da(0x1b3)](_0x2b60da(0x169)),this[_0x2b60da(0x19b)]());}['stopFollowing'](){const _0x2e78fc=_0x46cccf;this['_status']===_0x2e78fc(0x169)&&this[_0x2e78fc(0x183)]();}[_0x46cccf(0x1eb)](_0xf47c9f){const _0x1fc920=_0x46cccf,{presenter:_0x3b0327}=_0xf47c9f['data'],_0x980f4e=this[_0x1fc920(0x148)][_0x1fc920(0x143)]();this['_presenter']=_0x3b0327,_0x3b0327===_0x980f4e?(this['_stopFollowing'](),this[_0x1fc920(0x1ae)]()):this[_0x1fc920(0x137)]!==_0x1fc920(0x1d1)&&(this[_0x1fc920(0x1af)](),this[_0x1fc920(0x19b)]());}[_0x46cccf(0x19e)](){const _0x409f14=_0x46cccf,_0x6314d6={'eventID':d[_0x409f14(0x1e7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x409f14(0x148)][_0x409f14(0x15f)](_0x6314d6,this[_0x409f14(0x194)]);}[_0x46cccf(0x1b0)](){const _0x2fbcf7=_0x46cccf;this[_0x2fbcf7(0x1d8)]=null,this[_0x2fbcf7(0x137)]!==_0x2fbcf7(0x13b)&&this['_beIdle']();}[_0x46cccf(0x1e2)](_0x102e13){const _0x29a746=_0x46cccf;if(this['_status']===_0x29a746(0x169)&&this[_0x29a746(0x1d8)]===_0x102e13['data'][_0x29a746(0x19a)]){const _0x29d0d2=d[_0x29a746(0x1a9)](_0x102e13[_0x29a746(0x12a)])[_0x29a746(0x17e)][_0x29a746(0x1ad)]()[_0x29a746(0x1b8)](_0x1f19ff=>_0x1f19ff['id']===C['InsertSheetMutation']['id']);if(_0x29d0d2){const _0x24cf5f=_0x29d0d2[_0x29a746(0x17f)][_0x29a746(0x129)],_0x3024c7=_0x29d0d2[_0x29a746(0x17f)]['sheet']['id'];setTimeout(()=>{const _0x1446c5=_0x29a746;this[_0x1446c5(0x14f)][_0x1446c5(0x1e6)](C[_0x1446c5(0x182)]['id'],{'unitId':_0x24cf5f,'subUnitId':_0x3024c7},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3afa53=_0x46cccf;this[_0x3afa53(0x1c2)]['next'](_0x3afa53(0x13b));const _0x5d9739=new Map(),_0xc75de3=this[_0x3afa53(0x180)]=new o[(_0x3afa53(0x135))]();_0xc75de3[_0x3afa53(0x1a2)](o[_0x3afa53(0x12e)](()=>{const _0x2837e8=_0x3afa53;_0x5d9739[_0x2837e8(0x130)](_0x20e240=>_0x20e240[_0x2837e8(0x12c)]()),_0x5d9739[_0x2837e8(0x127)]();})),_0xc75de3[_0x3afa53(0x1a2)](this[_0x3afa53(0x14f)][_0x3afa53(0x188)](_0x514ded=>{const _0x4ec839=_0x3afa53;var _0x2759ae;if(_0x514ded[_0x4ec839(0x1bd)]!==o[_0x4ec839(0x18b)][_0x4ec839(0x1b2)]||!this[_0x4ec839(0x1a6)][_0x4ec839(0x1ed)](_0x514ded['id']))return;const {id:_0x292157}=_0x514ded;let _0xd2e399;_0x5d9739[_0x4ec839(0x1e0)](_0x292157)?_0xd2e399=_0x5d9739[_0x4ec839(0x1b5)](_0x292157):(_0xd2e399=new O[(_0x4ec839(0x159))](),_0x5d9739[_0x4ec839(0x1c3)](_0x292157,_0xd2e399),_0xd2e399[_0x4ec839(0x18d)](I[_0x4ec839(0x19c)]((_0x2759ae=this[_0x4ec839(0x193)][_0x4ec839(0x134)](k))!=null?_0x2759ae:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ec839(0x1e5)](_0x5d1cea=>{const _0x21128f=_0x4ec839;this[_0x21128f(0x148)][_0x21128f(0x15f)]({'eventID':d[_0x21128f(0x1e7)][_0x21128f(0x1db)],'data':{'unitID':this[_0x21128f(0x194)],'operations':{[_0x5d1cea['id']]:{'id':_0x5d1cea['id'],'params':JSON['stringify'](_0x5d1cea['params'])}}}},this[_0x21128f(0x194)]);})),_0xd2e399[_0x4ec839(0x1b3)](_0x514ded);})),this['_liveShareService'][_0x3afa53(0x176)](this[_0x3afa53(0x194)])['forEach'](_0x1cd216=>this['_collabSession'][_0x3afa53(0x15f)]({'eventID':d[_0x3afa53(0x1e7)][_0x3afa53(0x1db)],'data':{'unitID':this[_0x3afa53(0x194)],'operations':{[_0x1cd216['id']]:{'id':_0x1cd216['id'],'params':JSON[_0x3afa53(0x168)](_0x1cd216[_0x3afa53(0x17f)])}}}},this[_0x3afa53(0x194)]));}['_stopPresenting'](){const _0x50cfa9=_0x46cccf;var _0x59cb84;this[_0x50cfa9(0x1c2)][_0x50cfa9(0x1b3)](_0x50cfa9(0x199)),(_0x59cb84=this[_0x50cfa9(0x180)])==null||_0x59cb84[_0x50cfa9(0x17a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x58fa71=_0x46cccf;var _0x2a9c80;(_0x2a9c80=this[_0x58fa71(0x180)])==null||_0x2a9c80[_0x58fa71(0x17a)](),this[_0x58fa71(0x1c2)][_0x58fa71(0x1b3)]('following');}[_0x46cccf(0x16f)](){const _0x2a7354=_0x46cccf;var _0x1ef0c9;this['_status$'][_0x2a7354(0x1b3)](_0x2a7354(0x199)),(_0x1ef0c9=this['_commandDisposable'])==null||_0x1ef0c9[_0x2a7354(0x17a)](),this[_0x2a7354(0x180)]=null;}[_0x46cccf(0x183)](){const _0x59bc51=_0x46cccf;var _0x4fe476;this['_status$'][_0x59bc51(0x1b3)](_0x59bc51(0x1d1)),(_0x4fe476=this[_0x59bc51(0x180)])==null||_0x4fe476[_0x59bc51(0x17a)]();}['_handleOperation'](_0x580858){const _0x4f8499=_0x46cccf;if([_0x4f8499(0x13b),_0x4f8499(0x1d1),'offline'][_0x4f8499(0x164)](this[_0x4f8499(0x137)])||!_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]||_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]===this[_0x4f8499(0x148)]['getMemberID']())return;this[_0x4f8499(0x137)]===_0x4f8499(0x199)&&this[_0x4f8499(0x19b)]();const _0x53a57a=_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x124)];Object['values'](_0x53a57a)[_0x4f8499(0x130)](_0x275add=>{const _0x1fede3=_0x4f8499;this['_commandService'][_0x1fede3(0x1e6)](_0x275add['id'],_0x275add[_0x1fede3(0x17f)]?JSON[_0x1fede3(0x1c7)](_0x275add[_0x1fede3(0x17f)]):null,{'fromCollab':!0x0});});}[_0x46cccf(0x1d6)](){const _0x3d49d9=_0x46cccf;var _0x4b87e1;this[_0x3d49d9(0x1c2)]['next']('offline'),(_0x4b87e1=this['_commandDisposable'])==null||_0x4b87e1[_0x3d49d9(0x17a)]();}[_0x46cccf(0x15b)](){const _0x5dcb41=_0x46cccf;this[_0x5dcb41(0x1c2)]['next']('idle'),this[_0x5dcb41(0x19e)]();}},exports[_0x46cccf(0x141)]=P([S(0x2,o[_0x46cccf(0x161)]),S(0x3,o[_0x46cccf(0x1d2)](E)),S(0x4,o[_0x46cccf(0x1ec)])],exports['LiveShareCoordinator']);function $(){const _0x53bd63=_0x46cccf,_0x6f1fdb=p[_0x53bd63(0x192)](exports[_0x53bd63(0x1a3)]),_0x30258a=p['useDependency'](o['IUniverInstanceService']),_0x18d40a=p['useObservable'](()=>_0x30258a[_0x53bd63(0x1dd)](o[_0x53bd63(0x1a7)][_0x53bd63(0x140)]),void 0x0,!0x1,[]),[_0x5ca64e,_0x4e5798]=v[_0x53bd63(0x12f)](null),[_0x2d1bd3,_0x43a8a0]=v[_0x53bd63(0x12f)](u['IDLE']),_0x23aa66=v['useRef'](null);return v[_0x53bd63(0x18a)](()=>(_0x18d40a&&_0x6f1fdb['getLiveShareCoordinator'](_0x18d40a[_0x53bd63(0x1c9)]())['then'](_0x1c8a82=>{const _0x333f77=_0x53bd63;_0x4e5798(_0x1c8a82),_0x23aa66[_0x333f77(0x167)]=_0x1c8a82[_0x333f77(0x11c)]['subscribe'](_0x19cf6b=>{_0x43a8a0(_0x19cf6b);});}),()=>{const _0x393822=_0x53bd63;var _0x5a2fcb;(_0x5a2fcb=_0x23aa66[_0x393822(0x167)])==null||_0x5a2fcb['unsubscribe'](),_0x23aa66['current']=null;}),[_0x18d40a,_0x6f1fdb]),_0x5ca64e?l[_0x53bd63(0x14c)](f[_0x53bd63(0x1be)],{'align':'end','disabled':_0x2d1bd3===u[_0x53bd63(0x13e)],'className':_0x53bd63(0x191),'overlay':l['jsx'](W,{'status':_0x2d1bd3,'coordinator':_0x5ca64e}),'children':l['jsx']('button',{'className':f['clsx'](_0x53bd63(0x121),{'univer-cursor-not-allowed':_0x2d1bd3===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d1bd3!==u['OFFLINE']}),'type':_0x53bd63(0x1da),'children':l[_0x53bd63(0x14c)](R,{'className':_0x53bd63(0x153)})})}):null;}function W(_0x313256){const _0x4f6f58=_0x46cccf,{status:_0x23c996,coordinator:_0x458411}=_0x313256;switch(_0x23c996){case u[_0x4f6f58(0x1dc)]:return l['jsx'](G,{'coordinator':_0x458411});case u[_0x4f6f58(0x16a)]:return l[_0x4f6f58(0x14c)](B,{'coordinator':_0x458411});case u[_0x4f6f58(0x1a5)]:return l['jsx'](Y,{'coordinator':_0x458411});case u[_0x4f6f58(0x13e)]:return l[_0x4f6f58(0x14c)](J,{});case u[_0x4f6f58(0x196)]:return l['jsx'](Z,{'coordinator':_0x458411});default:return null;}}function G(_0x32e079){const _0x26c51a=_0x46cccf,{coordinator:_0x4643d2}=_0x32e079;return l[_0x26c51a(0x1c8)](l[_0x26c51a(0x11a)],{'children':[l['jsx'](_0x26c51a(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x26c51a(0x1d3)}),l['jsx'](f[_0x26c51a(0x1c0)],{'onClick':()=>_0x4643d2[_0x26c51a(0x1b4)](),'children':_0x26c51a(0x11e)})]});}function B(_0x4325ea){const _0x289834=_0x46cccf,{coordinator:_0x457954}=_0x4325ea;return l['jsxs'](l[_0x289834(0x11a)],{'children':[l[_0x289834(0x14c)](_0x289834(0x12b),{'className':_0x289834(0x138),'children':_0x289834(0x170)}),l[_0x289834(0x14c)](f['Button'],{'onClick':()=>_0x457954[_0x289834(0x1d0)](),'children':'Stop\x20following'})]});}function Y(_0x5ddce8){const _0x576354=_0x46cccf,{coordinator:_0x25dbb6}=_0x5ddce8;return l[_0x576354(0x1c8)](l['Fragment'],{'children':[l[_0x576354(0x14c)]('div',{'className':_0x576354(0x138),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x576354(0x14c)](f[_0x576354(0x1c0)],{'variant':_0x576354(0x1c4),'onClick':()=>_0x25dbb6[_0x576354(0x173)](),'children':_0x576354(0x198)})]});}function Z(_0x56837d){const _0x290b14=_0x46cccf,{coordinator:_0x3ac36f}=_0x56837d;return l['jsxs'](l[_0x290b14(0x11a)],{'children':[l['jsx'](_0x290b14(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x290b14(0x156)}),l[_0x290b14(0x14c)](f[_0x290b14(0x1c0)],{'variant':'default','onClick':()=>_0x3ac36f[_0x290b14(0x136)](),'children':'Stop\x20presenting'})]});}function _0x4de5(_0x1d18bf,_0x53f6f8){const _0x259c50=_0x259c();return _0x4de5=function(_0x4de57f,_0xe4de5){_0x4de57f=_0x4de57f-0x11a;let _0x3de218=_0x259c50[_0x4de57f];return _0x3de218;},_0x4de5(_0x1d18bf,_0x53f6f8);}function J(){const _0xca54d3=_0x46cccf;return l[_0xca54d3(0x14c)](l['Fragment'],{'children':_0xca54d3(0x158)});}var K=Object[_0x46cccf(0x181)],z=(_0x33ee64,_0x338869,_0x26b7f2,_0x3bf703)=>{for(var _0x2f186e=_0x3bf703>0x1?void 0x0:_0x3bf703?K(_0x338869,_0x26b7f2):_0x338869,_0xd002bb=_0x33ee64['length']-0x1,_0x470ecf;_0xd002bb>=0x0;_0xd002bb--)(_0x470ecf=_0x33ee64[_0xd002bb])&&(_0x2f186e=_0x470ecf(_0x2f186e)||_0x2f186e);return _0x2f186e;},L=(_0x5088ce,_0x3b52a7)=>(_0x133854,_0x160573)=>_0x3b52a7(_0x133854,_0x160573,_0x5088ce);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0xe4411b,_0x16955a){const _0x41cea6=_0x46cccf;super(),this[_0x41cea6(0x128)]=_0xe4411b,this['_uiPartsService']=_0x16955a,this[_0x41cea6(0x162)]();}[_0x46cccf(0x162)](){const _0x4097c2=_0x46cccf;this[_0x4097c2(0x1a1)](this[_0x4097c2(0x186)][_0x4097c2(0x177)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector']($,this[_0x4097c2(0x128)])));}},exports[_0x46cccf(0x15a)]=z([L(0x0,o[_0x46cccf(0x1d2)](o['Injector'])),L(0x1,p[_0x46cccf(0x157)])],exports[_0x46cccf(0x15a)]);const Q=_0x46cccf(0x1cd),w={};var X=Object[_0x46cccf(0x181)],ee=(_0x44025f,_0x8ba14b,_0x2278c8,_0x52c9f6)=>{const _0x10bda7=_0x46cccf;for(var _0x4121cd=_0x52c9f6>0x1?void 0x0:_0x52c9f6?X(_0x8ba14b,_0x2278c8):_0x8ba14b,_0x28c5ca=_0x44025f[_0x10bda7(0x1ab)]-0x1,_0x4b2f55;_0x28c5ca>=0x0;_0x28c5ca--)(_0x4b2f55=_0x44025f[_0x28c5ca])&&(_0x4121cd=_0x4b2f55(_0x4121cd)||_0x4121cd);return _0x4121cd;},te=(_0x4ae520,_0x1f0a7f)=>(_0x2b75eb,_0x2d05fc)=>_0x1f0a7f(_0x2b75eb,_0x2d05fc,_0x4ae520);let m=class extends o[_0x46cccf(0x120)]{constructor(_0x30d12e){const _0xac16d5=_0x46cccf;super(),this['_liveShareService']=_0x30d12e,this[_0xac16d5(0x16c)]();}[_0x46cccf(0x16c)](){const _0x2c6694=_0x46cccf;[D[_0x2c6694(0x15d)]['id'],D[_0x2c6694(0x13d)]['id'],C[_0x2c6694(0x182)]['id']]['forEach'](_0x2369ef=>{const _0x3ba759=_0x2c6694;this[_0x3ba759(0x1a1)](this[_0x3ba759(0x1a6)][_0x3ba759(0x123)](_0x2369ef));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x46cccf(0x1b6)],se=Object[_0x46cccf(0x181)],ne=(_0x231378,_0x1bac39,_0x44d982)=>_0x1bac39 in _0x231378?ie(_0x231378,_0x1bac39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44d982}):_0x231378[_0x1bac39]=_0x44d982,re=(_0x3cdb1d,_0x21bd63,_0x4487c5,_0xfaf02e)=>{const _0x3827e8=_0x46cccf;for(var _0x1138f5=_0xfaf02e>0x1?void 0x0:_0xfaf02e?se(_0x21bd63,_0x4487c5):_0x21bd63,_0x5586a4=_0x3cdb1d[_0x3827e8(0x1ab)]-0x1,_0x24ce65;_0x5586a4>=0x0;_0x5586a4--)(_0x24ce65=_0x3cdb1d[_0x5586a4])&&(_0x1138f5=_0x24ce65(_0x1138f5)||_0x1138f5);return _0x1138f5;},N=(_0x22a54a,_0x3145d8)=>(_0x590ff5,_0x18aed7)=>_0x3145d8(_0x590ff5,_0x18aed7,_0x22a54a),A=(_0x1e2d92,_0x2ff71c,_0x2b090b)=>ne(_0x1e2d92,typeof _0x2ff71c!=_0x46cccf(0x1bf)?_0x2ff71c+'':_0x2ff71c,_0x2b090b);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x46cccf(0x133)]=class extends o[_0x46cccf(0x175)]{constructor(_0x4cec9b=w,_0x40e1bc,_0x1cc4a8){const _0x31bed6=_0x46cccf;super(),this['_config']=_0x4cec9b,this[_0x31bed6(0x128)]=_0x40e1bc,this[_0x31bed6(0x193)]=_0x1cc4a8;const {..._0xee43f3}=o[_0x31bed6(0x1a4)]({},w,this[_0x31bed6(0x13f)]);this['_configService'][_0x31bed6(0x19f)](Q,_0xee43f3);}['onStarting'](){const _0x4f5cb4=_0x46cccf;o[_0x4f5cb4(0x144)](this[_0x4f5cb4(0x128)],o[_0x4f5cb4(0x1a8)]([[E],[exports[_0x4f5cb4(0x1a3)]],[m],[exports['DesktopLiveShareController']]],this[_0x4f5cb4(0x13f)][_0x4f5cb4(0x1ee)])),o[_0x4f5cb4(0x1e9)](this[_0x4f5cb4(0x128)],[[m]]);}[_0x46cccf(0x1d9)](){const _0x2347ba=_0x46cccf;o[_0x2347ba(0x1e9)](this[_0x2347ba(0x128)],[[exports[_0x2347ba(0x15a)]]]);}},A(exports[_0x46cccf(0x133)],_0x46cccf(0x1bd),o[_0x46cccf(0x1a7)][_0x46cccf(0x1ce)]),A(exports[_0x46cccf(0x133)],_0x46cccf(0x1b9),oe),exports[_0x46cccf(0x133)]=re([o[_0x46cccf(0x178)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x46cccf(0x1d2)](o[_0x46cccf(0x163)])),N(0x2,o[_0x46cccf(0x161)])],exports[_0x46cccf(0x133)]),exports[_0x46cccf(0x184)]=$,exports['LiveShareService']=E,exports[_0x46cccf(0x139)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d493c=_0x26b2;(function(_0x5a7eee,_0x5843f3){const _0x37bafa=_0x26b2,_0x47c072=_0x5a7eee();while(!![]){try{const _0x25a607=parseInt(_0x37bafa(0x10c))/0x1*(parseInt(_0x37bafa(0xff))/0x2)+-parseInt(_0x37bafa(0x110))/0x3+-parseInt(_0x37bafa(0xf4))/0x4*(-parseInt(_0x37bafa(0xfe))/0x5)+-parseInt(_0x37bafa(0x106))/0x6+parseInt(_0x37bafa(0x103))/0x7+-parseInt(_0x37bafa(0x101))/0x8*(-parseInt(_0x37bafa(0xfb))/0x9)+parseInt(_0x37bafa(0x107))/0xa;if(_0x25a607===_0x5843f3)break;else _0x47c072['push'](_0x47c072['shift']());}catch(_0x270fbb){_0x47c072['push'](_0x47c072['shift']());}}}(_0x1d68,0x1a865));import{LiveShareController as _0x30732c,LiveShareStatus as _0x27f431}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1f62e4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x2e2c02}from'@univerjs/sheets';import{SetScrollOperation as _0x23aa4c}from'@univerjs/sheets-ui';import{FRange as _0x31d273}from'@univerjs/sheets/facade';import{FUniver as _0x4e8923,FEnum as _0x595c1f}from'@univerjs/core/facade';class I extends _0x31d273{['_initialize'](_0x58d307,_0x4fd541,_0x1c8c42,_0x4a1bac,_0x4c2316){const _0x559afe=_0x26b2,_0x1707ed=_0x58d307[_0x559afe(0xfa)](_0x30732c),_0x4f039c=_0x58d307[_0x559afe(0xfa)](_0x1f62e4),_0x2d02b8=_0x4fd541[_0x559afe(0x111)](),_0x36af57=_0x4fd541[_0x559afe(0x100)](),_0x22e673=_0x1707ed['getLiveShareCoordinatorSync'](_0x2d02b8);(_0x22e673==null?void 0x0:_0x22e673[_0x559afe(0xf2)]())!==_0x27f431[_0x559afe(0xf8)]||(_0x1c8c42[_0x559afe(0x10b)]()!==_0x36af57[_0x559afe(0x10b)]()&&this['_commandService'][_0x559afe(0xfc)](_0x2e2c02['id'],{'unitId':_0x2d02b8,'subUnitId':_0x1c8c42[_0x559afe(0x10b)]()}),!_0x4f039c[_0x559afe(0xf6)](_0x2d02b8))||_0x4c2316[_0x559afe(0x10f)](_0x23aa4c['id'],{'unitId':_0x4fd541['getUnitId'](),'sheetId':_0x1c8c42[_0x559afe(0x10b)](),'sheetViewStartRow':_0x4a1bac['startRow'],'sheetViewStartColumn':_0x4a1bac[_0x559afe(0x105)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31d273['extend'](I);function _0x1d68(){const _0x4fb5b0=['LiveShareStatusEnum','syncExecuteCommand','507087UuaXzO','getUnitId','startFollowing','getStatus','getActiveWorkbook','76548iHxlVJ','getLiveShareCoordinatorSync','getRenderById','tryStartPresenting','PRESENTING','IDLE','get','18zyCjVc','executeCommand','stopFollowing','40leUanr','122XWCHvG','getActiveSheet','125992LrrRHH','getLiveShareStatus','114821DSJqOj','extend','startColumn','641256wPPhby','1315200GaLRoV','No\x20active\x20workbook\x20found.','_injector','getId','getSheetId','853uAieWJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x1d68=function(){return _0x4fb5b0;};return _0x1d68();}function _0x26b2(_0x4f2c9e,_0x203c7b){const _0x1d6898=_0x1d68();return _0x26b2=function(_0x26b2a3,_0x3b2a22){_0x26b2a3=_0x26b2a3-0xf2;let _0x37420a=_0x1d6898[_0x26b2a3];return _0x37420a;},_0x26b2(_0x4f2c9e,_0x203c7b);}class m extends _0x4e8923{[_0x3d493c(0x102)](){const _0x1f9362=_0x3d493c;var _0x22e510,_0x31a870;const _0x2a3775=this[_0x1f9362(0x109)][_0x1f9362(0xfa)](_0x30732c),_0x4f51ed=(_0x22e510=this['getActiveWorkbook']())==null?void 0x0:_0x22e510['getId']();if(!_0x4f51ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x30bb73=_0x2a3775['getLiveShareCoordinatorSync'](_0x4f51ed);return(_0x31a870=_0x30bb73==null?void 0x0:_0x30bb73[_0x1f9362(0xf2)]())!=null?_0x31a870:_0x27f431[_0x1f9362(0xf9)];}[_0x3d493c(0x112)](){const _0x390306=_0x3d493c;var _0x141b0c;const _0xa6fd3=this['_injector'][_0x390306(0xfa)](_0x30732c),_0x56532d=(_0x141b0c=this[_0x390306(0xf3)]())==null?void 0x0:_0x141b0c[_0x390306(0x10a)]();if(!_0x56532d)throw new Error(_0x390306(0x108));const _0x4c18b6=_0xa6fd3['getLiveShareCoordinatorSync'](_0x56532d);if(!_0x4c18b6)throw new Error(_0x390306(0x10d));_0x4c18b6[_0x390306(0x112)]();}[_0x3d493c(0xfd)](){const _0x14ea82=_0x3d493c;var _0x4ad526;const _0x14d570=this[_0x14ea82(0x109)][_0x14ea82(0xfa)](_0x30732c),_0x5357f6=(_0x4ad526=this[_0x14ea82(0xf3)]())==null?void 0x0:_0x4ad526['getId']();if(!_0x5357f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2c54e6=_0x14d570[_0x14ea82(0xf5)](_0x5357f6);if(!_0x2c54e6)throw new Error(_0x14ea82(0x10d));_0x2c54e6[_0x14ea82(0xfd)]();}['startPresenting'](){const _0x4d090d=_0x3d493c;var _0x516f11;const _0x179eff=this['_injector'][_0x4d090d(0xfa)](_0x30732c),_0x5c6f50=(_0x516f11=this[_0x4d090d(0xf3)]())==null?void 0x0:_0x516f11[_0x4d090d(0x10a)]();if(!_0x5c6f50)throw new Error(_0x4d090d(0x108));const _0x4d1aab=_0x179eff[_0x4d090d(0xf5)](_0x5c6f50);if(!_0x4d1aab)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d1aab[_0x4d090d(0xf7)]();}['stopPresenting'](){const _0x3d6ecd=_0x3d493c;var _0x5413e;const _0x59ae79=this['_injector'][_0x3d6ecd(0xfa)](_0x30732c),_0x4162=(_0x5413e=this[_0x3d6ecd(0xf3)]())==null?void 0x0:_0x5413e[_0x3d6ecd(0x10a)]();if(!_0x4162)throw new Error(_0x3d6ecd(0x108));const _0x3638e2=_0x59ae79[_0x3d6ecd(0xf5)](_0x4162);if(!_0x3638e2)throw new Error(_0x3d6ecd(0x10d));_0x3638e2['stopPresenting']();}}_0x4e8923['extend'](m);class C extends _0x595c1f{get[_0x3d493c(0x10e)](){return _0x27f431;}}_0x595c1f[_0x3d493c(0x104)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x376a4f=_0x6fa4;(function(_0x5f9762,_0x4db515){const _0x4a266d=_0x6fa4,_0x1ac9ae=_0x5f9762();while(!![]){try{const _0x27545b=parseInt(_0x4a266d(0x14f))/0x1*(parseInt(_0x4a266d(0x111))/0x2)+parseInt(_0x4a266d(0xaf))/0x3*(-parseInt(_0x4a266d(0xee))/0x4)+-parseInt(_0x4a266d(0xdf))/0x5*(-parseInt(_0x4a266d(0x10b))/0x6)+parseInt(_0x4a266d(0x107))/0x7*(-parseInt(_0x4a266d(0xc0))/0x8)+parseInt(_0x4a266d(0x118))/0x9+parseInt(_0x4a266d(0x142))/0xa*(parseInt(_0x4a266d(0xb5))/0xb)+parseInt(_0x4a266d(0x131))/0xc;if(_0x27545b===_0x4db515)break;else _0x1ac9ae['push'](_0x1ac9ae['shift']());}catch(_0x20ec09){_0x1ac9ae['push'](_0x1ac9ae['shift']());}}}(_0x2f50,0x73e5d));var J=Object[_0x376a4f(0xe6)],K=(_0x366b39,_0x48c34a,_0x450ba2)=>_0x48c34a in _0x366b39?J(_0x366b39,_0x48c34a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450ba2}):_0x366b39[_0x48c34a]=_0x450ba2,u=(_0x6748e8,_0x12c4fd,_0x18f7de)=>K(_0x6748e8,typeof _0x12c4fd!=_0x376a4f(0xbb)?_0x12c4fd+'':_0x12c4fd,_0x18f7de);import{Disposable as _0xa8a9d0,toDisposable as _0xd13dd9,IUniverInstanceService as _0x5aa078,Inject as _0x2a25eb,Injector as _0x32fd57,IConfigService as _0x3456b4,ICommandService as _0x37323b,RxDisposable as _0x3566dd,UniverInstanceType as _0x48a4bc,DisposableCollection as _0x1e700a,CommandType as _0x45bef0,DependentOn as _0x139081,Plugin as _0x2bd5e2,merge as _0x1ed009,registerDependencies as _0x61aae3,mergeOverrideWithDependencies as _0x5ae5b0,touchDependencies as _0x92363}from'@univerjs/core';import{useDependency as _0xb50b79,useObservable as _0x56bbc7,IUIPartsService as _0x1210ac,BuiltInUIPart as _0x16c9fe,connectInjector as _0x5a62ec}from'@univerjs/ui';import{jsx as _0x2faf40,jsxs as _0x306731,Fragment as _0x498a05}from'react/jsx-runtime';import{Dropdown as _0xe34a22,clsx as _0x191602,Button as _0x57ee97}from'@univerjs/design';import{useRef as _0x4eeaac,createElement as _0x4266f5,forwardRef as _0x52e11c,useState as _0x7ea6fc,useEffect as _0x257959}from'react';import{CollaborationEvent as _0x5d24e8,parseProtocolChangeset as _0x41fc5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1c1186,SessionStatus as _0x2c44d1,UniverCollaborationClientPlugin as _0x7cb5ad}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16e07d,SetWorksheetActiveOperation as _0x1b3bb6}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3f65,Subject as _0xfc6fa9}from'rxjs';import{takeUntil as _0x4bc284,throttleTime as _0x146c58}from'rxjs/operators';import{SetZoomRatioOperation as _0x1b2024,SetScrollOperation as _0x4f12f1}from'@univerjs/sheets-ui';function k({ref:_0x55cd3a,..._0x212a7b}){const _0x1cfb18=_0x376a4f,{icon:_0x1fda22,id:_0x4ac276,className:_0x1a4eb9,extend:_0x1a7c74,..._0x180662}=_0x212a7b,_0x40c270=(_0x1cfb18(0x121)+_0x4ac276+'\x20'+(_0x1a4eb9||''))[_0x1cfb18(0x147)](),_0x43c737=_0x4eeaac('_'+Oe());return G(_0x1fda22,''+_0x4ac276,{'defIds':_0x1fda22[_0x1cfb18(0x13f)],'idSuffix':_0x43c737[_0x1cfb18(0x14e)]},{'ref':_0x55cd3a,'className':_0x40c270,..._0x180662},_0x1a7c74);}function G(_0x517988,_0x5db89d,_0x4a8c40,_0x563450,_0x312112){const _0x1829b6=_0x376a4f;return _0x4266f5(_0x517988[_0x1829b6(0x11c)],{'key':_0x5db89d,...be(_0x517988,_0x4a8c40,_0x312112),..._0x563450},(Ee(_0x517988,_0x4a8c40)[_0x1829b6(0xe5)]||[])[_0x1829b6(0xbf)]((_0x2a31ab,_0x47cdb6)=>G(_0x2a31ab,_0x5db89d+'-'+_0x517988[_0x1829b6(0x11c)]+'-'+_0x47cdb6,_0x4a8c40,void 0x0,_0x312112)));}function be(_0x5d8254,_0x2711f1,_0x16ad9d){const _0x1b365d=_0x376a4f,_0x174904={..._0x5d8254[_0x1b365d(0xc9)]};_0x16ad9d!=null&&_0x16ad9d[_0x1b365d(0x140)]&&_0x174904[_0x1b365d(0xff)]===_0x1b365d(0x140)&&(_0x174904[_0x1b365d(0xff)]=_0x16ad9d[_0x1b365d(0x140)]),_0x5d8254[_0x1b365d(0x11c)]===_0x1b365d(0xb4)&&_0x174904['id']&&(_0x174904['id']=_0x174904['id']+_0x2711f1[_0x1b365d(0xc8)]),Object[_0x1b365d(0x129)](_0x174904)[_0x1b365d(0x102)](([_0x38ddbf,_0x518fb2])=>{const _0x3ec980=_0x1b365d;_0x38ddbf===_0x3ec980(0xb4)&&typeof _0x518fb2==_0x3ec980(0xf4)&&(_0x174904[_0x38ddbf]=_0x518fb2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2711f1['idSuffix']+')'));});const {defIds:_0x160d19}=_0x2711f1;return!_0x160d19||_0x160d19[_0x1b365d(0xdb)]===0x0||(_0x5d8254['tag']===_0x1b365d(0x12e)&&_0x174904[_0x1b365d(0x108)]&&(_0x174904['xlink:href']=_0x174904[_0x1b365d(0x108)]+_0x2711f1[_0x1b365d(0xc8)]),Object['entries'](_0x174904)[_0x1b365d(0x102)](([_0x471798,_0x1457e6])=>{const _0x175a19=_0x1b365d;typeof _0x1457e6==_0x175a19(0xf4)&&(_0x174904[_0x471798]=_0x1457e6[_0x175a19(0xce)](/url\(#(.*)\)/,'url(#$1'+_0x2711f1[_0x175a19(0xc8)]+')'));})),_0x174904;}function Ee(_0x5a83b0,_0x1e962b){const _0x52f7ce=_0x376a4f;var _0x49b9b3;const {defIds:_0x4e7330}=_0x1e962b;return!_0x4e7330||_0x4e7330[_0x52f7ce(0xdb)]===0x0?_0x5a83b0:_0x5a83b0['tag']===_0x52f7ce(0xf5)&&((_0x49b9b3=_0x5a83b0[_0x52f7ce(0xe5)])!=null&&_0x49b9b3[_0x52f7ce(0xdb)])?{..._0x5a83b0,'children':_0x5a83b0[_0x52f7ce(0xe5)][_0x52f7ce(0xbf)](_0x3cf34a=>typeof _0x3cf34a[_0x52f7ce(0xc9)]['id']==_0x52f7ce(0xf4)&&_0x4e7330&&_0x4e7330['includes'](_0x3cf34a[_0x52f7ce(0xc9)]['id'])?{..._0x3cf34a,'attrs':{..._0x3cf34a[_0x52f7ce(0xc9)],'id':_0x3cf34a[_0x52f7ce(0xc9)]['id']+_0x1e962b['idSuffix']}}:_0x3cf34a)}:_0x5a83b0;}function Oe(){const _0x4e9c7c=_0x376a4f;return Math[_0x4e9c7c(0xca)]()['toString'](0x24)[_0x4e9c7c(0xed)](0x2,0x8);}k[_0x376a4f(0x109)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x376a4f(0x112),'fill':_0x376a4f(0xeb),'viewBox':_0x376a4f(0x106),'width':'1em','height':_0x376a4f(0x134)},'children':[{'tag':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'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':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'d':_0x376a4f(0x132),'fillRule':'evenodd','clipRule':_0x376a4f(0x144)}}]},W=_0x52e11c(function(_0x15c6af,_0x1cf9c4){const _0x1a5144=_0x376a4f;return _0x4266f5(k,Object[_0x1a5144(0x135)]({},_0x15c6af,{'id':'live-share-icon','ref':_0x1cf9c4,'icon':we}));});W[_0x376a4f(0x109)]=_0x376a4f(0x101);class L extends _0xa8a9d0{constructor(){const _0x2c6de1=_0x376a4f;super(...arguments),u(this,_0x2c6de1(0xfe),new Set()),u(this,_0x2c6de1(0xe8),new Set());}[_0x376a4f(0x11f)](_0x7c4c5d){const _0x49f156=_0x376a4f;return this[_0x49f156(0xfe)][_0x49f156(0xcc)](_0x7c4c5d),_0xd13dd9(()=>this[_0x49f156(0xfe)][_0x49f156(0x14c)](_0x7c4c5d));}[_0x376a4f(0xf7)](_0x130c4f){const _0x147fb8=_0x376a4f;return this['_reporters'][_0x147fb8(0xcc)](_0x130c4f),_0xd13dd9(()=>this['_reporters']['delete'](_0x130c4f));}['shouldShareOperation'](_0x892d0d){return this['_sharedOperations']['has'](_0x892d0d);}[_0x376a4f(0x133)](_0x2fa5ca){const _0x4172c4=_0x376a4f;return Array['from'](this[_0x4172c4(0xe8)])['map'](_0x5f27d4=>_0x5f27d4(_0x2fa5ca));}}var Ne=Object[_0x376a4f(0x13d)],Y=(_0xea013,_0x1fc69a,_0x4dc94c,_0x59afef)=>{const _0x591bf4=_0x376a4f;for(var _0x4b7c8e=_0x59afef>0x1?void 0x0:_0x59afef?Ne(_0x1fc69a,_0x4dc94c):_0x1fc69a,_0x382817=_0xea013[_0x591bf4(0xdb)]-0x1,_0x21fa60;_0x382817>=0x0;_0x382817--)(_0x21fa60=_0xea013[_0x382817])&&(_0x4b7c8e=_0x21fa60(_0x4b7c8e)||_0x4b7c8e);return _0x4b7c8e;},_=(_0x897e7d,_0x51ff01)=>(_0x38a561,_0xeaf2f7)=>_0x51ff01(_0x38a561,_0xeaf2f7,_0x897e7d);let S=class extends _0x3566dd{constructor(_0x538ba5,_0x45ac84,_0x26d5c0){const _0x28fe87=_0x376a4f;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x538ba5,this[_0x28fe87(0xe1)]=_0x45ac84,this[_0x28fe87(0x149)]=_0x26d5c0,this[_0x28fe87(0xe0)]());}async[_0x376a4f(0xb7)](_0x1f8f62){const _0x3a410e=_0x376a4f;return this[_0x3a410e(0x117)]['has'](_0x1f8f62)||await this[_0x3a410e(0xdc)](_0x1f8f62),this[_0x3a410e(0x117)]['get'](_0x1f8f62);}['getLiveShareCoordinatorSync'](_0x2b32ca){const _0x24ea30=_0x376a4f;var _0x28b105;return(_0x28b105=this[_0x24ea30(0x117)][_0x24ea30(0xd5)](_0x2b32ca))!=null?_0x28b105:null;}[_0x376a4f(0xe0)](){const _0x4a9128=_0x376a4f;this['_univerInstanceService'][_0x4a9128(0x13b)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this[_0x4a9128(0xef)]))[_0x4a9128(0xf8)](async _0x5b4ea3=>{const _0x30e096=_0x4a9128,_0x57edf0=_0x5b4ea3['getUnitId']();this[_0x30e096(0x117)][_0x30e096(0x14d)](_0x57edf0)||this[_0x30e096(0xdc)](_0x57edf0);}),this[_0x4a9128(0xea)][_0x4a9128(0x10d)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this['dispose$']))[_0x4a9128(0xf8)](_0x228720=>{const _0x3076c7=_0x4a9128,_0xa693fa=_0x228720[_0x3076c7(0x125)](),_0x53cd83=this[_0x3076c7(0x117)][_0x3076c7(0xd5)](_0xa693fa);_0x53cd83==null||_0x53cd83[_0x3076c7(0xbe)]();});}async[_0x376a4f(0xdc)](_0x584230){const _0x4220be=_0x376a4f,_0xc82cc9=await this['_collabSessionService']['requireSession'](_0x584230),_0x232d05=this['_injector'][_0x4220be(0x11b)](N,_0x584230,_0xc82cc9);return _0x232d05['init'](),this['_entities'][_0x4220be(0x10c)](_0x584230,_0x232d05),_0x232d05;}};S=Y([_(0x0,_0x5aa078),_(0x1,_0x2a25eb(_0x32fd57)),_(0x2,_0x2a25eb(_0x1c1186))],S);var c=(_0x14b523=>(_0x14b523['OFFLINE']=_0x376a4f(0x103),_0x14b523[_0x376a4f(0x119)]=_0x376a4f(0x137),_0x14b523['FOLLOWING']='following',_0x14b523[_0x376a4f(0x12f)]='not-following',_0x14b523[_0x376a4f(0x138)]=_0x376a4f(0x124),_0x14b523))(c||{});const Ce=_0x376a4f(0xd2),De=0xc8;function _0x2f50(){const _0x546d97=['_unitID','_presenter','get','Present\x20this\x20document','OFFLINE','not-following','button','ONLINE','length','_startLiveShareCoordinator','startFollowing','getValue','45ELGpTb','_init','_injector','status$','_handleOnline','disposeWithMe','children','defineProperty','end','_reporters','_uiPartsService','_univerInstanceService','none','onStarting','substring','3500404fKcLOl','dispose$','executeCommand','LIVESHARE_NEW_HOST','You\x27are\x20offline.','sessionStatus$','string','defs','UNIVER_SHEET','registerInitialStateReporter','subscribe','Stop\x20following','_startPresenting','onCommandExecuted','text','LIVESHARE_REQUEST_HOST','_sharedOperations','fill','_handleNewChangeSets','LiveShareIcon','forEach','offline','_fetchOperations','pluginName','0\x200\x2017\x2017','7KcMfya','xlink:href','displayName','UNIVER_LIVE_SHARE_PLUGIN','184014mJsLoB','set','getTypeOfUnitDisposed$','_config','values','stopFollowing','2ghzpHN','http://www.w3.org/2000/svg','NEW_CHANGESETS','type','includes','_commandDisposable','_entities','2392605qCpwDF','IDLE','complete','createInstance','tag','mutations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerSharedOperation','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','presenter','getMemberID','presenting','getUnitId','div','_handleNewHost','OPERATION','entries','_status','LIVESHARE_FETCH_OPERATIONS','UNIVER_UNKNOWN','_startFollowing','use','NOT_FOLLOWING','getStatus','7530384dILGef','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','getInitialStates','1em','assign','LIVESHARE_TERMINATE','idle','PRESENTING','operations','params','getTypeOfUnitAdded$','currentColor','getOwnPropertyDescriptor','onRendered','defIds','colorChannel1','stringify','130nZBAzb','send','evenodd','_collabSession','asObservable','trim','registerComponent','_collabSessionService','_stopPresenting','_stopFollowing','delete','has','current','211274lbBFgU','_liveShareService','_commandService','_handleTerminate','3VyNybl','_status$','next','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','mask','62953yvSMCa','getCurrentTypeOfUnit$','getLiveShareCoordinator','_handleOffline','path','pipe','symbol','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','dispose','map','842024jbIYhh','_handleOperation','FOLLOWING','shouldShareOperation','stopPresenting','univer-size-4','_beIdle','Stop\x20presenting','idSuffix','attrs','random','data','add','following','replace','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','SAME_OPERATION_SHARE_INTERVAL'];_0x2f50=function(){return _0x546d97;};return _0x2f50();}let N=class extends _0x3566dd{constructor(_0x5fd53f,_0xf0922a,_0x3166cd,_0x23d6a7,_0x50fb3a){const _0x290e75=_0x376a4f;super(),u(this,_0x290e75(0xb0),new _0x5a3f65(_0x290e75(0x137))),u(this,_0x290e75(0xe2),this['_status$'][_0x290e75(0x146)]()),u(this,_0x290e75(0xe0),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x290e75(0xd3)]=_0x5fd53f,this[_0x290e75(0x145)]=_0xf0922a,this['_configService']=_0x3166cd,this[_0x290e75(0x150)]=_0x23d6a7,this['_commandService']=_0x50fb3a);}get[_0x376a4f(0x12a)](){const _0x18198e=_0x376a4f;return this[_0x18198e(0xb0)][_0x18198e(0xde)]();}['dispose'](){const _0x5601bd=_0x376a4f;var _0x28b9b3;(_0x28b9b3=this[_0x5601bd(0x116)])==null||_0x28b9b3['dispose'](),this['_status$'][_0x5601bd(0xb1)]('idle'),this[_0x5601bd(0xb0)][_0x5601bd(0x11a)]();}[_0x376a4f(0x130)](){const _0x58895d=_0x376a4f;return this[_0x58895d(0x12a)];}['init'](){const _0x5448fa=_0x376a4f;this[_0x5448fa(0xe0)]||(this[_0x5448fa(0xe0)]=!0x0,this[_0x5448fa(0x145)][_0x5448fa(0xf3)]['pipe'](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x592566=>{const _0x301af8=_0x5448fa;switch(_0x592566){case _0x2c44d1[_0x301af8(0xd7)]:this[_0x301af8(0xb8)]();break;case _0x2c44d1[_0x301af8(0xda)]:this[_0x301af8(0xe3)]();break;}}),this[_0x5448fa(0x145)]['event$'][_0x5448fa(0xba)](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x34485a=>{const _0x1912b6=_0x5448fa,{eventID:_0x33884f}=_0x34485a;switch(_0x33884f){case _0x5d24e8[_0x1912b6(0xf1)]:this[_0x1912b6(0x127)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x120)]:this[_0x1912b6(0xc1)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x136)]:this[_0x1912b6(0xae)]();break;case _0x5d24e8[_0x1912b6(0x113)]:this['_handleNewChangeSets'](_0x34485a);break;}}));}[_0x376a4f(0xbd)](){const _0x3f7064=_0x376a4f;this['_collabSession'][_0x3f7064(0x143)]({'eventID':_0x5d24e8[_0x3f7064(0xfd)],'data':{'unitID':this[_0x3f7064(0xd3)],'userID':this[_0x3f7064(0x145)][_0x3f7064(0x123)]()}},this[_0x3f7064(0xd3)]);}[_0x376a4f(0xc4)](){const _0x519678=_0x376a4f;this[_0x519678(0x12a)]===_0x519678(0x124)&&(this[_0x519678(0xb0)][_0x519678(0xb1)](_0x519678(0x137)),this[_0x519678(0x145)][_0x519678(0x143)]({'eventID':_0x5d24e8[_0x519678(0x136)],'data':{'unitID':this[_0x519678(0xd3)]}},this[_0x519678(0xd3)]));}[_0x376a4f(0xdd)](){const _0x4b2984=_0x376a4f;this[_0x4b2984(0x12a)]===_0x4b2984(0xd8)&&(this[_0x4b2984(0xb0)][_0x4b2984(0xb1)]('following'),this['_startFollowing']());}[_0x376a4f(0x110)](){const _0x4299ea=_0x376a4f;this['_status']==='following'&&this[_0x4299ea(0x14b)]();}['_handleNewHost'](_0x1da5a8){const _0x3f9851=_0x376a4f,{presenter:_0x4610f1}=_0x1da5a8[_0x3f9851(0xcb)],_0x86f32c=this[_0x3f9851(0x145)][_0x3f9851(0x123)]();this[_0x3f9851(0xd4)]=_0x4610f1,_0x4610f1===_0x86f32c?(this[_0x3f9851(0x14b)](),this[_0x3f9851(0xfa)]()):this['_status']!=='not-following'&&(this[_0x3f9851(0x14a)](),this[_0x3f9851(0x12d)]());}[_0x376a4f(0x104)](){const _0x41b390=_0x376a4f,_0x4a6129={'eventID':_0x5d24e8[_0x41b390(0x12b)]};this['_collabSession'][_0x41b390(0x143)](_0x4a6129,this[_0x41b390(0xd3)]);}[_0x376a4f(0xae)](){const _0x27c23a=_0x376a4f;this[_0x27c23a(0xd4)]=null,this['_status']!==_0x27c23a(0x124)&&this['_beIdle']();}[_0x376a4f(0x100)](_0x42f53d){const _0x5f238a=_0x376a4f;if(this['_status']==='following'&&this[_0x5f238a(0xd4)]===_0x42f53d[_0x5f238a(0xcb)]['memberID']){const _0x22db5f=_0x41fc5f(_0x42f53d[_0x5f238a(0xcb)])[_0x5f238a(0x11d)]['reverse']()['find'](_0x197ccc=>_0x197ccc['id']===_0x16e07d['id']);if(_0x22db5f){const _0x204bdb=_0x22db5f[_0x5f238a(0x13a)]['unitId'],_0x43c4f8=_0x22db5f[_0x5f238a(0x13a)]['sheet']['id'];setTimeout(()=>{const _0x2cff73=_0x5f238a;this[_0x2cff73(0xad)][_0x2cff73(0xf0)](_0x1b3bb6['id'],{'unitId':_0x204bdb,'subUnitId':_0x43c4f8},{'fromCollab':!0x0});});}}}[_0x376a4f(0xfa)](){const _0x5990a3=_0x376a4f;this[_0x5990a3(0xb0)][_0x5990a3(0xb1)](_0x5990a3(0x124));const _0x4d6ee7=new Map(),_0xaf0273=this['_commandDisposable']=new _0x1e700a();_0xaf0273[_0x5990a3(0xcc)](_0xd13dd9(()=>{const _0x34a313=_0x5990a3;_0x4d6ee7[_0x34a313(0x102)](_0x17a3cf=>_0x17a3cf['complete']()),_0x4d6ee7['clear']();})),_0xaf0273[_0x5990a3(0xcc)](this['_commandService'][_0x5990a3(0xfb)](_0x382e02=>{const _0x623305=_0x5990a3;var _0x13621f;if(_0x382e02[_0x623305(0x114)]!==_0x45bef0[_0x623305(0x128)]||!this['_liveShareService'][_0x623305(0xc3)](_0x382e02['id']))return;const {id:_0x10750b}=_0x382e02;let _0x1de5a7;_0x4d6ee7[_0x623305(0x14d)](_0x10750b)?_0x1de5a7=_0x4d6ee7[_0x623305(0xd5)](_0x10750b):(_0x1de5a7=new _0xfc6fa9(),_0x4d6ee7['set'](_0x10750b,_0x1de5a7),_0x1de5a7['pipe'](_0x146c58((_0x13621f=this[_0x623305(0xcf)][_0x623305(0xb3)](Ce))!=null?_0x13621f:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x623305(0xf8)](_0x43bd48=>{const _0x29e14d=_0x623305;this[_0x29e14d(0x145)][_0x29e14d(0x143)]({'eventID':_0x5d24e8[_0x29e14d(0x120)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bd48['id']]:{'id':_0x43bd48['id'],'params':JSON[_0x29e14d(0x141)](_0x43bd48[_0x29e14d(0x13a)])}}}},this[_0x29e14d(0xd3)]);})),_0x1de5a7['next'](_0x382e02);})),this[_0x5990a3(0x150)][_0x5990a3(0x133)](this[_0x5990a3(0xd3)])[_0x5990a3(0x102)](_0x34f52c=>this[_0x5990a3(0x145)][_0x5990a3(0x143)]({'eventID':_0x5d24e8[_0x5990a3(0x120)],'data':{'unitID':this[_0x5990a3(0xd3)],'operations':{[_0x34f52c['id']]:{'id':_0x34f52c['id'],'params':JSON[_0x5990a3(0x141)](_0x34f52c[_0x5990a3(0x13a)])}}}},this[_0x5990a3(0xd3)]));}['_stopPresenting'](){const _0x3a2eb9=_0x376a4f;var _0x3343fa;this[_0x3a2eb9(0xb0)]['next']('idle'),(_0x3343fa=this[_0x3a2eb9(0x116)])==null||_0x3343fa[_0x3a2eb9(0xbe)](),this['_commandDisposable']=null;}[_0x376a4f(0x12d)](){const _0x3e4a82=_0x376a4f;var _0x43feb2;(_0x43feb2=this[_0x3e4a82(0x116)])==null||_0x43feb2[_0x3e4a82(0xbe)](),this[_0x3e4a82(0xb0)][_0x3e4a82(0xb1)](_0x3e4a82(0xcd));}[_0x376a4f(0xc6)](){const _0x2b9cbe=_0x376a4f;var _0x3e8ddf;this[_0x2b9cbe(0xb0)][_0x2b9cbe(0xb1)](_0x2b9cbe(0x137)),(_0x3e8ddf=this[_0x2b9cbe(0x116)])==null||_0x3e8ddf[_0x2b9cbe(0xbe)](),this[_0x2b9cbe(0x116)]=null;}['_stopFollowing'](){const _0x1654a1=_0x376a4f;var _0x32d515;this[_0x1654a1(0xb0)]['next'](_0x1654a1(0xd8)),(_0x32d515=this[_0x1654a1(0x116)])==null||_0x32d515[_0x1654a1(0xbe)]();}[_0x376a4f(0xc1)](_0x4e9cf6){const _0x23b207=_0x376a4f;if([_0x23b207(0x124),_0x23b207(0xd8),_0x23b207(0x103)][_0x23b207(0x115)](this['_status'])||!_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x122)]||_0x4e9cf6['data'][_0x23b207(0x122)]===this[_0x23b207(0x145)][_0x23b207(0x123)]())return;this[_0x23b207(0x12a)]===_0x23b207(0x137)&&this[_0x23b207(0x12d)]();const _0x3db040=_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x139)];Object[_0x23b207(0x10f)](_0x3db040)[_0x23b207(0x102)](_0x1ec4e2=>{const _0x3badbd=_0x23b207;this[_0x3badbd(0xad)][_0x3badbd(0xf0)](_0x1ec4e2['id'],_0x1ec4e2['params']?JSON['parse'](_0x1ec4e2[_0x3badbd(0x13a)]):null,{'fromCollab':!0x0});});}[_0x376a4f(0xb8)](){const _0x3bec99=_0x376a4f;var _0x45dd0a;this[_0x3bec99(0xb0)][_0x3bec99(0xb1)]('offline'),(_0x45dd0a=this[_0x3bec99(0x116)])==null||_0x45dd0a['dispose']();}[_0x376a4f(0xe3)](){const _0x3dca3c=_0x376a4f;this[_0x3dca3c(0xb0)]['next'](_0x3dca3c(0x137)),this[_0x3dca3c(0x104)]();}};N=Y([_(0x2,_0x3456b4),_(0x3,_0x2a25eb(L)),_(0x4,_0x37323b)],N);function Le(){const _0x276637=_0x376a4f,_0x136c1=_0xb50b79(S),_0x1873a8=_0xb50b79(_0x5aa078),_0x534e3c=_0x56bbc7(()=>_0x1873a8[_0x276637(0xb6)](_0x48a4bc[_0x276637(0xf6)]),void 0x0,!0x1,[]),[_0x4d802b,_0x4ce8c9]=_0x7ea6fc(null),[_0x53fbe8,_0x4b8fc4]=_0x7ea6fc(c[_0x276637(0x119)]),_0x117f99=_0x4eeaac(null);return _0x257959(()=>(_0x534e3c&&_0x136c1['getLiveShareCoordinator'](_0x534e3c['getUnitId']())['then'](_0x58521c=>{const _0x773e96=_0x276637;_0x4ce8c9(_0x58521c),_0x117f99[_0x773e96(0x14e)]=_0x58521c[_0x773e96(0xe2)][_0x773e96(0xf8)](_0x56ad24=>{_0x4b8fc4(_0x56ad24);});}),()=>{const _0x30536b=_0x276637;var _0x448309;(_0x448309=_0x117f99[_0x30536b(0x14e)])==null||_0x448309['unsubscribe'](),_0x117f99[_0x30536b(0x14e)]=null;}),[_0x534e3c,_0x136c1]),_0x4d802b?_0x2faf40(_0xe34a22,{'align':_0x276637(0xe7),'disabled':_0x53fbe8===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2faf40(Re,{'status':_0x53fbe8,'coordinator':_0x4d802b}),'children':_0x2faf40(_0x276637(0xd9),{'className':_0x191602(_0x276637(0x11e),{'univer-cursor-not-allowed':_0x53fbe8===c[_0x276637(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53fbe8!==c['OFFLINE']}),'type':_0x276637(0xd9),'children':_0x2faf40(W,{'className':_0x276637(0xc5)})})}):null;}function Re(_0x2468a1){const _0x10ee55=_0x376a4f,{status:_0x5c236d,coordinator:_0x54a2aa}=_0x2468a1;switch(_0x5c236d){case c[_0x10ee55(0x119)]:return _0x2faf40($e,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xc2)]:return _0x2faf40(xe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0x12f)]:return _0x2faf40(Pe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xd7)]:return _0x2faf40(Te,{});case c[_0x10ee55(0x138)]:return _0x2faf40(Ae,{'coordinator':_0x54a2aa});default:return null;}}function $e(_0x599e40){const _0x5bd1fd=_0x376a4f,{coordinator:_0x561992}=_0x599e40;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5bd1fd(0x126),{'className':_0x5bd1fd(0xd0),'children':_0x5bd1fd(0xd6)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x561992[_0x5bd1fd(0xbd)](),'children':'Start'})]});}function xe(_0x3ea0c1){const _0x5227bb=_0x376a4f,{coordinator:_0x3f5a0f}=_0x3ea0c1;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5227bb(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5227bb(0xbc)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x3f5a0f[_0x5227bb(0x110)](),'children':_0x5227bb(0xf9)})]});}function Pe(_0x36803f){const _0x11d0b2=_0x376a4f,{coordinator:_0x59830e}=_0x36803f;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x11d0b2(0x126),{'className':_0x11d0b2(0xd0),'children':_0x11d0b2(0xb2)}),_0x2faf40(_0x57ee97,{'variant':_0x11d0b2(0xfc),'onClick':()=>_0x59830e['startFollowing'](),'children':_0x11d0b2(0xd1)})]});}function Ae(_0x27beb4){const _0x3ec878=_0x376a4f,{coordinator:_0x2e38fb}=_0x27beb4;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x3ec878(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2faf40(_0x57ee97,{'variant':'default','onClick':()=>_0x2e38fb[_0x3ec878(0xc4)](),'children':_0x3ec878(0xc7)})]});}function Te(){const _0x7dc309=_0x376a4f;return _0x2faf40(_0x498a05,{'children':_0x7dc309(0xf2)});}var Fe=Object[_0x376a4f(0x13d)],He=(_0x1664ef,_0x9e543b,_0xb97bfc,_0x5e637d)=>{const _0x40cbf1=_0x376a4f;for(var _0x413fac=_0x5e637d>0x1?void 0x0:_0x5e637d?Fe(_0x9e543b,_0xb97bfc):_0x9e543b,_0x35eb8d=_0x1664ef[_0x40cbf1(0xdb)]-0x1,_0x4c91ff;_0x35eb8d>=0x0;_0x35eb8d--)(_0x4c91ff=_0x1664ef[_0x35eb8d])&&(_0x413fac=_0x4c91ff(_0x413fac)||_0x413fac);return _0x413fac;},A=(_0x488a0c,_0x16d894)=>(_0x426d91,_0x4df179)=>_0x16d894(_0x426d91,_0x4df179,_0x488a0c);let m=class extends _0xa8a9d0{constructor(_0x50b80c,_0x555739){const _0x2a6658=_0x376a4f;super(),this[_0x2a6658(0xe1)]=_0x50b80c,this['_uiPartsService']=_0x555739,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1e33cd=_0x376a4f;this[_0x1e33cd(0xe4)](this[_0x1e33cd(0xe9)][_0x1e33cd(0x148)](_0x16c9fe['HEADER_MENU'],()=>_0x5a62ec(Le,this[_0x1e33cd(0xe1)])));}};m=He([A(0x0,_0x2a25eb(_0x32fd57)),A(0x1,_0x1210ac)],m);const ye='live-share.config',T={};var Ue=Object[_0x376a4f(0x13d)],Ve=(_0x2a13da,_0x287bec,_0x2a70f7,_0x5c8953)=>{const _0x471c8c=_0x376a4f;for(var _0x261216=_0x5c8953>0x1?void 0x0:_0x5c8953?Ue(_0x287bec,_0x2a70f7):_0x287bec,_0xeaa21a=_0x2a13da[_0x471c8c(0xdb)]-0x1,_0x33a9f8;_0xeaa21a>=0x0;_0xeaa21a--)(_0x33a9f8=_0x2a13da[_0xeaa21a])&&(_0x261216=_0x33a9f8(_0x261216)||_0x261216);return _0x261216;},je=(_0x24dde5,_0x4af24b)=>(_0x184257,_0x574dba)=>_0x4af24b(_0x184257,_0x574dba,_0x24dde5);function _0x6fa4(_0x3edfd7,_0x43fcb5){const _0x2f50e9=_0x2f50();return _0x6fa4=function(_0x6fa478,_0x340fd9){_0x6fa478=_0x6fa478-0xad;let _0x29f8cb=_0x2f50e9[_0x6fa478];return _0x29f8cb;},_0x6fa4(_0x3edfd7,_0x43fcb5);}let I=class extends _0xa8a9d0{constructor(_0xed5695){const _0x3f27f8=_0x376a4f;super(),this[_0x3f27f8(0x150)]=_0xed5695,this['_init']();}['_init'](){const _0x12e2de=_0x376a4f;[_0x1b2024['id'],_0x4f12f1['id'],_0x1b3bb6['id']][_0x12e2de(0x102)](_0x310af2=>{const _0x2b10d8=_0x12e2de;this[_0x2b10d8(0xe4)](this[_0x2b10d8(0x150)]['registerSharedOperation'](_0x310af2));});}};I=Ve([je(0x0,_0x2a25eb(L))],I);var Me=Object[_0x376a4f(0xe6)],ke=Object[_0x376a4f(0x13d)],Ge=(_0x481925,_0x140a79,_0x3919ed)=>_0x140a79 in _0x481925?Me(_0x481925,_0x140a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3919ed}):_0x481925[_0x140a79]=_0x3919ed,We=(_0x3785d2,_0x563978,_0x524471,_0x46c6d3)=>{for(var _0xd60a87=_0x46c6d3>0x1?void 0x0:_0x46c6d3?ke(_0x563978,_0x524471):_0x563978,_0x424fe6=_0x3785d2['length']-0x1,_0x78b374;_0x424fe6>=0x0;_0x424fe6--)(_0x78b374=_0x3785d2[_0x424fe6])&&(_0xd60a87=_0x78b374(_0xd60a87)||_0xd60a87);return _0xd60a87;},F=(_0x5c3536,_0x103234)=>(_0x3822d2,_0x4d67bc)=>_0x103234(_0x3822d2,_0x4d67bc,_0x5c3536),B=(_0x24ca47,_0x5f4888,_0x51b084)=>Ge(_0x24ca47,typeof _0x5f4888!=_0x376a4f(0xbb)?_0x5f4888+'':_0x5f4888,_0x51b084);const Ye=_0x376a4f(0x10a);let b=class extends _0x2bd5e2{constructor(_0x9ff0ca=T,_0x14d06c,_0x2dcc9a){const _0x4b0ea9=_0x376a4f;super(),this[_0x4b0ea9(0x10e)]=_0x9ff0ca,this[_0x4b0ea9(0xe1)]=_0x14d06c,this[_0x4b0ea9(0xcf)]=_0x2dcc9a;const {..._0x52dc3c}=_0x1ed009({},T,this[_0x4b0ea9(0x10e)]);this[_0x4b0ea9(0xcf)]['setConfig'](ye,_0x52dc3c);}[_0x376a4f(0xec)](){const _0x2a29a3=_0x376a4f;_0x61aae3(this[_0x2a29a3(0xe1)],_0x5ae5b0([[L],[S],[I],[m]],this[_0x2a29a3(0x10e)]['override'])),_0x92363(this[_0x2a29a3(0xe1)],[[I]]);}[_0x376a4f(0x13e)](){const _0x2fa798=_0x376a4f;_0x92363(this[_0x2fa798(0xe1)],[[m]]);}};B(b,_0x376a4f(0x114),_0x48a4bc[_0x376a4f(0x12c)]),B(b,_0x376a4f(0x105),Ye),b=We([_0x139081(_0x7cb5ad),F(0x1,_0x2a25eb(_0x32fd57)),F(0x2,_0x3456b4)],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 _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','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','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d493c=_0x26b2;(function(_0x5a7eee,_0x5843f3){const _0x37bafa=_0x26b2,_0x47c072=_0x5a7eee();while(!![]){try{const _0x25a607=parseInt(_0x37bafa(0x10c))/0x1*(parseInt(_0x37bafa(0xff))/0x2)+-parseInt(_0x37bafa(0x110))/0x3+-parseInt(_0x37bafa(0xf4))/0x4*(-parseInt(_0x37bafa(0xfe))/0x5)+-parseInt(_0x37bafa(0x106))/0x6+parseInt(_0x37bafa(0x103))/0x7+-parseInt(_0x37bafa(0x101))/0x8*(-parseInt(_0x37bafa(0xfb))/0x9)+parseInt(_0x37bafa(0x107))/0xa;if(_0x25a607===_0x5843f3)break;else _0x47c072['push'](_0x47c072['shift']());}catch(_0x270fbb){_0x47c072['push'](_0x47c072['shift']());}}}(_0x1d68,0x1a865));import{LiveShareController as _0x30732c,LiveShareStatus as _0x27f431}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1f62e4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x2e2c02}from'@univerjs/sheets';import{SetScrollOperation as _0x23aa4c}from'@univerjs/sheets-ui';import{FRange as _0x31d273}from'@univerjs/sheets/facade';import{FUniver as _0x4e8923,FEnum as _0x595c1f}from'@univerjs/core/facade';class I extends _0x31d273{['_initialize'](_0x58d307,_0x4fd541,_0x1c8c42,_0x4a1bac,_0x4c2316){const _0x559afe=_0x26b2,_0x1707ed=_0x58d307[_0x559afe(0xfa)](_0x30732c),_0x4f039c=_0x58d307[_0x559afe(0xfa)](_0x1f62e4),_0x2d02b8=_0x4fd541[_0x559afe(0x111)](),_0x36af57=_0x4fd541[_0x559afe(0x100)](),_0x22e673=_0x1707ed['getLiveShareCoordinatorSync'](_0x2d02b8);(_0x22e673==null?void 0x0:_0x22e673[_0x559afe(0xf2)]())!==_0x27f431[_0x559afe(0xf8)]||(_0x1c8c42[_0x559afe(0x10b)]()!==_0x36af57[_0x559afe(0x10b)]()&&this['_commandService'][_0x559afe(0xfc)](_0x2e2c02['id'],{'unitId':_0x2d02b8,'subUnitId':_0x1c8c42[_0x559afe(0x10b)]()}),!_0x4f039c[_0x559afe(0xf6)](_0x2d02b8))||_0x4c2316[_0x559afe(0x10f)](_0x23aa4c['id'],{'unitId':_0x4fd541['getUnitId'](),'sheetId':_0x1c8c42[_0x559afe(0x10b)](),'sheetViewStartRow':_0x4a1bac['startRow'],'sheetViewStartColumn':_0x4a1bac[_0x559afe(0x105)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31d273['extend'](I);function _0x1d68(){const _0x4fb5b0=['LiveShareStatusEnum','syncExecuteCommand','507087UuaXzO','getUnitId','startFollowing','getStatus','getActiveWorkbook','76548iHxlVJ','getLiveShareCoordinatorSync','getRenderById','tryStartPresenting','PRESENTING','IDLE','get','18zyCjVc','executeCommand','stopFollowing','40leUanr','122XWCHvG','getActiveSheet','125992LrrRHH','getLiveShareStatus','114821DSJqOj','extend','startColumn','641256wPPhby','1315200GaLRoV','No\x20active\x20workbook\x20found.','_injector','getId','getSheetId','853uAieWJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x1d68=function(){return _0x4fb5b0;};return _0x1d68();}function _0x26b2(_0x4f2c9e,_0x203c7b){const _0x1d6898=_0x1d68();return _0x26b2=function(_0x26b2a3,_0x3b2a22){_0x26b2a3=_0x26b2a3-0xf2;let _0x37420a=_0x1d6898[_0x26b2a3];return _0x37420a;},_0x26b2(_0x4f2c9e,_0x203c7b);}class m extends _0x4e8923{[_0x3d493c(0x102)](){const _0x1f9362=_0x3d493c;var _0x22e510,_0x31a870;const _0x2a3775=this[_0x1f9362(0x109)][_0x1f9362(0xfa)](_0x30732c),_0x4f51ed=(_0x22e510=this['getActiveWorkbook']())==null?void 0x0:_0x22e510['getId']();if(!_0x4f51ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x30bb73=_0x2a3775['getLiveShareCoordinatorSync'](_0x4f51ed);return(_0x31a870=_0x30bb73==null?void 0x0:_0x30bb73[_0x1f9362(0xf2)]())!=null?_0x31a870:_0x27f431[_0x1f9362(0xf9)];}[_0x3d493c(0x112)](){const _0x390306=_0x3d493c;var _0x141b0c;const _0xa6fd3=this['_injector'][_0x390306(0xfa)](_0x30732c),_0x56532d=(_0x141b0c=this[_0x390306(0xf3)]())==null?void 0x0:_0x141b0c[_0x390306(0x10a)]();if(!_0x56532d)throw new Error(_0x390306(0x108));const _0x4c18b6=_0xa6fd3['getLiveShareCoordinatorSync'](_0x56532d);if(!_0x4c18b6)throw new Error(_0x390306(0x10d));_0x4c18b6[_0x390306(0x112)]();}[_0x3d493c(0xfd)](){const _0x14ea82=_0x3d493c;var _0x4ad526;const _0x14d570=this[_0x14ea82(0x109)][_0x14ea82(0xfa)](_0x30732c),_0x5357f6=(_0x4ad526=this[_0x14ea82(0xf3)]())==null?void 0x0:_0x4ad526['getId']();if(!_0x5357f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2c54e6=_0x14d570[_0x14ea82(0xf5)](_0x5357f6);if(!_0x2c54e6)throw new Error(_0x14ea82(0x10d));_0x2c54e6[_0x14ea82(0xfd)]();}['startPresenting'](){const _0x4d090d=_0x3d493c;var _0x516f11;const _0x179eff=this['_injector'][_0x4d090d(0xfa)](_0x30732c),_0x5c6f50=(_0x516f11=this[_0x4d090d(0xf3)]())==null?void 0x0:_0x516f11[_0x4d090d(0x10a)]();if(!_0x5c6f50)throw new Error(_0x4d090d(0x108));const _0x4d1aab=_0x179eff[_0x4d090d(0xf5)](_0x5c6f50);if(!_0x4d1aab)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d1aab[_0x4d090d(0xf7)]();}['stopPresenting'](){const _0x3d6ecd=_0x3d493c;var _0x5413e;const _0x59ae79=this['_injector'][_0x3d6ecd(0xfa)](_0x30732c),_0x4162=(_0x5413e=this[_0x3d6ecd(0xf3)]())==null?void 0x0:_0x5413e[_0x3d6ecd(0x10a)]();if(!_0x4162)throw new Error(_0x3d6ecd(0x108));const _0x3638e2=_0x59ae79[_0x3d6ecd(0xf5)](_0x4162);if(!_0x3638e2)throw new Error(_0x3d6ecd(0x10d));_0x3638e2['stopPresenting']();}}_0x4e8923['extend'](m);class C extends _0x595c1f{get[_0x3d493c(0x10e)](){return _0x27f431;}}_0x595c1f[_0x3d493c(0x104)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x376a4f=_0x6fa4;(function(_0x5f9762,_0x4db515){const _0x4a266d=_0x6fa4,_0x1ac9ae=_0x5f9762();while(!![]){try{const _0x27545b=parseInt(_0x4a266d(0x14f))/0x1*(parseInt(_0x4a266d(0x111))/0x2)+parseInt(_0x4a266d(0xaf))/0x3*(-parseInt(_0x4a266d(0xee))/0x4)+-parseInt(_0x4a266d(0xdf))/0x5*(-parseInt(_0x4a266d(0x10b))/0x6)+parseInt(_0x4a266d(0x107))/0x7*(-parseInt(_0x4a266d(0xc0))/0x8)+parseInt(_0x4a266d(0x118))/0x9+parseInt(_0x4a266d(0x142))/0xa*(parseInt(_0x4a266d(0xb5))/0xb)+parseInt(_0x4a266d(0x131))/0xc;if(_0x27545b===_0x4db515)break;else _0x1ac9ae['push'](_0x1ac9ae['shift']());}catch(_0x20ec09){_0x1ac9ae['push'](_0x1ac9ae['shift']());}}}(_0x2f50,0x73e5d));var J=Object[_0x376a4f(0xe6)],K=(_0x366b39,_0x48c34a,_0x450ba2)=>_0x48c34a in _0x366b39?J(_0x366b39,_0x48c34a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450ba2}):_0x366b39[_0x48c34a]=_0x450ba2,u=(_0x6748e8,_0x12c4fd,_0x18f7de)=>K(_0x6748e8,typeof _0x12c4fd!=_0x376a4f(0xbb)?_0x12c4fd+'':_0x12c4fd,_0x18f7de);import{Disposable as _0xa8a9d0,toDisposable as _0xd13dd9,IUniverInstanceService as _0x5aa078,Inject as _0x2a25eb,Injector as _0x32fd57,IConfigService as _0x3456b4,ICommandService as _0x37323b,RxDisposable as _0x3566dd,UniverInstanceType as _0x48a4bc,DisposableCollection as _0x1e700a,CommandType as _0x45bef0,DependentOn as _0x139081,Plugin as _0x2bd5e2,merge as _0x1ed009,registerDependencies as _0x61aae3,mergeOverrideWithDependencies as _0x5ae5b0,touchDependencies as _0x92363}from'@univerjs/core';import{useDependency as _0xb50b79,useObservable as _0x56bbc7,IUIPartsService as _0x1210ac,BuiltInUIPart as _0x16c9fe,connectInjector as _0x5a62ec}from'@univerjs/ui';import{jsx as _0x2faf40,jsxs as _0x306731,Fragment as _0x498a05}from'react/jsx-runtime';import{Dropdown as _0xe34a22,clsx as _0x191602,Button as _0x57ee97}from'@univerjs/design';import{useRef as _0x4eeaac,createElement as _0x4266f5,forwardRef as _0x52e11c,useState as _0x7ea6fc,useEffect as _0x257959}from'react';import{CollaborationEvent as _0x5d24e8,parseProtocolChangeset as _0x41fc5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1c1186,SessionStatus as _0x2c44d1,UniverCollaborationClientPlugin as _0x7cb5ad}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16e07d,SetWorksheetActiveOperation as _0x1b3bb6}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3f65,Subject as _0xfc6fa9}from'rxjs';import{takeUntil as _0x4bc284,throttleTime as _0x146c58}from'rxjs/operators';import{SetZoomRatioOperation as _0x1b2024,SetScrollOperation as _0x4f12f1}from'@univerjs/sheets-ui';function k({ref:_0x55cd3a,..._0x212a7b}){const _0x1cfb18=_0x376a4f,{icon:_0x1fda22,id:_0x4ac276,className:_0x1a4eb9,extend:_0x1a7c74,..._0x180662}=_0x212a7b,_0x40c270=(_0x1cfb18(0x121)+_0x4ac276+'\x20'+(_0x1a4eb9||''))[_0x1cfb18(0x147)](),_0x43c737=_0x4eeaac('_'+Oe());return G(_0x1fda22,''+_0x4ac276,{'defIds':_0x1fda22[_0x1cfb18(0x13f)],'idSuffix':_0x43c737[_0x1cfb18(0x14e)]},{'ref':_0x55cd3a,'className':_0x40c270,..._0x180662},_0x1a7c74);}function G(_0x517988,_0x5db89d,_0x4a8c40,_0x563450,_0x312112){const _0x1829b6=_0x376a4f;return _0x4266f5(_0x517988[_0x1829b6(0x11c)],{'key':_0x5db89d,...be(_0x517988,_0x4a8c40,_0x312112),..._0x563450},(Ee(_0x517988,_0x4a8c40)[_0x1829b6(0xe5)]||[])[_0x1829b6(0xbf)]((_0x2a31ab,_0x47cdb6)=>G(_0x2a31ab,_0x5db89d+'-'+_0x517988[_0x1829b6(0x11c)]+'-'+_0x47cdb6,_0x4a8c40,void 0x0,_0x312112)));}function be(_0x5d8254,_0x2711f1,_0x16ad9d){const _0x1b365d=_0x376a4f,_0x174904={..._0x5d8254[_0x1b365d(0xc9)]};_0x16ad9d!=null&&_0x16ad9d[_0x1b365d(0x140)]&&_0x174904[_0x1b365d(0xff)]===_0x1b365d(0x140)&&(_0x174904[_0x1b365d(0xff)]=_0x16ad9d[_0x1b365d(0x140)]),_0x5d8254[_0x1b365d(0x11c)]===_0x1b365d(0xb4)&&_0x174904['id']&&(_0x174904['id']=_0x174904['id']+_0x2711f1[_0x1b365d(0xc8)]),Object[_0x1b365d(0x129)](_0x174904)[_0x1b365d(0x102)](([_0x38ddbf,_0x518fb2])=>{const _0x3ec980=_0x1b365d;_0x38ddbf===_0x3ec980(0xb4)&&typeof _0x518fb2==_0x3ec980(0xf4)&&(_0x174904[_0x38ddbf]=_0x518fb2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2711f1['idSuffix']+')'));});const {defIds:_0x160d19}=_0x2711f1;return!_0x160d19||_0x160d19[_0x1b365d(0xdb)]===0x0||(_0x5d8254['tag']===_0x1b365d(0x12e)&&_0x174904[_0x1b365d(0x108)]&&(_0x174904['xlink:href']=_0x174904[_0x1b365d(0x108)]+_0x2711f1[_0x1b365d(0xc8)]),Object['entries'](_0x174904)[_0x1b365d(0x102)](([_0x471798,_0x1457e6])=>{const _0x175a19=_0x1b365d;typeof _0x1457e6==_0x175a19(0xf4)&&(_0x174904[_0x471798]=_0x1457e6[_0x175a19(0xce)](/url\(#(.*)\)/,'url(#$1'+_0x2711f1[_0x175a19(0xc8)]+')'));})),_0x174904;}function Ee(_0x5a83b0,_0x1e962b){const _0x52f7ce=_0x376a4f;var _0x49b9b3;const {defIds:_0x4e7330}=_0x1e962b;return!_0x4e7330||_0x4e7330[_0x52f7ce(0xdb)]===0x0?_0x5a83b0:_0x5a83b0['tag']===_0x52f7ce(0xf5)&&((_0x49b9b3=_0x5a83b0[_0x52f7ce(0xe5)])!=null&&_0x49b9b3[_0x52f7ce(0xdb)])?{..._0x5a83b0,'children':_0x5a83b0[_0x52f7ce(0xe5)][_0x52f7ce(0xbf)](_0x3cf34a=>typeof _0x3cf34a[_0x52f7ce(0xc9)]['id']==_0x52f7ce(0xf4)&&_0x4e7330&&_0x4e7330['includes'](_0x3cf34a[_0x52f7ce(0xc9)]['id'])?{..._0x3cf34a,'attrs':{..._0x3cf34a[_0x52f7ce(0xc9)],'id':_0x3cf34a[_0x52f7ce(0xc9)]['id']+_0x1e962b['idSuffix']}}:_0x3cf34a)}:_0x5a83b0;}function Oe(){const _0x4e9c7c=_0x376a4f;return Math[_0x4e9c7c(0xca)]()['toString'](0x24)[_0x4e9c7c(0xed)](0x2,0x8);}k[_0x376a4f(0x109)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x376a4f(0x112),'fill':_0x376a4f(0xeb),'viewBox':_0x376a4f(0x106),'width':'1em','height':_0x376a4f(0x134)},'children':[{'tag':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'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':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'d':_0x376a4f(0x132),'fillRule':'evenodd','clipRule':_0x376a4f(0x144)}}]},W=_0x52e11c(function(_0x15c6af,_0x1cf9c4){const _0x1a5144=_0x376a4f;return _0x4266f5(k,Object[_0x1a5144(0x135)]({},_0x15c6af,{'id':'live-share-icon','ref':_0x1cf9c4,'icon':we}));});W[_0x376a4f(0x109)]=_0x376a4f(0x101);class L extends _0xa8a9d0{constructor(){const _0x2c6de1=_0x376a4f;super(...arguments),u(this,_0x2c6de1(0xfe),new Set()),u(this,_0x2c6de1(0xe8),new Set());}[_0x376a4f(0x11f)](_0x7c4c5d){const _0x49f156=_0x376a4f;return this[_0x49f156(0xfe)][_0x49f156(0xcc)](_0x7c4c5d),_0xd13dd9(()=>this[_0x49f156(0xfe)][_0x49f156(0x14c)](_0x7c4c5d));}[_0x376a4f(0xf7)](_0x130c4f){const _0x147fb8=_0x376a4f;return this['_reporters'][_0x147fb8(0xcc)](_0x130c4f),_0xd13dd9(()=>this['_reporters']['delete'](_0x130c4f));}['shouldShareOperation'](_0x892d0d){return this['_sharedOperations']['has'](_0x892d0d);}[_0x376a4f(0x133)](_0x2fa5ca){const _0x4172c4=_0x376a4f;return Array['from'](this[_0x4172c4(0xe8)])['map'](_0x5f27d4=>_0x5f27d4(_0x2fa5ca));}}var Ne=Object[_0x376a4f(0x13d)],Y=(_0xea013,_0x1fc69a,_0x4dc94c,_0x59afef)=>{const _0x591bf4=_0x376a4f;for(var _0x4b7c8e=_0x59afef>0x1?void 0x0:_0x59afef?Ne(_0x1fc69a,_0x4dc94c):_0x1fc69a,_0x382817=_0xea013[_0x591bf4(0xdb)]-0x1,_0x21fa60;_0x382817>=0x0;_0x382817--)(_0x21fa60=_0xea013[_0x382817])&&(_0x4b7c8e=_0x21fa60(_0x4b7c8e)||_0x4b7c8e);return _0x4b7c8e;},_=(_0x897e7d,_0x51ff01)=>(_0x38a561,_0xeaf2f7)=>_0x51ff01(_0x38a561,_0xeaf2f7,_0x897e7d);let S=class extends _0x3566dd{constructor(_0x538ba5,_0x45ac84,_0x26d5c0){const _0x28fe87=_0x376a4f;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x538ba5,this[_0x28fe87(0xe1)]=_0x45ac84,this[_0x28fe87(0x149)]=_0x26d5c0,this[_0x28fe87(0xe0)]());}async[_0x376a4f(0xb7)](_0x1f8f62){const _0x3a410e=_0x376a4f;return this[_0x3a410e(0x117)]['has'](_0x1f8f62)||await this[_0x3a410e(0xdc)](_0x1f8f62),this[_0x3a410e(0x117)]['get'](_0x1f8f62);}['getLiveShareCoordinatorSync'](_0x2b32ca){const _0x24ea30=_0x376a4f;var _0x28b105;return(_0x28b105=this[_0x24ea30(0x117)][_0x24ea30(0xd5)](_0x2b32ca))!=null?_0x28b105:null;}[_0x376a4f(0xe0)](){const _0x4a9128=_0x376a4f;this['_univerInstanceService'][_0x4a9128(0x13b)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this[_0x4a9128(0xef)]))[_0x4a9128(0xf8)](async _0x5b4ea3=>{const _0x30e096=_0x4a9128,_0x57edf0=_0x5b4ea3['getUnitId']();this[_0x30e096(0x117)][_0x30e096(0x14d)](_0x57edf0)||this[_0x30e096(0xdc)](_0x57edf0);}),this[_0x4a9128(0xea)][_0x4a9128(0x10d)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this['dispose$']))[_0x4a9128(0xf8)](_0x228720=>{const _0x3076c7=_0x4a9128,_0xa693fa=_0x228720[_0x3076c7(0x125)](),_0x53cd83=this[_0x3076c7(0x117)][_0x3076c7(0xd5)](_0xa693fa);_0x53cd83==null||_0x53cd83[_0x3076c7(0xbe)]();});}async[_0x376a4f(0xdc)](_0x584230){const _0x4220be=_0x376a4f,_0xc82cc9=await this['_collabSessionService']['requireSession'](_0x584230),_0x232d05=this['_injector'][_0x4220be(0x11b)](N,_0x584230,_0xc82cc9);return _0x232d05['init'](),this['_entities'][_0x4220be(0x10c)](_0x584230,_0x232d05),_0x232d05;}};S=Y([_(0x0,_0x5aa078),_(0x1,_0x2a25eb(_0x32fd57)),_(0x2,_0x2a25eb(_0x1c1186))],S);var c=(_0x14b523=>(_0x14b523['OFFLINE']=_0x376a4f(0x103),_0x14b523[_0x376a4f(0x119)]=_0x376a4f(0x137),_0x14b523['FOLLOWING']='following',_0x14b523[_0x376a4f(0x12f)]='not-following',_0x14b523[_0x376a4f(0x138)]=_0x376a4f(0x124),_0x14b523))(c||{});const Ce=_0x376a4f(0xd2),De=0xc8;function _0x2f50(){const _0x546d97=['_unitID','_presenter','get','Present\x20this\x20document','OFFLINE','not-following','button','ONLINE','length','_startLiveShareCoordinator','startFollowing','getValue','45ELGpTb','_init','_injector','status$','_handleOnline','disposeWithMe','children','defineProperty','end','_reporters','_uiPartsService','_univerInstanceService','none','onStarting','substring','3500404fKcLOl','dispose$','executeCommand','LIVESHARE_NEW_HOST','You\x27are\x20offline.','sessionStatus$','string','defs','UNIVER_SHEET','registerInitialStateReporter','subscribe','Stop\x20following','_startPresenting','onCommandExecuted','text','LIVESHARE_REQUEST_HOST','_sharedOperations','fill','_handleNewChangeSets','LiveShareIcon','forEach','offline','_fetchOperations','pluginName','0\x200\x2017\x2017','7KcMfya','xlink:href','displayName','UNIVER_LIVE_SHARE_PLUGIN','184014mJsLoB','set','getTypeOfUnitDisposed$','_config','values','stopFollowing','2ghzpHN','http://www.w3.org/2000/svg','NEW_CHANGESETS','type','includes','_commandDisposable','_entities','2392605qCpwDF','IDLE','complete','createInstance','tag','mutations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerSharedOperation','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','presenter','getMemberID','presenting','getUnitId','div','_handleNewHost','OPERATION','entries','_status','LIVESHARE_FETCH_OPERATIONS','UNIVER_UNKNOWN','_startFollowing','use','NOT_FOLLOWING','getStatus','7530384dILGef','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','getInitialStates','1em','assign','LIVESHARE_TERMINATE','idle','PRESENTING','operations','params','getTypeOfUnitAdded$','currentColor','getOwnPropertyDescriptor','onRendered','defIds','colorChannel1','stringify','130nZBAzb','send','evenodd','_collabSession','asObservable','trim','registerComponent','_collabSessionService','_stopPresenting','_stopFollowing','delete','has','current','211274lbBFgU','_liveShareService','_commandService','_handleTerminate','3VyNybl','_status$','next','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','mask','62953yvSMCa','getCurrentTypeOfUnit$','getLiveShareCoordinator','_handleOffline','path','pipe','symbol','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','dispose','map','842024jbIYhh','_handleOperation','FOLLOWING','shouldShareOperation','stopPresenting','univer-size-4','_beIdle','Stop\x20presenting','idSuffix','attrs','random','data','add','following','replace','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','SAME_OPERATION_SHARE_INTERVAL'];_0x2f50=function(){return _0x546d97;};return _0x2f50();}let N=class extends _0x3566dd{constructor(_0x5fd53f,_0xf0922a,_0x3166cd,_0x23d6a7,_0x50fb3a){const _0x290e75=_0x376a4f;super(),u(this,_0x290e75(0xb0),new _0x5a3f65(_0x290e75(0x137))),u(this,_0x290e75(0xe2),this['_status$'][_0x290e75(0x146)]()),u(this,_0x290e75(0xe0),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x290e75(0xd3)]=_0x5fd53f,this[_0x290e75(0x145)]=_0xf0922a,this['_configService']=_0x3166cd,this[_0x290e75(0x150)]=_0x23d6a7,this['_commandService']=_0x50fb3a);}get[_0x376a4f(0x12a)](){const _0x18198e=_0x376a4f;return this[_0x18198e(0xb0)][_0x18198e(0xde)]();}['dispose'](){const _0x5601bd=_0x376a4f;var _0x28b9b3;(_0x28b9b3=this[_0x5601bd(0x116)])==null||_0x28b9b3['dispose'](),this['_status$'][_0x5601bd(0xb1)]('idle'),this[_0x5601bd(0xb0)][_0x5601bd(0x11a)]();}[_0x376a4f(0x130)](){const _0x58895d=_0x376a4f;return this[_0x58895d(0x12a)];}['init'](){const _0x5448fa=_0x376a4f;this[_0x5448fa(0xe0)]||(this[_0x5448fa(0xe0)]=!0x0,this[_0x5448fa(0x145)][_0x5448fa(0xf3)]['pipe'](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x592566=>{const _0x301af8=_0x5448fa;switch(_0x592566){case _0x2c44d1[_0x301af8(0xd7)]:this[_0x301af8(0xb8)]();break;case _0x2c44d1[_0x301af8(0xda)]:this[_0x301af8(0xe3)]();break;}}),this[_0x5448fa(0x145)]['event$'][_0x5448fa(0xba)](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x34485a=>{const _0x1912b6=_0x5448fa,{eventID:_0x33884f}=_0x34485a;switch(_0x33884f){case _0x5d24e8[_0x1912b6(0xf1)]:this[_0x1912b6(0x127)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x120)]:this[_0x1912b6(0xc1)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x136)]:this[_0x1912b6(0xae)]();break;case _0x5d24e8[_0x1912b6(0x113)]:this['_handleNewChangeSets'](_0x34485a);break;}}));}[_0x376a4f(0xbd)](){const _0x3f7064=_0x376a4f;this['_collabSession'][_0x3f7064(0x143)]({'eventID':_0x5d24e8[_0x3f7064(0xfd)],'data':{'unitID':this[_0x3f7064(0xd3)],'userID':this[_0x3f7064(0x145)][_0x3f7064(0x123)]()}},this[_0x3f7064(0xd3)]);}[_0x376a4f(0xc4)](){const _0x519678=_0x376a4f;this[_0x519678(0x12a)]===_0x519678(0x124)&&(this[_0x519678(0xb0)][_0x519678(0xb1)](_0x519678(0x137)),this[_0x519678(0x145)][_0x519678(0x143)]({'eventID':_0x5d24e8[_0x519678(0x136)],'data':{'unitID':this[_0x519678(0xd3)]}},this[_0x519678(0xd3)]));}[_0x376a4f(0xdd)](){const _0x4b2984=_0x376a4f;this[_0x4b2984(0x12a)]===_0x4b2984(0xd8)&&(this[_0x4b2984(0xb0)][_0x4b2984(0xb1)]('following'),this['_startFollowing']());}[_0x376a4f(0x110)](){const _0x4299ea=_0x376a4f;this['_status']==='following'&&this[_0x4299ea(0x14b)]();}['_handleNewHost'](_0x1da5a8){const _0x3f9851=_0x376a4f,{presenter:_0x4610f1}=_0x1da5a8[_0x3f9851(0xcb)],_0x86f32c=this[_0x3f9851(0x145)][_0x3f9851(0x123)]();this[_0x3f9851(0xd4)]=_0x4610f1,_0x4610f1===_0x86f32c?(this[_0x3f9851(0x14b)](),this[_0x3f9851(0xfa)]()):this['_status']!=='not-following'&&(this[_0x3f9851(0x14a)](),this[_0x3f9851(0x12d)]());}[_0x376a4f(0x104)](){const _0x41b390=_0x376a4f,_0x4a6129={'eventID':_0x5d24e8[_0x41b390(0x12b)]};this['_collabSession'][_0x41b390(0x143)](_0x4a6129,this[_0x41b390(0xd3)]);}[_0x376a4f(0xae)](){const _0x27c23a=_0x376a4f;this[_0x27c23a(0xd4)]=null,this['_status']!==_0x27c23a(0x124)&&this['_beIdle']();}[_0x376a4f(0x100)](_0x42f53d){const _0x5f238a=_0x376a4f;if(this['_status']==='following'&&this[_0x5f238a(0xd4)]===_0x42f53d[_0x5f238a(0xcb)]['memberID']){const _0x22db5f=_0x41fc5f(_0x42f53d[_0x5f238a(0xcb)])[_0x5f238a(0x11d)]['reverse']()['find'](_0x197ccc=>_0x197ccc['id']===_0x16e07d['id']);if(_0x22db5f){const _0x204bdb=_0x22db5f[_0x5f238a(0x13a)]['unitId'],_0x43c4f8=_0x22db5f[_0x5f238a(0x13a)]['sheet']['id'];setTimeout(()=>{const _0x2cff73=_0x5f238a;this[_0x2cff73(0xad)][_0x2cff73(0xf0)](_0x1b3bb6['id'],{'unitId':_0x204bdb,'subUnitId':_0x43c4f8},{'fromCollab':!0x0});});}}}[_0x376a4f(0xfa)](){const _0x5990a3=_0x376a4f;this[_0x5990a3(0xb0)][_0x5990a3(0xb1)](_0x5990a3(0x124));const _0x4d6ee7=new Map(),_0xaf0273=this['_commandDisposable']=new _0x1e700a();_0xaf0273[_0x5990a3(0xcc)](_0xd13dd9(()=>{const _0x34a313=_0x5990a3;_0x4d6ee7[_0x34a313(0x102)](_0x17a3cf=>_0x17a3cf['complete']()),_0x4d6ee7['clear']();})),_0xaf0273[_0x5990a3(0xcc)](this['_commandService'][_0x5990a3(0xfb)](_0x382e02=>{const _0x623305=_0x5990a3;var _0x13621f;if(_0x382e02[_0x623305(0x114)]!==_0x45bef0[_0x623305(0x128)]||!this['_liveShareService'][_0x623305(0xc3)](_0x382e02['id']))return;const {id:_0x10750b}=_0x382e02;let _0x1de5a7;_0x4d6ee7[_0x623305(0x14d)](_0x10750b)?_0x1de5a7=_0x4d6ee7[_0x623305(0xd5)](_0x10750b):(_0x1de5a7=new _0xfc6fa9(),_0x4d6ee7['set'](_0x10750b,_0x1de5a7),_0x1de5a7['pipe'](_0x146c58((_0x13621f=this[_0x623305(0xcf)][_0x623305(0xb3)](Ce))!=null?_0x13621f:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x623305(0xf8)](_0x43bd48=>{const _0x29e14d=_0x623305;this[_0x29e14d(0x145)][_0x29e14d(0x143)]({'eventID':_0x5d24e8[_0x29e14d(0x120)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bd48['id']]:{'id':_0x43bd48['id'],'params':JSON[_0x29e14d(0x141)](_0x43bd48[_0x29e14d(0x13a)])}}}},this[_0x29e14d(0xd3)]);})),_0x1de5a7['next'](_0x382e02);})),this[_0x5990a3(0x150)][_0x5990a3(0x133)](this[_0x5990a3(0xd3)])[_0x5990a3(0x102)](_0x34f52c=>this[_0x5990a3(0x145)][_0x5990a3(0x143)]({'eventID':_0x5d24e8[_0x5990a3(0x120)],'data':{'unitID':this[_0x5990a3(0xd3)],'operations':{[_0x34f52c['id']]:{'id':_0x34f52c['id'],'params':JSON[_0x5990a3(0x141)](_0x34f52c[_0x5990a3(0x13a)])}}}},this[_0x5990a3(0xd3)]));}['_stopPresenting'](){const _0x3a2eb9=_0x376a4f;var _0x3343fa;this[_0x3a2eb9(0xb0)]['next']('idle'),(_0x3343fa=this[_0x3a2eb9(0x116)])==null||_0x3343fa[_0x3a2eb9(0xbe)](),this['_commandDisposable']=null;}[_0x376a4f(0x12d)](){const _0x3e4a82=_0x376a4f;var _0x43feb2;(_0x43feb2=this[_0x3e4a82(0x116)])==null||_0x43feb2[_0x3e4a82(0xbe)](),this[_0x3e4a82(0xb0)][_0x3e4a82(0xb1)](_0x3e4a82(0xcd));}[_0x376a4f(0xc6)](){const _0x2b9cbe=_0x376a4f;var _0x3e8ddf;this[_0x2b9cbe(0xb0)][_0x2b9cbe(0xb1)](_0x2b9cbe(0x137)),(_0x3e8ddf=this[_0x2b9cbe(0x116)])==null||_0x3e8ddf[_0x2b9cbe(0xbe)](),this[_0x2b9cbe(0x116)]=null;}['_stopFollowing'](){const _0x1654a1=_0x376a4f;var _0x32d515;this[_0x1654a1(0xb0)]['next'](_0x1654a1(0xd8)),(_0x32d515=this[_0x1654a1(0x116)])==null||_0x32d515[_0x1654a1(0xbe)]();}[_0x376a4f(0xc1)](_0x4e9cf6){const _0x23b207=_0x376a4f;if([_0x23b207(0x124),_0x23b207(0xd8),_0x23b207(0x103)][_0x23b207(0x115)](this['_status'])||!_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x122)]||_0x4e9cf6['data'][_0x23b207(0x122)]===this[_0x23b207(0x145)][_0x23b207(0x123)]())return;this[_0x23b207(0x12a)]===_0x23b207(0x137)&&this[_0x23b207(0x12d)]();const _0x3db040=_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x139)];Object[_0x23b207(0x10f)](_0x3db040)[_0x23b207(0x102)](_0x1ec4e2=>{const _0x3badbd=_0x23b207;this[_0x3badbd(0xad)][_0x3badbd(0xf0)](_0x1ec4e2['id'],_0x1ec4e2['params']?JSON['parse'](_0x1ec4e2[_0x3badbd(0x13a)]):null,{'fromCollab':!0x0});});}[_0x376a4f(0xb8)](){const _0x3bec99=_0x376a4f;var _0x45dd0a;this[_0x3bec99(0xb0)][_0x3bec99(0xb1)]('offline'),(_0x45dd0a=this[_0x3bec99(0x116)])==null||_0x45dd0a['dispose']();}[_0x376a4f(0xe3)](){const _0x3dca3c=_0x376a4f;this[_0x3dca3c(0xb0)]['next'](_0x3dca3c(0x137)),this[_0x3dca3c(0x104)]();}};N=Y([_(0x2,_0x3456b4),_(0x3,_0x2a25eb(L)),_(0x4,_0x37323b)],N);function Le(){const _0x276637=_0x376a4f,_0x136c1=_0xb50b79(S),_0x1873a8=_0xb50b79(_0x5aa078),_0x534e3c=_0x56bbc7(()=>_0x1873a8[_0x276637(0xb6)](_0x48a4bc[_0x276637(0xf6)]),void 0x0,!0x1,[]),[_0x4d802b,_0x4ce8c9]=_0x7ea6fc(null),[_0x53fbe8,_0x4b8fc4]=_0x7ea6fc(c[_0x276637(0x119)]),_0x117f99=_0x4eeaac(null);return _0x257959(()=>(_0x534e3c&&_0x136c1['getLiveShareCoordinator'](_0x534e3c['getUnitId']())['then'](_0x58521c=>{const _0x773e96=_0x276637;_0x4ce8c9(_0x58521c),_0x117f99[_0x773e96(0x14e)]=_0x58521c[_0x773e96(0xe2)][_0x773e96(0xf8)](_0x56ad24=>{_0x4b8fc4(_0x56ad24);});}),()=>{const _0x30536b=_0x276637;var _0x448309;(_0x448309=_0x117f99[_0x30536b(0x14e)])==null||_0x448309['unsubscribe'](),_0x117f99[_0x30536b(0x14e)]=null;}),[_0x534e3c,_0x136c1]),_0x4d802b?_0x2faf40(_0xe34a22,{'align':_0x276637(0xe7),'disabled':_0x53fbe8===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2faf40(Re,{'status':_0x53fbe8,'coordinator':_0x4d802b}),'children':_0x2faf40(_0x276637(0xd9),{'className':_0x191602(_0x276637(0x11e),{'univer-cursor-not-allowed':_0x53fbe8===c[_0x276637(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53fbe8!==c['OFFLINE']}),'type':_0x276637(0xd9),'children':_0x2faf40(W,{'className':_0x276637(0xc5)})})}):null;}function Re(_0x2468a1){const _0x10ee55=_0x376a4f,{status:_0x5c236d,coordinator:_0x54a2aa}=_0x2468a1;switch(_0x5c236d){case c[_0x10ee55(0x119)]:return _0x2faf40($e,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xc2)]:return _0x2faf40(xe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0x12f)]:return _0x2faf40(Pe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xd7)]:return _0x2faf40(Te,{});case c[_0x10ee55(0x138)]:return _0x2faf40(Ae,{'coordinator':_0x54a2aa});default:return null;}}function $e(_0x599e40){const _0x5bd1fd=_0x376a4f,{coordinator:_0x561992}=_0x599e40;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5bd1fd(0x126),{'className':_0x5bd1fd(0xd0),'children':_0x5bd1fd(0xd6)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x561992[_0x5bd1fd(0xbd)](),'children':'Start'})]});}function xe(_0x3ea0c1){const _0x5227bb=_0x376a4f,{coordinator:_0x3f5a0f}=_0x3ea0c1;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5227bb(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5227bb(0xbc)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x3f5a0f[_0x5227bb(0x110)](),'children':_0x5227bb(0xf9)})]});}function Pe(_0x36803f){const _0x11d0b2=_0x376a4f,{coordinator:_0x59830e}=_0x36803f;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x11d0b2(0x126),{'className':_0x11d0b2(0xd0),'children':_0x11d0b2(0xb2)}),_0x2faf40(_0x57ee97,{'variant':_0x11d0b2(0xfc),'onClick':()=>_0x59830e['startFollowing'](),'children':_0x11d0b2(0xd1)})]});}function Ae(_0x27beb4){const _0x3ec878=_0x376a4f,{coordinator:_0x2e38fb}=_0x27beb4;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x3ec878(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2faf40(_0x57ee97,{'variant':'default','onClick':()=>_0x2e38fb[_0x3ec878(0xc4)](),'children':_0x3ec878(0xc7)})]});}function Te(){const _0x7dc309=_0x376a4f;return _0x2faf40(_0x498a05,{'children':_0x7dc309(0xf2)});}var Fe=Object[_0x376a4f(0x13d)],He=(_0x1664ef,_0x9e543b,_0xb97bfc,_0x5e637d)=>{const _0x40cbf1=_0x376a4f;for(var _0x413fac=_0x5e637d>0x1?void 0x0:_0x5e637d?Fe(_0x9e543b,_0xb97bfc):_0x9e543b,_0x35eb8d=_0x1664ef[_0x40cbf1(0xdb)]-0x1,_0x4c91ff;_0x35eb8d>=0x0;_0x35eb8d--)(_0x4c91ff=_0x1664ef[_0x35eb8d])&&(_0x413fac=_0x4c91ff(_0x413fac)||_0x413fac);return _0x413fac;},A=(_0x488a0c,_0x16d894)=>(_0x426d91,_0x4df179)=>_0x16d894(_0x426d91,_0x4df179,_0x488a0c);let m=class extends _0xa8a9d0{constructor(_0x50b80c,_0x555739){const _0x2a6658=_0x376a4f;super(),this[_0x2a6658(0xe1)]=_0x50b80c,this['_uiPartsService']=_0x555739,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1e33cd=_0x376a4f;this[_0x1e33cd(0xe4)](this[_0x1e33cd(0xe9)][_0x1e33cd(0x148)](_0x16c9fe['HEADER_MENU'],()=>_0x5a62ec(Le,this[_0x1e33cd(0xe1)])));}};m=He([A(0x0,_0x2a25eb(_0x32fd57)),A(0x1,_0x1210ac)],m);const ye='live-share.config',T={};var Ue=Object[_0x376a4f(0x13d)],Ve=(_0x2a13da,_0x287bec,_0x2a70f7,_0x5c8953)=>{const _0x471c8c=_0x376a4f;for(var _0x261216=_0x5c8953>0x1?void 0x0:_0x5c8953?Ue(_0x287bec,_0x2a70f7):_0x287bec,_0xeaa21a=_0x2a13da[_0x471c8c(0xdb)]-0x1,_0x33a9f8;_0xeaa21a>=0x0;_0xeaa21a--)(_0x33a9f8=_0x2a13da[_0xeaa21a])&&(_0x261216=_0x33a9f8(_0x261216)||_0x261216);return _0x261216;},je=(_0x24dde5,_0x4af24b)=>(_0x184257,_0x574dba)=>_0x4af24b(_0x184257,_0x574dba,_0x24dde5);function _0x6fa4(_0x3edfd7,_0x43fcb5){const _0x2f50e9=_0x2f50();return _0x6fa4=function(_0x6fa478,_0x340fd9){_0x6fa478=_0x6fa478-0xad;let _0x29f8cb=_0x2f50e9[_0x6fa478];return _0x29f8cb;},_0x6fa4(_0x3edfd7,_0x43fcb5);}let I=class extends _0xa8a9d0{constructor(_0xed5695){const _0x3f27f8=_0x376a4f;super(),this[_0x3f27f8(0x150)]=_0xed5695,this['_init']();}['_init'](){const _0x12e2de=_0x376a4f;[_0x1b2024['id'],_0x4f12f1['id'],_0x1b3bb6['id']][_0x12e2de(0x102)](_0x310af2=>{const _0x2b10d8=_0x12e2de;this[_0x2b10d8(0xe4)](this[_0x2b10d8(0x150)]['registerSharedOperation'](_0x310af2));});}};I=Ve([je(0x0,_0x2a25eb(L))],I);var Me=Object[_0x376a4f(0xe6)],ke=Object[_0x376a4f(0x13d)],Ge=(_0x481925,_0x140a79,_0x3919ed)=>_0x140a79 in _0x481925?Me(_0x481925,_0x140a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3919ed}):_0x481925[_0x140a79]=_0x3919ed,We=(_0x3785d2,_0x563978,_0x524471,_0x46c6d3)=>{for(var _0xd60a87=_0x46c6d3>0x1?void 0x0:_0x46c6d3?ke(_0x563978,_0x524471):_0x563978,_0x424fe6=_0x3785d2['length']-0x1,_0x78b374;_0x424fe6>=0x0;_0x424fe6--)(_0x78b374=_0x3785d2[_0x424fe6])&&(_0xd60a87=_0x78b374(_0xd60a87)||_0xd60a87);return _0xd60a87;},F=(_0x5c3536,_0x103234)=>(_0x3822d2,_0x4d67bc)=>_0x103234(_0x3822d2,_0x4d67bc,_0x5c3536),B=(_0x24ca47,_0x5f4888,_0x51b084)=>Ge(_0x24ca47,typeof _0x5f4888!=_0x376a4f(0xbb)?_0x5f4888+'':_0x5f4888,_0x51b084);const Ye=_0x376a4f(0x10a);let b=class extends _0x2bd5e2{constructor(_0x9ff0ca=T,_0x14d06c,_0x2dcc9a){const _0x4b0ea9=_0x376a4f;super(),this[_0x4b0ea9(0x10e)]=_0x9ff0ca,this[_0x4b0ea9(0xe1)]=_0x14d06c,this[_0x4b0ea9(0xcf)]=_0x2dcc9a;const {..._0x52dc3c}=_0x1ed009({},T,this[_0x4b0ea9(0x10e)]);this[_0x4b0ea9(0xcf)]['setConfig'](ye,_0x52dc3c);}[_0x376a4f(0xec)](){const _0x2a29a3=_0x376a4f;_0x61aae3(this[_0x2a29a3(0xe1)],_0x5ae5b0([[L],[S],[I],[m]],this[_0x2a29a3(0x10e)]['override'])),_0x92363(this[_0x2a29a3(0xe1)],[[I]]);}[_0x376a4f(0x13e)](){const _0x2fa798=_0x376a4f;_0x92363(this[_0x2fa798(0xe1)],[[m]]);}};B(b,_0x376a4f(0x114),_0x48a4bc[_0x376a4f(0x12c)]),B(b,_0x376a4f(0x105),Ye),b=We([_0x139081(_0x7cb5ad),F(0x1,_0x2a25eb(_0x32fd57)),F(0x2,_0x3456b4)],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 _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','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','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x511d(_0x5f4378,_0x423a23){const _0x2d3f9c=_0x2d3f();return _0x511d=function(_0x511d36,_0x2f2e38){_0x511d36=_0x511d36-0x181;let _0x43c29e=_0x2d3f9c[_0x511d36];return _0x43c29e;},_0x511d(_0x5f4378,_0x423a23);}(function(_0x3e87c5,_0x3c1ed1){const _0x4f1471=_0x511d,_0x20ab59=_0x3e87c5();while(!![]){try{const _0x5bd4d6=parseInt(_0x4f1471(0x1a2))/0x1*(parseInt(_0x4f1471(0x184))/0x2)+-parseInt(_0x4f1471(0x1b2))/0x3+parseInt(_0x4f1471(0x19b))/0x4+-parseInt(_0x4f1471(0x183))/0x5+parseInt(_0x4f1471(0x1ab))/0x6+parseInt(_0x4f1471(0x18f))/0x7*(-parseInt(_0x4f1471(0x189))/0x8)+parseInt(_0x4f1471(0x1a1))/0x9;if(_0x5bd4d6===_0x3c1ed1)break;else _0x20ab59['push'](_0x20ab59['shift']());}catch(_0x127c4e){_0x20ab59['push'](_0x20ab59['shift']());}}}(_0x2d3f,0x6c3be),function(_0x240fce,_0x26e942){const _0x1fca13=_0x511d;typeof exports==_0x1fca13(0x19e)&&typeof module<'u'?_0x26e942(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==_0x1fca13(0x18d)&&define[_0x1fca13(0x190)]?define(['@univerjs-pro/live-share',_0x1fca13(0x1b1),_0x1fca13(0x18a),_0x1fca13(0x185),_0x1fca13(0x195),_0x1fca13(0x198)],_0x26e942):(_0x240fce=typeof globalThis<'u'?globalThis:_0x240fce||self,_0x26e942(_0x240fce[_0x1fca13(0x197)],_0x240fce['UniverEngineRender'],_0x240fce[_0x1fca13(0x19c)],_0x240fce['UniverSheetsUi'],_0x240fce['UniverSheetsFacade'],_0x240fce[_0x1fca13(0x182)]));}(this,function(_0x4af882,_0xc71952,_0x230b6c,_0xacc7d5,_0x23b331,_0x1cd5db){'use strict';const _0x74b768=_0x511d;class _0x3e0b1c extends _0x23b331[_0x74b768(0x186)]{[_0x74b768(0x1a4)](_0x3f2635,_0x375b2c,_0x2320e2,_0x138ab3,_0x59b4e2){const _0x42eda7=_0x74b768,_0x3ca8d3=_0x3f2635[_0x42eda7(0x1ae)](_0x4af882[_0x42eda7(0x1a7)]),_0x3ad5b0=_0x3f2635[_0x42eda7(0x1ae)](_0xc71952[_0x42eda7(0x192)]),_0x48a51b=_0x375b2c[_0x42eda7(0x1aa)](),_0x231450=_0x375b2c['getActiveSheet'](),_0x566ad7=_0x3ca8d3[_0x42eda7(0x1ad)](_0x48a51b);(_0x566ad7==null?void 0x0:_0x566ad7[_0x42eda7(0x19d)]())!==_0x4af882[_0x42eda7(0x1a8)][_0x42eda7(0x1a3)]||(_0x2320e2['getSheetId']()!==_0x231450[_0x42eda7(0x18c)]()&&this[_0x42eda7(0x194)][_0x42eda7(0x196)](_0x230b6c['SetWorksheetActiveOperation']['id'],{'unitId':_0x48a51b,'subUnitId':_0x2320e2[_0x42eda7(0x18c)]()}),!_0x3ad5b0['getRenderById'](_0x48a51b))||_0x59b4e2[_0x42eda7(0x187)](_0xacc7d5['SetScrollOperation']['id'],{'unitId':_0x375b2c[_0x42eda7(0x1aa)](),'sheetId':_0x2320e2[_0x42eda7(0x18c)](),'sheetViewStartRow':_0x138ab3[_0x42eda7(0x18e)],'sheetViewStartColumn':_0x138ab3[_0x42eda7(0x1ac)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23b331[_0x74b768(0x186)][_0x74b768(0x1a5)](_0x3e0b1c);class _0x529d03 extends _0x1cd5db['FUniver']{[_0x74b768(0x199)](){const _0x1ba9e4=_0x74b768;var _0x2afcfd,_0x20853f;const _0x383d82=this[_0x1ba9e4(0x1a6)][_0x1ba9e4(0x1ae)](_0x4af882['LiveShareController']),_0x3a451e=(_0x2afcfd=this[_0x1ba9e4(0x181)]())==null?void 0x0:_0x2afcfd[_0x1ba9e4(0x1af)]();if(!_0x3a451e)throw new Error(_0x1ba9e4(0x188));const _0x1dfe90=_0x383d82[_0x1ba9e4(0x1ad)](_0x3a451e);return(_0x20853f=_0x1dfe90==null?void 0x0:_0x1dfe90[_0x1ba9e4(0x19d)]())!=null?_0x20853f:_0x4af882[_0x1ba9e4(0x1a8)][_0x1ba9e4(0x193)];}[_0x74b768(0x19f)](){const _0x400858=_0x74b768;var _0x19d466;const _0x459007=this[_0x400858(0x1a6)]['get'](_0x4af882['LiveShareController']),_0x5a6b66=(_0x19d466=this[_0x400858(0x181)]())==null?void 0x0:_0x19d466[_0x400858(0x1af)]();if(!_0x5a6b66)throw new Error(_0x400858(0x188));const _0x19b5e5=_0x459007[_0x400858(0x1ad)](_0x5a6b66);if(!_0x19b5e5)throw new Error(_0x400858(0x18b));_0x19b5e5['startFollowing']();}[_0x74b768(0x19a)](){const _0x3ea496=_0x74b768;var _0x271163;const _0x542f4b=this[_0x3ea496(0x1a6)]['get'](_0x4af882[_0x3ea496(0x1a7)]),_0x48cf56=(_0x271163=this[_0x3ea496(0x181)]())==null?void 0x0:_0x271163[_0x3ea496(0x1af)]();if(!_0x48cf56)throw new Error(_0x3ea496(0x188));const _0x1ccb12=_0x542f4b[_0x3ea496(0x1ad)](_0x48cf56);if(!_0x1ccb12)throw new Error(_0x3ea496(0x18b));_0x1ccb12['stopFollowing']();}['startPresenting'](){const _0x3172af=_0x74b768;var _0x310ca;const _0x5a7edb=this[_0x3172af(0x1a6)][_0x3172af(0x1ae)](_0x4af882[_0x3172af(0x1a7)]),_0x31e02e=(_0x310ca=this['getActiveWorkbook']())==null?void 0x0:_0x310ca[_0x3172af(0x1af)]();if(!_0x31e02e)throw new Error(_0x3172af(0x188));const _0x2b35af=_0x5a7edb[_0x3172af(0x1ad)](_0x31e02e);if(!_0x2b35af)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b35af[_0x3172af(0x1b0)]();}[_0x74b768(0x1a9)](){const _0x204848=_0x74b768;var _0x18445d;const _0x103d93=this[_0x204848(0x1a6)][_0x204848(0x1ae)](_0x4af882['LiveShareController']),_0x30e6dd=(_0x18445d=this[_0x204848(0x181)]())==null?void 0x0:_0x18445d[_0x204848(0x1af)]();if(!_0x30e6dd)throw new Error('No\x20active\x20workbook\x20found.');const _0xe9e32c=_0x103d93[_0x204848(0x1ad)](_0x30e6dd);if(!_0xe9e32c)throw new Error(_0x204848(0x18b));_0xe9e32c[_0x204848(0x1a9)]();}}_0x1cd5db[_0x74b768(0x191)][_0x74b768(0x1a5)](_0x529d03);class _0xc18b51 extends _0x1cd5db[_0x74b768(0x1a0)]{get['LiveShareStatusEnum'](){const _0x536e88=_0x74b768;return _0x4af882[_0x536e88(0x1a8)];}}_0x1cd5db['FEnum'][_0x74b768(0x1a5)](_0xc18b51);}));function _0x2d3f(){const _0x2897ee=['getLiveShareStatus','stopFollowing','1094380soMHBQ','UniverSheets','getStatus','object','startFollowing','FEnum','4840389dwPZfj','1spVNec','PRESENTING','_initialize','extend','_injector','LiveShareController','LiveShareStatus','stopPresenting','getUnitId','447270rFDvgq','startColumn','getLiveShareCoordinatorSync','get','getId','tryStartPresenting','@univerjs/engine-render','589758Mrftwk','getActiveWorkbook','UniverCoreFacade','2009985qWgIrP','803626lsqHna','@univerjs/sheets-ui','FRange','syncExecuteCommand','No\x20active\x20workbook\x20found.','8vdfKnT','@univerjs/sheets','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getSheetId','function','startRow','1721055zRPrki','amd','FUniver','IRenderManagerService','IDLE','_commandService','@univerjs/sheets/facade','executeCommand','UniverProLiveShare','@univerjs/core/facade'];_0x2d3f=function(){return _0x2897ee;};return _0x2d3f();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x57a1(){const _0x597711=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','702ilQcNv','1em','touchDependencies','http://www.w3.org/2000/svg','_handleTerminate','mutations','You\x27re\x20presenting\x20the\x20document','RxDisposable','_entities','OFFLINE','_configService','DependentOn','react','shouldShareOperation','tryStartPresenting','1671576blKwiN','UniverLiveSharePlugin','LIVESHARE_NEW_HOST','_reporters','SAME_OPERATION_SHARE_INTERVAL','div','sheet','colorChannel1','registerSharedOperation','6TrcYAP','symbol','@univerjs-pro/collaboration','_beIdle','pipe','_handleNewChangeSets','sessionStatus$','DesktopLiveShareController','exports','SetScrollOperation','not-following','NEW_CHANGESETS','replace','LIVESHARE_FETCH_OPERATIONS','53788cwAJLe','0\x200\x2017\x2017','CollaborationEvent','map','100TlbNWz','4206433LanZro','getConfig','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','next','executeCommand','substring','getMemberID','React','_unitID','IConfigService','Button','attrs','_startPresenting','CollaborationSessionService','clsx','button','getLiveShareCoordinatorSync','_injector','UniverUi','jsx','getUnitId','init','add','SessionStatus','idSuffix','url(#$1','data','LiveShareService','throttleTime','UNIVER_SHEET','live-share.config','_sharedOperations','324IkRVSI','children','51buWsTv','@univerjs/design','getInitialStates','length','amd','_uiPartsService','1XqkaJv','disposeWithMe','xlink:href','_mountLiveShare','has','delete','tag','Start','_liveShareService','getCurrentTypeOfUnit$','@univerjs/ui','stringify','defs','_startFollowing','string','UniverCore','send','_presenter','UniverIcon','useEffect','mask','jsxs','values','HEADER_MENU','stopFollowing','LiveShareCoordinator','16EQDODB','startFollowing','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share-icon','get','LiveShareController','toStringTag','following','You\x27are\x20offline.','UniverProLiveShare','_stopFollowing','complete','_status$','IDLE','241652IkmfYO','UniverProCollaboration','Plugin','DisposableCollection','_config','@univerjs/sheets','defineProperty','includes','createElement','Module','UniverProCollaborationClient','evenodd','UniverSheets','unitId','197417RUTCOu','status$','UniverCollaborationClientPlugin','useDependency','default','_fetchOperations','parse','path','onRendered','LIVESHARE_TERMINATE','connectInjector','requireSession','Start\x20following','offline','LIVESHARE_OPERATION','object','rxjs','params','InsertSheetMutation','subscribe','Injector','svg','dispose','getTypeOfUnitAdded$','forEach','set','onCommandExecuted','_stopPresenting','_collabSession','end','UniverDesign','operations','_status','Stop\x20following','_handleNewHost','entries','PRESENTING','Inject','getStatus','_init','dispose$','You\x27re\x20not\x20following\x20the\x20presenter','text','event$','none','UniverInstanceType','@univerjs/sheets-ui','_startLiveShareCoordinator','13266MdKjdq','getOwnPropertyDescriptor','Fragment','Dropdown','SetWorksheetActiveOperation','idle','You\x27re\x20following\x20the\x20presenter','random','fill','rxjs/operators','NOT_FOLLOWING','pluginName','LiveShare','type','FOLLOWING','memberID','_handleOnline','UniverSheetsUi','_commandService','operators','UNIVER_UNKNOWN','_collabSessionService','trim','toDisposable','6971465FypKZX','useRef','LIVESHARE_REQUEST_HOST','reverse','forwardRef','CommandType','_univerInstanceService','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','takeUntil','presenting','from','react/jsx-runtime','_handleOffline','find','current','mergeOverrideWithDependencies','Disposable','LiveShareIcon','@univerjs-pro/collaboration-client','displayName','getLiveShareCoordinator','currentColor','_commandDisposable','ICommandService','useState','registerInitialStateReporter'];_0x57a1=function(){return _0x597711;};return _0x57a1();}function _0x2154(_0x34aa5a,_0x4cc107){const _0x57a192=_0x57a1();return _0x2154=function(_0x21546e,_0x2714c4){_0x21546e=_0x21546e-0x71;let _0x550421=_0x57a192[_0x21546e];return _0x550421;},_0x2154(_0x34aa5a,_0x4cc107);}(function(_0x4870b2,_0x3687ca){const _0xf54d57=_0x2154,_0x2e5c86=_0x4870b2();while(!![]){try{const _0x27517f=parseInt(_0xf54d57(0x13e))/0x1*(parseInt(_0xf54d57(0xfa))/0x2)+parseInt(_0xf54d57(0x138))/0x3*(-parseInt(_0xf54d57(0x7a))/0x4)+parseInt(_0xf54d57(0xd0))/0x5*(parseInt(_0xf54d57(0x103))/0x6)+parseInt(_0xf54d57(0x116))/0x7*(-parseInt(_0xf54d57(0x158))/0x8)+parseInt(_0xf54d57(0xb8))/0x9*(parseInt(_0xf54d57(0x115))/0xa)+parseInt(_0xf54d57(0x88))/0xb*(parseInt(_0xf54d57(0x136))/0xc)+parseInt(_0xf54d57(0xeb))/0xd*(parseInt(_0xf54d57(0x111))/0xe);if(_0x27517f===_0x3687ca)break;else _0x2e5c86['push'](_0x2e5c86['shift']());}catch(_0x3a5a9c){_0x2e5c86['push'](_0x2e5c86['shift']());}}}(_0x57a1,0xacd9f),function(_0x4de95a,_0x37c6a8){const _0x139ac0=_0x2154;typeof exports==_0x139ac0(0x97)&&typeof module<'u'?_0x37c6a8(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[_0x139ac0(0x13c)]?define([_0x139ac0(0x10b),'@univerjs/core',_0x139ac0(0x148),_0x139ac0(0xdb),_0x139ac0(0x139),_0x139ac0(0xf7),_0x139ac0(0x105),_0x139ac0(0xe2),_0x139ac0(0x7f),_0x139ac0(0x98),_0x139ac0(0xc1),_0x139ac0(0xb6)],_0x37c6a8):(_0x4de95a=typeof globalThis<'u'?globalThis:_0x4de95a||self,_0x37c6a8(_0x4de95a[_0x139ac0(0x75)]={},_0x4de95a[_0x139ac0(0x14d)],_0x4de95a[_0x139ac0(0x128)],_0x4de95a[_0x139ac0(0x11d)],_0x4de95a[_0x139ac0(0xa6)],_0x4de95a[_0x139ac0(0x11d)],_0x4de95a[_0x139ac0(0x7b)],_0x4de95a[_0x139ac0(0x84)],_0x4de95a[_0x139ac0(0x86)],_0x4de95a['rxjs'],_0x4de95a[_0x139ac0(0x98)][_0x139ac0(0xcb)],_0x4de95a[_0x139ac0(0xc9)]));}(this,function(_0x4a008b,_0x590ecf,_0x3d7446,_0x31c6e6,_0x263b26,_0x46800e,_0x239beb,_0x298e51,_0x585599,_0xc490aa,_0x21e49d,_0xa5de06){'use strict';const _0x416fe=_0x2154;var _0xef06ff=Object[_0x416fe(0x80)],_0x2460b1=(_0x1ed5f6,_0x34d783,_0x571e84)=>_0x34d783 in _0x1ed5f6?_0xef06ff(_0x1ed5f6,_0x34d783,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571e84}):_0x1ed5f6[_0x34d783]=_0x571e84,_0x5f5c9e=(_0x3b2203,_0x52bc4b,_0x543ff8)=>_0x2460b1(_0x3b2203,typeof _0x52bc4b!=_0x416fe(0x104)?_0x52bc4b+'':_0x52bc4b,_0x543ff8);function _0x4bc2a3({ref:_0x2e56d9,..._0x22746f}){const _0xd18ddd=_0x416fe,{icon:_0xbb1f9c,id:_0x312027,className:_0x486285,extend:_0x135c7b,..._0x387dbf}=_0x22746f,_0x36fffc=('univerjs-icon\x20univerjs-icon-'+_0x312027+'\x20'+(_0x486285||''))[_0xd18ddd(0xce)](),_0x3183e4=_0x46800e['useRef']('_'+_0xf38fcf());return _0x58bb08(_0xbb1f9c,''+_0x312027,{'defIds':_0xbb1f9c['defIds'],'idSuffix':_0x3183e4[_0xd18ddd(0xde)]},{'ref':_0x2e56d9,'className':_0x36fffc,..._0x387dbf},_0x135c7b);}function _0x58bb08(_0x28fa3d,_0x4f43c7,_0x1e3cdf,_0x3771e2,_0x5ca76f){const _0x530ba0=_0x416fe;return _0x46800e['createElement'](_0x28fa3d[_0x530ba0(0x144)],{'key':_0x4f43c7,..._0x40e9b9(_0x28fa3d,_0x1e3cdf,_0x5ca76f),..._0x3771e2},(_0x32e961(_0x28fa3d,_0x1e3cdf)[_0x530ba0(0x137)]||[])[_0x530ba0(0x114)]((_0x51dcea,_0x2e0ff0)=>_0x58bb08(_0x51dcea,_0x4f43c7+'-'+_0x28fa3d[_0x530ba0(0x144)]+'-'+_0x2e0ff0,_0x1e3cdf,void 0x0,_0x5ca76f)));}function _0x40e9b9(_0x1873dd,_0x46c4e3,_0x2df071){const _0x459593=_0x416fe,_0x58765b={..._0x1873dd[_0x459593(0x121)]};_0x2df071!=null&&_0x2df071[_0x459593(0x101)]&&_0x58765b['fill']===_0x459593(0x101)&&(_0x58765b[_0x459593(0xc0)]=_0x2df071[_0x459593(0x101)]),_0x1873dd[_0x459593(0x144)]===_0x459593(0x152)&&_0x58765b['id']&&(_0x58765b['id']=_0x58765b['id']+_0x46c4e3[_0x459593(0x12e)]),Object['entries'](_0x58765b)['forEach'](([_0x32e424,_0x44578f])=>{const _0x12f20d=_0x459593;_0x32e424===_0x12f20d(0x152)&&typeof _0x44578f==_0x12f20d(0x14c)&&(_0x58765b[_0x32e424]=_0x44578f[_0x12f20d(0x10f)](/url\(#(.*)\)/,_0x12f20d(0x12f)+_0x46c4e3[_0x12f20d(0x12e)]+')'));});const {defIds:_0x595dba}=_0x46c4e3;return!_0x595dba||_0x595dba[_0x459593(0x13b)]===0x0||(_0x1873dd[_0x459593(0x144)]==='use'&&_0x58765b[_0x459593(0x140)]&&(_0x58765b[_0x459593(0x140)]=_0x58765b['xlink:href']+_0x46c4e3[_0x459593(0x12e)]),Object[_0x459593(0xab)](_0x58765b)['forEach'](([_0xf156a2,_0x10171e])=>{const _0x3985f6=_0x459593;typeof _0x10171e==_0x3985f6(0x14c)&&(_0x58765b[_0xf156a2]=_0x10171e[_0x3985f6(0x10f)](/url\(#(.*)\)/,_0x3985f6(0x12f)+_0x46c4e3[_0x3985f6(0x12e)]+')'));})),_0x58765b;}function _0x32e961(_0xb733f3,_0x5595e2){const _0x323eda=_0x416fe;var _0x36568f;const {defIds:_0x3c2aa0}=_0x5595e2;return!_0x3c2aa0||_0x3c2aa0[_0x323eda(0x13b)]===0x0?_0xb733f3:_0xb733f3[_0x323eda(0x144)]===_0x323eda(0x14a)&&((_0x36568f=_0xb733f3[_0x323eda(0x137)])!=null&&_0x36568f[_0x323eda(0x13b)])?{..._0xb733f3,'children':_0xb733f3[_0x323eda(0x137)][_0x323eda(0x114)](_0x51992f=>typeof _0x51992f['attrs']['id']==_0x323eda(0x14c)&&_0x3c2aa0&&_0x3c2aa0[_0x323eda(0x81)](_0x51992f[_0x323eda(0x121)]['id'])?{..._0x51992f,'attrs':{..._0x51992f[_0x323eda(0x121)],'id':_0x51992f[_0x323eda(0x121)]['id']+_0x5595e2[_0x323eda(0x12e)]}}:_0x51992f)}:_0xb733f3;}function _0xf38fcf(){const _0x371009=_0x416fe;return Math[_0x371009(0xbf)]()['toString'](0x24)[_0x371009(0x11b)](0x2,0x8);}_0x4bc2a3[_0x416fe(0xe3)]=_0x416fe(0x150);const _0x190f75={'tag':_0x416fe(0x9d),'attrs':{'xmlns':_0x416fe(0xee),'fill':_0x416fe(0xb4),'viewBox':_0x416fe(0x112),'width':'1em','height':_0x416fe(0xec)},'children':[{'tag':_0x416fe(0x8f),'attrs':{'fill':_0x416fe(0xe5),'d':_0x416fe(0xd7)}},{'tag':_0x416fe(0x8f),'attrs':{'fill':_0x416fe(0xe5),'d':_0x416fe(0x118),'fillRule':_0x416fe(0x85),'clipRule':'evenodd'}}]},_0x245bba=_0x46800e[_0x416fe(0xd4)](function(_0x2c4245,_0x4ef608){const _0x1581c2=_0x416fe;return _0x46800e[_0x1581c2(0x82)](_0x4bc2a3,Object['assign']({},_0x2c4245,{'id':_0x1581c2(0x15c),'ref':_0x4ef608,'icon':_0x190f75}));});_0x245bba[_0x416fe(0xe3)]=_0x416fe(0xe1);class _0x3b5cd0 extends _0x590ecf[_0x416fe(0xe0)]{constructor(){const _0x563866=_0x416fe;super(...arguments),_0x5f5c9e(this,_0x563866(0x135),new Set()),_0x5f5c9e(this,_0x563866(0xfd),new Set());}[_0x416fe(0x102)](_0x1bfb29){const _0x320396=_0x416fe;return this['_sharedOperations'][_0x320396(0x12c)](_0x1bfb29),_0x590ecf[_0x320396(0xcf)](()=>this[_0x320396(0x135)][_0x320396(0x143)](_0x1bfb29));}[_0x416fe(0xe9)](_0xa9fd1b){const _0x262646=_0x416fe;return this[_0x262646(0xfd)]['add'](_0xa9fd1b),_0x590ecf[_0x262646(0xcf)](()=>this[_0x262646(0xfd)][_0x262646(0x143)](_0xa9fd1b));}[_0x416fe(0xf8)](_0x14b9b4){const _0xf40b79=_0x416fe;return this['_sharedOperations'][_0xf40b79(0x142)](_0x14b9b4);}[_0x416fe(0x13a)](_0x33a964){const _0x49792c=_0x416fe;return Array[_0x49792c(0xda)](this[_0x49792c(0xfd)])['map'](_0x34637d=>_0x34637d(_0x33a964));}}var _0x311e39=Object[_0x416fe(0xb9)],_0x4a8cb4=(_0xeac163,_0x388707,_0x21007b,_0x1356b1)=>{const _0xc25332=_0x416fe;for(var _0x52c21b=_0x1356b1>0x1?void 0x0:_0x1356b1?_0x311e39(_0x388707,_0x21007b):_0x388707,_0x39a6b9=_0xeac163[_0xc25332(0x13b)]-0x1,_0x19c6e0;_0x39a6b9>=0x0;_0x39a6b9--)(_0x19c6e0=_0xeac163[_0x39a6b9])&&(_0x52c21b=_0x19c6e0(_0x52c21b)||_0x52c21b);return _0x52c21b;},_0x1f5da8=(_0x15b814,_0x3c469f)=>(_0x37e145,_0x5a58bb)=>_0x3c469f(_0x37e145,_0x5a58bb,_0x15b814);_0x4a008b[_0x416fe(0x71)]=class extends _0x590ecf[_0x416fe(0xf2)]{constructor(_0x5b57ab,_0x8ca057,_0x31729c){const _0x33a175=_0x416fe;super(),_0x5f5c9e(this,_0x33a175(0xf3),new Map()),(this['_univerInstanceService']=_0x5b57ab,this[_0x33a175(0x127)]=_0x8ca057,this[_0x33a175(0xcd)]=_0x31729c,this['_init']());}async['getLiveShareCoordinator'](_0xc8cc14){const _0x185cd5=_0x416fe;return this[_0x185cd5(0xf3)][_0x185cd5(0x142)](_0xc8cc14)||await this[_0x185cd5(0xb7)](_0xc8cc14),this[_0x185cd5(0xf3)][_0x185cd5(0x15d)](_0xc8cc14);}[_0x416fe(0x126)](_0x21dfd9){const _0x3bd56b=_0x416fe;var _0x1e22ef;return(_0x1e22ef=this[_0x3bd56b(0xf3)]['get'](_0x21dfd9))!=null?_0x1e22ef:null;}[_0x416fe(0xaf)](){const _0x458152=_0x416fe;this[_0x458152(0xd6)][_0x458152(0x9f)](_0x590ecf[_0x458152(0xb5)][_0x458152(0x133)])[_0x458152(0x107)](_0x21e49d[_0x458152(0xd8)](this['dispose$']))[_0x458152(0x9b)](async _0x47ca9f=>{const _0x28f1cc=_0x458152,_0x138e43=_0x47ca9f['getUnitId']();this['_entities']['has'](_0x138e43)||this[_0x28f1cc(0xb7)](_0x138e43);}),this[_0x458152(0xd6)]['getTypeOfUnitDisposed$'](_0x590ecf['UniverInstanceType'][_0x458152(0x133)])[_0x458152(0x107)](_0x21e49d[_0x458152(0xd8)](this['dispose$']))[_0x458152(0x9b)](_0x162265=>{const _0x5f48f8=_0x458152,_0x4e03b3=_0x162265[_0x5f48f8(0x12a)](),_0x44c2d9=this[_0x5f48f8(0xf3)][_0x5f48f8(0x15d)](_0x4e03b3);_0x44c2d9==null||_0x44c2d9[_0x5f48f8(0x9e)]();});}async[_0x416fe(0xb7)](_0x5f17ad){const _0x2e10f1=_0x416fe,_0x36ee12=await this[_0x2e10f1(0xcd)][_0x2e10f1(0x93)](_0x5f17ad),_0x3d1d7b=this[_0x2e10f1(0x127)]['createInstance'](_0x4a008b[_0x2e10f1(0x157)],_0x5f17ad,_0x36ee12);return _0x3d1d7b[_0x2e10f1(0x12b)](),this['_entities'][_0x2e10f1(0xa1)](_0x5f17ad,_0x3d1d7b),_0x3d1d7b;}},_0x4a008b[_0x416fe(0x71)]=_0x4a8cb4([_0x1f5da8(0x0,_0x590ecf[_0x416fe(0x15a)]),_0x1f5da8(0x1,_0x590ecf['Inject'](_0x590ecf[_0x416fe(0x9c)])),_0x1f5da8(0x2,_0x590ecf['Inject'](_0x298e51[_0x416fe(0x123)]))],_0x4a008b[_0x416fe(0x71)]);var _0x1267e3=(_0x237f0b=>(_0x237f0b[_0x416fe(0xf4)]=_0x416fe(0x95),_0x237f0b[_0x416fe(0x79)]='idle',_0x237f0b[_0x416fe(0xc6)]='following',_0x237f0b['NOT_FOLLOWING']=_0x416fe(0x10d),_0x237f0b[_0x416fe(0xac)]=_0x416fe(0xd9),_0x237f0b))(_0x1267e3||{});const _0x55917d=_0x416fe(0xfe),_0x258a0c=0xc8;_0x4a008b['LiveShareCoordinator']=class extends _0x590ecf[_0x416fe(0xf2)]{constructor(_0x2d7a58,_0x226609,_0x3f2c2a,_0x2a8db8,_0x390b98){const _0x22e226=_0x416fe;super(),_0x5f5c9e(this,_0x22e226(0x78),new _0xc490aa['BehaviorSubject'](_0x22e226(0xbd))),_0x5f5c9e(this,'status$',this['_status$']['asObservable']()),_0x5f5c9e(this,_0x22e226(0xaf),!0x1),_0x5f5c9e(this,_0x22e226(0xe6),null),_0x5f5c9e(this,_0x22e226(0x14f),null),(this[_0x22e226(0x11e)]=_0x2d7a58,this[_0x22e226(0xa4)]=_0x226609,this['_configService']=_0x3f2c2a,this[_0x22e226(0x146)]=_0x2a8db8,this[_0x22e226(0xca)]=_0x390b98);}get[_0x416fe(0xa8)](){const _0x509d72=_0x416fe;return this[_0x509d72(0x78)]['getValue']();}[_0x416fe(0x9e)](){const _0x187622=_0x416fe;var _0x1a57d0;(_0x1a57d0=this['_commandDisposable'])==null||_0x1a57d0[_0x187622(0x9e)](),this[_0x187622(0x78)][_0x187622(0x119)](_0x187622(0xbd)),this[_0x187622(0x78)][_0x187622(0x77)]();}[_0x416fe(0xae)](){return this['_status'];}[_0x416fe(0x12b)](){const _0x32a9c5=_0x416fe;this[_0x32a9c5(0xaf)]||(this[_0x32a9c5(0xaf)]=!0x0,this[_0x32a9c5(0xa4)][_0x32a9c5(0x109)][_0x32a9c5(0x107)](_0x21e49d['takeUntil'](this[_0x32a9c5(0xb0)]))[_0x32a9c5(0x9b)](_0x226255=>{const _0x539dd9=_0x32a9c5;switch(_0x226255){case _0x298e51[_0x539dd9(0x12d)]['OFFLINE']:this[_0x539dd9(0xdc)]();break;case _0x298e51[_0x539dd9(0x12d)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x32a9c5(0xa4)][_0x32a9c5(0xb3)][_0x32a9c5(0x107)](_0x21e49d[_0x32a9c5(0xd8)](this['dispose$']))['subscribe'](_0x1e4a7e=>{const _0x4ad914=_0x32a9c5,{eventID:_0x4dab7a}=_0x1e4a7e;switch(_0x4dab7a){case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0xfc)]:this[_0x4ad914(0xaa)](_0x1e4a7e);break;case _0x239beb[_0x4ad914(0x113)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1e4a7e);break;case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0x91)]:this['_handleTerminate']();break;case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0x10e)]:this[_0x4ad914(0x108)](_0x1e4a7e);break;}}));}[_0x416fe(0xf9)](){const _0xcae28a=_0x416fe;this[_0xcae28a(0xa4)][_0xcae28a(0x14e)]({'eventID':_0x239beb[_0xcae28a(0x113)][_0xcae28a(0xd2)],'data':{'unitID':this[_0xcae28a(0x11e)],'userID':this['_collabSession'][_0xcae28a(0x11c)]()}},this[_0xcae28a(0x11e)]);}['stopPresenting'](){const _0x4255d9=_0x416fe;this[_0x4255d9(0xa8)]===_0x4255d9(0xd9)&&(this['_status$'][_0x4255d9(0x119)](_0x4255d9(0xbd)),this[_0x4255d9(0xa4)][_0x4255d9(0x14e)]({'eventID':_0x239beb['CollaborationEvent'][_0x4255d9(0x91)],'data':{'unitID':this[_0x4255d9(0x11e)]}},this[_0x4255d9(0x11e)]));}['startFollowing'](){const _0xa26468=_0x416fe;this[_0xa26468(0xa8)]==='not-following'&&(this[_0xa26468(0x78)][_0xa26468(0x119)]('following'),this[_0xa26468(0x14b)]());}['stopFollowing'](){const _0x5ae1b7=_0x416fe;this[_0x5ae1b7(0xa8)]===_0x5ae1b7(0x73)&&this['_stopFollowing']();}[_0x416fe(0xaa)](_0x216997){const _0x122a22=_0x416fe,{presenter:_0x528729}=_0x216997['data'],_0x3bcf09=this['_collabSession'][_0x122a22(0x11c)]();this['_presenter']=_0x528729,_0x528729===_0x3bcf09?(this['_stopFollowing'](),this[_0x122a22(0x122)]()):this[_0x122a22(0xa8)]!=='not-following'&&(this[_0x122a22(0xa3)](),this[_0x122a22(0x14b)]());}[_0x416fe(0x8d)](){const _0x3a9f53=_0x416fe,_0x302d39={'eventID':_0x239beb[_0x3a9f53(0x113)][_0x3a9f53(0x110)]};this['_collabSession'][_0x3a9f53(0x14e)](_0x302d39,this[_0x3a9f53(0x11e)]);}[_0x416fe(0xef)](){const _0x2df54c=_0x416fe;this[_0x2df54c(0x14f)]=null,this[_0x2df54c(0xa8)]!==_0x2df54c(0xd9)&&this[_0x2df54c(0x106)]();}[_0x416fe(0x108)](_0x356597){const _0x226c14=_0x416fe;if(this[_0x226c14(0xa8)]===_0x226c14(0x73)&&this['_presenter']===_0x356597[_0x226c14(0x130)][_0x226c14(0xc7)]){const _0x59f473=_0x239beb['parseProtocolChangeset'](_0x356597[_0x226c14(0x130)])[_0x226c14(0xf0)][_0x226c14(0xd3)]()[_0x226c14(0xdd)](_0x3fdba9=>_0x3fdba9['id']===_0x585599[_0x226c14(0x9a)]['id']);if(_0x59f473){const _0x5db514=_0x59f473[_0x226c14(0x99)][_0x226c14(0x87)],_0x2a0649=_0x59f473['params'][_0x226c14(0x100)]['id'];setTimeout(()=>{const _0x327063=_0x226c14;this[_0x327063(0xca)][_0x327063(0x11a)](_0x585599['SetWorksheetActiveOperation']['id'],{'unitId':_0x5db514,'subUnitId':_0x2a0649},{'fromCollab':!0x0});});}}}[_0x416fe(0x122)](){const _0x2576e4=_0x416fe;this['_status$']['next']('presenting');const _0x1d3ead=new Map(),_0x5cb47e=this[_0x2576e4(0xe6)]=new _0x590ecf[(_0x2576e4(0x7d))]();_0x5cb47e[_0x2576e4(0x12c)](_0x590ecf[_0x2576e4(0xcf)](()=>{const _0x210f77=_0x2576e4;_0x1d3ead[_0x210f77(0xa0)](_0x4b5d3d=>_0x4b5d3d[_0x210f77(0x77)]()),_0x1d3ead['clear']();})),_0x5cb47e['add'](this['_commandService'][_0x2576e4(0xa2)](_0x155559=>{const _0x857278=_0x2576e4;var _0x1642ac;if(_0x155559[_0x857278(0xc5)]!==_0x590ecf[_0x857278(0xd5)]['OPERATION']||!this[_0x857278(0x146)][_0x857278(0xf8)](_0x155559['id']))return;const {id:_0x35b93d}=_0x155559;let _0x2c4c59;_0x1d3ead[_0x857278(0x142)](_0x35b93d)?_0x2c4c59=_0x1d3ead[_0x857278(0x15d)](_0x35b93d):(_0x2c4c59=new _0xc490aa['Subject'](),_0x1d3ead[_0x857278(0xa1)](_0x35b93d,_0x2c4c59),_0x2c4c59[_0x857278(0x107)](_0x21e49d[_0x857278(0x132)]((_0x1642ac=this[_0x857278(0xf5)][_0x857278(0x117)](_0x55917d))!=null?_0x1642ac:_0x258a0c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x857278(0x9b)](_0x1a93a1=>{const _0x38e503=_0x857278;this['_collabSession'][_0x38e503(0x14e)]({'eventID':_0x239beb[_0x38e503(0x113)][_0x38e503(0x96)],'data':{'unitID':this[_0x38e503(0x11e)],'operations':{[_0x1a93a1['id']]:{'id':_0x1a93a1['id'],'params':JSON[_0x38e503(0x149)](_0x1a93a1[_0x38e503(0x99)])}}}},this[_0x38e503(0x11e)]);})),_0x2c4c59[_0x857278(0x119)](_0x155559);})),this[_0x2576e4(0x146)][_0x2576e4(0x13a)](this[_0x2576e4(0x11e)])[_0x2576e4(0xa0)](_0x46903a=>this['_collabSession']['send']({'eventID':_0x239beb['CollaborationEvent'][_0x2576e4(0x96)],'data':{'unitID':this[_0x2576e4(0x11e)],'operations':{[_0x46903a['id']]:{'id':_0x46903a['id'],'params':JSON['stringify'](_0x46903a[_0x2576e4(0x99)])}}}},this[_0x2576e4(0x11e)]));}['_stopPresenting'](){const _0x3a0eb1=_0x416fe;var _0x20355a;this['_status$'][_0x3a0eb1(0x119)](_0x3a0eb1(0xbd)),(_0x20355a=this[_0x3a0eb1(0xe6)])==null||_0x20355a['dispose'](),this['_commandDisposable']=null;}[_0x416fe(0x14b)](){const _0x7f6dfb=_0x416fe;var _0x5c4a16;(_0x5c4a16=this[_0x7f6dfb(0xe6)])==null||_0x5c4a16[_0x7f6dfb(0x9e)](),this[_0x7f6dfb(0x78)]['next'](_0x7f6dfb(0x73));}[_0x416fe(0x106)](){const _0x3f7fab=_0x416fe;var _0x54844d;this[_0x3f7fab(0x78)]['next'](_0x3f7fab(0xbd)),(_0x54844d=this[_0x3f7fab(0xe6)])==null||_0x54844d[_0x3f7fab(0x9e)](),this[_0x3f7fab(0xe6)]=null;}[_0x416fe(0x76)](){const _0x49bd06=_0x416fe;var _0x8872;this[_0x49bd06(0x78)]['next'](_0x49bd06(0x10d)),(_0x8872=this['_commandDisposable'])==null||_0x8872[_0x49bd06(0x9e)]();}['_handleOperation'](_0x334317){const _0x93d257=_0x416fe;if([_0x93d257(0xd9),'not-following',_0x93d257(0x95)]['includes'](this[_0x93d257(0xa8)])||!_0x334317[_0x93d257(0x130)]['presenter']||_0x334317[_0x93d257(0x130)]['presenter']===this[_0x93d257(0xa4)][_0x93d257(0x11c)]())return;this[_0x93d257(0xa8)]==='idle'&&this[_0x93d257(0x14b)]();const _0x24414d=_0x334317['data'][_0x93d257(0xa7)];Object[_0x93d257(0x154)](_0x24414d)['forEach'](_0x8ed0f6=>{const _0x136042=_0x93d257;this[_0x136042(0xca)][_0x136042(0x11a)](_0x8ed0f6['id'],_0x8ed0f6[_0x136042(0x99)]?JSON[_0x136042(0x8e)](_0x8ed0f6['params']):null,{'fromCollab':!0x0});});}[_0x416fe(0xdc)](){const _0x170bdb=_0x416fe;var _0x25b2ba;this[_0x170bdb(0x78)][_0x170bdb(0x119)](_0x170bdb(0x95)),(_0x25b2ba=this['_commandDisposable'])==null||_0x25b2ba['dispose']();}[_0x416fe(0xc8)](){const _0x208723=_0x416fe;this[_0x208723(0x78)][_0x208723(0x119)](_0x208723(0xbd)),this[_0x208723(0x8d)]();}},_0x4a008b[_0x416fe(0x157)]=_0x4a8cb4([_0x1f5da8(0x2,_0x590ecf[_0x416fe(0x11f)]),_0x1f5da8(0x3,_0x590ecf['Inject'](_0x3b5cd0)),_0x1f5da8(0x4,_0x590ecf[_0x416fe(0xe7)])],_0x4a008b[_0x416fe(0x157)]);function _0x1d75db(){const _0x271187=_0x416fe,_0x34b84e=_0x3d7446[_0x271187(0x8b)](_0x4a008b[_0x271187(0x71)]),_0x20fd95=_0x3d7446[_0x271187(0x8b)](_0x590ecf[_0x271187(0x15a)]),_0x2e829d=_0x3d7446['useObservable'](()=>_0x20fd95[_0x271187(0x147)](_0x590ecf[_0x271187(0xb5)][_0x271187(0x133)]),void 0x0,!0x1,[]),[_0x83e522,_0x435034]=_0x46800e['useState'](null),[_0x11e413,_0x5cb682]=_0x46800e[_0x271187(0xe8)](_0x1267e3[_0x271187(0x79)]),_0x31686a=_0x46800e[_0x271187(0xd1)](null);return _0x46800e[_0x271187(0x151)](()=>(_0x2e829d&&_0x34b84e[_0x271187(0xe4)](_0x2e829d[_0x271187(0x12a)]())['then'](_0x3928ff=>{const _0x1fc299=_0x271187;_0x435034(_0x3928ff),_0x31686a[_0x1fc299(0xde)]=_0x3928ff[_0x1fc299(0x89)]['subscribe'](_0x2c6ac6=>{_0x5cb682(_0x2c6ac6);});}),()=>{const _0x1685ea=_0x271187;var _0x58652f;(_0x58652f=_0x31686a[_0x1685ea(0xde)])==null||_0x58652f['unsubscribe'](),_0x31686a[_0x1685ea(0xde)]=null;}),[_0x2e829d,_0x34b84e]),_0x83e522?_0x31c6e6[_0x271187(0x129)](_0x263b26[_0x271187(0xbb)],{'align':_0x271187(0xa5),'disabled':_0x11e413===_0x1267e3[_0x271187(0xf4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x31c6e6[_0x271187(0x129)](_0x5e8062,{'status':_0x11e413,'coordinator':_0x83e522}),'children':_0x31c6e6[_0x271187(0x129)](_0x271187(0x125),{'className':_0x263b26[_0x271187(0x124)](_0x271187(0xea),{'univer-cursor-not-allowed':_0x11e413===_0x1267e3['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11e413!==_0x1267e3[_0x271187(0xf4)]}),'type':_0x271187(0x125),'children':_0x31c6e6[_0x271187(0x129)](_0x245bba,{'className':'univer-size-4'})})}):null;}function _0x5e8062(_0x30af31){const _0x14e240=_0x416fe,{status:_0xfcd244,coordinator:_0x384e58}=_0x30af31;switch(_0xfcd244){case _0x1267e3[_0x14e240(0x79)]:return _0x31c6e6[_0x14e240(0x129)](_0x525a8f,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xc6)]:return _0x31c6e6[_0x14e240(0x129)](_0x399999,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xc2)]:return _0x31c6e6['jsx'](_0x15f4c9,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xf4)]:return _0x31c6e6['jsx'](_0x858316,{});case _0x1267e3[_0x14e240(0xac)]:return _0x31c6e6[_0x14e240(0x129)](_0x28c6bb,{'coordinator':_0x384e58});default:return null;}}function _0x525a8f(_0x470dde){const _0x51e49d=_0x416fe,{coordinator:_0x360602}=_0x470dde;return _0x31c6e6[_0x51e49d(0x153)](_0x31c6e6[_0x51e49d(0xba)],{'children':[_0x31c6e6[_0x51e49d(0x129)](_0x51e49d(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x31c6e6[_0x51e49d(0x129)](_0x263b26[_0x51e49d(0x120)],{'onClick':()=>_0x360602[_0x51e49d(0xf9)](),'children':_0x51e49d(0x145)})]});}function _0x399999(_0x3981e1){const _0x5565d4=_0x416fe,{coordinator:_0x552250}=_0x3981e1;return _0x31c6e6[_0x5565d4(0x153)](_0x31c6e6[_0x5565d4(0xba)],{'children':[_0x31c6e6['jsx'](_0x5565d4(0xff),{'className':_0x5565d4(0x15b),'children':_0x5565d4(0xbe)}),_0x31c6e6[_0x5565d4(0x129)](_0x263b26[_0x5565d4(0x120)],{'onClick':()=>_0x552250[_0x5565d4(0x156)](),'children':_0x5565d4(0xa9)})]});}function _0x15f4c9(_0x35a9ca){const _0x4d0e6d=_0x416fe,{coordinator:_0xee1545}=_0x35a9ca;return _0x31c6e6[_0x4d0e6d(0x153)](_0x31c6e6['Fragment'],{'children':[_0x31c6e6[_0x4d0e6d(0x129)](_0x4d0e6d(0xff),{'className':_0x4d0e6d(0x15b),'children':_0x4d0e6d(0xb1)}),_0x31c6e6[_0x4d0e6d(0x129)](_0x263b26['Button'],{'variant':_0x4d0e6d(0xb2),'onClick':()=>_0xee1545[_0x4d0e6d(0x159)](),'children':_0x4d0e6d(0x94)})]});}function _0x28c6bb(_0x5c89b6){const _0x256bbf=_0x416fe,{coordinator:_0x972428}=_0x5c89b6;return _0x31c6e6['jsxs'](_0x31c6e6[_0x256bbf(0xba)],{'children':[_0x31c6e6['jsx'](_0x256bbf(0xff),{'className':_0x256bbf(0x15b),'children':_0x256bbf(0xf1)}),_0x31c6e6[_0x256bbf(0x129)](_0x263b26[_0x256bbf(0x120)],{'variant':_0x256bbf(0x8c),'onClick':()=>_0x972428['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x858316(){const _0xa50638=_0x416fe;return _0x31c6e6[_0xa50638(0x129)](_0x31c6e6[_0xa50638(0xba)],{'children':_0xa50638(0x74)});}var _0x217964=Object['getOwnPropertyDescriptor'],_0x212396=(_0x2e42da,_0x199fe3,_0x59a511,_0x74eafe)=>{const _0x30d0c8=_0x416fe;for(var _0x1310df=_0x74eafe>0x1?void 0x0:_0x74eafe?_0x217964(_0x199fe3,_0x59a511):_0x199fe3,_0x16361d=_0x2e42da[_0x30d0c8(0x13b)]-0x1,_0x70c29b;_0x16361d>=0x0;_0x16361d--)(_0x70c29b=_0x2e42da[_0x16361d])&&(_0x1310df=_0x70c29b(_0x1310df)||_0x1310df);return _0x1310df;},_0x1d6572=(_0xa99ea7,_0x552c05)=>(_0x181dc1,_0x144410)=>_0x552c05(_0x181dc1,_0x144410,_0xa99ea7);_0x4a008b['DesktopLiveShareController']=class extends _0x590ecf[_0x416fe(0xe0)]{constructor(_0x4f9699,_0x3e3314){const _0x24cf93=_0x416fe;super(),this[_0x24cf93(0x127)]=_0x4f9699,this[_0x24cf93(0x13d)]=_0x3e3314,this['_mountLiveShare']();}[_0x416fe(0x141)](){const _0x7e9836=_0x416fe;this[_0x7e9836(0x13f)](this[_0x7e9836(0x13d)]['registerComponent'](_0x3d7446['BuiltInUIPart'][_0x7e9836(0x155)],()=>_0x3d7446[_0x7e9836(0x92)](_0x1d75db,this[_0x7e9836(0x127)])));}},_0x4a008b[_0x416fe(0x10a)]=_0x212396([_0x1d6572(0x0,_0x590ecf[_0x416fe(0xad)](_0x590ecf[_0x416fe(0x9c)])),_0x1d6572(0x1,_0x3d7446['IUIPartsService'])],_0x4a008b['DesktopLiveShareController']);const _0x5ad5d0=_0x416fe(0x134),_0x3eabf7={};var _0x5a5ea2=Object[_0x416fe(0xb9)],_0x1e8abc=(_0xb6cd28,_0x436ba8,_0x3a2aab,_0x106e06)=>{const _0x3b8121=_0x416fe;for(var _0x267846=_0x106e06>0x1?void 0x0:_0x106e06?_0x5a5ea2(_0x436ba8,_0x3a2aab):_0x436ba8,_0x1c1054=_0xb6cd28[_0x3b8121(0x13b)]-0x1,_0x344d18;_0x1c1054>=0x0;_0x1c1054--)(_0x344d18=_0xb6cd28[_0x1c1054])&&(_0x267846=_0x344d18(_0x267846)||_0x267846);return _0x267846;},_0x5911f3=(_0x10d560,_0xd04a0e)=>(_0x572e05,_0x33ecca)=>_0xd04a0e(_0x572e05,_0x33ecca,_0x10d560);let _0x2ab1e5=class extends _0x590ecf[_0x416fe(0xe0)]{constructor(_0x4f1483){const _0x3efe1f=_0x416fe;super(),this['_liveShareService']=_0x4f1483,this[_0x3efe1f(0xaf)]();}[_0x416fe(0xaf)](){const _0x117f1d=_0x416fe;[_0xa5de06['SetZoomRatioOperation']['id'],_0xa5de06[_0x117f1d(0x10c)]['id'],_0x585599[_0x117f1d(0xbc)]['id']][_0x117f1d(0xa0)](_0x9dbe3f=>{const _0x595325=_0x117f1d;this[_0x595325(0x13f)](this[_0x595325(0x146)][_0x595325(0x102)](_0x9dbe3f));});}};_0x2ab1e5=_0x1e8abc([_0x5911f3(0x0,_0x590ecf[_0x416fe(0xad)](_0x3b5cd0))],_0x2ab1e5);var _0x42d590=Object[_0x416fe(0x80)],_0x37de04=Object['getOwnPropertyDescriptor'],_0x468a4b=(_0x9e87f6,_0x23f314,_0x40bf33)=>_0x23f314 in _0x9e87f6?_0x42d590(_0x9e87f6,_0x23f314,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40bf33}):_0x9e87f6[_0x23f314]=_0x40bf33,_0x4dee58=(_0x4d9d0b,_0x5873f7,_0x82b0fa,_0x29bf11)=>{const _0x35abaa=_0x416fe;for(var _0x470e58=_0x29bf11>0x1?void 0x0:_0x29bf11?_0x37de04(_0x5873f7,_0x82b0fa):_0x5873f7,_0x4c5514=_0x4d9d0b[_0x35abaa(0x13b)]-0x1,_0x27be54;_0x4c5514>=0x0;_0x4c5514--)(_0x27be54=_0x4d9d0b[_0x4c5514])&&(_0x470e58=_0x27be54(_0x470e58)||_0x470e58);return _0x470e58;},_0xaf6933=(_0x14d819,_0x942006)=>(_0x2c49c7,_0x3b0a35)=>_0x942006(_0x2c49c7,_0x3b0a35,_0x14d819),_0x8eba78=(_0x3d989f,_0x5dcc7a,_0x1486c2)=>_0x468a4b(_0x3d989f,typeof _0x5dcc7a!='symbol'?_0x5dcc7a+'':_0x5dcc7a,_0x1486c2);const _0x3eaa20='UNIVER_LIVE_SHARE_PLUGIN';_0x4a008b[_0x416fe(0xfb)]=class extends _0x590ecf[_0x416fe(0x7c)]{constructor(_0x24811a=_0x3eabf7,_0x24189f,_0x5e7acd){const _0x5e8749=_0x416fe;super(),this['_config']=_0x24811a,this[_0x5e8749(0x127)]=_0x24189f,this['_configService']=_0x5e7acd;const {..._0x2ad1b6}=_0x590ecf['merge']({},_0x3eabf7,this['_config']);this[_0x5e8749(0xf5)]['setConfig'](_0x5ad5d0,_0x2ad1b6);}['onStarting'](){const _0x1f97f9=_0x416fe;_0x590ecf['registerDependencies'](this[_0x1f97f9(0x127)],_0x590ecf[_0x1f97f9(0xdf)]([[_0x3b5cd0],[_0x4a008b[_0x1f97f9(0x71)]],[_0x2ab1e5],[_0x4a008b[_0x1f97f9(0x10a)]]],this[_0x1f97f9(0x7e)]['override'])),_0x590ecf[_0x1f97f9(0xed)](this[_0x1f97f9(0x127)],[[_0x2ab1e5]]);}[_0x416fe(0x90)](){const _0x497f05=_0x416fe;_0x590ecf[_0x497f05(0xed)](this[_0x497f05(0x127)],[[_0x4a008b[_0x497f05(0x10a)]]]);}},_0x8eba78(_0x4a008b[_0x416fe(0xfb)],'type',_0x590ecf[_0x416fe(0xb5)][_0x416fe(0xcc)]),_0x8eba78(_0x4a008b[_0x416fe(0xfb)],_0x416fe(0xc3),_0x3eaa20),_0x4a008b[_0x416fe(0xfb)]=_0x4dee58([_0x590ecf[_0x416fe(0xf6)](_0x298e51[_0x416fe(0x8a)]),_0xaf6933(0x1,_0x590ecf[_0x416fe(0xad)](_0x590ecf[_0x416fe(0x9c)])),_0xaf6933(0x2,_0x590ecf['IConfigService'])],_0x4a008b[_0x416fe(0xfb)]),_0x4a008b[_0x416fe(0xc4)]=_0x1d75db,_0x4a008b[_0x416fe(0x131)]=_0x3b5cd0,_0x4a008b['LiveShareStatus']=_0x1267e3,Object['defineProperty'](_0x4a008b,Symbol[_0x416fe(0x72)],{'value':_0x416fe(0x83)});}));
|
|
1
|
+
function _0x5dcd(){const _0x82308e=['live-share-icon','LIVESHARE_TERMINATE','current','defineProperty','getTypeOfUnitDisposed$','presenting','925608JsFrMT','@univerjs/core','clear','27TPnsbG','IConfigService','Present\x20this\x20document','div','idSuffix','useEffect','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','length','not-following','symbol','then','LiveShare','UniverSheets','_handleOffline','forwardRef','UniverCore','_handleOnline','svg','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','CommandType','object','setConfig','UniverCollaborationClientPlugin','random','BehaviorSubject','pipe','jsx','useState','5fSewQZ','trim','_commandDisposable','sheet','stringify','getTypeOfUnitAdded$','fill','@univerjs/sheets-ui','stopPresenting','button','has','live-share.config','from','_status','takeUntil','get','executeCommand','Injector','_handleNewHost','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','disposeWithMe','path','UniverProCollaborationClient','_collabSessionService','IDLE','_presenter','UniverUi','_beIdle','find','displayName','LIVESHARE_OPERATION','jsxs','clsx','init','replace','presenter','_uiPartsService','_collabSession','react/jsx-runtime','shouldShareOperation','DesktopLiveShareController','_liveShareService','children','Plugin','_injector','FOLLOWING','OFFLINE','registerInitialStateReporter','string','unitId','getStatus','rxjs/operators','_commandService','UNIVER_UNKNOWN','SessionStatus','IUIPartsService','UniverIcon','useObservable','LiveShareController','_sharedOperations','mask','_stopPresenting','UniverProCollaboration','univer-size-4','DependentOn','Stop\x20presenting','exports','asObservable','tag','type','event$','_fetchOperations','useRef','sessionStatus$','_univerInstanceService','complete','UniverSheetsUi','React','IUniverInstanceService','reverse','amd','createElement','HEADER_MENU','react','params','mutations','override','idle','getUnitId','delete','add','_startLiveShareCoordinator','data','_config','getLiveShareCoordinator','getCurrentTypeOfUnit$','getLiveShareCoordinatorSync','_handleTerminate','url(#$1','registerSharedOperation','status$','following','DisposableCollection','OPERATION','@univerjs-pro/collaboration-client','defs','throttleTime','Inject','createInstance','startFollowing','Disposable','_unitID','ONLINE','getConfig','_startFollowing','unsubscribe','_entities','toDisposable','parseProtocolChangeset','mergeOverrideWithDependencies','@univerjs/sheets','getMemberID','dispose$','getOwnPropertyDescriptor','_status$','1em','LIVESHARE_NEW_HOST','915753OZLNhQ','@univerjs/design','getValue','BuiltInUIPart','forEach','http://www.w3.org/2000/svg','defIds','Stop\x20following','_mountLiveShare','toString','dispose','evenodd','Module','RxDisposable','488014gjhBzW','none','map','PRESENTING','toStringTag','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','SetWorksheetActiveOperation','_handleNewChangeSets','colorChannel1','30MKKAbU','_init','onCommandExecuted','_configService','LiveShareCoordinator','UniverLiveSharePlugin','UniverInstanceType','_reporters','ICommandService','1746833CtmPTe','memberID','getInitialStates','_stopFollowing','CollaborationEvent','attrs','Button','onStarting','subscribe','_startPresenting','next','operators','LiveShareIcon','includes','end','Fragment','touchDependencies','UNIVER_SHEET','Start\x20following','rxjs','175620fGQCvc','onRendered','_handleOperation','useDependency','stopFollowing','currentColor','xlink:href','operations','send','pluginName','tryStartPresenting','LIVESHARE_REQUEST_HOST','Start','CollaborationSessionService','136630hqPKTl','offline','7mypvyU','499560TzESKY','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter'];_0x5dcd=function(){return _0x82308e;};return _0x5dcd();}function _0x5f54(_0x5114ce,_0x4d7cb8){const _0x5dcd11=_0x5dcd();return _0x5f54=function(_0x5f545d,_0xe0a9d5){_0x5f545d=_0x5f545d-0x7a;let _0x5c68f1=_0x5dcd11[_0x5f545d];return _0x5c68f1;},_0x5f54(_0x5114ce,_0x4d7cb8);}(function(_0x19f638,_0x43c87a){const _0x5019c9=_0x5f54,_0x52b10a=_0x19f638();while(!![]){try{const _0x4cc4b1=parseInt(_0x5019c9(0x158))/0x1+-parseInt(_0x5019c9(0x124))/0x2+parseInt(_0x5019c9(0x116))/0x3+-parseInt(_0x5019c9(0x14a))/0x4*(parseInt(_0x5019c9(0x97))/0x5)+parseInt(_0x5019c9(0x165))/0x6*(-parseInt(_0x5019c9(0x15a))/0x7)+parseInt(_0x5019c9(0x15b))/0x8*(-parseInt(_0x5019c9(0x168))/0x9)+-parseInt(_0x5019c9(0x12d))/0xa*(-parseInt(_0x5019c9(0x136))/0xb);if(_0x4cc4b1===_0x43c87a)break;else _0x52b10a['push'](_0x52b10a['shift']());}catch(_0x2a1a38){_0x52b10a['push'](_0x52b10a['shift']());}}}(_0x5dcd,0x46807),function(_0x74f9df,_0x9302f5){const _0x1fc1f5=_0x5f54;typeof exports==_0x1fc1f5(0x8f)&&typeof module<'u'?_0x9302f5(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[_0x1fc1f5(0xe7)]?define([_0x1fc1f5(0xd9),_0x1fc1f5(0x166),'@univerjs/ui',_0x1fc1f5(0xbd),_0x1fc1f5(0x117),_0x1fc1f5(0xea),'@univerjs-pro/collaboration',_0x1fc1f5(0xff),_0x1fc1f5(0x10f),_0x1fc1f5(0x149),_0x1fc1f5(0xca),_0x1fc1f5(0x9e)],_0x9302f5):(_0x74f9df=typeof globalThis<'u'?globalThis:_0x74f9df||self,_0x9302f5(_0x74f9df['UniverProLiveShare']={},_0x74f9df[_0x1fc1f5(0x89)],_0x74f9df[_0x1fc1f5(0xb1)],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df['UniverDesign'],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df[_0x1fc1f5(0xd5)],_0x74f9df[_0x1fc1f5(0xad)],_0x74f9df[_0x1fc1f5(0x86)],_0x74f9df[_0x1fc1f5(0x149)],_0x74f9df[_0x1fc1f5(0x149)][_0x1fc1f5(0x141)],_0x74f9df[_0x1fc1f5(0xe3)]));}(this,function(_0x337bdf,_0x22843f,_0x43069c,_0x6ca322,_0x168d28,_0x4af639,_0x7b6f2e,_0x48621c,_0x40796a,_0xc3b0d0,_0x12ea5d,_0x5857a0){'use strict';const _0x41be65=_0x5f54;var _0x581918=Object[_0x41be65(0x162)],_0x1736b3=(_0x438062,_0x33831f,_0xc8a99)=>_0x33831f in _0x438062?_0x581918(_0x438062,_0x33831f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8a99}):_0x438062[_0x33831f]=_0xc8a99,_0x1af315=(_0xc3fa7d,_0x2b7fa3,_0x1de253)=>_0x1736b3(_0xc3fa7d,typeof _0x2b7fa3!=_0x41be65(0x83)?_0x2b7fa3+'':_0x2b7fa3,_0x1de253);function _0x4b4bc8({ref:_0x61de6e,..._0x47dff6}){const _0x3bcfb7=_0x41be65,{icon:_0x3909a9,id:_0x3413bd,className:_0x1a27ee,extend:_0x4643a5,..._0x216eef}=_0x47dff6,_0x49cc7d=(_0x3bcfb7(0x8c)+_0x3413bd+'\x20'+(_0x1a27ee||''))[_0x3bcfb7(0x98)](),_0x332083=_0x4af639[_0x3bcfb7(0xdf)]('_'+_0x372e98());return _0x2567ad(_0x3909a9,''+_0x3413bd,{'defIds':_0x3909a9[_0x3bcfb7(0x11c)],'idSuffix':_0x332083[_0x3bcfb7(0x161)]},{'ref':_0x61de6e,'className':_0x49cc7d,..._0x216eef},_0x4643a5);}function _0x2567ad(_0x52fbd3,_0x14765c,_0x416e39,_0x204c2d,_0x3025dc){const _0x322a37=_0x41be65;return _0x4af639[_0x322a37(0xe8)](_0x52fbd3[_0x322a37(0xdb)],{'key':_0x14765c,..._0x4a4e94(_0x52fbd3,_0x416e39,_0x3025dc),..._0x204c2d},(_0x195abe(_0x52fbd3,_0x416e39)[_0x322a37(0xc1)]||[])[_0x322a37(0x126)]((_0x395254,_0x384367)=>_0x2567ad(_0x395254,_0x14765c+'-'+_0x52fbd3[_0x322a37(0xdb)]+'-'+_0x384367,_0x416e39,void 0x0,_0x3025dc)));}function _0x4a4e94(_0x3de5aa,_0x5b4838,_0x195eb0){const _0x54d2af=_0x41be65,_0x1e39fb={..._0x3de5aa[_0x54d2af(0x13b)]};_0x195eb0!=null&&_0x195eb0[_0x54d2af(0x12c)]&&_0x1e39fb[_0x54d2af(0x9d)]===_0x54d2af(0x12c)&&(_0x1e39fb['fill']=_0x195eb0[_0x54d2af(0x12c)]),_0x3de5aa['tag']===_0x54d2af(0xd3)&&_0x1e39fb['id']&&(_0x1e39fb['id']=_0x1e39fb['id']+_0x5b4838['idSuffix']),Object[_0x54d2af(0x7f)](_0x1e39fb)[_0x54d2af(0x11a)](([_0x5ee25a,_0x496e47])=>{const _0x2a0d04=_0x54d2af;_0x5ee25a===_0x2a0d04(0xd3)&&typeof _0x496e47==_0x2a0d04(0xc7)&&(_0x1e39fb[_0x5ee25a]=_0x496e47[_0x2a0d04(0xb9)](/url\(#(.*)\)/,_0x2a0d04(0xf9)+_0x5b4838[_0x2a0d04(0x7d)]+')'));});const {defIds:_0x43618e}=_0x5b4838;return!_0x43618e||_0x43618e[_0x54d2af(0x81)]===0x0||(_0x3de5aa[_0x54d2af(0xdb)]==='use'&&_0x1e39fb[_0x54d2af(0x150)]&&(_0x1e39fb[_0x54d2af(0x150)]=_0x1e39fb[_0x54d2af(0x150)]+_0x5b4838[_0x54d2af(0x7d)]),Object['entries'](_0x1e39fb)[_0x54d2af(0x11a)](([_0x2afa8e,_0x4bc808])=>{const _0x44dcbe=_0x54d2af;typeof _0x4bc808==_0x44dcbe(0xc7)&&(_0x1e39fb[_0x2afa8e]=_0x4bc808[_0x44dcbe(0xb9)](/url\(#(.*)\)/,_0x44dcbe(0xf9)+_0x5b4838[_0x44dcbe(0x7d)]+')'));})),_0x1e39fb;}function _0x195abe(_0x31d212,_0x2b1196){const _0x296b54=_0x41be65;var _0x3f1643;const {defIds:_0x431d13}=_0x2b1196;return!_0x431d13||_0x431d13[_0x296b54(0x81)]===0x0?_0x31d212:_0x31d212[_0x296b54(0xdb)]===_0x296b54(0x100)&&((_0x3f1643=_0x31d212[_0x296b54(0xc1)])!=null&&_0x3f1643[_0x296b54(0x81)])?{..._0x31d212,'children':_0x31d212[_0x296b54(0xc1)][_0x296b54(0x126)](_0x5179b5=>typeof _0x5179b5[_0x296b54(0x13b)]['id']=='string'&&_0x431d13&&_0x431d13[_0x296b54(0x143)](_0x5179b5[_0x296b54(0x13b)]['id'])?{..._0x5179b5,'attrs':{..._0x5179b5[_0x296b54(0x13b)],'id':_0x5179b5['attrs']['id']+_0x2b1196['idSuffix']}}:_0x5179b5)}:_0x31d212;}function _0x372e98(){const _0x1626f8=_0x41be65;return Math[_0x1626f8(0x92)]()[_0x1626f8(0x11f)](0x24)['substring'](0x2,0x8);}_0x4b4bc8[_0x41be65(0xb4)]=_0x41be65(0xcf);const _0x3ccfca={'tag':_0x41be65(0x8b),'attrs':{'xmlns':_0x41be65(0x11b),'fill':_0x41be65(0x125),'viewBox':'0\x200\x2017\x2017','width':_0x41be65(0x114),'height':_0x41be65(0x114)},'children':[{'tag':_0x41be65(0xac),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x41be65(0xac),'attrs':{'fill':_0x41be65(0x14f),'d':_0x41be65(0xaa),'fillRule':'evenodd','clipRule':_0x41be65(0x121)}}]},_0x319dcd=_0x4af639[_0x41be65(0x88)](function(_0x5d36c5,_0x1d8f64){const _0x4e8304=_0x41be65;return _0x4af639[_0x4e8304(0xe8)](_0x4b4bc8,Object['assign']({},_0x5d36c5,{'id':_0x4e8304(0x15f),'ref':_0x1d8f64,'icon':_0x3ccfca}));});_0x319dcd['displayName']=_0x41be65(0x142);class _0x5c7e50 extends _0x22843f[_0x41be65(0x105)]{constructor(){const _0x28c27b=_0x41be65;super(...arguments),_0x1af315(this,'_sharedOperations',new Set()),_0x1af315(this,_0x28c27b(0x134),new Set());}['registerSharedOperation'](_0xa8dc47){const _0x27af35=_0x41be65;return this['_sharedOperations'][_0x27af35(0xf1)](_0xa8dc47),_0x22843f['toDisposable'](()=>this[_0x27af35(0xd2)][_0x27af35(0xf0)](_0xa8dc47));}[_0x41be65(0xc6)](_0x1f0da6){const _0x4f2aed=_0x41be65;return this[_0x4f2aed(0x134)][_0x4f2aed(0xf1)](_0x1f0da6),_0x22843f[_0x4f2aed(0x10c)](()=>this['_reporters'][_0x4f2aed(0xf0)](_0x1f0da6));}['shouldShareOperation'](_0x129591){const _0x1e86f2=_0x41be65;return this[_0x1e86f2(0xd2)][_0x1e86f2(0xa1)](_0x129591);}[_0x41be65(0x138)](_0x1f0aed){const _0x4dc868=_0x41be65;return Array[_0x4dc868(0xa3)](this[_0x4dc868(0x134)])[_0x4dc868(0x126)](_0x154da3=>_0x154da3(_0x1f0aed));}}var _0x44c52a=Object[_0x41be65(0x112)],_0x2ba73f=(_0xda7e06,_0x177e01,_0x3a2ac9,_0x11885e)=>{for(var _0x135f61=_0x11885e>0x1?void 0x0:_0x11885e?_0x44c52a(_0x177e01,_0x3a2ac9):_0x177e01,_0xa74033=_0xda7e06['length']-0x1,_0x459beb;_0xa74033>=0x0;_0xa74033--)(_0x459beb=_0xda7e06[_0xa74033])&&(_0x135f61=_0x459beb(_0x135f61)||_0x135f61);return _0x135f61;},_0x19bedc=(_0x12f12f,_0x40a059)=>(_0x497554,_0x38e3b4)=>_0x40a059(_0x497554,_0x38e3b4,_0x12f12f);_0x337bdf['LiveShareController']=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x55e86e,_0x4b4147,_0x50c177){const _0x11267c=_0x41be65;super(),_0x1af315(this,_0x11267c(0x10b),new Map()),(this['_univerInstanceService']=_0x55e86e,this[_0x11267c(0xc3)]=_0x4b4147,this[_0x11267c(0xae)]=_0x50c177,this[_0x11267c(0x12e)]());}async['getLiveShareCoordinator'](_0x321577){const _0x21d531=_0x41be65;return this[_0x21d531(0x10b)][_0x21d531(0xa1)](_0x321577)||await this[_0x21d531(0xf2)](_0x321577),this[_0x21d531(0x10b)][_0x21d531(0xa6)](_0x321577);}[_0x41be65(0xf7)](_0x403409){const _0x18a5b8=_0x41be65;var _0x196053;return(_0x196053=this['_entities'][_0x18a5b8(0xa6)](_0x403409))!=null?_0x196053:null;}['_init'](){const _0x48aba3=_0x41be65;this[_0x48aba3(0xe1)][_0x48aba3(0x9c)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this['dispose$']))['subscribe'](async _0x2a75a8=>{const _0x13153b=_0x48aba3,_0x5aaaa0=_0x2a75a8[_0x13153b(0xef)]();this[_0x13153b(0x10b)]['has'](_0x5aaaa0)||this['_startLiveShareCoordinator'](_0x5aaaa0);}),this[_0x48aba3(0xe1)][_0x48aba3(0x163)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this[_0x48aba3(0x111)]))[_0x48aba3(0x13e)](_0x1a30e6=>{const _0x32156f=_0x48aba3,_0x3dafc0=_0x1a30e6[_0x32156f(0xef)](),_0x4aedcc=this[_0x32156f(0x10b)][_0x32156f(0xa6)](_0x3dafc0);_0x4aedcc==null||_0x4aedcc[_0x32156f(0x120)]();});}async[_0x41be65(0xf2)](_0x49e162){const _0x504715=_0x41be65,_0x92e300=await this[_0x504715(0xae)]['requireSession'](_0x49e162),_0xd83f4=this[_0x504715(0xc3)][_0x504715(0x103)](_0x337bdf[_0x504715(0x131)],_0x49e162,_0x92e300);return _0xd83f4[_0x504715(0xb8)](),this[_0x504715(0x10b)][_0x504715(0x15c)](_0x49e162,_0xd83f4),_0xd83f4;}},_0x337bdf[_0x41be65(0xd1)]=_0x2ba73f([_0x19bedc(0x0,_0x22843f['IUniverInstanceService']),_0x19bedc(0x1,_0x22843f['Inject'](_0x22843f[_0x41be65(0xa8)])),_0x19bedc(0x2,_0x22843f['Inject'](_0x48621c[_0x41be65(0x157)]))],_0x337bdf[_0x41be65(0xd1)]);var _0x119424=(_0x55cc62=>(_0x55cc62['OFFLINE']=_0x41be65(0x159),_0x55cc62[_0x41be65(0xaf)]='idle',_0x55cc62[_0x41be65(0xc4)]=_0x41be65(0xfc),_0x55cc62[_0x41be65(0x8d)]='not-following',_0x55cc62[_0x41be65(0x127)]=_0x41be65(0x164),_0x55cc62))(_0x119424||{});const _0x5b6813='SAME_OPERATION_SHARE_INTERVAL',_0x345f6f=0xc8;_0x337bdf[_0x41be65(0x131)]=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x3df219,_0x27e469,_0x26cd12,_0x263ab0,_0x5c5b25){const _0x50237c=_0x41be65;super(),_0x1af315(this,_0x50237c(0x113),new _0xc3b0d0[(_0x50237c(0x93))]('idle')),_0x1af315(this,_0x50237c(0xfb),this[_0x50237c(0x113)][_0x50237c(0xda)]()),_0x1af315(this,'_init',!0x1),_0x1af315(this,_0x50237c(0x99),null),_0x1af315(this,_0x50237c(0xb0),null),(this[_0x50237c(0x106)]=_0x3df219,this['_collabSession']=_0x27e469,this[_0x50237c(0x130)]=_0x26cd12,this[_0x50237c(0xc0)]=_0x263ab0,this[_0x50237c(0xcb)]=_0x5c5b25);}get['_status'](){const _0x576342=_0x41be65;return this[_0x576342(0x113)][_0x576342(0x118)]();}[_0x41be65(0x120)](){const _0x5d26b3=_0x41be65;var _0xca9da7;(_0xca9da7=this[_0x5d26b3(0x99)])==null||_0xca9da7[_0x5d26b3(0x120)](),this['_status$'][_0x5d26b3(0x140)](_0x5d26b3(0xee)),this[_0x5d26b3(0x113)][_0x5d26b3(0xe2)]();}[_0x41be65(0xc9)](){const _0x135d3a=_0x41be65;return this[_0x135d3a(0xa4)];}[_0x41be65(0xb8)](){const _0x3831bd=_0x41be65;this[_0x3831bd(0x12e)]||(this[_0x3831bd(0x12e)]=!0x0,this[_0x3831bd(0xbc)][_0x3831bd(0xe0)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x1ef735=>{const _0x1c0bd6=_0x3831bd;switch(_0x1ef735){case _0x48621c[_0x1c0bd6(0xcd)]['OFFLINE']:this[_0x1c0bd6(0x87)]();break;case _0x48621c[_0x1c0bd6(0xcd)][_0x1c0bd6(0x107)]:this[_0x1c0bd6(0x8a)]();break;}}),this[_0x3831bd(0xbc)][_0x3831bd(0xdd)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x38b1dc=>{const _0x267d0d=_0x3831bd,{eventID:_0x4bbec8}=_0x38b1dc;switch(_0x4bbec8){case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x115)]:this[_0x267d0d(0xa9)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0xb5)]:this[_0x267d0d(0x14c)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x160)]:this[_0x267d0d(0xf8)]();break;case _0x7b6f2e['CollaborationEvent']['NEW_CHANGESETS']:this[_0x267d0d(0x12b)](_0x38b1dc);break;}}));}[_0x41be65(0x154)](){const _0x14b738=_0x41be65;this[_0x14b738(0xbc)][_0x14b738(0x152)]({'eventID':_0x7b6f2e[_0x14b738(0x13a)][_0x14b738(0x155)],'data':{'unitID':this[_0x14b738(0x106)],'userID':this['_collabSession']['getMemberID']()}},this[_0x14b738(0x106)]);}['stopPresenting'](){const _0x53c8c2=_0x41be65;this['_status']===_0x53c8c2(0x164)&&(this[_0x53c8c2(0x113)]['next'](_0x53c8c2(0xee)),this[_0x53c8c2(0xbc)][_0x53c8c2(0x152)]({'eventID':_0x7b6f2e[_0x53c8c2(0x13a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x53c8c2(0x106)]}},this['_unitID']));}[_0x41be65(0x104)](){const _0x37e03f=_0x41be65;this[_0x37e03f(0xa4)]===_0x37e03f(0x82)&&(this[_0x37e03f(0x113)]['next'](_0x37e03f(0xfc)),this['_startFollowing']());}[_0x41be65(0x14e)](){const _0x536e23=_0x41be65;this[_0x536e23(0xa4)]===_0x536e23(0xfc)&&this[_0x536e23(0x139)]();}[_0x41be65(0xa9)](_0x1c3a4d){const _0x12a7a9=_0x41be65,{presenter:_0x256610}=_0x1c3a4d[_0x12a7a9(0xf3)],_0x4fda5c=this[_0x12a7a9(0xbc)][_0x12a7a9(0x110)]();this[_0x12a7a9(0xb0)]=_0x256610,_0x256610===_0x4fda5c?(this[_0x12a7a9(0x139)](),this[_0x12a7a9(0x13f)]()):this[_0x12a7a9(0xa4)]!==_0x12a7a9(0x82)&&(this[_0x12a7a9(0xd4)](),this[_0x12a7a9(0x109)]());}[_0x41be65(0xde)](){const _0x481720=_0x41be65,_0x228a62={'eventID':_0x7b6f2e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x481720(0xbc)][_0x481720(0x152)](_0x228a62,this[_0x481720(0x106)]);}[_0x41be65(0xf8)](){const _0x1e0e99=_0x41be65;this[_0x1e0e99(0xb0)]=null,this[_0x1e0e99(0xa4)]!=='presenting'&&this[_0x1e0e99(0xb2)]();}['_handleNewChangeSets'](_0x5d42a9){const _0x2b3dd2=_0x41be65;if(this[_0x2b3dd2(0xa4)]===_0x2b3dd2(0xfc)&&this[_0x2b3dd2(0xb0)]===_0x5d42a9[_0x2b3dd2(0xf3)][_0x2b3dd2(0x137)]){const _0x2dc51e=_0x7b6f2e[_0x2b3dd2(0x10d)](_0x5d42a9[_0x2b3dd2(0xf3)])[_0x2b3dd2(0xec)][_0x2b3dd2(0xe6)]()[_0x2b3dd2(0xb3)](_0x4442a2=>_0x4442a2['id']===_0x40796a['InsertSheetMutation']['id']);if(_0x2dc51e){const _0xb2aca6=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0xc8)],_0x1885b0=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0x9a)]['id'];setTimeout(()=>{const _0x3a233d=_0x2b3dd2;this[_0x3a233d(0xcb)][_0x3a233d(0xa7)](_0x40796a[_0x3a233d(0x12a)]['id'],{'unitId':_0xb2aca6,'subUnitId':_0x1885b0},{'fromCollab':!0x0});});}}}[_0x41be65(0x13f)](){const _0x16ceba=_0x41be65;this[_0x16ceba(0x113)][_0x16ceba(0x140)](_0x16ceba(0x164));const _0x1d443e=new Map(),_0x74dbdd=this['_commandDisposable']=new _0x22843f[(_0x16ceba(0xfd))]();_0x74dbdd[_0x16ceba(0xf1)](_0x22843f[_0x16ceba(0x10c)](()=>{const _0x3e0fe9=_0x16ceba;_0x1d443e[_0x3e0fe9(0x11a)](_0x8841b0=>_0x8841b0[_0x3e0fe9(0xe2)]()),_0x1d443e[_0x3e0fe9(0x167)]();})),_0x74dbdd['add'](this[_0x16ceba(0xcb)][_0x16ceba(0x12f)](_0x43bb48=>{const _0x348003=_0x16ceba;var _0x3c513b;if(_0x43bb48[_0x348003(0xdc)]!==_0x22843f[_0x348003(0x8e)][_0x348003(0xfe)]||!this[_0x348003(0xc0)][_0x348003(0xbe)](_0x43bb48['id']))return;const {id:_0x23afb0}=_0x43bb48;let _0x7e56a5;_0x1d443e[_0x348003(0xa1)](_0x23afb0)?_0x7e56a5=_0x1d443e[_0x348003(0xa6)](_0x23afb0):(_0x7e56a5=new _0xc3b0d0['Subject'](),_0x1d443e['set'](_0x23afb0,_0x7e56a5),_0x7e56a5[_0x348003(0x94)](_0x12ea5d[_0x348003(0x101)]((_0x3c513b=this[_0x348003(0x130)][_0x348003(0x108)](_0x5b6813))!=null?_0x3c513b:_0x345f6f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a556b=>{const _0xb22186=_0x348003;this[_0xb22186(0xbc)][_0xb22186(0x152)]({'eventID':_0x7b6f2e[_0xb22186(0x13a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xb22186(0x106)],'operations':{[_0x2a556b['id']]:{'id':_0x2a556b['id'],'params':JSON[_0xb22186(0x9b)](_0x2a556b[_0xb22186(0xeb)])}}}},this['_unitID']);})),_0x7e56a5[_0x348003(0x140)](_0x43bb48);})),this[_0x16ceba(0xc0)][_0x16ceba(0x138)](this[_0x16ceba(0x106)])['forEach'](_0x3c6609=>this[_0x16ceba(0xbc)][_0x16ceba(0x152)]({'eventID':_0x7b6f2e['CollaborationEvent'][_0x16ceba(0xb5)],'data':{'unitID':this[_0x16ceba(0x106)],'operations':{[_0x3c6609['id']]:{'id':_0x3c6609['id'],'params':JSON[_0x16ceba(0x9b)](_0x3c6609[_0x16ceba(0xeb)])}}}},this[_0x16ceba(0x106)]));}[_0x41be65(0xd4)](){const _0x438215=_0x41be65;var _0x4b7a69;this[_0x438215(0x113)]['next']('idle'),(_0x4b7a69=this[_0x438215(0x99)])==null||_0x4b7a69[_0x438215(0x120)](),this[_0x438215(0x99)]=null;}['_startFollowing'](){const _0x1b2cb8=_0x41be65;var _0x187ca6;(_0x187ca6=this[_0x1b2cb8(0x99)])==null||_0x187ca6['dispose'](),this[_0x1b2cb8(0x113)][_0x1b2cb8(0x140)](_0x1b2cb8(0xfc));}[_0x41be65(0xb2)](){const _0x49b2a8=_0x41be65;var _0x89103d;this['_status$']['next'](_0x49b2a8(0xee)),(_0x89103d=this[_0x49b2a8(0x99)])==null||_0x89103d[_0x49b2a8(0x120)](),this[_0x49b2a8(0x99)]=null;}[_0x41be65(0x139)](){const _0x17c3f6=_0x41be65;var _0xe015bd;this[_0x17c3f6(0x113)]['next'](_0x17c3f6(0x82)),(_0xe015bd=this[_0x17c3f6(0x99)])==null||_0xe015bd[_0x17c3f6(0x120)]();}[_0x41be65(0x14c)](_0x2b051c){const _0x499961=_0x41be65;if([_0x499961(0x164),_0x499961(0x82),'offline'][_0x499961(0x143)](this[_0x499961(0xa4)])||!_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]||_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]===this[_0x499961(0xbc)][_0x499961(0x110)]())return;this[_0x499961(0xa4)]===_0x499961(0xee)&&this[_0x499961(0x109)]();const _0x57089c=_0x2b051c[_0x499961(0xf3)][_0x499961(0x151)];Object['values'](_0x57089c)['forEach'](_0x1b965c=>{const _0x17fff5=_0x499961;this[_0x17fff5(0xcb)][_0x17fff5(0xa7)](_0x1b965c['id'],_0x1b965c['params']?JSON['parse'](_0x1b965c[_0x17fff5(0xeb)]):null,{'fromCollab':!0x0});});}[_0x41be65(0x87)](){const _0xac20f2=_0x41be65;var _0x3230fd;this['_status$'][_0xac20f2(0x140)](_0xac20f2(0x159)),(_0x3230fd=this[_0xac20f2(0x99)])==null||_0x3230fd[_0xac20f2(0x120)]();}[_0x41be65(0x8a)](){const _0x2403d3=_0x41be65;this[_0x2403d3(0x113)][_0x2403d3(0x140)](_0x2403d3(0xee)),this[_0x2403d3(0xde)]();}},_0x337bdf[_0x41be65(0x131)]=_0x2ba73f([_0x19bedc(0x2,_0x22843f['IConfigService']),_0x19bedc(0x3,_0x22843f[_0x41be65(0x102)](_0x5c7e50)),_0x19bedc(0x4,_0x22843f[_0x41be65(0x135)])],_0x337bdf[_0x41be65(0x131)]);function _0x5ae231(){const _0x5ab1fd=_0x41be65,_0x48ddaa=_0x43069c[_0x5ab1fd(0x14d)](_0x337bdf[_0x5ab1fd(0xd1)]),_0x2adf54=_0x43069c[_0x5ab1fd(0x14d)](_0x22843f[_0x5ab1fd(0xe5)]),_0x5651c8=_0x43069c[_0x5ab1fd(0xd0)](()=>_0x2adf54[_0x5ab1fd(0xf6)](_0x22843f['UniverInstanceType'][_0x5ab1fd(0x147)]),void 0x0,!0x1,[]),[_0x2b7943,_0x246b2b]=_0x4af639[_0x5ab1fd(0x96)](null),[_0x1262a1,_0x4558bd]=_0x4af639[_0x5ab1fd(0x96)](_0x119424[_0x5ab1fd(0xaf)]),_0x276c57=_0x4af639['useRef'](null);return _0x4af639[_0x5ab1fd(0x7e)](()=>(_0x5651c8&&_0x48ddaa[_0x5ab1fd(0xf5)](_0x5651c8[_0x5ab1fd(0xef)]())[_0x5ab1fd(0x84)](_0x1dd25c=>{const _0x4ae9d1=_0x5ab1fd;_0x246b2b(_0x1dd25c),_0x276c57[_0x4ae9d1(0x161)]=_0x1dd25c['status$'][_0x4ae9d1(0x13e)](_0x2f76d8=>{_0x4558bd(_0x2f76d8);});}),()=>{const _0x16111e=_0x5ab1fd;var _0x5164f3;(_0x5164f3=_0x276c57[_0x16111e(0x161)])==null||_0x5164f3[_0x16111e(0x10a)](),_0x276c57[_0x16111e(0x161)]=null;}),[_0x5651c8,_0x48ddaa]),_0x2b7943?_0x6ca322[_0x5ab1fd(0x95)](_0x168d28['Dropdown'],{'align':_0x5ab1fd(0x144),'disabled':_0x1262a1===_0x119424['OFFLINE'],'className':_0x5ab1fd(0x129),'overlay':_0x6ca322['jsx'](_0x4386f3,{'status':_0x1262a1,'coordinator':_0x2b7943}),'children':_0x6ca322['jsx'](_0x5ab1fd(0xa0),{'className':_0x168d28[_0x5ab1fd(0xb7)](_0x5ab1fd(0x80),{'univer-cursor-not-allowed':_0x1262a1===_0x119424[_0x5ab1fd(0xc5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1262a1!==_0x119424[_0x5ab1fd(0xc5)]}),'type':_0x5ab1fd(0xa0),'children':_0x6ca322['jsx'](_0x319dcd,{'className':_0x5ab1fd(0xd6)})})}):null;}function _0x4386f3(_0xf26bcc){const _0x441b6b=_0x41be65,{status:_0x18e20e,coordinator:_0x412e80}=_0xf26bcc;switch(_0x18e20e){case _0x119424['IDLE']:return _0x6ca322['jsx'](_0x31a00b,{'coordinator':_0x412e80});case _0x119424['FOLLOWING']:return _0x6ca322[_0x441b6b(0x95)](_0x5bf7c2,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0x8d)]:return _0x6ca322[_0x441b6b(0x95)](_0x4babc4,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0xc5)]:return _0x6ca322[_0x441b6b(0x95)](_0x18430b,{});case _0x119424['PRESENTING']:return _0x6ca322[_0x441b6b(0x95)](_0x4f1823,{'coordinator':_0x412e80});default:return null;}}function _0x31a00b(_0x33a34a){const _0x21c0d3=_0x41be65,{coordinator:_0x319e3f}=_0x33a34a;return _0x6ca322['jsxs'](_0x6ca322[_0x21c0d3(0x145)],{'children':[_0x6ca322[_0x21c0d3(0x95)](_0x21c0d3(0x7c),{'className':_0x21c0d3(0x15d),'children':_0x21c0d3(0x7b)}),_0x6ca322['jsx'](_0x168d28['Button'],{'onClick':()=>_0x319e3f['tryStartPresenting'](),'children':_0x21c0d3(0x156)})]});}function _0x5bf7c2(_0x40d147){const _0x1f302a=_0x41be65,{coordinator:_0x56277f}=_0x40d147;return _0x6ca322['jsxs'](_0x6ca322[_0x1f302a(0x145)],{'children':[_0x6ca322[_0x1f302a(0x95)](_0x1f302a(0x7c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f302a(0x15e)}),_0x6ca322[_0x1f302a(0x95)](_0x168d28[_0x1f302a(0x13c)],{'onClick':()=>_0x56277f[_0x1f302a(0x14e)](),'children':_0x1f302a(0x11d)})]});}function _0x4babc4(_0x20e8e8){const _0x47a374=_0x41be65,{coordinator:_0x54ec67}=_0x20e8e8;return _0x6ca322['jsxs'](_0x6ca322[_0x47a374(0x145)],{'children':[_0x6ca322[_0x47a374(0x95)]('div',{'className':_0x47a374(0x15d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x6ca322[_0x47a374(0x95)](_0x168d28[_0x47a374(0x13c)],{'variant':'text','onClick':()=>_0x54ec67[_0x47a374(0x104)](),'children':_0x47a374(0x148)})]});}function _0x4f1823(_0x2c9715){const _0x4b5ea9=_0x41be65,{coordinator:_0x417a58}=_0x2c9715;return _0x6ca322[_0x4b5ea9(0xb6)](_0x6ca322[_0x4b5ea9(0x145)],{'children':[_0x6ca322['jsx'](_0x4b5ea9(0x7c),{'className':_0x4b5ea9(0x15d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x6ca322[_0x4b5ea9(0x95)](_0x168d28['Button'],{'variant':'default','onClick':()=>_0x417a58[_0x4b5ea9(0x9f)](),'children':_0x4b5ea9(0xd8)})]});}function _0x18430b(){const _0x5b8ef5=_0x41be65;return _0x6ca322[_0x5b8ef5(0x95)](_0x6ca322[_0x5b8ef5(0x145)],{'children':'You\x27are\x20offline.'});}var _0x4b61f7=Object[_0x41be65(0x112)],_0xfb8c5f=(_0x23afb2,_0x46c649,_0x1a1433,_0x2f053c)=>{const _0x358c5c=_0x41be65;for(var _0x59978f=_0x2f053c>0x1?void 0x0:_0x2f053c?_0x4b61f7(_0x46c649,_0x1a1433):_0x46c649,_0x3acaba=_0x23afb2[_0x358c5c(0x81)]-0x1,_0x394875;_0x3acaba>=0x0;_0x3acaba--)(_0x394875=_0x23afb2[_0x3acaba])&&(_0x59978f=_0x394875(_0x59978f)||_0x59978f);return _0x59978f;},_0x3ab9f5=(_0x47ada7,_0x2f2c22)=>(_0x20962c,_0x3022e2)=>_0x2f2c22(_0x20962c,_0x3022e2,_0x47ada7);_0x337bdf[_0x41be65(0xbf)]=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x5371eb,_0x4776f3){const _0x44e4bd=_0x41be65;super(),this[_0x44e4bd(0xc3)]=_0x5371eb,this[_0x44e4bd(0xbb)]=_0x4776f3,this[_0x44e4bd(0x11e)]();}[_0x41be65(0x11e)](){const _0x1174a9=_0x41be65;this[_0x1174a9(0xab)](this[_0x1174a9(0xbb)]['registerComponent'](_0x43069c[_0x1174a9(0x119)][_0x1174a9(0xe9)],()=>_0x43069c['connectInjector'](_0x5ae231,this[_0x1174a9(0xc3)])));}},_0x337bdf[_0x41be65(0xbf)]=_0xfb8c5f([_0x3ab9f5(0x0,_0x22843f[_0x41be65(0x102)](_0x22843f['Injector'])),_0x3ab9f5(0x1,_0x43069c[_0x41be65(0xce)])],_0x337bdf['DesktopLiveShareController']);const _0x22248e=_0x41be65(0xa2),_0x42f49f={};var _0x5de725=Object[_0x41be65(0x112)],_0x3023de=(_0x10f12c,_0x1bedb,_0x4f07bc,_0x3bfc28)=>{const _0x31d009=_0x41be65;for(var _0x3099e7=_0x3bfc28>0x1?void 0x0:_0x3bfc28?_0x5de725(_0x1bedb,_0x4f07bc):_0x1bedb,_0x2447af=_0x10f12c[_0x31d009(0x81)]-0x1,_0x22ee3c;_0x2447af>=0x0;_0x2447af--)(_0x22ee3c=_0x10f12c[_0x2447af])&&(_0x3099e7=_0x22ee3c(_0x3099e7)||_0x3099e7);return _0x3099e7;},_0x1a7859=(_0x51fc9e,_0xbdb792)=>(_0x50df1c,_0x2540ec)=>_0xbdb792(_0x50df1c,_0x2540ec,_0x51fc9e);let _0x469b14=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x304e9b){const _0x41a410=_0x41be65;super(),this['_liveShareService']=_0x304e9b,this[_0x41a410(0x12e)]();}[_0x41be65(0x12e)](){const _0x23f1a8=_0x41be65;[_0x5857a0['SetZoomRatioOperation']['id'],_0x5857a0['SetScrollOperation']['id'],_0x40796a[_0x23f1a8(0x12a)]['id']][_0x23f1a8(0x11a)](_0x5ea345=>{const _0x1e8d36=_0x23f1a8;this['disposeWithMe'](this[_0x1e8d36(0xc0)][_0x1e8d36(0xfa)](_0x5ea345));});}};_0x469b14=_0x3023de([_0x1a7859(0x0,_0x22843f['Inject'](_0x5c7e50))],_0x469b14);var _0x22e280=Object['defineProperty'],_0x1b802c=Object[_0x41be65(0x112)],_0x28637d=(_0x40d8cc,_0x1f6c55,_0x102e63)=>_0x1f6c55 in _0x40d8cc?_0x22e280(_0x40d8cc,_0x1f6c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102e63}):_0x40d8cc[_0x1f6c55]=_0x102e63,_0x220cbd=(_0x7e64ac,_0xed572c,_0x452a3e,_0x317e48)=>{const _0x494e69=_0x41be65;for(var _0x561b72=_0x317e48>0x1?void 0x0:_0x317e48?_0x1b802c(_0xed572c,_0x452a3e):_0xed572c,_0x3dae0b=_0x7e64ac[_0x494e69(0x81)]-0x1,_0x541a84;_0x3dae0b>=0x0;_0x3dae0b--)(_0x541a84=_0x7e64ac[_0x3dae0b])&&(_0x561b72=_0x541a84(_0x561b72)||_0x561b72);return _0x561b72;},_0x74170=(_0x3c3a98,_0x2ec1ee)=>(_0x251823,_0x22d159)=>_0x2ec1ee(_0x251823,_0x22d159,_0x3c3a98),_0x44fde6=(_0x242aa4,_0x1128c1,_0x26ba84)=>_0x28637d(_0x242aa4,typeof _0x1128c1!=_0x41be65(0x83)?_0x1128c1+'':_0x1128c1,_0x26ba84);const _0x4d2ca5='UNIVER_LIVE_SHARE_PLUGIN';_0x337bdf[_0x41be65(0x132)]=class extends _0x22843f[_0x41be65(0xc2)]{constructor(_0x92fbc=_0x42f49f,_0x4d2cba,_0x2cdc6d){const _0x5a60e0=_0x41be65;super(),this[_0x5a60e0(0xf4)]=_0x92fbc,this[_0x5a60e0(0xc3)]=_0x4d2cba,this[_0x5a60e0(0x130)]=_0x2cdc6d;const {..._0x5524da}=_0x22843f['merge']({},_0x42f49f,this[_0x5a60e0(0xf4)]);this[_0x5a60e0(0x130)][_0x5a60e0(0x90)](_0x22248e,_0x5524da);}[_0x41be65(0x13d)](){const _0x38f0b0=_0x41be65;_0x22843f['registerDependencies'](this['_injector'],_0x22843f[_0x38f0b0(0x10e)]([[_0x5c7e50],[_0x337bdf[_0x38f0b0(0xd1)]],[_0x469b14],[_0x337bdf['DesktopLiveShareController']]],this[_0x38f0b0(0xf4)][_0x38f0b0(0xed)])),_0x22843f[_0x38f0b0(0x146)](this[_0x38f0b0(0xc3)],[[_0x469b14]]);}[_0x41be65(0x14b)](){const _0x3f2499=_0x41be65;_0x22843f[_0x3f2499(0x146)](this[_0x3f2499(0xc3)],[[_0x337bdf[_0x3f2499(0xbf)]]]);}},_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0xdc),_0x22843f[_0x41be65(0x133)][_0x41be65(0xcc)]),_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0x153),_0x4d2ca5),_0x337bdf[_0x41be65(0x132)]=_0x220cbd([_0x22843f[_0x41be65(0xd7)](_0x48621c[_0x41be65(0x91)]),_0x74170(0x1,_0x22843f[_0x41be65(0x102)](_0x22843f[_0x41be65(0xa8)])),_0x74170(0x2,_0x22843f[_0x41be65(0x7a)])],_0x337bdf[_0x41be65(0x132)]),_0x337bdf[_0x41be65(0x85)]=_0x5ae231,_0x337bdf['LiveShareService']=_0x5c7e50,_0x337bdf['LiveShareStatus']=_0x119424,Object[_0x41be65(0x162)](_0x337bdf,Symbol[_0x41be65(0x128)],{'value':_0x41be65(0x122)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.2-experimental.
|
|
3
|
+
"version": "0.12.2-experimental.20251202-45172c6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.2-experimental.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-ui": "0.12.2-experimental.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-experimental.20251202-45172c6",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.2-experimental.20251202-45172c6",
|
|
62
|
+
"@univerjs/core": "0.12.2-experimental.20251202-45172c6",
|
|
63
|
+
"@univerjs/design": "0.12.2-experimental.20251202-45172c6",
|
|
64
|
+
"@univerjs/engine-render": "0.12.2-experimental.20251202-45172c6",
|
|
65
|
+
"@univerjs/sheets": "0.12.2-experimental.20251202-45172c6",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.2-experimental.20251202-45172c6",
|
|
67
|
+
"@univerjs/ui": "0.12.2-experimental.20251202-45172c6"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|