@univerjs-pro/live-share 0.8.0-beta.0 → 0.8.0-nightly.202505271607

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 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 _0x52bceb=_0xac8c;(function(_0x6a16e9,_0x56d853){var _0x1eae6c=_0xac8c,_0x7ef1c5=_0x6a16e9();while(!![]){try{var _0x43ed62=parseInt(_0x1eae6c(0x100))/0x1+-parseInt(_0x1eae6c(0xb2))/0x2*(-parseInt(_0x1eae6c(0x168))/0x3)+-parseInt(_0x1eae6c(0x132))/0x4*(-parseInt(_0x1eae6c(0x95))/0x5)+parseInt(_0x1eae6c(0xe2))/0x6+-parseInt(_0x1eae6c(0xe7))/0x7+parseInt(_0x1eae6c(0x136))/0x8*(-parseInt(_0x1eae6c(0xb0))/0x9)+parseInt(_0x1eae6c(0xd1))/0xa*(parseInt(_0x1eae6c(0xff))/0xb);if(_0x43ed62===_0x56d853)break;else _0x7ef1c5['push'](_0x7ef1c5['shift']());}catch(_0x4a1e2d){_0x7ef1c5['push'](_0x7ef1c5['shift']());}}}(_0xf020,0xe5ef1));var U=Object['defineProperty'],F=(_0x4f3dc2,_0x51a7c5,_0x515ec5)=>_0x51a7c5 in _0x4f3dc2?U(_0x4f3dc2,_0x51a7c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515ec5}):_0x4f3dc2[_0x51a7c5]=_0x515ec5,v=(_0x220b50,_0x2d1c6c,_0x5173d3)=>F(_0x220b50,typeof _0x2d1c6c!=_0x52bceb(0xa1)?_0x2d1c6c+'':_0x2d1c6c,_0x5173d3);Object[_0x52bceb(0xcd)](exports,Symbol[_0x52bceb(0x164)],{'value':_0x52bceb(0x108)});const m=require(_0x52bceb(0xfa)),o=require(_0x52bceb(0x106)),C=require(_0x52bceb(0x10b)),w=require(_0x52bceb(0x109)),p=require(_0x52bceb(0x169)),l=require(_0x52bceb(0xc9)),g=require(_0x52bceb(0xd7)),f=require('react'),_=require(_0x52bceb(0xf5)),D=require(_0x52bceb(0x15d)),b=require(_0x52bceb(0xdf)),$=_0x52bceb(0xc7),x={};class E extends o['Disposable']{constructor(){var _0x2393a3=_0x52bceb;super(...arguments),v(this,_0x2393a3(0x16c),new Set()),v(this,_0x2393a3(0xfd),new Set());}['registerSharedOperation'](_0x2d0ce7){var _0xf32967=_0x52bceb;return this['_sharedOperations']['add'](_0x2d0ce7),o['toDisposable'](()=>this[_0xf32967(0x16c)][_0xf32967(0x133)](_0x2d0ce7));}[_0x52bceb(0xb8)](_0x35f533){var _0x3e0e8a=_0x52bceb;return this[_0x3e0e8a(0xfd)][_0x3e0e8a(0x12d)](_0x35f533),o[_0x3e0e8a(0xbe)](()=>this[_0x3e0e8a(0xfd)]['delete'](_0x35f533));}[_0x52bceb(0x119)](_0x1e60c2){var _0x3c4896=_0x52bceb;return this[_0x3c4896(0x16c)]['has'](_0x1e60c2);}[_0x52bceb(0xb5)](_0x35503f){var _0x3ecf10=_0x52bceb;return Array[_0x3ecf10(0xf4)](this[_0x3ecf10(0xfd)])['map'](_0xb019eb=>_0xb019eb(_0x35503f));}}var H=Object[_0x52bceb(0xa4)],V=(_0x4046ac,_0x2e6e49,_0x22462d,_0x46ac3b)=>{var _0x53fa86=_0x52bceb;for(var _0x3848f3=_0x46ac3b>0x1?void 0x0:_0x46ac3b?H(_0x2e6e49,_0x22462d):_0x2e6e49,_0x1cb656=_0x4046ac[_0x53fa86(0x127)]-0x1,_0x31f5e9;_0x1cb656>=0x0;_0x1cb656--)(_0x31f5e9=_0x4046ac[_0x1cb656])&&(_0x3848f3=_0x31f5e9(_0x3848f3)||_0x3848f3);return _0x3848f3;},k=(_0x29ecc0,_0x7515e9)=>(_0x3a2dc0,_0x53d199)=>_0x7515e9(_0x3a2dc0,_0x53d199,_0x29ecc0);let O=class extends o['Disposable']{constructor(_0x58809c){var _0x2360be=_0x52bceb;super(),this['_liveShareService']=_0x58809c,this[_0x2360be(0x9c)]();}[_0x52bceb(0x9c)](){var _0x75ef0c=_0x52bceb;[w['SetZoomRatioOperation']['id'],w[_0x75ef0c(0x14a)]['id'],C[_0x75ef0c(0x118)]['id']]['forEach'](_0x5100d4=>{var _0x2d400b=_0x75ef0c;this[_0x2d400b(0x110)](this[_0x2d400b(0xd0)]['registerSharedOperation'](_0x5100d4));});}};O=V([k(0x0,o[_0x52bceb(0xe6)](E))],O);var u=function(){var _0x263b10=_0x52bceb;return u=Object[_0x263b10(0x172)]||function(_0x275ea6){var _0x2e18a4=_0x263b10;for(var _0x3b0a3e,_0x43809b=0x1,_0x17e56c=arguments['length'];_0x43809b<_0x17e56c;_0x43809b++){_0x3b0a3e=arguments[_0x43809b];for(var _0x13ccca in _0x3b0a3e)Object[_0x2e18a4(0x11b)]['hasOwnProperty']['call'](_0x3b0a3e,_0x13ccca)&&(_0x275ea6[_0x13ccca]=_0x3b0a3e[_0x13ccca]);}return _0x275ea6;},u[_0x263b10(0xb9)](this,arguments);},M=function(_0x3c3337,_0x2e7a91){var _0x562ef3=_0x52bceb,_0x5ac1f5={};for(var _0x14a806 in _0x3c3337)Object['prototype'][_0x562ef3(0x125)]['call'](_0x3c3337,_0x14a806)&&_0x2e7a91['indexOf'](_0x14a806)<0x0&&(_0x5ac1f5[_0x14a806]=_0x3c3337[_0x14a806]);if(_0x3c3337!=null&&typeof Object[_0x562ef3(0xc6)]==_0x562ef3(0x12f)){for(var _0x1fa47b=0x0,_0x14a806=Object['getOwnPropertySymbols'](_0x3c3337);_0x1fa47b<_0x14a806[_0x562ef3(0x127)];_0x1fa47b++)_0x2e7a91[_0x562ef3(0x146)](_0x14a806[_0x1fa47b])<0x0&&Object[_0x562ef3(0x11b)]['propertyIsEnumerable'][_0x562ef3(0xab)](_0x3c3337,_0x14a806[_0x1fa47b])&&(_0x5ac1f5[_0x14a806[_0x1fa47b]]=_0x3c3337[_0x14a806[_0x1fa47b]]);}return _0x5ac1f5;},j=f[_0x52bceb(0x174)](function(_0x17b5a2,_0x151cf3){var _0x41e522=_0x52bceb,_0x22a7fa=_0x17b5a2['icon'],_0x500d00=_0x17b5a2['id'],_0x306ecc=_0x17b5a2['className'],_0x5b60c1=_0x17b5a2['extend'],_0x5b177b=M(_0x17b5a2,[_0x41e522(0x9b),'id',_0x41e522(0xce),'extend']),_0x2fcaa6=_0x41e522(0x149)[_0x41e522(0xf0)](_0x500d00,'\x20')['concat'](_0x306ecc||'')['trim'](),_0x3e1e8f=f['useRef']('_'[_0x41e522(0xf0)](G()));return y(_0x22a7fa,''[_0x41e522(0xf0)](_0x500d00),{'defIds':_0x22a7fa[_0x41e522(0x167)],'idSuffix':_0x3e1e8f[_0x41e522(0x11c)]},u({'ref':_0x151cf3,'className':_0x2fcaa6},_0x5b177b),_0x5b60c1);});function _0xac8c(_0x3e1a80,_0x40fdd0){var _0xf02072=_0xf020();return _0xac8c=function(_0xac8cb4,_0x5e022f){_0xac8cb4=_0xac8cb4-0x95;var _0x32c950=_0xf02072[_0xac8cb4];return _0x32c950;},_0xac8c(_0x3e1a80,_0x40fdd0);}function y(_0x5f165d,_0x4f480d,_0x5e54d3,_0x44be14,_0xec00e7){var _0xcdba02=_0x52bceb;return f[_0xcdba02(0xcf)](_0x5f165d[_0xcdba02(0xdc)],u(u({'key':_0x4f480d},q(_0x5f165d,_0x5e54d3,_0xec00e7)),_0x44be14),(W(_0x5f165d,_0x5e54d3)[_0xcdba02(0xdb)]||[])[_0xcdba02(0xbf)](function(_0x4e0fb0,_0x3d6d8f){var _0x164860=_0xcdba02;return y(_0x4e0fb0,''['concat'](_0x4f480d,'-')[_0x164860(0xf0)](_0x5f165d[_0x164860(0xdc)],'-')[_0x164860(0xf0)](_0x3d6d8f),_0x5e54d3,void 0x0,_0xec00e7);}));}function q(_0x2f0b96,_0x567341,_0x56b99c){var _0x30dcb5=_0x52bceb,_0x28f864=u({},_0x2f0b96['attrs']);_0x56b99c!=null&&_0x56b99c['colorChannel1']&&_0x28f864['fill']===_0x30dcb5(0xbc)&&(_0x28f864[_0x30dcb5(0x15b)]=_0x56b99c[_0x30dcb5(0xbc)]),_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x175)&&_0x28f864['id']&&(_0x28f864['id']=_0x28f864['id']+_0x567341['idSuffix']),Object[_0x30dcb5(0x153)](_0x28f864)[_0x30dcb5(0x126)](function(_0x4b3a32){var _0x4c087d=_0x30dcb5,_0x52f9aa=_0x4b3a32[0x0],_0x1f882c=_0x4b3a32[0x1];_0x52f9aa==='mask'&&typeof _0x1f882c==_0x4c087d(0xa0)&&(_0x28f864[_0x52f9aa]=_0x1f882c['replace'](/url\(#(.*)\)/,_0x4c087d(0xbb)[_0x4c087d(0xf0)](_0x567341['idSuffix'],')')));});var _0x15cb6c=_0x567341[_0x30dcb5(0x167)];return!_0x15cb6c||_0x15cb6c[_0x30dcb5(0x127)]===0x0||(_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x179)&&_0x28f864['xlink:href']&&(_0x28f864['xlink:href']=_0x28f864['xlink:href']+_0x567341[_0x30dcb5(0xac)]),Object['entries'](_0x28f864)[_0x30dcb5(0x126)](function(_0x404985){var _0x1c387f=_0x30dcb5,_0x5b777f=_0x404985[0x0],_0x4f1376=_0x404985[0x1];typeof _0x4f1376==_0x1c387f(0xa0)&&(_0x28f864[_0x5b777f]=_0x4f1376[_0x1c387f(0xb3)](/url\(#(.*)\)/,_0x1c387f(0xbb)[_0x1c387f(0xf0)](_0x567341[_0x1c387f(0xac)],')')));})),_0x28f864;}function W(_0x415eba,_0x4d445a){var _0x3dd35a=_0x52bceb,_0x59d4a4,_0x2aca10=_0x4d445a['defIds'];return!_0x2aca10||_0x2aca10[_0x3dd35a(0x127)]===0x0?_0x415eba:_0x415eba['tag']===_0x3dd35a(0x99)&&(!((_0x59d4a4=_0x415eba[_0x3dd35a(0xdb)])===null||_0x59d4a4===void 0x0)&&_0x59d4a4[_0x3dd35a(0x127)])?u(u({},_0x415eba),{'children':_0x415eba[_0x3dd35a(0xdb)][_0x3dd35a(0xbf)](function(_0x7d7048){var _0x20c4b7=_0x3dd35a;return typeof _0x7d7048[_0x20c4b7(0xb4)]['id']=='string'&&_0x2aca10&&_0x2aca10['indexOf'](_0x7d7048[_0x20c4b7(0xb4)]['id'])>-0x1?u(u({},_0x7d7048),{'attrs':u(u({},_0x7d7048[_0x20c4b7(0xb4)]),{'id':_0x7d7048[_0x20c4b7(0xb4)]['id']+_0x4d445a[_0x20c4b7(0xac)]})}):_0x7d7048;})}):_0x415eba;}function G(){var _0x21a47d=_0x52bceb;return Math[_0x21a47d(0x13f)]()[_0x21a47d(0x163)](0x24)[_0x21a47d(0x14b)](0x2,0x8);}j[_0x52bceb(0xa9)]=_0x52bceb(0x120);var B={'tag':'svg','attrs':{'xmlns':_0x52bceb(0xf1),'fill':_0x52bceb(0xfc),'viewBox':'0\x200\x2017\x2017','width':_0x52bceb(0x11d),'height':_0x52bceb(0x11d)},'children':[{'tag':_0x52bceb(0xad),'attrs':{'fill':'currentColor','d':_0x52bceb(0x16b)}},{'tag':'path','attrs':{'fill':_0x52bceb(0x154),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x52bceb(0xfb),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x23af4e,_0x57e4cc){var _0x4843d1=_0x52bceb;return f[_0x4843d1(0xcf)](j,Object['assign']({},_0x23af4e,{'id':_0x4843d1(0x138),'ref':_0x57e4cc,'icon':B}));});P['displayName']=_0x52bceb(0x114);var Y=Object[_0x52bceb(0xa4)],R=(_0x367452,_0x754b23,_0x33ff28,_0x5a904b)=>{var _0x47be8a=_0x52bceb;for(var _0x1639e0=_0x5a904b>0x1?void 0x0:_0x5a904b?Y(_0x754b23,_0x33ff28):_0x754b23,_0x34f2e0=_0x367452[_0x47be8a(0x127)]-0x1,_0x1059f3;_0x34f2e0>=0x0;_0x34f2e0--)(_0x1059f3=_0x367452[_0x34f2e0])&&(_0x1639e0=_0x1059f3(_0x1639e0)||_0x1639e0);return _0x1639e0;},S=(_0x7fb1f6,_0x77116d)=>(_0xfe5bb1,_0x323a70)=>_0x77116d(_0xfe5bb1,_0x323a70,_0x7fb1f6);exports[_0x52bceb(0xc8)]=class extends o[_0x52bceb(0x128)]{constructor(_0x4cd6a7,_0x5b60a2,_0x5df010){var _0x427abc=_0x52bceb;super(),v(this,_0x427abc(0xd5),new Map()),(this[_0x427abc(0xc2)]=_0x4cd6a7,this[_0x427abc(0x10e)]=_0x5b60a2,this[_0x427abc(0xa7)]=_0x5df010,this[_0x427abc(0x9c)]());}async[_0x52bceb(0xdd)](_0x2ab6b4){var _0xfeb58a=_0x52bceb;return this[_0xfeb58a(0xd5)]['has'](_0x2ab6b4)||await this[_0xfeb58a(0x134)](_0x2ab6b4),this['_entities'][_0xfeb58a(0x141)](_0x2ab6b4);}[_0x52bceb(0x9c)](){var _0x5a3527=_0x52bceb;this[_0x5a3527(0xc2)]['getTypeOfUnitAdded$'](o[_0x5a3527(0x107)][_0x5a3527(0x121)])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](async _0x13652f=>{var _0x548ce7=_0x5a3527;const _0x3ff401=_0x13652f[_0x548ce7(0x131)]();this['_entities'][_0x548ce7(0x14e)](_0x3ff401)||this['_startLiveShareCoordinator'](_0x3ff401);}),this[_0x5a3527(0xc2)][_0x5a3527(0x10a)](o[_0x5a3527(0x107)]['UNIVER_SHEET'])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](_0x402755=>{var _0x2e5546=_0x5a3527;const _0x539169=_0x402755['getUnitId'](),_0x434bc0=this['_entities'][_0x2e5546(0x141)](_0x539169);_0x434bc0==null||_0x434bc0[_0x2e5546(0x9f)]();});}async['_startLiveShareCoordinator'](_0x2152d4){var _0x26ce26=_0x52bceb;const _0x3a9773=await this['_collabSessionService']['requireSession'](_0x2152d4),_0x56938c=this[_0x26ce26(0x10e)][_0x26ce26(0x10c)](exports['LiveShareCoordinator'],_0x2152d4,_0x3a9773);return _0x56938c['init'](),this[_0x26ce26(0xd5)][_0x26ce26(0x111)](_0x2152d4,_0x56938c),_0x56938c;}},exports[_0x52bceb(0xc8)]=R([S(0x0,o[_0x52bceb(0x177)]),S(0x1,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),S(0x2,o['Inject'](m[_0x52bceb(0x135)]))],exports[_0x52bceb(0xc8)]);var h=(_0x3b1e8a=>(_0x3b1e8a[_0x52bceb(0xf3)]=_0x52bceb(0x16d),_0x3b1e8a[_0x52bceb(0xed)]=_0x52bceb(0xca),_0x3b1e8a[_0x52bceb(0xc4)]=_0x52bceb(0xe4),_0x3b1e8a[_0x52bceb(0xf6)]=_0x52bceb(0xf7),_0x3b1e8a[_0x52bceb(0x10d)]=_0x52bceb(0xf9),_0x3b1e8a))(h||{});const Z=_0x52bceb(0x162),J=0xc8;exports[_0x52bceb(0x10f)]=class extends o[_0x52bceb(0x128)]{constructor(_0x5d7f72,_0x2ea6c8,_0xf48875,_0x5976bd,_0x1d7441){var _0x679284=_0x52bceb;super(),v(this,_0x679284(0xc1),new D[(_0x679284(0xcb))]('idle')),v(this,_0x679284(0x13a),this['_status$'][_0x679284(0xc0)]()),v(this,_0x679284(0x9c),!0x1),v(this,_0x679284(0x144),null),v(this,_0x679284(0xc5),null),(this[_0x679284(0xf2)]=_0x5d7f72,this[_0x679284(0x15a)]=_0x2ea6c8,this['_configService']=_0xf48875,this[_0x679284(0xd0)]=_0x5976bd,this[_0x679284(0xef)]=_0x1d7441);}get[_0x52bceb(0x11a)](){var _0x1e9af3=_0x52bceb;return this[_0x1e9af3(0xc1)][_0x1e9af3(0x102)]();}[_0x52bceb(0x9f)](){var _0x383e87=_0x52bceb,_0x284968;(_0x284968=this['_commandDisposable'])==null||_0x284968[_0x383e87(0x9f)](),this[_0x383e87(0xc1)][_0x383e87(0x130)]('idle'),this['_status$'][_0x383e87(0x101)]();}[_0x52bceb(0x113)](){var _0x585f48=_0x52bceb;this['_init']||(this['_init']=!0x0,this[_0x585f48(0x15a)][_0x585f48(0x98)][_0x585f48(0xa5)](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x3664e2=>{var _0x5bd626=_0x585f48;switch(_0x3664e2){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m[_0x5bd626(0xde)][_0x5bd626(0xb6)]:this[_0x5bd626(0x14f)]();break;}}),this['_collabSession'][_0x585f48(0x150)]['pipe'](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x1a3e24=>{var _0x25c8f5=_0x585f48;const {eventID:_0x2c6d80}=_0x1a3e24;switch(_0x2c6d80){case _[_0x25c8f5(0x137)][_0x25c8f5(0x112)]:this[_0x25c8f5(0x13d)](_0x1a3e24);break;case _[_0x25c8f5(0x137)]['LIVESHARE_OPERATION']:this[_0x25c8f5(0xaa)](_0x1a3e24);break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xae)]:this[_0x25c8f5(0x123)]();break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xaf)]:this[_0x25c8f5(0xe1)](_0x1a3e24);break;}}));}['tryStartPresenting'](){var _0x1eb931=_0x52bceb;this['_collabSession']['send']({'eventID':_[_0x1eb931(0x137)][_0x1eb931(0x171)],'data':{'unitID':this[_0x1eb931(0xf2)],'userID':this[_0x1eb931(0x15a)][_0x1eb931(0x115)]()}},this[_0x1eb931(0xf2)]);}[_0x52bceb(0xa8)](){var _0x38b226=_0x52bceb;this[_0x38b226(0x11a)]===_0x38b226(0xf9)&&(this[_0x38b226(0xc1)][_0x38b226(0x130)](_0x38b226(0xca)),this[_0x38b226(0x15a)]['send']({'eventID':_[_0x38b226(0x137)][_0x38b226(0xae)],'data':{'unitID':this[_0x38b226(0xf2)]}},this[_0x38b226(0xf2)]));}[_0x52bceb(0x11e)](){var _0x494573=_0x52bceb;this[_0x494573(0x11a)]==='not-following'&&(this['_status$'][_0x494573(0x130)]('following'),this[_0x494573(0x170)]());}[_0x52bceb(0xc3)](){var _0x3c4581=_0x52bceb;this['_status']===_0x3c4581(0xe4)&&this[_0x3c4581(0x11f)]();}['_handleNewHost'](_0x526ac3){var _0x10f519=_0x52bceb;const {presenter:_0x4d1274}=_0x526ac3[_0x10f519(0x103)],_0x1cb90f=this[_0x10f519(0x15a)][_0x10f519(0x115)]();this[_0x10f519(0xc5)]=_0x4d1274,_0x4d1274===_0x1cb90f?(this[_0x10f519(0x11f)](),this[_0x10f519(0x14d)]()):this[_0x10f519(0x11a)]!==_0x10f519(0xf7)&&(this[_0x10f519(0xba)](),this['_startFollowing']());}['_fetchOperations'](){var _0x329825=_0x52bceb;const _0xd58e76={'eventID':_[_0x329825(0x137)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x329825(0x15a)]['send'](_0xd58e76,this[_0x329825(0xf2)]);}[_0x52bceb(0x123)](){var _0x4d792d=_0x52bceb;this[_0x4d792d(0xc5)]=null,this['_status']!==_0x4d792d(0xf9)&&this[_0x4d792d(0x165)]();}[_0x52bceb(0xe1)](_0x94fe05){var _0x38c512=_0x52bceb;if(this['_status']===_0x38c512(0xe4)&&this[_0x38c512(0xc5)]===_0x94fe05['data']['memberID']){const _0x3f2f55=_[_0x38c512(0x105)](_0x94fe05[_0x38c512(0x103)])[_0x38c512(0xda)][_0x38c512(0x14c)]()[_0x38c512(0x145)](_0x38516f=>_0x38516f['id']===C[_0x38c512(0x161)]['id']);if(_0x3f2f55){const _0x29e567=_0x3f2f55[_0x38c512(0x9d)][_0x38c512(0x139)],_0x31baf5=_0x3f2f55['params'][_0x38c512(0xf8)]['id'];setTimeout(()=>{var _0x26ee57=_0x38c512;this[_0x26ee57(0xef)][_0x26ee57(0x16e)](C[_0x26ee57(0x118)]['id'],{'unitId':_0x29e567,'subUnitId':_0x31baf5},{'fromCollab':!0x0});});}}}[_0x52bceb(0x14d)](){var _0x273e06=_0x52bceb;this[_0x273e06(0xc1)][_0x273e06(0x130)](_0x273e06(0xf9));const _0x46fe4d=new Map(),_0x49c898=this[_0x273e06(0x144)]=new o['DisposableCollection']();_0x49c898['add'](o[_0x273e06(0xbe)](()=>{var _0x14b4e7=_0x273e06;_0x46fe4d[_0x14b4e7(0x126)](_0x344de1=>_0x344de1[_0x14b4e7(0x101)]()),_0x46fe4d['clear']();})),_0x49c898[_0x273e06(0x12d)](this[_0x273e06(0xef)]['onCommandExecuted'](_0x2b8faf=>{var _0x2dba5e=_0x273e06,_0x1fc7e5;if(_0x2b8faf[_0x2dba5e(0x15c)]!==o[_0x2dba5e(0x13b)][_0x2dba5e(0x13e)]||!this[_0x2dba5e(0xd0)][_0x2dba5e(0x119)](_0x2b8faf['id']))return;const {id:_0xdcf97f}=_0x2b8faf;let _0x144da6;_0x46fe4d[_0x2dba5e(0x14e)](_0xdcf97f)?_0x144da6=_0x46fe4d['get'](_0xdcf97f):(_0x144da6=new D['Subject'](),_0x46fe4d['set'](_0xdcf97f,_0x144da6),_0x144da6[_0x2dba5e(0xa5)](b[_0x2dba5e(0x151)]((_0x1fc7e5=this[_0x2dba5e(0xea)][_0x2dba5e(0x96)](Z))!=null?_0x1fc7e5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50c49f=>{var _0x270d1f=_0x2dba5e;this[_0x270d1f(0x15a)][_0x270d1f(0x116)]({'eventID':_[_0x270d1f(0x137)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x270d1f(0xf2)],'operations':{[_0x50c49f['id']]:{'id':_0x50c49f['id'],'params':JSON[_0x270d1f(0xa3)](_0x50c49f[_0x270d1f(0x9d)])}}}},this[_0x270d1f(0xf2)]);})),_0x144da6[_0x2dba5e(0x130)](_0x2b8faf);})),this[_0x273e06(0xd0)][_0x273e06(0xb5)](this['_unitID'])[_0x273e06(0x126)](_0x414c65=>this[_0x273e06(0x15a)][_0x273e06(0x116)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x273e06(0xf2)],'operations':{[_0x414c65['id']]:{'id':_0x414c65['id'],'params':JSON[_0x273e06(0xa3)](_0x414c65[_0x273e06(0x9d)])}}}},this[_0x273e06(0xf2)]));}[_0x52bceb(0xba)](){var _0x2e3e75=_0x52bceb,_0x3e3eb8;this['_status$'][_0x2e3e75(0x130)](_0x2e3e75(0xca)),(_0x3e3eb8=this['_commandDisposable'])==null||_0x3e3eb8[_0x2e3e75(0x9f)](),this[_0x2e3e75(0x144)]=null;}['_startFollowing'](){var _0x353fc0=_0x52bceb,_0x47ef17;(_0x47ef17=this[_0x353fc0(0x144)])==null||_0x47ef17[_0x353fc0(0x9f)](),this['_status$'][_0x353fc0(0x130)](_0x353fc0(0xe4));}[_0x52bceb(0x165)](){var _0x29442c=_0x52bceb,_0x4ca65c;this['_status$'][_0x29442c(0x130)](_0x29442c(0xca)),(_0x4ca65c=this['_commandDisposable'])==null||_0x4ca65c[_0x29442c(0x9f)](),this[_0x29442c(0x144)]=null;}[_0x52bceb(0x11f)](){var _0x468d2d=_0x52bceb,_0x22320c;this[_0x468d2d(0xc1)][_0x468d2d(0x130)]('not-following'),(_0x22320c=this['_commandDisposable'])==null||_0x22320c[_0x468d2d(0x9f)]();}[_0x52bceb(0xaa)](_0xe38ed1){var _0x23c337=_0x52bceb;if([_0x23c337(0xf9),_0x23c337(0xf7),'offline'][_0x23c337(0x140)](this[_0x23c337(0x11a)])||!_0xe38ed1['data'][_0x23c337(0xcc)]||_0xe38ed1[_0x23c337(0x103)][_0x23c337(0xcc)]===this[_0x23c337(0x15a)]['getMemberID']())return;this['_status']===_0x23c337(0xca)&&this[_0x23c337(0x170)]();const _0x3d21f4=_0xe38ed1[_0x23c337(0x103)]['operations'];Object[_0x23c337(0x143)](_0x3d21f4)[_0x23c337(0x126)](_0x395686=>{var _0x5e3447=_0x23c337;this['_commandService'][_0x5e3447(0x16e)](_0x395686['id'],_0x395686[_0x5e3447(0x9d)]?JSON[_0x5e3447(0x15e)](_0x395686[_0x5e3447(0x9d)]):null,{'fromCollab':!0x0});});}[_0x52bceb(0x158)](){var _0x25af69=_0x52bceb,_0x25a1e1;this['_status$']['next']('offline'),(_0x25a1e1=this[_0x25af69(0x144)])==null||_0x25a1e1[_0x25af69(0x9f)]();}[_0x52bceb(0x14f)](){var _0x26e704=_0x52bceb;this[_0x26e704(0xc1)][_0x26e704(0x130)]('idle'),this[_0x26e704(0xfe)]();}},exports[_0x52bceb(0x10f)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x52bceb(0xe6)](E)),S(0x4,o['ICommandService'])],exports[_0x52bceb(0x10f)]);function A(){var _0x3cc8de=_0x52bceb;const _0x1f16c1=p[_0x3cc8de(0x9a)](exports[_0x3cc8de(0xc8)]),_0x2104e5=p[_0x3cc8de(0x9a)](o[_0x3cc8de(0x177)]),_0x4bd499=p[_0x3cc8de(0x12e)](()=>_0x2104e5[_0x3cc8de(0x15f)](o[_0x3cc8de(0x107)][_0x3cc8de(0x121)]),void 0x0,!0x1,[]),[_0x250d64,_0x5a79e4]=f['useState'](null),[_0x412a26,_0x114c5d]=f['useState'](h[_0x3cc8de(0xed)]),_0x56310d=f[_0x3cc8de(0x147)](null);return f[_0x3cc8de(0x12c)](()=>(_0x4bd499&&_0x1f16c1[_0x3cc8de(0xdd)](_0x4bd499[_0x3cc8de(0x131)]())[_0x3cc8de(0x160)](_0x2759ce=>{var _0x449d94=_0x3cc8de;_0x5a79e4(_0x2759ce),_0x56310d[_0x449d94(0x11c)]=_0x2759ce[_0x449d94(0x13a)][_0x449d94(0x148)](_0x11b877=>{_0x114c5d(_0x11b877);});}),()=>{var _0x3b7368=_0x3cc8de,_0x5186a9;(_0x5186a9=_0x56310d[_0x3b7368(0x11c)])==null||_0x5186a9['unsubscribe'](),_0x56310d[_0x3b7368(0x11c)]=null;}),[_0x4bd499,_0x1f16c1]),_0x250d64?l[_0x3cc8de(0xd4)](g[_0x3cc8de(0xe5)],{'align':_0x3cc8de(0xd9),'disabled':_0x412a26===h[_0x3cc8de(0xf3)],'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':l[_0x3cc8de(0xd4)](K,{'status':_0x412a26,'coordinator':_0x250d64}),'children':l['jsx'](_0x3cc8de(0x173),{'className':g[_0x3cc8de(0xbd)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x412a26===h[_0x3cc8de(0xf3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x412a26!==h[_0x3cc8de(0xf3)]}),'type':_0x3cc8de(0x173),'children':l[_0x3cc8de(0xd4)](P,{'className':'univer-size-4'})})}):null;}function K(_0x25abe4){var _0x1a438a=_0x52bceb;const {status:_0x418541,coordinator:_0x260621}=_0x25abe4;switch(_0x418541){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x260621});case h[_0x1a438a(0xc4)]:return l[_0x1a438a(0xd4)](Q,{'coordinator':_0x260621});case h['NOT_FOLLOWING']:return l[_0x1a438a(0xd4)](X,{'coordinator':_0x260621});case h[_0x1a438a(0xf3)]:return l[_0x1a438a(0xd4)](te,{});case h['PRESENTING']:return l[_0x1a438a(0xd4)](ee,{'coordinator':_0x260621});default:return null;}}function z(_0x597c51){var _0x28403b=_0x52bceb;const {coordinator:_0x41d267}=_0x597c51;return l[_0x28403b(0xe3)](l[_0x28403b(0x159)],{'children':[l[_0x28403b(0xd4)](_0x28403b(0x16a),{'className':_0x28403b(0x97),'children':_0x28403b(0x9e)}),l['jsx'](g[_0x28403b(0xee)],{'onClick':()=>_0x41d267[_0x28403b(0x12a)](),'children':'Start'})]});}function Q(_0x53123f){var _0x3bbc75=_0x52bceb;const {coordinator:_0x6fd9a3}=_0x53123f;return l['jsxs'](l['Fragment'],{'children':[l[_0x3bbc75(0xd4)](_0x3bbc75(0x16a),{'className':_0x3bbc75(0x97),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3bbc75(0xd4)](g[_0x3bbc75(0xee)],{'onClick':()=>_0x6fd9a3[_0x3bbc75(0xc3)](),'children':_0x3bbc75(0xd6)})]});}function X(_0xcfc940){var _0x4c7f7f=_0x52bceb;const {coordinator:_0x50b0c4}=_0xcfc940;return l[_0x4c7f7f(0xe3)](l[_0x4c7f7f(0x159)],{'children':[l[_0x4c7f7f(0xd4)](_0x4c7f7f(0x16a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'variant':_0x4c7f7f(0x155),'onClick':()=>_0x50b0c4[_0x4c7f7f(0x11e)](),'children':_0x4c7f7f(0xa2)})]});}function ee(_0x499fc7){var _0x1cc6be=_0x52bceb;const {coordinator:_0x5c66b3}=_0x499fc7;return l[_0x1cc6be(0xe3)](l[_0x1cc6be(0x159)],{'children':[l[_0x1cc6be(0xd4)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1cc6be(0xa6)}),l['jsx'](g[_0x1cc6be(0xee)],{'variant':'default','onClick':()=>_0x5c66b3['stopPresenting'](),'children':_0x1cc6be(0xd2)})]});}function te(){var _0x3f7798=_0x52bceb;return l[_0x3f7798(0xd4)](l[_0x3f7798(0x159)],{'children':_0x3f7798(0xec)});}var ie=Object[_0x52bceb(0xa4)],ne=(_0x290d8e,_0x376297,_0xa91158,_0x5dc8ef)=>{var _0xe56df2=_0x52bceb;for(var _0x43a74c=_0x5dc8ef>0x1?void 0x0:_0x5dc8ef?ie(_0x376297,_0xa91158):_0x376297,_0x3b8de5=_0x290d8e[_0xe56df2(0x127)]-0x1,_0x11f039;_0x3b8de5>=0x0;_0x3b8de5--)(_0x11f039=_0x290d8e[_0x3b8de5])&&(_0x43a74c=_0x11f039(_0x43a74c)||_0x43a74c);return _0x43a74c;},L=(_0x30d3b6,_0xc756b9)=>(_0x2dcbd1,_0x3861f4)=>_0xc756b9(_0x2dcbd1,_0x3861f4,_0x30d3b6);exports[_0x52bceb(0x156)]=class extends o[_0x52bceb(0xb7)]{constructor(_0x2387f6,_0x59134f){var _0x20b417=_0x52bceb;super(),this[_0x20b417(0x10e)]=_0x2387f6,this['_uiPartsService']=_0x59134f,this[_0x20b417(0x129)]();}[_0x52bceb(0x129)](){var _0x332db3=_0x52bceb;this[_0x332db3(0x110)](this['_uiPartsService'][_0x332db3(0xb1)](p[_0x332db3(0xeb)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x332db3(0x10e)])));}},exports[_0x52bceb(0x156)]=ne([L(0x0,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),L(0x1,p[_0x52bceb(0xe8)])],exports[_0x52bceb(0x156)]);function _0xf020(){var _0x258137=['toDisposable','map','asObservable','_status$','_univerInstanceService','stopFollowing','FOLLOWING','_presenter','getOwnPropertySymbols','live-share.config','LiveShareController','react/jsx-runtime','idle','BehaviorSubject','presenter','defineProperty','className','createElement','_liveShareService','840oYQXTB','Stop\x20presenting','DependentOn','jsx','_entities','Stop\x20following','@univerjs/design','UniverCollaborationClientPlugin','end','mutations','children','tag','getLiveShareCoordinator','SessionStatus','rxjs/operators','Plugin','_handleNewChangeSets','1092456euYgbM','jsxs','following','Dropdown','Inject','4714430PrOjEx','IUIPartsService','dispose$','_configService','BuiltInUIPart','You\x27are\x20offline.','IDLE','Button','_commandService','concat','http://www.w3.org/2000/svg','_unitID','OFFLINE','from','@univerjs-pro/collaboration','NOT_FOLLOWING','not-following','sheet','presenting','@univerjs-pro/collaboration-client','evenodd','none','_reporters','_fetchOperations','2684Dlbhct','325304FWHkvj','complete','getValue','data','_config','parseProtocolChangeset','@univerjs/core','UniverInstanceType','Module','@univerjs/sheets-ui','getTypeOfUnitDisposed$','@univerjs/sheets','createInstance','PRESENTING','_injector','LiveShareCoordinator','disposeWithMe','set','LIVESHARE_NEW_HOST','init','LiveShareIcon','getMemberID','send','merge','SetWorksheetActiveOperation','shouldShareOperation','_status','prototype','current','1em','startFollowing','_stopFollowing','UniverIcon','UNIVER_SHEET','LiveShareStatus','_handleTerminate','UniverLiveSharePlugin','hasOwnProperty','forEach','length','RxDisposable','_mountLiveShare','tryStartPresenting','registerDependencies','useEffect','add','useObservable','function','next','getUnitId','636668CWxzQE','delete','_startLiveShareCoordinator','CollaborationSessionService','7649032cncMRP','CollaborationEvent','live-share-icon','unitId','status$','CommandType','touchDependencies','_handleNewHost','OPERATION','random','includes','get','LiveShare','values','_commandDisposable','find','indexOf','useRef','subscribe','univerjs-icon\x20univerjs-icon-','SetScrollOperation','substring','reverse','_startPresenting','has','_handleOnline','event$','throttleTime','onRendered','entries','currentColor','text','DesktopLiveShareController','IConfigService','_handleOffline','Fragment','_collabSession','fill','type','rxjs','parse','getCurrentTypeOfUnit$','then','InsertSheetMutation','SAME_OPERATION_SHARE_INTERVAL','toString','toStringTag','_beIdle','UNIVER_UNKNOWN','defIds','33GuPcRc','@univerjs/ui','div','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_sharedOperations','offline','executeCommand','LiveShareService','_startFollowing','LIVESHARE_REQUEST_HOST','assign','button','forwardRef','mask','Injector','IUniverInstanceService','takeUntil','use','10YduSeI','getConfig','univer-w-full\x20univer-mb-3\x20univer-text-sm','sessionStatus$','defs','useDependency','icon','_init','params','Present\x20this\x20document','dispose','string','symbol','Start\x20following','stringify','getOwnPropertyDescriptor','pipe','You\x27re\x20presenting\x20the\x20document','_collabSessionService','stopPresenting','displayName','_handleOperation','call','idSuffix','path','LIVESHARE_TERMINATE','NEW_CHANGESETS','9kxpgWo','registerComponent','313676psrFwD','replace','attrs','getInitialStates','ONLINE','Disposable','registerInitialStateReporter','apply','_stopPresenting','url(#$1','colorChannel1','clsx'];_0xf020=function(){return _0x258137;};return _0xf020();}var re=Object[_0x52bceb(0xcd)],se=Object[_0x52bceb(0xa4)],oe=(_0x5094c4,_0x4ed784,_0x3bad58)=>_0x4ed784 in _0x5094c4?re(_0x5094c4,_0x4ed784,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bad58}):_0x5094c4[_0x4ed784]=_0x3bad58,ae=(_0xbd2a26,_0x4ef222,_0x2680dd,_0x594741)=>{for(var _0xf76624=_0x594741>0x1?void 0x0:_0x594741?se(_0x4ef222,_0x2680dd):_0x4ef222,_0x38c79e=_0xbd2a26['length']-0x1,_0xca8282;_0x38c79e>=0x0;_0x38c79e--)(_0xca8282=_0xbd2a26[_0x38c79e])&&(_0xf76624=_0xca8282(_0xf76624)||_0xf76624);return _0xf76624;},N=(_0x6aaeaa,_0x480136)=>(_0x420790,_0x26e03c)=>_0x480136(_0x420790,_0x26e03c,_0x6aaeaa),T=(_0x416ec6,_0x69659f,_0x1cbf96)=>oe(_0x416ec6,typeof _0x69659f!=_0x52bceb(0xa1)?_0x69659f+'':_0x69659f,_0x1cbf96);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x52bceb(0x124)]=class extends o[_0x52bceb(0xe0)]{constructor(_0x1aaed0=x,_0x23a845,_0xddf09d){var _0x7f7f7c=_0x52bceb;super(),this[_0x7f7f7c(0x104)]=_0x1aaed0,this['_injector']=_0x23a845,this[_0x7f7f7c(0xea)]=_0xddf09d;const {..._0x18ce1f}=o[_0x7f7f7c(0x117)]({},x,this[_0x7f7f7c(0x104)]);this[_0x7f7f7c(0xea)]['setConfig']($,_0x18ce1f);}['onStarting'](){var _0x4a7502=_0x52bceb;o[_0x4a7502(0x12b)](this[_0x4a7502(0x10e)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4a7502(0xc8)]],[O],[exports['DesktopLiveShareController']]],this['_config']['override'])),o['touchDependencies'](this[_0x4a7502(0x10e)],[[O]]);}[_0x52bceb(0x152)](){var _0x43169f=_0x52bceb;o[_0x43169f(0x13c)](this[_0x43169f(0x10e)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x52bceb(0x124)],_0x52bceb(0x15c),o[_0x52bceb(0x107)][_0x52bceb(0x166)]),T(exports[_0x52bceb(0x124)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x52bceb(0xd3)](m[_0x52bceb(0xd8)]),N(0x1,o[_0x52bceb(0xe6)](o['Injector'])),N(0x2,o[_0x52bceb(0x157)])],exports[_0x52bceb(0x124)]),exports[_0x52bceb(0x142)]=A,exports[_0x52bceb(0x16f)]=E,exports[_0x52bceb(0x122)]=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 _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','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','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C 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 _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','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','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C 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 _0x266a(_0x3c3302,_0x533ff4){var _0x1343e1=_0x1343();return _0x266a=function(_0x266ade,_0x277e95){_0x266ade=_0x266ade-0x149;var _0xde35d9=_0x1343e1[_0x266ade];return _0xde35d9;},_0x266a(_0x3c3302,_0x533ff4);}(function(_0x177f07,_0x314740){var _0x19ea6=_0x266a,_0x1a3dca=_0x177f07();while(!![]){try{var _0x26683a=parseInt(_0x19ea6(0x1c4))/0x1+parseInt(_0x19ea6(0x223))/0x2*(parseInt(_0x19ea6(0x159))/0x3)+-parseInt(_0x19ea6(0x1c5))/0x4+parseInt(_0x19ea6(0x1fe))/0x5+parseInt(_0x19ea6(0x1fa))/0x6+parseInt(_0x19ea6(0x1a7))/0x7+-parseInt(_0x19ea6(0x209))/0x8;if(_0x26683a===_0x314740)break;else _0x1a3dca['push'](_0x1a3dca['shift']());}catch(_0x336ff4){_0x1a3dca['push'](_0x1a3dca['shift']());}}}(_0x1343,0x1aaa2),function(_0x5a6268,_0x369906){var _0x1ff95a=_0x266a;typeof exports=='object'&&typeof module<'u'?_0x369906(exports,require('@univerjs-pro/collaboration-client'),require(_0x1ff95a(0x19b)),require(_0x1ff95a(0x17c)),require(_0x1ff95a(0x163)),require(_0x1ff95a(0x174)),require(_0x1ff95a(0x21b)),require(_0x1ff95a(0x17b)),require(_0x1ff95a(0x1ad)),require('@univerjs-pro/collaboration'),require(_0x1ff95a(0x1cf)),require(_0x1ff95a(0x212))):typeof define==_0x1ff95a(0x1bb)&&define[_0x1ff95a(0x213)]?define([_0x1ff95a(0x1a3),_0x1ff95a(0x158),_0x1ff95a(0x19b),_0x1ff95a(0x17c),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x1ff95a(0x17b),_0x1ff95a(0x1ad),'@univerjs-pro/collaboration',_0x1ff95a(0x1cf),_0x1ff95a(0x212)],_0x369906):(_0x5a6268=typeof globalThis<'u'?globalThis:_0x5a6268||self,_0x369906(_0x5a6268['UniverProLiveShare']={},_0x5a6268[_0x1ff95a(0x1e6)],_0x5a6268[_0x1ff95a(0x1a0)],_0x5a6268[_0x1ff95a(0x204)],_0x5a6268[_0x1ff95a(0x1db)],_0x5a6268['UniverUi'],_0x5a6268['React'],_0x5a6268['UniverDesign'],_0x5a6268[_0x1ff95a(0x22a)],_0x5a6268[_0x1ff95a(0x20e)],_0x5a6268[_0x1ff95a(0x1cf)],_0x5a6268[_0x1ff95a(0x1cf)][_0x1ff95a(0x20a)]));}(this,function(_0x3c637c,_0x10f456,_0x24c918,_0x573cd9,_0x4976ab,_0x57fa80,_0x49b96a,_0x108119,_0x24c598,_0x17dce8,_0x363439,_0x531bc2){'use strict';var _0x5a24a7=_0x266a;var _0x27ec94=Object[_0x5a24a7(0x1e7)],_0x37cd18=(_0x9280cc,_0xfcdfda,_0x31b94c)=>_0xfcdfda in _0x9280cc?_0x27ec94(_0x9280cc,_0xfcdfda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31b94c}):_0x9280cc[_0xfcdfda]=_0x31b94c,_0xe9e033=(_0x4e5497,_0xee43d,_0x327e4e)=>_0x37cd18(_0x4e5497,typeof _0xee43d!='symbol'?_0xee43d+'':_0xee43d,_0x327e4e);const _0xa3d734=_0x5a24a7(0x179),_0x5dc332={};class _0x1be4e6 extends _0x24c918[_0x5a24a7(0x199)]{constructor(){var _0x551cce=_0x5a24a7;super(...arguments),_0xe9e033(this,_0x551cce(0x198),new Set()),_0xe9e033(this,_0x551cce(0x1b2),new Set());}[_0x5a24a7(0x1d0)](_0x442772){var _0x56a7d1=_0x5a24a7;return this[_0x56a7d1(0x198)]['add'](_0x442772),_0x24c918[_0x56a7d1(0x181)](()=>this['_sharedOperations'][_0x56a7d1(0x15e)](_0x442772));}['registerInitialStateReporter'](_0x431768){var _0x2f5db2=_0x5a24a7;return this[_0x2f5db2(0x1b2)][_0x2f5db2(0x220)](_0x431768),_0x24c918[_0x2f5db2(0x181)](()=>this[_0x2f5db2(0x1b2)][_0x2f5db2(0x15e)](_0x431768));}['shouldShareOperation'](_0xc01b7c){var _0x4bc7b0=_0x5a24a7;return this['_sharedOperations'][_0x4bc7b0(0x154)](_0xc01b7c);}[_0x5a24a7(0x1bc)](_0x35dbf2){var _0x64b3cc=_0x5a24a7;return Array['from'](this['_reporters'])[_0x64b3cc(0x1e2)](_0x1029ec=>_0x1029ec(_0x35dbf2));}}var _0x37baba=Object[_0x5a24a7(0x1c1)],_0x47f61a=(_0x2ecf1f,_0x39cba2,_0x1ead1b,_0x7ab82)=>{var _0x531713=_0x5a24a7;for(var _0x6a91bc=_0x7ab82>0x1?void 0x0:_0x7ab82?_0x37baba(_0x39cba2,_0x1ead1b):_0x39cba2,_0x2e1258=_0x2ecf1f[_0x531713(0x226)]-0x1,_0xe58b02;_0x2e1258>=0x0;_0x2e1258--)(_0xe58b02=_0x2ecf1f[_0x2e1258])&&(_0x6a91bc=_0xe58b02(_0x6a91bc)||_0x6a91bc);return _0x6a91bc;},_0x4b5dd6=(_0x3d1c84,_0x3a88e3)=>(_0x30e428,_0x4ae3b1)=>_0x3a88e3(_0x30e428,_0x4ae3b1,_0x3d1c84);let _0x2ef749=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x2686e6){var _0x514663=_0x5a24a7;super(),this[_0x514663(0x1fc)]=_0x2686e6,this[_0x514663(0x20f)]();}['_init'](){var _0x798d=_0x5a24a7;[_0x4976ab[_0x798d(0x19a)]['id'],_0x4976ab[_0x798d(0x16f)]['id'],_0x573cd9[_0x798d(0x1d4)]['id']][_0x798d(0x1c0)](_0x1475db=>{var _0x5d4624=_0x798d;this[_0x5d4624(0x184)](this[_0x5d4624(0x1fc)][_0x5d4624(0x1d0)](_0x1475db));});}};_0x2ef749=_0x47f61a([_0x4b5dd6(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6))],_0x2ef749);var _0x3d5813=function(){var _0x150229=_0x5a24a7;return _0x3d5813=Object[_0x150229(0x151)]||function(_0x33f2ae){var _0x5e86db=_0x150229;for(var _0x2249c3,_0x4bfe04=0x1,_0x1c587d=arguments[_0x5e86db(0x226)];_0x4bfe04<_0x1c587d;_0x4bfe04++){_0x2249c3=arguments[_0x4bfe04];for(var _0x256ecf in _0x2249c3)Object['prototype']['hasOwnProperty'][_0x5e86db(0x22d)](_0x2249c3,_0x256ecf)&&(_0x33f2ae[_0x256ecf]=_0x2249c3[_0x256ecf]);}return _0x33f2ae;},_0x3d5813[_0x150229(0x1ca)](this,arguments);},_0x9d899a=function(_0x4d5342,_0x2b53b9){var _0x6aa3f8=_0x5a24a7,_0x3f1848={};for(var _0x2d7c37 in _0x4d5342)Object['prototype']['hasOwnProperty'][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37)&&_0x2b53b9['indexOf'](_0x2d7c37)<0x0&&(_0x3f1848[_0x2d7c37]=_0x4d5342[_0x2d7c37]);if(_0x4d5342!=null&&typeof Object['getOwnPropertySymbols']==_0x6aa3f8(0x1bb)){for(var _0x3bfe3d=0x0,_0x2d7c37=Object[_0x6aa3f8(0x14c)](_0x4d5342);_0x3bfe3d<_0x2d7c37['length'];_0x3bfe3d++)_0x2b53b9['indexOf'](_0x2d7c37[_0x3bfe3d])<0x0&&Object[_0x6aa3f8(0x1f6)][_0x6aa3f8(0x14e)][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37[_0x3bfe3d])&&(_0x3f1848[_0x2d7c37[_0x3bfe3d]]=_0x4d5342[_0x2d7c37[_0x3bfe3d]]);}return _0x3f1848;},_0x281d5c=_0x24c598[_0x5a24a7(0x189)](function(_0x48f9ce,_0x35fda){var _0x4e367d=_0x5a24a7,_0xe29d9b=_0x48f9ce[_0x4e367d(0x1ab)],_0x42a527=_0x48f9ce['id'],_0x303197=_0x48f9ce[_0x4e367d(0x178)],_0x29d984=_0x48f9ce[_0x4e367d(0x218)],_0x2ff167=_0x9d899a(_0x48f9ce,[_0x4e367d(0x1ab),'id','className',_0x4e367d(0x218)]),_0x3a70f4='univerjs-icon\x20univerjs-icon-'[_0x4e367d(0x193)](_0x42a527,'\x20')['concat'](_0x303197||'')['trim'](),_0x506d69=_0x24c598[_0x4e367d(0x18d)]('_'[_0x4e367d(0x193)](_0x489002()));return _0x50492e(_0xe29d9b,''[_0x4e367d(0x193)](_0x42a527),{'defIds':_0xe29d9b[_0x4e367d(0x1a8)],'idSuffix':_0x506d69[_0x4e367d(0x21a)]},_0x3d5813({'ref':_0x35fda,'className':_0x3a70f4},_0x2ff167),_0x29d984);});function _0x50492e(_0x17050c,_0x505dbe,_0x23c696,_0x382a3f,_0x21a31e){var _0x359847=_0x5a24a7;return _0x24c598['createElement'](_0x17050c[_0x359847(0x205)],_0x3d5813(_0x3d5813({'key':_0x505dbe},_0x1515f8(_0x17050c,_0x23c696,_0x21a31e)),_0x382a3f),(_0x4477f4(_0x17050c,_0x23c696)[_0x359847(0x19c)]||[])['map'](function(_0x8237cb,_0x408b4f){var _0x1de3ad=_0x359847;return _0x50492e(_0x8237cb,''[_0x1de3ad(0x193)](_0x505dbe,'-')[_0x1de3ad(0x193)](_0x17050c[_0x1de3ad(0x205)],'-')['concat'](_0x408b4f),_0x23c696,void 0x0,_0x21a31e);}));}function _0x1515f8(_0x2a75ff,_0x4d8acc,_0x146607){var _0x5587fd=_0x5a24a7,_0x4d2123=_0x3d5813({},_0x2a75ff[_0x5587fd(0x207)]);_0x146607!=null&&_0x146607[_0x5587fd(0x191)]&&_0x4d2123[_0x5587fd(0x1df)]===_0x5587fd(0x191)&&(_0x4d2123[_0x5587fd(0x1df)]=_0x146607[_0x5587fd(0x191)]),_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x202)&&_0x4d2123['id']&&(_0x4d2123['id']=_0x4d2123['id']+_0x4d8acc[_0x5587fd(0x153)]),Object[_0x5587fd(0x214)](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x5e834d){var _0x42403c=_0x5587fd,_0x97266c=_0x5e834d[0x0],_0x2038f4=_0x5e834d[0x1];_0x97266c==='mask'&&typeof _0x2038f4==_0x42403c(0x1b0)&&(_0x4d2123[_0x97266c]=_0x2038f4[_0x42403c(0x1de)](/url\(#(.*)\)/,'url(#$1'[_0x42403c(0x193)](_0x4d8acc[_0x42403c(0x153)],')')));});var _0x4d45b0=_0x4d8acc[_0x5587fd(0x1a8)];return!_0x4d45b0||_0x4d45b0['length']===0x0||(_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x1fb)&&_0x4d2123[_0x5587fd(0x1f2)]&&(_0x4d2123['xlink:href']=_0x4d2123[_0x5587fd(0x1f2)]+_0x4d8acc['idSuffix']),Object['entries'](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x2a4e12){var _0xa10e55=_0x5587fd,_0x18c3ce=_0x2a4e12[0x0],_0x2ca9d3=_0x2a4e12[0x1];typeof _0x2ca9d3==_0xa10e55(0x1b0)&&(_0x4d2123[_0x18c3ce]=_0x2ca9d3[_0xa10e55(0x1de)](/url\(#(.*)\)/,_0xa10e55(0x1d6)['concat'](_0x4d8acc[_0xa10e55(0x153)],')')));})),_0x4d2123;}function _0x4477f4(_0x2b17fe,_0x4fe608){var _0x14ca66=_0x5a24a7,_0x2741b6,_0x4c7c0a=_0x4fe608[_0x14ca66(0x1a8)];return!_0x4c7c0a||_0x4c7c0a[_0x14ca66(0x226)]===0x0?_0x2b17fe:_0x2b17fe[_0x14ca66(0x205)]===_0x14ca66(0x1d9)&&(!((_0x2741b6=_0x2b17fe[_0x14ca66(0x19c)])===null||_0x2741b6===void 0x0)&&_0x2741b6['length'])?_0x3d5813(_0x3d5813({},_0x2b17fe),{'children':_0x2b17fe[_0x14ca66(0x19c)][_0x14ca66(0x1e2)](function(_0xf2c991){var _0x4f7cb1=_0x14ca66;return typeof _0xf2c991[_0x4f7cb1(0x207)]['id']==_0x4f7cb1(0x1b0)&&_0x4c7c0a&&_0x4c7c0a['indexOf'](_0xf2c991['attrs']['id'])>-0x1?_0x3d5813(_0x3d5813({},_0xf2c991),{'attrs':_0x3d5813(_0x3d5813({},_0xf2c991[_0x4f7cb1(0x207)]),{'id':_0xf2c991[_0x4f7cb1(0x207)]['id']+_0x4fe608[_0x4f7cb1(0x153)]})}):_0xf2c991;})}):_0x2b17fe;}function _0x489002(){var _0x2e89db=_0x5a24a7;return Math[_0x2e89db(0x17e)]()['toString'](0x24)['substring'](0x2,0x8);}_0x281d5c[_0x5a24a7(0x225)]=_0x5a24a7(0x168);var _0xda387e={'tag':'svg','attrs':{'xmlns':_0x5a24a7(0x20d),'fill':_0x5a24a7(0x1bf),'viewBox':_0x5a24a7(0x1da),'width':_0x5a24a7(0x1f7),'height':_0x5a24a7(0x1f7)},'children':[{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x150)}},{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x161),'fillRule':_0x5a24a7(0x222),'clipRule':_0x5a24a7(0x222)}}]},_0x5e8f6e=_0x24c598[_0x5a24a7(0x189)](function(_0xf571aa,_0x257191){var _0x46e557=_0x5a24a7;return _0x24c598[_0x46e557(0x1c6)](_0x281d5c,Object[_0x46e557(0x151)]({},_0xf571aa,{'id':_0x46e557(0x170),'ref':_0x257191,'icon':_0xda387e}));});_0x5e8f6e['displayName']=_0x5a24a7(0x1d1);var _0x545b3d=Object[_0x5a24a7(0x1c1)],_0x13e6e0=(_0x5e4ff1,_0x45ff68,_0xa8f335,_0x3844ab)=>{for(var _0x5a0373=_0x3844ab>0x1?void 0x0:_0x3844ab?_0x545b3d(_0x45ff68,_0xa8f335):_0x45ff68,_0x173dc4=_0x5e4ff1['length']-0x1,_0x4046d7;_0x173dc4>=0x0;_0x173dc4--)(_0x4046d7=_0x5e4ff1[_0x173dc4])&&(_0x5a0373=_0x4046d7(_0x5a0373)||_0x5a0373);return _0x5a0373;},_0x56c5b1=(_0x26ec16,_0x164279)=>(_0x45284d,_0x42c97b)=>_0x164279(_0x45284d,_0x42c97b,_0x26ec16);_0x3c637c['LiveShareController']=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x272a8e,_0x31bce8,_0x26b941){var _0x1e099b=_0x5a24a7;super(),_0xe9e033(this,_0x1e099b(0x169),new Map()),(this[_0x1e099b(0x1aa)]=_0x272a8e,this[_0x1e099b(0x18b)]=_0x31bce8,this[_0x1e099b(0x165)]=_0x26b941,this[_0x1e099b(0x20f)]());}async['getLiveShareCoordinator'](_0x408968){var _0xd99ca1=_0x5a24a7;return this[_0xd99ca1(0x169)][_0xd99ca1(0x154)](_0x408968)||await this['_startLiveShareCoordinator'](_0x408968),this['_entities'][_0xd99ca1(0x1f1)](_0x408968);}[_0x5a24a7(0x20f)](){var _0x45a394=_0x5a24a7;this[_0x45a394(0x1aa)][_0x45a394(0x215)](_0x24c918['UniverInstanceType'][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](async _0x37726a=>{var _0x31340d=_0x45a394;const _0x54cf35=_0x37726a[_0x31340d(0x229)]();this['_entities']['has'](_0x54cf35)||this['_startLiveShareCoordinator'](_0x54cf35);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24c918[_0x45a394(0x1a2)][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](_0x20c987=>{var _0x1c8d51=_0x45a394;const _0x4cc5d1=_0x20c987[_0x1c8d51(0x229)](),_0x2241b9=this['_entities']['get'](_0x4cc5d1);_0x2241b9==null||_0x2241b9['dispose']();});}async[_0x5a24a7(0x1e3)](_0x36a4de){var _0x2e7dce=_0x5a24a7;const _0x10a1bc=await this['_collabSessionService'][_0x2e7dce(0x1f4)](_0x36a4de),_0x3f8f5b=this[_0x2e7dce(0x18b)][_0x2e7dce(0x1c2)](_0x3c637c['LiveShareCoordinator'],_0x36a4de,_0x10a1bc);return _0x3f8f5b[_0x2e7dce(0x201)](),this[_0x2e7dce(0x169)][_0x2e7dce(0x203)](_0x36a4de,_0x3f8f5b),_0x3f8f5b;}},_0x3c637c[_0x5a24a7(0x1f9)]=_0x13e6e0([_0x56c5b1(0x0,_0x24c918[_0x5a24a7(0x1eb)]),_0x56c5b1(0x1,_0x24c918['Inject'](_0x24c918[_0x5a24a7(0x1b6)])),_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x21c)](_0x10f456['CollaborationSessionService']))],_0x3c637c[_0x5a24a7(0x1f9)]);var _0x4a2cf2=(_0x3d5804=>(_0x3d5804[_0x5a24a7(0x157)]=_0x5a24a7(0x1d7),_0x3d5804[_0x5a24a7(0x216)]=_0x5a24a7(0x192),_0x3d5804[_0x5a24a7(0x1af)]=_0x5a24a7(0x1e8),_0x3d5804[_0x5a24a7(0x176)]=_0x5a24a7(0x160),_0x3d5804['PRESENTING']='presenting',_0x3d5804))(_0x4a2cf2||{});const _0x192432='SAME_OPERATION_SHARE_INTERVAL',_0x153680=0xc8;_0x3c637c[_0x5a24a7(0x1f5)]=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x43e730,_0x47bcb7,_0x5c4a73,_0x69fa13,_0x56cbce){var _0x174d06=_0x5a24a7;super(),_0xe9e033(this,_0x174d06(0x186),new _0x363439[(_0x174d06(0x1dc))](_0x174d06(0x192))),_0xe9e033(this,_0x174d06(0x172),this['_status$'][_0x174d06(0x224)]()),_0xe9e033(this,_0x174d06(0x20f),!0x1),_0xe9e033(this,_0x174d06(0x1b7),null),_0xe9e033(this,_0x174d06(0x166),null),(this[_0x174d06(0x210)]=_0x43e730,this[_0x174d06(0x206)]=_0x47bcb7,this[_0x174d06(0x1f3)]=_0x5c4a73,this[_0x174d06(0x1fc)]=_0x69fa13,this[_0x174d06(0x21d)]=_0x56cbce);}get[_0x5a24a7(0x1a4)](){var _0x127259=_0x5a24a7;return this[_0x127259(0x186)]['getValue']();}[_0x5a24a7(0x1e4)](){var _0x4f7a00=_0x5a24a7,_0x324aef;(_0x324aef=this['_commandDisposable'])==null||_0x324aef[_0x4f7a00(0x1e4)](),this[_0x4f7a00(0x186)]['next']('idle'),this[_0x4f7a00(0x186)][_0x4f7a00(0x187)]();}[_0x5a24a7(0x201)](){var _0x4af6d3=_0x5a24a7;this[_0x4af6d3(0x20f)]||(this[_0x4af6d3(0x20f)]=!0x0,this['_collabSession'][_0x4af6d3(0x1fd)][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))[_0x4af6d3(0x17f)](_0x3730c6=>{var _0x247b13=_0x4af6d3;switch(_0x3730c6){case _0x10f456['SessionStatus'][_0x247b13(0x157)]:this['_handleOffline']();break;case _0x10f456[_0x247b13(0x1cb)][_0x247b13(0x211)]:this[_0x247b13(0x18c)]();break;}}),this[_0x4af6d3(0x206)]['event$'][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))['subscribe'](_0x2ed52b=>{var _0x2a4908=_0x4af6d3;const {eventID:_0x4f1128}=_0x2ed52b;switch(_0x4f1128){case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x180)]:this[_0x2a4908(0x14d)](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_TERMINATE']:this[_0x2a4908(0x1b3)]();break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x20b)]:this['_handleNewChangeSets'](_0x2ed52b);break;}}));}[_0x5a24a7(0x149)](){var _0x28c28d=_0x5a24a7;this[_0x28c28d(0x206)][_0x28c28d(0x15f)]({'eventID':_0x17dce8[_0x28c28d(0x18e)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x28c28d(0x210)],'userID':this[_0x28c28d(0x206)][_0x28c28d(0x15b)]()}},this[_0x28c28d(0x210)]);}[_0x5a24a7(0x16d)](){var _0x5591c2=_0x5a24a7;this[_0x5591c2(0x1a4)]===_0x5591c2(0x1d3)&&(this['_status$'][_0x5591c2(0x221)](_0x5591c2(0x192)),this[_0x5591c2(0x206)]['send']({'eventID':_0x17dce8[_0x5591c2(0x18e)][_0x5591c2(0x1ce)],'data':{'unitID':this['_unitID']}},this[_0x5591c2(0x210)]));}['startFollowing'](){var _0x38a2f9=_0x5a24a7;this['_status']===_0x38a2f9(0x160)&&(this[_0x38a2f9(0x186)]['next'](_0x38a2f9(0x1e8)),this[_0x38a2f9(0x177)]());}[_0x5a24a7(0x1b1)](){var _0x641b84=_0x5a24a7;this[_0x641b84(0x1a4)]===_0x641b84(0x1e8)&&this[_0x641b84(0x15c)]();}['_handleNewHost'](_0x1df51d){var _0x4b414a=_0x5a24a7;const {presenter:_0x54e44f}=_0x1df51d[_0x4b414a(0x20c)],_0x37166d=this[_0x4b414a(0x206)][_0x4b414a(0x15b)]();this['_presenter']=_0x54e44f,_0x54e44f===_0x37166d?(this[_0x4b414a(0x15c)](),this['_startPresenting']()):this[_0x4b414a(0x1a4)]!=='not-following'&&(this[_0x4b414a(0x1d2)](),this[_0x4b414a(0x177)]());}[_0x5a24a7(0x18a)](){var _0x4d833c=_0x5a24a7;const _0x4142a7={'eventID':_0x17dce8[_0x4d833c(0x18e)][_0x4d833c(0x155)]};this[_0x4d833c(0x206)][_0x4d833c(0x15f)](_0x4142a7,this[_0x4d833c(0x210)]);}[_0x5a24a7(0x1b3)](){var _0x3203bb=_0x5a24a7;this[_0x3203bb(0x166)]=null,this[_0x3203bb(0x1a4)]!==_0x3203bb(0x1d3)&&this[_0x3203bb(0x1ee)]();}['_handleNewChangeSets'](_0x3e943b){var _0x59f3fd=_0x5a24a7;if(this['_status']===_0x59f3fd(0x1e8)&&this['_presenter']===_0x3e943b[_0x59f3fd(0x20c)][_0x59f3fd(0x190)]){const _0x568df0=_0x17dce8[_0x59f3fd(0x219)](_0x3e943b[_0x59f3fd(0x20c)])['mutations'][_0x59f3fd(0x1d5)]()[_0x59f3fd(0x171)](_0xba22c0=>_0xba22c0['id']===_0x573cd9['InsertSheetMutation']['id']);if(_0x568df0){const _0x5e1196=_0x568df0['params'][_0x59f3fd(0x194)],_0x14bbf6=_0x568df0['params'][_0x59f3fd(0x1ef)]['id'];setTimeout(()=>{var _0x46a011=_0x59f3fd;this[_0x46a011(0x21d)][_0x46a011(0x162)](_0x573cd9[_0x46a011(0x1d4)]['id'],{'unitId':_0x5e1196,'subUnitId':_0x14bbf6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4c567b=_0x5a24a7;this[_0x4c567b(0x186)][_0x4c567b(0x221)](_0x4c567b(0x1d3));const _0x1bf0ea=new Map(),_0x18524c=this[_0x4c567b(0x1b7)]=new _0x24c918[(_0x4c567b(0x1ed))]();_0x18524c[_0x4c567b(0x220)](_0x24c918[_0x4c567b(0x181)](()=>{var _0x53986a=_0x4c567b;_0x1bf0ea[_0x53986a(0x1c0)](_0x33c755=>_0x33c755[_0x53986a(0x187)]()),_0x1bf0ea[_0x53986a(0x1b9)]();})),_0x18524c['add'](this[_0x4c567b(0x21d)]['onCommandExecuted'](_0x52e452=>{var _0x7127a8=_0x4c567b,_0x28cc0d;if(_0x52e452['type']!==_0x24c918[_0x7127a8(0x1a5)][_0x7127a8(0x21f)]||!this['_liveShareService'][_0x7127a8(0x1ff)](_0x52e452['id']))return;const {id:_0x24b46c}=_0x52e452;let _0x1796d6;_0x1bf0ea[_0x7127a8(0x154)](_0x24b46c)?_0x1796d6=_0x1bf0ea[_0x7127a8(0x1f1)](_0x24b46c):(_0x1796d6=new _0x363439[(_0x7127a8(0x14a))](),_0x1bf0ea[_0x7127a8(0x203)](_0x24b46c,_0x1796d6),_0x1796d6[_0x7127a8(0x200)](_0x531bc2[_0x7127a8(0x19d)]((_0x28cc0d=this['_configService'][_0x7127a8(0x228)](_0x192432))!=null?_0x28cc0d:_0x153680,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4e9dd7=>{var _0x4473b9=_0x7127a8;this['_collabSession'][_0x4473b9(0x15f)]({'eventID':_0x17dce8[_0x4473b9(0x18e)][_0x4473b9(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x4e9dd7['id']]:{'id':_0x4e9dd7['id'],'params':JSON[_0x4473b9(0x1c7)](_0x4e9dd7[_0x4473b9(0x1a1)])}}}},this[_0x4473b9(0x210)]);})),_0x1796d6[_0x7127a8(0x221)](_0x52e452);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x4c567b(0x1c0)](_0x57a2af=>this['_collabSession'][_0x4c567b(0x15f)]({'eventID':_0x17dce8['CollaborationEvent'][_0x4c567b(0x180)],'data':{'unitID':this[_0x4c567b(0x210)],'operations':{[_0x57a2af['id']]:{'id':_0x57a2af['id'],'params':JSON[_0x4c567b(0x1c7)](_0x57a2af['params'])}}}},this['_unitID']));}[_0x5a24a7(0x1d2)](){var _0x5153f1=_0x5a24a7,_0x163ae2;this[_0x5153f1(0x186)][_0x5153f1(0x221)](_0x5153f1(0x192)),(_0x163ae2=this[_0x5153f1(0x1b7)])==null||_0x163ae2[_0x5153f1(0x1e4)](),this[_0x5153f1(0x1b7)]=null;}[_0x5a24a7(0x177)](){var _0x301c7d=_0x5a24a7,_0x1f83a1;(_0x1f83a1=this['_commandDisposable'])==null||_0x1f83a1[_0x301c7d(0x1e4)](),this[_0x301c7d(0x186)]['next']('following');}[_0x5a24a7(0x1ee)](){var _0x1540ce=_0x5a24a7,_0x3775d4;this[_0x1540ce(0x186)][_0x1540ce(0x221)](_0x1540ce(0x192)),(_0x3775d4=this[_0x1540ce(0x1b7)])==null||_0x3775d4[_0x1540ce(0x1e4)](),this[_0x1540ce(0x1b7)]=null;}[_0x5a24a7(0x15c)](){var _0x42d996=_0x5a24a7,_0x3e8a6f;this[_0x42d996(0x186)][_0x42d996(0x221)](_0x42d996(0x160)),(_0x3e8a6f=this[_0x42d996(0x1b7)])==null||_0x3e8a6f['dispose']();}[_0x5a24a7(0x14d)](_0x3ae40c){var _0x3d1a2d=_0x5a24a7;if([_0x3d1a2d(0x1d3),_0x3d1a2d(0x160),_0x3d1a2d(0x1d7)]['includes'](this[_0x3d1a2d(0x1a4)])||!_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]||_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]===this[_0x3d1a2d(0x206)][_0x3d1a2d(0x15b)]())return;this[_0x3d1a2d(0x1a4)]===_0x3d1a2d(0x192)&&this['_startFollowing']();const _0x43f6de=_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x21e)];Object['values'](_0x43f6de)['forEach'](_0x36ad5c=>{var _0x21dc74=_0x3d1a2d;this['_commandService'][_0x21dc74(0x162)](_0x36ad5c['id'],_0x36ad5c[_0x21dc74(0x1a1)]?JSON[_0x21dc74(0x152)](_0x36ad5c['params']):null,{'fromCollab':!0x0});});}[_0x5a24a7(0x1cd)](){var _0x49aedf=_0x5a24a7,_0xbbeef4;this[_0x49aedf(0x186)][_0x49aedf(0x221)](_0x49aedf(0x1d7)),(_0xbbeef4=this['_commandDisposable'])==null||_0xbbeef4[_0x49aedf(0x1e4)]();}[_0x5a24a7(0x18c)](){var _0x1855e8=_0x5a24a7;this['_status$'][_0x1855e8(0x221)](_0x1855e8(0x192)),this['_fetchOperations']();}},_0x3c637c[_0x5a24a7(0x1f5)]=_0x13e6e0([_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x183)]),_0x56c5b1(0x3,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6)),_0x56c5b1(0x4,_0x24c918[_0x5a24a7(0x1d8)])],_0x3c637c['LiveShareCoordinator']);function _0x342162(){var _0x121be3=_0x5a24a7;const _0x3a8df0=_0x57fa80[_0x121be3(0x1a9)](_0x3c637c[_0x121be3(0x1f9)]),_0x26b26e=_0x57fa80[_0x121be3(0x1a9)](_0x24c918[_0x121be3(0x1eb)]),_0x425ed5=_0x57fa80[_0x121be3(0x1c9)](()=>_0x26b26e[_0x121be3(0x1b5)](_0x24c918[_0x121be3(0x1a2)][_0x121be3(0x17a)]),void 0x0,!0x1,[]),[_0x2878e,_0x3d19ec]=_0x24c598[_0x121be3(0x22f)](null),[_0x42b926,_0x41b57e]=_0x24c598[_0x121be3(0x22f)](_0x4a2cf2[_0x121be3(0x216)]),_0x204397=_0x24c598['useRef'](null);return _0x24c598[_0x121be3(0x164)](()=>(_0x425ed5&&_0x3a8df0['getLiveShareCoordinator'](_0x425ed5[_0x121be3(0x229)]())[_0x121be3(0x17d)](_0x22e137=>{var _0x4636bd=_0x121be3;_0x3d19ec(_0x22e137),_0x204397[_0x4636bd(0x21a)]=_0x22e137[_0x4636bd(0x172)][_0x4636bd(0x17f)](_0x127c8f=>{_0x41b57e(_0x127c8f);});}),()=>{var _0x221dfb=_0x121be3,_0x261741;(_0x261741=_0x204397[_0x221dfb(0x21a)])==null||_0x261741[_0x221dfb(0x16a)](),_0x204397[_0x221dfb(0x21a)]=null;}),[_0x425ed5,_0x3a8df0]),_0x2878e?_0x49b96a[_0x121be3(0x182)](_0x108119['Dropdown'],{'align':_0x121be3(0x22c),'disabled':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'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':_0x49b96a[_0x121be3(0x182)](_0x1bdc16,{'status':_0x42b926,'coordinator':_0x2878e}),'children':_0x49b96a['jsx'](_0x121be3(0x196),{'className':_0x108119[_0x121be3(0x15a)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42b926!==_0x4a2cf2['OFFLINE']}),'type':_0x121be3(0x196),'children':_0x49b96a[_0x121be3(0x182)](_0x5e8f6e,{'className':'univer-size-4'})})}):null;}function _0x1bdc16(_0x15c855){var _0x3243a2=_0x5a24a7;const {status:_0x2acddb,coordinator:_0x1c1246}=_0x15c855;switch(_0x2acddb){case _0x4a2cf2['IDLE']:return _0x49b96a[_0x3243a2(0x182)](_0x137f3d,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x1af)]:return _0x49b96a['jsx'](_0x7db8b7,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x176)]:return _0x49b96a[_0x3243a2(0x182)](_0x488bb4,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x157)]:return _0x49b96a[_0x3243a2(0x182)](_0x9b657e,{});case _0x4a2cf2['PRESENTING']:return _0x49b96a[_0x3243a2(0x182)](_0x59d800,{'coordinator':_0x1c1246});default:return null;}}function _0x137f3d(_0xac2db5){var _0xbdf325=_0x5a24a7;const {coordinator:_0x18c516}=_0xac2db5;return _0x49b96a['jsxs'](_0x49b96a[_0xbdf325(0x1c8)],{'children':[_0x49b96a[_0xbdf325(0x182)]('div',{'className':_0xbdf325(0x1f0),'children':'Present\x20this\x20document'}),_0x49b96a[_0xbdf325(0x182)](_0x108119['Button'],{'onClick':()=>_0x18c516[_0xbdf325(0x149)](),'children':_0xbdf325(0x1bd)})]});}function _0x7db8b7(_0x38abab){var _0x37de0b=_0x5a24a7;const {coordinator:_0x221839}=_0x38abab;return _0x49b96a[_0x37de0b(0x175)](_0x49b96a[_0x37de0b(0x1c8)],{'children':[_0x49b96a['jsx'](_0x37de0b(0x1e9),{'className':_0x37de0b(0x1f0),'children':_0x37de0b(0x18f)}),_0x49b96a['jsx'](_0x108119[_0x37de0b(0x1cc)],{'onClick':()=>_0x221839[_0x37de0b(0x1b1)](),'children':'Stop\x20following'})]});}function _0x488bb4(_0x5f54d6){var _0x4d57be=_0x5a24a7;const {coordinator:_0x218189}=_0x5f54d6;return _0x49b96a[_0x4d57be(0x175)](_0x49b96a['Fragment'],{'children':[_0x49b96a[_0x4d57be(0x182)](_0x4d57be(0x1e9),{'className':_0x4d57be(0x1f0),'children':_0x4d57be(0x16b)}),_0x49b96a[_0x4d57be(0x182)](_0x108119[_0x4d57be(0x1cc)],{'variant':_0x4d57be(0x14f),'onClick':()=>_0x218189['startFollowing'](),'children':_0x4d57be(0x197)})]});}function _0x59d800(_0x5770a9){var _0x3051c9=_0x5a24a7;const {coordinator:_0x1bacad}=_0x5770a9;return _0x49b96a[_0x3051c9(0x175)](_0x49b96a[_0x3051c9(0x1c8)],{'children':[_0x49b96a[_0x3051c9(0x182)](_0x3051c9(0x1e9),{'className':_0x3051c9(0x1f0),'children':_0x3051c9(0x1ec)}),_0x49b96a[_0x3051c9(0x182)](_0x108119[_0x3051c9(0x1cc)],{'variant':'default','onClick':()=>_0x1bacad[_0x3051c9(0x16d)](),'children':'Stop\x20presenting'})]});}function _0x9b657e(){return _0x49b96a['jsx'](_0x49b96a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x501969=Object[_0x5a24a7(0x1c1)],_0x127935=(_0x41443a,_0xfce18d,_0x121c33,_0x553434)=>{var _0x21bff2=_0x5a24a7;for(var _0x17f0e3=_0x553434>0x1?void 0x0:_0x553434?_0x501969(_0xfce18d,_0x121c33):_0xfce18d,_0x356b4a=_0x41443a[_0x21bff2(0x226)]-0x1,_0x11fd97;_0x356b4a>=0x0;_0x356b4a--)(_0x11fd97=_0x41443a[_0x356b4a])&&(_0x17f0e3=_0x11fd97(_0x17f0e3)||_0x17f0e3);return _0x17f0e3;},_0xe5503c=(_0x51df6d,_0xacd11c)=>(_0x28c137,_0x3e365a)=>_0xacd11c(_0x28c137,_0x3e365a,_0x51df6d);_0x3c637c[_0x5a24a7(0x16c)]=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x23c5e3,_0xfd8a41){var _0xf29466=_0x5a24a7;super(),this['_injector']=_0x23c5e3,this['_uiPartsService']=_0xfd8a41,this[_0xf29466(0x15d)]();}[_0x5a24a7(0x15d)](){var _0x59be3d=_0x5a24a7;this[_0x59be3d(0x184)](this[_0x59be3d(0x1ea)][_0x59be3d(0x1f8)](_0x57fa80[_0x59be3d(0x16e)][_0x59be3d(0x19f)],()=>_0x57fa80['connectInjector'](_0x342162,this[_0x59be3d(0x18b)])));}},_0x3c637c['DesktopLiveShareController']=_0x127935([_0xe5503c(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x24c918[_0x5a24a7(0x1b6)])),_0xe5503c(0x1,_0x57fa80['IUIPartsService'])],_0x3c637c['DesktopLiveShareController']);var _0x6d7da2=Object[_0x5a24a7(0x1e7)],_0x44280b=Object['getOwnPropertyDescriptor'],_0x3ba22e=(_0x32b0ba,_0x7dcf97,_0x58f28c)=>_0x7dcf97 in _0x32b0ba?_0x6d7da2(_0x32b0ba,_0x7dcf97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58f28c}):_0x32b0ba[_0x7dcf97]=_0x58f28c,_0x2c5363=(_0x5519a9,_0x4f050a,_0x1a4662,_0x5b05d1)=>{var _0x132127=_0x5a24a7;for(var _0x47a640=_0x5b05d1>0x1?void 0x0:_0x5b05d1?_0x44280b(_0x4f050a,_0x1a4662):_0x4f050a,_0x5965f0=_0x5519a9[_0x132127(0x226)]-0x1,_0x296781;_0x5965f0>=0x0;_0x5965f0--)(_0x296781=_0x5519a9[_0x5965f0])&&(_0x47a640=_0x296781(_0x47a640)||_0x47a640);return _0x47a640;},_0x21c9c8=(_0x12884c,_0x2dbafe)=>(_0x2fdd43,_0x310798)=>_0x2dbafe(_0x2fdd43,_0x310798,_0x12884c),_0x28fd02=(_0x1d12c8,_0x241640,_0x180b22)=>_0x3ba22e(_0x1d12c8,typeof _0x241640!=_0x5a24a7(0x217)?_0x241640+'':_0x241640,_0x180b22);const _0x41e6fa=_0x5a24a7(0x14b);_0x3c637c['UniverLiveSharePlugin']=class extends _0x24c918[_0x5a24a7(0x1ba)]{constructor(_0xc43275=_0x5dc332,_0x4ac3a5,_0x11fcc2){var _0x1b1bab=_0x5a24a7;super(),this['_config']=_0xc43275,this[_0x1b1bab(0x18b)]=_0x4ac3a5,this[_0x1b1bab(0x1f3)]=_0x11fcc2;const {..._0x595b4c}=_0x24c918[_0x1b1bab(0x208)]({},_0x5dc332,this[_0x1b1bab(0x1e0)]);this['_configService'][_0x1b1bab(0x1b4)](_0xa3d734,_0x595b4c);}[_0x5a24a7(0x1ac)](){var _0x54ee71=_0x5a24a7;_0x24c918['registerDependencies'](this[_0x54ee71(0x18b)],_0x24c918[_0x54ee71(0x173)]([[_0x1be4e6],[_0x3c637c[_0x54ee71(0x1f9)]],[_0x2ef749],[_0x3c637c['DesktopLiveShareController']]],this[_0x54ee71(0x1e0)][_0x54ee71(0x1e5)])),_0x24c918[_0x54ee71(0x185)](this[_0x54ee71(0x18b)],[[_0x2ef749]]);}[_0x5a24a7(0x188)](){var _0x681b7b=_0x5a24a7;_0x24c918[_0x681b7b(0x185)](this[_0x681b7b(0x18b)],[[_0x3c637c[_0x681b7b(0x16c)]]]);}},_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x1dd),_0x24c918[_0x5a24a7(0x1a2)]['UNIVER_UNKNOWN']),_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x227),_0x41e6fa),_0x3c637c['UniverLiveSharePlugin']=_0x2c5363([_0x24c918[_0x5a24a7(0x22e)](_0x10f456['UniverCollaborationClientPlugin']),_0x21c9c8(0x1,_0x24c918[_0x5a24a7(0x21c)](_0x24c918['Injector'])),_0x21c9c8(0x2,_0x24c918[_0x5a24a7(0x183)])],_0x3c637c['UniverLiveSharePlugin']),_0x3c637c[_0x5a24a7(0x1be)]=_0x342162,_0x3c637c[_0x5a24a7(0x1c3)]=_0x1be4e6,_0x3c637c[_0x5a24a7(0x19e)]=_0x4a2cf2,Object[_0x5a24a7(0x1e7)](_0x3c637c,Symbol[_0x5a24a7(0x1ae)],{'value':'Module'});}));function _0x1343(){var _0x5d8936=['amd','entries','getTypeOfUnitAdded$','IDLE','symbol','extend','parseProtocolChangeset','current','react/jsx-runtime','Inject','_commandService','operations','OPERATION','add','next','evenodd','28444BheDng','asObservable','displayName','length','pluginName','getConfig','getUnitId','React','dispose$','end','call','DependentOn','useState','tryStartPresenting','Subject','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertySymbols','_handleOperation','propertyIsEnumerable','text','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','assign','parse','idSuffix','has','LIVESHARE_FETCH_OPERATIONS','presenter','OFFLINE','@univerjs-pro/collaboration-client','15CSJPfp','clsx','getMemberID','_stopFollowing','_mountLiveShare','delete','send','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','@univerjs/sheets-ui','useEffect','_collabSessionService','_presenter','currentColor','UniverIcon','_entities','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','DesktopLiveShareController','stopPresenting','BuiltInUIPart','SetScrollOperation','live-share-icon','find','status$','mergeOverrideWithDependencies','@univerjs/ui','jsxs','NOT_FOLLOWING','_startFollowing','className','live-share.config','UNIVER_SHEET','@univerjs/design','@univerjs/sheets','then','random','subscribe','LIVESHARE_OPERATION','toDisposable','jsx','IConfigService','disposeWithMe','touchDependencies','_status$','complete','onRendered','forwardRef','_fetchOperations','_injector','_handleOnline','useRef','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','memberID','colorChannel1','idle','concat','unitId','RxDisposable','button','Start\x20following','_sharedOperations','Disposable','SetZoomRatioOperation','@univerjs/core','children','throttleTime','LiveShareStatus','HEADER_MENU','UniverCore','params','UniverInstanceType','exports','_status','CommandType','path','199675bvWvaZ','defIds','useDependency','_univerInstanceService','icon','onStarting','react','toStringTag','FOLLOWING','string','stopFollowing','_reporters','_handleTerminate','setConfig','getCurrentTypeOfUnit$','Injector','_commandDisposable','takeUntil','clear','Plugin','function','getInitialStates','Start','LiveShare','none','forEach','getOwnPropertyDescriptor','createInstance','LiveShareService','185050EoorJY','559116TheAun','createElement','stringify','Fragment','useObservable','apply','SessionStatus','Button','_handleOffline','LIVESHARE_TERMINATE','rxjs','registerSharedOperation','LiveShareIcon','_stopPresenting','presenting','SetWorksheetActiveOperation','reverse','url(#$1','offline','ICommandService','defs','0\x200\x2017\x2017','UniverSheetsUi','BehaviorSubject','type','replace','fill','_config','UniverLiveSharePlugin','map','_startLiveShareCoordinator','dispose','override','UniverProCollaborationClient','defineProperty','following','div','_uiPartsService','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_beIdle','sheet','univer-w-full\x20univer-mb-3\x20univer-text-sm','get','xlink:href','_configService','requireSession','LiveShareCoordinator','prototype','1em','registerComponent','LiveShareController','1074702frEZze','use','_liveShareService','sessionStatus$','805310kbmLTM','shouldShareOperation','pipe','init','mask','set','UniverSheets','tag','_collabSession','attrs','merge','3006936BUmQAy','operators','NEW_CHANGESETS','data','http://www.w3.org/2000/svg','UniverProCollaboration','_init','_unitID','ONLINE','rxjs/operators'];_0x1343=function(){return _0x5d8936;};return _0x1343();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-beta.0",
3
+ "version": "0.8.0-nightly.202505271607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,14 +46,14 @@
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.3.24",
50
- "@univerjs-pro/collaboration": "0.8.0-beta.0",
51
- "@univerjs/core": "0.8.0-beta.0",
52
- "@univerjs-pro/collaboration-client": "0.8.0-beta.0",
53
- "@univerjs/design": "0.8.0-beta.0",
54
- "@univerjs/sheets-ui": "0.8.0-beta.0",
55
- "@univerjs/sheets": "0.8.0-beta.0",
56
- "@univerjs/ui": "0.8.0-beta.0"
49
+ "@univerjs/icons": "^0.4.3",
50
+ "@univerjs/core": "0.8.0-nightly.202505271607",
51
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202505271607",
52
+ "@univerjs/sheets": "0.8.0-nightly.202505271607",
53
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202505271607",
54
+ "@univerjs/sheets-ui": "0.8.0-nightly.202505271607",
55
+ "@univerjs/design": "0.8.0-nightly.202505271607",
56
+ "@univerjs/ui": "0.8.0-nightly.202505271607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.3",