@univerjs-pro/live-share 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506101607

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 _0x47e78f=_0x1592;(function(_0xc5dc05,_0x3947e2){var _0x55aa51=_0x1592,_0xb9de40=_0xc5dc05();while(!![]){try{var _0x1b1fac=-parseInt(_0x55aa51(0x186))/0x1+parseInt(_0x55aa51(0x1d7))/0x2+-parseInt(_0x55aa51(0x1b4))/0x3+parseInt(_0x55aa51(0x1d9))/0x4+parseInt(_0x55aa51(0x1d0))/0x5*(parseInt(_0x55aa51(0x1ba))/0x6)+-parseInt(_0x55aa51(0x14d))/0x7*(-parseInt(_0x55aa51(0x17e))/0x8)+parseInt(_0x55aa51(0x184))/0x9*(-parseInt(_0x55aa51(0x15e))/0xa);if(_0x1b1fac===_0x3947e2)break;else _0xb9de40['push'](_0xb9de40['shift']());}catch(_0x41309e){_0xb9de40['push'](_0xb9de40['shift']());}}}(_0x371c,0x85a09));var U=Object[_0x47e78f(0x1ed)],F=(_0x3c21ec,_0x1245ed,_0x5980ae)=>_0x1245ed in _0x3c21ec?U(_0x3c21ec,_0x1245ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5980ae}):_0x3c21ec[_0x1245ed]=_0x5980ae,v=(_0x39aed3,_0x166dd1,_0x4763cc)=>F(_0x39aed3,typeof _0x166dd1!=_0x47e78f(0x198)?_0x166dd1+'':_0x166dd1,_0x4763cc);function _0x1592(_0x1d5a95,_0x56f16f){var _0x371ce2=_0x371c();return _0x1592=function(_0x159279,_0x4ccd42){_0x159279=_0x159279-0x138;var _0x4df72e=_0x371ce2[_0x159279];return _0x4df72e;},_0x1592(_0x1d5a95,_0x56f16f);}Object[_0x47e78f(0x1ed)](exports,Symbol[_0x47e78f(0x1d8)],{'value':_0x47e78f(0x18f)});const m=require(_0x47e78f(0x145)),o=require(_0x47e78f(0x1a4)),C=require('@univerjs/sheets'),w=require(_0x47e78f(0x1f2)),p=require(_0x47e78f(0x1ee)),l=require(_0x47e78f(0x17a)),g=require(_0x47e78f(0x1d4)),f=require(_0x47e78f(0x13d)),_=require(_0x47e78f(0x1c5)),D=require(_0x47e78f(0x1a1)),b=require(_0x47e78f(0x17f)),$=_0x47e78f(0x1f3),x={};class O extends o['Disposable']{constructor(){var _0xa86d4c=_0x47e78f;super(...arguments),v(this,_0xa86d4c(0x1dc),new Set()),v(this,_0xa86d4c(0x1f0),new Set());}[_0x47e78f(0x1dd)](_0x2d1c4e){var _0x5ae2bc=_0x47e78f;return this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x208)](_0x2d1c4e),o[_0x5ae2bc(0x1b8)](()=>this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x195)](_0x2d1c4e));}[_0x47e78f(0x152)](_0x3f23d0){var _0x1b1d32=_0x47e78f;return this[_0x1b1d32(0x1f0)][_0x1b1d32(0x208)](_0x3f23d0),o[_0x1b1d32(0x1b8)](()=>this[_0x1b1d32(0x1f0)]['delete'](_0x3f23d0));}[_0x47e78f(0x218)](_0x1c65b3){var _0x2bb1f4=_0x47e78f;return this[_0x2bb1f4(0x1dc)][_0x2bb1f4(0x1d3)](_0x1c65b3);}['getInitialStates'](_0x125033){var _0x5dc849=_0x47e78f;return Array[_0x5dc849(0x158)](this[_0x5dc849(0x1f0)])['map'](_0x4806a1=>_0x4806a1(_0x125033));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x381ef3,_0x2a8502,_0x436e0b,_0x57d5e5)=>{var _0x534975=_0x47e78f;for(var _0x264c1f=_0x57d5e5>0x1?void 0x0:_0x57d5e5?H(_0x2a8502,_0x436e0b):_0x2a8502,_0x329ea6=_0x381ef3[_0x534975(0x1de)]-0x1,_0x49789b;_0x329ea6>=0x0;_0x329ea6--)(_0x49789b=_0x381ef3[_0x329ea6])&&(_0x264c1f=_0x49789b(_0x264c1f)||_0x264c1f);return _0x264c1f;},k=(_0x2dfd78,_0x335af8)=>(_0x1c0e9a,_0x1957d4)=>_0x335af8(_0x1c0e9a,_0x1957d4,_0x2dfd78);let E=class extends o[_0x47e78f(0x207)]{constructor(_0x34b21b){var _0xe5a61d=_0x47e78f;super(),this[_0xe5a61d(0x20b)]=_0x34b21b,this[_0xe5a61d(0x1eb)]();}[_0x47e78f(0x1eb)](){var _0x2d9b9e=_0x47e78f;[w[_0x2d9b9e(0x190)]['id'],w[_0x2d9b9e(0x217)]['id'],C[_0x2d9b9e(0x1f8)]['id']][_0x2d9b9e(0x1f5)](_0x3d5078=>{var _0x47e4be=_0x2d9b9e;this['disposeWithMe'](this[_0x47e4be(0x20b)][_0x47e4be(0x1dd)](_0x3d5078));});}};E=V([k(0x0,o[_0x47e78f(0x213)](O))],E);var u=function(){var _0x9ab3d6=_0x47e78f;return u=Object['assign']||function(_0x517d07){var _0x202358=_0x1592;for(var _0x5e61e3,_0x5aace3=0x1,_0x6fdea4=arguments['length'];_0x5aace3<_0x6fdea4;_0x5aace3++){_0x5e61e3=arguments[_0x5aace3];for(var _0x108132 in _0x5e61e3)Object[_0x202358(0x14f)][_0x202358(0x168)][_0x202358(0x1e7)](_0x5e61e3,_0x108132)&&(_0x517d07[_0x108132]=_0x5e61e3[_0x108132]);}return _0x517d07;},u[_0x9ab3d6(0x19a)](this,arguments);},M=function(_0x165774,_0x166f92){var _0x4cbe81=_0x47e78f,_0x2122f3={};for(var _0x29fb2a in _0x165774)Object[_0x4cbe81(0x14f)]['hasOwnProperty'][_0x4cbe81(0x1e7)](_0x165774,_0x29fb2a)&&_0x166f92['indexOf'](_0x29fb2a)<0x0&&(_0x2122f3[_0x29fb2a]=_0x165774[_0x29fb2a]);if(_0x165774!=null&&typeof Object[_0x4cbe81(0x1bf)]=='function'){for(var _0x4a66e1=0x0,_0x29fb2a=Object[_0x4cbe81(0x1bf)](_0x165774);_0x4a66e1<_0x29fb2a[_0x4cbe81(0x1de)];_0x4a66e1++)_0x166f92['indexOf'](_0x29fb2a[_0x4a66e1])<0x0&&Object[_0x4cbe81(0x14f)][_0x4cbe81(0x1ec)]['call'](_0x165774,_0x29fb2a[_0x4a66e1])&&(_0x2122f3[_0x29fb2a[_0x4a66e1]]=_0x165774[_0x29fb2a[_0x4a66e1]]);}return _0x2122f3;},j=f['forwardRef'](function(_0x12ca38,_0x30f3ee){var _0x428b0a=_0x47e78f,_0x2048a3=_0x12ca38[_0x428b0a(0x161)],_0x1cb9ef=_0x12ca38['id'],_0x48bbe1=_0x12ca38['className'],_0x16415d=_0x12ca38[_0x428b0a(0x155)],_0x51ef9e=M(_0x12ca38,[_0x428b0a(0x161),'id',_0x428b0a(0x203),_0x428b0a(0x155)]),_0x5b3958=_0x428b0a(0x1f6)[_0x428b0a(0x19d)](_0x1cb9ef,'\x20')[_0x428b0a(0x19d)](_0x48bbe1||'')[_0x428b0a(0x1b0)](),_0x3f04f1=f[_0x428b0a(0x214)]('_'[_0x428b0a(0x19d)](G()));return y(_0x2048a3,''[_0x428b0a(0x19d)](_0x1cb9ef),{'defIds':_0x2048a3[_0x428b0a(0x14a)],'idSuffix':_0x3f04f1[_0x428b0a(0x146)]},u({'ref':_0x30f3ee,'className':_0x5b3958},_0x51ef9e),_0x16415d);});function y(_0x270cac,_0x2043c7,_0x24a231,_0x497aae,_0x1c84f6){var _0x15d68e=_0x47e78f;return f[_0x15d68e(0x16e)](_0x270cac[_0x15d68e(0x143)],u(u({'key':_0x2043c7},q(_0x270cac,_0x24a231,_0x1c84f6)),_0x497aae),(W(_0x270cac,_0x24a231)[_0x15d68e(0x1f4)]||[])[_0x15d68e(0x200)](function(_0x49ec6e,_0x3a4ac3){var _0xbfd7ca=_0x15d68e;return y(_0x49ec6e,''[_0xbfd7ca(0x19d)](_0x2043c7,'-')['concat'](_0x270cac[_0xbfd7ca(0x143)],'-')['concat'](_0x3a4ac3),_0x24a231,void 0x0,_0x1c84f6);}));}function q(_0x5978d9,_0x29ebd0,_0x4a1528){var _0x2aff7c=_0x47e78f,_0x174317=u({},_0x5978d9[_0x2aff7c(0x1cd)]);_0x4a1528!=null&&_0x4a1528['colorChannel1']&&_0x174317[_0x2aff7c(0x1da)]===_0x2aff7c(0x211)&&(_0x174317[_0x2aff7c(0x1da)]=_0x4a1528[_0x2aff7c(0x211)]),_0x5978d9[_0x2aff7c(0x143)]==='mask'&&_0x174317['id']&&(_0x174317['id']=_0x174317['id']+_0x29ebd0[_0x2aff7c(0x1b1)]),Object[_0x2aff7c(0x215)](_0x174317)[_0x2aff7c(0x1f5)](function(_0x51420b){var _0x5689a8=_0x2aff7c,_0x3e6232=_0x51420b[0x0],_0x2454e1=_0x51420b[0x1];_0x3e6232===_0x5689a8(0x1a6)&&typeof _0x2454e1==_0x5689a8(0x147)&&(_0x174317[_0x3e6232]=_0x2454e1[_0x5689a8(0x15b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29ebd0[_0x5689a8(0x1b1)],')')));});var _0x57e06a=_0x29ebd0[_0x2aff7c(0x14a)];return!_0x57e06a||_0x57e06a[_0x2aff7c(0x1de)]===0x0||(_0x5978d9['tag']==='use'&&_0x174317[_0x2aff7c(0x144)]&&(_0x174317[_0x2aff7c(0x144)]=_0x174317[_0x2aff7c(0x144)]+_0x29ebd0[_0x2aff7c(0x1b1)]),Object['entries'](_0x174317)[_0x2aff7c(0x1f5)](function(_0x5c3882){var _0x3e6a42=_0x2aff7c,_0x1706f0=_0x5c3882[0x0],_0x48ca68=_0x5c3882[0x1];typeof _0x48ca68=='string'&&(_0x174317[_0x1706f0]=_0x48ca68[_0x3e6a42(0x15b)](/url\(#(.*)\)/,_0x3e6a42(0x1b5)[_0x3e6a42(0x19d)](_0x29ebd0[_0x3e6a42(0x1b1)],')')));})),_0x174317;}function W(_0x35062c,_0x4882e1){var _0x856d62=_0x47e78f,_0x4159e8,_0x50798b=_0x4882e1[_0x856d62(0x14a)];return!_0x50798b||_0x50798b[_0x856d62(0x1de)]===0x0?_0x35062c:_0x35062c[_0x856d62(0x143)]===_0x856d62(0x1d2)&&(!((_0x4159e8=_0x35062c[_0x856d62(0x1f4)])===null||_0x4159e8===void 0x0)&&_0x4159e8['length'])?u(u({},_0x35062c),{'children':_0x35062c['children'][_0x856d62(0x200)](function(_0x155cf9){var _0x1b350f=_0x856d62;return typeof _0x155cf9[_0x1b350f(0x1cd)]['id']=='string'&&_0x50798b&&_0x50798b[_0x1b350f(0x139)](_0x155cf9['attrs']['id'])?u(u({},_0x155cf9),{'attrs':u(u({},_0x155cf9[_0x1b350f(0x1cd)]),{'id':_0x155cf9[_0x1b350f(0x1cd)]['id']+_0x4882e1[_0x1b350f(0x1b1)]})}):_0x155cf9;})}):_0x35062c;}function G(){var _0x3c3e54=_0x47e78f;return Math['random']()['toString'](0x24)[_0x3c3e54(0x210)](0x2,0x8);}j[_0x47e78f(0x1a0)]=_0x47e78f(0x183);var B={'tag':'svg','attrs':{'xmlns':_0x47e78f(0x170),'fill':'none','viewBox':_0x47e78f(0x1cf),'width':_0x47e78f(0x205),'height':'1em'},'children':[{'tag':_0x47e78f(0x13f),'attrs':{'fill':_0x47e78f(0x1d6),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x47e78f(0x13f),'attrs':{'fill':'currentColor','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':_0x47e78f(0x188),'clipRule':'evenodd'}}]},P=f[_0x47e78f(0x151)](function(_0x339b08,_0x2b3380){var _0x3d9a54=_0x47e78f;return f[_0x3d9a54(0x16e)](j,Object[_0x3d9a54(0x1c4)]({},_0x339b08,{'id':'live-share-icon','ref':_0x2b3380,'icon':B}));});P[_0x47e78f(0x1a0)]='LiveShareIcon';var Y=Object[_0x47e78f(0x1e2)],R=(_0x50ae67,_0x2a20eb,_0x3e6259,_0x1cf185)=>{for(var _0x3c41c9=_0x1cf185>0x1?void 0x0:_0x1cf185?Y(_0x2a20eb,_0x3e6259):_0x2a20eb,_0x416b23=_0x50ae67['length']-0x1,_0x4c1aee;_0x416b23>=0x0;_0x416b23--)(_0x4c1aee=_0x50ae67[_0x416b23])&&(_0x3c41c9=_0x4c1aee(_0x3c41c9)||_0x3c41c9);return _0x3c41c9;},S=(_0x1d8c4b,_0x2d7195)=>(_0x529fe7,_0x556a76)=>_0x2d7195(_0x529fe7,_0x556a76,_0x1d8c4b);exports[_0x47e78f(0x19b)]=class extends o['RxDisposable']{constructor(_0x180435,_0x423a8c,_0x3dde18){var _0x503582=_0x47e78f;super(),v(this,_0x503582(0x18d),new Map()),(this[_0x503582(0x154)]=_0x180435,this['_injector']=_0x423a8c,this[_0x503582(0x193)]=_0x3dde18,this[_0x503582(0x1eb)]());}async[_0x47e78f(0x182)](_0xefab5f){var _0x1b28b6=_0x47e78f;return this[_0x1b28b6(0x18d)]['has'](_0xefab5f)||await this['_startLiveShareCoordinator'](_0xefab5f),this[_0x1b28b6(0x18d)][_0x1b28b6(0x1b7)](_0xefab5f);}[_0x47e78f(0x1eb)](){var _0x16abb4=_0x47e78f;this[_0x16abb4(0x154)]['getTypeOfUnitAdded$'](o[_0x16abb4(0x1d1)][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](async _0x27d754=>{var _0x5f1933=_0x16abb4;const _0x11dad4=_0x27d754[_0x5f1933(0x165)]();this[_0x5f1933(0x18d)][_0x5f1933(0x1d3)](_0x11dad4)||this['_startLiveShareCoordinator'](_0x11dad4);}),this['_univerInstanceService'][_0x16abb4(0x13e)](o['UniverInstanceType'][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](_0xc46022=>{var _0x526476=_0x16abb4;const _0x3397a6=_0xc46022[_0x526476(0x165)](),_0x26bf4f=this[_0x526476(0x18d)]['get'](_0x3397a6);_0x26bf4f==null||_0x26bf4f[_0x526476(0x179)]();});}async[_0x47e78f(0x21c)](_0x247af2){var _0x3e39dd=_0x47e78f;const _0x31503c=await this[_0x3e39dd(0x193)][_0x3e39dd(0x162)](_0x247af2),_0x24ce2e=this[_0x3e39dd(0x1f1)]['createInstance'](exports[_0x3e39dd(0x18c)],_0x247af2,_0x31503c);return _0x24ce2e[_0x3e39dd(0x196)](),this['_entities']['set'](_0x247af2,_0x24ce2e),_0x24ce2e;}},exports[_0x47e78f(0x19b)]=R([S(0x0,o[_0x47e78f(0x1a7)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x47e78f(0x213)](m[_0x47e78f(0x1e1)]))],exports[_0x47e78f(0x19b)]);var h=(_0x55bf22=>(_0x55bf22['OFFLINE']=_0x47e78f(0x212),_0x55bf22['IDLE']=_0x47e78f(0x1c8),_0x55bf22[_0x47e78f(0x1ca)]=_0x47e78f(0x199),_0x55bf22[_0x47e78f(0x219)]='not-following',_0x55bf22[_0x47e78f(0x1ab)]='presenting',_0x55bf22))(h||{});const Z=_0x47e78f(0x166),J=0xc8;exports[_0x47e78f(0x18c)]=class extends o['RxDisposable']{constructor(_0x60e2af,_0x1c62bc,_0x3b7405,_0x46e503,_0x51f582){var _0x444ffb=_0x47e78f;super(),v(this,_0x444ffb(0x21d),new D[(_0x444ffb(0x20e))](_0x444ffb(0x1c8))),v(this,_0x444ffb(0x153),this[_0x444ffb(0x21d)][_0x444ffb(0x1ef)]()),v(this,'_init',!0x1),v(this,_0x444ffb(0x1e0),null),v(this,_0x444ffb(0x1a3),null),(this[_0x444ffb(0x19c)]=_0x60e2af,this[_0x444ffb(0x14c)]=_0x1c62bc,this['_configService']=_0x3b7405,this['_liveShareService']=_0x46e503,this[_0x444ffb(0x174)]=_0x51f582);}get[_0x47e78f(0x21e)](){var _0x3b2ce0=_0x47e78f;return this[_0x3b2ce0(0x21d)][_0x3b2ce0(0x17b)]();}[_0x47e78f(0x179)](){var _0x1d7414=_0x47e78f,_0x12cc23;(_0x12cc23=this[_0x1d7414(0x1e0)])==null||_0x12cc23['dispose'](),this[_0x1d7414(0x21d)]['next'](_0x1d7414(0x1c8)),this[_0x1d7414(0x21d)][_0x1d7414(0x16d)]();}[_0x47e78f(0x196)](){var _0x57b893=_0x47e78f;this[_0x57b893(0x1eb)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x57b893(0x175)](b[_0x57b893(0x169)](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x4da5cd=>{var _0x55076f=_0x57b893;switch(_0x4da5cd){case m['SessionStatus'][_0x55076f(0x191)]:this['_handleOffline']();break;case m[_0x55076f(0x176)][_0x55076f(0x1b9)]:this[_0x55076f(0x1df)]();break;}}),this['_collabSession']['event$'][_0x57b893(0x175)](b['takeUntil'](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x3f084f=>{var _0x7b183=_0x57b893;const {eventID:_0x430f58}=_0x3f084f;switch(_0x430f58){case _['CollaborationEvent'][_0x7b183(0x192)]:this[_0x7b183(0x163)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x15d)]:this[_0x7b183(0x167)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x1b6)]:this[_0x7b183(0x1fb)]();break;case _[_0x7b183(0x216)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3f084f);break;}}));}[_0x47e78f(0x17c)](){var _0x23dd84=_0x47e78f;this[_0x23dd84(0x14c)][_0x23dd84(0x141)]({'eventID':_[_0x23dd84(0x216)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x23dd84(0x14c)][_0x23dd84(0x204)]()}},this[_0x23dd84(0x19c)]);}[_0x47e78f(0x206)](){var _0x1fc0b4=_0x47e78f;this[_0x1fc0b4(0x21e)]===_0x1fc0b4(0x140)&&(this[_0x1fc0b4(0x21d)]['next'](_0x1fc0b4(0x1c8)),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x1fc0b4(0x1b6)],'data':{'unitID':this[_0x1fc0b4(0x19c)]}},this[_0x1fc0b4(0x19c)]));}[_0x47e78f(0x16f)](){var _0x127b1c=_0x47e78f;this['_status']===_0x127b1c(0x1bd)&&(this['_status$'][_0x127b1c(0x1e6)](_0x127b1c(0x199)),this[_0x127b1c(0x172)]());}['stopFollowing'](){var _0x3904a8=_0x47e78f;this['_status']==='following'&&this[_0x3904a8(0x1ae)]();}[_0x47e78f(0x163)](_0x58c3f8){var _0x4ee3e7=_0x47e78f;const {presenter:_0x2bcb4d}=_0x58c3f8['data'],_0x4f83c3=this['_collabSession']['getMemberID']();this['_presenter']=_0x2bcb4d,_0x2bcb4d===_0x4f83c3?(this[_0x4ee3e7(0x1ae)](),this['_startPresenting']()):this[_0x4ee3e7(0x21e)]!==_0x4ee3e7(0x1bd)&&(this[_0x4ee3e7(0x21f)](),this[_0x4ee3e7(0x172)]());}[_0x47e78f(0x1f7)](){var _0x34aa1f=_0x47e78f;const _0xc3f15f={'eventID':_['CollaborationEvent'][_0x34aa1f(0x21a)]};this[_0x34aa1f(0x14c)][_0x34aa1f(0x141)](_0xc3f15f,this[_0x34aa1f(0x19c)]);}[_0x47e78f(0x1fb)](){var _0x3bf569=_0x47e78f;this['_presenter']=null,this[_0x3bf569(0x21e)]!==_0x3bf569(0x140)&&this[_0x3bf569(0x1c0)]();}[_0x47e78f(0x20f)](_0x44933d){var _0x2ba520=_0x47e78f;if(this['_status']===_0x2ba520(0x199)&&this[_0x2ba520(0x1a3)]===_0x44933d[_0x2ba520(0x160)][_0x2ba520(0x1ac)]){const _0xafc0c3=_['parseProtocolChangeset'](_0x44933d[_0x2ba520(0x160)])[_0x2ba520(0x17d)][_0x2ba520(0x1fd)]()[_0x2ba520(0x14e)](_0x12ae8e=>_0x12ae8e['id']===C['InsertSheetMutation']['id']);if(_0xafc0c3){const _0x3a2781=_0xafc0c3['params'][_0x2ba520(0x185)],_0x167f0d=_0xafc0c3[_0x2ba520(0x181)][_0x2ba520(0x187)]['id'];setTimeout(()=>{var _0x274071=_0x2ba520;this[_0x274071(0x174)][_0x274071(0x18b)](C[_0x274071(0x1f8)]['id'],{'unitId':_0x3a2781,'subUnitId':_0x167f0d},{'fromCollab':!0x0});});}}}[_0x47e78f(0x1ea)](){var _0x59537c=_0x47e78f;this[_0x59537c(0x21d)][_0x59537c(0x1e6)](_0x59537c(0x140));const _0x20c507=new Map(),_0x6ebd99=this[_0x59537c(0x1e0)]=new o['DisposableCollection']();_0x6ebd99[_0x59537c(0x208)](o[_0x59537c(0x1b8)](()=>{var _0x111707=_0x59537c;_0x20c507[_0x111707(0x1f5)](_0x1749aa=>_0x1749aa[_0x111707(0x16d)]()),_0x20c507[_0x111707(0x1c3)]();})),_0x6ebd99[_0x59537c(0x208)](this['_commandService']['onCommandExecuted'](_0x3f4220=>{var _0x54fb9b=_0x59537c,_0x308ece;if(_0x3f4220[_0x54fb9b(0x15c)]!==o['CommandType']['OPERATION']||!this['_liveShareService'][_0x54fb9b(0x218)](_0x3f4220['id']))return;const {id:_0x243141}=_0x3f4220;let _0x281690;_0x20c507[_0x54fb9b(0x1d3)](_0x243141)?_0x281690=_0x20c507[_0x54fb9b(0x1b7)](_0x243141):(_0x281690=new D['Subject'](),_0x20c507[_0x54fb9b(0x16a)](_0x243141,_0x281690),_0x281690[_0x54fb9b(0x175)](b[_0x54fb9b(0x194)]((_0x308ece=this['_configService'][_0x54fb9b(0x202)](Z))!=null?_0x308ece:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7d8c33=>{var _0x2ef2bb=_0x54fb9b;this[_0x2ef2bb(0x14c)][_0x2ef2bb(0x141)]({'eventID':_[_0x2ef2bb(0x216)][_0x2ef2bb(0x15d)],'data':{'unitID':this[_0x2ef2bb(0x19c)],'operations':{[_0x7d8c33['id']]:{'id':_0x7d8c33['id'],'params':JSON[_0x2ef2bb(0x178)](_0x7d8c33[_0x2ef2bb(0x181)])}}}},this['_unitID']);})),_0x281690[_0x54fb9b(0x1e6)](_0x3f4220);})),this[_0x59537c(0x20b)][_0x59537c(0x159)](this[_0x59537c(0x19c)])[_0x59537c(0x1f5)](_0x5c8356=>this[_0x59537c(0x14c)][_0x59537c(0x141)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59537c(0x19c)],'operations':{[_0x5c8356['id']]:{'id':_0x5c8356['id'],'params':JSON['stringify'](_0x5c8356[_0x59537c(0x181)])}}}},this[_0x59537c(0x19c)]));}[_0x47e78f(0x21f)](){var _0x48b1fa=_0x47e78f,_0x4b3707;this['_status$'][_0x48b1fa(0x1e6)]('idle'),(_0x4b3707=this[_0x48b1fa(0x1e0)])==null||_0x4b3707[_0x48b1fa(0x179)](),this[_0x48b1fa(0x1e0)]=null;}[_0x47e78f(0x172)](){var _0xbdfaee=_0x47e78f,_0x3c0065;(_0x3c0065=this[_0xbdfaee(0x1e0)])==null||_0x3c0065[_0xbdfaee(0x179)](),this[_0xbdfaee(0x21d)][_0xbdfaee(0x1e6)](_0xbdfaee(0x199));}[_0x47e78f(0x1c0)](){var _0x4948ec=_0x47e78f,_0x258c0f;this[_0x4948ec(0x21d)]['next'](_0x4948ec(0x1c8)),(_0x258c0f=this[_0x4948ec(0x1e0)])==null||_0x258c0f['dispose'](),this[_0x4948ec(0x1e0)]=null;}[_0x47e78f(0x1ae)](){var _0x44bc4b=_0x47e78f,_0x1b9d3d;this[_0x44bc4b(0x21d)][_0x44bc4b(0x1e6)]('not-following'),(_0x1b9d3d=this[_0x44bc4b(0x1e0)])==null||_0x1b9d3d['dispose']();}[_0x47e78f(0x167)](_0x74d37f){var _0x7dd73b=_0x47e78f;if(['presenting',_0x7dd73b(0x1bd),'offline'][_0x7dd73b(0x139)](this['_status'])||!_0x74d37f['data'][_0x7dd73b(0x1af)]||_0x74d37f['data']['presenter']===this[_0x7dd73b(0x14c)][_0x7dd73b(0x204)]())return;this[_0x7dd73b(0x21e)]==='idle'&&this[_0x7dd73b(0x172)]();const _0x1728c7=_0x74d37f[_0x7dd73b(0x160)][_0x7dd73b(0x1b2)];Object[_0x7dd73b(0x19f)](_0x1728c7)[_0x7dd73b(0x1f5)](_0x3dbdf9=>{var _0x53e43a=_0x7dd73b;this['_commandService'][_0x53e43a(0x18b)](_0x3dbdf9['id'],_0x3dbdf9[_0x53e43a(0x181)]?JSON[_0x53e43a(0x1a8)](_0x3dbdf9[_0x53e43a(0x181)]):null,{'fromCollab':!0x0});});}[_0x47e78f(0x13c)](){var _0x573c90=_0x47e78f,_0x2867a5;this[_0x573c90(0x21d)][_0x573c90(0x1e6)](_0x573c90(0x212)),(_0x2867a5=this[_0x573c90(0x1e0)])==null||_0x2867a5[_0x573c90(0x179)]();}['_handleOnline'](){var _0x4bf148=_0x47e78f;this['_status$'][_0x4bf148(0x1e6)](_0x4bf148(0x1c8)),this[_0x4bf148(0x1f7)]();}},exports[_0x47e78f(0x18c)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x47e78f(0x18c)]);function A(){var _0x71d3f6=_0x47e78f;const _0x3edb0e=p[_0x71d3f6(0x149)](exports[_0x71d3f6(0x19b)]),_0x5a5a91=p[_0x71d3f6(0x149)](o['IUniverInstanceService']),_0x22a020=p[_0x71d3f6(0x1f9)](()=>_0x5a5a91[_0x71d3f6(0x19e)](o[_0x71d3f6(0x1d1)][_0x71d3f6(0x189)]),void 0x0,!0x1,[]),[_0x25a928,_0x5b0bef]=f[_0x71d3f6(0x1fe)](null),[_0x267f38,_0x4f722a]=f['useState'](h[_0x71d3f6(0x150)]),_0x52bd05=f[_0x71d3f6(0x214)](null);return f[_0x71d3f6(0x1e9)](()=>(_0x22a020&&_0x3edb0e['getLiveShareCoordinator'](_0x22a020['getUnitId']())[_0x71d3f6(0x1be)](_0x49a80b=>{var _0x43a1c6=_0x71d3f6;_0x5b0bef(_0x49a80b),_0x52bd05[_0x43a1c6(0x146)]=_0x49a80b[_0x43a1c6(0x153)]['subscribe'](_0x37f3d3=>{_0x4f722a(_0x37f3d3);});}),()=>{var _0x3c32d6=_0x71d3f6,_0x27eabb;(_0x27eabb=_0x52bd05['current'])==null||_0x27eabb[_0x3c32d6(0x1bc)](),_0x52bd05[_0x3c32d6(0x146)]=null;}),[_0x22a020,_0x3edb0e]),_0x25a928?l[_0x71d3f6(0x1e3)](g[_0x71d3f6(0x1e8)],{'align':'end','disabled':_0x267f38===h[_0x71d3f6(0x191)],'className':_0x71d3f6(0x1cc),'overlay':l[_0x71d3f6(0x1e3)](K,{'status':_0x267f38,'coordinator':_0x25a928}),'children':l['jsx']('button',{'className':g['clsx'](_0x71d3f6(0x1c2),{'univer-cursor-not-allowed':_0x267f38===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x267f38!==h[_0x71d3f6(0x191)]}),'type':_0x71d3f6(0x1c9),'children':l[_0x71d3f6(0x1e3)](P,{'className':_0x71d3f6(0x1b3)})})}):null;}function _0x371c(){var _0x230106=['delete','init','DependentOn','symbol','following','apply','LiveShareController','_unitID','concat','getCurrentTypeOfUnit$','values','displayName','rxjs','univer-w-full\x20univer-mb-3\x20univer-text-sm','_presenter','@univerjs/core','text','mask','IUniverInstanceService','parse','LiveShareStatus','_configService','PRESENTING','memberID','Fragment','_stopFollowing','presenter','trim','idSuffix','operations','univer-size-4','2000091PXLqcq','url(#$1','LIVESHARE_TERMINATE','get','toDisposable','ONLINE','4340448XLZxsg','connectInjector','unsubscribe','not-following','then','getOwnPropertySymbols','_beIdle','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','clear','assign','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','_mountLiveShare','idle','button','FOLLOWING','touchDependencies','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','_config','0\x200\x2017\x2017','5bGEZrL','UniverInstanceType','defs','has','@univerjs/design','You\x27are\x20offline.','currentColor','1447288ncPDeH','toStringTag','2598172HXiQbL','fill','registerComponent','_sharedOperations','registerSharedOperation','length','_handleOnline','_commandDisposable','CollaborationSessionService','getOwnPropertyDescriptor','jsx','jsxs','LiveShareService','next','call','Dropdown','useEffect','_startPresenting','_init','propertyIsEnumerable','defineProperty','@univerjs/ui','asObservable','_reporters','_injector','@univerjs/sheets-ui','live-share.config','children','forEach','univerjs-icon\x20univerjs-icon-','_fetchOperations','SetWorksheetActiveOperation','useObservable','IUIPartsService','_handleTerminate','disposeWithMe','reverse','useState','Stop\x20presenting','map','DesktopLiveShareController','getConfig','className','getMemberID','1em','stopPresenting','Disposable','add','stopFollowing','Button','_liveShareService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','BehaviorSubject','_handleNewChangeSets','substring','colorChannel1','offline','Inject','useRef','entries','CollaborationEvent','SetScrollOperation','shouldShareOperation','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_status$','_status','_stopPresenting','onRendered','includes','setConfig','BuiltInUIPart','_handleOffline','react','getTypeOfUnitDisposed$','path','presenting','send','subscribe','tag','xlink:href','@univerjs-pro/collaboration-client','current','string','dispose$','useDependency','defIds','merge','_collabSession','7DmrBRq','find','prototype','IDLE','forwardRef','registerInitialStateReporter','status$','_univerInstanceService','extend','Start\x20following','LiveShare','from','getInitialStates','You\x27re\x20presenting\x20the\x20document','replace','type','LIVESHARE_OPERATION','1290guYcLo','div','data','icon','requireSession','_handleNewHost','Stop\x20following','getUnitId','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','hasOwnProperty','takeUntil','set','IConfigService','UniverLiveSharePlugin','complete','createElement','startFollowing','http://www.w3.org/2000/svg','HEADER_MENU','_startFollowing','Start','_commandService','pipe','SessionStatus','Present\x20this\x20document','stringify','dispose','react/jsx-runtime','getValue','tryStartPresenting','mutations','6191224eiziCw','rxjs/operators','Injector','params','getLiveShareCoordinator','UniverIcon','109161JWaEep','unitId','91823IRHlgP','sheet','evenodd','UNIVER_SHEET','onStarting','executeCommand','LiveShareCoordinator','_entities','You\x27re\x20following\x20the\x20presenter','Module','SetZoomRatioOperation','OFFLINE','LIVESHARE_NEW_HOST','_collabSessionService','throttleTime'];_0x371c=function(){return _0x230106;};return _0x371c();}function K(_0x5eb0f5){var _0x3c5408=_0x47e78f;const {status:_0x24e456,coordinator:_0x45fc6c}=_0x5eb0f5;switch(_0x24e456){case h[_0x3c5408(0x150)]:return l['jsx'](z,{'coordinator':_0x45fc6c});case h['FOLLOWING']:return l[_0x3c5408(0x1e3)](Q,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x219)]:return l['jsx'](X,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x191)]:return l[_0x3c5408(0x1e3)](te,{});case h['PRESENTING']:return l[_0x3c5408(0x1e3)](ee,{'coordinator':_0x45fc6c});default:return null;}}function z(_0x11fc6d){var _0x275bb0=_0x47e78f;const {coordinator:_0x328d6c}=_0x11fc6d;return l['jsxs'](l[_0x275bb0(0x1ad)],{'children':[l[_0x275bb0(0x1e3)](_0x275bb0(0x15f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x275bb0(0x177)}),l[_0x275bb0(0x1e3)](g[_0x275bb0(0x20a)],{'onClick':()=>_0x328d6c[_0x275bb0(0x17c)](),'children':_0x275bb0(0x173)})]});}function Q(_0x402c7a){var _0xaa3037=_0x47e78f;const {coordinator:_0x67d749}=_0x402c7a;return l[_0xaa3037(0x1e4)](l[_0xaa3037(0x1ad)],{'children':[l[_0xaa3037(0x1e3)](_0xaa3037(0x15f),{'className':_0xaa3037(0x1a2),'children':_0xaa3037(0x18e)}),l[_0xaa3037(0x1e3)](g[_0xaa3037(0x20a)],{'onClick':()=>_0x67d749[_0xaa3037(0x209)](),'children':_0xaa3037(0x164)})]});}function X(_0x22fff6){var _0x3078de=_0x47e78f;const {coordinator:_0x47ef37}=_0x22fff6;return l[_0x3078de(0x1e4)](l[_0x3078de(0x1ad)],{'children':[l['jsx'](_0x3078de(0x15f),{'className':_0x3078de(0x1a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3078de(0x1e3)](g['Button'],{'variant':_0x3078de(0x1a5),'onClick':()=>_0x47ef37[_0x3078de(0x16f)](),'children':_0x3078de(0x156)})]});}function ee(_0x3da6c1){var _0x10895f=_0x47e78f;const {coordinator:_0x2bd2ca}=_0x3da6c1;return l[_0x10895f(0x1e4)](l['Fragment'],{'children':[l[_0x10895f(0x1e3)](_0x10895f(0x15f),{'className':_0x10895f(0x1a2),'children':_0x10895f(0x15a)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x2bd2ca[_0x10895f(0x206)](),'children':_0x10895f(0x1ff)})]});}function te(){var _0x136afc=_0x47e78f;return l[_0x136afc(0x1e3)](l['Fragment'],{'children':_0x136afc(0x1d5)});}var ie=Object[_0x47e78f(0x1e2)],ne=(_0x130cea,_0x1a65f1,_0x462479,_0x2dc0d4)=>{for(var _0x40e1cb=_0x2dc0d4>0x1?void 0x0:_0x2dc0d4?ie(_0x1a65f1,_0x462479):_0x1a65f1,_0x970da8=_0x130cea['length']-0x1,_0x207dee;_0x970da8>=0x0;_0x970da8--)(_0x207dee=_0x130cea[_0x970da8])&&(_0x40e1cb=_0x207dee(_0x40e1cb)||_0x40e1cb);return _0x40e1cb;},L=(_0x3141d1,_0x377f27)=>(_0x1c0627,_0x5725b8)=>_0x377f27(_0x1c0627,_0x5725b8,_0x3141d1);exports[_0x47e78f(0x201)]=class extends o[_0x47e78f(0x207)]{constructor(_0x2f2e0d,_0x4ff8c3){var _0x13cc14=_0x47e78f;super(),this[_0x13cc14(0x1f1)]=_0x2f2e0d,this[_0x13cc14(0x1c1)]=_0x4ff8c3,this[_0x13cc14(0x1c7)]();}[_0x47e78f(0x1c7)](){var _0x4747ef=_0x47e78f;this[_0x4747ef(0x1fc)](this[_0x4747ef(0x1c1)][_0x4747ef(0x1db)](p[_0x4747ef(0x13b)][_0x4747ef(0x171)],()=>p[_0x4747ef(0x1bb)](A,this[_0x4747ef(0x1f1)])));}},exports[_0x47e78f(0x201)]=ne([L(0x0,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),L(0x1,p[_0x47e78f(0x1fa)])],exports[_0x47e78f(0x201)]);var re=Object[_0x47e78f(0x1ed)],se=Object[_0x47e78f(0x1e2)],oe=(_0x5da30f,_0x1b71a2,_0x23b377)=>_0x1b71a2 in _0x5da30f?re(_0x5da30f,_0x1b71a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b377}):_0x5da30f[_0x1b71a2]=_0x23b377,ae=(_0x542533,_0x2f203e,_0x1f7fca,_0x2d2618)=>{for(var _0x5e3000=_0x2d2618>0x1?void 0x0:_0x2d2618?se(_0x2f203e,_0x1f7fca):_0x2f203e,_0x55f89e=_0x542533['length']-0x1,_0x123f0d;_0x55f89e>=0x0;_0x55f89e--)(_0x123f0d=_0x542533[_0x55f89e])&&(_0x5e3000=_0x123f0d(_0x5e3000)||_0x5e3000);return _0x5e3000;},N=(_0x3e7a79,_0x124b3b)=>(_0x2913d2,_0x3e33d3)=>_0x124b3b(_0x2913d2,_0x3e33d3,_0x3e7a79),T=(_0x12cc29,_0x4a877f,_0x68caa4)=>oe(_0x12cc29,typeof _0x4a877f!='symbol'?_0x4a877f+'':_0x4a877f,_0x68caa4);const le=_0x47e78f(0x21b);exports[_0x47e78f(0x16c)]=class extends o['Plugin']{constructor(_0x283bb0=x,_0x13a465,_0x2e6efc){var _0x50436e=_0x47e78f;super(),this[_0x50436e(0x1ce)]=_0x283bb0,this['_injector']=_0x13a465,this[_0x50436e(0x1aa)]=_0x2e6efc;const {..._0x398007}=o[_0x50436e(0x14b)]({},x,this[_0x50436e(0x1ce)]);this[_0x50436e(0x1aa)][_0x50436e(0x13a)]($,_0x398007);}[_0x47e78f(0x18a)](){var _0x486d73=_0x47e78f;o['registerDependencies'](this[_0x486d73(0x1f1)],o[_0x486d73(0x20d)]([[O],[exports[_0x486d73(0x19b)]],[E],[exports['DesktopLiveShareController']]],this[_0x486d73(0x1ce)]['override'])),o[_0x486d73(0x1cb)](this['_injector'],[[E]]);}[_0x47e78f(0x138)](){var _0x509053=_0x47e78f;o[_0x509053(0x1cb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x47e78f(0x15c),o['UniverInstanceType'][_0x47e78f(0x20c)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0x47e78f(0x16c)]=ae([o[_0x47e78f(0x197)](m[_0x47e78f(0x1c6)]),N(0x1,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),N(0x2,o[_0x47e78f(0x16b)])],exports['UniverLiveSharePlugin']),exports[_0x47e78f(0x157)]=A,exports[_0x47e78f(0x1e5)]=O,exports[_0x47e78f(0x1a9)]=h;
1
+ 'use strict';var _0x1c7aef=_0x5063;(function(_0x3a3028,_0x25af4b){var _0x3ff596=_0x5063,_0x26d193=_0x3a3028();while(!![]){try{var _0x507c3c=-parseInt(_0x3ff596(0x1d1))/0x1+parseInt(_0x3ff596(0x1f4))/0x2*(parseInt(_0x3ff596(0x169))/0x3)+parseInt(_0x3ff596(0x1ac))/0x4*(parseInt(_0x3ff596(0x164))/0x5)+parseInt(_0x3ff596(0x23d))/0x6+-parseInt(_0x3ff596(0x180))/0x7*(-parseInt(_0x3ff596(0x194))/0x8)+parseInt(_0x3ff596(0x1ce))/0x9+parseInt(_0x3ff596(0x18e))/0xa*(-parseInt(_0x3ff596(0x177))/0xb);if(_0x507c3c===_0x25af4b)break;else _0x26d193['push'](_0x26d193['shift']());}catch(_0x1b909f){_0x26d193['push'](_0x26d193['shift']());}}}(_0x346f,0xa7485));var U=Object['defineProperty'],F=(_0x2d3926,_0x207e6a,_0x585485)=>_0x207e6a in _0x2d3926?U(_0x2d3926,_0x207e6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x585485}):_0x2d3926[_0x207e6a]=_0x585485,v=(_0x29a6ee,_0x3a5a07,_0x3cd13c)=>F(_0x29a6ee,typeof _0x3a5a07!=_0x1c7aef(0x186)?_0x3a5a07+'':_0x3a5a07,_0x3cd13c);Object[_0x1c7aef(0x19d)](exports,Symbol[_0x1c7aef(0x191)],{'value':_0x1c7aef(0x1f3)});function _0x5063(_0x4a4a60,_0x5c70c4){var _0x346fec=_0x346f();return _0x5063=function(_0x506342,_0x5037e2){_0x506342=_0x506342-0x159;var _0xe5fb84=_0x346fec[_0x506342];return _0xe5fb84;},_0x5063(_0x4a4a60,_0x5c70c4);}const m=require('@univerjs-pro/collaboration-client'),o=require(_0x1c7aef(0x1de)),C=require(_0x1c7aef(0x161)),w=require(_0x1c7aef(0x1a8)),p=require(_0x1c7aef(0x19f)),l=require(_0x1c7aef(0x16e)),g=require(_0x1c7aef(0x1a7)),f=require(_0x1c7aef(0x1e3)),_=require(_0x1c7aef(0x179)),D=require(_0x1c7aef(0x23f)),b=require(_0x1c7aef(0x1d9)),$=_0x1c7aef(0x21a),x={};class O extends o[_0x1c7aef(0x1a1)]{constructor(){var _0x7eb6e3=_0x1c7aef;super(...arguments),v(this,_0x7eb6e3(0x1e2),new Set()),v(this,_0x7eb6e3(0x19c),new Set());}[_0x1c7aef(0x228)](_0x41c440){var _0x397c21=_0x1c7aef;return this[_0x397c21(0x1e2)]['add'](_0x41c440),o[_0x397c21(0x18c)](()=>this[_0x397c21(0x1e2)]['delete'](_0x41c440));}[_0x1c7aef(0x1ba)](_0x43371b){var _0x167bd7=_0x1c7aef;return this['_reporters'][_0x167bd7(0x1d2)](_0x43371b),o[_0x167bd7(0x18c)](()=>this[_0x167bd7(0x19c)][_0x167bd7(0x1a4)](_0x43371b));}[_0x1c7aef(0x17a)](_0x240ca4){var _0x48ffff=_0x1c7aef;return this[_0x48ffff(0x1e2)][_0x48ffff(0x20e)](_0x240ca4);}[_0x1c7aef(0x192)](_0x2cfd6b){var _0x2185fa=_0x1c7aef;return Array[_0x2185fa(0x1bf)](this[_0x2185fa(0x19c)])[_0x2185fa(0x195)](_0x2ef2b0=>_0x2ef2b0(_0x2cfd6b));}}var H=Object[_0x1c7aef(0x1c1)],V=(_0x5360c8,_0x1178b6,_0x38a0bc,_0x227ea3)=>{for(var _0x3571f0=_0x227ea3>0x1?void 0x0:_0x227ea3?H(_0x1178b6,_0x38a0bc):_0x1178b6,_0x2a322e=_0x5360c8['length']-0x1,_0xb87304;_0x2a322e>=0x0;_0x2a322e--)(_0xb87304=_0x5360c8[_0x2a322e])&&(_0x3571f0=_0xb87304(_0x3571f0)||_0x3571f0);return _0x3571f0;},k=(_0x16c344,_0x2a6325)=>(_0x2125da,_0x38a74b)=>_0x2a6325(_0x2125da,_0x38a74b,_0x16c344);function _0x346f(){var _0x2460c7=['0\x200\x2017\x2017','hasOwnProperty','Button','UniverCollaborationClientPlugin','SetZoomRatioOperation','onCommandExecuted','live-share.config','toString','mask','LIVESHARE_OPERATION','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','onStarting','getUnitId','offline','_liveShareService','createInstance','values','useState','prototype','attrs','registerSharedOperation','_collabSession','NEW_CHANGESETS','override','SessionStatus','current','clear','NOT_FOLLOWING','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Start','idle','disposeWithMe','not-following','string','InsertSheetMutation','path','UNIVER_UNKNOWN','currentColor','useObservable','clsx','You\x27re\x20not\x20following\x20the\x20presenter','2046096CLlcSS','data','rxjs','none','_config','UniverInstanceType','_handleNewHost','jsxs','parseProtocolChangeset','UNIVER_SHEET','LIVESHARE_TERMINATE','tag','dispose$','complete','LiveShareController','You\x27re\x20following\x20the\x20presenter','init','defs','getConfig','You\x27are\x20offline.','_fetchOperations','@univerjs/sheets','connectInjector','presenting','44335mUPeRy','takeUntil','_init','_entities','status$','48999fjXCWo','dispose','You\x27re\x20presenting\x20the\x20document','requireSession','Injector','react/jsx-runtime','button','_startPresenting','parse','getCurrentTypeOfUnit$','children','getLiveShareCoordinator','LiveShareCoordinator','call','29468857uRqHcY','getTypeOfUnitDisposed$','@univerjs-pro/collaboration','shouldShareOperation','SetWorksheetActiveOperation','getOwnPropertySymbols','mergeOverrideWithDependencies','BuiltInUIPart','_univerInstanceService','658DeyRRg','RxDisposable','live-share-icon','className','_unitID','_presenter','symbol','set','default','then','find','unitId','toDisposable','OPERATION','10EGjtwy','_handleNewChangeSets','forwardRef','toStringTag','getInitialStates','DesktopLiveShareController','75320bQOcqN','map','length','colorChannel1','includes','_stopFollowing','_injector','ONLINE','_reporters','defineProperty','SetScrollOperation','@univerjs/ui','http://www.w3.org/2000/svg','Disposable','jsx','indexOf','delete','UniverLiveSharePlugin','type','@univerjs/design','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','event$','_handleOperation','436LXLGgk','_commandDisposable','subscribe','touchDependencies','useDependency','LiveShare','PRESENTING','replace','sheet','useRef','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','tryStartPresenting','fill','_status','registerInitialStateReporter','entries','_stopPresenting','createElement','onRendered','from','pluginName','getOwnPropertyDescriptor','mutations','reverse','merge','CollaborationEvent','send','svg','forEach','getValue','SAME_OPERATION_SHARE_INTERVAL','useEffect','LIVESHARE_NEW_HOST','setConfig','2097351AJnVjW','Plugin','unsubscribe','270034HGOwLm','add','UniverIcon','stringify','_uiPartsService','IConfigService','xlink:href','IDLE','rxjs/operators','Fragment','_commandService','getMemberID','_beIdle','@univerjs/core','_configService','stopPresenting','operations','_sharedOperations','react','stopFollowing','_handleTerminate','HEADER_MENU','LiveShareIcon','idSuffix','function','OFFLINE','_handleOffline','text','following','_startLiveShareCoordinator','div','pipe','get','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','Module','148CIyfai','params','Stop\x20following','Subject','_handleOnline','evenodd','FOLLOWING','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','concat','asObservable','Start\x20following','univer-size-4','extend','_collabSessionService','CommandType','_mountLiveShare','assign','next','presenter','trim','displayName','executeCommand','startFollowing','_status$','BehaviorSubject','has','Inject','Dropdown','registerComponent','getTypeOfUnitAdded$','defIds'];_0x346f=function(){return _0x2460c7;};return _0x346f();}let E=class extends o['Disposable']{constructor(_0x7f42bf){var _0x35fa5a=_0x1c7aef;super(),this[_0x35fa5a(0x222)]=_0x7f42bf,this[_0x35fa5a(0x166)]();}[_0x1c7aef(0x166)](){var _0x52943e=_0x1c7aef;[w[_0x52943e(0x218)]['id'],w[_0x52943e(0x19e)]['id'],C['SetWorksheetActiveOperation']['id']][_0x52943e(0x1c8)](_0x2ecfda=>{var _0x3bacfb=_0x52943e;this[_0x3bacfb(0x233)](this[_0x3bacfb(0x222)][_0x3bacfb(0x228)](_0x2ecfda));});}};E=V([k(0x0,o[_0x1c7aef(0x20f)](O))],E);var u=function(){var _0x402ff7=_0x1c7aef;return u=Object[_0x402ff7(0x205)]||function(_0x5bbaa8){var _0x325587=_0x402ff7;for(var _0x3dac1d,_0x3a43c4=0x1,_0x2902b3=arguments[_0x325587(0x196)];_0x3a43c4<_0x2902b3;_0x3a43c4++){_0x3dac1d=arguments[_0x3a43c4];for(var _0x3f0746 in _0x3dac1d)Object[_0x325587(0x226)][_0x325587(0x215)][_0x325587(0x176)](_0x3dac1d,_0x3f0746)&&(_0x5bbaa8[_0x3f0746]=_0x3dac1d[_0x3f0746]);}return _0x5bbaa8;},u['apply'](this,arguments);},M=function(_0x389aba,_0x51f941){var _0xfdc11c=_0x1c7aef,_0x35f33c={};for(var _0x4ea113 in _0x389aba)Object[_0xfdc11c(0x226)][_0xfdc11c(0x215)]['call'](_0x389aba,_0x4ea113)&&_0x51f941['indexOf'](_0x4ea113)<0x0&&(_0x35f33c[_0x4ea113]=_0x389aba[_0x4ea113]);if(_0x389aba!=null&&typeof Object[_0xfdc11c(0x17c)]==_0xfdc11c(0x1e9)){for(var _0x7a69bc=0x0,_0x4ea113=Object[_0xfdc11c(0x17c)](_0x389aba);_0x7a69bc<_0x4ea113[_0xfdc11c(0x196)];_0x7a69bc++)_0x51f941[_0xfdc11c(0x1a3)](_0x4ea113[_0x7a69bc])<0x0&&Object[_0xfdc11c(0x226)]['propertyIsEnumerable'][_0xfdc11c(0x176)](_0x389aba,_0x4ea113[_0x7a69bc])&&(_0x35f33c[_0x4ea113[_0x7a69bc]]=_0x389aba[_0x4ea113[_0x7a69bc]]);}return _0x35f33c;},j=f[_0x1c7aef(0x190)](function(_0x195d5c,_0x37a02f){var _0x5c70fb=_0x1c7aef,_0x556b65=_0x195d5c['icon'],_0x2173ce=_0x195d5c['id'],_0x8074c7=_0x195d5c[_0x5c70fb(0x183)],_0x1f96cc=_0x195d5c[_0x5c70fb(0x201)],_0x13457c=M(_0x195d5c,['icon','id',_0x5c70fb(0x183),_0x5c70fb(0x201)]),_0x1cc442='univerjs-icon\x20univerjs-icon-'['concat'](_0x2173ce,'\x20')[_0x5c70fb(0x1fd)](_0x8074c7||'')[_0x5c70fb(0x208)](),_0x25805b=f[_0x5c70fb(0x1b5)]('_'[_0x5c70fb(0x1fd)](G()));return y(_0x556b65,''[_0x5c70fb(0x1fd)](_0x2173ce),{'defIds':_0x556b65['defIds'],'idSuffix':_0x25805b[_0x5c70fb(0x22d)]},u({'ref':_0x37a02f,'className':_0x1cc442},_0x13457c),_0x1f96cc);});function y(_0x3f4167,_0x4b355b,_0x2d4f61,_0x2e0f80,_0x3b4b9d){var _0x1618e0=_0x1c7aef;return f[_0x1618e0(0x1bd)](_0x3f4167[_0x1618e0(0x248)],u(u({'key':_0x4b355b},q(_0x3f4167,_0x2d4f61,_0x3b4b9d)),_0x2e0f80),(W(_0x3f4167,_0x2d4f61)[_0x1618e0(0x173)]||[])[_0x1618e0(0x195)](function(_0x4e6f00,_0x35fb1d){var _0x35846c=_0x1618e0;return y(_0x4e6f00,''[_0x35846c(0x1fd)](_0x4b355b,'-')[_0x35846c(0x1fd)](_0x3f4167[_0x35846c(0x248)],'-')[_0x35846c(0x1fd)](_0x35fb1d),_0x2d4f61,void 0x0,_0x3b4b9d);}));}function q(_0x9ee119,_0x219882,_0x3316e7){var _0x692bdc=_0x1c7aef,_0x6ff6fc=u({},_0x9ee119['attrs']);_0x3316e7!=null&&_0x3316e7[_0x692bdc(0x197)]&&_0x6ff6fc[_0x692bdc(0x1b8)]===_0x692bdc(0x197)&&(_0x6ff6fc[_0x692bdc(0x1b8)]=_0x3316e7['colorChannel1']),_0x9ee119[_0x692bdc(0x248)]===_0x692bdc(0x21c)&&_0x6ff6fc['id']&&(_0x6ff6fc['id']=_0x6ff6fc['id']+_0x219882['idSuffix']),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x238fcf){var _0x4a0988=_0x692bdc,_0x5a2b74=_0x238fcf[0x0],_0x3b096e=_0x238fcf[0x1];_0x5a2b74==='mask'&&typeof _0x3b096e==_0x4a0988(0x235)&&(_0x6ff6fc[_0x5a2b74]=_0x3b096e[_0x4a0988(0x1b3)](/url\(#(.*)\)/,'url(#$1'[_0x4a0988(0x1fd)](_0x219882[_0x4a0988(0x1e8)],')')));});var _0x229ead=_0x219882[_0x692bdc(0x213)];return!_0x229ead||_0x229ead['length']===0x0||(_0x9ee119[_0x692bdc(0x248)]==='use'&&_0x6ff6fc[_0x692bdc(0x1d7)]&&(_0x6ff6fc[_0x692bdc(0x1d7)]=_0x6ff6fc[_0x692bdc(0x1d7)]+_0x219882[_0x692bdc(0x1e8)]),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x11d439){var _0x245a4b=_0x692bdc,_0x11f5f3=_0x11d439[0x0],_0x54ae76=_0x11d439[0x1];typeof _0x54ae76==_0x245a4b(0x235)&&(_0x6ff6fc[_0x11f5f3]=_0x54ae76[_0x245a4b(0x1b3)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x219882[_0x245a4b(0x1e8)],')')));})),_0x6ff6fc;}function W(_0x5b3628,_0x54bc4a){var _0x1ce7e1=_0x1c7aef,_0x202505,_0xfa75ec=_0x54bc4a[_0x1ce7e1(0x213)];return!_0xfa75ec||_0xfa75ec[_0x1ce7e1(0x196)]===0x0?_0x5b3628:_0x5b3628[_0x1ce7e1(0x248)]===_0x1ce7e1(0x15d)&&(!((_0x202505=_0x5b3628['children'])===null||_0x202505===void 0x0)&&_0x202505[_0x1ce7e1(0x196)])?u(u({},_0x5b3628),{'children':_0x5b3628[_0x1ce7e1(0x173)][_0x1ce7e1(0x195)](function(_0x31513f){var _0x1a4da0=_0x1ce7e1;return typeof _0x31513f[_0x1a4da0(0x227)]['id']==_0x1a4da0(0x235)&&_0xfa75ec&&_0xfa75ec[_0x1a4da0(0x198)](_0x31513f[_0x1a4da0(0x227)]['id'])?u(u({},_0x31513f),{'attrs':u(u({},_0x31513f[_0x1a4da0(0x227)]),{'id':_0x31513f[_0x1a4da0(0x227)]['id']+_0x54bc4a[_0x1a4da0(0x1e8)]})}):_0x31513f;})}):_0x5b3628;}function G(){var _0x455900=_0x1c7aef;return Math['random']()[_0x455900(0x21b)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x1c7aef(0x1d3);var B={'tag':_0x1c7aef(0x1c7),'attrs':{'xmlns':_0x1c7aef(0x1a0),'fill':_0x1c7aef(0x240),'viewBox':_0x1c7aef(0x214),'width':'1em','height':'1em'},'children':[{'tag':_0x1c7aef(0x237),'attrs':{'fill':'currentColor','d':_0x1c7aef(0x1f2)}},{'tag':_0x1c7aef(0x237),'attrs':{'fill':_0x1c7aef(0x239),'d':_0x1c7aef(0x21e),'fillRule':_0x1c7aef(0x1f9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x4bdf19,_0x3a4f8a){var _0xca2c16=_0x1c7aef;return f[_0xca2c16(0x1bd)](j,Object[_0xca2c16(0x205)]({},_0x4bdf19,{'id':_0xca2c16(0x182),'ref':_0x3a4f8a,'icon':B}));});P[_0x1c7aef(0x209)]=_0x1c7aef(0x1e7);var Y=Object['getOwnPropertyDescriptor'],R=(_0x748fcd,_0x4a6504,_0x4a1425,_0x4bba3b)=>{var _0x28b5b1=_0x1c7aef;for(var _0x117e4f=_0x4bba3b>0x1?void 0x0:_0x4bba3b?Y(_0x4a6504,_0x4a1425):_0x4a6504,_0x230ec4=_0x748fcd[_0x28b5b1(0x196)]-0x1,_0xd81ca4;_0x230ec4>=0x0;_0x230ec4--)(_0xd81ca4=_0x748fcd[_0x230ec4])&&(_0x117e4f=_0xd81ca4(_0x117e4f)||_0x117e4f);return _0x117e4f;},S=(_0x3efae1,_0x40ce4c)=>(_0x389d4b,_0x556eee)=>_0x40ce4c(_0x389d4b,_0x556eee,_0x3efae1);exports['LiveShareController']=class extends o[_0x1c7aef(0x181)]{constructor(_0x34663f,_0x4c1f4c,_0x2b45ff){var _0x4e4b63=_0x1c7aef;super(),v(this,_0x4e4b63(0x167),new Map()),(this['_univerInstanceService']=_0x34663f,this['_injector']=_0x4c1f4c,this[_0x4e4b63(0x202)]=_0x2b45ff,this['_init']());}async[_0x1c7aef(0x174)](_0x5e4073){var _0x36e4f8=_0x1c7aef;return this[_0x36e4f8(0x167)]['has'](_0x5e4073)||await this[_0x36e4f8(0x1ee)](_0x5e4073),this[_0x36e4f8(0x167)][_0x36e4f8(0x1f1)](_0x5e4073);}[_0x1c7aef(0x166)](){var _0x58115e=_0x1c7aef;this[_0x58115e(0x17f)][_0x58115e(0x212)](o[_0x58115e(0x242)][_0x58115e(0x246)])[_0x58115e(0x1f0)](b[_0x58115e(0x165)](this['dispose$']))[_0x58115e(0x1ae)](async _0x2f1510=>{var _0x4f846d=_0x58115e;const _0x37dcda=_0x2f1510['getUnitId']();this[_0x4f846d(0x167)][_0x4f846d(0x20e)](_0x37dcda)||this['_startLiveShareCoordinator'](_0x37dcda);}),this['_univerInstanceService'][_0x58115e(0x178)](o[_0x58115e(0x242)]['UNIVER_SHEET'])[_0x58115e(0x1f0)](b['takeUntil'](this[_0x58115e(0x249)]))['subscribe'](_0x67c29c=>{var _0x1b74f6=_0x58115e;const _0x590ae5=_0x67c29c[_0x1b74f6(0x220)](),_0x9036ef=this[_0x1b74f6(0x167)][_0x1b74f6(0x1f1)](_0x590ae5);_0x9036ef==null||_0x9036ef[_0x1b74f6(0x16a)]();});}async[_0x1c7aef(0x1ee)](_0x5e7a82){var _0x3e1988=_0x1c7aef;const _0x38b9f7=await this['_collabSessionService'][_0x3e1988(0x16c)](_0x5e7a82),_0x470197=this[_0x3e1988(0x19a)][_0x3e1988(0x223)](exports[_0x3e1988(0x175)],_0x5e7a82,_0x38b9f7);return _0x470197[_0x3e1988(0x15c)](),this[_0x3e1988(0x167)][_0x3e1988(0x187)](_0x5e7a82,_0x470197),_0x470197;}},exports[_0x1c7aef(0x15a)]=R([S(0x0,o[_0x1c7aef(0x1fb)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports[_0x1c7aef(0x15a)]);var h=(_0x54d35f=>(_0x54d35f['OFFLINE']=_0x1c7aef(0x221),_0x54d35f[_0x1c7aef(0x1d8)]=_0x1c7aef(0x232),_0x54d35f[_0x1c7aef(0x1fa)]=_0x1c7aef(0x1ed),_0x54d35f[_0x1c7aef(0x22f)]=_0x1c7aef(0x234),_0x54d35f[_0x1c7aef(0x1b2)]=_0x1c7aef(0x163),_0x54d35f))(h||{});const Z=_0x1c7aef(0x1ca),J=0xc8;exports[_0x1c7aef(0x175)]=class extends o['RxDisposable']{constructor(_0x12306a,_0x28f695,_0xeb9a8d,_0x31bc05,_0x3ca580){var _0x2190bc=_0x1c7aef;super(),v(this,_0x2190bc(0x20c),new D[(_0x2190bc(0x20d))](_0x2190bc(0x232))),v(this,_0x2190bc(0x168),this[_0x2190bc(0x20c)][_0x2190bc(0x1fe)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x2190bc(0x185),null),(this['_unitID']=_0x12306a,this[_0x2190bc(0x229)]=_0x28f695,this[_0x2190bc(0x1df)]=_0xeb9a8d,this[_0x2190bc(0x222)]=_0x31bc05,this[_0x2190bc(0x1db)]=_0x3ca580);}get[_0x1c7aef(0x1b9)](){var _0x327b9d=_0x1c7aef;return this[_0x327b9d(0x20c)][_0x327b9d(0x1c9)]();}[_0x1c7aef(0x16a)](){var _0x3fe3b3=_0x1c7aef,_0x4cd886;(_0x4cd886=this[_0x3fe3b3(0x1ad)])==null||_0x4cd886[_0x3fe3b3(0x16a)](),this[_0x3fe3b3(0x20c)][_0x3fe3b3(0x206)](_0x3fe3b3(0x232)),this['_status$'][_0x3fe3b3(0x159)]();}['init'](){var _0x46359c=_0x1c7aef;this[_0x46359c(0x166)]||(this[_0x46359c(0x166)]=!0x0,this[_0x46359c(0x229)]['sessionStatus$'][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))[_0x46359c(0x1ae)](_0x221ddb=>{var _0x72dbbc=_0x46359c;switch(_0x221ddb){case m[_0x72dbbc(0x22c)][_0x72dbbc(0x1ea)]:this['_handleOffline']();break;case m['SessionStatus'][_0x72dbbc(0x19b)]:this['_handleOnline']();break;}}),this[_0x46359c(0x229)][_0x46359c(0x1aa)][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))['subscribe'](_0x1a1dc3=>{var _0xf94b8b=_0x46359c;const {eventID:_0x107062}=_0x1a1dc3;switch(_0x107062){case _['CollaborationEvent'][_0xf94b8b(0x1cc)]:this[_0xf94b8b(0x243)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x21d)]:this[_0xf94b8b(0x1ab)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x247)]:this[_0xf94b8b(0x1e5)]();break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x22a)]:this[_0xf94b8b(0x18f)](_0x1a1dc3);break;}}));}[_0x1c7aef(0x1b7)](){var _0x5540e5=_0x1c7aef;this['_collabSession']['send']({'eventID':_[_0x5540e5(0x1c5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5540e5(0x184)],'userID':this[_0x5540e5(0x229)][_0x5540e5(0x1dc)]()}},this['_unitID']);}['stopPresenting'](){var _0x198217=_0x1c7aef;this['_status']==='presenting'&&(this[_0x198217(0x20c)][_0x198217(0x206)](_0x198217(0x232)),this['_collabSession']['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x198217(0x184)]}},this[_0x198217(0x184)]));}['startFollowing'](){var _0x311c3a=_0x1c7aef;this[_0x311c3a(0x1b9)]===_0x311c3a(0x234)&&(this[_0x311c3a(0x20c)][_0x311c3a(0x206)](_0x311c3a(0x1ed)),this['_startFollowing']());}[_0x1c7aef(0x1e4)](){var _0x51084b=_0x1c7aef;this['_status']===_0x51084b(0x1ed)&&this[_0x51084b(0x199)]();}[_0x1c7aef(0x243)](_0xdf7764){var _0x1e9093=_0x1c7aef;const {presenter:_0x2791cc}=_0xdf7764[_0x1e9093(0x23e)],_0x439db3=this[_0x1e9093(0x229)][_0x1e9093(0x1dc)]();this[_0x1e9093(0x185)]=_0x2791cc,_0x2791cc===_0x439db3?(this[_0x1e9093(0x199)](),this[_0x1e9093(0x170)]()):this['_status']!==_0x1e9093(0x234)&&(this[_0x1e9093(0x1bc)](),this['_startFollowing']());}[_0x1c7aef(0x160)](){var _0x3f60cd=_0x1c7aef;const _0x4c07cb={'eventID':_[_0x3f60cd(0x1c5)][_0x3f60cd(0x1fc)]};this[_0x3f60cd(0x229)]['send'](_0x4c07cb,this[_0x3f60cd(0x184)]);}[_0x1c7aef(0x1e5)](){var _0x14ef6f=_0x1c7aef;this[_0x14ef6f(0x185)]=null,this['_status']!==_0x14ef6f(0x163)&&this[_0x14ef6f(0x1dd)]();}[_0x1c7aef(0x18f)](_0x386a0e){var _0x1eac97=_0x1c7aef;if(this['_status']===_0x1eac97(0x1ed)&&this[_0x1eac97(0x185)]===_0x386a0e[_0x1eac97(0x23e)]['memberID']){const _0x4faae7=_[_0x1eac97(0x245)](_0x386a0e[_0x1eac97(0x23e)])[_0x1eac97(0x1c2)][_0x1eac97(0x1c3)]()[_0x1eac97(0x18a)](_0x3d7a51=>_0x3d7a51['id']===C[_0x1eac97(0x236)]['id']);if(_0x4faae7){const _0x220b0d=_0x4faae7[_0x1eac97(0x1f5)][_0x1eac97(0x18b)],_0x43b689=_0x4faae7['params'][_0x1eac97(0x1b4)]['id'];setTimeout(()=>{var _0x45b729=_0x1eac97;this[_0x45b729(0x1db)][_0x45b729(0x20a)](C[_0x45b729(0x17b)]['id'],{'unitId':_0x220b0d,'subUnitId':_0x43b689},{'fromCollab':!0x0});});}}}[_0x1c7aef(0x170)](){var _0x10cd79=_0x1c7aef;this[_0x10cd79(0x20c)]['next'](_0x10cd79(0x163));const _0x2b30a2=new Map(),_0x338f70=this[_0x10cd79(0x1ad)]=new o['DisposableCollection']();_0x338f70['add'](o[_0x10cd79(0x18c)](()=>{var _0x3bde54=_0x10cd79;_0x2b30a2[_0x3bde54(0x1c8)](_0x5ec77a=>_0x5ec77a[_0x3bde54(0x159)]()),_0x2b30a2[_0x3bde54(0x22e)]();})),_0x338f70[_0x10cd79(0x1d2)](this[_0x10cd79(0x1db)][_0x10cd79(0x219)](_0x4ae78=>{var _0x2614d9=_0x10cd79,_0x596014;if(_0x4ae78[_0x2614d9(0x1a6)]!==o[_0x2614d9(0x203)][_0x2614d9(0x18d)]||!this[_0x2614d9(0x222)][_0x2614d9(0x17a)](_0x4ae78['id']))return;const {id:_0x354da0}=_0x4ae78;let _0x39b576;_0x2b30a2[_0x2614d9(0x20e)](_0x354da0)?_0x39b576=_0x2b30a2[_0x2614d9(0x1f1)](_0x354da0):(_0x39b576=new D[(_0x2614d9(0x1f7))](),_0x2b30a2[_0x2614d9(0x187)](_0x354da0,_0x39b576),_0x39b576[_0x2614d9(0x1f0)](b['throttleTime']((_0x596014=this[_0x2614d9(0x1df)][_0x2614d9(0x15e)](Z))!=null?_0x596014:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26d0ba=>{var _0x2c030a=_0x2614d9;this[_0x2c030a(0x229)][_0x2c030a(0x1c6)]({'eventID':_[_0x2c030a(0x1c5)][_0x2c030a(0x21d)],'data':{'unitID':this['_unitID'],'operations':{[_0x26d0ba['id']]:{'id':_0x26d0ba['id'],'params':JSON[_0x2c030a(0x1d4)](_0x26d0ba['params'])}}}},this['_unitID']);})),_0x39b576[_0x2614d9(0x206)](_0x4ae78);})),this['_liveShareService']['getInitialStates'](this[_0x10cd79(0x184)])[_0x10cd79(0x1c8)](_0xa66ac8=>this['_collabSession'][_0x10cd79(0x1c6)]({'eventID':_[_0x10cd79(0x1c5)][_0x10cd79(0x21d)],'data':{'unitID':this[_0x10cd79(0x184)],'operations':{[_0xa66ac8['id']]:{'id':_0xa66ac8['id'],'params':JSON['stringify'](_0xa66ac8[_0x10cd79(0x1f5)])}}}},this[_0x10cd79(0x184)]));}[_0x1c7aef(0x1bc)](){var _0x35b5e4=_0x1c7aef,_0x4578d4;this[_0x35b5e4(0x20c)][_0x35b5e4(0x206)](_0x35b5e4(0x232)),(_0x4578d4=this[_0x35b5e4(0x1ad)])==null||_0x4578d4[_0x35b5e4(0x16a)](),this[_0x35b5e4(0x1ad)]=null;}['_startFollowing'](){var _0x31f7e2=_0x1c7aef,_0x37cd2b;(_0x37cd2b=this['_commandDisposable'])==null||_0x37cd2b[_0x31f7e2(0x16a)](),this[_0x31f7e2(0x20c)][_0x31f7e2(0x206)](_0x31f7e2(0x1ed));}[_0x1c7aef(0x1dd)](){var _0x389795=_0x1c7aef,_0x3bf453;this[_0x389795(0x20c)][_0x389795(0x206)]('idle'),(_0x3bf453=this[_0x389795(0x1ad)])==null||_0x3bf453[_0x389795(0x16a)](),this[_0x389795(0x1ad)]=null;}[_0x1c7aef(0x199)](){var _0x108a66=_0x1c7aef,_0x979bd;this[_0x108a66(0x20c)][_0x108a66(0x206)](_0x108a66(0x234)),(_0x979bd=this[_0x108a66(0x1ad)])==null||_0x979bd[_0x108a66(0x16a)]();}['_handleOperation'](_0x1d5f6a){var _0x52a23b=_0x1c7aef;if(['presenting','not-following',_0x52a23b(0x221)][_0x52a23b(0x198)](this[_0x52a23b(0x1b9)])||!_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]||_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]===this[_0x52a23b(0x229)][_0x52a23b(0x1dc)]())return;this[_0x52a23b(0x1b9)]===_0x52a23b(0x232)&&this['_startFollowing']();const _0x23858e=_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x1e1)];Object[_0x52a23b(0x224)](_0x23858e)['forEach'](_0xee3b79=>{var _0x13c6a3=_0x52a23b;this[_0x13c6a3(0x1db)]['executeCommand'](_0xee3b79['id'],_0xee3b79['params']?JSON[_0x13c6a3(0x171)](_0xee3b79[_0x13c6a3(0x1f5)]):null,{'fromCollab':!0x0});});}[_0x1c7aef(0x1eb)](){var _0x43a3f7=_0x1c7aef,_0x2f8e7b;this[_0x43a3f7(0x20c)]['next']('offline'),(_0x2f8e7b=this[_0x43a3f7(0x1ad)])==null||_0x2f8e7b['dispose']();}[_0x1c7aef(0x1f8)](){var _0x265455=_0x1c7aef;this[_0x265455(0x20c)]['next'](_0x265455(0x232)),this['_fetchOperations']();}},exports[_0x1c7aef(0x175)]=R([S(0x2,o[_0x1c7aef(0x1d6)]),S(0x3,o[_0x1c7aef(0x20f)](O)),S(0x4,o['ICommandService'])],exports[_0x1c7aef(0x175)]);function A(){var _0x3aefbf=_0x1c7aef;const _0x2c8ede=p[_0x3aefbf(0x1b0)](exports[_0x3aefbf(0x15a)]),_0x5c5f8a=p[_0x3aefbf(0x1b0)](o[_0x3aefbf(0x1fb)]),_0x3f5760=p[_0x3aefbf(0x23a)](()=>_0x5c5f8a[_0x3aefbf(0x172)](o[_0x3aefbf(0x242)][_0x3aefbf(0x246)]),void 0x0,!0x1,[]),[_0x157a88,_0x52f379]=f[_0x3aefbf(0x225)](null),[_0x3d366f,_0x497e04]=f[_0x3aefbf(0x225)](h['IDLE']),_0x527d10=f['useRef'](null);return f[_0x3aefbf(0x1cb)](()=>(_0x3f5760&&_0x2c8ede['getLiveShareCoordinator'](_0x3f5760[_0x3aefbf(0x220)]())[_0x3aefbf(0x189)](_0x407442=>{var _0x149430=_0x3aefbf;_0x52f379(_0x407442),_0x527d10['current']=_0x407442[_0x149430(0x168)]['subscribe'](_0x9800ba=>{_0x497e04(_0x9800ba);});}),()=>{var _0x469b92=_0x3aefbf,_0x24fdc8;(_0x24fdc8=_0x527d10[_0x469b92(0x22d)])==null||_0x24fdc8[_0x469b92(0x1d0)](),_0x527d10[_0x469b92(0x22d)]=null;}),[_0x3f5760,_0x2c8ede]),_0x157a88?l[_0x3aefbf(0x1a2)](g[_0x3aefbf(0x210)],{'align':'end','disabled':_0x3d366f===h[_0x3aefbf(0x1ea)],'className':_0x3aefbf(0x1b6),'overlay':l[_0x3aefbf(0x1a2)](K,{'status':_0x3d366f,'coordinator':_0x157a88}),'children':l[_0x3aefbf(0x1a2)](_0x3aefbf(0x16f),{'className':g[_0x3aefbf(0x23b)](_0x3aefbf(0x230),{'univer-cursor-not-allowed':_0x3d366f===h[_0x3aefbf(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d366f!==h[_0x3aefbf(0x1ea)]}),'type':_0x3aefbf(0x16f),'children':l[_0x3aefbf(0x1a2)](P,{'className':_0x3aefbf(0x200)})})}):null;}function K(_0x406318){var _0x2d5b5a=_0x1c7aef;const {status:_0x598755,coordinator:_0x27b379}=_0x406318;switch(_0x598755){case h[_0x2d5b5a(0x1d8)]:return l[_0x2d5b5a(0x1a2)](z,{'coordinator':_0x27b379});case h['FOLLOWING']:return l[_0x2d5b5a(0x1a2)](Q,{'coordinator':_0x27b379});case h[_0x2d5b5a(0x22f)]:return l[_0x2d5b5a(0x1a2)](X,{'coordinator':_0x27b379});case h['OFFLINE']:return l[_0x2d5b5a(0x1a2)](te,{});case h['PRESENTING']:return l[_0x2d5b5a(0x1a2)](ee,{'coordinator':_0x27b379});default:return null;}}function z(_0x3daa88){var _0x53f2a2=_0x1c7aef;const {coordinator:_0x2a2794}=_0x3daa88;return l[_0x53f2a2(0x244)](l[_0x53f2a2(0x1da)],{'children':[l['jsx'](_0x53f2a2(0x1ef),{'className':_0x53f2a2(0x1a9),'children':'Present\x20this\x20document'}),l[_0x53f2a2(0x1a2)](g[_0x53f2a2(0x216)],{'onClick':()=>_0x2a2794[_0x53f2a2(0x1b7)](),'children':_0x53f2a2(0x231)})]});}function Q(_0x320a2e){var _0x37a8ea=_0x1c7aef;const {coordinator:_0xfb14d1}=_0x320a2e;return l['jsxs'](l[_0x37a8ea(0x1da)],{'children':[l['jsx'](_0x37a8ea(0x1ef),{'className':_0x37a8ea(0x1a9),'children':_0x37a8ea(0x15b)}),l[_0x37a8ea(0x1a2)](g[_0x37a8ea(0x216)],{'onClick':()=>_0xfb14d1[_0x37a8ea(0x1e4)](),'children':_0x37a8ea(0x1f6)})]});}function X(_0x3debcf){var _0x46a9be=_0x1c7aef;const {coordinator:_0x1bf378}=_0x3debcf;return l[_0x46a9be(0x244)](l['Fragment'],{'children':[l[_0x46a9be(0x1a2)](_0x46a9be(0x1ef),{'className':_0x46a9be(0x1a9),'children':_0x46a9be(0x23c)}),l[_0x46a9be(0x1a2)](g[_0x46a9be(0x216)],{'variant':_0x46a9be(0x1ec),'onClick':()=>_0x1bf378[_0x46a9be(0x20b)](),'children':_0x46a9be(0x1ff)})]});}function ee(_0xfadb34){var _0x63a67d=_0x1c7aef;const {coordinator:_0x3c8e20}=_0xfadb34;return l['jsxs'](l[_0x63a67d(0x1da)],{'children':[l[_0x63a67d(0x1a2)](_0x63a67d(0x1ef),{'className':_0x63a67d(0x1a9),'children':_0x63a67d(0x16b)}),l['jsx'](g[_0x63a67d(0x216)],{'variant':_0x63a67d(0x188),'onClick':()=>_0x3c8e20[_0x63a67d(0x1e0)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3e4cbc=_0x1c7aef;return l[_0x3e4cbc(0x1a2)](l[_0x3e4cbc(0x1da)],{'children':_0x3e4cbc(0x15f)});}var ie=Object[_0x1c7aef(0x1c1)],ne=(_0x3d0b5f,_0x23e559,_0xf51f04,_0x1f3e5b)=>{var _0x2229e2=_0x1c7aef;for(var _0x30472e=_0x1f3e5b>0x1?void 0x0:_0x1f3e5b?ie(_0x23e559,_0xf51f04):_0x23e559,_0x5f46c5=_0x3d0b5f[_0x2229e2(0x196)]-0x1,_0x389b78;_0x5f46c5>=0x0;_0x5f46c5--)(_0x389b78=_0x3d0b5f[_0x5f46c5])&&(_0x30472e=_0x389b78(_0x30472e)||_0x30472e);return _0x30472e;},L=(_0x1a648f,_0x373f23)=>(_0x290c10,_0x4d04d7)=>_0x373f23(_0x290c10,_0x4d04d7,_0x1a648f);exports[_0x1c7aef(0x193)]=class extends o['Disposable']{constructor(_0x834d0d,_0x4ef12c){var _0x2f2791=_0x1c7aef;super(),this[_0x2f2791(0x19a)]=_0x834d0d,this[_0x2f2791(0x1d5)]=_0x4ef12c,this[_0x2f2791(0x204)]();}['_mountLiveShare'](){var _0x5495df=_0x1c7aef;this[_0x5495df(0x233)](this['_uiPartsService'][_0x5495df(0x211)](p[_0x5495df(0x17e)][_0x5495df(0x1e6)],()=>p[_0x5495df(0x162)](A,this[_0x5495df(0x19a)])));}},exports[_0x1c7aef(0x193)]=ne([L(0x0,o[_0x1c7aef(0x20f)](o[_0x1c7aef(0x16d)])),L(0x1,p['IUIPartsService'])],exports[_0x1c7aef(0x193)]);var re=Object[_0x1c7aef(0x19d)],se=Object[_0x1c7aef(0x1c1)],oe=(_0x4330b8,_0x38e3d2,_0x48113c)=>_0x38e3d2 in _0x4330b8?re(_0x4330b8,_0x38e3d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48113c}):_0x4330b8[_0x38e3d2]=_0x48113c,ae=(_0x2198fb,_0x53b7d3,_0x132a28,_0x586ee3)=>{var _0x1164d3=_0x1c7aef;for(var _0x2190ff=_0x586ee3>0x1?void 0x0:_0x586ee3?se(_0x53b7d3,_0x132a28):_0x53b7d3,_0x152662=_0x2198fb[_0x1164d3(0x196)]-0x1,_0x45ca16;_0x152662>=0x0;_0x152662--)(_0x45ca16=_0x2198fb[_0x152662])&&(_0x2190ff=_0x45ca16(_0x2190ff)||_0x2190ff);return _0x2190ff;},N=(_0x45b303,_0x149971)=>(_0x59c3af,_0x3fbdeb)=>_0x149971(_0x59c3af,_0x3fbdeb,_0x45b303),T=(_0xdde970,_0xe29de4,_0x3a6b15)=>oe(_0xdde970,typeof _0xe29de4!=_0x1c7aef(0x186)?_0xe29de4+'':_0xe29de4,_0x3a6b15);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1c7aef(0x1a5)]=class extends o[_0x1c7aef(0x1cf)]{constructor(_0x16dca1=x,_0x45ced8,_0x2e5399){var _0x4dacf0=_0x1c7aef;super(),this[_0x4dacf0(0x241)]=_0x16dca1,this[_0x4dacf0(0x19a)]=_0x45ced8,this[_0x4dacf0(0x1df)]=_0x2e5399;const {..._0xca37cc}=o[_0x4dacf0(0x1c4)]({},x,this['_config']);this[_0x4dacf0(0x1df)][_0x4dacf0(0x1cd)]($,_0xca37cc);}[_0x1c7aef(0x21f)](){var _0x1eac89=_0x1c7aef;o['registerDependencies'](this['_injector'],o[_0x1eac89(0x17d)]([[O],[exports[_0x1eac89(0x15a)]],[E],[exports[_0x1eac89(0x193)]]],this[_0x1eac89(0x241)][_0x1eac89(0x22b)])),o[_0x1eac89(0x1af)](this[_0x1eac89(0x19a)],[[E]]);}[_0x1c7aef(0x1be)](){var _0x126f28=_0x1c7aef;o[_0x126f28(0x1af)](this[_0x126f28(0x19a)],[[exports[_0x126f28(0x193)]]]);}},T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1a6),o[_0x1c7aef(0x242)][_0x1c7aef(0x238)]),T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1c0),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0x1c7aef(0x217)]),N(0x1,o['Inject'](o[_0x1c7aef(0x16d)])),N(0x2,o[_0x1c7aef(0x1d6)])],exports[_0x1c7aef(0x1a5)]),exports[_0x1c7aef(0x1b1)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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 _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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 _0x465a(_0x285d61,_0x4d9227){var _0x16ae83=_0x16ae();return _0x465a=function(_0x465a30,_0x196a95){_0x465a30=_0x465a30-0x121;var _0x2ef50c=_0x16ae83[_0x465a30];return _0x2ef50c;},_0x465a(_0x285d61,_0x4d9227);}(function(_0x2d8044,_0x51020c){var _0x1c76dc=_0x465a,_0x54a471=_0x2d8044();while(!![]){try{var _0x37fda2=parseInt(_0x1c76dc(0x129))/0x1+parseInt(_0x1c76dc(0x12a))/0x2*(parseInt(_0x1c76dc(0x130))/0x3)+-parseInt(_0x1c76dc(0x1ca))/0x4+-parseInt(_0x1c76dc(0x195))/0x5+-parseInt(_0x1c76dc(0x1b8))/0x6*(parseInt(_0x1c76dc(0x20d))/0x7)+parseInt(_0x1c76dc(0x136))/0x8*(parseInt(_0x1c76dc(0x16b))/0x9)+parseInt(_0x1c76dc(0x1a9))/0xa;if(_0x37fda2===_0x51020c)break;else _0x54a471['push'](_0x54a471['shift']());}catch(_0x49ada0){_0x54a471['push'](_0x54a471['shift']());}}}(_0x16ae,0x334cd),function(_0x42e9b2,_0x1c25af){var _0x5d6270=_0x465a;typeof exports=='object'&&typeof module<'u'?_0x1c25af(exports,require(_0x5d6270(0x16e)),require(_0x5d6270(0x1f5)),require(_0x5d6270(0x1f3)),require(_0x5d6270(0x1f7)),require(_0x5d6270(0x207)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x5d6270(0x1d4)),require(_0x5d6270(0x16d)),require('rxjs'),require(_0x5d6270(0x178))):typeof define==_0x5d6270(0x143)&&define['amd']?define([_0x5d6270(0x158),_0x5d6270(0x16e),'@univerjs/core',_0x5d6270(0x1f3),_0x5d6270(0x1f7),_0x5d6270(0x207),_0x5d6270(0x1ae),_0x5d6270(0x1a3),'react',_0x5d6270(0x16d),'rxjs',_0x5d6270(0x178)],_0x1c25af):(_0x42e9b2=typeof globalThis<'u'?globalThis:_0x42e9b2||self,_0x1c25af(_0x42e9b2['UniverProLiveShare']={},_0x42e9b2['UniverProCollaborationClient'],_0x42e9b2[_0x5d6270(0x19a)],_0x42e9b2['UniverSheets'],_0x42e9b2[_0x5d6270(0x1b0)],_0x42e9b2[_0x5d6270(0x174)],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverDesign'],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverProCollaboration'],_0x42e9b2[_0x5d6270(0x1c0)],_0x42e9b2['rxjs'][_0x5d6270(0x1a2)]));}(this,function(_0x4283c3,_0xa185a6,_0x457ba8,_0x30d724,_0x497c1a,_0x4ed24c,_0x266ae0,_0x4d8cc3,_0x646ae3,_0x14b659,_0x1caf80,_0x1c91c9){'use strict';var _0x4e5a84=_0x465a;var _0x31c86d=Object[_0x4e5a84(0x16c)],_0x4ff86e=(_0x21068f,_0x2adff5,_0x1458ca)=>_0x2adff5 in _0x21068f?_0x31c86d(_0x21068f,_0x2adff5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1458ca}):_0x21068f[_0x2adff5]=_0x1458ca,_0xe37336=(_0x5335f2,_0x236057,_0x4a287b)=>_0x4ff86e(_0x5335f2,typeof _0x236057!=_0x4e5a84(0x20e)?_0x236057+'':_0x236057,_0x4a287b);const _0xe02570=_0x4e5a84(0x19f),_0x286e71={};class _0xe7b1f9 extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(){var _0x5c01b1=_0x4e5a84;super(...arguments),_0xe37336(this,_0x5c01b1(0x142),new Set()),_0xe37336(this,'_reporters',new Set());}[_0x4e5a84(0x190)](_0x2342b0){var _0x358013=_0x4e5a84;return this['_sharedOperations'][_0x358013(0x1a1)](_0x2342b0),_0x457ba8[_0x358013(0x1d6)](()=>this[_0x358013(0x142)][_0x358013(0x15b)](_0x2342b0));}[_0x4e5a84(0x170)](_0x3d15e1){var _0x45fa3e=_0x4e5a84;return this[_0x45fa3e(0x185)]['add'](_0x3d15e1),_0x457ba8[_0x45fa3e(0x1d6)](()=>this[_0x45fa3e(0x185)][_0x45fa3e(0x15b)](_0x3d15e1));}[_0x4e5a84(0x128)](_0x419c92){var _0x55b806=_0x4e5a84;return this[_0x55b806(0x142)][_0x55b806(0x175)](_0x419c92);}[_0x4e5a84(0x132)](_0x28a91b){var _0x5e2daa=_0x4e5a84;return Array[_0x5e2daa(0x1e6)](this[_0x5e2daa(0x185)])[_0x5e2daa(0x177)](_0x3c3e44=>_0x3c3e44(_0x28a91b));}}var _0x4cde44=Object[_0x4e5a84(0x1fd)],_0xa887bc=(_0x3e5b37,_0x40a98d,_0x36ae5e,_0x32860b)=>{var _0x2d857b=_0x4e5a84;for(var _0x221447=_0x32860b>0x1?void 0x0:_0x32860b?_0x4cde44(_0x40a98d,_0x36ae5e):_0x40a98d,_0x5799bf=_0x3e5b37[_0x2d857b(0x157)]-0x1,_0x1d9552;_0x5799bf>=0x0;_0x5799bf--)(_0x1d9552=_0x3e5b37[_0x5799bf])&&(_0x221447=_0x1d9552(_0x221447)||_0x221447);return _0x221447;},_0x214d52=(_0x3e9ba9,_0x3d3556)=>(_0x19d112,_0x40ce4b)=>_0x3d3556(_0x19d112,_0x40ce4b,_0x3e9ba9);let _0x4783ce=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x50ee65){var _0x3c3e47=_0x4e5a84;super(),this[_0x3c3e47(0x172)]=_0x50ee65,this[_0x3c3e47(0x179)]();}[_0x4e5a84(0x179)](){var _0x5c25fa=_0x4e5a84;[_0x497c1a[_0x5c25fa(0x1ce)]['id'],_0x497c1a['SetScrollOperation']['id'],_0x30d724['SetWorksheetActiveOperation']['id']][_0x5c25fa(0x165)](_0x5b68b2=>{var _0x4b53f0=_0x5c25fa;this['disposeWithMe'](this[_0x4b53f0(0x172)]['registerSharedOperation'](_0x5b68b2));});}};_0x4783ce=_0xa887bc([_0x214d52(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9))],_0x4783ce);var _0x298233=function(){var _0x1f043e=_0x4e5a84;return _0x298233=Object['assign']||function(_0x3d7a39){var _0x3da2f0=_0x465a;for(var _0x191591,_0x26a202=0x1,_0x5b887d=arguments['length'];_0x26a202<_0x5b887d;_0x26a202++){_0x191591=arguments[_0x26a202];for(var _0x4ddb30 in _0x191591)Object['prototype'][_0x3da2f0(0x15f)][_0x3da2f0(0x148)](_0x191591,_0x4ddb30)&&(_0x3d7a39[_0x4ddb30]=_0x191591[_0x4ddb30]);}return _0x3d7a39;},_0x298233[_0x1f043e(0x163)](this,arguments);},_0x537b32=function(_0x21e174,_0x5204fb){var _0x32a275=_0x4e5a84,_0x2a1374={};for(var _0xcb2cef in _0x21e174)Object[_0x32a275(0x135)]['hasOwnProperty'][_0x32a275(0x148)](_0x21e174,_0xcb2cef)&&_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef)<0x0&&(_0x2a1374[_0xcb2cef]=_0x21e174[_0xcb2cef]);if(_0x21e174!=null&&typeof Object[_0x32a275(0x1cb)]==_0x32a275(0x143)){for(var _0x44378e=0x0,_0xcb2cef=Object['getOwnPropertySymbols'](_0x21e174);_0x44378e<_0xcb2cef[_0x32a275(0x157)];_0x44378e++)_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef[_0x44378e])<0x0&&Object[_0x32a275(0x135)][_0x32a275(0x16a)][_0x32a275(0x148)](_0x21e174,_0xcb2cef[_0x44378e])&&(_0x2a1374[_0xcb2cef[_0x44378e]]=_0x21e174[_0xcb2cef[_0x44378e]]);}return _0x2a1374;},_0x5e7a23=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xe24237,_0x2dcded){var _0x454ba2=_0x4e5a84,_0x128715=_0xe24237[_0x454ba2(0x1dc)],_0x21946b=_0xe24237['id'],_0x4ba976=_0xe24237['className'],_0x8c7e7e=_0xe24237['extend'],_0x19cdd5=_0x537b32(_0xe24237,[_0x454ba2(0x1dc),'id',_0x454ba2(0x15e),_0x454ba2(0x14c)]),_0x552b68=_0x454ba2(0x1c9)[_0x454ba2(0x1c5)](_0x21946b,'\x20')[_0x454ba2(0x1c5)](_0x4ba976||'')[_0x454ba2(0x162)](),_0x109004=_0x646ae3[_0x454ba2(0x14b)]('_'[_0x454ba2(0x1c5)](_0xd0ffbc()));return _0x3f863e(_0x128715,''[_0x454ba2(0x1c5)](_0x21946b),{'defIds':_0x128715['defIds'],'idSuffix':_0x109004[_0x454ba2(0x1e3)]},_0x298233({'ref':_0x2dcded,'className':_0x552b68},_0x19cdd5),_0x8c7e7e);});function _0x3f863e(_0x534416,_0x255c29,_0x5eea1f,_0x582764,_0x4cc570){var _0x30258e=_0x4e5a84;return _0x646ae3[_0x30258e(0x12e)](_0x534416[_0x30258e(0x154)],_0x298233(_0x298233({'key':_0x255c29},_0x188351(_0x534416,_0x5eea1f,_0x4cc570)),_0x582764),(_0x5ac5c0(_0x534416,_0x5eea1f)[_0x30258e(0x1d3)]||[])[_0x30258e(0x177)](function(_0x354bbe,_0x54e03c){var _0x28d0f1=_0x30258e;return _0x3f863e(_0x354bbe,''[_0x28d0f1(0x1c5)](_0x255c29,'-')[_0x28d0f1(0x1c5)](_0x534416[_0x28d0f1(0x154)],'-')[_0x28d0f1(0x1c5)](_0x54e03c),_0x5eea1f,void 0x0,_0x4cc570);}));}function _0x188351(_0x2a4e31,_0x3d8d48,_0x3f4805){var _0x45a8d1=_0x4e5a84,_0x1b7b24=_0x298233({},_0x2a4e31['attrs']);_0x3f4805!=null&&_0x3f4805['colorChannel1']&&_0x1b7b24['fill']===_0x45a8d1(0x1c2)&&(_0x1b7b24[_0x45a8d1(0x17f)]=_0x3f4805[_0x45a8d1(0x1c2)]),_0x2a4e31[_0x45a8d1(0x154)]==='mask'&&_0x1b7b24['id']&&(_0x1b7b24['id']=_0x1b7b24['id']+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x5a2dea){var _0x1e6b2f=_0x45a8d1,_0x4870c3=_0x5a2dea[0x0],_0x199962=_0x5a2dea[0x1];_0x4870c3===_0x1e6b2f(0x203)&&typeof _0x199962==_0x1e6b2f(0x145)&&(_0x1b7b24[_0x4870c3]=_0x199962[_0x1e6b2f(0x169)](/url\(#(.*)\)/,_0x1e6b2f(0x1f0)[_0x1e6b2f(0x1c5)](_0x3d8d48[_0x1e6b2f(0x131)],')')));});var _0x3c25b4=_0x3d8d48[_0x45a8d1(0x18e)];return!_0x3c25b4||_0x3c25b4[_0x45a8d1(0x157)]===0x0||(_0x2a4e31[_0x45a8d1(0x154)]==='use'&&_0x1b7b24[_0x45a8d1(0x12c)]&&(_0x1b7b24[_0x45a8d1(0x12c)]=_0x1b7b24[_0x45a8d1(0x12c)]+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x2872cc){var _0x450750=_0x45a8d1,_0x22bd14=_0x2872cc[0x0],_0x149682=_0x2872cc[0x1];typeof _0x149682=='string'&&(_0x1b7b24[_0x22bd14]=_0x149682[_0x450750(0x169)](/url\(#(.*)\)/,_0x450750(0x1f0)[_0x450750(0x1c5)](_0x3d8d48['idSuffix'],')')));})),_0x1b7b24;}function _0x5ac5c0(_0x15b603,_0x1b9486){var _0xedfc76=_0x4e5a84,_0x3d162c,_0x34fe28=_0x1b9486[_0xedfc76(0x18e)];return!_0x34fe28||_0x34fe28[_0xedfc76(0x157)]===0x0?_0x15b603:_0x15b603[_0xedfc76(0x154)]===_0xedfc76(0x153)&&(!((_0x3d162c=_0x15b603[_0xedfc76(0x1d3)])===null||_0x3d162c===void 0x0)&&_0x3d162c[_0xedfc76(0x157)])?_0x298233(_0x298233({},_0x15b603),{'children':_0x15b603[_0xedfc76(0x1d3)]['map'](function(_0x5c27b6){var _0x52d4d2=_0xedfc76;return typeof _0x5c27b6[_0x52d4d2(0x20b)]['id']==_0x52d4d2(0x145)&&_0x34fe28&&_0x34fe28[_0x52d4d2(0x1bb)](_0x5c27b6[_0x52d4d2(0x20b)]['id'])?_0x298233(_0x298233({},_0x5c27b6),{'attrs':_0x298233(_0x298233({},_0x5c27b6[_0x52d4d2(0x20b)]),{'id':_0x5c27b6[_0x52d4d2(0x20b)]['id']+_0x1b9486[_0x52d4d2(0x131)]})}):_0x5c27b6;})}):_0x15b603;}function _0xd0ffbc(){var _0x5c94be=_0x4e5a84;return Math['random']()[_0x5c94be(0x206)](0x24)[_0x5c94be(0x1c6)](0x2,0x8);}_0x5e7a23[_0x4e5a84(0x1f1)]='UniverIcon';var _0x5c175f={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e5a84(0x14d),'viewBox':_0x4e5a84(0x156),'width':_0x4e5a84(0x191),'height':_0x4e5a84(0x191)},'children':[{'tag':'path','attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x210)}},{'tag':_0x4e5a84(0x17d),'attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x1de),'fillRule':_0x4e5a84(0x1b5),'clipRule':'evenodd'}}]},_0x3a4854=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xb6df36,_0x5c8d95){var _0x19538f=_0x4e5a84;return _0x646ae3[_0x19538f(0x12e)](_0x5e7a23,Object[_0x19538f(0x159)]({},_0xb6df36,{'id':_0x19538f(0x167),'ref':_0x5c8d95,'icon':_0x5c175f}));});_0x3a4854[_0x4e5a84(0x1f1)]=_0x4e5a84(0x1e5);var _0xad6688=Object['getOwnPropertyDescriptor'],_0x4275d4=(_0x29acfa,_0x4ed2f9,_0x2779b2,_0x3dec42)=>{var _0x2212fe=_0x4e5a84;for(var _0x40b7cf=_0x3dec42>0x1?void 0x0:_0x3dec42?_0xad6688(_0x4ed2f9,_0x2779b2):_0x4ed2f9,_0x299204=_0x29acfa[_0x2212fe(0x157)]-0x1,_0x3d54ba;_0x299204>=0x0;_0x299204--)(_0x3d54ba=_0x29acfa[_0x299204])&&(_0x40b7cf=_0x3d54ba(_0x40b7cf)||_0x40b7cf);return _0x40b7cf;},_0x6feff1=(_0x22ee74,_0x326f7b)=>(_0x101134,_0xc8354b)=>_0x326f7b(_0x101134,_0xc8354b,_0x22ee74);_0x4283c3[_0x4e5a84(0x1ed)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0xdf09e2,_0x2af307,_0xe79dd8){var _0x58abfc=_0x4e5a84;super(),_0xe37336(this,_0x58abfc(0x15d),new Map()),(this[_0x58abfc(0x19e)]=_0xdf09e2,this[_0x58abfc(0x155)]=_0x2af307,this['_collabSessionService']=_0xe79dd8,this['_init']());}async['getLiveShareCoordinator'](_0xf3e61a){var _0x216120=_0x4e5a84;return this['_entities']['has'](_0xf3e61a)||await this[_0x216120(0x20a)](_0xf3e61a),this[_0x216120(0x15d)][_0x216120(0x181)](_0xf3e61a);}['_init'](){var _0x2a38cc=_0x4e5a84;this['_univerInstanceService'][_0x2a38cc(0x212)](_0x457ba8[_0x2a38cc(0x1e1)][_0x2a38cc(0x126)])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this['dispose$']))[_0x2a38cc(0x12b)](async _0x491822=>{var _0x1e0e9e=_0x2a38cc;const _0x4e82ac=_0x491822['getUnitId']();this[_0x1e0e9e(0x15d)]['has'](_0x4e82ac)||this[_0x1e0e9e(0x20a)](_0x4e82ac);}),this['_univerInstanceService'][_0x2a38cc(0x1e0)](_0x457ba8['UniverInstanceType']['UNIVER_SHEET'])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this[_0x2a38cc(0x13d)]))[_0x2a38cc(0x12b)](_0x291c6a=>{var _0x1d7706=_0x2a38cc;const _0x277f88=_0x291c6a['getUnitId'](),_0x565cfc=this[_0x1d7706(0x15d)][_0x1d7706(0x181)](_0x277f88);_0x565cfc==null||_0x565cfc[_0x1d7706(0x16f)]();});}async[_0x4e5a84(0x20a)](_0x39c099){var _0x58e50d=_0x4e5a84;const _0x4f98a1=await this[_0x58e50d(0x176)][_0x58e50d(0x18a)](_0x39c099),_0xc4efe8=this[_0x58e50d(0x155)][_0x58e50d(0x1df)](_0x4283c3[_0x58e50d(0x1b1)],_0x39c099,_0x4f98a1);return _0xc4efe8[_0x58e50d(0x18c)](),this['_entities'][_0x58e50d(0x124)](_0x39c099,_0xc4efe8),_0xc4efe8;}},_0x4283c3[_0x4e5a84(0x1ed)]=_0x4275d4([_0x6feff1(0x0,_0x457ba8[_0x4e5a84(0x149)]),_0x6feff1(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8['Injector'])),_0x6feff1(0x2,_0x457ba8['Inject'](_0xa185a6[_0x4e5a84(0x197)]))],_0x4283c3[_0x4e5a84(0x1ed)]);var _0x28fff0=(_0x1c409e=>(_0x1c409e['OFFLINE']=_0x4e5a84(0x173),_0x1c409e[_0x4e5a84(0x186)]=_0x4e5a84(0x123),_0x1c409e[_0x4e5a84(0x209)]=_0x4e5a84(0x1f6),_0x1c409e[_0x4e5a84(0x1b3)]=_0x4e5a84(0x1e4),_0x1c409e[_0x4e5a84(0x1d7)]='presenting',_0x1c409e))(_0x28fff0||{});const _0x2f8354='SAME_OPERATION_SHARE_INTERVAL',_0x28ca22=0xc8;_0x4283c3[_0x4e5a84(0x1b1)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0x31e35d,_0xffacda,_0x4f9dd7,_0xcf8ae9,_0x5d78c9){var _0x5e02aa=_0x4e5a84;super(),_0xe37336(this,_0x5e02aa(0x18f),new _0x1caf80[(_0x5e02aa(0x160))](_0x5e02aa(0x123))),_0xe37336(this,_0x5e02aa(0x141),this[_0x5e02aa(0x18f)][_0x5e02aa(0x1eb)]()),_0xe37336(this,_0x5e02aa(0x179),!0x1),_0xe37336(this,_0x5e02aa(0x17b),null),_0xe37336(this,_0x5e02aa(0x1a8),null),(this['_unitID']=_0x31e35d,this[_0x5e02aa(0x1a0)]=_0xffacda,this['_configService']=_0x4f9dd7,this['_liveShareService']=_0xcf8ae9,this[_0x5e02aa(0x122)]=_0x5d78c9);}get['_status'](){var _0x5414fd=_0x4e5a84;return this[_0x5414fd(0x18f)][_0x5414fd(0x17e)]();}[_0x4e5a84(0x16f)](){var _0xe39d8a=_0x4e5a84,_0x1c9bae;(_0x1c9bae=this[_0xe39d8a(0x17b)])==null||_0x1c9bae[_0xe39d8a(0x16f)](),this['_status$'][_0xe39d8a(0x1f9)](_0xe39d8a(0x123)),this[_0xe39d8a(0x18f)][_0xe39d8a(0x20c)]();}[_0x4e5a84(0x18c)](){var _0xe24011=_0x4e5a84;this[_0xe24011(0x179)]||(this[_0xe24011(0x179)]=!0x0,this['_collabSession']['sessionStatus$'][_0xe24011(0x1b2)](_0x1c91c9[_0xe24011(0x192)](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x26f093=>{var _0x1d158a=_0xe24011;switch(_0x26f093){case _0xa185a6[_0x1d158a(0x19d)][_0x1d158a(0x1ba)]:this[_0x1d158a(0x1dd)]();break;case _0xa185a6[_0x1d158a(0x19d)]['ONLINE']:this[_0x1d158a(0x204)]();break;}}),this['_collabSession'][_0xe24011(0x18b)][_0xe24011(0x1b2)](_0x1c91c9['takeUntil'](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x51b548=>{var _0x17f042=_0xe24011;const {eventID:_0x38a224}=_0x51b548;switch(_0x38a224){case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1bd)]:this[_0x17f042(0x202)](_0x51b548);break;case _0x14b659['CollaborationEvent'][_0x17f042(0x1d9)]:this[_0x17f042(0x1da)](_0x51b548);break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1ff)]:this['_handleTerminate']();break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x198)]:this[_0x17f042(0x168)](_0x51b548);break;}}));}[_0x4e5a84(0x20f)](){var _0x15346d=_0x4e5a84;this[_0x15346d(0x1a0)][_0x15346d(0x1f2)]({'eventID':_0x14b659[_0x15346d(0x1db)][_0x15346d(0x1d2)],'data':{'unitID':this[_0x15346d(0x1b6)],'userID':this[_0x15346d(0x1a0)][_0x15346d(0x14f)]()}},this['_unitID']);}[_0x4e5a84(0x1aa)](){var _0x1c1a55=_0x4e5a84;this[_0x1c1a55(0x166)]===_0x1c1a55(0x187)&&(this[_0x1c1a55(0x18f)][_0x1c1a55(0x1f9)](_0x1c1a55(0x123)),this[_0x1c1a55(0x1a0)]['send']({'eventID':_0x14b659['CollaborationEvent'][_0x1c1a55(0x1ff)],'data':{'unitID':this[_0x1c1a55(0x1b6)]}},this[_0x1c1a55(0x1b6)]));}['startFollowing'](){var _0x19ebf9=_0x4e5a84;this[_0x19ebf9(0x166)]===_0x19ebf9(0x1e4)&&(this[_0x19ebf9(0x18f)]['next'](_0x19ebf9(0x1f6)),this[_0x19ebf9(0x211)]());}[_0x4e5a84(0x1fb)](){var _0x347bc3=_0x4e5a84;this[_0x347bc3(0x166)]===_0x347bc3(0x1f6)&&this[_0x347bc3(0x15a)]();}['_handleNewHost'](_0x5ca81d){var _0x234791=_0x4e5a84;const {presenter:_0x1c6ec6}=_0x5ca81d[_0x234791(0x1e7)],_0x2a1958=this['_collabSession'][_0x234791(0x14f)]();this[_0x234791(0x1a8)]=_0x1c6ec6,_0x1c6ec6===_0x2a1958?(this['_stopFollowing'](),this[_0x234791(0x19b)]()):this[_0x234791(0x166)]!==_0x234791(0x1e4)&&(this[_0x234791(0x1d1)](),this[_0x234791(0x211)]());}['_fetchOperations'](){var _0x113875=_0x4e5a84;const _0x417b20={'eventID':_0x14b659[_0x113875(0x1db)][_0x113875(0x208)]};this[_0x113875(0x1a0)][_0x113875(0x1f2)](_0x417b20,this['_unitID']);}[_0x4e5a84(0x184)](){var _0x35ce1d=_0x4e5a84;this[_0x35ce1d(0x1a8)]=null,this['_status']!==_0x35ce1d(0x187)&&this[_0x35ce1d(0x125)]();}['_handleNewChangeSets'](_0x4e01bb){var _0x2040a4=_0x4e5a84;if(this[_0x2040a4(0x166)]===_0x2040a4(0x1f6)&&this[_0x2040a4(0x1a8)]===_0x4e01bb[_0x2040a4(0x1e7)][_0x2040a4(0x1a7)]){const _0x5d9fc0=_0x14b659[_0x2040a4(0x144)](_0x4e01bb[_0x2040a4(0x1e7)])[_0x2040a4(0x15c)]['reverse']()['find'](_0x23995d=>_0x23995d['id']===_0x30d724[_0x2040a4(0x146)]['id']);if(_0x5d9fc0){const _0x2e5480=_0x5d9fc0[_0x2040a4(0x1f8)][_0x2040a4(0x1c7)],_0x3b58c5=_0x5d9fc0['params'][_0x2040a4(0x1cc)]['id'];setTimeout(()=>{var _0xb8956d=_0x2040a4;this[_0xb8956d(0x122)][_0xb8956d(0x1c4)](_0x30d724[_0xb8956d(0x13e)]['id'],{'unitId':_0x2e5480,'subUnitId':_0x3b58c5},{'fromCollab':!0x0});});}}}[_0x4e5a84(0x19b)](){var _0x4cfc68=_0x4e5a84;this[_0x4cfc68(0x18f)]['next']('presenting');const _0x187c08=new Map(),_0x45fe2b=this[_0x4cfc68(0x17b)]=new _0x457ba8[(_0x4cfc68(0x188))]();_0x45fe2b['add'](_0x457ba8[_0x4cfc68(0x1d6)](()=>{var _0x2c3f04=_0x4cfc68;_0x187c08[_0x2c3f04(0x165)](_0x2f0f20=>_0x2f0f20[_0x2c3f04(0x20c)]()),_0x187c08['clear']();})),_0x45fe2b['add'](this[_0x4cfc68(0x122)][_0x4cfc68(0x1b4)](_0x1f6aeb=>{var _0x2cd3f3=_0x4cfc68,_0x1d20a4;if(_0x1f6aeb[_0x2cd3f3(0x1d0)]!==_0x457ba8[_0x2cd3f3(0x196)]['OPERATION']||!this[_0x2cd3f3(0x172)][_0x2cd3f3(0x128)](_0x1f6aeb['id']))return;const {id:_0x3ff0a5}=_0x1f6aeb;let _0xca5860;_0x187c08[_0x2cd3f3(0x175)](_0x3ff0a5)?_0xca5860=_0x187c08['get'](_0x3ff0a5):(_0xca5860=new _0x1caf80['Subject'](),_0x187c08[_0x2cd3f3(0x124)](_0x3ff0a5,_0xca5860),_0xca5860['pipe'](_0x1c91c9[_0x2cd3f3(0x1fe)]((_0x1d20a4=this[_0x2cd3f3(0x1d5)][_0x2cd3f3(0x1a4)](_0x2f8354))!=null?_0x1d20a4:_0x28ca22,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2cd3f3(0x12b)](_0xe6d125=>{var _0x2bdd74=_0x2cd3f3;this['_collabSession'][_0x2bdd74(0x1f2)]({'eventID':_0x14b659[_0x2bdd74(0x1db)][_0x2bdd74(0x1d9)],'data':{'unitID':this[_0x2bdd74(0x1b6)],'operations':{[_0xe6d125['id']]:{'id':_0xe6d125['id'],'params':JSON[_0x2bdd74(0x1e8)](_0xe6d125[_0x2bdd74(0x1f8)])}}}},this[_0x2bdd74(0x1b6)]);})),_0xca5860['next'](_0x1f6aeb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x3125fe=>this[_0x4cfc68(0x1a0)]['send']({'eventID':_0x14b659[_0x4cfc68(0x1db)][_0x4cfc68(0x1d9)],'data':{'unitID':this['_unitID'],'operations':{[_0x3125fe['id']]:{'id':_0x3125fe['id'],'params':JSON[_0x4cfc68(0x1e8)](_0x3125fe['params'])}}}},this[_0x4cfc68(0x1b6)]));}[_0x4e5a84(0x1d1)](){var _0x172102=_0x4e5a84,_0x39f1b1;this[_0x172102(0x18f)][_0x172102(0x1f9)](_0x172102(0x123)),(_0x39f1b1=this[_0x172102(0x17b)])==null||_0x39f1b1[_0x172102(0x16f)](),this[_0x172102(0x17b)]=null;}[_0x4e5a84(0x211)](){var _0x4c4d7c=_0x4e5a84,_0x54eab8;(_0x54eab8=this[_0x4c4d7c(0x17b)])==null||_0x54eab8[_0x4c4d7c(0x16f)](),this[_0x4c4d7c(0x18f)][_0x4c4d7c(0x1f9)]('following');}['_beIdle'](){var _0x481038=_0x4e5a84,_0x508f52;this['_status$'][_0x481038(0x1f9)](_0x481038(0x123)),(_0x508f52=this[_0x481038(0x17b)])==null||_0x508f52[_0x481038(0x16f)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2bd92e=_0x4e5a84,_0x55c3ad;this[_0x2bd92e(0x18f)][_0x2bd92e(0x1f9)](_0x2bd92e(0x1e4)),(_0x55c3ad=this[_0x2bd92e(0x17b)])==null||_0x55c3ad['dispose']();}[_0x4e5a84(0x1da)](_0x53d2cd){var _0x381359=_0x4e5a84;if(['presenting','not-following',_0x381359(0x173)][_0x381359(0x1bb)](this['_status'])||!_0x53d2cd[_0x381359(0x1e7)]['presenter']||_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x161)]===this[_0x381359(0x1a0)]['getMemberID']())return;this[_0x381359(0x166)]===_0x381359(0x123)&&this[_0x381359(0x211)]();const _0x37b6ab=_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x152)];Object[_0x381359(0x18d)](_0x37b6ab)[_0x381359(0x165)](_0x2754d4=>{var _0x2bad93=_0x381359;this['_commandService'][_0x2bad93(0x1c4)](_0x2754d4['id'],_0x2754d4['params']?JSON['parse'](_0x2754d4[_0x2bad93(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4e5a84(0x1dd)](){var _0x4863ec=_0x4e5a84,_0x1798c7;this[_0x4863ec(0x18f)][_0x4863ec(0x1f9)]('offline'),(_0x1798c7=this[_0x4863ec(0x17b)])==null||_0x1798c7[_0x4863ec(0x16f)]();}[_0x4e5a84(0x204)](){var _0x10fdf3=_0x4e5a84;this[_0x10fdf3(0x18f)][_0x10fdf3(0x1f9)](_0x10fdf3(0x123)),this['_fetchOperations']();}},_0x4283c3['LiveShareCoordinator']=_0x4275d4([_0x6feff1(0x2,_0x457ba8[_0x4e5a84(0x180)]),_0x6feff1(0x3,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9)),_0x6feff1(0x4,_0x457ba8[_0x4e5a84(0x1a5)])],_0x4283c3[_0x4e5a84(0x1b1)]);function _0x51dbb0(){var _0x53f328=_0x4e5a84;const _0x36ea7b=_0x4ed24c[_0x53f328(0x17a)](_0x4283c3[_0x53f328(0x1ed)]),_0x28135b=_0x4ed24c['useDependency'](_0x457ba8[_0x53f328(0x149)]),_0x3f8820=_0x4ed24c[_0x53f328(0x1cf)](()=>_0x28135b['getCurrentTypeOfUnit$'](_0x457ba8[_0x53f328(0x1e1)][_0x53f328(0x126)]),void 0x0,!0x1,[]),[_0x1e246f,_0xc4e962]=_0x646ae3['useState'](null),[_0x550ead,_0x2e5504]=_0x646ae3[_0x53f328(0x199)](_0x28fff0[_0x53f328(0x186)]),_0x2ba6e2=_0x646ae3[_0x53f328(0x14b)](null);return _0x646ae3[_0x53f328(0x1a6)](()=>(_0x3f8820&&_0x36ea7b[_0x53f328(0x1ac)](_0x3f8820[_0x53f328(0x1fa)]())[_0x53f328(0x13f)](_0x6ef5=>{var _0x5a5ba2=_0x53f328;_0xc4e962(_0x6ef5),_0x2ba6e2[_0x5a5ba2(0x1e3)]=_0x6ef5[_0x5a5ba2(0x141)][_0x5a5ba2(0x12b)](_0x713f85=>{_0x2e5504(_0x713f85);});}),()=>{var _0x17b258=_0x53f328,_0x4bf73c;(_0x4bf73c=_0x2ba6e2[_0x17b258(0x1e3)])==null||_0x4bf73c['unsubscribe'](),_0x2ba6e2[_0x17b258(0x1e3)]=null;}),[_0x3f8820,_0x36ea7b]),_0x1e246f?_0x266ae0[_0x53f328(0x194)](_0x4d8cc3[_0x53f328(0x171)],{'align':'end','disabled':_0x550ead===_0x28fff0[_0x53f328(0x1ba)],'className':_0x53f328(0x205),'overlay':_0x266ae0[_0x53f328(0x194)](_0xb681b0,{'status':_0x550ead,'coordinator':_0x1e246f}),'children':_0x266ae0['jsx'](_0x53f328(0x1af),{'className':_0x4d8cc3[_0x53f328(0x127)](_0x53f328(0x1cd),{'univer-cursor-not-allowed':_0x550ead===_0x28fff0['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ead!==_0x28fff0[_0x53f328(0x1ba)]}),'type':_0x53f328(0x1af),'children':_0x266ae0[_0x53f328(0x194)](_0x3a4854,{'className':_0x53f328(0x19c)})})}):null;}function _0xb681b0(_0xcb37bb){var _0x5e9682=_0x4e5a84;const {status:_0x131329,coordinator:_0x4c1d96}=_0xcb37bb;switch(_0x131329){case _0x28fff0[_0x5e9682(0x186)]:return _0x266ae0['jsx'](_0x3e2404,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x209)]:return _0x266ae0[_0x5e9682(0x194)](_0x1967e5,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x1b3)]:return _0x266ae0[_0x5e9682(0x194)](_0x40a338,{'coordinator':_0x4c1d96});case _0x28fff0['OFFLINE']:return _0x266ae0['jsx'](_0x3a3ce2,{});case _0x28fff0[_0x5e9682(0x1d7)]:return _0x266ae0[_0x5e9682(0x194)](_0x340694,{'coordinator':_0x4c1d96});default:return null;}}function _0x3e2404(_0x293032){var _0x41f0cb=_0x4e5a84;const {coordinator:_0x55043c}=_0x293032;return _0x266ae0[_0x41f0cb(0x147)](_0x266ae0['Fragment'],{'children':[_0x266ae0[_0x41f0cb(0x194)](_0x41f0cb(0x182),{'className':_0x41f0cb(0x1ad),'children':_0x41f0cb(0x150)}),_0x266ae0[_0x41f0cb(0x194)](_0x4d8cc3[_0x41f0cb(0x1ab)],{'onClick':()=>_0x55043c[_0x41f0cb(0x20f)](),'children':_0x41f0cb(0x193)})]});}function _0x1967e5(_0x24b21a){var _0x52e33c=_0x4e5a84;const {coordinator:_0x100af1}=_0x24b21a;return _0x266ae0['jsxs'](_0x266ae0[_0x52e33c(0x183)],{'children':[_0x266ae0[_0x52e33c(0x194)](_0x52e33c(0x182),{'className':_0x52e33c(0x1ad),'children':_0x52e33c(0x12d)}),_0x266ae0[_0x52e33c(0x194)](_0x4d8cc3['Button'],{'onClick':()=>_0x100af1[_0x52e33c(0x1fb)](),'children':_0x52e33c(0x1be)})]});}function _0x40a338(_0x10f385){var _0x24505f=_0x4e5a84;const {coordinator:_0x16d46d}=_0x10f385;return _0x266ae0[_0x24505f(0x147)](_0x266ae0[_0x24505f(0x183)],{'children':[_0x266ae0[_0x24505f(0x194)](_0x24505f(0x182),{'className':_0x24505f(0x1ad),'children':_0x24505f(0x12f)}),_0x266ae0[_0x24505f(0x194)](_0x4d8cc3[_0x24505f(0x1ab)],{'variant':'text','onClick':()=>_0x16d46d[_0x24505f(0x121)](),'children':_0x24505f(0x14e)})]});}function _0x340694(_0x5d1cc8){var _0x4901f5=_0x4e5a84;const {coordinator:_0x4c3a31}=_0x5d1cc8;return _0x266ae0[_0x4901f5(0x147)](_0x266ae0[_0x4901f5(0x183)],{'children':[_0x266ae0[_0x4901f5(0x194)](_0x4901f5(0x182),{'className':_0x4901f5(0x1ad),'children':_0x4901f5(0x139)}),_0x266ae0['jsx'](_0x4d8cc3[_0x4901f5(0x1ab)],{'variant':_0x4901f5(0x1e9),'onClick':()=>_0x4c3a31[_0x4901f5(0x1aa)](),'children':'Stop\x20presenting'})]});}function _0x3a3ce2(){var _0x2fc94d=_0x4e5a84;return _0x266ae0['jsx'](_0x266ae0[_0x2fc94d(0x183)],{'children':'You\x27are\x20offline.'});}var _0x297e8b=Object['getOwnPropertyDescriptor'],_0x16bd84=(_0x58b78f,_0x228fe9,_0x599d52,_0x53b737)=>{for(var _0x149454=_0x53b737>0x1?void 0x0:_0x53b737?_0x297e8b(_0x228fe9,_0x599d52):_0x228fe9,_0x580ff8=_0x58b78f['length']-0x1,_0x1973e2;_0x580ff8>=0x0;_0x580ff8--)(_0x1973e2=_0x58b78f[_0x580ff8])&&(_0x149454=_0x1973e2(_0x149454)||_0x149454);return _0x149454;},_0x14ca9a=(_0x34be82,_0x1bf783)=>(_0xaafc2e,_0x145477)=>_0x1bf783(_0xaafc2e,_0x145477,_0x34be82);_0x4283c3[_0x4e5a84(0x1c1)]=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x1ff2e8,_0x242cee){var _0x383049=_0x4e5a84;super(),this[_0x383049(0x155)]=_0x1ff2e8,this[_0x383049(0x137)]=_0x242cee,this[_0x383049(0x134)]();}[_0x4e5a84(0x134)](){var _0x8fa15=_0x4e5a84;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x4ed24c[_0x8fa15(0x214)][_0x8fa15(0x138)],()=>_0x4ed24c[_0x8fa15(0x200)](_0x51dbb0,this[_0x8fa15(0x155)])));}},_0x4283c3[_0x4e5a84(0x1c1)]=_0x16bd84([_0x14ca9a(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x14ca9a(0x1,_0x4ed24c[_0x4e5a84(0x1c8)])],_0x4283c3[_0x4e5a84(0x1c1)]);var _0x19b546=Object[_0x4e5a84(0x16c)],_0x436e71=Object['getOwnPropertyDescriptor'],_0x2cd963=(_0x4666d9,_0x1feea2,_0x49fb1d)=>_0x1feea2 in _0x4666d9?_0x19b546(_0x4666d9,_0x1feea2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49fb1d}):_0x4666d9[_0x1feea2]=_0x49fb1d,_0x467b5b=(_0x27ce2e,_0x5942f4,_0x24d674,_0x10c0f6)=>{var _0x12e936=_0x4e5a84;for(var _0x117905=_0x10c0f6>0x1?void 0x0:_0x10c0f6?_0x436e71(_0x5942f4,_0x24d674):_0x5942f4,_0x577335=_0x27ce2e[_0x12e936(0x157)]-0x1,_0x1a550c;_0x577335>=0x0;_0x577335--)(_0x1a550c=_0x27ce2e[_0x577335])&&(_0x117905=_0x1a550c(_0x117905)||_0x117905);return _0x117905;},_0x1bf226=(_0x447b67,_0x17b8f7)=>(_0x462329,_0x543025)=>_0x17b8f7(_0x462329,_0x543025,_0x447b67),_0x24c2a6=(_0x326ef9,_0x5ec768,_0x275eff)=>_0x2cd963(_0x326ef9,typeof _0x5ec768!='symbol'?_0x5ec768+'':_0x5ec768,_0x275eff);const _0x4f10b6='UNIVER_LIVE_SHARE_PLUGIN';_0x4283c3[_0x4e5a84(0x151)]=class extends _0x457ba8['Plugin']{constructor(_0xbb2f82=_0x286e71,_0x554017,_0x22600a){var _0x27c7ef=_0x4e5a84;super(),this[_0x27c7ef(0x1ef)]=_0xbb2f82,this[_0x27c7ef(0x155)]=_0x554017,this[_0x27c7ef(0x1d5)]=_0x22600a;const {..._0x484441}=_0x457ba8[_0x27c7ef(0x1bf)]({},_0x286e71,this[_0x27c7ef(0x1ef)]);this[_0x27c7ef(0x1d5)][_0x27c7ef(0x1f4)](_0xe02570,_0x484441);}[_0x4e5a84(0x140)](){var _0x59df72=_0x4e5a84;_0x457ba8[_0x59df72(0x1ea)](this['_injector'],_0x457ba8['mergeOverrideWithDependencies']([[_0xe7b1f9],[_0x4283c3[_0x59df72(0x1ed)]],[_0x4783ce],[_0x4283c3[_0x59df72(0x1c1)]]],this[_0x59df72(0x1ef)][_0x59df72(0x189)])),_0x457ba8[_0x59df72(0x14a)](this[_0x59df72(0x155)],[[_0x4783ce]]);}[_0x4e5a84(0x201)](){var _0x1ef8bb=_0x4e5a84;_0x457ba8[_0x1ef8bb(0x14a)](this[_0x1ef8bb(0x155)],[[_0x4283c3['DesktopLiveShareController']]]);}},_0x24c2a6(_0x4283c3['UniverLiveSharePlugin'],_0x4e5a84(0x1d0),_0x457ba8[_0x4e5a84(0x1e1)]['UNIVER_UNKNOWN']),_0x24c2a6(_0x4283c3[_0x4e5a84(0x151)],'pluginName',_0x4f10b6),_0x4283c3[_0x4e5a84(0x151)]=_0x467b5b([_0x457ba8[_0x4e5a84(0x1fc)](_0xa185a6[_0x4e5a84(0x1bc)]),_0x1bf226(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x1bf226(0x2,_0x457ba8[_0x4e5a84(0x180)])],_0x4283c3[_0x4e5a84(0x151)]),_0x4283c3[_0x4e5a84(0x1b9)]=_0x51dbb0,_0x4283c3[_0x4e5a84(0x13a)]=_0xe7b1f9,_0x4283c3[_0x4e5a84(0x133)]=_0x28fff0,Object[_0x4e5a84(0x16c)](_0x4283c3,Symbol[_0x4e5a84(0x13b)],{'value':_0x4e5a84(0x164)});}));function _0x16ae(){var _0x5ef3e2=['IConfigService','get','div','Fragment','_handleTerminate','_reporters','IDLE','presenting','DisposableCollection','override','requireSession','event$','init','values','defIds','_status$','registerSharedOperation','1em','takeUntil','Start','jsx','1165325cRxFJd','CommandType','CollaborationSessionService','NEW_CHANGESETS','useState','UniverCore','_startPresenting','univer-size-4','SessionStatus','_univerInstanceService','live-share.config','_collabSession','add','operators','@univerjs/design','getConfig','ICommandService','useEffect','memberID','_presenter','6533440AUemHH','stopPresenting','Button','getLiveShareCoordinator','univer-w-full\x20univer-mb-3\x20univer-text-sm','react/jsx-runtime','button','UniverSheetsUi','LiveShareCoordinator','pipe','NOT_FOLLOWING','onCommandExecuted','evenodd','_unitID','forwardRef','42UXrJHY','LiveShare','OFFLINE','includes','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','Stop\x20following','merge','rxjs','DesktopLiveShareController','colorChannel1','indexOf','executeCommand','concat','substring','unitId','IUIPartsService','univerjs-icon\x20univerjs-icon-','1532492kMNONp','getOwnPropertySymbols','sheet','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SetZoomRatioOperation','useObservable','type','_stopPresenting','LIVESHARE_REQUEST_HOST','children','react','_configService','toDisposable','PRESENTING','Disposable','LIVESHARE_OPERATION','_handleOperation','CollaborationEvent','icon','_handleOffline','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','createInstance','getTypeOfUnitDisposed$','UniverInstanceType','Injector','current','not-following','LiveShareIcon','from','data','stringify','default','registerDependencies','asObservable','RxDisposable','LiveShareController','React','_config','url(#$1','displayName','send','@univerjs/sheets','setConfig','@univerjs/core','following','@univerjs/sheets-ui','params','next','getUnitId','stopFollowing','DependentOn','getOwnPropertyDescriptor','throttleTime','LIVESHARE_TERMINATE','connectInjector','onRendered','_handleNewHost','mask','_handleOnline','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','toString','@univerjs/ui','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','_startLiveShareCoordinator','attrs','complete','2905mQlHdr','symbol','tryStartPresenting','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','_startFollowing','getTypeOfUnitAdded$','entries','BuiltInUIPart','startFollowing','_commandService','idle','set','_beIdle','UNIVER_SHEET','clsx','shouldShareOperation','51758EXMJba','25642BAICbI','subscribe','xlink:href','You\x27re\x20following\x20the\x20presenter','createElement','You\x27re\x20not\x20following\x20the\x20presenter','6JJmiTg','idSuffix','getInitialStates','LiveShareStatus','_mountLiveShare','prototype','393896WNxYfo','_uiPartsService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','LiveShareService','toStringTag','Inject','dispose$','SetWorksheetActiveOperation','then','onStarting','status$','_sharedOperations','function','parseProtocolChangeset','string','InsertSheetMutation','jsxs','call','IUniverInstanceService','touchDependencies','useRef','extend','none','Start\x20following','getMemberID','Present\x20this\x20document','UniverLiveSharePlugin','operations','defs','tag','_injector','0\x200\x2017\x2017','length','exports','assign','_stopFollowing','delete','mutations','_entities','className','hasOwnProperty','BehaviorSubject','presenter','trim','apply','Module','forEach','_status','live-share-icon','_handleNewChangeSets','replace','propertyIsEnumerable','18EdIXMl','defineProperty','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','dispose','registerInitialStateReporter','Dropdown','_liveShareService','offline','UniverUi','has','_collabSessionService','map','rxjs/operators','_init','useDependency','_commandDisposable','currentColor','path','getValue','fill'];_0x16ae=function(){return _0x5ef3e2;};return _0x16ae();}
1
+ function _0x3b4d(_0x9fb612,_0x872483){var _0x5102df=_0x5102();return _0x3b4d=function(_0x3b4d8b,_0x2b9f2d){_0x3b4d8b=_0x3b4d8b-0x1d7;var _0x537bce=_0x5102df[_0x3b4d8b];return _0x537bce;},_0x3b4d(_0x9fb612,_0x872483);}function _0x5102(){var _0x35c757=['complete','_beIdle','BehaviorSubject','idSuffix','@univerjs-pro/collaboration','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverLiveSharePlugin','LIVESHARE_OPERATION','getOwnPropertyDescriptor','parse','_stopFollowing','sheet','shouldShareOperation','@univerjs/ui','concat','children','type','11848956kDppAS','NEW_CHANGESETS','live-share.config','UniverUi','univer-size-4','xlink:href','Present\x20this\x20document','object','params','indexOf','_unitID','entries','getMemberID','_univerInstanceService','SessionStatus','1247632OWFZQK','offline','_handleTerminate','_collabSessionService','_handleNewChangeSets','useState','getCurrentTypeOfUnit$','colorChannel1','random','includes','useRef','pluginName','15LYpEVm','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20presenting\x20the\x20document','presenter','send','stringify','call','createInstance','live-share-icon','sessionStatus$','asObservable','NOT_FOLLOWING','getOwnPropertySymbols','startFollowing','throttleTime','React','registerSharedOperation','UniverSheetsUi','find','delete','dispose','prototype','OPERATION','none','LiveShareService','stopFollowing','IUniverInstanceService','LiveShareCoordinator','init','url(#$1','UniverProCollaboration','presenting','clsx','subscribe','CommandType','UniverSheets','LiveShareController','LIVESHARE_FETCH_OPERATIONS','SetZoomRatioOperation','useDependency','You\x27re\x20not\x20following\x20the\x20presenter','getLiveShareCoordinator','Button','not-following','IDLE','connectInjector','getConfig','Injector','tryStartPresenting','length','270121XDQjAB','2GKoyEW','ICommandService','operators','fill','override','_stopPresenting','@univerjs-pro/collaboration-client','use','trim','_handleNewHost','UniverCore','Disposable','icon','_sharedOperations','CollaborationEvent','_uiPartsService','default','forEach','LIVESHARE_NEW_HOST','_commandDisposable','Plugin','_handleOperation','symbol','You\x27re\x20following\x20the\x20presenter','text','Stop\x20following','_collabSession','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','button','@univerjs/core','LiveShare','LiveShareIcon','currentColor','_startPresenting','assign','27433dEqgpI','values','OFFLINE','tag','get','getTypeOfUnitDisposed$','UniverInstanceType','react','UNIVER_LIVE_SHARE_PLUGIN','function','string','_status','LIVESHARE_TERMINATE','2611500ZpxfQc','_configService','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','useEffect','Dropdown','react/jsx-runtime','RxDisposable','registerComponent','22yNHckq','@univerjs/design','dispose$','reverse','then','UniverCollaborationClientPlugin','2038737ZFRWYF','extend','_status$','className','1448EHrviM','defs','forwardRef','SetScrollOperation','UniverIcon','getUnitId','UniverProCollaborationClient','30ysEUQi','setConfig','rxjs','UniverProLiveShare','Stop\x20presenting','end','disposeWithMe','map','stopPresenting','_entities','following','exports','_startFollowing','You\x27are\x20offline.','div','_injector','next','rxjs/operators','_liveShareService','evenodd','clear','HEADER_MENU','_reporters','PRESENTING','amd','LIVESHARE_REQUEST_HOST','DependentOn','hasOwnProperty','has','current','executeCommand','add','defineProperty','Inject','jsx','path','_init','http://www.w3.org/2000/svg','Fragment','_config','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','idle','_startLiveShareCoordinator','attrs','getTypeOfUnitAdded$','_fetchOperations','getInitialStates','ONLINE','apply','defIds','takeUntil','data','DesktopLiveShareController','_handleOnline','requireSession','set','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','status$','mask','toDisposable','_commandService','jsxs','onStarting','_presenter','UNIVER_UNKNOWN','FOLLOWING','touchDependencies','893169oIWJmE','SetWorksheetActiveOperation','pipe','IUIPartsService','@univerjs/sheets'];_0x5102=function(){return _0x35c757;};return _0x5102();}(function(_0xe5363d,_0x4edd5a){var _0x26a12e=_0x3b4d,_0x121af0=_0xe5363d();while(!![]){try{var _0x2e46d7=-parseInt(_0x26a12e(0x1fe))/0x1*(-parseInt(_0x26a12e(0x1ff))/0x2)+parseInt(_0x26a12e(0x23d))/0x3+-parseInt(_0x26a12e(0x2b1))/0x4*(-parseInt(_0x26a12e(0x2bd))/0x5)+-parseInt(_0x26a12e(0x22f))/0x6+parseInt(_0x26a12e(0x222))/0x7*(parseInt(_0x26a12e(0x241))/0x8)+-parseInt(_0x26a12e(0x28b))/0x9*(-parseInt(_0x26a12e(0x248))/0xa)+parseInt(_0x26a12e(0x237))/0xb*(-parseInt(_0x26a12e(0x2a2))/0xc);if(_0x2e46d7===_0x4edd5a)break;else _0x121af0['push'](_0x121af0['shift']());}catch(_0x2ab52d){_0x121af0['push'](_0x121af0['shift']());}}}(_0x5102,0x75c6a),function(_0x1acc09,_0x1bad8c){var _0x566a2e=_0x3b4d;typeof exports==_0x566a2e(0x2a9)&&typeof module<'u'?_0x1bad8c(exports,require(_0x566a2e(0x205)),require(_0x566a2e(0x21c)),require(_0x566a2e(0x28f)),require(_0x566a2e(0x295)),require('@univerjs/ui'),require(_0x566a2e(0x234)),require(_0x566a2e(0x238)),require(_0x566a2e(0x229)),require(_0x566a2e(0x294)),require('rxjs'),require(_0x566a2e(0x259))):typeof define==_0x566a2e(0x22b)&&define[_0x566a2e(0x260)]?define([_0x566a2e(0x253),_0x566a2e(0x205),_0x566a2e(0x21c),_0x566a2e(0x28f),_0x566a2e(0x295),_0x566a2e(0x29e),_0x566a2e(0x234),_0x566a2e(0x238),_0x566a2e(0x229),_0x566a2e(0x294),_0x566a2e(0x24a),_0x566a2e(0x259)],_0x1bad8c):(_0x1acc09=typeof globalThis<'u'?globalThis:_0x1acc09||self,_0x1bad8c(_0x1acc09[_0x566a2e(0x24b)]={},_0x1acc09[_0x566a2e(0x247)],_0x1acc09[_0x566a2e(0x209)],_0x1acc09[_0x566a2e(0x1ef)],_0x1acc09[_0x566a2e(0x1dd)],_0x1acc09[_0x566a2e(0x2a5)],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09['UniverDesign'],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09[_0x566a2e(0x1ea)],_0x1acc09[_0x566a2e(0x24a)],_0x1acc09[_0x566a2e(0x24a)][_0x566a2e(0x201)]));}(this,function(_0x5dd97a,_0x569cba,_0x28105a,_0x177475,_0x2daf98,_0x18ad33,_0x374754,_0x37424e,_0x1bf5e5,_0x5dc2a0,_0x1c151f,_0x41010d){'use strict';var _0xa4fc0a=_0x3b4d;var _0x3ae5a5=Object['defineProperty'],_0x375d05=(_0x240806,_0x270c5a,_0x3af71b)=>_0x270c5a in _0x240806?_0x3ae5a5(_0x240806,_0x270c5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af71b}):_0x240806[_0x270c5a]=_0x3af71b,_0x10ec6c=(_0xde92c8,_0x1d1677,_0x1bdd94)=>_0x375d05(_0xde92c8,typeof _0x1d1677!=_0xa4fc0a(0x215)?_0x1d1677+'':_0x1d1677,_0x1bdd94);const _0x12c7ae=_0xa4fc0a(0x2a4),_0x4bce67={};class _0x4c9441 extends _0x28105a['Disposable']{constructor(){super(...arguments),_0x10ec6c(this,'_sharedOperations',new Set()),_0x10ec6c(this,'_reporters',new Set());}[_0xa4fc0a(0x1dc)](_0x48480f){var _0x3d89b3=_0xa4fc0a;return this[_0x3d89b3(0x20c)][_0x3d89b3(0x267)](_0x48480f),_0x28105a['toDisposable'](()=>this['_sharedOperations'][_0x3d89b3(0x1df)](_0x48480f));}['registerInitialStateReporter'](_0x1c7419){var _0x3bdf34=_0xa4fc0a;return this['_reporters'][_0x3bdf34(0x267)](_0x1c7419),_0x28105a[_0x3bdf34(0x283)](()=>this[_0x3bdf34(0x25e)]['delete'](_0x1c7419));}[_0xa4fc0a(0x29d)](_0x1704ae){var _0x317bc6=_0xa4fc0a;return this['_sharedOperations'][_0x317bc6(0x264)](_0x1704ae);}[_0xa4fc0a(0x276)](_0x15be8a){var _0x5110c8=_0xa4fc0a;return Array['from'](this['_reporters'])[_0x5110c8(0x24f)](_0x375d42=>_0x375d42(_0x15be8a));}}var _0x38f517=Object[_0xa4fc0a(0x299)],_0x4d1342=(_0x511ac6,_0x35e0f2,_0xdbaf3f,_0x395b00)=>{var _0x5f4ea7=_0xa4fc0a;for(var _0x2f40bd=_0x395b00>0x1?void 0x0:_0x395b00?_0x38f517(_0x35e0f2,_0xdbaf3f):_0x35e0f2,_0x22c32d=_0x511ac6[_0x5f4ea7(0x1fd)]-0x1,_0x5bf10a;_0x22c32d>=0x0;_0x22c32d--)(_0x5bf10a=_0x511ac6[_0x22c32d])&&(_0x2f40bd=_0x5bf10a(_0x2f40bd)||_0x2f40bd);return _0x2f40bd;},_0x58137c=(_0x5ba5b8,_0x5e9e50)=>(_0x25a512,_0x50071c)=>_0x5e9e50(_0x25a512,_0x50071c,_0x5ba5b8);let _0x3c9c15=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x406252){var _0x4d7788=_0xa4fc0a;super(),this['_liveShareService']=_0x406252,this[_0x4d7788(0x26c)]();}[_0xa4fc0a(0x26c)](){var _0x2811b3=_0xa4fc0a;[_0x2daf98[_0x2811b3(0x1f2)]['id'],_0x2daf98[_0x2811b3(0x244)]['id'],_0x177475['SetWorksheetActiveOperation']['id']]['forEach'](_0xad6f3f=>{var _0x1ab16d=_0x2811b3;this[_0x1ab16d(0x24e)](this[_0x1ab16d(0x25a)][_0x1ab16d(0x1dc)](_0xad6f3f));});}};_0x3c9c15=_0x4d1342([_0x58137c(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441))],_0x3c9c15);var _0x29272e=function(){var _0x20524d=_0xa4fc0a;return _0x29272e=Object['assign']||function(_0xed0199){var _0x437efd=_0x3b4d;for(var _0x3b8acd,_0x35faa7=0x1,_0x42c20b=arguments[_0x437efd(0x1fd)];_0x35faa7<_0x42c20b;_0x35faa7++){_0x3b8acd=arguments[_0x35faa7];for(var _0x4c3be6 in _0x3b8acd)Object['prototype'][_0x437efd(0x263)][_0x437efd(0x2c4)](_0x3b8acd,_0x4c3be6)&&(_0xed0199[_0x4c3be6]=_0x3b8acd[_0x4c3be6]);}return _0xed0199;},_0x29272e[_0x20524d(0x278)](this,arguments);},_0x1460f1=function(_0x34f6c3,_0xabfec7){var _0x2818ff=_0xa4fc0a,_0x52eaa4={};for(var _0x254024 in _0x34f6c3)Object[_0x2818ff(0x1e1)][_0x2818ff(0x263)][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024)&&_0xabfec7[_0x2818ff(0x2ab)](_0x254024)<0x0&&(_0x52eaa4[_0x254024]=_0x34f6c3[_0x254024]);if(_0x34f6c3!=null&&typeof Object[_0x2818ff(0x1d8)]==_0x2818ff(0x22b)){for(var _0x165cd6=0x0,_0x254024=Object[_0x2818ff(0x1d8)](_0x34f6c3);_0x165cd6<_0x254024[_0x2818ff(0x1fd)];_0x165cd6++)_0xabfec7['indexOf'](_0x254024[_0x165cd6])<0x0&&Object[_0x2818ff(0x1e1)]['propertyIsEnumerable'][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024[_0x165cd6])&&(_0x52eaa4[_0x254024[_0x165cd6]]=_0x34f6c3[_0x254024[_0x165cd6]]);}return _0x52eaa4;},_0x5a9e4e=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x256276,_0x2d531f){var _0x3c76c9=_0xa4fc0a,_0x2d2b41=_0x256276[_0x3c76c9(0x20b)],_0x26d981=_0x256276['id'],_0x402c8f=_0x256276[_0x3c76c9(0x240)],_0x2c63a0=_0x256276[_0x3c76c9(0x23e)],_0x4779c7=_0x1460f1(_0x256276,['icon','id',_0x3c76c9(0x240),_0x3c76c9(0x23e)]),_0x483e40='univerjs-icon\x20univerjs-icon-'[_0x3c76c9(0x29f)](_0x26d981,'\x20')[_0x3c76c9(0x29f)](_0x402c8f||'')[_0x3c76c9(0x207)](),_0x4a5457=_0x1bf5e5[_0x3c76c9(0x2bb)]('_'[_0x3c76c9(0x29f)](_0x30dbcd()));return _0x2a1b41(_0x2d2b41,''[_0x3c76c9(0x29f)](_0x26d981),{'defIds':_0x2d2b41[_0x3c76c9(0x279)],'idSuffix':_0x4a5457[_0x3c76c9(0x265)]},_0x29272e({'ref':_0x2d531f,'className':_0x483e40},_0x4779c7),_0x2c63a0);});function _0x2a1b41(_0x40f8ee,_0x3665a7,_0x18d8ce,_0x24d25c,_0x77370b){var _0xb665f6=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x40f8ee[_0xb665f6(0x225)],_0x29272e(_0x29272e({'key':_0x3665a7},_0x53e725(_0x40f8ee,_0x18d8ce,_0x77370b)),_0x24d25c),(_0x432786(_0x40f8ee,_0x18d8ce)['children']||[])[_0xb665f6(0x24f)](function(_0x192632,_0x1edfa6){var _0xfa6abd=_0xb665f6;return _0x2a1b41(_0x192632,''['concat'](_0x3665a7,'-')[_0xfa6abd(0x29f)](_0x40f8ee[_0xfa6abd(0x225)],'-')[_0xfa6abd(0x29f)](_0x1edfa6),_0x18d8ce,void 0x0,_0x77370b);}));}function _0x53e725(_0x335315,_0x183808,_0x30ff8a){var _0x276e46=_0xa4fc0a,_0x52e79e=_0x29272e({},_0x335315[_0x276e46(0x273)]);_0x30ff8a!=null&&_0x30ff8a[_0x276e46(0x2b8)]&&_0x52e79e[_0x276e46(0x202)]==='colorChannel1'&&(_0x52e79e['fill']=_0x30ff8a['colorChannel1']),_0x335315[_0x276e46(0x225)]==='mask'&&_0x52e79e['id']&&(_0x52e79e['id']=_0x52e79e['id']+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)['forEach'](function(_0x43895e){var _0x5483e7=_0x276e46,_0x205ba6=_0x43895e[0x0],_0x43c152=_0x43895e[0x1];_0x205ba6===_0x5483e7(0x282)&&typeof _0x43c152==_0x5483e7(0x22c)&&(_0x52e79e[_0x205ba6]=_0x43c152['replace'](/url\(#(.*)\)/,_0x5483e7(0x1e9)[_0x5483e7(0x29f)](_0x183808['idSuffix'],')')));});var _0x304b54=_0x183808[_0x276e46(0x279)];return!_0x304b54||_0x304b54[_0x276e46(0x1fd)]===0x0||(_0x335315[_0x276e46(0x225)]===_0x276e46(0x206)&&_0x52e79e[_0x276e46(0x2a7)]&&(_0x52e79e[_0x276e46(0x2a7)]=_0x52e79e[_0x276e46(0x2a7)]+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)[_0x276e46(0x210)](function(_0x20ae29){var _0xdfc3fb=_0x276e46,_0x1bd65d=_0x20ae29[0x0],_0x16fb9e=_0x20ae29[0x1];typeof _0x16fb9e==_0xdfc3fb(0x22c)&&(_0x52e79e[_0x1bd65d]=_0x16fb9e['replace'](/url\(#(.*)\)/,_0xdfc3fb(0x1e9)['concat'](_0x183808[_0xdfc3fb(0x293)],')')));})),_0x52e79e;}function _0x432786(_0x2e597c,_0x2e38f7){var _0x583310=_0xa4fc0a,_0x5df16d,_0x4b5818=_0x2e38f7[_0x583310(0x279)];return!_0x4b5818||_0x4b5818[_0x583310(0x1fd)]===0x0?_0x2e597c:_0x2e597c[_0x583310(0x225)]===_0x583310(0x242)&&(!((_0x5df16d=_0x2e597c[_0x583310(0x2a0)])===null||_0x5df16d===void 0x0)&&_0x5df16d[_0x583310(0x1fd)])?_0x29272e(_0x29272e({},_0x2e597c),{'children':_0x2e597c[_0x583310(0x2a0)][_0x583310(0x24f)](function(_0x2b64c5){var _0x55de35=_0x583310;return typeof _0x2b64c5['attrs']['id']==_0x55de35(0x22c)&&_0x4b5818&&_0x4b5818[_0x55de35(0x2ba)](_0x2b64c5[_0x55de35(0x273)]['id'])?_0x29272e(_0x29272e({},_0x2b64c5),{'attrs':_0x29272e(_0x29272e({},_0x2b64c5['attrs']),{'id':_0x2b64c5[_0x55de35(0x273)]['id']+_0x2e38f7[_0x55de35(0x293)]})}):_0x2b64c5;})}):_0x2e597c;}function _0x30dbcd(){var _0x38ed7a=_0xa4fc0a;return Math[_0x38ed7a(0x2b9)]()['toString'](0x24)['substring'](0x2,0x8);}_0x5a9e4e['displayName']=_0xa4fc0a(0x245);var _0x3836ef={'tag':'svg','attrs':{'xmlns':_0xa4fc0a(0x26d),'fill':_0xa4fc0a(0x1e3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x231)}},{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x280),'fillRule':_0xa4fc0a(0x25b),'clipRule':_0xa4fc0a(0x25b)}}]},_0x159610=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x3e5498,_0x454707){var _0x452325=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x5a9e4e,Object[_0x452325(0x221)]({},_0x3e5498,{'id':_0x452325(0x2c6),'ref':_0x454707,'icon':_0x3836ef}));});_0x159610['displayName']=_0xa4fc0a(0x21e);var _0x2084a3=Object[_0xa4fc0a(0x299)],_0x316b9d=(_0x36a3b4,_0x1bf6f0,_0x567db5,_0x28d226)=>{var _0x14561f=_0xa4fc0a;for(var _0x235306=_0x28d226>0x1?void 0x0:_0x28d226?_0x2084a3(_0x1bf6f0,_0x567db5):_0x1bf6f0,_0x513fd0=_0x36a3b4[_0x14561f(0x1fd)]-0x1,_0x136110;_0x513fd0>=0x0;_0x513fd0--)(_0x136110=_0x36a3b4[_0x513fd0])&&(_0x235306=_0x136110(_0x235306)||_0x235306);return _0x235306;},_0x5886c5=(_0x3a18be,_0x4ad736)=>(_0x3f1f4b,_0x1eabed)=>_0x4ad736(_0x3f1f4b,_0x1eabed,_0x3a18be);_0x5dd97a[_0xa4fc0a(0x1f0)]=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x171d98,_0x5adb82,_0x2823d9){var _0x1092e2=_0xa4fc0a;super(),_0x10ec6c(this,_0x1092e2(0x251),new Map()),(this[_0x1092e2(0x2af)]=_0x171d98,this[_0x1092e2(0x257)]=_0x5adb82,this[_0x1092e2(0x2b4)]=_0x2823d9,this[_0x1092e2(0x26c)]());}async[_0xa4fc0a(0x1f5)](_0x5e7f3f){var _0x485a6f=_0xa4fc0a;return this[_0x485a6f(0x251)][_0x485a6f(0x264)](_0x5e7f3f)||await this[_0x485a6f(0x272)](_0x5e7f3f),this[_0x485a6f(0x251)][_0x485a6f(0x226)](_0x5e7f3f);}[_0xa4fc0a(0x26c)](){var _0x22c05d=_0xa4fc0a;this[_0x22c05d(0x2af)][_0x22c05d(0x274)](_0x28105a[_0x22c05d(0x228)][_0x22c05d(0x2be)])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))['subscribe'](async _0x59e135=>{var _0x3158ec=_0x22c05d;const _0x48e96e=_0x59e135[_0x3158ec(0x246)]();this[_0x3158ec(0x251)][_0x3158ec(0x264)](_0x48e96e)||this['_startLiveShareCoordinator'](_0x48e96e);}),this[_0x22c05d(0x2af)][_0x22c05d(0x227)](_0x28105a[_0x22c05d(0x228)]['UNIVER_SHEET'])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))[_0x22c05d(0x1ed)](_0x33dd6a=>{var _0x3570ac=_0x22c05d;const _0x52abe2=_0x33dd6a[_0x3570ac(0x246)](),_0xe92198=this['_entities'][_0x3570ac(0x226)](_0x52abe2);_0xe92198==null||_0xe92198[_0x3570ac(0x1e0)]();});}async['_startLiveShareCoordinator'](_0x249d03){var _0x4d86aa=_0xa4fc0a;const _0xefa54a=await this[_0x4d86aa(0x2b4)][_0x4d86aa(0x27e)](_0x249d03),_0x518782=this['_injector'][_0x4d86aa(0x2c5)](_0x5dd97a['LiveShareCoordinator'],_0x249d03,_0xefa54a);return _0x518782[_0x4d86aa(0x1e8)](),this['_entities'][_0x4d86aa(0x27f)](_0x249d03,_0x518782),_0x518782;}},_0x5dd97a[_0xa4fc0a(0x1f0)]=_0x316b9d([_0x5886c5(0x0,_0x28105a[_0xa4fc0a(0x1e6)]),_0x5886c5(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x5886c5(0x2,_0x28105a[_0xa4fc0a(0x269)](_0x569cba['CollaborationSessionService']))],_0x5dd97a[_0xa4fc0a(0x1f0)]);var _0x3f2ead=(_0x40049a=>(_0x40049a[_0xa4fc0a(0x224)]=_0xa4fc0a(0x2b2),_0x40049a[_0xa4fc0a(0x1f8)]='idle',_0x40049a[_0xa4fc0a(0x289)]=_0xa4fc0a(0x252),_0x40049a['NOT_FOLLOWING']=_0xa4fc0a(0x1f7),_0x40049a[_0xa4fc0a(0x25f)]='presenting',_0x40049a))(_0x3f2ead||{});const _0x54b8dc=_0xa4fc0a(0x2bf),_0x162342=0xc8;_0x5dd97a['LiveShareCoordinator']=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x82106b,_0x15246e,_0x119aad,_0x54ec71,_0x35b69b){var _0x2cae95=_0xa4fc0a;super(),_0x10ec6c(this,'_status$',new _0x1c151f[(_0x2cae95(0x292))]('idle')),_0x10ec6c(this,_0x2cae95(0x281),this[_0x2cae95(0x23f)][_0x2cae95(0x2c8)]()),_0x10ec6c(this,'_init',!0x1),_0x10ec6c(this,_0x2cae95(0x212),null),_0x10ec6c(this,'_presenter',null),(this['_unitID']=_0x82106b,this[_0x2cae95(0x219)]=_0x15246e,this[_0x2cae95(0x230)]=_0x119aad,this[_0x2cae95(0x25a)]=_0x54ec71,this[_0x2cae95(0x284)]=_0x35b69b);}get[_0xa4fc0a(0x22d)](){return this['_status$']['getValue']();}[_0xa4fc0a(0x1e0)](){var _0x33232d=_0xa4fc0a,_0x3af794;(_0x3af794=this['_commandDisposable'])==null||_0x3af794[_0x33232d(0x1e0)](),this[_0x33232d(0x23f)][_0x33232d(0x258)]('idle'),this[_0x33232d(0x23f)][_0x33232d(0x290)]();}[_0xa4fc0a(0x1e8)](){var _0x519fba=_0xa4fc0a;this[_0x519fba(0x26c)]||(this[_0x519fba(0x26c)]=!0x0,this[_0x519fba(0x219)][_0x519fba(0x2c7)][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x56c7d8=>{var _0x258785=_0x519fba;switch(_0x56c7d8){case _0x569cba[_0x258785(0x2b0)][_0x258785(0x224)]:this['_handleOffline']();break;case _0x569cba[_0x258785(0x2b0)][_0x258785(0x277)]:this[_0x258785(0x27d)]();break;}}),this[_0x519fba(0x219)]['event$'][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x59cf28=>{var _0x1d6293=_0x519fba;const {eventID:_0x78f57}=_0x59cf28;switch(_0x78f57){case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x211)]:this[_0x1d6293(0x208)](_0x59cf28);break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x298)]:this[_0x1d6293(0x214)](_0x59cf28);break;case _0x5dc2a0['CollaborationEvent'][_0x1d6293(0x22e)]:this[_0x1d6293(0x2b3)]();break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x2a3)]:this[_0x1d6293(0x2b5)](_0x59cf28);break;}}));}[_0xa4fc0a(0x1fc)](){var _0xfb1761=_0xa4fc0a;this[_0xfb1761(0x219)][_0xfb1761(0x2c2)]({'eventID':_0x5dc2a0[_0xfb1761(0x20d)][_0xfb1761(0x261)],'data':{'unitID':this[_0xfb1761(0x2ac)],'userID':this[_0xfb1761(0x219)][_0xfb1761(0x2ae)]()}},this[_0xfb1761(0x2ac)]);}[_0xa4fc0a(0x250)](){var _0x3912e9=_0xa4fc0a;this[_0x3912e9(0x22d)]===_0x3912e9(0x1eb)&&(this['_status$']['next'](_0x3912e9(0x271)),this['_collabSession']['send']({'eventID':_0x5dc2a0[_0x3912e9(0x20d)][_0x3912e9(0x22e)],'data':{'unitID':this[_0x3912e9(0x2ac)]}},this[_0x3912e9(0x2ac)]));}['startFollowing'](){var _0x2d22e6=_0xa4fc0a;this[_0x2d22e6(0x22d)]===_0x2d22e6(0x1f7)&&(this['_status$'][_0x2d22e6(0x258)](_0x2d22e6(0x252)),this[_0x2d22e6(0x254)]());}[_0xa4fc0a(0x1e5)](){var _0x4d78ef=_0xa4fc0a;this['_status']===_0x4d78ef(0x252)&&this[_0x4d78ef(0x29b)]();}['_handleNewHost'](_0xb83c52){var _0x2c7b75=_0xa4fc0a;const {presenter:_0x1fbcda}=_0xb83c52[_0x2c7b75(0x27b)],_0x33ab15=this[_0x2c7b75(0x219)][_0x2c7b75(0x2ae)]();this[_0x2c7b75(0x287)]=_0x1fbcda,_0x1fbcda===_0x33ab15?(this[_0x2c7b75(0x29b)](),this[_0x2c7b75(0x220)]()):this['_status']!==_0x2c7b75(0x1f7)&&(this[_0x2c7b75(0x204)](),this[_0x2c7b75(0x254)]());}[_0xa4fc0a(0x275)](){var _0x549678=_0xa4fc0a;const _0x423d91={'eventID':_0x5dc2a0[_0x549678(0x20d)][_0x549678(0x1f1)]};this[_0x549678(0x219)][_0x549678(0x2c2)](_0x423d91,this[_0x549678(0x2ac)]);}['_handleTerminate'](){var _0x178e7b=_0xa4fc0a;this['_presenter']=null,this[_0x178e7b(0x22d)]!=='presenting'&&this[_0x178e7b(0x291)]();}['_handleNewChangeSets'](_0x246e47){var _0x2811f4=_0xa4fc0a;if(this[_0x2811f4(0x22d)]===_0x2811f4(0x252)&&this[_0x2811f4(0x287)]===_0x246e47['data']['memberID']){const _0x3a4f2d=_0x5dc2a0['parseProtocolChangeset'](_0x246e47['data'])['mutations'][_0x2811f4(0x23a)]()[_0x2811f4(0x1de)](_0x1fd13e=>_0x1fd13e['id']===_0x177475['InsertSheetMutation']['id']);if(_0x3a4f2d){const _0xff34ea=_0x3a4f2d[_0x2811f4(0x2aa)]['unitId'],_0x19ce52=_0x3a4f2d[_0x2811f4(0x2aa)][_0x2811f4(0x29c)]['id'];setTimeout(()=>{var _0x527e01=_0x2811f4;this[_0x527e01(0x284)][_0x527e01(0x266)](_0x177475[_0x527e01(0x28c)]['id'],{'unitId':_0xff34ea,'subUnitId':_0x19ce52},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2ea300=_0xa4fc0a;this['_status$']['next'](_0x2ea300(0x1eb));const _0x4c0b0d=new Map(),_0xfd460a=this[_0x2ea300(0x212)]=new _0x28105a['DisposableCollection']();_0xfd460a[_0x2ea300(0x267)](_0x28105a[_0x2ea300(0x283)](()=>{var _0x557ba4=_0x2ea300;_0x4c0b0d[_0x557ba4(0x210)](_0x12a6a0=>_0x12a6a0['complete']()),_0x4c0b0d[_0x557ba4(0x25c)]();})),_0xfd460a[_0x2ea300(0x267)](this['_commandService']['onCommandExecuted'](_0x27053c=>{var _0x13dec0=_0x2ea300,_0x47d423;if(_0x27053c[_0x13dec0(0x2a1)]!==_0x28105a[_0x13dec0(0x1ee)][_0x13dec0(0x1e2)]||!this[_0x13dec0(0x25a)][_0x13dec0(0x29d)](_0x27053c['id']))return;const {id:_0x4e1c1e}=_0x27053c;let _0x31d40d;_0x4c0b0d[_0x13dec0(0x264)](_0x4e1c1e)?_0x31d40d=_0x4c0b0d[_0x13dec0(0x226)](_0x4e1c1e):(_0x31d40d=new _0x1c151f['Subject'](),_0x4c0b0d['set'](_0x4e1c1e,_0x31d40d),_0x31d40d[_0x13dec0(0x28d)](_0x41010d[_0x13dec0(0x1da)]((_0x47d423=this['_configService'][_0x13dec0(0x1fa)](_0x54b8dc))!=null?_0x47d423:_0x162342,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13dec0(0x1ed)](_0x132591=>{var _0x5c931a=_0x13dec0;this[_0x5c931a(0x219)][_0x5c931a(0x2c2)]({'eventID':_0x5dc2a0[_0x5c931a(0x20d)][_0x5c931a(0x298)],'data':{'unitID':this['_unitID'],'operations':{[_0x132591['id']]:{'id':_0x132591['id'],'params':JSON[_0x5c931a(0x2c3)](_0x132591[_0x5c931a(0x2aa)])}}}},this['_unitID']);})),_0x31d40d[_0x13dec0(0x258)](_0x27053c);})),this[_0x2ea300(0x25a)][_0x2ea300(0x276)](this[_0x2ea300(0x2ac)])[_0x2ea300(0x210)](_0x572059=>this[_0x2ea300(0x219)]['send']({'eventID':_0x5dc2a0[_0x2ea300(0x20d)][_0x2ea300(0x298)],'data':{'unitID':this[_0x2ea300(0x2ac)],'operations':{[_0x572059['id']]:{'id':_0x572059['id'],'params':JSON[_0x2ea300(0x2c3)](_0x572059[_0x2ea300(0x2aa)])}}}},this['_unitID']));}[_0xa4fc0a(0x204)](){var _0x358337=_0xa4fc0a,_0x3a2426;this[_0x358337(0x23f)][_0x358337(0x258)](_0x358337(0x271)),(_0x3a2426=this[_0x358337(0x212)])==null||_0x3a2426[_0x358337(0x1e0)](),this[_0x358337(0x212)]=null;}[_0xa4fc0a(0x254)](){var _0x4e0be5=_0xa4fc0a,_0x2fc700;(_0x2fc700=this[_0x4e0be5(0x212)])==null||_0x2fc700[_0x4e0be5(0x1e0)](),this[_0x4e0be5(0x23f)][_0x4e0be5(0x258)](_0x4e0be5(0x252));}[_0xa4fc0a(0x291)](){var _0x3b21ff=_0xa4fc0a,_0x46b428;this['_status$'][_0x3b21ff(0x258)](_0x3b21ff(0x271)),(_0x46b428=this[_0x3b21ff(0x212)])==null||_0x46b428[_0x3b21ff(0x1e0)](),this[_0x3b21ff(0x212)]=null;}[_0xa4fc0a(0x29b)](){var _0x213623=_0xa4fc0a,_0x2cadef;this['_status$'][_0x213623(0x258)]('not-following'),(_0x2cadef=this[_0x213623(0x212)])==null||_0x2cadef[_0x213623(0x1e0)]();}[_0xa4fc0a(0x214)](_0xac2d2e){var _0x178cdc=_0xa4fc0a;if([_0x178cdc(0x1eb),_0x178cdc(0x1f7),_0x178cdc(0x2b2)][_0x178cdc(0x2ba)](this[_0x178cdc(0x22d)])||!_0xac2d2e[_0x178cdc(0x27b)][_0x178cdc(0x2c1)]||_0xac2d2e['data'][_0x178cdc(0x2c1)]===this[_0x178cdc(0x219)][_0x178cdc(0x2ae)]())return;this['_status']==='idle'&&this[_0x178cdc(0x254)]();const _0x5450f5=_0xac2d2e[_0x178cdc(0x27b)]['operations'];Object[_0x178cdc(0x223)](_0x5450f5)[_0x178cdc(0x210)](_0x538947=>{var _0xf4e094=_0x178cdc;this['_commandService'][_0xf4e094(0x266)](_0x538947['id'],_0x538947['params']?JSON[_0xf4e094(0x29a)](_0x538947[_0xf4e094(0x2aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1195c0=_0xa4fc0a,_0xd64bb0;this[_0x1195c0(0x23f)][_0x1195c0(0x258)](_0x1195c0(0x2b2)),(_0xd64bb0=this['_commandDisposable'])==null||_0xd64bb0[_0x1195c0(0x1e0)]();}['_handleOnline'](){var _0x4e6bc7=_0xa4fc0a;this[_0x4e6bc7(0x23f)]['next'](_0x4e6bc7(0x271)),this[_0x4e6bc7(0x275)]();}},_0x5dd97a[_0xa4fc0a(0x1e7)]=_0x316b9d([_0x5886c5(0x2,_0x28105a['IConfigService']),_0x5886c5(0x3,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441)),_0x5886c5(0x4,_0x28105a[_0xa4fc0a(0x200)])],_0x5dd97a[_0xa4fc0a(0x1e7)]);function _0x44498e(){var _0x3fb542=_0xa4fc0a;const _0x4234ca=_0x18ad33['useDependency'](_0x5dd97a[_0x3fb542(0x1f0)]),_0x3fe0bf=_0x18ad33[_0x3fb542(0x1f3)](_0x28105a[_0x3fb542(0x1e6)]),_0x199c58=_0x18ad33['useObservable'](()=>_0x3fe0bf[_0x3fb542(0x2b7)](_0x28105a['UniverInstanceType'][_0x3fb542(0x2be)]),void 0x0,!0x1,[]),[_0x5b4068,_0x24d656]=_0x1bf5e5[_0x3fb542(0x2b6)](null),[_0x4ef9e5,_0x5770b0]=_0x1bf5e5['useState'](_0x3f2ead[_0x3fb542(0x1f8)]),_0x2796f0=_0x1bf5e5[_0x3fb542(0x2bb)](null);return _0x1bf5e5[_0x3fb542(0x232)](()=>(_0x199c58&&_0x4234ca['getLiveShareCoordinator'](_0x199c58[_0x3fb542(0x246)]())[_0x3fb542(0x23b)](_0x3522c9=>{var _0xbf3e79=_0x3fb542;_0x24d656(_0x3522c9),_0x2796f0[_0xbf3e79(0x265)]=_0x3522c9['status$'][_0xbf3e79(0x1ed)](_0x38dd56=>{_0x5770b0(_0x38dd56);});}),()=>{var _0x1c012d=_0x3fb542,_0x4db921;(_0x4db921=_0x2796f0['current'])==null||_0x4db921['unsubscribe'](),_0x2796f0[_0x1c012d(0x265)]=null;}),[_0x199c58,_0x4234ca]),_0x5b4068?_0x374754['jsx'](_0x37424e[_0x3fb542(0x233)],{'align':_0x3fb542(0x24d),'disabled':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'className':_0x3fb542(0x270),'overlay':_0x374754[_0x3fb542(0x26a)](_0x4e9f51,{'status':_0x4ef9e5,'coordinator':_0x5b4068}),'children':_0x374754[_0x3fb542(0x26a)](_0x3fb542(0x21b),{'className':_0x37424e[_0x3fb542(0x1ec)](_0x3fb542(0x21a),{'univer-cursor-not-allowed':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ef9e5!==_0x3f2ead['OFFLINE']}),'type':_0x3fb542(0x21b),'children':_0x374754[_0x3fb542(0x26a)](_0x159610,{'className':_0x3fb542(0x2a6)})})}):null;}function _0x4e9f51(_0x37481e){var _0xa6bb8=_0xa4fc0a;const {status:_0x38286d,coordinator:_0x2df0cb}=_0x37481e;switch(_0x38286d){case _0x3f2ead[_0xa6bb8(0x1f8)]:return _0x374754[_0xa6bb8(0x26a)](_0xb63d96,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x289)]:return _0x374754['jsx'](_0x149739,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x1d7)]:return _0x374754[_0xa6bb8(0x26a)](_0x487723,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x224)]:return _0x374754[_0xa6bb8(0x26a)](_0x5adcbd,{});case _0x3f2ead[_0xa6bb8(0x25f)]:return _0x374754[_0xa6bb8(0x26a)](_0x50a248,{'coordinator':_0x2df0cb});default:return null;}}function _0xb63d96(_0xc570bd){var _0x4be8a1=_0xa4fc0a;const {coordinator:_0x444d31}=_0xc570bd;return _0x374754[_0x4be8a1(0x285)](_0x374754[_0x4be8a1(0x26e)],{'children':[_0x374754[_0x4be8a1(0x26a)](_0x4be8a1(0x256),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4be8a1(0x2a8)}),_0x374754['jsx'](_0x37424e[_0x4be8a1(0x1f6)],{'onClick':()=>_0x444d31[_0x4be8a1(0x1fc)](),'children':'Start'})]});}function _0x149739(_0x3c5305){var _0x4801da=_0xa4fc0a;const {coordinator:_0x4b6b8a}=_0x3c5305;return _0x374754['jsxs'](_0x374754[_0x4801da(0x26e)],{'children':[_0x374754[_0x4801da(0x26a)](_0x4801da(0x256),{'className':_0x4801da(0x296),'children':_0x4801da(0x216)}),_0x374754[_0x4801da(0x26a)](_0x37424e[_0x4801da(0x1f6)],{'onClick':()=>_0x4b6b8a['stopFollowing'](),'children':_0x4801da(0x218)})]});}function _0x487723(_0xcc0352){var _0x465b30=_0xa4fc0a;const {coordinator:_0x366b14}=_0xcc0352;return _0x374754[_0x465b30(0x285)](_0x374754['Fragment'],{'children':[_0x374754['jsx']('div',{'className':_0x465b30(0x296),'children':_0x465b30(0x1f4)}),_0x374754[_0x465b30(0x26a)](_0x37424e[_0x465b30(0x1f6)],{'variant':_0x465b30(0x217),'onClick':()=>_0x366b14[_0x465b30(0x1d9)](),'children':'Start\x20following'})]});}function _0x50a248(_0x20aa80){var _0x367a65=_0xa4fc0a;const {coordinator:_0x3db18c}=_0x20aa80;return _0x374754[_0x367a65(0x285)](_0x374754[_0x367a65(0x26e)],{'children':[_0x374754[_0x367a65(0x26a)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x367a65(0x2c0)}),_0x374754['jsx'](_0x37424e['Button'],{'variant':_0x367a65(0x20f),'onClick':()=>_0x3db18c[_0x367a65(0x250)](),'children':_0x367a65(0x24c)})]});}function _0x5adcbd(){var _0x178cc9=_0xa4fc0a;return _0x374754[_0x178cc9(0x26a)](_0x374754[_0x178cc9(0x26e)],{'children':_0x178cc9(0x255)});}var _0x45bf44=Object[_0xa4fc0a(0x299)],_0x5b02a8=(_0x32fe4b,_0x5d65a1,_0x15b49d,_0x104ebe)=>{var _0x456fbf=_0xa4fc0a;for(var _0x2f96b4=_0x104ebe>0x1?void 0x0:_0x104ebe?_0x45bf44(_0x5d65a1,_0x15b49d):_0x5d65a1,_0x55204f=_0x32fe4b[_0x456fbf(0x1fd)]-0x1,_0x251913;_0x55204f>=0x0;_0x55204f--)(_0x251913=_0x32fe4b[_0x55204f])&&(_0x2f96b4=_0x251913(_0x2f96b4)||_0x2f96b4);return _0x2f96b4;},_0x30db3e=(_0x3e35fa,_0x220a09)=>(_0x1c724e,_0x413a2c)=>_0x220a09(_0x1c724e,_0x413a2c,_0x3e35fa);_0x5dd97a['DesktopLiveShareController']=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x525b09,_0x5eb675){var _0x3f255e=_0xa4fc0a;super(),this[_0x3f255e(0x257)]=_0x525b09,this[_0x3f255e(0x20e)]=_0x5eb675,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x58aecc=_0xa4fc0a;this['disposeWithMe'](this[_0x58aecc(0x20e)][_0x58aecc(0x236)](_0x18ad33['BuiltInUIPart'][_0x58aecc(0x25d)],()=>_0x18ad33[_0x58aecc(0x1f9)](_0x44498e,this[_0x58aecc(0x257)])));}},_0x5dd97a[_0xa4fc0a(0x27c)]=_0x5b02a8([_0x30db3e(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x30db3e(0x1,_0x18ad33[_0xa4fc0a(0x28e)])],_0x5dd97a['DesktopLiveShareController']);var _0xdc6460=Object[_0xa4fc0a(0x268)],_0x136e13=Object[_0xa4fc0a(0x299)],_0x396d71=(_0x2d89c6,_0x35fd39,_0xba6367)=>_0x35fd39 in _0x2d89c6?_0xdc6460(_0x2d89c6,_0x35fd39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba6367}):_0x2d89c6[_0x35fd39]=_0xba6367,_0x31e289=(_0x52dfd6,_0x3cc1d7,_0x224c30,_0x4be3d3)=>{for(var _0x4e814c=_0x4be3d3>0x1?void 0x0:_0x4be3d3?_0x136e13(_0x3cc1d7,_0x224c30):_0x3cc1d7,_0x147589=_0x52dfd6['length']-0x1,_0x2668fe;_0x147589>=0x0;_0x147589--)(_0x2668fe=_0x52dfd6[_0x147589])&&(_0x4e814c=_0x2668fe(_0x4e814c)||_0x4e814c);return _0x4e814c;},_0x101943=(_0x205384,_0x5e43fd)=>(_0x1ab7da,_0x442b0d)=>_0x5e43fd(_0x1ab7da,_0x442b0d,_0x205384),_0x4fd610=(_0x4b7548,_0x12ba63,_0x562c09)=>_0x396d71(_0x4b7548,typeof _0x12ba63!=_0xa4fc0a(0x215)?_0x12ba63+'':_0x12ba63,_0x562c09);const _0x237a50=_0xa4fc0a(0x22a);_0x5dd97a['UniverLiveSharePlugin']=class extends _0x28105a[_0xa4fc0a(0x213)]{constructor(_0x44d036=_0x4bce67,_0x224a33,_0x34825a){var _0x33d5cc=_0xa4fc0a;super(),this['_config']=_0x44d036,this[_0x33d5cc(0x257)]=_0x224a33,this[_0x33d5cc(0x230)]=_0x34825a;const {..._0x86b0d9}=_0x28105a['merge']({},_0x4bce67,this[_0x33d5cc(0x26f)]);this['_configService'][_0x33d5cc(0x249)](_0x12c7ae,_0x86b0d9);}[_0xa4fc0a(0x286)](){var _0x5ec981=_0xa4fc0a;_0x28105a['registerDependencies'](this['_injector'],_0x28105a['mergeOverrideWithDependencies']([[_0x4c9441],[_0x5dd97a[_0x5ec981(0x1f0)]],[_0x3c9c15],[_0x5dd97a['DesktopLiveShareController']]],this[_0x5ec981(0x26f)][_0x5ec981(0x203)])),_0x28105a[_0x5ec981(0x28a)](this[_0x5ec981(0x257)],[[_0x3c9c15]]);}['onRendered'](){var _0x2e26a7=_0xa4fc0a;_0x28105a[_0x2e26a7(0x28a)](this[_0x2e26a7(0x257)],[[_0x5dd97a[_0x2e26a7(0x27c)]]]);}},_0x4fd610(_0x5dd97a[_0xa4fc0a(0x297)],_0xa4fc0a(0x2a1),_0x28105a[_0xa4fc0a(0x228)][_0xa4fc0a(0x288)]),_0x4fd610(_0x5dd97a['UniverLiveSharePlugin'],_0xa4fc0a(0x2bc),_0x237a50),_0x5dd97a['UniverLiveSharePlugin']=_0x31e289([_0x28105a[_0xa4fc0a(0x262)](_0x569cba[_0xa4fc0a(0x23c)]),_0x101943(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x101943(0x2,_0x28105a['IConfigService'])],_0x5dd97a['UniverLiveSharePlugin']),_0x5dd97a[_0xa4fc0a(0x21d)]=_0x44498e,_0x5dd97a[_0xa4fc0a(0x1e4)]=_0x4c9441,_0x5dd97a['LiveShareStatus']=_0x3f2ead,Object[_0xa4fc0a(0x268)](_0x5dd97a,Symbol['toStringTag'],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506081606",
3
+ "version": "0.8.0-nightly.202506101607",
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": "0.8.0-nightly.202506081606",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506081606",
52
- "@univerjs/core": "0.8.0-nightly.202506081606",
53
- "@univerjs/sheets": "0.8.0-nightly.202506081606",
54
- "@univerjs/design": "0.8.0-nightly.202506081606",
55
- "@univerjs/sheets-ui": "0.8.0-nightly.202506081606",
56
- "@univerjs/ui": "0.8.0-nightly.202506081606"
50
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506101607",
51
+ "@univerjs/design": "0.8.0-nightly.202506101607",
52
+ "@univerjs/core": "0.8.0-nightly.202506101607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506101607",
54
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506101607",
55
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506101607",
56
+ "@univerjs/ui": "0.8.0-nightly.202506101607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",