@univerjs-pro/live-share 0.8.0-beta.0 → 0.8.0-nightly.202505261607
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x27ce7f=_0xc178;(function(_0x2743b8,_0x4d5280){var _0x4de444=_0xc178,_0x32c297=_0x2743b8();while(!![]){try{var _0x320262=parseInt(_0x4de444(0x185))/0x1*(-parseInt(_0x4de444(0x203))/0x2)+-parseInt(_0x4de444(0x1cd))/0x3*(-parseInt(_0x4de444(0x14b))/0x4)+-parseInt(_0x4de444(0x163))/0x5*(parseInt(_0x4de444(0x218))/0x6)+-parseInt(_0x4de444(0x178))/0x7+parseInt(_0x4de444(0x1cf))/0x8+parseInt(_0x4de444(0x187))/0x9*(parseInt(_0x4de444(0x200))/0xa)+-parseInt(_0x4de444(0x193))/0xb;if(_0x320262===_0x4d5280)break;else _0x32c297['push'](_0x32c297['shift']());}catch(_0x41f4e7){_0x32c297['push'](_0x32c297['shift']());}}}(_0x2ee7,0x230ab));var U=Object[_0x27ce7f(0x1b8)],F=(_0x421ba1,_0x30c009,_0x208aa9)=>_0x30c009 in _0x421ba1?U(_0x421ba1,_0x30c009,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208aa9}):_0x421ba1[_0x30c009]=_0x208aa9,v=(_0x7d4e9f,_0x5f3f22,_0x12e998)=>F(_0x7d4e9f,typeof _0x5f3f22!=_0x27ce7f(0x1c8)?_0x5f3f22+'':_0x5f3f22,_0x12e998);Object[_0x27ce7f(0x1b8)](exports,Symbol[_0x27ce7f(0x1b9)],{'value':_0x27ce7f(0x167)});const m=require(_0x27ce7f(0x190)),o=require(_0x27ce7f(0x1c1)),C=require('@univerjs/sheets'),D=require('@univerjs/sheets-ui'),p=require(_0x27ce7f(0x183)),l=require(_0x27ce7f(0x151)),g=require('@univerjs/design'),f=require(_0x27ce7f(0x15c)),_=require(_0x27ce7f(0x159)),x=require(_0x27ce7f(0x1fa)),b=require('rxjs/operators'),$=_0x27ce7f(0x158),L={};class E extends o[_0x27ce7f(0x166)]{constructor(){var _0x1f7f80=_0x27ce7f;super(...arguments),v(this,_0x1f7f80(0x188),new Set()),v(this,'_reporters',new Set());}[_0x27ce7f(0x214)](_0x499e49){var _0x4442e2=_0x27ce7f;return this[_0x4442e2(0x188)]['add'](_0x499e49),o[_0x4442e2(0x21b)](()=>this[_0x4442e2(0x188)][_0x4442e2(0x15a)](_0x499e49));}['registerInitialStateReporter'](_0x4c84e2){var _0x3fb929=_0x27ce7f;return this[_0x3fb929(0x1b4)][_0x3fb929(0x1a7)](_0x4c84e2),o[_0x3fb929(0x21b)](()=>this['_reporters'][_0x3fb929(0x15a)](_0x4c84e2));}[_0x27ce7f(0x162)](_0x19cb4d){var _0x1977c7=_0x27ce7f;return this[_0x1977c7(0x188)][_0x1977c7(0x170)](_0x19cb4d);}['getInitialStates'](_0x41f725){var _0x3fb6e9=_0x27ce7f;return Array[_0x3fb6e9(0x220)](this['_reporters'])['map'](_0x2d7222=>_0x2d7222(_0x41f725));}}var H=Object[_0x27ce7f(0x19f)],V=(_0x459878,_0x2dd8ff,_0x43a241,_0x23a5bd)=>{var _0x1dee52=_0x27ce7f;for(var _0x5cb595=_0x23a5bd>0x1?void 0x0:_0x23a5bd?H(_0x2dd8ff,_0x43a241):_0x2dd8ff,_0x14e90c=_0x459878[_0x1dee52(0x1d1)]-0x1,_0x2dd631;_0x14e90c>=0x0;_0x14e90c--)(_0x2dd631=_0x459878[_0x14e90c])&&(_0x5cb595=_0x2dd631(_0x5cb595)||_0x5cb595);return _0x5cb595;},k=(_0x2e3544,_0x18b3b1)=>(_0x4acf86,_0x478c4e)=>_0x18b3b1(_0x4acf86,_0x478c4e,_0x2e3544);let O=class extends o[_0x27ce7f(0x166)]{constructor(_0x2c7108){var _0x3630f7=_0x27ce7f;super(),this[_0x3630f7(0x1b2)]=_0x2c7108,this['_init']();}[_0x27ce7f(0x21c)](){[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x5413b2=>{var _0x35d017=_0xc178;this[_0x35d017(0x210)](this['_liveShareService'][_0x35d017(0x214)](_0x5413b2));});}};O=V([k(0x0,o[_0x27ce7f(0x1bc)](E))],O);var u=function(){var _0x1f86fe=_0x27ce7f;return u=Object['assign']||function(_0x471713){var _0x504510=_0xc178;for(var _0x4dc54a,_0x1acda6=0x1,_0x203b28=arguments[_0x504510(0x1d1)];_0x1acda6<_0x203b28;_0x1acda6++){_0x4dc54a=arguments[_0x1acda6];for(var _0x4d7024 in _0x4dc54a)Object['prototype'][_0x504510(0x17e)][_0x504510(0x16b)](_0x4dc54a,_0x4d7024)&&(_0x471713[_0x4d7024]=_0x4dc54a[_0x4d7024]);}return _0x471713;},u[_0x1f86fe(0x155)](this,arguments);},M=function(_0x1b87b3,_0x16d406){var _0x388df6=_0x27ce7f,_0x342bf3={};for(var _0x4e8096 in _0x1b87b3)Object[_0x388df6(0x165)][_0x388df6(0x17e)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096)&&_0x16d406[_0x388df6(0x153)](_0x4e8096)<0x0&&(_0x342bf3[_0x4e8096]=_0x1b87b3[_0x4e8096]);if(_0x1b87b3!=null&&typeof Object[_0x388df6(0x1f0)]=='function'){for(var _0x731780=0x0,_0x4e8096=Object[_0x388df6(0x1f0)](_0x1b87b3);_0x731780<_0x4e8096[_0x388df6(0x1d1)];_0x731780++)_0x16d406[_0x388df6(0x153)](_0x4e8096[_0x731780])<0x0&&Object[_0x388df6(0x165)][_0x388df6(0x1e4)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096[_0x731780])&&(_0x342bf3[_0x4e8096[_0x731780]]=_0x1b87b3[_0x4e8096[_0x731780]]);}return _0x342bf3;},j=f[_0x27ce7f(0x164)](function(_0x4f9380,_0x303932){var _0x51736d=_0x27ce7f,_0x3356b2=_0x4f9380[_0x51736d(0x141)],_0x155c5c=_0x4f9380['id'],_0x2fb127=_0x4f9380[_0x51736d(0x208)],_0x36a040=_0x4f9380[_0x51736d(0x179)],_0x43167e=M(_0x4f9380,[_0x51736d(0x141),'id',_0x51736d(0x208),'extend']),_0x7fb1f2=_0x51736d(0x1fc)['concat'](_0x155c5c,'\x20')[_0x51736d(0x1ff)](_0x2fb127||'')['trim'](),_0x1eb044=f[_0x51736d(0x16f)]('_'[_0x51736d(0x1ff)](G()));return y(_0x3356b2,''['concat'](_0x155c5c),{'defIds':_0x3356b2[_0x51736d(0x1f2)],'idSuffix':_0x1eb044[_0x51736d(0x21a)]},u({'ref':_0x303932,'className':_0x7fb1f2},_0x43167e),_0x36a040);});function y(_0x36e87b,_0x3eb267,_0x5753d4,_0x23a6a8,_0x5946a0){var _0xa28bb3=_0x27ce7f;return f['createElement'](_0x36e87b['tag'],u(u({'key':_0x3eb267},q(_0x36e87b,_0x5753d4,_0x5946a0)),_0x23a6a8),(W(_0x36e87b,_0x5753d4)[_0xa28bb3(0x177)]||[])['map'](function(_0x53a7e9,_0x226082){var _0x46efad=_0xa28bb3;return y(_0x53a7e9,''[_0x46efad(0x1ff)](_0x3eb267,'-')[_0x46efad(0x1ff)](_0x36e87b[_0x46efad(0x1d8)],'-')[_0x46efad(0x1ff)](_0x226082),_0x5753d4,void 0x0,_0x5946a0);}));}function q(_0x3438a6,_0x4c6d5f,_0x3b2a06){var _0x2821e0=_0x27ce7f,_0x1b8d8f=u({},_0x3438a6[_0x2821e0(0x1ac)]);_0x3b2a06!=null&&_0x3b2a06[_0x2821e0(0x1ed)]&&_0x1b8d8f['fill']==='colorChannel1'&&(_0x1b8d8f[_0x2821e0(0x197)]=_0x3b2a06[_0x2821e0(0x1ed)]),_0x3438a6[_0x2821e0(0x1d8)]==='mask'&&_0x1b8d8f['id']&&(_0x1b8d8f['id']=_0x1b8d8f['id']+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x317b5a){var _0x3e3d55=_0x2821e0,_0x288d14=_0x317b5a[0x0],_0x3515b7=_0x317b5a[0x1];_0x288d14==='mask'&&typeof _0x3515b7==_0x3e3d55(0x18d)&&(_0x1b8d8f[_0x288d14]=_0x3515b7[_0x3e3d55(0x156)](/url\(#(.*)\)/,_0x3e3d55(0x18f)[_0x3e3d55(0x1ff)](_0x4c6d5f['idSuffix'],')')));});var _0x3127b8=_0x4c6d5f[_0x2821e0(0x1f2)];return!_0x3127b8||_0x3127b8[_0x2821e0(0x1d1)]===0x0||(_0x3438a6[_0x2821e0(0x1d8)]==='use'&&_0x1b8d8f['xlink:href']&&(_0x1b8d8f['xlink:href']=_0x1b8d8f[_0x2821e0(0x176)]+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x588c3){var _0x9ba8b1=_0x2821e0,_0x151ceb=_0x588c3[0x0],_0x165a2e=_0x588c3[0x1];typeof _0x165a2e==_0x9ba8b1(0x18d)&&(_0x1b8d8f[_0x151ceb]=_0x165a2e[_0x9ba8b1(0x156)](/url\(#(.*)\)/,_0x9ba8b1(0x18f)[_0x9ba8b1(0x1ff)](_0x4c6d5f[_0x9ba8b1(0x204)],')')));})),_0x1b8d8f;}function W(_0xa841e9,_0x2a5f2a){var _0x2d2613=_0x27ce7f,_0x1bdba2,_0x2c5228=_0x2a5f2a[_0x2d2613(0x1f2)];return!_0x2c5228||_0x2c5228['length']===0x0?_0xa841e9:_0xa841e9[_0x2d2613(0x1d8)]===_0x2d2613(0x20c)&&(!((_0x1bdba2=_0xa841e9['children'])===null||_0x1bdba2===void 0x0)&&_0x1bdba2[_0x2d2613(0x1d1)])?u(u({},_0xa841e9),{'children':_0xa841e9[_0x2d2613(0x177)][_0x2d2613(0x1ef)](function(_0xd0c764){var _0x27b6a3=_0x2d2613;return typeof _0xd0c764['attrs']['id']==_0x27b6a3(0x18d)&&_0x2c5228&&_0x2c5228[_0x27b6a3(0x153)](_0xd0c764['attrs']['id'])>-0x1?u(u({},_0xd0c764),{'attrs':u(u({},_0xd0c764['attrs']),{'id':_0xd0c764[_0x27b6a3(0x1ac)]['id']+_0x2a5f2a[_0x27b6a3(0x204)]})}):_0xd0c764;})}):_0xa841e9;}function G(){var _0x2a8f5f=_0x27ce7f;return Math['random']()[_0x2a8f5f(0x1d7)](0x24)['substring'](0x2,0x8);}j[_0x27ce7f(0x1b5)]='UniverIcon';var B={'tag':_0x27ce7f(0x192),'attrs':{'fill':_0x27ce7f(0x212),'viewBox':_0x27ce7f(0x1a2),'width':_0x27ce7f(0x175),'height':_0x27ce7f(0x175)},'children':[{'tag':_0x27ce7f(0x16e),'attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1ee)}},{'tag':'path','attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1e0),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x27ce7f(0x164)](function(_0x4fc576,_0x286179){var _0x31aec6=_0x27ce7f;return f[_0x31aec6(0x14c)](j,Object[_0x31aec6(0x171)]({},_0x4fc576,{'id':_0x31aec6(0x1fe),'ref':_0x286179,'icon':B}));});P[_0x27ce7f(0x1b5)]=_0x27ce7f(0x1bb);var Y=Object[_0x27ce7f(0x19f)],R=(_0x1bf4cc,_0x30f5c9,_0x4f1deb,_0x2ba10b)=>{var _0x5aae0c=_0x27ce7f;for(var _0x5db999=_0x2ba10b>0x1?void 0x0:_0x2ba10b?Y(_0x30f5c9,_0x4f1deb):_0x30f5c9,_0x4c7b6f=_0x1bf4cc[_0x5aae0c(0x1d1)]-0x1,_0x230bb2;_0x4c7b6f>=0x0;_0x4c7b6f--)(_0x230bb2=_0x1bf4cc[_0x4c7b6f])&&(_0x5db999=_0x230bb2(_0x5db999)||_0x5db999);return _0x5db999;},S=(_0x485541,_0x4a8067)=>(_0x41893c,_0x2b54f6)=>_0x4a8067(_0x41893c,_0x2b54f6,_0x485541);exports[_0x27ce7f(0x1cc)]=class extends o[_0x27ce7f(0x15d)]{constructor(_0x11f941,_0x2a3a04,_0x18be56){var _0x57807f=_0x27ce7f;super(),v(this,_0x57807f(0x207),new Map()),(this[_0x57807f(0x1da)]=_0x11f941,this[_0x57807f(0x194)]=_0x2a3a04,this['_collabSessionService']=_0x18be56,this['_init']());}async[_0x27ce7f(0x189)](_0x8c382){var _0x3948c8=_0x27ce7f;return this[_0x3948c8(0x207)][_0x3948c8(0x170)](_0x8c382)||await this[_0x3948c8(0x21e)](_0x8c382),this['_entities'][_0x3948c8(0x1fb)](_0x8c382);}[_0x27ce7f(0x21c)](){var _0x39f8f6=_0x27ce7f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])[_0x39f8f6(0x149)](b['takeUntil'](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](async _0x1abdf4=>{var _0x100eed=_0x39f8f6;const _0x2c7f84=_0x1abdf4[_0x100eed(0x191)]();this[_0x100eed(0x207)]['has'](_0x2c7f84)||this[_0x100eed(0x21e)](_0x2c7f84);}),this[_0x39f8f6(0x1da)]['getTypeOfUnitDisposed$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])['pipe'](b[_0x39f8f6(0x143)](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](_0x26100d=>{var _0x2e96d6=_0x39f8f6;const _0x340da6=_0x26100d[_0x2e96d6(0x191)](),_0x18bc03=this['_entities'][_0x2e96d6(0x1fb)](_0x340da6);_0x18bc03==null||_0x18bc03[_0x2e96d6(0x1a9)]();});}async[_0x27ce7f(0x21e)](_0xdda24){var _0x17dfa6=_0x27ce7f;const _0x47f0ff=await this['_collabSessionService']['requireSession'](_0xdda24),_0x2a2131=this[_0x17dfa6(0x194)][_0x17dfa6(0x182)](exports[_0x17dfa6(0x1b7)],_0xdda24,_0x47f0ff);return _0x2a2131[_0x17dfa6(0x1a6)](),this['_entities'][_0x17dfa6(0x1df)](_0xdda24,_0x2a2131),_0x2a2131;}},exports[_0x27ce7f(0x1cc)]=R([S(0x0,o[_0x27ce7f(0x1fd)]),S(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),S(0x2,o[_0x27ce7f(0x1bc)](m[_0x27ce7f(0x1af)]))],exports['LiveShareController']);var h=(_0x3a6c45=>(_0x3a6c45[_0x27ce7f(0x1d6)]=_0x27ce7f(0x1d5),_0x3a6c45[_0x27ce7f(0x13f)]=_0x27ce7f(0x1f3),_0x3a6c45[_0x27ce7f(0x1e7)]=_0x27ce7f(0x14a),_0x3a6c45[_0x27ce7f(0x14e)]=_0x27ce7f(0x217),_0x3a6c45[_0x27ce7f(0x1c7)]=_0x27ce7f(0x20d),_0x3a6c45))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x177619,_0x4d7736,_0x3a5e20,_0x55bcee,_0x11c502){var _0x2604ad=_0x27ce7f;super(),v(this,_0x2604ad(0x221),new x['BehaviorSubject'](_0x2604ad(0x1f3))),v(this,_0x2604ad(0x202),this['_status$'][_0x2604ad(0x20b)]()),v(this,'_init',!0x1),v(this,_0x2604ad(0x213),null),v(this,'_presenter',null),(this[_0x2604ad(0x19b)]=_0x177619,this['_collabSession']=_0x4d7736,this[_0x2604ad(0x195)]=_0x3a5e20,this[_0x2604ad(0x1b2)]=_0x55bcee,this[_0x2604ad(0x17b)]=_0x11c502);}get[_0x27ce7f(0x186)](){var _0x35309f=_0x27ce7f;return this['_status$'][_0x35309f(0x1bd)]();}[_0x27ce7f(0x1a9)](){var _0x411fae=_0x27ce7f,_0x4689db;(_0x4689db=this[_0x411fae(0x213)])==null||_0x4689db['dispose'](),this[_0x411fae(0x221)]['next'](_0x411fae(0x1f3)),this['_status$'][_0x411fae(0x1ab)]();}['init'](){var _0x3631c3=_0x27ce7f;this[_0x3631c3(0x21c)]||(this[_0x3631c3(0x21c)]=!0x0,this[_0x3631c3(0x1d0)][_0x3631c3(0x1b6)][_0x3631c3(0x149)](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))['subscribe'](_0x3baa12=>{var _0x54febc=_0x3631c3;switch(_0x3baa12){case m[_0x54febc(0x1ad)][_0x54febc(0x1d6)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54febc(0x1ba)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3631c3(0x180)]['pipe'](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))[_0x3631c3(0x1d4)](_0x575cce=>{var _0x5205bb=_0x3631c3;const {eventID:_0x5dd02b}=_0x575cce;switch(_0x5dd02b){case _[_0x5205bb(0x20a)]['LIVESHARE_NEW_HOST']:this[_0x5205bb(0x17a)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x1c4)]:this[_0x5205bb(0x1dc)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x201)]:this[_0x5205bb(0x18b)]();break;case _['CollaborationEvent'][_0x5205bb(0x219)]:this['_handleNewChangeSets'](_0x575cce);break;}}));}[_0x27ce7f(0x1f9)](){var _0x16e792=_0x27ce7f;this[_0x16e792(0x1d0)]['send']({'eventID':_[_0x16e792(0x20a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16e792(0x19b)],'userID':this[_0x16e792(0x1d0)]['getMemberID']()}},this['_unitID']);}[_0x27ce7f(0x1c6)](){var _0x4b32ca=_0x27ce7f;this[_0x4b32ca(0x186)]==='presenting'&&(this['_status$'][_0x4b32ca(0x1f8)]('idle'),this['_collabSession'][_0x4b32ca(0x1f5)]({'eventID':_[_0x4b32ca(0x20a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4b32ca(0x19b)]}},this[_0x4b32ca(0x19b)]));}[_0x27ce7f(0x1c0)](){var _0x4587fc=_0x27ce7f;this[_0x4587fc(0x186)]===_0x4587fc(0x217)&&(this['_status$']['next'](_0x4587fc(0x14a)),this['_startFollowing']());}[_0x27ce7f(0x148)](){var _0x39cd16=_0x27ce7f;this[_0x39cd16(0x186)]===_0x39cd16(0x14a)&&this['_stopFollowing']();}[_0x27ce7f(0x17a)](_0x1169e1){var _0x2420cb=_0x27ce7f;const {presenter:_0x4f2c20}=_0x1169e1[_0x2420cb(0x1bf)],_0x10f297=this[_0x2420cb(0x1d0)][_0x2420cb(0x181)]();this[_0x2420cb(0x160)]=_0x4f2c20,_0x4f2c20===_0x10f297?(this[_0x2420cb(0x1d3)](),this[_0x2420cb(0x15e)]()):this[_0x2420cb(0x186)]!==_0x2420cb(0x217)&&(this[_0x2420cb(0x18c)](),this[_0x2420cb(0x14d)]());}[_0x27ce7f(0x17f)](){var _0x292bf6=_0x27ce7f;const _0x2d0b01={'eventID':_[_0x292bf6(0x20a)][_0x292bf6(0x1c5)]};this[_0x292bf6(0x1d0)][_0x292bf6(0x1f5)](_0x2d0b01,this[_0x292bf6(0x19b)]);}[_0x27ce7f(0x18b)](){var _0x41e797=_0x27ce7f;this[_0x41e797(0x160)]=null,this[_0x41e797(0x186)]!==_0x41e797(0x20d)&&this[_0x41e797(0x174)]();}[_0x27ce7f(0x1c3)](_0x522b0e){var _0x43afe6=_0x27ce7f;if(this[_0x43afe6(0x186)]===_0x43afe6(0x14a)&&this[_0x43afe6(0x160)]===_0x522b0e[_0x43afe6(0x1bf)][_0x43afe6(0x173)]){const _0x156389=_['parseProtocolChangeset'](_0x522b0e[_0x43afe6(0x1bf)])[_0x43afe6(0x1eb)][_0x43afe6(0x20f)]()[_0x43afe6(0x150)](_0x4ada07=>_0x4ada07['id']===C[_0x43afe6(0x1b1)]['id']);if(_0x156389){const _0x2cdc29=_0x156389['params'][_0x43afe6(0x20e)],_0x3dc30c=_0x156389[_0x43afe6(0x1e3)]['sheet']['id'];setTimeout(()=>{var _0x58b8fd=_0x43afe6;this[_0x58b8fd(0x17b)][_0x58b8fd(0x1d2)](C[_0x58b8fd(0x1d9)]['id'],{'unitId':_0x2cdc29,'subUnitId':_0x3dc30c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b0f61=_0x27ce7f;this[_0x4b0f61(0x221)][_0x4b0f61(0x1f8)](_0x4b0f61(0x20d));const _0x1a0847=new Map(),_0x13148e=this[_0x4b0f61(0x213)]=new o['DisposableCollection']();_0x13148e['add'](o[_0x4b0f61(0x21b)](()=>{var _0x1a4a67=_0x4b0f61;_0x1a0847[_0x1a4a67(0x1e8)](_0x35ff52=>_0x35ff52[_0x1a4a67(0x1ab)]()),_0x1a0847[_0x1a4a67(0x140)]();})),_0x13148e['add'](this[_0x4b0f61(0x17b)][_0x4b0f61(0x222)](_0x45fc22=>{var _0x49498a=_0x4b0f61,_0x2f6136;if(_0x45fc22[_0x49498a(0x1cb)]!==o[_0x49498a(0x1f1)]['OPERATION']||!this[_0x49498a(0x1b2)][_0x49498a(0x162)](_0x45fc22['id']))return;const {id:_0x28d1f5}=_0x45fc22;let _0x22a221;_0x1a0847[_0x49498a(0x170)](_0x28d1f5)?_0x22a221=_0x1a0847[_0x49498a(0x1fb)](_0x28d1f5):(_0x22a221=new x[(_0x49498a(0x147))](),_0x1a0847[_0x49498a(0x1df)](_0x28d1f5,_0x22a221),_0x22a221[_0x49498a(0x149)](b['throttleTime']((_0x2f6136=this['_configService']['getConfig'](Z))!=null?_0x2f6136:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49498a(0x1d4)](_0x29aeaa=>{var _0x220185=_0x49498a;this[_0x220185(0x1d0)][_0x220185(0x1f5)]({'eventID':_[_0x220185(0x20a)][_0x220185(0x1c4)],'data':{'unitID':this[_0x220185(0x19b)],'operations':{[_0x29aeaa['id']]:{'id':_0x29aeaa['id'],'params':JSON[_0x220185(0x196)](_0x29aeaa['params'])}}}},this['_unitID']);})),_0x22a221[_0x49498a(0x1f8)](_0x45fc22);})),this[_0x4b0f61(0x1b2)][_0x4b0f61(0x21f)](this['_unitID'])[_0x4b0f61(0x1e8)](_0x3d0c00=>this['_collabSession'][_0x4b0f61(0x1f5)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4b0f61(0x19b)],'operations':{[_0x3d0c00['id']]:{'id':_0x3d0c00['id'],'params':JSON['stringify'](_0x3d0c00['params'])}}}},this[_0x4b0f61(0x19b)]));}[_0x27ce7f(0x18c)](){var _0x2d4a53=_0x27ce7f,_0x3a95b4;this['_status$'][_0x2d4a53(0x1f8)](_0x2d4a53(0x1f3)),(_0x3a95b4=this['_commandDisposable'])==null||_0x3a95b4['dispose'](),this[_0x2d4a53(0x213)]=null;}[_0x27ce7f(0x14d)](){var _0x3febf0=_0x27ce7f,_0x3b0ee8;(_0x3b0ee8=this['_commandDisposable'])==null||_0x3b0ee8['dispose'](),this[_0x3febf0(0x221)][_0x3febf0(0x1f8)](_0x3febf0(0x14a));}[_0x27ce7f(0x174)](){var _0x20210b=_0x27ce7f,_0x35899a;this['_status$'][_0x20210b(0x1f8)](_0x20210b(0x1f3)),(_0x35899a=this[_0x20210b(0x213)])==null||_0x35899a['dispose'](),this[_0x20210b(0x213)]=null;}[_0x27ce7f(0x1d3)](){var _0x22bb56=_0x27ce7f,_0xdfd744;this[_0x22bb56(0x221)][_0x22bb56(0x1f8)](_0x22bb56(0x217)),(_0xdfd744=this[_0x22bb56(0x213)])==null||_0xdfd744[_0x22bb56(0x1a9)]();}[_0x27ce7f(0x1dc)](_0x5ef43f){var _0x512bd1=_0x27ce7f;if([_0x512bd1(0x20d),_0x512bd1(0x217),_0x512bd1(0x1d5)]['includes'](this[_0x512bd1(0x186)])||!_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]||_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x512bd1(0x1f3)&&this['_startFollowing']();const _0x4b2bc5=_0x5ef43f['data'][_0x512bd1(0x1ce)];Object[_0x512bd1(0x205)](_0x4b2bc5)[_0x512bd1(0x1e8)](_0x1d286d=>{var _0x493d41=_0x512bd1;this['_commandService'][_0x493d41(0x1d2)](_0x1d286d['id'],_0x1d286d['params']?JSON[_0x493d41(0x145)](_0x1d286d[_0x493d41(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x27ce7f(0x206)](){var _0x241ae2=_0x27ce7f,_0x347852;this[_0x241ae2(0x221)][_0x241ae2(0x1f8)](_0x241ae2(0x1d5)),(_0x347852=this['_commandDisposable'])==null||_0x347852[_0x241ae2(0x1a9)]();}[_0x27ce7f(0x209)](){var _0x25b0b0=_0x27ce7f;this[_0x25b0b0(0x221)][_0x25b0b0(0x1f8)](_0x25b0b0(0x1f3)),this['_fetchOperations']();}},exports[_0x27ce7f(0x1b7)]=R([S(0x2,o[_0x27ce7f(0x1f4)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x9f1b47=_0x27ce7f;const _0x4e7093=p['useDependency'](exports[_0x9f1b47(0x1cc)]),_0x27ea5e=p[_0x9f1b47(0x1c9)](o[_0x9f1b47(0x1fd)]),_0x268e1d=p[_0x9f1b47(0x152)](()=>_0x27ea5e[_0x9f1b47(0x161)](o['UniverInstanceType'][_0x9f1b47(0x1a4)]),void 0x0,!0x1,[]),[_0x1ca268,_0x5e08b2]=f[_0x9f1b47(0x21d)](null),[_0x4c3270,_0x1c352e]=f['useState'](h[_0x9f1b47(0x13f)]),_0x451fe1=f[_0x9f1b47(0x16f)](null);return f[_0x9f1b47(0x199)](()=>(_0x268e1d&&_0x4e7093['getLiveShareCoordinator'](_0x268e1d[_0x9f1b47(0x191)]())[_0x9f1b47(0x19d)](_0x5a5c83=>{var _0x19870f=_0x9f1b47;_0x5e08b2(_0x5a5c83),_0x451fe1[_0x19870f(0x21a)]=_0x5a5c83[_0x19870f(0x202)][_0x19870f(0x1d4)](_0x2b05a5=>{_0x1c352e(_0x2b05a5);});}),()=>{var _0xca9af9=_0x9f1b47,_0x5b5e1f;(_0x5b5e1f=_0x451fe1[_0xca9af9(0x21a)])==null||_0x5b5e1f[_0xca9af9(0x1b3)](),_0x451fe1[_0xca9af9(0x21a)]=null;}),[_0x268e1d,_0x4e7093]),_0x1ca268?l[_0x9f1b47(0x16a)](g[_0x9f1b47(0x16c)],{'align':_0x9f1b47(0x1a0),'disabled':_0x4c3270===h[_0x9f1b47(0x1d6)],'className':_0x9f1b47(0x17d),'overlay':l[_0x9f1b47(0x16a)](K,{'status':_0x4c3270,'coordinator':_0x1ca268}),'children':l[_0x9f1b47(0x16a)](_0x9f1b47(0x142),{'className':g[_0x9f1b47(0x18a)](_0x9f1b47(0x1e6),{'univer-cursor-not-allowed':_0x4c3270===h[_0x9f1b47(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3270!==h[_0x9f1b47(0x1d6)]}),'type':_0x9f1b47(0x142),'children':l[_0x9f1b47(0x16a)](P,{'className':_0x9f1b47(0x1aa)})})}):null;}function K(_0x96190c){var _0x432105=_0x27ce7f;const {status:_0x1e476e,coordinator:_0x204902}=_0x96190c;switch(_0x1e476e){case h['IDLE']:return l[_0x432105(0x16a)](z,{'coordinator':_0x204902});case h['FOLLOWING']:return l[_0x432105(0x16a)](Q,{'coordinator':_0x204902});case h['NOT_FOLLOWING']:return l[_0x432105(0x16a)](X,{'coordinator':_0x204902});case h[_0x432105(0x1d6)]:return l[_0x432105(0x16a)](te,{});case h[_0x432105(0x1c7)]:return l[_0x432105(0x16a)](ee,{'coordinator':_0x204902});default:return null;}}function z(_0x383eee){var _0x4c0bdb=_0x27ce7f;const {coordinator:_0xb080b3}=_0x383eee;return l[_0x4c0bdb(0x1e2)](l['Fragment'],{'children':[l[_0x4c0bdb(0x16a)](_0x4c0bdb(0x169),{'className':_0x4c0bdb(0x1e5),'children':_0x4c0bdb(0x168)}),l['jsx'](g[_0x4c0bdb(0x1dd)],{'onClick':()=>_0xb080b3['tryStartPresenting'](),'children':_0x4c0bdb(0x144)})]});}function Q(_0x3624a8){var _0x3b713d=_0x27ce7f;const {coordinator:_0x1d0fc6}=_0x3624a8;return l[_0x3b713d(0x1e2)](l[_0x3b713d(0x184)],{'children':[l['jsx'](_0x3b713d(0x169),{'className':_0x3b713d(0x1e5),'children':_0x3b713d(0x1de)}),l[_0x3b713d(0x16a)](g[_0x3b713d(0x1dd)],{'onClick':()=>_0x1d0fc6[_0x3b713d(0x148)](),'children':_0x3b713d(0x13e)})]});}function X(_0x1bfd23){var _0x35ef94=_0x27ce7f;const {coordinator:_0xb0ed8e}=_0x1bfd23;return l['jsxs'](l[_0x35ef94(0x184)],{'children':[l[_0x35ef94(0x16a)](_0x35ef94(0x169),{'className':_0x35ef94(0x1e5),'children':_0x35ef94(0x1be)}),l[_0x35ef94(0x16a)](g[_0x35ef94(0x1dd)],{'variant':_0x35ef94(0x15b),'onClick':()=>_0xb0ed8e[_0x35ef94(0x1c0)](),'children':_0x35ef94(0x1e1)})]});}function ee(_0x5205be){var _0x20269f=_0x27ce7f;const {coordinator:_0x4230e3}=_0x5205be;return l[_0x20269f(0x1e2)](l[_0x20269f(0x184)],{'children':[l[_0x20269f(0x16a)](_0x20269f(0x169),{'className':_0x20269f(0x1e5),'children':_0x20269f(0x172)}),l[_0x20269f(0x16a)](g[_0x20269f(0x1dd)],{'variant':'default','onClick':()=>_0x4230e3[_0x20269f(0x1c6)](),'children':'Stop\x20presenting'})]});}function te(){var _0x20c59d=_0x27ce7f;return l[_0x20c59d(0x16a)](l[_0x20c59d(0x184)],{'children':_0x20c59d(0x19a)});}var ie=Object[_0x27ce7f(0x19f)],ne=(_0xd90009,_0x57d71d,_0x579ce4,_0x4be8c6)=>{for(var _0x17f739=_0x4be8c6>0x1?void 0x0:_0x4be8c6?ie(_0x57d71d,_0x579ce4):_0x57d71d,_0x24c21a=_0xd90009['length']-0x1,_0x3291e6;_0x24c21a>=0x0;_0x24c21a--)(_0x3291e6=_0xd90009[_0x24c21a])&&(_0x17f739=_0x3291e6(_0x17f739)||_0x17f739);return _0x17f739;},N=(_0x29f3f8,_0x3cc93c)=>(_0x54852a,_0x246af3)=>_0x3cc93c(_0x54852a,_0x246af3,_0x29f3f8);function _0x2ee7(){var _0x4db418=['LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','stopPresenting','PRESENTING','symbol','useDependency','onRendered','type','LiveShareController','837339AvNSTd','operations','1915016qCWoet','_collabSession','length','executeCommand','_stopFollowing','subscribe','offline','OFFLINE','toString','tag','SetWorksheetActiveOperation','_univerInstanceService','connectInjector','_handleOperation','Button','You\x27re\x20following\x20the\x20presenter','set','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Start\x20following','jsxs','params','propertyIsEnumerable','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','forEach','mergeOverrideWithDependencies','LiveShareStatus','mutations','dispose$','colorChannel1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','map','getOwnPropertySymbols','CommandType','defIds','idle','IConfigService','send','override','DesktopLiveShareController','next','tryStartPresenting','rxjs','get','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','live-share-single','concat','290540vxkHKM','LIVESHARE_TERMINATE','status$','56TPAvkE','idSuffix','values','_handleOffline','_entities','className','_handleOnline','CollaborationEvent','asObservable','defs','presenting','unitId','reverse','disposeWithMe','UniverCollaborationClientPlugin','none','_commandDisposable','registerSharedOperation','Injector','merge','not-following','1086kohTKz','NEW_CHANGESETS','current','toDisposable','_init','useState','_startLiveShareCoordinator','getInitialStates','from','_status$','onCommandExecuted','DependentOn','pluginName','Stop\x20following','IDLE','clear','icon','button','takeUntil','Start','parse','registerDependencies','Subject','stopFollowing','pipe','following','4maPyCG','createElement','_startFollowing','NOT_FOLLOWING','UniverInstanceType','find','react/jsx-runtime','useObservable','indexOf','UNIVER_UNKNOWN','apply','replace','_mountLiveShare','live-share.config','@univerjs-pro/collaboration','delete','text','react','RxDisposable','_startPresenting','onStarting','_presenter','getCurrentTypeOfUnit$','shouldShareOperation','2065EQjqGO','forwardRef','prototype','Disposable','Module','Present\x20this\x20document','div','jsx','call','Dropdown','entries','path','useRef','has','assign','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','1em','xlink:href','children','8358zDfoWm','extend','_handleNewHost','_commandService','UNIVER_LIVE_SHARE_PLUGIN','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','hasOwnProperty','_fetchOperations','event$','getMemberID','createInstance','@univerjs/ui','Fragment','106hxjGbr','_status','27lJaZRb','_sharedOperations','getLiveShareCoordinator','clsx','_handleTerminate','_stopPresenting','string','_uiPartsService','url(#$1','@univerjs-pro/collaboration-client','getUnitId','svg','4215266ZKskRF','_injector','_configService','stringify','fill','touchDependencies','useEffect','You\x27are\x20offline.','_unitID','setConfig','then','_config','getOwnPropertyDescriptor','end','LiveShare','0\x200\x2016\x2016','BuiltInUIPart','UNIVER_SHEET','HEADER_MENU','init','add','currentColor','dispose','univer-size-4','complete','attrs','SessionStatus','UniverLiveSharePlugin','CollaborationSessionService','IUIPartsService','InsertSheetMutation','_liveShareService','unsubscribe','_reporters','displayName','sessionStatus$','LiveShareCoordinator','defineProperty','toStringTag','ONLINE','LiveShareSingle','Inject','getValue','You\x27re\x20not\x20following\x20the\x20presenter','data','startFollowing','@univerjs/core','presenter','_handleNewChangeSets'];_0x2ee7=function(){return _0x4db418;};return _0x2ee7();}exports['DesktopLiveShareController']=class extends o[_0x27ce7f(0x166)]{constructor(_0x3dae27,_0x147e11){var _0x475c44=_0x27ce7f;super(),this[_0x475c44(0x194)]=_0x3dae27,this['_uiPartsService']=_0x147e11,this['_mountLiveShare']();}[_0x27ce7f(0x157)](){var _0x1259cd=_0x27ce7f;this[_0x1259cd(0x210)](this[_0x1259cd(0x18e)]['registerComponent'](p[_0x1259cd(0x1a3)][_0x1259cd(0x1a5)],()=>p[_0x1259cd(0x1db)](A,this['_injector'])));}},exports[_0x27ce7f(0x1f7)]=ne([N(0x0,o['Inject'](o[_0x27ce7f(0x215)])),N(0x1,p[_0x27ce7f(0x1b0)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0x27ce7f(0x19f)],oe=(_0x2d3187,_0x33a0ba,_0x1b7ec4)=>_0x33a0ba in _0x2d3187?re(_0x2d3187,_0x33a0ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7ec4}):_0x2d3187[_0x33a0ba]=_0x1b7ec4,ae=(_0x3285c3,_0x16c0ad,_0x3ef5d9,_0x4eec7f)=>{for(var _0x5fc715=_0x4eec7f>0x1?void 0x0:_0x4eec7f?se(_0x16c0ad,_0x3ef5d9):_0x16c0ad,_0x233a60=_0x3285c3['length']-0x1,_0x29e4a2;_0x233a60>=0x0;_0x233a60--)(_0x29e4a2=_0x3285c3[_0x233a60])&&(_0x5fc715=_0x29e4a2(_0x5fc715)||_0x5fc715);return _0x5fc715;},w=(_0x4d7643,_0x464c42)=>(_0x2cecf1,_0x214330)=>_0x464c42(_0x2cecf1,_0x214330,_0x4d7643),T=(_0xd2de8a,_0x24fd33,_0x1c0a1c)=>oe(_0xd2de8a,typeof _0x24fd33!=_0x27ce7f(0x1c8)?_0x24fd33+'':_0x24fd33,_0x1c0a1c);function _0xc178(_0x141cac,_0x57b52c){var _0x2ee758=_0x2ee7();return _0xc178=function(_0xc1789b,_0x3c7bb8){_0xc1789b=_0xc1789b-0x13e;var _0x22cb69=_0x2ee758[_0xc1789b];return _0x22cb69;},_0xc178(_0x141cac,_0x57b52c);}const le=_0x27ce7f(0x17c);exports[_0x27ce7f(0x1ae)]=class extends o['Plugin']{constructor(_0x5b06ee=L,_0x5bfe6d,_0x151674){var _0x418522=_0x27ce7f;super(),this[_0x418522(0x19e)]=_0x5b06ee,this['_injector']=_0x5bfe6d,this[_0x418522(0x195)]=_0x151674;const {..._0x1af75a}=o[_0x418522(0x216)]({},L,this[_0x418522(0x19e)]);this[_0x418522(0x195)][_0x418522(0x19c)]($,_0x1af75a);}[_0x27ce7f(0x15f)](){var _0x387aef=_0x27ce7f;o[_0x387aef(0x146)](this[_0x387aef(0x194)],o[_0x387aef(0x1e9)]([[E],[exports['LiveShareController']],[O],[exports[_0x387aef(0x1f7)]]],this['_config'][_0x387aef(0x1f6)])),o[_0x387aef(0x198)](this[_0x387aef(0x194)],[[O]]);}[_0x27ce7f(0x1ca)](){var _0x10a7d8=_0x27ce7f;o[_0x10a7d8(0x198)](this[_0x10a7d8(0x194)],[[exports[_0x10a7d8(0x1f7)]]]);}},T(exports[_0x27ce7f(0x1ae)],_0x27ce7f(0x1cb),o['UniverInstanceType'][_0x27ce7f(0x154)]),T(exports['UniverLiveSharePlugin'],_0x27ce7f(0x224),le),exports['UniverLiveSharePlugin']=ae([o[_0x27ce7f(0x223)](m[_0x27ce7f(0x211)]),w(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),w(0x2,o[_0x27ce7f(0x1f4)])],exports[_0x27ce7f(0x1ae)]),exports[_0x27ce7f(0x1a1)]=A,exports['LiveShareService']=E,exports[_0x27ce7f(0x1ea)]=h;
|
|
1
|
+
'use strict';var _0x4b1002=_0x50ba;(function(_0xb2d5f7,_0x148349){var _0x3f64b2=_0x50ba,_0x1f66ae=_0xb2d5f7();while(!![]){try{var _0x3e3940=-parseInt(_0x3f64b2(0x13e))/0x1+-parseInt(_0x3f64b2(0x16b))/0x2*(-parseInt(_0x3f64b2(0x147))/0x3)+parseInt(_0x3f64b2(0xb2))/0x4*(-parseInt(_0x3f64b2(0xd3))/0x5)+-parseInt(_0x3f64b2(0x12f))/0x6*(parseInt(_0x3f64b2(0x9f))/0x7)+-parseInt(_0x3f64b2(0x109))/0x8*(parseInt(_0x3f64b2(0x127))/0x9)+-parseInt(_0x3f64b2(0x10b))/0xa+-parseInt(_0x3f64b2(0x113))/0xb*(-parseInt(_0x3f64b2(0x16a))/0xc);if(_0x3e3940===_0x148349)break;else _0x1f66ae['push'](_0x1f66ae['shift']());}catch(_0x45cb43){_0x1f66ae['push'](_0x1f66ae['shift']());}}}(_0x24c7,0x5fa60));var U=Object['defineProperty'],F=(_0x49c8cf,_0x551bbb,_0xb36741)=>_0x551bbb in _0x49c8cf?U(_0x49c8cf,_0x551bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb36741}):_0x49c8cf[_0x551bbb]=_0xb36741,v=(_0x16191a,_0x17b476,_0x5d5688)=>F(_0x16191a,typeof _0x17b476!=_0x4b1002(0xd0)?_0x17b476+'':_0x17b476,_0x5d5688);Object['defineProperty'](exports,Symbol[_0x4b1002(0x116)],{'value':_0x4b1002(0x122)});function _0x24c7(){var _0x58083f=['has','ONLINE','rxjs','parseProtocolChangeset','Start','_status$','_startPresenting','854qSQRDD','get','assign','@univerjs-pro/collaboration','_commandDisposable','toDisposable','_entities','parse','LIVESHARE_FETCH_OPERATIONS','_unitID','substring','_mountLiveShare','useState','svg','data','live-share.config','div','add','complete','1060aSTtCr','default','IDLE','entries','_reporters','BuiltInUIPart','then','Subject','event$','indexOf','_presenter','url(#$1','defineProperty','_startLiveShareCoordinator','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','colorChannel1','unsubscribe','SetZoomRatioOperation','onRendered','_univerInstanceService','PRESENTING','Dropdown','mergeOverrideWithDependencies','setConfig','NOT_FOLLOWING','IUIPartsService','CollaborationEvent','LiveShareService','stopFollowing','registerDependencies','symbol','find','_fetchOperations','9565vTVTMs','delete','params','map','use','status$','set','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','not-following','@univerjs-pro/collaboration-client','UniverLiveSharePlugin','current','1em','_liveShareService','hasOwnProperty','pipe','idSuffix','_commandService','react','forwardRef','@univerjs/sheets-ui','LIVESHARE_REQUEST_HOST','getTypeOfUnitAdded$','DisposableCollection','idle','IConfigService','OPERATION','_collabSession','LIVESHARE_OPERATION','sessionStatus$','_handleOperation','getValue','currentColor','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_uiPartsService','attrs','useObservable','length','trim','IUniverInstanceService','connectInjector','LIVESHARE_TERMINATE','getInitialStates','live-share-single','OFFLINE','none','RxDisposable','replace','mask','offline','DesktopLiveShareController','Injector','21632gsFtXw','subscribe','2470990CRmZhX','LiveShare','path','createInstance','takeUntil','type','_stopFollowing','_init','125939HcelUa','react/jsx-runtime','jsxs','toStringTag','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','CollaborationSessionService','useEffect','ICommandService','includes','dispose$','call','fill','_handleOnline','InsertSheetMutation','Module','getLiveShareCoordinator','stringify','xlink:href','clear','936FxztMh','UniverInstanceType','concat','override','getConfig','registerSharedOperation','mutations','UNIVER_UNKNOWN','11010thGEIj','Inject','BehaviorSubject','getTypeOfUnitDisposed$','SetWorksheetActiveOperation','_stopPresenting','_sharedOperations','useRef','startFollowing','_config','next','Disposable','evenodd','string','getOwnPropertySymbols','488392zNkyOy','random','forEach','toString','LiveShareController','You\x27re\x20presenting\x20the\x20document','defs','icon','extend','130689yoptlc','You\x27are\x20offline.','_configService','getMemberID','getUnitId','FOLLOWING','reverse','univer-w-full\x20univer-mb-3\x20univer-text-sm','SessionStatus','defIds','children','useDependency','touchDependencies','0\x200\x2016\x2016','_injector','LiveShareStatus','Fragment','unitId','dispose','sheet','onCommandExecuted','tryStartPresenting','presenter','_handleNewHost','getOwnPropertyDescriptor','presenting','Button','executeCommand','Present\x20this\x20document','function','_handleTerminate','_status','_beIdle','@univerjs/core','LiveShareCoordinator','1740gweHiS','22OjfSVX','onStarting','following','className','HEADER_MENU','send','_startFollowing','tag','clsx','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','requireSession','Stop\x20following','Start\x20following','createElement','shouldShareOperation','stopPresenting','Stop\x20presenting','disposeWithMe','jsx','init'];_0x24c7=function(){return _0x58083f;};return _0x24c7();}const m=require(_0x4b1002(0xde)),o=require(_0x4b1002(0x168)),C=require('@univerjs/sheets'),D=require(_0x4b1002(0xe9)),p=require('@univerjs/ui'),l=require(_0x4b1002(0x114)),g=require('@univerjs/design'),f=require(_0x4b1002(0xe7)),_=require(_0x4b1002(0xa2)),x=require(_0x4b1002(0x9a)),b=require('rxjs/operators'),$=_0x4b1002(0xae),L={};class E extends o[_0x4b1002(0x13a)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x159915){var _0x2d0f29=_0x4b1002;return this['_sharedOperations'][_0x2d0f29(0xb0)](_0x159915),o[_0x2d0f29(0xa4)](()=>this[_0x2d0f29(0x135)][_0x2d0f29(0xd4)](_0x159915));}['registerInitialStateReporter'](_0x41dc9b){var _0x29c3bb=_0x4b1002;return this[_0x29c3bb(0xb6)][_0x29c3bb(0xb0)](_0x41dc9b),o[_0x29c3bb(0xa4)](()=>this[_0x29c3bb(0xb6)][_0x29c3bb(0xd4)](_0x41dc9b));}[_0x4b1002(0x92)](_0x53e356){var _0x3a77a6=_0x4b1002;return this[_0x3a77a6(0x135)]['has'](_0x53e356);}[_0x4b1002(0xff)](_0x4ef7a){var _0x6fb6da=_0x4b1002;return Array['from'](this[_0x6fb6da(0xb6)])[_0x6fb6da(0xd6)](_0x17702c=>_0x17702c(_0x4ef7a));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x561aa4,_0x47ed67,_0xbbf886,_0x288490)=>{var _0x5a2cfb=_0x4b1002;for(var _0x46e29d=_0x288490>0x1?void 0x0:_0x288490?H(_0x47ed67,_0xbbf886):_0x47ed67,_0x580f1e=_0x561aa4[_0x5a2cfb(0xfa)]-0x1,_0x54f43c;_0x580f1e>=0x0;_0x580f1e--)(_0x54f43c=_0x561aa4[_0x580f1e])&&(_0x46e29d=_0x54f43c(_0x46e29d)||_0x46e29d);return _0x46e29d;},k=(_0x4cc780,_0x4b89a6)=>(_0x4787d8,_0x28c680)=>_0x4b89a6(_0x4787d8,_0x28c680,_0x4cc780);let O=class extends o[_0x4b1002(0x13a)]{constructor(_0x139b40){var _0x38d6dd=_0x4b1002;super(),this[_0x38d6dd(0xe2)]=_0x139b40,this[_0x38d6dd(0x112)]();}[_0x4b1002(0x112)](){var _0x32f7a8=_0x4b1002;[D[_0x32f7a8(0xc3)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x32f7a8(0x140)](_0x3badfc=>{var _0x4b4cd4=_0x32f7a8;this['disposeWithMe'](this[_0x4b4cd4(0xe2)][_0x4b4cd4(0x12c)](_0x3badfc));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x52dd2f=_0x4b1002;return u=Object[_0x52dd2f(0xa1)]||function(_0x14dcfc){var _0x4df929=_0x52dd2f;for(var _0xed6f9c,_0x5c9137=0x1,_0xf6c599=arguments[_0x4df929(0xfa)];_0x5c9137<_0xf6c599;_0x5c9137++){_0xed6f9c=arguments[_0x5c9137];for(var _0x570ca3 in _0xed6f9c)Object['prototype']['hasOwnProperty'][_0x4df929(0x11e)](_0xed6f9c,_0x570ca3)&&(_0x14dcfc[_0x570ca3]=_0xed6f9c[_0x570ca3]);}return _0x14dcfc;},u['apply'](this,arguments);},M=function(_0xcd150c,_0x2e46dc){var _0xd1613e=_0x4b1002,_0x6f1ef3={};for(var _0x1c82d9 in _0xcd150c)Object['prototype'][_0xd1613e(0xe3)][_0xd1613e(0x11e)](_0xcd150c,_0x1c82d9)&&_0x2e46dc[_0xd1613e(0xbb)](_0x1c82d9)<0x0&&(_0x6f1ef3[_0x1c82d9]=_0xcd150c[_0x1c82d9]);if(_0xcd150c!=null&&typeof Object[_0xd1613e(0x13d)]==_0xd1613e(0x164)){for(var _0x471fb7=0x0,_0x1c82d9=Object[_0xd1613e(0x13d)](_0xcd150c);_0x471fb7<_0x1c82d9[_0xd1613e(0xfa)];_0x471fb7++)_0x2e46dc[_0xd1613e(0xbb)](_0x1c82d9[_0x471fb7])<0x0&&Object['prototype']['propertyIsEnumerable'][_0xd1613e(0x11e)](_0xcd150c,_0x1c82d9[_0x471fb7])&&(_0x6f1ef3[_0x1c82d9[_0x471fb7]]=_0xcd150c[_0x1c82d9[_0x471fb7]]);}return _0x6f1ef3;},j=f[_0x4b1002(0xe8)](function(_0x3698df,_0x55e2f6){var _0x14ca94=_0x4b1002,_0x5ac5da=_0x3698df['icon'],_0x48283b=_0x3698df['id'],_0x23c34c=_0x3698df['className'],_0x55e185=_0x3698df[_0x14ca94(0x146)],_0x3ca478=M(_0x3698df,[_0x14ca94(0x145),'id',_0x14ca94(0x16e),'extend']),_0x5ce19b=_0x14ca94(0x117)[_0x14ca94(0x129)](_0x48283b,'\x20')[_0x14ca94(0x129)](_0x23c34c||'')[_0x14ca94(0xfb)](),_0x4a9b0e=f['useRef']('_'[_0x14ca94(0x129)](G()));return y(_0x5ac5da,''[_0x14ca94(0x129)](_0x48283b),{'defIds':_0x5ac5da['defIds'],'idSuffix':_0x4a9b0e[_0x14ca94(0xe0)]},u({'ref':_0x55e2f6,'className':_0x5ce19b},_0x3ca478),_0x55e185);});function y(_0x2326b3,_0x1c60b8,_0x5c6890,_0x538a80,_0x1b3c13){var _0x203ee8=_0x4b1002;return f[_0x203ee8(0x91)](_0x2326b3[_0x203ee8(0x172)],u(u({'key':_0x1c60b8},q(_0x2326b3,_0x5c6890,_0x1b3c13)),_0x538a80),(W(_0x2326b3,_0x5c6890)[_0x203ee8(0x151)]||[])[_0x203ee8(0xd6)](function(_0x1ef5f0,_0xca366){var _0x5101cf=_0x203ee8;return y(_0x1ef5f0,''[_0x5101cf(0x129)](_0x1c60b8,'-')[_0x5101cf(0x129)](_0x2326b3['tag'],'-')[_0x5101cf(0x129)](_0xca366),_0x5c6890,void 0x0,_0x1b3c13);}));}function q(_0xffbb5f,_0x1f27dc,_0xbb86c4){var _0x4c66c2=_0x4b1002,_0x9773b9=u({},_0xffbb5f[_0x4c66c2(0xf8)]);_0xbb86c4!=null&&_0xbb86c4['colorChannel1']&&_0x9773b9[_0x4c66c2(0x11f)]==='colorChannel1'&&(_0x9773b9['fill']=_0xbb86c4[_0x4c66c2(0xc1)]),_0xffbb5f[_0x4c66c2(0x172)]===_0x4c66c2(0x105)&&_0x9773b9['id']&&(_0x9773b9['id']=_0x9773b9['id']+_0x1f27dc[_0x4c66c2(0xe5)]),Object[_0x4c66c2(0xb5)](_0x9773b9)[_0x4c66c2(0x140)](function(_0x514b11){var _0x42f136=_0x4c66c2,_0x523950=_0x514b11[0x0],_0x2795ed=_0x514b11[0x1];_0x523950===_0x42f136(0x105)&&typeof _0x2795ed==_0x42f136(0x13c)&&(_0x9773b9[_0x523950]=_0x2795ed[_0x42f136(0x104)](/url\(#(.*)\)/,_0x42f136(0xbd)[_0x42f136(0x129)](_0x1f27dc[_0x42f136(0xe5)],')')));});var _0x4864fa=_0x1f27dc['defIds'];return!_0x4864fa||_0x4864fa[_0x4c66c2(0xfa)]===0x0||(_0xffbb5f[_0x4c66c2(0x172)]===_0x4c66c2(0xd7)&&_0x9773b9['xlink:href']&&(_0x9773b9[_0x4c66c2(0x125)]=_0x9773b9[_0x4c66c2(0x125)]+_0x1f27dc[_0x4c66c2(0xe5)]),Object['entries'](_0x9773b9)[_0x4c66c2(0x140)](function(_0x328345){var _0x29cf53=_0x4c66c2,_0x307f5e=_0x328345[0x0],_0x4e5276=_0x328345[0x1];typeof _0x4e5276==_0x29cf53(0x13c)&&(_0x9773b9[_0x307f5e]=_0x4e5276[_0x29cf53(0x104)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x1f27dc['idSuffix'],')')));})),_0x9773b9;}function W(_0x5075cc,_0xcaa3b5){var _0x2e9607=_0x4b1002,_0xf76c1,_0x104c39=_0xcaa3b5[_0x2e9607(0x150)];return!_0x104c39||_0x104c39[_0x2e9607(0xfa)]===0x0?_0x5075cc:_0x5075cc[_0x2e9607(0x172)]===_0x2e9607(0x144)&&(!((_0xf76c1=_0x5075cc[_0x2e9607(0x151)])===null||_0xf76c1===void 0x0)&&_0xf76c1['length'])?u(u({},_0x5075cc),{'children':_0x5075cc[_0x2e9607(0x151)]['map'](function(_0x201f9b){var _0x4780eb=_0x2e9607;return typeof _0x201f9b['attrs']['id']==_0x4780eb(0x13c)&&_0x104c39&&_0x104c39['indexOf'](_0x201f9b[_0x4780eb(0xf8)]['id'])>-0x1?u(u({},_0x201f9b),{'attrs':u(u({},_0x201f9b[_0x4780eb(0xf8)]),{'id':_0x201f9b[_0x4780eb(0xf8)]['id']+_0xcaa3b5[_0x4780eb(0xe5)]})}):_0x201f9b;})}):_0x5075cc;}function G(){var _0x108e2e=_0x4b1002;return Math[_0x108e2e(0x13f)]()[_0x108e2e(0x141)](0x24)[_0x108e2e(0xa9)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x4b1002(0xac),'attrs':{'fill':_0x4b1002(0x102),'viewBox':_0x4b1002(0x154),'width':_0x4b1002(0xe1),'height':_0x4b1002(0xe1)},'children':[{'tag':_0x4b1002(0x10d),'attrs':{'fill':_0x4b1002(0xf5),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x4b1002(0x10d),'attrs':{'fill':'currentColor','d':_0x4b1002(0x8d),'fillRule':'evenodd','clipRule':_0x4b1002(0x13b)}}]},P=f[_0x4b1002(0xe8)](function(_0x22855c,_0x1e03ca){var _0x5ec2af=_0x4b1002;return f[_0x5ec2af(0x91)](j,Object['assign']({},_0x22855c,{'id':_0x5ec2af(0x100),'ref':_0x1e03ca,'icon':B}));});P['displayName']='LiveShareSingle';var Y=Object['getOwnPropertyDescriptor'],R=(_0x349bb8,_0x477776,_0x40eaea,_0xaea08b)=>{var _0xe55d96=_0x4b1002;for(var _0x25c3ef=_0xaea08b>0x1?void 0x0:_0xaea08b?Y(_0x477776,_0x40eaea):_0x477776,_0xaf28=_0x349bb8[_0xe55d96(0xfa)]-0x1,_0x3cbf0b;_0xaf28>=0x0;_0xaf28--)(_0x3cbf0b=_0x349bb8[_0xaf28])&&(_0x25c3ef=_0x3cbf0b(_0x25c3ef)||_0x25c3ef);return _0x25c3ef;},S=(_0x4f9050,_0x13f18d)=>(_0x270ed2,_0x530001)=>_0x13f18d(_0x270ed2,_0x530001,_0x4f9050);exports[_0x4b1002(0x142)]=class extends o[_0x4b1002(0x103)]{constructor(_0x434154,_0x5c841a,_0x36670c){var _0x4e7383=_0x4b1002;super(),v(this,'_entities',new Map()),(this[_0x4e7383(0xc5)]=_0x434154,this[_0x4e7383(0x155)]=_0x5c841a,this['_collabSessionService']=_0x36670c,this[_0x4e7383(0x112)]());}async[_0x4b1002(0x123)](_0x57490a){var _0x4957a1=_0x4b1002;return this['_entities']['has'](_0x57490a)||await this['_startLiveShareCoordinator'](_0x57490a),this[_0x4957a1(0xa5)][_0x4957a1(0xa0)](_0x57490a);}[_0x4b1002(0x112)](){var _0x4b944f=_0x4b1002;this[_0x4b944f(0xc5)][_0x4b944f(0xeb)](o[_0x4b944f(0x128)][_0x4b944f(0x118)])[_0x4b944f(0xe4)](b[_0x4b944f(0x10f)](this[_0x4b944f(0x11d)]))[_0x4b944f(0x10a)](async _0x7a561b=>{var _0x152863=_0x4b944f;const _0x226ff6=_0x7a561b[_0x152863(0x14b)]();this[_0x152863(0xa5)][_0x152863(0x98)](_0x226ff6)||this[_0x152863(0xbf)](_0x226ff6);}),this[_0x4b944f(0xc5)][_0x4b944f(0x132)](o[_0x4b944f(0x128)]['UNIVER_SHEET'])[_0x4b944f(0xe4)](b[_0x4b944f(0x10f)](this[_0x4b944f(0x11d)]))[_0x4b944f(0x10a)](_0x8a9498=>{var _0x28c879=_0x4b944f;const _0x2f7e37=_0x8a9498['getUnitId'](),_0x2074d0=this[_0x28c879(0xa5)][_0x28c879(0xa0)](_0x2f7e37);_0x2074d0==null||_0x2074d0[_0x28c879(0x159)]();});}async[_0x4b1002(0xbf)](_0x11a271){var _0x4a2bf1=_0x4b1002;const _0x5a510e=await this['_collabSessionService'][_0x4a2bf1(0x8e)](_0x11a271),_0x59026d=this[_0x4a2bf1(0x155)][_0x4a2bf1(0x10e)](exports[_0x4a2bf1(0x169)],_0x11a271,_0x5a510e);return _0x59026d[_0x4a2bf1(0x97)](),this[_0x4a2bf1(0xa5)][_0x4a2bf1(0xd9)](_0x11a271,_0x59026d),_0x59026d;}},exports[_0x4b1002(0x142)]=R([S(0x0,o[_0x4b1002(0xfc)]),S(0x1,o[_0x4b1002(0x130)](o[_0x4b1002(0x108)])),S(0x2,o['Inject'](m[_0x4b1002(0x119)]))],exports[_0x4b1002(0x142)]);var h=(_0x1d84b7=>(_0x1d84b7[_0x4b1002(0x101)]=_0x4b1002(0x106),_0x1d84b7['IDLE']=_0x4b1002(0xed),_0x1d84b7['FOLLOWING']=_0x4b1002(0x16d),_0x1d84b7[_0x4b1002(0xca)]=_0x4b1002(0xdd),_0x1d84b7[_0x4b1002(0xc6)]=_0x4b1002(0x160),_0x1d84b7))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x3885d1,_0x550a63,_0x5c3920,_0x185602,_0x429cdd){var _0x417ca2=_0x4b1002;super(),v(this,_0x417ca2(0x9d),new x[(_0x417ca2(0x131))](_0x417ca2(0xed))),v(this,_0x417ca2(0xd8),this[_0x417ca2(0x9d)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x417ca2(0xa3),null),v(this,_0x417ca2(0xbc),null),(this['_unitID']=_0x3885d1,this[_0x417ca2(0xf0)]=_0x550a63,this[_0x417ca2(0x149)]=_0x5c3920,this['_liveShareService']=_0x185602,this[_0x417ca2(0xe6)]=_0x429cdd);}get['_status'](){var _0x5e37b4=_0x4b1002;return this[_0x5e37b4(0x9d)][_0x5e37b4(0xf4)]();}[_0x4b1002(0x159)](){var _0x21baae=_0x4b1002,_0x128e71;(_0x128e71=this[_0x21baae(0xa3)])==null||_0x128e71[_0x21baae(0x159)](),this[_0x21baae(0x9d)][_0x21baae(0x139)](_0x21baae(0xed)),this[_0x21baae(0x9d)][_0x21baae(0xb1)]();}[_0x4b1002(0x97)](){var _0xe8f45a=_0x4b1002;this[_0xe8f45a(0x112)]||(this['_init']=!0x0,this[_0xe8f45a(0xf0)][_0xe8f45a(0xf2)][_0xe8f45a(0xe4)](b['takeUntil'](this[_0xe8f45a(0x11d)]))[_0xe8f45a(0x10a)](_0x3a0e47=>{var _0x22112b=_0xe8f45a;switch(_0x3a0e47){case m[_0x22112b(0x14f)][_0x22112b(0x101)]:this['_handleOffline']();break;case m[_0x22112b(0x14f)][_0x22112b(0x99)]:this[_0x22112b(0x120)]();break;}}),this[_0xe8f45a(0xf0)][_0xe8f45a(0xba)][_0xe8f45a(0xe4)](b[_0xe8f45a(0x10f)](this[_0xe8f45a(0x11d)]))[_0xe8f45a(0x10a)](_0x4b84c4=>{var _0x4ac4e5=_0xe8f45a;const {eventID:_0xfee18c}=_0x4b84c4;switch(_0xfee18c){case _['CollaborationEvent'][_0x4ac4e5(0xda)]:this[_0x4ac4e5(0x15e)](_0x4b84c4);break;case _[_0x4ac4e5(0xcc)][_0x4ac4e5(0xf1)]:this['_handleOperation'](_0x4b84c4);break;case _['CollaborationEvent'][_0x4ac4e5(0xfe)]:this[_0x4ac4e5(0x165)]();break;case _[_0x4ac4e5(0xcc)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4b84c4);break;}}));}[_0x4b1002(0x15c)](){var _0x2ffa87=_0x4b1002;this['_collabSession'][_0x2ffa87(0x170)]({'eventID':_[_0x2ffa87(0xcc)][_0x2ffa87(0xea)],'data':{'unitID':this[_0x2ffa87(0xa8)],'userID':this['_collabSession'][_0x2ffa87(0x14a)]()}},this[_0x2ffa87(0xa8)]);}[_0x4b1002(0x93)](){var _0x28cbd7=_0x4b1002;this[_0x28cbd7(0x166)]===_0x28cbd7(0x160)&&(this[_0x28cbd7(0x9d)][_0x28cbd7(0x139)](_0x28cbd7(0xed)),this[_0x28cbd7(0xf0)]['send']({'eventID':_[_0x28cbd7(0xcc)][_0x28cbd7(0xfe)],'data':{'unitID':this[_0x28cbd7(0xa8)]}},this[_0x28cbd7(0xa8)]));}[_0x4b1002(0x137)](){var _0x2466b2=_0x4b1002;this[_0x2466b2(0x166)]===_0x2466b2(0xdd)&&(this[_0x2466b2(0x9d)][_0x2466b2(0x139)](_0x2466b2(0x16d)),this[_0x2466b2(0x171)]());}['stopFollowing'](){var _0x1aee31=_0x4b1002;this['_status']===_0x1aee31(0x16d)&&this[_0x1aee31(0x111)]();}[_0x4b1002(0x15e)](_0xa22cbf){var _0x3cc8e3=_0x4b1002;const {presenter:_0x28cb47}=_0xa22cbf[_0x3cc8e3(0xad)],_0x9f8ad1=this[_0x3cc8e3(0xf0)][_0x3cc8e3(0x14a)]();this[_0x3cc8e3(0xbc)]=_0x28cb47,_0x28cb47===_0x9f8ad1?(this['_stopFollowing'](),this[_0x3cc8e3(0x9e)]()):this[_0x3cc8e3(0x166)]!==_0x3cc8e3(0xdd)&&(this[_0x3cc8e3(0x134)](),this['_startFollowing']());}[_0x4b1002(0xd2)](){var _0x5b9a55=_0x4b1002;const _0x4991be={'eventID':_['CollaborationEvent'][_0x5b9a55(0xa7)]};this['_collabSession'][_0x5b9a55(0x170)](_0x4991be,this[_0x5b9a55(0xa8)]);}[_0x4b1002(0x165)](){var _0x137e6e=_0x4b1002;this['_presenter']=null,this[_0x137e6e(0x166)]!==_0x137e6e(0x160)&&this[_0x137e6e(0x167)]();}['_handleNewChangeSets'](_0x2adca8){var _0x352d98=_0x4b1002;if(this[_0x352d98(0x166)]==='following'&&this['_presenter']===_0x2adca8[_0x352d98(0xad)]['memberID']){const _0x41abbd=_[_0x352d98(0x9b)](_0x2adca8[_0x352d98(0xad)])[_0x352d98(0x12d)][_0x352d98(0x14d)]()[_0x352d98(0xd1)](_0x3dae7a=>_0x3dae7a['id']===C[_0x352d98(0x121)]['id']);if(_0x41abbd){const _0x41f525=_0x41abbd[_0x352d98(0xd5)][_0x352d98(0x158)],_0x32f259=_0x41abbd[_0x352d98(0xd5)][_0x352d98(0x15a)]['id'];setTimeout(()=>{var _0x5f33a3=_0x352d98;this[_0x5f33a3(0xe6)][_0x5f33a3(0x162)](C[_0x5f33a3(0x133)]['id'],{'unitId':_0x41f525,'subUnitId':_0x32f259},{'fromCollab':!0x0});});}}}[_0x4b1002(0x9e)](){var _0x21a603=_0x4b1002;this['_status$']['next'](_0x21a603(0x160));const _0x332ae9=new Map(),_0x13797b=this[_0x21a603(0xa3)]=new o[(_0x21a603(0xec))]();_0x13797b[_0x21a603(0xb0)](o['toDisposable'](()=>{var _0x2ae6c8=_0x21a603;_0x332ae9['forEach'](_0x2ffb9d=>_0x2ffb9d[_0x2ae6c8(0xb1)]()),_0x332ae9[_0x2ae6c8(0x126)]();})),_0x13797b['add'](this[_0x21a603(0xe6)][_0x21a603(0x15b)](_0x574b44=>{var _0x5bb2a2=_0x21a603,_0x2c03fa;if(_0x574b44[_0x5bb2a2(0x110)]!==o['CommandType'][_0x5bb2a2(0xef)]||!this['_liveShareService'][_0x5bb2a2(0x92)](_0x574b44['id']))return;const {id:_0x18ef4b}=_0x574b44;let _0x7cdde0;_0x332ae9[_0x5bb2a2(0x98)](_0x18ef4b)?_0x7cdde0=_0x332ae9[_0x5bb2a2(0xa0)](_0x18ef4b):(_0x7cdde0=new x[(_0x5bb2a2(0xb9))](),_0x332ae9[_0x5bb2a2(0xd9)](_0x18ef4b,_0x7cdde0),_0x7cdde0[_0x5bb2a2(0xe4)](b['throttleTime']((_0x2c03fa=this[_0x5bb2a2(0x149)][_0x5bb2a2(0x12b)](Z))!=null?_0x2c03fa:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5bb2a2(0x10a)](_0x4f4d83=>{var _0x5d2942=_0x5bb2a2;this['_collabSession'][_0x5d2942(0x170)]({'eventID':_['CollaborationEvent'][_0x5d2942(0xf1)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f4d83['id']]:{'id':_0x4f4d83['id'],'params':JSON[_0x5d2942(0x124)](_0x4f4d83['params'])}}}},this['_unitID']);})),_0x7cdde0['next'](_0x574b44);})),this['_liveShareService'][_0x21a603(0xff)](this[_0x21a603(0xa8)])[_0x21a603(0x140)](_0x16282e=>this[_0x21a603(0xf0)][_0x21a603(0x170)]({'eventID':_[_0x21a603(0xcc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x21a603(0xa8)],'operations':{[_0x16282e['id']]:{'id':_0x16282e['id'],'params':JSON[_0x21a603(0x124)](_0x16282e[_0x21a603(0xd5)])}}}},this[_0x21a603(0xa8)]));}[_0x4b1002(0x134)](){var _0x103f7d=_0x4b1002,_0x3399ea;this['_status$']['next'](_0x103f7d(0xed)),(_0x3399ea=this[_0x103f7d(0xa3)])==null||_0x3399ea['dispose'](),this[_0x103f7d(0xa3)]=null;}[_0x4b1002(0x171)](){var _0x1953c8=_0x4b1002,_0x444c6a;(_0x444c6a=this['_commandDisposable'])==null||_0x444c6a[_0x1953c8(0x159)](),this[_0x1953c8(0x9d)][_0x1953c8(0x139)](_0x1953c8(0x16d));}[_0x4b1002(0x167)](){var _0x25a48f=_0x4b1002,_0x2ab682;this[_0x25a48f(0x9d)][_0x25a48f(0x139)](_0x25a48f(0xed)),(_0x2ab682=this['_commandDisposable'])==null||_0x2ab682[_0x25a48f(0x159)](),this[_0x25a48f(0xa3)]=null;}[_0x4b1002(0x111)](){var _0x31903a=_0x4b1002,_0x448816;this['_status$'][_0x31903a(0x139)]('not-following'),(_0x448816=this[_0x31903a(0xa3)])==null||_0x448816['dispose']();}[_0x4b1002(0xf3)](_0x3deabb){var _0x4aa570=_0x4b1002;if([_0x4aa570(0x160),_0x4aa570(0xdd),'offline'][_0x4aa570(0x11c)](this[_0x4aa570(0x166)])||!_0x3deabb['data'][_0x4aa570(0x15d)]||_0x3deabb['data'][_0x4aa570(0x15d)]===this['_collabSession'][_0x4aa570(0x14a)]())return;this[_0x4aa570(0x166)]===_0x4aa570(0xed)&&this[_0x4aa570(0x171)]();const _0x42694f=_0x3deabb['data']['operations'];Object['values'](_0x42694f)[_0x4aa570(0x140)](_0x39fb7c=>{var _0x3d298d=_0x4aa570;this[_0x3d298d(0xe6)][_0x3d298d(0x162)](_0x39fb7c['id'],_0x39fb7c['params']?JSON[_0x3d298d(0xa6)](_0x39fb7c['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x18ae1b=_0x4b1002,_0x35865a;this[_0x18ae1b(0x9d)][_0x18ae1b(0x139)](_0x18ae1b(0x106)),(_0x35865a=this[_0x18ae1b(0xa3)])==null||_0x35865a[_0x18ae1b(0x159)]();}['_handleOnline'](){var _0x328790=_0x4b1002;this['_status$'][_0x328790(0x139)](_0x328790(0xed)),this[_0x328790(0xd2)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x4b1002(0xee)]),S(0x3,o[_0x4b1002(0x130)](E)),S(0x4,o[_0x4b1002(0x11b)])],exports['LiveShareCoordinator']);function A(){var _0x27cecc=_0x4b1002;const _0x40dcc9=p[_0x27cecc(0x152)](exports['LiveShareController']),_0x2066c8=p['useDependency'](o[_0x27cecc(0xfc)]),_0x21b836=p[_0x27cecc(0xf9)](()=>_0x2066c8[_0x27cecc(0xdc)](o[_0x27cecc(0x128)][_0x27cecc(0x118)]),void 0x0,!0x1,[]),[_0x5338ed,_0x1fb908]=f[_0x27cecc(0xab)](null),[_0x59abdc,_0xee89fb]=f['useState'](h[_0x27cecc(0xb4)]),_0x4494c7=f[_0x27cecc(0x136)](null);return f[_0x27cecc(0x11a)](()=>(_0x21b836&&_0x40dcc9[_0x27cecc(0x123)](_0x21b836[_0x27cecc(0x14b)]())[_0x27cecc(0xb8)](_0x57cdb7=>{var _0x1c8671=_0x27cecc;_0x1fb908(_0x57cdb7),_0x4494c7[_0x1c8671(0xe0)]=_0x57cdb7['status$'][_0x1c8671(0x10a)](_0x54e904=>{_0xee89fb(_0x54e904);});}),()=>{var _0x416881=_0x27cecc,_0x59b4a3;(_0x59b4a3=_0x4494c7['current'])==null||_0x59b4a3[_0x416881(0xc2)](),_0x4494c7[_0x416881(0xe0)]=null;}),[_0x21b836,_0x40dcc9]),_0x5338ed?l[_0x27cecc(0x96)](g[_0x27cecc(0xc7)],{'align':'end','disabled':_0x59abdc===h['OFFLINE'],'className':_0x27cecc(0xc0),'overlay':l[_0x27cecc(0x96)](K,{'status':_0x59abdc,'coordinator':_0x5338ed}),'children':l[_0x27cecc(0x96)]('button',{'className':g[_0x27cecc(0x173)](_0x27cecc(0xf6),{'univer-cursor-not-allowed':_0x59abdc===h[_0x27cecc(0x101)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59abdc!==h[_0x27cecc(0x101)]}),'type':'button','children':l[_0x27cecc(0x96)](P,{'className':'univer-size-4'})})}):null;}function K(_0x562ed4){var _0x1b673d=_0x4b1002;const {status:_0x42cb99,coordinator:_0x22bfe6}=_0x562ed4;switch(_0x42cb99){case h['IDLE']:return l[_0x1b673d(0x96)](z,{'coordinator':_0x22bfe6});case h[_0x1b673d(0x14c)]:return l[_0x1b673d(0x96)](Q,{'coordinator':_0x22bfe6});case h[_0x1b673d(0xca)]:return l[_0x1b673d(0x96)](X,{'coordinator':_0x22bfe6});case h['OFFLINE']:return l[_0x1b673d(0x96)](te,{});case h['PRESENTING']:return l[_0x1b673d(0x96)](ee,{'coordinator':_0x22bfe6});default:return null;}}function z(_0x1bd431){var _0x191009=_0x4b1002;const {coordinator:_0x1fa690}=_0x1bd431;return l['jsxs'](l[_0x191009(0x157)],{'children':[l[_0x191009(0x96)](_0x191009(0xaf),{'className':_0x191009(0x14e),'children':_0x191009(0x163)}),l[_0x191009(0x96)](g[_0x191009(0x161)],{'onClick':()=>_0x1fa690[_0x191009(0x15c)](),'children':_0x191009(0x9c)})]});}function Q(_0x4ba98b){var _0x8502e3=_0x4b1002;const {coordinator:_0x40093a}=_0x4ba98b;return l['jsxs'](l[_0x8502e3(0x157)],{'children':[l['jsx'](_0x8502e3(0xaf),{'className':_0x8502e3(0x14e),'children':_0x8502e3(0xdb)}),l['jsx'](g[_0x8502e3(0x161)],{'onClick':()=>_0x40093a[_0x8502e3(0xce)](),'children':_0x8502e3(0x8f)})]});}function X(_0x3e3108){var _0x33db68=_0x4b1002;const {coordinator:_0x5b0786}=_0x3e3108;return l['jsxs'](l[_0x33db68(0x157)],{'children':[l[_0x33db68(0x96)]('div',{'className':_0x33db68(0x14e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x33db68(0x96)](g['Button'],{'variant':'text','onClick':()=>_0x5b0786[_0x33db68(0x137)](),'children':_0x33db68(0x90)})]});}function ee(_0x5e697f){var _0x327fb3=_0x4b1002;const {coordinator:_0x546e7e}=_0x5e697f;return l[_0x327fb3(0x115)](l[_0x327fb3(0x157)],{'children':[l[_0x327fb3(0x96)](_0x327fb3(0xaf),{'className':_0x327fb3(0x14e),'children':_0x327fb3(0x143)}),l[_0x327fb3(0x96)](g['Button'],{'variant':_0x327fb3(0xb3),'onClick':()=>_0x546e7e[_0x327fb3(0x93)](),'children':_0x327fb3(0x94)})]});}function te(){var _0xb29f77=_0x4b1002;return l[_0xb29f77(0x96)](l[_0xb29f77(0x157)],{'children':_0xb29f77(0x148)});}var ie=Object[_0x4b1002(0x15f)],ne=(_0x59648b,_0x58bb19,_0x222afc,_0x135206)=>{for(var _0x10ce94=_0x135206>0x1?void 0x0:_0x135206?ie(_0x58bb19,_0x222afc):_0x58bb19,_0x2f839d=_0x59648b['length']-0x1,_0x27448d;_0x2f839d>=0x0;_0x2f839d--)(_0x27448d=_0x59648b[_0x2f839d])&&(_0x10ce94=_0x27448d(_0x10ce94)||_0x10ce94);return _0x10ce94;},N=(_0x2c1de8,_0x1ecc48)=>(_0x44730a,_0x2bb819)=>_0x1ecc48(_0x44730a,_0x2bb819,_0x2c1de8);function _0x50ba(_0x8647f8,_0x2fe758){var _0x24c792=_0x24c7();return _0x50ba=function(_0x50bae5,_0x34d2a1){_0x50bae5=_0x50bae5-0x8d;var _0x5d1492=_0x24c792[_0x50bae5];return _0x5d1492;},_0x50ba(_0x8647f8,_0x2fe758);}exports[_0x4b1002(0x107)]=class extends o[_0x4b1002(0x13a)]{constructor(_0x1ec828,_0x4d7471){var _0x28ed13=_0x4b1002;super(),this[_0x28ed13(0x155)]=_0x1ec828,this[_0x28ed13(0xf7)]=_0x4d7471,this[_0x28ed13(0xaa)]();}['_mountLiveShare'](){var _0xd51269=_0x4b1002;this[_0xd51269(0x95)](this['_uiPartsService']['registerComponent'](p[_0xd51269(0xb7)][_0xd51269(0x16f)],()=>p[_0xd51269(0xfd)](A,this['_injector'])));}},exports[_0x4b1002(0x107)]=ne([N(0x0,o['Inject'](o['Injector'])),N(0x1,p[_0x4b1002(0xcb)])],exports[_0x4b1002(0x107)]);var re=Object[_0x4b1002(0xbe)],se=Object['getOwnPropertyDescriptor'],oe=(_0x402aec,_0xf65fa2,_0x229289)=>_0xf65fa2 in _0x402aec?re(_0x402aec,_0xf65fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x229289}):_0x402aec[_0xf65fa2]=_0x229289,ae=(_0x5d7b88,_0x2f77d1,_0x2dd73e,_0x54ce27)=>{var _0x194f6a=_0x4b1002;for(var _0x3dfcae=_0x54ce27>0x1?void 0x0:_0x54ce27?se(_0x2f77d1,_0x2dd73e):_0x2f77d1,_0x29c18a=_0x5d7b88[_0x194f6a(0xfa)]-0x1,_0x1c6b7d;_0x29c18a>=0x0;_0x29c18a--)(_0x1c6b7d=_0x5d7b88[_0x29c18a])&&(_0x3dfcae=_0x1c6b7d(_0x3dfcae)||_0x3dfcae);return _0x3dfcae;},w=(_0x46f8c4,_0x58c862)=>(_0x1a2e66,_0x3d97e7)=>_0x58c862(_0x1a2e66,_0x3d97e7,_0x46f8c4),T=(_0x594097,_0x258bb2,_0x9b5eee)=>oe(_0x594097,typeof _0x258bb2!=_0x4b1002(0xd0)?_0x258bb2+'':_0x258bb2,_0x9b5eee);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4b1002(0xdf)]=class extends o['Plugin']{constructor(_0x6130a0=L,_0x5998ca,_0x1b0c81){var _0x38509d=_0x4b1002;super(),this[_0x38509d(0x138)]=_0x6130a0,this['_injector']=_0x5998ca,this[_0x38509d(0x149)]=_0x1b0c81;const {..._0x94c550}=o['merge']({},L,this[_0x38509d(0x138)]);this[_0x38509d(0x149)][_0x38509d(0xc9)]($,_0x94c550);}[_0x4b1002(0x16c)](){var _0x543e7a=_0x4b1002;o[_0x543e7a(0xcf)](this[_0x543e7a(0x155)],o[_0x543e7a(0xc8)]([[E],[exports[_0x543e7a(0x142)]],[O],[exports[_0x543e7a(0x107)]]],this[_0x543e7a(0x138)][_0x543e7a(0x12a)])),o[_0x543e7a(0x153)](this[_0x543e7a(0x155)],[[O]]);}[_0x4b1002(0xc4)](){var _0x6a33fb=_0x4b1002;o['touchDependencies'](this[_0x6a33fb(0x155)],[[exports[_0x6a33fb(0x107)]]]);}},T(exports['UniverLiveSharePlugin'],_0x4b1002(0x110),o[_0x4b1002(0x128)][_0x4b1002(0x12e)]),T(exports[_0x4b1002(0xdf)],'pluginName',le),exports[_0x4b1002(0xdf)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x4b1002(0x130)](o[_0x4b1002(0x108)])),w(0x2,o[_0x4b1002(0xee)])],exports[_0x4b1002(0xdf)]),exports[_0x4b1002(0x10c)]=A,exports[_0x4b1002(0xcd)]=E,exports[_0x4b1002(0x156)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3c1b7a=_0x405b;(function(_0x507e3b,_0x29507e){var _0x29ec1c=_0x405b,_0x1e95e7=_0x507e3b();while(!![]){try{var _0xcfa8e9=-parseInt(_0x29ec1c(0x106))/0x1*(-parseInt(_0x29ec1c(0xda))/0x2)+-parseInt(_0x29ec1c(0xbf))/0x3+parseInt(_0x29ec1c(0x77))/0x4+-parseInt(_0x29ec1c(0xcb))/0x5+parseInt(_0x29ec1c(0x119))/0x6+-parseInt(_0x29ec1c(0x124))/0x7+parseInt(_0x29ec1c(0x11c))/0x8*(parseInt(_0x29ec1c(0x10e))/0x9);if(_0xcfa8e9===_0x29507e)break;else _0x1e95e7['push'](_0x1e95e7['shift']());}catch(_0x527287){_0x1e95e7['push'](_0x1e95e7['shift']());}}}(_0x126b,0x8c48b));var q=Object[_0x3c1b7a(0xea)],z=(_0x3a2f8f,_0x4da614,_0x340560)=>_0x4da614 in _0x3a2f8f?q(_0x3a2f8f,_0x4da614,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340560}):_0x3a2f8f[_0x4da614]=_0x340560,d=(_0x3d6b16,_0x41c117,_0x5c70a8)=>z(_0x3d6b16,typeof _0x41c117!=_0x3c1b7a(0x88)?_0x41c117+'':_0x41c117,_0x5c70a8);import{CollaborationSessionService as _0x3126c5,SessionStatus as _0x28aeaf,UniverCollaborationClientPlugin as _0x448550}from'@univerjs-pro/collaboration-client';import{Disposable as _0x323048,toDisposable as _0x5b6db3,Inject as _0x44d7dc,IUniverInstanceService as _0x4ee65e,Injector as _0x3982c7,IConfigService as _0x311f9d,ICommandService as _0x2b2e54,RxDisposable as _0xb35da4,UniverInstanceType as _0xf73b2e,DisposableCollection as _0xfc2a49,CommandType as _0x5c5324,DependentOn as _0x36136c,Plugin as _0xdce91a,merge as _0x36fdb2,registerDependencies as _0x54f287,mergeOverrideWithDependencies as _0x11650d,touchDependencies as _0x3c79cd}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x73c008,InsertSheetMutation as _0x1bfc00}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5710a6,SetScrollOperation as _0x1659f6}from'@univerjs/sheets-ui';import{useDependency as _0x103267,useObservable as _0x21db21,IUIPartsService as _0x5c593a,BuiltInUIPart as _0x32c72d,connectInjector as _0x1c269e}from'@univerjs/ui';import{jsx as _0x9d2327,jsxs as _0x1f971f,Fragment as _0x4453ed}from'react/jsx-runtime';import{Dropdown as _0x3cff0b,clsx as _0x3ef185,Button as _0x37beb2}from'@univerjs/design';import{forwardRef as _0x273538,useRef as _0x214092,createElement as _0x67ead4,useState as _0x4e5065,useEffect as _0x5916f3}from'react';function _0x405b(_0x948b8f,_0x18a7bf){var _0x126b1e=_0x126b();return _0x405b=function(_0x405be9,_0x4b4e36){_0x405be9=_0x405be9-0x77;var _0x1f5dc7=_0x126b1e[_0x405be9];return _0x1f5dc7;},_0x405b(_0x948b8f,_0x18a7bf);}import{CollaborationEvent as _0x375d8a,parseProtocolChangeset as _0x25f20b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xf256a4,Subject as _0x2c836c}from'rxjs';import{takeUntil as _0x1b3a20,throttleTime as _0x512dda}from'rxjs/operators';const Oe=_0x3c1b7a(0x9d),T={};class L extends _0x323048{constructor(){var _0x50050c=_0x3c1b7a;super(...arguments),d(this,_0x50050c(0x118),new Set()),d(this,_0x50050c(0xe4),new Set());}[_0x3c1b7a(0xd1)](_0x20a88a){var _0x190973=_0x3c1b7a;return this[_0x190973(0x118)]['add'](_0x20a88a),_0x5b6db3(()=>this['_sharedOperations']['delete'](_0x20a88a));}[_0x3c1b7a(0xa2)](_0x3da598){var _0x984e10=_0x3c1b7a;return this['_reporters'][_0x984e10(0xe5)](_0x3da598),_0x5b6db3(()=>this[_0x984e10(0xe4)][_0x984e10(0xdb)](_0x3da598));}[_0x3c1b7a(0xc8)](_0x1a97bb){var _0x434b79=_0x3c1b7a;return this[_0x434b79(0x118)][_0x434b79(0xe3)](_0x1a97bb);}['getInitialStates'](_0x56458e){var _0x51e784=_0x3c1b7a;return Array[_0x51e784(0x11b)](this[_0x51e784(0xe4)])['map'](_0x176112=>_0x176112(_0x56458e));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x565c1d,_0x226b53,_0x1be891,_0x37942b)=>{var _0x5d3efb=_0x3c1b7a;for(var _0x36bf11=_0x37942b>0x1?void 0x0:_0x37942b?Ee(_0x226b53,_0x1be891):_0x226b53,_0x3f1c23=_0x565c1d[_0x5d3efb(0x85)]-0x1,_0x41c134;_0x3f1c23>=0x0;_0x3f1c23--)(_0x41c134=_0x565c1d[_0x3f1c23])&&(_0x36bf11=_0x41c134(_0x36bf11)||_0x36bf11);return _0x36bf11;},Ne=(_0x5d768f,_0x1336c3)=>(_0x6ef017,_0x459c17)=>_0x1336c3(_0x6ef017,_0x459c17,_0x5d768f);let m=class extends _0x323048{constructor(_0xe3bbdb){var _0x272286=_0x3c1b7a;super(),this[_0x272286(0xa9)]=_0xe3bbdb,this[_0x272286(0x8f)]();}['_init'](){var _0x3ca3e2=_0x3c1b7a;[_0x5710a6['id'],_0x1659f6['id'],_0x73c008['id']][_0x3ca3e2(0x7d)](_0x51f62a=>{var _0x2d919e=_0x3ca3e2;this[_0x2d919e(0x113)](this[_0x2d919e(0xa9)][_0x2d919e(0xd1)](_0x51f62a));});}};m=Ce([Ne(0x0,_0x44d7dc(L))],m);var c=function(){var _0x5c7388=_0x3c1b7a;return c=Object[_0x5c7388(0xa3)]||function(_0x288a19){var _0x2e4dde=_0x5c7388;for(var _0x487893,_0x5a3b6a=0x1,_0x99c6f8=arguments[_0x2e4dde(0x85)];_0x5a3b6a<_0x99c6f8;_0x5a3b6a++){_0x487893=arguments[_0x5a3b6a];for(var _0x5472be in _0x487893)Object[_0x2e4dde(0x105)][_0x2e4dde(0xbb)][_0x2e4dde(0x120)](_0x487893,_0x5472be)&&(_0x288a19[_0x5472be]=_0x487893[_0x5472be]);}return _0x288a19;},c[_0x5c7388(0x7b)](this,arguments);},we=function(_0x324de1,_0x5ded13){var _0x16d820=_0x3c1b7a,_0x39026c={};for(var _0xf56bd2 in _0x324de1)Object['prototype'][_0x16d820(0xbb)]['call'](_0x324de1,_0xf56bd2)&&_0x5ded13[_0x16d820(0xb6)](_0xf56bd2)<0x0&&(_0x39026c[_0xf56bd2]=_0x324de1[_0xf56bd2]);if(_0x324de1!=null&&typeof Object[_0x16d820(0xca)]=='function'){for(var _0x746c95=0x0,_0xf56bd2=Object[_0x16d820(0xca)](_0x324de1);_0x746c95<_0xf56bd2[_0x16d820(0x85)];_0x746c95++)_0x5ded13[_0x16d820(0xb6)](_0xf56bd2[_0x746c95])<0x0&&Object[_0x16d820(0x105)][_0x16d820(0xef)][_0x16d820(0x120)](_0x324de1,_0xf56bd2[_0x746c95])&&(_0x39026c[_0xf56bd2[_0x746c95]]=_0x324de1[_0xf56bd2[_0x746c95]]);}return _0x39026c;},W=_0x273538(function(_0x3c05f6,_0x287a51){var _0x4b5c48=_0x3c1b7a,_0x23eac1=_0x3c05f6[_0x4b5c48(0x96)],_0x1229e0=_0x3c05f6['id'],_0x4d38a6=_0x3c05f6[_0x4b5c48(0xd2)],_0x51fc3e=_0x3c05f6[_0x4b5c48(0x126)],_0x420e66=we(_0x3c05f6,['icon','id',_0x4b5c48(0xd2),'extend']),_0x2bb639=_0x4b5c48(0x8b)[_0x4b5c48(0x127)](_0x1229e0,'\x20')[_0x4b5c48(0x127)](_0x4d38a6||'')[_0x4b5c48(0x12b)](),_0x15d859=_0x214092('_'['concat'](Le()));return Y(_0x23eac1,''[_0x4b5c48(0x127)](_0x1229e0),{'defIds':_0x23eac1[_0x4b5c48(0xf3)],'idSuffix':_0x15d859[_0x4b5c48(0x7e)]},c({'ref':_0x287a51,'className':_0x2bb639},_0x420e66),_0x51fc3e);});function Y(_0x568103,_0x1c5e61,_0x39ec64,_0x58f3e0,_0x2bb6a3){var _0xbb991e=_0x3c1b7a;return _0x67ead4(_0x568103[_0xbb991e(0xeb)],c(c({'key':_0x1c5e61},De(_0x568103,_0x39ec64,_0x2bb6a3)),_0x58f3e0),(xe(_0x568103,_0x39ec64)[_0xbb991e(0x78)]||[])[_0xbb991e(0x103)](function(_0x105a01,_0x57cb7f){var _0x1dd521=_0xbb991e;return Y(_0x105a01,''['concat'](_0x1c5e61,'-')[_0x1dd521(0x127)](_0x568103[_0x1dd521(0xeb)],'-')[_0x1dd521(0x127)](_0x57cb7f),_0x39ec64,void 0x0,_0x2bb6a3);}));}function De(_0x58a1b9,_0x32d103,_0x4ea62e){var _0x26a381=_0x3c1b7a,_0x38317c=c({},_0x58a1b9[_0x26a381(0x98)]);_0x4ea62e!=null&&_0x4ea62e['colorChannel1']&&_0x38317c['fill']===_0x26a381(0xc4)&&(_0x38317c[_0x26a381(0xcc)]=_0x4ea62e[_0x26a381(0xc4)]),_0x58a1b9[_0x26a381(0xeb)]===_0x26a381(0x114)&&_0x38317c['id']&&(_0x38317c['id']=_0x38317c['id']+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x219596){var _0x32f156=_0x26a381,_0x511607=_0x219596[0x0],_0x3103dc=_0x219596[0x1];_0x511607===_0x32f156(0x114)&&typeof _0x3103dc==_0x32f156(0xc7)&&(_0x38317c[_0x511607]=_0x3103dc['replace'](/url\(#(.*)\)/,_0x32f156(0xfa)[_0x32f156(0x127)](_0x32d103[_0x32f156(0xb9)],')')));});var _0x1ce6d4=_0x32d103[_0x26a381(0xf3)];return!_0x1ce6d4||_0x1ce6d4[_0x26a381(0x85)]===0x0||(_0x58a1b9['tag']===_0x26a381(0x11f)&&_0x38317c[_0x26a381(0x128)]&&(_0x38317c['xlink:href']=_0x38317c[_0x26a381(0x128)]+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x23c59b){var _0x50caba=_0x26a381,_0x41122d=_0x23c59b[0x0],_0x3e3f1f=_0x23c59b[0x1];typeof _0x3e3f1f=='string'&&(_0x38317c[_0x41122d]=_0x3e3f1f[_0x50caba(0xb0)](/url\(#(.*)\)/,_0x50caba(0xfa)[_0x50caba(0x127)](_0x32d103['idSuffix'],')')));})),_0x38317c;}function xe(_0x108a3b,_0x2f4dc8){var _0x4f8a3f=_0x3c1b7a,_0xa98e14,_0x2d6497=_0x2f4dc8[_0x4f8a3f(0xf3)];return!_0x2d6497||_0x2d6497['length']===0x0?_0x108a3b:_0x108a3b[_0x4f8a3f(0xeb)]===_0x4f8a3f(0xf2)&&(!((_0xa98e14=_0x108a3b[_0x4f8a3f(0x78)])===null||_0xa98e14===void 0x0)&&_0xa98e14['length'])?c(c({},_0x108a3b),{'children':_0x108a3b[_0x4f8a3f(0x78)]['map'](function(_0x29257f){var _0x46b3c5=_0x4f8a3f;return typeof _0x29257f[_0x46b3c5(0x98)]['id']==_0x46b3c5(0xc7)&&_0x2d6497&&_0x2d6497[_0x46b3c5(0xb6)](_0x29257f[_0x46b3c5(0x98)]['id'])>-0x1?c(c({},_0x29257f),{'attrs':c(c({},_0x29257f[_0x46b3c5(0x98)]),{'id':_0x29257f['attrs']['id']+_0x2f4dc8['idSuffix']})}):_0x29257f;})}):_0x108a3b;}function Le(){var _0x155c65=_0x3c1b7a;return Math[_0x155c65(0xd3)]()['toString'](0x24)[_0x155c65(0xa7)](0x2,0x8);}W[_0x3c1b7a(0x123)]=_0x3c1b7a(0xab);var ye={'tag':'svg','attrs':{'fill':_0x3c1b7a(0x12c),'viewBox':_0x3c1b7a(0xdd),'width':'1em','height':_0x3c1b7a(0x80)},'children':[{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0x8a)}},{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0xe8),'fillRule':'evenodd','clipRule':_0x3c1b7a(0x10c)}}]},B=_0x273538(function(_0x13cae0,_0x34a970){var _0x35e9f7=_0x3c1b7a;return _0x67ead4(W,Object[_0x35e9f7(0xa3)]({},_0x13cae0,{'id':'live-share-single','ref':_0x34a970,'icon':ye}));});B[_0x3c1b7a(0x123)]=_0x3c1b7a(0xb8);var Re=Object[_0x3c1b7a(0x121)],Z=(_0x159f3a,_0x365107,_0x2bd819,_0x213b70)=>{var _0x42995a=_0x3c1b7a;for(var _0x2adf07=_0x213b70>0x1?void 0x0:_0x213b70?Re(_0x365107,_0x2bd819):_0x365107,_0x3916b8=_0x159f3a[_0x42995a(0x85)]-0x1,_0x57b6e8;_0x3916b8>=0x0;_0x3916b8--)(_0x57b6e8=_0x159f3a[_0x3916b8])&&(_0x2adf07=_0x57b6e8(_0x2adf07)||_0x2adf07);return _0x2adf07;},f=(_0x35086b,_0x4e0873)=>(_0x41b786,_0x42e305)=>_0x4e0873(_0x41b786,_0x42e305,_0x35086b);let I=class extends _0xb35da4{constructor(_0x1f25fe,_0x5dd7f4,_0x7a7568){var _0x3bae88=_0x3c1b7a;super(),d(this,_0x3bae88(0xaa),new Map()),(this[_0x3bae88(0x116)]=_0x1f25fe,this[_0x3bae88(0x99)]=_0x5dd7f4,this[_0x3bae88(0xbc)]=_0x7a7568,this[_0x3bae88(0x8f)]());}async[_0x3c1b7a(0x122)](_0x33e957){var _0x4e5576=_0x3c1b7a;return this['_entities'][_0x4e5576(0xe3)](_0x33e957)||await this[_0x4e5576(0xc2)](_0x33e957),this[_0x4e5576(0xaa)][_0x4e5576(0x129)](_0x33e957);}['_init'](){var _0x2e5611=_0x3c1b7a;this[_0x2e5611(0x116)][_0x2e5611(0x11e)](_0xf73b2e['UNIVER_SHEET'])[_0x2e5611(0x100)](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](async _0x5ca17f=>{var _0x2ae5bd=_0x2e5611;const _0x17a5fd=_0x5ca17f[_0x2ae5bd(0xde)]();this[_0x2ae5bd(0xaa)][_0x2ae5bd(0xe3)](_0x17a5fd)||this[_0x2ae5bd(0xc2)](_0x17a5fd);}),this[_0x2e5611(0x116)][_0x2e5611(0x84)](_0xf73b2e[_0x2e5611(0x7c)])['pipe'](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](_0x4fe4ac=>{var _0x49732a=_0x2e5611;const _0x390bc1=_0x4fe4ac['getUnitId'](),_0x26b695=this[_0x49732a(0xaa)][_0x49732a(0x129)](_0x390bc1);_0x26b695==null||_0x26b695['dispose']();});}async[_0x3c1b7a(0xc2)](_0x102daf){var _0x3c3ccf=_0x3c1b7a;const _0x53280c=await this[_0x3c3ccf(0xbc)]['requireSession'](_0x102daf),_0x14c2bf=this[_0x3c3ccf(0x99)][_0x3c3ccf(0xe9)](w,_0x102daf,_0x53280c);return _0x14c2bf[_0x3c3ccf(0xfb)](),this['_entities'][_0x3c3ccf(0x9a)](_0x102daf,_0x14c2bf),_0x14c2bf;}};I=Z([f(0x0,_0x4ee65e),f(0x1,_0x44d7dc(_0x3982c7)),f(0x2,_0x44d7dc(_0x3126c5))],I);var h=(_0x3e212d=>(_0x3e212d[_0x3c1b7a(0xa6)]=_0x3c1b7a(0xb5),_0x3e212d[_0x3c1b7a(0x9b)]=_0x3c1b7a(0xe0),_0x3e212d['FOLLOWING']='following',_0x3e212d[_0x3c1b7a(0xc9)]=_0x3c1b7a(0xa1),_0x3e212d[_0x3c1b7a(0x93)]=_0x3c1b7a(0xb2),_0x3e212d))(h||{});const Pe=_0x3c1b7a(0x125),Ae=0xc8;let w=class extends _0xb35da4{constructor(_0x46723,_0x30c8b9,_0x15a028,_0x5e0938,_0xc27aab){var _0x1bdf47=_0x3c1b7a;super(),d(this,_0x1bdf47(0x95),new _0xf256a4('idle')),d(this,_0x1bdf47(0xff),this[_0x1bdf47(0x95)][_0x1bdf47(0xd9)]()),d(this,'_init',!0x1),d(this,_0x1bdf47(0x11a),null),d(this,'_presenter',null),(this['_unitID']=_0x46723,this[_0x1bdf47(0x83)]=_0x30c8b9,this['_configService']=_0x15a028,this[_0x1bdf47(0xa9)]=_0x5e0938,this['_commandService']=_0xc27aab);}get[_0x3c1b7a(0xd8)](){var _0x2e44c9=_0x3c1b7a;return this[_0x2e44c9(0x95)][_0x2e44c9(0x10b)]();}[_0x3c1b7a(0x92)](){var _0x571165=_0x3c1b7a,_0x2d6485;(_0x2d6485=this[_0x571165(0x11a)])==null||_0x2d6485[_0x571165(0x92)](),this[_0x571165(0x95)]['next'](_0x571165(0xe0)),this[_0x571165(0x95)][_0x571165(0xdc)]();}[_0x3c1b7a(0xfb)](){var _0x391024=_0x3c1b7a;this[_0x391024(0x8f)]||(this[_0x391024(0x8f)]=!0x0,this[_0x391024(0x83)]['sessionStatus$'][_0x391024(0x100)](_0x1b3a20(this['dispose$']))[_0x391024(0x10d)](_0x1e2ed5=>{var _0xdfa093=_0x391024;switch(_0x1e2ed5){case _0x28aeaf[_0xdfa093(0xa6)]:this['_handleOffline']();break;case _0x28aeaf['ONLINE']:this[_0xdfa093(0xa4)]();break;}}),this['_collabSession'][_0x391024(0xce)]['pipe'](_0x1b3a20(this[_0x391024(0x86)]))[_0x391024(0x10d)](_0x2b47bc=>{var _0x16f9d4=_0x391024;const {eventID:_0x5cf41f}=_0x2b47bc;switch(_0x5cf41f){case _0x375d8a[_0x16f9d4(0xe7)]:this[_0x16f9d4(0xbe)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x94)]:this[_0x16f9d4(0xd4)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x82)]:this[_0x16f9d4(0xf7)]();break;case _0x375d8a[_0x16f9d4(0xb7)]:this['_handleNewChangeSets'](_0x2b47bc);break;}}));}['tryStartPresenting'](){var _0x40007e=_0x3c1b7a;this[_0x40007e(0x83)][_0x40007e(0xfe)]({'eventID':_0x375d8a['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x40007e(0x104)],'userID':this[_0x40007e(0x83)]['getMemberID']()}},this[_0x40007e(0x104)]);}[_0x3c1b7a(0x108)](){var _0x38a618=_0x3c1b7a;this[_0x38a618(0xd8)]===_0x38a618(0xb2)&&(this['_status$'][_0x38a618(0x10f)](_0x38a618(0xe0)),this[_0x38a618(0x83)][_0x38a618(0xfe)]({'eventID':_0x375d8a[_0x38a618(0x82)],'data':{'unitID':this[_0x38a618(0x104)]}},this[_0x38a618(0x104)]));}[_0x3c1b7a(0x110)](){var _0x21e8c3=_0x3c1b7a;this['_status']===_0x21e8c3(0xa1)&&(this['_status$']['next'](_0x21e8c3(0xaf)),this['_startFollowing']());}[_0x3c1b7a(0x90)](){var _0x445a3a=_0x3c1b7a;this['_status']===_0x445a3a(0xaf)&&this[_0x445a3a(0xb4)]();}[_0x3c1b7a(0xbe)](_0x1510dd){var _0x5a4ac6=_0x3c1b7a;const {presenter:_0x114589}=_0x1510dd['data'],_0x47f194=this[_0x5a4ac6(0x83)][_0x5a4ac6(0x89)]();this[_0x5a4ac6(0x9e)]=_0x114589,_0x114589===_0x47f194?(this[_0x5a4ac6(0xb4)](),this[_0x5a4ac6(0xcf)]()):this[_0x5a4ac6(0xd8)]!==_0x5a4ac6(0xa1)&&(this[_0x5a4ac6(0xc1)](),this['_startFollowing']());}[_0x3c1b7a(0x87)](){var _0xaf0bf6=_0x3c1b7a;const _0x316e4a={'eventID':_0x375d8a['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf0bf6(0x83)][_0xaf0bf6(0xfe)](_0x316e4a,this[_0xaf0bf6(0x104)]);}['_handleTerminate'](){var _0x2a9e9d=_0x3c1b7a;this['_presenter']=null,this[_0x2a9e9d(0xd8)]!==_0x2a9e9d(0xb2)&&this[_0x2a9e9d(0x7a)]();}[_0x3c1b7a(0x107)](_0x2dfea7){var _0x208135=_0x3c1b7a;if(this[_0x208135(0xd8)]===_0x208135(0xaf)&&this[_0x208135(0x9e)]===_0x2dfea7[_0x208135(0xed)][_0x208135(0x9c)]){const _0x4ad2ec=_0x25f20b(_0x2dfea7[_0x208135(0xed)])[_0x208135(0x109)][_0x208135(0x91)]()[_0x208135(0x8d)](_0xfea2f6=>_0xfea2f6['id']===_0x1bfc00['id']);if(_0x4ad2ec){const _0xeed90e=_0x4ad2ec[_0x208135(0x9f)][_0x208135(0xb3)],_0x3d8159=_0x4ad2ec['params'][_0x208135(0xba)]['id'];setTimeout(()=>{var _0x328b77=_0x208135;this[_0x328b77(0xf0)][_0x328b77(0xc6)](_0x73c008['id'],{'unitId':_0xeed90e,'subUnitId':_0x3d8159},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x30cf7d=_0x3c1b7a;this['_status$'][_0x30cf7d(0x10f)](_0x30cf7d(0xb2));const _0x5874a8=new Map(),_0x457fb7=this[_0x30cf7d(0x11a)]=new _0xfc2a49();_0x457fb7[_0x30cf7d(0xe5)](_0x5b6db3(()=>{var _0x31d280=_0x30cf7d;_0x5874a8[_0x31d280(0x7d)](_0xabbc67=>_0xabbc67[_0x31d280(0xdc)]()),_0x5874a8[_0x31d280(0xe6)]();})),_0x457fb7[_0x30cf7d(0xe5)](this['_commandService'][_0x30cf7d(0xec)](_0x51d9c8=>{var _0x232540=_0x30cf7d,_0x13a4fc;if(_0x51d9c8[_0x232540(0x101)]!==_0x5c5324[_0x232540(0x97)]||!this[_0x232540(0xa9)]['shouldShareOperation'](_0x51d9c8['id']))return;const {id:_0x52697c}=_0x51d9c8;let _0x276ebc;_0x5874a8[_0x232540(0xe3)](_0x52697c)?_0x276ebc=_0x5874a8[_0x232540(0x129)](_0x52697c):(_0x276ebc=new _0x2c836c(),_0x5874a8[_0x232540(0x9a)](_0x52697c,_0x276ebc),_0x276ebc[_0x232540(0x100)](_0x512dda((_0x13a4fc=this[_0x232540(0x102)][_0x232540(0x11d)](Pe))!=null?_0x13a4fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x232540(0x10d)](_0x4d4aaa=>{var _0x5c76b1=_0x232540;this[_0x5c76b1(0x83)][_0x5c76b1(0xfe)]({'eventID':_0x375d8a[_0x5c76b1(0x94)],'data':{'unitID':this[_0x5c76b1(0x104)],'operations':{[_0x4d4aaa['id']]:{'id':_0x4d4aaa['id'],'params':JSON['stringify'](_0x4d4aaa[_0x5c76b1(0x9f)])}}}},this[_0x5c76b1(0x104)]);})),_0x276ebc[_0x232540(0x10f)](_0x51d9c8);})),this[_0x30cf7d(0xa9)][_0x30cf7d(0xfd)](this[_0x30cf7d(0x104)])[_0x30cf7d(0x7d)](_0x11c9ae=>this[_0x30cf7d(0x83)]['send']({'eventID':_0x375d8a[_0x30cf7d(0x94)],'data':{'unitID':this[_0x30cf7d(0x104)],'operations':{[_0x11c9ae['id']]:{'id':_0x11c9ae['id'],'params':JSON[_0x30cf7d(0xfc)](_0x11c9ae[_0x30cf7d(0x9f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5246eb=_0x3c1b7a,_0xef2396;this[_0x5246eb(0x95)]['next'](_0x5246eb(0xe0)),(_0xef2396=this[_0x5246eb(0x11a)])==null||_0xef2396[_0x5246eb(0x92)](),this[_0x5246eb(0x11a)]=null;}[_0x3c1b7a(0xc0)](){var _0x81614a=_0x3c1b7a,_0x2a3c98;(_0x2a3c98=this[_0x81614a(0x11a)])==null||_0x2a3c98[_0x81614a(0x92)](),this['_status$'][_0x81614a(0x10f)](_0x81614a(0xaf));}['_beIdle'](){var _0x221ab1=_0x3c1b7a,_0xbc21ac;this[_0x221ab1(0x95)][_0x221ab1(0x10f)](_0x221ab1(0xe0)),(_0xbc21ac=this['_commandDisposable'])==null||_0xbc21ac[_0x221ab1(0x92)](),this['_commandDisposable']=null;}[_0x3c1b7a(0xb4)](){var _0x442ab9=_0x3c1b7a,_0x4a0462;this['_status$'][_0x442ab9(0x10f)](_0x442ab9(0xa1)),(_0x4a0462=this['_commandDisposable'])==null||_0x4a0462['dispose']();}[_0x3c1b7a(0xd4)](_0x5438ab){var _0x2943cf=_0x3c1b7a;if([_0x2943cf(0xb2),_0x2943cf(0xa1),_0x2943cf(0xb5)][_0x2943cf(0xcd)](this['_status'])||!_0x5438ab['data'][_0x2943cf(0xd5)]||_0x5438ab[_0x2943cf(0xed)][_0x2943cf(0xd5)]===this[_0x2943cf(0x83)][_0x2943cf(0x89)]())return;this[_0x2943cf(0xd8)]===_0x2943cf(0xe0)&&this[_0x2943cf(0xc0)]();const _0x814d3d=_0x5438ab[_0x2943cf(0xed)]['operations'];Object[_0x2943cf(0x8c)](_0x814d3d)['forEach'](_0x42b69a=>{var _0x38f8ef=_0x2943cf;this[_0x38f8ef(0xf0)][_0x38f8ef(0xc6)](_0x42b69a['id'],_0x42b69a[_0x38f8ef(0x9f)]?JSON[_0x38f8ef(0xa0)](_0x42b69a['params']):null,{'fromCollab':!0x0});});}[_0x3c1b7a(0xe1)](){var _0x5e684e=_0x3c1b7a,_0x1539d7;this[_0x5e684e(0x95)][_0x5e684e(0x10f)](_0x5e684e(0xb5)),(_0x1539d7=this[_0x5e684e(0x11a)])==null||_0x1539d7[_0x5e684e(0x92)]();}['_handleOnline'](){var _0x56f1a5=_0x3c1b7a;this[_0x56f1a5(0x95)][_0x56f1a5(0x10f)](_0x56f1a5(0xe0)),this[_0x56f1a5(0x87)]();}};w=Z([f(0x2,_0x311f9d),f(0x3,_0x44d7dc(L)),f(0x4,_0x2b2e54)],w);function _0x126b(){var _0x382dcf=['_unitID','prototype','213319qiXXat','_handleNewChangeSets','stopPresenting','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getValue','evenodd','subscribe','139437cdfFqD','next','startFollowing','pluginName','You\x27re\x20presenting\x20the\x20document','disposeWithMe','mask','setConfig','_univerInstanceService','_config','_sharedOperations','4788144cPGehs','_commandDisposable','from','24uIzgbC','getConfig','getTypeOfUnitAdded$','use','call','getOwnPropertyDescriptor','getLiveShareCoordinator','displayName','7082075bVrmqQ','SAME_OPERATION_SHARE_INTERVAL','extend','concat','xlink:href','get','UNIVER_UNKNOWN','trim','none','3798320ZIvbAL','children','button','_beIdle','apply','UNIVER_SHEET','forEach','current','entries','1em','path','LIVESHARE_TERMINATE','_collabSession','getTypeOfUnitDisposed$','length','dispose$','_fetchOperations','symbol','getMemberID','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','univerjs-icon\x20univerjs-icon-','values','find','UNIVER_LIVE_SHARE_PLUGIN','_init','stopFollowing','reverse','dispose','PRESENTING','LIVESHARE_OPERATION','_status$','icon','OPERATION','attrs','_injector','set','IDLE','memberID','live-share.config','_presenter','params','parse','not-following','registerInitialStateReporter','assign','_handleOnline','You\x27are\x20offline.','OFFLINE','substring','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','_entities','UniverIcon','override','registerComponent','text','following','replace','end','presenting','unitId','_stopFollowing','offline','indexOf','NEW_CHANGESETS','LiveShareSingle','idSuffix','sheet','hasOwnProperty','_collabSessionService','Stop\x20following','_handleNewHost','1012845nxnNBs','_startFollowing','_stopPresenting','_startLiveShareCoordinator','default','colorChannel1','You\x27re\x20following\x20the\x20presenter','executeCommand','string','shouldShareOperation','NOT_FOLLOWING','getOwnPropertySymbols','4683675dPmXiD','fill','includes','event$','_startPresenting','_mountLiveShare','registerSharedOperation','className','random','_handleOperation','presenter','getCurrentTypeOfUnit$','univer-size-4','_status','asObservable','10sXYYhJ','delete','complete','0\x200\x2016\x2016','getUnitId','Present\x20this\x20document','idle','_handleOffline','_uiPartsService','has','_reporters','add','clear','LIVESHARE_NEW_HOST','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','createInstance','defineProperty','tag','onCommandExecuted','data','tryStartPresenting','propertyIsEnumerable','_commandService','div','defs','defIds','unsubscribe','then','currentColor','_handleTerminate','onRendered','Start\x20following','url(#$1','init','stringify','getInitialStates','send','status$','pipe','type','_configService','map'];_0x126b=function(){return _0x382dcf;};return _0x126b();}function Te(){var _0x1cb758=_0x3c1b7a;const _0x8281e4=_0x103267(I),_0x572b4b=_0x103267(_0x4ee65e),_0x37daaa=_0x21db21(()=>_0x572b4b[_0x1cb758(0xd6)](_0xf73b2e[_0x1cb758(0x7c)]),void 0x0,!0x1,[]),[_0x5a2825,_0x4912ad]=_0x4e5065(null),[_0x25fe46,_0x2b4d1e]=_0x4e5065(h[_0x1cb758(0x9b)]),_0x17cfc5=_0x214092(null);return _0x5916f3(()=>(_0x37daaa&&_0x8281e4[_0x1cb758(0x122)](_0x37daaa[_0x1cb758(0xde)]())[_0x1cb758(0xf5)](_0x17b548=>{var _0x2ddfe4=_0x1cb758;_0x4912ad(_0x17b548),_0x17cfc5['current']=_0x17b548[_0x2ddfe4(0xff)][_0x2ddfe4(0x10d)](_0x1e258f=>{_0x2b4d1e(_0x1e258f);});}),()=>{var _0x2bda45=_0x1cb758,_0x4600ed;(_0x4600ed=_0x17cfc5[_0x2bda45(0x7e)])==null||_0x4600ed[_0x2bda45(0xf4)](),_0x17cfc5[_0x2bda45(0x7e)]=null;}),[_0x37daaa,_0x8281e4]),_0x5a2825?_0x9d2327(_0x3cff0b,{'align':_0x1cb758(0xb1),'disabled':_0x25fe46===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x9d2327($e,{'status':_0x25fe46,'coordinator':_0x5a2825}),'children':_0x9d2327(_0x1cb758(0x79),{'className':_0x3ef185(_0x1cb758(0x10a),{'univer-cursor-not-allowed':_0x25fe46===h[_0x1cb758(0xa6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25fe46!==h[_0x1cb758(0xa6)]}),'type':_0x1cb758(0x79),'children':_0x9d2327(B,{'className':_0x1cb758(0xd7)})})}):null;}function $e(_0x1d8807){var _0xf97b75=_0x3c1b7a;const {status:_0x7fc47b,coordinator:_0x457378}=_0x1d8807;switch(_0x7fc47b){case h[_0xf97b75(0x9b)]:return _0x9d2327(Fe,{'coordinator':_0x457378});case h['FOLLOWING']:return _0x9d2327(He,{'coordinator':_0x457378});case h[_0xf97b75(0xc9)]:return _0x9d2327(je,{'coordinator':_0x457378});case h[_0xf97b75(0xa6)]:return _0x9d2327(Ve,{});case h[_0xf97b75(0x93)]:return _0x9d2327(Ue,{'coordinator':_0x457378});default:return null;}}function Fe(_0x49bccf){var _0x4495b8=_0x3c1b7a;const {coordinator:_0x32e716}=_0x49bccf;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4495b8(0xf1),{'className':_0x4495b8(0xa8),'children':_0x4495b8(0xdf)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x32e716[_0x4495b8(0xee)](),'children':'Start'})]});}function He(_0x4cd827){var _0x192921=_0x3c1b7a;const {coordinator:_0x151719}=_0x4cd827;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x192921(0xf1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x192921(0xc5)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x151719[_0x192921(0x90)](),'children':_0x192921(0xbd)})]});}function je(_0x161bad){var _0x1d64f6=_0x3c1b7a;const {coordinator:_0x5f2355}=_0x161bad;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327('div',{'className':_0x1d64f6(0xa8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9d2327(_0x37beb2,{'variant':_0x1d64f6(0xae),'onClick':()=>_0x5f2355[_0x1d64f6(0x110)](),'children':_0x1d64f6(0xf9)})]});}function Ue(_0x3fe174){var _0x4255c0=_0x3c1b7a;const {coordinator:_0x25a6e6}=_0x3fe174;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4255c0(0xf1),{'className':_0x4255c0(0xa8),'children':_0x4255c0(0x112)}),_0x9d2327(_0x37beb2,{'variant':_0x4255c0(0xc3),'onClick':()=>_0x25a6e6[_0x4255c0(0x108)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51cb38=_0x3c1b7a;return _0x9d2327(_0x4453ed,{'children':_0x51cb38(0xa5)});}var Me=Object[_0x3c1b7a(0x121)],ke=(_0x1b38b3,_0x504b89,_0x357ae5,_0x5c9bb6)=>{var _0x10eccb=_0x3c1b7a;for(var _0x3a9cd1=_0x5c9bb6>0x1?void 0x0:_0x5c9bb6?Me(_0x504b89,_0x357ae5):_0x504b89,_0x109b6f=_0x1b38b3[_0x10eccb(0x85)]-0x1,_0x1b2e8d;_0x109b6f>=0x0;_0x109b6f--)(_0x1b2e8d=_0x1b38b3[_0x109b6f])&&(_0x3a9cd1=_0x1b2e8d(_0x3a9cd1)||_0x3a9cd1);return _0x3a9cd1;},$=(_0x58e6a8,_0x49cbf6)=>(_0x310ae4,_0x5e2b1e)=>_0x49cbf6(_0x310ae4,_0x5e2b1e,_0x58e6a8);let b=class extends _0x323048{constructor(_0x4e5c54,_0x1735be){var _0x5ef54e=_0x3c1b7a;super(),this[_0x5ef54e(0x99)]=_0x4e5c54,this[_0x5ef54e(0xe2)]=_0x1735be,this[_0x5ef54e(0xd0)]();}[_0x3c1b7a(0xd0)](){var _0x491a87=_0x3c1b7a;this[_0x491a87(0x113)](this[_0x491a87(0xe2)][_0x491a87(0xad)](_0x32c72d['HEADER_MENU'],()=>_0x1c269e(Te,this[_0x491a87(0x99)])));}};b=ke([$(0x0,_0x44d7dc(_0x3982c7)),$(0x1,_0x5c593a)],b);var Ge=Object[_0x3c1b7a(0xea)],We=Object[_0x3c1b7a(0x121)],Ye=(_0x443266,_0xdd52b5,_0x5be062)=>_0xdd52b5 in _0x443266?Ge(_0x443266,_0xdd52b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be062}):_0x443266[_0xdd52b5]=_0x5be062,Be=(_0x1819df,_0xdf19a5,_0x19542d,_0x278520)=>{var _0x27a3ed=_0x3c1b7a;for(var _0x4e3576=_0x278520>0x1?void 0x0:_0x278520?We(_0xdf19a5,_0x19542d):_0xdf19a5,_0x46087a=_0x1819df[_0x27a3ed(0x85)]-0x1,_0x3f34c9;_0x46087a>=0x0;_0x46087a--)(_0x3f34c9=_0x1819df[_0x46087a])&&(_0x4e3576=_0x3f34c9(_0x4e3576)||_0x4e3576);return _0x4e3576;},F=(_0xbf00c6,_0x57dfc2)=>(_0x3249ea,_0x659cdc)=>_0x57dfc2(_0x3249ea,_0x659cdc,_0xbf00c6),J=(_0x62c7a8,_0x1ff566,_0x2a0d3a)=>Ye(_0x62c7a8,typeof _0x1ff566!='symbol'?_0x1ff566+'':_0x1ff566,_0x2a0d3a);const Ze=_0x3c1b7a(0x8e);let O=class extends _0xdce91a{constructor(_0x305d56=T,_0x31ddf1,_0x498150){var _0x32d467=_0x3c1b7a;super(),this['_config']=_0x305d56,this['_injector']=_0x31ddf1,this[_0x32d467(0x102)]=_0x498150;const {..._0x3f0997}=_0x36fdb2({},T,this[_0x32d467(0x117)]);this[_0x32d467(0x102)][_0x32d467(0x115)](Oe,_0x3f0997);}['onStarting'](){var _0xc23b0b=_0x3c1b7a;_0x54f287(this[_0xc23b0b(0x99)],_0x11650d([[L],[I],[m],[b]],this[_0xc23b0b(0x117)][_0xc23b0b(0xac)])),_0x3c79cd(this[_0xc23b0b(0x99)],[[m]]);}[_0x3c1b7a(0xf8)](){var _0x3c9304=_0x3c1b7a;_0x3c79cd(this[_0x3c9304(0x99)],[[b]]);}};J(O,'type',_0xf73b2e[_0x3c1b7a(0x12a)]),J(O,_0x3c1b7a(0x111),Ze),O=Be([_0x36136c(_0x448550),F(0x1,_0x44d7dc(_0x3982c7)),F(0x2,_0x311f9d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3c1b7a=_0x405b;(function(_0x507e3b,_0x29507e){var _0x29ec1c=_0x405b,_0x1e95e7=_0x507e3b();while(!![]){try{var _0xcfa8e9=-parseInt(_0x29ec1c(0x106))/0x1*(-parseInt(_0x29ec1c(0xda))/0x2)+-parseInt(_0x29ec1c(0xbf))/0x3+parseInt(_0x29ec1c(0x77))/0x4+-parseInt(_0x29ec1c(0xcb))/0x5+parseInt(_0x29ec1c(0x119))/0x6+-parseInt(_0x29ec1c(0x124))/0x7+parseInt(_0x29ec1c(0x11c))/0x8*(parseInt(_0x29ec1c(0x10e))/0x9);if(_0xcfa8e9===_0x29507e)break;else _0x1e95e7['push'](_0x1e95e7['shift']());}catch(_0x527287){_0x1e95e7['push'](_0x1e95e7['shift']());}}}(_0x126b,0x8c48b));var q=Object[_0x3c1b7a(0xea)],z=(_0x3a2f8f,_0x4da614,_0x340560)=>_0x4da614 in _0x3a2f8f?q(_0x3a2f8f,_0x4da614,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340560}):_0x3a2f8f[_0x4da614]=_0x340560,d=(_0x3d6b16,_0x41c117,_0x5c70a8)=>z(_0x3d6b16,typeof _0x41c117!=_0x3c1b7a(0x88)?_0x41c117+'':_0x41c117,_0x5c70a8);import{CollaborationSessionService as _0x3126c5,SessionStatus as _0x28aeaf,UniverCollaborationClientPlugin as _0x448550}from'@univerjs-pro/collaboration-client';import{Disposable as _0x323048,toDisposable as _0x5b6db3,Inject as _0x44d7dc,IUniverInstanceService as _0x4ee65e,Injector as _0x3982c7,IConfigService as _0x311f9d,ICommandService as _0x2b2e54,RxDisposable as _0xb35da4,UniverInstanceType as _0xf73b2e,DisposableCollection as _0xfc2a49,CommandType as _0x5c5324,DependentOn as _0x36136c,Plugin as _0xdce91a,merge as _0x36fdb2,registerDependencies as _0x54f287,mergeOverrideWithDependencies as _0x11650d,touchDependencies as _0x3c79cd}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x73c008,InsertSheetMutation as _0x1bfc00}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5710a6,SetScrollOperation as _0x1659f6}from'@univerjs/sheets-ui';import{useDependency as _0x103267,useObservable as _0x21db21,IUIPartsService as _0x5c593a,BuiltInUIPart as _0x32c72d,connectInjector as _0x1c269e}from'@univerjs/ui';import{jsx as _0x9d2327,jsxs as _0x1f971f,Fragment as _0x4453ed}from'react/jsx-runtime';import{Dropdown as _0x3cff0b,clsx as _0x3ef185,Button as _0x37beb2}from'@univerjs/design';import{forwardRef as _0x273538,useRef as _0x214092,createElement as _0x67ead4,useState as _0x4e5065,useEffect as _0x5916f3}from'react';function _0x405b(_0x948b8f,_0x18a7bf){var _0x126b1e=_0x126b();return _0x405b=function(_0x405be9,_0x4b4e36){_0x405be9=_0x405be9-0x77;var _0x1f5dc7=_0x126b1e[_0x405be9];return _0x1f5dc7;},_0x405b(_0x948b8f,_0x18a7bf);}import{CollaborationEvent as _0x375d8a,parseProtocolChangeset as _0x25f20b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xf256a4,Subject as _0x2c836c}from'rxjs';import{takeUntil as _0x1b3a20,throttleTime as _0x512dda}from'rxjs/operators';const Oe=_0x3c1b7a(0x9d),T={};class L extends _0x323048{constructor(){var _0x50050c=_0x3c1b7a;super(...arguments),d(this,_0x50050c(0x118),new Set()),d(this,_0x50050c(0xe4),new Set());}[_0x3c1b7a(0xd1)](_0x20a88a){var _0x190973=_0x3c1b7a;return this[_0x190973(0x118)]['add'](_0x20a88a),_0x5b6db3(()=>this['_sharedOperations']['delete'](_0x20a88a));}[_0x3c1b7a(0xa2)](_0x3da598){var _0x984e10=_0x3c1b7a;return this['_reporters'][_0x984e10(0xe5)](_0x3da598),_0x5b6db3(()=>this[_0x984e10(0xe4)][_0x984e10(0xdb)](_0x3da598));}[_0x3c1b7a(0xc8)](_0x1a97bb){var _0x434b79=_0x3c1b7a;return this[_0x434b79(0x118)][_0x434b79(0xe3)](_0x1a97bb);}['getInitialStates'](_0x56458e){var _0x51e784=_0x3c1b7a;return Array[_0x51e784(0x11b)](this[_0x51e784(0xe4)])['map'](_0x176112=>_0x176112(_0x56458e));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x565c1d,_0x226b53,_0x1be891,_0x37942b)=>{var _0x5d3efb=_0x3c1b7a;for(var _0x36bf11=_0x37942b>0x1?void 0x0:_0x37942b?Ee(_0x226b53,_0x1be891):_0x226b53,_0x3f1c23=_0x565c1d[_0x5d3efb(0x85)]-0x1,_0x41c134;_0x3f1c23>=0x0;_0x3f1c23--)(_0x41c134=_0x565c1d[_0x3f1c23])&&(_0x36bf11=_0x41c134(_0x36bf11)||_0x36bf11);return _0x36bf11;},Ne=(_0x5d768f,_0x1336c3)=>(_0x6ef017,_0x459c17)=>_0x1336c3(_0x6ef017,_0x459c17,_0x5d768f);let m=class extends _0x323048{constructor(_0xe3bbdb){var _0x272286=_0x3c1b7a;super(),this[_0x272286(0xa9)]=_0xe3bbdb,this[_0x272286(0x8f)]();}['_init'](){var _0x3ca3e2=_0x3c1b7a;[_0x5710a6['id'],_0x1659f6['id'],_0x73c008['id']][_0x3ca3e2(0x7d)](_0x51f62a=>{var _0x2d919e=_0x3ca3e2;this[_0x2d919e(0x113)](this[_0x2d919e(0xa9)][_0x2d919e(0xd1)](_0x51f62a));});}};m=Ce([Ne(0x0,_0x44d7dc(L))],m);var c=function(){var _0x5c7388=_0x3c1b7a;return c=Object[_0x5c7388(0xa3)]||function(_0x288a19){var _0x2e4dde=_0x5c7388;for(var _0x487893,_0x5a3b6a=0x1,_0x99c6f8=arguments[_0x2e4dde(0x85)];_0x5a3b6a<_0x99c6f8;_0x5a3b6a++){_0x487893=arguments[_0x5a3b6a];for(var _0x5472be in _0x487893)Object[_0x2e4dde(0x105)][_0x2e4dde(0xbb)][_0x2e4dde(0x120)](_0x487893,_0x5472be)&&(_0x288a19[_0x5472be]=_0x487893[_0x5472be]);}return _0x288a19;},c[_0x5c7388(0x7b)](this,arguments);},we=function(_0x324de1,_0x5ded13){var _0x16d820=_0x3c1b7a,_0x39026c={};for(var _0xf56bd2 in _0x324de1)Object['prototype'][_0x16d820(0xbb)]['call'](_0x324de1,_0xf56bd2)&&_0x5ded13[_0x16d820(0xb6)](_0xf56bd2)<0x0&&(_0x39026c[_0xf56bd2]=_0x324de1[_0xf56bd2]);if(_0x324de1!=null&&typeof Object[_0x16d820(0xca)]=='function'){for(var _0x746c95=0x0,_0xf56bd2=Object[_0x16d820(0xca)](_0x324de1);_0x746c95<_0xf56bd2[_0x16d820(0x85)];_0x746c95++)_0x5ded13[_0x16d820(0xb6)](_0xf56bd2[_0x746c95])<0x0&&Object[_0x16d820(0x105)][_0x16d820(0xef)][_0x16d820(0x120)](_0x324de1,_0xf56bd2[_0x746c95])&&(_0x39026c[_0xf56bd2[_0x746c95]]=_0x324de1[_0xf56bd2[_0x746c95]]);}return _0x39026c;},W=_0x273538(function(_0x3c05f6,_0x287a51){var _0x4b5c48=_0x3c1b7a,_0x23eac1=_0x3c05f6[_0x4b5c48(0x96)],_0x1229e0=_0x3c05f6['id'],_0x4d38a6=_0x3c05f6[_0x4b5c48(0xd2)],_0x51fc3e=_0x3c05f6[_0x4b5c48(0x126)],_0x420e66=we(_0x3c05f6,['icon','id',_0x4b5c48(0xd2),'extend']),_0x2bb639=_0x4b5c48(0x8b)[_0x4b5c48(0x127)](_0x1229e0,'\x20')[_0x4b5c48(0x127)](_0x4d38a6||'')[_0x4b5c48(0x12b)](),_0x15d859=_0x214092('_'['concat'](Le()));return Y(_0x23eac1,''[_0x4b5c48(0x127)](_0x1229e0),{'defIds':_0x23eac1[_0x4b5c48(0xf3)],'idSuffix':_0x15d859[_0x4b5c48(0x7e)]},c({'ref':_0x287a51,'className':_0x2bb639},_0x420e66),_0x51fc3e);});function Y(_0x568103,_0x1c5e61,_0x39ec64,_0x58f3e0,_0x2bb6a3){var _0xbb991e=_0x3c1b7a;return _0x67ead4(_0x568103[_0xbb991e(0xeb)],c(c({'key':_0x1c5e61},De(_0x568103,_0x39ec64,_0x2bb6a3)),_0x58f3e0),(xe(_0x568103,_0x39ec64)[_0xbb991e(0x78)]||[])[_0xbb991e(0x103)](function(_0x105a01,_0x57cb7f){var _0x1dd521=_0xbb991e;return Y(_0x105a01,''['concat'](_0x1c5e61,'-')[_0x1dd521(0x127)](_0x568103[_0x1dd521(0xeb)],'-')[_0x1dd521(0x127)](_0x57cb7f),_0x39ec64,void 0x0,_0x2bb6a3);}));}function De(_0x58a1b9,_0x32d103,_0x4ea62e){var _0x26a381=_0x3c1b7a,_0x38317c=c({},_0x58a1b9[_0x26a381(0x98)]);_0x4ea62e!=null&&_0x4ea62e['colorChannel1']&&_0x38317c['fill']===_0x26a381(0xc4)&&(_0x38317c[_0x26a381(0xcc)]=_0x4ea62e[_0x26a381(0xc4)]),_0x58a1b9[_0x26a381(0xeb)]===_0x26a381(0x114)&&_0x38317c['id']&&(_0x38317c['id']=_0x38317c['id']+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x219596){var _0x32f156=_0x26a381,_0x511607=_0x219596[0x0],_0x3103dc=_0x219596[0x1];_0x511607===_0x32f156(0x114)&&typeof _0x3103dc==_0x32f156(0xc7)&&(_0x38317c[_0x511607]=_0x3103dc['replace'](/url\(#(.*)\)/,_0x32f156(0xfa)[_0x32f156(0x127)](_0x32d103[_0x32f156(0xb9)],')')));});var _0x1ce6d4=_0x32d103[_0x26a381(0xf3)];return!_0x1ce6d4||_0x1ce6d4[_0x26a381(0x85)]===0x0||(_0x58a1b9['tag']===_0x26a381(0x11f)&&_0x38317c[_0x26a381(0x128)]&&(_0x38317c['xlink:href']=_0x38317c[_0x26a381(0x128)]+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x23c59b){var _0x50caba=_0x26a381,_0x41122d=_0x23c59b[0x0],_0x3e3f1f=_0x23c59b[0x1];typeof _0x3e3f1f=='string'&&(_0x38317c[_0x41122d]=_0x3e3f1f[_0x50caba(0xb0)](/url\(#(.*)\)/,_0x50caba(0xfa)[_0x50caba(0x127)](_0x32d103['idSuffix'],')')));})),_0x38317c;}function xe(_0x108a3b,_0x2f4dc8){var _0x4f8a3f=_0x3c1b7a,_0xa98e14,_0x2d6497=_0x2f4dc8[_0x4f8a3f(0xf3)];return!_0x2d6497||_0x2d6497['length']===0x0?_0x108a3b:_0x108a3b[_0x4f8a3f(0xeb)]===_0x4f8a3f(0xf2)&&(!((_0xa98e14=_0x108a3b[_0x4f8a3f(0x78)])===null||_0xa98e14===void 0x0)&&_0xa98e14['length'])?c(c({},_0x108a3b),{'children':_0x108a3b[_0x4f8a3f(0x78)]['map'](function(_0x29257f){var _0x46b3c5=_0x4f8a3f;return typeof _0x29257f[_0x46b3c5(0x98)]['id']==_0x46b3c5(0xc7)&&_0x2d6497&&_0x2d6497[_0x46b3c5(0xb6)](_0x29257f[_0x46b3c5(0x98)]['id'])>-0x1?c(c({},_0x29257f),{'attrs':c(c({},_0x29257f[_0x46b3c5(0x98)]),{'id':_0x29257f['attrs']['id']+_0x2f4dc8['idSuffix']})}):_0x29257f;})}):_0x108a3b;}function Le(){var _0x155c65=_0x3c1b7a;return Math[_0x155c65(0xd3)]()['toString'](0x24)[_0x155c65(0xa7)](0x2,0x8);}W[_0x3c1b7a(0x123)]=_0x3c1b7a(0xab);var ye={'tag':'svg','attrs':{'fill':_0x3c1b7a(0x12c),'viewBox':_0x3c1b7a(0xdd),'width':'1em','height':_0x3c1b7a(0x80)},'children':[{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0x8a)}},{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0xe8),'fillRule':'evenodd','clipRule':_0x3c1b7a(0x10c)}}]},B=_0x273538(function(_0x13cae0,_0x34a970){var _0x35e9f7=_0x3c1b7a;return _0x67ead4(W,Object[_0x35e9f7(0xa3)]({},_0x13cae0,{'id':'live-share-single','ref':_0x34a970,'icon':ye}));});B[_0x3c1b7a(0x123)]=_0x3c1b7a(0xb8);var Re=Object[_0x3c1b7a(0x121)],Z=(_0x159f3a,_0x365107,_0x2bd819,_0x213b70)=>{var _0x42995a=_0x3c1b7a;for(var _0x2adf07=_0x213b70>0x1?void 0x0:_0x213b70?Re(_0x365107,_0x2bd819):_0x365107,_0x3916b8=_0x159f3a[_0x42995a(0x85)]-0x1,_0x57b6e8;_0x3916b8>=0x0;_0x3916b8--)(_0x57b6e8=_0x159f3a[_0x3916b8])&&(_0x2adf07=_0x57b6e8(_0x2adf07)||_0x2adf07);return _0x2adf07;},f=(_0x35086b,_0x4e0873)=>(_0x41b786,_0x42e305)=>_0x4e0873(_0x41b786,_0x42e305,_0x35086b);let I=class extends _0xb35da4{constructor(_0x1f25fe,_0x5dd7f4,_0x7a7568){var _0x3bae88=_0x3c1b7a;super(),d(this,_0x3bae88(0xaa),new Map()),(this[_0x3bae88(0x116)]=_0x1f25fe,this[_0x3bae88(0x99)]=_0x5dd7f4,this[_0x3bae88(0xbc)]=_0x7a7568,this[_0x3bae88(0x8f)]());}async[_0x3c1b7a(0x122)](_0x33e957){var _0x4e5576=_0x3c1b7a;return this['_entities'][_0x4e5576(0xe3)](_0x33e957)||await this[_0x4e5576(0xc2)](_0x33e957),this[_0x4e5576(0xaa)][_0x4e5576(0x129)](_0x33e957);}['_init'](){var _0x2e5611=_0x3c1b7a;this[_0x2e5611(0x116)][_0x2e5611(0x11e)](_0xf73b2e['UNIVER_SHEET'])[_0x2e5611(0x100)](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](async _0x5ca17f=>{var _0x2ae5bd=_0x2e5611;const _0x17a5fd=_0x5ca17f[_0x2ae5bd(0xde)]();this[_0x2ae5bd(0xaa)][_0x2ae5bd(0xe3)](_0x17a5fd)||this[_0x2ae5bd(0xc2)](_0x17a5fd);}),this[_0x2e5611(0x116)][_0x2e5611(0x84)](_0xf73b2e[_0x2e5611(0x7c)])['pipe'](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](_0x4fe4ac=>{var _0x49732a=_0x2e5611;const _0x390bc1=_0x4fe4ac['getUnitId'](),_0x26b695=this[_0x49732a(0xaa)][_0x49732a(0x129)](_0x390bc1);_0x26b695==null||_0x26b695['dispose']();});}async[_0x3c1b7a(0xc2)](_0x102daf){var _0x3c3ccf=_0x3c1b7a;const _0x53280c=await this[_0x3c3ccf(0xbc)]['requireSession'](_0x102daf),_0x14c2bf=this[_0x3c3ccf(0x99)][_0x3c3ccf(0xe9)](w,_0x102daf,_0x53280c);return _0x14c2bf[_0x3c3ccf(0xfb)](),this['_entities'][_0x3c3ccf(0x9a)](_0x102daf,_0x14c2bf),_0x14c2bf;}};I=Z([f(0x0,_0x4ee65e),f(0x1,_0x44d7dc(_0x3982c7)),f(0x2,_0x44d7dc(_0x3126c5))],I);var h=(_0x3e212d=>(_0x3e212d[_0x3c1b7a(0xa6)]=_0x3c1b7a(0xb5),_0x3e212d[_0x3c1b7a(0x9b)]=_0x3c1b7a(0xe0),_0x3e212d['FOLLOWING']='following',_0x3e212d[_0x3c1b7a(0xc9)]=_0x3c1b7a(0xa1),_0x3e212d[_0x3c1b7a(0x93)]=_0x3c1b7a(0xb2),_0x3e212d))(h||{});const Pe=_0x3c1b7a(0x125),Ae=0xc8;let w=class extends _0xb35da4{constructor(_0x46723,_0x30c8b9,_0x15a028,_0x5e0938,_0xc27aab){var _0x1bdf47=_0x3c1b7a;super(),d(this,_0x1bdf47(0x95),new _0xf256a4('idle')),d(this,_0x1bdf47(0xff),this[_0x1bdf47(0x95)][_0x1bdf47(0xd9)]()),d(this,'_init',!0x1),d(this,_0x1bdf47(0x11a),null),d(this,'_presenter',null),(this['_unitID']=_0x46723,this[_0x1bdf47(0x83)]=_0x30c8b9,this['_configService']=_0x15a028,this[_0x1bdf47(0xa9)]=_0x5e0938,this['_commandService']=_0xc27aab);}get[_0x3c1b7a(0xd8)](){var _0x2e44c9=_0x3c1b7a;return this[_0x2e44c9(0x95)][_0x2e44c9(0x10b)]();}[_0x3c1b7a(0x92)](){var _0x571165=_0x3c1b7a,_0x2d6485;(_0x2d6485=this[_0x571165(0x11a)])==null||_0x2d6485[_0x571165(0x92)](),this[_0x571165(0x95)]['next'](_0x571165(0xe0)),this[_0x571165(0x95)][_0x571165(0xdc)]();}[_0x3c1b7a(0xfb)](){var _0x391024=_0x3c1b7a;this[_0x391024(0x8f)]||(this[_0x391024(0x8f)]=!0x0,this[_0x391024(0x83)]['sessionStatus$'][_0x391024(0x100)](_0x1b3a20(this['dispose$']))[_0x391024(0x10d)](_0x1e2ed5=>{var _0xdfa093=_0x391024;switch(_0x1e2ed5){case _0x28aeaf[_0xdfa093(0xa6)]:this['_handleOffline']();break;case _0x28aeaf['ONLINE']:this[_0xdfa093(0xa4)]();break;}}),this['_collabSession'][_0x391024(0xce)]['pipe'](_0x1b3a20(this[_0x391024(0x86)]))[_0x391024(0x10d)](_0x2b47bc=>{var _0x16f9d4=_0x391024;const {eventID:_0x5cf41f}=_0x2b47bc;switch(_0x5cf41f){case _0x375d8a[_0x16f9d4(0xe7)]:this[_0x16f9d4(0xbe)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x94)]:this[_0x16f9d4(0xd4)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x82)]:this[_0x16f9d4(0xf7)]();break;case _0x375d8a[_0x16f9d4(0xb7)]:this['_handleNewChangeSets'](_0x2b47bc);break;}}));}['tryStartPresenting'](){var _0x40007e=_0x3c1b7a;this[_0x40007e(0x83)][_0x40007e(0xfe)]({'eventID':_0x375d8a['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x40007e(0x104)],'userID':this[_0x40007e(0x83)]['getMemberID']()}},this[_0x40007e(0x104)]);}[_0x3c1b7a(0x108)](){var _0x38a618=_0x3c1b7a;this[_0x38a618(0xd8)]===_0x38a618(0xb2)&&(this['_status$'][_0x38a618(0x10f)](_0x38a618(0xe0)),this[_0x38a618(0x83)][_0x38a618(0xfe)]({'eventID':_0x375d8a[_0x38a618(0x82)],'data':{'unitID':this[_0x38a618(0x104)]}},this[_0x38a618(0x104)]));}[_0x3c1b7a(0x110)](){var _0x21e8c3=_0x3c1b7a;this['_status']===_0x21e8c3(0xa1)&&(this['_status$']['next'](_0x21e8c3(0xaf)),this['_startFollowing']());}[_0x3c1b7a(0x90)](){var _0x445a3a=_0x3c1b7a;this['_status']===_0x445a3a(0xaf)&&this[_0x445a3a(0xb4)]();}[_0x3c1b7a(0xbe)](_0x1510dd){var _0x5a4ac6=_0x3c1b7a;const {presenter:_0x114589}=_0x1510dd['data'],_0x47f194=this[_0x5a4ac6(0x83)][_0x5a4ac6(0x89)]();this[_0x5a4ac6(0x9e)]=_0x114589,_0x114589===_0x47f194?(this[_0x5a4ac6(0xb4)](),this[_0x5a4ac6(0xcf)]()):this[_0x5a4ac6(0xd8)]!==_0x5a4ac6(0xa1)&&(this[_0x5a4ac6(0xc1)](),this['_startFollowing']());}[_0x3c1b7a(0x87)](){var _0xaf0bf6=_0x3c1b7a;const _0x316e4a={'eventID':_0x375d8a['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf0bf6(0x83)][_0xaf0bf6(0xfe)](_0x316e4a,this[_0xaf0bf6(0x104)]);}['_handleTerminate'](){var _0x2a9e9d=_0x3c1b7a;this['_presenter']=null,this[_0x2a9e9d(0xd8)]!==_0x2a9e9d(0xb2)&&this[_0x2a9e9d(0x7a)]();}[_0x3c1b7a(0x107)](_0x2dfea7){var _0x208135=_0x3c1b7a;if(this[_0x208135(0xd8)]===_0x208135(0xaf)&&this[_0x208135(0x9e)]===_0x2dfea7[_0x208135(0xed)][_0x208135(0x9c)]){const _0x4ad2ec=_0x25f20b(_0x2dfea7[_0x208135(0xed)])[_0x208135(0x109)][_0x208135(0x91)]()[_0x208135(0x8d)](_0xfea2f6=>_0xfea2f6['id']===_0x1bfc00['id']);if(_0x4ad2ec){const _0xeed90e=_0x4ad2ec[_0x208135(0x9f)][_0x208135(0xb3)],_0x3d8159=_0x4ad2ec['params'][_0x208135(0xba)]['id'];setTimeout(()=>{var _0x328b77=_0x208135;this[_0x328b77(0xf0)][_0x328b77(0xc6)](_0x73c008['id'],{'unitId':_0xeed90e,'subUnitId':_0x3d8159},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x30cf7d=_0x3c1b7a;this['_status$'][_0x30cf7d(0x10f)](_0x30cf7d(0xb2));const _0x5874a8=new Map(),_0x457fb7=this[_0x30cf7d(0x11a)]=new _0xfc2a49();_0x457fb7[_0x30cf7d(0xe5)](_0x5b6db3(()=>{var _0x31d280=_0x30cf7d;_0x5874a8[_0x31d280(0x7d)](_0xabbc67=>_0xabbc67[_0x31d280(0xdc)]()),_0x5874a8[_0x31d280(0xe6)]();})),_0x457fb7[_0x30cf7d(0xe5)](this['_commandService'][_0x30cf7d(0xec)](_0x51d9c8=>{var _0x232540=_0x30cf7d,_0x13a4fc;if(_0x51d9c8[_0x232540(0x101)]!==_0x5c5324[_0x232540(0x97)]||!this[_0x232540(0xa9)]['shouldShareOperation'](_0x51d9c8['id']))return;const {id:_0x52697c}=_0x51d9c8;let _0x276ebc;_0x5874a8[_0x232540(0xe3)](_0x52697c)?_0x276ebc=_0x5874a8[_0x232540(0x129)](_0x52697c):(_0x276ebc=new _0x2c836c(),_0x5874a8[_0x232540(0x9a)](_0x52697c,_0x276ebc),_0x276ebc[_0x232540(0x100)](_0x512dda((_0x13a4fc=this[_0x232540(0x102)][_0x232540(0x11d)](Pe))!=null?_0x13a4fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x232540(0x10d)](_0x4d4aaa=>{var _0x5c76b1=_0x232540;this[_0x5c76b1(0x83)][_0x5c76b1(0xfe)]({'eventID':_0x375d8a[_0x5c76b1(0x94)],'data':{'unitID':this[_0x5c76b1(0x104)],'operations':{[_0x4d4aaa['id']]:{'id':_0x4d4aaa['id'],'params':JSON['stringify'](_0x4d4aaa[_0x5c76b1(0x9f)])}}}},this[_0x5c76b1(0x104)]);})),_0x276ebc[_0x232540(0x10f)](_0x51d9c8);})),this[_0x30cf7d(0xa9)][_0x30cf7d(0xfd)](this[_0x30cf7d(0x104)])[_0x30cf7d(0x7d)](_0x11c9ae=>this[_0x30cf7d(0x83)]['send']({'eventID':_0x375d8a[_0x30cf7d(0x94)],'data':{'unitID':this[_0x30cf7d(0x104)],'operations':{[_0x11c9ae['id']]:{'id':_0x11c9ae['id'],'params':JSON[_0x30cf7d(0xfc)](_0x11c9ae[_0x30cf7d(0x9f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5246eb=_0x3c1b7a,_0xef2396;this[_0x5246eb(0x95)]['next'](_0x5246eb(0xe0)),(_0xef2396=this[_0x5246eb(0x11a)])==null||_0xef2396[_0x5246eb(0x92)](),this[_0x5246eb(0x11a)]=null;}[_0x3c1b7a(0xc0)](){var _0x81614a=_0x3c1b7a,_0x2a3c98;(_0x2a3c98=this[_0x81614a(0x11a)])==null||_0x2a3c98[_0x81614a(0x92)](),this['_status$'][_0x81614a(0x10f)](_0x81614a(0xaf));}['_beIdle'](){var _0x221ab1=_0x3c1b7a,_0xbc21ac;this[_0x221ab1(0x95)][_0x221ab1(0x10f)](_0x221ab1(0xe0)),(_0xbc21ac=this['_commandDisposable'])==null||_0xbc21ac[_0x221ab1(0x92)](),this['_commandDisposable']=null;}[_0x3c1b7a(0xb4)](){var _0x442ab9=_0x3c1b7a,_0x4a0462;this['_status$'][_0x442ab9(0x10f)](_0x442ab9(0xa1)),(_0x4a0462=this['_commandDisposable'])==null||_0x4a0462['dispose']();}[_0x3c1b7a(0xd4)](_0x5438ab){var _0x2943cf=_0x3c1b7a;if([_0x2943cf(0xb2),_0x2943cf(0xa1),_0x2943cf(0xb5)][_0x2943cf(0xcd)](this['_status'])||!_0x5438ab['data'][_0x2943cf(0xd5)]||_0x5438ab[_0x2943cf(0xed)][_0x2943cf(0xd5)]===this[_0x2943cf(0x83)][_0x2943cf(0x89)]())return;this[_0x2943cf(0xd8)]===_0x2943cf(0xe0)&&this[_0x2943cf(0xc0)]();const _0x814d3d=_0x5438ab[_0x2943cf(0xed)]['operations'];Object[_0x2943cf(0x8c)](_0x814d3d)['forEach'](_0x42b69a=>{var _0x38f8ef=_0x2943cf;this[_0x38f8ef(0xf0)][_0x38f8ef(0xc6)](_0x42b69a['id'],_0x42b69a[_0x38f8ef(0x9f)]?JSON[_0x38f8ef(0xa0)](_0x42b69a['params']):null,{'fromCollab':!0x0});});}[_0x3c1b7a(0xe1)](){var _0x5e684e=_0x3c1b7a,_0x1539d7;this[_0x5e684e(0x95)][_0x5e684e(0x10f)](_0x5e684e(0xb5)),(_0x1539d7=this[_0x5e684e(0x11a)])==null||_0x1539d7[_0x5e684e(0x92)]();}['_handleOnline'](){var _0x56f1a5=_0x3c1b7a;this[_0x56f1a5(0x95)][_0x56f1a5(0x10f)](_0x56f1a5(0xe0)),this[_0x56f1a5(0x87)]();}};w=Z([f(0x2,_0x311f9d),f(0x3,_0x44d7dc(L)),f(0x4,_0x2b2e54)],w);function _0x126b(){var _0x382dcf=['_unitID','prototype','213319qiXXat','_handleNewChangeSets','stopPresenting','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getValue','evenodd','subscribe','139437cdfFqD','next','startFollowing','pluginName','You\x27re\x20presenting\x20the\x20document','disposeWithMe','mask','setConfig','_univerInstanceService','_config','_sharedOperations','4788144cPGehs','_commandDisposable','from','24uIzgbC','getConfig','getTypeOfUnitAdded$','use','call','getOwnPropertyDescriptor','getLiveShareCoordinator','displayName','7082075bVrmqQ','SAME_OPERATION_SHARE_INTERVAL','extend','concat','xlink:href','get','UNIVER_UNKNOWN','trim','none','3798320ZIvbAL','children','button','_beIdle','apply','UNIVER_SHEET','forEach','current','entries','1em','path','LIVESHARE_TERMINATE','_collabSession','getTypeOfUnitDisposed$','length','dispose$','_fetchOperations','symbol','getMemberID','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','univerjs-icon\x20univerjs-icon-','values','find','UNIVER_LIVE_SHARE_PLUGIN','_init','stopFollowing','reverse','dispose','PRESENTING','LIVESHARE_OPERATION','_status$','icon','OPERATION','attrs','_injector','set','IDLE','memberID','live-share.config','_presenter','params','parse','not-following','registerInitialStateReporter','assign','_handleOnline','You\x27are\x20offline.','OFFLINE','substring','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','_entities','UniverIcon','override','registerComponent','text','following','replace','end','presenting','unitId','_stopFollowing','offline','indexOf','NEW_CHANGESETS','LiveShareSingle','idSuffix','sheet','hasOwnProperty','_collabSessionService','Stop\x20following','_handleNewHost','1012845nxnNBs','_startFollowing','_stopPresenting','_startLiveShareCoordinator','default','colorChannel1','You\x27re\x20following\x20the\x20presenter','executeCommand','string','shouldShareOperation','NOT_FOLLOWING','getOwnPropertySymbols','4683675dPmXiD','fill','includes','event$','_startPresenting','_mountLiveShare','registerSharedOperation','className','random','_handleOperation','presenter','getCurrentTypeOfUnit$','univer-size-4','_status','asObservable','10sXYYhJ','delete','complete','0\x200\x2016\x2016','getUnitId','Present\x20this\x20document','idle','_handleOffline','_uiPartsService','has','_reporters','add','clear','LIVESHARE_NEW_HOST','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','createInstance','defineProperty','tag','onCommandExecuted','data','tryStartPresenting','propertyIsEnumerable','_commandService','div','defs','defIds','unsubscribe','then','currentColor','_handleTerminate','onRendered','Start\x20following','url(#$1','init','stringify','getInitialStates','send','status$','pipe','type','_configService','map'];_0x126b=function(){return _0x382dcf;};return _0x126b();}function Te(){var _0x1cb758=_0x3c1b7a;const _0x8281e4=_0x103267(I),_0x572b4b=_0x103267(_0x4ee65e),_0x37daaa=_0x21db21(()=>_0x572b4b[_0x1cb758(0xd6)](_0xf73b2e[_0x1cb758(0x7c)]),void 0x0,!0x1,[]),[_0x5a2825,_0x4912ad]=_0x4e5065(null),[_0x25fe46,_0x2b4d1e]=_0x4e5065(h[_0x1cb758(0x9b)]),_0x17cfc5=_0x214092(null);return _0x5916f3(()=>(_0x37daaa&&_0x8281e4[_0x1cb758(0x122)](_0x37daaa[_0x1cb758(0xde)]())[_0x1cb758(0xf5)](_0x17b548=>{var _0x2ddfe4=_0x1cb758;_0x4912ad(_0x17b548),_0x17cfc5['current']=_0x17b548[_0x2ddfe4(0xff)][_0x2ddfe4(0x10d)](_0x1e258f=>{_0x2b4d1e(_0x1e258f);});}),()=>{var _0x2bda45=_0x1cb758,_0x4600ed;(_0x4600ed=_0x17cfc5[_0x2bda45(0x7e)])==null||_0x4600ed[_0x2bda45(0xf4)](),_0x17cfc5[_0x2bda45(0x7e)]=null;}),[_0x37daaa,_0x8281e4]),_0x5a2825?_0x9d2327(_0x3cff0b,{'align':_0x1cb758(0xb1),'disabled':_0x25fe46===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x9d2327($e,{'status':_0x25fe46,'coordinator':_0x5a2825}),'children':_0x9d2327(_0x1cb758(0x79),{'className':_0x3ef185(_0x1cb758(0x10a),{'univer-cursor-not-allowed':_0x25fe46===h[_0x1cb758(0xa6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25fe46!==h[_0x1cb758(0xa6)]}),'type':_0x1cb758(0x79),'children':_0x9d2327(B,{'className':_0x1cb758(0xd7)})})}):null;}function $e(_0x1d8807){var _0xf97b75=_0x3c1b7a;const {status:_0x7fc47b,coordinator:_0x457378}=_0x1d8807;switch(_0x7fc47b){case h[_0xf97b75(0x9b)]:return _0x9d2327(Fe,{'coordinator':_0x457378});case h['FOLLOWING']:return _0x9d2327(He,{'coordinator':_0x457378});case h[_0xf97b75(0xc9)]:return _0x9d2327(je,{'coordinator':_0x457378});case h[_0xf97b75(0xa6)]:return _0x9d2327(Ve,{});case h[_0xf97b75(0x93)]:return _0x9d2327(Ue,{'coordinator':_0x457378});default:return null;}}function Fe(_0x49bccf){var _0x4495b8=_0x3c1b7a;const {coordinator:_0x32e716}=_0x49bccf;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4495b8(0xf1),{'className':_0x4495b8(0xa8),'children':_0x4495b8(0xdf)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x32e716[_0x4495b8(0xee)](),'children':'Start'})]});}function He(_0x4cd827){var _0x192921=_0x3c1b7a;const {coordinator:_0x151719}=_0x4cd827;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x192921(0xf1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x192921(0xc5)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x151719[_0x192921(0x90)](),'children':_0x192921(0xbd)})]});}function je(_0x161bad){var _0x1d64f6=_0x3c1b7a;const {coordinator:_0x5f2355}=_0x161bad;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327('div',{'className':_0x1d64f6(0xa8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9d2327(_0x37beb2,{'variant':_0x1d64f6(0xae),'onClick':()=>_0x5f2355[_0x1d64f6(0x110)](),'children':_0x1d64f6(0xf9)})]});}function Ue(_0x3fe174){var _0x4255c0=_0x3c1b7a;const {coordinator:_0x25a6e6}=_0x3fe174;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4255c0(0xf1),{'className':_0x4255c0(0xa8),'children':_0x4255c0(0x112)}),_0x9d2327(_0x37beb2,{'variant':_0x4255c0(0xc3),'onClick':()=>_0x25a6e6[_0x4255c0(0x108)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51cb38=_0x3c1b7a;return _0x9d2327(_0x4453ed,{'children':_0x51cb38(0xa5)});}var Me=Object[_0x3c1b7a(0x121)],ke=(_0x1b38b3,_0x504b89,_0x357ae5,_0x5c9bb6)=>{var _0x10eccb=_0x3c1b7a;for(var _0x3a9cd1=_0x5c9bb6>0x1?void 0x0:_0x5c9bb6?Me(_0x504b89,_0x357ae5):_0x504b89,_0x109b6f=_0x1b38b3[_0x10eccb(0x85)]-0x1,_0x1b2e8d;_0x109b6f>=0x0;_0x109b6f--)(_0x1b2e8d=_0x1b38b3[_0x109b6f])&&(_0x3a9cd1=_0x1b2e8d(_0x3a9cd1)||_0x3a9cd1);return _0x3a9cd1;},$=(_0x58e6a8,_0x49cbf6)=>(_0x310ae4,_0x5e2b1e)=>_0x49cbf6(_0x310ae4,_0x5e2b1e,_0x58e6a8);let b=class extends _0x323048{constructor(_0x4e5c54,_0x1735be){var _0x5ef54e=_0x3c1b7a;super(),this[_0x5ef54e(0x99)]=_0x4e5c54,this[_0x5ef54e(0xe2)]=_0x1735be,this[_0x5ef54e(0xd0)]();}[_0x3c1b7a(0xd0)](){var _0x491a87=_0x3c1b7a;this[_0x491a87(0x113)](this[_0x491a87(0xe2)][_0x491a87(0xad)](_0x32c72d['HEADER_MENU'],()=>_0x1c269e(Te,this[_0x491a87(0x99)])));}};b=ke([$(0x0,_0x44d7dc(_0x3982c7)),$(0x1,_0x5c593a)],b);var Ge=Object[_0x3c1b7a(0xea)],We=Object[_0x3c1b7a(0x121)],Ye=(_0x443266,_0xdd52b5,_0x5be062)=>_0xdd52b5 in _0x443266?Ge(_0x443266,_0xdd52b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be062}):_0x443266[_0xdd52b5]=_0x5be062,Be=(_0x1819df,_0xdf19a5,_0x19542d,_0x278520)=>{var _0x27a3ed=_0x3c1b7a;for(var _0x4e3576=_0x278520>0x1?void 0x0:_0x278520?We(_0xdf19a5,_0x19542d):_0xdf19a5,_0x46087a=_0x1819df[_0x27a3ed(0x85)]-0x1,_0x3f34c9;_0x46087a>=0x0;_0x46087a--)(_0x3f34c9=_0x1819df[_0x46087a])&&(_0x4e3576=_0x3f34c9(_0x4e3576)||_0x4e3576);return _0x4e3576;},F=(_0xbf00c6,_0x57dfc2)=>(_0x3249ea,_0x659cdc)=>_0x57dfc2(_0x3249ea,_0x659cdc,_0xbf00c6),J=(_0x62c7a8,_0x1ff566,_0x2a0d3a)=>Ye(_0x62c7a8,typeof _0x1ff566!='symbol'?_0x1ff566+'':_0x1ff566,_0x2a0d3a);const Ze=_0x3c1b7a(0x8e);let O=class extends _0xdce91a{constructor(_0x305d56=T,_0x31ddf1,_0x498150){var _0x32d467=_0x3c1b7a;super(),this['_config']=_0x305d56,this['_injector']=_0x31ddf1,this[_0x32d467(0x102)]=_0x498150;const {..._0x3f0997}=_0x36fdb2({},T,this[_0x32d467(0x117)]);this[_0x32d467(0x102)][_0x32d467(0x115)](Oe,_0x3f0997);}['onStarting'](){var _0xc23b0b=_0x3c1b7a;_0x54f287(this[_0xc23b0b(0x99)],_0x11650d([[L],[I],[m],[b]],this[_0xc23b0b(0x117)][_0xc23b0b(0xac)])),_0x3c79cd(this[_0xc23b0b(0x99)],[[m]]);}[_0x3c1b7a(0xf8)](){var _0x3c9304=_0x3c1b7a;_0x3c79cd(this[_0x3c9304(0x99)],[[b]]);}};J(O,'type',_0xf73b2e[_0x3c1b7a(0x12a)]),J(O,_0x3c1b7a(0x111),Ze),O=Be([_0x36136c(_0x448550),F(0x1,_0x44d7dc(_0x3982c7)),F(0x2,_0x311f9d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x32c2(_0x1c0c52,_0x1594e5){var _0x3dc3d9=_0x3dc3();return _0x32c2=function(_0x32c28e,_0x2311d3){_0x32c28e=_0x32c28e-0x140;var _0x5c3e2b=_0x3dc3d9[_0x32c28e];return _0x5c3e2b;},_0x32c2(_0x1c0c52,_0x1594e5);}(function(_0x521693,_0x43c2b0){var _0xa3bbbe=_0x32c2,_0x4685db=_0x521693();while(!![]){try{var _0x1c6603=parseInt(_0xa3bbbe(0x21d))/0x1*(parseInt(_0xa3bbbe(0x21a))/0x2)+parseInt(_0xa3bbbe(0x1f1))/0x3+-parseInt(_0xa3bbbe(0x1aa))/0x4+parseInt(_0xa3bbbe(0x1ef))/0x5*(parseInt(_0xa3bbbe(0x20b))/0x6)+-parseInt(_0xa3bbbe(0x22d))/0x7*(parseInt(_0xa3bbbe(0x228))/0x8)+-parseInt(_0xa3bbbe(0x146))/0x9*(-parseInt(_0xa3bbbe(0x1c6))/0xa)+-parseInt(_0xa3bbbe(0x1b5))/0xb*(-parseInt(_0xa3bbbe(0x1d9))/0xc);if(_0x1c6603===_0x43c2b0)break;else _0x4685db['push'](_0x4685db['shift']());}catch(_0x3fa684){_0x4685db['push'](_0x4685db['shift']());}}}(_0x3dc3,0x68aa0),function(_0x34f955,_0x2cc6a3){var _0x58a7ec=_0x32c2;typeof exports==_0x58a7ec(0x206)&&typeof module<'u'?_0x2cc6a3(exports,require('@univerjs-pro/collaboration-client'),require(_0x58a7ec(0x1c7)),require(_0x58a7ec(0x164)),require('@univerjs/sheets-ui'),require(_0x58a7ec(0x1bb)),require(_0x58a7ec(0x1d1)),require(_0x58a7ec(0x15a)),require(_0x58a7ec(0x168)),require(_0x58a7ec(0x1cc)),require(_0x58a7ec(0x223)),require('rxjs/operators')):typeof define==_0x58a7ec(0x172)&&define[_0x58a7ec(0x1e5)]?define(['exports',_0x58a7ec(0x14f),'@univerjs/core',_0x58a7ec(0x164),_0x58a7ec(0x1a0),'@univerjs/ui','react/jsx-runtime',_0x58a7ec(0x15a),_0x58a7ec(0x168),_0x58a7ec(0x1cc),_0x58a7ec(0x223),_0x58a7ec(0x175)],_0x2cc6a3):(_0x34f955=typeof globalThis<'u'?globalThis:_0x34f955||self,_0x2cc6a3(_0x34f955[_0x58a7ec(0x18e)]={},_0x34f955[_0x58a7ec(0x1f0)],_0x34f955[_0x58a7ec(0x185)],_0x34f955[_0x58a7ec(0x1f5)],_0x34f955[_0x58a7ec(0x1fb)],_0x34f955['UniverUi'],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x144)],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x207)],_0x34f955[_0x58a7ec(0x223)],_0x34f955[_0x58a7ec(0x223)][_0x58a7ec(0x1ee)]));}(this,function(_0x564430,_0x48eb55,_0x14dd01,_0x13ba10,_0x54dcfa,_0x4f2411,_0x251b21,_0xf99188,_0x5309d1,_0x3e3d8e,_0x1beed9,_0x5f3902){'use strict';var _0x4e1f37=_0x32c2;var _0x2b48d3=Object[_0x4e1f37(0x21e)],_0x5dcfa8=(_0x2238a9,_0x42486b,_0x3c8e7e)=>_0x42486b in _0x2238a9?_0x2b48d3(_0x2238a9,_0x42486b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8e7e}):_0x2238a9[_0x42486b]=_0x3c8e7e,_0x14886c=(_0x374e0e,_0x1df51c,_0xb6b913)=>_0x5dcfa8(_0x374e0e,typeof _0x1df51c!='symbol'?_0x1df51c+'':_0x1df51c,_0xb6b913);const _0x569104='live-share.config',_0x187a32={};class _0x4c5666 extends _0x14dd01['Disposable']{constructor(){var _0xc3b080=_0x4e1f37;super(...arguments),_0x14886c(this,_0xc3b080(0x20f),new Set()),_0x14886c(this,_0xc3b080(0x15e),new Set());}['registerSharedOperation'](_0x57396d){var _0x29e9fb=_0x4e1f37;return this[_0x29e9fb(0x20f)][_0x29e9fb(0x1b2)](_0x57396d),_0x14dd01[_0x29e9fb(0x15d)](()=>this[_0x29e9fb(0x20f)][_0x29e9fb(0x156)](_0x57396d));}[_0x4e1f37(0x22f)](_0x21c6e1){var _0x3860ce=_0x4e1f37;return this['_reporters']['add'](_0x21c6e1),_0x14dd01[_0x3860ce(0x15d)](()=>this[_0x3860ce(0x15e)]['delete'](_0x21c6e1));}[_0x4e1f37(0x20c)](_0x3a8ce3){var _0x28eea9=_0x4e1f37;return this[_0x28eea9(0x20f)]['has'](_0x3a8ce3);}['getInitialStates'](_0x349bba){var _0x55728e=_0x4e1f37;return Array[_0x55728e(0x147)](this[_0x55728e(0x15e)])[_0x55728e(0x177)](_0x274282=>_0x274282(_0x349bba));}}var _0x226517=Object['getOwnPropertyDescriptor'],_0x21eda6=(_0x53ee9,_0x530724,_0x37fbec,_0x4c9628)=>{var _0x10f40c=_0x4e1f37;for(var _0xa73bec=_0x4c9628>0x1?void 0x0:_0x4c9628?_0x226517(_0x530724,_0x37fbec):_0x530724,_0x118969=_0x53ee9[_0x10f40c(0x1bd)]-0x1,_0x56bd42;_0x118969>=0x0;_0x118969--)(_0x56bd42=_0x53ee9[_0x118969])&&(_0xa73bec=_0x56bd42(_0xa73bec)||_0xa73bec);return _0xa73bec;},_0x2873f5=(_0x442c14,_0x45e180)=>(_0xe79cbe,_0x436d17)=>_0x45e180(_0xe79cbe,_0x436d17,_0x442c14);let _0x5d75bf=class extends _0x14dd01[_0x4e1f37(0x20d)]{constructor(_0x434cba){var _0x29ad10=_0x4e1f37;super(),this[_0x29ad10(0x226)]=_0x434cba,this[_0x29ad10(0x148)]();}['_init'](){var _0x1718c2=_0x4e1f37;[_0x54dcfa[_0x1718c2(0x17c)]['id'],_0x54dcfa['SetScrollOperation']['id'],_0x13ba10[_0x1718c2(0x18a)]['id']][_0x1718c2(0x142)](_0x365239=>{var _0x4c6e1c=_0x1718c2;this[_0x4c6e1c(0x189)](this[_0x4c6e1c(0x226)]['registerSharedOperation'](_0x365239));});}};_0x5d75bf=_0x21eda6([_0x2873f5(0x0,_0x14dd01['Inject'](_0x4c5666))],_0x5d75bf);var _0x1c2aa2=function(){var _0x12f728=_0x4e1f37;return _0x1c2aa2=Object[_0x12f728(0x167)]||function(_0x33aae2){var _0x2d8a43=_0x12f728;for(var _0x279de2,_0x20c648=0x1,_0x5d0554=arguments['length'];_0x20c648<_0x5d0554;_0x20c648++){_0x279de2=arguments[_0x20c648];for(var _0x54fe8a in _0x279de2)Object[_0x2d8a43(0x180)][_0x2d8a43(0x19a)][_0x2d8a43(0x143)](_0x279de2,_0x54fe8a)&&(_0x33aae2[_0x54fe8a]=_0x279de2[_0x54fe8a]);}return _0x33aae2;},_0x1c2aa2[_0x12f728(0x201)](this,arguments);},_0x42471d=function(_0x5476f2,_0xd4c003){var _0x1c62fc=_0x4e1f37,_0x5695d9={};for(var _0x5b475c in _0x5476f2)Object['prototype'][_0x1c62fc(0x19a)][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c)&&_0xd4c003[_0x1c62fc(0x1a1)](_0x5b475c)<0x0&&(_0x5695d9[_0x5b475c]=_0x5476f2[_0x5b475c]);if(_0x5476f2!=null&&typeof Object[_0x1c62fc(0x154)]==_0x1c62fc(0x172)){for(var _0x4c311e=0x0,_0x5b475c=Object[_0x1c62fc(0x154)](_0x5476f2);_0x4c311e<_0x5b475c[_0x1c62fc(0x1bd)];_0x4c311e++)_0xd4c003['indexOf'](_0x5b475c[_0x4c311e])<0x0&&Object[_0x1c62fc(0x180)]['propertyIsEnumerable'][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c[_0x4c311e])&&(_0x5695d9[_0x5b475c[_0x4c311e]]=_0x5476f2[_0x5b475c[_0x4c311e]]);}return _0x5695d9;},_0x9df238=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x4dc286,_0x331a69){var _0x38bd71=_0x4e1f37,_0x192fcd=_0x4dc286['icon'],_0x14c72d=_0x4dc286['id'],_0x321da9=_0x4dc286['className'],_0x24867e=_0x4dc286[_0x38bd71(0x1dc)],_0x535b49=_0x42471d(_0x4dc286,[_0x38bd71(0x1b7),'id',_0x38bd71(0x1c4),_0x38bd71(0x1dc)]),_0x3e491a=_0x38bd71(0x1e3)[_0x38bd71(0x149)](_0x14c72d,'\x20')[_0x38bd71(0x149)](_0x321da9||'')[_0x38bd71(0x22e)](),_0x51c9f8=_0x5309d1['useRef']('_'[_0x38bd71(0x149)](_0x10a0f8()));return _0x5e97aa(_0x192fcd,''['concat'](_0x14c72d),{'defIds':_0x192fcd[_0x38bd71(0x1de)],'idSuffix':_0x51c9f8[_0x38bd71(0x187)]},_0x1c2aa2({'ref':_0x331a69,'className':_0x3e491a},_0x535b49),_0x24867e);});function _0x5e97aa(_0x1f393a,_0x243203,_0xbf2547,_0x85d4d2,_0x412505){var _0x4eb103=_0x4e1f37;return _0x5309d1[_0x4eb103(0x211)](_0x1f393a['tag'],_0x1c2aa2(_0x1c2aa2({'key':_0x243203},_0x130bfa(_0x1f393a,_0xbf2547,_0x412505)),_0x85d4d2),(_0x2a1752(_0x1f393a,_0xbf2547)[_0x4eb103(0x188)]||[])[_0x4eb103(0x177)](function(_0xbba0d7,_0x22817a){var _0x4a92d3=_0x4eb103;return _0x5e97aa(_0xbba0d7,''[_0x4a92d3(0x149)](_0x243203,'-')['concat'](_0x1f393a[_0x4a92d3(0x1e7)],'-')[_0x4a92d3(0x149)](_0x22817a),_0xbf2547,void 0x0,_0x412505);}));}function _0x130bfa(_0x4ba32a,_0x1aa5fc,_0x3e172a){var _0x11ae01=_0x4e1f37,_0x4461ac=_0x1c2aa2({},_0x4ba32a['attrs']);_0x3e172a!=null&&_0x3e172a['colorChannel1']&&_0x4461ac[_0x11ae01(0x165)]===_0x11ae01(0x16e)&&(_0x4461ac[_0x11ae01(0x165)]=_0x3e172a[_0x11ae01(0x16e)]),_0x4ba32a['tag']===_0x11ae01(0x19d)&&_0x4461ac['id']&&(_0x4461ac['id']=_0x4461ac['id']+_0x1aa5fc[_0x11ae01(0x1df)]),Object[_0x11ae01(0x162)](_0x4461ac)[_0x11ae01(0x142)](function(_0x11d658){var _0x299bda=_0x11ae01,_0x4d1726=_0x11d658[0x0],_0xe4365c=_0x11d658[0x1];_0x4d1726===_0x299bda(0x19d)&&typeof _0xe4365c==_0x299bda(0x1b6)&&(_0x4461ac[_0x4d1726]=_0xe4365c[_0x299bda(0x212)](/url\(#(.*)\)/,_0x299bda(0x1e8)[_0x299bda(0x149)](_0x1aa5fc[_0x299bda(0x1df)],')')));});var _0x44e3a9=_0x1aa5fc['defIds'];return!_0x44e3a9||_0x44e3a9[_0x11ae01(0x1bd)]===0x0||(_0x4ba32a[_0x11ae01(0x1e7)]===_0x11ae01(0x1c0)&&_0x4461ac['xlink:href']&&(_0x4461ac[_0x11ae01(0x1d5)]=_0x4461ac[_0x11ae01(0x1d5)]+_0x1aa5fc[_0x11ae01(0x1df)]),Object['entries'](_0x4461ac)['forEach'](function(_0x11f9ed){var _0x194de7=_0x11ae01,_0x38472d=_0x11f9ed[0x0],_0x502e1a=_0x11f9ed[0x1];typeof _0x502e1a=='string'&&(_0x4461ac[_0x38472d]=_0x502e1a[_0x194de7(0x212)](/url\(#(.*)\)/,_0x194de7(0x1e8)['concat'](_0x1aa5fc[_0x194de7(0x1df)],')')));})),_0x4461ac;}function _0x2a1752(_0x2e8e58,_0x12e57c){var _0x180079=_0x4e1f37,_0x377c9d,_0x20b565=_0x12e57c['defIds'];return!_0x20b565||_0x20b565[_0x180079(0x1bd)]===0x0?_0x2e8e58:_0x2e8e58[_0x180079(0x1e7)]===_0x180079(0x1b3)&&(!((_0x377c9d=_0x2e8e58[_0x180079(0x188)])===null||_0x377c9d===void 0x0)&&_0x377c9d[_0x180079(0x1bd)])?_0x1c2aa2(_0x1c2aa2({},_0x2e8e58),{'children':_0x2e8e58[_0x180079(0x188)][_0x180079(0x177)](function(_0x28e5ed){var _0x5e6aa8=_0x180079;return typeof _0x28e5ed[_0x5e6aa8(0x199)]['id']==_0x5e6aa8(0x1b6)&&_0x20b565&&_0x20b565['indexOf'](_0x28e5ed[_0x5e6aa8(0x199)]['id'])>-0x1?_0x1c2aa2(_0x1c2aa2({},_0x28e5ed),{'attrs':_0x1c2aa2(_0x1c2aa2({},_0x28e5ed[_0x5e6aa8(0x199)]),{'id':_0x28e5ed[_0x5e6aa8(0x199)]['id']+_0x12e57c['idSuffix']})}):_0x28e5ed;})}):_0x2e8e58;}function _0x10a0f8(){var _0x107402=_0x4e1f37;return Math['random']()['toString'](0x24)[_0x107402(0x1a9)](0x2,0x8);}_0x9df238[_0x4e1f37(0x182)]=_0x4e1f37(0x1f2);var _0x1599fc={'tag':_0x4e1f37(0x14d),'attrs':{'fill':_0x4e1f37(0x1db),'viewBox':_0x4e1f37(0x158),'width':_0x4e1f37(0x14a),'height':_0x4e1f37(0x14a)},'children':[{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':_0x4e1f37(0x20a),'fillRule':_0x4e1f37(0x1d3),'clipRule':_0x4e1f37(0x1d3)}}]},_0x29b0cb=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x44d064,_0x1d3a36){var _0x395216=_0x4e1f37;return _0x5309d1[_0x395216(0x211)](_0x9df238,Object['assign']({},_0x44d064,{'id':_0x395216(0x1c1),'ref':_0x1d3a36,'icon':_0x1599fc}));});_0x29b0cb[_0x4e1f37(0x182)]=_0x4e1f37(0x17d);var _0x190cc1=Object[_0x4e1f37(0x1bc)],_0x3eba70=(_0xc5059f,_0x6a92ed,_0xc33f9c,_0x4f5027)=>{var _0xcd1bde=_0x4e1f37;for(var _0xa04b94=_0x4f5027>0x1?void 0x0:_0x4f5027?_0x190cc1(_0x6a92ed,_0xc33f9c):_0x6a92ed,_0x510f3c=_0xc5059f[_0xcd1bde(0x1bd)]-0x1,_0x821c5e;_0x510f3c>=0x0;_0x510f3c--)(_0x821c5e=_0xc5059f[_0x510f3c])&&(_0xa04b94=_0x821c5e(_0xa04b94)||_0xa04b94);return _0xa04b94;},_0x2d9c83=(_0x1fbc6d,_0x3a0204)=>(_0x53e359,_0x1497f1)=>_0x3a0204(_0x53e359,_0x1497f1,_0x1fbc6d);_0x564430[_0x4e1f37(0x1e6)]=class extends _0x14dd01[_0x4e1f37(0x157)]{constructor(_0x9e1c5a,_0x70570a,_0x1626ea){var _0x3a43b0=_0x4e1f37;super(),_0x14886c(this,_0x3a43b0(0x17b),new Map()),(this[_0x3a43b0(0x1da)]=_0x9e1c5a,this[_0x3a43b0(0x234)]=_0x70570a,this[_0x3a43b0(0x159)]=_0x1626ea,this[_0x3a43b0(0x148)]());}async[_0x4e1f37(0x195)](_0x20c66c){var _0x14938b=_0x4e1f37;return this[_0x14938b(0x17b)][_0x14938b(0x225)](_0x20c66c)||await this[_0x14938b(0x14b)](_0x20c66c),this[_0x14938b(0x17b)][_0x14938b(0x194)](_0x20c66c);}['_init'](){var _0x3e0524=_0x4e1f37;this[_0x3e0524(0x1da)][_0x3e0524(0x15c)](_0x14dd01[_0x3e0524(0x19c)]['UNIVER_SHEET'])[_0x3e0524(0x196)](_0x5f3902['takeUntil'](this[_0x3e0524(0x14e)]))['subscribe'](async _0x1b452e=>{var _0x5d08ca=_0x3e0524;const _0x4247c3=_0x1b452e[_0x5d08ca(0x17f)]();this['_entities']['has'](_0x4247c3)||this[_0x5d08ca(0x14b)](_0x4247c3);}),this['_univerInstanceService'][_0x3e0524(0x233)](_0x14dd01[_0x3e0524(0x19c)][_0x3e0524(0x1ae)])[_0x3e0524(0x196)](_0x5f3902[_0x3e0524(0x155)](this['dispose$']))[_0x3e0524(0x14c)](_0x3097e0=>{var _0x1b5123=_0x3e0524;const _0x30bf1d=_0x3097e0['getUnitId'](),_0x12a075=this[_0x1b5123(0x17b)]['get'](_0x30bf1d);_0x12a075==null||_0x12a075[_0x1b5123(0x204)]();});}async[_0x4e1f37(0x14b)](_0x77f5de){var _0x4bab72=_0x4e1f37;const _0x412e2d=await this[_0x4bab72(0x159)][_0x4bab72(0x1f8)](_0x77f5de),_0x4b9ff8=this['_injector'][_0x4bab72(0x152)](_0x564430[_0x4bab72(0x151)],_0x77f5de,_0x412e2d);return _0x4b9ff8[_0x4bab72(0x176)](),this['_entities']['set'](_0x77f5de,_0x4b9ff8),_0x4b9ff8;}},_0x564430[_0x4e1f37(0x1e6)]=_0x3eba70([_0x2d9c83(0x0,_0x14dd01[_0x4e1f37(0x198)]),_0x2d9c83(0x1,_0x14dd01['Inject'](_0x14dd01[_0x4e1f37(0x1b8)])),_0x2d9c83(0x2,_0x14dd01[_0x4e1f37(0x22a)](_0x48eb55['CollaborationSessionService']))],_0x564430['LiveShareController']);var _0x464d16=(_0x2a6ce1=>(_0x2a6ce1['OFFLINE']=_0x4e1f37(0x179),_0x2a6ce1[_0x4e1f37(0x18c)]=_0x4e1f37(0x1d6),_0x2a6ce1[_0x4e1f37(0x1c5)]=_0x4e1f37(0x191),_0x2a6ce1[_0x4e1f37(0x221)]=_0x4e1f37(0x1c8),_0x2a6ce1[_0x4e1f37(0x16b)]='presenting',_0x2a6ce1))(_0x464d16||{});const _0x358cfe=_0x4e1f37(0x1e4),_0x2c3428=0xc8;_0x564430['LiveShareCoordinator']=class extends _0x14dd01['RxDisposable']{constructor(_0x59e18d,_0x4e23f1,_0x49784d,_0x1b28be,_0x33d63b){var _0x3855cd=_0x4e1f37;super(),_0x14886c(this,'_status$',new _0x1beed9[(_0x3855cd(0x1a2))](_0x3855cd(0x1d6))),_0x14886c(this,_0x3855cd(0x193),this[_0x3855cd(0x216)][_0x3855cd(0x169)]()),_0x14886c(this,_0x3855cd(0x148),!0x1),_0x14886c(this,_0x3855cd(0x215),null),_0x14886c(this,'_presenter',null),(this[_0x3855cd(0x205)]=_0x59e18d,this[_0x3855cd(0x19b)]=_0x4e23f1,this[_0x3855cd(0x1e0)]=_0x49784d,this[_0x3855cd(0x226)]=_0x1b28be,this[_0x3855cd(0x235)]=_0x33d63b);}get['_status'](){var _0x7ac5d7=_0x4e1f37;return this[_0x7ac5d7(0x216)][_0x7ac5d7(0x1ce)]();}[_0x4e1f37(0x204)](){var _0xffcf8=_0x4e1f37,_0x2af58e;(_0x2af58e=this[_0xffcf8(0x215)])==null||_0x2af58e['dispose'](),this[_0xffcf8(0x216)][_0xffcf8(0x18f)](_0xffcf8(0x1d6)),this[_0xffcf8(0x216)][_0xffcf8(0x1ad)]();}[_0x4e1f37(0x176)](){var _0x48e961=_0x4e1f37;this[_0x48e961(0x148)]||(this[_0x48e961(0x148)]=!0x0,this[_0x48e961(0x19b)][_0x48e961(0x1bf)]['pipe'](_0x5f3902[_0x48e961(0x155)](this[_0x48e961(0x14e)]))['subscribe'](_0x585cf7=>{var _0x2b6afe=_0x48e961;switch(_0x585cf7){case _0x48eb55[_0x2b6afe(0x16a)][_0x2b6afe(0x1ea)]:this[_0x2b6afe(0x1f4)]();break;case _0x48eb55[_0x2b6afe(0x16a)]['ONLINE']:this[_0x2b6afe(0x1af)]();break;}}),this[_0x48e961(0x19b)][_0x48e961(0x145)][_0x48e961(0x196)](_0x5f3902[_0x48e961(0x155)](this['dispose$']))[_0x48e961(0x14c)](_0x4df33a=>{var _0x11516b=_0x48e961;const {eventID:_0x30adcb}=_0x4df33a;switch(_0x30adcb){case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x16c)]:this[_0x11516b(0x1f6)](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x150)]:this['_handleOperation'](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x1ca)]:this[_0x11516b(0x209)]();break;case _0x3e3d8e['CollaborationEvent'][_0x11516b(0x214)]:this['_handleNewChangeSets'](_0x4df33a);break;}}));}[_0x4e1f37(0x15b)](){var _0x5d91f4=_0x4e1f37;this[_0x5d91f4(0x19b)][_0x5d91f4(0x1fc)]({'eventID':_0x3e3d8e[_0x5d91f4(0x171)][_0x5d91f4(0x1d2)],'data':{'unitID':this[_0x5d91f4(0x205)],'userID':this[_0x5d91f4(0x19b)][_0x5d91f4(0x22c)]()}},this['_unitID']);}[_0x4e1f37(0x21f)](){var _0xc3c5e1=_0x4e1f37;this['_status']==='presenting'&&(this['_status$'][_0xc3c5e1(0x18f)](_0xc3c5e1(0x1d6)),this[_0xc3c5e1(0x19b)]['send']({'eventID':_0x3e3d8e[_0xc3c5e1(0x171)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xc3c5e1(0x205)]));}['startFollowing'](){var _0xfb8a43=_0x4e1f37;this['_status']===_0xfb8a43(0x1c8)&&(this[_0xfb8a43(0x216)][_0xfb8a43(0x18f)](_0xfb8a43(0x191)),this['_startFollowing']());}[_0x4e1f37(0x1f3)](){var _0x4858eb=_0x4e1f37;this['_status']===_0x4858eb(0x191)&&this[_0x4858eb(0x190)]();}[_0x4e1f37(0x1f6)](_0x2bb87f){var _0x20581c=_0x4e1f37;const {presenter:_0x127055}=_0x2bb87f[_0x20581c(0x1dd)],_0x5b766f=this[_0x20581c(0x19b)]['getMemberID']();this[_0x20581c(0x21b)]=_0x127055,_0x127055===_0x5b766f?(this[_0x20581c(0x190)](),this[_0x20581c(0x1b9)]()):this[_0x20581c(0x166)]!=='not-following'&&(this[_0x20581c(0x230)](),this[_0x20581c(0x1e2)]());}['_fetchOperations'](){var _0x502f29=_0x4e1f37;const _0x45c0b0={'eventID':_0x3e3d8e[_0x502f29(0x171)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x502f29(0x19b)]['send'](_0x45c0b0,this[_0x502f29(0x205)]);}[_0x4e1f37(0x209)](){var _0x2b01dc=_0x4e1f37;this[_0x2b01dc(0x21b)]=null,this[_0x2b01dc(0x166)]!==_0x2b01dc(0x200)&&this['_beIdle']();}[_0x4e1f37(0x1ba)](_0x3023cf){var _0x5ba26c=_0x4e1f37;if(this[_0x5ba26c(0x166)]==='following'&&this[_0x5ba26c(0x21b)]===_0x3023cf['data'][_0x5ba26c(0x163)]){const _0x533a53=_0x3e3d8e[_0x5ba26c(0x1d8)](_0x3023cf[_0x5ba26c(0x1dd)])[_0x5ba26c(0x186)][_0x5ba26c(0x16d)]()['find'](_0x2c4075=>_0x2c4075['id']===_0x13ba10['InsertSheetMutation']['id']);if(_0x533a53){const _0x2aedcb=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1eb)],_0x5a0dfd=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1ab)]['id'];setTimeout(()=>{var _0x5c7a3d=_0x5ba26c;this[_0x5c7a3d(0x235)][_0x5c7a3d(0x19e)](_0x13ba10[_0x5c7a3d(0x18a)]['id'],{'unitId':_0x2aedcb,'subUnitId':_0x5a0dfd},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x564b03=_0x4e1f37;this['_status$'][_0x564b03(0x18f)](_0x564b03(0x200));const _0x3c2c6c=new Map(),_0x372cc2=this['_commandDisposable']=new _0x14dd01['DisposableCollection']();_0x372cc2[_0x564b03(0x1b2)](_0x14dd01[_0x564b03(0x15d)](()=>{var _0x5102f7=_0x564b03;_0x3c2c6c[_0x5102f7(0x142)](_0x5ae739=>_0x5ae739[_0x5102f7(0x1ad)]()),_0x3c2c6c[_0x5102f7(0x1ec)]();})),_0x372cc2[_0x564b03(0x1b2)](this[_0x564b03(0x235)][_0x564b03(0x1ed)](_0x165a0f=>{var _0x1449a8=_0x564b03,_0x15800f;if(_0x165a0f['type']!==_0x14dd01[_0x1449a8(0x173)][_0x1449a8(0x1a3)]||!this[_0x1449a8(0x226)][_0x1449a8(0x20c)](_0x165a0f['id']))return;const {id:_0xfd7990}=_0x165a0f;let _0x17acb1;_0x3c2c6c[_0x1449a8(0x225)](_0xfd7990)?_0x17acb1=_0x3c2c6c[_0x1449a8(0x194)](_0xfd7990):(_0x17acb1=new _0x1beed9['Subject'](),_0x3c2c6c[_0x1449a8(0x1be)](_0xfd7990,_0x17acb1),_0x17acb1[_0x1449a8(0x196)](_0x5f3902[_0x1449a8(0x20e)]((_0x15800f=this['_configService']['getConfig'](_0x358cfe))!=null?_0x15800f:_0x2c3428,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1449a8(0x14c)](_0x5a5783=>{var _0x4aba16=_0x1449a8;this[_0x4aba16(0x19b)]['send']({'eventID':_0x3e3d8e[_0x4aba16(0x171)][_0x4aba16(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x5a5783['id']]:{'id':_0x5a5783['id'],'params':JSON['stringify'](_0x5a5783[_0x4aba16(0x1c3)])}}}},this[_0x4aba16(0x205)]);})),_0x17acb1[_0x1449a8(0x18f)](_0x165a0f);})),this['_liveShareService'][_0x564b03(0x18b)](this[_0x564b03(0x205)])['forEach'](_0x1197fe=>this['_collabSession'][_0x564b03(0x1fc)]({'eventID':_0x3e3d8e[_0x564b03(0x171)][_0x564b03(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x1197fe['id']]:{'id':_0x1197fe['id'],'params':JSON['stringify'](_0x1197fe[_0x564b03(0x1c3)])}}}},this[_0x564b03(0x205)]));}[_0x4e1f37(0x230)](){var _0x36fdbc=_0x4e1f37,_0x2b7e20;this[_0x36fdbc(0x216)]['next'](_0x36fdbc(0x1d6)),(_0x2b7e20=this[_0x36fdbc(0x215)])==null||_0x2b7e20[_0x36fdbc(0x204)](),this[_0x36fdbc(0x215)]=null;}[_0x4e1f37(0x1e2)](){var _0x5f0de2=_0x4e1f37,_0xf0483;(_0xf0483=this['_commandDisposable'])==null||_0xf0483[_0x5f0de2(0x204)](),this[_0x5f0de2(0x216)][_0x5f0de2(0x18f)](_0x5f0de2(0x191));}[_0x4e1f37(0x231)](){var _0x12af61=_0x4e1f37,_0x4222d3;this[_0x12af61(0x216)][_0x12af61(0x18f)](_0x12af61(0x1d6)),(_0x4222d3=this[_0x12af61(0x215)])==null||_0x4222d3['dispose'](),this[_0x12af61(0x215)]=null;}[_0x4e1f37(0x190)](){var _0x5b9ab5=_0x4e1f37,_0x16d0c7;this[_0x5b9ab5(0x216)]['next'](_0x5b9ab5(0x1c8)),(_0x16d0c7=this['_commandDisposable'])==null||_0x16d0c7[_0x5b9ab5(0x204)]();}['_handleOperation'](_0x5d1610){var _0x7a6cb0=_0x4e1f37;if(['presenting','not-following','offline'][_0x7a6cb0(0x1fd)](this[_0x7a6cb0(0x166)])||!_0x5d1610['data'][_0x7a6cb0(0x1c2)]||_0x5d1610['data']['presenter']===this['_collabSession'][_0x7a6cb0(0x22c)]())return;this[_0x7a6cb0(0x166)]==='idle'&&this[_0x7a6cb0(0x1e2)]();const _0x462c87=_0x5d1610[_0x7a6cb0(0x1dd)]['operations'];Object['values'](_0x462c87)[_0x7a6cb0(0x142)](_0x11fcc9=>{var _0x2304ae=_0x7a6cb0;this[_0x2304ae(0x235)]['executeCommand'](_0x11fcc9['id'],_0x11fcc9['params']?JSON['parse'](_0x11fcc9[_0x2304ae(0x1c3)]):null,{'fromCollab':!0x0});});}[_0x4e1f37(0x1f4)](){var _0x2035ef=_0x4e1f37,_0x65be3e;this['_status$']['next'](_0x2035ef(0x179)),(_0x65be3e=this[_0x2035ef(0x215)])==null||_0x65be3e['dispose']();}[_0x4e1f37(0x1af)](){var _0x1dc36a=_0x4e1f37;this[_0x1dc36a(0x216)]['next'](_0x1dc36a(0x1d6)),this[_0x1dc36a(0x197)]();}},_0x564430[_0x4e1f37(0x151)]=_0x3eba70([_0x2d9c83(0x2,_0x14dd01['IConfigService']),_0x2d9c83(0x3,_0x14dd01[_0x4e1f37(0x22a)](_0x4c5666)),_0x2d9c83(0x4,_0x14dd01['ICommandService'])],_0x564430[_0x4e1f37(0x151)]);function _0x2c5356(){var _0xaefccd=_0x4e1f37;const _0x3944b9=_0x4f2411[_0xaefccd(0x222)](_0x564430[_0xaefccd(0x1e6)]),_0xd19c39=_0x4f2411[_0xaefccd(0x222)](_0x14dd01[_0xaefccd(0x198)]),_0x130460=_0x4f2411[_0xaefccd(0x1cf)](()=>_0xd19c39[_0xaefccd(0x1a8)](_0x14dd01['UniverInstanceType'][_0xaefccd(0x1ae)]),void 0x0,!0x1,[]),[_0x23e786,_0x11be7e]=_0x5309d1[_0xaefccd(0x213)](null),[_0x223d73,_0x3e5d20]=_0x5309d1[_0xaefccd(0x213)](_0x464d16[_0xaefccd(0x18c)]),_0x51c0ca=_0x5309d1[_0xaefccd(0x220)](null);return _0x5309d1[_0xaefccd(0x208)](()=>(_0x130460&&_0x3944b9[_0xaefccd(0x195)](_0x130460['getUnitId']())[_0xaefccd(0x1ff)](_0x319ac6=>{var _0xda0fac=_0xaefccd;_0x11be7e(_0x319ac6),_0x51c0ca['current']=_0x319ac6[_0xda0fac(0x193)][_0xda0fac(0x14c)](_0x1986a7=>{_0x3e5d20(_0x1986a7);});}),()=>{var _0x4a6001=_0xaefccd,_0x2a6243;(_0x2a6243=_0x51c0ca[_0x4a6001(0x187)])==null||_0x2a6243[_0x4a6001(0x192)](),_0x51c0ca[_0x4a6001(0x187)]=null;}),[_0x130460,_0x3944b9]),_0x23e786?_0x251b21[_0xaefccd(0x174)](_0xf99188[_0xaefccd(0x1e9)],{'align':_0xaefccd(0x1d0),'disabled':_0x223d73===_0x464d16['OFFLINE'],'className':_0xaefccd(0x1cb),'overlay':_0x251b21[_0xaefccd(0x174)](_0x4a4200,{'status':_0x223d73,'coordinator':_0x23e786}),'children':_0x251b21[_0xaefccd(0x174)](_0xaefccd(0x236),{'className':_0xf99188['clsx'](_0xaefccd(0x227),{'univer-cursor-not-allowed':_0x223d73===_0x464d16[_0xaefccd(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223d73!==_0x464d16[_0xaefccd(0x1ea)]}),'type':_0xaefccd(0x236),'children':_0x251b21[_0xaefccd(0x174)](_0x29b0cb,{'className':_0xaefccd(0x17a)})})}):null;}function _0x4a4200(_0x426997){var _0x41fc1d=_0x4e1f37;const {status:_0x196c9d,coordinator:_0x1cab77}=_0x426997;switch(_0x196c9d){case _0x464d16[_0x41fc1d(0x18c)]:return _0x251b21[_0x41fc1d(0x174)](_0x339f9c,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1c5)]:return _0x251b21[_0x41fc1d(0x174)](_0x142d85,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x221)]:return _0x251b21[_0x41fc1d(0x174)](_0x430861,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1ea)]:return _0x251b21[_0x41fc1d(0x174)](_0x18249f,{});case _0x464d16[_0x41fc1d(0x16b)]:return _0x251b21['jsx'](_0x54880d,{'coordinator':_0x1cab77});default:return null;}}function _0x339f9c(_0xdd5ff){var _0x162e98=_0x4e1f37;const {coordinator:_0x4f80e8}=_0xdd5ff;return _0x251b21[_0x162e98(0x181)](_0x251b21[_0x162e98(0x178)],{'children':[_0x251b21['jsx']('div',{'className':_0x162e98(0x219),'children':'Present\x20this\x20document'}),_0x251b21[_0x162e98(0x174)](_0xf99188[_0x162e98(0x17e)],{'onClick':()=>_0x4f80e8[_0x162e98(0x15b)](),'children':_0x162e98(0x21c)})]});}function _0x142d85(_0x1c6b9f){var _0x590dc1=_0x4e1f37;const {coordinator:_0xf2099f}=_0x1c6b9f;return _0x251b21[_0x590dc1(0x181)](_0x251b21[_0x590dc1(0x178)],{'children':[_0x251b21[_0x590dc1(0x174)](_0x590dc1(0x1cd),{'className':_0x590dc1(0x219),'children':_0x590dc1(0x1d4)}),_0x251b21[_0x590dc1(0x174)](_0xf99188[_0x590dc1(0x17e)],{'onClick':()=>_0xf2099f[_0x590dc1(0x1f3)](),'children':_0x590dc1(0x153)})]});}function _0x430861(_0x56eee2){var _0x5c8347=_0x4e1f37;const {coordinator:_0x8f9273}=_0x56eee2;return _0x251b21[_0x5c8347(0x181)](_0x251b21[_0x5c8347(0x178)],{'children':[_0x251b21[_0x5c8347(0x174)](_0x5c8347(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c8347(0x18d)}),_0x251b21[_0x5c8347(0x174)](_0xf99188[_0x5c8347(0x17e)],{'variant':_0x5c8347(0x16f),'onClick':()=>_0x8f9273[_0x5c8347(0x203)](),'children':'Start\x20following'})]});}function _0x54880d(_0x534137){var _0x18605a=_0x4e1f37;const {coordinator:_0x1ccb75}=_0x534137;return _0x251b21[_0x18605a(0x181)](_0x251b21[_0x18605a(0x178)],{'children':[_0x251b21['jsx'](_0x18605a(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x18605a(0x232)}),_0x251b21['jsx'](_0xf99188[_0x18605a(0x17e)],{'variant':_0x18605a(0x1f9),'onClick':()=>_0x1ccb75['stopPresenting'](),'children':_0x18605a(0x1a7)})]});}function _0x18249f(){var _0x5aaae3=_0x4e1f37;return _0x251b21['jsx'](_0x251b21[_0x5aaae3(0x178)],{'children':'You\x27are\x20offline.'});}var _0x5867f9=Object[_0x4e1f37(0x1bc)],_0x3e2959=(_0x5f4e64,_0x1be24d,_0x152fdf,_0x4bac08)=>{var _0x148319=_0x4e1f37;for(var _0x39c71d=_0x4bac08>0x1?void 0x0:_0x4bac08?_0x5867f9(_0x1be24d,_0x152fdf):_0x1be24d,_0x400cc6=_0x5f4e64[_0x148319(0x1bd)]-0x1,_0x4cd18d;_0x400cc6>=0x0;_0x400cc6--)(_0x4cd18d=_0x5f4e64[_0x400cc6])&&(_0x39c71d=_0x4cd18d(_0x39c71d)||_0x39c71d);return _0x39c71d;},_0x271a33=(_0x544852,_0x5bef7e)=>(_0x44fc6a,_0x3a2524)=>_0x5bef7e(_0x44fc6a,_0x3a2524,_0x544852);_0x564430['DesktopLiveShareController']=class extends _0x14dd01['Disposable']{constructor(_0x20e548,_0x3f5b01){var _0x19729b=_0x4e1f37;super(),this['_injector']=_0x20e548,this[_0x19729b(0x1d7)]=_0x3f5b01,this[_0x19729b(0x170)]();}[_0x4e1f37(0x170)](){var _0x19ed22=_0x4e1f37;this['disposeWithMe'](this[_0x19ed22(0x1d7)]['registerComponent'](_0x4f2411[_0x19ed22(0x22b)][_0x19ed22(0x1a5)],()=>_0x4f2411[_0x19ed22(0x1f7)](_0x2c5356,this[_0x19ed22(0x234)])));}},_0x564430['DesktopLiveShareController']=_0x3e2959([_0x271a33(0x0,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01['Injector'])),_0x271a33(0x1,_0x4f2411[_0x4e1f37(0x19f)])],_0x564430[_0x4e1f37(0x1b0)]);var _0x347024=Object[_0x4e1f37(0x21e)],_0x4fb404=Object['getOwnPropertyDescriptor'],_0x95fffd=(_0x574433,_0x5ce5ea,_0x312851)=>_0x5ce5ea in _0x574433?_0x347024(_0x574433,_0x5ce5ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312851}):_0x574433[_0x5ce5ea]=_0x312851,_0x5eea80=(_0x1bb6b9,_0x1a6196,_0x2cbe36,_0x1be744)=>{for(var _0xec5757=_0x1be744>0x1?void 0x0:_0x1be744?_0x4fb404(_0x1a6196,_0x2cbe36):_0x1a6196,_0x322a01=_0x1bb6b9['length']-0x1,_0xe612ef;_0x322a01>=0x0;_0x322a01--)(_0xe612ef=_0x1bb6b9[_0x322a01])&&(_0xec5757=_0xe612ef(_0xec5757)||_0xec5757);return _0xec5757;},_0x3e1f8a=(_0x59c16c,_0x53408d)=>(_0x5c5ece,_0x23c39b)=>_0x53408d(_0x5c5ece,_0x23c39b,_0x59c16c),_0x1f9d4d=(_0x18eeb3,_0x15ef3f,_0x1f2214)=>_0x95fffd(_0x18eeb3,typeof _0x15ef3f!=_0x4e1f37(0x1ac)?_0x15ef3f+'':_0x15ef3f,_0x1f2214);const _0x19f0f5=_0x4e1f37(0x1e1);_0x564430[_0x4e1f37(0x183)]=class extends _0x14dd01[_0x4e1f37(0x160)]{constructor(_0x3a7b2e=_0x187a32,_0x22d176,_0x46aa18){var _0x3c7662=_0x4e1f37;super(),this[_0x3c7662(0x184)]=_0x3a7b2e,this[_0x3c7662(0x234)]=_0x22d176,this[_0x3c7662(0x1e0)]=_0x46aa18;const {..._0x7eba03}=_0x14dd01[_0x3c7662(0x210)]({},_0x187a32,this['_config']);this[_0x3c7662(0x1e0)][_0x3c7662(0x1fe)](_0x569104,_0x7eba03);}[_0x4e1f37(0x161)](){var _0x7bd9b1=_0x4e1f37;_0x14dd01[_0x7bd9b1(0x217)](this[_0x7bd9b1(0x234)],_0x14dd01['mergeOverrideWithDependencies']([[_0x4c5666],[_0x564430['LiveShareController']],[_0x5d75bf],[_0x564430[_0x7bd9b1(0x1b0)]]],this[_0x7bd9b1(0x184)]['override'])),_0x14dd01[_0x7bd9b1(0x15f)](this['_injector'],[[_0x5d75bf]]);}['onRendered'](){var _0x33269b=_0x4e1f37;_0x14dd01['touchDependencies'](this[_0x33269b(0x234)],[[_0x564430['DesktopLiveShareController']]]);}},_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a4),_0x14dd01[_0x4e1f37(0x19c)][_0x4e1f37(0x202)]),_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a6),_0x19f0f5),_0x564430[_0x4e1f37(0x183)]=_0x5eea80([_0x14dd01[_0x4e1f37(0x229)](_0x48eb55['UniverCollaborationClientPlugin']),_0x3e1f8a(0x1,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01[_0x4e1f37(0x1b8)])),_0x3e1f8a(0x2,_0x14dd01['IConfigService'])],_0x564430[_0x4e1f37(0x183)]),_0x564430[_0x4e1f37(0x1fa)]=_0x2c5356,_0x564430[_0x4e1f37(0x218)]=_0x4c5666,_0x564430['LiveShareStatus']=_0x464d16,Object[_0x4e1f37(0x21e)](_0x564430,Symbol[_0x4e1f37(0x1b1)],{'value':_0x4e1f37(0x224)});}));function _0x3dc3(){var _0x43d248=['LIVESHARE_NEW_HOST','reverse','colorChannel1','text','_mountLiveShare','CollaborationEvent','function','CommandType','jsx','rxjs/operators','init','map','Fragment','offline','univer-size-4','_entities','SetZoomRatioOperation','LiveShareSingle','Button','getUnitId','prototype','jsxs','displayName','UniverLiveSharePlugin','_config','UniverCore','mutations','current','children','disposeWithMe','SetWorksheetActiveOperation','getInitialStates','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','UniverProLiveShare','next','_stopFollowing','following','unsubscribe','status$','get','getLiveShareCoordinator','pipe','_fetchOperations','IUniverInstanceService','attrs','hasOwnProperty','_collabSession','UniverInstanceType','mask','executeCommand','IUIPartsService','@univerjs/sheets-ui','indexOf','BehaviorSubject','OPERATION','type','HEADER_MENU','pluginName','Stop\x20presenting','getCurrentTypeOfUnit$','substring','1896156JVErhA','sheet','symbol','complete','UNIVER_SHEET','_handleOnline','DesktopLiveShareController','toStringTag','add','defs','forwardRef','715CpKCDI','string','icon','Injector','_startPresenting','_handleNewChangeSets','@univerjs/ui','getOwnPropertyDescriptor','length','set','sessionStatus$','use','live-share-single','presenter','params','className','FOLLOWING','40gSRocE','@univerjs/core','not-following','currentColor','LIVESHARE_TERMINATE','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','@univerjs-pro/collaboration','div','getValue','useObservable','end','react/jsx-runtime','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','xlink:href','idle','_uiPartsService','parseProtocolChangeset','2532wbiHyQ','_univerInstanceService','none','extend','data','defIds','idSuffix','_configService','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','amd','LiveShareController','tag','url(#$1','Dropdown','OFFLINE','unitId','clear','onCommandExecuted','operators','125845NeLlbH','UniverProCollaborationClient','1708749vdlRuX','UniverIcon','stopFollowing','_handleOffline','UniverSheets','_handleNewHost','connectInjector','requireSession','default','LiveShare','UniverSheetsUi','send','includes','setConfig','then','presenting','apply','UNIVER_UNKNOWN','startFollowing','dispose','_unitID','object','UniverProCollaboration','useEffect','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','90WiBNfI','shouldShareOperation','Disposable','throttleTime','_sharedOperations','merge','createElement','replace','useState','NEW_CHANGESETS','_commandDisposable','_status$','registerDependencies','LiveShareService','univer-w-full\x20univer-mb-3\x20univer-text-sm','2AUlwTl','_presenter','Start','357911XwnXGZ','defineProperty','stopPresenting','useRef','NOT_FOLLOWING','useDependency','rxjs','Module','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','1174184QLgWAE','DependentOn','Inject','BuiltInUIPart','getMemberID','35DtwOzp','trim','registerInitialStateReporter','_stopPresenting','_beIdle','You\x27re\x20presenting\x20the\x20document','getTypeOfUnitDisposed$','_injector','_commandService','button','React','path','forEach','call','UniverDesign','event$','715194KXLauk','from','_init','concat','1em','_startLiveShareCoordinator','subscribe','svg','dispose$','@univerjs-pro/collaboration-client','LIVESHARE_OPERATION','LiveShareCoordinator','createInstance','Stop\x20following','getOwnPropertySymbols','takeUntil','delete','RxDisposable','0\x200\x2016\x2016','_collabSessionService','@univerjs/design','tryStartPresenting','getTypeOfUnitAdded$','toDisposable','_reporters','touchDependencies','Plugin','onStarting','entries','memberID','@univerjs/sheets','fill','_status','assign','react','asObservable','SessionStatus','PRESENTING'];_0x3dc3=function(){return _0x43d248;};return _0x3dc3();}
|
|
1
|
+
function _0x4099(){var _0x438357=['fill','takeUntil','startFollowing','@univerjs/ui','BuiltInUIPart','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleNewChangeSets','tag','DisposableCollection','useObservable','_reporters','trim','Subject','values','Fragment','apply','set','_handleOffline','send','toStringTag','next','get','_handleOperation','_startLiveShareCoordinator','rxjs','InsertSheetMutation','getConfig','_commandDisposable','LIVESHARE_TERMINATE','asObservable','8314992mHIJxM','CollaborationSessionService','_liveShareService','useDependency','createInstance','path','text','defs','univerjs-icon\x20univerjs-icon-','stopFollowing','You\x27re\x20presenting\x20the\x20document','_startPresenting','Start','delete','_configService','UniverProCollaboration','2316pjDxiZ','RxDisposable','call','@univerjs-pro/collaboration-client','unitId','length','UniverInstanceType','defineProperty','HEADER_MENU','UniverUi','_status$','getLiveShareCoordinator','throttleTime','parse','attrs','univer-w-full\x20univer-mb-3\x20univer-text-sm','defIds','has','LiveShareController','status$','rxjs/operators','connectInjector','propertyIsEnumerable','memberID','102844NCyLUj','_sharedOperations','NOT_FOLLOWING','789814lDYFOz','forwardRef','LiveShare','getValue','mask','sessionStatus$','params','OFFLINE','_fetchOperations','reverse','default','indexOf','end','_startFollowing','registerDependencies','Stop\x20presenting','SetScrollOperation','object','IUIPartsService','LiveShareStatus','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','0\x200\x2016\x2016','operations','unsubscribe','IUniverInstanceService','OPERATION','init','getTypeOfUnitDisposed$','type','getOwnPropertyDescriptor','url(#$1','data','Dropdown','_mountLiveShare','pipe','toDisposable','concat','getMemberID','jsx','executeCommand','currentColor','_stopFollowing','following','_handleOnline','idSuffix','CollaborationEvent','useRef','LIVESHARE_REQUEST_HOST','entries','UniverCollaborationClientPlugin','_entities','onRendered','14vuUmZi','children','live-share-single','_uiPartsService','@univerjs/design','amd','colorChannel1','IDLE','Disposable','LiveShareService','not-following','_handleNewHost','toString','UniverLiveSharePlugin','1ntGznf','LiveShareSingle','current','UniverDesign','Button','_commandService','_collabSessionService','UniverSheetsUi','Start\x20following','stringify','getTypeOfUnitAdded$','2218337FTlPyZ','FOLLOWING','SetWorksheetActiveOperation','@univerjs-pro/collaboration','className','tryStartPresenting','svg','getUnitId','xlink:href','exports','none','registerComponent','symbol','dispose','Module','_presenter','UNIVER_SHEET','pluginName','clear','button','includes','getInitialStates','dispose$','9igLEwv','parseProtocolChangeset','React','presenting','react/jsx-runtime','_univerInstanceService','Stop\x20following','PRESENTING','touchDependencies','30aWnwah','UniverIcon','LiveShareCoordinator','onCommandExecuted','@univerjs/sheets-ui','assign','_beIdle','forEach','offline','_status','subscribe','UNIVER_LIVE_SHARE_PLUGIN','mutations','shouldShareOperation','LIVESHARE_OPERATION','idle','Inject','substring','@univerjs/sheets','mergeOverrideWithDependencies','Plugin','extend','Injector','SessionStatus','_stopPresenting','string','_unitID','1762680EupBRU','useEffect','event$','div','1em','_config','You\x27re\x20following\x20the\x20presenter','map','icon','univer-size-4','random','react','createElement','jsxs','stopPresenting','_injector','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','UniverProCollaborationClient','6078573sjXRRd','then','_collabSession','DesktopLiveShareController','prototype','setConfig','use','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','IConfigService','ICommandService','add','hasOwnProperty','registerSharedOperation','replace','find','live-share.config','onStarting','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','UniverSheets','registerInitialStateReporter','995OvqSEK','_init','@univerjs/core','getOwnPropertySymbols','useState'];_0x4099=function(){return _0x438357;};return _0x4099();}function _0xfc5c(_0x397cf9,_0x4c2516){var _0x4099e5=_0x4099();return _0xfc5c=function(_0xfc5ca7,_0x1ce778){_0xfc5ca7=_0xfc5ca7-0x1b9;var _0x38b88a=_0x4099e5[_0xfc5ca7];return _0x38b88a;},_0xfc5c(_0x397cf9,_0x4c2516);}(function(_0x42decb,_0x3ee20b){var _0x539da0=_0xfc5c,_0x13ec58=_0x42decb();while(!![]){try{var _0x31d97c=parseInt(_0x539da0(0x1c6))/0x1*(-parseInt(_0x539da0(0x281))/0x2)+parseInt(_0x539da0(0x1e8))/0x3*(-parseInt(_0x539da0(0x27e))/0x4)+-parseInt(_0x539da0(0x233))/0x5*(-parseInt(_0x539da0(0x266))/0x6)+parseInt(_0x539da0(0x2b6))/0x7*(parseInt(_0x539da0(0x20c))/0x8)+parseInt(_0x539da0(0x21e))/0x9+parseInt(_0x539da0(0x1f1))/0xa*(parseInt(_0x539da0(0x1d1))/0xb)+-parseInt(_0x539da0(0x256))/0xc;if(_0x31d97c===_0x3ee20b)break;else _0x13ec58['push'](_0x13ec58['shift']());}catch(_0x30aad2){_0x13ec58['push'](_0x13ec58['shift']());}}}(_0x4099,0x9a85e),function(_0x1a0c0a,_0xad0740){var _0x5b517e=_0xfc5c;typeof exports==_0x5b517e(0x292)&&typeof module<'u'?_0xad0740(exports,require('@univerjs-pro/collaboration-client'),require(_0x5b517e(0x235)),require(_0x5b517e(0x203)),require(_0x5b517e(0x1f5)),require(_0x5b517e(0x23b)),require(_0x5b517e(0x1ec)),require(_0x5b517e(0x1bc)),require('react'),require(_0x5b517e(0x1d4)),require('rxjs'),require(_0x5b517e(0x27a))):typeof define=='function'&&define[_0x5b517e(0x1bd)]?define([_0x5b517e(0x1da),_0x5b517e(0x269),_0x5b517e(0x235),_0x5b517e(0x203),_0x5b517e(0x1f5),_0x5b517e(0x23b),_0x5b517e(0x1ec),'@univerjs/design',_0x5b517e(0x217),'@univerjs-pro/collaboration',_0x5b517e(0x250),_0x5b517e(0x27a)],_0xad0740):(_0x1a0c0a=typeof globalThis<'u'?globalThis:_0x1a0c0a||self,_0xad0740(_0x1a0c0a['UniverProLiveShare']={},_0x1a0c0a[_0x5b517e(0x21d)],_0x1a0c0a['UniverCore'],_0x1a0c0a[_0x5b517e(0x231)],_0x1a0c0a[_0x5b517e(0x1cd)],_0x1a0c0a[_0x5b517e(0x26f)],_0x1a0c0a[_0x5b517e(0x1ea)],_0x1a0c0a[_0x5b517e(0x1c9)],_0x1a0c0a[_0x5b517e(0x1ea)],_0x1a0c0a[_0x5b517e(0x265)],_0x1a0c0a[_0x5b517e(0x250)],_0x1a0c0a[_0x5b517e(0x250)]['operators']));}(this,function(_0x5aed30,_0x4b90ca,_0x2d27d6,_0x2741d3,_0x6368ba,_0x11220d,_0x51a1f4,_0xb6a611,_0x47e352,_0x144564,_0x13dca1,_0xbc44ae){'use strict';var _0x5ed612=_0xfc5c;var _0x2e8c98=Object['defineProperty'],_0x2e7403=(_0x356829,_0x2d1341,_0x4e678a)=>_0x2d1341 in _0x356829?_0x2e8c98(_0x356829,_0x2d1341,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e678a}):_0x356829[_0x2d1341]=_0x4e678a,_0x2599a3=(_0xef9c79,_0x2b6872,_0x1e0397)=>_0x2e7403(_0xef9c79,typeof _0x2b6872!=_0x5ed612(0x1dd)?_0x2b6872+'':_0x2b6872,_0x1e0397);const _0x5daa30=_0x5ed612(0x22d),_0x253ae8={};class _0x330aba extends _0x2d27d6[_0x5ed612(0x1c0)]{constructor(){var _0x5a08e8=_0x5ed612;super(...arguments),_0x2599a3(this,_0x5a08e8(0x27f),new Set()),_0x2599a3(this,_0x5a08e8(0x242),new Set());}[_0x5ed612(0x22a)](_0x44ff2d){var _0x45d6ab=_0x5ed612;return this[_0x45d6ab(0x27f)][_0x45d6ab(0x228)](_0x44ff2d),_0x2d27d6['toDisposable'](()=>this['_sharedOperations'][_0x45d6ab(0x263)](_0x44ff2d));}[_0x5ed612(0x232)](_0x389e81){var _0x1d97f9=_0x5ed612;return this[_0x1d97f9(0x242)][_0x1d97f9(0x228)](_0x389e81),_0x2d27d6[_0x1d97f9(0x2a5)](()=>this[_0x1d97f9(0x242)][_0x1d97f9(0x263)](_0x389e81));}[_0x5ed612(0x1fe)](_0x4f43ac){var _0x4a483e=_0x5ed612;return this[_0x4a483e(0x27f)][_0x4a483e(0x277)](_0x4f43ac);}['getInitialStates'](_0x49e4d2){var _0x4a625c=_0x5ed612;return Array['from'](this[_0x4a625c(0x242)])['map'](_0x58cf4a=>_0x58cf4a(_0x49e4d2));}}var _0x55dd04=Object[_0x5ed612(0x29f)],_0x3c225a=(_0x84fa77,_0x2a3158,_0x205be7,_0x12e783)=>{for(var _0x2d466f=_0x12e783>0x1?void 0x0:_0x12e783?_0x55dd04(_0x2a3158,_0x205be7):_0x2a3158,_0x35a1f4=_0x84fa77['length']-0x1,_0x3f5cc4;_0x35a1f4>=0x0;_0x35a1f4--)(_0x3f5cc4=_0x84fa77[_0x35a1f4])&&(_0x2d466f=_0x3f5cc4(_0x2d466f)||_0x2d466f);return _0x2d466f;},_0x257aaa=(_0x4ce6e0,_0x3ba1bb)=>(_0x31a59b,_0x2af4f0)=>_0x3ba1bb(_0x31a59b,_0x2af4f0,_0x4ce6e0);let _0xc09cdd=class extends _0x2d27d6[_0x5ed612(0x1c0)]{constructor(_0x310135){var _0x4cec22=_0x5ed612;super(),this[_0x4cec22(0x258)]=_0x310135,this[_0x4cec22(0x234)]();}[_0x5ed612(0x234)](){var _0x5de087=_0x5ed612;[_0x6368ba['SetZoomRatioOperation']['id'],_0x6368ba[_0x5de087(0x291)]['id'],_0x2741d3['SetWorksheetActiveOperation']['id']][_0x5de087(0x1f8)](_0x36e782=>{var _0x1fa982=_0x5de087;this[_0x1fa982(0x295)](this[_0x1fa982(0x258)]['registerSharedOperation'](_0x36e782));});}};_0xc09cdd=_0x3c225a([_0x257aaa(0x0,_0x2d27d6[_0x5ed612(0x201)](_0x330aba))],_0xc09cdd);var _0x1ce461=function(){var _0x306929=_0x5ed612;return _0x1ce461=Object[_0x306929(0x1f6)]||function(_0x16f1fb){var _0x52f59d=_0x306929;for(var _0x365ad3,_0x1308e9=0x1,_0x26f20e=arguments[_0x52f59d(0x26b)];_0x1308e9<_0x26f20e;_0x1308e9++){_0x365ad3=arguments[_0x1308e9];for(var _0x12ca20 in _0x365ad3)Object[_0x52f59d(0x222)][_0x52f59d(0x229)][_0x52f59d(0x268)](_0x365ad3,_0x12ca20)&&(_0x16f1fb[_0x12ca20]=_0x365ad3[_0x12ca20]);}return _0x16f1fb;},_0x1ce461[_0x306929(0x247)](this,arguments);},_0x5e78b1=function(_0x6bd530,_0x4e939a){var _0x45aa46=_0x5ed612,_0xae0615={};for(var _0x312aca in _0x6bd530)Object[_0x45aa46(0x222)][_0x45aa46(0x229)][_0x45aa46(0x268)](_0x6bd530,_0x312aca)&&_0x4e939a[_0x45aa46(0x28c)](_0x312aca)<0x0&&(_0xae0615[_0x312aca]=_0x6bd530[_0x312aca]);if(_0x6bd530!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x1f24a1=0x0,_0x312aca=Object[_0x45aa46(0x236)](_0x6bd530);_0x1f24a1<_0x312aca[_0x45aa46(0x26b)];_0x1f24a1++)_0x4e939a[_0x45aa46(0x28c)](_0x312aca[_0x1f24a1])<0x0&&Object['prototype'][_0x45aa46(0x27c)]['call'](_0x6bd530,_0x312aca[_0x1f24a1])&&(_0xae0615[_0x312aca[_0x1f24a1]]=_0x6bd530[_0x312aca[_0x1f24a1]]);}return _0xae0615;},_0x11f833=_0x47e352[_0x5ed612(0x282)](function(_0x489b81,_0x908924){var _0x159ea4=_0x5ed612,_0x2c8db3=_0x489b81[_0x159ea4(0x214)],_0x48973a=_0x489b81['id'],_0x409f34=_0x489b81['className'],_0x26a90a=_0x489b81[_0x159ea4(0x206)],_0x4125cd=_0x5e78b1(_0x489b81,[_0x159ea4(0x214),'id',_0x159ea4(0x1d5),'extend']),_0x6350fa=_0x159ea4(0x25e)['concat'](_0x48973a,'\x20')[_0x159ea4(0x2a6)](_0x409f34||'')[_0x159ea4(0x243)](),_0x5d203e=_0x47e352['useRef']('_'[_0x159ea4(0x2a6)](_0x368cd0()));return _0x53b9d0(_0x2c8db3,''[_0x159ea4(0x2a6)](_0x48973a),{'defIds':_0x2c8db3['defIds'],'idSuffix':_0x5d203e['current']},_0x1ce461({'ref':_0x908924,'className':_0x6350fa},_0x4125cd),_0x26a90a);});function _0x53b9d0(_0x5a12bd,_0xa73761,_0x40e775,_0x2125f8,_0x2ce903){var _0x41cf83=_0x5ed612;return _0x47e352[_0x41cf83(0x218)](_0x5a12bd[_0x41cf83(0x23f)],_0x1ce461(_0x1ce461({'key':_0xa73761},_0xa63f4(_0x5a12bd,_0x40e775,_0x2ce903)),_0x2125f8),(_0x43fe00(_0x5a12bd,_0x40e775)[_0x41cf83(0x1b9)]||[])[_0x41cf83(0x213)](function(_0x24a7e3,_0x39c8f3){var _0x28c60a=_0x41cf83;return _0x53b9d0(_0x24a7e3,''[_0x28c60a(0x2a6)](_0xa73761,'-')[_0x28c60a(0x2a6)](_0x5a12bd[_0x28c60a(0x23f)],'-')['concat'](_0x39c8f3),_0x40e775,void 0x0,_0x2ce903);}));}function _0xa63f4(_0x339b20,_0x149fb8,_0x559e60){var _0x3a7ef0=_0x5ed612,_0x2ed219=_0x1ce461({},_0x339b20[_0x3a7ef0(0x274)]);_0x559e60!=null&&_0x559e60[_0x3a7ef0(0x1be)]&&_0x2ed219[_0x3a7ef0(0x238)]===_0x3a7ef0(0x1be)&&(_0x2ed219[_0x3a7ef0(0x238)]=_0x559e60[_0x3a7ef0(0x1be)]),_0x339b20[_0x3a7ef0(0x23f)]===_0x3a7ef0(0x285)&&_0x2ed219['id']&&(_0x2ed219['id']=_0x2ed219['id']+_0x149fb8[_0x3a7ef0(0x2ae)]),Object[_0x3a7ef0(0x2b2)](_0x2ed219)[_0x3a7ef0(0x1f8)](function(_0x10384e){var _0x490d27=_0x3a7ef0,_0x46c995=_0x10384e[0x0],_0x4f7aec=_0x10384e[0x1];_0x46c995===_0x490d27(0x285)&&typeof _0x4f7aec=='string'&&(_0x2ed219[_0x46c995]=_0x4f7aec[_0x490d27(0x22b)](/url\(#(.*)\)/,_0x490d27(0x2a0)[_0x490d27(0x2a6)](_0x149fb8[_0x490d27(0x2ae)],')')));});var _0x29a070=_0x149fb8[_0x3a7ef0(0x276)];return!_0x29a070||_0x29a070[_0x3a7ef0(0x26b)]===0x0||(_0x339b20[_0x3a7ef0(0x23f)]===_0x3a7ef0(0x224)&&_0x2ed219[_0x3a7ef0(0x1d9)]&&(_0x2ed219['xlink:href']=_0x2ed219['xlink:href']+_0x149fb8[_0x3a7ef0(0x2ae)]),Object[_0x3a7ef0(0x2b2)](_0x2ed219)[_0x3a7ef0(0x1f8)](function(_0x1fb434){var _0x1e483b=_0x3a7ef0,_0x1b4cdb=_0x1fb434[0x0],_0x450ee3=_0x1fb434[0x1];typeof _0x450ee3==_0x1e483b(0x20a)&&(_0x2ed219[_0x1b4cdb]=_0x450ee3[_0x1e483b(0x22b)](/url\(#(.*)\)/,'url(#$1'[_0x1e483b(0x2a6)](_0x149fb8[_0x1e483b(0x2ae)],')')));})),_0x2ed219;}function _0x43fe00(_0x517812,_0x194e79){var _0x329674=_0x5ed612,_0x2cd7c0,_0x2addf6=_0x194e79['defIds'];return!_0x2addf6||_0x2addf6[_0x329674(0x26b)]===0x0?_0x517812:_0x517812['tag']===_0x329674(0x25d)&&(!((_0x2cd7c0=_0x517812[_0x329674(0x1b9)])===null||_0x2cd7c0===void 0x0)&&_0x2cd7c0[_0x329674(0x26b)])?_0x1ce461(_0x1ce461({},_0x517812),{'children':_0x517812[_0x329674(0x1b9)]['map'](function(_0x4192c0){var _0x4f3050=_0x329674;return typeof _0x4192c0['attrs']['id']=='string'&&_0x2addf6&&_0x2addf6[_0x4f3050(0x28c)](_0x4192c0[_0x4f3050(0x274)]['id'])>-0x1?_0x1ce461(_0x1ce461({},_0x4192c0),{'attrs':_0x1ce461(_0x1ce461({},_0x4192c0['attrs']),{'id':_0x4192c0[_0x4f3050(0x274)]['id']+_0x194e79[_0x4f3050(0x2ae)]})}):_0x4192c0;})}):_0x517812;}function _0x368cd0(){var _0x117f12=_0x5ed612;return Math[_0x117f12(0x216)]()[_0x117f12(0x1c4)](0x24)[_0x117f12(0x202)](0x2,0x8);}_0x11f833['displayName']=_0x5ed612(0x1f2);var _0xb1e952={'tag':_0x5ed612(0x1d7),'attrs':{'fill':_0x5ed612(0x1db),'viewBox':_0x5ed612(0x297),'width':_0x5ed612(0x210),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5ed612(0x2aa),'d':_0x5ed612(0x21c)}},{'tag':_0x5ed612(0x25b),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':'evenodd'}}]},_0x396c16=_0x47e352[_0x5ed612(0x282)](function(_0x1474f2,_0x150677){var _0x3850b0=_0x5ed612;return _0x47e352[_0x3850b0(0x218)](_0x11f833,Object['assign']({},_0x1474f2,{'id':_0x3850b0(0x1ba),'ref':_0x150677,'icon':_0xb1e952}));});_0x396c16['displayName']=_0x5ed612(0x1c7);var _0x2da072=Object['getOwnPropertyDescriptor'],_0x1e3a4c=(_0x18bde2,_0x4cc852,_0x2996f6,_0x1cdc55)=>{var _0x1db970=_0x5ed612;for(var _0x3218c3=_0x1cdc55>0x1?void 0x0:_0x1cdc55?_0x2da072(_0x4cc852,_0x2996f6):_0x4cc852,_0x4c36b6=_0x18bde2[_0x1db970(0x26b)]-0x1,_0x2900b7;_0x4c36b6>=0x0;_0x4c36b6--)(_0x2900b7=_0x18bde2[_0x4c36b6])&&(_0x3218c3=_0x2900b7(_0x3218c3)||_0x3218c3);return _0x3218c3;},_0x34ee57=(_0x5ab0b8,_0x4b7f57)=>(_0xae4ff1,_0x492aa4)=>_0x4b7f57(_0xae4ff1,_0x492aa4,_0x5ab0b8);_0x5aed30[_0x5ed612(0x278)]=class extends _0x2d27d6['RxDisposable']{constructor(_0x8195ee,_0x29925e,_0x320e57){var _0x59d021=_0x5ed612;super(),_0x2599a3(this,_0x59d021(0x2b4),new Map()),(this[_0x59d021(0x1ed)]=_0x8195ee,this[_0x59d021(0x21b)]=_0x29925e,this[_0x59d021(0x1cc)]=_0x320e57,this[_0x59d021(0x234)]());}async[_0x5ed612(0x271)](_0x175a7d){var _0x47886d=_0x5ed612;return this[_0x47886d(0x2b4)][_0x47886d(0x277)](_0x175a7d)||await this[_0x47886d(0x24f)](_0x175a7d),this[_0x47886d(0x2b4)]['get'](_0x175a7d);}['_init'](){var _0x2a48b1=_0x5ed612;this[_0x2a48b1(0x1ed)][_0x2a48b1(0x1d0)](_0x2d27d6['UniverInstanceType']['UNIVER_SHEET'])[_0x2a48b1(0x2a4)](_0xbc44ae[_0x2a48b1(0x239)](this[_0x2a48b1(0x1e7)]))[_0x2a48b1(0x1fb)](async _0x343d36=>{var _0x2b006b=_0x2a48b1;const _0x31478a=_0x343d36[_0x2b006b(0x1d8)]();this[_0x2b006b(0x2b4)][_0x2b006b(0x277)](_0x31478a)||this[_0x2b006b(0x24f)](_0x31478a);}),this[_0x2a48b1(0x1ed)][_0x2a48b1(0x29d)](_0x2d27d6[_0x2a48b1(0x26c)][_0x2a48b1(0x1e1)])[_0x2a48b1(0x2a4)](_0xbc44ae['takeUntil'](this[_0x2a48b1(0x1e7)]))[_0x2a48b1(0x1fb)](_0x1bfc56=>{var _0x74eff6=_0x2a48b1;const _0x2a5250=_0x1bfc56[_0x74eff6(0x1d8)](),_0x1a1885=this[_0x74eff6(0x2b4)][_0x74eff6(0x24d)](_0x2a5250);_0x1a1885==null||_0x1a1885['dispose']();});}async['_startLiveShareCoordinator'](_0x122dcc){var _0x28fede=_0x5ed612;const _0x56674e=await this[_0x28fede(0x1cc)]['requireSession'](_0x122dcc),_0x299a0d=this[_0x28fede(0x21b)][_0x28fede(0x25a)](_0x5aed30[_0x28fede(0x1f3)],_0x122dcc,_0x56674e);return _0x299a0d[_0x28fede(0x29c)](),this[_0x28fede(0x2b4)][_0x28fede(0x248)](_0x122dcc,_0x299a0d),_0x299a0d;}},_0x5aed30[_0x5ed612(0x278)]=_0x1e3a4c([_0x34ee57(0x0,_0x2d27d6[_0x5ed612(0x29a)]),_0x34ee57(0x1,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x34ee57(0x2,_0x2d27d6['Inject'](_0x4b90ca[_0x5ed612(0x257)]))],_0x5aed30[_0x5ed612(0x278)]);var _0x461c56=(_0x59354f=>(_0x59354f['OFFLINE']='offline',_0x59354f[_0x5ed612(0x1bf)]=_0x5ed612(0x200),_0x59354f['FOLLOWING']=_0x5ed612(0x2ac),_0x59354f['NOT_FOLLOWING']=_0x5ed612(0x1c2),_0x59354f[_0x5ed612(0x1ef)]='presenting',_0x59354f))(_0x461c56||{});const _0x2387db='SAME_OPERATION_SHARE_INTERVAL',_0x4d54cd=0xc8;_0x5aed30[_0x5ed612(0x1f3)]=class extends _0x2d27d6[_0x5ed612(0x267)]{constructor(_0x13c776,_0x3932bd,_0x540db1,_0x2e76a8,_0x29a695){var _0x48aaae=_0x5ed612;super(),_0x2599a3(this,_0x48aaae(0x270),new _0x13dca1['BehaviorSubject'](_0x48aaae(0x200))),_0x2599a3(this,_0x48aaae(0x279),this[_0x48aaae(0x270)][_0x48aaae(0x255)]()),_0x2599a3(this,'_init',!0x1),_0x2599a3(this,_0x48aaae(0x253),null),_0x2599a3(this,_0x48aaae(0x1e0),null),(this[_0x48aaae(0x20b)]=_0x13c776,this[_0x48aaae(0x220)]=_0x3932bd,this[_0x48aaae(0x264)]=_0x540db1,this[_0x48aaae(0x258)]=_0x2e76a8,this[_0x48aaae(0x1cb)]=_0x29a695);}get['_status'](){var _0x2fad85=_0x5ed612;return this[_0x2fad85(0x270)][_0x2fad85(0x284)]();}[_0x5ed612(0x1de)](){var _0x19a169=_0x5ed612,_0x29674f;(_0x29674f=this[_0x19a169(0x253)])==null||_0x29674f[_0x19a169(0x1de)](),this[_0x19a169(0x270)][_0x19a169(0x24c)](_0x19a169(0x200)),this[_0x19a169(0x270)]['complete']();}['init'](){var _0x3d2b96=_0x5ed612;this[_0x3d2b96(0x234)]||(this['_init']=!0x0,this['_collabSession'][_0x3d2b96(0x286)]['pipe'](_0xbc44ae[_0x3d2b96(0x239)](this[_0x3d2b96(0x1e7)]))[_0x3d2b96(0x1fb)](_0x3900f1=>{var _0x539a8d=_0x3d2b96;switch(_0x3900f1){case _0x4b90ca[_0x539a8d(0x208)][_0x539a8d(0x288)]:this['_handleOffline']();break;case _0x4b90ca[_0x539a8d(0x208)]['ONLINE']:this[_0x539a8d(0x2ad)]();break;}}),this[_0x3d2b96(0x220)][_0x3d2b96(0x20e)][_0x3d2b96(0x2a4)](_0xbc44ae[_0x3d2b96(0x239)](this[_0x3d2b96(0x1e7)]))['subscribe'](_0x264cdd=>{var _0x43a946=_0x3d2b96;const {eventID:_0x50d81e}=_0x264cdd;switch(_0x50d81e){case _0x144564[_0x43a946(0x2af)]['LIVESHARE_NEW_HOST']:this[_0x43a946(0x1c3)](_0x264cdd);break;case _0x144564[_0x43a946(0x2af)][_0x43a946(0x1ff)]:this['_handleOperation'](_0x264cdd);break;case _0x144564[_0x43a946(0x2af)][_0x43a946(0x254)]:this[_0x43a946(0x22f)]();break;case _0x144564[_0x43a946(0x2af)]['NEW_CHANGESETS']:this[_0x43a946(0x23e)](_0x264cdd);break;}}));}['tryStartPresenting'](){var _0x1ab1ba=_0x5ed612;this[_0x1ab1ba(0x220)][_0x1ab1ba(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x1ab1ba(0x2b1)],'data':{'unitID':this[_0x1ab1ba(0x20b)],'userID':this[_0x1ab1ba(0x220)][_0x1ab1ba(0x2a7)]()}},this[_0x1ab1ba(0x20b)]);}[_0x5ed612(0x21a)](){var _0x2fbb01=_0x5ed612;this[_0x2fbb01(0x1fa)]===_0x2fbb01(0x1eb)&&(this[_0x2fbb01(0x270)][_0x2fbb01(0x24c)](_0x2fbb01(0x200)),this[_0x2fbb01(0x220)][_0x2fbb01(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x2fbb01(0x254)],'data':{'unitID':this[_0x2fbb01(0x20b)]}},this['_unitID']));}[_0x5ed612(0x23a)](){var _0x15957d=_0x5ed612;this['_status']===_0x15957d(0x1c2)&&(this['_status$'][_0x15957d(0x24c)](_0x15957d(0x2ac)),this[_0x15957d(0x28e)]());}['stopFollowing'](){var _0x310b3b=_0x5ed612;this[_0x310b3b(0x1fa)]===_0x310b3b(0x2ac)&&this['_stopFollowing']();}[_0x5ed612(0x1c3)](_0x3dde40){var _0x21a8a5=_0x5ed612;const {presenter:_0xe5eb70}=_0x3dde40[_0x21a8a5(0x2a1)],_0x206d55=this[_0x21a8a5(0x220)][_0x21a8a5(0x2a7)]();this[_0x21a8a5(0x1e0)]=_0xe5eb70,_0xe5eb70===_0x206d55?(this[_0x21a8a5(0x2ab)](),this[_0x21a8a5(0x261)]()):this[_0x21a8a5(0x1fa)]!=='not-following'&&(this[_0x21a8a5(0x209)](),this[_0x21a8a5(0x28e)]());}[_0x5ed612(0x289)](){var _0x2de010=_0x5ed612;const _0x3f27af={'eventID':_0x144564[_0x2de010(0x2af)][_0x2de010(0x296)]};this[_0x2de010(0x220)]['send'](_0x3f27af,this[_0x2de010(0x20b)]);}['_handleTerminate'](){var _0x44c80a=_0x5ed612;this[_0x44c80a(0x1e0)]=null,this[_0x44c80a(0x1fa)]!==_0x44c80a(0x1eb)&&this[_0x44c80a(0x1f7)]();}[_0x5ed612(0x23e)](_0x514c07){var _0x48c028=_0x5ed612;if(this[_0x48c028(0x1fa)]==='following'&&this[_0x48c028(0x1e0)]===_0x514c07[_0x48c028(0x2a1)][_0x48c028(0x27d)]){const _0x1265ec=_0x144564[_0x48c028(0x1e9)](_0x514c07[_0x48c028(0x2a1)])[_0x48c028(0x1fd)][_0x48c028(0x28a)]()[_0x48c028(0x22c)](_0x50418c=>_0x50418c['id']===_0x2741d3[_0x48c028(0x251)]['id']);if(_0x1265ec){const _0x2a3145=_0x1265ec[_0x48c028(0x287)][_0x48c028(0x26a)],_0x396dd5=_0x1265ec['params']['sheet']['id'];setTimeout(()=>{var _0x3f073b=_0x48c028;this[_0x3f073b(0x1cb)][_0x3f073b(0x2a9)](_0x2741d3[_0x3f073b(0x1d3)]['id'],{'unitId':_0x2a3145,'subUnitId':_0x396dd5},{'fromCollab':!0x0});});}}}[_0x5ed612(0x261)](){var _0x5a8b6b=_0x5ed612;this[_0x5a8b6b(0x270)][_0x5a8b6b(0x24c)](_0x5a8b6b(0x1eb));const _0x39da59=new Map(),_0x27052f=this[_0x5a8b6b(0x253)]=new _0x2d27d6[(_0x5a8b6b(0x240))]();_0x27052f[_0x5a8b6b(0x228)](_0x2d27d6['toDisposable'](()=>{var _0x70033=_0x5a8b6b;_0x39da59[_0x70033(0x1f8)](_0xccc2a9=>_0xccc2a9['complete']()),_0x39da59[_0x70033(0x1e3)]();})),_0x27052f[_0x5a8b6b(0x228)](this[_0x5a8b6b(0x1cb)][_0x5a8b6b(0x1f4)](_0x3cf148=>{var _0x38e942=_0x5a8b6b,_0x2badf8;if(_0x3cf148['type']!==_0x2d27d6['CommandType'][_0x38e942(0x29b)]||!this[_0x38e942(0x258)][_0x38e942(0x1fe)](_0x3cf148['id']))return;const {id:_0x393c95}=_0x3cf148;let _0x4581a1;_0x39da59[_0x38e942(0x277)](_0x393c95)?_0x4581a1=_0x39da59[_0x38e942(0x24d)](_0x393c95):(_0x4581a1=new _0x13dca1[(_0x38e942(0x244))](),_0x39da59['set'](_0x393c95,_0x4581a1),_0x4581a1[_0x38e942(0x2a4)](_0xbc44ae[_0x38e942(0x272)]((_0x2badf8=this[_0x38e942(0x264)][_0x38e942(0x252)](_0x2387db))!=null?_0x2badf8:_0x4d54cd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38e942(0x1fb)](_0x13f5d2=>{var _0x4f7da7=_0x38e942;this[_0x4f7da7(0x220)][_0x4f7da7(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x4f7da7(0x1ff)],'data':{'unitID':this[_0x4f7da7(0x20b)],'operations':{[_0x13f5d2['id']]:{'id':_0x13f5d2['id'],'params':JSON['stringify'](_0x13f5d2['params'])}}}},this[_0x4f7da7(0x20b)]);})),_0x4581a1[_0x38e942(0x24c)](_0x3cf148);})),this[_0x5a8b6b(0x258)][_0x5a8b6b(0x1e6)](this['_unitID'])[_0x5a8b6b(0x1f8)](_0x13bf08=>this['_collabSession'][_0x5a8b6b(0x24a)]({'eventID':_0x144564[_0x5a8b6b(0x2af)][_0x5a8b6b(0x1ff)],'data':{'unitID':this[_0x5a8b6b(0x20b)],'operations':{[_0x13bf08['id']]:{'id':_0x13bf08['id'],'params':JSON[_0x5a8b6b(0x1cf)](_0x13bf08[_0x5a8b6b(0x287)])}}}},this[_0x5a8b6b(0x20b)]));}['_stopPresenting'](){var _0x3d7338=_0x5ed612,_0x6a85f3;this[_0x3d7338(0x270)][_0x3d7338(0x24c)]('idle'),(_0x6a85f3=this[_0x3d7338(0x253)])==null||_0x6a85f3[_0x3d7338(0x1de)](),this[_0x3d7338(0x253)]=null;}[_0x5ed612(0x28e)](){var _0x3920c1=_0x5ed612,_0x2c9390;(_0x2c9390=this[_0x3920c1(0x253)])==null||_0x2c9390[_0x3920c1(0x1de)](),this['_status$']['next'](_0x3920c1(0x2ac));}[_0x5ed612(0x1f7)](){var _0x2fb03f=_0x5ed612,_0x571701;this[_0x2fb03f(0x270)][_0x2fb03f(0x24c)](_0x2fb03f(0x200)),(_0x571701=this['_commandDisposable'])==null||_0x571701['dispose'](),this[_0x2fb03f(0x253)]=null;}[_0x5ed612(0x2ab)](){var _0x485c15=_0x5ed612,_0x270921;this[_0x485c15(0x270)]['next'](_0x485c15(0x1c2)),(_0x270921=this[_0x485c15(0x253)])==null||_0x270921[_0x485c15(0x1de)]();}[_0x5ed612(0x24e)](_0x419e1a){var _0x5e4728=_0x5ed612;if([_0x5e4728(0x1eb),_0x5e4728(0x1c2),'offline'][_0x5e4728(0x1e5)](this[_0x5e4728(0x1fa)])||!_0x419e1a[_0x5e4728(0x2a1)]['presenter']||_0x419e1a['data']['presenter']===this[_0x5e4728(0x220)][_0x5e4728(0x2a7)]())return;this[_0x5e4728(0x1fa)]==='idle'&&this[_0x5e4728(0x28e)]();const _0x46a47f=_0x419e1a[_0x5e4728(0x2a1)][_0x5e4728(0x298)];Object[_0x5e4728(0x245)](_0x46a47f)[_0x5e4728(0x1f8)](_0x593f7b=>{var _0x34f4f0=_0x5e4728;this[_0x34f4f0(0x1cb)][_0x34f4f0(0x2a9)](_0x593f7b['id'],_0x593f7b['params']?JSON[_0x34f4f0(0x273)](_0x593f7b[_0x34f4f0(0x287)]):null,{'fromCollab':!0x0});});}[_0x5ed612(0x249)](){var _0x1a78b3=_0x5ed612,_0x3208c2;this[_0x1a78b3(0x270)][_0x1a78b3(0x24c)](_0x1a78b3(0x1f9)),(_0x3208c2=this[_0x1a78b3(0x253)])==null||_0x3208c2['dispose']();}['_handleOnline'](){var _0x4c666e=_0x5ed612;this['_status$'][_0x4c666e(0x24c)](_0x4c666e(0x200)),this[_0x4c666e(0x289)]();}},_0x5aed30['LiveShareCoordinator']=_0x1e3a4c([_0x34ee57(0x2,_0x2d27d6['IConfigService']),_0x34ee57(0x3,_0x2d27d6[_0x5ed612(0x201)](_0x330aba)),_0x34ee57(0x4,_0x2d27d6[_0x5ed612(0x227)])],_0x5aed30[_0x5ed612(0x1f3)]);function _0x944315(){var _0x2350ec=_0x5ed612;const _0x29780d=_0x11220d[_0x2350ec(0x259)](_0x5aed30[_0x2350ec(0x278)]),_0x35aea0=_0x11220d['useDependency'](_0x2d27d6[_0x2350ec(0x29a)]),_0x14ad04=_0x11220d[_0x2350ec(0x241)](()=>_0x35aea0['getCurrentTypeOfUnit$'](_0x2d27d6['UniverInstanceType'][_0x2350ec(0x1e1)]),void 0x0,!0x1,[]),[_0x44b9aa,_0x4672cf]=_0x47e352[_0x2350ec(0x237)](null),[_0x11a766,_0xf15a83]=_0x47e352['useState'](_0x461c56[_0x2350ec(0x1bf)]),_0x150e21=_0x47e352[_0x2350ec(0x2b0)](null);return _0x47e352[_0x2350ec(0x20d)](()=>(_0x14ad04&&_0x29780d[_0x2350ec(0x271)](_0x14ad04[_0x2350ec(0x1d8)]())[_0x2350ec(0x21f)](_0x4899cd=>{var _0x4217ec=_0x2350ec;_0x4672cf(_0x4899cd),_0x150e21[_0x4217ec(0x1c8)]=_0x4899cd[_0x4217ec(0x279)]['subscribe'](_0x40633a=>{_0xf15a83(_0x40633a);});}),()=>{var _0x28ab04=_0x2350ec,_0x447456;(_0x447456=_0x150e21['current'])==null||_0x447456[_0x28ab04(0x299)](),_0x150e21[_0x28ab04(0x1c8)]=null;}),[_0x14ad04,_0x29780d]),_0x44b9aa?_0x51a1f4['jsx'](_0xb6a611[_0x2350ec(0x2a2)],{'align':_0x2350ec(0x28d),'disabled':_0x11a766===_0x461c56['OFFLINE'],'className':_0x2350ec(0x23d),'overlay':_0x51a1f4[_0x2350ec(0x2a8)](_0x3d2a31,{'status':_0x11a766,'coordinator':_0x44b9aa}),'children':_0x51a1f4['jsx'](_0x2350ec(0x1e4),{'className':_0xb6a611['clsx'](_0x2350ec(0x225),{'univer-cursor-not-allowed':_0x11a766===_0x461c56[_0x2350ec(0x288)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11a766!==_0x461c56['OFFLINE']}),'type':_0x2350ec(0x1e4),'children':_0x51a1f4[_0x2350ec(0x2a8)](_0x396c16,{'className':_0x2350ec(0x215)})})}):null;}function _0x3d2a31(_0x3b7fe0){var _0x5d7fed=_0x5ed612;const {status:_0x3b6ac7,coordinator:_0x17406d}=_0x3b7fe0;switch(_0x3b6ac7){case _0x461c56[_0x5d7fed(0x1bf)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x3a93f7,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x1d2)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x4168ed,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x280)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x5421b2,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x288)]:return _0x51a1f4['jsx'](_0x2b5c4d,{});case _0x461c56[_0x5d7fed(0x1ef)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x38753f,{'coordinator':_0x17406d});default:return null;}}function _0x3a93f7(_0x174e11){var _0x52bbf5=_0x5ed612;const {coordinator:_0xb226d2}=_0x174e11;return _0x51a1f4[_0x52bbf5(0x219)](_0x51a1f4[_0x52bbf5(0x246)],{'children':[_0x51a1f4[_0x52bbf5(0x2a8)](_0x52bbf5(0x20f),{'className':_0x52bbf5(0x275),'children':'Present\x20this\x20document'}),_0x51a1f4[_0x52bbf5(0x2a8)](_0xb6a611[_0x52bbf5(0x1ca)],{'onClick':()=>_0xb226d2[_0x52bbf5(0x1d6)](),'children':_0x52bbf5(0x262)})]});}function _0x4168ed(_0x2b9be8){var _0x52465a=_0x5ed612;const {coordinator:_0x79bf52}=_0x2b9be8;return _0x51a1f4[_0x52465a(0x219)](_0x51a1f4[_0x52465a(0x246)],{'children':[_0x51a1f4[_0x52465a(0x2a8)](_0x52465a(0x20f),{'className':_0x52465a(0x275),'children':_0x52465a(0x212)}),_0x51a1f4['jsx'](_0xb6a611[_0x52465a(0x1ca)],{'onClick':()=>_0x79bf52[_0x52465a(0x25f)](),'children':_0x52465a(0x1ee)})]});}function _0x5421b2(_0x40f332){var _0x4515ae=_0x5ed612;const {coordinator:_0x42d4c8}=_0x40f332;return _0x51a1f4[_0x4515ae(0x219)](_0x51a1f4['Fragment'],{'children':[_0x51a1f4['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4515ae(0x230)}),_0x51a1f4[_0x4515ae(0x2a8)](_0xb6a611[_0x4515ae(0x1ca)],{'variant':_0x4515ae(0x25c),'onClick':()=>_0x42d4c8[_0x4515ae(0x23a)](),'children':_0x4515ae(0x1ce)})]});}function _0x38753f(_0x38dfe0){var _0x1fd126=_0x5ed612;const {coordinator:_0x2e2907}=_0x38dfe0;return _0x51a1f4[_0x1fd126(0x219)](_0x51a1f4[_0x1fd126(0x246)],{'children':[_0x51a1f4[_0x1fd126(0x2a8)](_0x1fd126(0x20f),{'className':_0x1fd126(0x275),'children':_0x1fd126(0x260)}),_0x51a1f4[_0x1fd126(0x2a8)](_0xb6a611[_0x1fd126(0x1ca)],{'variant':_0x1fd126(0x28b),'onClick':()=>_0x2e2907[_0x1fd126(0x21a)](),'children':_0x1fd126(0x290)})]});}function _0x2b5c4d(){var _0x13ce85=_0x5ed612;return _0x51a1f4[_0x13ce85(0x2a8)](_0x51a1f4[_0x13ce85(0x246)],{'children':'You\x27are\x20offline.'});}var _0xdcd2cc=Object[_0x5ed612(0x29f)],_0x48976d=(_0x6d752d,_0x46a775,_0x5e8840,_0x1ca8aa)=>{var _0x3ded54=_0x5ed612;for(var _0x35b99=_0x1ca8aa>0x1?void 0x0:_0x1ca8aa?_0xdcd2cc(_0x46a775,_0x5e8840):_0x46a775,_0x2bd556=_0x6d752d[_0x3ded54(0x26b)]-0x1,_0x395829;_0x2bd556>=0x0;_0x2bd556--)(_0x395829=_0x6d752d[_0x2bd556])&&(_0x35b99=_0x395829(_0x35b99)||_0x35b99);return _0x35b99;},_0x34f234=(_0x2944e7,_0x47815f)=>(_0x7b5b19,_0x22e6a7)=>_0x47815f(_0x7b5b19,_0x22e6a7,_0x2944e7);_0x5aed30[_0x5ed612(0x221)]=class extends _0x2d27d6['Disposable']{constructor(_0x511701,_0x5cecfb){var _0x3d56d3=_0x5ed612;super(),this['_injector']=_0x511701,this[_0x3d56d3(0x1bb)]=_0x5cecfb,this['_mountLiveShare']();}[_0x5ed612(0x2a3)](){var _0x4f07b7=_0x5ed612;this['disposeWithMe'](this[_0x4f07b7(0x1bb)][_0x4f07b7(0x1dc)](_0x11220d[_0x4f07b7(0x23c)][_0x4f07b7(0x26e)],()=>_0x11220d[_0x4f07b7(0x27b)](_0x944315,this[_0x4f07b7(0x21b)])));}},_0x5aed30[_0x5ed612(0x221)]=_0x48976d([_0x34f234(0x0,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x34f234(0x1,_0x11220d[_0x5ed612(0x293)])],_0x5aed30['DesktopLiveShareController']);var _0x190a06=Object[_0x5ed612(0x26d)],_0x3974e7=Object[_0x5ed612(0x29f)],_0x1dc0f5=(_0x1cbeac,_0x429807,_0x532b18)=>_0x429807 in _0x1cbeac?_0x190a06(_0x1cbeac,_0x429807,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x532b18}):_0x1cbeac[_0x429807]=_0x532b18,_0x5ce142=(_0x512fe2,_0x3b977c,_0x443ac3,_0x6d34fb)=>{for(var _0x8f187a=_0x6d34fb>0x1?void 0x0:_0x6d34fb?_0x3974e7(_0x3b977c,_0x443ac3):_0x3b977c,_0x37366d=_0x512fe2['length']-0x1,_0x619f10;_0x37366d>=0x0;_0x37366d--)(_0x619f10=_0x512fe2[_0x37366d])&&(_0x8f187a=_0x619f10(_0x8f187a)||_0x8f187a);return _0x8f187a;},_0x75881d=(_0x37ba73,_0x54f456)=>(_0x376596,_0x3d1615)=>_0x54f456(_0x376596,_0x3d1615,_0x37ba73),_0xc7956a=(_0x3fdcfe,_0x2e6a6a,_0x3a2930)=>_0x1dc0f5(_0x3fdcfe,typeof _0x2e6a6a!=_0x5ed612(0x1dd)?_0x2e6a6a+'':_0x2e6a6a,_0x3a2930);const _0x544a27=_0x5ed612(0x1fc);_0x5aed30[_0x5ed612(0x1c5)]=class extends _0x2d27d6[_0x5ed612(0x205)]{constructor(_0x432e64=_0x253ae8,_0xa560d8,_0xabcd86){var _0xb0c101=_0x5ed612;super(),this['_config']=_0x432e64,this[_0xb0c101(0x21b)]=_0xa560d8,this[_0xb0c101(0x264)]=_0xabcd86;const {..._0x1787c6}=_0x2d27d6['merge']({},_0x253ae8,this['_config']);this[_0xb0c101(0x264)][_0xb0c101(0x223)](_0x5daa30,_0x1787c6);}[_0x5ed612(0x22e)](){var _0x16b4d0=_0x5ed612;_0x2d27d6[_0x16b4d0(0x28f)](this[_0x16b4d0(0x21b)],_0x2d27d6[_0x16b4d0(0x204)]([[_0x330aba],[_0x5aed30[_0x16b4d0(0x278)]],[_0xc09cdd],[_0x5aed30[_0x16b4d0(0x221)]]],this[_0x16b4d0(0x211)]['override'])),_0x2d27d6[_0x16b4d0(0x1f0)](this[_0x16b4d0(0x21b)],[[_0xc09cdd]]);}[_0x5ed612(0x2b5)](){var _0x1d213a=_0x5ed612;_0x2d27d6[_0x1d213a(0x1f0)](this[_0x1d213a(0x21b)],[[_0x5aed30[_0x1d213a(0x221)]]]);}},_0xc7956a(_0x5aed30['UniverLiveSharePlugin'],_0x5ed612(0x29e),_0x2d27d6['UniverInstanceType']['UNIVER_UNKNOWN']),_0xc7956a(_0x5aed30[_0x5ed612(0x1c5)],_0x5ed612(0x1e2),_0x544a27),_0x5aed30[_0x5ed612(0x1c5)]=_0x5ce142([_0x2d27d6['DependentOn'](_0x4b90ca[_0x5ed612(0x2b3)]),_0x75881d(0x1,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x75881d(0x2,_0x2d27d6[_0x5ed612(0x226)])],_0x5aed30[_0x5ed612(0x1c5)]),_0x5aed30[_0x5ed612(0x283)]=_0x944315,_0x5aed30[_0x5ed612(0x1c1)]=_0x330aba,_0x5aed30[_0x5ed612(0x294)]=_0x461c56,Object[_0x5ed612(0x26d)](_0x5aed30,Symbol[_0x5ed612(0x24b)],{'value':_0x5ed612(0x1df)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-
|
|
3
|
+
"version": "0.8.0-nightly.202505261607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0-
|
|
51
|
-
"@univerjs/core": "0.8.0-
|
|
52
|
-
"@univerjs-pro/collaboration-client": "0.8.0-
|
|
53
|
-
"@univerjs/design": "0.8.0-
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/sheets": "0.8.0-
|
|
56
|
-
"@univerjs/ui": "0.8.0-
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202505261607",
|
|
51
|
+
"@univerjs/core": "0.8.0-nightly.202505261607",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202505261607",
|
|
53
|
+
"@univerjs/design": "0.8.0-nightly.202505261607",
|
|
54
|
+
"@univerjs/sheets": "0.8.0-nightly.202505261607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202505261607",
|
|
56
|
+
"@univerjs/ui": "0.8.0-nightly.202505261607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|