@univerjs-pro/live-share 0.12.4-experimental.20251210-29c379a → 0.12.4-insiders.20251211-c28f914
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';const _0x1a73b3=_0x39a5;(function(_0x5baca1,_0x4633bf){const _0x7cf5a9=_0x39a5,_0x31d99a=_0x5baca1();while(!![]){try{const _0x235df4=-parseInt(_0x7cf5a9(0x189))/0x1*(-parseInt(_0x7cf5a9(0x181))/0x2)+parseInt(_0x7cf5a9(0x184))/0x3*(parseInt(_0x7cf5a9(0x197))/0x4)+parseInt(_0x7cf5a9(0x18f))/0x5*(parseInt(_0x7cf5a9(0x1a8))/0x6)+parseInt(_0x7cf5a9(0x195))/0x7*(-parseInt(_0x7cf5a9(0x18a))/0x8)+-parseInt(_0x7cf5a9(0x19a))/0x9*(-parseInt(_0x7cf5a9(0x185))/0xa)+parseInt(_0x7cf5a9(0x19f))/0xb*(parseInt(_0x7cf5a9(0x183))/0xc)+parseInt(_0x7cf5a9(0x1a4))/0xd*(-parseInt(_0x7cf5a9(0x1a5))/0xe);if(_0x235df4===_0x4633bf)break;else _0x31d99a['push'](_0x31d99a['shift']());}catch(_0x3a4958){_0x31d99a['push'](_0x31d99a['shift']());}}}(_0x5d7b,0xe2b31));function _0x39a5(_0x5d118b,_0x4074ba){_0x5d118b=_0x5d118b-0x17e;const _0x5d7b7d=_0x5d7b();let _0x39a5d7=_0x5d7b7d[_0x5d118b];return _0x39a5d7;}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[_0x1a73b3(0x188)]{[_0x1a73b3(0x182)](_0x529fa3,_0x3471f1,_0x573c54,_0x56b6de,_0x1b7928){const _0x9d49bf=_0x1a73b3,_0x516e82=_0x529fa3[_0x9d49bf(0x180)](n['LiveShareController']),_0x183def=_0x529fa3[_0x9d49bf(0x180)](g[_0x9d49bf(0x1a9)]),_0x99172c=_0x3471f1[_0x9d49bf(0x19b)](),_0x3b4479=_0x3471f1[_0x9d49bf(0x19e)](),_0x4e4253=_0x516e82[_0x9d49bf(0x192)](_0x99172c);(_0x4e4253==null?void 0x0:_0x4e4253[_0x9d49bf(0x1aa)]())!==n[_0x9d49bf(0x17e)][_0x9d49bf(0x17f)]||(_0x573c54[_0x9d49bf(0x1a6)]()!==_0x3b4479[_0x9d49bf(0x1a6)]()&&this[_0x9d49bf(0x18c)][_0x9d49bf(0x186)](u[_0x9d49bf(0x193)]['id'],{'unitId':_0x99172c,'subUnitId':_0x573c54[_0x9d49bf(0x1a6)]()}),!_0x183def[_0x9d49bf(0x199)](_0x99172c))||_0x1b7928['syncExecuteCommand'](f[_0x9d49bf(0x18b)]['id'],{'unitId':_0x3471f1[_0x9d49bf(0x19b)](),'sheetId':_0x573c54[_0x9d49bf(0x1a6)](),'sheetViewStartRow':_0x56b6de[_0x9d49bf(0x1ab)],'sheetViewStartColumn':_0x56b6de[_0x9d49bf(0x1a1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x5d7b(){const _0x4af0c7=['executeCommand','getId','FRange','5495VjxgAj','64PKmTMt','SetScrollOperation','_commandService','stopFollowing','FEnum','65KsHqWQ','No\x20active\x20workbook\x20found.','extend','getLiveShareCoordinatorSync','SetWorksheetActiveOperation','startFollowing','177401ZqOyGK','getActiveWorkbook','12fiTNvj','_injector','getRenderById','131139XlxjWj','getUnitId','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveSheet','808137vCkAUL','FUniver','startColumn','tryStartPresenting','LiveShareController','598533RhQGsV','462xrvPzO','getSheetId','stopPresenting','193554pdsFQF','IRenderManagerService','getStatus','startRow','startPresenting','LiveShareStatus','PRESENTING','get','68rYYKTC','_initialize','60gOjjyX','467733MJFbtu','830BzzfzW'];_0x5d7b=function(){return _0x4af0c7;};return _0x5d7b();}d[_0x1a73b3(0x188)][_0x1a73b3(0x191)](w);class C extends a[_0x1a73b3(0x1a0)]{[_0x1a73b3(0x19c)](){const _0x4f0b72=_0x1a73b3;var _0xb8c31e,_0x435c25;const _0x3ce10f=this[_0x4f0b72(0x198)][_0x4f0b72(0x180)](n[_0x4f0b72(0x1a3)]),_0x565dfe=(_0xb8c31e=this[_0x4f0b72(0x196)]())==null?void 0x0:_0xb8c31e['getId']();if(!_0x565dfe)throw new Error(_0x4f0b72(0x190));const _0x22c0e6=_0x3ce10f[_0x4f0b72(0x192)](_0x565dfe);return(_0x435c25=_0x22c0e6==null?void 0x0:_0x22c0e6['getStatus']())!=null?_0x435c25:n['LiveShareStatus']['IDLE'];}[_0x1a73b3(0x194)](){const _0x4c3981=_0x1a73b3;var _0x3c4d0b;const _0x1555f1=this[_0x4c3981(0x198)]['get'](n[_0x4c3981(0x1a3)]),_0x28ecb4=(_0x3c4d0b=this['getActiveWorkbook']())==null?void 0x0:_0x3c4d0b[_0x4c3981(0x187)]();if(!_0x28ecb4)throw new Error(_0x4c3981(0x190));const _0x358e44=_0x1555f1[_0x4c3981(0x192)](_0x28ecb4);if(!_0x358e44)throw new Error(_0x4c3981(0x19d));_0x358e44['startFollowing']();}[_0x1a73b3(0x18d)](){const _0x4d8bd0=_0x1a73b3;var _0xbb3b8c;const _0x520eb5=this['_injector']['get'](n[_0x4d8bd0(0x1a3)]),_0x5f1216=(_0xbb3b8c=this[_0x4d8bd0(0x196)]())==null?void 0x0:_0xbb3b8c['getId']();if(!_0x5f1216)throw new Error(_0x4d8bd0(0x190));const _0x3483da=_0x520eb5[_0x4d8bd0(0x192)](_0x5f1216);if(!_0x3483da)throw new Error(_0x4d8bd0(0x19d));_0x3483da[_0x4d8bd0(0x18d)]();}[_0x1a73b3(0x1ac)](){const _0x23b2be=_0x1a73b3;var _0x339d8b;const _0x1dfc84=this[_0x23b2be(0x198)][_0x23b2be(0x180)](n[_0x23b2be(0x1a3)]),_0x1e622b=(_0x339d8b=this[_0x23b2be(0x196)]())==null?void 0x0:_0x339d8b['getId']();if(!_0x1e622b)throw new Error('No\x20active\x20workbook\x20found.');const _0x10d58f=_0x1dfc84[_0x23b2be(0x192)](_0x1e622b);if(!_0x10d58f)throw new Error(_0x23b2be(0x19d));_0x10d58f[_0x23b2be(0x1a2)]();}['stopPresenting'](){const _0x289898=_0x1a73b3;var _0x10f0c0;const _0xbc328d=this[_0x289898(0x198)]['get'](n[_0x289898(0x1a3)]),_0x35c556=(_0x10f0c0=this[_0x289898(0x196)]())==null?void 0x0:_0x10f0c0[_0x289898(0x187)]();if(!_0x35c556)throw new Error(_0x289898(0x190));const _0x247fe6=_0xbc328d[_0x289898(0x192)](_0x35c556);if(!_0x247fe6)throw new Error(_0x289898(0x19d));_0x247fe6[_0x289898(0x1a7)]();}}a[_0x1a73b3(0x1a0)][_0x1a73b3(0x191)](C);class L extends a[_0x1a73b3(0x18e)]{get['LiveShareStatusEnum'](){const _0x183d8f=_0x1a73b3;return n[_0x183d8f(0x17e)];}}a[_0x1a73b3(0x18e)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x480436=_0x4c99;(function(_0x3ba62,_0x1705fc){const _0x51b51a=_0x4c99,_0x5b78ed=_0x3ba62();while(!![]){try{const _0x40eda3=-parseInt(_0x51b51a(0x25d))/0x1*(-parseInt(_0x51b51a(0x2b1))/0x2)+parseInt(_0x51b51a(0x28f))/0x3*(parseInt(_0x51b51a(0x1ed))/0x4)+-parseInt(_0x51b51a(0x213))/0x5*(-parseInt(_0x51b51a(0x2a5))/0x6)+-parseInt(_0x51b51a(0x234))/0x7+parseInt(_0x51b51a(0x20e))/0x8*(-parseInt(_0x51b51a(0x271))/0x9)+-parseInt(_0x51b51a(0x203))/0xa*(parseInt(_0x51b51a(0x211))/0xb)+parseInt(_0x51b51a(0x240))/0xc;if(_0x40eda3===_0x1705fc)break;else _0x5b78ed['push'](_0x5b78ed['shift']());}catch(_0x346aa2){_0x5b78ed['push'](_0x5b78ed['shift']());}}}(_0x2906,0xaf586));var T=Object['defineProperty'],U=(_0x366e1a,_0x4233b3,_0x311380)=>_0x4233b3 in _0x366e1a?T(_0x366e1a,_0x4233b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x311380}):_0x366e1a[_0x4233b3]=_0x311380,_=(_0x5a3323,_0x3ed348,_0x3bcde7)=>U(_0x5a3323,typeof _0x3ed348!='symbol'?_0x3ed348+'':_0x3ed348,_0x3bcde7);Object[_0x480436(0x216)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x4609d9,..._0x2d055e}){const _0x3dd1ca=_0x480436,{icon:_0x35eab3,id:_0x5468ea,className:_0x38c087,extend:_0x10d6fd,..._0x4feef7}=_0x2d055e,_0x425a2b=(_0x3dd1ca(0x235)+_0x5468ea+'\x20'+(_0x38c087||''))[_0x3dd1ca(0x290)](),_0x168204=v[_0x3dd1ca(0x20c)]('_'+H());return j(_0x35eab3,''+_0x5468ea,{'defIds':_0x35eab3['defIds'],'idSuffix':_0x168204['current']},{'ref':_0x4609d9,'className':_0x425a2b,..._0x4feef7},_0x10d6fd);}function j(_0x114611,_0x5bf324,_0x28f602,_0x1d9e6a,_0x2e5242){const _0x5770b4=_0x480436;return v['createElement'](_0x114611['tag'],{'key':_0x5bf324,...y(_0x114611,_0x28f602,_0x2e5242),..._0x1d9e6a},(F(_0x114611,_0x28f602)[_0x5770b4(0x28a)]||[])['map']((_0x5de92f,_0x26b37e)=>j(_0x5de92f,_0x5bf324+'-'+_0x114611[_0x5770b4(0x229)]+'-'+_0x26b37e,_0x28f602,void 0x0,_0x2e5242)));}function y(_0x4da06c,_0x44f9b6,_0x292774){const _0x855dd7=_0x480436,_0x101a66={..._0x4da06c[_0x855dd7(0x22d)]};_0x292774!=null&&_0x292774[_0x855dd7(0x1f1)]&&_0x101a66[_0x855dd7(0x20d)]===_0x855dd7(0x1f1)&&(_0x101a66[_0x855dd7(0x20d)]=_0x292774['colorChannel1']),_0x4da06c[_0x855dd7(0x229)]===_0x855dd7(0x264)&&_0x101a66['id']&&(_0x101a66['id']=_0x101a66['id']+_0x44f9b6[_0x855dd7(0x1fe)]),Object['entries'](_0x101a66)[_0x855dd7(0x23d)](([_0x373fc5,_0x3d8ee1])=>{const _0x235128=_0x855dd7;_0x373fc5===_0x235128(0x264)&&typeof _0x3d8ee1==_0x235128(0x242)&&(_0x101a66[_0x373fc5]=_0x3d8ee1[_0x235128(0x228)](/url\(#(.*)\)/,_0x235128(0x1ec)+_0x44f9b6[_0x235128(0x1fe)]+')'));});const {defIds:_0x35506b}=_0x44f9b6;return!_0x35506b||_0x35506b['length']===0x0||(_0x4da06c['tag']==='use'&&_0x101a66[_0x855dd7(0x267)]&&(_0x101a66[_0x855dd7(0x267)]=_0x101a66[_0x855dd7(0x267)]+_0x44f9b6[_0x855dd7(0x1fe)]),Object[_0x855dd7(0x28c)](_0x101a66)[_0x855dd7(0x23d)](([_0x5f2418,_0x5de26a])=>{const _0x38d267=_0x855dd7;typeof _0x5de26a==_0x38d267(0x242)&&(_0x101a66[_0x5f2418]=_0x5de26a[_0x38d267(0x228)](/url\(#(.*)\)/,'url(#$1'+_0x44f9b6[_0x38d267(0x1fe)]+')'));})),_0x101a66;}function F(_0x28b192,_0x5ad15f){const _0x53a7f8=_0x480436;var _0x2ee943;const {defIds:_0x58bf3f}=_0x5ad15f;return!_0x58bf3f||_0x58bf3f['length']===0x0?_0x28b192:_0x28b192[_0x53a7f8(0x229)]===_0x53a7f8(0x258)&&((_0x2ee943=_0x28b192['children'])!=null&&_0x2ee943[_0x53a7f8(0x21b)])?{..._0x28b192,'children':_0x28b192[_0x53a7f8(0x28a)][_0x53a7f8(0x238)](_0x5b878c=>typeof _0x5b878c[_0x53a7f8(0x22d)]['id']==_0x53a7f8(0x242)&&_0x58bf3f&&_0x58bf3f[_0x53a7f8(0x1f4)](_0x5b878c[_0x53a7f8(0x22d)]['id'])?{..._0x5b878c,'attrs':{..._0x5b878c['attrs'],'id':_0x5b878c[_0x53a7f8(0x22d)]['id']+_0x5ad15f[_0x53a7f8(0x1fe)]}}:_0x5b878c)}:_0x28b192;}function H(){const _0x1d71ed=_0x480436;return Math[_0x1d71ed(0x269)]()[_0x1d71ed(0x25e)](0x24)['substring'](0x2,0x8);}x[_0x480436(0x1ef)]=_0x480436(0x2b3);const V={'tag':_0x480436(0x2ac),'attrs':{'xmlns':_0x480436(0x24c),'fill':_0x480436(0x270),'viewBox':_0x480436(0x21d),'width':_0x480436(0x20f),'height':_0x480436(0x20f)},'children':[{'tag':_0x480436(0x29b),'attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x2ab)}},{'tag':'path','attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x24f),'fillRule':_0x480436(0x1ff),'clipRule':_0x480436(0x1ff)}}]},R=v['forwardRef'](function(_0x9b7189,_0x2ef559){const _0x298f5a=_0x480436;return v[_0x298f5a(0x2b8)](x,Object[_0x298f5a(0x252)]({},_0x9b7189,{'id':_0x298f5a(0x1fb),'ref':_0x2ef559,'icon':V}));});R[_0x480436(0x1ef)]=_0x480436(0x2b5);class E extends o[_0x480436(0x230)]{constructor(){const _0x51c5a2=_0x480436;super(...arguments),_(this,_0x51c5a2(0x1fc),new Set()),_(this,_0x51c5a2(0x2bd),new Set());}[_0x480436(0x282)](_0xee8744){const _0x4d4a55=_0x480436;return this[_0x4d4a55(0x1fc)][_0x4d4a55(0x26f)](_0xee8744),o['toDisposable'](()=>this[_0x4d4a55(0x1fc)][_0x4d4a55(0x255)](_0xee8744));}[_0x480436(0x23c)](_0x49e5dd){const _0x49984c=_0x480436;return this[_0x49984c(0x2bd)][_0x49984c(0x26f)](_0x49e5dd),o['toDisposable'](()=>this['_reporters'][_0x49984c(0x255)](_0x49e5dd));}[_0x480436(0x28b)](_0x174917){const _0x392ac1=_0x480436;return this[_0x392ac1(0x1fc)]['has'](_0x174917);}['getInitialStates'](_0x64f60d){const _0x4a15c5=_0x480436;return Array[_0x4a15c5(0x263)](this[_0x4a15c5(0x2bd)])[_0x4a15c5(0x238)](_0x4515b3=>_0x4515b3(_0x64f60d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x189c14,_0x4a3027,_0x5c5c0f,_0x272a4f)=>{const _0x39e9b7=_0x480436;for(var _0x382e84=_0x272a4f>0x1?void 0x0:_0x272a4f?M(_0x4a3027,_0x5c5c0f):_0x4a3027,_0x4b56ff=_0x189c14[_0x39e9b7(0x21b)]-0x1,_0x5e0539;_0x4b56ff>=0x0;_0x4b56ff--)(_0x5e0539=_0x189c14[_0x4b56ff])&&(_0x382e84=_0x5e0539(_0x382e84)||_0x382e84);return _0x382e84;},S=(_0x49a39f,_0x2c48a2)=>(_0x1c0dc5,_0x25bbd5)=>_0x2c48a2(_0x1c0dc5,_0x25bbd5,_0x49a39f);exports[_0x480436(0x29a)]=class extends o['RxDisposable']{constructor(_0x1e2823,_0x1b2dfb,_0x155775){const _0xc523fe=_0x480436;super(),_(this,_0xc523fe(0x2b6),new Map()),(this[_0xc523fe(0x22f)]=_0x1e2823,this['_injector']=_0x1b2dfb,this[_0xc523fe(0x1f6)]=_0x155775,this[_0xc523fe(0x285)]());}async[_0x480436(0x253)](_0x2c5336){const _0x192fbd=_0x480436;return this['_entities'][_0x192fbd(0x25b)](_0x2c5336)||await this[_0x192fbd(0x23e)](_0x2c5336),this[_0x192fbd(0x2b6)][_0x192fbd(0x210)](_0x2c5336);}['getLiveShareCoordinatorSync'](_0x1aac15){const _0x46c9b5=_0x480436;var _0x3c828f;return(_0x3c828f=this[_0x46c9b5(0x2b6)][_0x46c9b5(0x210)](_0x1aac15))!=null?_0x3c828f:null;}['_init'](){const _0x1fffcb=_0x480436;this[_0x1fffcb(0x22f)]['getTypeOfUnitAdded$'](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this['dispose$']))['subscribe'](async _0x2b4484=>{const _0x5d4966=_0x1fffcb,_0x339906=_0x2b4484['getUnitId']();this[_0x5d4966(0x2b6)][_0x5d4966(0x25b)](_0x339906)||this[_0x5d4966(0x23e)](_0x339906);}),this[_0x1fffcb(0x22f)][_0x1fffcb(0x2b2)](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this[_0x1fffcb(0x1e6)]))[_0x1fffcb(0x27e)](_0x393840=>{const _0x5dadcc=_0x1fffcb,_0x99dd0=_0x393840['getUnitId'](),_0x54eb2e=this[_0x5dadcc(0x2b6)]['get'](_0x99dd0);_0x54eb2e==null||_0x54eb2e[_0x5dadcc(0x273)]();});}async['_startLiveShareCoordinator'](_0x192be4){const _0x18219c=_0x480436,_0x5cc0c8=await this[_0x18219c(0x1f6)][_0x18219c(0x2bc)](_0x192be4),_0x19877f=this['_injector'][_0x18219c(0x243)](exports[_0x18219c(0x219)],_0x192be4,_0x5cc0c8);return _0x19877f['init'](),this[_0x18219c(0x2b6)]['set'](_0x192be4,_0x19877f),_0x19877f;}},exports[_0x480436(0x29a)]=P([S(0x0,o[_0x480436(0x21a)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x480436(0x2b9)]))],exports[_0x480436(0x29a)]);var u=(_0x5f55aa=>(_0x5f55aa[_0x480436(0x287)]=_0x480436(0x24a),_0x5f55aa[_0x480436(0x29f)]='idle',_0x5f55aa[_0x480436(0x297)]='following',_0x5f55aa['NOT_FOLLOWING']='not-following',_0x5f55aa['PRESENTING']=_0x480436(0x278),_0x5f55aa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x480436(0x219)]=class extends o[_0x480436(0x277)]{constructor(_0x3d77c7,_0x1bfcd6,_0x16174e,_0x551b33,_0x224a52){const _0xf3507e=_0x480436;super(),_(this,_0xf3507e(0x239),new O[(_0xf3507e(0x2a0))](_0xf3507e(0x1f5))),_(this,_0xf3507e(0x27c),this[_0xf3507e(0x239)][_0xf3507e(0x2b4)]()),_(this,'_init',!0x1),_(this,_0xf3507e(0x2aa),null),_(this,_0xf3507e(0x27f),null),(this[_0xf3507e(0x28e)]=_0x3d77c7,this[_0xf3507e(0x2bb)]=_0x1bfcd6,this[_0xf3507e(0x2ba)]=_0x16174e,this['_liveShareService']=_0x551b33,this['_commandService']=_0x224a52);}get[_0x480436(0x29d)](){const _0x5414a2=_0x480436;return this['_status$'][_0x5414a2(0x206)]();}[_0x480436(0x273)](){const _0x500e97=_0x480436;var _0x38eb2c;(_0x38eb2c=this[_0x500e97(0x2aa)])==null||_0x38eb2c[_0x500e97(0x273)](),this['_status$'][_0x500e97(0x217)]('idle'),this['_status$']['complete']();}['getStatus'](){const _0x1433e6=_0x480436;return this[_0x1433e6(0x29d)];}['init'](){const _0xb290c7=_0x480436;this[_0xb290c7(0x285)]||(this[_0xb290c7(0x285)]=!0x0,this[_0xb290c7(0x2bb)][_0xb290c7(0x1f3)][_0xb290c7(0x2a4)](I['takeUntil'](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x55525b=>{const _0x8a639b=_0xb290c7;switch(_0x55525b){case b[_0x8a639b(0x247)][_0x8a639b(0x287)]:this[_0x8a639b(0x28d)]();break;case b[_0x8a639b(0x247)]['ONLINE']:this[_0x8a639b(0x22e)]();break;}}),this[_0xb290c7(0x2bb)][_0xb290c7(0x222)]['pipe'](I[_0xb290c7(0x27b)](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x261ebc=>{const _0x175891=_0xb290c7,{eventID:_0x17dc23}=_0x261ebc;switch(_0x17dc23){case d['CollaborationEvent'][_0x175891(0x245)]:this[_0x175891(0x20b)](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x21f)]:this['_handleOperation'](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x200)]:this[_0x175891(0x232)]();break;case d['CollaborationEvent'][_0x175891(0x1f9)]:this[_0x175891(0x288)](_0x261ebc);break;}}));}[_0x480436(0x283)](){const _0x2be376=_0x480436;this[_0x2be376(0x2bb)][_0x2be376(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2be376(0x28e)],'userID':this[_0x2be376(0x2bb)][_0x2be376(0x261)]()}},this['_unitID']);}[_0x480436(0x227)](){const _0x37a0f3=_0x480436;this[_0x37a0f3(0x29d)]==='presenting'&&(this[_0x37a0f3(0x239)]['next'](_0x37a0f3(0x1f5)),this[_0x37a0f3(0x2bb)][_0x37a0f3(0x260)]({'eventID':d[_0x37a0f3(0x246)][_0x37a0f3(0x200)],'data':{'unitID':this['_unitID']}},this[_0x37a0f3(0x28e)]));}['startFollowing'](){const _0x227fa0=_0x480436;this[_0x227fa0(0x29d)]===_0x227fa0(0x233)&&(this[_0x227fa0(0x239)]['next']('following'),this[_0x227fa0(0x26b)]());}[_0x480436(0x268)](){const _0xaa0cd2=_0x480436;this[_0xaa0cd2(0x29d)]===_0xaa0cd2(0x2ad)&&this[_0xaa0cd2(0x27d)]();}['_handleNewHost'](_0x2961ed){const _0x26be98=_0x480436,{presenter:_0x4ad6ee}=_0x2961ed['data'],_0x485dc8=this[_0x26be98(0x2bb)]['getMemberID']();this[_0x26be98(0x27f)]=_0x4ad6ee,_0x4ad6ee===_0x485dc8?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x26be98(0x29d)]!=='not-following'&&(this[_0x26be98(0x201)](),this[_0x26be98(0x26b)]());}[_0x480436(0x1f0)](){const _0x518748=_0x480436,_0x429c6c={'eventID':d[_0x518748(0x246)][_0x518748(0x2af)]};this[_0x518748(0x2bb)]['send'](_0x429c6c,this['_unitID']);}[_0x480436(0x232)](){const _0x3e31f2=_0x480436;this[_0x3e31f2(0x27f)]=null,this['_status']!==_0x3e31f2(0x278)&&this[_0x3e31f2(0x212)]();}[_0x480436(0x288)](_0x29b603){const _0x3301e2=_0x480436;if(this[_0x3301e2(0x29d)]===_0x3301e2(0x2ad)&&this['_presenter']===_0x29b603[_0x3301e2(0x29c)][_0x3301e2(0x248)]){const _0xc07d77=d[_0x3301e2(0x251)](_0x29b603[_0x3301e2(0x29c)])['mutations'][_0x3301e2(0x256)]()[_0x3301e2(0x224)](_0x506ac4=>_0x506ac4['id']===C[_0x3301e2(0x207)]['id']);if(_0xc07d77){const _0x1e8270=_0xc07d77[_0x3301e2(0x249)][_0x3301e2(0x1f7)],_0xe193ef=_0xc07d77['params'][_0x3301e2(0x2a6)]['id'];setTimeout(()=>{const _0xb8c779=_0x3301e2;this[_0xb8c779(0x294)][_0xb8c779(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e8270,'subUnitId':_0xe193ef},{'fromCollab':!0x0});});}}}[_0x480436(0x24e)](){const _0x8cd83b=_0x480436;this[_0x8cd83b(0x239)][_0x8cd83b(0x217)]('presenting');const _0x52073f=new Map(),_0x3b1938=this['_commandDisposable']=new o[(_0x8cd83b(0x209))]();_0x3b1938['add'](o[_0x8cd83b(0x2b0)](()=>{const _0x5876d4=_0x8cd83b;_0x52073f[_0x5876d4(0x23d)](_0x1862f9=>_0x1862f9[_0x5876d4(0x291)]()),_0x52073f[_0x5876d4(0x231)]();})),_0x3b1938['add'](this[_0x8cd83b(0x294)][_0x8cd83b(0x25a)](_0x130d8c=>{const _0xc0ebd0=_0x8cd83b;var _0x2f46a8;if(_0x130d8c[_0xc0ebd0(0x279)]!==o[_0xc0ebd0(0x280)][_0xc0ebd0(0x236)]||!this[_0xc0ebd0(0x244)][_0xc0ebd0(0x28b)](_0x130d8c['id']))return;const {id:_0x336354}=_0x130d8c;let _0x353401;_0x52073f[_0xc0ebd0(0x25b)](_0x336354)?_0x353401=_0x52073f[_0xc0ebd0(0x210)](_0x336354):(_0x353401=new O['Subject'](),_0x52073f[_0xc0ebd0(0x1f2)](_0x336354,_0x353401),_0x353401['pipe'](I[_0xc0ebd0(0x22c)]((_0x2f46a8=this[_0xc0ebd0(0x2ba)]['getConfig'](k))!=null?_0x2f46a8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xc0ebd0(0x27e)](_0x4551fc=>{const _0x150a0d=_0xc0ebd0;this[_0x150a0d(0x2bb)][_0x150a0d(0x260)]({'eventID':d[_0x150a0d(0x246)][_0x150a0d(0x21f)],'data':{'unitID':this[_0x150a0d(0x28e)],'operations':{[_0x4551fc['id']]:{'id':_0x4551fc['id'],'params':JSON[_0x150a0d(0x23f)](_0x4551fc[_0x150a0d(0x249)])}}}},this[_0x150a0d(0x28e)]);})),_0x353401[_0xc0ebd0(0x217)](_0x130d8c);})),this[_0x8cd83b(0x244)][_0x8cd83b(0x276)](this[_0x8cd83b(0x28e)])[_0x8cd83b(0x23d)](_0xf586a3=>this[_0x8cd83b(0x2bb)][_0x8cd83b(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x8cd83b(0x28e)],'operations':{[_0xf586a3['id']]:{'id':_0xf586a3['id'],'params':JSON[_0x8cd83b(0x23f)](_0xf586a3[_0x8cd83b(0x249)])}}}},this[_0x8cd83b(0x28e)]));}[_0x480436(0x201)](){const _0x582bab=_0x480436;var _0xe8c3d;this[_0x582bab(0x239)]['next'](_0x582bab(0x1f5)),(_0xe8c3d=this[_0x582bab(0x2aa)])==null||_0xe8c3d['dispose'](),this[_0x582bab(0x2aa)]=null;}[_0x480436(0x26b)](){const _0x124149=_0x480436;var _0x10445f;(_0x10445f=this[_0x124149(0x2aa)])==null||_0x10445f[_0x124149(0x273)](),this['_status$'][_0x124149(0x217)](_0x124149(0x2ad));}[_0x480436(0x212)](){const _0x168baf=_0x480436;var _0xf50e0;this[_0x168baf(0x239)][_0x168baf(0x217)](_0x168baf(0x1f5)),(_0xf50e0=this[_0x168baf(0x2aa)])==null||_0xf50e0[_0x168baf(0x273)](),this[_0x168baf(0x2aa)]=null;}[_0x480436(0x27d)](){const _0x2289a1=_0x480436;var _0x1e1f38;this[_0x2289a1(0x239)][_0x2289a1(0x217)](_0x2289a1(0x233)),(_0x1e1f38=this['_commandDisposable'])==null||_0x1e1f38['dispose']();}[_0x480436(0x289)](_0x4315f5){const _0x489004=_0x480436;if([_0x489004(0x278),_0x489004(0x233),_0x489004(0x24a)][_0x489004(0x1f4)](this['_status'])||!_0x4315f5[_0x489004(0x29c)]['presenter']||_0x4315f5[_0x489004(0x29c)][_0x489004(0x20a)]===this[_0x489004(0x2bb)][_0x489004(0x261)]())return;this[_0x489004(0x29d)]==='idle'&&this[_0x489004(0x26b)]();const _0x1c33e1=_0x4315f5[_0x489004(0x29c)][_0x489004(0x205)];Object[_0x489004(0x1eb)](_0x1c33e1)[_0x489004(0x23d)](_0x701b52=>{const _0x5a75e3=_0x489004;this[_0x5a75e3(0x294)][_0x5a75e3(0x281)](_0x701b52['id'],_0x701b52[_0x5a75e3(0x249)]?JSON[_0x5a75e3(0x214)](_0x701b52[_0x5a75e3(0x249)]):null,{'fromCollab':!0x0});});}[_0x480436(0x28d)](){const _0x4ca5b5=_0x480436;var _0x54f6c9;this['_status$'][_0x4ca5b5(0x217)](_0x4ca5b5(0x24a)),(_0x54f6c9=this['_commandDisposable'])==null||_0x54f6c9[_0x4ca5b5(0x273)]();}['_handleOnline'](){const _0x292f9c=_0x480436;this[_0x292f9c(0x239)][_0x292f9c(0x217)]('idle'),this[_0x292f9c(0x1f0)]();}},exports[_0x480436(0x219)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x480436(0x215)](E)),S(0x4,o[_0x480436(0x1fa)])],exports[_0x480436(0x219)]);function $(){const _0x431cb8=_0x480436,_0x2aeca1=p[_0x431cb8(0x24d)](exports[_0x431cb8(0x29a)]),_0x22eb6c=p['useDependency'](o[_0x431cb8(0x21a)]),_0x165721=p[_0x431cb8(0x226)](()=>_0x22eb6c[_0x431cb8(0x22b)](o[_0x431cb8(0x208)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4f3578,_0x43cb86]=v[_0x431cb8(0x1fd)](null),[_0xbe52f7,_0x216e29]=v[_0x431cb8(0x1fd)](u['IDLE']),_0x5cb6eb=v[_0x431cb8(0x20c)](null);return v['useEffect'](()=>(_0x165721&&_0x2aeca1[_0x431cb8(0x253)](_0x165721[_0x431cb8(0x25f)]())[_0x431cb8(0x286)](_0x50df66=>{const _0x2e2793=_0x431cb8;_0x43cb86(_0x50df66),_0x5cb6eb['current']=_0x50df66['status$'][_0x2e2793(0x27e)](_0x58de62=>{_0x216e29(_0x58de62);});}),()=>{const _0x1e1bb9=_0x431cb8;var _0x9b3964;(_0x9b3964=_0x5cb6eb[_0x1e1bb9(0x21c)])==null||_0x9b3964[_0x1e1bb9(0x275)](),_0x5cb6eb[_0x1e1bb9(0x21c)]=null;}),[_0x165721,_0x2aeca1]),_0x4f3578?l['jsx'](f[_0x431cb8(0x1ea)],{'align':_0x431cb8(0x259),'disabled':_0xbe52f7===u[_0x431cb8(0x287)],'className':_0x431cb8(0x295),'overlay':l[_0x431cb8(0x254)](W,{'status':_0xbe52f7,'coordinator':_0x4f3578}),'children':l[_0x431cb8(0x254)](_0x431cb8(0x265),{'className':f[_0x431cb8(0x1e7)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbe52f7===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbe52f7!==u['OFFLINE']}),'type':_0x431cb8(0x265),'children':l[_0x431cb8(0x254)](R,{'className':'univer-size-4'})})}):null;}function W(_0x407a63){const _0x593b57=_0x480436,{status:_0x163b5d,coordinator:_0x5eb326}=_0x407a63;switch(_0x163b5d){case u[_0x593b57(0x29f)]:return l[_0x593b57(0x254)](G,{'coordinator':_0x5eb326});case u[_0x593b57(0x297)]:return l[_0x593b57(0x254)](B,{'coordinator':_0x5eb326});case u['NOT_FOLLOWING']:return l[_0x593b57(0x254)](Y,{'coordinator':_0x5eb326});case u[_0x593b57(0x287)]:return l[_0x593b57(0x254)](J,{});case u[_0x593b57(0x2a8)]:return l[_0x593b57(0x254)](Z,{'coordinator':_0x5eb326});default:return null;}}function G(_0xc4586e){const _0x4ebfe3=_0x480436,{coordinator:_0x38c7c7}=_0xc4586e;return l[_0x4ebfe3(0x274)](l[_0x4ebfe3(0x1ee)],{'children':[l['jsx'](_0x4ebfe3(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ebfe3(0x299)}),l[_0x4ebfe3(0x254)](f[_0x4ebfe3(0x26e)],{'onClick':()=>_0x38c7c7[_0x4ebfe3(0x283)](),'children':'Start'})]});}function _0x4c99(_0x368068,_0x29a3bf){_0x368068=_0x368068-0x1e6;const _0x2906b7=_0x2906();let _0x4c993a=_0x2906b7[_0x368068];return _0x4c993a;}function _0x2906(){const _0x471e2f=['executeCommand','registerSharedOperation','tryStartPresenting','SetScrollOperation','_init','then','OFFLINE','_handleNewChangeSets','_handleOperation','children','shouldShareOperation','entries','_handleOffline','_unitID','15TOEUzJ','trim','complete','Injector','IUIPartsService','_commandService','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','currentColor','FOLLOWING','pluginName','Present\x20this\x20document','LiveShareController','path','data','_status','merge','IDLE','BehaviorSubject','registerComponent','override','connectInjector','pipe','160032gRmaWp','sheet','You\x27re\x20following\x20the\x20presenter','PRESENTING','Stop\x20presenting','_commandDisposable','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','following','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','toDisposable','274308easLZv','getTypeOfUnitDisposed$','UniverIcon','asObservable','LiveShareIcon','_entities','default','createElement','CollaborationSessionService','_configService','_collabSession','requireSession','_reporters','dispose$','clsx','UniverCollaborationClientPlugin','onStarting','Dropdown','values','url(#$1','833396fLjXDs','Fragment','displayName','_fetchOperations','colorChannel1','set','sessionStatus$','includes','idle','_collabSessionService','unitId','LiveShare','NEW_CHANGESETS','ICommandService','live-share-icon','_sharedOperations','useState','idSuffix','evenodd','LIVESHARE_TERMINATE','_stopPresenting','text','40aUGNZl','Start\x20following','operations','getValue','InsertSheetMutation','UniverInstanceType','DisposableCollection','presenter','_handleNewHost','useRef','fill','112LniyJj','1em','get','3114221xkkHVg','_beIdle','65kwUsWF','parse','Inject','defineProperty','next','UniverLiveSharePlugin','LiveShareCoordinator','IUniverInstanceService','length','current','0\x200\x2017\x2017','div','LIVESHARE_OPERATION','DependentOn','UNIVER_SHEET','event$','DesktopLiveShareController','find','You\x27re\x20not\x20following\x20the\x20presenter','useObservable','stopPresenting','replace','tag','_mountLiveShare','getCurrentTypeOfUnit$','throttleTime','attrs','_handleOnline','_univerInstanceService','Disposable','clear','_handleTerminate','not-following','8175643MrFVIy','univerjs-icon\x20univerjs-icon-','OPERATION','symbol','map','_status$','Stop\x20following','onRendered','registerInitialStateReporter','forEach','_startLiveShareCoordinator','stringify','20270856GCCALK','touchDependencies','string','createInstance','_liveShareService','LIVESHARE_NEW_HOST','CollaborationEvent','SessionStatus','memberID','params','offline','registerDependencies','http://www.w3.org/2000/svg','useDependency','_startPresenting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','assign','getLiveShareCoordinator','jsx','delete','reverse','UNIVER_UNKNOWN','defs','end','onCommandExecuted','has','_injector','1rMGWih','toString','getUnitId','send','getMemberID','BuiltInUIPart','from','mask','button','_uiPartsService','xlink:href','stopFollowing','random','getOwnPropertyDescriptor','_startFollowing','LiveShareService','_config','Button','add','none','126171LIOUXy','Plugin','dispose','jsxs','unsubscribe','getInitialStates','RxDisposable','presenting','type','disposeWithMe','takeUntil','status$','_stopFollowing','subscribe','_presenter','CommandType'];_0x2906=function(){return _0x471e2f;};return _0x2906();}function B(_0x19a128){const _0x26326a=_0x480436,{coordinator:_0x9bf3c}=_0x19a128;return l[_0x26326a(0x274)](l['Fragment'],{'children':[l[_0x26326a(0x254)](_0x26326a(0x21e),{'className':_0x26326a(0x250),'children':_0x26326a(0x2a7)}),l[_0x26326a(0x254)](f[_0x26326a(0x26e)],{'onClick':()=>_0x9bf3c['stopFollowing'](),'children':_0x26326a(0x23a)})]});}function Y(_0x406cba){const _0x41a206=_0x480436,{coordinator:_0x97b4b6}=_0x406cba;return l[_0x41a206(0x274)](l[_0x41a206(0x1ee)],{'children':[l[_0x41a206(0x254)](_0x41a206(0x21e),{'className':_0x41a206(0x250),'children':_0x41a206(0x225)}),l[_0x41a206(0x254)](f[_0x41a206(0x26e)],{'variant':_0x41a206(0x202),'onClick':()=>_0x97b4b6['startFollowing'](),'children':_0x41a206(0x204)})]});}function Z(_0x34c575){const _0x3ce4cf=_0x480436,{coordinator:_0x46608d}=_0x34c575;return l['jsxs'](l[_0x3ce4cf(0x1ee)],{'children':[l['jsx'](_0x3ce4cf(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3ce4cf(0x254)](f[_0x3ce4cf(0x26e)],{'variant':_0x3ce4cf(0x2b7),'onClick':()=>_0x46608d[_0x3ce4cf(0x227)](),'children':_0x3ce4cf(0x2a9)})]});}function J(){const _0x229a2c=_0x480436;return l[_0x229a2c(0x254)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29fefc,_0x1eb802,_0x1d01c2,_0x2e3be4)=>{for(var _0x5dbde6=_0x2e3be4>0x1?void 0x0:_0x2e3be4?K(_0x1eb802,_0x1d01c2):_0x1eb802,_0x2522a2=_0x29fefc['length']-0x1,_0x43e08a;_0x2522a2>=0x0;_0x2522a2--)(_0x43e08a=_0x29fefc[_0x2522a2])&&(_0x5dbde6=_0x43e08a(_0x5dbde6)||_0x5dbde6);return _0x5dbde6;},L=(_0x565759,_0x512a0a)=>(_0x37bd0a,_0x57a810)=>_0x512a0a(_0x37bd0a,_0x57a810,_0x565759);exports[_0x480436(0x223)]=class extends o[_0x480436(0x230)]{constructor(_0x3d4a95,_0x433670){const _0x22ad4b=_0x480436;super(),this['_injector']=_0x3d4a95,this[_0x22ad4b(0x266)]=_0x433670,this[_0x22ad4b(0x22a)]();}[_0x480436(0x22a)](){const _0xab8a97=_0x480436;this[_0xab8a97(0x27a)](this[_0xab8a97(0x266)][_0xab8a97(0x2a1)](p[_0xab8a97(0x262)]['HEADER_MENU'],()=>p[_0xab8a97(0x2a3)]($,this['_injector'])));}},exports[_0x480436(0x223)]=z([L(0x0,o[_0x480436(0x215)](o[_0x480436(0x292)])),L(0x1,p[_0x480436(0x293)])],exports[_0x480436(0x223)]);const Q='live-share.config',w={};var X=Object[_0x480436(0x26a)],ee=(_0x5d0bcf,_0x5286e2,_0x3961c0,_0x245ac5)=>{for(var _0x36925b=_0x245ac5>0x1?void 0x0:_0x245ac5?X(_0x5286e2,_0x3961c0):_0x5286e2,_0x10a55c=_0x5d0bcf['length']-0x1,_0xf86b44;_0x10a55c>=0x0;_0x10a55c--)(_0xf86b44=_0x5d0bcf[_0x10a55c])&&(_0x36925b=_0xf86b44(_0x36925b)||_0x36925b);return _0x36925b;},te=(_0x5a4366,_0x3fc47b)=>(_0x2cc020,_0x53f254)=>_0x3fc47b(_0x2cc020,_0x53f254,_0x5a4366);let m=class extends o[_0x480436(0x230)]{constructor(_0x18e85e){const _0x1584ea=_0x480436;super(),this[_0x1584ea(0x244)]=_0x18e85e,this[_0x1584ea(0x285)]();}[_0x480436(0x285)](){const _0x1773d9=_0x480436;[D['SetZoomRatioOperation']['id'],D[_0x1773d9(0x284)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1773d9(0x23d)](_0x3fcc1a=>{const _0x56046b=_0x1773d9;this['disposeWithMe'](this[_0x56046b(0x244)][_0x56046b(0x282)](_0x3fcc1a));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x480436(0x216)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ab78a,_0x3f8bbb,_0x344637)=>_0x3f8bbb in _0x5ab78a?ie(_0x5ab78a,_0x3f8bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344637}):_0x5ab78a[_0x3f8bbb]=_0x344637,re=(_0xe350a2,_0x1ae402,_0x3cdaf5,_0x2b5a30)=>{const _0x4d3860=_0x480436;for(var _0x16d680=_0x2b5a30>0x1?void 0x0:_0x2b5a30?se(_0x1ae402,_0x3cdaf5):_0x1ae402,_0x6f9a02=_0xe350a2[_0x4d3860(0x21b)]-0x1,_0x1e37f1;_0x6f9a02>=0x0;_0x6f9a02--)(_0x1e37f1=_0xe350a2[_0x6f9a02])&&(_0x16d680=_0x1e37f1(_0x16d680)||_0x16d680);return _0x16d680;},N=(_0x727859,_0x49e53e)=>(_0x193b21,_0xa866ce)=>_0x49e53e(_0x193b21,_0xa866ce,_0x727859),A=(_0x55051d,_0x2c9690,_0x38da53)=>ne(_0x55051d,typeof _0x2c9690!=_0x480436(0x237)?_0x2c9690+'':_0x2c9690,_0x38da53);const oe=_0x480436(0x2ae);exports[_0x480436(0x218)]=class extends o[_0x480436(0x272)]{constructor(_0x40e758=w,_0x1bf925,_0x1021d9){const _0x119619=_0x480436;super(),this[_0x119619(0x26d)]=_0x40e758,this[_0x119619(0x25c)]=_0x1bf925,this[_0x119619(0x2ba)]=_0x1021d9;const {..._0x1842ad}=o[_0x119619(0x29e)]({},w,this[_0x119619(0x26d)]);this[_0x119619(0x2ba)]['setConfig'](Q,_0x1842ad);}[_0x480436(0x1e9)](){const _0x26eebb=_0x480436;o[_0x26eebb(0x24b)](this[_0x26eebb(0x25c)],o['mergeOverrideWithDependencies']([[E],[exports[_0x26eebb(0x29a)]],[m],[exports[_0x26eebb(0x223)]]],this[_0x26eebb(0x26d)][_0x26eebb(0x2a2)])),o[_0x26eebb(0x241)](this[_0x26eebb(0x25c)],[[m]]);}[_0x480436(0x23b)](){const _0x9599c3=_0x480436;o[_0x9599c3(0x241)](this[_0x9599c3(0x25c)],[[exports[_0x9599c3(0x223)]]]);}},A(exports['UniverLiveSharePlugin'],_0x480436(0x279),o[_0x480436(0x208)][_0x480436(0x257)]),A(exports[_0x480436(0x218)],_0x480436(0x298),oe),exports[_0x480436(0x218)]=re([o[_0x480436(0x220)](b[_0x480436(0x1e8)]),N(0x1,o[_0x480436(0x215)](o[_0x480436(0x292)])),N(0x2,o['IConfigService'])],exports[_0x480436(0x218)]),exports[_0x480436(0x1f8)]=$,exports[_0x480436(0x26c)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x1789ed=_0x5a94;(function(_0x17133c,_0x1eb6d6){const _0x1672fc=_0x5a94,_0xbf9a90=_0x17133c();while(!![]){try{const _0x56799f=-parseInt(_0x1672fc(0x193))/0x1+parseInt(_0x1672fc(0x223))/0x2*(parseInt(_0x1672fc(0x214))/0x3)+parseInt(_0x1672fc(0x237))/0x4+-parseInt(_0x1672fc(0x1b8))/0x5*(-parseInt(_0x1672fc(0x1b3))/0x6)+parseInt(_0x1672fc(0x171))/0x7*(-parseInt(_0x1672fc(0x178))/0x8)+parseInt(_0x1672fc(0x1d9))/0x9+-parseInt(_0x1672fc(0x1aa))/0xa;if(_0x56799f===_0x1eb6d6)break;else _0xbf9a90['push'](_0xbf9a90['shift']());}catch(_0xb675c6){_0xbf9a90['push'](_0xbf9a90['shift']());}}}(_0x2aa3,0x8e4ce));var T=Object['defineProperty'],U=(_0x297f51,_0x191dac,_0x3af6dc)=>_0x191dac in _0x297f51?T(_0x297f51,_0x191dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af6dc}):_0x297f51[_0x191dac]=_0x3af6dc,_=(_0x3d6c86,_0xbd9d86,_0x33ecc1)=>U(_0x3d6c86,typeof _0xbd9d86!=_0x1789ed(0x202)?_0xbd9d86+'':_0xbd9d86,_0x33ecc1);Object[_0x1789ed(0x1c3)](exports,Symbol[_0x1789ed(0x215)],{'value':_0x1789ed(0x201)});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:_0xf54630,..._0x28cd1f}){const _0x132acc=_0x1789ed,{icon:_0x231459,id:_0x671e15,className:_0x4e92ae,extend:_0x12a2a1,..._0x1e4d38}=_0x28cd1f,_0x270f34=('univerjs-icon\x20univerjs-icon-'+_0x671e15+'\x20'+(_0x4e92ae||''))[_0x132acc(0x19e)](),_0x4634b3=v['useRef']('_'+H());return j(_0x231459,''+_0x671e15,{'defIds':_0x231459['defIds'],'idSuffix':_0x4634b3[_0x132acc(0x1fb)]},{'ref':_0xf54630,'className':_0x270f34,..._0x1e4d38},_0x12a2a1);}function j(_0x169835,_0x2f8c2f,_0x4632e6,_0x525b33,_0x2bde91){const _0x569448=_0x1789ed;return v['createElement'](_0x169835[_0x569448(0x18e)],{'key':_0x2f8c2f,...y(_0x169835,_0x4632e6,_0x2bde91),..._0x525b33},(F(_0x169835,_0x4632e6)[_0x569448(0x177)]||[])[_0x569448(0x1bf)]((_0x4a3059,_0xc6046a)=>j(_0x4a3059,_0x2f8c2f+'-'+_0x169835[_0x569448(0x18e)]+'-'+_0xc6046a,_0x4632e6,void 0x0,_0x2bde91)));}function y(_0x44535a,_0xb4b199,_0x1590bd){const _0x34c935=_0x1789ed,_0x267d07={..._0x44535a['attrs']};_0x1590bd!=null&&_0x1590bd[_0x34c935(0x190)]&&_0x267d07['fill']===_0x34c935(0x190)&&(_0x267d07[_0x34c935(0x21d)]=_0x1590bd['colorChannel1']),_0x44535a[_0x34c935(0x18e)]===_0x34c935(0x176)&&_0x267d07['id']&&(_0x267d07['id']=_0x267d07['id']+_0xb4b199[_0x34c935(0x1d3)]),Object['entries'](_0x267d07)['forEach'](([_0x1c0fd6,_0x46c6a5])=>{const _0x25116c=_0x34c935;_0x1c0fd6===_0x25116c(0x176)&&typeof _0x46c6a5==_0x25116c(0x1fe)&&(_0x267d07[_0x1c0fd6]=_0x46c6a5[_0x25116c(0x235)](/url\(#(.*)\)/,'url(#$1'+_0xb4b199[_0x25116c(0x1d3)]+')'));});const {defIds:_0x957e70}=_0xb4b199;return!_0x957e70||_0x957e70[_0x34c935(0x1df)]===0x0||(_0x44535a[_0x34c935(0x18e)]===_0x34c935(0x218)&&_0x267d07[_0x34c935(0x236)]&&(_0x267d07[_0x34c935(0x236)]=_0x267d07[_0x34c935(0x236)]+_0xb4b199[_0x34c935(0x1d3)]),Object[_0x34c935(0x16c)](_0x267d07)[_0x34c935(0x1de)](([_0x44c382,_0x305e8c])=>{const _0x50986d=_0x34c935;typeof _0x305e8c=='string'&&(_0x267d07[_0x44c382]=_0x305e8c[_0x50986d(0x235)](/url\(#(.*)\)/,_0x50986d(0x1f4)+_0xb4b199[_0x50986d(0x1d3)]+')'));})),_0x267d07;}function F(_0xd01cdd,_0x206a61){const _0x310d6a=_0x1789ed;var _0x3bc1f2;const {defIds:_0x1e104e}=_0x206a61;return!_0x1e104e||_0x1e104e['length']===0x0?_0xd01cdd:_0xd01cdd[_0x310d6a(0x18e)]==='defs'&&((_0x3bc1f2=_0xd01cdd['children'])!=null&&_0x3bc1f2[_0x310d6a(0x1df)])?{..._0xd01cdd,'children':_0xd01cdd[_0x310d6a(0x177)][_0x310d6a(0x1bf)](_0x9f87ef=>typeof _0x9f87ef[_0x310d6a(0x1e9)]['id']=='string'&&_0x1e104e&&_0x1e104e['includes'](_0x9f87ef[_0x310d6a(0x1e9)]['id'])?{..._0x9f87ef,'attrs':{..._0x9f87ef['attrs'],'id':_0x9f87ef[_0x310d6a(0x1e9)]['id']+_0x206a61[_0x310d6a(0x1d3)]}}:_0x9f87ef)}:_0xd01cdd;}function H(){const _0x571615=_0x1789ed;return Math[_0x571615(0x1c1)]()['toString'](0x24)[_0x571615(0x20b)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x1789ed(0x1f8),'attrs':{'xmlns':_0x1789ed(0x209),'fill':_0x1789ed(0x238),'viewBox':'0\x200\x2017\x2017','width':_0x1789ed(0x1f7),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1789ed(0x184),'d':_0x1789ed(0x1f1)}},{'tag':_0x1789ed(0x234),'attrs':{'fill':_0x1789ed(0x184),'d':_0x1789ed(0x1e0),'fillRule':'evenodd','clipRule':_0x1789ed(0x1cd)}}]},R=v['forwardRef'](function(_0x15b901,_0x4c073a){const _0x133c57=_0x1789ed;return v['createElement'](x,Object[_0x133c57(0x208)]({},_0x15b901,{'id':_0x133c57(0x19d),'ref':_0x4c073a,'icon':V}));});R[_0x1789ed(0x1af)]=_0x1789ed(0x22e);class E extends o[_0x1789ed(0x1db)]{constructor(){const _0x43ff24=_0x1789ed;super(...arguments),_(this,_0x43ff24(0x1b0),new Set()),_(this,'_reporters',new Set());}[_0x1789ed(0x16f)](_0x2cb3dc){const _0x28d4d9=_0x1789ed;return this[_0x28d4d9(0x1b0)][_0x28d4d9(0x16d)](_0x2cb3dc),o['toDisposable'](()=>this[_0x28d4d9(0x1b0)][_0x28d4d9(0x1c8)](_0x2cb3dc));}['registerInitialStateReporter'](_0x54c827){const _0x2e5337=_0x1789ed;return this['_reporters']['add'](_0x54c827),o[_0x2e5337(0x182)](()=>this[_0x2e5337(0x22c)]['delete'](_0x54c827));}['shouldShareOperation'](_0x15e2dc){const _0x104eae=_0x1789ed;return this[_0x104eae(0x1b0)][_0x104eae(0x1f9)](_0x15e2dc);}[_0x1789ed(0x18a)](_0x160e87){const _0x511d05=_0x1789ed;return Array[_0x511d05(0x196)](this['_reporters'])[_0x511d05(0x1bf)](_0x2fb5dd=>_0x2fb5dd(_0x160e87));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x12049c,_0x3e6f57,_0x5c7cae,_0x4fe722)=>{const _0x3def05=_0x1789ed;for(var _0x1cf3f0=_0x4fe722>0x1?void 0x0:_0x4fe722?M(_0x3e6f57,_0x5c7cae):_0x3e6f57,_0x2d2974=_0x12049c[_0x3def05(0x1df)]-0x1,_0x2160ba;_0x2d2974>=0x0;_0x2d2974--)(_0x2160ba=_0x12049c[_0x2d2974])&&(_0x1cf3f0=_0x2160ba(_0x1cf3f0)||_0x1cf3f0);return _0x1cf3f0;},S=(_0x3c758d,_0x3ede5)=>(_0x5080fc,_0x2d04c0)=>_0x3ede5(_0x5080fc,_0x2d04c0,_0x3c758d);exports[_0x1789ed(0x195)]=class extends o[_0x1789ed(0x17a)]{constructor(_0xf8c687,_0x1f9cb4,_0x4c954f){const _0x4aeb54=_0x1789ed;super(),_(this,_0x4aeb54(0x186),new Map()),(this['_univerInstanceService']=_0xf8c687,this[_0x4aeb54(0x23a)]=_0x1f9cb4,this[_0x4aeb54(0x213)]=_0x4c954f,this[_0x4aeb54(0x1e7)]());}async[_0x1789ed(0x228)](_0x5b570c){const _0x29ccf1=_0x1789ed;return this[_0x29ccf1(0x186)]['has'](_0x5b570c)||await this[_0x29ccf1(0x174)](_0x5b570c),this['_entities']['get'](_0x5b570c);}[_0x1789ed(0x1dd)](_0x8048de){const _0x51ed92=_0x1789ed;var _0x4b467b;return(_0x4b467b=this[_0x51ed92(0x186)][_0x51ed92(0x1c2)](_0x8048de))!=null?_0x4b467b:null;}[_0x1789ed(0x1e7)](){const _0x3e0bcc=_0x1789ed;this[_0x3e0bcc(0x222)][_0x3e0bcc(0x21f)](o['UniverInstanceType'][_0x3e0bcc(0x20c)])[_0x3e0bcc(0x210)](I[_0x3e0bcc(0x192)](this[_0x3e0bcc(0x1a7)]))['subscribe'](async _0x4ea3c0=>{const _0xfd0e=_0x3e0bcc,_0x135ae1=_0x4ea3c0[_0xfd0e(0x205)]();this[_0xfd0e(0x186)]['has'](_0x135ae1)||this[_0xfd0e(0x174)](_0x135ae1);}),this[_0x3e0bcc(0x222)]['getTypeOfUnitDisposed$'](o[_0x3e0bcc(0x217)][_0x3e0bcc(0x20c)])['pipe'](I[_0x3e0bcc(0x192)](this[_0x3e0bcc(0x1a7)]))[_0x3e0bcc(0x1d8)](_0x121b97=>{const _0x389ca9=_0x3e0bcc,_0x4fac97=_0x121b97[_0x389ca9(0x205)](),_0x52f48f=this[_0x389ca9(0x186)][_0x389ca9(0x1c2)](_0x4fac97);_0x52f48f==null||_0x52f48f[_0x389ca9(0x20e)]();});}async[_0x1789ed(0x174)](_0x5a61db){const _0x4028e7=_0x1789ed,_0x1d2f1c=await this[_0x4028e7(0x213)]['requireSession'](_0x5a61db),_0x5b6787=this['_injector']['createInstance'](exports['LiveShareCoordinator'],_0x5a61db,_0x1d2f1c);return _0x5b6787[_0x4028e7(0x1c9)](),this[_0x4028e7(0x186)][_0x4028e7(0x18f)](_0x5a61db,_0x5b6787),_0x5b6787;}},exports[_0x1789ed(0x195)]=P([S(0x0,o[_0x1789ed(0x1eb)]),S(0x1,o[_0x1789ed(0x1e1)](o[_0x1789ed(0x18b)])),S(0x2,o['Inject'](b[_0x1789ed(0x19b)]))],exports[_0x1789ed(0x195)]);var u=(_0x56a3c4=>(_0x56a3c4['OFFLINE']='offline',_0x56a3c4['IDLE']='idle',_0x56a3c4[_0x1789ed(0x17d)]=_0x1789ed(0x233),_0x56a3c4[_0x1789ed(0x170)]=_0x1789ed(0x191),_0x56a3c4[_0x1789ed(0x1da)]=_0x1789ed(0x179),_0x56a3c4))(u||{});const k=_0x1789ed(0x1e5),q=0xc8;exports[_0x1789ed(0x199)]=class extends o[_0x1789ed(0x17a)]{constructor(_0x47ff23,_0x2e08ef,_0x2747ad,_0xaba262,_0x4f2c3f){const _0x49e41b=_0x1789ed;super(),_(this,_0x49e41b(0x22d),new O[(_0x49e41b(0x224))]('idle')),_(this,_0x49e41b(0x17f),this[_0x49e41b(0x22d)][_0x49e41b(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x49e41b(0x187),null),(this[_0x49e41b(0x1d2)]=_0x47ff23,this['_collabSession']=_0x2e08ef,this[_0x49e41b(0x220)]=_0x2747ad,this[_0x49e41b(0x1e8)]=_0xaba262,this['_commandService']=_0x4f2c3f);}get[_0x1789ed(0x203)](){const _0x1bee99=_0x1789ed;return this[_0x1bee99(0x22d)]['getValue']();}[_0x1789ed(0x20e)](){const _0x1c590a=_0x1789ed;var _0x1b26d3;(_0x1b26d3=this['_commandDisposable'])==null||_0x1b26d3['dispose'](),this[_0x1c590a(0x22d)][_0x1c590a(0x216)](_0x1c590a(0x1a8)),this['_status$']['complete']();}['getStatus'](){const _0x20acb8=_0x1789ed;return this[_0x20acb8(0x203)];}[_0x1789ed(0x1c9)](){const _0x2683d7=_0x1789ed;this[_0x2683d7(0x1e7)]||(this[_0x2683d7(0x1e7)]=!0x0,this[_0x2683d7(0x1a3)][_0x2683d7(0x1c6)][_0x2683d7(0x210)](I['takeUntil'](this['dispose$']))[_0x2683d7(0x1d8)](_0x284f79=>{const _0x51316a=_0x2683d7;switch(_0x284f79){case b['SessionStatus'][_0x51316a(0x183)]:this[_0x51316a(0x1b5)]();break;case b['SessionStatus']['ONLINE']:this[_0x51316a(0x200)]();break;}}),this[_0x2683d7(0x1a3)][_0x2683d7(0x225)][_0x2683d7(0x210)](I[_0x2683d7(0x192)](this[_0x2683d7(0x1a7)]))[_0x2683d7(0x1d8)](_0x19e514=>{const _0x1cdcac=_0x2683d7,{eventID:_0x381b29}=_0x19e514;switch(_0x381b29){case d[_0x1cdcac(0x21e)][_0x1cdcac(0x21a)]:this[_0x1cdcac(0x16b)](_0x19e514);break;case d[_0x1cdcac(0x21e)]['LIVESHARE_OPERATION']:this[_0x1cdcac(0x1a1)](_0x19e514);break;case d[_0x1cdcac(0x21e)][_0x1cdcac(0x1c7)]:this[_0x1cdcac(0x231)]();break;case d[_0x1cdcac(0x21e)][_0x1cdcac(0x1b6)]:this[_0x1cdcac(0x20d)](_0x19e514);break;}}));}[_0x1789ed(0x1b9)](){const _0x51020d=_0x1789ed;this[_0x51020d(0x1a3)][_0x51020d(0x229)]({'eventID':d[_0x51020d(0x21e)][_0x51020d(0x19a)],'data':{'unitID':this[_0x51020d(0x1d2)],'userID':this['_collabSession'][_0x51020d(0x173)]()}},this[_0x51020d(0x1d2)]);}[_0x1789ed(0x212)](){const _0xc2c9cc=_0x1789ed;this[_0xc2c9cc(0x203)]===_0xc2c9cc(0x179)&&(this[_0xc2c9cc(0x22d)][_0xc2c9cc(0x216)](_0xc2c9cc(0x1a8)),this['_collabSession']['send']({'eventID':d[_0xc2c9cc(0x21e)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xc2c9cc(0x1d2)]}},this[_0xc2c9cc(0x1d2)]));}[_0x1789ed(0x21c)](){const _0x5d28b7=_0x1789ed;this[_0x5d28b7(0x203)]==='not-following'&&(this['_status$'][_0x5d28b7(0x216)](_0x5d28b7(0x233)),this[_0x5d28b7(0x1b7)]());}[_0x1789ed(0x189)](){const _0x36a5d4=_0x1789ed;this[_0x36a5d4(0x203)]===_0x36a5d4(0x233)&&this['_stopFollowing']();}[_0x1789ed(0x16b)](_0xf0f28b){const _0x26675b=_0x1789ed,{presenter:_0x25a1f8}=_0xf0f28b[_0x26675b(0x20f)],_0x20ac72=this[_0x26675b(0x1a3)][_0x26675b(0x173)]();this[_0x26675b(0x187)]=_0x25a1f8,_0x25a1f8===_0x20ac72?(this[_0x26675b(0x204)](),this[_0x26675b(0x188)]()):this['_status']!==_0x26675b(0x191)&&(this[_0x26675b(0x1b4)](),this[_0x26675b(0x1b7)]());}[_0x1789ed(0x239)](){const _0x7422b1=_0x1789ed,_0x3b9bce={'eventID':d[_0x7422b1(0x21e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x7422b1(0x229)](_0x3b9bce,this[_0x7422b1(0x1d2)]);}[_0x1789ed(0x231)](){const _0x4df01f=_0x1789ed;this[_0x4df01f(0x187)]=null,this['_status']!=='presenting'&&this[_0x4df01f(0x17e)]();}['_handleNewChangeSets'](_0x142fcc){const _0x105279=_0x1789ed;if(this[_0x105279(0x203)]===_0x105279(0x233)&&this[_0x105279(0x187)]===_0x142fcc[_0x105279(0x20f)][_0x105279(0x1be)]){const _0x432775=d[_0x105279(0x1ff)](_0x142fcc['data'])[_0x105279(0x181)][_0x105279(0x194)]()[_0x105279(0x1d1)](_0x37bb35=>_0x37bb35['id']===C[_0x105279(0x18d)]['id']);if(_0x432775){const _0x254faf=_0x432775['params'][_0x105279(0x1f6)],_0x345fb2=_0x432775[_0x105279(0x1a5)][_0x105279(0x1d5)]['id'];setTimeout(()=>{const _0x32f93e=_0x105279;this['_commandService'][_0x32f93e(0x17b)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x254faf,'subUnitId':_0x345fb2},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2769dc=_0x1789ed;this[_0x2769dc(0x22d)][_0x2769dc(0x216)](_0x2769dc(0x179));const _0x22e484=new Map(),_0x386f8d=this[_0x2769dc(0x1b2)]=new o[(_0x2769dc(0x22f))]();_0x386f8d[_0x2769dc(0x16d)](o[_0x2769dc(0x182)](()=>{const _0x18aa71=_0x2769dc;_0x22e484[_0x18aa71(0x1de)](_0x11a89f=>_0x11a89f[_0x18aa71(0x1f0)]()),_0x22e484[_0x18aa71(0x20a)]();})),_0x386f8d[_0x2769dc(0x16d)](this['_commandService']['onCommandExecuted'](_0xc71c95=>{const _0x4b841a=_0x2769dc;var _0x10f51a;if(_0xc71c95['type']!==o[_0x4b841a(0x230)][_0x4b841a(0x16e)]||!this[_0x4b841a(0x1e8)]['shouldShareOperation'](_0xc71c95['id']))return;const {id:_0x27a782}=_0xc71c95;let _0x10b69c;_0x22e484['has'](_0x27a782)?_0x10b69c=_0x22e484[_0x4b841a(0x1c2)](_0x27a782):(_0x10b69c=new O[(_0x4b841a(0x1fd))](),_0x22e484[_0x4b841a(0x18f)](_0x27a782,_0x10b69c),_0x10b69c['pipe'](I['throttleTime']((_0x10f51a=this[_0x4b841a(0x220)][_0x4b841a(0x1ee)](k))!=null?_0x10f51a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5a4c81=>{const _0x40e618=_0x4b841a;this['_collabSession']['send']({'eventID':d[_0x40e618(0x21e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x40e618(0x1d2)],'operations':{[_0x5a4c81['id']]:{'id':_0x5a4c81['id'],'params':JSON[_0x40e618(0x1fa)](_0x5a4c81['params'])}}}},this[_0x40e618(0x1d2)]);})),_0x10b69c[_0x4b841a(0x216)](_0xc71c95);})),this[_0x2769dc(0x1e8)][_0x2769dc(0x18a)](this[_0x2769dc(0x1d2)])[_0x2769dc(0x1de)](_0x4b21b7=>this[_0x2769dc(0x1a3)][_0x2769dc(0x229)]({'eventID':d[_0x2769dc(0x21e)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4b21b7['id']]:{'id':_0x4b21b7['id'],'params':JSON['stringify'](_0x4b21b7[_0x2769dc(0x1a5)])}}}},this[_0x2769dc(0x1d2)]));}['_stopPresenting'](){const _0x6a8a15=_0x1789ed;var _0x596c88;this[_0x6a8a15(0x22d)]['next']('idle'),(_0x596c88=this[_0x6a8a15(0x1b2)])==null||_0x596c88[_0x6a8a15(0x20e)](),this[_0x6a8a15(0x1b2)]=null;}[_0x1789ed(0x1b7)](){const _0x23ee02=_0x1789ed;var _0x2b24d5;(_0x2b24d5=this[_0x23ee02(0x1b2)])==null||_0x2b24d5[_0x23ee02(0x20e)](),this[_0x23ee02(0x22d)][_0x23ee02(0x216)]('following');}[_0x1789ed(0x17e)](){const _0x17a371=_0x1789ed;var _0x5f1b0b;this['_status$'][_0x17a371(0x216)]('idle'),(_0x5f1b0b=this[_0x17a371(0x1b2)])==null||_0x5f1b0b[_0x17a371(0x20e)](),this[_0x17a371(0x1b2)]=null;}['_stopFollowing'](){const _0xe2911c=_0x1789ed;var _0x2c1ee4;this[_0xe2911c(0x22d)][_0xe2911c(0x216)](_0xe2911c(0x191)),(_0x2c1ee4=this['_commandDisposable'])==null||_0x2c1ee4[_0xe2911c(0x20e)]();}[_0x1789ed(0x1a1)](_0x3abe8d){const _0x1a0bba=_0x1789ed;if([_0x1a0bba(0x179),'not-following',_0x1a0bba(0x1d0)]['includes'](this[_0x1a0bba(0x203)])||!_0x3abe8d['data'][_0x1a0bba(0x197)]||_0x3abe8d[_0x1a0bba(0x20f)][_0x1a0bba(0x197)]===this[_0x1a0bba(0x1a3)][_0x1a0bba(0x173)]())return;this[_0x1a0bba(0x203)]===_0x1a0bba(0x1a8)&&this['_startFollowing']();const _0x45d751=_0x3abe8d[_0x1a0bba(0x20f)][_0x1a0bba(0x1ab)];Object['values'](_0x45d751)[_0x1a0bba(0x1de)](_0x37366f=>{const _0x125926=_0x1a0bba;this[_0x125926(0x175)][_0x125926(0x17b)](_0x37366f['id'],_0x37366f['params']?JSON[_0x125926(0x198)](_0x37366f[_0x125926(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xed205b=_0x1789ed;var _0x208730;this['_status$'][_0xed205b(0x216)](_0xed205b(0x1d0)),(_0x208730=this[_0xed205b(0x1b2)])==null||_0x208730[_0xed205b(0x20e)]();}[_0x1789ed(0x200)](){const _0x332ab6=_0x1789ed;this[_0x332ab6(0x22d)]['next'](_0x332ab6(0x1a8)),this[_0x332ab6(0x239)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1789ed(0x1a0)]),S(0x3,o[_0x1789ed(0x1e1)](E)),S(0x4,o[_0x1789ed(0x232)])],exports[_0x1789ed(0x199)]);function $(){const _0x499120=_0x1789ed,_0x18228e=p[_0x499120(0x1a9)](exports['LiveShareController']),_0x467c52=p[_0x499120(0x1a9)](o[_0x499120(0x1eb)]),_0x30d335=p[_0x499120(0x1ea)](()=>_0x467c52[_0x499120(0x1e2)](o['UniverInstanceType'][_0x499120(0x20c)]),void 0x0,!0x1,[]),[_0x569cdd,_0x26405b]=v['useState'](null),[_0x416066,_0x4aeca7]=v[_0x499120(0x1ad)](u[_0x499120(0x1a2)]),_0x4889a1=v[_0x499120(0x18c)](null);return v[_0x499120(0x1c0)](()=>(_0x30d335&&_0x18228e[_0x499120(0x228)](_0x30d335['getUnitId']())[_0x499120(0x1ca)](_0x207c21=>{const _0x15edd2=_0x499120;_0x26405b(_0x207c21),_0x4889a1['current']=_0x207c21['status$'][_0x15edd2(0x1d8)](_0x3aa8a8=>{_0x4aeca7(_0x3aa8a8);});}),()=>{const _0x26f6e8=_0x499120;var _0x657dab;(_0x657dab=_0x4889a1['current'])==null||_0x657dab[_0x26f6e8(0x180)](),_0x4889a1['current']=null;}),[_0x30d335,_0x18228e]),_0x569cdd?l[_0x499120(0x1cc)](f[_0x499120(0x1ba)],{'align':'end','disabled':_0x416066===u[_0x499120(0x183)],'className':_0x499120(0x1ec),'overlay':l[_0x499120(0x1cc)](W,{'status':_0x416066,'coordinator':_0x569cdd}),'children':l[_0x499120(0x1cc)]('button',{'className':f[_0x499120(0x1a6)](_0x499120(0x1c4),{'univer-cursor-not-allowed':_0x416066===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x416066!==u[_0x499120(0x183)]}),'type':'button','children':l['jsx'](R,{'className':_0x499120(0x1b1)})})}):null;}function W(_0x25c47c){const _0x53d174=_0x1789ed,{status:_0x1427ec,coordinator:_0x2aa91e}=_0x25c47c;switch(_0x1427ec){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aa91e});case u['FOLLOWING']:return l[_0x53d174(0x1cc)](B,{'coordinator':_0x2aa91e});case u[_0x53d174(0x170)]:return l[_0x53d174(0x1cc)](Y,{'coordinator':_0x2aa91e});case u[_0x53d174(0x183)]:return l[_0x53d174(0x1cc)](J,{});case u[_0x53d174(0x1da)]:return l[_0x53d174(0x1cc)](Z,{'coordinator':_0x2aa91e});default:return null;}}function G(_0x285d6b){const _0x142da3=_0x1789ed,{coordinator:_0x163681}=_0x285d6b;return l[_0x142da3(0x1f3)](l['Fragment'],{'children':[l[_0x142da3(0x1cc)]('div',{'className':_0x142da3(0x1cb),'children':_0x142da3(0x207)}),l['jsx'](f[_0x142da3(0x17c)],{'onClick':()=>_0x163681['tryStartPresenting'](),'children':'Start'})]});}function B(_0x42f240){const _0x4aa3f2=_0x1789ed,{coordinator:_0x59f58e}=_0x42f240;return l['jsxs'](l[_0x4aa3f2(0x1dc)],{'children':[l[_0x4aa3f2(0x1cc)](_0x4aa3f2(0x22b),{'className':_0x4aa3f2(0x1cb),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x4aa3f2(0x1cc)](f['Button'],{'onClick':()=>_0x59f58e['stopFollowing'](),'children':_0x4aa3f2(0x221)})]});}function _0x5a94(_0x353be0,_0x3f5971){_0x353be0=_0x353be0-0x16b;const _0x2aa3e8=_0x2aa3();let _0x5a94a0=_0x2aa3e8[_0x353be0];return _0x5a94a0;}function Y(_0x3c4d8b){const _0x638a4b=_0x1789ed,{coordinator:_0x5226a8}=_0x3c4d8b;return l[_0x638a4b(0x1f3)](l[_0x638a4b(0x1dc)],{'children':[l[_0x638a4b(0x1cc)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x638a4b(0x1d4)}),l[_0x638a4b(0x1cc)](f[_0x638a4b(0x17c)],{'variant':_0x638a4b(0x1ed),'onClick':()=>_0x5226a8['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x10334a){const _0x456a8a=_0x1789ed,{coordinator:_0x2d6408}=_0x10334a;return l[_0x456a8a(0x1f3)](l[_0x456a8a(0x1dc)],{'children':[l[_0x456a8a(0x1cc)](_0x456a8a(0x22b),{'className':_0x456a8a(0x1cb),'children':_0x456a8a(0x1d7)}),l[_0x456a8a(0x1cc)](f['Button'],{'variant':'default','onClick':()=>_0x2d6408['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x173426=_0x1789ed;return l['jsx'](l[_0x173426(0x1dc)],{'children':_0x173426(0x19f)});}var K=Object[_0x1789ed(0x1d6)],z=(_0x4a60a5,_0x581962,_0x3dee05,_0x3d4831)=>{const _0x4c7539=_0x1789ed;for(var _0x2e8986=_0x3d4831>0x1?void 0x0:_0x3d4831?K(_0x581962,_0x3dee05):_0x581962,_0x3c8e5d=_0x4a60a5[_0x4c7539(0x1df)]-0x1,_0x3fdeac;_0x3c8e5d>=0x0;_0x3c8e5d--)(_0x3fdeac=_0x4a60a5[_0x3c8e5d])&&(_0x2e8986=_0x3fdeac(_0x2e8986)||_0x2e8986);return _0x2e8986;},L=(_0x479973,_0x1122e3)=>(_0x12136d,_0x180fce)=>_0x1122e3(_0x12136d,_0x180fce,_0x479973);exports[_0x1789ed(0x1e6)]=class extends o[_0x1789ed(0x1db)]{constructor(_0x128601,_0x5b4d30){const _0x366726=_0x1789ed;super(),this[_0x366726(0x23a)]=_0x128601,this['_uiPartsService']=_0x5b4d30,this[_0x366726(0x1fc)]();}[_0x1789ed(0x1fc)](){const _0x45c5ed=_0x1789ed;this[_0x45c5ed(0x1ef)](this[_0x45c5ed(0x1e4)][_0x45c5ed(0x211)](p[_0x45c5ed(0x1bc)][_0x45c5ed(0x1e3)],()=>p['connectInjector']($,this[_0x45c5ed(0x23a)])));}},exports[_0x1789ed(0x1e6)]=z([L(0x0,o[_0x1789ed(0x1e1)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x1789ed(0x1e6)]);const Q=_0x1789ed(0x219),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xcd453e,_0x437fc8,_0x3172f6,_0x5ab377)=>{const _0x4cff2d=_0x1789ed;for(var _0x4c9062=_0x5ab377>0x1?void 0x0:_0x5ab377?X(_0x437fc8,_0x3172f6):_0x437fc8,_0x3c4a98=_0xcd453e[_0x4cff2d(0x1df)]-0x1,_0x225a53;_0x3c4a98>=0x0;_0x3c4a98--)(_0x225a53=_0xcd453e[_0x3c4a98])&&(_0x4c9062=_0x225a53(_0x4c9062)||_0x4c9062);return _0x4c9062;},te=(_0x3c45cc,_0x36f8c5)=>(_0x4b913c,_0x48be44)=>_0x36f8c5(_0x4b913c,_0x48be44,_0x3c45cc);let m=class extends o['Disposable']{constructor(_0x4c0b0d){const _0xf40496=_0x1789ed;super(),this['_liveShareService']=_0x4c0b0d,this[_0xf40496(0x1e7)]();}[_0x1789ed(0x1e7)](){const _0x12dc0b=_0x1789ed;[D[_0x12dc0b(0x22a)]['id'],D[_0x12dc0b(0x1f5)]['id'],C['SetWorksheetActiveOperation']['id']][_0x12dc0b(0x1de)](_0x59270f=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x59270f));});}};m=ee([te(0x0,o[_0x1789ed(0x1e1)](E))],m);var ie=Object[_0x1789ed(0x1c3)],se=Object[_0x1789ed(0x1d6)],ne=(_0x21a0d2,_0x243f2d,_0x54ae32)=>_0x243f2d in _0x21a0d2?ie(_0x21a0d2,_0x243f2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54ae32}):_0x21a0d2[_0x243f2d]=_0x54ae32,re=(_0x33f35f,_0x184836,_0x315ad8,_0xe0724a)=>{const _0x9d436=_0x1789ed;for(var _0x52dc75=_0xe0724a>0x1?void 0x0:_0xe0724a?se(_0x184836,_0x315ad8):_0x184836,_0x220a12=_0x33f35f[_0x9d436(0x1df)]-0x1,_0xad4ade;_0x220a12>=0x0;_0x220a12--)(_0xad4ade=_0x33f35f[_0x220a12])&&(_0x52dc75=_0xad4ade(_0x52dc75)||_0x52dc75);return _0x52dc75;},N=(_0x3a8c44,_0x5a3194)=>(_0x53f60d,_0x584e89)=>_0x5a3194(_0x53f60d,_0x584e89,_0x3a8c44),A=(_0x2f7f5f,_0x480e4e,_0x241e39)=>ne(_0x2f7f5f,typeof _0x480e4e!=_0x1789ed(0x202)?_0x480e4e+'':_0x480e4e,_0x241e39);const oe=_0x1789ed(0x206);function _0x2aa3(){const _0x317ecd=['SetScrollOperation','unitId','1em','svg','has','stringify','current','_mountLiveShare','Subject','string','parseProtocolChangeset','_handleOnline','Module','symbol','_status','_stopFollowing','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','Present\x20this\x20document','assign','http://www.w3.org/2000/svg','clear','substring','UNIVER_SHEET','_handleNewChangeSets','dispose','data','pipe','registerComponent','stopPresenting','_collabSessionService','147EwzHTt','toStringTag','next','UniverInstanceType','use','live-share.config','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','startFollowing','fill','CollaborationEvent','getTypeOfUnitAdded$','_configService','Stop\x20following','_univerInstanceService','38642CjJQqq','BehaviorSubject','event$','UniverCollaborationClientPlugin','setConfig','getLiveShareCoordinator','send','SetZoomRatioOperation','div','_reporters','_status$','LiveShareIcon','DisposableCollection','CommandType','_handleTerminate','ICommandService','following','path','replace','xlink:href','2367760DOuTys','none','_fetchOperations','_injector','_handleNewHost','entries','add','OPERATION','registerSharedOperation','NOT_FOLLOWING','8043oVaIIA','LiveShareService','getMemberID','_startLiveShareCoordinator','_commandService','mask','children','456FQvBJc','presenting','RxDisposable','executeCommand','Button','FOLLOWING','_beIdle','status$','unsubscribe','mutations','toDisposable','OFFLINE','currentColor','merge','_entities','_presenter','_startPresenting','stopFollowing','getInitialStates','Injector','useRef','InsertSheetMutation','tag','set','colorChannel1','not-following','takeUntil','967532vuyKOw','reverse','LiveShareController','from','presenter','parse','LiveShareCoordinator','LIVESHARE_REQUEST_HOST','CollaborationSessionService','onRendered','live-share-icon','trim','You\x27are\x20offline.','IConfigService','_handleOperation','IDLE','_collabSession','_config','params','clsx','dispose$','idle','useDependency','16378730jzjOrB','operations','type','useState','DependentOn','displayName','_sharedOperations','univer-size-4','_commandDisposable','18wCJMSs','_stopPresenting','_handleOffline','NEW_CHANGESETS','_startFollowing','956135NpcLxm','tryStartPresenting','Dropdown','asObservable','BuiltInUIPart','mergeOverrideWithDependencies','memberID','map','useEffect','random','get','defineProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','sessionStatus$','LIVESHARE_TERMINATE','delete','init','then','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsx','evenodd','LiveShareStatus','override','offline','find','_unitID','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','sheet','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','subscribe','10272690ikglkl','PRESENTING','Disposable','Fragment','getLiveShareCoordinatorSync','forEach','length','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','Inject','getCurrentTypeOfUnit$','HEADER_MENU','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','DesktopLiveShareController','_init','_liveShareService','attrs','useObservable','IUniverInstanceService','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','text','getConfig','disposeWithMe','complete','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','touchDependencies','jsxs','url(#$1'];_0x2aa3=function(){return _0x317ecd;};return _0x2aa3();}exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0xb59ff2=w,_0x3bd49b,_0x5503ae){const _0x22295f=_0x1789ed;super(),this[_0x22295f(0x1a4)]=_0xb59ff2,this['_injector']=_0x3bd49b,this[_0x22295f(0x220)]=_0x5503ae;const {..._0x1cbf6a}=o[_0x22295f(0x185)]({},w,this[_0x22295f(0x1a4)]);this[_0x22295f(0x220)][_0x22295f(0x227)](Q,_0x1cbf6a);}[_0x1789ed(0x1c5)](){const _0x1a7b10=_0x1789ed;o['registerDependencies'](this['_injector'],o[_0x1a7b10(0x1bd)]([[E],[exports['LiveShareController']],[m],[exports[_0x1a7b10(0x1e6)]]],this[_0x1a7b10(0x1a4)][_0x1a7b10(0x1cf)])),o[_0x1a7b10(0x1f2)](this['_injector'],[[m]]);}[_0x1789ed(0x19c)](){const _0x21bf6c=_0x1789ed;o[_0x21bf6c(0x1f2)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1789ed(0x21b)],_0x1789ed(0x1ac),o[_0x1789ed(0x217)]['UNIVER_UNKNOWN']),A(exports[_0x1789ed(0x21b)],'pluginName',oe),exports[_0x1789ed(0x21b)]=re([o[_0x1789ed(0x1ae)](b[_0x1789ed(0x226)]),N(0x1,o[_0x1789ed(0x1e1)](o['Injector'])),N(0x2,o[_0x1789ed(0x1a0)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x1789ed(0x172)]=E,exports[_0x1789ed(0x1ce)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x352c44=_0x2e94;(function(_0xeea58e,_0x1e5708){const _0x3d7754=_0x2e94,_0x2f21fa=_0xeea58e();while(!![]){try{const _0x37f4bc=-parseInt(_0x3d7754(0xf0))/0x1*(parseInt(_0x3d7754(0xdc))/0x2)+parseInt(_0x3d7754(0xee))/0x3+parseInt(_0x3d7754(0xe7))/0x4*(parseInt(_0x3d7754(0xd4))/0x5)+-parseInt(_0x3d7754(0xd5))/0x6+parseInt(_0x3d7754(0xf2))/0x7+-parseInt(_0x3d7754(0xf4))/0x8+parseInt(_0x3d7754(0xe0))/0x9;if(_0x37f4bc===_0x1e5708)break;else _0x2f21fa['push'](_0x2f21fa['shift']());}catch(_0x4d781d){_0x2f21fa['push'](_0x2f21fa['shift']());}}}(_0x466f,0xea880));import{LiveShareController as _0x10a042,LiveShareStatus as _0x145361}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2ad8b3}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ae3d5}from'@univerjs/sheets';import{SetScrollOperation as _0x4c78b8}from'@univerjs/sheets-ui';import{FRange as _0xfe9845}from'@univerjs/sheets/facade';import{FUniver as _0x2c0cbf,FEnum as _0x57ddce}from'@univerjs/core/facade';function _0x466f(){const _0x486f77=['syncExecuteCommand','executeCommand','getSheetId','getRenderById','2013656kmHItX','getLiveShareCoordinatorSync','getId','PRESENTING','stopFollowing','startFollowing','LiveShareStatusEnum','3915897wMEsAc','_initialize','54419QrkmFl','No\x20active\x20workbook\x20found.','3466057ipmcuK','_commandService','14445608IJpWWn','IDLE','10wtgeZW','9244110MIcitJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getActiveWorkbook','get','getActiveSheet','58rGLmsA','getUnitId','startColumn','extend','27701091tnLvLl','startPresenting','_injector'];_0x466f=function(){return _0x486f77;};return _0x466f();}function _0x2e94(_0x18ce63,_0x523b77){_0x18ce63=_0x18ce63-0xd4;const _0x466f1d=_0x466f();let _0x2e9439=_0x466f1d[_0x18ce63];return _0x2e9439;}class I extends _0xfe9845{[_0x352c44(0xef)](_0x42352f,_0x423796,_0x2c9a24,_0xeffee5,_0x44897a){const _0x4806d=_0x352c44,_0x3c6826=_0x42352f[_0x4806d(0xda)](_0x10a042),_0x33f22f=_0x42352f[_0x4806d(0xda)](_0x2ad8b3),_0x2c2329=_0x423796[_0x4806d(0xdd)](),_0x4e3ba8=_0x423796[_0x4806d(0xdb)](),_0x264362=_0x3c6826['getLiveShareCoordinatorSync'](_0x2c2329);(_0x264362==null?void 0x0:_0x264362[_0x4806d(0xd7)]())!==_0x145361[_0x4806d(0xea)]||(_0x2c9a24['getSheetId']()!==_0x4e3ba8['getSheetId']()&&this[_0x4806d(0xf3)][_0x4806d(0xe4)](_0x1ae3d5['id'],{'unitId':_0x2c2329,'subUnitId':_0x2c9a24[_0x4806d(0xe5)]()}),!_0x33f22f[_0x4806d(0xe6)](_0x2c2329))||_0x44897a[_0x4806d(0xe3)](_0x4c78b8['id'],{'unitId':_0x423796[_0x4806d(0xdd)](),'sheetId':_0x2c9a24['getSheetId'](),'sheetViewStartRow':_0xeffee5['startRow'],'sheetViewStartColumn':_0xeffee5[_0x4806d(0xde)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfe9845[_0x352c44(0xdf)](I);class m extends _0x2c0cbf{['getLiveShareStatus'](){const _0xfd37f8=_0x352c44;var _0x5ee508,_0x2c27ef;const _0x3bf8ee=this[_0xfd37f8(0xe2)]['get'](_0x10a042),_0x3dcd68=(_0x5ee508=this[_0xfd37f8(0xd9)]())==null?void 0x0:_0x5ee508[_0xfd37f8(0xe9)]();if(!_0x3dcd68)throw new Error(_0xfd37f8(0xf1));const _0x583e99=_0x3bf8ee[_0xfd37f8(0xe8)](_0x3dcd68);return(_0x2c27ef=_0x583e99==null?void 0x0:_0x583e99[_0xfd37f8(0xd7)]())!=null?_0x2c27ef:_0x145361[_0xfd37f8(0xf5)];}[_0x352c44(0xec)](){const _0x27e81e=_0x352c44;var _0x2823d5;const _0x201f8e=this['_injector'][_0x27e81e(0xda)](_0x10a042),_0x2a8a0b=(_0x2823d5=this[_0x27e81e(0xd9)]())==null?void 0x0:_0x2823d5[_0x27e81e(0xe9)]();if(!_0x2a8a0b)throw new Error(_0x27e81e(0xf1));const _0x4ad8fa=_0x201f8e[_0x27e81e(0xe8)](_0x2a8a0b);if(!_0x4ad8fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ad8fa[_0x27e81e(0xec)]();}[_0x352c44(0xeb)](){const _0x25c6bc=_0x352c44;var _0x6741d1;const _0xb9578a=this['_injector'][_0x25c6bc(0xda)](_0x10a042),_0x318beb=(_0x6741d1=this[_0x25c6bc(0xd9)]())==null?void 0x0:_0x6741d1['getId']();if(!_0x318beb)throw new Error('No\x20active\x20workbook\x20found.');const _0x45f11a=_0xb9578a[_0x25c6bc(0xe8)](_0x318beb);if(!_0x45f11a)throw new Error(_0x25c6bc(0xd6));_0x45f11a[_0x25c6bc(0xeb)]();}[_0x352c44(0xe1)](){const _0xad5d18=_0x352c44;var _0x328887;const _0x3d2b19=this[_0xad5d18(0xe2)][_0xad5d18(0xda)](_0x10a042),_0x53350f=(_0x328887=this[_0xad5d18(0xd9)]())==null?void 0x0:_0x328887['getId']();if(!_0x53350f)throw new Error(_0xad5d18(0xf1));const _0x24b6e0=_0x3d2b19['getLiveShareCoordinatorSync'](_0x53350f);if(!_0x24b6e0)throw new Error(_0xad5d18(0xd6));_0x24b6e0['tryStartPresenting']();}[_0x352c44(0xd8)](){const _0x58da10=_0x352c44;var _0x4ef740;const _0x214e47=this[_0x58da10(0xe2)]['get'](_0x10a042),_0x3d19d0=(_0x4ef740=this['getActiveWorkbook']())==null?void 0x0:_0x4ef740[_0x58da10(0xe9)]();if(!_0x3d19d0)throw new Error(_0x58da10(0xf1));const _0x520760=_0x214e47[_0x58da10(0xe8)](_0x3d19d0);if(!_0x520760)throw new Error(_0x58da10(0xd6));_0x520760[_0x58da10(0xd8)]();}}_0x2c0cbf['extend'](m);class C extends _0x57ddce{get[_0x352c44(0xed)](){return _0x145361;}}_0x57ddce[_0x352c44(0xdf)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0x3460c1=_0x4557;(function(_0x5e91aa,_0x551fe5){const _0xc8edc0=_0x4557,_0x46e6de=_0x5e91aa();while(!![]){try{const _0x806443=-parseInt(_0xc8edc0(0x150))/0x1*(parseInt(_0xc8edc0(0xdc))/0x2)+-parseInt(_0xc8edc0(0xd6))/0x3+parseInt(_0xc8edc0(0x13f))/0x4+parseInt(_0xc8edc0(0x15c))/0x5*(-parseInt(_0xc8edc0(0x15e))/0x6)+parseInt(_0xc8edc0(0xf8))/0x7*(parseInt(_0xc8edc0(0x100))/0x8)+-parseInt(_0xc8edc0(0x119))/0x9+parseInt(_0xc8edc0(0x104))/0xa*(parseInt(_0xc8edc0(0xda))/0xb);if(_0x806443===_0x551fe5)break;else _0x46e6de['push'](_0x46e6de['shift']());}catch(_0x527f52){_0x46e6de['push'](_0x46e6de['shift']());}}}(_0x2e26,0x4b0b4));var J=Object[_0x3460c1(0x126)],K=(_0xee29c6,_0x1c2b47,_0x49608d)=>_0x1c2b47 in _0xee29c6?J(_0xee29c6,_0x1c2b47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49608d}):_0xee29c6[_0x1c2b47]=_0x49608d,u=(_0x3e01fd,_0x32c32d,_0x4ce276)=>K(_0x3e01fd,typeof _0x32c32d!=_0x3460c1(0xf4)?_0x32c32d+'':_0x32c32d,_0x4ce276);import{Disposable as _0xc5e0a9,toDisposable as _0x87ebf2,IUniverInstanceService as _0xa87a14,Inject as _0x3bcdba,Injector as _0x19e107,IConfigService as _0x29db0f,ICommandService as _0x565687,RxDisposable as _0x591da1,UniverInstanceType as _0x3cb45b,DisposableCollection as _0x81324e,CommandType as _0x5504a2,DependentOn as _0x1ebbc3,Plugin as _0x16f213,merge as _0x125a7c,registerDependencies as _0x41bf15,mergeOverrideWithDependencies as _0x1cc35b,touchDependencies as _0x15308f}from'@univerjs/core';import{useDependency as _0x2b3e7d,useObservable as _0x27fd11,IUIPartsService as _0x42e77f,BuiltInUIPart as _0x5b833c,connectInjector as _0x87cd1f}from'@univerjs/ui';import{jsx as _0x9b8f83,jsxs as _0x3911e5,Fragment as _0x51b535}from'react/jsx-runtime';import{Dropdown as _0x320cc1,clsx as _0x889c00,Button as _0x25f1f0}from'@univerjs/design';import{useRef as _0x198b9b,createElement as _0x496fa8,forwardRef as _0x1d4949,useState as _0x51630b,useEffect as _0x112452}from'react';import{CollaborationEvent as _0x1bd605,parseProtocolChangeset as _0x52281c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x419de7,SessionStatus as _0x472715,UniverCollaborationClientPlugin as _0x82618b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x90e1c7,SetWorksheetActiveOperation as _0x4608bd}from'@univerjs/sheets';import{BehaviorSubject as _0x54131c,Subject as _0x1d9924}from'rxjs';import{takeUntil as _0x1cfb04,throttleTime as _0x387acb}from'rxjs/operators';import{SetZoomRatioOperation as _0x4fb690,SetScrollOperation as _0x5633c5}from'@univerjs/sheets-ui';function k({ref:_0x26a054,..._0x5508a8}){const _0x151f62=_0x3460c1,{icon:_0x399b7f,id:_0x6c9fe5,className:_0x5c55ac,extend:_0x4505a3,..._0x440c88}=_0x5508a8,_0x5af4eb=('univerjs-icon\x20univerjs-icon-'+_0x6c9fe5+'\x20'+(_0x5c55ac||''))['trim'](),_0x47c2e5=_0x198b9b('_'+Oe());return G(_0x399b7f,''+_0x6c9fe5,{'defIds':_0x399b7f['defIds'],'idSuffix':_0x47c2e5[_0x151f62(0xd3)]},{'ref':_0x26a054,'className':_0x5af4eb,..._0x440c88},_0x4505a3);}function G(_0x37cf3b,_0x5f31e4,_0x2ecc13,_0x9b24bc,_0x54e131){const _0x482e13=_0x3460c1;return _0x496fa8(_0x37cf3b['tag'],{'key':_0x5f31e4,...be(_0x37cf3b,_0x2ecc13,_0x54e131),..._0x9b24bc},(Ee(_0x37cf3b,_0x2ecc13)[_0x482e13(0x11f)]||[])[_0x482e13(0x13e)]((_0x22d74d,_0x2b0a24)=>G(_0x22d74d,_0x5f31e4+'-'+_0x37cf3b[_0x482e13(0x111)]+'-'+_0x2b0a24,_0x2ecc13,void 0x0,_0x54e131)));}function be(_0x226ed1,_0x4bfac6,_0x5760a2){const _0x187901=_0x3460c1,_0x51172a={..._0x226ed1[_0x187901(0x145)]};_0x5760a2!=null&&_0x5760a2[_0x187901(0x12e)]&&_0x51172a[_0x187901(0x14e)]===_0x187901(0x12e)&&(_0x51172a['fill']=_0x5760a2[_0x187901(0x12e)]),_0x226ed1[_0x187901(0x111)]===_0x187901(0x10c)&&_0x51172a['id']&&(_0x51172a['id']=_0x51172a['id']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x52dc91,_0x2c29ad])=>{const _0x5806ec=_0x187901;_0x52dc91==='mask'&&typeof _0x2c29ad==_0x5806ec(0x161)&&(_0x51172a[_0x52dc91]=_0x2c29ad['replace'](/url\(#(.*)\)/,_0x5806ec(0x116)+_0x4bfac6[_0x5806ec(0xfc)]+')'));});const {defIds:_0x2d7710}=_0x4bfac6;return!_0x2d7710||_0x2d7710['length']===0x0||(_0x226ed1['tag']===_0x187901(0x154)&&_0x51172a['xlink:href']&&(_0x51172a['xlink:href']=_0x51172a['xlink:href']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x18a762,_0x37b00d])=>{const _0x534e15=_0x187901;typeof _0x37b00d==_0x534e15(0x161)&&(_0x51172a[_0x18a762]=_0x37b00d[_0x534e15(0x11e)](/url\(#(.*)\)/,_0x534e15(0x116)+_0x4bfac6['idSuffix']+')'));})),_0x51172a;}function Ee(_0x43f4ae,_0x4b935d){const _0x3ba781=_0x3460c1;var _0x474e3d;const {defIds:_0xa41c91}=_0x4b935d;return!_0xa41c91||_0xa41c91[_0x3ba781(0xe6)]===0x0?_0x43f4ae:_0x43f4ae[_0x3ba781(0x111)]===_0x3ba781(0x139)&&((_0x474e3d=_0x43f4ae[_0x3ba781(0x11f)])!=null&&_0x474e3d[_0x3ba781(0xe6)])?{..._0x43f4ae,'children':_0x43f4ae[_0x3ba781(0x11f)]['map'](_0x22572c=>typeof _0x22572c[_0x3ba781(0x145)]['id']==_0x3ba781(0x161)&&_0xa41c91&&_0xa41c91['includes'](_0x22572c[_0x3ba781(0x145)]['id'])?{..._0x22572c,'attrs':{..._0x22572c['attrs'],'id':_0x22572c[_0x3ba781(0x145)]['id']+_0x4b935d['idSuffix']}}:_0x22572c)}:_0x43f4ae;}function Oe(){const _0x571914=_0x3460c1;return Math[_0x571914(0x110)]()[_0x571914(0x16c)](0x24)[_0x571914(0x12a)](0x2,0x8);}k[_0x3460c1(0xd2)]=_0x3460c1(0x14b);const we={'tag':_0x3460c1(0xe8),'attrs':{'xmlns':_0x3460c1(0x156),'fill':_0x3460c1(0x118),'viewBox':_0x3460c1(0xdf),'width':'1em','height':_0x3460c1(0x12c)},'children':[{'tag':'path','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':_0x3460c1(0xe4),'attrs':{'fill':_0x3460c1(0x157),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3460c1(0x11b)}}]},W=_0x1d4949(function(_0x1e7683,_0x9a32e2){const _0x448ee4=_0x3460c1;return _0x496fa8(k,Object[_0x448ee4(0x128)]({},_0x1e7683,{'id':_0x448ee4(0x141),'ref':_0x9a32e2,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0xc5e0a9{constructor(){const _0x4eec30=_0x3460c1;super(...arguments),u(this,_0x4eec30(0xe0),new Set()),u(this,_0x4eec30(0x131),new Set());}[_0x3460c1(0xec)](_0xce0c2b){const _0x27c1c2=_0x3460c1;return this['_sharedOperations'][_0x27c1c2(0x149)](_0xce0c2b),_0x87ebf2(()=>this['_sharedOperations'][_0x27c1c2(0xd0)](_0xce0c2b));}['registerInitialStateReporter'](_0x5486f1){const _0x134273=_0x3460c1;return this['_reporters'][_0x134273(0x149)](_0x5486f1),_0x87ebf2(()=>this[_0x134273(0x131)][_0x134273(0xd0)](_0x5486f1));}[_0x3460c1(0x153)](_0x382e39){const _0x4900b3=_0x3460c1;return this[_0x4900b3(0xe0)]['has'](_0x382e39);}['getInitialStates'](_0x2277c7){const _0x56ffca=_0x3460c1;return Array[_0x56ffca(0x102)](this['_reporters'])[_0x56ffca(0x13e)](_0xee86d4=>_0xee86d4(_0x2277c7));}}var Ne=Object[_0x3460c1(0x163)],Y=(_0x3ad7f6,_0xb6cc1e,_0x210af2,_0x30d218)=>{const _0x57a988=_0x3460c1;for(var _0x4e546e=_0x30d218>0x1?void 0x0:_0x30d218?Ne(_0xb6cc1e,_0x210af2):_0xb6cc1e,_0x5c3e02=_0x3ad7f6[_0x57a988(0xe6)]-0x1,_0x44c03a;_0x5c3e02>=0x0;_0x5c3e02--)(_0x44c03a=_0x3ad7f6[_0x5c3e02])&&(_0x4e546e=_0x44c03a(_0x4e546e)||_0x4e546e);return _0x4e546e;},_=(_0x1de16c,_0x3cb4b0)=>(_0x2c8718,_0x19ca88)=>_0x3cb4b0(_0x2c8718,_0x19ca88,_0x1de16c);let S=class extends _0x591da1{constructor(_0x53d9f1,_0xe2dd4c,_0x15c992){const _0x410d85=_0x3460c1;super(),u(this,'_entities',new Map()),(this[_0x410d85(0x144)]=_0x53d9f1,this['_injector']=_0xe2dd4c,this['_collabSessionService']=_0x15c992,this['_init']());}async[_0x3460c1(0x117)](_0x49cd36){const _0x21f2d2=_0x3460c1;return this[_0x21f2d2(0x115)]['has'](_0x49cd36)||await this[_0x21f2d2(0xf9)](_0x49cd36),this['_entities'][_0x21f2d2(0x138)](_0x49cd36);}['getLiveShareCoordinatorSync'](_0x3b6bf2){const _0xb68733=_0x3460c1;var _0x131cbc;return(_0x131cbc=this[_0xb68733(0x115)][_0xb68733(0x138)](_0x3b6bf2))!=null?_0x131cbc:null;}[_0x3460c1(0xf5)](){const _0x280766=_0x3460c1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cb45b[_0x280766(0x12f)])['pipe'](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](async _0x239aaf=>{const _0x3e300a=_0x280766,_0x1c4969=_0x239aaf[_0x3e300a(0xed)]();this[_0x3e300a(0x115)]['has'](_0x1c4969)||this['_startLiveShareCoordinator'](_0x1c4969);}),this[_0x280766(0x144)][_0x280766(0x10b)](_0x3cb45b[_0x280766(0x12f)])[_0x280766(0x11c)](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](_0x1cb7c5=>{const _0x48a1db=_0x280766,_0x2a0b5e=_0x1cb7c5[_0x48a1db(0xed)](),_0x12175d=this['_entities'][_0x48a1db(0x138)](_0x2a0b5e);_0x12175d==null||_0x12175d['dispose']();});}async[_0x3460c1(0xf9)](_0x30b34c){const _0x26092a=_0x3460c1,_0x13bd2c=await this[_0x26092a(0x10f)]['requireSession'](_0x30b34c),_0xbe848e=this['_injector'][_0x26092a(0x134)](N,_0x30b34c,_0x13bd2c);return _0xbe848e[_0x26092a(0x124)](),this['_entities'][_0x26092a(0x108)](_0x30b34c,_0xbe848e),_0xbe848e;}};function _0x4557(_0x319d5b,_0x466118){_0x319d5b=_0x319d5b-0xd0;const _0x2e2603=_0x2e26();let _0x4557b6=_0x2e2603[_0x319d5b];return _0x4557b6;}S=Y([_(0x0,_0xa87a14),_(0x1,_0x3bcdba(_0x19e107)),_(0x2,_0x3bcdba(_0x419de7))],S);var c=(_0x249ad8=>(_0x249ad8['OFFLINE']=_0x3460c1(0xdd),_0x249ad8[_0x3460c1(0x14a)]=_0x3460c1(0xe3),_0x249ad8[_0x3460c1(0x160)]=_0x3460c1(0x147),_0x249ad8[_0x3460c1(0x114)]=_0x3460c1(0x165),_0x249ad8[_0x3460c1(0x13c)]='presenting',_0x249ad8))(c||{});const Ce=_0x3460c1(0x148),De=0xc8;function _0x2e26(){const _0x5e967a=['dispose','event$','data','sessionStatus$','_commandService','_collabSession','symbol','_init','find','live-share.config','7VkPebU','_startLiveShareCoordinator','stopFollowing','Present\x20this\x20document','idSuffix','send','onCommandExecuted','default','4482536RTdaRF','next','from','_handleOnline','40eyXOLS','Start','params','_startPresenting','set','parse','_status$','getTypeOfUnitDisposed$','mask','includes','unitId','_collabSessionService','random','tag','Start\x20following','_handleNewChangeSets','NOT_FOLLOWING','_entities','url(#$1','getLiveShareCoordinator','none','4234896shwwpu','type','evenodd','pipe','forEach','replace','children','div','button','override','getValue','init','HEADER_MENU','defineProperty','getInitialStates','assign','has','substring','OFFLINE','1em','_fetchOperations','colorChannel1','UNIVER_SHEET','_handleOperation','_reporters','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','stringify','unsubscribe','onRendered','get','defs','_injector','getCurrentTypeOfUnit$','PRESENTING','tryStartPresenting','map','863220xHXkSL','subscribe','live-share-icon','_handleTerminate','_handleOffline','_univerInstanceService','attrs','clear','following','SAME_OPERATION_SHARE_INTERVAL','add','IDLE','UniverIcon','startFollowing','univer-size-4','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','23gaMkjK','LIVESHARE_FETCH_OPERATIONS','presenter','shouldShareOperation','use','_handleNewHost','http://www.w3.org/2000/svg','currentColor','disposeWithMe','memberID','entries','You\x27re\x20not\x20following\x20the\x20presenter','250YiFNYI','pluginName','38166BGNHdq','_unitID','FOLLOWING','string','ONLINE','getOwnPropertyDescriptor','_commandDisposable','not-following','presenting','status$','mutations','sheet','_startFollowing','getMemberID','toString','stopPresenting','then','_mountLiveShare','_liveShareService','delete','You\x27are\x20offline.','displayName','current','onStarting','_beIdle','527169AxmxmC','_status','text','_stopFollowing','1951246VrGJSu','executeCommand','18606rZGRuB','offline','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','_sharedOperations','_config','registerComponent','idle','path','_configService','length','_presenter','svg','LIVESHARE_REQUEST_HOST','dispose$','setConfig','registerSharedOperation','getUnitId'];_0x2e26=function(){return _0x5e967a;};return _0x2e26();}let N=class extends _0x591da1{constructor(_0x11b18b,_0x477f19,_0x257db7,_0xbbf2d2,_0x4bee3b){const _0x3ef8b0=_0x3460c1;super(),u(this,_0x3ef8b0(0x10a),new _0x54131c(_0x3ef8b0(0xe3))),u(this,_0x3ef8b0(0x167),this[_0x3ef8b0(0x10a)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x3ef8b0(0x164),null),u(this,_0x3ef8b0(0xe7),null),(this[_0x3ef8b0(0x15f)]=_0x11b18b,this['_collabSession']=_0x477f19,this[_0x3ef8b0(0xe5)]=_0x257db7,this['_liveShareService']=_0xbbf2d2,this[_0x3ef8b0(0xf2)]=_0x4bee3b);}get[_0x3460c1(0xd7)](){const _0x5d3644=_0x3460c1;return this[_0x5d3644(0x10a)][_0x5d3644(0x123)]();}[_0x3460c1(0xee)](){const _0x54914b=_0x3460c1;var _0x371575;(_0x371575=this[_0x54914b(0x164)])==null||_0x371575[_0x54914b(0xee)](),this[_0x54914b(0x10a)][_0x54914b(0x101)](_0x54914b(0xe3)),this[_0x54914b(0x10a)]['complete']();}['getStatus'](){const _0x3507c4=_0x3460c1;return this[_0x3507c4(0xd7)];}[_0x3460c1(0x124)](){const _0x5a40dd=_0x3460c1;this[_0x5a40dd(0xf5)]||(this[_0x5a40dd(0xf5)]=!0x0,this['_collabSession'][_0x5a40dd(0xf1)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x279107=>{const _0x3ab0fd=_0x5a40dd;switch(_0x279107){case _0x472715[_0x3ab0fd(0x12b)]:this['_handleOffline']();break;case _0x472715[_0x3ab0fd(0x162)]:this[_0x3ab0fd(0x103)]();break;}}),this[_0x5a40dd(0xf3)][_0x5a40dd(0xef)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x674d7d=>{const _0x500399=_0x5a40dd,{eventID:_0x406dc9}=_0x674d7d;switch(_0x406dc9){case _0x1bd605['LIVESHARE_NEW_HOST']:this[_0x500399(0x155)](_0x674d7d);break;case _0x1bd605['LIVESHARE_OPERATION']:this[_0x500399(0x130)](_0x674d7d);break;case _0x1bd605[_0x500399(0x132)]:this['_handleTerminate']();break;case _0x1bd605['NEW_CHANGESETS']:this[_0x500399(0x113)](_0x674d7d);break;}}));}[_0x3460c1(0x13d)](){const _0x4507dc=_0x3460c1;this[_0x4507dc(0xf3)]['send']({'eventID':_0x1bd605[_0x4507dc(0xe9)],'data':{'unitID':this[_0x4507dc(0x15f)],'userID':this[_0x4507dc(0xf3)][_0x4507dc(0x16b)]()}},this[_0x4507dc(0x15f)]);}[_0x3460c1(0x16d)](){const _0x4520c4=_0x3460c1;this[_0x4520c4(0xd7)]===_0x4520c4(0x166)&&(this[_0x4520c4(0x10a)][_0x4520c4(0x101)](_0x4520c4(0xe3)),this[_0x4520c4(0xf3)][_0x4520c4(0xfd)]({'eventID':_0x1bd605[_0x4520c4(0x132)],'data':{'unitID':this[_0x4520c4(0x15f)]}},this[_0x4520c4(0x15f)]));}[_0x3460c1(0x14c)](){const _0x558865=_0x3460c1;this[_0x558865(0xd7)]===_0x558865(0x165)&&(this['_status$'][_0x558865(0x101)](_0x558865(0x147)),this['_startFollowing']());}['stopFollowing'](){const _0x32da72=_0x3460c1;this[_0x32da72(0xd7)]===_0x32da72(0x147)&&this[_0x32da72(0xd9)]();}[_0x3460c1(0x155)](_0x5ef90d){const _0x2da164=_0x3460c1,{presenter:_0x288bbb}=_0x5ef90d[_0x2da164(0xf0)],_0x2f32d6=this[_0x2da164(0xf3)][_0x2da164(0x16b)]();this[_0x2da164(0xe7)]=_0x288bbb,_0x288bbb===_0x2f32d6?(this[_0x2da164(0xd9)](),this[_0x2da164(0x107)]()):this['_status']!==_0x2da164(0x165)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3460c1(0x12d)](){const _0x5294cf=_0x3460c1,_0x14a72c={'eventID':_0x1bd605[_0x5294cf(0x151)]};this[_0x5294cf(0xf3)][_0x5294cf(0xfd)](_0x14a72c,this['_unitID']);}[_0x3460c1(0x142)](){const _0x38d416=_0x3460c1;this[_0x38d416(0xe7)]=null,this[_0x38d416(0xd7)]!==_0x38d416(0x166)&&this[_0x38d416(0xd5)]();}[_0x3460c1(0x113)](_0x585489){const _0x503f5c=_0x3460c1;if(this['_status']==='following'&&this[_0x503f5c(0xe7)]===_0x585489[_0x503f5c(0xf0)][_0x503f5c(0x159)]){const _0x16ef39=_0x52281c(_0x585489[_0x503f5c(0xf0)])[_0x503f5c(0x168)]['reverse']()[_0x503f5c(0xf6)](_0x4e70d1=>_0x4e70d1['id']===_0x90e1c7['id']);if(_0x16ef39){const _0x25a089=_0x16ef39['params'][_0x503f5c(0x10e)],_0x436a77=_0x16ef39[_0x503f5c(0x106)][_0x503f5c(0x169)]['id'];setTimeout(()=>{const _0x19d3ef=_0x503f5c;this[_0x19d3ef(0xf2)][_0x19d3ef(0xdb)](_0x4608bd['id'],{'unitId':_0x25a089,'subUnitId':_0x436a77},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x496b72=_0x3460c1;this[_0x496b72(0x10a)]['next']('presenting');const _0x2642e6=new Map(),_0x20a636=this[_0x496b72(0x164)]=new _0x81324e();_0x20a636[_0x496b72(0x149)](_0x87ebf2(()=>{const _0x548f8e=_0x496b72;_0x2642e6[_0x548f8e(0x11d)](_0x34fb0f=>_0x34fb0f['complete']()),_0x2642e6[_0x548f8e(0x146)]();})),_0x20a636['add'](this[_0x496b72(0xf2)][_0x496b72(0xfe)](_0x1d3c1d=>{const _0x2c366=_0x496b72;var _0x2ae01b;if(_0x1d3c1d[_0x2c366(0x11a)]!==_0x5504a2['OPERATION']||!this[_0x2c366(0x170)][_0x2c366(0x153)](_0x1d3c1d['id']))return;const {id:_0x31d627}=_0x1d3c1d;let _0x3d83c4;_0x2642e6[_0x2c366(0x129)](_0x31d627)?_0x3d83c4=_0x2642e6['get'](_0x31d627):(_0x3d83c4=new _0x1d9924(),_0x2642e6['set'](_0x31d627,_0x3d83c4),_0x3d83c4[_0x2c366(0x11c)](_0x387acb((_0x2ae01b=this[_0x2c366(0xe5)]['getConfig'](Ce))!=null?_0x2ae01b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c366(0x140)](_0xba430c=>{const _0x300dc2=_0x2c366;this['_collabSession'][_0x300dc2(0xfd)]({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x300dc2(0x15f)],'operations':{[_0xba430c['id']]:{'id':_0xba430c['id'],'params':JSON[_0x300dc2(0x135)](_0xba430c[_0x300dc2(0x106)])}}}},this[_0x300dc2(0x15f)]);})),_0x3d83c4[_0x2c366(0x101)](_0x1d3c1d);})),this[_0x496b72(0x170)][_0x496b72(0x127)](this[_0x496b72(0x15f)])[_0x496b72(0x11d)](_0x352994=>this[_0x496b72(0xf3)]['send']({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x496b72(0x15f)],'operations':{[_0x352994['id']]:{'id':_0x352994['id'],'params':JSON[_0x496b72(0x135)](_0x352994[_0x496b72(0x106)])}}}},this[_0x496b72(0x15f)]));}['_stopPresenting'](){const _0x2e798d=_0x3460c1;var _0x5a524d;this[_0x2e798d(0x10a)][_0x2e798d(0x101)](_0x2e798d(0xe3)),(_0x5a524d=this[_0x2e798d(0x164)])==null||_0x5a524d[_0x2e798d(0xee)](),this[_0x2e798d(0x164)]=null;}[_0x3460c1(0x16a)](){const _0x5030db=_0x3460c1;var _0xb9a39d;(_0xb9a39d=this[_0x5030db(0x164)])==null||_0xb9a39d[_0x5030db(0xee)](),this[_0x5030db(0x10a)][_0x5030db(0x101)](_0x5030db(0x147));}[_0x3460c1(0xd5)](){const _0x31f927=_0x3460c1;var _0xe57fb7;this['_status$'][_0x31f927(0x101)]('idle'),(_0xe57fb7=this[_0x31f927(0x164)])==null||_0xe57fb7[_0x31f927(0xee)](),this[_0x31f927(0x164)]=null;}[_0x3460c1(0xd9)](){const _0x3589c4=_0x3460c1;var _0x1314b7;this[_0x3589c4(0x10a)][_0x3589c4(0x101)](_0x3589c4(0x165)),(_0x1314b7=this[_0x3589c4(0x164)])==null||_0x1314b7['dispose']();}['_handleOperation'](_0x3c1c91){const _0x514481=_0x3460c1;if([_0x514481(0x166),_0x514481(0x165),_0x514481(0xdd)][_0x514481(0x10d)](this[_0x514481(0xd7)])||!_0x3c1c91['data'][_0x514481(0x152)]||_0x3c1c91[_0x514481(0xf0)]['presenter']===this[_0x514481(0xf3)][_0x514481(0x16b)]())return;this[_0x514481(0xd7)]===_0x514481(0xe3)&&this[_0x514481(0x16a)]();const _0x4f3327=_0x3c1c91[_0x514481(0xf0)]['operations'];Object['values'](_0x4f3327)[_0x514481(0x11d)](_0x8f6359=>{const _0x59f750=_0x514481;this['_commandService'][_0x59f750(0xdb)](_0x8f6359['id'],_0x8f6359['params']?JSON[_0x59f750(0x109)](_0x8f6359[_0x59f750(0x106)]):null,{'fromCollab':!0x0});});}[_0x3460c1(0x143)](){const _0x1634e0=_0x3460c1;var _0x18cb66;this[_0x1634e0(0x10a)][_0x1634e0(0x101)](_0x1634e0(0xdd)),(_0x18cb66=this[_0x1634e0(0x164)])==null||_0x18cb66['dispose']();}[_0x3460c1(0x103)](){const _0x485e4a=_0x3460c1;this[_0x485e4a(0x10a)][_0x485e4a(0x101)]('idle'),this[_0x485e4a(0x12d)]();}};N=Y([_(0x2,_0x29db0f),_(0x3,_0x3bcdba(L)),_(0x4,_0x565687)],N);function Le(){const _0x4048c9=_0x3460c1,_0x1de4d5=_0x2b3e7d(S),_0x45a0b0=_0x2b3e7d(_0xa87a14),_0x1170b3=_0x27fd11(()=>_0x45a0b0[_0x4048c9(0x13b)](_0x3cb45b[_0x4048c9(0x12f)]),void 0x0,!0x1,[]),[_0x28449e,_0x1e80b1]=_0x51630b(null),[_0x1000d2,_0x16535e]=_0x51630b(c[_0x4048c9(0x14a)]),_0x767a5f=_0x198b9b(null);return _0x112452(()=>(_0x1170b3&&_0x1de4d5[_0x4048c9(0x117)](_0x1170b3['getUnitId']())[_0x4048c9(0x16e)](_0xc44a0c=>{const _0x54ea5c=_0x4048c9;_0x1e80b1(_0xc44a0c),_0x767a5f[_0x54ea5c(0xd3)]=_0xc44a0c[_0x54ea5c(0x167)]['subscribe'](_0x77fe00=>{_0x16535e(_0x77fe00);});}),()=>{const _0xd59584=_0x4048c9;var _0x51c0a1;(_0x51c0a1=_0x767a5f[_0xd59584(0xd3)])==null||_0x51c0a1[_0xd59584(0x136)](),_0x767a5f[_0xd59584(0xd3)]=null;}),[_0x1170b3,_0x1de4d5]),_0x28449e?_0x9b8f83(_0x320cc1,{'align':'end','disabled':_0x1000d2===c[_0x4048c9(0x12b)],'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':_0x9b8f83(Re,{'status':_0x1000d2,'coordinator':_0x28449e}),'children':_0x9b8f83(_0x4048c9(0x121),{'className':_0x889c00(_0x4048c9(0x133),{'univer-cursor-not-allowed':_0x1000d2===c[_0x4048c9(0x12b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1000d2!==c[_0x4048c9(0x12b)]}),'type':_0x4048c9(0x121),'children':_0x9b8f83(W,{'className':_0x4048c9(0x14d)})})}):null;}function Re(_0x49ce94){const _0x4678b7=_0x3460c1,{status:_0x8e73f5,coordinator:_0x2a5f9c}=_0x49ce94;switch(_0x8e73f5){case c[_0x4678b7(0x14a)]:return _0x9b8f83($e,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x160)]:return _0x9b8f83(xe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x114)]:return _0x9b8f83(Pe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x12b)]:return _0x9b8f83(Te,{});case c[_0x4678b7(0x13c)]:return _0x9b8f83(Ae,{'coordinator':_0x2a5f9c});default:return null;}}function $e(_0xcbfff8){const _0x4755ad=_0x3460c1,{coordinator:_0x29a724}=_0xcbfff8;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4755ad(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4755ad(0xfb)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x29a724['tryStartPresenting'](),'children':_0x4755ad(0x105)})]});}function xe(_0x43f290){const _0x4922fa=_0x3460c1,{coordinator:_0x51ab5e}=_0x43f290;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4922fa(0x120),{'className':_0x4922fa(0x14f),'children':_0x4922fa(0xde)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x51ab5e[_0x4922fa(0xfa)](),'children':'Stop\x20following'})]});}function Pe(_0x14060b){const _0x362e5e=_0x3460c1,{coordinator:_0x2583f6}=_0x14060b;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x362e5e(0x120),{'className':_0x362e5e(0x14f),'children':_0x362e5e(0x15b)}),_0x9b8f83(_0x25f1f0,{'variant':_0x362e5e(0xd8),'onClick':()=>_0x2583f6[_0x362e5e(0x14c)](),'children':_0x362e5e(0x112)})]});}function Ae(_0x2d76d9){const _0x50c1d3=_0x3460c1,{coordinator:_0x406096}=_0x2d76d9;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x50c1d3(0x120),{'className':_0x50c1d3(0x14f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9b8f83(_0x25f1f0,{'variant':_0x50c1d3(0xff),'onClick':()=>_0x406096[_0x50c1d3(0x16d)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x5907f0=_0x3460c1;return _0x9b8f83(_0x51b535,{'children':_0x5907f0(0xd1)});}var Fe=Object[_0x3460c1(0x163)],He=(_0x538afa,_0x11611c,_0x44a43a,_0x4070c2)=>{for(var _0x1a7dbf=_0x4070c2>0x1?void 0x0:_0x4070c2?Fe(_0x11611c,_0x44a43a):_0x11611c,_0x1160de=_0x538afa['length']-0x1,_0x24251c;_0x1160de>=0x0;_0x1160de--)(_0x24251c=_0x538afa[_0x1160de])&&(_0x1a7dbf=_0x24251c(_0x1a7dbf)||_0x1a7dbf);return _0x1a7dbf;},A=(_0x4b15b1,_0x2de9ec)=>(_0x3a6df4,_0x52a4a2)=>_0x2de9ec(_0x3a6df4,_0x52a4a2,_0x4b15b1);let m=class extends _0xc5e0a9{constructor(_0x4873e9,_0x17d8e4){const _0x3a95ed=_0x3460c1;super(),this[_0x3a95ed(0x13a)]=_0x4873e9,this['_uiPartsService']=_0x17d8e4,this['_mountLiveShare']();}[_0x3460c1(0x16f)](){const _0x145b80=_0x3460c1;this[_0x145b80(0x158)](this['_uiPartsService'][_0x145b80(0xe2)](_0x5b833c[_0x145b80(0x125)],()=>_0x87cd1f(Le,this[_0x145b80(0x13a)])));}};m=He([A(0x0,_0x3bcdba(_0x19e107)),A(0x1,_0x42e77f)],m);const ye=_0x3460c1(0xf7),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x85e724,_0x4b18d9,_0x46848f,_0x7291df)=>{const _0x2e2c3c=_0x3460c1;for(var _0x5dfdc3=_0x7291df>0x1?void 0x0:_0x7291df?Ue(_0x4b18d9,_0x46848f):_0x4b18d9,_0x2dbdf0=_0x85e724[_0x2e2c3c(0xe6)]-0x1,_0x5177e1;_0x2dbdf0>=0x0;_0x2dbdf0--)(_0x5177e1=_0x85e724[_0x2dbdf0])&&(_0x5dfdc3=_0x5177e1(_0x5dfdc3)||_0x5dfdc3);return _0x5dfdc3;},je=(_0xcb74ea,_0x4aaf53)=>(_0x1c3b5c,_0x1b5ad3)=>_0x4aaf53(_0x1c3b5c,_0x1b5ad3,_0xcb74ea);let I=class extends _0xc5e0a9{constructor(_0x301154){const _0x48484d=_0x3460c1;super(),this[_0x48484d(0x170)]=_0x301154,this[_0x48484d(0xf5)]();}[_0x3460c1(0xf5)](){const _0x581c86=_0x3460c1;[_0x4fb690['id'],_0x5633c5['id'],_0x4608bd['id']][_0x581c86(0x11d)](_0x7ce23e=>{const _0x210a8c=_0x581c86;this[_0x210a8c(0x158)](this[_0x210a8c(0x170)]['registerSharedOperation'](_0x7ce23e));});}};I=Ve([je(0x0,_0x3bcdba(L))],I);var Me=Object[_0x3460c1(0x126)],ke=Object[_0x3460c1(0x163)],Ge=(_0x5a8dd8,_0x104b3a,_0x57d3bf)=>_0x104b3a in _0x5a8dd8?Me(_0x5a8dd8,_0x104b3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d3bf}):_0x5a8dd8[_0x104b3a]=_0x57d3bf,We=(_0x264d4e,_0x269ef6,_0x265b4b,_0x5943ce)=>{const _0x5e3e39=_0x3460c1;for(var _0x16d8da=_0x5943ce>0x1?void 0x0:_0x5943ce?ke(_0x269ef6,_0x265b4b):_0x269ef6,_0x2cb272=_0x264d4e[_0x5e3e39(0xe6)]-0x1,_0x56fb44;_0x2cb272>=0x0;_0x2cb272--)(_0x56fb44=_0x264d4e[_0x2cb272])&&(_0x16d8da=_0x56fb44(_0x16d8da)||_0x16d8da);return _0x16d8da;},F=(_0x28aab9,_0x30093a)=>(_0x27f10c,_0x24a5e8)=>_0x30093a(_0x27f10c,_0x24a5e8,_0x28aab9),B=(_0x11e79d,_0x40f52f,_0x3f6168)=>Ge(_0x11e79d,typeof _0x40f52f!=_0x3460c1(0xf4)?_0x40f52f+'':_0x40f52f,_0x3f6168);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x16f213{constructor(_0x3d8f0a=T,_0x5ce647,_0x352525){const _0x388b7f=_0x3460c1;super(),this[_0x388b7f(0xe1)]=_0x3d8f0a,this[_0x388b7f(0x13a)]=_0x5ce647,this[_0x388b7f(0xe5)]=_0x352525;const {..._0xbea9ef}=_0x125a7c({},T,this[_0x388b7f(0xe1)]);this[_0x388b7f(0xe5)][_0x388b7f(0xeb)](ye,_0xbea9ef);}[_0x3460c1(0xd4)](){const _0x293ee2=_0x3460c1;_0x41bf15(this[_0x293ee2(0x13a)],_0x1cc35b([[L],[S],[I],[m]],this['_config'][_0x293ee2(0x122)])),_0x15308f(this[_0x293ee2(0x13a)],[[I]]);}[_0x3460c1(0x137)](){_0x15308f(this['_injector'],[[m]]);}};B(b,'type',_0x3cb45b['UNIVER_UNKNOWN']),B(b,_0x3460c1(0x15d),Ye),b=We([_0x1ebbc3(_0x82618b),F(0x1,_0x3bcdba(_0x19e107)),F(0x2,_0x29db0f)],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 _0x352c44=_0x2e94;(function(_0xeea58e,_0x1e5708){const _0x3d7754=_0x2e94,_0x2f21fa=_0xeea58e();while(!![]){try{const _0x37f4bc=-parseInt(_0x3d7754(0xf0))/0x1*(parseInt(_0x3d7754(0xdc))/0x2)+parseInt(_0x3d7754(0xee))/0x3+parseInt(_0x3d7754(0xe7))/0x4*(parseInt(_0x3d7754(0xd4))/0x5)+-parseInt(_0x3d7754(0xd5))/0x6+parseInt(_0x3d7754(0xf2))/0x7+-parseInt(_0x3d7754(0xf4))/0x8+parseInt(_0x3d7754(0xe0))/0x9;if(_0x37f4bc===_0x1e5708)break;else _0x2f21fa['push'](_0x2f21fa['shift']());}catch(_0x4d781d){_0x2f21fa['push'](_0x2f21fa['shift']());}}}(_0x466f,0xea880));import{LiveShareController as _0x10a042,LiveShareStatus as _0x145361}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2ad8b3}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1ae3d5}from'@univerjs/sheets';import{SetScrollOperation as _0x4c78b8}from'@univerjs/sheets-ui';import{FRange as _0xfe9845}from'@univerjs/sheets/facade';import{FUniver as _0x2c0cbf,FEnum as _0x57ddce}from'@univerjs/core/facade';function _0x466f(){const _0x486f77=['syncExecuteCommand','executeCommand','getSheetId','getRenderById','2013656kmHItX','getLiveShareCoordinatorSync','getId','PRESENTING','stopFollowing','startFollowing','LiveShareStatusEnum','3915897wMEsAc','_initialize','54419QrkmFl','No\x20active\x20workbook\x20found.','3466057ipmcuK','_commandService','14445608IJpWWn','IDLE','10wtgeZW','9244110MIcitJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getActiveWorkbook','get','getActiveSheet','58rGLmsA','getUnitId','startColumn','extend','27701091tnLvLl','startPresenting','_injector'];_0x466f=function(){return _0x486f77;};return _0x466f();}function _0x2e94(_0x18ce63,_0x523b77){_0x18ce63=_0x18ce63-0xd4;const _0x466f1d=_0x466f();let _0x2e9439=_0x466f1d[_0x18ce63];return _0x2e9439;}class I extends _0xfe9845{[_0x352c44(0xef)](_0x42352f,_0x423796,_0x2c9a24,_0xeffee5,_0x44897a){const _0x4806d=_0x352c44,_0x3c6826=_0x42352f[_0x4806d(0xda)](_0x10a042),_0x33f22f=_0x42352f[_0x4806d(0xda)](_0x2ad8b3),_0x2c2329=_0x423796[_0x4806d(0xdd)](),_0x4e3ba8=_0x423796[_0x4806d(0xdb)](),_0x264362=_0x3c6826['getLiveShareCoordinatorSync'](_0x2c2329);(_0x264362==null?void 0x0:_0x264362[_0x4806d(0xd7)]())!==_0x145361[_0x4806d(0xea)]||(_0x2c9a24['getSheetId']()!==_0x4e3ba8['getSheetId']()&&this[_0x4806d(0xf3)][_0x4806d(0xe4)](_0x1ae3d5['id'],{'unitId':_0x2c2329,'subUnitId':_0x2c9a24[_0x4806d(0xe5)]()}),!_0x33f22f[_0x4806d(0xe6)](_0x2c2329))||_0x44897a[_0x4806d(0xe3)](_0x4c78b8['id'],{'unitId':_0x423796[_0x4806d(0xdd)](),'sheetId':_0x2c9a24['getSheetId'](),'sheetViewStartRow':_0xeffee5['startRow'],'sheetViewStartColumn':_0xeffee5[_0x4806d(0xde)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfe9845[_0x352c44(0xdf)](I);class m extends _0x2c0cbf{['getLiveShareStatus'](){const _0xfd37f8=_0x352c44;var _0x5ee508,_0x2c27ef;const _0x3bf8ee=this[_0xfd37f8(0xe2)]['get'](_0x10a042),_0x3dcd68=(_0x5ee508=this[_0xfd37f8(0xd9)]())==null?void 0x0:_0x5ee508[_0xfd37f8(0xe9)]();if(!_0x3dcd68)throw new Error(_0xfd37f8(0xf1));const _0x583e99=_0x3bf8ee[_0xfd37f8(0xe8)](_0x3dcd68);return(_0x2c27ef=_0x583e99==null?void 0x0:_0x583e99[_0xfd37f8(0xd7)]())!=null?_0x2c27ef:_0x145361[_0xfd37f8(0xf5)];}[_0x352c44(0xec)](){const _0x27e81e=_0x352c44;var _0x2823d5;const _0x201f8e=this['_injector'][_0x27e81e(0xda)](_0x10a042),_0x2a8a0b=(_0x2823d5=this[_0x27e81e(0xd9)]())==null?void 0x0:_0x2823d5[_0x27e81e(0xe9)]();if(!_0x2a8a0b)throw new Error(_0x27e81e(0xf1));const _0x4ad8fa=_0x201f8e[_0x27e81e(0xe8)](_0x2a8a0b);if(!_0x4ad8fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ad8fa[_0x27e81e(0xec)]();}[_0x352c44(0xeb)](){const _0x25c6bc=_0x352c44;var _0x6741d1;const _0xb9578a=this['_injector'][_0x25c6bc(0xda)](_0x10a042),_0x318beb=(_0x6741d1=this[_0x25c6bc(0xd9)]())==null?void 0x0:_0x6741d1['getId']();if(!_0x318beb)throw new Error('No\x20active\x20workbook\x20found.');const _0x45f11a=_0xb9578a[_0x25c6bc(0xe8)](_0x318beb);if(!_0x45f11a)throw new Error(_0x25c6bc(0xd6));_0x45f11a[_0x25c6bc(0xeb)]();}[_0x352c44(0xe1)](){const _0xad5d18=_0x352c44;var _0x328887;const _0x3d2b19=this[_0xad5d18(0xe2)][_0xad5d18(0xda)](_0x10a042),_0x53350f=(_0x328887=this[_0xad5d18(0xd9)]())==null?void 0x0:_0x328887['getId']();if(!_0x53350f)throw new Error(_0xad5d18(0xf1));const _0x24b6e0=_0x3d2b19['getLiveShareCoordinatorSync'](_0x53350f);if(!_0x24b6e0)throw new Error(_0xad5d18(0xd6));_0x24b6e0['tryStartPresenting']();}[_0x352c44(0xd8)](){const _0x58da10=_0x352c44;var _0x4ef740;const _0x214e47=this[_0x58da10(0xe2)]['get'](_0x10a042),_0x3d19d0=(_0x4ef740=this['getActiveWorkbook']())==null?void 0x0:_0x4ef740[_0x58da10(0xe9)]();if(!_0x3d19d0)throw new Error(_0x58da10(0xf1));const _0x520760=_0x214e47[_0x58da10(0xe8)](_0x3d19d0);if(!_0x520760)throw new Error(_0x58da10(0xd6));_0x520760[_0x58da10(0xd8)]();}}_0x2c0cbf['extend'](m);class C extends _0x57ddce{get[_0x352c44(0xed)](){return _0x145361;}}_0x57ddce[_0x352c44(0xdf)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0x3460c1=_0x4557;(function(_0x5e91aa,_0x551fe5){const _0xc8edc0=_0x4557,_0x46e6de=_0x5e91aa();while(!![]){try{const _0x806443=-parseInt(_0xc8edc0(0x150))/0x1*(parseInt(_0xc8edc0(0xdc))/0x2)+-parseInt(_0xc8edc0(0xd6))/0x3+parseInt(_0xc8edc0(0x13f))/0x4+parseInt(_0xc8edc0(0x15c))/0x5*(-parseInt(_0xc8edc0(0x15e))/0x6)+parseInt(_0xc8edc0(0xf8))/0x7*(parseInt(_0xc8edc0(0x100))/0x8)+-parseInt(_0xc8edc0(0x119))/0x9+parseInt(_0xc8edc0(0x104))/0xa*(parseInt(_0xc8edc0(0xda))/0xb);if(_0x806443===_0x551fe5)break;else _0x46e6de['push'](_0x46e6de['shift']());}catch(_0x527f52){_0x46e6de['push'](_0x46e6de['shift']());}}}(_0x2e26,0x4b0b4));var J=Object[_0x3460c1(0x126)],K=(_0xee29c6,_0x1c2b47,_0x49608d)=>_0x1c2b47 in _0xee29c6?J(_0xee29c6,_0x1c2b47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49608d}):_0xee29c6[_0x1c2b47]=_0x49608d,u=(_0x3e01fd,_0x32c32d,_0x4ce276)=>K(_0x3e01fd,typeof _0x32c32d!=_0x3460c1(0xf4)?_0x32c32d+'':_0x32c32d,_0x4ce276);import{Disposable as _0xc5e0a9,toDisposable as _0x87ebf2,IUniverInstanceService as _0xa87a14,Inject as _0x3bcdba,Injector as _0x19e107,IConfigService as _0x29db0f,ICommandService as _0x565687,RxDisposable as _0x591da1,UniverInstanceType as _0x3cb45b,DisposableCollection as _0x81324e,CommandType as _0x5504a2,DependentOn as _0x1ebbc3,Plugin as _0x16f213,merge as _0x125a7c,registerDependencies as _0x41bf15,mergeOverrideWithDependencies as _0x1cc35b,touchDependencies as _0x15308f}from'@univerjs/core';import{useDependency as _0x2b3e7d,useObservable as _0x27fd11,IUIPartsService as _0x42e77f,BuiltInUIPart as _0x5b833c,connectInjector as _0x87cd1f}from'@univerjs/ui';import{jsx as _0x9b8f83,jsxs as _0x3911e5,Fragment as _0x51b535}from'react/jsx-runtime';import{Dropdown as _0x320cc1,clsx as _0x889c00,Button as _0x25f1f0}from'@univerjs/design';import{useRef as _0x198b9b,createElement as _0x496fa8,forwardRef as _0x1d4949,useState as _0x51630b,useEffect as _0x112452}from'react';import{CollaborationEvent as _0x1bd605,parseProtocolChangeset as _0x52281c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x419de7,SessionStatus as _0x472715,UniverCollaborationClientPlugin as _0x82618b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x90e1c7,SetWorksheetActiveOperation as _0x4608bd}from'@univerjs/sheets';import{BehaviorSubject as _0x54131c,Subject as _0x1d9924}from'rxjs';import{takeUntil as _0x1cfb04,throttleTime as _0x387acb}from'rxjs/operators';import{SetZoomRatioOperation as _0x4fb690,SetScrollOperation as _0x5633c5}from'@univerjs/sheets-ui';function k({ref:_0x26a054,..._0x5508a8}){const _0x151f62=_0x3460c1,{icon:_0x399b7f,id:_0x6c9fe5,className:_0x5c55ac,extend:_0x4505a3,..._0x440c88}=_0x5508a8,_0x5af4eb=('univerjs-icon\x20univerjs-icon-'+_0x6c9fe5+'\x20'+(_0x5c55ac||''))['trim'](),_0x47c2e5=_0x198b9b('_'+Oe());return G(_0x399b7f,''+_0x6c9fe5,{'defIds':_0x399b7f['defIds'],'idSuffix':_0x47c2e5[_0x151f62(0xd3)]},{'ref':_0x26a054,'className':_0x5af4eb,..._0x440c88},_0x4505a3);}function G(_0x37cf3b,_0x5f31e4,_0x2ecc13,_0x9b24bc,_0x54e131){const _0x482e13=_0x3460c1;return _0x496fa8(_0x37cf3b['tag'],{'key':_0x5f31e4,...be(_0x37cf3b,_0x2ecc13,_0x54e131),..._0x9b24bc},(Ee(_0x37cf3b,_0x2ecc13)[_0x482e13(0x11f)]||[])[_0x482e13(0x13e)]((_0x22d74d,_0x2b0a24)=>G(_0x22d74d,_0x5f31e4+'-'+_0x37cf3b[_0x482e13(0x111)]+'-'+_0x2b0a24,_0x2ecc13,void 0x0,_0x54e131)));}function be(_0x226ed1,_0x4bfac6,_0x5760a2){const _0x187901=_0x3460c1,_0x51172a={..._0x226ed1[_0x187901(0x145)]};_0x5760a2!=null&&_0x5760a2[_0x187901(0x12e)]&&_0x51172a[_0x187901(0x14e)]===_0x187901(0x12e)&&(_0x51172a['fill']=_0x5760a2[_0x187901(0x12e)]),_0x226ed1[_0x187901(0x111)]===_0x187901(0x10c)&&_0x51172a['id']&&(_0x51172a['id']=_0x51172a['id']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x52dc91,_0x2c29ad])=>{const _0x5806ec=_0x187901;_0x52dc91==='mask'&&typeof _0x2c29ad==_0x5806ec(0x161)&&(_0x51172a[_0x52dc91]=_0x2c29ad['replace'](/url\(#(.*)\)/,_0x5806ec(0x116)+_0x4bfac6[_0x5806ec(0xfc)]+')'));});const {defIds:_0x2d7710}=_0x4bfac6;return!_0x2d7710||_0x2d7710['length']===0x0||(_0x226ed1['tag']===_0x187901(0x154)&&_0x51172a['xlink:href']&&(_0x51172a['xlink:href']=_0x51172a['xlink:href']+_0x4bfac6[_0x187901(0xfc)]),Object[_0x187901(0x15a)](_0x51172a)[_0x187901(0x11d)](([_0x18a762,_0x37b00d])=>{const _0x534e15=_0x187901;typeof _0x37b00d==_0x534e15(0x161)&&(_0x51172a[_0x18a762]=_0x37b00d[_0x534e15(0x11e)](/url\(#(.*)\)/,_0x534e15(0x116)+_0x4bfac6['idSuffix']+')'));})),_0x51172a;}function Ee(_0x43f4ae,_0x4b935d){const _0x3ba781=_0x3460c1;var _0x474e3d;const {defIds:_0xa41c91}=_0x4b935d;return!_0xa41c91||_0xa41c91[_0x3ba781(0xe6)]===0x0?_0x43f4ae:_0x43f4ae[_0x3ba781(0x111)]===_0x3ba781(0x139)&&((_0x474e3d=_0x43f4ae[_0x3ba781(0x11f)])!=null&&_0x474e3d[_0x3ba781(0xe6)])?{..._0x43f4ae,'children':_0x43f4ae[_0x3ba781(0x11f)]['map'](_0x22572c=>typeof _0x22572c[_0x3ba781(0x145)]['id']==_0x3ba781(0x161)&&_0xa41c91&&_0xa41c91['includes'](_0x22572c[_0x3ba781(0x145)]['id'])?{..._0x22572c,'attrs':{..._0x22572c['attrs'],'id':_0x22572c[_0x3ba781(0x145)]['id']+_0x4b935d['idSuffix']}}:_0x22572c)}:_0x43f4ae;}function Oe(){const _0x571914=_0x3460c1;return Math[_0x571914(0x110)]()[_0x571914(0x16c)](0x24)[_0x571914(0x12a)](0x2,0x8);}k[_0x3460c1(0xd2)]=_0x3460c1(0x14b);const we={'tag':_0x3460c1(0xe8),'attrs':{'xmlns':_0x3460c1(0x156),'fill':_0x3460c1(0x118),'viewBox':_0x3460c1(0xdf),'width':'1em','height':_0x3460c1(0x12c)},'children':[{'tag':'path','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':_0x3460c1(0xe4),'attrs':{'fill':_0x3460c1(0x157),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3460c1(0x11b)}}]},W=_0x1d4949(function(_0x1e7683,_0x9a32e2){const _0x448ee4=_0x3460c1;return _0x496fa8(k,Object[_0x448ee4(0x128)]({},_0x1e7683,{'id':_0x448ee4(0x141),'ref':_0x9a32e2,'icon':we}));});W['displayName']='LiveShareIcon';class L extends _0xc5e0a9{constructor(){const _0x4eec30=_0x3460c1;super(...arguments),u(this,_0x4eec30(0xe0),new Set()),u(this,_0x4eec30(0x131),new Set());}[_0x3460c1(0xec)](_0xce0c2b){const _0x27c1c2=_0x3460c1;return this['_sharedOperations'][_0x27c1c2(0x149)](_0xce0c2b),_0x87ebf2(()=>this['_sharedOperations'][_0x27c1c2(0xd0)](_0xce0c2b));}['registerInitialStateReporter'](_0x5486f1){const _0x134273=_0x3460c1;return this['_reporters'][_0x134273(0x149)](_0x5486f1),_0x87ebf2(()=>this[_0x134273(0x131)][_0x134273(0xd0)](_0x5486f1));}[_0x3460c1(0x153)](_0x382e39){const _0x4900b3=_0x3460c1;return this[_0x4900b3(0xe0)]['has'](_0x382e39);}['getInitialStates'](_0x2277c7){const _0x56ffca=_0x3460c1;return Array[_0x56ffca(0x102)](this['_reporters'])[_0x56ffca(0x13e)](_0xee86d4=>_0xee86d4(_0x2277c7));}}var Ne=Object[_0x3460c1(0x163)],Y=(_0x3ad7f6,_0xb6cc1e,_0x210af2,_0x30d218)=>{const _0x57a988=_0x3460c1;for(var _0x4e546e=_0x30d218>0x1?void 0x0:_0x30d218?Ne(_0xb6cc1e,_0x210af2):_0xb6cc1e,_0x5c3e02=_0x3ad7f6[_0x57a988(0xe6)]-0x1,_0x44c03a;_0x5c3e02>=0x0;_0x5c3e02--)(_0x44c03a=_0x3ad7f6[_0x5c3e02])&&(_0x4e546e=_0x44c03a(_0x4e546e)||_0x4e546e);return _0x4e546e;},_=(_0x1de16c,_0x3cb4b0)=>(_0x2c8718,_0x19ca88)=>_0x3cb4b0(_0x2c8718,_0x19ca88,_0x1de16c);let S=class extends _0x591da1{constructor(_0x53d9f1,_0xe2dd4c,_0x15c992){const _0x410d85=_0x3460c1;super(),u(this,'_entities',new Map()),(this[_0x410d85(0x144)]=_0x53d9f1,this['_injector']=_0xe2dd4c,this['_collabSessionService']=_0x15c992,this['_init']());}async[_0x3460c1(0x117)](_0x49cd36){const _0x21f2d2=_0x3460c1;return this[_0x21f2d2(0x115)]['has'](_0x49cd36)||await this[_0x21f2d2(0xf9)](_0x49cd36),this['_entities'][_0x21f2d2(0x138)](_0x49cd36);}['getLiveShareCoordinatorSync'](_0x3b6bf2){const _0xb68733=_0x3460c1;var _0x131cbc;return(_0x131cbc=this[_0xb68733(0x115)][_0xb68733(0x138)](_0x3b6bf2))!=null?_0x131cbc:null;}[_0x3460c1(0xf5)](){const _0x280766=_0x3460c1;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cb45b[_0x280766(0x12f)])['pipe'](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](async _0x239aaf=>{const _0x3e300a=_0x280766,_0x1c4969=_0x239aaf[_0x3e300a(0xed)]();this[_0x3e300a(0x115)]['has'](_0x1c4969)||this['_startLiveShareCoordinator'](_0x1c4969);}),this[_0x280766(0x144)][_0x280766(0x10b)](_0x3cb45b[_0x280766(0x12f)])[_0x280766(0x11c)](_0x1cfb04(this[_0x280766(0xea)]))['subscribe'](_0x1cb7c5=>{const _0x48a1db=_0x280766,_0x2a0b5e=_0x1cb7c5[_0x48a1db(0xed)](),_0x12175d=this['_entities'][_0x48a1db(0x138)](_0x2a0b5e);_0x12175d==null||_0x12175d['dispose']();});}async[_0x3460c1(0xf9)](_0x30b34c){const _0x26092a=_0x3460c1,_0x13bd2c=await this[_0x26092a(0x10f)]['requireSession'](_0x30b34c),_0xbe848e=this['_injector'][_0x26092a(0x134)](N,_0x30b34c,_0x13bd2c);return _0xbe848e[_0x26092a(0x124)](),this['_entities'][_0x26092a(0x108)](_0x30b34c,_0xbe848e),_0xbe848e;}};function _0x4557(_0x319d5b,_0x466118){_0x319d5b=_0x319d5b-0xd0;const _0x2e2603=_0x2e26();let _0x4557b6=_0x2e2603[_0x319d5b];return _0x4557b6;}S=Y([_(0x0,_0xa87a14),_(0x1,_0x3bcdba(_0x19e107)),_(0x2,_0x3bcdba(_0x419de7))],S);var c=(_0x249ad8=>(_0x249ad8['OFFLINE']=_0x3460c1(0xdd),_0x249ad8[_0x3460c1(0x14a)]=_0x3460c1(0xe3),_0x249ad8[_0x3460c1(0x160)]=_0x3460c1(0x147),_0x249ad8[_0x3460c1(0x114)]=_0x3460c1(0x165),_0x249ad8[_0x3460c1(0x13c)]='presenting',_0x249ad8))(c||{});const Ce=_0x3460c1(0x148),De=0xc8;function _0x2e26(){const _0x5e967a=['dispose','event$','data','sessionStatus$','_commandService','_collabSession','symbol','_init','find','live-share.config','7VkPebU','_startLiveShareCoordinator','stopFollowing','Present\x20this\x20document','idSuffix','send','onCommandExecuted','default','4482536RTdaRF','next','from','_handleOnline','40eyXOLS','Start','params','_startPresenting','set','parse','_status$','getTypeOfUnitDisposed$','mask','includes','unitId','_collabSessionService','random','tag','Start\x20following','_handleNewChangeSets','NOT_FOLLOWING','_entities','url(#$1','getLiveShareCoordinator','none','4234896shwwpu','type','evenodd','pipe','forEach','replace','children','div','button','override','getValue','init','HEADER_MENU','defineProperty','getInitialStates','assign','has','substring','OFFLINE','1em','_fetchOperations','colorChannel1','UNIVER_SHEET','_handleOperation','_reporters','LIVESHARE_TERMINATE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','stringify','unsubscribe','onRendered','get','defs','_injector','getCurrentTypeOfUnit$','PRESENTING','tryStartPresenting','map','863220xHXkSL','subscribe','live-share-icon','_handleTerminate','_handleOffline','_univerInstanceService','attrs','clear','following','SAME_OPERATION_SHARE_INTERVAL','add','IDLE','UniverIcon','startFollowing','univer-size-4','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','23gaMkjK','LIVESHARE_FETCH_OPERATIONS','presenter','shouldShareOperation','use','_handleNewHost','http://www.w3.org/2000/svg','currentColor','disposeWithMe','memberID','entries','You\x27re\x20not\x20following\x20the\x20presenter','250YiFNYI','pluginName','38166BGNHdq','_unitID','FOLLOWING','string','ONLINE','getOwnPropertyDescriptor','_commandDisposable','not-following','presenting','status$','mutations','sheet','_startFollowing','getMemberID','toString','stopPresenting','then','_mountLiveShare','_liveShareService','delete','You\x27are\x20offline.','displayName','current','onStarting','_beIdle','527169AxmxmC','_status','text','_stopFollowing','1951246VrGJSu','executeCommand','18606rZGRuB','offline','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','_sharedOperations','_config','registerComponent','idle','path','_configService','length','_presenter','svg','LIVESHARE_REQUEST_HOST','dispose$','setConfig','registerSharedOperation','getUnitId'];_0x2e26=function(){return _0x5e967a;};return _0x2e26();}let N=class extends _0x591da1{constructor(_0x11b18b,_0x477f19,_0x257db7,_0xbbf2d2,_0x4bee3b){const _0x3ef8b0=_0x3460c1;super(),u(this,_0x3ef8b0(0x10a),new _0x54131c(_0x3ef8b0(0xe3))),u(this,_0x3ef8b0(0x167),this[_0x3ef8b0(0x10a)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x3ef8b0(0x164),null),u(this,_0x3ef8b0(0xe7),null),(this[_0x3ef8b0(0x15f)]=_0x11b18b,this['_collabSession']=_0x477f19,this[_0x3ef8b0(0xe5)]=_0x257db7,this['_liveShareService']=_0xbbf2d2,this[_0x3ef8b0(0xf2)]=_0x4bee3b);}get[_0x3460c1(0xd7)](){const _0x5d3644=_0x3460c1;return this[_0x5d3644(0x10a)][_0x5d3644(0x123)]();}[_0x3460c1(0xee)](){const _0x54914b=_0x3460c1;var _0x371575;(_0x371575=this[_0x54914b(0x164)])==null||_0x371575[_0x54914b(0xee)](),this[_0x54914b(0x10a)][_0x54914b(0x101)](_0x54914b(0xe3)),this[_0x54914b(0x10a)]['complete']();}['getStatus'](){const _0x3507c4=_0x3460c1;return this[_0x3507c4(0xd7)];}[_0x3460c1(0x124)](){const _0x5a40dd=_0x3460c1;this[_0x5a40dd(0xf5)]||(this[_0x5a40dd(0xf5)]=!0x0,this['_collabSession'][_0x5a40dd(0xf1)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x279107=>{const _0x3ab0fd=_0x5a40dd;switch(_0x279107){case _0x472715[_0x3ab0fd(0x12b)]:this['_handleOffline']();break;case _0x472715[_0x3ab0fd(0x162)]:this[_0x3ab0fd(0x103)]();break;}}),this[_0x5a40dd(0xf3)][_0x5a40dd(0xef)]['pipe'](_0x1cfb04(this[_0x5a40dd(0xea)]))[_0x5a40dd(0x140)](_0x674d7d=>{const _0x500399=_0x5a40dd,{eventID:_0x406dc9}=_0x674d7d;switch(_0x406dc9){case _0x1bd605['LIVESHARE_NEW_HOST']:this[_0x500399(0x155)](_0x674d7d);break;case _0x1bd605['LIVESHARE_OPERATION']:this[_0x500399(0x130)](_0x674d7d);break;case _0x1bd605[_0x500399(0x132)]:this['_handleTerminate']();break;case _0x1bd605['NEW_CHANGESETS']:this[_0x500399(0x113)](_0x674d7d);break;}}));}[_0x3460c1(0x13d)](){const _0x4507dc=_0x3460c1;this[_0x4507dc(0xf3)]['send']({'eventID':_0x1bd605[_0x4507dc(0xe9)],'data':{'unitID':this[_0x4507dc(0x15f)],'userID':this[_0x4507dc(0xf3)][_0x4507dc(0x16b)]()}},this[_0x4507dc(0x15f)]);}[_0x3460c1(0x16d)](){const _0x4520c4=_0x3460c1;this[_0x4520c4(0xd7)]===_0x4520c4(0x166)&&(this[_0x4520c4(0x10a)][_0x4520c4(0x101)](_0x4520c4(0xe3)),this[_0x4520c4(0xf3)][_0x4520c4(0xfd)]({'eventID':_0x1bd605[_0x4520c4(0x132)],'data':{'unitID':this[_0x4520c4(0x15f)]}},this[_0x4520c4(0x15f)]));}[_0x3460c1(0x14c)](){const _0x558865=_0x3460c1;this[_0x558865(0xd7)]===_0x558865(0x165)&&(this['_status$'][_0x558865(0x101)](_0x558865(0x147)),this['_startFollowing']());}['stopFollowing'](){const _0x32da72=_0x3460c1;this[_0x32da72(0xd7)]===_0x32da72(0x147)&&this[_0x32da72(0xd9)]();}[_0x3460c1(0x155)](_0x5ef90d){const _0x2da164=_0x3460c1,{presenter:_0x288bbb}=_0x5ef90d[_0x2da164(0xf0)],_0x2f32d6=this[_0x2da164(0xf3)][_0x2da164(0x16b)]();this[_0x2da164(0xe7)]=_0x288bbb,_0x288bbb===_0x2f32d6?(this[_0x2da164(0xd9)](),this[_0x2da164(0x107)]()):this['_status']!==_0x2da164(0x165)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3460c1(0x12d)](){const _0x5294cf=_0x3460c1,_0x14a72c={'eventID':_0x1bd605[_0x5294cf(0x151)]};this[_0x5294cf(0xf3)][_0x5294cf(0xfd)](_0x14a72c,this['_unitID']);}[_0x3460c1(0x142)](){const _0x38d416=_0x3460c1;this[_0x38d416(0xe7)]=null,this[_0x38d416(0xd7)]!==_0x38d416(0x166)&&this[_0x38d416(0xd5)]();}[_0x3460c1(0x113)](_0x585489){const _0x503f5c=_0x3460c1;if(this['_status']==='following'&&this[_0x503f5c(0xe7)]===_0x585489[_0x503f5c(0xf0)][_0x503f5c(0x159)]){const _0x16ef39=_0x52281c(_0x585489[_0x503f5c(0xf0)])[_0x503f5c(0x168)]['reverse']()[_0x503f5c(0xf6)](_0x4e70d1=>_0x4e70d1['id']===_0x90e1c7['id']);if(_0x16ef39){const _0x25a089=_0x16ef39['params'][_0x503f5c(0x10e)],_0x436a77=_0x16ef39[_0x503f5c(0x106)][_0x503f5c(0x169)]['id'];setTimeout(()=>{const _0x19d3ef=_0x503f5c;this[_0x19d3ef(0xf2)][_0x19d3ef(0xdb)](_0x4608bd['id'],{'unitId':_0x25a089,'subUnitId':_0x436a77},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x496b72=_0x3460c1;this[_0x496b72(0x10a)]['next']('presenting');const _0x2642e6=new Map(),_0x20a636=this[_0x496b72(0x164)]=new _0x81324e();_0x20a636[_0x496b72(0x149)](_0x87ebf2(()=>{const _0x548f8e=_0x496b72;_0x2642e6[_0x548f8e(0x11d)](_0x34fb0f=>_0x34fb0f['complete']()),_0x2642e6[_0x548f8e(0x146)]();})),_0x20a636['add'](this[_0x496b72(0xf2)][_0x496b72(0xfe)](_0x1d3c1d=>{const _0x2c366=_0x496b72;var _0x2ae01b;if(_0x1d3c1d[_0x2c366(0x11a)]!==_0x5504a2['OPERATION']||!this[_0x2c366(0x170)][_0x2c366(0x153)](_0x1d3c1d['id']))return;const {id:_0x31d627}=_0x1d3c1d;let _0x3d83c4;_0x2642e6[_0x2c366(0x129)](_0x31d627)?_0x3d83c4=_0x2642e6['get'](_0x31d627):(_0x3d83c4=new _0x1d9924(),_0x2642e6['set'](_0x31d627,_0x3d83c4),_0x3d83c4[_0x2c366(0x11c)](_0x387acb((_0x2ae01b=this[_0x2c366(0xe5)]['getConfig'](Ce))!=null?_0x2ae01b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c366(0x140)](_0xba430c=>{const _0x300dc2=_0x2c366;this['_collabSession'][_0x300dc2(0xfd)]({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x300dc2(0x15f)],'operations':{[_0xba430c['id']]:{'id':_0xba430c['id'],'params':JSON[_0x300dc2(0x135)](_0xba430c[_0x300dc2(0x106)])}}}},this[_0x300dc2(0x15f)]);})),_0x3d83c4[_0x2c366(0x101)](_0x1d3c1d);})),this[_0x496b72(0x170)][_0x496b72(0x127)](this[_0x496b72(0x15f)])[_0x496b72(0x11d)](_0x352994=>this[_0x496b72(0xf3)]['send']({'eventID':_0x1bd605['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x496b72(0x15f)],'operations':{[_0x352994['id']]:{'id':_0x352994['id'],'params':JSON[_0x496b72(0x135)](_0x352994[_0x496b72(0x106)])}}}},this[_0x496b72(0x15f)]));}['_stopPresenting'](){const _0x2e798d=_0x3460c1;var _0x5a524d;this[_0x2e798d(0x10a)][_0x2e798d(0x101)](_0x2e798d(0xe3)),(_0x5a524d=this[_0x2e798d(0x164)])==null||_0x5a524d[_0x2e798d(0xee)](),this[_0x2e798d(0x164)]=null;}[_0x3460c1(0x16a)](){const _0x5030db=_0x3460c1;var _0xb9a39d;(_0xb9a39d=this[_0x5030db(0x164)])==null||_0xb9a39d[_0x5030db(0xee)](),this[_0x5030db(0x10a)][_0x5030db(0x101)](_0x5030db(0x147));}[_0x3460c1(0xd5)](){const _0x31f927=_0x3460c1;var _0xe57fb7;this['_status$'][_0x31f927(0x101)]('idle'),(_0xe57fb7=this[_0x31f927(0x164)])==null||_0xe57fb7[_0x31f927(0xee)](),this[_0x31f927(0x164)]=null;}[_0x3460c1(0xd9)](){const _0x3589c4=_0x3460c1;var _0x1314b7;this[_0x3589c4(0x10a)][_0x3589c4(0x101)](_0x3589c4(0x165)),(_0x1314b7=this[_0x3589c4(0x164)])==null||_0x1314b7['dispose']();}['_handleOperation'](_0x3c1c91){const _0x514481=_0x3460c1;if([_0x514481(0x166),_0x514481(0x165),_0x514481(0xdd)][_0x514481(0x10d)](this[_0x514481(0xd7)])||!_0x3c1c91['data'][_0x514481(0x152)]||_0x3c1c91[_0x514481(0xf0)]['presenter']===this[_0x514481(0xf3)][_0x514481(0x16b)]())return;this[_0x514481(0xd7)]===_0x514481(0xe3)&&this[_0x514481(0x16a)]();const _0x4f3327=_0x3c1c91[_0x514481(0xf0)]['operations'];Object['values'](_0x4f3327)[_0x514481(0x11d)](_0x8f6359=>{const _0x59f750=_0x514481;this['_commandService'][_0x59f750(0xdb)](_0x8f6359['id'],_0x8f6359['params']?JSON[_0x59f750(0x109)](_0x8f6359[_0x59f750(0x106)]):null,{'fromCollab':!0x0});});}[_0x3460c1(0x143)](){const _0x1634e0=_0x3460c1;var _0x18cb66;this[_0x1634e0(0x10a)][_0x1634e0(0x101)](_0x1634e0(0xdd)),(_0x18cb66=this[_0x1634e0(0x164)])==null||_0x18cb66['dispose']();}[_0x3460c1(0x103)](){const _0x485e4a=_0x3460c1;this[_0x485e4a(0x10a)][_0x485e4a(0x101)]('idle'),this[_0x485e4a(0x12d)]();}};N=Y([_(0x2,_0x29db0f),_(0x3,_0x3bcdba(L)),_(0x4,_0x565687)],N);function Le(){const _0x4048c9=_0x3460c1,_0x1de4d5=_0x2b3e7d(S),_0x45a0b0=_0x2b3e7d(_0xa87a14),_0x1170b3=_0x27fd11(()=>_0x45a0b0[_0x4048c9(0x13b)](_0x3cb45b[_0x4048c9(0x12f)]),void 0x0,!0x1,[]),[_0x28449e,_0x1e80b1]=_0x51630b(null),[_0x1000d2,_0x16535e]=_0x51630b(c[_0x4048c9(0x14a)]),_0x767a5f=_0x198b9b(null);return _0x112452(()=>(_0x1170b3&&_0x1de4d5[_0x4048c9(0x117)](_0x1170b3['getUnitId']())[_0x4048c9(0x16e)](_0xc44a0c=>{const _0x54ea5c=_0x4048c9;_0x1e80b1(_0xc44a0c),_0x767a5f[_0x54ea5c(0xd3)]=_0xc44a0c[_0x54ea5c(0x167)]['subscribe'](_0x77fe00=>{_0x16535e(_0x77fe00);});}),()=>{const _0xd59584=_0x4048c9;var _0x51c0a1;(_0x51c0a1=_0x767a5f[_0xd59584(0xd3)])==null||_0x51c0a1[_0xd59584(0x136)](),_0x767a5f[_0xd59584(0xd3)]=null;}),[_0x1170b3,_0x1de4d5]),_0x28449e?_0x9b8f83(_0x320cc1,{'align':'end','disabled':_0x1000d2===c[_0x4048c9(0x12b)],'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':_0x9b8f83(Re,{'status':_0x1000d2,'coordinator':_0x28449e}),'children':_0x9b8f83(_0x4048c9(0x121),{'className':_0x889c00(_0x4048c9(0x133),{'univer-cursor-not-allowed':_0x1000d2===c[_0x4048c9(0x12b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1000d2!==c[_0x4048c9(0x12b)]}),'type':_0x4048c9(0x121),'children':_0x9b8f83(W,{'className':_0x4048c9(0x14d)})})}):null;}function Re(_0x49ce94){const _0x4678b7=_0x3460c1,{status:_0x8e73f5,coordinator:_0x2a5f9c}=_0x49ce94;switch(_0x8e73f5){case c[_0x4678b7(0x14a)]:return _0x9b8f83($e,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x160)]:return _0x9b8f83(xe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x114)]:return _0x9b8f83(Pe,{'coordinator':_0x2a5f9c});case c[_0x4678b7(0x12b)]:return _0x9b8f83(Te,{});case c[_0x4678b7(0x13c)]:return _0x9b8f83(Ae,{'coordinator':_0x2a5f9c});default:return null;}}function $e(_0xcbfff8){const _0x4755ad=_0x3460c1,{coordinator:_0x29a724}=_0xcbfff8;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4755ad(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4755ad(0xfb)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x29a724['tryStartPresenting'](),'children':_0x4755ad(0x105)})]});}function xe(_0x43f290){const _0x4922fa=_0x3460c1,{coordinator:_0x51ab5e}=_0x43f290;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x4922fa(0x120),{'className':_0x4922fa(0x14f),'children':_0x4922fa(0xde)}),_0x9b8f83(_0x25f1f0,{'onClick':()=>_0x51ab5e[_0x4922fa(0xfa)](),'children':'Stop\x20following'})]});}function Pe(_0x14060b){const _0x362e5e=_0x3460c1,{coordinator:_0x2583f6}=_0x14060b;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x362e5e(0x120),{'className':_0x362e5e(0x14f),'children':_0x362e5e(0x15b)}),_0x9b8f83(_0x25f1f0,{'variant':_0x362e5e(0xd8),'onClick':()=>_0x2583f6[_0x362e5e(0x14c)](),'children':_0x362e5e(0x112)})]});}function Ae(_0x2d76d9){const _0x50c1d3=_0x3460c1,{coordinator:_0x406096}=_0x2d76d9;return _0x3911e5(_0x51b535,{'children':[_0x9b8f83(_0x50c1d3(0x120),{'className':_0x50c1d3(0x14f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9b8f83(_0x25f1f0,{'variant':_0x50c1d3(0xff),'onClick':()=>_0x406096[_0x50c1d3(0x16d)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x5907f0=_0x3460c1;return _0x9b8f83(_0x51b535,{'children':_0x5907f0(0xd1)});}var Fe=Object[_0x3460c1(0x163)],He=(_0x538afa,_0x11611c,_0x44a43a,_0x4070c2)=>{for(var _0x1a7dbf=_0x4070c2>0x1?void 0x0:_0x4070c2?Fe(_0x11611c,_0x44a43a):_0x11611c,_0x1160de=_0x538afa['length']-0x1,_0x24251c;_0x1160de>=0x0;_0x1160de--)(_0x24251c=_0x538afa[_0x1160de])&&(_0x1a7dbf=_0x24251c(_0x1a7dbf)||_0x1a7dbf);return _0x1a7dbf;},A=(_0x4b15b1,_0x2de9ec)=>(_0x3a6df4,_0x52a4a2)=>_0x2de9ec(_0x3a6df4,_0x52a4a2,_0x4b15b1);let m=class extends _0xc5e0a9{constructor(_0x4873e9,_0x17d8e4){const _0x3a95ed=_0x3460c1;super(),this[_0x3a95ed(0x13a)]=_0x4873e9,this['_uiPartsService']=_0x17d8e4,this['_mountLiveShare']();}[_0x3460c1(0x16f)](){const _0x145b80=_0x3460c1;this[_0x145b80(0x158)](this['_uiPartsService'][_0x145b80(0xe2)](_0x5b833c[_0x145b80(0x125)],()=>_0x87cd1f(Le,this[_0x145b80(0x13a)])));}};m=He([A(0x0,_0x3bcdba(_0x19e107)),A(0x1,_0x42e77f)],m);const ye=_0x3460c1(0xf7),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x85e724,_0x4b18d9,_0x46848f,_0x7291df)=>{const _0x2e2c3c=_0x3460c1;for(var _0x5dfdc3=_0x7291df>0x1?void 0x0:_0x7291df?Ue(_0x4b18d9,_0x46848f):_0x4b18d9,_0x2dbdf0=_0x85e724[_0x2e2c3c(0xe6)]-0x1,_0x5177e1;_0x2dbdf0>=0x0;_0x2dbdf0--)(_0x5177e1=_0x85e724[_0x2dbdf0])&&(_0x5dfdc3=_0x5177e1(_0x5dfdc3)||_0x5dfdc3);return _0x5dfdc3;},je=(_0xcb74ea,_0x4aaf53)=>(_0x1c3b5c,_0x1b5ad3)=>_0x4aaf53(_0x1c3b5c,_0x1b5ad3,_0xcb74ea);let I=class extends _0xc5e0a9{constructor(_0x301154){const _0x48484d=_0x3460c1;super(),this[_0x48484d(0x170)]=_0x301154,this[_0x48484d(0xf5)]();}[_0x3460c1(0xf5)](){const _0x581c86=_0x3460c1;[_0x4fb690['id'],_0x5633c5['id'],_0x4608bd['id']][_0x581c86(0x11d)](_0x7ce23e=>{const _0x210a8c=_0x581c86;this[_0x210a8c(0x158)](this[_0x210a8c(0x170)]['registerSharedOperation'](_0x7ce23e));});}};I=Ve([je(0x0,_0x3bcdba(L))],I);var Me=Object[_0x3460c1(0x126)],ke=Object[_0x3460c1(0x163)],Ge=(_0x5a8dd8,_0x104b3a,_0x57d3bf)=>_0x104b3a in _0x5a8dd8?Me(_0x5a8dd8,_0x104b3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d3bf}):_0x5a8dd8[_0x104b3a]=_0x57d3bf,We=(_0x264d4e,_0x269ef6,_0x265b4b,_0x5943ce)=>{const _0x5e3e39=_0x3460c1;for(var _0x16d8da=_0x5943ce>0x1?void 0x0:_0x5943ce?ke(_0x269ef6,_0x265b4b):_0x269ef6,_0x2cb272=_0x264d4e[_0x5e3e39(0xe6)]-0x1,_0x56fb44;_0x2cb272>=0x0;_0x2cb272--)(_0x56fb44=_0x264d4e[_0x2cb272])&&(_0x16d8da=_0x56fb44(_0x16d8da)||_0x16d8da);return _0x16d8da;},F=(_0x28aab9,_0x30093a)=>(_0x27f10c,_0x24a5e8)=>_0x30093a(_0x27f10c,_0x24a5e8,_0x28aab9),B=(_0x11e79d,_0x40f52f,_0x3f6168)=>Ge(_0x11e79d,typeof _0x40f52f!=_0x3460c1(0xf4)?_0x40f52f+'':_0x40f52f,_0x3f6168);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x16f213{constructor(_0x3d8f0a=T,_0x5ce647,_0x352525){const _0x388b7f=_0x3460c1;super(),this[_0x388b7f(0xe1)]=_0x3d8f0a,this[_0x388b7f(0x13a)]=_0x5ce647,this[_0x388b7f(0xe5)]=_0x352525;const {..._0xbea9ef}=_0x125a7c({},T,this[_0x388b7f(0xe1)]);this[_0x388b7f(0xe5)][_0x388b7f(0xeb)](ye,_0xbea9ef);}[_0x3460c1(0xd4)](){const _0x293ee2=_0x3460c1;_0x41bf15(this[_0x293ee2(0x13a)],_0x1cc35b([[L],[S],[I],[m]],this['_config'][_0x293ee2(0x122)])),_0x15308f(this[_0x293ee2(0x13a)],[[I]]);}[_0x3460c1(0x137)](){_0x15308f(this['_injector'],[[m]]);}};B(b,'type',_0x3cb45b['UNIVER_UNKNOWN']),B(b,_0x3460c1(0x15d),Ye),b=We([_0x1ebbc3(_0x82618b),F(0x1,_0x3bcdba(_0x19e107)),F(0x2,_0x29db0f)],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(_0x59ac35,_0x193d18){const _0x539b41=_0x1a38,_0x36a813=_0x59ac35();while(!![]){try{const _0x1bd542=parseInt(_0x539b41(0x1e0))/0x1+-parseInt(_0x539b41(0x1dc))/0x2*(-parseInt(_0x539b41(0x1c5))/0x3)+-parseInt(_0x539b41(0x1f4))/0x4*(-parseInt(_0x539b41(0x1f0))/0x5)+-parseInt(_0x539b41(0x1cf))/0x6+parseInt(_0x539b41(0x1ec))/0x7*(-parseInt(_0x539b41(0x1ee))/0x8)+-parseInt(_0x539b41(0x1c9))/0x9*(parseInt(_0x539b41(0x1de))/0xa)+parseInt(_0x539b41(0x1c4))/0xb;if(_0x1bd542===_0x193d18)break;else _0x36a813['push'](_0x36a813['shift']());}catch(_0x2e197c){_0x36a813['push'](_0x36a813['shift']());}}}(_0x4b61,0x833fb),function(_0xf4b990,_0x39181d){const _0x3f8c24=_0x1a38;typeof exports==_0x3f8c24(0x1f6)&&typeof module<'u'?_0x39181d(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==_0x3f8c24(0x1d4)&&define[_0x3f8c24(0x1ed)]?define([_0x3f8c24(0x1f5),_0x3f8c24(0x1d5),_0x3f8c24(0x1cd),_0x3f8c24(0x1e6),'@univerjs/sheets/facade',_0x3f8c24(0x1d2)],_0x39181d):(_0xf4b990=typeof globalThis<'u'?globalThis:_0xf4b990||self,_0x39181d(_0xf4b990[_0x3f8c24(0x1cc)],_0xf4b990['UniverEngineRender'],_0xf4b990[_0x3f8c24(0x1e3)],_0xf4b990['UniverSheetsUi'],_0xf4b990['UniverSheetsFacade'],_0xf4b990[_0x3f8c24(0x1e1)]));}(this,function(_0x4e59df,_0x3cd12b,_0x2447d8,_0x4a8982,_0x4cb350,_0x1239e7){'use strict';const _0x14e708=_0x1a38;class _0x2f67f2 extends _0x4cb350[_0x14e708(0x1cb)]{[_0x14e708(0x1c6)](_0x12290a,_0x46865e,_0x52881a,_0x48bdd6,_0x5cddeb){const _0x151b06=_0x14e708,_0x10901b=_0x12290a['get'](_0x4e59df[_0x151b06(0x1c8)]),_0x1dc24a=_0x12290a[_0x151b06(0x1df)](_0x3cd12b[_0x151b06(0x1f2)]),_0x3620d4=_0x46865e[_0x151b06(0x1e9)](),_0x55c0a8=_0x46865e['getActiveSheet'](),_0x1941e7=_0x10901b[_0x151b06(0x1ce)](_0x3620d4);(_0x1941e7==null?void 0x0:_0x1941e7[_0x151b06(0x1d8)]())!==_0x4e59df[_0x151b06(0x1db)]['PRESENTING']||(_0x52881a[_0x151b06(0x1d3)]()!==_0x55c0a8[_0x151b06(0x1d3)]()&&this[_0x151b06(0x1dd)][_0x151b06(0x1e7)](_0x2447d8[_0x151b06(0x1d1)]['id'],{'unitId':_0x3620d4,'subUnitId':_0x52881a[_0x151b06(0x1d3)]()}),!_0x1dc24a[_0x151b06(0x1c3)](_0x3620d4))||_0x5cddeb[_0x151b06(0x1d9)](_0x4a8982['SetScrollOperation']['id'],{'unitId':_0x46865e[_0x151b06(0x1e9)](),'sheetId':_0x52881a[_0x151b06(0x1d3)](),'sheetViewStartRow':_0x48bdd6[_0x151b06(0x1e8)],'sheetViewStartColumn':_0x48bdd6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4cb350[_0x14e708(0x1cb)][_0x14e708(0x1ca)](_0x2f67f2);class _0x314cc7 extends _0x1239e7[_0x14e708(0x1f3)]{[_0x14e708(0x1c7)](){const _0x75fb75=_0x14e708;var _0x296d9c,_0x142d74;const _0x289f19=this[_0x75fb75(0x1f1)]['get'](_0x4e59df['LiveShareController']),_0x1e0278=(_0x296d9c=this[_0x75fb75(0x1e4)]())==null?void 0x0:_0x296d9c[_0x75fb75(0x1d6)]();if(!_0x1e0278)throw new Error('No\x20active\x20workbook\x20found.');const _0x46b35b=_0x289f19[_0x75fb75(0x1ce)](_0x1e0278);return(_0x142d74=_0x46b35b==null?void 0x0:_0x46b35b[_0x75fb75(0x1d8)]())!=null?_0x142d74:_0x4e59df[_0x75fb75(0x1db)][_0x75fb75(0x1e5)];}[_0x14e708(0x1ea)](){const _0x566be9=_0x14e708;var _0x2f9e9a;const _0x1fa64f=this[_0x566be9(0x1f1)]['get'](_0x4e59df[_0x566be9(0x1c8)]),_0x259926=(_0x2f9e9a=this['getActiveWorkbook']())==null?void 0x0:_0x2f9e9a['getId']();if(!_0x259926)throw new Error('No\x20active\x20workbook\x20found.');const _0xdc3b16=_0x1fa64f[_0x566be9(0x1ce)](_0x259926);if(!_0xdc3b16)throw new Error(_0x566be9(0x1f7));_0xdc3b16[_0x566be9(0x1ea)]();}[_0x14e708(0x1d7)](){const _0x590909=_0x14e708;var _0x32f3bc;const _0x42dfb6=this[_0x590909(0x1f1)]['get'](_0x4e59df[_0x590909(0x1c8)]),_0x57ee9d=(_0x32f3bc=this['getActiveWorkbook']())==null?void 0x0:_0x32f3bc['getId']();if(!_0x57ee9d)throw new Error(_0x590909(0x1eb));const _0x5839b4=_0x42dfb6[_0x590909(0x1ce)](_0x57ee9d);if(!_0x5839b4)throw new Error(_0x590909(0x1f7));_0x5839b4[_0x590909(0x1d7)]();}['startPresenting'](){const _0x5c05eb=_0x14e708;var _0x4a2687;const _0x5e3524=this[_0x5c05eb(0x1f1)]['get'](_0x4e59df[_0x5c05eb(0x1c8)]),_0x8a8638=(_0x4a2687=this[_0x5c05eb(0x1e4)]())==null?void 0x0:_0x4a2687[_0x5c05eb(0x1d6)]();if(!_0x8a8638)throw new Error('No\x20active\x20workbook\x20found.');const _0x437d08=_0x5e3524['getLiveShareCoordinatorSync'](_0x8a8638);if(!_0x437d08)throw new Error(_0x5c05eb(0x1f7));_0x437d08[_0x5c05eb(0x1d0)]();}[_0x14e708(0x1e2)](){const _0x546016=_0x14e708;var _0x54a325;const _0x280cab=this[_0x546016(0x1f1)][_0x546016(0x1df)](_0x4e59df[_0x546016(0x1c8)]),_0x1040ca=(_0x54a325=this[_0x546016(0x1e4)]())==null?void 0x0:_0x54a325[_0x546016(0x1d6)]();if(!_0x1040ca)throw new Error(_0x546016(0x1eb));const _0x267c67=_0x280cab['getLiveShareCoordinatorSync'](_0x1040ca);if(!_0x267c67)throw new Error(_0x546016(0x1f7));_0x267c67['stopPresenting']();}}_0x1239e7['FUniver'][_0x14e708(0x1ca)](_0x314cc7);class _0x12b96b extends _0x1239e7[_0x14e708(0x1ef)]{get[_0x14e708(0x1da)](){return _0x4e59df['LiveShareStatus'];}}_0x1239e7[_0x14e708(0x1ef)][_0x14e708(0x1ca)](_0x12b96b);}));function _0x1a38(_0x2c11c2,_0x44df6f){_0x2c11c2=_0x2c11c2-0x1c3;const _0x4b6191=_0x4b61();let _0x1a386f=_0x4b6191[_0x2c11c2];return _0x1a386f;}function _0x4b61(){const _0x129e9c=['function','@univerjs/engine-render','getId','stopFollowing','getStatus','syncExecuteCommand','LiveShareStatusEnum','LiveShareStatus','8TTrRoD','_commandService','23340oTodCC','get','1037251SJWrrJ','UniverCoreFacade','stopPresenting','UniverSheets','getActiveWorkbook','IDLE','@univerjs/sheets-ui','executeCommand','startRow','getUnitId','startFollowing','No\x20active\x20workbook\x20found.','91IIhaUt','amd','420568KfrdXn','FEnum','1060FFanls','_injector','IRenderManagerService','FUniver','14732sQwzwu','@univerjs-pro/live-share','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getRenderById','7425484rXkyzc','360576XvaZEs','_initialize','getLiveShareStatus','LiveShareController','3006tgZzca','extend','FRange','UniverProLiveShare','@univerjs/sheets','getLiveShareCoordinatorSync','5839710cBbDib','tryStartPresenting','SetWorksheetActiveOperation','@univerjs/core/facade','getSheetId'];_0x4b61=function(){return _0x129e9c;};return _0x4b61();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x24c2(_0xff1e91,_0x2dbe21){_0xff1e91=_0xff1e91-0x75;const _0xe5a62b=_0xe5a6();let _0x24c2d7=_0xe5a62b[_0xff1e91];return _0x24c2d7;}(function(_0x1df038,_0x1441f4){const _0x5a2158=_0x24c2,_0x1c4ad7=_0x1df038();while(!![]){try{const _0x38b80b=-parseInt(_0x5a2158(0x87))/0x1*(-parseInt(_0x5a2158(0xa5))/0x2)+parseInt(_0x5a2158(0x141))/0x3*(-parseInt(_0x5a2158(0xbe))/0x4)+-parseInt(_0x5a2158(0x160))/0x5+parseInt(_0x5a2158(0x93))/0x6*(parseInt(_0x5a2158(0x14c))/0x7)+-parseInt(_0x5a2158(0x99))/0x8*(parseInt(_0x5a2158(0x13c))/0x9)+-parseInt(_0x5a2158(0xe3))/0xa+parseInt(_0x5a2158(0xb4))/0xb;if(_0x38b80b===_0x1441f4)break;else _0x1c4ad7['push'](_0x1c4ad7['shift']());}catch(_0xfc58a0){_0x1c4ad7['push'](_0x1c4ad7['shift']());}}}(_0xe5a6,0x30ebf),function(_0x5a0afb,_0x414369){const _0x219e91=_0x24c2;typeof exports==_0x219e91(0xf6)&&typeof module<'u'?_0x414369(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==_0x219e91(0xdc)&&define[_0x219e91(0x111)]?define([_0x219e91(0x118),_0x219e91(0x162),_0x219e91(0xa8),_0x219e91(0x15d),_0x219e91(0x121),_0x219e91(0x116),_0x219e91(0x8d),_0x219e91(0x131),'@univerjs/sheets',_0x219e91(0xc2),_0x219e91(0xeb),_0x219e91(0x140)],_0x414369):(_0x5a0afb=typeof globalThis<'u'?globalThis:_0x5a0afb||self,_0x414369(_0x5a0afb[_0x219e91(0x78)]={},_0x5a0afb[_0x219e91(0x11f)],_0x5a0afb[_0x219e91(0x132)],_0x5a0afb[_0x219e91(0x7a)],_0x5a0afb[_0x219e91(0xf7)],_0x5a0afb['React'],_0x5a0afb[_0x219e91(0xd1)],_0x5a0afb[_0x219e91(0x158)],_0x5a0afb[_0x219e91(0xd8)],_0x5a0afb[_0x219e91(0xc2)],_0x5a0afb[_0x219e91(0xc2)][_0x219e91(0x8a)],_0x5a0afb[_0x219e91(0x137)]));}(this,function(_0x3d5254,_0x1383de,_0x47bd3b,_0x561cf3,_0x47ac77,_0xeb3c95,_0x332357,_0x435296,_0x504be1,_0x1520bf,_0x4263b7,_0x256bc6){'use strict';const _0x10fbf1=_0x24c2;var _0x3c369a=Object[_0x10fbf1(0x85)],_0x17473d=(_0x3d4628,_0x4dbc57,_0x53382c)=>_0x4dbc57 in _0x3d4628?_0x3c369a(_0x3d4628,_0x4dbc57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53382c}):_0x3d4628[_0x4dbc57]=_0x53382c,_0x6b6d25=(_0x2ca5e3,_0x3db082,_0xe3e363)=>_0x17473d(_0x2ca5e3,typeof _0x3db082!=_0x10fbf1(0x105)?_0x3db082+'':_0x3db082,_0xe3e363);function _0x455f6b({ref:_0x1eef72,..._0x4cae7e}){const _0x765ec2=_0x10fbf1,{icon:_0x2be092,id:_0x3f18c2,className:_0x1f2328,extend:_0x56ecbe,..._0x457111}=_0x4cae7e,_0x26cc07=('univerjs-icon\x20univerjs-icon-'+_0x3f18c2+'\x20'+(_0x1f2328||''))['trim'](),_0x52259b=_0xeb3c95[_0x765ec2(0x11d)]('_'+_0x26db05());return _0x371763(_0x2be092,''+_0x3f18c2,{'defIds':_0x2be092[_0x765ec2(0x81)],'idSuffix':_0x52259b[_0x765ec2(0xe4)]},{'ref':_0x1eef72,'className':_0x26cc07,..._0x457111},_0x56ecbe);}function _0x371763(_0x3529fd,_0x4cbf33,_0x51982b,_0x21e744,_0x12ca7e){const _0x16081d=_0x10fbf1;return _0xeb3c95[_0x16081d(0x9d)](_0x3529fd['tag'],{'key':_0x4cbf33,..._0x20e07d(_0x3529fd,_0x51982b,_0x12ca7e),..._0x21e744},(_0x483ff5(_0x3529fd,_0x51982b)[_0x16081d(0xf5)]||[])['map']((_0x254227,_0x472efa)=>_0x371763(_0x254227,_0x4cbf33+'-'+_0x3529fd[_0x16081d(0x129)]+'-'+_0x472efa,_0x51982b,void 0x0,_0x12ca7e)));}function _0x20e07d(_0x4909bc,_0x48c10e,_0x15592c){const _0x344875=_0x10fbf1,_0x30fdde={..._0x4909bc['attrs']};_0x15592c!=null&&_0x15592c[_0x344875(0x125)]&&_0x30fdde[_0x344875(0x112)]==='colorChannel1'&&(_0x30fdde[_0x344875(0x112)]=_0x15592c[_0x344875(0x125)]),_0x4909bc[_0x344875(0x129)]===_0x344875(0x126)&&_0x30fdde['id']&&(_0x30fdde['id']=_0x30fdde['id']+_0x48c10e[_0x344875(0xf4)]),Object[_0x344875(0x9b)](_0x30fdde)[_0x344875(0x90)](([_0x406fc5,_0xc9f6c6])=>{const _0x55147d=_0x344875;_0x406fc5===_0x55147d(0x126)&&typeof _0xc9f6c6==_0x55147d(0xe1)&&(_0x30fdde[_0x406fc5]=_0xc9f6c6[_0x55147d(0x103)](/url\(#(.*)\)/,_0x55147d(0x152)+_0x48c10e['idSuffix']+')'));});const {defIds:_0x31941c}=_0x48c10e;return!_0x31941c||_0x31941c[_0x344875(0x143)]===0x0||(_0x4909bc['tag']==='use'&&_0x30fdde[_0x344875(0x80)]&&(_0x30fdde[_0x344875(0x80)]=_0x30fdde[_0x344875(0x80)]+_0x48c10e[_0x344875(0xf4)]),Object['entries'](_0x30fdde)[_0x344875(0x90)](([_0x4d2320,_0xcceb91])=>{const _0x5b312d=_0x344875;typeof _0xcceb91==_0x5b312d(0xe1)&&(_0x30fdde[_0x4d2320]=_0xcceb91[_0x5b312d(0x103)](/url\(#(.*)\)/,_0x5b312d(0x152)+_0x48c10e[_0x5b312d(0xf4)]+')'));})),_0x30fdde;}function _0x483ff5(_0x396101,_0x254fe7){const _0x4703e1=_0x10fbf1;var _0x5b4bd8;const {defIds:_0x366c9f}=_0x254fe7;return!_0x366c9f||_0x366c9f[_0x4703e1(0x143)]===0x0?_0x396101:_0x396101['tag']===_0x4703e1(0x130)&&((_0x5b4bd8=_0x396101[_0x4703e1(0xf5)])!=null&&_0x5b4bd8[_0x4703e1(0x143)])?{..._0x396101,'children':_0x396101[_0x4703e1(0xf5)]['map'](_0xc3efcf=>typeof _0xc3efcf[_0x4703e1(0x96)]['id']==_0x4703e1(0xe1)&&_0x366c9f&&_0x366c9f[_0x4703e1(0x146)](_0xc3efcf[_0x4703e1(0x96)]['id'])?{..._0xc3efcf,'attrs':{..._0xc3efcf['attrs'],'id':_0xc3efcf[_0x4703e1(0x96)]['id']+_0x254fe7['idSuffix']}}:_0xc3efcf)}:_0x396101;}function _0x26db05(){const _0xd53aec=_0x10fbf1;return Math[_0xd53aec(0x9a)]()[_0xd53aec(0x14d)](0x24)[_0xd53aec(0x9e)](0x2,0x8);}_0x455f6b[_0x10fbf1(0xd7)]=_0x10fbf1(0x10a);const _0x2a3266={'tag':_0x10fbf1(0x79),'attrs':{'xmlns':_0x10fbf1(0x7f),'fill':_0x10fbf1(0xe9),'viewBox':_0x10fbf1(0xba),'width':'1em','height':_0x10fbf1(0xce)},'children':[{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0xc5)}},{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0x88),'fillRule':_0x10fbf1(0xbc),'clipRule':_0x10fbf1(0xbc)}}]},_0x2ad1f1=_0xeb3c95[_0x10fbf1(0x100)](function(_0x128338,_0x36543a){const _0x2f34be=_0x10fbf1;return _0xeb3c95[_0x2f34be(0x9d)](_0x455f6b,Object[_0x2f34be(0x13b)]({},_0x128338,{'id':'live-share-icon','ref':_0x36543a,'icon':_0x2a3266}));});_0x2ad1f1[_0x10fbf1(0xd7)]=_0x10fbf1(0xd6);class _0x37da54 extends _0x1383de[_0x10fbf1(0x104)]{constructor(){const _0x32d5d7=_0x10fbf1;super(...arguments),_0x6b6d25(this,_0x32d5d7(0x8b),new Set()),_0x6b6d25(this,'_reporters',new Set());}['registerSharedOperation'](_0x4bac15){const _0xb409bb=_0x10fbf1;return this[_0xb409bb(0x8b)][_0xb409bb(0x163)](_0x4bac15),_0x1383de['toDisposable'](()=>this[_0xb409bb(0x8b)][_0xb409bb(0x7d)](_0x4bac15));}['registerInitialStateReporter'](_0x3e1a81){const _0x3d73e7=_0x10fbf1;return this[_0x3d73e7(0xdd)][_0x3d73e7(0x163)](_0x3e1a81),_0x1383de[_0x3d73e7(0x12c)](()=>this[_0x3d73e7(0xdd)][_0x3d73e7(0x7d)](_0x3e1a81));}[_0x10fbf1(0xfd)](_0x36e9fe){const _0x535a6a=_0x10fbf1;return this[_0x535a6a(0x8b)][_0x535a6a(0xa3)](_0x36e9fe);}[_0x10fbf1(0x156)](_0xeb5b77){const _0x27438c=_0x10fbf1;return Array['from'](this[_0x27438c(0xdd)])[_0x27438c(0xe7)](_0x491077=>_0x491077(_0xeb5b77));}}var _0x47f808=Object['getOwnPropertyDescriptor'],_0xccc100=(_0x5c1b24,_0xff65ac,_0x15593b,_0x43352d)=>{const _0x4a8063=_0x10fbf1;for(var _0x2b88c7=_0x43352d>0x1?void 0x0:_0x43352d?_0x47f808(_0xff65ac,_0x15593b):_0xff65ac,_0x21841f=_0x5c1b24[_0x4a8063(0x143)]-0x1,_0x190616;_0x21841f>=0x0;_0x21841f--)(_0x190616=_0x5c1b24[_0x21841f])&&(_0x2b88c7=_0x190616(_0x2b88c7)||_0x2b88c7);return _0x2b88c7;},_0x338e90=(_0x1acd69,_0x39f337)=>(_0xcfd42b,_0x299478)=>_0x39f337(_0xcfd42b,_0x299478,_0x1acd69);_0x3d5254[_0x10fbf1(0x84)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0xe6694f,_0x430605,_0x8df159){const _0x3558f0=_0x10fbf1;super(),_0x6b6d25(this,'_entities',new Map()),(this['_univerInstanceService']=_0xe6694f,this['_injector']=_0x430605,this[_0x3558f0(0xc3)]=_0x8df159,this[_0x3558f0(0x12b)]());}async[_0x10fbf1(0x12d)](_0x15729f){const _0x2171fc=_0x10fbf1;return this[_0x2171fc(0x110)][_0x2171fc(0xa3)](_0x15729f)||await this[_0x2171fc(0x13a)](_0x15729f),this[_0x2171fc(0x110)][_0x2171fc(0x133)](_0x15729f);}['getLiveShareCoordinatorSync'](_0x361963){const _0x206a11=_0x10fbf1;var _0x3f2d1e;return(_0x3f2d1e=this[_0x206a11(0x110)]['get'](_0x361963))!=null?_0x3f2d1e:null;}[_0x10fbf1(0x12b)](){const _0x56849e=_0x10fbf1;this[_0x56849e(0x75)][_0x56849e(0x108)](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](async _0x29539d=>{const _0x669f41=_0x56849e,_0xdc2b3c=_0x29539d['getUnitId']();this[_0x669f41(0x110)][_0x669f41(0xa3)](_0xdc2b3c)||this['_startLiveShareCoordinator'](_0xdc2b3c);}),this[_0x56849e(0x75)]['getTypeOfUnitDisposed$'](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](_0x4d1ba6=>{const _0x498ec9=_0x56849e,_0x1048d8=_0x4d1ba6[_0x498ec9(0xa2)](),_0x3deede=this[_0x498ec9(0x110)][_0x498ec9(0x133)](_0x1048d8);_0x3deede==null||_0x3deede[_0x498ec9(0xaa)]();});}async[_0x10fbf1(0x13a)](_0x379446){const _0x3aab8f=_0x10fbf1,_0x596ccf=await this[_0x3aab8f(0xc3)][_0x3aab8f(0xbd)](_0x379446),_0x1b4598=this[_0x3aab8f(0xf3)][_0x3aab8f(0xb5)](_0x3d5254[_0x3aab8f(0xfc)],_0x379446,_0x596ccf);return _0x1b4598[_0x3aab8f(0x136)](),this['_entities'][_0x3aab8f(0x10d)](_0x379446,_0x1b4598),_0x1b4598;}},_0x3d5254[_0x10fbf1(0x84)]=_0xccc100([_0x338e90(0x0,_0x1383de['IUniverInstanceService']),_0x338e90(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x338e90(0x2,_0x1383de[_0x10fbf1(0x82)](_0x435296['CollaborationSessionService']))],_0x3d5254[_0x10fbf1(0x84)]);var _0x4e654a=(_0x260ba0=>(_0x260ba0['OFFLINE']=_0x10fbf1(0x101),_0x260ba0['IDLE']=_0x10fbf1(0xa7),_0x260ba0['FOLLOWING']=_0x10fbf1(0x120),_0x260ba0[_0x10fbf1(0x12f)]=_0x10fbf1(0x11b),_0x260ba0['PRESENTING']='presenting',_0x260ba0))(_0x4e654a||{});const _0xfe396a=_0x10fbf1(0x149),_0xc048b4=0xc8;_0x3d5254[_0x10fbf1(0xfc)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0x2c29a8,_0xf6461c,_0x27cba0,_0x185de9,_0x13dbd9){const _0x371803=_0x10fbf1;super(),_0x6b6d25(this,_0x371803(0x145),new _0x1520bf[(_0x371803(0x154))](_0x371803(0xa7))),_0x6b6d25(this,'status$',this[_0x371803(0x145)][_0x371803(0xa6)]()),_0x6b6d25(this,_0x371803(0x12b),!0x1),_0x6b6d25(this,_0x371803(0xab),null),_0x6b6d25(this,_0x371803(0x8f),null),(this[_0x371803(0x94)]=_0x2c29a8,this[_0x371803(0x14a)]=_0xf6461c,this['_configService']=_0x27cba0,this[_0x371803(0xe2)]=_0x185de9,this[_0x371803(0xb1)]=_0x13dbd9);}get[_0x10fbf1(0x7b)](){const _0x114d5b=_0x10fbf1;return this[_0x114d5b(0x145)][_0x114d5b(0x83)]();}[_0x10fbf1(0xaa)](){const _0x5ebace=_0x10fbf1;var _0x2331ec;(_0x2331ec=this['_commandDisposable'])==null||_0x2331ec[_0x5ebace(0xaa)](),this[_0x5ebace(0x145)][_0x5ebace(0x128)](_0x5ebace(0xa7)),this[_0x5ebace(0x145)][_0x5ebace(0xd5)]();}[_0x10fbf1(0xea)](){return this['_status'];}[_0x10fbf1(0x136)](){const _0x10ab22=_0x10fbf1;this[_0x10ab22(0x12b)]||(this['_init']=!0x0,this['_collabSession'][_0x10ab22(0xbb)][_0x10ab22(0xb9)](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0x2bf4a2=>{const _0x5326e1=_0x10ab22;switch(_0x2bf4a2){case _0x435296[_0x5326e1(0x155)][_0x5326e1(0x76)]:this[_0x5326e1(0xc7)]();break;case _0x435296[_0x5326e1(0x155)]['ONLINE']:this[_0x5326e1(0x119)]();break;}}),this[_0x10ab22(0x14a)][_0x10ab22(0x151)]['pipe'](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0xc57a24=>{const _0x561188=_0x10ab22,{eventID:_0xf31e45}=_0xc57a24;switch(_0xf31e45){case _0x332357[_0x561188(0xd0)][_0x561188(0xa1)]:this['_handleNewHost'](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x122)]:this[_0x561188(0x107)](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x92)]:this[_0x561188(0x9f)]();break;case _0x332357[_0x561188(0xd0)]['NEW_CHANGESETS']:this[_0x561188(0x14f)](_0xc57a24);break;}}));}[_0x10fbf1(0x7c)](){const _0x5a7fbb=_0x10fbf1;this[_0x5a7fbb(0x14a)]['send']({'eventID':_0x332357[_0x5a7fbb(0xd0)][_0x5a7fbb(0x138)],'data':{'unitID':this[_0x5a7fbb(0x94)],'userID':this[_0x5a7fbb(0x14a)][_0x5a7fbb(0x157)]()}},this[_0x5a7fbb(0x94)]);}[_0x10fbf1(0xd2)](){const _0x5a23d7=_0x10fbf1;this['_status']===_0x5a23d7(0x115)&&(this[_0x5a23d7(0x145)][_0x5a23d7(0x128)](_0x5a23d7(0xa7)),this[_0x5a23d7(0x14a)][_0x5a23d7(0xae)]({'eventID':_0x332357[_0x5a23d7(0xd0)][_0x5a23d7(0x92)],'data':{'unitID':this[_0x5a23d7(0x94)]}},this[_0x5a23d7(0x94)]));}['startFollowing'](){const _0x4d27f7=_0x10fbf1;this[_0x4d27f7(0x7b)]===_0x4d27f7(0x11b)&&(this[_0x4d27f7(0x145)][_0x4d27f7(0x128)]('following'),this[_0x4d27f7(0x15f)]());}['stopFollowing'](){const _0x3ac408=_0x10fbf1;this[_0x3ac408(0x7b)]==='following'&&this[_0x3ac408(0x123)]();}[_0x10fbf1(0xbf)](_0x36b0b2){const _0x14d97d=_0x10fbf1,{presenter:_0x3fad88}=_0x36b0b2[_0x14d97d(0x11e)],_0x3b0229=this[_0x14d97d(0x14a)][_0x14d97d(0x157)]();this['_presenter']=_0x3fad88,_0x3fad88===_0x3b0229?(this[_0x14d97d(0x123)](),this['_startPresenting']()):this[_0x14d97d(0x7b)]!=='not-following'&&(this[_0x14d97d(0x12a)](),this[_0x14d97d(0x15f)]());}[_0x10fbf1(0xaf)](){const _0xd3d68d=_0x10fbf1,_0x44a6fc={'eventID':_0x332357[_0xd3d68d(0xd0)][_0xd3d68d(0x91)]};this[_0xd3d68d(0x14a)][_0xd3d68d(0xae)](_0x44a6fc,this[_0xd3d68d(0x94)]);}[_0x10fbf1(0x9f)](){const _0x117e33=_0x10fbf1;this[_0x117e33(0x8f)]=null,this['_status']!==_0x117e33(0x115)&&this[_0x117e33(0xc0)]();}['_handleNewChangeSets'](_0x16f481){const _0x128ce4=_0x10fbf1;if(this[_0x128ce4(0x7b)]===_0x128ce4(0x120)&&this['_presenter']===_0x16f481['data'][_0x128ce4(0xdf)]){const _0x3773f1=_0x332357[_0x128ce4(0x135)](_0x16f481[_0x128ce4(0x11e)])[_0x128ce4(0xfb)][_0x128ce4(0x144)]()[_0x128ce4(0x12e)](_0x1268d7=>_0x1268d7['id']===_0x504be1['InsertSheetMutation']['id']);if(_0x3773f1){const _0x4ee5d7=_0x3773f1[_0x128ce4(0x13e)]['unitId'],_0x1e74cd=_0x3773f1[_0x128ce4(0x13e)]['sheet']['id'];setTimeout(()=>{const _0x2c0a2d=_0x128ce4;this[_0x2c0a2d(0xb1)][_0x2c0a2d(0xe8)](_0x504be1[_0x2c0a2d(0x13d)]['id'],{'unitId':_0x4ee5d7,'subUnitId':_0x1e74cd},{'fromCollab':!0x0});});}}}[_0x10fbf1(0xb8)](){const _0x29341d=_0x10fbf1;this[_0x29341d(0x145)][_0x29341d(0x128)]('presenting');const _0x28a418=new Map(),_0x30142d=this[_0x29341d(0xab)]=new _0x1383de[(_0x29341d(0xa0))]();_0x30142d['add'](_0x1383de['toDisposable'](()=>{const _0x2b05fa=_0x29341d;_0x28a418[_0x2b05fa(0x90)](_0x6a5a5a=>_0x6a5a5a[_0x2b05fa(0xd5)]()),_0x28a418[_0x2b05fa(0xac)]();})),_0x30142d[_0x29341d(0x163)](this[_0x29341d(0xb1)]['onCommandExecuted'](_0x1b05c6=>{const _0x4a3bf8=_0x29341d;var _0x24e682;if(_0x1b05c6[_0x4a3bf8(0xee)]!==_0x1383de[_0x4a3bf8(0x147)]['OPERATION']||!this['_liveShareService'][_0x4a3bf8(0xfd)](_0x1b05c6['id']))return;const {id:_0x1f62c6}=_0x1b05c6;let _0x33ada1;_0x28a418[_0x4a3bf8(0xa3)](_0x1f62c6)?_0x33ada1=_0x28a418['get'](_0x1f62c6):(_0x33ada1=new _0x1520bf[(_0x4a3bf8(0x161))](),_0x28a418[_0x4a3bf8(0x10d)](_0x1f62c6,_0x33ada1),_0x33ada1[_0x4a3bf8(0xb9)](_0x4263b7['throttleTime']((_0x24e682=this[_0x4a3bf8(0xf1)][_0x4a3bf8(0x89)](_0xfe396a))!=null?_0x24e682:_0xc048b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x286a8b=>{const _0x5d5314=_0x4a3bf8;this[_0x5d5314(0x14a)][_0x5d5314(0xae)]({'eventID':_0x332357[_0x5d5314(0xd0)][_0x5d5314(0x122)],'data':{'unitID':this['_unitID'],'operations':{[_0x286a8b['id']]:{'id':_0x286a8b['id'],'params':JSON[_0x5d5314(0x106)](_0x286a8b['params'])}}}},this[_0x5d5314(0x94)]);})),_0x33ada1[_0x4a3bf8(0x128)](_0x1b05c6);})),this[_0x29341d(0xe2)]['getInitialStates'](this[_0x29341d(0x94)])[_0x29341d(0x90)](_0x407d6b=>this[_0x29341d(0x14a)][_0x29341d(0xae)]({'eventID':_0x332357[_0x29341d(0xd0)][_0x29341d(0x122)],'data':{'unitID':this[_0x29341d(0x94)],'operations':{[_0x407d6b['id']]:{'id':_0x407d6b['id'],'params':JSON[_0x29341d(0x106)](_0x407d6b[_0x29341d(0x13e)])}}}},this[_0x29341d(0x94)]));}[_0x10fbf1(0x12a)](){const _0x54d788=_0x10fbf1;var _0x5eaa7c;this[_0x54d788(0x145)]['next'](_0x54d788(0xa7)),(_0x5eaa7c=this[_0x54d788(0xab)])==null||_0x5eaa7c[_0x54d788(0xaa)](),this[_0x54d788(0xab)]=null;}[_0x10fbf1(0x15f)](){const _0xb59898=_0x10fbf1;var _0x26edb2;(_0x26edb2=this['_commandDisposable'])==null||_0x26edb2[_0xb59898(0xaa)](),this[_0xb59898(0x145)][_0xb59898(0x128)](_0xb59898(0x120));}[_0x10fbf1(0xc0)](){const _0x1bbf6e=_0x10fbf1;var _0x5d706f;this['_status$']['next'](_0x1bbf6e(0xa7)),(_0x5d706f=this['_commandDisposable'])==null||_0x5d706f[_0x1bbf6e(0xaa)](),this[_0x1bbf6e(0xab)]=null;}[_0x10fbf1(0x123)](){const _0x3ef57b=_0x10fbf1;var _0xbe5bdc;this['_status$']['next'](_0x3ef57b(0x11b)),(_0xbe5bdc=this['_commandDisposable'])==null||_0xbe5bdc[_0x3ef57b(0xaa)]();}['_handleOperation'](_0x556878){const _0x55f743=_0x10fbf1;if([_0x55f743(0x115),'not-following',_0x55f743(0x101)]['includes'](this[_0x55f743(0x7b)])||!_0x556878[_0x55f743(0x11e)][_0x55f743(0xca)]||_0x556878['data'][_0x55f743(0xca)]===this[_0x55f743(0x14a)]['getMemberID']())return;this[_0x55f743(0x7b)]===_0x55f743(0xa7)&&this[_0x55f743(0x15f)]();const _0x56fd5d=_0x556878['data'][_0x55f743(0x15b)];Object[_0x55f743(0x95)](_0x56fd5d)['forEach'](_0x51e1ed=>{const _0x13e501=_0x55f743;this[_0x13e501(0xb1)]['executeCommand'](_0x51e1ed['id'],_0x51e1ed[_0x13e501(0x13e)]?JSON[_0x13e501(0xef)](_0x51e1ed[_0x13e501(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2a73b1=_0x10fbf1;var _0x5970b6;this[_0x2a73b1(0x145)]['next']('offline'),(_0x5970b6=this[_0x2a73b1(0xab)])==null||_0x5970b6[_0x2a73b1(0xaa)]();}[_0x10fbf1(0x119)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x3d5254[_0x10fbf1(0xfc)]=_0xccc100([_0x338e90(0x2,_0x1383de['IConfigService']),_0x338e90(0x3,_0x1383de[_0x10fbf1(0x82)](_0x37da54)),_0x338e90(0x4,_0x1383de['ICommandService'])],_0x3d5254[_0x10fbf1(0xfc)]);function _0x6a3888(){const _0x3971cb=_0x10fbf1,_0x3f34e1=_0x47bd3b[_0x3971cb(0x114)](_0x3d5254[_0x3971cb(0x84)]),_0x11d539=_0x47bd3b[_0x3971cb(0x114)](_0x1383de[_0x3971cb(0x9c)]),_0x5d47ca=_0x47bd3b[_0x3971cb(0xe6)](()=>_0x11d539[_0x3971cb(0x11a)](_0x1383de['UniverInstanceType'][_0x3971cb(0xd3)]),void 0x0,!0x1,[]),[_0x17078b,_0x9f9d75]=_0xeb3c95['useState'](null),[_0x11568e,_0x33a63a]=_0xeb3c95[_0x3971cb(0x109)](_0x4e654a[_0x3971cb(0xcd)]),_0xb35f19=_0xeb3c95[_0x3971cb(0x11d)](null);return _0xeb3c95[_0x3971cb(0xa4)](()=>(_0x5d47ca&&_0x3f34e1[_0x3971cb(0x12d)](_0x5d47ca[_0x3971cb(0xa2)]())[_0x3971cb(0x10b)](_0xe88a01=>{const _0x559fc8=_0x3971cb;_0x9f9d75(_0xe88a01),_0xb35f19[_0x559fc8(0xe4)]=_0xe88a01['status$'][_0x559fc8(0xf8)](_0x53e9a1=>{_0x33a63a(_0x53e9a1);});}),()=>{const _0x370d0c=_0x3971cb;var _0x7bde8e;(_0x7bde8e=_0xb35f19[_0x370d0c(0xe4)])==null||_0x7bde8e[_0x370d0c(0x153)](),_0xb35f19[_0x370d0c(0xe4)]=null;}),[_0x5d47ca,_0x3f34e1]),_0x17078b?_0x561cf3['jsx'](_0x47ac77[_0x3971cb(0xec)],{'align':_0x3971cb(0xc1),'disabled':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'className':_0x3971cb(0x139),'overlay':_0x561cf3['jsx'](_0x1c3ed5,{'status':_0x11568e,'coordinator':_0x17078b}),'children':_0x561cf3[_0x3971cb(0x127)](_0x3971cb(0xdb),{'className':_0x47ac77[_0x3971cb(0xff)](_0x3971cb(0xd9),{'univer-cursor-not-allowed':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11568e!==_0x4e654a[_0x3971cb(0x76)]}),'type':_0x3971cb(0xdb),'children':_0x561cf3[_0x3971cb(0x127)](_0x2ad1f1,{'className':_0x3971cb(0x124)})})}):null;}function _0x1c3ed5(_0x384fa2){const _0x38db66=_0x10fbf1,{status:_0x571363,coordinator:_0x324110}=_0x384fa2;switch(_0x571363){case _0x4e654a[_0x38db66(0xcd)]:return _0x561cf3[_0x38db66(0x127)](_0x4e09ec,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x14e)]:return _0x561cf3['jsx'](_0xd1b2fd,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x12f)]:return _0x561cf3[_0x38db66(0x127)](_0x157a33,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x76)]:return _0x561cf3[_0x38db66(0x127)](_0x288bdb,{});case _0x4e654a[_0x38db66(0xc8)]:return _0x561cf3[_0x38db66(0x127)](_0x129eee,{'coordinator':_0x324110});default:return null;}}function _0x4e09ec(_0x121565){const _0x66e1b7=_0x10fbf1,{coordinator:_0x4dea3d}=_0x121565;return _0x561cf3[_0x66e1b7(0xf0)](_0x561cf3[_0x66e1b7(0xcc)],{'children':[_0x561cf3[_0x66e1b7(0x127)]('div',{'className':_0x66e1b7(0x15e),'children':_0x66e1b7(0xfe)}),_0x561cf3[_0x66e1b7(0x127)](_0x47ac77[_0x66e1b7(0x159)],{'onClick':()=>_0x4dea3d[_0x66e1b7(0x7c)](),'children':_0x66e1b7(0xed)})]});}function _0xd1b2fd(_0x389539){const _0x28a682=_0x10fbf1,{coordinator:_0x2266da}=_0x389539;return _0x561cf3[_0x28a682(0xf0)](_0x561cf3['Fragment'],{'children':[_0x561cf3[_0x28a682(0x127)](_0x28a682(0x148),{'className':_0x28a682(0x15e),'children':_0x28a682(0x86)}),_0x561cf3[_0x28a682(0x127)](_0x47ac77[_0x28a682(0x159)],{'onClick':()=>_0x2266da[_0x28a682(0x8e)](),'children':_0x28a682(0xe0)})]});}function _0x157a33(_0x10be12){const _0x5b58a1=_0x10fbf1,{coordinator:_0x2260c2}=_0x10be12;return _0x561cf3[_0x5b58a1(0xf0)](_0x561cf3[_0x5b58a1(0xcc)],{'children':[_0x561cf3[_0x5b58a1(0x127)](_0x5b58a1(0x148),{'className':_0x5b58a1(0x15e),'children':_0x5b58a1(0xde)}),_0x561cf3['jsx'](_0x47ac77[_0x5b58a1(0x159)],{'variant':'text','onClick':()=>_0x2260c2[_0x5b58a1(0x102)](),'children':_0x5b58a1(0xf2)})]});}function _0x129eee(_0x43ee50){const _0xe48db6=_0x10fbf1,{coordinator:_0x8812a7}=_0x43ee50;return _0x561cf3['jsxs'](_0x561cf3[_0xe48db6(0xcc)],{'children':[_0x561cf3['jsx']('div',{'className':_0xe48db6(0x15e),'children':_0xe48db6(0xcb)}),_0x561cf3['jsx'](_0x47ac77[_0xe48db6(0x159)],{'variant':_0xe48db6(0x164),'onClick':()=>_0x8812a7[_0xe48db6(0xd2)](),'children':_0xe48db6(0x8c)})]});}function _0x288bdb(){const _0x48d0cb=_0x10fbf1;return _0x561cf3['jsx'](_0x561cf3[_0x48d0cb(0xcc)],{'children':_0x48d0cb(0x134)});}var _0x263357=Object['getOwnPropertyDescriptor'],_0x42b12b=(_0xa0f798,_0x36b549,_0x54b497,_0x137d58)=>{const _0x4e83a0=_0x10fbf1;for(var _0x504a48=_0x137d58>0x1?void 0x0:_0x137d58?_0x263357(_0x36b549,_0x54b497):_0x36b549,_0x47bff6=_0xa0f798[_0x4e83a0(0x143)]-0x1,_0x36c24e;_0x47bff6>=0x0;_0x47bff6--)(_0x36c24e=_0xa0f798[_0x47bff6])&&(_0x504a48=_0x36c24e(_0x504a48)||_0x504a48);return _0x504a48;},_0x4a4cea=(_0xbd7568,_0x2ddc60)=>(_0x3731e0,_0x312d33)=>_0x2ddc60(_0x3731e0,_0x312d33,_0xbd7568);_0x3d5254['DesktopLiveShareController']=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x1fef07,_0x53e8af){const _0x3c3d1f=_0x10fbf1;super(),this[_0x3c3d1f(0xf3)]=_0x1fef07,this[_0x3c3d1f(0xb3)]=_0x53e8af,this[_0x3c3d1f(0xd4)]();}['_mountLiveShare'](){const _0x560b77=_0x10fbf1;this['disposeWithMe'](this[_0x560b77(0xb3)][_0x560b77(0xb2)](_0x47bd3b[_0x560b77(0xb0)]['HEADER_MENU'],()=>_0x47bd3b[_0x560b77(0x117)](_0x6a3888,this[_0x560b77(0xf3)])));}},_0x3d5254[_0x10fbf1(0xad)]=_0x42b12b([_0x4a4cea(0x0,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x4a4cea(0x1,_0x47bd3b[_0x10fbf1(0x10f)])],_0x3d5254[_0x10fbf1(0xad)]);const _0xc3ce09=_0x10fbf1(0x10c),_0xaad317={};var _0x4f2e8d=Object[_0x10fbf1(0xc6)],_0x174a59=(_0x5d3281,_0x5c2a6e,_0x592081,_0x1ea5c0)=>{for(var _0x37850d=_0x1ea5c0>0x1?void 0x0:_0x1ea5c0?_0x4f2e8d(_0x5c2a6e,_0x592081):_0x5c2a6e,_0x57cb5b=_0x5d3281['length']-0x1,_0x3371da;_0x57cb5b>=0x0;_0x57cb5b--)(_0x3371da=_0x5d3281[_0x57cb5b])&&(_0x37850d=_0x3371da(_0x37850d)||_0x37850d);return _0x37850d;},_0x27dbee=(_0x475cd4,_0x55cb05)=>(_0x3fc119,_0x507a09)=>_0x55cb05(_0x3fc119,_0x507a09,_0x475cd4);let _0x131f24=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x442e8c){const _0x4cfab9=_0x10fbf1;super(),this[_0x4cfab9(0xe2)]=_0x442e8c,this[_0x4cfab9(0x12b)]();}['_init'](){const _0x4f043a=_0x10fbf1;[_0x256bc6['SetZoomRatioOperation']['id'],_0x256bc6[_0x4f043a(0x77)]['id'],_0x504be1[_0x4f043a(0x13d)]['id']][_0x4f043a(0x90)](_0x5d25ca=>{const _0xdb5534=_0x4f043a;this[_0xdb5534(0xc4)](this[_0xdb5534(0xe2)][_0xdb5534(0xb6)](_0x5d25ca));});}};_0x131f24=_0x174a59([_0x27dbee(0x0,_0x1383de[_0x10fbf1(0x82)](_0x37da54))],_0x131f24);var _0x403cb2=Object[_0x10fbf1(0x85)],_0x557c18=Object['getOwnPropertyDescriptor'],_0x14edd4=(_0x24ee40,_0x1eee8b,_0x23d19d)=>_0x1eee8b in _0x24ee40?_0x403cb2(_0x24ee40,_0x1eee8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23d19d}):_0x24ee40[_0x1eee8b]=_0x23d19d,_0x14153d=(_0x57334e,_0x12f2a0,_0x23ab9d,_0x2c8a43)=>{for(var _0xb036f5=_0x2c8a43>0x1?void 0x0:_0x2c8a43?_0x557c18(_0x12f2a0,_0x23ab9d):_0x12f2a0,_0x3f716a=_0x57334e['length']-0x1,_0x370d3e;_0x3f716a>=0x0;_0x3f716a--)(_0x370d3e=_0x57334e[_0x3f716a])&&(_0xb036f5=_0x370d3e(_0xb036f5)||_0xb036f5);return _0xb036f5;},_0x422854=(_0x5f5b0f,_0x38983a)=>(_0x105904,_0x5413e5)=>_0x38983a(_0x105904,_0x5413e5,_0x5f5b0f),_0x5d00d3=(_0x30736d,_0xbf716a,_0x47b962)=>_0x14edd4(_0x30736d,typeof _0xbf716a!=_0x10fbf1(0x105)?_0xbf716a+'':_0xbf716a,_0x47b962);const _0xc63d4e=_0x10fbf1(0xf9);_0x3d5254[_0x10fbf1(0x150)]=class extends _0x1383de['Plugin']{constructor(_0x26091b=_0xaad317,_0x2aae26,_0x4ee9a8){const _0x560ab9=_0x10fbf1;super(),this['_config']=_0x26091b,this[_0x560ab9(0xf3)]=_0x2aae26,this[_0x560ab9(0xf1)]=_0x4ee9a8;const {..._0xd75433}=_0x1383de[_0x560ab9(0x113)]({},_0xaad317,this[_0x560ab9(0xe5)]);this[_0x560ab9(0xf1)][_0x560ab9(0xfa)](_0xc3ce09,_0xd75433);}[_0x10fbf1(0x10e)](){const _0x4491=_0x10fbf1;_0x1383de['registerDependencies'](this['_injector'],_0x1383de[_0x4491(0x15a)]([[_0x37da54],[_0x3d5254['LiveShareController']],[_0x131f24],[_0x3d5254['DesktopLiveShareController']]],this[_0x4491(0xe5)]['override'])),_0x1383de[_0x4491(0x98)](this[_0x4491(0xf3)],[[_0x131f24]]);}['onRendered'](){const _0x580f8b=_0x10fbf1;_0x1383de['touchDependencies'](this[_0x580f8b(0xf3)],[[_0x3d5254[_0x580f8b(0xad)]]]);}},_0x5d00d3(_0x3d5254[_0x10fbf1(0x150)],_0x10fbf1(0xee),_0x1383de[_0x10fbf1(0xa9)][_0x10fbf1(0x7e)]),_0x5d00d3(_0x3d5254['UniverLiveSharePlugin'],'pluginName',_0xc63d4e),_0x3d5254['UniverLiveSharePlugin']=_0x14153d([_0x1383de['DependentOn'](_0x435296['UniverCollaborationClientPlugin']),_0x422854(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x422854(0x2,_0x1383de[_0x10fbf1(0x142)])],_0x3d5254[_0x10fbf1(0x150)]),_0x3d5254[_0x10fbf1(0x14b)]=_0x6a3888,_0x3d5254[_0x10fbf1(0x97)]=_0x37da54,_0x3d5254['LiveShareStatus']=_0x4e654a,Object[_0x10fbf1(0x85)](_0x3d5254,Symbol[_0x10fbf1(0xcf)],{'value':'Module'});}));function _0xe5a6(){const _0x2f85ac=['_config','useObservable','map','executeCommand','none','getStatus','rxjs/operators','Dropdown','Start','type','parse','jsxs','_configService','Start\x20following','_injector','idSuffix','children','object','UniverDesign','subscribe','UNIVER_LIVE_SHARE_PLUGIN','setConfig','mutations','LiveShareCoordinator','shouldShareOperation','Present\x20this\x20document','clsx','forwardRef','offline','startFollowing','replace','Disposable','symbol','stringify','_handleOperation','getTypeOfUnitAdded$','useState','UniverIcon','then','live-share.config','set','onStarting','IUIPartsService','_entities','amd','fill','merge','useDependency','presenting','react','connectInjector','exports','_handleOnline','getCurrentTypeOfUnit$','not-following','path','useRef','data','UniverCore','following','@univerjs/design','LIVESHARE_OPERATION','_stopFollowing','univer-size-4','colorChannel1','mask','jsx','next','tag','_stopPresenting','_init','toDisposable','getLiveShareCoordinator','find','NOT_FOLLOWING','defs','@univerjs-pro/collaboration-client','UniverUi','get','You\x27are\x20offline.','parseProtocolChangeset','init','UniverSheetsUi','LIVESHARE_REQUEST_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startLiveShareCoordinator','assign','99BtUDvH','SetWorksheetActiveOperation','params','RxDisposable','@univerjs/sheets-ui','30azyaxO','IConfigService','length','reverse','_status$','includes','CommandType','div','SAME_OPERATION_SHARE_INTERVAL','_collabSession','LiveShare','21OZAsUy','toString','FOLLOWING','_handleNewChangeSets','UniverLiveSharePlugin','event$','url(#$1','unsubscribe','BehaviorSubject','SessionStatus','getInitialStates','getMemberID','UniverProCollaborationClient','Button','mergeOverrideWithDependencies','operations','dispose$','react/jsx-runtime','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','657975LYrvpg','Subject','@univerjs/core','add','default','_univerInstanceService','OFFLINE','SetScrollOperation','UniverProLiveShare','svg','React','_status','tryStartPresenting','delete','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','xlink:href','defIds','Inject','getValue','LiveShareController','defineProperty','You\x27re\x20following\x20the\x20presenter','1EmDFFA','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','getConfig','operators','_sharedOperations','Stop\x20presenting','@univerjs-pro/collaboration','stopFollowing','_presenter','forEach','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','48570ojrGjz','_unitID','values','attrs','LiveShareService','touchDependencies','219160hrOBms','random','entries','IUniverInstanceService','createElement','substring','_handleTerminate','DisposableCollection','LIVESHARE_NEW_HOST','getUnitId','has','useEffect','87730ADQPNX','asObservable','idle','@univerjs/ui','UniverInstanceType','dispose','_commandDisposable','clear','DesktopLiveShareController','send','_fetchOperations','BuiltInUIPart','_commandService','registerComponent','_uiPartsService','9429156SIJoFH','createInstance','registerSharedOperation','takeUntil','_startPresenting','pipe','0\x200\x2017\x2017','sessionStatus$','evenodd','requireSession','72272widTdw','_handleNewHost','_beIdle','end','rxjs','_collabSessionService','disposeWithMe','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','getOwnPropertyDescriptor','_handleOffline','PRESENTING','currentColor','presenter','You\x27re\x20presenting\x20the\x20document','Fragment','IDLE','1em','toStringTag','CollaborationEvent','UniverProCollaboration','stopPresenting','UNIVER_SHEET','_mountLiveShare','complete','LiveShareIcon','displayName','UniverSheets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Injector','button','function','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','memberID','Stop\x20following','string','_liveShareService','1113430FQIxXc','current'];_0xe5a6=function(){return _0x2f85ac;};return _0xe5a6();}
|
|
1
|
+
function _0x4722(_0xa27757,_0x4025b4){_0xa27757=_0xa27757-0xac;const _0x1c77e5=_0x1c77();let _0x472281=_0x1c77e5[_0xa27757];return _0x472281;}(function(_0x585eeb,_0x2507cc){const _0x41d347=_0x4722,_0x248676=_0x585eeb();while(!![]){try{const _0x4dc5de=parseInt(_0x41d347(0x138))/0x1*(-parseInt(_0x41d347(0x109))/0x2)+parseInt(_0x41d347(0x17c))/0x3+parseInt(_0x41d347(0xb8))/0x4+parseInt(_0x41d347(0x11a))/0x5*(-parseInt(_0x41d347(0xfa))/0x6)+-parseInt(_0x41d347(0x186))/0x7*(-parseInt(_0x41d347(0xe9))/0x8)+parseInt(_0x41d347(0x178))/0x9*(-parseInt(_0x41d347(0xc1))/0xa)+-parseInt(_0x41d347(0x146))/0xb*(-parseInt(_0x41d347(0x128))/0xc);if(_0x4dc5de===_0x2507cc)break;else _0x248676['push'](_0x248676['shift']());}catch(_0x3d5fab){_0x248676['push'](_0x248676['shift']());}}}(_0x1c77,0x7fb0c),function(_0x56d792,_0x1d6aa5){const _0x5048b8=_0x4722;typeof exports==_0x5048b8(0x171)&&typeof module<'u'?_0x1d6aa5(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[_0x5048b8(0x189)]?define([_0x5048b8(0xe6),_0x5048b8(0x191),_0x5048b8(0x139),_0x5048b8(0x183),_0x5048b8(0x145),_0x5048b8(0x152),_0x5048b8(0xcc),_0x5048b8(0x144),'@univerjs/sheets',_0x5048b8(0x16b),_0x5048b8(0xb1),'@univerjs/sheets-ui'],_0x1d6aa5):(_0x56d792=typeof globalThis<'u'?globalThis:_0x56d792||self,_0x1d6aa5(_0x56d792[_0x5048b8(0x143)]={},_0x56d792['UniverCore'],_0x56d792[_0x5048b8(0x137)],_0x56d792[_0x5048b8(0x153)],_0x56d792['UniverDesign'],_0x56d792[_0x5048b8(0x153)],_0x56d792[_0x5048b8(0x17e)],_0x56d792['UniverProCollaborationClient'],_0x56d792['UniverSheets'],_0x56d792[_0x5048b8(0x16b)],_0x56d792[_0x5048b8(0x16b)][_0x5048b8(0x147)],_0x56d792[_0x5048b8(0x129)]));}(this,function(_0x5c670c,_0x28cd17,_0x34f791,_0x454e0b,_0x573b10,_0x1d34a9,_0x139ad0,_0x1f93cf,_0x2c6fb4,_0x565fda,_0x43d446,_0x4d26ff){'use strict';const _0x28afe1=_0x4722;var _0x166d0a=Object['defineProperty'],_0x333076=(_0x1671b4,_0x537b54,_0x37a661)=>_0x537b54 in _0x1671b4?_0x166d0a(_0x1671b4,_0x537b54,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a661}):_0x1671b4[_0x537b54]=_0x37a661,_0x486061=(_0x2f0974,_0x2c4a6a,_0x2e37e8)=>_0x333076(_0x2f0974,typeof _0x2c4a6a!=_0x28afe1(0x151)?_0x2c4a6a+'':_0x2c4a6a,_0x2e37e8);function _0x365e6e({ref:_0x185037,..._0x4624df}){const _0x329919=_0x28afe1,{icon:_0x290dce,id:_0x5b0bb7,className:_0x1efb0d,extend:_0x54568a,..._0x35b692}=_0x4624df,_0x195d3a=('univerjs-icon\x20univerjs-icon-'+_0x5b0bb7+'\x20'+(_0x1efb0d||''))[_0x329919(0x169)](),_0x4588f6=_0x1d34a9['useRef']('_'+_0x3a4de0());return _0x2bae16(_0x290dce,''+_0x5b0bb7,{'defIds':_0x290dce[_0x329919(0x13d)],'idSuffix':_0x4588f6[_0x329919(0xdd)]},{'ref':_0x185037,'className':_0x195d3a,..._0x35b692},_0x54568a);}function _0x2bae16(_0x11f39e,_0x38c4da,_0x2f54c1,_0x4da880,_0x247009){const _0xc11945=_0x28afe1;return _0x1d34a9[_0xc11945(0x18c)](_0x11f39e[_0xc11945(0xb6)],{'key':_0x38c4da,..._0x5b6624(_0x11f39e,_0x2f54c1,_0x247009),..._0x4da880},(_0x1326fb(_0x11f39e,_0x2f54c1)[_0xc11945(0x142)]||[])['map']((_0x43457a,_0x490039)=>_0x2bae16(_0x43457a,_0x38c4da+'-'+_0x11f39e[_0xc11945(0xb6)]+'-'+_0x490039,_0x2f54c1,void 0x0,_0x247009)));}function _0x5b6624(_0x24a42d,_0x5a4e21,_0x1f4835){const _0x3dc6e5=_0x28afe1,_0xc83911={..._0x24a42d[_0x3dc6e5(0x10a)]};_0x1f4835!=null&&_0x1f4835[_0x3dc6e5(0x177)]&&_0xc83911[_0x3dc6e5(0x135)]===_0x3dc6e5(0x177)&&(_0xc83911[_0x3dc6e5(0x135)]=_0x1f4835[_0x3dc6e5(0x177)]),_0x24a42d['tag']===_0x3dc6e5(0x14d)&&_0xc83911['id']&&(_0xc83911['id']=_0xc83911['id']+_0x5a4e21[_0x3dc6e5(0x179)]),Object[_0x3dc6e5(0xb7)](_0xc83911)[_0x3dc6e5(0xdc)](([_0xfdc89e,_0x5341b2])=>{const _0x2c6f31=_0x3dc6e5;_0xfdc89e===_0x2c6f31(0x14d)&&typeof _0x5341b2==_0x2c6f31(0x18e)&&(_0xc83911[_0xfdc89e]=_0x5341b2[_0x2c6f31(0xe7)](/url\(#(.*)\)/,_0x2c6f31(0x160)+_0x5a4e21['idSuffix']+')'));});const {defIds:_0x590b3a}=_0x5a4e21;return!_0x590b3a||_0x590b3a[_0x3dc6e5(0xf3)]===0x0||(_0x24a42d[_0x3dc6e5(0xb6)]==='use'&&_0xc83911['xlink:href']&&(_0xc83911['xlink:href']=_0xc83911[_0x3dc6e5(0xfb)]+_0x5a4e21[_0x3dc6e5(0x179)]),Object['entries'](_0xc83911)[_0x3dc6e5(0xdc)](([_0x259147,_0x5f57a5])=>{const _0x3d9e06=_0x3dc6e5;typeof _0x5f57a5==_0x3d9e06(0x18e)&&(_0xc83911[_0x259147]=_0x5f57a5[_0x3d9e06(0xe7)](/url\(#(.*)\)/,_0x3d9e06(0x160)+_0x5a4e21[_0x3d9e06(0x179)]+')'));})),_0xc83911;}function _0x1326fb(_0x2d7fa4,_0x1621f5){const _0x226772=_0x28afe1;var _0x1a35fd;const {defIds:_0x114810}=_0x1621f5;return!_0x114810||_0x114810['length']===0x0?_0x2d7fa4:_0x2d7fa4['tag']===_0x226772(0x168)&&((_0x1a35fd=_0x2d7fa4[_0x226772(0x142)])!=null&&_0x1a35fd[_0x226772(0xf3)])?{..._0x2d7fa4,'children':_0x2d7fa4[_0x226772(0x142)]['map'](_0x37c8cf=>typeof _0x37c8cf[_0x226772(0x10a)]['id']==_0x226772(0x18e)&&_0x114810&&_0x114810[_0x226772(0xc0)](_0x37c8cf[_0x226772(0x10a)]['id'])?{..._0x37c8cf,'attrs':{..._0x37c8cf[_0x226772(0x10a)],'id':_0x37c8cf[_0x226772(0x10a)]['id']+_0x1621f5[_0x226772(0x179)]}}:_0x37c8cf)}:_0x2d7fa4;}function _0x3a4de0(){const _0x243d36=_0x28afe1;return Math[_0x243d36(0xcd)]()['toString'](0x24)[_0x243d36(0x141)](0x2,0x8);}_0x365e6e['displayName']='UniverIcon';const _0x239ca7={'tag':'svg','attrs':{'xmlns':_0x28afe1(0x102),'fill':'none','viewBox':_0x28afe1(0xe2),'width':_0x28afe1(0x16d),'height':'1em'},'children':[{'tag':_0x28afe1(0xf6),'attrs':{'fill':_0x28afe1(0xea),'d':_0x28afe1(0x118)}},{'tag':_0x28afe1(0xf6),'attrs':{'fill':_0x28afe1(0xea),'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':_0x28afe1(0x132),'clipRule':'evenodd'}}]},_0xc68c30=_0x1d34a9[_0x28afe1(0xdf)](function(_0x3d6c9b,_0x4c18f0){const _0x35d57f=_0x28afe1;return _0x1d34a9[_0x35d57f(0x18c)](_0x365e6e,Object['assign']({},_0x3d6c9b,{'id':'live-share-icon','ref':_0x4c18f0,'icon':_0x239ca7}));});_0xc68c30['displayName']=_0x28afe1(0x136);class _0x16b4e6 extends _0x28cd17[_0x28afe1(0x122)]{constructor(){const _0x2d52ae=_0x28afe1;super(...arguments),_0x486061(this,_0x2d52ae(0xec),new Set()),_0x486061(this,_0x2d52ae(0x162),new Set());}[_0x28afe1(0x170)](_0x59a2ce){const _0x22bfe6=_0x28afe1;return this[_0x22bfe6(0xec)][_0x22bfe6(0xf5)](_0x59a2ce),_0x28cd17['toDisposable'](()=>this[_0x22bfe6(0xec)]['delete'](_0x59a2ce));}[_0x28afe1(0x115)](_0x5b9ae8){const _0x44735e=_0x28afe1;return this[_0x44735e(0x162)][_0x44735e(0xf5)](_0x5b9ae8),_0x28cd17[_0x44735e(0x175)](()=>this[_0x44735e(0x162)][_0x44735e(0x120)](_0x5b9ae8));}[_0x28afe1(0x15d)](_0x55b4a9){const _0x4ddeec=_0x28afe1;return this[_0x4ddeec(0xec)][_0x4ddeec(0x14e)](_0x55b4a9);}[_0x28afe1(0x18f)](_0x3ddbd1){const _0x1a361a=_0x28afe1;return Array[_0x1a361a(0xb2)](this[_0x1a361a(0x162)])[_0x1a361a(0x16e)](_0xe1bf82=>_0xe1bf82(_0x3ddbd1));}}var _0xbb86c9=Object['getOwnPropertyDescriptor'],_0x1ba6b5=(_0x2f1ffe,_0x5be0f9,_0x3dad15,_0x56ffe3)=>{const _0x805362=_0x28afe1;for(var _0xc5a90=_0x56ffe3>0x1?void 0x0:_0x56ffe3?_0xbb86c9(_0x5be0f9,_0x3dad15):_0x5be0f9,_0x2e0ead=_0x2f1ffe[_0x805362(0xf3)]-0x1,_0x34f2fa;_0x2e0ead>=0x0;_0x2e0ead--)(_0x34f2fa=_0x2f1ffe[_0x2e0ead])&&(_0xc5a90=_0x34f2fa(_0xc5a90)||_0xc5a90);return _0xc5a90;},_0x480b5b=(_0x538bf1,_0x20ac4d)=>(_0x57ba8b,_0x1cbc76)=>_0x20ac4d(_0x57ba8b,_0x1cbc76,_0x538bf1);_0x5c670c[_0x28afe1(0x11f)]=class extends _0x28cd17[_0x28afe1(0x188)]{constructor(_0x5802ee,_0x41a5c8,_0x5a477f){const _0x4d7b91=_0x28afe1;super(),_0x486061(this,'_entities',new Map()),(this[_0x4d7b91(0x14b)]=_0x5802ee,this['_injector']=_0x41a5c8,this[_0x4d7b91(0x149)]=_0x5a477f,this[_0x4d7b91(0xe4)]());}async[_0x28afe1(0x15a)](_0x351e70){const _0x30db84=_0x28afe1;return this['_entities']['has'](_0x351e70)||await this['_startLiveShareCoordinator'](_0x351e70),this[_0x30db84(0xe8)][_0x30db84(0xde)](_0x351e70);}['getLiveShareCoordinatorSync'](_0x444b5c){const _0x21148b=_0x28afe1;var _0xd3a965;return(_0xd3a965=this['_entities'][_0x21148b(0xde)](_0x444b5c))!=null?_0xd3a965:null;}['_init'](){const _0x542527=_0x28afe1;this[_0x542527(0x14b)][_0x542527(0x14c)](_0x28cd17[_0x542527(0xca)][_0x542527(0x104)])['pipe'](_0x43d446['takeUntil'](this[_0x542527(0xda)]))[_0x542527(0x121)](async _0x192bdf=>{const _0x84d15a=_0x542527,_0x5ad033=_0x192bdf[_0x84d15a(0xbe)]();this['_entities'][_0x84d15a(0x14e)](_0x5ad033)||this[_0x84d15a(0x172)](_0x5ad033);}),this['_univerInstanceService'][_0x542527(0x140)](_0x28cd17[_0x542527(0xca)]['UNIVER_SHEET'])['pipe'](_0x43d446[_0x542527(0xd4)](this['dispose$']))[_0x542527(0x121)](_0x153fde=>{const _0x116b08=_0x542527,_0x9b7a02=_0x153fde[_0x116b08(0xbe)](),_0x3eaa6f=this[_0x116b08(0xe8)][_0x116b08(0xde)](_0x9b7a02);_0x3eaa6f==null||_0x3eaa6f[_0x116b08(0x12d)]();});}async[_0x28afe1(0x172)](_0x6c96ba){const _0x1d18a9=_0x28afe1,_0x50425c=await this['_collabSessionService'][_0x1d18a9(0x13f)](_0x6c96ba),_0x4be5c0=this[_0x1d18a9(0x13b)]['createInstance'](_0x5c670c[_0x1d18a9(0x156)],_0x6c96ba,_0x50425c);return _0x4be5c0[_0x1d18a9(0x18a)](),this[_0x1d18a9(0xe8)][_0x1d18a9(0xcf)](_0x6c96ba,_0x4be5c0),_0x4be5c0;}},_0x5c670c[_0x28afe1(0x11f)]=_0x1ba6b5([_0x480b5b(0x0,_0x28cd17['IUniverInstanceService']),_0x480b5b(0x1,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17['Injector'])),_0x480b5b(0x2,_0x28cd17[_0x28afe1(0x10d)](_0x1f93cf[_0x28afe1(0x13c)]))],_0x5c670c[_0x28afe1(0x11f)]);var _0x1c6cec=(_0x9e36ab=>(_0x9e36ab[_0x28afe1(0xf8)]=_0x28afe1(0xaf),_0x9e36ab[_0x28afe1(0xd3)]=_0x28afe1(0xd9),_0x9e36ab[_0x28afe1(0xce)]=_0x28afe1(0xe1),_0x9e36ab['NOT_FOLLOWING']='not-following',_0x9e36ab[_0x28afe1(0x14a)]=_0x28afe1(0xee),_0x9e36ab))(_0x1c6cec||{});const _0x1c389d=_0x28afe1(0x106),_0x25d6c9=0xc8;_0x5c670c[_0x28afe1(0x156)]=class extends _0x28cd17[_0x28afe1(0x188)]{constructor(_0x3242d2,_0x3be370,_0x5bc493,_0x47fe15,_0x4cb150){const _0x1ccc92=_0x28afe1;super(),_0x486061(this,_0x1ccc92(0x150),new _0x565fda['BehaviorSubject'](_0x1ccc92(0xd9))),_0x486061(this,_0x1ccc92(0x190),this[_0x1ccc92(0x150)][_0x1ccc92(0x134)]()),_0x486061(this,_0x1ccc92(0xe4),!0x1),_0x486061(this,_0x1ccc92(0x12e),null),_0x486061(this,_0x1ccc92(0xc9),null),(this['_unitID']=_0x3242d2,this[_0x1ccc92(0xb4)]=_0x3be370,this[_0x1ccc92(0xd8)]=_0x5bc493,this[_0x1ccc92(0x114)]=_0x47fe15,this[_0x1ccc92(0x12f)]=_0x4cb150);}get['_status'](){const _0x1eebd3=_0x28afe1;return this[_0x1eebd3(0x150)]['getValue']();}[_0x28afe1(0x12d)](){const _0x3043a0=_0x28afe1;var _0xc63c0e;(_0xc63c0e=this[_0x3043a0(0x12e)])==null||_0xc63c0e[_0x3043a0(0x12d)](),this[_0x3043a0(0x150)][_0x3043a0(0x173)](_0x3043a0(0xd9)),this[_0x3043a0(0x150)]['complete']();}[_0x28afe1(0xe5)](){const _0x2fbfb3=_0x28afe1;return this[_0x2fbfb3(0xbd)];}[_0x28afe1(0x18a)](){const _0x5d733f=_0x28afe1;this[_0x5d733f(0xe4)]||(this[_0x5d733f(0xe4)]=!0x0,this['_collabSession'][_0x5d733f(0x103)]['pipe'](_0x43d446['takeUntil'](this[_0x5d733f(0xda)]))[_0x5d733f(0x121)](_0x15e05d=>{const _0xcfe2d7=_0x5d733f;switch(_0x15e05d){case _0x1f93cf[_0xcfe2d7(0x18d)][_0xcfe2d7(0xf8)]:this[_0xcfe2d7(0xae)]();break;case _0x1f93cf[_0xcfe2d7(0x18d)][_0xcfe2d7(0xfe)]:this[_0xcfe2d7(0xb5)]();break;}}),this[_0x5d733f(0xb4)][_0x5d733f(0x10f)]['pipe'](_0x43d446[_0x5d733f(0xd4)](this[_0x5d733f(0xda)]))[_0x5d733f(0x121)](_0x218b3e=>{const _0xe4c085=_0x5d733f,{eventID:_0x443a56}=_0x218b3e;switch(_0x443a56){case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0x148)]:this[_0xe4c085(0x126)](_0x218b3e);break;case _0x139ad0['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0xe4c085(0x163)](_0x218b3e);break;case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0xf0)]:this[_0xe4c085(0x131)]();break;case _0x139ad0[_0xe4c085(0x15c)][_0xe4c085(0xc3)]:this['_handleNewChangeSets'](_0x218b3e);break;}}));}['tryStartPresenting'](){const _0x13a4de=_0x28afe1;this['_collabSession'][_0x13a4de(0xc5)]({'eventID':_0x139ad0[_0x13a4de(0x15c)][_0x13a4de(0x180)],'data':{'unitID':this[_0x13a4de(0xeb)],'userID':this['_collabSession'][_0x13a4de(0x112)]()}},this[_0x13a4de(0xeb)]);}[_0x28afe1(0x155)](){const _0x34e562=_0x28afe1;this[_0x34e562(0xbd)]===_0x34e562(0xee)&&(this['_status$'][_0x34e562(0x173)](_0x34e562(0xd9)),this[_0x34e562(0xb4)][_0x34e562(0xc5)]({'eventID':_0x139ad0[_0x34e562(0x15c)][_0x34e562(0xf0)],'data':{'unitID':this[_0x34e562(0xeb)]}},this[_0x34e562(0xeb)]));}[_0x28afe1(0xf2)](){const _0x27aa9e=_0x28afe1;this[_0x27aa9e(0xbd)]===_0x27aa9e(0xc2)&&(this[_0x27aa9e(0x150)][_0x27aa9e(0x173)](_0x27aa9e(0xe1)),this[_0x27aa9e(0x17d)]());}[_0x28afe1(0xf4)](){const _0x3d9204=_0x28afe1;this[_0x3d9204(0xbd)]==='following'&&this['_stopFollowing']();}[_0x28afe1(0x126)](_0x2ec35a){const _0x2f306b=_0x28afe1,{presenter:_0x36e14f}=_0x2ec35a[_0x2f306b(0x12b)],_0x38a7c9=this['_collabSession'][_0x2f306b(0x112)]();this[_0x2f306b(0xc9)]=_0x36e14f,_0x36e14f===_0x38a7c9?(this[_0x2f306b(0xc8)](),this['_startPresenting']()):this[_0x2f306b(0xbd)]!==_0x2f306b(0xc2)&&(this['_stopPresenting'](),this[_0x2f306b(0x17d)]());}[_0x28afe1(0x16a)](){const _0x872b5=_0x28afe1,_0x301de4={'eventID':_0x139ad0[_0x872b5(0x15c)][_0x872b5(0x176)]};this[_0x872b5(0xb4)][_0x872b5(0xc5)](_0x301de4,this['_unitID']);}[_0x28afe1(0x131)](){const _0x3f0871=_0x28afe1;this[_0x3f0871(0xc9)]=null,this[_0x3f0871(0xbd)]!==_0x3f0871(0xee)&&this[_0x3f0871(0xe0)]();}['_handleNewChangeSets'](_0x12d8b9){const _0x67620b=_0x28afe1;if(this[_0x67620b(0xbd)]==='following'&&this[_0x67620b(0xc9)]===_0x12d8b9['data']['memberID']){const _0x592a94=_0x139ad0['parseProtocolChangeset'](_0x12d8b9[_0x67620b(0x12b)])[_0x67620b(0xb3)][_0x67620b(0x133)]()['find'](_0x52cdf1=>_0x52cdf1['id']===_0x2c6fb4[_0x67620b(0x11d)]['id']);if(_0x592a94){const _0x5d60ae=_0x592a94[_0x67620b(0xd6)][_0x67620b(0xed)],_0x5aede7=_0x592a94['params'][_0x67620b(0x159)]['id'];setTimeout(()=>{const _0x5d06ab=_0x67620b;this[_0x5d06ab(0x12f)][_0x5d06ab(0x16f)](_0x2c6fb4[_0x5d06ab(0x185)]['id'],{'unitId':_0x5d60ae,'subUnitId':_0x5aede7},{'fromCollab':!0x0});});}}}[_0x28afe1(0xfc)](){const _0x682f50=_0x28afe1;this['_status$'][_0x682f50(0x173)]('presenting');const _0x238d6e=new Map(),_0x4cfd52=this[_0x682f50(0x12e)]=new _0x28cd17[(_0x682f50(0xf9))]();_0x4cfd52[_0x682f50(0xf5)](_0x28cd17[_0x682f50(0x175)](()=>{const _0x11544b=_0x682f50;_0x238d6e[_0x11544b(0xdc)](_0x465b79=>_0x465b79[_0x11544b(0xc7)]()),_0x238d6e[_0x11544b(0x158)]();})),_0x4cfd52[_0x682f50(0xf5)](this[_0x682f50(0x12f)]['onCommandExecuted'](_0x452b82=>{const _0x4cc680=_0x682f50;var _0x5aee9f;if(_0x452b82[_0x4cc680(0x107)]!==_0x28cd17[_0x4cc680(0x182)][_0x4cc680(0x13a)]||!this[_0x4cc680(0x114)][_0x4cc680(0x15d)](_0x452b82['id']))return;const {id:_0x3621d5}=_0x452b82;let _0x19f8fb;_0x238d6e[_0x4cc680(0x14e)](_0x3621d5)?_0x19f8fb=_0x238d6e[_0x4cc680(0xde)](_0x3621d5):(_0x19f8fb=new _0x565fda[(_0x4cc680(0xbb))](),_0x238d6e['set'](_0x3621d5,_0x19f8fb),_0x19f8fb['pipe'](_0x43d446['throttleTime']((_0x5aee9f=this['_configService'][_0x4cc680(0x154)](_0x1c389d))!=null?_0x5aee9f:_0x25d6c9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4cc680(0x121)](_0x5754eb=>{const _0x11de8e=_0x4cc680;this[_0x11de8e(0xb4)]['send']({'eventID':_0x139ad0[_0x11de8e(0x15c)][_0x11de8e(0x110)],'data':{'unitID':this[_0x11de8e(0xeb)],'operations':{[_0x5754eb['id']]:{'id':_0x5754eb['id'],'params':JSON[_0x11de8e(0x10b)](_0x5754eb[_0x11de8e(0xd6)])}}}},this[_0x11de8e(0xeb)]);})),_0x19f8fb[_0x4cc680(0x173)](_0x452b82);})),this[_0x682f50(0x114)][_0x682f50(0x18f)](this[_0x682f50(0xeb)])[_0x682f50(0xdc)](_0x4327b0=>this[_0x682f50(0xb4)][_0x682f50(0xc5)]({'eventID':_0x139ad0[_0x682f50(0x15c)][_0x682f50(0x110)],'data':{'unitID':this[_0x682f50(0xeb)],'operations':{[_0x4327b0['id']]:{'id':_0x4327b0['id'],'params':JSON['stringify'](_0x4327b0['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1f19de=_0x28afe1;var _0x4221e2;this[_0x1f19de(0x150)][_0x1f19de(0x173)](_0x1f19de(0xd9)),(_0x4221e2=this[_0x1f19de(0x12e)])==null||_0x4221e2[_0x1f19de(0x12d)](),this[_0x1f19de(0x12e)]=null;}['_startFollowing'](){const _0x501033=_0x28afe1;var _0x6438a;(_0x6438a=this[_0x501033(0x12e)])==null||_0x6438a['dispose'](),this[_0x501033(0x150)][_0x501033(0x173)](_0x501033(0xe1));}[_0x28afe1(0xe0)](){const _0x4c7650=_0x28afe1;var _0x3033d1;this['_status$'][_0x4c7650(0x173)](_0x4c7650(0xd9)),(_0x3033d1=this[_0x4c7650(0x12e)])==null||_0x3033d1[_0x4c7650(0x12d)](),this['_commandDisposable']=null;}[_0x28afe1(0xc8)](){const _0x54d74b=_0x28afe1;var _0xa636ae;this[_0x54d74b(0x150)][_0x54d74b(0x173)]('not-following'),(_0xa636ae=this[_0x54d74b(0x12e)])==null||_0xa636ae[_0x54d74b(0x12d)]();}[_0x28afe1(0x163)](_0x35c233){const _0x39692b=_0x28afe1;if([_0x39692b(0xee),_0x39692b(0xc2),_0x39692b(0xaf)][_0x39692b(0xc0)](this['_status'])||!_0x35c233[_0x39692b(0x12b)][_0x39692b(0x166)]||_0x35c233['data'][_0x39692b(0x166)]===this[_0x39692b(0xb4)][_0x39692b(0x112)]())return;this[_0x39692b(0xbd)]===_0x39692b(0xd9)&&this[_0x39692b(0x17d)]();const _0x3cc429=_0x35c233['data'][_0x39692b(0xba)];Object[_0x39692b(0x117)](_0x3cc429)[_0x39692b(0xdc)](_0x56886e=>{const _0x422394=_0x39692b;this['_commandService'][_0x422394(0x16f)](_0x56886e['id'],_0x56886e[_0x422394(0xd6)]?JSON['parse'](_0x56886e[_0x422394(0xd6)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x261c0f=_0x28afe1;var _0x3f3c35;this[_0x261c0f(0x150)][_0x261c0f(0x173)](_0x261c0f(0xaf)),(_0x3f3c35=this[_0x261c0f(0x12e)])==null||_0x3f3c35[_0x261c0f(0x12d)]();}[_0x28afe1(0xb5)](){const _0x4c3708=_0x28afe1;this['_status$'][_0x4c3708(0x173)]('idle'),this[_0x4c3708(0x16a)]();}},_0x5c670c[_0x28afe1(0x156)]=_0x1ba6b5([_0x480b5b(0x2,_0x28cd17[_0x28afe1(0x15f)]),_0x480b5b(0x3,_0x28cd17[_0x28afe1(0x10d)](_0x16b4e6)),_0x480b5b(0x4,_0x28cd17['ICommandService'])],_0x5c670c['LiveShareCoordinator']);function _0x342369(){const _0x2e5558=_0x28afe1,_0x5a0b7c=_0x34f791[_0x2e5558(0x127)](_0x5c670c[_0x2e5558(0x11f)]),_0x2a0340=_0x34f791[_0x2e5558(0x127)](_0x28cd17[_0x2e5558(0xd0)]),_0x32632a=_0x34f791[_0x2e5558(0x101)](()=>_0x2a0340[_0x2e5558(0x11c)](_0x28cd17[_0x2e5558(0xca)][_0x2e5558(0x104)]),void 0x0,!0x1,[]),[_0x444fd0,_0x8075e5]=_0x1d34a9[_0x2e5558(0x18b)](null),[_0x31777e,_0x364b5f]=_0x1d34a9[_0x2e5558(0x18b)](_0x1c6cec[_0x2e5558(0xd3)]),_0x4f3708=_0x1d34a9[_0x2e5558(0x108)](null);return _0x1d34a9[_0x2e5558(0xef)](()=>(_0x32632a&&_0x5a0b7c[_0x2e5558(0x15a)](_0x32632a[_0x2e5558(0xbe)]())[_0x2e5558(0xcb)](_0x251976=>{const _0x541d35=_0x2e5558;_0x8075e5(_0x251976),_0x4f3708['current']=_0x251976[_0x541d35(0x190)]['subscribe'](_0xc43385=>{_0x364b5f(_0xc43385);});}),()=>{const _0x50c1fd=_0x2e5558;var _0x8ad15d;(_0x8ad15d=_0x4f3708['current'])==null||_0x8ad15d['unsubscribe'](),_0x4f3708[_0x50c1fd(0xdd)]=null;}),[_0x32632a,_0x5a0b7c]),_0x444fd0?_0x454e0b[_0x2e5558(0x181)](_0x573b10[_0x2e5558(0xdb)],{'align':'end','disabled':_0x31777e===_0x1c6cec[_0x2e5558(0xf8)],'className':_0x2e5558(0x192),'overlay':_0x454e0b[_0x2e5558(0x181)](_0x3e6b19,{'status':_0x31777e,'coordinator':_0x444fd0}),'children':_0x454e0b[_0x2e5558(0x181)]('button',{'className':_0x573b10['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x31777e===_0x1c6cec[_0x2e5558(0xf8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31777e!==_0x1c6cec['OFFLINE']}),'type':'button','children':_0x454e0b[_0x2e5558(0x181)](_0xc68c30,{'className':_0x2e5558(0xbc)})})}):null;}function _0x3e6b19(_0x59623a){const _0x4112f3=_0x28afe1,{status:_0x3faf1c,coordinator:_0x59bc95}=_0x59623a;switch(_0x3faf1c){case _0x1c6cec[_0x4112f3(0xd3)]:return _0x454e0b[_0x4112f3(0x181)](_0xa8bfb8,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0xce)]:return _0x454e0b[_0x4112f3(0x181)](_0x2d9547,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0x13e)]:return _0x454e0b[_0x4112f3(0x181)](_0x5b9fe3,{'coordinator':_0x59bc95});case _0x1c6cec[_0x4112f3(0xf8)]:return _0x454e0b[_0x4112f3(0x181)](_0x277ad4,{});case _0x1c6cec[_0x4112f3(0x14a)]:return _0x454e0b[_0x4112f3(0x181)](_0x5abcd1,{'coordinator':_0x59bc95});default:return null;}}function _0xa8bfb8(_0x76d436){const _0x491753=_0x28afe1,{coordinator:_0x41c2b3}=_0x76d436;return _0x454e0b[_0x491753(0xf1)](_0x454e0b[_0x491753(0x119)],{'children':[_0x454e0b[_0x491753(0x181)](_0x491753(0x15e),{'className':_0x491753(0xc4),'children':_0x491753(0xd7)}),_0x454e0b[_0x491753(0x181)](_0x573b10[_0x491753(0x105)],{'onClick':()=>_0x41c2b3[_0x491753(0x130)](),'children':_0x491753(0x12a)})]});}function _0x2d9547(_0x433cea){const _0x1ed643=_0x28afe1,{coordinator:_0x9c7085}=_0x433cea;return _0x454e0b[_0x1ed643(0xf1)](_0x454e0b['Fragment'],{'children':[_0x454e0b[_0x1ed643(0x181)]('div',{'className':_0x1ed643(0xc4),'children':_0x1ed643(0x11b)}),_0x454e0b[_0x1ed643(0x181)](_0x573b10[_0x1ed643(0x105)],{'onClick':()=>_0x9c7085[_0x1ed643(0xf4)](),'children':_0x1ed643(0x100)})]});}function _0x5b9fe3(_0x15ea5c){const _0x206692=_0x28afe1,{coordinator:_0x1fa302}=_0x15ea5c;return _0x454e0b['jsxs'](_0x454e0b[_0x206692(0x119)],{'children':[_0x454e0b[_0x206692(0x181)](_0x206692(0x15e),{'className':_0x206692(0xc4),'children':_0x206692(0x123)}),_0x454e0b['jsx'](_0x573b10[_0x206692(0x105)],{'variant':'text','onClick':()=>_0x1fa302[_0x206692(0xf2)](),'children':'Start\x20following'})]});}function _0x5abcd1(_0x4851ff){const _0x2c5df8=_0x28afe1,{coordinator:_0x170d79}=_0x4851ff;return _0x454e0b[_0x2c5df8(0xf1)](_0x454e0b[_0x2c5df8(0x119)],{'children':[_0x454e0b[_0x2c5df8(0x181)](_0x2c5df8(0x15e),{'className':_0x2c5df8(0xc4),'children':_0x2c5df8(0xd5)}),_0x454e0b[_0x2c5df8(0x181)](_0x573b10['Button'],{'variant':_0x2c5df8(0x11e),'onClick':()=>_0x170d79['stopPresenting'](),'children':_0x2c5df8(0xf7)})]});}function _0x277ad4(){const _0x14273c=_0x28afe1;return _0x454e0b[_0x14273c(0x181)](_0x454e0b[_0x14273c(0x119)],{'children':_0x14273c(0xbf)});}var _0x755f75=Object[_0x28afe1(0xff)],_0x1c0018=(_0x12a859,_0x437d61,_0x16fcaf,_0xa98845)=>{const _0x7cd331=_0x28afe1;for(var _0x229787=_0xa98845>0x1?void 0x0:_0xa98845?_0x755f75(_0x437d61,_0x16fcaf):_0x437d61,_0x19fc67=_0x12a859[_0x7cd331(0xf3)]-0x1,_0x4372cd;_0x19fc67>=0x0;_0x19fc67--)(_0x4372cd=_0x12a859[_0x19fc67])&&(_0x229787=_0x4372cd(_0x229787)||_0x229787);return _0x229787;},_0x4c4b2c=(_0x359bb1,_0x389df3)=>(_0x45b329,_0xd1ecf3)=>_0x389df3(_0x45b329,_0xd1ecf3,_0x359bb1);_0x5c670c[_0x28afe1(0x157)]=class extends _0x28cd17[_0x28afe1(0x122)]{constructor(_0x50c426,_0x1b895e){super(),this['_injector']=_0x50c426,this['_uiPartsService']=_0x1b895e,this['_mountLiveShare']();}[_0x28afe1(0xe3)](){const _0x182409=_0x28afe1;this['disposeWithMe'](this[_0x182409(0x187)][_0x182409(0x17f)](_0x34f791[_0x182409(0x165)][_0x182409(0x111)],()=>_0x34f791[_0x182409(0xad)](_0x342369,this[_0x182409(0x13b)])));}},_0x5c670c['DesktopLiveShareController']=_0x1c0018([_0x4c4b2c(0x0,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17[_0x28afe1(0x14f)])),_0x4c4b2c(0x1,_0x34f791[_0x28afe1(0x116)])],_0x5c670c['DesktopLiveShareController']);const _0x295a5b='live-share.config',_0xd61226={};var _0xeeacd8=Object[_0x28afe1(0xff)],_0x2b5898=(_0x2e8175,_0x36520f,_0x436e51,_0x419090)=>{for(var _0x3d8f9d=_0x419090>0x1?void 0x0:_0x419090?_0xeeacd8(_0x36520f,_0x436e51):_0x36520f,_0x345f76=_0x2e8175['length']-0x1,_0x531bd1;_0x345f76>=0x0;_0x345f76--)(_0x531bd1=_0x2e8175[_0x345f76])&&(_0x3d8f9d=_0x531bd1(_0x3d8f9d)||_0x3d8f9d);return _0x3d8f9d;},_0x17711d=(_0x3a0fd3,_0x2a1855)=>(_0x5ac9b0,_0x4b1e5e)=>_0x2a1855(_0x5ac9b0,_0x4b1e5e,_0x3a0fd3);let _0x57eecd=class extends _0x28cd17['Disposable']{constructor(_0x112311){const _0x24998e=_0x28afe1;super(),this[_0x24998e(0x114)]=_0x112311,this[_0x24998e(0xe4)]();}[_0x28afe1(0xe4)](){const _0x5b736a=_0x28afe1;[_0x4d26ff['SetZoomRatioOperation']['id'],_0x4d26ff[_0x5b736a(0xb0)]['id'],_0x2c6fb4[_0x5b736a(0x185)]['id']][_0x5b736a(0xdc)](_0x361d92=>{const _0x5f4cd1=_0x5b736a;this[_0x5f4cd1(0xd1)](this['_liveShareService'][_0x5f4cd1(0x170)](_0x361d92));});}};_0x57eecd=_0x2b5898([_0x17711d(0x0,_0x28cd17[_0x28afe1(0x10d)](_0x16b4e6))],_0x57eecd);var _0x3a8abd=Object[_0x28afe1(0x161)],_0x5b584a=Object['getOwnPropertyDescriptor'],_0x44aa28=(_0x34a68b,_0x874a8d,_0x50287a)=>_0x874a8d in _0x34a68b?_0x3a8abd(_0x34a68b,_0x874a8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50287a}):_0x34a68b[_0x874a8d]=_0x50287a,_0x25b9b0=(_0x44b369,_0x4b7e05,_0x48c7af,_0x2c6a7c)=>{const _0x26e3ce=_0x28afe1;for(var _0x8b52f7=_0x2c6a7c>0x1?void 0x0:_0x2c6a7c?_0x5b584a(_0x4b7e05,_0x48c7af):_0x4b7e05,_0x5803e2=_0x44b369[_0x26e3ce(0xf3)]-0x1,_0xd95f42;_0x5803e2>=0x0;_0x5803e2--)(_0xd95f42=_0x44b369[_0x5803e2])&&(_0x8b52f7=_0xd95f42(_0x8b52f7)||_0x8b52f7);return _0x8b52f7;},_0x1e1123=(_0x6a104c,_0x39df4f)=>(_0x57daab,_0x5c0fdb)=>_0x39df4f(_0x57daab,_0x5c0fdb,_0x6a104c),_0x22ff85=(_0x36a4f0,_0x1b0857,_0x2ae415)=>_0x44aa28(_0x36a4f0,typeof _0x1b0857!='symbol'?_0x1b0857+'':_0x1b0857,_0x2ae415);const _0x4587a2=_0x28afe1(0xb9);_0x5c670c[_0x28afe1(0x124)]=class extends _0x28cd17[_0x28afe1(0x17a)]{constructor(_0x3de0b8=_0xd61226,_0x35e3f3,_0x625c4e){const _0x1e03d0=_0x28afe1;super(),this[_0x1e03d0(0x12c)]=_0x3de0b8,this[_0x1e03d0(0x13b)]=_0x35e3f3,this[_0x1e03d0(0xd8)]=_0x625c4e;const {..._0x3db2fe}=_0x28cd17[_0x1e03d0(0xfd)]({},_0xd61226,this['_config']);this[_0x1e03d0(0xd8)][_0x1e03d0(0x10e)](_0x295a5b,_0x3db2fe);}[_0x28afe1(0x164)](){const _0x58bd4e=_0x28afe1;_0x28cd17[_0x58bd4e(0x184)](this[_0x58bd4e(0x13b)],_0x28cd17[_0x58bd4e(0x10c)]([[_0x16b4e6],[_0x5c670c[_0x58bd4e(0x11f)]],[_0x57eecd],[_0x5c670c[_0x58bd4e(0x157)]]],this[_0x58bd4e(0x12c)][_0x58bd4e(0x16c)])),_0x28cd17['touchDependencies'](this[_0x58bd4e(0x13b)],[[_0x57eecd]]);}[_0x28afe1(0xac)](){const _0x36d71d=_0x28afe1;_0x28cd17[_0x36d71d(0x15b)](this[_0x36d71d(0x13b)],[[_0x5c670c['DesktopLiveShareController']]]);}},_0x22ff85(_0x5c670c[_0x28afe1(0x124)],_0x28afe1(0x107),_0x28cd17[_0x28afe1(0xca)][_0x28afe1(0xd2)]),_0x22ff85(_0x5c670c['UniverLiveSharePlugin'],_0x28afe1(0xc6),_0x4587a2),_0x5c670c[_0x28afe1(0x124)]=_0x25b9b0([_0x28cd17['DependentOn'](_0x1f93cf[_0x28afe1(0x167)]),_0x1e1123(0x1,_0x28cd17[_0x28afe1(0x10d)](_0x28cd17[_0x28afe1(0x14f)])),_0x1e1123(0x2,_0x28cd17[_0x28afe1(0x15f)])],_0x5c670c[_0x28afe1(0x124)]),_0x5c670c[_0x28afe1(0x113)]=_0x342369,_0x5c670c[_0x28afe1(0x125)]=_0x16b4e6,_0x5c670c[_0x28afe1(0x174)]=_0x1c6cec,Object[_0x28afe1(0x161)](_0x5c670c,Symbol[_0x28afe1(0x17b)],{'value':'Module'});}));function _0x1c77(){const _0x3777d2=['getInitialStates','status$','@univerjs/core','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','onRendered','connectInjector','_handleOffline','offline','SetScrollOperation','rxjs/operators','from','mutations','_collabSession','_handleOnline','tag','entries','3523660apBDft','UNIVER_LIVE_SHARE_PLUGIN','operations','Subject','univer-size-4','_status','getUnitId','You\x27are\x20offline.','includes','3973460uUBKlr','not-following','NEW_CHANGESETS','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','pluginName','complete','_stopFollowing','_presenter','UniverInstanceType','then','@univerjs-pro/collaboration','random','FOLLOWING','set','IUniverInstanceService','disposeWithMe','UNIVER_UNKNOWN','IDLE','takeUntil','You\x27re\x20presenting\x20the\x20document','params','Present\x20this\x20document','_configService','idle','dispose$','Dropdown','forEach','current','get','forwardRef','_beIdle','following','0\x200\x2017\x2017','_mountLiveShare','_init','getStatus','exports','replace','_entities','1111976gmPTDC','currentColor','_unitID','_sharedOperations','unitId','presenting','useEffect','LIVESHARE_TERMINATE','jsxs','startFollowing','length','stopFollowing','add','path','Stop\x20presenting','OFFLINE','DisposableCollection','6EphJie','xlink:href','_startPresenting','merge','ONLINE','getOwnPropertyDescriptor','Stop\x20following','useObservable','http://www.w3.org/2000/svg','sessionStatus$','UNIVER_SHEET','Button','SAME_OPERATION_SHARE_INTERVAL','type','useRef','64630VDAVja','attrs','stringify','mergeOverrideWithDependencies','Inject','setConfig','event$','LIVESHARE_OPERATION','HEADER_MENU','getMemberID','LiveShare','_liveShareService','registerInitialStateReporter','IUIPartsService','values','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','Fragment','1148185EvznPF','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','InsertSheetMutation','default','LiveShareController','delete','subscribe','Disposable','You\x27re\x20not\x20following\x20the\x20presenter','UniverLiveSharePlugin','LiveShareService','_handleNewHost','useDependency','24qPUNxA','UniverSheetsUi','Start','data','_config','dispose','_commandDisposable','_commandService','tryStartPresenting','_handleTerminate','evenodd','reverse','asObservable','fill','LiveShareIcon','UniverUi','30aisoSD','@univerjs/ui','OPERATION','_injector','CollaborationSessionService','defIds','NOT_FOLLOWING','requireSession','getTypeOfUnitDisposed$','substring','children','UniverProLiveShare','@univerjs-pro/collaboration-client','@univerjs/design','3808651UmhbHo','operators','LIVESHARE_NEW_HOST','_collabSessionService','PRESENTING','_univerInstanceService','getTypeOfUnitAdded$','mask','has','Injector','_status$','symbol','react','React','getConfig','stopPresenting','LiveShareCoordinator','DesktopLiveShareController','clear','sheet','getLiveShareCoordinator','touchDependencies','CollaborationEvent','shouldShareOperation','div','IConfigService','url(#$1','defineProperty','_reporters','_handleOperation','onStarting','BuiltInUIPart','presenter','UniverCollaborationClientPlugin','defs','trim','_fetchOperations','rxjs','override','1em','map','executeCommand','registerSharedOperation','object','_startLiveShareCoordinator','next','LiveShareStatus','toDisposable','LIVESHARE_FETCH_OPERATIONS','colorChannel1','18Ooqrks','idSuffix','Plugin','toStringTag','2413215nGcPsl','_startFollowing','UniverProCollaboration','registerComponent','LIVESHARE_REQUEST_HOST','jsx','CommandType','react/jsx-runtime','registerDependencies','SetWorksheetActiveOperation','7MFtOvt','_uiPartsService','RxDisposable','amd','init','useState','createElement','SessionStatus','string'];_0x1c77=function(){return _0x3777d2;};return _0x1c77();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-
|
|
3
|
+
"version": "0.12.4-insiders.20251211-c28f914",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.4-
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/ui": "0.12.4-
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-insiders.20251211-c28f914",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-insiders.20251211-c28f914",
|
|
62
|
+
"@univerjs/core": "0.12.4-insiders.20251211-c28f914",
|
|
63
|
+
"@univerjs/design": "0.12.4-insiders.20251211-c28f914",
|
|
64
|
+
"@univerjs/sheets": "0.12.4-insiders.20251211-c28f914",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.4-insiders.20251211-c28f914",
|
|
66
|
+
"@univerjs/ui": "0.12.4-insiders.20251211-c28f914",
|
|
67
|
+
"@univerjs/engine-render": "0.12.4-insiders.20251211-c28f914"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|