@univerjs-pro/live-share 0.9.1-nightly.202507071607 → 0.9.1

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 _0x3d2949=_0x1593;(function(_0x4f3938,_0x431a1a){var _0x50050f=_0x1593,_0x374692=_0x4f3938();while(!![]){try{var _0x50ff19=parseInt(_0x50050f(0x1d6))/0x1+parseInt(_0x50050f(0x207))/0x2+parseInt(_0x50050f(0x1b0))/0x3*(parseInt(_0x50050f(0x204))/0x4)+parseInt(_0x50050f(0x1a7))/0x5*(parseInt(_0x50050f(0x157))/0x6)+-parseInt(_0x50050f(0x14d))/0x7+-parseInt(_0x50050f(0x165))/0x8*(-parseInt(_0x50050f(0x172))/0x9)+-parseInt(_0x50050f(0x215))/0xa;if(_0x50ff19===_0x431a1a)break;else _0x374692['push'](_0x374692['shift']());}catch(_0x3af80b){_0x374692['push'](_0x374692['shift']());}}}(_0x2978,0xbd32f));var U=Object[_0x3d2949(0x175)],F=(_0x3e015c,_0x2db239,_0x574bbd)=>_0x2db239 in _0x3e015c?U(_0x3e015c,_0x2db239,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574bbd}):_0x3e015c[_0x2db239]=_0x574bbd,v=(_0x373d98,_0x1ee170,_0x447ed5)=>F(_0x373d98,typeof _0x1ee170!=_0x3d2949(0x183)?_0x1ee170+'':_0x1ee170,_0x447ed5);Object['defineProperty'](exports,Symbol[_0x3d2949(0x17a)],{'value':_0x3d2949(0x155)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x3d2949(0x14b)]{constructor(){var _0x3b2ce5=_0x3d2949;super(...arguments),v(this,_0x3b2ce5(0x1b2),new Set()),v(this,_0x3b2ce5(0x17b),new Set());}[_0x3d2949(0x1d8)](_0x287335){var _0x45844d=_0x3d2949;return this['_sharedOperations'][_0x45844d(0x168)](_0x287335),o[_0x45844d(0x180)](()=>this['_sharedOperations'][_0x45844d(0x1f1)](_0x287335));}[_0x3d2949(0x174)](_0x5b9f3b){var _0x3dd489=_0x3d2949;return this['_reporters'][_0x3dd489(0x168)](_0x5b9f3b),o[_0x3dd489(0x180)](()=>this['_reporters'][_0x3dd489(0x1f1)](_0x5b9f3b));}['shouldShareOperation'](_0x56aeec){var _0x2f9c04=_0x3d2949;return this[_0x2f9c04(0x1b2)][_0x2f9c04(0x1b4)](_0x56aeec);}[_0x3d2949(0x1ac)](_0x587263){var _0x1bb7eb=_0x3d2949;return Array['from'](this[_0x1bb7eb(0x17b)])[_0x1bb7eb(0x16a)](_0x4ddcd7=>_0x4ddcd7(_0x587263));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x52a903,_0x50ece1,_0x28c068,_0x481e48)=>{var _0x3bc794=_0x3d2949;for(var _0x4e8e23=_0x481e48>0x1?void 0x0:_0x481e48?H(_0x50ece1,_0x28c068):_0x50ece1,_0x47bf36=_0x52a903[_0x3bc794(0x1b5)]-0x1,_0x131c40;_0x47bf36>=0x0;_0x47bf36--)(_0x131c40=_0x52a903[_0x47bf36])&&(_0x4e8e23=_0x131c40(_0x4e8e23)||_0x4e8e23);return _0x4e8e23;},k=(_0x35f0f8,_0x207977)=>(_0x22ddc4,_0x1e4daf)=>_0x207977(_0x22ddc4,_0x1e4daf,_0x35f0f8);let E=class extends o['Disposable']{constructor(_0x481bcc){var _0x4ae5f4=_0x3d2949;super(),this[_0x4ae5f4(0x1ee)]=_0x481bcc,this[_0x4ae5f4(0x1a9)]();}[_0x3d2949(0x1a9)](){var _0x2c7b52=_0x3d2949;[w['SetZoomRatioOperation']['id'],w[_0x2c7b52(0x194)]['id'],C[_0x2c7b52(0x1f5)]['id']]['forEach'](_0x4421ee=>{var _0x355d6a=_0x2c7b52;this[_0x355d6a(0x199)](this['_liveShareService'][_0x355d6a(0x1d8)](_0x4421ee));});}};E=V([k(0x0,o[_0x3d2949(0x156)](O))],E);var u=function(){var _0x3a62c7=_0x3d2949;return u=Object[_0x3a62c7(0x1a0)]||function(_0x5a3307){var _0x42c2e4=_0x3a62c7;for(var _0x586a9,_0x40ae12=0x1,_0x38c650=arguments['length'];_0x40ae12<_0x38c650;_0x40ae12++){_0x586a9=arguments[_0x40ae12];for(var _0x539ec7 in _0x586a9)Object[_0x42c2e4(0x18d)]['hasOwnProperty'][_0x42c2e4(0x17c)](_0x586a9,_0x539ec7)&&(_0x5a3307[_0x539ec7]=_0x586a9[_0x539ec7]);}return _0x5a3307;},u[_0x3a62c7(0x1a5)](this,arguments);},M=function(_0x233ff2,_0x33933d){var _0x4ac4ce=_0x3d2949,_0x48f872={};for(var _0x3b0a63 in _0x233ff2)Object['prototype'][_0x4ac4ce(0x1b3)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63)&&_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63)<0x0&&(_0x48f872[_0x3b0a63]=_0x233ff2[_0x3b0a63]);if(_0x233ff2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2ef219=0x0,_0x3b0a63=Object[_0x4ac4ce(0x189)](_0x233ff2);_0x2ef219<_0x3b0a63[_0x4ac4ce(0x1b5)];_0x2ef219++)_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63[_0x2ef219])<0x0&&Object['prototype'][_0x4ac4ce(0x1f6)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63[_0x2ef219])&&(_0x48f872[_0x3b0a63[_0x2ef219]]=_0x233ff2[_0x3b0a63[_0x2ef219]]);}return _0x48f872;},j=f[_0x3d2949(0x1b1)](function(_0x3dfbc6,_0x4b9ac1){var _0x59b94a=_0x3d2949,_0x279421=_0x3dfbc6[_0x59b94a(0x15e)],_0x2e0301=_0x3dfbc6['id'],_0x5575ea=_0x3dfbc6[_0x59b94a(0x209)],_0x18e412=_0x3dfbc6[_0x59b94a(0x143)],_0x1e0940=M(_0x3dfbc6,[_0x59b94a(0x15e),'id',_0x59b94a(0x209),_0x59b94a(0x143)]),_0x565af3=_0x59b94a(0x1d5)[_0x59b94a(0x182)](_0x2e0301,'\x20')[_0x59b94a(0x182)](_0x5575ea||'')[_0x59b94a(0x15d)](),_0x4bc818=f['useRef']('_'[_0x59b94a(0x182)](G()));return y(_0x279421,''[_0x59b94a(0x182)](_0x2e0301),{'defIds':_0x279421[_0x59b94a(0x21e)],'idSuffix':_0x4bc818[_0x59b94a(0x14f)]},u({'ref':_0x4b9ac1,'className':_0x565af3},_0x1e0940),_0x18e412);});function y(_0x1adcc9,_0x3cd97d,_0x13968d,_0x31965a,_0x29ed50){var _0x37ec8b=_0x3d2949;return f[_0x37ec8b(0x208)](_0x1adcc9[_0x37ec8b(0x19a)],u(u({'key':_0x3cd97d},q(_0x1adcc9,_0x13968d,_0x29ed50)),_0x31965a),(W(_0x1adcc9,_0x13968d)[_0x37ec8b(0x1a1)]||[])[_0x37ec8b(0x16a)](function(_0xe7ef3d,_0x1a12c3){var _0x35f597=_0x37ec8b;return y(_0xe7ef3d,''[_0x35f597(0x182)](_0x3cd97d,'-')[_0x35f597(0x182)](_0x1adcc9[_0x35f597(0x19a)],'-')[_0x35f597(0x182)](_0x1a12c3),_0x13968d,void 0x0,_0x29ed50);}));}function q(_0x45e793,_0x3a71e6,_0x28cff5){var _0x278e87=_0x3d2949,_0x17d525=u({},_0x45e793[_0x278e87(0x147)]);_0x28cff5!=null&&_0x28cff5[_0x278e87(0x203)]&&_0x17d525[_0x278e87(0x17d)]===_0x278e87(0x203)&&(_0x17d525[_0x278e87(0x17d)]=_0x28cff5['colorChannel1']),_0x45e793[_0x278e87(0x19a)]===_0x278e87(0x15a)&&_0x17d525['id']&&(_0x17d525['id']=_0x17d525['id']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)[_0x278e87(0x216)](function(_0x4d875e){var _0xbd2b7=_0x278e87,_0x32fda0=_0x4d875e[0x0],_0x5ea707=_0x4d875e[0x1];_0x32fda0===_0xbd2b7(0x15a)&&typeof _0x5ea707==_0xbd2b7(0x178)&&(_0x17d525[_0x32fda0]=_0x5ea707[_0xbd2b7(0x160)](/url\(#(.*)\)/,_0xbd2b7(0x1ff)['concat'](_0x3a71e6[_0xbd2b7(0x19c)],')')));});var _0x45bd17=_0x3a71e6['defIds'];return!_0x45bd17||_0x45bd17['length']===0x0||(_0x45e793[_0x278e87(0x19a)]==='use'&&_0x17d525[_0x278e87(0x20b)]&&(_0x17d525[_0x278e87(0x20b)]=_0x17d525['xlink:href']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)['forEach'](function(_0x1216dd){var _0x2ef641=_0x278e87,_0x1e934b=_0x1216dd[0x0],_0x46f434=_0x1216dd[0x1];typeof _0x46f434=='string'&&(_0x17d525[_0x1e934b]=_0x46f434[_0x2ef641(0x160)](/url\(#(.*)\)/,_0x2ef641(0x1ff)[_0x2ef641(0x182)](_0x3a71e6[_0x2ef641(0x19c)],')')));})),_0x17d525;}function W(_0x19340c,_0x5b4efa){var _0xe03e62=_0x3d2949,_0x8c5895,_0x1c3c1b=_0x5b4efa[_0xe03e62(0x21e)];return!_0x1c3c1b||_0x1c3c1b[_0xe03e62(0x1b5)]===0x0?_0x19340c:_0x19340c['tag']==='defs'&&(!((_0x8c5895=_0x19340c[_0xe03e62(0x1a1)])===null||_0x8c5895===void 0x0)&&_0x8c5895[_0xe03e62(0x1b5)])?u(u({},_0x19340c),{'children':_0x19340c[_0xe03e62(0x1a1)][_0xe03e62(0x16a)](function(_0x1cb0d5){var _0x20ad7d=_0xe03e62;return typeof _0x1cb0d5[_0x20ad7d(0x147)]['id']==_0x20ad7d(0x178)&&_0x1c3c1b&&_0x1c3c1b[_0x20ad7d(0x1e1)](_0x1cb0d5['attrs']['id'])?u(u({},_0x1cb0d5),{'attrs':u(u({},_0x1cb0d5[_0x20ad7d(0x147)]),{'id':_0x1cb0d5['attrs']['id']+_0x5b4efa[_0x20ad7d(0x19c)]})}):_0x1cb0d5;})}):_0x19340c;}function G(){var _0x376cb7=_0x3d2949;return Math['random']()[_0x376cb7(0x1b8)](0x24)[_0x376cb7(0x1ab)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x3d2949(0x219),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2949(0x1cc),'viewBox':_0x3d2949(0x19f),'width':_0x3d2949(0x1e9),'height':'1em'},'children':[{'tag':_0x3d2949(0x1e5),'attrs':{'fill':'currentColor','d':_0x3d2949(0x187)}},{'tag':_0x3d2949(0x1e5),'attrs':{'fill':_0x3d2949(0x1ea),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3d2949(0x18f)}}]},P=f[_0x3d2949(0x1b1)](function(_0x823389,_0x33f5ac){var _0x300832=_0x3d2949;return f[_0x300832(0x208)](j,Object[_0x300832(0x1a0)]({},_0x823389,{'id':_0x300832(0x144),'ref':_0x33f5ac,'icon':B}));});P[_0x3d2949(0x1a8)]=_0x3d2949(0x146);var Y=Object[_0x3d2949(0x152)],R=(_0x587af8,_0x57fa42,_0x8f0648,_0x3cb693)=>{var _0x16c8cf=_0x3d2949;for(var _0x30f6dc=_0x3cb693>0x1?void 0x0:_0x3cb693?Y(_0x57fa42,_0x8f0648):_0x57fa42,_0x1d4eb3=_0x587af8[_0x16c8cf(0x1b5)]-0x1,_0x10f0ab;_0x1d4eb3>=0x0;_0x1d4eb3--)(_0x10f0ab=_0x587af8[_0x1d4eb3])&&(_0x30f6dc=_0x10f0ab(_0x30f6dc)||_0x30f6dc);return _0x30f6dc;},S=(_0x223eb8,_0xc9b339)=>(_0x4b4437,_0x5af1a6)=>_0xc9b339(_0x4b4437,_0x5af1a6,_0x223eb8);exports[_0x3d2949(0x163)]=class extends o[_0x3d2949(0x171)]{constructor(_0x326ca2,_0x4ca046,_0x10b5f0){var _0x5da7c9=_0x3d2949;super(),v(this,_0x5da7c9(0x1b7),new Map()),(this[_0x5da7c9(0x1dd)]=_0x326ca2,this[_0x5da7c9(0x198)]=_0x4ca046,this['_collabSessionService']=_0x10b5f0,this[_0x5da7c9(0x1a9)]());}async[_0x3d2949(0x179)](_0x59f050){var _0x2f6020=_0x3d2949;return this[_0x2f6020(0x1b7)]['has'](_0x59f050)||await this['_startLiveShareCoordinator'](_0x59f050),this[_0x2f6020(0x1b7)][_0x2f6020(0x1f7)](_0x59f050);}[_0x3d2949(0x1a9)](){var _0xee201c=_0x3d2949;this['_univerInstanceService'][_0xee201c(0x16e)](o[_0xee201c(0x1f0)][_0xee201c(0x1bc)])['pipe'](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](async _0x214a7b=>{var _0x125593=_0xee201c;const _0x28bb43=_0x214a7b['getUnitId']();this[_0x125593(0x1b7)]['has'](_0x28bb43)||this[_0x125593(0x191)](_0x28bb43);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0xee201c(0x1bc)])[_0xee201c(0x149)](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](_0xb224ec=>{var _0x190db4=_0xee201c;const _0x205006=_0xb224ec[_0x190db4(0x21b)](),_0x5b1b2b=this[_0x190db4(0x1b7)][_0x190db4(0x1f7)](_0x205006);_0x5b1b2b==null||_0x5b1b2b[_0x190db4(0x169)]();});}async['_startLiveShareCoordinator'](_0x245404){var _0x3ce1bb=_0x3d2949;const _0x1089fc=await this[_0x3ce1bb(0x1c2)]['requireSession'](_0x245404),_0x1f8f0c=this[_0x3ce1bb(0x198)]['createInstance'](exports[_0x3ce1bb(0x1ad)],_0x245404,_0x1089fc);return _0x1f8f0c[_0x3ce1bb(0x1d2)](),this[_0x3ce1bb(0x1b7)][_0x3ce1bb(0x195)](_0x245404,_0x1f8f0c),_0x1f8f0c;}},exports[_0x3d2949(0x163)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),S(0x2,o[_0x3d2949(0x156)](m['CollaborationSessionService']))],exports[_0x3d2949(0x163)]);var h=(_0x500d97=>(_0x500d97[_0x3d2949(0x200)]=_0x3d2949(0x20a),_0x500d97[_0x3d2949(0x14e)]='idle',_0x500d97[_0x3d2949(0x188)]=_0x3d2949(0x192),_0x500d97[_0x3d2949(0x1e4)]=_0x3d2949(0x1e6),_0x500d97['PRESENTING']=_0x3d2949(0x218),_0x500d97))(h||{});const Z=_0x3d2949(0x19e),J=0xc8;exports[_0x3d2949(0x1ad)]=class extends o[_0x3d2949(0x171)]{constructor(_0x268e10,_0x131250,_0x5e232a,_0x29aef1,_0x361ae4){var _0x335871=_0x3d2949;super(),v(this,_0x335871(0x158),new D['BehaviorSubject'](_0x335871(0x1c6))),v(this,_0x335871(0x140),this[_0x335871(0x158)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x335871(0x17e),null),v(this,'_presenter',null),(this[_0x335871(0x1d4)]=_0x268e10,this['_collabSession']=_0x131250,this[_0x335871(0x1c7)]=_0x5e232a,this[_0x335871(0x1ee)]=_0x29aef1,this['_commandService']=_0x361ae4);}get['_status'](){var _0x5b8293=_0x3d2949;return this['_status$'][_0x5b8293(0x1fd)]();}[_0x3d2949(0x169)](){var _0x17b1e8=_0x3d2949,_0x4b3894;(_0x4b3894=this[_0x17b1e8(0x17e)])==null||_0x4b3894['dispose'](),this[_0x17b1e8(0x158)][_0x17b1e8(0x20e)]('idle'),this[_0x17b1e8(0x158)][_0x17b1e8(0x1d7)]();}[_0x3d2949(0x1d2)](){var _0x9f9419=_0x3d2949;this[_0x9f9419(0x1a9)]||(this[_0x9f9419(0x1a9)]=!0x0,this[_0x9f9419(0x1a6)][_0x9f9419(0x16b)][_0x9f9419(0x149)](b['takeUntil'](this[_0x9f9419(0x1a4)]))[_0x9f9419(0x1f3)](_0x47ce7c=>{var _0x338c2e=_0x9f9419;switch(_0x47ce7c){case m['SessionStatus']['OFFLINE']:this[_0x338c2e(0x185)]();break;case m[_0x338c2e(0x19b)][_0x338c2e(0x213)]:this[_0x338c2e(0x20d)]();break;}}),this[_0x9f9419(0x1a6)]['event$'][_0x9f9419(0x149)](b[_0x9f9419(0x1c3)](this['dispose$']))[_0x9f9419(0x1f3)](_0x11a797=>{var _0x278320=_0x9f9419;const {eventID:_0x26767a}=_0x11a797;switch(_0x26767a){case _[_0x278320(0x1bb)]['LIVESHARE_NEW_HOST']:this[_0x278320(0x14c)](_0x11a797);break;case _[_0x278320(0x1bb)][_0x278320(0x150)]:this['_handleOperation'](_0x11a797);break;case _['CollaborationEvent'][_0x278320(0x1bf)]:this['_handleTerminate']();break;case _[_0x278320(0x1bb)][_0x278320(0x1e7)]:this[_0x278320(0x164)](_0x11a797);break;}}));}[_0x3d2949(0x1c0)](){var _0x4b6f74=_0x3d2949;this['_collabSession'][_0x4b6f74(0x1e3)]({'eventID':_[_0x4b6f74(0x1bb)][_0x4b6f74(0x161)],'data':{'unitID':this[_0x4b6f74(0x1d4)],'userID':this['_collabSession'][_0x4b6f74(0x193)]()}},this[_0x4b6f74(0x1d4)]);}[_0x3d2949(0x1ce)](){var _0x4a8a13=_0x3d2949;this[_0x4a8a13(0x1de)]==='presenting'&&(this['_status$'][_0x4a8a13(0x20e)]('idle'),this[_0x4a8a13(0x1a6)][_0x4a8a13(0x1e3)]({'eventID':_[_0x4a8a13(0x1bb)][_0x4a8a13(0x1bf)],'data':{'unitID':this[_0x4a8a13(0x1d4)]}},this[_0x4a8a13(0x1d4)]));}[_0x3d2949(0x173)](){var _0x2f9c1c=_0x3d2949;this[_0x2f9c1c(0x1de)]===_0x2f9c1c(0x1e6)&&(this[_0x2f9c1c(0x158)][_0x2f9c1c(0x20e)](_0x2f9c1c(0x192)),this[_0x2f9c1c(0x201)]());}[_0x3d2949(0x1af)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3d2949(0x14c)](_0x139f1d){var _0x4cbd08=_0x3d2949;const {presenter:_0x48450}=_0x139f1d['data'],_0xf4a5fb=this[_0x4cbd08(0x1a6)][_0x4cbd08(0x193)]();this[_0x4cbd08(0x1df)]=_0x48450,_0x48450===_0xf4a5fb?(this[_0x4cbd08(0x154)](),this['_startPresenting']()):this[_0x4cbd08(0x1de)]!=='not-following'&&(this[_0x4cbd08(0x197)](),this[_0x4cbd08(0x201)]());}[_0x3d2949(0x176)](){var _0xc9b6fa=_0x3d2949;const _0x3fa301={'eventID':_[_0xc9b6fa(0x1bb)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x3fa301,this['_unitID']);}[_0x3d2949(0x18b)](){var _0x1d9ae7=_0x3d2949;this[_0x1d9ae7(0x1df)]=null,this['_status']!==_0x1d9ae7(0x218)&&this[_0x1d9ae7(0x217)]();}[_0x3d2949(0x164)](_0x45d603){var _0x1c4b7c=_0x3d2949;if(this['_status']===_0x1c4b7c(0x192)&&this['_presenter']===_0x45d603['data']['memberID']){const _0x374249=_[_0x1c4b7c(0x151)](_0x45d603[_0x1c4b7c(0x1dc)])[_0x1c4b7c(0x15f)][_0x1c4b7c(0x1e0)]()[_0x1c4b7c(0x186)](_0x3c403f=>_0x3c403f['id']===C[_0x1c4b7c(0x1c9)]['id']);if(_0x374249){const _0x141d32=_0x374249['params']['unitId'],_0x303e13=_0x374249[_0x1c4b7c(0x159)][_0x1c4b7c(0x17f)]['id'];setTimeout(()=>{var _0x485150=_0x1c4b7c;this['_commandService'][_0x485150(0x210)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x141d32,'subUnitId':_0x303e13},{'fromCollab':!0x0});});}}}[_0x3d2949(0x1db)](){var _0x2f5590=_0x3d2949;this[_0x2f5590(0x158)]['next'](_0x2f5590(0x218));const _0x154044=new Map(),_0x144ad1=this[_0x2f5590(0x17e)]=new o[(_0x2f5590(0x1d3))]();_0x144ad1['add'](o[_0x2f5590(0x180)](()=>{var _0x286340=_0x2f5590;_0x154044['forEach'](_0x5a98a7=>_0x5a98a7[_0x286340(0x1d7)]()),_0x154044['clear']();})),_0x144ad1[_0x2f5590(0x168)](this[_0x2f5590(0x1ae)][_0x2f5590(0x202)](_0x267981=>{var _0x244649=_0x2f5590,_0x4ce3a2;if(_0x267981[_0x244649(0x1ef)]!==o['CommandType'][_0x244649(0x166)]||!this[_0x244649(0x1ee)][_0x244649(0x18e)](_0x267981['id']))return;const {id:_0x544fde}=_0x267981;let _0x1634f2;_0x154044[_0x244649(0x1b4)](_0x544fde)?_0x1634f2=_0x154044[_0x244649(0x1f7)](_0x544fde):(_0x1634f2=new D[(_0x244649(0x1ca))](),_0x154044[_0x244649(0x195)](_0x544fde,_0x1634f2),_0x1634f2[_0x244649(0x149)](b[_0x244649(0x18c)]((_0x4ce3a2=this[_0x244649(0x1c7)][_0x244649(0x162)](Z))!=null?_0x4ce3a2:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8b94fd=>{var _0x1894f8=_0x244649;this[_0x1894f8(0x1a6)][_0x1894f8(0x1e3)]({'eventID':_['CollaborationEvent'][_0x1894f8(0x150)],'data':{'unitID':this[_0x1894f8(0x1d4)],'operations':{[_0x8b94fd['id']]:{'id':_0x8b94fd['id'],'params':JSON[_0x1894f8(0x16c)](_0x8b94fd[_0x1894f8(0x159)])}}}},this[_0x1894f8(0x1d4)]);})),_0x1634f2[_0x244649(0x20e)](_0x267981);})),this[_0x2f5590(0x1ee)][_0x2f5590(0x1ac)](this[_0x2f5590(0x1d4)])['forEach'](_0x2b851a=>this[_0x2f5590(0x1a6)][_0x2f5590(0x1e3)]({'eventID':_[_0x2f5590(0x1bb)][_0x2f5590(0x150)],'data':{'unitID':this[_0x2f5590(0x1d4)],'operations':{[_0x2b851a['id']]:{'id':_0x2b851a['id'],'params':JSON[_0x2f5590(0x16c)](_0x2b851a[_0x2f5590(0x159)])}}}},this[_0x2f5590(0x1d4)]));}[_0x3d2949(0x197)](){var _0x271476=_0x3d2949,_0x3b7486;this[_0x271476(0x158)][_0x271476(0x20e)](_0x271476(0x1c6)),(_0x3b7486=this[_0x271476(0x17e)])==null||_0x3b7486[_0x271476(0x169)](),this[_0x271476(0x17e)]=null;}[_0x3d2949(0x201)](){var _0x4f7e14=_0x3d2949,_0x43d551;(_0x43d551=this['_commandDisposable'])==null||_0x43d551[_0x4f7e14(0x169)](),this[_0x4f7e14(0x158)][_0x4f7e14(0x20e)]('following');}[_0x3d2949(0x217)](){var _0x22997c=_0x3d2949,_0x155fa0;this[_0x22997c(0x158)]['next'](_0x22997c(0x1c6)),(_0x155fa0=this['_commandDisposable'])==null||_0x155fa0[_0x22997c(0x169)](),this[_0x22997c(0x17e)]=null;}['_stopFollowing'](){var _0xe80b6=_0x3d2949,_0x5d71be;this['_status$']['next']('not-following'),(_0x5d71be=this[_0xe80b6(0x17e)])==null||_0x5d71be[_0xe80b6(0x169)]();}[_0x3d2949(0x1be)](_0x5f325b){var _0x39d16b=_0x3d2949;if([_0x39d16b(0x218),_0x39d16b(0x1e6),_0x39d16b(0x20a)][_0x39d16b(0x1e1)](this[_0x39d16b(0x1de)])||!_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]||_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]===this['_collabSession'][_0x39d16b(0x193)]())return;this[_0x39d16b(0x1de)]===_0x39d16b(0x1c6)&&this[_0x39d16b(0x201)]();const _0x1076c2=_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1ed)];Object[_0x39d16b(0x1c1)](_0x1076c2)[_0x39d16b(0x216)](_0x51ed57=>{var _0x108aee=_0x39d16b;this[_0x108aee(0x1ae)][_0x108aee(0x210)](_0x51ed57['id'],_0x51ed57['params']?JSON[_0x108aee(0x148)](_0x51ed57['params']):null,{'fromCollab':!0x0});});}[_0x3d2949(0x185)](){var _0x2ede6d=_0x3d2949,_0x5dd3f5;this[_0x2ede6d(0x158)][_0x2ede6d(0x20e)](_0x2ede6d(0x20a)),(_0x5dd3f5=this['_commandDisposable'])==null||_0x5dd3f5[_0x2ede6d(0x169)]();}[_0x3d2949(0x20d)](){var _0x587a5c=_0x3d2949;this[_0x587a5c(0x158)]['next'](_0x587a5c(0x1c6)),this[_0x587a5c(0x176)]();}},exports[_0x3d2949(0x1ad)]=R([S(0x2,o[_0x3d2949(0x1d0)]),S(0x3,o[_0x3d2949(0x156)](O)),S(0x4,o['ICommandService'])],exports[_0x3d2949(0x1ad)]);function A(){var _0xac2e96=_0x3d2949;const _0x2e7410=p[_0xac2e96(0x1aa)](exports[_0xac2e96(0x163)]),_0x212331=p[_0xac2e96(0x1aa)](o['IUniverInstanceService']),_0x4549b8=p[_0xac2e96(0x20f)](()=>_0x212331[_0xac2e96(0x1d9)](o[_0xac2e96(0x1f0)][_0xac2e96(0x1bc)]),void 0x0,!0x1,[]),[_0x12c45b,_0xf698bf]=f['useState'](null),[_0x3878c6,_0x3a690e]=f[_0xac2e96(0x1c4)](h[_0xac2e96(0x14e)]),_0x8bbfd4=f[_0xac2e96(0x181)](null);return f['useEffect'](()=>(_0x4549b8&&_0x2e7410[_0xac2e96(0x179)](_0x4549b8[_0xac2e96(0x21b)]())[_0xac2e96(0x1fc)](_0x452f78=>{var _0x61a3f7=_0xac2e96;_0xf698bf(_0x452f78),_0x8bbfd4[_0x61a3f7(0x14f)]=_0x452f78[_0x61a3f7(0x140)][_0x61a3f7(0x1f3)](_0x256890=>{_0x3a690e(_0x256890);});}),()=>{var _0x403be5=_0xac2e96,_0x273c75;(_0x273c75=_0x8bbfd4['current'])==null||_0x273c75[_0x403be5(0x1fe)](),_0x8bbfd4[_0x403be5(0x14f)]=null;}),[_0x4549b8,_0x2e7410]),_0x12c45b?l[_0xac2e96(0x196)](g['Dropdown'],{'align':_0xac2e96(0x1d1),'disabled':_0x3878c6===h[_0xac2e96(0x200)],'className':_0xac2e96(0x167),'overlay':l[_0xac2e96(0x196)](K,{'status':_0x3878c6,'coordinator':_0x12c45b}),'children':l['jsx'](_0xac2e96(0x170),{'className':g[_0xac2e96(0x1f4)](_0xac2e96(0x1c5),{'univer-cursor-not-allowed':_0x3878c6===h[_0xac2e96(0x200)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3878c6!==h[_0xac2e96(0x200)]}),'type':_0xac2e96(0x170),'children':l[_0xac2e96(0x196)](P,{'className':_0xac2e96(0x1bd)})})}):null;}function K(_0x1d478a){var _0x3450d4=_0x3d2949;const {status:_0x1e4ede,coordinator:_0x5a6454}=_0x1d478a;switch(_0x1e4ede){case h[_0x3450d4(0x14e)]:return l[_0x3450d4(0x196)](z,{'coordinator':_0x5a6454});case h[_0x3450d4(0x188)]:return l[_0x3450d4(0x196)](Q,{'coordinator':_0x5a6454});case h[_0x3450d4(0x1e4)]:return l[_0x3450d4(0x196)](X,{'coordinator':_0x5a6454});case h[_0x3450d4(0x200)]:return l[_0x3450d4(0x196)](te,{});case h[_0x3450d4(0x212)]:return l[_0x3450d4(0x196)](ee,{'coordinator':_0x5a6454});default:return null;}}function z(_0x1080a1){var _0x5ac393=_0x3d2949;const {coordinator:_0x1c090d}=_0x1080a1;return l[_0x5ac393(0x1cb)](l[_0x5ac393(0x1f2)],{'children':[l[_0x5ac393(0x196)](_0x5ac393(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5ac393(0x14a)}),l[_0x5ac393(0x196)](g[_0x5ac393(0x1a3)],{'onClick':()=>_0x1c090d['tryStartPresenting'](),'children':_0x5ac393(0x16f)})]});}function Q(_0x5e395c){var _0x557343=_0x3d2949;const {coordinator:_0x51cc69}=_0x5e395c;return l[_0x557343(0x1cb)](l[_0x557343(0x1f2)],{'children':[l[_0x557343(0x196)](_0x557343(0x214),{'className':_0x557343(0x1cf),'children':_0x557343(0x21a)}),l[_0x557343(0x196)](g['Button'],{'onClick':()=>_0x51cc69[_0x557343(0x1af)](),'children':_0x557343(0x142)})]});}function _0x2978(){var _0x92550b=['getOwnPropertySymbols','LiveShare','_handleTerminate','throttleTime','prototype','shouldShareOperation','evenodd','entries','_startLiveShareCoordinator','following','getMemberID','SetScrollOperation','set','jsx','_stopPresenting','_injector','disposeWithMe','tag','SessionStatus','idSuffix','connectInjector','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','assign','children','indexOf','Button','dispose$','apply','_collabSession','2635fGzxEF','displayName','_init','useDependency','substring','getInitialStates','LiveShareCoordinator','_commandService','stopFollowing','442959iRoRIK','forwardRef','_sharedOperations','hasOwnProperty','has','length','Stop\x20presenting','_entities','toString','Injector','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','UNIVER_SHEET','univer-size-4','_handleOperation','LIVESHARE_TERMINATE','tryStartPresenting','values','_collabSessionService','takeUntil','useState','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','_configService','merge','InsertSheetMutation','Subject','jsxs','none','LiveShareStatus','stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','IConfigService','end','init','DisposableCollection','_unitID','univerjs-icon\x20univerjs-icon-','448582wtnOpF','complete','registerSharedOperation','getCurrentTypeOfUnit$','mergeOverrideWithDependencies','_startPresenting','data','_univerInstanceService','_status','_presenter','reverse','includes','override','send','NOT_FOLLOWING','path','not-following','NEW_CHANGESETS','text','1em','currentColor','presenter','IUIPartsService','operations','_liveShareService','type','UniverInstanceType','delete','Fragment','subscribe','clsx','SetWorksheetActiveOperation','propertyIsEnumerable','get','_uiPartsService','UNIVER_UNKNOWN','UniverCollaborationClientPlugin','_config','then','getValue','unsubscribe','url(#$1','OFFLINE','_startFollowing','onCommandExecuted','colorChannel1','40CjjTPP','UniverLiveSharePlugin','UNIVER_LIVE_SHARE_PLUGIN','622990IVnMKP','createElement','className','offline','xlink:href','DesktopLiveShareController','_handleOnline','next','useObservable','executeCommand','registerComponent','PRESENTING','ONLINE','div','26222650HhaNQc','forEach','_beIdle','presenting','svg','You\x27re\x20following\x20the\x20presenter','getUnitId','onStarting','pluginName','defIds','status$','default','Stop\x20following','extend','live-share-icon','DependentOn','LiveShareIcon','attrs','parse','pipe','Present\x20this\x20document','Disposable','_handleNewHost','3591077mctTcH','IDLE','current','LIVESHARE_OPERATION','parseProtocolChangeset','getOwnPropertyDescriptor','_mountLiveShare','_stopFollowing','Module','Inject','9198SbQZeh','_status$','params','mask','You\x27re\x20not\x20following\x20the\x20presenter','HEADER_MENU','trim','icon','mutations','replace','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','_handleNewChangeSets','7192BBwJOx','OPERATION','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','add','dispose','map','sessionStatus$','stringify','onRendered','getTypeOfUnitAdded$','Start','button','RxDisposable','8667LHMraJ','startFollowing','registerInitialStateReporter','defineProperty','_fetchOperations','touchDependencies','string','getLiveShareCoordinator','toStringTag','_reporters','call','fill','_commandDisposable','sheet','toDisposable','useRef','concat','symbol','You\x27are\x20offline.','_handleOffline','find','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','FOLLOWING'];_0x2978=function(){return _0x92550b;};return _0x2978();}function X(_0x2e0edf){var _0x2a61d0=_0x3d2949;const {coordinator:_0xe5a21d}=_0x2e0edf;return l['jsxs'](l[_0x2a61d0(0x1f2)],{'children':[l['jsx'](_0x2a61d0(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a61d0(0x15b)}),l[_0x2a61d0(0x196)](g[_0x2a61d0(0x1a3)],{'variant':_0x2a61d0(0x1e8),'onClick':()=>_0xe5a21d[_0x2a61d0(0x173)](),'children':'Start\x20following'})]});}function ee(_0x111dd7){var _0x582989=_0x3d2949;const {coordinator:_0x18f9b2}=_0x111dd7;return l[_0x582989(0x1cb)](l[_0x582989(0x1f2)],{'children':[l[_0x582989(0x196)](_0x582989(0x214),{'className':_0x582989(0x1cf),'children':_0x582989(0x1ba)}),l[_0x582989(0x196)](g[_0x582989(0x1a3)],{'variant':_0x582989(0x141),'onClick':()=>_0x18f9b2[_0x582989(0x1ce)](),'children':_0x582989(0x1b6)})]});}function _0x1593(_0x4b1db0,_0x57cf9d){var _0x297898=_0x2978();return _0x1593=function(_0x1593d3,_0x18440b){_0x1593d3=_0x1593d3-0x140;var _0xfdbf5d=_0x297898[_0x1593d3];return _0xfdbf5d;},_0x1593(_0x4b1db0,_0x57cf9d);}function te(){var _0x48b6c1=_0x3d2949;return l[_0x48b6c1(0x196)](l[_0x48b6c1(0x1f2)],{'children':_0x48b6c1(0x184)});}var ie=Object[_0x3d2949(0x152)],ne=(_0x3afbde,_0x112bdb,_0x24d621,_0x384770)=>{var _0x156e02=_0x3d2949;for(var _0x1a35c9=_0x384770>0x1?void 0x0:_0x384770?ie(_0x112bdb,_0x24d621):_0x112bdb,_0x371ff9=_0x3afbde[_0x156e02(0x1b5)]-0x1,_0x386005;_0x371ff9>=0x0;_0x371ff9--)(_0x386005=_0x3afbde[_0x371ff9])&&(_0x1a35c9=_0x386005(_0x1a35c9)||_0x1a35c9);return _0x1a35c9;},L=(_0x16ca37,_0x4a2d44)=>(_0x2c83f4,_0x52620c)=>_0x4a2d44(_0x2c83f4,_0x52620c,_0x16ca37);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3e6116,_0x598b3d){var _0x1818b6=_0x3d2949;super(),this['_injector']=_0x3e6116,this[_0x1818b6(0x1f8)]=_0x598b3d,this[_0x1818b6(0x153)]();}[_0x3d2949(0x153)](){var _0x2f8247=_0x3d2949;this[_0x2f8247(0x199)](this[_0x2f8247(0x1f8)][_0x2f8247(0x211)](p['BuiltInUIPart'][_0x2f8247(0x15c)],()=>p[_0x2f8247(0x19d)](A,this['_injector'])));}},exports[_0x3d2949(0x20c)]=ne([L(0x0,o[_0x3d2949(0x156)](o['Injector'])),L(0x1,p[_0x3d2949(0x1ec)])],exports[_0x3d2949(0x20c)]);var re=Object[_0x3d2949(0x175)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1cb864,_0x29e343,_0x5c816e)=>_0x29e343 in _0x1cb864?re(_0x1cb864,_0x29e343,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c816e}):_0x1cb864[_0x29e343]=_0x5c816e,ae=(_0x206edc,_0xa81a63,_0x334179,_0x2b8615)=>{for(var _0x31ea76=_0x2b8615>0x1?void 0x0:_0x2b8615?se(_0xa81a63,_0x334179):_0xa81a63,_0x5c5646=_0x206edc['length']-0x1,_0xd4ec0d;_0x5c5646>=0x0;_0x5c5646--)(_0xd4ec0d=_0x206edc[_0x5c5646])&&(_0x31ea76=_0xd4ec0d(_0x31ea76)||_0x31ea76);return _0x31ea76;},N=(_0x16dacd,_0x5c142c)=>(_0x5d3d52,_0x3bdfc2)=>_0x5c142c(_0x5d3d52,_0x3bdfc2,_0x16dacd),T=(_0x1b08ca,_0x384091,_0x2d1469)=>oe(_0x1b08ca,typeof _0x384091!=_0x3d2949(0x183)?_0x384091+'':_0x384091,_0x2d1469);const le=_0x3d2949(0x206);exports[_0x3d2949(0x205)]=class extends o['Plugin']{constructor(_0x2ee2d6=x,_0x367974,_0x2f5557){var _0x3b02ce=_0x3d2949;super(),this[_0x3b02ce(0x1fb)]=_0x2ee2d6,this[_0x3b02ce(0x198)]=_0x367974,this[_0x3b02ce(0x1c7)]=_0x2f5557;const {..._0x294811}=o[_0x3b02ce(0x1c8)]({},x,this['_config']);this[_0x3b02ce(0x1c7)]['setConfig']($,_0x294811);}[_0x3d2949(0x21c)](){var _0x3c7dd3=_0x3d2949;o['registerDependencies'](this[_0x3c7dd3(0x198)],o[_0x3c7dd3(0x1da)]([[O],[exports[_0x3c7dd3(0x163)]],[E],[exports[_0x3c7dd3(0x20c)]]],this[_0x3c7dd3(0x1fb)][_0x3c7dd3(0x1e2)])),o[_0x3c7dd3(0x177)](this[_0x3c7dd3(0x198)],[[E]]);}[_0x3d2949(0x16d)](){var _0x11e810=_0x3d2949;o[_0x11e810(0x177)](this[_0x11e810(0x198)],[[exports[_0x11e810(0x20c)]]]);}},T(exports['UniverLiveSharePlugin'],_0x3d2949(0x1ef),o['UniverInstanceType'][_0x3d2949(0x1f9)]),T(exports['UniverLiveSharePlugin'],_0x3d2949(0x21d),le),exports[_0x3d2949(0x205)]=ae([o[_0x3d2949(0x145)](m[_0x3d2949(0x1fa)]),N(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),N(0x2,o[_0x3d2949(0x1d0)])],exports[_0x3d2949(0x205)]),exports[_0x3d2949(0x18a)]=A,exports['LiveShareService']=O,exports[_0x3d2949(0x1cd)]=h;
1
+ 'use strict';var _0x4767bd=_0xcd43;(function(_0x1b56a0,_0x48aa89){var _0x377734=_0xcd43,_0x42d63f=_0x1b56a0();while(!![]){try{var _0x35b01c=-parseInt(_0x377734(0x141))/0x1+parseInt(_0x377734(0x1c8))/0x2*(-parseInt(_0x377734(0x1a5))/0x3)+parseInt(_0x377734(0x1c4))/0x4+-parseInt(_0x377734(0x136))/0x5*(parseInt(_0x377734(0x126))/0x6)+parseInt(_0x377734(0x169))/0x7*(-parseInt(_0x377734(0x109))/0x8)+parseInt(_0x377734(0x14a))/0x9+parseInt(_0x377734(0x145))/0xa*(parseInt(_0x377734(0xfa))/0xb);if(_0x35b01c===_0x48aa89)break;else _0x42d63f['push'](_0x42d63f['shift']());}catch(_0x1944f0){_0x42d63f['push'](_0x42d63f['shift']());}}}(_0x333b,0x3eb03));var U=Object[_0x4767bd(0xf1)],F=(_0x9eddae,_0x134d56,_0x5e8d10)=>_0x134d56 in _0x9eddae?U(_0x9eddae,_0x134d56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e8d10}):_0x9eddae[_0x134d56]=_0x5e8d10,v=(_0x548f48,_0x8a445e,_0x2280c4)=>F(_0x548f48,typeof _0x8a445e!=_0x4767bd(0x116)?_0x8a445e+'':_0x8a445e,_0x2280c4);Object[_0x4767bd(0xf1)](exports,Symbol[_0x4767bd(0x14b)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4767bd(0x1c0),x={};class O extends o[_0x4767bd(0x14f)]{constructor(){var _0x45d9b0=_0x4767bd;super(...arguments),v(this,_0x45d9b0(0xef),new Set()),v(this,'_reporters',new Set());}[_0x4767bd(0x10d)](_0x561fd4){var _0x2d2edc=_0x4767bd;return this[_0x2d2edc(0xef)][_0x2d2edc(0x180)](_0x561fd4),o[_0x2d2edc(0x190)](()=>this['_sharedOperations'][_0x2d2edc(0x1c3)](_0x561fd4));}[_0x4767bd(0x14e)](_0x39608e){var _0x4e2c47=_0x4767bd;return this[_0x4e2c47(0x1cb)][_0x4e2c47(0x180)](_0x39608e),o[_0x4e2c47(0x190)](()=>this[_0x4e2c47(0x1cb)][_0x4e2c47(0x1c3)](_0x39608e));}[_0x4767bd(0x1c2)](_0x2f4cb3){var _0x4f732d=_0x4767bd;return this[_0x4f732d(0xef)]['has'](_0x2f4cb3);}[_0x4767bd(0x16f)](_0x187e00){var _0x2c9733=_0x4767bd;return Array[_0x2c9733(0x1a4)](this['_reporters'])[_0x2c9733(0x149)](_0xfc0700=>_0xfc0700(_0x187e00));}}var H=Object[_0x4767bd(0x16b)],V=(_0x2b3ac9,_0x5767df,_0x1833fb,_0x883915)=>{var _0x52807f=_0x4767bd;for(var _0x40a965=_0x883915>0x1?void 0x0:_0x883915?H(_0x5767df,_0x1833fb):_0x5767df,_0x3b1a7a=_0x2b3ac9[_0x52807f(0x11a)]-0x1,_0x29b013;_0x3b1a7a>=0x0;_0x3b1a7a--)(_0x29b013=_0x2b3ac9[_0x3b1a7a])&&(_0x40a965=_0x29b013(_0x40a965)||_0x40a965);return _0x40a965;},k=(_0x2707ba,_0x2389c4)=>(_0x393ea6,_0x1a1705)=>_0x2389c4(_0x393ea6,_0x1a1705,_0x2707ba);let E=class extends o[_0x4767bd(0x14f)]{constructor(_0x4ab0b0){var _0x255841=_0x4767bd;super(),this[_0x255841(0x143)]=_0x4ab0b0,this[_0x255841(0x117)]();}[_0x4767bd(0x117)](){var _0x55c250=_0x4767bd;[w[_0x55c250(0x112)]['id'],w['SetScrollOperation']['id'],C[_0x55c250(0x1c7)]['id']][_0x55c250(0x189)](_0x5b6cd8=>{var _0x1e541b=_0x55c250;this[_0x1e541b(0x114)](this[_0x1e541b(0x143)][_0x1e541b(0x10d)](_0x5b6cd8));});}};E=V([k(0x0,o[_0x4767bd(0x1cc)](O))],E);var u=function(){var _0x1c0d1e=_0x4767bd;return u=Object['assign']||function(_0x86c29f){var _0x563254=_0xcd43;for(var _0x2c7b76,_0x5be86b=0x1,_0x4b5578=arguments[_0x563254(0x11a)];_0x5be86b<_0x4b5578;_0x5be86b++){_0x2c7b76=arguments[_0x5be86b];for(var _0x475bf5 in _0x2c7b76)Object['prototype'][_0x563254(0x115)][_0x563254(0x155)](_0x2c7b76,_0x475bf5)&&(_0x86c29f[_0x475bf5]=_0x2c7b76[_0x475bf5]);}return _0x86c29f;},u[_0x1c0d1e(0x118)](this,arguments);},M=function(_0x43c3f2,_0x341158){var _0x521aa4=_0x4767bd,_0x2c49de={};for(var _0x4efbcb in _0x43c3f2)Object['prototype'][_0x521aa4(0x115)][_0x521aa4(0x155)](_0x43c3f2,_0x4efbcb)&&_0x341158[_0x521aa4(0x151)](_0x4efbcb)<0x0&&(_0x2c49de[_0x4efbcb]=_0x43c3f2[_0x4efbcb]);if(_0x43c3f2!=null&&typeof Object[_0x521aa4(0x12b)]=='function'){for(var _0x4ea588=0x0,_0x4efbcb=Object['getOwnPropertySymbols'](_0x43c3f2);_0x4ea588<_0x4efbcb[_0x521aa4(0x11a)];_0x4ea588++)_0x341158['indexOf'](_0x4efbcb[_0x4ea588])<0x0&&Object[_0x521aa4(0x12a)][_0x521aa4(0x103)][_0x521aa4(0x155)](_0x43c3f2,_0x4efbcb[_0x4ea588])&&(_0x2c49de[_0x4efbcb[_0x4ea588]]=_0x43c3f2[_0x4efbcb[_0x4ea588]]);}return _0x2c49de;},j=f[_0x4767bd(0x181)](function(_0x4785ce,_0x2bf2a5){var _0x924221=_0x4767bd,_0x1dbd69=_0x4785ce['icon'],_0x3c3c35=_0x4785ce['id'],_0x317e73=_0x4785ce[_0x924221(0x108)],_0x531c87=_0x4785ce[_0x924221(0x192)],_0xc869c6=M(_0x4785ce,[_0x924221(0x142),'id',_0x924221(0x108),_0x924221(0x192)]),_0x50bb61=_0x924221(0x17d)[_0x924221(0x172)](_0x3c3c35,'\x20')[_0x924221(0x172)](_0x317e73||'')[_0x924221(0xf4)](),_0x5b36d4=f[_0x924221(0x14d)]('_'[_0x924221(0x172)](G()));return y(_0x1dbd69,''[_0x924221(0x172)](_0x3c3c35),{'defIds':_0x1dbd69[_0x924221(0x178)],'idSuffix':_0x5b36d4[_0x924221(0x111)]},u({'ref':_0x2bf2a5,'className':_0x50bb61},_0xc869c6),_0x531c87);});function y(_0x3ffdbb,_0x2d2aa0,_0x54dcbf,_0x415266,_0x5c5078){var _0x9f8faa=_0x4767bd;return f[_0x9f8faa(0x182)](_0x3ffdbb[_0x9f8faa(0x1bd)],u(u({'key':_0x2d2aa0},q(_0x3ffdbb,_0x54dcbf,_0x5c5078)),_0x415266),(W(_0x3ffdbb,_0x54dcbf)[_0x9f8faa(0x152)]||[])[_0x9f8faa(0x149)](function(_0x563955,_0x8a00f8){var _0xc5bcf9=_0x9f8faa;return y(_0x563955,''[_0xc5bcf9(0x172)](_0x2d2aa0,'-')[_0xc5bcf9(0x172)](_0x3ffdbb[_0xc5bcf9(0x1bd)],'-')['concat'](_0x8a00f8),_0x54dcbf,void 0x0,_0x5c5078);}));}function q(_0xff0d49,_0x118cb6,_0x2d994b){var _0x209c3c=_0x4767bd,_0x15f5ca=u({},_0xff0d49[_0x209c3c(0x18e)]);_0x2d994b!=null&&_0x2d994b[_0x209c3c(0x12d)]&&_0x15f5ca[_0x209c3c(0x10e)]==='colorChannel1'&&(_0x15f5ca[_0x209c3c(0x10e)]=_0x2d994b[_0x209c3c(0x12d)]),_0xff0d49[_0x209c3c(0x1bd)]==='mask'&&_0x15f5ca['id']&&(_0x15f5ca['id']=_0x15f5ca['id']+_0x118cb6[_0x209c3c(0x1a7)]),Object[_0x209c3c(0x188)](_0x15f5ca)['forEach'](function(_0x441dac){var _0x25e2cf=_0x209c3c,_0x240fe5=_0x441dac[0x0],_0x4d207a=_0x441dac[0x1];_0x240fe5===_0x25e2cf(0x12e)&&typeof _0x4d207a=='string'&&(_0x15f5ca[_0x240fe5]=_0x4d207a[_0x25e2cf(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x118cb6[_0x25e2cf(0x1a7)],')')));});var _0x724b7e=_0x118cb6[_0x209c3c(0x178)];return!_0x724b7e||_0x724b7e[_0x209c3c(0x11a)]===0x0||(_0xff0d49[_0x209c3c(0x1bd)]===_0x209c3c(0x15e)&&_0x15f5ca[_0x209c3c(0x1b5)]&&(_0x15f5ca[_0x209c3c(0x1b5)]=_0x15f5ca[_0x209c3c(0x1b5)]+_0x118cb6['idSuffix']),Object[_0x209c3c(0x188)](_0x15f5ca)[_0x209c3c(0x189)](function(_0x4f89ba){var _0x49f247=_0x209c3c,_0x1f7af0=_0x4f89ba[0x0],_0x22ad06=_0x4f89ba[0x1];typeof _0x22ad06==_0x49f247(0xf2)&&(_0x15f5ca[_0x1f7af0]=_0x22ad06[_0x49f247(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x118cb6[_0x49f247(0x1a7)],')')));})),_0x15f5ca;}function W(_0x3abfbb,_0x4ab58f){var _0x2086bd=_0x4767bd,_0x1ba5f1,_0x413720=_0x4ab58f['defIds'];return!_0x413720||_0x413720[_0x2086bd(0x11a)]===0x0?_0x3abfbb:_0x3abfbb[_0x2086bd(0x1bd)]===_0x2086bd(0x1b8)&&(!((_0x1ba5f1=_0x3abfbb[_0x2086bd(0x152)])===null||_0x1ba5f1===void 0x0)&&_0x1ba5f1['length'])?u(u({},_0x3abfbb),{'children':_0x3abfbb[_0x2086bd(0x152)][_0x2086bd(0x149)](function(_0x527a03){var _0x179421=_0x2086bd;return typeof _0x527a03[_0x179421(0x18e)]['id']==_0x179421(0xf2)&&_0x413720&&_0x413720[_0x179421(0x1c6)](_0x527a03[_0x179421(0x18e)]['id'])?u(u({},_0x527a03),{'attrs':u(u({},_0x527a03['attrs']),{'id':_0x527a03['attrs']['id']+_0x4ab58f[_0x179421(0x1a7)]})}):_0x527a03;})}):_0x3abfbb;}function G(){var _0x128c26=_0x4767bd;return Math[_0x128c26(0x179)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x4767bd(0x1a6)]=_0x4767bd(0x1b4);var B={'tag':_0x4767bd(0x10b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4767bd(0x187),'viewBox':_0x4767bd(0x170),'width':_0x4767bd(0x1b3),'height':_0x4767bd(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x4767bd(0x1aa),'d':_0x4767bd(0x167)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x4767bd(0xfe),'fillRule':_0x4767bd(0x17c),'clipRule':_0x4767bd(0x17c)}}]},P=f['forwardRef'](function(_0xaede9,_0x372bd8){var _0x40ae07=_0x4767bd;return f['createElement'](j,Object[_0x40ae07(0x15d)]({},_0xaede9,{'id':_0x40ae07(0x106),'ref':_0x372bd8,'icon':B}));});P[_0x4767bd(0x1a6)]='LiveShareIcon';var Y=Object[_0x4767bd(0x16b)],R=(_0x5c4a7a,_0x41ffc6,_0x1933c4,_0x36e79a)=>{for(var _0x47523e=_0x36e79a>0x1?void 0x0:_0x36e79a?Y(_0x41ffc6,_0x1933c4):_0x41ffc6,_0x12ff97=_0x5c4a7a['length']-0x1,_0x3e4b44;_0x12ff97>=0x0;_0x12ff97--)(_0x3e4b44=_0x5c4a7a[_0x12ff97])&&(_0x47523e=_0x3e4b44(_0x47523e)||_0x47523e);return _0x47523e;},S=(_0x434dd1,_0x589263)=>(_0x37ad57,_0x316a8f)=>_0x589263(_0x37ad57,_0x316a8f,_0x434dd1);exports[_0x4767bd(0x164)]=class extends o[_0x4767bd(0x173)]{constructor(_0x56e3f6,_0x1677ee,_0x40875a){var _0x3541cc=_0x4767bd;super(),v(this,_0x3541cc(0x175),new Map()),(this['_univerInstanceService']=_0x56e3f6,this[_0x3541cc(0x177)]=_0x1677ee,this['_collabSessionService']=_0x40875a,this['_init']());}async[_0x4767bd(0x191)](_0x5f0fb0){var _0x22182f=_0x4767bd;return this[_0x22182f(0x175)][_0x22182f(0xfc)](_0x5f0fb0)||await this[_0x22182f(0x156)](_0x5f0fb0),this[_0x22182f(0x175)]['get'](_0x5f0fb0);}[_0x4767bd(0x117)](){var _0x338662=_0x4767bd;this[_0x338662(0x130)][_0x338662(0x18b)](o[_0x338662(0x199)]['UNIVER_SHEET'])['pipe'](b['takeUntil'](this[_0x338662(0x19b)]))[_0x338662(0x13b)](async _0x55ab07=>{var _0x16d013=_0x338662;const _0x4272b5=_0x55ab07['getUnitId']();this[_0x16d013(0x175)]['has'](_0x4272b5)||this['_startLiveShareCoordinator'](_0x4272b5);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x338662(0x199)]['UNIVER_SHEET'])[_0x338662(0x134)](b[_0x338662(0x119)](this['dispose$']))['subscribe'](_0x278112=>{var _0x549005=_0x338662;const _0x376565=_0x278112['getUnitId'](),_0x12a763=this[_0x549005(0x175)][_0x549005(0x17f)](_0x376565);_0x12a763==null||_0x12a763[_0x549005(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2c02d0){var _0x1f88cd=_0x4767bd;const _0x58033e=await this[_0x1f88cd(0x1a2)]['requireSession'](_0x2c02d0),_0x28715a=this[_0x1f88cd(0x177)][_0x1f88cd(0x17b)](exports[_0x1f88cd(0x110)],_0x2c02d0,_0x58033e);return _0x28715a[_0x1f88cd(0x13f)](),this['_entities'][_0x1f88cd(0xf3)](_0x2c02d0,_0x28715a),_0x28715a;}},exports['LiveShareController']=R([S(0x0,o[_0x4767bd(0x131)]),S(0x1,o[_0x4767bd(0x1cc)](o[_0x4767bd(0x15c)])),S(0x2,o[_0x4767bd(0x1cc)](m[_0x4767bd(0x1d1)]))],exports[_0x4767bd(0x164)]);var h=(_0x39b700=>(_0x39b700[_0x4767bd(0x158)]='offline',_0x39b700[_0x4767bd(0x107)]='idle',_0x39b700[_0x4767bd(0x183)]='following',_0x39b700['NOT_FOLLOWING']=_0x4767bd(0x14c),_0x39b700[_0x4767bd(0x18f)]=_0x4767bd(0x17e),_0x39b700))(h||{});function _0xcd43(_0x4afa57,_0x5e9753){var _0x333b00=_0x333b();return _0xcd43=function(_0xcd4380,_0xfd1f54){_0xcd4380=_0xcd4380-0xef;var _0x39d162=_0x333b00[_0xcd4380];return _0x39d162;},_0xcd43(_0x4afa57,_0x5e9753);}const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;function _0x333b(){var _0x3dff7a=['You\x27re\x20following\x20the\x20presenter','defs','memberID','LIVESHARE_OPERATION','mutations','asObservable','tag','merge','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share.config','useState','shouldShareOperation','delete','376432XEAsKT','NOT_FOLLOWING','includes','SetWorksheetActiveOperation','8CwBmMR','OPERATION','_presenter','_reporters','Inject','stringify','setConfig','Present\x20this\x20document','_uiPartsService','CollaborationSessionService','_sharedOperations','replace','defineProperty','string','set','trim','BuiltInUIPart','_startPresenting','onCommandExecuted','params','_startFollowing','6743FkNhVT','touchDependencies','has','ICommandService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','next','_handleOffline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverCollaborationClientPlugin','propertyIsEnumerable','executeCommand','_config','live-share-icon','IDLE','className','8SfQRVq','Subject','svg','LIVESHARE_REQUEST_HOST','registerSharedOperation','fill','unsubscribe','LiveShareCoordinator','current','SetZoomRatioOperation','text','disposeWithMe','hasOwnProperty','symbol','_init','apply','takeUntil','length','following','then','IConfigService','values','jsx','Start\x20following','send','div','UniverLiveSharePlugin','clsx','getUnitId','2500338drKWph','unitId','_handleOperation','You\x27re\x20presenting\x20the\x20document','prototype','getOwnPropertySymbols','registerComponent','colorChannel1','mask','_fetchOperations','_univerInstanceService','IUniverInstanceService','button','BehaviorSubject','pipe','LIVESHARE_NEW_HOST','5iHlZbu','throttleTime','mergeOverrideWithDependencies','operations','_collabSession','subscribe','IUIPartsService','_stopPresenting','Plugin','init','_status','385638jwYuSv','icon','_liveShareService','parse','21480VGmgte','_handleNewChangeSets','status$','offline','map','89793fnQuUU','toStringTag','not-following','useRef','registerInitialStateReporter','Disposable','CommandType','indexOf','children','ONLINE','parseProtocolChangeset','call','_startLiveShareCoordinator','You\x27are\x20offline.','OFFLINE','_handleNewHost','idle','pluginName','Injector','assign','use','type','onRendered','InsertSheetMutation','complete','_unitID','LiveShareController','override','Button','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','_configService','1052639cDPFDe','NEW_CHANGESETS','getOwnPropertyDescriptor','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','end','getMemberID','getInitialStates','0\x200\x2017\x2017','stopPresenting','concat','RxDisposable','_beIdle','_entities','_handleOnline','_injector','defIds','random','data','createInstance','evenodd','univerjs-icon\x20univerjs-icon-','presenting','get','add','forwardRef','createElement','FOLLOWING','registerDependencies','LIVESHARE_FETCH_OPERATIONS','presenter','none','entries','forEach','getValue','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','_commandService','attrs','PRESENTING','toDisposable','getLiveShareCoordinator','extend','useDependency','stopFollowing','_handleTerminate','DesktopLiveShareController','UNIVER_UNKNOWN','useObservable','UniverInstanceType','DisposableCollection','dispose$','sheet','UNIVER_SHEET','_commandDisposable','default','startFollowing','Stop\x20presenting','_collabSessionService','getConfig','from','158475vnTOYx','displayName','idSuffix','univer-size-4','_stopFollowing','currentColor','find','onStarting','_status$','dispose','_mountLiveShare','CollaborationEvent','tryStartPresenting','Fragment','1em','UniverIcon','xlink:href','jsxs'];_0x333b=function(){return _0x3dff7a;};return _0x333b();}exports[_0x4767bd(0x110)]=class extends o[_0x4767bd(0x173)]{constructor(_0x43d81f,_0x44c8c8,_0x33da22,_0x4adf5d,_0xe947a4){var _0xcce505=_0x4767bd;super(),v(this,_0xcce505(0x1ad),new D[(_0xcce505(0x133))](_0xcce505(0x15a))),v(this,_0xcce505(0x147),this['_status$'][_0xcce505(0x1bc)]()),v(this,'_init',!0x1),v(this,_0xcce505(0x19e),null),v(this,'_presenter',null),(this[_0xcce505(0x163)]=_0x43d81f,this[_0xcce505(0x13a)]=_0x44c8c8,this[_0xcce505(0x168)]=_0x33da22,this['_liveShareService']=_0x4adf5d,this[_0xcce505(0x18d)]=_0xe947a4);}get['_status'](){var _0x50ee14=_0x4767bd;return this[_0x50ee14(0x1ad)][_0x50ee14(0x18a)]();}[_0x4767bd(0x1ae)](){var _0x20c9ca=_0x4767bd,_0x53629e;(_0x53629e=this[_0x20c9ca(0x19e)])==null||_0x53629e[_0x20c9ca(0x1ae)](),this['_status$'][_0x20c9ca(0xff)](_0x20c9ca(0x15a)),this[_0x20c9ca(0x1ad)]['complete']();}[_0x4767bd(0x13f)](){var _0x3388da=_0x4767bd;this[_0x3388da(0x117)]||(this[_0x3388da(0x117)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3388da(0x134)](b['takeUntil'](this['dispose$']))[_0x3388da(0x13b)](_0x49e7b5=>{var _0x3965a1=_0x3388da;switch(_0x49e7b5){case m['SessionStatus'][_0x3965a1(0x158)]:this[_0x3965a1(0x100)]();break;case m['SessionStatus'][_0x3965a1(0x153)]:this['_handleOnline']();break;}}),this[_0x3388da(0x13a)]['event$'][_0x3388da(0x134)](b[_0x3388da(0x119)](this[_0x3388da(0x19b)]))[_0x3388da(0x13b)](_0x48c9b3=>{var _0x1a20b7=_0x3388da;const {eventID:_0x3942d2}=_0x48c9b3;switch(_0x3942d2){case _[_0x1a20b7(0x1b0)][_0x1a20b7(0x135)]:this[_0x1a20b7(0x159)](_0x48c9b3);break;case _[_0x1a20b7(0x1b0)]['LIVESHARE_OPERATION']:this[_0x1a20b7(0x128)](_0x48c9b3);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1a20b7(0x195)]();break;case _[_0x1a20b7(0x1b0)][_0x1a20b7(0x16a)]:this[_0x1a20b7(0x146)](_0x48c9b3);break;}}));}[_0x4767bd(0x1b1)](){var _0x1ccac1=_0x4767bd;this['_collabSession'][_0x1ccac1(0x121)]({'eventID':_[_0x1ccac1(0x1b0)][_0x1ccac1(0x10c)],'data':{'unitID':this[_0x1ccac1(0x163)],'userID':this['_collabSession'][_0x1ccac1(0x16e)]()}},this[_0x1ccac1(0x163)]);}[_0x4767bd(0x171)](){var _0x23398c=_0x4767bd;this[_0x23398c(0x140)]===_0x23398c(0x17e)&&(this['_status$'][_0x23398c(0xff)](_0x23398c(0x15a)),this[_0x23398c(0x13a)][_0x23398c(0x121)]({'eventID':_['CollaborationEvent'][_0x23398c(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x23398c(0x163)]));}[_0x4767bd(0x1a0)](){var _0x352111=_0x4767bd;this['_status']==='not-following'&&(this['_status$'][_0x352111(0xff)](_0x352111(0x11b)),this[_0x352111(0xf9)]());}[_0x4767bd(0x194)](){var _0x585245=_0x4767bd;this[_0x585245(0x140)]==='following'&&this[_0x585245(0x1a9)]();}['_handleNewHost'](_0x3c5f53){var _0x76652=_0x4767bd;const {presenter:_0x307383}=_0x3c5f53[_0x76652(0x17a)],_0x389f15=this['_collabSession'][_0x76652(0x16e)]();this['_presenter']=_0x307383,_0x307383===_0x389f15?(this[_0x76652(0x1a9)](),this[_0x76652(0xf6)]()):this[_0x76652(0x140)]!==_0x76652(0x14c)&&(this[_0x76652(0x13d)](),this[_0x76652(0xf9)]());}[_0x4767bd(0x12f)](){var _0x12d35c=_0x4767bd;const _0x452689={'eventID':_[_0x12d35c(0x1b0)][_0x12d35c(0x185)]};this[_0x12d35c(0x13a)][_0x12d35c(0x121)](_0x452689,this[_0x12d35c(0x163)]);}['_handleTerminate'](){var _0x54a401=_0x4767bd;this[_0x54a401(0x1ca)]=null,this[_0x54a401(0x140)]!==_0x54a401(0x17e)&&this[_0x54a401(0x174)]();}['_handleNewChangeSets'](_0x3cf312){var _0x1172cd=_0x4767bd;if(this[_0x1172cd(0x140)]===_0x1172cd(0x11b)&&this['_presenter']===_0x3cf312[_0x1172cd(0x17a)][_0x1172cd(0x1b9)]){const _0x1adab8=_[_0x1172cd(0x154)](_0x3cf312[_0x1172cd(0x17a)])[_0x1172cd(0x1bb)]['reverse']()[_0x1172cd(0x1ab)](_0x4c47df=>_0x4c47df['id']===C[_0x1172cd(0x161)]['id']);if(_0x1adab8){const _0x1434f=_0x1adab8[_0x1172cd(0xf8)][_0x1172cd(0x127)],_0x27d011=_0x1adab8[_0x1172cd(0xf8)][_0x1172cd(0x19c)]['id'];setTimeout(()=>{var _0x58e3b1=_0x1172cd;this['_commandService'][_0x58e3b1(0x104)](C[_0x58e3b1(0x1c7)]['id'],{'unitId':_0x1434f,'subUnitId':_0x27d011},{'fromCollab':!0x0});});}}}[_0x4767bd(0xf6)](){var _0x40248e=_0x4767bd;this['_status$'][_0x40248e(0xff)](_0x40248e(0x17e));const _0x472dc0=new Map(),_0x2fd6f1=this[_0x40248e(0x19e)]=new o[(_0x40248e(0x19a))]();_0x2fd6f1['add'](o[_0x40248e(0x190)](()=>{var _0x4f72b8=_0x40248e;_0x472dc0[_0x4f72b8(0x189)](_0xa86b44=>_0xa86b44[_0x4f72b8(0x162)]()),_0x472dc0['clear']();})),_0x2fd6f1[_0x40248e(0x180)](this[_0x40248e(0x18d)][_0x40248e(0xf7)](_0x15c21d=>{var _0x1ff0cd=_0x40248e,_0x3eac3a;if(_0x15c21d['type']!==o[_0x1ff0cd(0x150)][_0x1ff0cd(0x1c9)]||!this[_0x1ff0cd(0x143)][_0x1ff0cd(0x1c2)](_0x15c21d['id']))return;const {id:_0x3ac00f}=_0x15c21d;let _0x140d8d;_0x472dc0[_0x1ff0cd(0xfc)](_0x3ac00f)?_0x140d8d=_0x472dc0['get'](_0x3ac00f):(_0x140d8d=new D[(_0x1ff0cd(0x10a))](),_0x472dc0[_0x1ff0cd(0xf3)](_0x3ac00f,_0x140d8d),_0x140d8d[_0x1ff0cd(0x134)](b[_0x1ff0cd(0x137)]((_0x3eac3a=this[_0x1ff0cd(0x168)][_0x1ff0cd(0x1a3)](Z))!=null?_0x3eac3a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ff0cd(0x13b)](_0x390b35=>{var _0x575194=_0x1ff0cd;this[_0x575194(0x13a)]['send']({'eventID':_[_0x575194(0x1b0)][_0x575194(0x1ba)],'data':{'unitID':this[_0x575194(0x163)],'operations':{[_0x390b35['id']]:{'id':_0x390b35['id'],'params':JSON[_0x575194(0x1cd)](_0x390b35[_0x575194(0xf8)])}}}},this[_0x575194(0x163)]);})),_0x140d8d[_0x1ff0cd(0xff)](_0x15c21d);})),this[_0x40248e(0x143)][_0x40248e(0x16f)](this[_0x40248e(0x163)])[_0x40248e(0x189)](_0x37734d=>this['_collabSession'][_0x40248e(0x121)]({'eventID':_[_0x40248e(0x1b0)][_0x40248e(0x1ba)],'data':{'unitID':this[_0x40248e(0x163)],'operations':{[_0x37734d['id']]:{'id':_0x37734d['id'],'params':JSON['stringify'](_0x37734d[_0x40248e(0xf8)])}}}},this[_0x40248e(0x163)]));}[_0x4767bd(0x13d)](){var _0x3e690c=_0x4767bd,_0x48362a;this[_0x3e690c(0x1ad)][_0x3e690c(0xff)](_0x3e690c(0x15a)),(_0x48362a=this[_0x3e690c(0x19e)])==null||_0x48362a[_0x3e690c(0x1ae)](),this[_0x3e690c(0x19e)]=null;}[_0x4767bd(0xf9)](){var _0x440af5=_0x4767bd,_0x1f2a11;(_0x1f2a11=this[_0x440af5(0x19e)])==null||_0x1f2a11[_0x440af5(0x1ae)](),this['_status$'][_0x440af5(0xff)]('following');}[_0x4767bd(0x174)](){var _0x3fa80e=_0x4767bd,_0x23554c;this[_0x3fa80e(0x1ad)][_0x3fa80e(0xff)](_0x3fa80e(0x15a)),(_0x23554c=this['_commandDisposable'])==null||_0x23554c[_0x3fa80e(0x1ae)](),this[_0x3fa80e(0x19e)]=null;}['_stopFollowing'](){var _0x35bd4f=_0x4767bd,_0x1d6928;this[_0x35bd4f(0x1ad)][_0x35bd4f(0xff)]('not-following'),(_0x1d6928=this[_0x35bd4f(0x19e)])==null||_0x1d6928[_0x35bd4f(0x1ae)]();}[_0x4767bd(0x128)](_0x522c84){var _0x4c6527=_0x4767bd;if([_0x4c6527(0x17e),_0x4c6527(0x14c),_0x4c6527(0x148)][_0x4c6527(0x1c6)](this[_0x4c6527(0x140)])||!_0x522c84[_0x4c6527(0x17a)]['presenter']||_0x522c84[_0x4c6527(0x17a)][_0x4c6527(0x186)]===this[_0x4c6527(0x13a)][_0x4c6527(0x16e)]())return;this[_0x4c6527(0x140)]===_0x4c6527(0x15a)&&this[_0x4c6527(0xf9)]();const _0x3e604e=_0x522c84[_0x4c6527(0x17a)][_0x4c6527(0x139)];Object[_0x4c6527(0x11e)](_0x3e604e)[_0x4c6527(0x189)](_0x4bd04f=>{var _0x2e324e=_0x4c6527;this[_0x2e324e(0x18d)]['executeCommand'](_0x4bd04f['id'],_0x4bd04f[_0x2e324e(0xf8)]?JSON[_0x2e324e(0x144)](_0x4bd04f[_0x2e324e(0xf8)]):null,{'fromCollab':!0x0});});}[_0x4767bd(0x100)](){var _0x124c95=_0x4767bd,_0x2dce3d;this[_0x124c95(0x1ad)][_0x124c95(0xff)](_0x124c95(0x148)),(_0x2dce3d=this['_commandDisposable'])==null||_0x2dce3d['dispose']();}[_0x4767bd(0x176)](){var _0x2e4d15=_0x4767bd;this[_0x2e4d15(0x1ad)][_0x2e4d15(0xff)](_0x2e4d15(0x15a)),this['_fetchOperations']();}},exports[_0x4767bd(0x110)]=R([S(0x2,o[_0x4767bd(0x11d)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x4767bd(0xfd)])],exports['LiveShareCoordinator']);function A(){var _0x1a5224=_0x4767bd;const _0x1ab2c5=p['useDependency'](exports[_0x1a5224(0x164)]),_0x40bec5=p[_0x1a5224(0x193)](o[_0x1a5224(0x131)]),_0x1d0648=p[_0x1a5224(0x198)](()=>_0x40bec5['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x1a5224(0x19d)]),void 0x0,!0x1,[]),[_0x2deb33,_0x24b8e6]=f[_0x1a5224(0x1c1)](null),[_0x5d8951,_0x284219]=f[_0x1a5224(0x1c1)](h[_0x1a5224(0x107)]),_0x1d2df4=f[_0x1a5224(0x14d)](null);return f['useEffect'](()=>(_0x1d0648&&_0x1ab2c5[_0x1a5224(0x191)](_0x1d0648[_0x1a5224(0x125)]())[_0x1a5224(0x11c)](_0x46aad2=>{var _0x1e479e=_0x1a5224;_0x24b8e6(_0x46aad2),_0x1d2df4['current']=_0x46aad2[_0x1e479e(0x147)][_0x1e479e(0x13b)](_0x312b60=>{_0x284219(_0x312b60);});}),()=>{var _0x238942=_0x1a5224,_0x8b1466;(_0x8b1466=_0x1d2df4[_0x238942(0x111)])==null||_0x8b1466[_0x238942(0x10f)](),_0x1d2df4[_0x238942(0x111)]=null;}),[_0x1d0648,_0x1ab2c5]),_0x2deb33?l[_0x1a5224(0x11f)](g['Dropdown'],{'align':_0x1a5224(0x16d),'disabled':_0x5d8951===h[_0x1a5224(0x158)],'className':_0x1a5224(0x16c),'overlay':l[_0x1a5224(0x11f)](K,{'status':_0x5d8951,'coordinator':_0x2deb33}),'children':l[_0x1a5224(0x11f)]('button',{'className':g[_0x1a5224(0x124)](_0x1a5224(0x101),{'univer-cursor-not-allowed':_0x5d8951===h[_0x1a5224(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5d8951!==h[_0x1a5224(0x158)]}),'type':_0x1a5224(0x132),'children':l[_0x1a5224(0x11f)](P,{'className':_0x1a5224(0x1a8)})})}):null;}function K(_0x44b845){var _0x4c7884=_0x4767bd;const {status:_0x33cb69,coordinator:_0x481f40}=_0x44b845;switch(_0x33cb69){case h[_0x4c7884(0x107)]:return l['jsx'](z,{'coordinator':_0x481f40});case h[_0x4c7884(0x183)]:return l[_0x4c7884(0x11f)](Q,{'coordinator':_0x481f40});case h[_0x4c7884(0x1c5)]:return l[_0x4c7884(0x11f)](X,{'coordinator':_0x481f40});case h['OFFLINE']:return l[_0x4c7884(0x11f)](te,{});case h[_0x4c7884(0x18f)]:return l[_0x4c7884(0x11f)](ee,{'coordinator':_0x481f40});default:return null;}}function z(_0x2adb87){var _0x4519fb=_0x4767bd;const {coordinator:_0x4c4bc1}=_0x2adb87;return l[_0x4519fb(0x1b6)](l['Fragment'],{'children':[l[_0x4519fb(0x11f)](_0x4519fb(0x122),{'className':_0x4519fb(0x1bf),'children':_0x4519fb(0x1cf)}),l[_0x4519fb(0x11f)](g[_0x4519fb(0x166)],{'onClick':()=>_0x4c4bc1['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x21d976){var _0x255240=_0x4767bd;const {coordinator:_0x468a09}=_0x21d976;return l[_0x255240(0x1b6)](l['Fragment'],{'children':[l[_0x255240(0x11f)]('div',{'className':_0x255240(0x1bf),'children':_0x255240(0x1b7)}),l[_0x255240(0x11f)](g['Button'],{'onClick':()=>_0x468a09[_0x255240(0x194)](),'children':'Stop\x20following'})]});}function X(_0x431a23){var _0x5b3e9a=_0x4767bd;const {coordinator:_0x1f29cc}=_0x431a23;return l[_0x5b3e9a(0x1b6)](l['Fragment'],{'children':[l['jsx'](_0x5b3e9a(0x122),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x5b3e9a(0x11f)](g['Button'],{'variant':_0x5b3e9a(0x113),'onClick':()=>_0x1f29cc[_0x5b3e9a(0x1a0)](),'children':_0x5b3e9a(0x120)})]});}function ee(_0x393e8e){var _0x33b785=_0x4767bd;const {coordinator:_0xff063d}=_0x393e8e;return l[_0x33b785(0x1b6)](l[_0x33b785(0x1b2)],{'children':[l[_0x33b785(0x11f)](_0x33b785(0x122),{'className':_0x33b785(0x1bf),'children':_0x33b785(0x129)}),l[_0x33b785(0x11f)](g[_0x33b785(0x166)],{'variant':_0x33b785(0x19f),'onClick':()=>_0xff063d['stopPresenting'](),'children':_0x33b785(0x1a1)})]});}function te(){var _0x545671=_0x4767bd;return l[_0x545671(0x11f)](l[_0x545671(0x1b2)],{'children':_0x545671(0x157)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x8fcd45,_0x21ba50,_0x4da713,_0xf02ae9)=>{var _0x1978b0=_0x4767bd;for(var _0x4c16e1=_0xf02ae9>0x1?void 0x0:_0xf02ae9?ie(_0x21ba50,_0x4da713):_0x21ba50,_0x4bd8a9=_0x8fcd45[_0x1978b0(0x11a)]-0x1,_0x15f765;_0x4bd8a9>=0x0;_0x4bd8a9--)(_0x15f765=_0x8fcd45[_0x4bd8a9])&&(_0x4c16e1=_0x15f765(_0x4c16e1)||_0x4c16e1);return _0x4c16e1;},L=(_0x368fd2,_0x377c12)=>(_0x160e44,_0x239d9e)=>_0x377c12(_0x160e44,_0x239d9e,_0x368fd2);exports[_0x4767bd(0x196)]=class extends o[_0x4767bd(0x14f)]{constructor(_0xf5819f,_0xf12316){var _0x2466a5=_0x4767bd;super(),this[_0x2466a5(0x177)]=_0xf5819f,this[_0x2466a5(0x1d0)]=_0xf12316,this[_0x2466a5(0x1af)]();}[_0x4767bd(0x1af)](){var _0x4cd2f4=_0x4767bd;this[_0x4cd2f4(0x114)](this[_0x4cd2f4(0x1d0)][_0x4cd2f4(0x12c)](p[_0x4cd2f4(0xf5)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x4cd2f4(0x177)])));}},exports[_0x4767bd(0x196)]=ne([L(0x0,o[_0x4767bd(0x1cc)](o[_0x4767bd(0x15c)])),L(0x1,p[_0x4767bd(0x13c)])],exports[_0x4767bd(0x196)]);var re=Object[_0x4767bd(0xf1)],se=Object['getOwnPropertyDescriptor'],oe=(_0x4ad84a,_0x33c183,_0x2285e8)=>_0x33c183 in _0x4ad84a?re(_0x4ad84a,_0x33c183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2285e8}):_0x4ad84a[_0x33c183]=_0x2285e8,ae=(_0x237cba,_0x4e707,_0x1dd848,_0x388e73)=>{var _0x4263fd=_0x4767bd;for(var _0x24b0dc=_0x388e73>0x1?void 0x0:_0x388e73?se(_0x4e707,_0x1dd848):_0x4e707,_0x541010=_0x237cba[_0x4263fd(0x11a)]-0x1,_0x7d0b3d;_0x541010>=0x0;_0x541010--)(_0x7d0b3d=_0x237cba[_0x541010])&&(_0x24b0dc=_0x7d0b3d(_0x24b0dc)||_0x24b0dc);return _0x24b0dc;},N=(_0x52b8f4,_0xd493b1)=>(_0x1c064f,_0x4d02e5)=>_0xd493b1(_0x1c064f,_0x4d02e5,_0x52b8f4),T=(_0x81ccb9,_0x2ab8b3,_0x575bb3)=>oe(_0x81ccb9,typeof _0x2ab8b3!=_0x4767bd(0x116)?_0x2ab8b3+'':_0x2ab8b3,_0x575bb3);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4767bd(0x123)]=class extends o[_0x4767bd(0x13e)]{constructor(_0xda200f=x,_0x9430d2,_0x3d41f2){var _0x29eb55=_0x4767bd;super(),this[_0x29eb55(0x105)]=_0xda200f,this[_0x29eb55(0x177)]=_0x9430d2,this[_0x29eb55(0x168)]=_0x3d41f2;const {..._0x46e0f3}=o[_0x29eb55(0x1be)]({},x,this['_config']);this[_0x29eb55(0x168)][_0x29eb55(0x1ce)]($,_0x46e0f3);}[_0x4767bd(0x1ac)](){var _0x1f5a9e=_0x4767bd;o[_0x1f5a9e(0x184)](this['_injector'],o[_0x1f5a9e(0x138)]([[O],[exports[_0x1f5a9e(0x164)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x1f5a9e(0x165)])),o[_0x1f5a9e(0xfb)](this['_injector'],[[E]]);}[_0x4767bd(0x160)](){var _0x1c9d68=_0x4767bd;o[_0x1c9d68(0xfb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x4767bd(0x123)],_0x4767bd(0x15f),o[_0x4767bd(0x199)][_0x4767bd(0x197)]),T(exports[_0x4767bd(0x123)],_0x4767bd(0x15b),le),exports[_0x4767bd(0x123)]=ae([o['DependentOn'](m[_0x4767bd(0x102)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x4767bd(0x123)]),exports['LiveShare']=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x374f0d=_0x777f;(function(_0x5618cb,_0x5bf0bd){var _0x427a17=_0x777f,_0x2cfe68=_0x5618cb();while(!![]){try{var _0x49e084=-parseInt(_0x427a17(0x12c))/0x1*(-parseInt(_0x427a17(0xcf))/0x2)+-parseInt(_0x427a17(0x165))/0x3+parseInt(_0x427a17(0x13f))/0x4+parseInt(_0x427a17(0x113))/0x5*(parseInt(_0x427a17(0xc2))/0x6)+parseInt(_0x427a17(0xc3))/0x7*(parseInt(_0x427a17(0xcd))/0x8)+-parseInt(_0x427a17(0xee))/0x9*(-parseInt(_0x427a17(0xfe))/0xa)+-parseInt(_0x427a17(0x104))/0xb;if(_0x49e084===_0x5bf0bd)break;else _0x2cfe68['push'](_0x2cfe68['shift']());}catch(_0x5493ee){_0x2cfe68['push'](_0x2cfe68['shift']());}}}(_0x5f2a,0xbdc4e));var q=Object['defineProperty'],z=(_0xea560d,_0x25118f,_0x3a50bd)=>_0x25118f in _0xea560d?q(_0xea560d,_0x25118f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a50bd}):_0xea560d[_0x25118f]=_0x3a50bd,d=(_0x463421,_0x1996d9,_0x55e458)=>z(_0x463421,typeof _0x1996d9!='symbol'?_0x1996d9+'':_0x1996d9,_0x55e458);import{CollaborationSessionService as _0x52f07c,SessionStatus as _0x2830e1,UniverCollaborationClientPlugin as _0xadeaf6}from'@univerjs-pro/collaboration-client';import{Disposable as _0x23bae8,toDisposable as _0x123a30,Inject as _0x314c14,IUniverInstanceService as _0x50d8c5,Injector as _0x1bfa83,IConfigService as _0x1c9c8e,ICommandService as _0x11b5db,RxDisposable as _0x131b2c,UniverInstanceType as _0x571d0a,DisposableCollection as _0x179014,CommandType as _0x3475ca,DependentOn as _0x39f7a7,Plugin as _0x552d9d,merge as _0x13d80c,registerDependencies as _0x1c17e9,mergeOverrideWithDependencies as _0x100a43,touchDependencies as _0x870d19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2e879b,InsertSheetMutation as _0x7f5e33}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e038b,SetScrollOperation as _0x5df0f0}from'@univerjs/sheets-ui';import{useDependency as _0x3cb200,useObservable as _0x26a8d4,IUIPartsService as _0x2aa461,BuiltInUIPart as _0x5bfd17,connectInjector as _0x14037c}from'@univerjs/ui';import{jsx as _0x5cd53e,jsxs as _0x5cf0f1,Fragment as _0x5e9c70}from'react/jsx-runtime';import{Dropdown as _0x9196d1,clsx as _0x1101ed,Button as _0xd1b51f}from'@univerjs/design';import{forwardRef as _0x509778,useRef as _0x2e65b7,createElement as _0x8e75da,useState as _0x11d288,useEffect as _0x241cbb}from'react';import{CollaborationEvent as _0x283e71,parseProtocolChangeset as _0x64dfb3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3f8b82,Subject as _0x3e95be}from'rxjs';import{takeUntil as _0x1d68b7,throttleTime as _0x33739f}from'rxjs/operators';const Oe=_0x374f0d(0xd7),T={};class L extends _0x23bae8{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x374f0d(0x16d)](_0x3119f5){var _0x3982f4=_0x374f0d;return this[_0x3982f4(0x129)]['add'](_0x3119f5),_0x123a30(()=>this[_0x3982f4(0x129)][_0x3982f4(0x15a)](_0x3119f5));}[_0x374f0d(0x132)](_0x2ad29f){var _0x285ac4=_0x374f0d;return this[_0x285ac4(0xd3)][_0x285ac4(0x140)](_0x2ad29f),_0x123a30(()=>this[_0x285ac4(0xd3)]['delete'](_0x2ad29f));}['shouldShareOperation'](_0x346d30){var _0x5b3e53=_0x374f0d;return this[_0x5b3e53(0x129)]['has'](_0x346d30);}[_0x374f0d(0xe6)](_0x252c32){var _0x2048cf=_0x374f0d;return Array[_0x2048cf(0xd9)](this[_0x2048cf(0xd3)])[_0x2048cf(0x10f)](_0x2c6efe=>_0x2c6efe(_0x252c32));}}var Ee=Object[_0x374f0d(0xf0)],we=(_0x227caa,_0x23138c,_0x1ebf2b,_0x48e980)=>{var _0x1519e6=_0x374f0d;for(var _0x5d3baf=_0x48e980>0x1?void 0x0:_0x48e980?Ee(_0x23138c,_0x1ebf2b):_0x23138c,_0x30a7ab=_0x227caa[_0x1519e6(0xcc)]-0x1,_0x15b2c3;_0x30a7ab>=0x0;_0x30a7ab--)(_0x15b2c3=_0x227caa[_0x30a7ab])&&(_0x5d3baf=_0x15b2c3(_0x5d3baf)||_0x5d3baf);return _0x5d3baf;},Ne=(_0x116329,_0x36b362)=>(_0xfe99d7,_0x41d532)=>_0x36b362(_0xfe99d7,_0x41d532,_0x116329);let m=class extends _0x23bae8{constructor(_0x39b9ed){var _0x35c21f=_0x374f0d;super(),this[_0x35c21f(0x14a)]=_0x39b9ed,this[_0x35c21f(0xe1)]();}[_0x374f0d(0xe1)](){var _0x2b7dac=_0x374f0d;[_0x5e038b['id'],_0x5df0f0['id'],_0x2e879b['id']][_0x2b7dac(0x155)](_0x1a41b4=>{var _0x5ddb88=_0x2b7dac;this[_0x5ddb88(0xda)](this[_0x5ddb88(0x14a)][_0x5ddb88(0x16d)](_0x1a41b4));});}};m=we([Ne(0x0,_0x314c14(L))],m);var c=function(){var _0x1fdc83=_0x374f0d;return c=Object['assign']||function(_0x3560ea){var _0x3c0683=_0x777f;for(var _0x5dd13e,_0x38d331=0x1,_0x5d7f46=arguments['length'];_0x38d331<_0x5d7f46;_0x38d331++){_0x5dd13e=arguments[_0x38d331];for(var _0x507956 in _0x5dd13e)Object[_0x3c0683(0x12d)]['hasOwnProperty'][_0x3c0683(0xd5)](_0x5dd13e,_0x507956)&&(_0x3560ea[_0x507956]=_0x5dd13e[_0x507956]);}return _0x3560ea;},c[_0x1fdc83(0xce)](this,arguments);},Ce=function(_0x35ef30,_0xa52db9){var _0xf0f1f7=_0x374f0d,_0x28517c={};for(var _0x535089 in _0x35ef30)Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0x16a)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089)&&_0xa52db9['indexOf'](_0x535089)<0x0&&(_0x28517c[_0x535089]=_0x35ef30[_0x535089]);if(_0x35ef30!=null&&typeof Object[_0xf0f1f7(0x16f)]==_0xf0f1f7(0xfd)){for(var _0xb52376=0x0,_0x535089=Object[_0xf0f1f7(0x16f)](_0x35ef30);_0xb52376<_0x535089[_0xf0f1f7(0xcc)];_0xb52376++)_0xa52db9[_0xf0f1f7(0x141)](_0x535089[_0xb52376])<0x0&&Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0xc4)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089[_0xb52376])&&(_0x28517c[_0x535089[_0xb52376]]=_0x35ef30[_0x535089[_0xb52376]]);}return _0x28517c;},W=_0x509778(function(_0x1e72e7,_0x17fa72){var _0x1bb41b=_0x374f0d,_0x5e1ac3=_0x1e72e7['icon'],_0x2f17cf=_0x1e72e7['id'],_0x148cc2=_0x1e72e7[_0x1bb41b(0x10b)],_0x3df4dc=_0x1e72e7[_0x1bb41b(0x11b)],_0x3309a1=Ce(_0x1e72e7,['icon','id',_0x1bb41b(0x10b),_0x1bb41b(0x11b)]),_0x47527e=_0x1bb41b(0x15b)[_0x1bb41b(0x133)](_0x2f17cf,'\x20')[_0x1bb41b(0x133)](_0x148cc2||'')[_0x1bb41b(0x12e)](),_0x336a64=_0x2e65b7('_'[_0x1bb41b(0x133)](Le()));return Y(_0x5e1ac3,''[_0x1bb41b(0x133)](_0x2f17cf),{'defIds':_0x5e1ac3['defIds'],'idSuffix':_0x336a64[_0x1bb41b(0x15c)]},c({'ref':_0x17fa72,'className':_0x47527e},_0x3309a1),_0x3df4dc);});function Y(_0x47e20a,_0x462a24,_0xf6447e,_0x19c687,_0x38d9a4){var _0x19cae7=_0x374f0d;return _0x8e75da(_0x47e20a[_0x19cae7(0xf6)],c(c({'key':_0x462a24},De(_0x47e20a,_0xf6447e,_0x38d9a4)),_0x19c687),(xe(_0x47e20a,_0xf6447e)[_0x19cae7(0x128)]||[])[_0x19cae7(0x10f)](function(_0x3a896c,_0x1cd11a){var _0x41c05f=_0x19cae7;return Y(_0x3a896c,''[_0x41c05f(0x133)](_0x462a24,'-')['concat'](_0x47e20a[_0x41c05f(0xf6)],'-')[_0x41c05f(0x133)](_0x1cd11a),_0xf6447e,void 0x0,_0x38d9a4);}));}function De(_0x38e45c,_0x36d365,_0xa0ca93){var _0x172963=_0x374f0d,_0x209214=c({},_0x38e45c[_0x172963(0x121)]);_0xa0ca93!=null&&_0xa0ca93[_0x172963(0x13d)]&&_0x209214[_0x172963(0x14e)]===_0x172963(0x13d)&&(_0x209214[_0x172963(0x14e)]=_0xa0ca93[_0x172963(0x13d)]),_0x38e45c['tag']===_0x172963(0xeb)&&_0x209214['id']&&(_0x209214['id']=_0x209214['id']+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)[_0x172963(0x155)](function(_0x324cd6){var _0x383c6c=_0x172963,_0x57dae8=_0x324cd6[0x0],_0xccc522=_0x324cd6[0x1];_0x57dae8===_0x383c6c(0xeb)&&typeof _0xccc522==_0x383c6c(0xbf)&&(_0x209214[_0x57dae8]=_0xccc522[_0x383c6c(0xef)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d365['idSuffix'],')')));});var _0x481445=_0x36d365['defIds'];return!_0x481445||_0x481445['length']===0x0||(_0x38e45c[_0x172963(0xf6)]===_0x172963(0x158)&&_0x209214['xlink:href']&&(_0x209214['xlink:href']=_0x209214[_0x172963(0x143)]+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)['forEach'](function(_0x2d3c87){var _0x3f8dc5=_0x172963,_0x24ad34=_0x2d3c87[0x0],_0x7977ab=_0x2d3c87[0x1];typeof _0x7977ab==_0x3f8dc5(0xbf)&&(_0x209214[_0x24ad34]=_0x7977ab[_0x3f8dc5(0xef)](/url\(#(.*)\)/,_0x3f8dc5(0x11c)[_0x3f8dc5(0x133)](_0x36d365['idSuffix'],')')));})),_0x209214;}function xe(_0x12e8b2,_0x1d076d){var _0x41cdaa=_0x374f0d,_0x4f2e5d,_0x21bb2b=_0x1d076d[_0x41cdaa(0xc5)];return!_0x21bb2b||_0x21bb2b[_0x41cdaa(0xcc)]===0x0?_0x12e8b2:_0x12e8b2['tag']==='defs'&&(!((_0x4f2e5d=_0x12e8b2[_0x41cdaa(0x128)])===null||_0x4f2e5d===void 0x0)&&_0x4f2e5d[_0x41cdaa(0xcc)])?c(c({},_0x12e8b2),{'children':_0x12e8b2[_0x41cdaa(0x128)][_0x41cdaa(0x10f)](function(_0x2eadf0){var _0x1e5868=_0x41cdaa;return typeof _0x2eadf0[_0x1e5868(0x121)]['id']==_0x1e5868(0xbf)&&_0x21bb2b&&_0x21bb2b[_0x1e5868(0xcb)](_0x2eadf0[_0x1e5868(0x121)]['id'])?c(c({},_0x2eadf0),{'attrs':c(c({},_0x2eadf0[_0x1e5868(0x121)]),{'id':_0x2eadf0[_0x1e5868(0x121)]['id']+_0x1d076d[_0x1e5868(0x11f)]})}):_0x2eadf0;})}):_0x12e8b2;}function _0x5f2a(){var _0x2244ce=['use','HEADER_MENU','delete','univerjs-icon\x20univerjs-icon-','current','_collabSessionService','_handleOperation','mutations','_collabSession','1em','presenter','_commandService','PRESENTING','1810164OFfWVn','_config','setConfig','memberID','_handleOnline','hasOwnProperty','subscribe','path','registerSharedOperation','_handleNewHost','getOwnPropertySymbols','getTypeOfUnitDisposed$','sheet','LIVESHARE_OPERATION','_fetchOperations','presenting','string','FOLLOWING','dispose$','43800IcjPzh','68817jreaps','propertyIsEnumerable','defIds','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','includes','length','1096BnUhjI','apply','36tGgjDt','registerComponent','random','getMemberID','_reporters','entries','call','type','live-share.config','startFollowing','from','disposeWithMe','UNIVER_SHEET','_beIdle','Start\x20following','_startLiveShareCoordinator','getTypeOfUnitAdded$','getConfig','_init','_stopPresenting','_handleOffline','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','svg','getInitialStates','_stopFollowing','executeCommand','send','getUnitId','mask','_startPresenting','params','87966oIXkgc','replace','getOwnPropertyDescriptor','displayName','currentColor','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','tag','find','_status','IDLE','complete','_univerInstanceService','LIVESHARE_TERMINATE','function','730eBUOgj','init','idle','pipe','univer-size-4','onRendered','38075224HvEvvY','_startFollowing','dispose','next','substring','You\x27re\x20following\x20the\x20presenter','pluginName','className','get','has','values','map','unsubscribe','data','shouldShareOperation','685SoTHTb','default','_injector','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Start','_presenter','sessionStatus$','_mountLiveShare','extend','url(#$1','operations','not-following','idSuffix','live-share-icon','attrs','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','requireSession','symbol','http://www.w3.org/2000/svg','parse','children','_sharedOperations','end','Stop\x20presenting','76723mXwytj','prototype','trim','evenodd','override','stopPresenting','registerInitialStateReporter','concat','div','createInstance','ONLINE','button','offline','assign','OFFLINE','_status$','text','colorChannel1','set','1602412MohkXX','add','indexOf','You\x27are\x20offline.','xlink:href','NEW_CHANGESETS','then','onCommandExecuted','_handleNewChangeSets','_entities','none','_liveShareService','getValue','LiveShareIcon','asObservable','fill','following','NOT_FOLLOWING','onStarting','_configService','getLiveShareCoordinator','status$','forEach','_unitID','_commandDisposable'];_0x5f2a=function(){return _0x2244ce;};return _0x5f2a();}function Le(){var _0x2f6e86=_0x374f0d;return Math[_0x2f6e86(0xd1)]()['toString'](0x24)[_0x2f6e86(0x108)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x374f0d(0xe5),'attrs':{'xmlns':_0x374f0d(0x126),'fill':_0x374f0d(0x149),'viewBox':'0\x200\x2017\x2017','width':_0x374f0d(0x161),'height':_0x374f0d(0x161)},'children':[{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'d':_0x374f0d(0xe4)}},{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'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':_0x374f0d(0x12f),'clipRule':_0x374f0d(0x12f)}}]},B=_0x509778(function(_0x3bd364,_0x4a4241){var _0x2557d7=_0x374f0d;return _0x8e75da(W,Object[_0x2557d7(0x139)]({},_0x3bd364,{'id':_0x2557d7(0x120),'ref':_0x4a4241,'icon':ye}));});B[_0x374f0d(0xf1)]=_0x374f0d(0x14c);var Re=Object[_0x374f0d(0xf0)],Z=(_0x215004,_0xa85c72,_0x2ba6af,_0x3caa6d)=>{for(var _0x5787ac=_0x3caa6d>0x1?void 0x0:_0x3caa6d?Re(_0xa85c72,_0x2ba6af):_0xa85c72,_0x28c567=_0x215004['length']-0x1,_0x2fca5a;_0x28c567>=0x0;_0x28c567--)(_0x2fca5a=_0x215004[_0x28c567])&&(_0x5787ac=_0x2fca5a(_0x5787ac)||_0x5787ac);return _0x5787ac;},f=(_0x5732a4,_0xa9b3f4)=>(_0x18988d,_0x4f2b9c)=>_0xa9b3f4(_0x18988d,_0x4f2b9c,_0x5732a4);let I=class extends _0x131b2c{constructor(_0x5cb6de,_0x201a7f,_0x7616c9){var _0xe3eef7=_0x374f0d;super(),d(this,_0xe3eef7(0x148),new Map()),(this[_0xe3eef7(0xfb)]=_0x5cb6de,this[_0xe3eef7(0x115)]=_0x201a7f,this[_0xe3eef7(0x15d)]=_0x7616c9,this['_init']());}async[_0x374f0d(0x153)](_0x3cbb19){var _0x4ef244=_0x374f0d;return this[_0x4ef244(0x148)][_0x4ef244(0x10d)](_0x3cbb19)||await this[_0x4ef244(0xde)](_0x3cbb19),this[_0x4ef244(0x148)][_0x4ef244(0x10c)](_0x3cbb19);}[_0x374f0d(0xe1)](){var _0x5ced3d=_0x374f0d;this['_univerInstanceService'][_0x5ced3d(0xdf)](_0x571d0a[_0x5ced3d(0xdb)])[_0x5ced3d(0x101)](_0x1d68b7(this[_0x5ced3d(0xc1)]))[_0x5ced3d(0x16b)](async _0x4f767d=>{var _0x8d97ab=_0x5ced3d;const _0xfaf7cb=_0x4f767d[_0x8d97ab(0xea)]();this[_0x8d97ab(0x148)][_0x8d97ab(0x10d)](_0xfaf7cb)||this[_0x8d97ab(0xde)](_0xfaf7cb);}),this[_0x5ced3d(0xfb)][_0x5ced3d(0x170)](_0x571d0a[_0x5ced3d(0xdb)])['pipe'](_0x1d68b7(this['dispose$']))[_0x5ced3d(0x16b)](_0x9bbee9=>{var _0x3784a3=_0x5ced3d;const _0x27f99c=_0x9bbee9[_0x3784a3(0xea)](),_0x46d048=this['_entities'][_0x3784a3(0x10c)](_0x27f99c);_0x46d048==null||_0x46d048['dispose']();});}async['_startLiveShareCoordinator'](_0x40d0f7){var _0x41fbf5=_0x374f0d;const _0x41a895=await this[_0x41fbf5(0x15d)][_0x41fbf5(0x124)](_0x40d0f7),_0x20038f=this[_0x41fbf5(0x115)][_0x41fbf5(0x135)](C,_0x40d0f7,_0x41a895);return _0x20038f['init'](),this[_0x41fbf5(0x148)][_0x41fbf5(0x13e)](_0x40d0f7,_0x20038f),_0x20038f;}};I=Z([f(0x0,_0x50d8c5),f(0x1,_0x314c14(_0x1bfa83)),f(0x2,_0x314c14(_0x52f07c))],I);var h=(_0x38f1d9=>(_0x38f1d9[_0x374f0d(0x13a)]=_0x374f0d(0x138),_0x38f1d9['IDLE']=_0x374f0d(0x100),_0x38f1d9[_0x374f0d(0xc0)]=_0x374f0d(0x14f),_0x38f1d9[_0x374f0d(0x150)]=_0x374f0d(0x11e),_0x38f1d9[_0x374f0d(0x164)]=_0x374f0d(0x174),_0x38f1d9))(h||{});const Pe=_0x374f0d(0xf4),Ae=0xc8;let C=class extends _0x131b2c{constructor(_0x134119,_0x1aa480,_0x1484a2,_0x42df84,_0xc77182){var _0x57c5c1=_0x374f0d;super(),d(this,_0x57c5c1(0x13b),new _0x3f8b82('idle')),d(this,'status$',this[_0x57c5c1(0x13b)][_0x57c5c1(0x14d)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x57c5c1(0x118),null),(this[_0x57c5c1(0x156)]=_0x134119,this['_collabSession']=_0x1aa480,this['_configService']=_0x1484a2,this[_0x57c5c1(0x14a)]=_0x42df84,this[_0x57c5c1(0x163)]=_0xc77182);}get['_status'](){var _0xc9c2a2=_0x374f0d;return this['_status$'][_0xc9c2a2(0x14b)]();}[_0x374f0d(0x106)](){var _0xb73b20=_0x374f0d,_0x34d501;(_0x34d501=this[_0xb73b20(0x157)])==null||_0x34d501[_0xb73b20(0x106)](),this[_0xb73b20(0x13b)][_0xb73b20(0x107)]('idle'),this[_0xb73b20(0x13b)][_0xb73b20(0xfa)]();}[_0x374f0d(0xff)](){var _0xc589aa=_0x374f0d;this['_init']||(this[_0xc589aa(0xe1)]=!0x0,this[_0xc589aa(0x160)][_0xc589aa(0x119)][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x30fa7c=>{var _0x4ade0b=_0xc589aa;switch(_0x30fa7c){case _0x2830e1[_0x4ade0b(0x13a)]:this[_0x4ade0b(0xe3)]();break;case _0x2830e1[_0x4ade0b(0x136)]:this['_handleOnline']();break;}}),this[_0xc589aa(0x160)]['event$'][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x4866bb=>{var _0x4fba71=_0xc589aa;const {eventID:_0x3d6aea}=_0x4866bb;switch(_0x3d6aea){case _0x283e71['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4866bb);break;case _0x283e71[_0x4fba71(0x172)]:this['_handleOperation'](_0x4866bb);break;case _0x283e71[_0x4fba71(0xfc)]:this[_0x4fba71(0xc6)]();break;case _0x283e71[_0x4fba71(0x144)]:this['_handleNewChangeSets'](_0x4866bb);break;}}));}[_0x374f0d(0xf5)](){var _0xa43ae9=_0x374f0d;this[_0xa43ae9(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xa43ae9(0x160)][_0xa43ae9(0xd2)]()}},this[_0xa43ae9(0x156)]);}[_0x374f0d(0x131)](){var _0x5c6bc3=_0x374f0d;this[_0x5c6bc3(0xf8)]===_0x5c6bc3(0x174)&&(this[_0x5c6bc3(0x13b)][_0x5c6bc3(0x107)](_0x5c6bc3(0x100)),this[_0x5c6bc3(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5c6bc3(0x156)]}},this[_0x5c6bc3(0x156)]));}[_0x374f0d(0xd8)](){var _0x49f932=_0x374f0d;this[_0x49f932(0xf8)]===_0x49f932(0x11e)&&(this['_status$']['next'](_0x49f932(0x14f)),this['_startFollowing']());}['stopFollowing'](){var _0x44ff45=_0x374f0d;this[_0x44ff45(0xf8)]===_0x44ff45(0x14f)&&this[_0x44ff45(0xe7)]();}[_0x374f0d(0x16e)](_0x4ef510){var _0x1c6522=_0x374f0d;const {presenter:_0x1ca452}=_0x4ef510[_0x1c6522(0x111)],_0x207893=this[_0x1c6522(0x160)][_0x1c6522(0xd2)]();this['_presenter']=_0x1ca452,_0x1ca452===_0x207893?(this[_0x1c6522(0xe7)](),this['_startPresenting']()):this[_0x1c6522(0xf8)]!==_0x1c6522(0x11e)&&(this[_0x1c6522(0xe2)](),this['_startFollowing']());}[_0x374f0d(0x173)](){var _0x249cfc=_0x374f0d;const _0x2f58cc={'eventID':_0x283e71[_0x249cfc(0xc7)]};this[_0x249cfc(0x160)][_0x249cfc(0xe9)](_0x2f58cc,this['_unitID']);}[_0x374f0d(0xc6)](){var _0x412117=_0x374f0d;this[_0x412117(0x118)]=null,this['_status']!=='presenting'&&this[_0x412117(0xdc)]();}[_0x374f0d(0x147)](_0x5ab3a0){var _0x55af09=_0x374f0d;if(this[_0x55af09(0xf8)]===_0x55af09(0x14f)&&this[_0x55af09(0x118)]===_0x5ab3a0[_0x55af09(0x111)][_0x55af09(0x168)]){const _0x5f5100=_0x64dfb3(_0x5ab3a0[_0x55af09(0x111)])[_0x55af09(0x15f)][_0x55af09(0xc8)]()[_0x55af09(0xf7)](_0x5a6894=>_0x5a6894['id']===_0x7f5e33['id']);if(_0x5f5100){const _0x2df160=_0x5f5100[_0x55af09(0xed)]['unitId'],_0xd8c353=_0x5f5100[_0x55af09(0xed)][_0x55af09(0x171)]['id'];setTimeout(()=>{var _0x3793ca=_0x55af09;this[_0x3793ca(0x163)][_0x3793ca(0xe8)](_0x2e879b['id'],{'unitId':_0x2df160,'subUnitId':_0xd8c353},{'fromCollab':!0x0});});}}}[_0x374f0d(0xec)](){var _0x5a169a=_0x374f0d;this[_0x5a169a(0x13b)][_0x5a169a(0x107)](_0x5a169a(0x174));const _0x299d87=new Map(),_0x1b5fcd=this[_0x5a169a(0x157)]=new _0x179014();_0x1b5fcd[_0x5a169a(0x140)](_0x123a30(()=>{var _0x2e60d5=_0x5a169a;_0x299d87['forEach'](_0x35b206=>_0x35b206[_0x2e60d5(0xfa)]()),_0x299d87['clear']();})),_0x1b5fcd[_0x5a169a(0x140)](this[_0x5a169a(0x163)][_0x5a169a(0x146)](_0x322537=>{var _0x7f0f62=_0x5a169a,_0x189035;if(_0x322537['type']!==_0x3475ca['OPERATION']||!this[_0x7f0f62(0x14a)][_0x7f0f62(0x112)](_0x322537['id']))return;const {id:_0xeb6a37}=_0x322537;let _0xcbcad0;_0x299d87[_0x7f0f62(0x10d)](_0xeb6a37)?_0xcbcad0=_0x299d87[_0x7f0f62(0x10c)](_0xeb6a37):(_0xcbcad0=new _0x3e95be(),_0x299d87[_0x7f0f62(0x13e)](_0xeb6a37,_0xcbcad0),_0xcbcad0[_0x7f0f62(0x101)](_0x33739f((_0x189035=this[_0x7f0f62(0x152)][_0x7f0f62(0xe0)](Pe))!=null?_0x189035:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7f0f62(0x16b)](_0x2016cf=>{var _0x5f13cf=_0x7f0f62;this['_collabSession'][_0x5f13cf(0xe9)]({'eventID':_0x283e71[_0x5f13cf(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x2016cf['id']]:{'id':_0x2016cf['id'],'params':JSON['stringify'](_0x2016cf[_0x5f13cf(0xed)])}}}},this[_0x5f13cf(0x156)]);})),_0xcbcad0[_0x7f0f62(0x107)](_0x322537);})),this['_liveShareService'][_0x5a169a(0xe6)](this[_0x5a169a(0x156)])['forEach'](_0x513479=>this['_collabSession']['send']({'eventID':_0x283e71[_0x5a169a(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x513479['id']]:{'id':_0x513479['id'],'params':JSON['stringify'](_0x513479['params'])}}}},this[_0x5a169a(0x156)]));}[_0x374f0d(0xe2)](){var _0x15f0bf=_0x374f0d,_0x8e8388;this['_status$'][_0x15f0bf(0x107)]('idle'),(_0x8e8388=this['_commandDisposable'])==null||_0x8e8388[_0x15f0bf(0x106)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x57f098=_0x374f0d,_0x3465c6;(_0x3465c6=this[_0x57f098(0x157)])==null||_0x3465c6[_0x57f098(0x106)](),this[_0x57f098(0x13b)][_0x57f098(0x107)](_0x57f098(0x14f));}[_0x374f0d(0xdc)](){var _0x3a7b05=_0x374f0d,_0x3c56fc;this[_0x3a7b05(0x13b)][_0x3a7b05(0x107)](_0x3a7b05(0x100)),(_0x3c56fc=this[_0x3a7b05(0x157)])==null||_0x3c56fc[_0x3a7b05(0x106)](),this['_commandDisposable']=null;}[_0x374f0d(0xe7)](){var _0x1a7611=_0x374f0d,_0x333681;this[_0x1a7611(0x13b)]['next'](_0x1a7611(0x11e)),(_0x333681=this[_0x1a7611(0x157)])==null||_0x333681[_0x1a7611(0x106)]();}[_0x374f0d(0x15e)](_0x5337e2){var _0x312022=_0x374f0d;if([_0x312022(0x174),'not-following',_0x312022(0x138)][_0x312022(0xcb)](this[_0x312022(0xf8)])||!_0x5337e2['data'][_0x312022(0x162)]||_0x5337e2[_0x312022(0x111)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x312022(0xf8)]===_0x312022(0x100)&&this[_0x312022(0x105)]();const _0x6bf141=_0x5337e2[_0x312022(0x111)][_0x312022(0x11d)];Object[_0x312022(0x10e)](_0x6bf141)['forEach'](_0x4a4193=>{var _0x211da6=_0x312022;this[_0x211da6(0x163)][_0x211da6(0xe8)](_0x4a4193['id'],_0x4a4193[_0x211da6(0xed)]?JSON[_0x211da6(0x127)](_0x4a4193[_0x211da6(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2aa358=_0x374f0d,_0x157939;this[_0x2aa358(0x13b)][_0x2aa358(0x107)]('offline'),(_0x157939=this[_0x2aa358(0x157)])==null||_0x157939[_0x2aa358(0x106)]();}[_0x374f0d(0x169)](){var _0x81e63c=_0x374f0d;this['_status$'][_0x81e63c(0x107)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x1c9c8e),f(0x3,_0x314c14(L)),f(0x4,_0x11b5db)],C);function Te(){var _0x48c088=_0x374f0d;const _0x316703=_0x3cb200(I),_0x2945c4=_0x3cb200(_0x50d8c5),_0x720056=_0x26a8d4(()=>_0x2945c4['getCurrentTypeOfUnit$'](_0x571d0a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b05a7,_0x50930c]=_0x11d288(null),[_0x59d2fa,_0x5c874a]=_0x11d288(h[_0x48c088(0xf9)]),_0x2dbcd2=_0x2e65b7(null);return _0x241cbb(()=>(_0x720056&&_0x316703[_0x48c088(0x153)](_0x720056[_0x48c088(0xea)]())[_0x48c088(0x145)](_0x29a318=>{var _0x24ead3=_0x48c088;_0x50930c(_0x29a318),_0x2dbcd2[_0x24ead3(0x15c)]=_0x29a318[_0x24ead3(0x154)]['subscribe'](_0x3633aa=>{_0x5c874a(_0x3633aa);});}),()=>{var _0x2ab678=_0x48c088,_0x21f09b;(_0x21f09b=_0x2dbcd2[_0x2ab678(0x15c)])==null||_0x21f09b[_0x2ab678(0x110)](),_0x2dbcd2[_0x2ab678(0x15c)]=null;}),[_0x720056,_0x316703]),_0x5b05a7?_0x5cd53e(_0x9196d1,{'align':_0x48c088(0x12a),'disabled':_0x59d2fa===h[_0x48c088(0x13a)],'className':_0x48c088(0x116),'overlay':_0x5cd53e($e,{'status':_0x59d2fa,'coordinator':_0x5b05a7}),'children':_0x5cd53e(_0x48c088(0x137),{'className':_0x1101ed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59d2fa===h[_0x48c088(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d2fa!==h[_0x48c088(0x13a)]}),'type':_0x48c088(0x137),'children':_0x5cd53e(B,{'className':_0x48c088(0x102)})})}):null;}function $e(_0x4717cb){var _0x5594c1=_0x374f0d;const {status:_0x35466b,coordinator:_0x399948}=_0x4717cb;switch(_0x35466b){case h['IDLE']:return _0x5cd53e(Fe,{'coordinator':_0x399948});case h['FOLLOWING']:return _0x5cd53e(He,{'coordinator':_0x399948});case h[_0x5594c1(0x150)]:return _0x5cd53e(je,{'coordinator':_0x399948});case h[_0x5594c1(0x13a)]:return _0x5cd53e(Ve,{});case h[_0x5594c1(0x164)]:return _0x5cd53e(Ue,{'coordinator':_0x399948});default:return null;}}function _0x777f(_0x20208f,_0x2ade18){var _0x5f2a06=_0x5f2a();return _0x777f=function(_0x777ffb,_0x2e8e9c){_0x777ffb=_0x777ffb-0xbf;var _0x44709c=_0x5f2a06[_0x777ffb];return _0x44709c;},_0x777f(_0x20208f,_0x2ade18);}function Fe(_0x335380){var _0x103223=_0x374f0d;const {coordinator:_0x434c6a}=_0x335380;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e('div',{'className':_0x103223(0xc9),'children':'Present\x20this\x20document'}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x434c6a[_0x103223(0xf5)](),'children':_0x103223(0x117)})]});}function He(_0x214b8a){var _0x360208=_0x374f0d;const {coordinator:_0x4f7c70}=_0x214b8a;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x360208(0x134),{'className':_0x360208(0xc9),'children':_0x360208(0x109)}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x4f7c70['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x5aa383){var _0x278149=_0x374f0d;const {coordinator:_0x335a5a}=_0x5aa383;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x278149(0x134),{'className':_0x278149(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5cd53e(_0xd1b51f,{'variant':_0x278149(0x13c),'onClick':()=>_0x335a5a['startFollowing'](),'children':_0x278149(0xdd)})]});}function Ue(_0x815a38){var _0x39c68b=_0x374f0d;const {coordinator:_0x110106}=_0x815a38;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x39c68b(0x134),{'className':_0x39c68b(0xc9),'children':_0x39c68b(0xca)}),_0x5cd53e(_0xd1b51f,{'variant':_0x39c68b(0x114),'onClick':()=>_0x110106[_0x39c68b(0x131)](),'children':_0x39c68b(0x12b)})]});}function Ve(){var _0x42cfbb=_0x374f0d;return _0x5cd53e(_0x5e9c70,{'children':_0x42cfbb(0x142)});}var Me=Object[_0x374f0d(0xf0)],ke=(_0x33e56f,_0x222d65,_0xe41e6e,_0x10597c)=>{var _0x1c955f=_0x374f0d;for(var _0x7910ea=_0x10597c>0x1?void 0x0:_0x10597c?Me(_0x222d65,_0xe41e6e):_0x222d65,_0x4b0fc7=_0x33e56f[_0x1c955f(0xcc)]-0x1,_0x45da42;_0x4b0fc7>=0x0;_0x4b0fc7--)(_0x45da42=_0x33e56f[_0x4b0fc7])&&(_0x7910ea=_0x45da42(_0x7910ea)||_0x7910ea);return _0x7910ea;},$=(_0x3811a8,_0x18ba00)=>(_0x3344e8,_0x33157d)=>_0x18ba00(_0x3344e8,_0x33157d,_0x3811a8);let b=class extends _0x23bae8{constructor(_0x5a4ce6,_0x1dd462){var _0x1d1ffd=_0x374f0d;super(),this[_0x1d1ffd(0x115)]=_0x5a4ce6,this[_0x1d1ffd(0xf3)]=_0x1dd462,this[_0x1d1ffd(0x11a)]();}[_0x374f0d(0x11a)](){var _0x1f854e=_0x374f0d;this[_0x1f854e(0xda)](this[_0x1f854e(0xf3)][_0x1f854e(0xd0)](_0x5bfd17[_0x1f854e(0x159)],()=>_0x14037c(Te,this['_injector'])));}};b=ke([$(0x0,_0x314c14(_0x1bfa83)),$(0x1,_0x2aa461)],b);var Ge=Object['defineProperty'],We=Object[_0x374f0d(0xf0)],Ye=(_0x4b9cb2,_0x506183,_0x55b029)=>_0x506183 in _0x4b9cb2?Ge(_0x4b9cb2,_0x506183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b029}):_0x4b9cb2[_0x506183]=_0x55b029,Be=(_0x5c308a,_0x115be3,_0x3a3dab,_0x9f2cd5)=>{for(var _0x3888c6=_0x9f2cd5>0x1?void 0x0:_0x9f2cd5?We(_0x115be3,_0x3a3dab):_0x115be3,_0x565d1c=_0x5c308a['length']-0x1,_0x5e304d;_0x565d1c>=0x0;_0x565d1c--)(_0x5e304d=_0x5c308a[_0x565d1c])&&(_0x3888c6=_0x5e304d(_0x3888c6)||_0x3888c6);return _0x3888c6;},F=(_0x231252,_0x2dbcc5)=>(_0x2131ce,_0x43bd95)=>_0x2dbcc5(_0x2131ce,_0x43bd95,_0x231252),J=(_0x12d761,_0x4d6049,_0x24478f)=>Ye(_0x12d761,typeof _0x4d6049!=_0x374f0d(0x125)?_0x4d6049+'':_0x4d6049,_0x24478f);const Ze=_0x374f0d(0x123);let O=class extends _0x552d9d{constructor(_0xbbbb8f=T,_0x484507,_0x4e6975){var _0x504f88=_0x374f0d;super(),this[_0x504f88(0x166)]=_0xbbbb8f,this[_0x504f88(0x115)]=_0x484507,this[_0x504f88(0x152)]=_0x4e6975;const {..._0x6ad17e}=_0x13d80c({},T,this[_0x504f88(0x166)]);this[_0x504f88(0x152)][_0x504f88(0x167)](Oe,_0x6ad17e);}[_0x374f0d(0x151)](){var _0x2d024e=_0x374f0d;_0x1c17e9(this[_0x2d024e(0x115)],_0x100a43([[L],[I],[m],[b]],this[_0x2d024e(0x166)][_0x2d024e(0x130)])),_0x870d19(this[_0x2d024e(0x115)],[[m]]);}[_0x374f0d(0x103)](){_0x870d19(this['_injector'],[[b]]);}};J(O,_0x374f0d(0xd6),_0x571d0a[_0x374f0d(0x122)]),J(O,_0x374f0d(0x10a),Ze),O=Be([_0x39f7a7(_0xadeaf6),F(0x1,_0x314c14(_0x1bfa83)),F(0x2,_0x1c9c8e)],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 _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','getMemberID','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x374f0d=_0x777f;(function(_0x5618cb,_0x5bf0bd){var _0x427a17=_0x777f,_0x2cfe68=_0x5618cb();while(!![]){try{var _0x49e084=-parseInt(_0x427a17(0x12c))/0x1*(-parseInt(_0x427a17(0xcf))/0x2)+-parseInt(_0x427a17(0x165))/0x3+parseInt(_0x427a17(0x13f))/0x4+parseInt(_0x427a17(0x113))/0x5*(parseInt(_0x427a17(0xc2))/0x6)+parseInt(_0x427a17(0xc3))/0x7*(parseInt(_0x427a17(0xcd))/0x8)+-parseInt(_0x427a17(0xee))/0x9*(-parseInt(_0x427a17(0xfe))/0xa)+-parseInt(_0x427a17(0x104))/0xb;if(_0x49e084===_0x5bf0bd)break;else _0x2cfe68['push'](_0x2cfe68['shift']());}catch(_0x5493ee){_0x2cfe68['push'](_0x2cfe68['shift']());}}}(_0x5f2a,0xbdc4e));var q=Object['defineProperty'],z=(_0xea560d,_0x25118f,_0x3a50bd)=>_0x25118f in _0xea560d?q(_0xea560d,_0x25118f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a50bd}):_0xea560d[_0x25118f]=_0x3a50bd,d=(_0x463421,_0x1996d9,_0x55e458)=>z(_0x463421,typeof _0x1996d9!='symbol'?_0x1996d9+'':_0x1996d9,_0x55e458);import{CollaborationSessionService as _0x52f07c,SessionStatus as _0x2830e1,UniverCollaborationClientPlugin as _0xadeaf6}from'@univerjs-pro/collaboration-client';import{Disposable as _0x23bae8,toDisposable as _0x123a30,Inject as _0x314c14,IUniverInstanceService as _0x50d8c5,Injector as _0x1bfa83,IConfigService as _0x1c9c8e,ICommandService as _0x11b5db,RxDisposable as _0x131b2c,UniverInstanceType as _0x571d0a,DisposableCollection as _0x179014,CommandType as _0x3475ca,DependentOn as _0x39f7a7,Plugin as _0x552d9d,merge as _0x13d80c,registerDependencies as _0x1c17e9,mergeOverrideWithDependencies as _0x100a43,touchDependencies as _0x870d19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2e879b,InsertSheetMutation as _0x7f5e33}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e038b,SetScrollOperation as _0x5df0f0}from'@univerjs/sheets-ui';import{useDependency as _0x3cb200,useObservable as _0x26a8d4,IUIPartsService as _0x2aa461,BuiltInUIPart as _0x5bfd17,connectInjector as _0x14037c}from'@univerjs/ui';import{jsx as _0x5cd53e,jsxs as _0x5cf0f1,Fragment as _0x5e9c70}from'react/jsx-runtime';import{Dropdown as _0x9196d1,clsx as _0x1101ed,Button as _0xd1b51f}from'@univerjs/design';import{forwardRef as _0x509778,useRef as _0x2e65b7,createElement as _0x8e75da,useState as _0x11d288,useEffect as _0x241cbb}from'react';import{CollaborationEvent as _0x283e71,parseProtocolChangeset as _0x64dfb3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3f8b82,Subject as _0x3e95be}from'rxjs';import{takeUntil as _0x1d68b7,throttleTime as _0x33739f}from'rxjs/operators';const Oe=_0x374f0d(0xd7),T={};class L extends _0x23bae8{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x374f0d(0x16d)](_0x3119f5){var _0x3982f4=_0x374f0d;return this[_0x3982f4(0x129)]['add'](_0x3119f5),_0x123a30(()=>this[_0x3982f4(0x129)][_0x3982f4(0x15a)](_0x3119f5));}[_0x374f0d(0x132)](_0x2ad29f){var _0x285ac4=_0x374f0d;return this[_0x285ac4(0xd3)][_0x285ac4(0x140)](_0x2ad29f),_0x123a30(()=>this[_0x285ac4(0xd3)]['delete'](_0x2ad29f));}['shouldShareOperation'](_0x346d30){var _0x5b3e53=_0x374f0d;return this[_0x5b3e53(0x129)]['has'](_0x346d30);}[_0x374f0d(0xe6)](_0x252c32){var _0x2048cf=_0x374f0d;return Array[_0x2048cf(0xd9)](this[_0x2048cf(0xd3)])[_0x2048cf(0x10f)](_0x2c6efe=>_0x2c6efe(_0x252c32));}}var Ee=Object[_0x374f0d(0xf0)],we=(_0x227caa,_0x23138c,_0x1ebf2b,_0x48e980)=>{var _0x1519e6=_0x374f0d;for(var _0x5d3baf=_0x48e980>0x1?void 0x0:_0x48e980?Ee(_0x23138c,_0x1ebf2b):_0x23138c,_0x30a7ab=_0x227caa[_0x1519e6(0xcc)]-0x1,_0x15b2c3;_0x30a7ab>=0x0;_0x30a7ab--)(_0x15b2c3=_0x227caa[_0x30a7ab])&&(_0x5d3baf=_0x15b2c3(_0x5d3baf)||_0x5d3baf);return _0x5d3baf;},Ne=(_0x116329,_0x36b362)=>(_0xfe99d7,_0x41d532)=>_0x36b362(_0xfe99d7,_0x41d532,_0x116329);let m=class extends _0x23bae8{constructor(_0x39b9ed){var _0x35c21f=_0x374f0d;super(),this[_0x35c21f(0x14a)]=_0x39b9ed,this[_0x35c21f(0xe1)]();}[_0x374f0d(0xe1)](){var _0x2b7dac=_0x374f0d;[_0x5e038b['id'],_0x5df0f0['id'],_0x2e879b['id']][_0x2b7dac(0x155)](_0x1a41b4=>{var _0x5ddb88=_0x2b7dac;this[_0x5ddb88(0xda)](this[_0x5ddb88(0x14a)][_0x5ddb88(0x16d)](_0x1a41b4));});}};m=we([Ne(0x0,_0x314c14(L))],m);var c=function(){var _0x1fdc83=_0x374f0d;return c=Object['assign']||function(_0x3560ea){var _0x3c0683=_0x777f;for(var _0x5dd13e,_0x38d331=0x1,_0x5d7f46=arguments['length'];_0x38d331<_0x5d7f46;_0x38d331++){_0x5dd13e=arguments[_0x38d331];for(var _0x507956 in _0x5dd13e)Object[_0x3c0683(0x12d)]['hasOwnProperty'][_0x3c0683(0xd5)](_0x5dd13e,_0x507956)&&(_0x3560ea[_0x507956]=_0x5dd13e[_0x507956]);}return _0x3560ea;},c[_0x1fdc83(0xce)](this,arguments);},Ce=function(_0x35ef30,_0xa52db9){var _0xf0f1f7=_0x374f0d,_0x28517c={};for(var _0x535089 in _0x35ef30)Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0x16a)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089)&&_0xa52db9['indexOf'](_0x535089)<0x0&&(_0x28517c[_0x535089]=_0x35ef30[_0x535089]);if(_0x35ef30!=null&&typeof Object[_0xf0f1f7(0x16f)]==_0xf0f1f7(0xfd)){for(var _0xb52376=0x0,_0x535089=Object[_0xf0f1f7(0x16f)](_0x35ef30);_0xb52376<_0x535089[_0xf0f1f7(0xcc)];_0xb52376++)_0xa52db9[_0xf0f1f7(0x141)](_0x535089[_0xb52376])<0x0&&Object[_0xf0f1f7(0x12d)][_0xf0f1f7(0xc4)][_0xf0f1f7(0xd5)](_0x35ef30,_0x535089[_0xb52376])&&(_0x28517c[_0x535089[_0xb52376]]=_0x35ef30[_0x535089[_0xb52376]]);}return _0x28517c;},W=_0x509778(function(_0x1e72e7,_0x17fa72){var _0x1bb41b=_0x374f0d,_0x5e1ac3=_0x1e72e7['icon'],_0x2f17cf=_0x1e72e7['id'],_0x148cc2=_0x1e72e7[_0x1bb41b(0x10b)],_0x3df4dc=_0x1e72e7[_0x1bb41b(0x11b)],_0x3309a1=Ce(_0x1e72e7,['icon','id',_0x1bb41b(0x10b),_0x1bb41b(0x11b)]),_0x47527e=_0x1bb41b(0x15b)[_0x1bb41b(0x133)](_0x2f17cf,'\x20')[_0x1bb41b(0x133)](_0x148cc2||'')[_0x1bb41b(0x12e)](),_0x336a64=_0x2e65b7('_'[_0x1bb41b(0x133)](Le()));return Y(_0x5e1ac3,''[_0x1bb41b(0x133)](_0x2f17cf),{'defIds':_0x5e1ac3['defIds'],'idSuffix':_0x336a64[_0x1bb41b(0x15c)]},c({'ref':_0x17fa72,'className':_0x47527e},_0x3309a1),_0x3df4dc);});function Y(_0x47e20a,_0x462a24,_0xf6447e,_0x19c687,_0x38d9a4){var _0x19cae7=_0x374f0d;return _0x8e75da(_0x47e20a[_0x19cae7(0xf6)],c(c({'key':_0x462a24},De(_0x47e20a,_0xf6447e,_0x38d9a4)),_0x19c687),(xe(_0x47e20a,_0xf6447e)[_0x19cae7(0x128)]||[])[_0x19cae7(0x10f)](function(_0x3a896c,_0x1cd11a){var _0x41c05f=_0x19cae7;return Y(_0x3a896c,''[_0x41c05f(0x133)](_0x462a24,'-')['concat'](_0x47e20a[_0x41c05f(0xf6)],'-')[_0x41c05f(0x133)](_0x1cd11a),_0xf6447e,void 0x0,_0x38d9a4);}));}function De(_0x38e45c,_0x36d365,_0xa0ca93){var _0x172963=_0x374f0d,_0x209214=c({},_0x38e45c[_0x172963(0x121)]);_0xa0ca93!=null&&_0xa0ca93[_0x172963(0x13d)]&&_0x209214[_0x172963(0x14e)]===_0x172963(0x13d)&&(_0x209214[_0x172963(0x14e)]=_0xa0ca93[_0x172963(0x13d)]),_0x38e45c['tag']===_0x172963(0xeb)&&_0x209214['id']&&(_0x209214['id']=_0x209214['id']+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)[_0x172963(0x155)](function(_0x324cd6){var _0x383c6c=_0x172963,_0x57dae8=_0x324cd6[0x0],_0xccc522=_0x324cd6[0x1];_0x57dae8===_0x383c6c(0xeb)&&typeof _0xccc522==_0x383c6c(0xbf)&&(_0x209214[_0x57dae8]=_0xccc522[_0x383c6c(0xef)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d365['idSuffix'],')')));});var _0x481445=_0x36d365['defIds'];return!_0x481445||_0x481445['length']===0x0||(_0x38e45c[_0x172963(0xf6)]===_0x172963(0x158)&&_0x209214['xlink:href']&&(_0x209214['xlink:href']=_0x209214[_0x172963(0x143)]+_0x36d365[_0x172963(0x11f)]),Object[_0x172963(0xd4)](_0x209214)['forEach'](function(_0x2d3c87){var _0x3f8dc5=_0x172963,_0x24ad34=_0x2d3c87[0x0],_0x7977ab=_0x2d3c87[0x1];typeof _0x7977ab==_0x3f8dc5(0xbf)&&(_0x209214[_0x24ad34]=_0x7977ab[_0x3f8dc5(0xef)](/url\(#(.*)\)/,_0x3f8dc5(0x11c)[_0x3f8dc5(0x133)](_0x36d365['idSuffix'],')')));})),_0x209214;}function xe(_0x12e8b2,_0x1d076d){var _0x41cdaa=_0x374f0d,_0x4f2e5d,_0x21bb2b=_0x1d076d[_0x41cdaa(0xc5)];return!_0x21bb2b||_0x21bb2b[_0x41cdaa(0xcc)]===0x0?_0x12e8b2:_0x12e8b2['tag']==='defs'&&(!((_0x4f2e5d=_0x12e8b2[_0x41cdaa(0x128)])===null||_0x4f2e5d===void 0x0)&&_0x4f2e5d[_0x41cdaa(0xcc)])?c(c({},_0x12e8b2),{'children':_0x12e8b2[_0x41cdaa(0x128)][_0x41cdaa(0x10f)](function(_0x2eadf0){var _0x1e5868=_0x41cdaa;return typeof _0x2eadf0[_0x1e5868(0x121)]['id']==_0x1e5868(0xbf)&&_0x21bb2b&&_0x21bb2b[_0x1e5868(0xcb)](_0x2eadf0[_0x1e5868(0x121)]['id'])?c(c({},_0x2eadf0),{'attrs':c(c({},_0x2eadf0[_0x1e5868(0x121)]),{'id':_0x2eadf0[_0x1e5868(0x121)]['id']+_0x1d076d[_0x1e5868(0x11f)]})}):_0x2eadf0;})}):_0x12e8b2;}function _0x5f2a(){var _0x2244ce=['use','HEADER_MENU','delete','univerjs-icon\x20univerjs-icon-','current','_collabSessionService','_handleOperation','mutations','_collabSession','1em','presenter','_commandService','PRESENTING','1810164OFfWVn','_config','setConfig','memberID','_handleOnline','hasOwnProperty','subscribe','path','registerSharedOperation','_handleNewHost','getOwnPropertySymbols','getTypeOfUnitDisposed$','sheet','LIVESHARE_OPERATION','_fetchOperations','presenting','string','FOLLOWING','dispose$','43800IcjPzh','68817jreaps','propertyIsEnumerable','defIds','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','includes','length','1096BnUhjI','apply','36tGgjDt','registerComponent','random','getMemberID','_reporters','entries','call','type','live-share.config','startFollowing','from','disposeWithMe','UNIVER_SHEET','_beIdle','Start\x20following','_startLiveShareCoordinator','getTypeOfUnitAdded$','getConfig','_init','_stopPresenting','_handleOffline','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','svg','getInitialStates','_stopFollowing','executeCommand','send','getUnitId','mask','_startPresenting','params','87966oIXkgc','replace','getOwnPropertyDescriptor','displayName','currentColor','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','tag','find','_status','IDLE','complete','_univerInstanceService','LIVESHARE_TERMINATE','function','730eBUOgj','init','idle','pipe','univer-size-4','onRendered','38075224HvEvvY','_startFollowing','dispose','next','substring','You\x27re\x20following\x20the\x20presenter','pluginName','className','get','has','values','map','unsubscribe','data','shouldShareOperation','685SoTHTb','default','_injector','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Start','_presenter','sessionStatus$','_mountLiveShare','extend','url(#$1','operations','not-following','idSuffix','live-share-icon','attrs','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','requireSession','symbol','http://www.w3.org/2000/svg','parse','children','_sharedOperations','end','Stop\x20presenting','76723mXwytj','prototype','trim','evenodd','override','stopPresenting','registerInitialStateReporter','concat','div','createInstance','ONLINE','button','offline','assign','OFFLINE','_status$','text','colorChannel1','set','1602412MohkXX','add','indexOf','You\x27are\x20offline.','xlink:href','NEW_CHANGESETS','then','onCommandExecuted','_handleNewChangeSets','_entities','none','_liveShareService','getValue','LiveShareIcon','asObservable','fill','following','NOT_FOLLOWING','onStarting','_configService','getLiveShareCoordinator','status$','forEach','_unitID','_commandDisposable'];_0x5f2a=function(){return _0x2244ce;};return _0x5f2a();}function Le(){var _0x2f6e86=_0x374f0d;return Math[_0x2f6e86(0xd1)]()['toString'](0x24)[_0x2f6e86(0x108)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x374f0d(0xe5),'attrs':{'xmlns':_0x374f0d(0x126),'fill':_0x374f0d(0x149),'viewBox':'0\x200\x2017\x2017','width':_0x374f0d(0x161),'height':_0x374f0d(0x161)},'children':[{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'d':_0x374f0d(0xe4)}},{'tag':_0x374f0d(0x16c),'attrs':{'fill':_0x374f0d(0xf2),'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':_0x374f0d(0x12f),'clipRule':_0x374f0d(0x12f)}}]},B=_0x509778(function(_0x3bd364,_0x4a4241){var _0x2557d7=_0x374f0d;return _0x8e75da(W,Object[_0x2557d7(0x139)]({},_0x3bd364,{'id':_0x2557d7(0x120),'ref':_0x4a4241,'icon':ye}));});B[_0x374f0d(0xf1)]=_0x374f0d(0x14c);var Re=Object[_0x374f0d(0xf0)],Z=(_0x215004,_0xa85c72,_0x2ba6af,_0x3caa6d)=>{for(var _0x5787ac=_0x3caa6d>0x1?void 0x0:_0x3caa6d?Re(_0xa85c72,_0x2ba6af):_0xa85c72,_0x28c567=_0x215004['length']-0x1,_0x2fca5a;_0x28c567>=0x0;_0x28c567--)(_0x2fca5a=_0x215004[_0x28c567])&&(_0x5787ac=_0x2fca5a(_0x5787ac)||_0x5787ac);return _0x5787ac;},f=(_0x5732a4,_0xa9b3f4)=>(_0x18988d,_0x4f2b9c)=>_0xa9b3f4(_0x18988d,_0x4f2b9c,_0x5732a4);let I=class extends _0x131b2c{constructor(_0x5cb6de,_0x201a7f,_0x7616c9){var _0xe3eef7=_0x374f0d;super(),d(this,_0xe3eef7(0x148),new Map()),(this[_0xe3eef7(0xfb)]=_0x5cb6de,this[_0xe3eef7(0x115)]=_0x201a7f,this[_0xe3eef7(0x15d)]=_0x7616c9,this['_init']());}async[_0x374f0d(0x153)](_0x3cbb19){var _0x4ef244=_0x374f0d;return this[_0x4ef244(0x148)][_0x4ef244(0x10d)](_0x3cbb19)||await this[_0x4ef244(0xde)](_0x3cbb19),this[_0x4ef244(0x148)][_0x4ef244(0x10c)](_0x3cbb19);}[_0x374f0d(0xe1)](){var _0x5ced3d=_0x374f0d;this['_univerInstanceService'][_0x5ced3d(0xdf)](_0x571d0a[_0x5ced3d(0xdb)])[_0x5ced3d(0x101)](_0x1d68b7(this[_0x5ced3d(0xc1)]))[_0x5ced3d(0x16b)](async _0x4f767d=>{var _0x8d97ab=_0x5ced3d;const _0xfaf7cb=_0x4f767d[_0x8d97ab(0xea)]();this[_0x8d97ab(0x148)][_0x8d97ab(0x10d)](_0xfaf7cb)||this[_0x8d97ab(0xde)](_0xfaf7cb);}),this[_0x5ced3d(0xfb)][_0x5ced3d(0x170)](_0x571d0a[_0x5ced3d(0xdb)])['pipe'](_0x1d68b7(this['dispose$']))[_0x5ced3d(0x16b)](_0x9bbee9=>{var _0x3784a3=_0x5ced3d;const _0x27f99c=_0x9bbee9[_0x3784a3(0xea)](),_0x46d048=this['_entities'][_0x3784a3(0x10c)](_0x27f99c);_0x46d048==null||_0x46d048['dispose']();});}async['_startLiveShareCoordinator'](_0x40d0f7){var _0x41fbf5=_0x374f0d;const _0x41a895=await this[_0x41fbf5(0x15d)][_0x41fbf5(0x124)](_0x40d0f7),_0x20038f=this[_0x41fbf5(0x115)][_0x41fbf5(0x135)](C,_0x40d0f7,_0x41a895);return _0x20038f['init'](),this[_0x41fbf5(0x148)][_0x41fbf5(0x13e)](_0x40d0f7,_0x20038f),_0x20038f;}};I=Z([f(0x0,_0x50d8c5),f(0x1,_0x314c14(_0x1bfa83)),f(0x2,_0x314c14(_0x52f07c))],I);var h=(_0x38f1d9=>(_0x38f1d9[_0x374f0d(0x13a)]=_0x374f0d(0x138),_0x38f1d9['IDLE']=_0x374f0d(0x100),_0x38f1d9[_0x374f0d(0xc0)]=_0x374f0d(0x14f),_0x38f1d9[_0x374f0d(0x150)]=_0x374f0d(0x11e),_0x38f1d9[_0x374f0d(0x164)]=_0x374f0d(0x174),_0x38f1d9))(h||{});const Pe=_0x374f0d(0xf4),Ae=0xc8;let C=class extends _0x131b2c{constructor(_0x134119,_0x1aa480,_0x1484a2,_0x42df84,_0xc77182){var _0x57c5c1=_0x374f0d;super(),d(this,_0x57c5c1(0x13b),new _0x3f8b82('idle')),d(this,'status$',this[_0x57c5c1(0x13b)][_0x57c5c1(0x14d)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x57c5c1(0x118),null),(this[_0x57c5c1(0x156)]=_0x134119,this['_collabSession']=_0x1aa480,this['_configService']=_0x1484a2,this[_0x57c5c1(0x14a)]=_0x42df84,this[_0x57c5c1(0x163)]=_0xc77182);}get['_status'](){var _0xc9c2a2=_0x374f0d;return this['_status$'][_0xc9c2a2(0x14b)]();}[_0x374f0d(0x106)](){var _0xb73b20=_0x374f0d,_0x34d501;(_0x34d501=this[_0xb73b20(0x157)])==null||_0x34d501[_0xb73b20(0x106)](),this[_0xb73b20(0x13b)][_0xb73b20(0x107)]('idle'),this[_0xb73b20(0x13b)][_0xb73b20(0xfa)]();}[_0x374f0d(0xff)](){var _0xc589aa=_0x374f0d;this['_init']||(this[_0xc589aa(0xe1)]=!0x0,this[_0xc589aa(0x160)][_0xc589aa(0x119)][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x30fa7c=>{var _0x4ade0b=_0xc589aa;switch(_0x30fa7c){case _0x2830e1[_0x4ade0b(0x13a)]:this[_0x4ade0b(0xe3)]();break;case _0x2830e1[_0x4ade0b(0x136)]:this['_handleOnline']();break;}}),this[_0xc589aa(0x160)]['event$'][_0xc589aa(0x101)](_0x1d68b7(this[_0xc589aa(0xc1)]))[_0xc589aa(0x16b)](_0x4866bb=>{var _0x4fba71=_0xc589aa;const {eventID:_0x3d6aea}=_0x4866bb;switch(_0x3d6aea){case _0x283e71['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4866bb);break;case _0x283e71[_0x4fba71(0x172)]:this['_handleOperation'](_0x4866bb);break;case _0x283e71[_0x4fba71(0xfc)]:this[_0x4fba71(0xc6)]();break;case _0x283e71[_0x4fba71(0x144)]:this['_handleNewChangeSets'](_0x4866bb);break;}}));}[_0x374f0d(0xf5)](){var _0xa43ae9=_0x374f0d;this[_0xa43ae9(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xa43ae9(0x160)][_0xa43ae9(0xd2)]()}},this[_0xa43ae9(0x156)]);}[_0x374f0d(0x131)](){var _0x5c6bc3=_0x374f0d;this[_0x5c6bc3(0xf8)]===_0x5c6bc3(0x174)&&(this[_0x5c6bc3(0x13b)][_0x5c6bc3(0x107)](_0x5c6bc3(0x100)),this[_0x5c6bc3(0x160)]['send']({'eventID':_0x283e71['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5c6bc3(0x156)]}},this[_0x5c6bc3(0x156)]));}[_0x374f0d(0xd8)](){var _0x49f932=_0x374f0d;this[_0x49f932(0xf8)]===_0x49f932(0x11e)&&(this['_status$']['next'](_0x49f932(0x14f)),this['_startFollowing']());}['stopFollowing'](){var _0x44ff45=_0x374f0d;this[_0x44ff45(0xf8)]===_0x44ff45(0x14f)&&this[_0x44ff45(0xe7)]();}[_0x374f0d(0x16e)](_0x4ef510){var _0x1c6522=_0x374f0d;const {presenter:_0x1ca452}=_0x4ef510[_0x1c6522(0x111)],_0x207893=this[_0x1c6522(0x160)][_0x1c6522(0xd2)]();this['_presenter']=_0x1ca452,_0x1ca452===_0x207893?(this[_0x1c6522(0xe7)](),this['_startPresenting']()):this[_0x1c6522(0xf8)]!==_0x1c6522(0x11e)&&(this[_0x1c6522(0xe2)](),this['_startFollowing']());}[_0x374f0d(0x173)](){var _0x249cfc=_0x374f0d;const _0x2f58cc={'eventID':_0x283e71[_0x249cfc(0xc7)]};this[_0x249cfc(0x160)][_0x249cfc(0xe9)](_0x2f58cc,this['_unitID']);}[_0x374f0d(0xc6)](){var _0x412117=_0x374f0d;this[_0x412117(0x118)]=null,this['_status']!=='presenting'&&this[_0x412117(0xdc)]();}[_0x374f0d(0x147)](_0x5ab3a0){var _0x55af09=_0x374f0d;if(this[_0x55af09(0xf8)]===_0x55af09(0x14f)&&this[_0x55af09(0x118)]===_0x5ab3a0[_0x55af09(0x111)][_0x55af09(0x168)]){const _0x5f5100=_0x64dfb3(_0x5ab3a0[_0x55af09(0x111)])[_0x55af09(0x15f)][_0x55af09(0xc8)]()[_0x55af09(0xf7)](_0x5a6894=>_0x5a6894['id']===_0x7f5e33['id']);if(_0x5f5100){const _0x2df160=_0x5f5100[_0x55af09(0xed)]['unitId'],_0xd8c353=_0x5f5100[_0x55af09(0xed)][_0x55af09(0x171)]['id'];setTimeout(()=>{var _0x3793ca=_0x55af09;this[_0x3793ca(0x163)][_0x3793ca(0xe8)](_0x2e879b['id'],{'unitId':_0x2df160,'subUnitId':_0xd8c353},{'fromCollab':!0x0});});}}}[_0x374f0d(0xec)](){var _0x5a169a=_0x374f0d;this[_0x5a169a(0x13b)][_0x5a169a(0x107)](_0x5a169a(0x174));const _0x299d87=new Map(),_0x1b5fcd=this[_0x5a169a(0x157)]=new _0x179014();_0x1b5fcd[_0x5a169a(0x140)](_0x123a30(()=>{var _0x2e60d5=_0x5a169a;_0x299d87['forEach'](_0x35b206=>_0x35b206[_0x2e60d5(0xfa)]()),_0x299d87['clear']();})),_0x1b5fcd[_0x5a169a(0x140)](this[_0x5a169a(0x163)][_0x5a169a(0x146)](_0x322537=>{var _0x7f0f62=_0x5a169a,_0x189035;if(_0x322537['type']!==_0x3475ca['OPERATION']||!this[_0x7f0f62(0x14a)][_0x7f0f62(0x112)](_0x322537['id']))return;const {id:_0xeb6a37}=_0x322537;let _0xcbcad0;_0x299d87[_0x7f0f62(0x10d)](_0xeb6a37)?_0xcbcad0=_0x299d87[_0x7f0f62(0x10c)](_0xeb6a37):(_0xcbcad0=new _0x3e95be(),_0x299d87[_0x7f0f62(0x13e)](_0xeb6a37,_0xcbcad0),_0xcbcad0[_0x7f0f62(0x101)](_0x33739f((_0x189035=this[_0x7f0f62(0x152)][_0x7f0f62(0xe0)](Pe))!=null?_0x189035:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7f0f62(0x16b)](_0x2016cf=>{var _0x5f13cf=_0x7f0f62;this['_collabSession'][_0x5f13cf(0xe9)]({'eventID':_0x283e71[_0x5f13cf(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x2016cf['id']]:{'id':_0x2016cf['id'],'params':JSON['stringify'](_0x2016cf[_0x5f13cf(0xed)])}}}},this[_0x5f13cf(0x156)]);})),_0xcbcad0[_0x7f0f62(0x107)](_0x322537);})),this['_liveShareService'][_0x5a169a(0xe6)](this[_0x5a169a(0x156)])['forEach'](_0x513479=>this['_collabSession']['send']({'eventID':_0x283e71[_0x5a169a(0x172)],'data':{'unitID':this['_unitID'],'operations':{[_0x513479['id']]:{'id':_0x513479['id'],'params':JSON['stringify'](_0x513479['params'])}}}},this[_0x5a169a(0x156)]));}[_0x374f0d(0xe2)](){var _0x15f0bf=_0x374f0d,_0x8e8388;this['_status$'][_0x15f0bf(0x107)]('idle'),(_0x8e8388=this['_commandDisposable'])==null||_0x8e8388[_0x15f0bf(0x106)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x57f098=_0x374f0d,_0x3465c6;(_0x3465c6=this[_0x57f098(0x157)])==null||_0x3465c6[_0x57f098(0x106)](),this[_0x57f098(0x13b)][_0x57f098(0x107)](_0x57f098(0x14f));}[_0x374f0d(0xdc)](){var _0x3a7b05=_0x374f0d,_0x3c56fc;this[_0x3a7b05(0x13b)][_0x3a7b05(0x107)](_0x3a7b05(0x100)),(_0x3c56fc=this[_0x3a7b05(0x157)])==null||_0x3c56fc[_0x3a7b05(0x106)](),this['_commandDisposable']=null;}[_0x374f0d(0xe7)](){var _0x1a7611=_0x374f0d,_0x333681;this[_0x1a7611(0x13b)]['next'](_0x1a7611(0x11e)),(_0x333681=this[_0x1a7611(0x157)])==null||_0x333681[_0x1a7611(0x106)]();}[_0x374f0d(0x15e)](_0x5337e2){var _0x312022=_0x374f0d;if([_0x312022(0x174),'not-following',_0x312022(0x138)][_0x312022(0xcb)](this[_0x312022(0xf8)])||!_0x5337e2['data'][_0x312022(0x162)]||_0x5337e2[_0x312022(0x111)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x312022(0xf8)]===_0x312022(0x100)&&this[_0x312022(0x105)]();const _0x6bf141=_0x5337e2[_0x312022(0x111)][_0x312022(0x11d)];Object[_0x312022(0x10e)](_0x6bf141)['forEach'](_0x4a4193=>{var _0x211da6=_0x312022;this[_0x211da6(0x163)][_0x211da6(0xe8)](_0x4a4193['id'],_0x4a4193[_0x211da6(0xed)]?JSON[_0x211da6(0x127)](_0x4a4193[_0x211da6(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2aa358=_0x374f0d,_0x157939;this[_0x2aa358(0x13b)][_0x2aa358(0x107)]('offline'),(_0x157939=this[_0x2aa358(0x157)])==null||_0x157939[_0x2aa358(0x106)]();}[_0x374f0d(0x169)](){var _0x81e63c=_0x374f0d;this['_status$'][_0x81e63c(0x107)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x1c9c8e),f(0x3,_0x314c14(L)),f(0x4,_0x11b5db)],C);function Te(){var _0x48c088=_0x374f0d;const _0x316703=_0x3cb200(I),_0x2945c4=_0x3cb200(_0x50d8c5),_0x720056=_0x26a8d4(()=>_0x2945c4['getCurrentTypeOfUnit$'](_0x571d0a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b05a7,_0x50930c]=_0x11d288(null),[_0x59d2fa,_0x5c874a]=_0x11d288(h[_0x48c088(0xf9)]),_0x2dbcd2=_0x2e65b7(null);return _0x241cbb(()=>(_0x720056&&_0x316703[_0x48c088(0x153)](_0x720056[_0x48c088(0xea)]())[_0x48c088(0x145)](_0x29a318=>{var _0x24ead3=_0x48c088;_0x50930c(_0x29a318),_0x2dbcd2[_0x24ead3(0x15c)]=_0x29a318[_0x24ead3(0x154)]['subscribe'](_0x3633aa=>{_0x5c874a(_0x3633aa);});}),()=>{var _0x2ab678=_0x48c088,_0x21f09b;(_0x21f09b=_0x2dbcd2[_0x2ab678(0x15c)])==null||_0x21f09b[_0x2ab678(0x110)](),_0x2dbcd2[_0x2ab678(0x15c)]=null;}),[_0x720056,_0x316703]),_0x5b05a7?_0x5cd53e(_0x9196d1,{'align':_0x48c088(0x12a),'disabled':_0x59d2fa===h[_0x48c088(0x13a)],'className':_0x48c088(0x116),'overlay':_0x5cd53e($e,{'status':_0x59d2fa,'coordinator':_0x5b05a7}),'children':_0x5cd53e(_0x48c088(0x137),{'className':_0x1101ed('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59d2fa===h[_0x48c088(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d2fa!==h[_0x48c088(0x13a)]}),'type':_0x48c088(0x137),'children':_0x5cd53e(B,{'className':_0x48c088(0x102)})})}):null;}function $e(_0x4717cb){var _0x5594c1=_0x374f0d;const {status:_0x35466b,coordinator:_0x399948}=_0x4717cb;switch(_0x35466b){case h['IDLE']:return _0x5cd53e(Fe,{'coordinator':_0x399948});case h['FOLLOWING']:return _0x5cd53e(He,{'coordinator':_0x399948});case h[_0x5594c1(0x150)]:return _0x5cd53e(je,{'coordinator':_0x399948});case h[_0x5594c1(0x13a)]:return _0x5cd53e(Ve,{});case h[_0x5594c1(0x164)]:return _0x5cd53e(Ue,{'coordinator':_0x399948});default:return null;}}function _0x777f(_0x20208f,_0x2ade18){var _0x5f2a06=_0x5f2a();return _0x777f=function(_0x777ffb,_0x2e8e9c){_0x777ffb=_0x777ffb-0xbf;var _0x44709c=_0x5f2a06[_0x777ffb];return _0x44709c;},_0x777f(_0x20208f,_0x2ade18);}function Fe(_0x335380){var _0x103223=_0x374f0d;const {coordinator:_0x434c6a}=_0x335380;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e('div',{'className':_0x103223(0xc9),'children':'Present\x20this\x20document'}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x434c6a[_0x103223(0xf5)](),'children':_0x103223(0x117)})]});}function He(_0x214b8a){var _0x360208=_0x374f0d;const {coordinator:_0x4f7c70}=_0x214b8a;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x360208(0x134),{'className':_0x360208(0xc9),'children':_0x360208(0x109)}),_0x5cd53e(_0xd1b51f,{'onClick':()=>_0x4f7c70['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x5aa383){var _0x278149=_0x374f0d;const {coordinator:_0x335a5a}=_0x5aa383;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x278149(0x134),{'className':_0x278149(0xc9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5cd53e(_0xd1b51f,{'variant':_0x278149(0x13c),'onClick':()=>_0x335a5a['startFollowing'](),'children':_0x278149(0xdd)})]});}function Ue(_0x815a38){var _0x39c68b=_0x374f0d;const {coordinator:_0x110106}=_0x815a38;return _0x5cf0f1(_0x5e9c70,{'children':[_0x5cd53e(_0x39c68b(0x134),{'className':_0x39c68b(0xc9),'children':_0x39c68b(0xca)}),_0x5cd53e(_0xd1b51f,{'variant':_0x39c68b(0x114),'onClick':()=>_0x110106[_0x39c68b(0x131)](),'children':_0x39c68b(0x12b)})]});}function Ve(){var _0x42cfbb=_0x374f0d;return _0x5cd53e(_0x5e9c70,{'children':_0x42cfbb(0x142)});}var Me=Object[_0x374f0d(0xf0)],ke=(_0x33e56f,_0x222d65,_0xe41e6e,_0x10597c)=>{var _0x1c955f=_0x374f0d;for(var _0x7910ea=_0x10597c>0x1?void 0x0:_0x10597c?Me(_0x222d65,_0xe41e6e):_0x222d65,_0x4b0fc7=_0x33e56f[_0x1c955f(0xcc)]-0x1,_0x45da42;_0x4b0fc7>=0x0;_0x4b0fc7--)(_0x45da42=_0x33e56f[_0x4b0fc7])&&(_0x7910ea=_0x45da42(_0x7910ea)||_0x7910ea);return _0x7910ea;},$=(_0x3811a8,_0x18ba00)=>(_0x3344e8,_0x33157d)=>_0x18ba00(_0x3344e8,_0x33157d,_0x3811a8);let b=class extends _0x23bae8{constructor(_0x5a4ce6,_0x1dd462){var _0x1d1ffd=_0x374f0d;super(),this[_0x1d1ffd(0x115)]=_0x5a4ce6,this[_0x1d1ffd(0xf3)]=_0x1dd462,this[_0x1d1ffd(0x11a)]();}[_0x374f0d(0x11a)](){var _0x1f854e=_0x374f0d;this[_0x1f854e(0xda)](this[_0x1f854e(0xf3)][_0x1f854e(0xd0)](_0x5bfd17[_0x1f854e(0x159)],()=>_0x14037c(Te,this['_injector'])));}};b=ke([$(0x0,_0x314c14(_0x1bfa83)),$(0x1,_0x2aa461)],b);var Ge=Object['defineProperty'],We=Object[_0x374f0d(0xf0)],Ye=(_0x4b9cb2,_0x506183,_0x55b029)=>_0x506183 in _0x4b9cb2?Ge(_0x4b9cb2,_0x506183,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b029}):_0x4b9cb2[_0x506183]=_0x55b029,Be=(_0x5c308a,_0x115be3,_0x3a3dab,_0x9f2cd5)=>{for(var _0x3888c6=_0x9f2cd5>0x1?void 0x0:_0x9f2cd5?We(_0x115be3,_0x3a3dab):_0x115be3,_0x565d1c=_0x5c308a['length']-0x1,_0x5e304d;_0x565d1c>=0x0;_0x565d1c--)(_0x5e304d=_0x5c308a[_0x565d1c])&&(_0x3888c6=_0x5e304d(_0x3888c6)||_0x3888c6);return _0x3888c6;},F=(_0x231252,_0x2dbcc5)=>(_0x2131ce,_0x43bd95)=>_0x2dbcc5(_0x2131ce,_0x43bd95,_0x231252),J=(_0x12d761,_0x4d6049,_0x24478f)=>Ye(_0x12d761,typeof _0x4d6049!=_0x374f0d(0x125)?_0x4d6049+'':_0x4d6049,_0x24478f);const Ze=_0x374f0d(0x123);let O=class extends _0x552d9d{constructor(_0xbbbb8f=T,_0x484507,_0x4e6975){var _0x504f88=_0x374f0d;super(),this[_0x504f88(0x166)]=_0xbbbb8f,this[_0x504f88(0x115)]=_0x484507,this[_0x504f88(0x152)]=_0x4e6975;const {..._0x6ad17e}=_0x13d80c({},T,this[_0x504f88(0x166)]);this[_0x504f88(0x152)][_0x504f88(0x167)](Oe,_0x6ad17e);}[_0x374f0d(0x151)](){var _0x2d024e=_0x374f0d;_0x1c17e9(this[_0x2d024e(0x115)],_0x100a43([[L],[I],[m],[b]],this[_0x2d024e(0x166)][_0x2d024e(0x130)])),_0x870d19(this[_0x2d024e(0x115)],[[m]]);}[_0x374f0d(0x103)](){_0x870d19(this['_injector'],[[b]]);}};J(O,_0x374f0d(0xd6),_0x571d0a[_0x374f0d(0x122)]),J(O,_0x374f0d(0x10a),Ze),O=Be([_0x39f7a7(_0xadeaf6),F(0x1,_0x314c14(_0x1bfa83)),F(0x2,_0x1c9c8e)],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 _0x271f(_0xec7ab0,_0x5f3971){var _0x409b5d=_0x409b();return _0x271f=function(_0x271f71,_0x36fe09){_0x271f71=_0x271f71-0x1b3;var _0x4e5acb=_0x409b5d[_0x271f71];return _0x4e5acb;},_0x271f(_0xec7ab0,_0x5f3971);}function _0x409b(){var _0x472923=['UniverCore','univer-mb-3\x20univer-w-full\x20univer-text-sm','useRef','BuiltInUIPart','stringify','attrs','includes','data','LiveShareController','entries','@univerjs/design','_config','DesktopLiveShareController','then','pluginName','stopPresenting','getMemberID','Injector','current','BehaviorSubject','offline','NOT_FOLLOWING','operations','UniverDesign','currentColor','icon','object','getUnitId','has','mutations','registerComponent','from','UniverSheets','Fragment','presenter','symbol','subscribe','children','Button','onStarting','_reporters','set','url(#$1','find','getInitialStates','UNIVER_SHEET','react/jsx-runtime','colorChannel1','amd','4364304FBWCoh','get','send','LIVESHARE_REQUEST_HOST','idSuffix','FOLLOWING','_commandDisposable','4267485AswUlv','getOwnPropertyDescriptor','idle','string','_init','delete','parseProtocolChangeset','useEffect','react','You\x27re\x20following\x20the\x20presenter','jsxs','jsx','defIds','DependentOn','getValue','event$','getOwnPropertySymbols','@univerjs-pro/collaboration-client','SetScrollOperation','clear','createElement','random','use','stopFollowing','0\x200\x2017\x2017','path','tag','Disposable','_handleOffline','React','NEW_CHANGESETS','10Dflvpf','_startLiveShareCoordinator','concat','SetZoomRatioOperation','sheet','setConfig','_univerInstanceService','prototype','indexOf','startFollowing','Dropdown','_startFollowing','CollaborationSessionService','@univerjs-pro/collaboration','defs','_collabSession','_startPresenting','getTypeOfUnitAdded$','SetWorksheetActiveOperation','IConfigService','ICommandService','UNIVER_LIVE_SHARE_PLUGIN','call','live-share.config','1869553awVqbV','mask','function','333IbeidG','UniverLiveSharePlugin','unitId','1101230IgBOTo','memberID','displayName','http://www.w3.org/2000/svg','reverse','UNIVER_UNKNOWN','following','touchDependencies','LiveShareService','next','asObservable','assign','disposeWithMe','rxjs/operators','LiveShare','replace','_beIdle','trim','substring','default','@univerjs/sheets-ui','button','_stopPresenting','shouldShareOperation','_injector','SAME_OPERATION_SHARE_INTERVAL','IDLE','_presenter','pipe','sessionStatus$','defineProperty','ONLINE','HEADER_MENU','UniverUi','Subject','LIVESHARE_OPERATION','registerDependencies','end','You\x27re\x20presenting\x20the\x20document','@univerjs/core','2264266KQAtmk','SessionStatus','type','useState','_status','UniverProCollaboration','toStringTag','RxDisposable','InsertSheetMutation','getTypeOfUnitDisposed$','UniverIcon','evenodd','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','useObservable','xlink:href','UniverProLiveShare','div','UniverCollaborationClientPlugin','registerInitialStateReporter','toDisposable','connectInjector','DisposableCollection','UniverSheetsUi','status$','onRendered','_uiPartsService','840548THtvIE','add','IUniverInstanceService','1em','hasOwnProperty','toString','_sharedOperations','PRESENTING','_liveShareService','@univerjs/ui','takeUntil','UniverProCollaborationClient','LiveShareIcon','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','5030052AXFWGZ','length','CollaborationEvent','none','extend','Present\x20this\x20document','_fetchOperations','params','1YePhbA','parse','_configService','UniverInstanceType','_handleTerminate','fill','Inject','LIVESHARE_FETCH_OPERATIONS','forwardRef','presenting','not-following','init','_entities','You\x27are\x20offline.','override','clsx','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getLiveShareCoordinator','LIVESHARE_NEW_HOST','forEach','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','dispose','executeCommand','OFFLINE','useDependency','tryStartPresenting','Start\x20following','_stopFollowing','LIVESHARE_TERMINATE','_handleNewChangeSets','_handleNewHost','_mountLiveShare','exports','LiveShareCoordinator','_handleOperation','dispose$','rxjs','map','className','OPERATION','registerSharedOperation','_status$'];_0x409b=function(){return _0x472923;};return _0x409b();}(function(_0x3cfff8,_0xf2639d){var _0x170fe6=_0x271f,_0x44325d=_0x3cfff8();while(!![]){try{var _0x4c44a0=parseInt(_0x170fe6(0x1c7))/0x1*(-parseInt(_0x170fe6(0x290))/0x2)+-parseInt(_0x170fe6(0x22b))/0x3+-parseInt(_0x170fe6(0x2aa))/0x4*(-parseInt(_0x170fe6(0x24a))/0x5)+-parseInt(_0x170fe6(0x1bf))/0x6+parseInt(_0x170fe6(0x262))/0x7+-parseInt(_0x170fe6(0x224))/0x8+-parseInt(_0x170fe6(0x265))/0x9*(-parseInt(_0x170fe6(0x268))/0xa);if(_0x4c44a0===_0xf2639d)break;else _0x44325d['push'](_0x44325d['shift']());}catch(_0x2137be){_0x44325d['push'](_0x44325d['shift']());}}}(_0x409b,0xc9064),function(_0x198581,_0xcd53e9){var _0x42a606=_0x271f;typeof exports==_0x42a606(0x20d)&&typeof module<'u'?_0xcd53e9(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x42a606(0x223)]?define([_0x42a606(0x1e9),_0x42a606(0x23c),_0x42a606(0x28f),'@univerjs/sheets',_0x42a606(0x27c),_0x42a606(0x1b9),_0x42a606(0x221),_0x42a606(0x1fd),_0x42a606(0x233),_0x42a606(0x257),'rxjs',_0x42a606(0x275)],_0xcd53e9):(_0x198581=typeof globalThis<'u'?globalThis:_0x198581||self,_0xcd53e9(_0x198581[_0x42a606(0x29f)]={},_0x198581[_0x42a606(0x1bb)],_0x198581[_0x42a606(0x1f3)],_0x198581[_0x42a606(0x213)],_0x198581[_0x42a606(0x2a6)],_0x198581[_0x42a606(0x289)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x20a)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x295)],_0x198581[_0x42a606(0x1ed)],_0x198581[_0x42a606(0x1ed)]['operators']));}(this,function(_0x2a034c,_0x44068f,_0x214637,_0x4c7348,_0xa60945,_0xced2db,_0x3a11cc,_0x93a8e2,_0x54d5d7,_0x497455,_0x507716,_0x1dafc4){'use strict';var _0x19a470=_0x271f;var _0x592d93=Object[_0x19a470(0x286)],_0x4b143c=(_0x2e3890,_0x4557e3,_0xe01256)=>_0x4557e3 in _0x2e3890?_0x592d93(_0x2e3890,_0x4557e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe01256}):_0x2e3890[_0x4557e3]=_0xe01256,_0x3863ad=(_0x515844,_0x5a8f4d,_0x466dd0)=>_0x4b143c(_0x515844,typeof _0x5a8f4d!=_0x19a470(0x216)?_0x5a8f4d+'':_0x5a8f4d,_0x466dd0);const _0x150d50=_0x19a470(0x261),_0x15fc2a={};class _0x416f9b extends _0x214637[_0x19a470(0x246)]{constructor(){var _0x342346=_0x19a470;super(...arguments),_0x3863ad(this,_0x342346(0x1b6),new Set()),_0x3863ad(this,_0x342346(0x21b),new Set());}[_0x19a470(0x1f1)](_0x583164){var _0x444e4e=_0x19a470;return this[_0x444e4e(0x1b6)][_0x444e4e(0x2ab)](_0x583164),_0x214637[_0x444e4e(0x2a3)](()=>this[_0x444e4e(0x1b6)][_0x444e4e(0x230)](_0x583164));}[_0x19a470(0x2a2)](_0x599c86){var _0x50c709=_0x19a470;return this[_0x50c709(0x21b)][_0x50c709(0x2ab)](_0x599c86),_0x214637[_0x50c709(0x2a3)](()=>this[_0x50c709(0x21b)][_0x50c709(0x230)](_0x599c86));}[_0x19a470(0x27f)](_0x3f0034){var _0x607b7d=_0x19a470;return this[_0x607b7d(0x1b6)][_0x607b7d(0x20f)](_0x3f0034);}[_0x19a470(0x21f)](_0x3784fe){var _0xe76eda=_0x19a470;return Array[_0xe76eda(0x212)](this['_reporters'])['map'](_0x345cdd=>_0x345cdd(_0x3784fe));}}var _0x523ffc=Object[_0x19a470(0x22c)],_0x184600=(_0x4d8a6f,_0x162f6a,_0xb96b95,_0x353a84)=>{var _0x3fe74a=_0x19a470;for(var _0x39f028=_0x353a84>0x1?void 0x0:_0x353a84?_0x523ffc(_0x162f6a,_0xb96b95):_0x162f6a,_0x358409=_0x4d8a6f[_0x3fe74a(0x1c0)]-0x1,_0x2e5c51;_0x358409>=0x0;_0x358409--)(_0x2e5c51=_0x4d8a6f[_0x358409])&&(_0x39f028=_0x2e5c51(_0x39f028)||_0x39f028);return _0x39f028;},_0x439602=(_0x196f63,_0x264d51)=>(_0x19eca2,_0x513f92)=>_0x264d51(_0x19eca2,_0x513f92,_0x196f63);let _0x2bf0a6=class extends _0x214637[_0x19a470(0x246)]{constructor(_0xda815d){var _0x144bbe=_0x19a470;super(),this[_0x144bbe(0x1b8)]=_0xda815d,this['_init']();}[_0x19a470(0x22f)](){var _0x4bbe28=_0x19a470;[_0xa60945[_0x4bbe28(0x24d)]['id'],_0xa60945[_0x4bbe28(0x23d)]['id'],_0x4c7348[_0x4bbe28(0x25c)]['id']]['forEach'](_0x3e2094=>{var _0x2014a5=_0x4bbe28;this[_0x2014a5(0x274)](this[_0x2014a5(0x1b8)][_0x2014a5(0x1f1)](_0x3e2094));});}};_0x2bf0a6=_0x184600([_0x439602(0x0,_0x214637[_0x19a470(0x1cd)](_0x416f9b))],_0x2bf0a6);var _0x2b2871=function(){var _0xeb0daf=_0x19a470;return _0x2b2871=Object[_0xeb0daf(0x273)]||function(_0xa3569){var _0x44bee1=_0xeb0daf;for(var _0x3ddc43,_0x116c39=0x1,_0x37008a=arguments[_0x44bee1(0x1c0)];_0x116c39<_0x37008a;_0x116c39++){_0x3ddc43=arguments[_0x116c39];for(var _0x1ff669 in _0x3ddc43)Object[_0x44bee1(0x251)]['hasOwnProperty']['call'](_0x3ddc43,_0x1ff669)&&(_0xa3569[_0x1ff669]=_0x3ddc43[_0x1ff669]);}return _0xa3569;},_0x2b2871['apply'](this,arguments);},_0x3fcd3e=function(_0x3918ac,_0x37c784){var _0x87d420=_0x19a470,_0x22a004={};for(var _0x400078 in _0x3918ac)Object['prototype'][_0x87d420(0x1b4)][_0x87d420(0x260)](_0x3918ac,_0x400078)&&_0x37c784[_0x87d420(0x252)](_0x400078)<0x0&&(_0x22a004[_0x400078]=_0x3918ac[_0x400078]);if(_0x3918ac!=null&&typeof Object[_0x87d420(0x23b)]==_0x87d420(0x264)){for(var _0x49aaad=0x0,_0x400078=Object[_0x87d420(0x23b)](_0x3918ac);_0x49aaad<_0x400078[_0x87d420(0x1c0)];_0x49aaad++)_0x37c784[_0x87d420(0x252)](_0x400078[_0x49aaad])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x87d420(0x260)](_0x3918ac,_0x400078[_0x49aaad])&&(_0x22a004[_0x400078[_0x49aaad]]=_0x3918ac[_0x400078[_0x49aaad]]);}return _0x22a004;},_0x53c23a=_0x54d5d7['forwardRef'](function(_0x554719,_0x1d68e7){var _0x535ac6=_0x19a470,_0xb661f6=_0x554719[_0x535ac6(0x20c)],_0xa0893c=_0x554719['id'],_0x20beff=_0x554719[_0x535ac6(0x1ef)],_0x453d64=_0x554719[_0x535ac6(0x1c3)],_0x361f25=_0x3fcd3e(_0x554719,[_0x535ac6(0x20c),'id','className','extend']),_0x597d0d='univerjs-icon\x20univerjs-icon-'['concat'](_0xa0893c,'\x20')['concat'](_0x20beff||'')[_0x535ac6(0x279)](),_0x569c2a=_0x54d5d7[_0x535ac6(0x1f5)]('_'[_0x535ac6(0x24c)](_0x1ac4ee()));return _0x238e1f(_0xb661f6,''[_0x535ac6(0x24c)](_0xa0893c),{'defIds':_0xb661f6[_0x535ac6(0x237)],'idSuffix':_0x569c2a[_0x535ac6(0x205)]},_0x2b2871({'ref':_0x1d68e7,'className':_0x597d0d},_0x361f25),_0x453d64);});function _0x238e1f(_0x4e52ea,_0x559919,_0x4836a8,_0x178105,_0x2185cc){var _0x2619df=_0x19a470;return _0x54d5d7['createElement'](_0x4e52ea[_0x2619df(0x245)],_0x2b2871(_0x2b2871({'key':_0x559919},_0x5e129e(_0x4e52ea,_0x4836a8,_0x2185cc)),_0x178105),(_0x3b86cc(_0x4e52ea,_0x4836a8)[_0x2619df(0x218)]||[])[_0x2619df(0x1ee)](function(_0x425c72,_0x48d925){var _0x49d344=_0x2619df;return _0x238e1f(_0x425c72,''[_0x49d344(0x24c)](_0x559919,'-')[_0x49d344(0x24c)](_0x4e52ea[_0x49d344(0x245)],'-')['concat'](_0x48d925),_0x4836a8,void 0x0,_0x2185cc);}));}function _0x5e129e(_0x140169,_0x159afb,_0x35baf0){var _0x19153d=_0x19a470,_0x2681aa=_0x2b2871({},_0x140169[_0x19153d(0x1f8)]);_0x35baf0!=null&&_0x35baf0['colorChannel1']&&_0x2681aa[_0x19153d(0x1cc)]===_0x19153d(0x222)&&(_0x2681aa[_0x19153d(0x1cc)]=_0x35baf0[_0x19153d(0x222)]),_0x140169[_0x19153d(0x245)]==='mask'&&_0x2681aa['id']&&(_0x2681aa['id']=_0x2681aa['id']+_0x159afb[_0x19153d(0x228)]),Object[_0x19153d(0x1fc)](_0x2681aa)['forEach'](function(_0x276463){var _0x1b6643=_0x19153d,_0x211e57=_0x276463[0x0],_0x3c9154=_0x276463[0x1];_0x211e57===_0x1b6643(0x263)&&typeof _0x3c9154=='string'&&(_0x2681aa[_0x211e57]=_0x3c9154['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1b6643(0x24c)](_0x159afb[_0x1b6643(0x228)],')')));});var _0x27c4f3=_0x159afb[_0x19153d(0x237)];return!_0x27c4f3||_0x27c4f3[_0x19153d(0x1c0)]===0x0||(_0x140169[_0x19153d(0x245)]===_0x19153d(0x241)&&_0x2681aa[_0x19153d(0x29e)]&&(_0x2681aa['xlink:href']=_0x2681aa[_0x19153d(0x29e)]+_0x159afb['idSuffix']),Object['entries'](_0x2681aa)[_0x19153d(0x1db)](function(_0x5eeffa){var _0x53a28f=_0x19153d,_0x5be76d=_0x5eeffa[0x0],_0x5a167b=_0x5eeffa[0x1];typeof _0x5a167b==_0x53a28f(0x22e)&&(_0x2681aa[_0x5be76d]=_0x5a167b[_0x53a28f(0x277)](/url\(#(.*)\)/,_0x53a28f(0x21d)[_0x53a28f(0x24c)](_0x159afb[_0x53a28f(0x228)],')')));})),_0x2681aa;}function _0x3b86cc(_0x4a348d,_0x56781d){var _0x5dfd49=_0x19a470,_0x589728,_0x5d0924=_0x56781d[_0x5dfd49(0x237)];return!_0x5d0924||_0x5d0924[_0x5dfd49(0x1c0)]===0x0?_0x4a348d:_0x4a348d[_0x5dfd49(0x245)]===_0x5dfd49(0x258)&&(!((_0x589728=_0x4a348d['children'])===null||_0x589728===void 0x0)&&_0x589728[_0x5dfd49(0x1c0)])?_0x2b2871(_0x2b2871({},_0x4a348d),{'children':_0x4a348d[_0x5dfd49(0x218)][_0x5dfd49(0x1ee)](function(_0x5d10ba){var _0x306a12=_0x5dfd49;return typeof _0x5d10ba[_0x306a12(0x1f8)]['id']==_0x306a12(0x22e)&&_0x5d0924&&_0x5d0924[_0x306a12(0x1f9)](_0x5d10ba[_0x306a12(0x1f8)]['id'])?_0x2b2871(_0x2b2871({},_0x5d10ba),{'attrs':_0x2b2871(_0x2b2871({},_0x5d10ba[_0x306a12(0x1f8)]),{'id':_0x5d10ba[_0x306a12(0x1f8)]['id']+_0x56781d[_0x306a12(0x228)]})}):_0x5d10ba;})}):_0x4a348d;}function _0x1ac4ee(){var _0x309016=_0x19a470;return Math[_0x309016(0x240)]()[_0x309016(0x1b5)](0x24)[_0x309016(0x27a)](0x2,0x8);}_0x53c23a[_0x19a470(0x26a)]=_0x19a470(0x29a);var _0x14dcfc={'tag':'svg','attrs':{'xmlns':_0x19a470(0x26b),'fill':_0x19a470(0x1c2),'viewBox':_0x19a470(0x243),'width':_0x19a470(0x1b3),'height':_0x19a470(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x19a470(0x20b),'d':_0x19a470(0x29c)}},{'tag':_0x19a470(0x244),'attrs':{'fill':_0x19a470(0x20b),'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':_0x19a470(0x29b),'clipRule':_0x19a470(0x29b)}}]},_0x1f6af7=_0x54d5d7[_0x19a470(0x1cf)](function(_0x361020,_0x3eb5dd){var _0x529868=_0x19a470;return _0x54d5d7[_0x529868(0x23f)](_0x53c23a,Object[_0x529868(0x273)]({},_0x361020,{'id':'live-share-icon','ref':_0x3eb5dd,'icon':_0x14dcfc}));});_0x1f6af7[_0x19a470(0x26a)]=_0x19a470(0x1bc);var _0x54bd61=Object[_0x19a470(0x22c)],_0x288c50=(_0x22b4d3,_0x39c544,_0x2c926a,_0x2937cb)=>{for(var _0x1cc17a=_0x2937cb>0x1?void 0x0:_0x2937cb?_0x54bd61(_0x39c544,_0x2c926a):_0x39c544,_0x400297=_0x22b4d3['length']-0x1,_0x420a1a;_0x400297>=0x0;_0x400297--)(_0x420a1a=_0x22b4d3[_0x400297])&&(_0x1cc17a=_0x420a1a(_0x1cc17a)||_0x1cc17a);return _0x1cc17a;},_0x3f9a81=(_0x3736ea,_0x26a46a)=>(_0x4c8564,_0x113961)=>_0x26a46a(_0x4c8564,_0x113961,_0x3736ea);_0x2a034c[_0x19a470(0x1fb)]=class extends _0x214637[_0x19a470(0x297)]{constructor(_0x45e3ff,_0x4ac657,_0x77aec2){var _0xb0c611=_0x19a470;super(),_0x3863ad(this,_0xb0c611(0x1d3),new Map()),(this['_univerInstanceService']=_0x45e3ff,this[_0xb0c611(0x280)]=_0x4ac657,this['_collabSessionService']=_0x77aec2,this[_0xb0c611(0x22f)]());}async[_0x19a470(0x1d9)](_0x1536ea){var _0x12dabe=_0x19a470;return this[_0x12dabe(0x1d3)]['has'](_0x1536ea)||await this[_0x12dabe(0x24b)](_0x1536ea),this['_entities'][_0x12dabe(0x225)](_0x1536ea);}[_0x19a470(0x22f)](){var _0x4290cc=_0x19a470;this[_0x4290cc(0x250)][_0x4290cc(0x25b)](_0x214637[_0x4290cc(0x1ca)][_0x4290cc(0x220)])[_0x4290cc(0x284)](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](async _0x293740=>{var _0x244da8=_0x4290cc;const _0x58bf6b=_0x293740[_0x244da8(0x20e)]();this['_entities'][_0x244da8(0x20f)](_0x58bf6b)||this[_0x244da8(0x24b)](_0x58bf6b);}),this[_0x4290cc(0x250)][_0x4290cc(0x299)](_0x214637['UniverInstanceType'][_0x4290cc(0x220)])['pipe'](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](_0x34aa58=>{var _0x49cd5=_0x4290cc;const _0x36c5d2=_0x34aa58[_0x49cd5(0x20e)](),_0x2dc3b0=this[_0x49cd5(0x1d3)]['get'](_0x36c5d2);_0x2dc3b0==null||_0x2dc3b0['dispose']();});}async['_startLiveShareCoordinator'](_0x3f2977){var _0x42bc27=_0x19a470;const _0x21d3c1=await this['_collabSessionService']['requireSession'](_0x3f2977),_0x21bfe5=this['_injector']['createInstance'](_0x2a034c[_0x42bc27(0x1ea)],_0x3f2977,_0x21d3c1);return _0x21bfe5[_0x42bc27(0x1d2)](),this[_0x42bc27(0x1d3)]['set'](_0x3f2977,_0x21bfe5),_0x21bfe5;}},_0x2a034c[_0x19a470(0x1fb)]=_0x288c50([_0x3f9a81(0x0,_0x214637[_0x19a470(0x2ac)]),_0x3f9a81(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x3f9a81(0x2,_0x214637['Inject'](_0x44068f[_0x19a470(0x256)]))],_0x2a034c['LiveShareController']);var _0x46fa92=(_0x5b529d=>(_0x5b529d['OFFLINE']=_0x19a470(0x207),_0x5b529d[_0x19a470(0x282)]=_0x19a470(0x22d),_0x5b529d['FOLLOWING']=_0x19a470(0x26e),_0x5b529d[_0x19a470(0x208)]=_0x19a470(0x1d1),_0x5b529d[_0x19a470(0x1b7)]=_0x19a470(0x1d0),_0x5b529d))(_0x46fa92||{});const _0x15d201=_0x19a470(0x281),_0x2494e7=0xc8;_0x2a034c[_0x19a470(0x1ea)]=class extends _0x214637['RxDisposable']{constructor(_0x33f9b1,_0x3cb7f1,_0x1cf47c,_0x42d835,_0x2aa2a4){var _0x119ab9=_0x19a470;super(),_0x3863ad(this,'_status$',new _0x507716[(_0x119ab9(0x206))](_0x119ab9(0x22d))),_0x3863ad(this,_0x119ab9(0x2a7),this[_0x119ab9(0x1f2)][_0x119ab9(0x272)]()),_0x3863ad(this,'_init',!0x1),_0x3863ad(this,_0x119ab9(0x22a),null),_0x3863ad(this,_0x119ab9(0x283),null),(this[_0x119ab9(0x1be)]=_0x33f9b1,this[_0x119ab9(0x259)]=_0x3cb7f1,this[_0x119ab9(0x1c9)]=_0x1cf47c,this['_liveShareService']=_0x42d835,this['_commandService']=_0x2aa2a4);}get[_0x19a470(0x294)](){var _0x3b0e83=_0x19a470;return this[_0x3b0e83(0x1f2)][_0x3b0e83(0x239)]();}['dispose'](){var _0x2a7684=_0x19a470,_0x4f7e5c;(_0x4f7e5c=this['_commandDisposable'])==null||_0x4f7e5c[_0x2a7684(0x1de)](),this[_0x2a7684(0x1f2)][_0x2a7684(0x271)](_0x2a7684(0x22d)),this[_0x2a7684(0x1f2)]['complete']();}['init'](){var _0x5405df=_0x19a470;this[_0x5405df(0x22f)]||(this[_0x5405df(0x22f)]=!0x0,this[_0x5405df(0x259)][_0x5405df(0x285)][_0x5405df(0x284)](_0x1dafc4['takeUntil'](this[_0x5405df(0x1ec)]))[_0x5405df(0x217)](_0x340657=>{var _0x4f5cc5=_0x5405df;switch(_0x340657){case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x1e0)]:this[_0x4f5cc5(0x247)]();break;case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x287)]:this['_handleOnline']();break;}}),this[_0x5405df(0x259)][_0x5405df(0x23a)][_0x5405df(0x284)](_0x1dafc4[_0x5405df(0x1ba)](this['dispose$']))['subscribe'](_0x418bf7=>{var _0x4227aa=_0x5405df;const {eventID:_0x4cd97a}=_0x418bf7;switch(_0x4cd97a){case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1da)]:this[_0x4227aa(0x1e7)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x28b)]:this[_0x4227aa(0x1eb)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1e5)]:this[_0x4227aa(0x1cb)]();break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x249)]:this[_0x4227aa(0x1e6)](_0x418bf7);break;}}));}[_0x19a470(0x1e2)](){var _0x3dabf2=_0x19a470;this['_collabSession'][_0x3dabf2(0x226)]({'eventID':_0x497455[_0x3dabf2(0x1c1)][_0x3dabf2(0x227)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3dabf2(0x1be)]);}[_0x19a470(0x202)](){var _0x56bb94=_0x19a470;this[_0x56bb94(0x294)]===_0x56bb94(0x1d0)&&(this[_0x56bb94(0x1f2)][_0x56bb94(0x271)]('idle'),this[_0x56bb94(0x259)][_0x56bb94(0x226)]({'eventID':_0x497455[_0x56bb94(0x1c1)][_0x56bb94(0x1e5)],'data':{'unitID':this[_0x56bb94(0x1be)]}},this[_0x56bb94(0x1be)]));}[_0x19a470(0x253)](){var _0x4ef722=_0x19a470;this['_status']===_0x4ef722(0x1d1)&&(this[_0x4ef722(0x1f2)][_0x4ef722(0x271)](_0x4ef722(0x26e)),this[_0x4ef722(0x255)]());}[_0x19a470(0x242)](){var _0x40cee7=_0x19a470;this[_0x40cee7(0x294)]==='following'&&this[_0x40cee7(0x1e4)]();}['_handleNewHost'](_0x49bdd7){var _0x5a2ed9=_0x19a470;const {presenter:_0x2d215b}=_0x49bdd7['data'],_0x4bdeb0=this[_0x5a2ed9(0x259)][_0x5a2ed9(0x203)]();this['_presenter']=_0x2d215b,_0x2d215b===_0x4bdeb0?(this[_0x5a2ed9(0x1e4)](),this[_0x5a2ed9(0x25a)]()):this[_0x5a2ed9(0x294)]!=='not-following'&&(this[_0x5a2ed9(0x27e)](),this['_startFollowing']());}[_0x19a470(0x1c5)](){var _0x40e35f=_0x19a470;const _0x1864bd={'eventID':_0x497455['CollaborationEvent'][_0x40e35f(0x1ce)]};this['_collabSession'][_0x40e35f(0x226)](_0x1864bd,this['_unitID']);}[_0x19a470(0x1cb)](){var _0x258760=_0x19a470;this[_0x258760(0x283)]=null,this['_status']!==_0x258760(0x1d0)&&this[_0x258760(0x278)]();}[_0x19a470(0x1e6)](_0x2aeb5a){var _0x562658=_0x19a470;if(this[_0x562658(0x294)]===_0x562658(0x26e)&&this[_0x562658(0x283)]===_0x2aeb5a[_0x562658(0x1fa)][_0x562658(0x269)]){const _0x21b5bd=_0x497455[_0x562658(0x231)](_0x2aeb5a[_0x562658(0x1fa)])[_0x562658(0x210)][_0x562658(0x26c)]()[_0x562658(0x21e)](_0x287b06=>_0x287b06['id']===_0x4c7348[_0x562658(0x298)]['id']);if(_0x21b5bd){const _0x55afa8=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x267)],_0x10543a=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x24e)]['id'];setTimeout(()=>{var _0x1192fd=_0x562658;this[_0x1192fd(0x1d7)][_0x1192fd(0x1df)](_0x4c7348[_0x1192fd(0x25c)]['id'],{'unitId':_0x55afa8,'subUnitId':_0x10543a},{'fromCollab':!0x0});});}}}[_0x19a470(0x25a)](){var _0x52ab71=_0x19a470;this['_status$'][_0x52ab71(0x271)](_0x52ab71(0x1d0));const _0x323dc0=new Map(),_0x51d3b3=this[_0x52ab71(0x22a)]=new _0x214637[(_0x52ab71(0x2a5))]();_0x51d3b3[_0x52ab71(0x2ab)](_0x214637[_0x52ab71(0x2a3)](()=>{var _0x20f871=_0x52ab71;_0x323dc0['forEach'](_0x1321a3=>_0x1321a3['complete']()),_0x323dc0[_0x20f871(0x23e)]();})),_0x51d3b3[_0x52ab71(0x2ab)](this['_commandService']['onCommandExecuted'](_0x44b01b=>{var _0x1d0fbc=_0x52ab71,_0x593d72;if(_0x44b01b['type']!==_0x214637['CommandType'][_0x1d0fbc(0x1f0)]||!this[_0x1d0fbc(0x1b8)][_0x1d0fbc(0x27f)](_0x44b01b['id']))return;const {id:_0x45f93d}=_0x44b01b;let _0x263ae1;_0x323dc0['has'](_0x45f93d)?_0x263ae1=_0x323dc0[_0x1d0fbc(0x225)](_0x45f93d):(_0x263ae1=new _0x507716[(_0x1d0fbc(0x28a))](),_0x323dc0[_0x1d0fbc(0x21c)](_0x45f93d,_0x263ae1),_0x263ae1[_0x1d0fbc(0x284)](_0x1dafc4['throttleTime']((_0x593d72=this[_0x1d0fbc(0x1c9)]['getConfig'](_0x15d201))!=null?_0x593d72:_0x2494e7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d0fbc(0x217)](_0x3c4765=>{var _0x5e236e=_0x1d0fbc;this['_collabSession'][_0x5e236e(0x226)]({'eventID':_0x497455[_0x5e236e(0x1c1)][_0x5e236e(0x28b)],'data':{'unitID':this[_0x5e236e(0x1be)],'operations':{[_0x3c4765['id']]:{'id':_0x3c4765['id'],'params':JSON[_0x5e236e(0x1f7)](_0x3c4765[_0x5e236e(0x1c6)])}}}},this[_0x5e236e(0x1be)]);})),_0x263ae1[_0x1d0fbc(0x271)](_0x44b01b);})),this[_0x52ab71(0x1b8)][_0x52ab71(0x21f)](this[_0x52ab71(0x1be)])['forEach'](_0x29d164=>this[_0x52ab71(0x259)]['send']({'eventID':_0x497455[_0x52ab71(0x1c1)][_0x52ab71(0x28b)],'data':{'unitID':this[_0x52ab71(0x1be)],'operations':{[_0x29d164['id']]:{'id':_0x29d164['id'],'params':JSON[_0x52ab71(0x1f7)](_0x29d164[_0x52ab71(0x1c6)])}}}},this['_unitID']));}[_0x19a470(0x27e)](){var _0x3ccd92=_0x19a470,_0x48aacb;this[_0x3ccd92(0x1f2)][_0x3ccd92(0x271)]('idle'),(_0x48aacb=this[_0x3ccd92(0x22a)])==null||_0x48aacb[_0x3ccd92(0x1de)](),this['_commandDisposable']=null;}[_0x19a470(0x255)](){var _0x793006=_0x19a470,_0xd566f1;(_0xd566f1=this[_0x793006(0x22a)])==null||_0xd566f1['dispose'](),this[_0x793006(0x1f2)][_0x793006(0x271)](_0x793006(0x26e));}[_0x19a470(0x278)](){var _0x241543=_0x19a470,_0x308500;this[_0x241543(0x1f2)][_0x241543(0x271)](_0x241543(0x22d)),(_0x308500=this[_0x241543(0x22a)])==null||_0x308500[_0x241543(0x1de)](),this[_0x241543(0x22a)]=null;}[_0x19a470(0x1e4)](){var _0x44a5cb=_0x19a470,_0x20d647;this[_0x44a5cb(0x1f2)][_0x44a5cb(0x271)]('not-following'),(_0x20d647=this[_0x44a5cb(0x22a)])==null||_0x20d647[_0x44a5cb(0x1de)]();}[_0x19a470(0x1eb)](_0x3770ab){var _0x20d5c6=_0x19a470;if([_0x20d5c6(0x1d0),_0x20d5c6(0x1d1),_0x20d5c6(0x207)][_0x20d5c6(0x1f9)](this[_0x20d5c6(0x294)])||!_0x3770ab['data'][_0x20d5c6(0x215)]||_0x3770ab[_0x20d5c6(0x1fa)]['presenter']===this['_collabSession'][_0x20d5c6(0x203)]())return;this[_0x20d5c6(0x294)]===_0x20d5c6(0x22d)&&this['_startFollowing']();const _0x2c9371=_0x3770ab[_0x20d5c6(0x1fa)][_0x20d5c6(0x209)];Object['values'](_0x2c9371)[_0x20d5c6(0x1db)](_0x2c1286=>{var _0x18a69d=_0x20d5c6;this['_commandService'][_0x18a69d(0x1df)](_0x2c1286['id'],_0x2c1286[_0x18a69d(0x1c6)]?JSON[_0x18a69d(0x1c8)](_0x2c1286[_0x18a69d(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x19a470(0x247)](){var _0x9ccdbc=_0x19a470,_0x110218;this['_status$'][_0x9ccdbc(0x271)](_0x9ccdbc(0x207)),(_0x110218=this[_0x9ccdbc(0x22a)])==null||_0x110218['dispose']();}[_0x19a470(0x1dc)](){var _0x322c29=_0x19a470;this[_0x322c29(0x1f2)][_0x322c29(0x271)](_0x322c29(0x22d)),this[_0x322c29(0x1c5)]();}},_0x2a034c[_0x19a470(0x1ea)]=_0x288c50([_0x3f9a81(0x2,_0x214637['IConfigService']),_0x3f9a81(0x3,_0x214637[_0x19a470(0x1cd)](_0x416f9b)),_0x3f9a81(0x4,_0x214637[_0x19a470(0x25e)])],_0x2a034c['LiveShareCoordinator']);function _0x17fa9e(){var _0xce4442=_0x19a470;const _0x422718=_0xced2db[_0xce4442(0x1e1)](_0x2a034c[_0xce4442(0x1fb)]),_0x2ef103=_0xced2db[_0xce4442(0x1e1)](_0x214637[_0xce4442(0x2ac)]),_0x5e662f=_0xced2db[_0xce4442(0x29d)](()=>_0x2ef103['getCurrentTypeOfUnit$'](_0x214637[_0xce4442(0x1ca)][_0xce4442(0x220)]),void 0x0,!0x1,[]),[_0x33bcc4,_0x1a144b]=_0x54d5d7[_0xce4442(0x293)](null),[_0x2eb338,_0x55e19d]=_0x54d5d7[_0xce4442(0x293)](_0x46fa92[_0xce4442(0x282)]),_0x1e43ec=_0x54d5d7[_0xce4442(0x1f5)](null);return _0x54d5d7[_0xce4442(0x232)](()=>(_0x5e662f&&_0x422718['getLiveShareCoordinator'](_0x5e662f['getUnitId']())[_0xce4442(0x200)](_0xc29e42=>{var _0xf457b2=_0xce4442;_0x1a144b(_0xc29e42),_0x1e43ec[_0xf457b2(0x205)]=_0xc29e42[_0xf457b2(0x2a7)]['subscribe'](_0x19c5c=>{_0x55e19d(_0x19c5c);});}),()=>{var _0x5b0050=_0xce4442,_0x1731f5;(_0x1731f5=_0x1e43ec['current'])==null||_0x1731f5['unsubscribe'](),_0x1e43ec[_0x5b0050(0x205)]=null;}),[_0x5e662f,_0x422718]),_0x33bcc4?_0x3a11cc[_0xce4442(0x236)](_0x93a8e2[_0xce4442(0x254)],{'align':_0xce4442(0x28d),'disabled':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'className':_0xce4442(0x1bd),'overlay':_0x3a11cc[_0xce4442(0x236)](_0x19438c,{'status':_0x2eb338,'coordinator':_0x33bcc4}),'children':_0x3a11cc[_0xce4442(0x236)]('button',{'className':_0x93a8e2[_0xce4442(0x1d6)](_0xce4442(0x1d8),{'univer-cursor-not-allowed':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb338!==_0x46fa92[_0xce4442(0x1e0)]}),'type':_0xce4442(0x27d),'children':_0x3a11cc[_0xce4442(0x236)](_0x1f6af7,{'className':'univer-size-4'})})}):null;}function _0x19438c(_0x476bdb){var _0x3d88ba=_0x19a470;const {status:_0x3d64a4,coordinator:_0x4b559d}=_0x476bdb;switch(_0x3d64a4){case _0x46fa92[_0x3d88ba(0x282)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x2ee184,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x229)]:return _0x3a11cc[_0x3d88ba(0x236)](_0xd05273,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x208)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x5203e0,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x1e0)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x41a0b3,{});case _0x46fa92[_0x3d88ba(0x1b7)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x210262,{'coordinator':_0x4b559d});default:return null;}}function _0x2ee184(_0x219f03){var _0x5f4fd5=_0x19a470;const {coordinator:_0x2e5a71}=_0x219f03;return _0x3a11cc['jsxs'](_0x3a11cc[_0x5f4fd5(0x214)],{'children':[_0x3a11cc[_0x5f4fd5(0x236)](_0x5f4fd5(0x2a0),{'className':_0x5f4fd5(0x1f4),'children':_0x5f4fd5(0x1c4)}),_0x3a11cc[_0x5f4fd5(0x236)](_0x93a8e2['Button'],{'onClick':()=>_0x2e5a71[_0x5f4fd5(0x1e2)](),'children':'Start'})]});}function _0xd05273(_0x278222){var _0x5e4ea7=_0x19a470;const {coordinator:_0x3912c8}=_0x278222;return _0x3a11cc[_0x5e4ea7(0x235)](_0x3a11cc[_0x5e4ea7(0x214)],{'children':[_0x3a11cc[_0x5e4ea7(0x236)]('div',{'className':_0x5e4ea7(0x1f4),'children':_0x5e4ea7(0x234)}),_0x3a11cc[_0x5e4ea7(0x236)](_0x93a8e2[_0x5e4ea7(0x219)],{'onClick':()=>_0x3912c8[_0x5e4ea7(0x242)](),'children':'Stop\x20following'})]});}function _0x5203e0(_0x37c9ec){var _0x1be7c6=_0x19a470;const {coordinator:_0x1d2a86}=_0x37c9ec;return _0x3a11cc[_0x1be7c6(0x235)](_0x3a11cc['Fragment'],{'children':[_0x3a11cc[_0x1be7c6(0x236)](_0x1be7c6(0x2a0),{'className':_0x1be7c6(0x1f4),'children':_0x1be7c6(0x1dd)}),_0x3a11cc[_0x1be7c6(0x236)](_0x93a8e2[_0x1be7c6(0x219)],{'variant':'text','onClick':()=>_0x1d2a86[_0x1be7c6(0x253)](),'children':_0x1be7c6(0x1e3)})]});}function _0x210262(_0x5de77a){var _0x233c83=_0x19a470;const {coordinator:_0x22b09a}=_0x5de77a;return _0x3a11cc['jsxs'](_0x3a11cc[_0x233c83(0x214)],{'children':[_0x3a11cc['jsx']('div',{'className':_0x233c83(0x1f4),'children':_0x233c83(0x28e)}),_0x3a11cc['jsx'](_0x93a8e2[_0x233c83(0x219)],{'variant':_0x233c83(0x27b),'onClick':()=>_0x22b09a[_0x233c83(0x202)](),'children':'Stop\x20presenting'})]});}function _0x41a0b3(){var _0x445ccb=_0x19a470;return _0x3a11cc['jsx'](_0x3a11cc[_0x445ccb(0x214)],{'children':_0x445ccb(0x1d4)});}var _0x130ea4=Object[_0x19a470(0x22c)],_0x36ed6d=(_0x1d533c,_0x1f1c23,_0x1e162b,_0x55bee6)=>{var _0x1a97b8=_0x19a470;for(var _0x4cd539=_0x55bee6>0x1?void 0x0:_0x55bee6?_0x130ea4(_0x1f1c23,_0x1e162b):_0x1f1c23,_0x118bb2=_0x1d533c[_0x1a97b8(0x1c0)]-0x1,_0x4767a2;_0x118bb2>=0x0;_0x118bb2--)(_0x4767a2=_0x1d533c[_0x118bb2])&&(_0x4cd539=_0x4767a2(_0x4cd539)||_0x4cd539);return _0x4cd539;},_0x4df61b=(_0x5cd0c9,_0x38db96)=>(_0x49e184,_0x2897e0)=>_0x38db96(_0x49e184,_0x2897e0,_0x5cd0c9);_0x2a034c['DesktopLiveShareController']=class extends _0x214637[_0x19a470(0x246)]{constructor(_0x4b0362,_0x165b37){var _0x23481b=_0x19a470;super(),this[_0x23481b(0x280)]=_0x4b0362,this[_0x23481b(0x2a9)]=_0x165b37,this[_0x23481b(0x1e8)]();}[_0x19a470(0x1e8)](){var _0x5a3a33=_0x19a470;this[_0x5a3a33(0x274)](this['_uiPartsService'][_0x5a3a33(0x211)](_0xced2db[_0x5a3a33(0x1f6)][_0x5a3a33(0x288)],()=>_0xced2db[_0x5a3a33(0x2a4)](_0x17fa9e,this[_0x5a3a33(0x280)])));}},_0x2a034c[_0x19a470(0x1ff)]=_0x36ed6d([_0x4df61b(0x0,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x4df61b(0x1,_0xced2db['IUIPartsService'])],_0x2a034c[_0x19a470(0x1ff)]);var _0x5b6a16=Object[_0x19a470(0x286)],_0x9aa8e6=Object['getOwnPropertyDescriptor'],_0x5ea762=(_0x56dd2e,_0x343774,_0xdfcc07)=>_0x343774 in _0x56dd2e?_0x5b6a16(_0x56dd2e,_0x343774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfcc07}):_0x56dd2e[_0x343774]=_0xdfcc07,_0x163d3f=(_0x31cd24,_0x6807ca,_0x35d9ee,_0x4c3aa0)=>{for(var _0x4acc81=_0x4c3aa0>0x1?void 0x0:_0x4c3aa0?_0x9aa8e6(_0x6807ca,_0x35d9ee):_0x6807ca,_0x1a263b=_0x31cd24['length']-0x1,_0x92cfe6;_0x1a263b>=0x0;_0x1a263b--)(_0x92cfe6=_0x31cd24[_0x1a263b])&&(_0x4acc81=_0x92cfe6(_0x4acc81)||_0x4acc81);return _0x4acc81;},_0x30c8ea=(_0x106fb9,_0x45f9fa)=>(_0x30c0e0,_0x588d5b)=>_0x45f9fa(_0x30c0e0,_0x588d5b,_0x106fb9),_0x574b49=(_0x5f5c72,_0x1b97b5,_0x5c46a9)=>_0x5ea762(_0x5f5c72,typeof _0x1b97b5!='symbol'?_0x1b97b5+'':_0x1b97b5,_0x5c46a9);const _0x5d3860=_0x19a470(0x25f);_0x2a034c[_0x19a470(0x266)]=class extends _0x214637['Plugin']{constructor(_0x4d41=_0x15fc2a,_0x540fbb,_0x2bd65c){var _0x2201af=_0x19a470;super(),this['_config']=_0x4d41,this['_injector']=_0x540fbb,this[_0x2201af(0x1c9)]=_0x2bd65c;const {..._0x56a1b6}=_0x214637['merge']({},_0x15fc2a,this[_0x2201af(0x1fe)]);this[_0x2201af(0x1c9)][_0x2201af(0x24f)](_0x150d50,_0x56a1b6);}[_0x19a470(0x21a)](){var _0x1bbbfa=_0x19a470;_0x214637[_0x1bbbfa(0x28c)](this['_injector'],_0x214637['mergeOverrideWithDependencies']([[_0x416f9b],[_0x2a034c[_0x1bbbfa(0x1fb)]],[_0x2bf0a6],[_0x2a034c[_0x1bbbfa(0x1ff)]]],this[_0x1bbbfa(0x1fe)][_0x1bbbfa(0x1d5)])),_0x214637[_0x1bbbfa(0x26f)](this[_0x1bbbfa(0x280)],[[_0x2bf0a6]]);}[_0x19a470(0x2a8)](){var _0x5c406a=_0x19a470;_0x214637[_0x5c406a(0x26f)](this[_0x5c406a(0x280)],[[_0x2a034c[_0x5c406a(0x1ff)]]]);}},_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x292),_0x214637[_0x19a470(0x1ca)][_0x19a470(0x26d)]),_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x201),_0x5d3860),_0x2a034c[_0x19a470(0x266)]=_0x163d3f([_0x214637[_0x19a470(0x238)](_0x44068f[_0x19a470(0x2a1)]),_0x30c8ea(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637['Injector'])),_0x30c8ea(0x2,_0x214637[_0x19a470(0x25d)])],_0x2a034c[_0x19a470(0x266)]),_0x2a034c[_0x19a470(0x276)]=_0x17fa9e,_0x2a034c[_0x19a470(0x270)]=_0x416f9b,_0x2a034c['LiveShareStatus']=_0x46fa92,Object[_0x19a470(0x286)](_0x2a034c,Symbol[_0x19a470(0x296)],{'value':'Module'});}));
1
+ function _0x3f5e(_0x14ca53,_0x25a155){var _0x3ed618=_0x3ed6();return _0x3f5e=function(_0x3f5e18,_0x3da711){_0x3f5e18=_0x3f5e18-0x10b;var _0x28b73f=_0x3ed618[_0x3f5e18];return _0x28b73f;},_0x3f5e(_0x14ca53,_0x25a155);}function _0x3ed6(){var _0x511025=['startFollowing','_handleNewChangeSets','forEach','idSuffix','jsxs','SessionStatus','has','currentColor','onRendered','toDisposable','UniverProCollaborationClient','_entities','getLiveShareCoordinator','rxjs','_handleOffline','getConfig','pluginName','univerjs-icon\x20univerjs-icon-','length','getMemberID','_status$','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','Present\x20this\x20document','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','21MLyzRr','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','@univerjs/ui','0\x200\x2017\x2017','evenodd','rxjs/operators','fill','operations','_startPresenting','function','registerSharedOperation','button','_status','1em','Fragment','LIVESHARE_FETCH_OPERATIONS','subscribe','CollaborationEvent','replace','453905aVanRS','_injector','div','mergeOverrideWithDependencies','symbol','defIds','SetZoomRatioOperation','_commandDisposable','call','current','624464FzyGec','UniverLiveSharePlugin','then','UNIVER_UNKNOWN','UniverIcon','UniverDesign','Subject','react','_configService','useDependency','children','_fetchOperations','115482lIVNrV','icon','touchDependencies','set','UNIVER_SHEET','dispose$','react/jsx-runtime','takeUntil','values','executeCommand','attrs','LIVESHARE_REQUEST_HOST','Disposable','next','Inject','disposeWithMe','InsertSheetMutation','IConfigService','presenter','tryStartPresenting','You\x27are\x20offline.','pipe','getOwnPropertySymbols','Stop\x20presenting','offline','_handleOnline','defineProperty','Plugin','includes','Dropdown','stopPresenting','OPERATION','mutations','Module','LiveShareCoordinator','mask','Injector','path','onCommandExecuted','sheet','@univerjs/core','@univerjs-pro/collaboration-client','following','useState','10FwbMSM','clsx','_handleNewHost','React','DependentOn','shouldShareOperation','_collabSessionService','@univerjs/design','IDLE','DisposableCollection','UniverProCollaboration','@univerjs/sheets','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','1NQvqrY','url(#$1','LIVESHARE_TERMINATE','univer-size-4','prototype','forwardRef','BuiltInUIPart','toString','152832Jwivua','_startFollowing','_unitID','_uiPartsService','map','displayName','registerDependencies','_presenter','LiveShareService','getUnitId','memberID','UniverCollaborationClientPlugin','toStringTag','_liveShareService','_mountLiveShare','amd','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','SetScrollOperation','ONLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','data','clear','createElement','parse','You\x27re\x20following\x20the\x20presenter','18ZKdHVp','complete','_stopFollowing','LiveShareController','registerComponent','SAME_OPERATION_SHARE_INTERVAL','UniverInstanceType','send','connectInjector','init','SetWorksheetActiveOperation','apply','_commandService','541833iXUmKc','LiveShareIcon','NEW_CHANGESETS','_collabSession','substring','DesktopLiveShareController','assign','colorChannel1','get','string','RxDisposable','add','_init','getValue','stringify','extend','getOwnPropertyDescriptor','asObservable','type','11443399IvdjsS','http://www.w3.org/2000/svg','LiveShareStatus','unitId','ICommandService','createInstance','IUniverInstanceService','not-following','idle','getInitialStates','registerInitialStateReporter','use','exports','stopFollowing','_handleOperation','xlink:href','dispose','concat','none','@univerjs-pro/collaboration','params','_sharedOperations','_config','jsx','Button','CommandType','event$','UniverUi','operators','@univerjs/sheets-ui','_beIdle','1464864BdlOwi','_stopPresenting','UniverProLiveShare','from','_reporters','getCurrentTypeOfUnit$','_handleTerminate','UniverCore','onStarting','unsubscribe','className','_univerInstanceService','entries','PRESENTING','hasOwnProperty','indexOf','reverse','random','LIVESHARE_OPERATION','text','presenting','propertyIsEnumerable','tag','_startLiveShareCoordinator'];_0x3ed6=function(){return _0x511025;};return _0x3ed6();}(function(_0x1f05d,_0x494e7c){var _0x5ae228=_0x3f5e,_0x2ac343=_0x1f05d();while(!![]){try{var _0x4dfa93=parseInt(_0x5ae228(0x1ab))/0x1*(-parseInt(_0x5ae228(0x164))/0x2)+-parseInt(_0x5ae228(0x1d9))/0x3+parseInt(_0x5ae228(0x1b3))/0x4+parseInt(_0x5ae228(0x15a))/0x5+-parseInt(_0x5ae228(0x170))/0x6*(parseInt(_0x5ae228(0x146))/0x7)+parseInt(_0x5ae228(0x115))/0x8*(-parseInt(_0x5ae228(0x1cc))/0x9)+-parseInt(_0x5ae228(0x19c))/0xa*(-parseInt(_0x5ae228(0x1ec))/0xb);if(_0x4dfa93===_0x494e7c)break;else _0x2ac343['push'](_0x2ac343['shift']());}catch(_0xa621e5){_0x2ac343['push'](_0x2ac343['shift']());}}}(_0x3ed6,0x3da52),function(_0x21b7a3,_0x24e811){var _0x3ee9b7=_0x3f5e;typeof exports=='object'&&typeof module<'u'?_0x24e811(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x3ee9b7(0x1c2)]?define([_0x3ee9b7(0x1f8),_0x3ee9b7(0x199),_0x3ee9b7(0x198),_0x3ee9b7(0x1a7),_0x3ee9b7(0x113),_0x3ee9b7(0x149),_0x3ee9b7(0x176),_0x3ee9b7(0x1a3),_0x3ee9b7(0x16b),_0x3ee9b7(0x1ff),_0x3ee9b7(0x13a),_0x3ee9b7(0x14c)],_0x24e811):(_0x21b7a3=typeof globalThis<'u'?globalThis:_0x21b7a3||self,_0x24e811(_0x21b7a3[_0x3ee9b7(0x117)]={},_0x21b7a3[_0x3ee9b7(0x137)],_0x21b7a3[_0x3ee9b7(0x11c)],_0x21b7a3['UniverSheets'],_0x21b7a3['UniverSheetsUi'],_0x21b7a3[_0x3ee9b7(0x111)],_0x21b7a3['React'],_0x21b7a3[_0x3ee9b7(0x169)],_0x21b7a3[_0x3ee9b7(0x19f)],_0x21b7a3[_0x3ee9b7(0x1a6)],_0x21b7a3[_0x3ee9b7(0x13a)],_0x21b7a3[_0x3ee9b7(0x13a)][_0x3ee9b7(0x112)]));}(this,function(_0x44f3a8,_0x598f9c,_0x4ebaac,_0x5878d7,_0x2c2542,_0x3fe163,_0x188f3b,_0x28e95d,_0x4a9025,_0xd68e15,_0x48f808,_0x39907e){'use strict';var _0x521f78=_0x3f5e;var _0x55965c=Object['defineProperty'],_0x42612a=(_0x31ca77,_0x67b37c,_0x1e7709)=>_0x67b37c in _0x31ca77?_0x55965c(_0x31ca77,_0x67b37c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e7709}):_0x31ca77[_0x67b37c]=_0x1e7709,_0x4fb07b=(_0x942a88,_0x97cf47,_0x2d58ad)=>_0x42612a(_0x942a88,typeof _0x97cf47!=_0x521f78(0x15e)?_0x97cf47+'':_0x97cf47,_0x2d58ad);const _0x2f7901='live-share.config',_0x1bc865={};class _0x3c6cc2 extends _0x4ebaac[_0x521f78(0x17c)]{constructor(){var _0x2c646b=_0x521f78;super(...arguments),_0x4fb07b(this,_0x2c646b(0x10b),new Set()),_0x4fb07b(this,_0x2c646b(0x119),new Set());}[_0x521f78(0x151)](_0x2cee9c){var _0x226bf9=_0x521f78;return this[_0x226bf9(0x10b)][_0x226bf9(0x1e4)](_0x2cee9c),_0x4ebaac[_0x226bf9(0x136)](()=>this[_0x226bf9(0x10b)][_0x226bf9(0x148)](_0x2cee9c));}[_0x521f78(0x1f6)](_0x3df013){var _0x2bbfb1=_0x521f78;return this[_0x2bbfb1(0x119)][_0x2bbfb1(0x1e4)](_0x3df013),_0x4ebaac[_0x2bbfb1(0x136)](()=>this['_reporters']['delete'](_0x3df013));}[_0x521f78(0x1a1)](_0x1bd331){var _0x148e42=_0x521f78;return this[_0x148e42(0x10b)][_0x148e42(0x133)](_0x1bd331);}['getInitialStates'](_0x276ff6){var _0x47ee97=_0x521f78;return Array[_0x47ee97(0x118)](this[_0x47ee97(0x119)])[_0x47ee97(0x1b7)](_0xed1d21=>_0xed1d21(_0x276ff6));}}var _0x406118=Object['getOwnPropertyDescriptor'],_0x56e525=(_0x433c31,_0x33934c,_0x22b092,_0x34294e)=>{var _0x3184a4=_0x521f78;for(var _0x59e6f0=_0x34294e>0x1?void 0x0:_0x34294e?_0x406118(_0x33934c,_0x22b092):_0x33934c,_0x339e8f=_0x433c31[_0x3184a4(0x13f)]-0x1,_0x596df5;_0x339e8f>=0x0;_0x339e8f--)(_0x596df5=_0x433c31[_0x339e8f])&&(_0x59e6f0=_0x596df5(_0x59e6f0)||_0x59e6f0);return _0x59e6f0;},_0x2e9be9=(_0x4b4534,_0x336642)=>(_0x34dc70,_0x364262)=>_0x336642(_0x34dc70,_0x364262,_0x4b4534);let _0x44c560=class extends _0x4ebaac[_0x521f78(0x17c)]{constructor(_0x105137){var _0x5245dc=_0x521f78;super(),this[_0x5245dc(0x1c0)]=_0x105137,this[_0x5245dc(0x1e5)]();}['_init'](){var _0x5d1a67=_0x521f78;[_0x2c2542[_0x5d1a67(0x160)]['id'],_0x2c2542[_0x5d1a67(0x1c4)]['id'],_0x5878d7[_0x5d1a67(0x1d6)]['id']][_0x5d1a67(0x12f)](_0x2b596d=>{var _0xb31019=_0x5d1a67;this[_0xb31019(0x17f)](this[_0xb31019(0x1c0)][_0xb31019(0x151)](_0x2b596d));});}};_0x44c560=_0x56e525([_0x2e9be9(0x0,_0x4ebaac[_0x521f78(0x17e)](_0x3c6cc2))],_0x44c560);var _0x48729d=function(){var _0x49bea2=_0x521f78;return _0x48729d=Object['assign']||function(_0x5893d4){var _0x21fed1=_0x3f5e;for(var _0x193a05,_0xd6a252=0x1,_0x3a1082=arguments['length'];_0xd6a252<_0x3a1082;_0xd6a252++){_0x193a05=arguments[_0xd6a252];for(var _0x5513be in _0x193a05)Object[_0x21fed1(0x1af)][_0x21fed1(0x123)]['call'](_0x193a05,_0x5513be)&&(_0x5893d4[_0x5513be]=_0x193a05[_0x5513be]);}return _0x5893d4;},_0x48729d[_0x49bea2(0x1d7)](this,arguments);},_0x50460e=function(_0x212b58,_0x27b6ce){var _0x4603f2=_0x521f78,_0x28eac8={};for(var _0x18389f in _0x212b58)Object[_0x4603f2(0x1af)][_0x4603f2(0x123)][_0x4603f2(0x162)](_0x212b58,_0x18389f)&&_0x27b6ce[_0x4603f2(0x124)](_0x18389f)<0x0&&(_0x28eac8[_0x18389f]=_0x212b58[_0x18389f]);if(_0x212b58!=null&&typeof Object['getOwnPropertySymbols']==_0x4603f2(0x150)){for(var _0x72671e=0x0,_0x18389f=Object[_0x4603f2(0x186)](_0x212b58);_0x72671e<_0x18389f['length'];_0x72671e++)_0x27b6ce[_0x4603f2(0x124)](_0x18389f[_0x72671e])<0x0&&Object[_0x4603f2(0x1af)][_0x4603f2(0x12a)]['call'](_0x212b58,_0x18389f[_0x72671e])&&(_0x28eac8[_0x18389f[_0x72671e]]=_0x212b58[_0x18389f[_0x72671e]]);}return _0x28eac8;},_0x1ed935=_0x4a9025[_0x521f78(0x1b0)](function(_0x4a236e,_0x13423f){var _0x5f3044=_0x521f78,_0x5ad5a6=_0x4a236e[_0x5f3044(0x171)],_0x23acbe=_0x4a236e['id'],_0x1da5d7=_0x4a236e[_0x5f3044(0x11f)],_0x4bbba0=_0x4a236e['extend'],_0x5c804c=_0x50460e(_0x4a236e,[_0x5f3044(0x171),'id','className',_0x5f3044(0x1e8)]),_0x123d13=_0x5f3044(0x13e)[_0x5f3044(0x1fd)](_0x23acbe,'\x20')[_0x5f3044(0x1fd)](_0x1da5d7||'')['trim'](),_0x201aef=_0x4a9025['useRef']('_'[_0x5f3044(0x1fd)](_0x2d0674()));return _0x5babbc(_0x5ad5a6,''['concat'](_0x23acbe),{'defIds':_0x5ad5a6[_0x5f3044(0x15f)],'idSuffix':_0x201aef[_0x5f3044(0x163)]},_0x48729d({'ref':_0x13423f,'className':_0x123d13},_0x5c804c),_0x4bbba0);});function _0x5babbc(_0x484215,_0x49832d,_0x4fa994,_0x2bc937,_0x19b170){var _0x19b50b=_0x521f78;return _0x4a9025[_0x19b50b(0x1c9)](_0x484215['tag'],_0x48729d(_0x48729d({'key':_0x49832d},_0x5cc381(_0x484215,_0x4fa994,_0x19b170)),_0x2bc937),(_0x410235(_0x484215,_0x4fa994)[_0x19b50b(0x16e)]||[])[_0x19b50b(0x1b7)](function(_0x51c7ba,_0x3192d4){var _0x5de06a=_0x19b50b;return _0x5babbc(_0x51c7ba,''[_0x5de06a(0x1fd)](_0x49832d,'-')[_0x5de06a(0x1fd)](_0x484215[_0x5de06a(0x12b)],'-')[_0x5de06a(0x1fd)](_0x3192d4),_0x4fa994,void 0x0,_0x19b170);}));}function _0x5cc381(_0x404d1f,_0xa4c63e,_0x29c53c){var _0x5e750c=_0x521f78,_0x306181=_0x48729d({},_0x404d1f[_0x5e750c(0x17a)]);_0x29c53c!=null&&_0x29c53c[_0x5e750c(0x1e0)]&&_0x306181[_0x5e750c(0x14d)]===_0x5e750c(0x1e0)&&(_0x306181[_0x5e750c(0x14d)]=_0x29c53c[_0x5e750c(0x1e0)]),_0x404d1f['tag']===_0x5e750c(0x193)&&_0x306181['id']&&(_0x306181['id']=_0x306181['id']+_0xa4c63e[_0x5e750c(0x130)]),Object['entries'](_0x306181)['forEach'](function(_0x5d4b8a){var _0x25472f=_0x5e750c,_0x5f0850=_0x5d4b8a[0x0],_0x5c4dde=_0x5d4b8a[0x1];_0x5f0850===_0x25472f(0x193)&&typeof _0x5c4dde==_0x25472f(0x1e2)&&(_0x306181[_0x5f0850]=_0x5c4dde[_0x25472f(0x159)](/url\(#(.*)\)/,'url(#$1'[_0x25472f(0x1fd)](_0xa4c63e['idSuffix'],')')));});var _0x372a04=_0xa4c63e[_0x5e750c(0x15f)];return!_0x372a04||_0x372a04[_0x5e750c(0x13f)]===0x0||(_0x404d1f[_0x5e750c(0x12b)]===_0x5e750c(0x1f7)&&_0x306181[_0x5e750c(0x1fb)]&&(_0x306181['xlink:href']=_0x306181[_0x5e750c(0x1fb)]+_0xa4c63e[_0x5e750c(0x130)]),Object[_0x5e750c(0x121)](_0x306181)[_0x5e750c(0x12f)](function(_0x4312e9){var _0x353d47=_0x5e750c,_0x55d618=_0x4312e9[0x0],_0x836f34=_0x4312e9[0x1];typeof _0x836f34==_0x353d47(0x1e2)&&(_0x306181[_0x55d618]=_0x836f34[_0x353d47(0x159)](/url\(#(.*)\)/,_0x353d47(0x1ac)[_0x353d47(0x1fd)](_0xa4c63e['idSuffix'],')')));})),_0x306181;}function _0x410235(_0x11c03b,_0x3d753b){var _0x5c5985=_0x521f78,_0x43f511,_0x439f80=_0x3d753b['defIds'];return!_0x439f80||_0x439f80[_0x5c5985(0x13f)]===0x0?_0x11c03b:_0x11c03b[_0x5c5985(0x12b)]==='defs'&&(!((_0x43f511=_0x11c03b[_0x5c5985(0x16e)])===null||_0x43f511===void 0x0)&&_0x43f511[_0x5c5985(0x13f)])?_0x48729d(_0x48729d({},_0x11c03b),{'children':_0x11c03b['children'][_0x5c5985(0x1b7)](function(_0x124a5c){var _0x11e53a=_0x5c5985;return typeof _0x124a5c[_0x11e53a(0x17a)]['id']=='string'&&_0x439f80&&_0x439f80[_0x11e53a(0x18c)](_0x124a5c[_0x11e53a(0x17a)]['id'])?_0x48729d(_0x48729d({},_0x124a5c),{'attrs':_0x48729d(_0x48729d({},_0x124a5c[_0x11e53a(0x17a)]),{'id':_0x124a5c[_0x11e53a(0x17a)]['id']+_0x3d753b[_0x11e53a(0x130)]})}):_0x124a5c;})}):_0x11c03b;}function _0x2d0674(){var _0x19b554=_0x521f78;return Math[_0x19b554(0x126)]()[_0x19b554(0x1b2)](0x24)[_0x19b554(0x1dd)](0x2,0x8);}_0x1ed935[_0x521f78(0x1b8)]=_0x521f78(0x168);var _0x42aab3={'tag':'svg','attrs':{'xmlns':_0x521f78(0x1ed),'fill':_0x521f78(0x1fe),'viewBox':_0x521f78(0x14a),'width':_0x521f78(0x154),'height':_0x521f78(0x154)},'children':[{'tag':_0x521f78(0x195),'attrs':{'fill':_0x521f78(0x134),'d':_0x521f78(0x145)}},{'tag':_0x521f78(0x195),'attrs':{'fill':'currentColor','d':_0x521f78(0x1c3),'fillRule':_0x521f78(0x14b),'clipRule':_0x521f78(0x14b)}}]},_0x80640=_0x4a9025[_0x521f78(0x1b0)](function(_0x4f6fa5,_0x528e5e){var _0x26dbec=_0x521f78;return _0x4a9025[_0x26dbec(0x1c9)](_0x1ed935,Object[_0x26dbec(0x1df)]({},_0x4f6fa5,{'id':'live-share-icon','ref':_0x528e5e,'icon':_0x42aab3}));});_0x80640['displayName']=_0x521f78(0x1da);var _0x9c66c=Object['getOwnPropertyDescriptor'],_0x21a1a6=(_0x35c149,_0x262005,_0x46afcb,_0x1d0162)=>{var _0x32f041=_0x521f78;for(var _0xcfd0d=_0x1d0162>0x1?void 0x0:_0x1d0162?_0x9c66c(_0x262005,_0x46afcb):_0x262005,_0x2da573=_0x35c149[_0x32f041(0x13f)]-0x1,_0x48c0ab;_0x2da573>=0x0;_0x2da573--)(_0x48c0ab=_0x35c149[_0x2da573])&&(_0xcfd0d=_0x48c0ab(_0xcfd0d)||_0xcfd0d);return _0xcfd0d;},_0x41f40c=(_0x1499ad,_0x316714)=>(_0x101a5a,_0xaa4a27)=>_0x316714(_0x101a5a,_0xaa4a27,_0x1499ad);_0x44f3a8[_0x521f78(0x1cf)]=class extends _0x4ebaac[_0x521f78(0x1e3)]{constructor(_0x2cdc6c,_0x58f3d1,_0x3d3e6b){var _0x5cc7c7=_0x521f78;super(),_0x4fb07b(this,_0x5cc7c7(0x138),new Map()),(this[_0x5cc7c7(0x120)]=_0x2cdc6c,this[_0x5cc7c7(0x15b)]=_0x58f3d1,this[_0x5cc7c7(0x1a2)]=_0x3d3e6b,this['_init']());}async[_0x521f78(0x139)](_0x27d78b){var _0x58b218=_0x521f78;return this[_0x58b218(0x138)][_0x58b218(0x133)](_0x27d78b)||await this[_0x58b218(0x12c)](_0x27d78b),this['_entities'][_0x58b218(0x1e1)](_0x27d78b);}['_init'](){var _0x52515a=_0x521f78;this[_0x52515a(0x120)][_0x52515a(0x1a8)](_0x4ebaac[_0x52515a(0x1d2)][_0x52515a(0x174)])['pipe'](_0x39907e[_0x52515a(0x177)](this['dispose$']))[_0x52515a(0x157)](async _0xafc298=>{var _0x42b0c6=_0x52515a;const _0x5f1634=_0xafc298[_0x42b0c6(0x1bc)]();this[_0x42b0c6(0x138)][_0x42b0c6(0x133)](_0x5f1634)||this[_0x42b0c6(0x12c)](_0x5f1634);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4ebaac[_0x52515a(0x1d2)]['UNIVER_SHEET'])[_0x52515a(0x185)](_0x39907e[_0x52515a(0x177)](this[_0x52515a(0x175)]))[_0x52515a(0x157)](_0x59a686=>{var _0x3a679c=_0x52515a;const _0x2d2e65=_0x59a686[_0x3a679c(0x1bc)](),_0x354d92=this['_entities']['get'](_0x2d2e65);_0x354d92==null||_0x354d92[_0x3a679c(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x585f5f){var _0x2630c6=_0x521f78;const _0x5ceb36=await this['_collabSessionService']['requireSession'](_0x585f5f),_0x17846f=this[_0x2630c6(0x15b)][_0x2630c6(0x1f1)](_0x44f3a8[_0x2630c6(0x192)],_0x585f5f,_0x5ceb36);return _0x17846f['init'](),this['_entities'][_0x2630c6(0x173)](_0x585f5f,_0x17846f),_0x17846f;}},_0x44f3a8[_0x521f78(0x1cf)]=_0x21a1a6([_0x41f40c(0x0,_0x4ebaac[_0x521f78(0x1f2)]),_0x41f40c(0x1,_0x4ebaac['Inject'](_0x4ebaac[_0x521f78(0x194)])),_0x41f40c(0x2,_0x4ebaac['Inject'](_0x598f9c['CollaborationSessionService']))],_0x44f3a8[_0x521f78(0x1cf)]);var _0xd09a76=(_0x526b8c=>(_0x526b8c['OFFLINE']=_0x521f78(0x188),_0x526b8c[_0x521f78(0x1a4)]=_0x521f78(0x1f4),_0x526b8c[_0x521f78(0x143)]='following',_0x526b8c['NOT_FOLLOWING']=_0x521f78(0x1f3),_0x526b8c[_0x521f78(0x122)]=_0x521f78(0x129),_0x526b8c))(_0xd09a76||{});const _0x537cfc=_0x521f78(0x1d1),_0x10aaa4=0xc8;_0x44f3a8[_0x521f78(0x192)]=class extends _0x4ebaac[_0x521f78(0x1e3)]{constructor(_0x3f9f1c,_0x3c6e85,_0x915bd8,_0x3476c4,_0x1fb5fd){var _0x3e1a9b=_0x521f78;super(),_0x4fb07b(this,_0x3e1a9b(0x141),new _0x48f808['BehaviorSubject'](_0x3e1a9b(0x1f4))),_0x4fb07b(this,'status$',this[_0x3e1a9b(0x141)][_0x3e1a9b(0x1ea)]()),_0x4fb07b(this,'_init',!0x1),_0x4fb07b(this,'_commandDisposable',null),_0x4fb07b(this,_0x3e1a9b(0x1ba),null),(this[_0x3e1a9b(0x1b5)]=_0x3f9f1c,this[_0x3e1a9b(0x1dc)]=_0x3c6e85,this['_configService']=_0x915bd8,this['_liveShareService']=_0x3476c4,this[_0x3e1a9b(0x1d8)]=_0x1fb5fd);}get[_0x521f78(0x153)](){var _0x472efb=_0x521f78;return this['_status$'][_0x472efb(0x1e6)]();}[_0x521f78(0x1fc)](){var _0x406073=_0x521f78,_0x368827;(_0x368827=this['_commandDisposable'])==null||_0x368827[_0x406073(0x1fc)](),this['_status$']['next'](_0x406073(0x1f4)),this[_0x406073(0x141)][_0x406073(0x1cd)]();}[_0x521f78(0x1d5)](){var _0x8a64e9=_0x521f78;this[_0x8a64e9(0x1e5)]||(this[_0x8a64e9(0x1e5)]=!0x0,this['_collabSession']['sessionStatus$'][_0x8a64e9(0x185)](_0x39907e[_0x8a64e9(0x177)](this['dispose$']))[_0x8a64e9(0x157)](_0x35dbdd=>{var _0x4fcd0b=_0x8a64e9;switch(_0x35dbdd){case _0x598f9c[_0x4fcd0b(0x132)][_0x4fcd0b(0x1aa)]:this['_handleOffline']();break;case _0x598f9c[_0x4fcd0b(0x132)][_0x4fcd0b(0x1c5)]:this[_0x4fcd0b(0x189)]();break;}}),this[_0x8a64e9(0x1dc)][_0x8a64e9(0x110)][_0x8a64e9(0x185)](_0x39907e[_0x8a64e9(0x177)](this[_0x8a64e9(0x175)]))[_0x8a64e9(0x157)](_0x36e89e=>{var _0x581a9f=_0x8a64e9;const {eventID:_0x276393}=_0x36e89e;switch(_0x276393){case _0xd68e15['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x581a9f(0x19e)](_0x36e89e);break;case _0xd68e15['CollaborationEvent'][_0x581a9f(0x127)]:this[_0x581a9f(0x1fa)](_0x36e89e);break;case _0xd68e15[_0x581a9f(0x158)][_0x581a9f(0x1ad)]:this[_0x581a9f(0x11b)]();break;case _0xd68e15[_0x581a9f(0x158)][_0x581a9f(0x1db)]:this[_0x581a9f(0x12e)](_0x36e89e);break;}}));}[_0x521f78(0x183)](){var _0x5b6425=_0x521f78;this[_0x5b6425(0x1dc)]['send']({'eventID':_0xd68e15[_0x5b6425(0x158)][_0x5b6425(0x17b)],'data':{'unitID':this[_0x5b6425(0x1b5)],'userID':this[_0x5b6425(0x1dc)][_0x5b6425(0x140)]()}},this[_0x5b6425(0x1b5)]);}[_0x521f78(0x18e)](){var _0x2ecec1=_0x521f78;this['_status']===_0x2ecec1(0x129)&&(this['_status$'][_0x2ecec1(0x17d)](_0x2ecec1(0x1f4)),this[_0x2ecec1(0x1dc)][_0x2ecec1(0x1d3)]({'eventID':_0xd68e15['CollaborationEvent'][_0x2ecec1(0x1ad)],'data':{'unitID':this[_0x2ecec1(0x1b5)]}},this[_0x2ecec1(0x1b5)]));}['startFollowing'](){var _0x49fb26=_0x521f78;this['_status']==='not-following'&&(this[_0x49fb26(0x141)][_0x49fb26(0x17d)](_0x49fb26(0x19a)),this['_startFollowing']());}[_0x521f78(0x1f9)](){var _0x45dfdb=_0x521f78;this[_0x45dfdb(0x153)]===_0x45dfdb(0x19a)&&this[_0x45dfdb(0x1ce)]();}['_handleNewHost'](_0x2159fe){var _0x106897=_0x521f78;const {presenter:_0xe54dcc}=_0x2159fe['data'],_0x2bfa6d=this[_0x106897(0x1dc)][_0x106897(0x140)]();this[_0x106897(0x1ba)]=_0xe54dcc,_0xe54dcc===_0x2bfa6d?(this[_0x106897(0x1ce)](),this[_0x106897(0x14f)]()):this[_0x106897(0x153)]!==_0x106897(0x1f3)&&(this[_0x106897(0x116)](),this[_0x106897(0x1b4)]());}['_fetchOperations'](){var _0x323ad4=_0x521f78;const _0x6060b4={'eventID':_0xd68e15[_0x323ad4(0x158)][_0x323ad4(0x156)]};this['_collabSession']['send'](_0x6060b4,this[_0x323ad4(0x1b5)]);}[_0x521f78(0x11b)](){var _0x26cf71=_0x521f78;this[_0x26cf71(0x1ba)]=null,this['_status']!==_0x26cf71(0x129)&&this[_0x26cf71(0x114)]();}[_0x521f78(0x12e)](_0x2f3e97){var _0x119bda=_0x521f78;if(this[_0x119bda(0x153)]===_0x119bda(0x19a)&&this[_0x119bda(0x1ba)]===_0x2f3e97['data'][_0x119bda(0x1bd)]){const _0x171868=_0xd68e15['parseProtocolChangeset'](_0x2f3e97[_0x119bda(0x1c7)])[_0x119bda(0x190)][_0x119bda(0x125)]()['find'](_0x15462f=>_0x15462f['id']===_0x5878d7[_0x119bda(0x180)]['id']);if(_0x171868){const _0x1a246a=_0x171868['params'][_0x119bda(0x1ef)],_0x5ba747=_0x171868[_0x119bda(0x200)][_0x119bda(0x197)]['id'];setTimeout(()=>{var _0x2ef5dc=_0x119bda;this[_0x2ef5dc(0x1d8)][_0x2ef5dc(0x179)](_0x5878d7[_0x2ef5dc(0x1d6)]['id'],{'unitId':_0x1a246a,'subUnitId':_0x5ba747},{'fromCollab':!0x0});});}}}[_0x521f78(0x14f)](){var _0x336ee1=_0x521f78;this['_status$']['next']('presenting');const _0x52214a=new Map(),_0x3e29fc=this['_commandDisposable']=new _0x4ebaac[(_0x336ee1(0x1a5))]();_0x3e29fc[_0x336ee1(0x1e4)](_0x4ebaac['toDisposable'](()=>{var _0x47f02a=_0x336ee1;_0x52214a[_0x47f02a(0x12f)](_0x481971=>_0x481971[_0x47f02a(0x1cd)]()),_0x52214a[_0x47f02a(0x1c8)]();})),_0x3e29fc[_0x336ee1(0x1e4)](this[_0x336ee1(0x1d8)][_0x336ee1(0x196)](_0x15852f=>{var _0x32d0ef=_0x336ee1,_0x4991b2;if(_0x15852f[_0x32d0ef(0x1eb)]!==_0x4ebaac[_0x32d0ef(0x10f)][_0x32d0ef(0x18f)]||!this[_0x32d0ef(0x1c0)][_0x32d0ef(0x1a1)](_0x15852f['id']))return;const {id:_0x4e12a2}=_0x15852f;let _0x1b459d;_0x52214a[_0x32d0ef(0x133)](_0x4e12a2)?_0x1b459d=_0x52214a[_0x32d0ef(0x1e1)](_0x4e12a2):(_0x1b459d=new _0x48f808[(_0x32d0ef(0x16a))](),_0x52214a[_0x32d0ef(0x173)](_0x4e12a2,_0x1b459d),_0x1b459d[_0x32d0ef(0x185)](_0x39907e['throttleTime']((_0x4991b2=this[_0x32d0ef(0x16c)][_0x32d0ef(0x13c)](_0x537cfc))!=null?_0x4991b2:_0x10aaa4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32d0ef(0x157)](_0x1b4f6c=>{var _0x30f500=_0x32d0ef;this['_collabSession'][_0x30f500(0x1d3)]({'eventID':_0xd68e15[_0x30f500(0x158)][_0x30f500(0x127)],'data':{'unitID':this[_0x30f500(0x1b5)],'operations':{[_0x1b4f6c['id']]:{'id':_0x1b4f6c['id'],'params':JSON[_0x30f500(0x1e7)](_0x1b4f6c[_0x30f500(0x200)])}}}},this[_0x30f500(0x1b5)]);})),_0x1b459d[_0x32d0ef(0x17d)](_0x15852f);})),this[_0x336ee1(0x1c0)][_0x336ee1(0x1f5)](this[_0x336ee1(0x1b5)])['forEach'](_0x23b70f=>this['_collabSession'][_0x336ee1(0x1d3)]({'eventID':_0xd68e15[_0x336ee1(0x158)][_0x336ee1(0x127)],'data':{'unitID':this['_unitID'],'operations':{[_0x23b70f['id']]:{'id':_0x23b70f['id'],'params':JSON[_0x336ee1(0x1e7)](_0x23b70f[_0x336ee1(0x200)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2e8c4c=_0x521f78,_0x5b2311;this['_status$'][_0x2e8c4c(0x17d)](_0x2e8c4c(0x1f4)),(_0x5b2311=this['_commandDisposable'])==null||_0x5b2311[_0x2e8c4c(0x1fc)](),this[_0x2e8c4c(0x161)]=null;}['_startFollowing'](){var _0x3d0649=_0x521f78,_0x1fd193;(_0x1fd193=this['_commandDisposable'])==null||_0x1fd193[_0x3d0649(0x1fc)](),this[_0x3d0649(0x141)]['next'](_0x3d0649(0x19a));}[_0x521f78(0x114)](){var _0x33b906=_0x521f78,_0x5c3da3;this[_0x33b906(0x141)]['next'](_0x33b906(0x1f4)),(_0x5c3da3=this[_0x33b906(0x161)])==null||_0x5c3da3[_0x33b906(0x1fc)](),this['_commandDisposable']=null;}[_0x521f78(0x1ce)](){var _0x5210d8=_0x521f78,_0xbf702b;this[_0x5210d8(0x141)][_0x5210d8(0x17d)](_0x5210d8(0x1f3)),(_0xbf702b=this[_0x5210d8(0x161)])==null||_0xbf702b[_0x5210d8(0x1fc)]();}['_handleOperation'](_0x39bd67){var _0x4f22f8=_0x521f78;if([_0x4f22f8(0x129),_0x4f22f8(0x1f3),_0x4f22f8(0x188)][_0x4f22f8(0x18c)](this['_status'])||!_0x39bd67[_0x4f22f8(0x1c7)][_0x4f22f8(0x182)]||_0x39bd67['data']['presenter']===this[_0x4f22f8(0x1dc)][_0x4f22f8(0x140)]())return;this['_status']===_0x4f22f8(0x1f4)&&this['_startFollowing']();const _0x3427c3=_0x39bd67[_0x4f22f8(0x1c7)][_0x4f22f8(0x14e)];Object[_0x4f22f8(0x178)](_0x3427c3)['forEach'](_0x443b31=>{var _0x1b9f0d=_0x4f22f8;this[_0x1b9f0d(0x1d8)]['executeCommand'](_0x443b31['id'],_0x443b31[_0x1b9f0d(0x200)]?JSON[_0x1b9f0d(0x1ca)](_0x443b31[_0x1b9f0d(0x200)]):null,{'fromCollab':!0x0});});}[_0x521f78(0x13b)](){var _0x42ee91=_0x521f78,_0x27f736;this[_0x42ee91(0x141)]['next'](_0x42ee91(0x188)),(_0x27f736=this[_0x42ee91(0x161)])==null||_0x27f736['dispose']();}[_0x521f78(0x189)](){var _0x404da6=_0x521f78;this[_0x404da6(0x141)]['next'](_0x404da6(0x1f4)),this[_0x404da6(0x16f)]();}},_0x44f3a8[_0x521f78(0x192)]=_0x21a1a6([_0x41f40c(0x2,_0x4ebaac[_0x521f78(0x181)]),_0x41f40c(0x3,_0x4ebaac['Inject'](_0x3c6cc2)),_0x41f40c(0x4,_0x4ebaac[_0x521f78(0x1f0)])],_0x44f3a8[_0x521f78(0x192)]);function _0x3a7860(){var _0x31ffbf=_0x521f78;const _0x2cfd98=_0x3fe163[_0x31ffbf(0x16d)](_0x44f3a8[_0x31ffbf(0x1cf)]),_0x30e5e7=_0x3fe163[_0x31ffbf(0x16d)](_0x4ebaac[_0x31ffbf(0x1f2)]),_0x33e459=_0x3fe163['useObservable'](()=>_0x30e5e7[_0x31ffbf(0x11a)](_0x4ebaac['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c637c,_0x21fd72]=_0x4a9025[_0x31ffbf(0x19b)](null),[_0x4720e5,_0x515f4d]=_0x4a9025[_0x31ffbf(0x19b)](_0xd09a76[_0x31ffbf(0x1a4)]),_0x476b88=_0x4a9025['useRef'](null);return _0x4a9025['useEffect'](()=>(_0x33e459&&_0x2cfd98[_0x31ffbf(0x139)](_0x33e459[_0x31ffbf(0x1bc)]())[_0x31ffbf(0x166)](_0x21b7dd=>{var _0x4d7e85=_0x31ffbf;_0x21fd72(_0x21b7dd),_0x476b88[_0x4d7e85(0x163)]=_0x21b7dd['status$'][_0x4d7e85(0x157)](_0x532e9c=>{_0x515f4d(_0x532e9c);});}),()=>{var _0x55779f=_0x31ffbf,_0x59a825;(_0x59a825=_0x476b88[_0x55779f(0x163)])==null||_0x59a825[_0x55779f(0x11e)](),_0x476b88['current']=null;}),[_0x33e459,_0x2cfd98]),_0x1c637c?_0x188f3b[_0x31ffbf(0x10d)](_0x28e95d[_0x31ffbf(0x18d)],{'align':'end','disabled':_0x4720e5===_0xd09a76[_0x31ffbf(0x1aa)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x188f3b['jsx'](_0x559690,{'status':_0x4720e5,'coordinator':_0x1c637c}),'children':_0x188f3b[_0x31ffbf(0x10d)](_0x31ffbf(0x152),{'className':_0x28e95d[_0x31ffbf(0x19d)](_0x31ffbf(0x1c6),{'univer-cursor-not-allowed':_0x4720e5===_0xd09a76[_0x31ffbf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4720e5!==_0xd09a76[_0x31ffbf(0x1aa)]}),'type':_0x31ffbf(0x152),'children':_0x188f3b[_0x31ffbf(0x10d)](_0x80640,{'className':_0x31ffbf(0x1ae)})})}):null;}function _0x559690(_0x119483){var _0x10524c=_0x521f78;const {status:_0xa7dbd8,coordinator:_0x2660c5}=_0x119483;switch(_0xa7dbd8){case _0xd09a76[_0x10524c(0x1a4)]:return _0x188f3b[_0x10524c(0x10d)](_0x197174,{'coordinator':_0x2660c5});case _0xd09a76[_0x10524c(0x143)]:return _0x188f3b['jsx'](_0x5bb9ea,{'coordinator':_0x2660c5});case _0xd09a76['NOT_FOLLOWING']:return _0x188f3b[_0x10524c(0x10d)](_0x4b0a61,{'coordinator':_0x2660c5});case _0xd09a76['OFFLINE']:return _0x188f3b[_0x10524c(0x10d)](_0x5471f2,{});case _0xd09a76[_0x10524c(0x122)]:return _0x188f3b[_0x10524c(0x10d)](_0x19b0fb,{'coordinator':_0x2660c5});default:return null;}}function _0x197174(_0x3959ac){var _0x36e7c8=_0x521f78;const {coordinator:_0x423658}=_0x3959ac;return _0x188f3b[_0x36e7c8(0x131)](_0x188f3b[_0x36e7c8(0x155)],{'children':[_0x188f3b[_0x36e7c8(0x10d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36e7c8(0x144)}),_0x188f3b[_0x36e7c8(0x10d)](_0x28e95d[_0x36e7c8(0x10e)],{'onClick':()=>_0x423658[_0x36e7c8(0x183)](),'children':'Start'})]});}function _0x5bb9ea(_0x50ad71){var _0x10bf6f=_0x521f78;const {coordinator:_0x434331}=_0x50ad71;return _0x188f3b[_0x10bf6f(0x131)](_0x188f3b[_0x10bf6f(0x155)],{'children':[_0x188f3b[_0x10bf6f(0x10d)](_0x10bf6f(0x15c),{'className':_0x10bf6f(0x147),'children':_0x10bf6f(0x1cb)}),_0x188f3b[_0x10bf6f(0x10d)](_0x28e95d[_0x10bf6f(0x10e)],{'onClick':()=>_0x434331['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x4b0a61(_0x3b0a5c){var _0x1cbf23=_0x521f78;const {coordinator:_0x6f1ec4}=_0x3b0a5c;return _0x188f3b['jsxs'](_0x188f3b[_0x1cbf23(0x155)],{'children':[_0x188f3b[_0x1cbf23(0x10d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1cbf23(0x1a9)}),_0x188f3b[_0x1cbf23(0x10d)](_0x28e95d[_0x1cbf23(0x10e)],{'variant':_0x1cbf23(0x128),'onClick':()=>_0x6f1ec4[_0x1cbf23(0x12d)](),'children':'Start\x20following'})]});}function _0x19b0fb(_0x16feb9){var _0x311f3d=_0x521f78;const {coordinator:_0x2a18de}=_0x16feb9;return _0x188f3b['jsxs'](_0x188f3b[_0x311f3d(0x155)],{'children':[_0x188f3b[_0x311f3d(0x10d)](_0x311f3d(0x15c),{'className':_0x311f3d(0x147),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x188f3b[_0x311f3d(0x10d)](_0x28e95d[_0x311f3d(0x10e)],{'variant':'default','onClick':()=>_0x2a18de['stopPresenting'](),'children':_0x311f3d(0x187)})]});}function _0x5471f2(){var _0x216ec7=_0x521f78;return _0x188f3b[_0x216ec7(0x10d)](_0x188f3b[_0x216ec7(0x155)],{'children':_0x216ec7(0x184)});}var _0xde8fb4=Object['getOwnPropertyDescriptor'],_0xf827fa=(_0x3844ef,_0x206596,_0xe4e97a,_0x112e0b)=>{var _0x1aed39=_0x521f78;for(var _0x219932=_0x112e0b>0x1?void 0x0:_0x112e0b?_0xde8fb4(_0x206596,_0xe4e97a):_0x206596,_0x9e9f98=_0x3844ef[_0x1aed39(0x13f)]-0x1,_0x5379e5;_0x9e9f98>=0x0;_0x9e9f98--)(_0x5379e5=_0x3844ef[_0x9e9f98])&&(_0x219932=_0x5379e5(_0x219932)||_0x219932);return _0x219932;},_0x19cb26=(_0x465fb5,_0x4be40d)=>(_0x5645dd,_0x3f3b4)=>_0x4be40d(_0x5645dd,_0x3f3b4,_0x465fb5);_0x44f3a8[_0x521f78(0x1de)]=class extends _0x4ebaac[_0x521f78(0x17c)]{constructor(_0x2b6caf,_0x56c002){var _0x4b9469=_0x521f78;super(),this[_0x4b9469(0x15b)]=_0x2b6caf,this[_0x4b9469(0x1b6)]=_0x56c002,this['_mountLiveShare']();}[_0x521f78(0x1c1)](){var _0x5e5ea0=_0x521f78;this[_0x5e5ea0(0x17f)](this[_0x5e5ea0(0x1b6)][_0x5e5ea0(0x1d0)](_0x3fe163[_0x5e5ea0(0x1b1)]['HEADER_MENU'],()=>_0x3fe163[_0x5e5ea0(0x1d4)](_0x3a7860,this[_0x5e5ea0(0x15b)])));}},_0x44f3a8[_0x521f78(0x1de)]=_0xf827fa([_0x19cb26(0x0,_0x4ebaac[_0x521f78(0x17e)](_0x4ebaac[_0x521f78(0x194)])),_0x19cb26(0x1,_0x3fe163['IUIPartsService'])],_0x44f3a8[_0x521f78(0x1de)]);var _0x40c00a=Object[_0x521f78(0x18a)],_0x53358c=Object[_0x521f78(0x1e9)],_0x38f247=(_0x7c6783,_0x2a155e,_0x2679b6)=>_0x2a155e in _0x7c6783?_0x40c00a(_0x7c6783,_0x2a155e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2679b6}):_0x7c6783[_0x2a155e]=_0x2679b6,_0x4656a1=(_0x375312,_0x419d14,_0x1bb51a,_0x4872f1)=>{var _0xd89692=_0x521f78;for(var _0x3eb78c=_0x4872f1>0x1?void 0x0:_0x4872f1?_0x53358c(_0x419d14,_0x1bb51a):_0x419d14,_0x4c388d=_0x375312[_0xd89692(0x13f)]-0x1,_0x19631d;_0x4c388d>=0x0;_0x4c388d--)(_0x19631d=_0x375312[_0x4c388d])&&(_0x3eb78c=_0x19631d(_0x3eb78c)||_0x3eb78c);return _0x3eb78c;},_0x297136=(_0x4c40d8,_0x227fed)=>(_0x3dd2fd,_0xc12793)=>_0x227fed(_0x3dd2fd,_0xc12793,_0x4c40d8),_0x569557=(_0x4fe652,_0x4ad9f4,_0x48ef74)=>_0x38f247(_0x4fe652,typeof _0x4ad9f4!='symbol'?_0x4ad9f4+'':_0x4ad9f4,_0x48ef74);const _0x44e762=_0x521f78(0x142);_0x44f3a8[_0x521f78(0x165)]=class extends _0x4ebaac[_0x521f78(0x18b)]{constructor(_0x331099=_0x1bc865,_0x2fbf80,_0x471e27){var _0xfa071c=_0x521f78;super(),this[_0xfa071c(0x10c)]=_0x331099,this[_0xfa071c(0x15b)]=_0x2fbf80,this['_configService']=_0x471e27;const {..._0x558204}=_0x4ebaac['merge']({},_0x1bc865,this['_config']);this[_0xfa071c(0x16c)]['setConfig'](_0x2f7901,_0x558204);}[_0x521f78(0x11d)](){var _0x428e13=_0x521f78;_0x4ebaac[_0x428e13(0x1b9)](this[_0x428e13(0x15b)],_0x4ebaac[_0x428e13(0x15d)]([[_0x3c6cc2],[_0x44f3a8[_0x428e13(0x1cf)]],[_0x44c560],[_0x44f3a8['DesktopLiveShareController']]],this['_config']['override'])),_0x4ebaac['touchDependencies'](this[_0x428e13(0x15b)],[[_0x44c560]]);}[_0x521f78(0x135)](){var _0x5ef36d=_0x521f78;_0x4ebaac[_0x5ef36d(0x172)](this[_0x5ef36d(0x15b)],[[_0x44f3a8['DesktopLiveShareController']]]);}},_0x569557(_0x44f3a8[_0x521f78(0x165)],'type',_0x4ebaac['UniverInstanceType'][_0x521f78(0x167)]),_0x569557(_0x44f3a8[_0x521f78(0x165)],_0x521f78(0x13d),_0x44e762),_0x44f3a8[_0x521f78(0x165)]=_0x4656a1([_0x4ebaac[_0x521f78(0x1a0)](_0x598f9c[_0x521f78(0x1be)]),_0x297136(0x1,_0x4ebaac['Inject'](_0x4ebaac['Injector'])),_0x297136(0x2,_0x4ebaac['IConfigService'])],_0x44f3a8['UniverLiveSharePlugin']),_0x44f3a8['LiveShare']=_0x3a7860,_0x44f3a8[_0x521f78(0x1bb)]=_0x3c6cc2,_0x44f3a8[_0x521f78(0x1ee)]=_0xd09a76,Object[_0x521f78(0x18a)](_0x44f3a8,Symbol[_0x521f78(0x1bf)],{'value':_0x521f78(0x191)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.1-nightly.202507071607",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507071607",
51
- "@univerjs/core": "0.9.1-nightly.202507071607",
52
- "@univerjs-pro/collaboration": "0.9.1-nightly.202507071607",
53
- "@univerjs/sheets": "0.9.1-nightly.202507071607",
54
- "@univerjs/design": "0.9.1-nightly.202507071607",
55
- "@univerjs/ui": "0.9.1-nightly.202507071607",
56
- "@univerjs/sheets-ui": "0.9.1-nightly.202507071607"
50
+ "@univerjs-pro/collaboration-client": "0.9.1",
51
+ "@univerjs/core": "0.9.1",
52
+ "@univerjs/design": "0.9.1",
53
+ "@univerjs/sheets": "0.9.1",
54
+ "@univerjs/ui": "0.9.1",
55
+ "@univerjs/sheets-ui": "0.9.1",
56
+ "@univerjs-pro/collaboration": "0.9.1"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.9.1",
67
- "@univerjs/protocol": "0.1.47-alpha.0"
66
+ "@univerjs/protocol": "0.1.47-alpha.0",
67
+ "@univerjs-infra/shared": "0.9.1"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",