@univerjs-pro/live-share 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2d7547=_0x1c47;(function(_0x2a9431,_0x266c22){const _0x2bdbdb=_0x1c47,_0x2cceb9=_0x2a9431();while(!![]){try{const _0x2f094a=parseInt(_0x2bdbdb(0xfa))/0x1+parseInt(_0x2bdbdb(0xef))/0x2*(-parseInt(_0x2bdbdb(0xeb))/0x3)+parseInt(_0x2bdbdb(0xf0))/0x4*(-parseInt(_0x2bdbdb(0xf4))/0x5)+parseInt(_0x2bdbdb(0x117))/0x6+-parseInt(_0x2bdbdb(0xec))/0x7+-parseInt(_0x2bdbdb(0xf5))/0x8*(parseInt(_0x2bdbdb(0x103))/0x9)+parseInt(_0x2bdbdb(0x109))/0xa;if(_0x2f094a===_0x266c22)break;else _0x2cceb9['push'](_0x2cceb9['shift']());}catch(_0x3895d9){_0x2cceb9['push'](_0x2cceb9['shift']());}}}(_0x1831,0x86339));function _0x1831(){const _0x27803a=['232TlfTTg','FUniver','IUniverInstanceService','extend','47795akFJpe','72JhkMpa','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_liveShareController','string','512168oldCLV','getStatus','LiveShareController','stopFollowing','default','getLiveShareCoordinatorSync','stopPresenting','constructor','UNIVER_SHEET','1012131pwtsjN','getUnitId','getCurrentUnitOfType','object','No\x20active\x20workbook\x20found.','_injector','26771410NQaOOj','UniverInstanceType','FEnum','startFollowing','startPresenting','LiveShareStatusEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','prototype','defineProperty','call','LiveShareStatus','tryStartPresenting','function','get','2961012xlSJLF','_initialize','3bfhIty','5990544HOfjoU','symbol','IDLE','1421554qKuIvI'];_0x1831=function(){return _0x27803a;};return _0x1831();}let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x20e0e4){'@babel/helpers - typeof';const _0x2741a6=_0x1c47;return r=typeof Symbol==_0x2741a6(0x115)&&typeof Symbol[_0x2741a6(0xf6)]=='symbol'?function(_0x301029){return typeof _0x301029;}:function(_0x3383bd){const _0xf1d2a9=_0x2741a6;return _0x3383bd&&typeof Symbol==_0xf1d2a9(0x115)&&_0x3383bd[_0xf1d2a9(0x101)]===Symbol&&_0x3383bd!==Symbol[_0xf1d2a9(0x110)]?_0xf1d2a9(0xed):typeof _0x3383bd;},r(_0x20e0e4);}function i(_0x3e256a,_0x27eb31){const _0x3675cd=_0x1c47;if(r(_0x3e256a)!=_0x3675cd(0x106)||!_0x3e256a)return _0x3e256a;var _0x175cf6=_0x3e256a[Symbol['toPrimitive']];if(_0x175cf6!==void 0x0){var _0x47d986=_0x175cf6[_0x3675cd(0x112)](_0x3e256a,_0x27eb31||_0x3675cd(0xfe));if(r(_0x47d986)!=_0x3675cd(0x106))return _0x47d986;throw TypeError(_0x3675cd(0xf7));}return(_0x27eb31===_0x3675cd(0xf9)?String:Number)(_0x3e256a);}function a(_0x2a273b){const _0x253df9=_0x1c47;var _0x45fbbf=i(_0x2a273b,_0x253df9(0xf9));return r(_0x45fbbf)==_0x253df9(0xed)?_0x45fbbf:_0x45fbbf+'';}function o(_0xf67c5d,_0xcd181,_0x321e30){const _0x5eb5b4=_0x1c47;return(_0xcd181=a(_0xcd181))in _0xf67c5d?Object[_0x5eb5b4(0x111)](_0xf67c5d,_0xcd181,{'value':_0x321e30,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf67c5d[_0xcd181]=_0x321e30,_0xf67c5d;}var s=class extends n[_0x2d7547(0xf1)]{constructor(..._0x305263){const _0x231312=_0x2d7547;super(..._0x305263),o(this,_0x231312(0xf8),void 0x0);}[_0x2d7547(0xea)](_0x4c24c3){const _0x52475d=_0x2d7547;this[_0x52475d(0xf8)]=_0x4c24c3[_0x52475d(0x116)](e[_0x52475d(0xfc)]);}['getLiveShareStatus'](){const _0x47e884=_0x2d7547;var _0x36b7e7;let _0x270bf4=this[_0x47e884(0x108)]['get'](t[_0x47e884(0xf2)])[_0x47e884(0x105)](t[_0x47e884(0x10a)][_0x47e884(0x102)]);if(!_0x270bf4)throw Error(_0x47e884(0x107));let _0x339284=_0x270bf4['getUnitId'](),_0x1b35dd=this[_0x47e884(0xf8)][_0x47e884(0xff)](_0x339284);return(_0x36b7e7=_0x1b35dd==null?void 0x0:_0x1b35dd[_0x47e884(0xfb)]())==null?e[_0x47e884(0x113)][_0x47e884(0xee)]:_0x36b7e7;}[_0x2d7547(0x10c)](){const _0x45f54e=_0x2d7547;let _0x5a2736=this[_0x45f54e(0x108)]['get'](t[_0x45f54e(0xf2)])['getCurrentUnitOfType'](t[_0x45f54e(0x10a)][_0x45f54e(0x102)]);if(!_0x5a2736)throw Error(_0x45f54e(0x107));let _0x43c83=_0x5a2736[_0x45f54e(0x104)](),_0x5dcc02=this[_0x45f54e(0xf8)][_0x45f54e(0xff)](_0x43c83);if(!_0x5dcc02)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5dcc02[_0x45f54e(0x10c)]();}['stopFollowing'](){const _0x45fd15=_0x2d7547;let _0x23daee=this['_injector'][_0x45fd15(0x116)](t[_0x45fd15(0xf2)])[_0x45fd15(0x105)](t[_0x45fd15(0x10a)]['UNIVER_SHEET']);if(!_0x23daee)throw Error(_0x45fd15(0x107));let _0x3fbe0e=_0x23daee[_0x45fd15(0x104)](),_0x5da4af=this[_0x45fd15(0xf8)][_0x45fd15(0xff)](_0x3fbe0e);if(!_0x5da4af)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5da4af[_0x45fd15(0xfd)]();}[_0x2d7547(0x10d)](){const _0x455340=_0x2d7547;let _0x19ee7d=this[_0x455340(0x108)][_0x455340(0x116)](t['IUniverInstanceService'])[_0x455340(0x105)](t[_0x455340(0x10a)]['UNIVER_SHEET']);if(!_0x19ee7d)throw Error('No\x20active\x20workbook\x20found.');let _0x22eb77=_0x19ee7d[_0x455340(0x104)](),_0x5d4f54=this[_0x455340(0xf8)][_0x455340(0xff)](_0x22eb77);if(!_0x5d4f54)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d4f54[_0x455340(0x114)]();}[_0x2d7547(0x100)](){const _0x3ab7a6=_0x2d7547;let _0x29555a=this[_0x3ab7a6(0x108)][_0x3ab7a6(0x116)](t[_0x3ab7a6(0xf2)])[_0x3ab7a6(0x105)](t[_0x3ab7a6(0x10a)][_0x3ab7a6(0x102)]);if(!_0x29555a)throw Error(_0x3ab7a6(0x107));let _0x52024e=_0x29555a[_0x3ab7a6(0x104)](),_0x1e06ca=this[_0x3ab7a6(0xf8)][_0x3ab7a6(0xff)](_0x52024e);if(!_0x1e06ca)throw Error(_0x3ab7a6(0x10f));_0x1e06ca[_0x3ab7a6(0x100)]();}};n[_0x2d7547(0xf1)][_0x2d7547(0xf3)](s);var c=class extends n[_0x2d7547(0x10b)]{get[_0x2d7547(0x10e)](){const _0x2a5033=_0x2d7547;return e[_0x2a5033(0x113)];}};function _0x1c47(_0x25dde4,_0x32ed84){_0x25dde4=_0x25dde4-0xea;const _0x183166=_0x1831();let _0x1c4700=_0x183166[_0x25dde4];return _0x1c4700;}n[_0x2d7547(0x10b)][_0x2d7547(0xf3)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3365(_0x28d180,_0x4f7400){_0x28d180=_0x28d180-0x16d;const _0xa93055=_0xa930();let _0x3365e6=_0xa93055[_0x28d180];return _0x3365e6;}const _0x56be30=_0x3365;(function(_0x40e3d4,_0x5b9b21){const _0x23ecde=_0x3365,_0x16297c=_0x40e3d4();while(!![]){try{const _0x62b387=parseInt(_0x23ecde(0x202))/0x1*(parseInt(_0x23ecde(0x1e9))/0x2)+parseInt(_0x23ecde(0x1b8))/0x3+-parseInt(_0x23ecde(0x1af))/0x4*(parseInt(_0x23ecde(0x1e5))/0x5)+-parseInt(_0x23ecde(0x1ed))/0x6+-parseInt(_0x23ecde(0x17d))/0x7+-parseInt(_0x23ecde(0x16d))/0x8+parseInt(_0x23ecde(0x1b7))/0x9*(parseInt(_0x23ecde(0x1ef))/0xa);if(_0x62b387===_0x5b9b21)break;else _0x16297c['push'](_0x16297c['shift']());}catch(_0x5e4c29){_0x16297c['push'](_0x16297c['shift']());}}}(_0xa930,0xc4d8d),Object[_0x56be30(0x177)](exports,Symbol[_0x56be30(0x224)],{'value':_0x56be30(0x1c8)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function _0xa930(){const _0xca5744=['symbol','Inject','CollaborationEvent','BuiltInUIPart','stringify','asObservable','toStringTag','disposeWithMe','9421592TNYITr','_unitID','_collabSessionService','IUIPartsService','PRESENTING','_handleOffline','NEW_CHANGESETS','delete','SessionStatus','registerInitialStateReporter','defineProperty','toDisposable','LIVESHARE_REQUEST_HOST','_entities','InsertSheetMutation','HEADER_MENU','8054319QGPDEA','LIVESHARE_FETCH_OPERATIONS','takeUntil','init','iterator','_collabSession','You\x27re\x20presenting\x20the\x20document','set','mutations','div','OFFLINE','_commandService','UniverCollaborationClientPlugin','prototype','Injector','_stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','object','SetWorksheetActiveOperation','packageName','getConfig','UNIVER_UNKNOWN','_handleOnline','jsx','sessionStatus$','subscribe','connectInjector','offline','getUnitId','get','function','forEach','dispose$','stopFollowing','unit','_startFollowing','getValue','live-share.config','call','IDLE','onRendered','_uiPartsService','getStatus','registerSharedOperation','length','_status','has','LIVESHARE_OPERATION','event$','pluginName','188KIjORt','1.0.0-alpha.4','getOwnPropertyDescriptor','touchDependencies','getLiveShareCoordinator','includes','startFollowing','_handleOperation','9cXJYQX','4385352qRVpXA','You\x27are\x20offline.','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','LIVESHARE_TERMINATE','_startPresenting','registerComponent','Disposable','_liveShareService','constructor','CollaborationSessionService','stopPresenting','LiveShareStatus','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','onCommandExecuted','Module','BehaviorSubject','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','following','version','getCurrentTypeOfUnit$','getMemberID','Fragment','getTypeOfUnitAdded$','not-following','decorate','_init','subject','_injector','override','getInitialStates','IUniverInstanceService','default','params','Button','parse','requireSession','text','next','from','presenter','registerDependencies','values','108065eAZnbR','_handleTerminate','_config','_univerInstanceService','412UrsVra','memberID','end','add','7478316ZskQps','clsx','23490200AaKoHO','pipe','RxDisposable','dispose','_handleNewChangeSets','mergeOverrideWithDependencies','UniverLiveSharePlugin','idle','send','_beIdle','_handleNewHost','setConfig','string','_presenter','unsubscribe','Present\x20this\x20document','useObservable','Stop\x20following','executeCommand','7699XPijNo','jsxs','button','find','_mountLiveShare','LIVESHARE_NEW_HOST','presenting','_reporters','complete','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SetZoomRatioOperation','_configService','_stopFollowing','status$','tryStartPresenting','createInstance','IConfigService','_status$','Dropdown','getTypeOfUnitDisposed$','_sharedOperations','onStarting','ONLINE','UniverInstanceType','merge','UNIVER_SHEET','@univerjs-pro/live-share','data'];_0xa930=function(){return _0xca5744;};return _0xa930();}function f(_0x457b33){'@babel/helpers - typeof';const _0x172966=_0x56be30;return f=typeof Symbol==_0x172966(0x19b)&&typeof Symbol[_0x172966(0x181)]==_0x172966(0x21e)?function(_0x2905ea){return typeof _0x2905ea;}:function(_0x50b705){const _0x16114f=_0x172966;return _0x50b705&&typeof Symbol==_0x16114f(0x19b)&&_0x50b705[_0x16114f(0x1c1)]===Symbol&&_0x50b705!==Symbol[_0x16114f(0x18a)]?_0x16114f(0x21e):typeof _0x50b705;},f(_0x457b33);}function p(_0x1be13e,_0x364b09){const _0x33966f=_0x56be30;if(f(_0x1be13e)!=_0x33966f(0x18e)||!_0x1be13e)return _0x1be13e;var _0x13ba0b=_0x1be13e[Symbol['toPrimitive']];if(_0x13ba0b!==void 0x0){var _0x4972f5=_0x13ba0b[_0x33966f(0x1a3)](_0x1be13e,_0x364b09||_0x33966f(0x1da));if(f(_0x4972f5)!=_0x33966f(0x18e))return _0x4972f5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x364b09===_0x33966f(0x1fb)?String:Number)(_0x1be13e);}function m(_0x13803f){const _0x3e1f59=_0x56be30;var _0x288b80=p(_0x13803f,_0x3e1f59(0x1fb));return f(_0x288b80)=='symbol'?_0x288b80:_0x288b80+'';}function h(_0x8c154f,_0xf9274,_0x577046){const _0x4e9c85=_0x56be30;return(_0xf9274=m(_0xf9274))in _0x8c154f?Object[_0x4e9c85(0x177)](_0x8c154f,_0xf9274,{'value':_0x577046,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8c154f[_0xf9274]=_0x577046,_0x8c154f;}var g=class extends n[_0x56be30(0x1bf)]{constructor(..._0x48ce32){const _0x3cf651=_0x56be30;super(..._0x48ce32),h(this,_0x3cf651(0x216),new Set()),h(this,_0x3cf651(0x209),new Set());}[_0x56be30(0x1a8)](_0x274155){const _0x34cc7f=_0x56be30;return this[_0x34cc7f(0x216)][_0x34cc7f(0x1ec)](_0x274155),(0x0,n[_0x34cc7f(0x178)])(()=>this['_sharedOperations'][_0x34cc7f(0x174)](_0x274155));}[_0x56be30(0x176)](_0x273a51){const _0x427558=_0x56be30;return this[_0x427558(0x209)]['add'](_0x273a51),(0x0,n[_0x427558(0x178)])(()=>this[_0x427558(0x209)][_0x427558(0x174)](_0x273a51));}['shouldShareOperation'](_0x3f5417){const _0xb79130=_0x56be30;return this[_0xb79130(0x216)][_0xb79130(0x1ab)](_0x3f5417);}[_0x56be30(0x1d8)](_0x2d249b){const _0x30dab2=_0x56be30;return Array[_0x30dab2(0x1e1)](this[_0x30dab2(0x209)])['map'](_0x2ada9e=>_0x2ada9e(_0x2d249b));}};function _(_0x55282f,_0x419f33){return function(_0xdf533,_0x48663a){_0x419f33(_0xdf533,_0x48663a,_0x55282f);};}function v(_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e){const _0x102ca3=_0x56be30;var _0x1d6267=arguments[_0x102ca3(0x1a9)],_0x19cc54=_0x1d6267<0x3?_0x20a499:_0x49fd1e===null?_0x49fd1e=Object[_0x102ca3(0x1b1)](_0x20a499,_0x8587c5):_0x49fd1e,_0x2de9c4;if(typeof Reflect==_0x102ca3(0x18e)&&typeof Reflect[_0x102ca3(0x1d3)]=='function')_0x19cc54=Reflect[_0x102ca3(0x1d3)](_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e);else{for(var _0x4a927f=_0x1abd71[_0x102ca3(0x1a9)]-0x1;_0x4a927f>=0x0;_0x4a927f--)(_0x2de9c4=_0x1abd71[_0x4a927f])&&(_0x19cc54=(_0x1d6267<0x3?_0x2de9c4(_0x19cc54):_0x1d6267>0x3?_0x2de9c4(_0x20a499,_0x8587c5,_0x19cc54):_0x2de9c4(_0x20a499,_0x8587c5))||_0x19cc54);}return _0x1d6267>0x3&&_0x19cc54&&Object[_0x102ca3(0x177)](_0x20a499,_0x8587c5,_0x19cc54),_0x19cc54;}let y=class extends n[_0x56be30(0x1f1)]{constructor(_0x4d6956,_0xb7e885,_0x495bd1){const _0x177d12=_0x56be30;super(),this['_univerInstanceService']=_0x4d6956,this[_0x177d12(0x1d6)]=_0xb7e885,this[_0x177d12(0x16f)]=_0x495bd1,h(this,_0x177d12(0x17a),new Map()),this[_0x177d12(0x1d4)]();}async[_0x56be30(0x1b3)](_0x3828b8){const _0x528ed2=_0x56be30;return this[_0x528ed2(0x17a)][_0x528ed2(0x1ab)](_0x3828b8)||await this['_startLiveShareCoordinator'](_0x3828b8),this[_0x528ed2(0x17a)][_0x528ed2(0x19a)](_0x3828b8);}['getLiveShareCoordinatorSync'](_0xd6eeab){const _0x3f3f95=_0x56be30;var _0x3004c6;return(_0x3004c6=this[_0x3f3f95(0x17a)][_0x3f3f95(0x19a)](_0xd6eeab))==null?null:_0x3004c6;}[_0x56be30(0x1d4)](){const _0x230c5a=_0x56be30;this[_0x230c5a(0x1e8)][_0x230c5a(0x1d1)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])['pipe']((0x0,a['takeUntil'])(this[_0x230c5a(0x19d)]))[_0x230c5a(0x196)](async _0x4ac9e2=>{const _0x2fb599=_0x230c5a;let _0x40ad76=_0x4ac9e2[_0x2fb599(0x19f)]['getUnitId']();this[_0x2fb599(0x17a)][_0x2fb599(0x1ab)](_0x40ad76)||this['_startLiveShareCoordinator'](_0x40ad76);}),this[_0x230c5a(0x1e8)][_0x230c5a(0x215)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])[_0x230c5a(0x1f0)]((0x0,a[_0x230c5a(0x17f)])(this[_0x230c5a(0x19d)]))['subscribe'](_0x3b372d=>{const _0x578adc=_0x230c5a;let _0xa6b099=_0x3b372d[_0x578adc(0x199)](),_0x4b2961=this[_0x578adc(0x17a)][_0x578adc(0x19a)](_0xa6b099);_0x4b2961==null||_0x4b2961[_0x578adc(0x1f2)]();});}async['_startLiveShareCoordinator'](_0x26e4fa){const _0x16b337=_0x56be30;let _0x408484=await this['_collabSessionService'][_0x16b337(0x1de)](_0x26e4fa),_0x3710f2=this['_injector'][_0x16b337(0x211)](x,_0x26e4fa,_0x408484);return _0x3710f2[_0x16b337(0x180)](),this[_0x16b337(0x17a)][_0x16b337(0x184)](_0x26e4fa,_0x3710f2),_0x3710f2;}};y=v([_(0x0,n[_0x56be30(0x1d9)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,(0x0,n[_0x56be30(0x21f)])(t[_0x56be30(0x1c2)]))],y);let b=function(_0x1c23df){const _0x674bfa=_0x56be30;return _0x1c23df[_0x674bfa(0x187)]=_0x674bfa(0x198),_0x1c23df[_0x674bfa(0x1a4)]='idle',_0x1c23df[_0x674bfa(0x1bb)]=_0x674bfa(0x1cc),_0x1c23df['NOT_FOLLOWING']=_0x674bfa(0x1d2),_0x1c23df[_0x674bfa(0x171)]=_0x674bfa(0x208),_0x1c23df;}({}),x=class extends n[_0x56be30(0x1f1)]{get['_status'](){const _0x3840a2=_0x56be30;return this[_0x3840a2(0x213)][_0x3840a2(0x1a1)]();}constructor(_0x593afa,_0x2c943f,_0x590c06,_0x223044,_0x582dc0){const _0x118bfa=_0x56be30;super(),this['_unitID']=_0x593afa,this[_0x118bfa(0x182)]=_0x2c943f,this[_0x118bfa(0x20d)]=_0x590c06,this['_liveShareService']=_0x223044,this[_0x118bfa(0x188)]=_0x582dc0,h(this,'_status$',new i[(_0x118bfa(0x1c9))](_0x118bfa(0x1f6))),h(this,_0x118bfa(0x20f),this[_0x118bfa(0x213)][_0x118bfa(0x223)]()),h(this,_0x118bfa(0x1d4),!0x1),h(this,_0x118bfa(0x1c6),null),h(this,_0x118bfa(0x1fc),null);}[_0x56be30(0x1f2)](){const _0x2eab5b=_0x56be30;var _0x1e3416;(_0x1e3416=this[_0x2eab5b(0x1c6)])==null||_0x1e3416['dispose'](),this[_0x2eab5b(0x213)][_0x2eab5b(0x1e0)](_0x2eab5b(0x1f6)),this[_0x2eab5b(0x213)][_0x2eab5b(0x20a)]();}[_0x56be30(0x1a7)](){const _0x53b604=_0x56be30;return this[_0x53b604(0x1aa)];}['init'](){const _0x506fd6=_0x56be30;this[_0x506fd6(0x1d4)]||(this[_0x506fd6(0x1d4)]=!0x0,this[_0x506fd6(0x182)][_0x506fd6(0x195)][_0x506fd6(0x1f0)]((0x0,a[_0x506fd6(0x17f)])(this['dispose$']))[_0x506fd6(0x196)](_0x1caa59=>{const _0x597ca6=_0x506fd6;switch(_0x1caa59){case t[_0x597ca6(0x175)][_0x597ca6(0x187)]:this[_0x597ca6(0x172)]();break;case t[_0x597ca6(0x175)][_0x597ca6(0x218)]:this[_0x597ca6(0x193)]();break;default:}}),this[_0x506fd6(0x182)][_0x506fd6(0x1ad)][_0x506fd6(0x1f0)]((0x0,a['takeUntil'])(this[_0x506fd6(0x19d)]))['subscribe'](_0xfe3dfb=>{const _0x30fac6=_0x506fd6;let {eventID:_0x508d54}=_0xfe3dfb;switch(_0x508d54){case e[_0x30fac6(0x220)][_0x30fac6(0x207)]:this[_0x30fac6(0x1f9)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1ac)]:this[_0x30fac6(0x1b6)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1bc)]:this['_handleTerminate']();break;case e[_0x30fac6(0x220)][_0x30fac6(0x173)]:this[_0x30fac6(0x1f3)](_0xfe3dfb);break;default:}}));}['tryStartPresenting'](){const _0x3b6074=_0x56be30;this[_0x3b6074(0x182)][_0x3b6074(0x1f7)]({'eventID':e[_0x3b6074(0x220)][_0x3b6074(0x179)],'data':{'unitID':this[_0x3b6074(0x16e)],'userID':this[_0x3b6074(0x182)][_0x3b6074(0x1cf)]()}},this[_0x3b6074(0x16e)]);}[_0x56be30(0x1c3)](){const _0x5d34fa=_0x56be30;this[_0x5d34fa(0x1aa)]===_0x5d34fa(0x208)&&(this[_0x5d34fa(0x213)][_0x5d34fa(0x1e0)]('idle'),this[_0x5d34fa(0x182)][_0x5d34fa(0x1f7)]({'eventID':e[_0x5d34fa(0x220)][_0x5d34fa(0x1bc)],'data':{'unitID':this[_0x5d34fa(0x16e)]}},this[_0x5d34fa(0x16e)]));}[_0x56be30(0x1b5)](){const _0xd8bfd6=_0x56be30;this[_0xd8bfd6(0x1aa)]===_0xd8bfd6(0x1d2)&&(this['_status$']['next'](_0xd8bfd6(0x1cc)),this[_0xd8bfd6(0x1a0)]());}[_0x56be30(0x19e)](){const _0x395cb0=_0x56be30;this['_status']===_0x395cb0(0x1cc)&&this[_0x395cb0(0x20e)]();}[_0x56be30(0x1f9)](_0x2786cc){const _0x27567e=_0x56be30;let {presenter:_0x55256b}=_0x2786cc[_0x27567e(0x21d)],_0x5c9e47=this[_0x27567e(0x182)]['getMemberID']();this[_0x27567e(0x1fc)]=_0x55256b,_0x55256b===_0x5c9e47?(this[_0x27567e(0x20e)](),this[_0x27567e(0x1bd)]()):this[_0x27567e(0x1aa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x27567e(0x1a0)]());}['_fetchOperations'](){const _0x4d4d64=_0x56be30;let _0x5d202a={'eventID':e[_0x4d4d64(0x220)][_0x4d4d64(0x17e)]};this[_0x4d4d64(0x182)][_0x4d4d64(0x1f7)](_0x5d202a,this['_unitID']);}[_0x56be30(0x1e6)](){const _0x2be823=_0x56be30;this[_0x2be823(0x1fc)]=null,this[_0x2be823(0x1aa)]!==_0x2be823(0x208)&&this[_0x2be823(0x1f8)]();}[_0x56be30(0x1f3)](_0xa5223f){const _0x273cd3=_0x56be30;if(this[_0x273cd3(0x1aa)]===_0x273cd3(0x1cc)&&this['_presenter']===_0xa5223f['data'][_0x273cd3(0x1ea)]){let _0x310418=(0x0,e['parseProtocolChangeset'])(_0xa5223f[_0x273cd3(0x21d)])[_0x273cd3(0x185)]['reverse']()[_0x273cd3(0x205)](_0x3baf54=>_0x3baf54['id']===r[_0x273cd3(0x17b)]['id']);if(_0x310418){let _0x304640=_0x310418['params']['unitId'],_0x2c5919=_0x310418[_0x273cd3(0x1db)]['sheet']['id'];setTimeout(()=>{const _0x4d178b=_0x273cd3;this[_0x4d178b(0x188)][_0x4d178b(0x201)](r[_0x4d178b(0x18f)]['id'],{'unitId':_0x304640,'subUnitId':_0x2c5919},{'fromCollab':!0x0});});}}}[_0x56be30(0x1bd)](){const _0x5d8460=_0x56be30;var _0x4e2053;(_0x4e2053=this[_0x5d8460(0x1c6)])==null||_0x4e2053[_0x5d8460(0x1f2)](),this[_0x5d8460(0x213)][_0x5d8460(0x1e0)]('presenting');let _0x5e1d04=new Map(),_0x2290e9=this[_0x5d8460(0x1c6)]=new n['DisposableCollection']();_0x2290e9[_0x5d8460(0x1ec)]((0x0,n[_0x5d8460(0x178)])(()=>{const _0x5ea514=_0x5d8460;_0x5e1d04[_0x5ea514(0x19c)](({subject:_0x59e644,subscription:_0x415be1})=>{const _0xce5aa7=_0x5ea514;_0x415be1[_0xce5aa7(0x1fd)](),_0x59e644[_0xce5aa7(0x20a)]();}),_0x5e1d04['clear']();})),_0x2290e9['add'](this[_0x5d8460(0x188)][_0x5d8460(0x1c7)](_0x5939b7=>{const _0x20fc1e=_0x5d8460;if(_0x5939b7['type']!==n['CommandType']['OPERATION']||!this[_0x20fc1e(0x1c0)]['shouldShareOperation'](_0x5939b7['id']))return;let {id:_0x2cb095}=_0x5939b7,_0x687b06;if(_0x5e1d04['has'](_0x2cb095))_0x687b06=_0x5e1d04[_0x20fc1e(0x19a)](_0x2cb095)[_0x20fc1e(0x1d5)];else{var _0x2d4882;_0x687b06=new i['Subject']();let _0x2ef1c3=_0x687b06[_0x20fc1e(0x1f0)]((0x0,a['throttleTime'])((_0x2d4882=this[_0x20fc1e(0x20d)][_0x20fc1e(0x191)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2d4882,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x20fc1e(0x196)](_0x5495eb=>{const _0x122e79=_0x20fc1e;this[_0x122e79(0x182)][_0x122e79(0x1f7)]({'eventID':e[_0x122e79(0x220)][_0x122e79(0x1ac)],'data':{'unitID':this['_unitID'],'operations':{[_0x5495eb['id']]:{'id':_0x5495eb['id'],'params':JSON['stringify'](_0x5495eb[_0x122e79(0x1db)])}}}},this[_0x122e79(0x16e)]);});_0x5e1d04[_0x20fc1e(0x184)](_0x2cb095,{'subject':_0x687b06,'subscription':_0x2ef1c3});}_0x687b06[_0x20fc1e(0x1e0)](_0x5939b7);})),this[_0x5d8460(0x1c0)][_0x5d8460(0x1d8)](this['_unitID'])[_0x5d8460(0x19c)](_0x583909=>this[_0x5d8460(0x182)][_0x5d8460(0x1f7)]({'eventID':e[_0x5d8460(0x220)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d8460(0x16e)],'operations':{[_0x583909['id']]:{'id':_0x583909['id'],'params':JSON[_0x5d8460(0x222)](_0x583909[_0x5d8460(0x1db)])}}}},this['_unitID']));}[_0x56be30(0x18c)](){const _0x5d02e1=_0x56be30;var _0x23d37c;this[_0x5d02e1(0x213)]['next'](_0x5d02e1(0x1f6)),(_0x23d37c=this[_0x5d02e1(0x1c6)])==null||_0x23d37c[_0x5d02e1(0x1f2)](),this['_commandDisposable']=null;}[_0x56be30(0x1a0)](){const _0xcd49ee=_0x56be30;var _0x52699d;(_0x52699d=this['_commandDisposable'])==null||_0x52699d[_0xcd49ee(0x1f2)](),this[_0xcd49ee(0x213)][_0xcd49ee(0x1e0)](_0xcd49ee(0x1cc));}['_beIdle'](){const _0x512cd9=_0x56be30;var _0x4124ed;this[_0x512cd9(0x213)][_0x512cd9(0x1e0)](_0x512cd9(0x1f6)),(_0x4124ed=this[_0x512cd9(0x1c6)])==null||_0x4124ed[_0x512cd9(0x1f2)](),this[_0x512cd9(0x1c6)]=null;}[_0x56be30(0x20e)](){const _0x34cd17=_0x56be30;var _0x34bb33;this[_0x34cd17(0x213)][_0x34cd17(0x1e0)](_0x34cd17(0x1d2)),(_0x34bb33=this[_0x34cd17(0x1c6)])==null||_0x34bb33[_0x34cd17(0x1f2)]();}[_0x56be30(0x1b6)](_0x4fe4bd){const _0x1a43da=_0x56be30;if([_0x1a43da(0x208),_0x1a43da(0x1d2),'offline'][_0x1a43da(0x1b4)](this[_0x1a43da(0x1aa)])||!_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]||_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]===this['_collabSession']['getMemberID']())return;this[_0x1a43da(0x1aa)]===_0x1a43da(0x1f6)&&this['_startFollowing']();let _0x186f96=_0x4fe4bd[_0x1a43da(0x21d)]['operations'];Object[_0x1a43da(0x1e4)](_0x186f96)[_0x1a43da(0x19c)](_0xd9a98c=>{const _0x480d58=_0x1a43da;this[_0x480d58(0x188)][_0x480d58(0x201)](_0xd9a98c['id'],_0xd9a98c['params']?JSON[_0x480d58(0x1dd)](_0xd9a98c[_0x480d58(0x1db)]):null,{'fromCollab':!0x0});});}[_0x56be30(0x172)](){const _0x2637e6=_0x56be30;var _0x10b4d6;this[_0x2637e6(0x213)]['next']('offline'),(_0x10b4d6=this[_0x2637e6(0x1c6)])==null||_0x10b4d6['dispose']();}['_handleOnline'](){const _0x352dea=_0x56be30;this[_0x352dea(0x213)]['next'](_0x352dea(0x1f6)),this['_fetchOperations']();}};x=v([_(0x2,n[_0x56be30(0x212)]),_(0x3,(0x0,n[_0x56be30(0x21f)])(g)),_(0x4,n['ICommandService'])],x);var S=_0x56be30(0x21c),C=_0x56be30(0x1b0);const w={};let T=class extends n[_0x56be30(0x1bf)]{constructor(_0x136539){const _0x18b51a=_0x56be30;super(),this[_0x18b51a(0x1c0)]=_0x136539,this['_init']();}[_0x56be30(0x1d4)](){const _0x27ecf2=_0x56be30;[o[_0x27ecf2(0x20c)]['id'],o['SetScrollOperation']['id'],r[_0x27ecf2(0x18f)]['id']][_0x27ecf2(0x19c)](_0xf086ca=>{const _0x239b93=_0x27ecf2;this[_0x239b93(0x225)](this[_0x239b93(0x1c0)][_0x239b93(0x1a8)](_0xf086ca));});}};T=v([_(0x0,(0x0,n['Inject'])(g))],T);function E(){const _0x1b18ac=_0x56be30;let _0x3307a4=(0x0,s['useDependency'])(y),_0x1b8ae4=(0x0,s['useDependency'])(n[_0x1b18ac(0x1d9)]),_0x20cfac=(0x0,s[_0x1b18ac(0x1ff)])(()=>_0x1b8ae4[_0x1b18ac(0x1ce)](n['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x471a20=(0x0,s[_0x1b18ac(0x1ff)])((0x0,u['useMemo'])(()=>_0x20cfac?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x3307a4[_0x1b18ac(0x1b3)](_0x20cfac[_0x1b18ac(0x199)]()))):(0x0,i['of'])(null),[_0x20cfac,_0x3307a4]),null),_0x17edaa=(0x0,s[_0x1b18ac(0x1ff)])(_0x471a20?()=>_0x471a20[_0x1b18ac(0x20f)]:null,_0x1b18ac(0x1f6),!0x1,[_0x471a20]);return _0x471a20?(0x0,d['jsx'])(c[_0x1b18ac(0x214)],{'align':_0x1b18ac(0x1eb),'disabled':_0x17edaa===_0x1b18ac(0x198),'className':_0x1b18ac(0x20b),'overlay':(0x0,d[_0x1b18ac(0x194)])(D,{'status':_0x17edaa,'coordinator':_0x471a20}),'children':(0x0,d['jsx'])(_0x1b18ac(0x204),{'className':(0x0,c[_0x1b18ac(0x1ee)])(_0x1b18ac(0x1c5),{'univer-cursor-not-allowed':_0x17edaa==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17edaa!==_0x1b18ac(0x198)}),'type':_0x1b18ac(0x204),'children':(0x0,d[_0x1b18ac(0x194)])(l[_0x1b18ac(0x1ca)],{})})}):null;}function D(_0x37090b){const _0x4c9f44=_0x56be30;let {status:_0x316a69,coordinator:_0x2bfdac}=_0x37090b;switch(_0x316a69){case _0x4c9f44(0x1f6):return(0x0,d[_0x4c9f44(0x194)])(O,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1cc):return(0x0,d[_0x4c9f44(0x194)])(k,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1d2):return(0x0,d[_0x4c9f44(0x194)])(A,{'coordinator':_0x2bfdac});case _0x4c9f44(0x198):return(0x0,d[_0x4c9f44(0x194)])(M,{});case _0x4c9f44(0x208):return(0x0,d[_0x4c9f44(0x194)])(j,{'coordinator':_0x2bfdac});default:return null;}}function O(_0x304489){const _0x2fb78e=_0x56be30;let {coordinator:_0xbe7716}=_0x304489;return(0x0,d[_0x2fb78e(0x203)])(d[_0x2fb78e(0x1d0)],{'children':[(0x0,d['jsx'])(_0x2fb78e(0x186),{'className':_0x2fb78e(0x1ba),'children':_0x2fb78e(0x1fe)}),(0x0,d[_0x2fb78e(0x194)])(c[_0x2fb78e(0x1dc)],{'onClick':()=>_0xbe7716[_0x2fb78e(0x210)](),'children':'Start'})]});}function k(_0x57a92d){const _0x4fb0e2=_0x56be30;let {coordinator:_0x426643}=_0x57a92d;return(0x0,d[_0x4fb0e2(0x203)])(d['Fragment'],{'children':[(0x0,d[_0x4fb0e2(0x194)])(_0x4fb0e2(0x186),{'className':_0x4fb0e2(0x1ba),'children':_0x4fb0e2(0x1cb)}),(0x0,d['jsx'])(c['Button'],{'onClick':()=>_0x426643[_0x4fb0e2(0x19e)](),'children':_0x4fb0e2(0x200)})]});}function A(_0x33430d){const _0x4da32a=_0x56be30;let {coordinator:_0x20abd2}=_0x33430d;return(0x0,d[_0x4da32a(0x203)])(d[_0x4da32a(0x1d0)],{'children':[(0x0,d[_0x4da32a(0x194)])(_0x4da32a(0x186),{'className':_0x4da32a(0x1ba),'children':_0x4da32a(0x18d)}),(0x0,d[_0x4da32a(0x194)])(c['Button'],{'variant':_0x4da32a(0x1df),'onClick':()=>_0x20abd2[_0x4da32a(0x1b5)](),'children':'Start\x20following'})]});}function j(_0x5ae515){const _0xbe6b4b=_0x56be30;let {coordinator:_0x21e1bb}=_0x5ae515;return(0x0,d[_0xbe6b4b(0x203)])(d[_0xbe6b4b(0x1d0)],{'children':[(0x0,d[_0xbe6b4b(0x194)])(_0xbe6b4b(0x186),{'className':_0xbe6b4b(0x1ba),'children':_0xbe6b4b(0x183)}),(0x0,d[_0xbe6b4b(0x194)])(c[_0xbe6b4b(0x1dc)],{'variant':_0xbe6b4b(0x1da),'onClick':()=>_0x21e1bb[_0xbe6b4b(0x1c3)](),'children':'Stop\x20presenting'})]});}function M(){const _0x4efe72=_0x56be30;return(0x0,d[_0x4efe72(0x194)])(d['Fragment'],{'children':_0x4efe72(0x1b9)});}let N=class extends n[_0x56be30(0x1bf)]{constructor(_0x3dfe20,_0x3426c1){const _0x5e9ee9=_0x56be30;super(),this[_0x5e9ee9(0x1d6)]=_0x3dfe20,this[_0x5e9ee9(0x1a6)]=_0x3426c1,this[_0x5e9ee9(0x206)]();}[_0x56be30(0x206)](){const _0x908d60=_0x56be30;this[_0x908d60(0x225)](this[_0x908d60(0x1a6)][_0x908d60(0x1be)](s[_0x908d60(0x221)][_0x908d60(0x17c)],()=>(0x0,s[_0x908d60(0x197)])(E,this[_0x908d60(0x1d6)])));}};N=v([_(0x0,(0x0,n[_0x56be30(0x21f)])(n['Injector'])),_(0x1,s[_0x56be30(0x170)])],N);let P=class extends n['Plugin']{constructor(_0x208db4=w,_0x1e2e74,_0x255f7b){const _0xefb613=_0x56be30;super(),this[_0xefb613(0x1e7)]=_0x208db4,this['_injector']=_0x1e2e74,this['_configService']=_0x255f7b;let {..._0x52f35c}=(0x0,n[_0xefb613(0x21a)])({},w,this[_0xefb613(0x1e7)]);this[_0xefb613(0x20d)][_0xefb613(0x1fa)](_0xefb613(0x1a2),_0x52f35c);}[_0x56be30(0x217)](){const _0x2d608b=_0x56be30;(0x0,n[_0x2d608b(0x1e3)])(this[_0x2d608b(0x1d6)],(0x0,n[_0x2d608b(0x1f4)])([[g],[y],[T],[N]],this[_0x2d608b(0x1e7)][_0x2d608b(0x1d7)])),(0x0,n[_0x2d608b(0x1b2)])(this[_0x2d608b(0x1d6)],[[T]]);}[_0x56be30(0x1a5)](){const _0x46c376=_0x56be30;(0x0,n[_0x46c376(0x1b2)])(this[_0x46c376(0x1d6)],[[N]]);}};h(P,'type',n[_0x56be30(0x219)][_0x56be30(0x192)]),h(P,_0x56be30(0x1ae),'UNIVER_LIVE_SHARE_PLUGIN'),h(P,_0x56be30(0x190),S),h(P,_0x56be30(0x1cd),C),P=v([(0x0,n['DependentOn'])(t[_0x56be30(0x189)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,n['IConfigService'])],P),Object[_0x56be30(0x177)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x56be30(0x1c4)]=b,Object[_0x56be30(0x177)](exports,_0x56be30(0x1f5),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x548bff=_0xe804;(function(_0x1db648,_0x44c74b){const _0x2fe975=_0xe804,_0x238204=_0x1db648();while(!![]){try{const _0x43fd19=-parseInt(_0x2fe975(0x10a))/0x1+-parseInt(_0x2fe975(0x12e))/0x2+parseInt(_0x2fe975(0x134))/0x3*(-parseInt(_0x2fe975(0x155))/0x4)+parseInt(_0x2fe975(0x149))/0x5+parseInt(_0x2fe975(0x190))/0x6+-parseInt(_0x2fe975(0x183))/0x7+parseInt(_0x2fe975(0x163))/0x8*(parseInt(_0x2fe975(0x15d))/0x9);if(_0x43fd19===_0x44c74b)break;else _0x238204['push'](_0x238204['shift']());}catch(_0x5771b9){_0x238204['push'](_0x238204['shift']());}}}(_0x3b33,0x57642),Object[_0x548bff(0x160)](exports,Symbol['toStringTag'],{'value':_0x548bff(0x19d)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x38feb9){'@babel/helpers - typeof';const _0x165746=_0x548bff;return f=typeof Symbol==_0x165746(0x121)&&typeof Symbol['iterator']=='symbol'?function(_0x3eeb06){return typeof _0x3eeb06;}:function(_0x15d25e){const _0x120926=_0x165746;return _0x15d25e&&typeof Symbol=='function'&&_0x15d25e[_0x120926(0x165)]===Symbol&&_0x15d25e!==Symbol[_0x120926(0x1a1)]?'symbol':typeof _0x15d25e;},f(_0x38feb9);}function p(_0xbcee69,_0x10e99d){const _0x155593=_0x548bff;if(f(_0xbcee69)!=_0x155593(0x19b)||!_0xbcee69)return _0xbcee69;var _0x55f1b0=_0xbcee69[Symbol['toPrimitive']];if(_0x55f1b0!==void 0x0){var _0x3dc799=_0x55f1b0[_0x155593(0x127)](_0xbcee69,_0x10e99d||_0x155593(0x170));if(f(_0x3dc799)!='object')return _0x3dc799;throw TypeError(_0x155593(0x14e));}return(_0x10e99d===_0x155593(0x122)?String:Number)(_0xbcee69);}function m(_0x159fa2){const _0x21e214=_0x548bff;var _0x16c5f6=p(_0x159fa2,_0x21e214(0x122));return f(_0x16c5f6)==_0x21e214(0x14b)?_0x16c5f6:_0x16c5f6+'';}function h(_0x17e08f,_0x1fe987,_0x51afbc){const _0x14f311=_0x548bff;return(_0x1fe987=m(_0x1fe987))in _0x17e08f?Object[_0x14f311(0x160)](_0x17e08f,_0x1fe987,{'value':_0x51afbc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17e08f[_0x1fe987]=_0x51afbc,_0x17e08f;}var g=class extends n[_0x548bff(0x15e)]{constructor(..._0x22e3c8){const _0x4021fb=_0x548bff;super(..._0x22e3c8),h(this,'_sharedOperations',new Set()),h(this,_0x4021fb(0x104),new Set());}[_0x548bff(0x151)](_0x25d85b){const _0x96149e=_0x548bff;return this[_0x96149e(0x1b3)][_0x96149e(0x101)](_0x25d85b),(0x0,n['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x25d85b));}[_0x548bff(0x1b6)](_0xb54bff){const _0x44dcb7=_0x548bff;return this['_reporters'][_0x44dcb7(0x101)](_0xb54bff),(0x0,n[_0x44dcb7(0x102)])(()=>this[_0x44dcb7(0x104)]['delete'](_0xb54bff));}[_0x548bff(0x1ae)](_0x454d4d){const _0x54d238=_0x548bff;return this[_0x54d238(0x1b3)][_0x54d238(0x14f)](_0x454d4d);}[_0x548bff(0x1a5)](_0x8c095d){const _0x3ac399=_0x548bff;return Array[_0x3ac399(0x19e)](this[_0x3ac399(0x104)])[_0x3ac399(0x1aa)](_0x14fad1=>_0x14fad1(_0x8c095d));}};function _(_0x5ad839,_0x4d2552){return function(_0x1db73e,_0x49e1a3){_0x4d2552(_0x1db73e,_0x49e1a3,_0x5ad839);};}function v(_0x1ff021,_0x5843df,_0x79f4e1,_0x4e4653){const _0x3dd0b3=_0x548bff;var _0x5c1979=arguments[_0x3dd0b3(0x1a9)],_0x59fb49=_0x5c1979<0x3?_0x5843df:_0x4e4653===null?_0x4e4653=Object[_0x3dd0b3(0x144)](_0x5843df,_0x79f4e1):_0x4e4653,_0xc1ea19;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3dd0b3(0x121))_0x59fb49=Reflect['decorate'](_0x1ff021,_0x5843df,_0x79f4e1,_0x4e4653);else{for(var _0x68abb9=_0x1ff021['length']-0x1;_0x68abb9>=0x0;_0x68abb9--)(_0xc1ea19=_0x1ff021[_0x68abb9])&&(_0x59fb49=(_0x5c1979<0x3?_0xc1ea19(_0x59fb49):_0x5c1979>0x3?_0xc1ea19(_0x5843df,_0x79f4e1,_0x59fb49):_0xc1ea19(_0x5843df,_0x79f4e1))||_0x59fb49);}return _0x5c1979>0x3&&_0x59fb49&&Object[_0x3dd0b3(0x160)](_0x5843df,_0x79f4e1,_0x59fb49),_0x59fb49;}let y=class extends n[_0x548bff(0x164)]{constructor(_0xce0cf8,_0x51ab0a,_0xa20067){const _0x1ea51e=_0x548bff;super(),this[_0x1ea51e(0x17f)]=_0xce0cf8,this[_0x1ea51e(0x18f)]=_0x51ab0a,this[_0x1ea51e(0x113)]=_0xa20067,h(this,_0x1ea51e(0x1a7),new Map()),this[_0x1ea51e(0x191)]();}async[_0x548bff(0x188)](_0x55766d){const _0x48e362=_0x548bff;return this[_0x48e362(0x1a7)]['has'](_0x55766d)||await this[_0x48e362(0xff)](_0x55766d),this[_0x48e362(0x1a7)][_0x48e362(0x172)](_0x55766d);}[_0x548bff(0x115)](_0x2ed0dd){const _0x5204a9=_0x548bff;var _0x1fa567;return(_0x1fa567=this[_0x5204a9(0x1a7)][_0x5204a9(0x172)](_0x2ed0dd))==null?null:_0x1fa567;}[_0x548bff(0x191)](){const _0x25574f=_0x548bff;this[_0x25574f(0x17f)][_0x25574f(0x16b)](n['UniverInstanceType'][_0x25574f(0x120)])['pipe']((0x0,a[_0x25574f(0x1a8)])(this[_0x25574f(0x135)]))[_0x25574f(0x168)](async _0x32437d=>{const _0x273d09=_0x25574f;let _0x384557=_0x32437d[_0x273d09(0x16e)]['getUnitId']();this[_0x273d09(0x1a7)][_0x273d09(0x14f)](_0x384557)||this[_0x273d09(0xff)](_0x384557);}),this['_univerInstanceService'][_0x25574f(0x107)](n[_0x25574f(0x1a4)][_0x25574f(0x120)])[_0x25574f(0x126)]((0x0,a['takeUntil'])(this[_0x25574f(0x135)]))[_0x25574f(0x168)](_0x2d3c53=>{const _0x456e12=_0x25574f;let _0x4e4bae=_0x2d3c53['getUnitId'](),_0xc380eb=this['_entities']['get'](_0x4e4bae);_0xc380eb==null||_0xc380eb[_0x456e12(0x10d)]();});}async[_0x548bff(0xff)](_0xcf857a){const _0x12536d=_0x548bff;let _0x423402=await this[_0x12536d(0x113)][_0x12536d(0x156)](_0xcf857a),_0x36a2ab=this[_0x12536d(0x18f)]['createInstance'](x,_0xcf857a,_0x423402);return _0x36a2ab['init'](),this[_0x12536d(0x1a7)][_0x12536d(0x162)](_0xcf857a,_0x36a2ab),_0x36a2ab;}};y=v([_(0x0,n[_0x548bff(0x125)]),_(0x1,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x2,(0x0,n[_0x548bff(0x137)])(t[_0x548bff(0x185)]))],y);let b=function(_0x26802b){const _0x3ada84=_0x548bff;return _0x26802b[_0x3ada84(0x18c)]='offline',_0x26802b[_0x3ada84(0x16d)]=_0x3ada84(0x11b),_0x26802b[_0x3ada84(0x111)]='following',_0x26802b['NOT_FOLLOWING']=_0x3ada84(0x146),_0x26802b['PRESENTING']='presenting',_0x26802b;}({}),x=class extends n[_0x548bff(0x164)]{get[_0x548bff(0x119)](){const _0x5b05e9=_0x548bff;return this[_0x5b05e9(0x117)][_0x5b05e9(0x11c)]();}constructor(_0xe430b6,_0x1b86ef,_0xa8fe7b,_0x22f37c,_0x3bade6){const _0x2af1af=_0x548bff;super(),this[_0x2af1af(0x11a)]=_0xe430b6,this['_collabSession']=_0x1b86ef,this[_0x2af1af(0x1b4)]=_0xa8fe7b,this[_0x2af1af(0x12b)]=_0x22f37c,this[_0x2af1af(0x1b2)]=_0x3bade6,h(this,'_status$',new i[(_0x2af1af(0x148))]('idle')),h(this,_0x2af1af(0x17c),this[_0x2af1af(0x117)][_0x2af1af(0x179)]()),h(this,_0x2af1af(0x191),!0x1),h(this,'_commandDisposable',null),h(this,_0x2af1af(0x1ac),null);}[_0x548bff(0x10d)](){const _0x588b51=_0x548bff;var _0x5cd44b;(_0x5cd44b=this['_commandDisposable'])==null||_0x5cd44b[_0x588b51(0x10d)](),this[_0x588b51(0x117)][_0x588b51(0x173)](_0x588b51(0x11b)),this['_status$'][_0x588b51(0x106)]();}[_0x548bff(0x1a3)](){const _0x48706a=_0x548bff;return this[_0x48706a(0x119)];}[_0x548bff(0x110)](){const _0x3fae93=_0x548bff;this[_0x3fae93(0x191)]||(this[_0x3fae93(0x191)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3fae93(0x126)]((0x0,a[_0x3fae93(0x1a8)])(this[_0x3fae93(0x135)]))[_0x3fae93(0x168)](_0x539687=>{const _0x282a5c=_0x3fae93;switch(_0x539687){case t[_0x282a5c(0x138)][_0x282a5c(0x18c)]:this[_0x282a5c(0x1a6)]();break;case t[_0x282a5c(0x138)][_0x282a5c(0xfd)]:this[_0x282a5c(0x189)]();break;default:}}),this[_0x3fae93(0x13b)][_0x3fae93(0x153)][_0x3fae93(0x126)]((0x0,a['takeUntil'])(this[_0x3fae93(0x135)]))['subscribe'](_0x2ac2c3=>{const _0x95f4fd=_0x3fae93;let {eventID:_0x38e3d2}=_0x2ac2c3;switch(_0x38e3d2){case e[_0x95f4fd(0x13a)]['LIVESHARE_NEW_HOST']:this[_0x95f4fd(0x139)](_0x2ac2c3);break;case e[_0x95f4fd(0x13a)][_0x95f4fd(0x13d)]:this[_0x95f4fd(0x16f)](_0x2ac2c3);break;case e[_0x95f4fd(0x13a)][_0x95f4fd(0x133)]:this[_0x95f4fd(0x1ab)]();break;case e[_0x95f4fd(0x13a)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2ac2c3);break;default:}}));}['tryStartPresenting'](){const _0x16a727=_0x548bff;this['_collabSession']['send']({'eventID':e[_0x16a727(0x13a)][_0x16a727(0x132)],'data':{'unitID':this[_0x16a727(0x11a)],'userID':this[_0x16a727(0x13b)][_0x16a727(0x154)]()}},this[_0x16a727(0x11a)]);}[_0x548bff(0x12a)](){const _0x5ea75b=_0x548bff;this[_0x5ea75b(0x119)]===_0x5ea75b(0x1b1)&&(this[_0x5ea75b(0x117)][_0x5ea75b(0x173)](_0x5ea75b(0x11b)),this['_collabSession'][_0x5ea75b(0x17d)]({'eventID':e[_0x5ea75b(0x13a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5ea75b(0x11a)]}},this[_0x5ea75b(0x11a)]));}[_0x548bff(0x10e)](){const _0x4f2a8f=_0x548bff;this['_status']===_0x4f2a8f(0x146)&&(this[_0x4f2a8f(0x117)]['next']('following'),this[_0x4f2a8f(0x18a)]());}[_0x548bff(0x158)](){const _0x287142=_0x548bff;this['_status']===_0x287142(0x14d)&&this[_0x287142(0x10c)]();}['_handleNewHost'](_0x45de4f){const _0x132fba=_0x548bff;let {presenter:_0x2b9b56}=_0x45de4f['data'],_0x4500a4=this[_0x132fba(0x13b)][_0x132fba(0x154)]();this[_0x132fba(0x1ac)]=_0x2b9b56,_0x2b9b56===_0x4500a4?(this[_0x132fba(0x10c)](),this['_startPresenting']()):this['_status']!==_0x132fba(0x146)&&(this[_0x132fba(0x176)](),this[_0x132fba(0x18a)]());}[_0x548bff(0x1b8)](){const _0x26b721=_0x548bff;let _0x1e725f={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x26b721(0x13b)][_0x26b721(0x17d)](_0x1e725f,this[_0x26b721(0x11a)]);}['_handleTerminate'](){const _0x1ae706=_0x548bff;this[_0x1ae706(0x1ac)]=null,this[_0x1ae706(0x119)]!==_0x1ae706(0x1b1)&&this[_0x1ae706(0x197)]();}['_handleNewChangeSets'](_0x2ab66e){const _0x2187b3=_0x548bff;if(this['_status']===_0x2187b3(0x14d)&&this[_0x2187b3(0x1ac)]===_0x2ab66e[_0x2187b3(0x18d)][_0x2187b3(0x193)]){let _0x3ef5f2=(0x0,e[_0x2187b3(0x15f)])(_0x2ab66e['data'])[_0x2187b3(0x171)][_0x2187b3(0x141)]()[_0x2187b3(0x128)](_0x45e9fb=>_0x45e9fb['id']===r[_0x2187b3(0x136)]['id']);if(_0x3ef5f2){let _0x2b3a35=_0x3ef5f2[_0x2187b3(0x145)]['unitId'],_0x384c5a=_0x3ef5f2[_0x2187b3(0x145)][_0x2187b3(0x184)]['id'];setTimeout(()=>{const _0x3726ec=_0x2187b3;this[_0x3726ec(0x1b2)][_0x3726ec(0x114)](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x2b3a35,'subUnitId':_0x384c5a},{'fromCollab':!0x0});});}}}[_0x548bff(0x17b)](){const _0x5c6497=_0x548bff;var _0x17f1a6;(_0x17f1a6=this[_0x5c6497(0x100)])==null||_0x17f1a6[_0x5c6497(0x10d)](),this['_status$']['next'](_0x5c6497(0x1b1));let _0x3869b6=new Map(),_0x3896bc=this['_commandDisposable']=new n[(_0x5c6497(0x19a))]();_0x3896bc['add']((0x0,n[_0x5c6497(0x102)])(()=>{const _0x9bf52b=_0x5c6497;_0x3869b6['forEach'](({subject:_0x2f4735,subscription:_0x285591})=>{const _0x571655=_0xe804;_0x285591[_0x571655(0x116)](),_0x2f4735[_0x571655(0x106)]();}),_0x3869b6[_0x9bf52b(0x169)]();})),_0x3896bc[_0x5c6497(0x101)](this[_0x5c6497(0x1b2)][_0x5c6497(0x12d)](_0x1b08dd=>{const _0x4ea352=_0x5c6497;if(_0x1b08dd[_0x4ea352(0x175)]!==n['CommandType'][_0x4ea352(0x186)]||!this[_0x4ea352(0x12b)][_0x4ea352(0x1ae)](_0x1b08dd['id']))return;let {id:_0x1eb6db}=_0x1b08dd,_0x56aeb5;if(_0x3869b6['has'](_0x1eb6db))_0x56aeb5=_0x3869b6[_0x4ea352(0x172)](_0x1eb6db)[_0x4ea352(0x1a2)];else{var _0x111a3e;_0x56aeb5=new i[(_0x4ea352(0x123))]();let _0x66f971=_0x56aeb5[_0x4ea352(0x126)]((0x0,a['throttleTime'])((_0x111a3e=this[_0x4ea352(0x1b4)][_0x4ea352(0x187)](_0x4ea352(0xfe)))==null?0xc8:_0x111a3e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ea352(0x168)](_0x53afe8=>{const _0x7a1a6=_0x4ea352;this[_0x7a1a6(0x13b)][_0x7a1a6(0x17d)]({'eventID':e['CollaborationEvent'][_0x7a1a6(0x13d)],'data':{'unitID':this[_0x7a1a6(0x11a)],'operations':{[_0x53afe8['id']]:{'id':_0x53afe8['id'],'params':JSON['stringify'](_0x53afe8[_0x7a1a6(0x145)])}}}},this[_0x7a1a6(0x11a)]);});_0x3869b6['set'](_0x1eb6db,{'subject':_0x56aeb5,'subscription':_0x66f971});}_0x56aeb5[_0x4ea352(0x173)](_0x1b08dd);})),this[_0x5c6497(0x12b)]['getInitialStates'](this[_0x5c6497(0x11a)])[_0x5c6497(0x14c)](_0x57b102=>this[_0x5c6497(0x13b)]['send']({'eventID':e[_0x5c6497(0x13a)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x57b102['id']]:{'id':_0x57b102['id'],'params':JSON['stringify'](_0x57b102[_0x5c6497(0x145)])}}}},this[_0x5c6497(0x11a)]));}[_0x548bff(0x176)](){const _0x3ce40e=_0x548bff;var _0x5b9311;this['_status$'][_0x3ce40e(0x173)](_0x3ce40e(0x11b)),(_0x5b9311=this['_commandDisposable'])==null||_0x5b9311[_0x3ce40e(0x10d)](),this['_commandDisposable']=null;}[_0x548bff(0x18a)](){const _0x3364b0=_0x548bff;var _0xc5d63f;(_0xc5d63f=this[_0x3364b0(0x100)])==null||_0xc5d63f[_0x3364b0(0x10d)](),this[_0x3364b0(0x117)][_0x3364b0(0x173)](_0x3364b0(0x14d));}[_0x548bff(0x197)](){const _0x2a4c1a=_0x548bff;var _0x22233d;this['_status$'][_0x2a4c1a(0x173)](_0x2a4c1a(0x11b)),(_0x22233d=this[_0x2a4c1a(0x100)])==null||_0x22233d[_0x2a4c1a(0x10d)](),this[_0x2a4c1a(0x100)]=null;}['_stopFollowing'](){const _0x2380ee=_0x548bff;var _0x14b3f2;this['_status$'][_0x2380ee(0x173)](_0x2380ee(0x146)),(_0x14b3f2=this[_0x2380ee(0x100)])==null||_0x14b3f2[_0x2380ee(0x10d)]();}[_0x548bff(0x16f)](_0x4901c0){const _0x2632ff=_0x548bff;if(['presenting',_0x2632ff(0x146),'offline'][_0x2632ff(0x178)](this[_0x2632ff(0x119)])||!_0x4901c0[_0x2632ff(0x18d)]['presenter']||_0x4901c0[_0x2632ff(0x18d)][_0x2632ff(0x118)]===this[_0x2632ff(0x13b)][_0x2632ff(0x154)]())return;this['_status']===_0x2632ff(0x11b)&&this[_0x2632ff(0x18a)]();let _0x56f876=_0x4901c0[_0x2632ff(0x18d)][_0x2632ff(0x1ad)];Object[_0x2632ff(0x18b)](_0x56f876)['forEach'](_0x4e86ab=>{const _0x2da91c=_0x2632ff;this[_0x2da91c(0x1b2)]['executeCommand'](_0x4e86ab['id'],_0x4e86ab[_0x2da91c(0x145)]?JSON[_0x2da91c(0x105)](_0x4e86ab['params']):null,{'fromCollab':!0x0});});}[_0x548bff(0x1a6)](){const _0x2c0208=_0x548bff;var _0x4720e6;this[_0x2c0208(0x117)]['next']('offline'),(_0x4720e6=this[_0x2c0208(0x100)])==null||_0x4720e6['dispose']();}[_0x548bff(0x189)](){const _0x5eaf70=_0x548bff;this[_0x5eaf70(0x117)][_0x5eaf70(0x173)](_0x5eaf70(0x11b)),this[_0x5eaf70(0x1b8)]();}};x=v([_(0x2,n['IConfigService']),_(0x3,(0x0,n[_0x548bff(0x137)])(g)),_(0x4,n['ICommandService'])],x);var S=_0x548bff(0x130),C=_0x548bff(0x17a);function _0xe804(_0x25211f,_0x1d3cbd){_0x25211f=_0x25211f-0xfc;const _0x3b33bb=_0x3b33();let _0xe804f3=_0x3b33bb[_0x25211f];return _0xe804f3;}const w={};let T=class extends n['Disposable']{constructor(_0x2313f3){const _0x4f2573=_0x548bff;super(),this[_0x4f2573(0x12b)]=_0x2313f3,this[_0x4f2573(0x191)]();}[_0x548bff(0x191)](){const _0x15f8d4=_0x548bff;[o[_0x15f8d4(0x152)]['id'],o[_0x15f8d4(0x15a)]['id'],r[_0x15f8d4(0x12c)]['id']][_0x15f8d4(0x14c)](_0x3d1471=>{const _0x2e82c6=_0x15f8d4;this[_0x2e82c6(0x167)](this[_0x2e82c6(0x12b)][_0x2e82c6(0x151)](_0x3d1471));});}};T=v([_(0x0,(0x0,n[_0x548bff(0x137)])(g))],T);function E(){const _0x3980a4=_0x548bff;let _0x4f322e=(0x0,s[_0x3980a4(0x150)])(y),_0x2e6d8d=(0x0,s[_0x3980a4(0x150)])(n[_0x3980a4(0x125)]),_0x361bc7=(0x0,s[_0x3980a4(0x112)])(()=>_0x2e6d8d['getCurrentTypeOfUnit$'](n[_0x3980a4(0x1a4)][_0x3980a4(0x120)]),void 0x0,!0x1,[]),_0x18f5f4=(0x0,s[_0x3980a4(0x112)])((0x0,u[_0x3980a4(0x13e)])(()=>_0x361bc7?(0x0,i['defer'])(()=>(0x0,i[_0x3980a4(0x19e)])(_0x4f322e[_0x3980a4(0x188)](_0x361bc7[_0x3980a4(0x159)]()))):(0x0,i['of'])(null),[_0x361bc7,_0x4f322e]),null),_0x1419ee=(0x0,s[_0x3980a4(0x112)])(_0x18f5f4?()=>_0x18f5f4[_0x3980a4(0x17c)]:null,_0x3980a4(0x11b),!0x1,[_0x18f5f4]);return _0x18f5f4?(0x0,d['jsx'])(c['Dropdown'],{'align':'end','disabled':_0x1419ee===_0x3980a4(0x1b0),'className':_0x3980a4(0x15c),'overlay':(0x0,d['jsx'])(D,{'status':_0x1419ee,'coordinator':_0x18f5f4}),'children':(0x0,d[_0x3980a4(0x143)])('button',{'className':(0x0,c[_0x3980a4(0x194)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1419ee===_0x3980a4(0x1b0),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1419ee!==_0x3980a4(0x1b0)}),'type':_0x3980a4(0x192),'children':(0x0,d[_0x3980a4(0x143)])(l['LiveShareIcon'],{})})}):null;}function D(_0x21c279){const _0x5de1e2=_0x548bff;let {status:_0x180154,coordinator:_0x141f46}=_0x21c279;switch(_0x180154){case _0x5de1e2(0x11b):return(0x0,d[_0x5de1e2(0x143)])(O,{'coordinator':_0x141f46});case _0x5de1e2(0x14d):return(0x0,d['jsx'])(k,{'coordinator':_0x141f46});case'not-following':return(0x0,d[_0x5de1e2(0x143)])(A,{'coordinator':_0x141f46});case _0x5de1e2(0x1b0):return(0x0,d['jsx'])(M,{});case _0x5de1e2(0x1b1):return(0x0,d[_0x5de1e2(0x143)])(j,{'coordinator':_0x141f46});default:return null;}}function _0x3b33(){const _0x2483bc=['has','useDependency','registerSharedOperation','SetZoomRatioOperation','event$','getMemberID','401116eBnZSz','requireSession','LiveShareController','stopFollowing','getUnitId','SetScrollOperation','tryStartPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','29655muBirX','Disposable','parseProtocolChangeset','defineProperty','Present\x20this\x20document','set','2232Muctrs','RxDisposable','constructor','LiveShareStatus','disposeWithMe','subscribe','clear','Fragment','getTypeOfUnitAdded$','onRendered','IDLE','unit','_handleOperation','default','mutations','get','next','Stop\x20following','type','_stopPresenting','Start\x20following','includes','asObservable','1.0.0-alpha.6','_startPresenting','status$','send','You\x27are\x20offline.','_univerInstanceService','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','mergeOverrideWithDependencies','4518864kSLiDU','sheet','CollaborationSessionService','OPERATION','getConfig','getLiveShareCoordinator','_handleOnline','_startFollowing','values','OFFLINE','data','_config','_injector','3515400nTSehU','_init','button','memberID','clsx','registerDependencies','Plugin','_beIdle','setConfig','Start','DisposableCollection','object','_mountLiveShare','Module','from','text','Injector','prototype','subject','getStatus','UniverInstanceType','getInitialStates','_handleOffline','_entities','takeUntil','length','map','_handleTerminate','_presenter','operations','shouldShareOperation','Button','offline','presenting','_commandService','_sharedOperations','_configService','div','registerInitialStateReporter','pluginName','_fetchOperations','IUIPartsService','ONLINE','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','_commandDisposable','add','toDisposable','merge','_reporters','parse','complete','getTypeOfUnitDisposed$','live-share.config','packageName','223953vfPjQg','HEADER_MENU','_stopFollowing','dispose','startFollowing','version','init','FOLLOWING','useObservable','_collabSessionService','executeCommand','getLiveShareCoordinatorSync','unsubscribe','_status$','presenter','_status','_unitID','idle','getValue','DependentOn','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','function','string','Subject','Stop\x20presenting','IUniverInstanceService','pipe','call','find','registerComponent','stopPresenting','_liveShareService','SetWorksheetActiveOperation','onCommandExecuted','285234tnLQfG','onStarting','@univerjs-pro/live-share','IConfigService','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','12cKVaZy','dispose$','InsertSheetMutation','Inject','SessionStatus','_handleNewHost','CollaborationEvent','_collabSession','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','useMemo','UNIVER_UNKNOWN','UniverLiveSharePlugin','reverse','You\x27re\x20not\x20following\x20the\x20presenter','jsx','getOwnPropertyDescriptor','params','not-following','jsxs','BehaviorSubject','1329935ihfedr','BuiltInUIPart','symbol','forEach','following','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x3b33=function(){return _0x2483bc;};return _0x3b33();}function O(_0x441c2b){const _0x49071e=_0x548bff;let {coordinator:_0x581b76}=_0x441c2b;return(0x0,d[_0x49071e(0x147)])(d[_0x49071e(0x16a)],{'children':[(0x0,d[_0x49071e(0x143)])(_0x49071e(0x1b5),{'className':_0x49071e(0x11e),'children':_0x49071e(0x161)}),(0x0,d[_0x49071e(0x143)])(c[_0x49071e(0x1af)],{'onClick':()=>_0x581b76[_0x49071e(0x15b)](),'children':_0x49071e(0x199)})]});}function k(_0x1a41e0){const _0x5f5a9c=_0x548bff;let {coordinator:_0x4f51cd}=_0x1a41e0;return(0x0,d['jsxs'])(d[_0x5f5a9c(0x16a)],{'children':[(0x0,d[_0x5f5a9c(0x143)])('div',{'className':_0x5f5a9c(0x11e),'children':_0x5f5a9c(0x180)}),(0x0,d[_0x5f5a9c(0x143)])(c['Button'],{'onClick':()=>_0x4f51cd[_0x5f5a9c(0x158)](),'children':_0x5f5a9c(0x174)})]});}function A(_0x37d5b3){const _0x519783=_0x548bff;let {coordinator:_0x5ee941}=_0x37d5b3;return(0x0,d['jsxs'])(d[_0x519783(0x16a)],{'children':[(0x0,d['jsx'])(_0x519783(0x1b5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x519783(0x142)}),(0x0,d[_0x519783(0x143)])(c[_0x519783(0x1af)],{'variant':_0x519783(0x19f),'onClick':()=>_0x5ee941['startFollowing'](),'children':_0x519783(0x177)})]});}function j(_0x2e788f){const _0x40504b=_0x548bff;let {coordinator:_0x2393a9}=_0x2e788f;return(0x0,d[_0x40504b(0x147)])(d[_0x40504b(0x16a)],{'children':[(0x0,d[_0x40504b(0x143)])('div',{'className':_0x40504b(0x11e),'children':_0x40504b(0x11f)}),(0x0,d[_0x40504b(0x143)])(c[_0x40504b(0x1af)],{'variant':_0x40504b(0x170),'onClick':()=>_0x2393a9[_0x40504b(0x12a)](),'children':_0x40504b(0x124)})]});}function M(){const _0x3de6e7=_0x548bff;return(0x0,d[_0x3de6e7(0x143)])(d[_0x3de6e7(0x16a)],{'children':_0x3de6e7(0x17e)});}let N=class extends n['Disposable']{constructor(_0x47d596,_0x6b4eea){const _0x156c4a=_0x548bff;super(),this['_injector']=_0x47d596,this['_uiPartsService']=_0x6b4eea,this[_0x156c4a(0x19c)]();}[_0x548bff(0x19c)](){const _0x20e9fc=_0x548bff;this[_0x20e9fc(0x167)](this['_uiPartsService'][_0x20e9fc(0x129)](s[_0x20e9fc(0x14a)][_0x20e9fc(0x10b)],()=>(0x0,s['connectInjector'])(E,this[_0x20e9fc(0x18f)])));}};N=v([_(0x0,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x1,s[_0x548bff(0xfc)])],N);let P=class extends n[_0x548bff(0x196)]{constructor(_0x256eb9=w,_0x42388b,_0x18c94b){const _0x4aba90=_0x548bff;super(),this[_0x4aba90(0x18e)]=_0x256eb9,this[_0x4aba90(0x18f)]=_0x42388b,this[_0x4aba90(0x1b4)]=_0x18c94b;let {..._0x471f45}=(0x0,n[_0x4aba90(0x103)])({},w,this[_0x4aba90(0x18e)]);this[_0x4aba90(0x1b4)][_0x4aba90(0x198)](_0x4aba90(0x108),_0x471f45);}[_0x548bff(0x12f)](){const _0x4afa03=_0x548bff;(0x0,n[_0x4afa03(0x195)])(this['_injector'],(0x0,n[_0x4afa03(0x182)])([[g],[y],[T],[N]],this[_0x4afa03(0x18e)]['override'])),(0x0,n['touchDependencies'])(this[_0x4afa03(0x18f)],[[T]]);}[_0x548bff(0x16c)](){const _0x18e161=_0x548bff;(0x0,n['touchDependencies'])(this[_0x18e161(0x18f)],[[N]]);}};h(P,_0x548bff(0x175),n[_0x548bff(0x1a4)][_0x548bff(0x13f)]),h(P,_0x548bff(0x1b7),_0x548bff(0x181)),h(P,_0x548bff(0x109),S),h(P,_0x548bff(0x10f),C),P=v([(0x0,n[_0x548bff(0x11d)])(t[_0x548bff(0x13c)]),_(0x1,(0x0,n[_0x548bff(0x137)])(n[_0x548bff(0x1a0)])),_(0x2,n[_0x548bff(0x131)])],P),Object['defineProperty'](exports,_0x548bff(0x157),{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x548bff(0x166)]=b,Object[_0x548bff(0x160)](exports,_0x548bff(0x140),{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x571863=_0x1117;(function(_0x430966,_0xd38ee1){const _0x1367e1=_0x1117,_0x44f87f=_0x430966();while(!![]){try{const _0x542906=-parseInt(_0x1367e1(0xe2))/0x1*(parseInt(_0x1367e1(0xf5))/0x2)+parseInt(_0x1367e1(0xe4))/0x3+-parseInt(_0x1367e1(0xea))/0x4+-parseInt(_0x1367e1(0xe7))/0x5*(parseInt(_0x1367e1(0xfa))/0x6)+parseInt(_0x1367e1(0xf0))/0x7*(-parseInt(_0x1367e1(0xe3))/0x8)+-parseInt(_0x1367e1(0xe0))/0x9*(parseInt(_0x1367e1(0xec))/0xa)+parseInt(_0x1367e1(0x104))/0xb;if(_0x542906===_0xd38ee1)break;else _0x44f87f['push'](_0x44f87f['shift']());}catch(_0x2303c2){_0x44f87f['push'](_0x44f87f['shift']());}}}(_0x392c,0x229d8));import{LiveShareController as _0x536f17,LiveShareStatus as _0x4aee24}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2da18d,UniverInstanceType as _0x404635}from'@univerjs/core';import{FEnum as _0x477a39,FUniver as _0x5c4d4d}from'@univerjs/core/facade';function o(_0xd75a2b){'@babel/helpers - typeof';const _0x6466dd=_0x1117;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x6466dd(0x101)?function(_0x185c6e){return typeof _0x185c6e;}:function(_0x3d01ed){const _0x3b6641=_0x6466dd;return _0x3d01ed&&typeof Symbol==_0x3b6641(0xe9)&&_0x3d01ed[_0x3b6641(0xfd)]===Symbol&&_0x3d01ed!==Symbol[_0x3b6641(0xff)]?_0x3b6641(0x101):typeof _0x3d01ed;},o(_0xd75a2b);}function _0x392c(){const _0x28bd59=['object','_liveShareController','getUnitId','string','547038ZeUnrt','call','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','2292ghYiql','_injector','toPrimitive','constructor','tryStartPresenting','prototype','IDLE','symbol','startFollowing','No\x20active\x20workbook\x20found.','8054145jYFoOD','LiveShareStatusEnum','getStatus','128808oLNCgj','UNIVER_SHEET','1VKoyTI','15392icxgLf','442302riTkpT','get','getCurrentUnitOfType','325Kqymjp','getLiveShareCoordinatorSync','function','912368DBBprW','defineProperty','20jgsydQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','default','665bGTWPU'];_0x392c=function(){return _0x28bd59;};return _0x392c();}function s(_0x2f2299,_0x5b0368){const _0x5b5efd=_0x1117;if(o(_0x2f2299)!=_0x5b5efd(0xf1)||!_0x2f2299)return _0x2f2299;var _0x30d922=_0x2f2299[Symbol[_0x5b5efd(0xfc)]];if(_0x30d922!==void 0x0){var _0x1975e9=_0x30d922[_0x5b5efd(0xf6)](_0x2f2299,_0x5b0368||_0x5b5efd(0xef));if(o(_0x1975e9)!=_0x5b5efd(0xf1))return _0x1975e9;throw TypeError(_0x5b5efd(0xed));}return(_0x5b0368==='string'?String:Number)(_0x2f2299);}function c(_0x1996ac){const _0x126373=_0x1117;var _0x4ef929=s(_0x1996ac,_0x126373(0xf4));return o(_0x4ef929)==_0x126373(0x101)?_0x4ef929:_0x4ef929+'';}function _0x1117(_0x3ad35a,_0x26e217){_0x3ad35a=_0x3ad35a-0xdf;const _0x392c18=_0x392c();let _0x111735=_0x392c18[_0x3ad35a];return _0x111735;}function l(_0x42dd1,_0x3624b7,_0x483f50){const _0x805127=_0x1117;return(_0x3624b7=c(_0x3624b7))in _0x42dd1?Object[_0x805127(0xeb)](_0x42dd1,_0x3624b7,{'value':_0x483f50,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x42dd1[_0x3624b7]=_0x483f50,_0x42dd1;}var u=class extends _0x5c4d4d{constructor(..._0x26b206){super(..._0x26b206),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x1b6688){const _0x23c77c=_0x1117;this[_0x23c77c(0xf2)]=_0x1b6688[_0x23c77c(0xe5)](_0x536f17);}['getLiveShareStatus'](){const _0x41d5de=_0x1117;var _0x43794a;let _0x598aac=this['_injector'][_0x41d5de(0xe5)](_0x2da18d)[_0x41d5de(0xe6)](_0x404635[_0x41d5de(0xe1)]);if(!_0x598aac)throw Error(_0x41d5de(0x103));let _0x196490=_0x598aac['getUnitId'](),_0x13fba1=this[_0x41d5de(0xf2)]['getLiveShareCoordinatorSync'](_0x196490);return(_0x43794a=_0x13fba1==null?void 0x0:_0x13fba1[_0x41d5de(0xdf)]())==null?_0x4aee24[_0x41d5de(0x100)]:_0x43794a;}[_0x571863(0x102)](){const _0x1bbcbb=_0x571863;let _0x13c3bb=this[_0x1bbcbb(0xfb)][_0x1bbcbb(0xe5)](_0x2da18d)[_0x1bbcbb(0xe6)](_0x404635[_0x1bbcbb(0xe1)]);if(!_0x13c3bb)throw Error(_0x1bbcbb(0x103));let _0x153dbd=_0x13c3bb[_0x1bbcbb(0xf3)](),_0xeee122=this[_0x1bbcbb(0xf2)][_0x1bbcbb(0xe8)](_0x153dbd);if(!_0xeee122)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xeee122[_0x1bbcbb(0x102)]();}['stopFollowing'](){const _0x27ed5d=_0x571863;let _0x4036ee=this[_0x27ed5d(0xfb)][_0x27ed5d(0xe5)](_0x2da18d)[_0x27ed5d(0xe6)](_0x404635[_0x27ed5d(0xe1)]);if(!_0x4036ee)throw Error('No\x20active\x20workbook\x20found.');let _0x1ae25c=_0x4036ee['getUnitId'](),_0x525c0c=this[_0x27ed5d(0xf2)][_0x27ed5d(0xe8)](_0x1ae25c);if(!_0x525c0c)throw Error(_0x27ed5d(0xf8));_0x525c0c['stopFollowing']();}[_0x571863(0xf9)](){const _0x340083=_0x571863;let _0x1a8c28=this['_injector'][_0x340083(0xe5)](_0x2da18d)[_0x340083(0xe6)](_0x404635[_0x340083(0xe1)]);if(!_0x1a8c28)throw Error(_0x340083(0x103));let _0x3ab199=_0x1a8c28[_0x340083(0xf3)](),_0xb134a3=this[_0x340083(0xf2)][_0x340083(0xe8)](_0x3ab199);if(!_0xb134a3)throw Error(_0x340083(0xf8));_0xb134a3[_0x340083(0xfe)]();}[_0x571863(0xf7)](){const _0x30c831=_0x571863;let _0x409a1d=this[_0x30c831(0xfb)][_0x30c831(0xe5)](_0x2da18d)[_0x30c831(0xe6)](_0x404635[_0x30c831(0xe1)]);if(!_0x409a1d)throw Error(_0x30c831(0x103));let _0x1b1626=_0x409a1d[_0x30c831(0xf3)](),_0x2ebf75=this[_0x30c831(0xf2)]['getLiveShareCoordinatorSync'](_0x1b1626);if(!_0x2ebf75)throw Error(_0x30c831(0xf8));_0x2ebf75[_0x30c831(0xf7)]();}};_0x5c4d4d[_0x571863(0xee)](u);var d=class extends _0x477a39{get[_0x571863(0x105)](){return _0x4aee24;}};_0x477a39[_0x571863(0xee)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x1ef015=_0x30de;(function(_0x72572b,_0x478403){const _0x17655b=_0x30de,_0x3c0082=_0x72572b();while(!![]){try{const _0x4bb742=parseInt(_0x17655b(0x149))/0x1*(parseInt(_0x17655b(0x139))/0x2)+-parseInt(_0x17655b(0x157))/0x3*(parseInt(_0x17655b(0x125))/0x4)+-parseInt(_0x17655b(0x165))/0x5*(parseInt(_0x17655b(0x1a3))/0x6)+parseInt(_0x17655b(0x13c))/0x7*(-parseInt(_0x17655b(0x144))/0x8)+parseInt(_0x17655b(0x151))/0x9+parseInt(_0x17655b(0x147))/0xa*(-parseInt(_0x17655b(0x123))/0xb)+-parseInt(_0x17655b(0x12e))/0xc*(-parseInt(_0x17655b(0x14c))/0xd);if(_0x4bb742===_0x478403)break;else _0x3c0082['push'](_0x3c0082['shift']());}catch(_0x4e85a2){_0x3c0082['push'](_0x3c0082['shift']());}}}(_0x1f85,0xbd4dc));import{CollaborationEvent as _0xa01ab3,parseProtocolChangeset as _0x50ff4f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x578bbb,SessionStatus as _0xad06a6,UniverCollaborationClientPlugin as _0x3d2453}from'@univerjs-pro/collaboration-client';import{CommandType as _0x2cae7d,DependentOn as _0x1107e5,Disposable as _0x5788e4,DisposableCollection as _0x5ac756,ICommandService as _0x25c57d,IConfigService as _0x29aef5,IUniverInstanceService as _0x34db29,Inject as _0x1ce525,Injector as _0x20c231,Plugin as _0x5f5a10,RxDisposable as _0x27962b,UniverInstanceType as _0x17d19f,merge as _0x55222e,mergeOverrideWithDependencies as _0x478569,registerDependencies as _0x382922,toDisposable as _0x276595,touchDependencies as _0x2f37ac}from'@univerjs/core';import{InsertSheetMutation as _0x5b80de,SetWorksheetActiveOperation as _0x47d365}from'@univerjs/sheets';import{BehaviorSubject as _0x208b12,Subject as _0x21867,defer as _0x5946d8,from as _0x3c88f6,of as _0x59e3f1}from'rxjs';import{takeUntil as _0x3710c2,throttleTime as _0x45cfeb}from'rxjs/operators';import{SetScrollOperation as _0x20642b,SetZoomRatioOperation as _0x58bee4}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x2b605a,IUIPartsService as _0x377001,connectInjector as _0x30f50d,useDependency as _0x2b6432,useObservable as _0x3a4779}from'@univerjs/ui';function _0x1f85(){const _0x2abe9a=['parse','5142700fOqkQD','div','105iJFbco','setConfig','getLiveShareCoordinator','22633SIHkgH','_liveShareService','shouldShareOperation','UNIVER_SHEET','symbol','3885948syWHyo','_startLiveShareCoordinator','LIVESHARE_OPERATION','button','HEADER_MENU','set','41073eieeIQ','constructor','You\x27re\x20not\x20following\x20the\x20presenter','object','_stopFollowing','createInstance','ONLINE','unit','_status','registerInitialStateReporter','getLiveShareCoordinatorSync','get','string','event$','1260955bxAToY','LIVESHARE_TERMINATE','pipe','getInitialStates','presenting','tryStartPresenting','_collabSessionService','stopPresenting','Start\x20following','OFFLINE','defineProperty','_collabSession','unsubscribe','data','_beIdle','_unitID','NEW_CHANGESETS','length','dispose$','executeCommand','has','_init','presenter','live-share.config','call','subject','UNIVER_UNKNOWN','asObservable','type','iterator','decorate','stringify','_entities','function','send','init','_presenter','_handleNewChangeSets','mutations','unitId','You\x27re\x20following\x20the\x20presenter','status$','_injector','_commandService','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_commandDisposable','Stop\x20presenting','NOT_FOLLOWING','_reporters','next','_configService','startFollowing','reverse','You\x27re\x20presenting\x20the\x20document','onStarting','_handleOffline','requireSession','dispose','following','12HCYmEt','Present\x20this\x20document','params','_handleOnline','_startPresenting','complete','version','Start','getMemberID','getUnitId','stopFollowing','find','_handleTerminate','_univerInstanceService','includes','subscribe','You\x27are\x20offline.','_handleNewHost','33mcdMgp','getStatus','276CYCauI','memberID','_mountLiveShare','not-following','registerComponent','sheet','getConfig','_config','_uiPartsService','18024nLJhuS','SAME_OPERATION_SHARE_INTERVAL','offline','_fetchOperations','default','operations','add','toPrimitive','values','_sharedOperations','registerSharedOperation','25894kUBnMb','map','_startFollowing','6335kRdCaq','idle','1.0.0-alpha.6','_status$','PRESENTING','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','delete','5648KGrmfA','forEach'];_0x1f85=function(){return _0x2abe9a;};return _0x1f85();}import{Button as _0x339963,Dropdown as _0x5dc2e4,clsx as _0x3253e8}from'@univerjs/design';function _0x30de(_0x53ea53,_0xf0d425){_0x53ea53=_0x53ea53-0x122;const _0x1f850f=_0x1f85();let _0x30de06=_0x1f850f[_0x53ea53];return _0x30de06;}import{LiveShareIcon as _0x17587a}from'@univerjs/icons';import{useMemo as _0x5181e1}from'react';import{Fragment as _0x449cea,jsx as _0x47077f,jsxs as _0x10f923}from'react/jsx-runtime';function z(_0x20dfd6){'@babel/helpers - typeof';const _0x30d4d1=_0x30de;return z=typeof Symbol==_0x30d4d1(0x186)&&typeof Symbol[_0x30d4d1(0x182)]==_0x30d4d1(0x150)?function(_0x1603a3){return typeof _0x1603a3;}:function(_0x59b176){const _0xcad29=_0x30d4d1;return _0x59b176&&typeof Symbol==_0xcad29(0x186)&&_0x59b176[_0xcad29(0x158)]===Symbol&&_0x59b176!==Symbol['prototype']?_0xcad29(0x150):typeof _0x59b176;},z(_0x20dfd6);}function B(_0x56dd99,_0x290374){const _0x29ca27=_0x30de;if(z(_0x56dd99)!=_0x29ca27(0x15a)||!_0x56dd99)return _0x56dd99;var _0x472464=_0x56dd99[Symbol[_0x29ca27(0x135)]];if(_0x472464!==void 0x0){var _0x400d92=_0x472464[_0x29ca27(0x17d)](_0x56dd99,_0x290374||_0x29ca27(0x132));if(z(_0x400d92)!='object')return _0x400d92;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x290374===_0x29ca27(0x163)?String:Number)(_0x56dd99);}function V(_0x20ae5d){const _0x26105c=_0x30de;var _0x3d8e61=B(_0x20ae5d,_0x26105c(0x163));return z(_0x3d8e61)==_0x26105c(0x150)?_0x3d8e61:_0x3d8e61+'';}function H(_0x46b6f1,_0x1efa33,_0x12e3f4){const _0x1e21c0=_0x30de;return(_0x1efa33=V(_0x1efa33))in _0x46b6f1?Object[_0x1e21c0(0x16f)](_0x46b6f1,_0x1efa33,{'value':_0x12e3f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b6f1[_0x1efa33]=_0x12e3f4,_0x46b6f1;}var U=class extends _0x5788e4{constructor(..._0x47dfaf){const _0xdd42f2=_0x30de;super(..._0x47dfaf),H(this,_0xdd42f2(0x137),new Set()),H(this,_0xdd42f2(0x198),new Set());}['registerSharedOperation'](_0x72d19d){const _0x227739=_0x30de;return this['_sharedOperations'][_0x227739(0x134)](_0x72d19d),_0x276595(()=>this['_sharedOperations']['delete'](_0x72d19d));}[_0x1ef015(0x160)](_0x49b534){const _0x1afd96=_0x1ef015;return this[_0x1afd96(0x198)]['add'](_0x49b534),_0x276595(()=>this[_0x1afd96(0x198)][_0x1afd96(0x143)](_0x49b534));}[_0x1ef015(0x14e)](_0x5e4537){const _0x747cb7=_0x1ef015;return this[_0x747cb7(0x137)][_0x747cb7(0x179)](_0x5e4537);}['getInitialStates'](_0x522e73){const _0x3c3a27=_0x1ef015;return Array['from'](this['_reporters'])[_0x3c3a27(0x13a)](_0x47ab2b=>_0x47ab2b(_0x522e73));}};function W(_0x225faf,_0xcd6bc){return function(_0x2381bf,_0x24c75b){_0xcd6bc(_0x2381bf,_0x24c75b,_0x225faf);};}function G(_0x537cf3,_0x36665c,_0x228390,_0x5bed31){const _0x3b7e37=_0x1ef015;var _0xa129c7=arguments[_0x3b7e37(0x176)],_0x31b474=_0xa129c7<0x3?_0x36665c:_0x5bed31===null?_0x5bed31=Object['getOwnPropertyDescriptor'](_0x36665c,_0x228390):_0x5bed31,_0x22ef93;if(typeof Reflect==_0x3b7e37(0x15a)&&typeof Reflect[_0x3b7e37(0x183)]=='function')_0x31b474=Reflect[_0x3b7e37(0x183)](_0x537cf3,_0x36665c,_0x228390,_0x5bed31);else{for(var _0x322acc=_0x537cf3[_0x3b7e37(0x176)]-0x1;_0x322acc>=0x0;_0x322acc--)(_0x22ef93=_0x537cf3[_0x322acc])&&(_0x31b474=(_0xa129c7<0x3?_0x22ef93(_0x31b474):_0xa129c7>0x3?_0x22ef93(_0x36665c,_0x228390,_0x31b474):_0x22ef93(_0x36665c,_0x228390))||_0x31b474);}return _0xa129c7>0x3&&_0x31b474&&Object['defineProperty'](_0x36665c,_0x228390,_0x31b474),_0x31b474;}let K=class extends _0x27962b{constructor(_0x5d2bd6,_0x5e6027,_0x455680){const _0x243f69=_0x1ef015;super(),this['_univerInstanceService']=_0x5d2bd6,this[_0x243f69(0x18f)]=_0x5e6027,this['_collabSessionService']=_0x455680,H(this,'_entities',new Map()),this['_init']();}async[_0x1ef015(0x14b)](_0x480162){const _0x4e1a4f=_0x1ef015;return this[_0x4e1a4f(0x185)][_0x4e1a4f(0x179)](_0x480162)||await this[_0x4e1a4f(0x152)](_0x480162),this[_0x4e1a4f(0x185)][_0x4e1a4f(0x162)](_0x480162);}[_0x1ef015(0x161)](_0x3b20f9){const _0x920fce=_0x1ef015;var _0x3edde8;return(_0x3edde8=this[_0x920fce(0x185)]['get'](_0x3b20f9))==null?null:_0x3edde8;}['_init'](){const _0x2c2c34=_0x1ef015;this[_0x2c2c34(0x1b0)]['getTypeOfUnitAdded$'](_0x17d19f[_0x2c2c34(0x14f)])[_0x2c2c34(0x167)](_0x3710c2(this[_0x2c2c34(0x177)]))['subscribe'](async _0x2e6159=>{const _0x505bb3=_0x2c2c34;let _0x19dbfa=_0x2e6159[_0x505bb3(0x15e)][_0x505bb3(0x1ac)]();this[_0x505bb3(0x185)][_0x505bb3(0x179)](_0x19dbfa)||this[_0x505bb3(0x152)](_0x19dbfa);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x17d19f[_0x2c2c34(0x14f)])['pipe'](_0x3710c2(this[_0x2c2c34(0x177)]))[_0x2c2c34(0x1b2)](_0x84b717=>{const _0x1897dd=_0x2c2c34;let _0x51124e=_0x84b717[_0x1897dd(0x1ac)](),_0x3e7566=this[_0x1897dd(0x185)][_0x1897dd(0x162)](_0x51124e);_0x3e7566==null||_0x3e7566[_0x1897dd(0x1a1)]();});}async[_0x1ef015(0x152)](_0x4afddf){const _0x19a544=_0x1ef015;let _0x288085=await this[_0x19a544(0x16b)][_0x19a544(0x1a0)](_0x4afddf),_0x12bcf7=this['_injector'][_0x19a544(0x15c)](J,_0x4afddf,_0x288085);return _0x12bcf7[_0x19a544(0x188)](),this[_0x19a544(0x185)][_0x19a544(0x156)](_0x4afddf,_0x12bcf7),_0x12bcf7;}};K=G([W(0x0,_0x34db29),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x1ce525(_0x578bbb))],K);let q=function(_0x1283e9){const _0xe3b582=_0x1ef015;return _0x1283e9['OFFLINE']=_0xe3b582(0x130),_0x1283e9['IDLE']=_0xe3b582(0x13d),_0x1283e9['FOLLOWING']=_0xe3b582(0x1a2),_0x1283e9[_0xe3b582(0x197)]=_0xe3b582(0x128),_0x1283e9[_0xe3b582(0x140)]=_0xe3b582(0x169),_0x1283e9;}({}),J=class extends _0x27962b{get['_status'](){const _0x287847=_0x1ef015;return this[_0x287847(0x13f)]['getValue']();}constructor(_0x324a1c,_0x4d1d5c,_0x566a18,_0x2ba8bf,_0x20926c){const _0x2e4046=_0x1ef015;super(),this[_0x2e4046(0x174)]=_0x324a1c,this[_0x2e4046(0x170)]=_0x4d1d5c,this[_0x2e4046(0x19a)]=_0x566a18,this[_0x2e4046(0x14d)]=_0x2ba8bf,this['_commandService']=_0x20926c,H(this,_0x2e4046(0x13f),new _0x208b12(_0x2e4046(0x13d))),H(this,'status$',this[_0x2e4046(0x13f)][_0x2e4046(0x180)]()),H(this,'_init',!0x1),H(this,_0x2e4046(0x195),null),H(this,_0x2e4046(0x189),null);}['dispose'](){const _0x28999d=_0x1ef015;var _0x15c1c5;(_0x15c1c5=this['_commandDisposable'])==null||_0x15c1c5[_0x28999d(0x1a1)](),this[_0x28999d(0x13f)][_0x28999d(0x199)]('idle'),this['_status$'][_0x28999d(0x1a8)]();}[_0x1ef015(0x124)](){const _0x287108=_0x1ef015;return this[_0x287108(0x15f)];}[_0x1ef015(0x188)](){const _0x29f5a0=_0x1ef015;this[_0x29f5a0(0x17a)]||(this[_0x29f5a0(0x17a)]=!0x0,this[_0x29f5a0(0x170)]['sessionStatus$'][_0x29f5a0(0x167)](_0x3710c2(this['dispose$']))[_0x29f5a0(0x1b2)](_0xc771bf=>{const _0x5bd628=_0x29f5a0;switch(_0xc771bf){case _0xad06a6[_0x5bd628(0x16e)]:this[_0x5bd628(0x19f)]();break;case _0xad06a6[_0x5bd628(0x15d)]:this[_0x5bd628(0x1a6)]();break;default:}}),this['_collabSession'][_0x29f5a0(0x164)][_0x29f5a0(0x167)](_0x3710c2(this[_0x29f5a0(0x177)]))[_0x29f5a0(0x1b2)](_0x1952af=>{const _0x50a661=_0x29f5a0;let {eventID:_0x4a1c80}=_0x1952af;switch(_0x4a1c80){case _0xa01ab3['LIVESHARE_NEW_HOST']:this[_0x50a661(0x122)](_0x1952af);break;case _0xa01ab3[_0x50a661(0x153)]:this['_handleOperation'](_0x1952af);break;case _0xa01ab3['LIVESHARE_TERMINATE']:this[_0x50a661(0x1af)]();break;case _0xa01ab3[_0x50a661(0x175)]:this[_0x50a661(0x18a)](_0x1952af);break;default:}}));}[_0x1ef015(0x16a)](){const _0xaf4ef2=_0x1ef015;this[_0xaf4ef2(0x170)][_0xaf4ef2(0x187)]({'eventID':_0xa01ab3['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0xaf4ef2(0x1ab)]()}},this[_0xaf4ef2(0x174)]);}[_0x1ef015(0x16c)](){const _0x31213b=_0x1ef015;this[_0x31213b(0x15f)]===_0x31213b(0x169)&&(this[_0x31213b(0x13f)]['next']('idle'),this[_0x31213b(0x170)]['send']({'eventID':_0xa01ab3[_0x31213b(0x166)],'data':{'unitID':this[_0x31213b(0x174)]}},this[_0x31213b(0x174)]));}[_0x1ef015(0x19b)](){const _0x14e005=_0x1ef015;this[_0x14e005(0x15f)]===_0x14e005(0x128)&&(this[_0x14e005(0x13f)]['next']('following'),this['_startFollowing']());}[_0x1ef015(0x1ad)](){const _0x2ad9f=_0x1ef015;this['_status']===_0x2ad9f(0x1a2)&&this[_0x2ad9f(0x15b)]();}['_handleNewHost'](_0x1a75af){const _0x1cb8ae=_0x1ef015;let {presenter:_0x18f0e5}=_0x1a75af[_0x1cb8ae(0x172)],_0x5034cd=this['_collabSession'][_0x1cb8ae(0x1ab)]();this[_0x1cb8ae(0x189)]=_0x18f0e5,_0x18f0e5===_0x5034cd?(this['_stopFollowing'](),this[_0x1cb8ae(0x1a7)]()):this[_0x1cb8ae(0x15f)]!==_0x1cb8ae(0x128)&&(this[_0x1cb8ae(0x191)](),this[_0x1cb8ae(0x13b)]());}[_0x1ef015(0x131)](){const _0x4811fd=_0x1ef015;let _0x337ee4={'eventID':_0xa01ab3['LIVESHARE_FETCH_OPERATIONS']};this[_0x4811fd(0x170)]['send'](_0x337ee4,this['_unitID']);}['_handleTerminate'](){const _0x5c82f3=_0x1ef015;this[_0x5c82f3(0x189)]=null,this[_0x5c82f3(0x15f)]!==_0x5c82f3(0x169)&&this[_0x5c82f3(0x173)]();}[_0x1ef015(0x18a)](_0x33124d){const _0x414621=_0x1ef015;if(this[_0x414621(0x15f)]===_0x414621(0x1a2)&&this[_0x414621(0x189)]===_0x33124d[_0x414621(0x172)][_0x414621(0x126)]){let _0x57423f=_0x50ff4f(_0x33124d[_0x414621(0x172)])[_0x414621(0x18b)][_0x414621(0x19c)]()[_0x414621(0x1ae)](_0x3f9b32=>_0x3f9b32['id']===_0x5b80de['id']);if(_0x57423f){let _0x256593=_0x57423f[_0x414621(0x1a5)][_0x414621(0x18c)],_0x4fc10c=_0x57423f['params'][_0x414621(0x12a)]['id'];setTimeout(()=>{const _0x5a6c99=_0x414621;this['_commandService'][_0x5a6c99(0x178)](_0x47d365['id'],{'unitId':_0x256593,'subUnitId':_0x4fc10c},{'fromCollab':!0x0});});}}}[_0x1ef015(0x1a7)](){const _0x3ac4b0=_0x1ef015;var _0x22ff72;(_0x22ff72=this['_commandDisposable'])==null||_0x22ff72[_0x3ac4b0(0x1a1)](),this['_status$'][_0x3ac4b0(0x199)](_0x3ac4b0(0x169));let _0x5b2ebf=new Map(),_0xf8313b=this[_0x3ac4b0(0x195)]=new _0x5ac756();_0xf8313b[_0x3ac4b0(0x134)](_0x276595(()=>{const _0x2e5f10=_0x3ac4b0;_0x5b2ebf[_0x2e5f10(0x145)](({subject:_0x124386,subscription:_0x4ca953})=>{const _0x248b95=_0x2e5f10;_0x4ca953[_0x248b95(0x171)](),_0x124386[_0x248b95(0x1a8)]();}),_0x5b2ebf['clear']();})),_0xf8313b[_0x3ac4b0(0x134)](this[_0x3ac4b0(0x190)]['onCommandExecuted'](_0x4087c6=>{const _0xeecaff=_0x3ac4b0;if(_0x4087c6[_0xeecaff(0x181)]!==_0x2cae7d[_0xeecaff(0x194)]||!this[_0xeecaff(0x14d)][_0xeecaff(0x14e)](_0x4087c6['id']))return;let {id:_0x357fde}=_0x4087c6,_0x10013b;if(_0x5b2ebf[_0xeecaff(0x179)](_0x357fde))_0x10013b=_0x5b2ebf[_0xeecaff(0x162)](_0x357fde)[_0xeecaff(0x17e)];else{var _0x2a90d9;_0x10013b=new _0x21867();let _0x3e7380=_0x10013b[_0xeecaff(0x167)](_0x45cfeb((_0x2a90d9=this['_configService'][_0xeecaff(0x12b)](_0xeecaff(0x12f)))==null?0xc8:_0x2a90d9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xeecaff(0x1b2)](_0x599dfb=>{const _0x24393b=_0xeecaff;this[_0x24393b(0x170)][_0x24393b(0x187)]({'eventID':_0xa01ab3[_0x24393b(0x153)],'data':{'unitID':this[_0x24393b(0x174)],'operations':{[_0x599dfb['id']]:{'id':_0x599dfb['id'],'params':JSON[_0x24393b(0x184)](_0x599dfb[_0x24393b(0x1a5)])}}}},this['_unitID']);});_0x5b2ebf[_0xeecaff(0x156)](_0x357fde,{'subject':_0x10013b,'subscription':_0x3e7380});}_0x10013b['next'](_0x4087c6);})),this[_0x3ac4b0(0x14d)][_0x3ac4b0(0x168)](this[_0x3ac4b0(0x174)])[_0x3ac4b0(0x145)](_0x12d82b=>this[_0x3ac4b0(0x170)]['send']({'eventID':_0xa01ab3[_0x3ac4b0(0x153)],'data':{'unitID':this[_0x3ac4b0(0x174)],'operations':{[_0x12d82b['id']]:{'id':_0x12d82b['id'],'params':JSON[_0x3ac4b0(0x184)](_0x12d82b['params'])}}}},this[_0x3ac4b0(0x174)]));}[_0x1ef015(0x191)](){const _0x3cab21=_0x1ef015;var _0x6d4bd5;this[_0x3cab21(0x13f)][_0x3cab21(0x199)](_0x3cab21(0x13d)),(_0x6d4bd5=this[_0x3cab21(0x195)])==null||_0x6d4bd5['dispose'](),this['_commandDisposable']=null;}[_0x1ef015(0x13b)](){const _0x593cc1=_0x1ef015;var _0x578da3;(_0x578da3=this[_0x593cc1(0x195)])==null||_0x578da3[_0x593cc1(0x1a1)](),this[_0x593cc1(0x13f)][_0x593cc1(0x199)](_0x593cc1(0x1a2));}[_0x1ef015(0x173)](){const _0x22c3e0=_0x1ef015;var _0x59877b;this[_0x22c3e0(0x13f)][_0x22c3e0(0x199)](_0x22c3e0(0x13d)),(_0x59877b=this[_0x22c3e0(0x195)])==null||_0x59877b[_0x22c3e0(0x1a1)](),this[_0x22c3e0(0x195)]=null;}[_0x1ef015(0x15b)](){const _0x204da6=_0x1ef015;var _0x1b032c;this[_0x204da6(0x13f)][_0x204da6(0x199)](_0x204da6(0x128)),(_0x1b032c=this[_0x204da6(0x195)])==null||_0x1b032c['dispose']();}[_0x1ef015(0x142)](_0x170c63){const _0x3797f1=_0x1ef015;if([_0x3797f1(0x169),_0x3797f1(0x128),'offline'][_0x3797f1(0x1b1)](this[_0x3797f1(0x15f)])||!_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]||_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]===this[_0x3797f1(0x170)]['getMemberID']())return;this['_status']===_0x3797f1(0x13d)&&this[_0x3797f1(0x13b)]();let _0x572957=_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x133)];Object[_0x3797f1(0x136)](_0x572957)[_0x3797f1(0x145)](_0x500c64=>{const _0x30d1c5=_0x3797f1;this['_commandService'][_0x30d1c5(0x178)](_0x500c64['id'],_0x500c64[_0x30d1c5(0x1a5)]?JSON[_0x30d1c5(0x146)](_0x500c64[_0x30d1c5(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1e26f0=_0x1ef015;var _0x1e54a4;this['_status$'][_0x1e26f0(0x199)](_0x1e26f0(0x130)),(_0x1e54a4=this[_0x1e26f0(0x195)])==null||_0x1e54a4[_0x1e26f0(0x1a1)]();}['_handleOnline'](){const _0x357b30=_0x1ef015;this[_0x357b30(0x13f)][_0x357b30(0x199)](_0x357b30(0x13d)),this[_0x357b30(0x131)]();}};J=G([W(0x2,_0x29aef5),W(0x3,_0x1ce525(U)),W(0x4,_0x25c57d)],J);var se='@univerjs-pro/live-share',ce=_0x1ef015(0x13e);const Y={};let X=class extends _0x5788e4{constructor(_0x351318){const _0x56cfa7=_0x1ef015;super(),this[_0x56cfa7(0x14d)]=_0x351318,this[_0x56cfa7(0x17a)]();}[_0x1ef015(0x17a)](){const _0x481db2=_0x1ef015;[_0x58bee4['id'],_0x20642b['id'],_0x47d365['id']][_0x481db2(0x145)](_0x2beae3=>{const _0x511b59=_0x481db2;this['disposeWithMe'](this['_liveShareService'][_0x511b59(0x138)](_0x2beae3));});}};X=G([W(0x0,_0x1ce525(U))],X);function Z(){const _0x256493=_0x1ef015;let _0x5acfe0=_0x2b6432(K),_0x287e2a=_0x2b6432(_0x34db29),_0x5d5d3a=_0x3a4779(()=>_0x287e2a['getCurrentTypeOfUnit$'](_0x17d19f[_0x256493(0x14f)]),void 0x0,!0x1,[]),_0x878fdb=_0x3a4779(_0x5181e1(()=>_0x5d5d3a?_0x5946d8(()=>_0x3c88f6(_0x5acfe0[_0x256493(0x14b)](_0x5d5d3a[_0x256493(0x1ac)]()))):_0x59e3f1(null),[_0x5d5d3a,_0x5acfe0]),null),_0x3f90dd=_0x3a4779(_0x878fdb?()=>_0x878fdb[_0x256493(0x18e)]:null,_0x256493(0x13d),!0x1,[_0x878fdb]);return _0x878fdb?_0x47077f(_0x5dc2e4,{'align':'end','disabled':_0x3f90dd===_0x256493(0x130),'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x47077f(le,{'status':_0x3f90dd,'coordinator':_0x878fdb}),'children':_0x47077f('button',{'className':_0x3253e8(_0x256493(0x193),{'univer-cursor-not-allowed':_0x3f90dd===_0x256493(0x130),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f90dd!=='offline'}),'type':_0x256493(0x154),'children':_0x47077f(_0x17587a,{})})}):null;}function le(_0x5906ff){const _0x3f983b=_0x1ef015;let {status:_0x14ed4c,coordinator:_0x72af8c}=_0x5906ff;switch(_0x14ed4c){case'idle':return _0x47077f(ue,{'coordinator':_0x72af8c});case _0x3f983b(0x1a2):return _0x47077f(de,{'coordinator':_0x72af8c});case _0x3f983b(0x128):return _0x47077f(fe,{'coordinator':_0x72af8c});case'offline':return _0x47077f(me,{});case'presenting':return _0x47077f(pe,{'coordinator':_0x72af8c});default:return null;}}function ue(_0x231f58){const _0x4d9702=_0x1ef015;let {coordinator:_0x4380e6}=_0x231f58;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x4d9702(0x148),{'className':_0x4d9702(0x192),'children':_0x4d9702(0x1a4)}),_0x47077f(_0x339963,{'onClick':()=>_0x4380e6['tryStartPresenting'](),'children':_0x4d9702(0x1aa)})]});}function de(_0x5195df){const _0x40089c=_0x1ef015;let {coordinator:_0x57877b}=_0x5195df;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x40089c(0x148),{'className':_0x40089c(0x192),'children':_0x40089c(0x18d)}),_0x47077f(_0x339963,{'onClick':()=>_0x57877b['stopFollowing'](),'children':'Stop\x20following'})]});}function fe(_0x4fc816){const _0x4b419b=_0x1ef015;let {coordinator:_0x32c381}=_0x4fc816;return _0x10f923(_0x449cea,{'children':[_0x47077f('div',{'className':_0x4b419b(0x192),'children':_0x4b419b(0x159)}),_0x47077f(_0x339963,{'variant':'text','onClick':()=>_0x32c381[_0x4b419b(0x19b)](),'children':_0x4b419b(0x16d)})]});}function pe(_0x5a53ce){const _0x235e42=_0x1ef015;let {coordinator:_0x27c98b}=_0x5a53ce;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x235e42(0x148),{'className':_0x235e42(0x192),'children':_0x235e42(0x19d)}),_0x47077f(_0x339963,{'variant':_0x235e42(0x132),'onClick':()=>_0x27c98b[_0x235e42(0x16c)](),'children':_0x235e42(0x196)})]});}function me(){const _0x2cdd7a=_0x1ef015;return _0x47077f(_0x449cea,{'children':_0x2cdd7a(0x1b3)});}let Q=class extends _0x5788e4{constructor(_0x4801f5,_0x46114d){const _0x127afe=_0x1ef015;super(),this[_0x127afe(0x18f)]=_0x4801f5,this[_0x127afe(0x12d)]=_0x46114d,this[_0x127afe(0x127)]();}[_0x1ef015(0x127)](){const _0xae24d8=_0x1ef015;this['disposeWithMe'](this[_0xae24d8(0x12d)][_0xae24d8(0x129)](_0x2b605a[_0xae24d8(0x155)],()=>_0x30f50d(Z,this[_0xae24d8(0x18f)])));}};Q=G([W(0x0,_0x1ce525(_0x20c231)),W(0x1,_0x377001)],Q);let $=class extends _0x5f5a10{constructor(_0x34ab0f=Y,_0x29d04c,_0xc623df){const _0x3e9bd9=_0x1ef015;super(),this[_0x3e9bd9(0x12c)]=_0x34ab0f,this[_0x3e9bd9(0x18f)]=_0x29d04c,this[_0x3e9bd9(0x19a)]=_0xc623df;let {..._0x3ebf67}=_0x55222e({},Y,this[_0x3e9bd9(0x12c)]);this[_0x3e9bd9(0x19a)][_0x3e9bd9(0x14a)](_0x3e9bd9(0x17c),_0x3ebf67);}[_0x1ef015(0x19e)](){const _0x14e0e0=_0x1ef015;_0x382922(this[_0x14e0e0(0x18f)],_0x478569([[U],[K],[X],[Q]],this[_0x14e0e0(0x12c)]['override'])),_0x2f37ac(this[_0x14e0e0(0x18f)],[[X]]);}['onRendered'](){const _0x29fe1f=_0x1ef015;_0x2f37ac(this[_0x29fe1f(0x18f)],[[Q]]);}};H($,'type',_0x17d19f[_0x1ef015(0x17f)]),H($,'pluginName',_0x1ef015(0x141)),H($,'packageName',se),H($,_0x1ef015(0x1a9),ce),$=G([_0x1107e5(_0x3d2453),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x29aef5)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x571863=_0x1117;(function(_0x430966,_0xd38ee1){const _0x1367e1=_0x1117,_0x44f87f=_0x430966();while(!![]){try{const _0x542906=-parseInt(_0x1367e1(0xe2))/0x1*(parseInt(_0x1367e1(0xf5))/0x2)+parseInt(_0x1367e1(0xe4))/0x3+-parseInt(_0x1367e1(0xea))/0x4+-parseInt(_0x1367e1(0xe7))/0x5*(parseInt(_0x1367e1(0xfa))/0x6)+parseInt(_0x1367e1(0xf0))/0x7*(-parseInt(_0x1367e1(0xe3))/0x8)+-parseInt(_0x1367e1(0xe0))/0x9*(parseInt(_0x1367e1(0xec))/0xa)+parseInt(_0x1367e1(0x104))/0xb;if(_0x542906===_0xd38ee1)break;else _0x44f87f['push'](_0x44f87f['shift']());}catch(_0x2303c2){_0x44f87f['push'](_0x44f87f['shift']());}}}(_0x392c,0x229d8));import{LiveShareController as _0x536f17,LiveShareStatus as _0x4aee24}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2da18d,UniverInstanceType as _0x404635}from'@univerjs/core';import{FEnum as _0x477a39,FUniver as _0x5c4d4d}from'@univerjs/core/facade';function o(_0xd75a2b){'@babel/helpers - typeof';const _0x6466dd=_0x1117;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x6466dd(0x101)?function(_0x185c6e){return typeof _0x185c6e;}:function(_0x3d01ed){const _0x3b6641=_0x6466dd;return _0x3d01ed&&typeof Symbol==_0x3b6641(0xe9)&&_0x3d01ed[_0x3b6641(0xfd)]===Symbol&&_0x3d01ed!==Symbol[_0x3b6641(0xff)]?_0x3b6641(0x101):typeof _0x3d01ed;},o(_0xd75a2b);}function _0x392c(){const _0x28bd59=['object','_liveShareController','getUnitId','string','547038ZeUnrt','call','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','2292ghYiql','_injector','toPrimitive','constructor','tryStartPresenting','prototype','IDLE','symbol','startFollowing','No\x20active\x20workbook\x20found.','8054145jYFoOD','LiveShareStatusEnum','getStatus','128808oLNCgj','UNIVER_SHEET','1VKoyTI','15392icxgLf','442302riTkpT','get','getCurrentUnitOfType','325Kqymjp','getLiveShareCoordinatorSync','function','912368DBBprW','defineProperty','20jgsydQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','default','665bGTWPU'];_0x392c=function(){return _0x28bd59;};return _0x392c();}function s(_0x2f2299,_0x5b0368){const _0x5b5efd=_0x1117;if(o(_0x2f2299)!=_0x5b5efd(0xf1)||!_0x2f2299)return _0x2f2299;var _0x30d922=_0x2f2299[Symbol[_0x5b5efd(0xfc)]];if(_0x30d922!==void 0x0){var _0x1975e9=_0x30d922[_0x5b5efd(0xf6)](_0x2f2299,_0x5b0368||_0x5b5efd(0xef));if(o(_0x1975e9)!=_0x5b5efd(0xf1))return _0x1975e9;throw TypeError(_0x5b5efd(0xed));}return(_0x5b0368==='string'?String:Number)(_0x2f2299);}function c(_0x1996ac){const _0x126373=_0x1117;var _0x4ef929=s(_0x1996ac,_0x126373(0xf4));return o(_0x4ef929)==_0x126373(0x101)?_0x4ef929:_0x4ef929+'';}function _0x1117(_0x3ad35a,_0x26e217){_0x3ad35a=_0x3ad35a-0xdf;const _0x392c18=_0x392c();let _0x111735=_0x392c18[_0x3ad35a];return _0x111735;}function l(_0x42dd1,_0x3624b7,_0x483f50){const _0x805127=_0x1117;return(_0x3624b7=c(_0x3624b7))in _0x42dd1?Object[_0x805127(0xeb)](_0x42dd1,_0x3624b7,{'value':_0x483f50,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x42dd1[_0x3624b7]=_0x483f50,_0x42dd1;}var u=class extends _0x5c4d4d{constructor(..._0x26b206){super(..._0x26b206),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x1b6688){const _0x23c77c=_0x1117;this[_0x23c77c(0xf2)]=_0x1b6688[_0x23c77c(0xe5)](_0x536f17);}['getLiveShareStatus'](){const _0x41d5de=_0x1117;var _0x43794a;let _0x598aac=this['_injector'][_0x41d5de(0xe5)](_0x2da18d)[_0x41d5de(0xe6)](_0x404635[_0x41d5de(0xe1)]);if(!_0x598aac)throw Error(_0x41d5de(0x103));let _0x196490=_0x598aac['getUnitId'](),_0x13fba1=this[_0x41d5de(0xf2)]['getLiveShareCoordinatorSync'](_0x196490);return(_0x43794a=_0x13fba1==null?void 0x0:_0x13fba1[_0x41d5de(0xdf)]())==null?_0x4aee24[_0x41d5de(0x100)]:_0x43794a;}[_0x571863(0x102)](){const _0x1bbcbb=_0x571863;let _0x13c3bb=this[_0x1bbcbb(0xfb)][_0x1bbcbb(0xe5)](_0x2da18d)[_0x1bbcbb(0xe6)](_0x404635[_0x1bbcbb(0xe1)]);if(!_0x13c3bb)throw Error(_0x1bbcbb(0x103));let _0x153dbd=_0x13c3bb[_0x1bbcbb(0xf3)](),_0xeee122=this[_0x1bbcbb(0xf2)][_0x1bbcbb(0xe8)](_0x153dbd);if(!_0xeee122)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xeee122[_0x1bbcbb(0x102)]();}['stopFollowing'](){const _0x27ed5d=_0x571863;let _0x4036ee=this[_0x27ed5d(0xfb)][_0x27ed5d(0xe5)](_0x2da18d)[_0x27ed5d(0xe6)](_0x404635[_0x27ed5d(0xe1)]);if(!_0x4036ee)throw Error('No\x20active\x20workbook\x20found.');let _0x1ae25c=_0x4036ee['getUnitId'](),_0x525c0c=this[_0x27ed5d(0xf2)][_0x27ed5d(0xe8)](_0x1ae25c);if(!_0x525c0c)throw Error(_0x27ed5d(0xf8));_0x525c0c['stopFollowing']();}[_0x571863(0xf9)](){const _0x340083=_0x571863;let _0x1a8c28=this['_injector'][_0x340083(0xe5)](_0x2da18d)[_0x340083(0xe6)](_0x404635[_0x340083(0xe1)]);if(!_0x1a8c28)throw Error(_0x340083(0x103));let _0x3ab199=_0x1a8c28[_0x340083(0xf3)](),_0xb134a3=this[_0x340083(0xf2)][_0x340083(0xe8)](_0x3ab199);if(!_0xb134a3)throw Error(_0x340083(0xf8));_0xb134a3[_0x340083(0xfe)]();}[_0x571863(0xf7)](){const _0x30c831=_0x571863;let _0x409a1d=this[_0x30c831(0xfb)][_0x30c831(0xe5)](_0x2da18d)[_0x30c831(0xe6)](_0x404635[_0x30c831(0xe1)]);if(!_0x409a1d)throw Error(_0x30c831(0x103));let _0x1b1626=_0x409a1d[_0x30c831(0xf3)](),_0x2ebf75=this[_0x30c831(0xf2)]['getLiveShareCoordinatorSync'](_0x1b1626);if(!_0x2ebf75)throw Error(_0x30c831(0xf8));_0x2ebf75[_0x30c831(0xf7)]();}};_0x5c4d4d[_0x571863(0xee)](u);var d=class extends _0x477a39{get[_0x571863(0x105)](){return _0x4aee24;}};_0x477a39[_0x571863(0xee)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x1ef015=_0x30de;(function(_0x72572b,_0x478403){const _0x17655b=_0x30de,_0x3c0082=_0x72572b();while(!![]){try{const _0x4bb742=parseInt(_0x17655b(0x149))/0x1*(parseInt(_0x17655b(0x139))/0x2)+-parseInt(_0x17655b(0x157))/0x3*(parseInt(_0x17655b(0x125))/0x4)+-parseInt(_0x17655b(0x165))/0x5*(parseInt(_0x17655b(0x1a3))/0x6)+parseInt(_0x17655b(0x13c))/0x7*(-parseInt(_0x17655b(0x144))/0x8)+parseInt(_0x17655b(0x151))/0x9+parseInt(_0x17655b(0x147))/0xa*(-parseInt(_0x17655b(0x123))/0xb)+-parseInt(_0x17655b(0x12e))/0xc*(-parseInt(_0x17655b(0x14c))/0xd);if(_0x4bb742===_0x478403)break;else _0x3c0082['push'](_0x3c0082['shift']());}catch(_0x4e85a2){_0x3c0082['push'](_0x3c0082['shift']());}}}(_0x1f85,0xbd4dc));import{CollaborationEvent as _0xa01ab3,parseProtocolChangeset as _0x50ff4f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x578bbb,SessionStatus as _0xad06a6,UniverCollaborationClientPlugin as _0x3d2453}from'@univerjs-pro/collaboration-client';import{CommandType as _0x2cae7d,DependentOn as _0x1107e5,Disposable as _0x5788e4,DisposableCollection as _0x5ac756,ICommandService as _0x25c57d,IConfigService as _0x29aef5,IUniverInstanceService as _0x34db29,Inject as _0x1ce525,Injector as _0x20c231,Plugin as _0x5f5a10,RxDisposable as _0x27962b,UniverInstanceType as _0x17d19f,merge as _0x55222e,mergeOverrideWithDependencies as _0x478569,registerDependencies as _0x382922,toDisposable as _0x276595,touchDependencies as _0x2f37ac}from'@univerjs/core';import{InsertSheetMutation as _0x5b80de,SetWorksheetActiveOperation as _0x47d365}from'@univerjs/sheets';import{BehaviorSubject as _0x208b12,Subject as _0x21867,defer as _0x5946d8,from as _0x3c88f6,of as _0x59e3f1}from'rxjs';import{takeUntil as _0x3710c2,throttleTime as _0x45cfeb}from'rxjs/operators';import{SetScrollOperation as _0x20642b,SetZoomRatioOperation as _0x58bee4}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x2b605a,IUIPartsService as _0x377001,connectInjector as _0x30f50d,useDependency as _0x2b6432,useObservable as _0x3a4779}from'@univerjs/ui';function _0x1f85(){const _0x2abe9a=['parse','5142700fOqkQD','div','105iJFbco','setConfig','getLiveShareCoordinator','22633SIHkgH','_liveShareService','shouldShareOperation','UNIVER_SHEET','symbol','3885948syWHyo','_startLiveShareCoordinator','LIVESHARE_OPERATION','button','HEADER_MENU','set','41073eieeIQ','constructor','You\x27re\x20not\x20following\x20the\x20presenter','object','_stopFollowing','createInstance','ONLINE','unit','_status','registerInitialStateReporter','getLiveShareCoordinatorSync','get','string','event$','1260955bxAToY','LIVESHARE_TERMINATE','pipe','getInitialStates','presenting','tryStartPresenting','_collabSessionService','stopPresenting','Start\x20following','OFFLINE','defineProperty','_collabSession','unsubscribe','data','_beIdle','_unitID','NEW_CHANGESETS','length','dispose$','executeCommand','has','_init','presenter','live-share.config','call','subject','UNIVER_UNKNOWN','asObservable','type','iterator','decorate','stringify','_entities','function','send','init','_presenter','_handleNewChangeSets','mutations','unitId','You\x27re\x20following\x20the\x20presenter','status$','_injector','_commandService','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_commandDisposable','Stop\x20presenting','NOT_FOLLOWING','_reporters','next','_configService','startFollowing','reverse','You\x27re\x20presenting\x20the\x20document','onStarting','_handleOffline','requireSession','dispose','following','12HCYmEt','Present\x20this\x20document','params','_handleOnline','_startPresenting','complete','version','Start','getMemberID','getUnitId','stopFollowing','find','_handleTerminate','_univerInstanceService','includes','subscribe','You\x27are\x20offline.','_handleNewHost','33mcdMgp','getStatus','276CYCauI','memberID','_mountLiveShare','not-following','registerComponent','sheet','getConfig','_config','_uiPartsService','18024nLJhuS','SAME_OPERATION_SHARE_INTERVAL','offline','_fetchOperations','default','operations','add','toPrimitive','values','_sharedOperations','registerSharedOperation','25894kUBnMb','map','_startFollowing','6335kRdCaq','idle','1.0.0-alpha.6','_status$','PRESENTING','UNIVER_LIVE_SHARE_PLUGIN','_handleOperation','delete','5648KGrmfA','forEach'];_0x1f85=function(){return _0x2abe9a;};return _0x1f85();}import{Button as _0x339963,Dropdown as _0x5dc2e4,clsx as _0x3253e8}from'@univerjs/design';function _0x30de(_0x53ea53,_0xf0d425){_0x53ea53=_0x53ea53-0x122;const _0x1f850f=_0x1f85();let _0x30de06=_0x1f850f[_0x53ea53];return _0x30de06;}import{LiveShareIcon as _0x17587a}from'@univerjs/icons';import{useMemo as _0x5181e1}from'react';import{Fragment as _0x449cea,jsx as _0x47077f,jsxs as _0x10f923}from'react/jsx-runtime';function z(_0x20dfd6){'@babel/helpers - typeof';const _0x30d4d1=_0x30de;return z=typeof Symbol==_0x30d4d1(0x186)&&typeof Symbol[_0x30d4d1(0x182)]==_0x30d4d1(0x150)?function(_0x1603a3){return typeof _0x1603a3;}:function(_0x59b176){const _0xcad29=_0x30d4d1;return _0x59b176&&typeof Symbol==_0xcad29(0x186)&&_0x59b176[_0xcad29(0x158)]===Symbol&&_0x59b176!==Symbol['prototype']?_0xcad29(0x150):typeof _0x59b176;},z(_0x20dfd6);}function B(_0x56dd99,_0x290374){const _0x29ca27=_0x30de;if(z(_0x56dd99)!=_0x29ca27(0x15a)||!_0x56dd99)return _0x56dd99;var _0x472464=_0x56dd99[Symbol[_0x29ca27(0x135)]];if(_0x472464!==void 0x0){var _0x400d92=_0x472464[_0x29ca27(0x17d)](_0x56dd99,_0x290374||_0x29ca27(0x132));if(z(_0x400d92)!='object')return _0x400d92;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x290374===_0x29ca27(0x163)?String:Number)(_0x56dd99);}function V(_0x20ae5d){const _0x26105c=_0x30de;var _0x3d8e61=B(_0x20ae5d,_0x26105c(0x163));return z(_0x3d8e61)==_0x26105c(0x150)?_0x3d8e61:_0x3d8e61+'';}function H(_0x46b6f1,_0x1efa33,_0x12e3f4){const _0x1e21c0=_0x30de;return(_0x1efa33=V(_0x1efa33))in _0x46b6f1?Object[_0x1e21c0(0x16f)](_0x46b6f1,_0x1efa33,{'value':_0x12e3f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b6f1[_0x1efa33]=_0x12e3f4,_0x46b6f1;}var U=class extends _0x5788e4{constructor(..._0x47dfaf){const _0xdd42f2=_0x30de;super(..._0x47dfaf),H(this,_0xdd42f2(0x137),new Set()),H(this,_0xdd42f2(0x198),new Set());}['registerSharedOperation'](_0x72d19d){const _0x227739=_0x30de;return this['_sharedOperations'][_0x227739(0x134)](_0x72d19d),_0x276595(()=>this['_sharedOperations']['delete'](_0x72d19d));}[_0x1ef015(0x160)](_0x49b534){const _0x1afd96=_0x1ef015;return this[_0x1afd96(0x198)]['add'](_0x49b534),_0x276595(()=>this[_0x1afd96(0x198)][_0x1afd96(0x143)](_0x49b534));}[_0x1ef015(0x14e)](_0x5e4537){const _0x747cb7=_0x1ef015;return this[_0x747cb7(0x137)][_0x747cb7(0x179)](_0x5e4537);}['getInitialStates'](_0x522e73){const _0x3c3a27=_0x1ef015;return Array['from'](this['_reporters'])[_0x3c3a27(0x13a)](_0x47ab2b=>_0x47ab2b(_0x522e73));}};function W(_0x225faf,_0xcd6bc){return function(_0x2381bf,_0x24c75b){_0xcd6bc(_0x2381bf,_0x24c75b,_0x225faf);};}function G(_0x537cf3,_0x36665c,_0x228390,_0x5bed31){const _0x3b7e37=_0x1ef015;var _0xa129c7=arguments[_0x3b7e37(0x176)],_0x31b474=_0xa129c7<0x3?_0x36665c:_0x5bed31===null?_0x5bed31=Object['getOwnPropertyDescriptor'](_0x36665c,_0x228390):_0x5bed31,_0x22ef93;if(typeof Reflect==_0x3b7e37(0x15a)&&typeof Reflect[_0x3b7e37(0x183)]=='function')_0x31b474=Reflect[_0x3b7e37(0x183)](_0x537cf3,_0x36665c,_0x228390,_0x5bed31);else{for(var _0x322acc=_0x537cf3[_0x3b7e37(0x176)]-0x1;_0x322acc>=0x0;_0x322acc--)(_0x22ef93=_0x537cf3[_0x322acc])&&(_0x31b474=(_0xa129c7<0x3?_0x22ef93(_0x31b474):_0xa129c7>0x3?_0x22ef93(_0x36665c,_0x228390,_0x31b474):_0x22ef93(_0x36665c,_0x228390))||_0x31b474);}return _0xa129c7>0x3&&_0x31b474&&Object['defineProperty'](_0x36665c,_0x228390,_0x31b474),_0x31b474;}let K=class extends _0x27962b{constructor(_0x5d2bd6,_0x5e6027,_0x455680){const _0x243f69=_0x1ef015;super(),this['_univerInstanceService']=_0x5d2bd6,this[_0x243f69(0x18f)]=_0x5e6027,this['_collabSessionService']=_0x455680,H(this,'_entities',new Map()),this['_init']();}async[_0x1ef015(0x14b)](_0x480162){const _0x4e1a4f=_0x1ef015;return this[_0x4e1a4f(0x185)][_0x4e1a4f(0x179)](_0x480162)||await this[_0x4e1a4f(0x152)](_0x480162),this[_0x4e1a4f(0x185)][_0x4e1a4f(0x162)](_0x480162);}[_0x1ef015(0x161)](_0x3b20f9){const _0x920fce=_0x1ef015;var _0x3edde8;return(_0x3edde8=this[_0x920fce(0x185)]['get'](_0x3b20f9))==null?null:_0x3edde8;}['_init'](){const _0x2c2c34=_0x1ef015;this[_0x2c2c34(0x1b0)]['getTypeOfUnitAdded$'](_0x17d19f[_0x2c2c34(0x14f)])[_0x2c2c34(0x167)](_0x3710c2(this[_0x2c2c34(0x177)]))['subscribe'](async _0x2e6159=>{const _0x505bb3=_0x2c2c34;let _0x19dbfa=_0x2e6159[_0x505bb3(0x15e)][_0x505bb3(0x1ac)]();this[_0x505bb3(0x185)][_0x505bb3(0x179)](_0x19dbfa)||this[_0x505bb3(0x152)](_0x19dbfa);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x17d19f[_0x2c2c34(0x14f)])['pipe'](_0x3710c2(this[_0x2c2c34(0x177)]))[_0x2c2c34(0x1b2)](_0x84b717=>{const _0x1897dd=_0x2c2c34;let _0x51124e=_0x84b717[_0x1897dd(0x1ac)](),_0x3e7566=this[_0x1897dd(0x185)][_0x1897dd(0x162)](_0x51124e);_0x3e7566==null||_0x3e7566[_0x1897dd(0x1a1)]();});}async[_0x1ef015(0x152)](_0x4afddf){const _0x19a544=_0x1ef015;let _0x288085=await this[_0x19a544(0x16b)][_0x19a544(0x1a0)](_0x4afddf),_0x12bcf7=this['_injector'][_0x19a544(0x15c)](J,_0x4afddf,_0x288085);return _0x12bcf7[_0x19a544(0x188)](),this[_0x19a544(0x185)][_0x19a544(0x156)](_0x4afddf,_0x12bcf7),_0x12bcf7;}};K=G([W(0x0,_0x34db29),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x1ce525(_0x578bbb))],K);let q=function(_0x1283e9){const _0xe3b582=_0x1ef015;return _0x1283e9['OFFLINE']=_0xe3b582(0x130),_0x1283e9['IDLE']=_0xe3b582(0x13d),_0x1283e9['FOLLOWING']=_0xe3b582(0x1a2),_0x1283e9[_0xe3b582(0x197)]=_0xe3b582(0x128),_0x1283e9[_0xe3b582(0x140)]=_0xe3b582(0x169),_0x1283e9;}({}),J=class extends _0x27962b{get['_status'](){const _0x287847=_0x1ef015;return this[_0x287847(0x13f)]['getValue']();}constructor(_0x324a1c,_0x4d1d5c,_0x566a18,_0x2ba8bf,_0x20926c){const _0x2e4046=_0x1ef015;super(),this[_0x2e4046(0x174)]=_0x324a1c,this[_0x2e4046(0x170)]=_0x4d1d5c,this[_0x2e4046(0x19a)]=_0x566a18,this[_0x2e4046(0x14d)]=_0x2ba8bf,this['_commandService']=_0x20926c,H(this,_0x2e4046(0x13f),new _0x208b12(_0x2e4046(0x13d))),H(this,'status$',this[_0x2e4046(0x13f)][_0x2e4046(0x180)]()),H(this,'_init',!0x1),H(this,_0x2e4046(0x195),null),H(this,_0x2e4046(0x189),null);}['dispose'](){const _0x28999d=_0x1ef015;var _0x15c1c5;(_0x15c1c5=this['_commandDisposable'])==null||_0x15c1c5[_0x28999d(0x1a1)](),this[_0x28999d(0x13f)][_0x28999d(0x199)]('idle'),this['_status$'][_0x28999d(0x1a8)]();}[_0x1ef015(0x124)](){const _0x287108=_0x1ef015;return this[_0x287108(0x15f)];}[_0x1ef015(0x188)](){const _0x29f5a0=_0x1ef015;this[_0x29f5a0(0x17a)]||(this[_0x29f5a0(0x17a)]=!0x0,this[_0x29f5a0(0x170)]['sessionStatus$'][_0x29f5a0(0x167)](_0x3710c2(this['dispose$']))[_0x29f5a0(0x1b2)](_0xc771bf=>{const _0x5bd628=_0x29f5a0;switch(_0xc771bf){case _0xad06a6[_0x5bd628(0x16e)]:this[_0x5bd628(0x19f)]();break;case _0xad06a6[_0x5bd628(0x15d)]:this[_0x5bd628(0x1a6)]();break;default:}}),this['_collabSession'][_0x29f5a0(0x164)][_0x29f5a0(0x167)](_0x3710c2(this[_0x29f5a0(0x177)]))[_0x29f5a0(0x1b2)](_0x1952af=>{const _0x50a661=_0x29f5a0;let {eventID:_0x4a1c80}=_0x1952af;switch(_0x4a1c80){case _0xa01ab3['LIVESHARE_NEW_HOST']:this[_0x50a661(0x122)](_0x1952af);break;case _0xa01ab3[_0x50a661(0x153)]:this['_handleOperation'](_0x1952af);break;case _0xa01ab3['LIVESHARE_TERMINATE']:this[_0x50a661(0x1af)]();break;case _0xa01ab3[_0x50a661(0x175)]:this[_0x50a661(0x18a)](_0x1952af);break;default:}}));}[_0x1ef015(0x16a)](){const _0xaf4ef2=_0x1ef015;this[_0xaf4ef2(0x170)][_0xaf4ef2(0x187)]({'eventID':_0xa01ab3['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0xaf4ef2(0x1ab)]()}},this[_0xaf4ef2(0x174)]);}[_0x1ef015(0x16c)](){const _0x31213b=_0x1ef015;this[_0x31213b(0x15f)]===_0x31213b(0x169)&&(this[_0x31213b(0x13f)]['next']('idle'),this[_0x31213b(0x170)]['send']({'eventID':_0xa01ab3[_0x31213b(0x166)],'data':{'unitID':this[_0x31213b(0x174)]}},this[_0x31213b(0x174)]));}[_0x1ef015(0x19b)](){const _0x14e005=_0x1ef015;this[_0x14e005(0x15f)]===_0x14e005(0x128)&&(this[_0x14e005(0x13f)]['next']('following'),this['_startFollowing']());}[_0x1ef015(0x1ad)](){const _0x2ad9f=_0x1ef015;this['_status']===_0x2ad9f(0x1a2)&&this[_0x2ad9f(0x15b)]();}['_handleNewHost'](_0x1a75af){const _0x1cb8ae=_0x1ef015;let {presenter:_0x18f0e5}=_0x1a75af[_0x1cb8ae(0x172)],_0x5034cd=this['_collabSession'][_0x1cb8ae(0x1ab)]();this[_0x1cb8ae(0x189)]=_0x18f0e5,_0x18f0e5===_0x5034cd?(this['_stopFollowing'](),this[_0x1cb8ae(0x1a7)]()):this[_0x1cb8ae(0x15f)]!==_0x1cb8ae(0x128)&&(this[_0x1cb8ae(0x191)](),this[_0x1cb8ae(0x13b)]());}[_0x1ef015(0x131)](){const _0x4811fd=_0x1ef015;let _0x337ee4={'eventID':_0xa01ab3['LIVESHARE_FETCH_OPERATIONS']};this[_0x4811fd(0x170)]['send'](_0x337ee4,this['_unitID']);}['_handleTerminate'](){const _0x5c82f3=_0x1ef015;this[_0x5c82f3(0x189)]=null,this[_0x5c82f3(0x15f)]!==_0x5c82f3(0x169)&&this[_0x5c82f3(0x173)]();}[_0x1ef015(0x18a)](_0x33124d){const _0x414621=_0x1ef015;if(this[_0x414621(0x15f)]===_0x414621(0x1a2)&&this[_0x414621(0x189)]===_0x33124d[_0x414621(0x172)][_0x414621(0x126)]){let _0x57423f=_0x50ff4f(_0x33124d[_0x414621(0x172)])[_0x414621(0x18b)][_0x414621(0x19c)]()[_0x414621(0x1ae)](_0x3f9b32=>_0x3f9b32['id']===_0x5b80de['id']);if(_0x57423f){let _0x256593=_0x57423f[_0x414621(0x1a5)][_0x414621(0x18c)],_0x4fc10c=_0x57423f['params'][_0x414621(0x12a)]['id'];setTimeout(()=>{const _0x5a6c99=_0x414621;this['_commandService'][_0x5a6c99(0x178)](_0x47d365['id'],{'unitId':_0x256593,'subUnitId':_0x4fc10c},{'fromCollab':!0x0});});}}}[_0x1ef015(0x1a7)](){const _0x3ac4b0=_0x1ef015;var _0x22ff72;(_0x22ff72=this['_commandDisposable'])==null||_0x22ff72[_0x3ac4b0(0x1a1)](),this['_status$'][_0x3ac4b0(0x199)](_0x3ac4b0(0x169));let _0x5b2ebf=new Map(),_0xf8313b=this[_0x3ac4b0(0x195)]=new _0x5ac756();_0xf8313b[_0x3ac4b0(0x134)](_0x276595(()=>{const _0x2e5f10=_0x3ac4b0;_0x5b2ebf[_0x2e5f10(0x145)](({subject:_0x124386,subscription:_0x4ca953})=>{const _0x248b95=_0x2e5f10;_0x4ca953[_0x248b95(0x171)](),_0x124386[_0x248b95(0x1a8)]();}),_0x5b2ebf['clear']();})),_0xf8313b[_0x3ac4b0(0x134)](this[_0x3ac4b0(0x190)]['onCommandExecuted'](_0x4087c6=>{const _0xeecaff=_0x3ac4b0;if(_0x4087c6[_0xeecaff(0x181)]!==_0x2cae7d[_0xeecaff(0x194)]||!this[_0xeecaff(0x14d)][_0xeecaff(0x14e)](_0x4087c6['id']))return;let {id:_0x357fde}=_0x4087c6,_0x10013b;if(_0x5b2ebf[_0xeecaff(0x179)](_0x357fde))_0x10013b=_0x5b2ebf[_0xeecaff(0x162)](_0x357fde)[_0xeecaff(0x17e)];else{var _0x2a90d9;_0x10013b=new _0x21867();let _0x3e7380=_0x10013b[_0xeecaff(0x167)](_0x45cfeb((_0x2a90d9=this['_configService'][_0xeecaff(0x12b)](_0xeecaff(0x12f)))==null?0xc8:_0x2a90d9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xeecaff(0x1b2)](_0x599dfb=>{const _0x24393b=_0xeecaff;this[_0x24393b(0x170)][_0x24393b(0x187)]({'eventID':_0xa01ab3[_0x24393b(0x153)],'data':{'unitID':this[_0x24393b(0x174)],'operations':{[_0x599dfb['id']]:{'id':_0x599dfb['id'],'params':JSON[_0x24393b(0x184)](_0x599dfb[_0x24393b(0x1a5)])}}}},this['_unitID']);});_0x5b2ebf[_0xeecaff(0x156)](_0x357fde,{'subject':_0x10013b,'subscription':_0x3e7380});}_0x10013b['next'](_0x4087c6);})),this[_0x3ac4b0(0x14d)][_0x3ac4b0(0x168)](this[_0x3ac4b0(0x174)])[_0x3ac4b0(0x145)](_0x12d82b=>this[_0x3ac4b0(0x170)]['send']({'eventID':_0xa01ab3[_0x3ac4b0(0x153)],'data':{'unitID':this[_0x3ac4b0(0x174)],'operations':{[_0x12d82b['id']]:{'id':_0x12d82b['id'],'params':JSON[_0x3ac4b0(0x184)](_0x12d82b['params'])}}}},this[_0x3ac4b0(0x174)]));}[_0x1ef015(0x191)](){const _0x3cab21=_0x1ef015;var _0x6d4bd5;this[_0x3cab21(0x13f)][_0x3cab21(0x199)](_0x3cab21(0x13d)),(_0x6d4bd5=this[_0x3cab21(0x195)])==null||_0x6d4bd5['dispose'](),this['_commandDisposable']=null;}[_0x1ef015(0x13b)](){const _0x593cc1=_0x1ef015;var _0x578da3;(_0x578da3=this[_0x593cc1(0x195)])==null||_0x578da3[_0x593cc1(0x1a1)](),this[_0x593cc1(0x13f)][_0x593cc1(0x199)](_0x593cc1(0x1a2));}[_0x1ef015(0x173)](){const _0x22c3e0=_0x1ef015;var _0x59877b;this[_0x22c3e0(0x13f)][_0x22c3e0(0x199)](_0x22c3e0(0x13d)),(_0x59877b=this[_0x22c3e0(0x195)])==null||_0x59877b[_0x22c3e0(0x1a1)](),this[_0x22c3e0(0x195)]=null;}[_0x1ef015(0x15b)](){const _0x204da6=_0x1ef015;var _0x1b032c;this[_0x204da6(0x13f)][_0x204da6(0x199)](_0x204da6(0x128)),(_0x1b032c=this[_0x204da6(0x195)])==null||_0x1b032c['dispose']();}[_0x1ef015(0x142)](_0x170c63){const _0x3797f1=_0x1ef015;if([_0x3797f1(0x169),_0x3797f1(0x128),'offline'][_0x3797f1(0x1b1)](this[_0x3797f1(0x15f)])||!_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]||_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x17b)]===this[_0x3797f1(0x170)]['getMemberID']())return;this['_status']===_0x3797f1(0x13d)&&this[_0x3797f1(0x13b)]();let _0x572957=_0x170c63[_0x3797f1(0x172)][_0x3797f1(0x133)];Object[_0x3797f1(0x136)](_0x572957)[_0x3797f1(0x145)](_0x500c64=>{const _0x30d1c5=_0x3797f1;this['_commandService'][_0x30d1c5(0x178)](_0x500c64['id'],_0x500c64[_0x30d1c5(0x1a5)]?JSON[_0x30d1c5(0x146)](_0x500c64[_0x30d1c5(0x1a5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1e26f0=_0x1ef015;var _0x1e54a4;this['_status$'][_0x1e26f0(0x199)](_0x1e26f0(0x130)),(_0x1e54a4=this[_0x1e26f0(0x195)])==null||_0x1e54a4[_0x1e26f0(0x1a1)]();}['_handleOnline'](){const _0x357b30=_0x1ef015;this[_0x357b30(0x13f)][_0x357b30(0x199)](_0x357b30(0x13d)),this[_0x357b30(0x131)]();}};J=G([W(0x2,_0x29aef5),W(0x3,_0x1ce525(U)),W(0x4,_0x25c57d)],J);var se='@univerjs-pro/live-share',ce=_0x1ef015(0x13e);const Y={};let X=class extends _0x5788e4{constructor(_0x351318){const _0x56cfa7=_0x1ef015;super(),this[_0x56cfa7(0x14d)]=_0x351318,this[_0x56cfa7(0x17a)]();}[_0x1ef015(0x17a)](){const _0x481db2=_0x1ef015;[_0x58bee4['id'],_0x20642b['id'],_0x47d365['id']][_0x481db2(0x145)](_0x2beae3=>{const _0x511b59=_0x481db2;this['disposeWithMe'](this['_liveShareService'][_0x511b59(0x138)](_0x2beae3));});}};X=G([W(0x0,_0x1ce525(U))],X);function Z(){const _0x256493=_0x1ef015;let _0x5acfe0=_0x2b6432(K),_0x287e2a=_0x2b6432(_0x34db29),_0x5d5d3a=_0x3a4779(()=>_0x287e2a['getCurrentTypeOfUnit$'](_0x17d19f[_0x256493(0x14f)]),void 0x0,!0x1,[]),_0x878fdb=_0x3a4779(_0x5181e1(()=>_0x5d5d3a?_0x5946d8(()=>_0x3c88f6(_0x5acfe0[_0x256493(0x14b)](_0x5d5d3a[_0x256493(0x1ac)]()))):_0x59e3f1(null),[_0x5d5d3a,_0x5acfe0]),null),_0x3f90dd=_0x3a4779(_0x878fdb?()=>_0x878fdb[_0x256493(0x18e)]:null,_0x256493(0x13d),!0x1,[_0x878fdb]);return _0x878fdb?_0x47077f(_0x5dc2e4,{'align':'end','disabled':_0x3f90dd===_0x256493(0x130),'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x47077f(le,{'status':_0x3f90dd,'coordinator':_0x878fdb}),'children':_0x47077f('button',{'className':_0x3253e8(_0x256493(0x193),{'univer-cursor-not-allowed':_0x3f90dd===_0x256493(0x130),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f90dd!=='offline'}),'type':_0x256493(0x154),'children':_0x47077f(_0x17587a,{})})}):null;}function le(_0x5906ff){const _0x3f983b=_0x1ef015;let {status:_0x14ed4c,coordinator:_0x72af8c}=_0x5906ff;switch(_0x14ed4c){case'idle':return _0x47077f(ue,{'coordinator':_0x72af8c});case _0x3f983b(0x1a2):return _0x47077f(de,{'coordinator':_0x72af8c});case _0x3f983b(0x128):return _0x47077f(fe,{'coordinator':_0x72af8c});case'offline':return _0x47077f(me,{});case'presenting':return _0x47077f(pe,{'coordinator':_0x72af8c});default:return null;}}function ue(_0x231f58){const _0x4d9702=_0x1ef015;let {coordinator:_0x4380e6}=_0x231f58;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x4d9702(0x148),{'className':_0x4d9702(0x192),'children':_0x4d9702(0x1a4)}),_0x47077f(_0x339963,{'onClick':()=>_0x4380e6['tryStartPresenting'](),'children':_0x4d9702(0x1aa)})]});}function de(_0x5195df){const _0x40089c=_0x1ef015;let {coordinator:_0x57877b}=_0x5195df;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x40089c(0x148),{'className':_0x40089c(0x192),'children':_0x40089c(0x18d)}),_0x47077f(_0x339963,{'onClick':()=>_0x57877b['stopFollowing'](),'children':'Stop\x20following'})]});}function fe(_0x4fc816){const _0x4b419b=_0x1ef015;let {coordinator:_0x32c381}=_0x4fc816;return _0x10f923(_0x449cea,{'children':[_0x47077f('div',{'className':_0x4b419b(0x192),'children':_0x4b419b(0x159)}),_0x47077f(_0x339963,{'variant':'text','onClick':()=>_0x32c381[_0x4b419b(0x19b)](),'children':_0x4b419b(0x16d)})]});}function pe(_0x5a53ce){const _0x235e42=_0x1ef015;let {coordinator:_0x27c98b}=_0x5a53ce;return _0x10f923(_0x449cea,{'children':[_0x47077f(_0x235e42(0x148),{'className':_0x235e42(0x192),'children':_0x235e42(0x19d)}),_0x47077f(_0x339963,{'variant':_0x235e42(0x132),'onClick':()=>_0x27c98b[_0x235e42(0x16c)](),'children':_0x235e42(0x196)})]});}function me(){const _0x2cdd7a=_0x1ef015;return _0x47077f(_0x449cea,{'children':_0x2cdd7a(0x1b3)});}let Q=class extends _0x5788e4{constructor(_0x4801f5,_0x46114d){const _0x127afe=_0x1ef015;super(),this[_0x127afe(0x18f)]=_0x4801f5,this[_0x127afe(0x12d)]=_0x46114d,this[_0x127afe(0x127)]();}[_0x1ef015(0x127)](){const _0xae24d8=_0x1ef015;this['disposeWithMe'](this[_0xae24d8(0x12d)][_0xae24d8(0x129)](_0x2b605a[_0xae24d8(0x155)],()=>_0x30f50d(Z,this[_0xae24d8(0x18f)])));}};Q=G([W(0x0,_0x1ce525(_0x20c231)),W(0x1,_0x377001)],Q);let $=class extends _0x5f5a10{constructor(_0x34ab0f=Y,_0x29d04c,_0xc623df){const _0x3e9bd9=_0x1ef015;super(),this[_0x3e9bd9(0x12c)]=_0x34ab0f,this[_0x3e9bd9(0x18f)]=_0x29d04c,this[_0x3e9bd9(0x19a)]=_0xc623df;let {..._0x3ebf67}=_0x55222e({},Y,this[_0x3e9bd9(0x12c)]);this[_0x3e9bd9(0x19a)][_0x3e9bd9(0x14a)](_0x3e9bd9(0x17c),_0x3ebf67);}[_0x1ef015(0x19e)](){const _0x14e0e0=_0x1ef015;_0x382922(this[_0x14e0e0(0x18f)],_0x478569([[U],[K],[X],[Q]],this[_0x14e0e0(0x12c)]['override'])),_0x2f37ac(this[_0x14e0e0(0x18f)],[[X]]);}['onRendered'](){const _0x29fe1f=_0x1ef015;_0x2f37ac(this[_0x29fe1f(0x18f)],[[Q]]);}};H($,'type',_0x17d19f[_0x1ef015(0x17f)]),H($,'pluginName',_0x1ef015(0x141)),H($,'packageName',se),H($,_0x1ef015(0x1a9),ce),$=G([_0x1107e5(_0x3d2453),W(0x1,_0x1ce525(_0x20c231)),W(0x2,_0x29aef5)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4009(_0x830560,_0x18b44a){_0x830560=_0x830560-0x12c;const _0x2747ef=_0x2747();let _0x400956=_0x2747ef[_0x830560];return _0x400956;}(function(_0x2a79cb,_0x3ae60e){const _0x597756=_0x4009,_0x453c6b=_0x2a79cb();while(!![]){try{const _0x128d4d=parseInt(_0x597756(0x12e))/0x1*(-parseInt(_0x597756(0x147))/0x2)+-parseInt(_0x597756(0x157))/0x3*(-parseInt(_0x597756(0x14e))/0x4)+parseInt(_0x597756(0x132))/0x5+parseInt(_0x597756(0x14c))/0x6+parseInt(_0x597756(0x15e))/0x7*(parseInt(_0x597756(0x15c))/0x8)+-parseInt(_0x597756(0x13a))/0x9*(-parseInt(_0x597756(0x159))/0xa)+parseInt(_0x597756(0x130))/0xb*(-parseInt(_0x597756(0x145))/0xc);if(_0x128d4d===_0x3ae60e)break;else _0x453c6b['push'](_0x453c6b['shift']());}catch(_0x4ffb6b){_0x453c6b['push'](_0x453c6b['shift']());}}}(_0x2747,0x79484),function(_0x191fe4,_0xbfc0c5){const _0x29d67e=_0x4009;typeof exports=='object'&&typeof module<'u'?_0xbfc0c5(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x29d67e(0x12d)&&define['amd']?define([_0x29d67e(0x158),_0x29d67e(0x133),_0x29d67e(0x15b)],_0xbfc0c5):(_0x191fe4=typeof globalThis<'u'?globalThis:_0x191fe4||self,_0xbfc0c5(_0x191fe4[_0x29d67e(0x152)],_0x191fe4[_0x29d67e(0x134)],_0x191fe4[_0x29d67e(0x139)]));}(this,function(_0x41a255,_0x39e288,_0x2db3b8){const _0x46117c=_0x4009;function _0x28deca(_0x2af5ee){'@babel/helpers - typeof';const _0x17fa01=_0x4009;return _0x28deca=typeof Symbol=='function'&&typeof Symbol[_0x17fa01(0x13f)]==_0x17fa01(0x13e)?function(_0x88e8c5){return typeof _0x88e8c5;}:function(_0x270ff5){const _0x4e7910=_0x17fa01;return _0x270ff5&&typeof Symbol==_0x4e7910(0x12d)&&_0x270ff5[_0x4e7910(0x14f)]===Symbol&&_0x270ff5!==Symbol[_0x4e7910(0x142)]?'symbol':typeof _0x270ff5;},_0x28deca(_0x2af5ee);}function _0x4c60d6(_0x55c3fe,_0x3cb1d1){const _0x5dba9c=_0x4009;if(_0x28deca(_0x55c3fe)!=_0x5dba9c(0x136)||!_0x55c3fe)return _0x55c3fe;var _0x2e443b=_0x55c3fe[Symbol[_0x5dba9c(0x14d)]];if(_0x2e443b!==void 0x0){var _0x526894=_0x2e443b[_0x5dba9c(0x15a)](_0x55c3fe,_0x3cb1d1||_0x5dba9c(0x15f));if(_0x28deca(_0x526894)!=_0x5dba9c(0x136))return _0x526894;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3cb1d1===_0x5dba9c(0x154)?String:Number)(_0x55c3fe);}function _0x1e117b(_0x34b8de){const _0x2b02dd=_0x4009;var _0x881f72=_0x4c60d6(_0x34b8de,_0x2b02dd(0x154));return _0x28deca(_0x881f72)=='symbol'?_0x881f72:_0x881f72+'';}function _0x269a83(_0x4d7ef4,_0x1c6d34,_0x478478){const _0x1f0eae=_0x4009;return(_0x1c6d34=_0x1e117b(_0x1c6d34))in _0x4d7ef4?Object[_0x1f0eae(0x149)](_0x4d7ef4,_0x1c6d34,{'value':_0x478478,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d7ef4[_0x1c6d34]=_0x478478,_0x4d7ef4;}var _0x4d7b0b=class extends _0x2db3b8[_0x46117c(0x148)]{constructor(..._0xcea3ac){const _0x3ba472=_0x46117c;super(..._0xcea3ac),_0x269a83(this,_0x3ba472(0x14a),void 0x0);}['_initialize'](_0x31a1d4){const _0x1ef4c2=_0x46117c;this[_0x1ef4c2(0x14a)]=_0x31a1d4[_0x1ef4c2(0x160)](_0x41a255[_0x1ef4c2(0x150)]);}[_0x46117c(0x146)](){const _0x232a33=_0x46117c;var _0x5e4208;let _0x322048=this[_0x232a33(0x141)][_0x232a33(0x160)](_0x39e288[_0x232a33(0x15d)])['getCurrentUnitOfType'](_0x39e288['UniverInstanceType'][_0x232a33(0x13c)]);if(!_0x322048)throw Error(_0x232a33(0x13b));let _0x455e13=_0x322048['getUnitId'](),_0x4f0c1c=this[_0x232a33(0x14a)]['getLiveShareCoordinatorSync'](_0x455e13);return(_0x5e4208=_0x4f0c1c==null?void 0x0:_0x4f0c1c[_0x232a33(0x156)]())==null?_0x41a255[_0x232a33(0x138)][_0x232a33(0x140)]:_0x5e4208;}[_0x46117c(0x144)](){const _0x2c2cf5=_0x46117c;let _0x4ae666=this[_0x2c2cf5(0x141)][_0x2c2cf5(0x160)](_0x39e288['IUniverInstanceService'])[_0x2c2cf5(0x131)](_0x39e288['UniverInstanceType'][_0x2c2cf5(0x13c)]);if(!_0x4ae666)throw Error(_0x2c2cf5(0x13b));let _0x50d8f5=_0x4ae666[_0x2c2cf5(0x12f)](),_0x271df6=this['_liveShareController'][_0x2c2cf5(0x137)](_0x50d8f5);if(!_0x271df6)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x271df6['startFollowing']();}[_0x46117c(0x143)](){const _0x371c8b=_0x46117c;let _0x424a52=this['_injector'][_0x371c8b(0x160)](_0x39e288[_0x371c8b(0x15d)])[_0x371c8b(0x131)](_0x39e288[_0x371c8b(0x14b)][_0x371c8b(0x13c)]);if(!_0x424a52)throw Error(_0x371c8b(0x13b));let _0x2a20ff=_0x424a52[_0x371c8b(0x12f)](),_0x269fca=this['_liveShareController'][_0x371c8b(0x137)](_0x2a20ff);if(!_0x269fca)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x269fca[_0x371c8b(0x143)]();}[_0x46117c(0x151)](){const _0x4c353a=_0x46117c;let _0x4b4e49=this[_0x4c353a(0x141)]['get'](_0x39e288[_0x4c353a(0x15d)])[_0x4c353a(0x131)](_0x39e288['UniverInstanceType'][_0x4c353a(0x13c)]);if(!_0x4b4e49)throw Error('No\x20active\x20workbook\x20found.');let _0x2b94e8=_0x4b4e49[_0x4c353a(0x12f)](),_0x4f07f1=this[_0x4c353a(0x14a)][_0x4c353a(0x137)](_0x2b94e8);if(!_0x4f07f1)throw Error(_0x4c353a(0x153));_0x4f07f1['tryStartPresenting']();}['stopPresenting'](){const _0x167de4=_0x46117c;let _0x186498=this['_injector'][_0x167de4(0x160)](_0x39e288[_0x167de4(0x15d)])[_0x167de4(0x131)](_0x39e288[_0x167de4(0x14b)][_0x167de4(0x13c)]);if(!_0x186498)throw Error(_0x167de4(0x13b));let _0x2c35ad=_0x186498[_0x167de4(0x12f)](),_0x23b9fe=this['_liveShareController'][_0x167de4(0x137)](_0x2c35ad);if(!_0x23b9fe)throw Error(_0x167de4(0x153));_0x23b9fe[_0x167de4(0x135)]();}};_0x2db3b8[_0x46117c(0x148)][_0x46117c(0x13d)](_0x4d7b0b);var _0x3a256c=class extends _0x2db3b8[_0x46117c(0x155)]{get[_0x46117c(0x12c)](){return _0x41a255['LiveShareStatus'];}};_0x2db3b8[_0x46117c(0x155)][_0x46117c(0x13d)](_0x3a256c);}));function _0x2747(){const _0x6c1359=['@univerjs-pro/live-share','190tAbTRD','call','@univerjs/core/facade','2576zdrkHd','IUniverInstanceService','17899sDnlZZ','default','get','LiveShareStatusEnum','function','93753NFnvij','getUnitId','19098937oBOYUM','getCurrentUnitOfType','4285490LrgEEJ','@univerjs/core','UniverCore','stopPresenting','object','getLiveShareCoordinatorSync','LiveShareStatus','UniverCoreFacade','177543OnlvUM','No\x20active\x20workbook\x20found.','UNIVER_SHEET','extend','symbol','iterator','IDLE','_injector','prototype','stopFollowing','startFollowing','12BaVaKF','getLiveShareStatus','2LTXyUu','FUniver','defineProperty','_liveShareController','UniverInstanceType','1093830ncfQPl','toPrimitive','4YLEzyr','constructor','LiveShareController','startPresenting','UniverProLiveShare','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','FEnum','getStatus','267666riVCNn'];_0x2747=function(){return _0x6c1359;};return _0x2747();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x251f(_0x103e44,_0x35f2bc){_0x103e44=_0x103e44-0xad;const _0x4bb79c=_0x4bb7();let _0x251f73=_0x4bb79c[_0x103e44];return _0x251f73;}(function(_0x18a29b,_0x2d7a14){const _0x5005c2=_0x251f,_0xc11726=_0x18a29b();while(!![]){try{const _0x5287e7=parseInt(_0x5005c2(0xb5))/0x1+parseInt(_0x5005c2(0xc9))/0x2*(-parseInt(_0x5005c2(0x152))/0x3)+parseInt(_0x5005c2(0xd2))/0x4+-parseInt(_0x5005c2(0x12b))/0x5+parseInt(_0x5005c2(0xf8))/0x6+-parseInt(_0x5005c2(0x180))/0x7*(-parseInt(_0x5005c2(0xe7))/0x8)+-parseInt(_0x5005c2(0x16c))/0x9;if(_0x5287e7===_0x2d7a14)break;else _0xc11726['push'](_0xc11726['shift']());}catch(_0x3cfa01){_0xc11726['push'](_0xc11726['shift']());}}}(_0x4bb7,0x43e65),function(_0x47a463,_0x4902ce){const _0x52b49b=_0x251f;typeof exports==_0x52b49b(0x166)&&typeof module<'u'?_0x4902ce(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x52b49b(0x12a)&&define[_0x52b49b(0x128)]?define([_0x52b49b(0xec),_0x52b49b(0xdb),_0x52b49b(0x13b),_0x52b49b(0x19a),_0x52b49b(0xb4),'rxjs',_0x52b49b(0x135),'@univerjs/sheets-ui',_0x52b49b(0x134),_0x52b49b(0x178),_0x52b49b(0xd0),'react/jsx-runtime'],_0x4902ce):(_0x47a463=typeof globalThis<'u'?globalThis:_0x47a463||self,_0x4902ce(_0x47a463[_0x52b49b(0x111)]={},_0x47a463[_0x52b49b(0x158)],_0x47a463['UniverProCollaborationClient'],_0x47a463[_0x52b49b(0x121)],_0x47a463['UniverSheets'],_0x47a463['rxjs'],_0x47a463['rxjs']['operators'],_0x47a463[_0x52b49b(0x197)],_0x47a463[_0x52b49b(0x169)],_0x47a463[_0x52b49b(0x19d)],_0x47a463[_0x52b49b(0x129)],_0x47a463[_0x52b49b(0x129)]));}(this,function(_0x1bc38c,_0x40f0b0,_0xa0d61e,_0x3d684b,_0x3663fc,_0x1348da,_0x2a7d2c,_0x3cd628,_0x305bcb,_0x50b419,_0x4a871b,_0x348bf8){const _0x3d538d=_0x251f;Object[_0x3d538d(0x170)](_0x1bc38c,Symbol[_0x3d538d(0xd7)],{'value':_0x3d538d(0x110)});function _0x2695a1(_0x6813b7){'@babel/helpers - typeof';const _0x129325=_0x3d538d;return _0x2695a1=typeof Symbol==_0x129325(0x12a)&&typeof Symbol['iterator']==_0x129325(0x188)?function(_0xfa7194){return typeof _0xfa7194;}:function(_0x5ae81d){const _0x19aec7=_0x129325;return _0x5ae81d&&typeof Symbol==_0x19aec7(0x12a)&&_0x5ae81d[_0x19aec7(0xeb)]===Symbol&&_0x5ae81d!==Symbol[_0x19aec7(0xcc)]?_0x19aec7(0x188):typeof _0x5ae81d;},_0x2695a1(_0x6813b7);}function _0x306940(_0x78ad6d,_0x314f76){const _0x4a90ae=_0x3d538d;if(_0x2695a1(_0x78ad6d)!=_0x4a90ae(0x166)||!_0x78ad6d)return _0x78ad6d;var _0x25b14b=_0x78ad6d[Symbol[_0x4a90ae(0xc2)]];if(_0x25b14b!==void 0x0){var _0x11f9d7=_0x25b14b['call'](_0x78ad6d,_0x314f76||'default');if(_0x2695a1(_0x11f9d7)!=_0x4a90ae(0x166))return _0x11f9d7;throw TypeError(_0x4a90ae(0x103));}return(_0x314f76===_0x4a90ae(0x13e)?String:Number)(_0x78ad6d);}function _0x10eedd(_0x2aab47){const _0x5afdd8=_0x3d538d;var _0x3906a0=_0x306940(_0x2aab47,_0x5afdd8(0x13e));return _0x2695a1(_0x3906a0)=='symbol'?_0x3906a0:_0x3906a0+'';}function _0x19674a(_0x130d03,_0x3889a2,_0x4e5d66){return(_0x3889a2=_0x10eedd(_0x3889a2))in _0x130d03?Object['defineProperty'](_0x130d03,_0x3889a2,{'value':_0x4e5d66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x130d03[_0x3889a2]=_0x4e5d66,_0x130d03;}var _0x1f3f2f=class extends _0x3d684b['Disposable']{constructor(..._0x25daf3){super(..._0x25daf3),_0x19674a(this,'_sharedOperations',new Set()),_0x19674a(this,'_reporters',new Set());}[_0x3d538d(0x147)](_0x1d2ded){const _0x408a58=_0x3d538d;return this[_0x408a58(0x138)][_0x408a58(0x13d)](_0x1d2ded),(0x0,_0x3d684b[_0x408a58(0x15c)])(()=>this[_0x408a58(0x138)][_0x408a58(0x11d)](_0x1d2ded));}[_0x3d538d(0xdc)](_0x421821){const _0x22894a=_0x3d538d;return this[_0x22894a(0x15f)][_0x22894a(0x13d)](_0x421821),(0x0,_0x3d684b[_0x22894a(0x15c)])(()=>this[_0x22894a(0x15f)][_0x22894a(0x11d)](_0x421821));}['shouldShareOperation'](_0x3c54e7){const _0x168255=_0x3d538d;return this['_sharedOperations'][_0x168255(0x145)](_0x3c54e7);}[_0x3d538d(0x154)](_0x62ea76){const _0x1be684=_0x3d538d;return Array[_0x1be684(0xb8)](this[_0x1be684(0x15f)])[_0x1be684(0xd9)](_0x5494b9=>_0x5494b9(_0x62ea76));}};function _0x513c74(_0x34aac2,_0x23b632){return function(_0x23b64c,_0x171fab){_0x23b632(_0x23b64c,_0x171fab,_0x34aac2);};}function _0x3c6281(_0x2c750a,_0x5d7902,_0xabb86d,_0x251959){const _0x35f4f1=_0x3d538d;var _0x46323f=arguments[_0x35f4f1(0x164)],_0x1bb200=_0x46323f<0x3?_0x5d7902:_0x251959===null?_0x251959=Object[_0x35f4f1(0x195)](_0x5d7902,_0xabb86d):_0x251959,_0x3abf91;if(typeof Reflect==_0x35f4f1(0x166)&&typeof Reflect[_0x35f4f1(0x160)]=='function')_0x1bb200=Reflect[_0x35f4f1(0x160)](_0x2c750a,_0x5d7902,_0xabb86d,_0x251959);else{for(var _0x1c2943=_0x2c750a[_0x35f4f1(0x164)]-0x1;_0x1c2943>=0x0;_0x1c2943--)(_0x3abf91=_0x2c750a[_0x1c2943])&&(_0x1bb200=(_0x46323f<0x3?_0x3abf91(_0x1bb200):_0x46323f>0x3?_0x3abf91(_0x5d7902,_0xabb86d,_0x1bb200):_0x3abf91(_0x5d7902,_0xabb86d))||_0x1bb200);}return _0x46323f>0x3&&_0x1bb200&&Object['defineProperty'](_0x5d7902,_0xabb86d,_0x1bb200),_0x1bb200;}let _0x55e1b9=class extends _0x3d684b[_0x3d538d(0xd1)]{constructor(_0x43e62d,_0x3740ac,_0x4c1c1a){const _0x168c1c=_0x3d538d;super(),this[_0x168c1c(0xc7)]=_0x43e62d,this[_0x168c1c(0xe1)]=_0x3740ac,this[_0x168c1c(0x172)]=_0x4c1c1a,_0x19674a(this,_0x168c1c(0xb2),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x4c1045){const _0x4f286a=_0x3d538d;return this['_entities'][_0x4f286a(0x145)](_0x4c1045)||await this[_0x4f286a(0xe9)](_0x4c1045),this[_0x4f286a(0xb2)][_0x4f286a(0x125)](_0x4c1045);}[_0x3d538d(0xef)](_0x1b4a74){const _0xf9d407=_0x3d538d;var _0x5f0cec;return(_0x5f0cec=this[_0xf9d407(0xb2)][_0xf9d407(0x125)](_0x1b4a74))==null?null:_0x5f0cec;}[_0x3d538d(0xbd)](){const _0xf35724=_0x3d538d;this[_0xf35724(0xc7)][_0xf35724(0x12f)](_0x3d684b[_0xf35724(0xda)]['UNIVER_SHEET'])['pipe']((0x0,_0x2a7d2c[_0xf35724(0x167)])(this[_0xf35724(0x182)]))['subscribe'](async _0x2ec84d=>{const _0x1efdb8=_0xf35724;let _0x445bb4=_0x2ec84d[_0x1efdb8(0xdd)][_0x1efdb8(0xe8)]();this[_0x1efdb8(0xb2)][_0x1efdb8(0x145)](_0x445bb4)||this[_0x1efdb8(0xe9)](_0x445bb4);}),this[_0xf35724(0xc7)][_0xf35724(0x14c)](_0x3d684b['UniverInstanceType'][_0xf35724(0x116)])[_0xf35724(0xf0)]((0x0,_0x2a7d2c[_0xf35724(0x167)])(this['dispose$']))[_0xf35724(0xad)](_0x30a1a9=>{const _0xdd87d1=_0xf35724;let _0x52b64b=_0x30a1a9[_0xdd87d1(0xe8)](),_0x3a3d2d=this[_0xdd87d1(0xb2)]['get'](_0x52b64b);_0x3a3d2d==null||_0x3a3d2d[_0xdd87d1(0xf9)]();});}async[_0x3d538d(0xe9)](_0x4181a2){const _0x47467a=_0x3d538d;let _0x59ee35=await this[_0x47467a(0x172)][_0x47467a(0x17c)](_0x4181a2),_0x604081=this[_0x47467a(0xe1)][_0x47467a(0x11f)](_0x36ad0e,_0x4181a2,_0x59ee35);return _0x604081[_0x47467a(0xb0)](),this[_0x47467a(0xb2)][_0x47467a(0x136)](_0x4181a2,_0x604081),_0x604081;}};_0x55e1b9=_0x3c6281([_0x513c74(0x0,_0x3d684b[_0x3d538d(0xaf)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b['Injector'])),_0x513c74(0x2,(0x0,_0x3d684b['Inject'])(_0xa0d61e[_0x3d538d(0xc4)]))],_0x55e1b9);let _0x37ee8a=function(_0x2ffa3b){const _0x1e27c9=_0x3d538d;return _0x2ffa3b[_0x1e27c9(0x119)]='offline',_0x2ffa3b[_0x1e27c9(0x16b)]=_0x1e27c9(0xc0),_0x2ffa3b['FOLLOWING']=_0x1e27c9(0xfe),_0x2ffa3b[_0x1e27c9(0x16a)]=_0x1e27c9(0x115),_0x2ffa3b[_0x1e27c9(0xb1)]='presenting',_0x2ffa3b;}({}),_0x36ad0e=class extends _0x3d684b['RxDisposable']{get['_status'](){const _0x12f3ca=_0x3d538d;return this['_status$'][_0x12f3ca(0xb7)]();}constructor(_0x3ab288,_0x490a74,_0x3cbbb9,_0x173ec8,_0x1f02cc){const _0x253614=_0x3d538d;super(),this['_unitID']=_0x3ab288,this['_collabSession']=_0x490a74,this['_configService']=_0x3cbbb9,this[_0x253614(0xc6)]=_0x173ec8,this['_commandService']=_0x1f02cc,_0x19674a(this,_0x253614(0xfd),new _0x1348da['BehaviorSubject']('idle')),_0x19674a(this,'status$',this[_0x253614(0xfd)][_0x253614(0x18b)]()),_0x19674a(this,_0x253614(0xbd),!0x1),_0x19674a(this,_0x253614(0xf6),null),_0x19674a(this,'_presenter',null);}[_0x3d538d(0xf9)](){const _0x55a556=_0x3d538d;var _0x1f653d;(_0x1f653d=this[_0x55a556(0xf6)])==null||_0x1f653d[_0x55a556(0xf9)](),this[_0x55a556(0xfd)]['next'](_0x55a556(0xc0)),this[_0x55a556(0xfd)][_0x55a556(0x139)]();}[_0x3d538d(0x198)](){const _0x14bab6=_0x3d538d;return this[_0x14bab6(0x175)];}[_0x3d538d(0xb0)](){const _0x2a53b0=_0x3d538d;this[_0x2a53b0(0xbd)]||(this[_0x2a53b0(0xbd)]=!0x0,this[_0x2a53b0(0x18e)][_0x2a53b0(0x108)][_0x2a53b0(0xf0)]((0x0,_0x2a7d2c['takeUntil'])(this[_0x2a53b0(0x182)]))[_0x2a53b0(0xad)](_0x261c09=>{const _0x154c16=_0x2a53b0;switch(_0x261c09){case _0xa0d61e['SessionStatus'][_0x154c16(0x119)]:this[_0x154c16(0x10f)]();break;case _0xa0d61e[_0x154c16(0x19c)]['ONLINE']:this[_0x154c16(0x11e)]();break;default:}}),this[_0x2a53b0(0x18e)]['event$']['pipe']((0x0,_0x2a7d2c[_0x2a53b0(0x167)])(this['dispose$']))['subscribe'](_0x3c5a8c=>{const _0x50b55c=_0x2a53b0;let {eventID:_0x5523ee}=_0x3c5a8c;switch(_0x5523ee){case _0x40f0b0['CollaborationEvent'][_0x50b55c(0xf2)]:this[_0x50b55c(0xba)](_0x3c5a8c);break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0x16d)]:this[_0x50b55c(0x17f)](_0x3c5a8c);break;case _0x40f0b0['CollaborationEvent'][_0x50b55c(0x184)]:this[_0x50b55c(0xcf)]();break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0xd3)]:this[_0x50b55c(0x15d)](_0x3c5a8c);break;default:}}));}['tryStartPresenting'](){const _0x4b1f76=_0x3d538d;this[_0x4b1f76(0x18e)][_0x4b1f76(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x4b1f76(0x112)],'data':{'unitID':this[_0x4b1f76(0x196)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4b1f76(0x196)]);}[_0x3d538d(0x187)](){const _0x303898=_0x3d538d;this['_status']===_0x303898(0xb9)&&(this[_0x303898(0xfd)][_0x303898(0x177)](_0x303898(0xc0)),this[_0x303898(0x18e)][_0x303898(0x155)]({'eventID':_0x40f0b0[_0x303898(0xe2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x303898(0x196)]}},this[_0x303898(0x196)]));}[_0x3d538d(0x17a)](){const _0x344b21=_0x3d538d;this[_0x344b21(0x175)]===_0x344b21(0x115)&&(this['_status$'][_0x344b21(0x177)](_0x344b21(0xfe)),this[_0x344b21(0x148)]());}[_0x3d538d(0x15a)](){const _0x5023c9=_0x3d538d;this[_0x5023c9(0x175)]===_0x5023c9(0xfe)&&this['_stopFollowing']();}[_0x3d538d(0xba)](_0x401e15){const _0x3c9c35=_0x3d538d;let {presenter:_0x3ce67d}=_0x401e15['data'],_0x5b7ec2=this[_0x3c9c35(0x18e)][_0x3c9c35(0x11b)]();this['_presenter']=_0x3ce67d,_0x3ce67d===_0x5b7ec2?(this[_0x3c9c35(0x10c)](),this[_0x3c9c35(0xbb)]()):this[_0x3c9c35(0x175)]!==_0x3c9c35(0x115)&&(this['_stopPresenting'](),this[_0x3c9c35(0x148)]());}['_fetchOperations'](){const _0x12a9e5=_0x3d538d;let _0x25b9fc={'eventID':_0x40f0b0[_0x12a9e5(0xe2)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x12a9e5(0x18e)][_0x12a9e5(0x155)](_0x25b9fc,this[_0x12a9e5(0x196)]);}[_0x3d538d(0xcf)](){const _0xe05e=_0x3d538d;this[_0xe05e(0xfc)]=null,this[_0xe05e(0x175)]!==_0xe05e(0xb9)&&this['_beIdle']();}[_0x3d538d(0x15d)](_0x2ef192){const _0x5c974f=_0x3d538d;if(this[_0x5c974f(0x175)]==='following'&&this[_0x5c974f(0xfc)]===_0x2ef192[_0x5c974f(0x15b)][_0x5c974f(0xe3)]){let _0x541ddd=(0x0,_0x40f0b0[_0x5c974f(0x18f)])(_0x2ef192[_0x5c974f(0x15b)])[_0x5c974f(0x146)]['reverse']()[_0x5c974f(0x12d)](_0x9ed707=>_0x9ed707['id']===_0x3663fc['InsertSheetMutation']['id']);if(_0x541ddd){let _0x3176bc=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x1a0)],_0x25882b=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x144)]['id'];setTimeout(()=>{const _0x5a31c6=_0x5c974f;this[_0x5a31c6(0xe0)][_0x5a31c6(0xf3)](_0x3663fc[_0x5a31c6(0x18d)]['id'],{'unitId':_0x3176bc,'subUnitId':_0x25882b},{'fromCollab':!0x0});});}}}[_0x3d538d(0xbb)](){const _0x5e3610=_0x3d538d;var _0x2e2b00;(_0x2e2b00=this[_0x5e3610(0xf6)])==null||_0x2e2b00[_0x5e3610(0xf9)](),this['_status$'][_0x5e3610(0x177)](_0x5e3610(0xb9));let _0x59ff79=new Map(),_0x5aba87=this[_0x5e3610(0xf6)]=new _0x3d684b[(_0x5e3610(0x161))]();_0x5aba87[_0x5e3610(0x13d)]((0x0,_0x3d684b['toDisposable'])(()=>{const _0x33ae0e=_0x5e3610;_0x59ff79[_0x33ae0e(0xc8)](({subject:_0x1a12d8,subscription:_0xed2408})=>{_0xed2408['unsubscribe'](),_0x1a12d8['complete']();}),_0x59ff79[_0x33ae0e(0x15e)]();})),_0x5aba87[_0x5e3610(0x13d)](this['_commandService'][_0x5e3610(0x193)](_0x20c049=>{const _0x3d5df1=_0x5e3610;if(_0x20c049['type']!==_0x3d684b[_0x3d5df1(0x179)][_0x3d5df1(0x168)]||!this[_0x3d5df1(0xc6)][_0x3d5df1(0x199)](_0x20c049['id']))return;let {id:_0x1c6580}=_0x20c049,_0x2001c5;if(_0x59ff79['has'](_0x1c6580))_0x2001c5=_0x59ff79[_0x3d5df1(0x125)](_0x1c6580)['subject'];else{var _0xb796ba;_0x2001c5=new _0x1348da[(_0x3d5df1(0x157))]();let _0xf82b84=_0x2001c5[_0x3d5df1(0xf0)]((0x0,_0x2a7d2c[_0x3d5df1(0x140)])((_0xb796ba=this[_0x3d5df1(0x18a)][_0x3d5df1(0x194)](_0x3d5df1(0x16f)))==null?0xc8:_0xb796ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3d5df1(0xad)](_0xa6dd2a=>{const _0x558659=_0x3d5df1;this[_0x558659(0x18e)][_0x558659(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x558659(0x16d)],'data':{'unitID':this[_0x558659(0x196)],'operations':{[_0xa6dd2a['id']]:{'id':_0xa6dd2a['id'],'params':JSON['stringify'](_0xa6dd2a[_0x558659(0x122)])}}}},this['_unitID']);});_0x59ff79[_0x3d5df1(0x136)](_0x1c6580,{'subject':_0x2001c5,'subscription':_0xf82b84});}_0x2001c5[_0x3d5df1(0x177)](_0x20c049);})),this[_0x5e3610(0xc6)][_0x5e3610(0x154)](this[_0x5e3610(0x196)])[_0x5e3610(0xc8)](_0x29bf06=>this[_0x5e3610(0x18e)]['send']({'eventID':_0x40f0b0[_0x5e3610(0xe2)][_0x5e3610(0x16d)],'data':{'unitID':this[_0x5e3610(0x196)],'operations':{[_0x29bf06['id']]:{'id':_0x29bf06['id'],'params':JSON[_0x5e3610(0x13a)](_0x29bf06[_0x5e3610(0x122)])}}}},this[_0x5e3610(0x196)]));}[_0x3d538d(0x105)](){const _0x48df35=_0x3d538d;var _0x1637ff;this[_0x48df35(0xfd)][_0x48df35(0x177)](_0x48df35(0xc0)),(_0x1637ff=this['_commandDisposable'])==null||_0x1637ff['dispose'](),this[_0x48df35(0xf6)]=null;}[_0x3d538d(0x148)](){const _0x58fdc7=_0x3d538d;var _0x242fc5;(_0x242fc5=this['_commandDisposable'])==null||_0x242fc5[_0x58fdc7(0xf9)](),this[_0x58fdc7(0xfd)][_0x58fdc7(0x177)](_0x58fdc7(0xfe));}[_0x3d538d(0xe6)](){const _0x422fba=_0x3d538d;var _0x32c334;this['_status$'][_0x422fba(0x177)](_0x422fba(0xc0)),(_0x32c334=this[_0x422fba(0xf6)])==null||_0x32c334[_0x422fba(0xf9)](),this['_commandDisposable']=null;}[_0x3d538d(0x10c)](){const _0x4d650e=_0x3d538d;var _0x1bfda4;this['_status$']['next']('not-following'),(_0x1bfda4=this[_0x4d650e(0xf6)])==null||_0x1bfda4[_0x4d650e(0xf9)]();}[_0x3d538d(0x17f)](_0x2721df){const _0xf5fe18=_0x3d538d;if([_0xf5fe18(0xb9),_0xf5fe18(0x115),_0xf5fe18(0x102)]['includes'](this[_0xf5fe18(0x175)])||!_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]||_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]===this[_0xf5fe18(0x18e)]['getMemberID']())return;this[_0xf5fe18(0x175)]===_0xf5fe18(0xc0)&&this[_0xf5fe18(0x148)]();let _0xf9c1a3=_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x114)];Object[_0xf5fe18(0xae)](_0xf9c1a3)['forEach'](_0xaba3b=>{const _0x218397=_0xf5fe18;this[_0x218397(0xe0)]['executeCommand'](_0xaba3b['id'],_0xaba3b['params']?JSON['parse'](_0xaba3b[_0x218397(0x122)]):null,{'fromCollab':!0x0});});}[_0x3d538d(0x10f)](){const _0x30e862=_0x3d538d;var _0x296166;this[_0x30e862(0xfd)][_0x30e862(0x177)](_0x30e862(0x102)),(_0x296166=this['_commandDisposable'])==null||_0x296166['dispose']();}[_0x3d538d(0x11e)](){const _0x2e9336=_0x3d538d;this[_0x2e9336(0xfd)][_0x2e9336(0x177)](_0x2e9336(0xc0)),this[_0x2e9336(0x13c)]();}};_0x36ad0e=_0x3c6281([_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)]),_0x513c74(0x3,(0x0,_0x3d684b['Inject'])(_0x1f3f2f)),_0x513c74(0x4,_0x3d684b['ICommandService'])],_0x36ad0e);var _0x4f6b81=_0x3d538d(0x106),_0x2ce946=_0x3d538d(0xc5);let _0x186880={},_0x372d8e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x315039){const _0x589476=_0x3d538d;super(),this[_0x589476(0xc6)]=_0x315039,this[_0x589476(0xbd)]();}[_0x3d538d(0xbd)](){const _0x3cffc6=_0x3d538d;[_0x3cd628[_0x3cffc6(0x192)]['id'],_0x3cd628[_0x3cffc6(0xfa)]['id'],_0x3663fc[_0x3cffc6(0x18d)]['id']][_0x3cffc6(0xc8)](_0x1c45fa=>{const _0x14ec03=_0x3cffc6;this[_0x14ec03(0x10b)](this[_0x14ec03(0xc6)][_0x14ec03(0x147)](_0x1c45fa));});}};_0x372d8e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x1f3f2f))],_0x372d8e);function _0x107567({ref:_0x4c6a2f,..._0x509ad3}){const _0xf9c7d2=_0x3d538d;let {icon:_0x433d11,id:_0x23a230,className:_0x22254c,extend:_0x35ed82,..._0x292d74}=_0x509ad3,_0x2ed815=('univerjs-icon\x20univerjs-icon-'+_0x23a230+'\x20'+(_0x22254c||''))[_0xf9c7d2(0xe4)](),_0x8844a2=(0x0,_0x4a871b[_0xf9c7d2(0x156)])('_'+_0x1eb182());return _0x1d7952(_0x433d11,''+_0x23a230,{'defIds':_0x433d11['defIds'],'idSuffix':_0x8844a2[_0xf9c7d2(0x14d)]},{'ref':_0x4c6a2f,'className':_0x2ed815,..._0x292d74},_0x35ed82);}function _0x1d7952(_0x5c62ab,_0x132b91,_0x375a64,_0x1bc662,_0x55ce18){const _0xa66a53=_0x3d538d;return(0x0,_0x4a871b['createElement'])(_0x5c62ab[_0xa66a53(0xfb)],{'key':_0x132b91,..._0x37adf2(_0x5c62ab,_0x375a64,_0x55ce18),..._0x1bc662},(_0x153234(_0x5c62ab,_0x375a64)[_0xa66a53(0x162)]||[])['map']((_0x560f0c,_0x427b9b)=>_0x1d7952(_0x560f0c,_0x132b91+'-'+_0x5c62ab[_0xa66a53(0xfb)]+'-'+_0x427b9b,_0x375a64,void 0x0,_0x55ce18)));}function _0x37adf2(_0x572bb6,_0x5e75d4,_0x231a07){const _0x29224e=_0x3d538d;let _0x5c13b7={..._0x572bb6['attrs']};_0x231a07!=null&&_0x231a07[_0x29224e(0xed)]&&_0x5c13b7[_0x29224e(0x19f)]===_0x29224e(0xed)&&(_0x5c13b7['fill']=_0x231a07[_0x29224e(0xed)]),_0x231a07!=null&&_0x231a07['colorChannel1']&&_0x5c13b7[_0x29224e(0x189)]==='colorChannel1'&&(_0x5c13b7[_0x29224e(0x189)]=_0x231a07['colorChannel1']),_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0x10d)&&_0x5c13b7['id']&&(_0x5c13b7['id']+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x5d6fa5,_0x58120d])=>{const _0x59d68a=_0x29224e;_0x5d6fa5===_0x59d68a(0x10d)&&typeof _0x58120d==_0x59d68a(0x13e)&&(_0x5c13b7[_0x5d6fa5]=_0x58120d[_0x59d68a(0x18c)](/url\(#(.*)\)/,_0x59d68a(0xff)+_0x5e75d4[_0x59d68a(0x153)]+')'));});let {defIds:_0x55c7d3}=_0x5e75d4;return!_0x55c7d3||_0x55c7d3[_0x29224e(0x164)]===0x0?_0x5c13b7:(_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0xd8)&&_0x5c13b7[_0x29224e(0x14f)]&&(_0x5c13b7[_0x29224e(0x14f)]+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x273d88,_0x91ea57])=>{const _0x38f0c1=_0x29224e;typeof _0x91ea57==_0x38f0c1(0x13e)&&(_0x5c13b7[_0x273d88]=_0x91ea57['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5e75d4[_0x38f0c1(0x153)]+')'));}),_0x5c13b7);}function _0x153234(_0x159f2c,_0x26475e){const _0x19f299=_0x3d538d;var _0x595394;let {defIds:_0xa001c9}=_0x26475e;return!_0xa001c9||_0xa001c9[_0x19f299(0x164)]===0x0?_0x159f2c:_0x159f2c[_0x19f299(0xfb)]===_0x19f299(0x183)&&(_0x595394=_0x159f2c[_0x19f299(0x162)])!=null&&_0x595394[_0x19f299(0x164)]?{..._0x159f2c,'children':_0x159f2c[_0x19f299(0x162)][_0x19f299(0xd9)](_0x10b1f2=>typeof _0x10b1f2[_0x19f299(0x14e)]['id']==_0x19f299(0x13e)&&_0xa001c9&&_0xa001c9[_0x19f299(0xd5)](_0x10b1f2['attrs']['id'])?{..._0x10b1f2,'attrs':{..._0x10b1f2[_0x19f299(0x14e)],'id':_0x10b1f2[_0x19f299(0x14e)]['id']+_0x26475e['idSuffix']}}:_0x10b1f2)}:_0x159f2c;}function _0x1eb182(){const _0x2a3bd9=_0x3d538d;return Math[_0x2a3bd9(0x181)]()[_0x2a3bd9(0x14b)](0x24)[_0x2a3bd9(0x14a)](0x2,0x8);}_0x107567[_0x3d538d(0xe5)]='UniverIcon';let _0x1f2d2b={'tag':'svg','attrs':{'xmlns':_0x3d538d(0x17b),'fill':_0x3d538d(0x191),'viewBox':_0x3d538d(0x142),'width':_0x3d538d(0x176),'height':'1em'},'children':[{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'d':_0x3d538d(0x185)}},{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'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':_0x3d538d(0x101),'clipRule':'evenodd'}}]},_0x240f2e=(0x0,_0x4a871b[_0x3d538d(0xf5)])(function(_0x204703,_0x572c3e){const _0x1de236=_0x3d538d;return(0x0,_0x4a871b[_0x1de236(0x113)])(_0x107567,Object[_0x1de236(0x117)]({},_0x204703,{'id':_0x1de236(0x143),'ref':_0x572c3e,'icon':_0x1f2d2b}));});_0x240f2e[_0x3d538d(0xe5)]=_0x3d538d(0xf4);function _0x17b45e(){const _0x5f23b1=_0x3d538d;let _0x138aee=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x55e1b9),_0x2403bf=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x3d684b[_0x5f23b1(0xaf)]),_0x4919ed=(0x0,_0x305bcb[_0x5f23b1(0xde)])(()=>_0x2403bf[_0x5f23b1(0xcd)](_0x3d684b[_0x5f23b1(0xda)][_0x5f23b1(0x116)]),void 0x0,!0x1,[]),_0xc28255=(0x0,_0x305bcb['useObservable'])((0x0,_0x4a871b['useMemo'])(()=>_0x4919ed?(0x0,_0x1348da[_0x5f23b1(0x141)])(()=>(0x0,_0x1348da[_0x5f23b1(0xb8)])(_0x138aee[_0x5f23b1(0x171)](_0x4919ed['getUnitId']()))):(0x0,_0x1348da['of'])(null),[_0x4919ed,_0x138aee]),null),_0x5bf995=(0x0,_0x305bcb[_0x5f23b1(0xde)])(_0xc28255?()=>_0xc28255['status$']:null,_0x5f23b1(0xc0),!0x1,[_0xc28255]);return _0xc28255?(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x50b419[_0x5f23b1(0x10e)],{'align':_0x5f23b1(0x104),'disabled':_0x5bf995===_0x5f23b1(0x102),'className':_0x5f23b1(0xb6),'overlay':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x58e3ff,{'status':_0x5bf995,'coordinator':_0xc28255}),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x5f23b1(0xee),{'className':(0x0,_0x50b419[_0x5f23b1(0xf1)])(_0x5f23b1(0xd6),{'univer-cursor-not-allowed':_0x5bf995==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bf995!==_0x5f23b1(0x102)}),'type':_0x5f23b1(0xee),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x240f2e,{})})}):null;}function _0x58e3ff(_0x36dd2e){const _0x483829=_0x3d538d;let {status:_0x3b6ccb,coordinator:_0x1ccd8f}=_0x36dd2e;switch(_0x3b6ccb){case _0x483829(0xc0):return(0x0,_0x348bf8['jsx'])(_0x59e488,{'coordinator':_0x1ccd8f});case _0x483829(0xfe):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x232e3f,{'coordinator':_0x1ccd8f});case'not-following':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x256fa5,{'coordinator':_0x1ccd8f});case'offline':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x17c928,{});case _0x483829(0xb9):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x200e9,{'coordinator':_0x1ccd8f});default:return null;}}function _0x59e488(_0x12fc23){const _0x5f34ae=_0x3d538d;let {coordinator:_0x410a34}=_0x12fc23;return(0x0,_0x348bf8[_0x5f34ae(0x13f)])(_0x348bf8[_0x5f34ae(0x163)],{'children':[(0x0,_0x348bf8[_0x5f34ae(0x17e)])(_0x5f34ae(0x131),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f34ae(0xdf)}),(0x0,_0x348bf8['jsx'])(_0x50b419['Button'],{'onClick':()=>_0x410a34[_0x5f34ae(0xd4)](),'children':_0x5f34ae(0x137)})]});}function _0x232e3f(_0x3e31e9){const _0x4da9a8=_0x3d538d;let {coordinator:_0x392f8f}=_0x3e31e9;return(0x0,_0x348bf8[_0x4da9a8(0x13f)])(_0x348bf8[_0x4da9a8(0x163)],{'children':[(0x0,_0x348bf8[_0x4da9a8(0x17e)])('div',{'className':_0x4da9a8(0x190),'children':_0x4da9a8(0x17d)}),(0x0,_0x348bf8[_0x4da9a8(0x17e)])(_0x50b419[_0x4da9a8(0x124)],{'onClick':()=>_0x392f8f[_0x4da9a8(0x15a)](),'children':_0x4da9a8(0x149)})]});}function _0x256fa5(_0x53f95d){const _0x295642=_0x3d538d;let {coordinator:_0x5aeeab}=_0x53f95d;return(0x0,_0x348bf8[_0x295642(0x13f)])(_0x348bf8[_0x295642(0x163)],{'children':[(0x0,_0x348bf8[_0x295642(0x17e)])(_0x295642(0x131),{'className':_0x295642(0x190),'children':_0x295642(0x11c)}),(0x0,_0x348bf8[_0x295642(0x17e)])(_0x50b419[_0x295642(0x124)],{'variant':_0x295642(0xf7),'onClick':()=>_0x5aeeab['startFollowing'](),'children':_0x295642(0x127)})]});}function _0x200e9(_0x17df15){const _0x13abea=_0x3d538d;let {coordinator:_0x394e1f}=_0x17df15;return(0x0,_0x348bf8[_0x13abea(0x13f)])(_0x348bf8['Fragment'],{'children':[(0x0,_0x348bf8[_0x13abea(0x17e)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x13abea(0xc1)}),(0x0,_0x348bf8[_0x13abea(0x17e)])(_0x50b419[_0x13abea(0x124)],{'variant':_0x13abea(0x109),'onClick':()=>_0x394e1f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x17c928(){const _0x182864=_0x3d538d;return(0x0,_0x348bf8['jsx'])(_0x348bf8[_0x182864(0x163)],{'children':_0x182864(0x133)});}let _0x46b47e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x24b419,_0x4ad46a){const _0x45059f=_0x3d538d;super(),this[_0x45059f(0xe1)]=_0x24b419,this[_0x45059f(0x118)]=_0x4ad46a,this[_0x45059f(0x126)]();}[_0x3d538d(0x126)](){const _0x8224d5=_0x3d538d;this[_0x8224d5(0x10b)](this[_0x8224d5(0x118)][_0x8224d5(0x174)](_0x305bcb[_0x8224d5(0xc3)][_0x8224d5(0x12e)],()=>(0x0,_0x305bcb[_0x8224d5(0xbe)])(_0x17b45e,this['_injector'])));}};_0x46b47e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x1,_0x305bcb[_0x3d538d(0xea)])],_0x46b47e);let _0x491278=class extends _0x3d684b[_0x3d538d(0x120)]{constructor(_0x56be59=_0x186880,_0x13d410,_0x4ed3d9){const _0x423f25=_0x3d538d;super(),this[_0x423f25(0x11a)]=_0x56be59,this[_0x423f25(0xe1)]=_0x13d410,this[_0x423f25(0x18a)]=_0x4ed3d9;let {..._0x3720c0}=(0x0,_0x3d684b[_0x423f25(0x132)])({},_0x186880,this[_0x423f25(0x11a)]);this[_0x423f25(0x18a)]['setConfig'](_0x423f25(0x19e),_0x3720c0);}[_0x3d538d(0x19b)](){const _0x31b0bf=_0x3d538d;(0x0,_0x3d684b['registerDependencies'])(this[_0x31b0bf(0xe1)],(0x0,_0x3d684b['mergeOverrideWithDependencies'])([[_0x1f3f2f],[_0x55e1b9],[_0x372d8e],[_0x46b47e]],this[_0x31b0bf(0x11a)][_0x31b0bf(0x123)])),(0x0,_0x3d684b[_0x31b0bf(0x100)])(this[_0x31b0bf(0xe1)],[[_0x372d8e]]);}['onRendered'](){(0x0,_0x3d684b['touchDependencies'])(this['_injector'],[[_0x46b47e]]);}};_0x19674a(_0x491278,_0x3d538d(0x159),_0x3d684b[_0x3d538d(0xda)][_0x3d538d(0x107)]),_0x19674a(_0x491278,_0x3d538d(0xca),_0x3d538d(0x165)),_0x19674a(_0x491278,_0x3d538d(0xce),_0x4f6b81),_0x19674a(_0x491278,_0x3d538d(0x186),_0x2ce946),_0x491278=_0x3c6281([(0x0,_0x3d684b[_0x3d538d(0x10a)])(_0xa0d61e[_0x3d538d(0xb3)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)])],_0x491278),Object[_0x3d538d(0x170)](_0x1bc38c,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x55e1b9;}}),_0x1bc38c['LiveShareStatus']=_0x37ee8a,Object[_0x3d538d(0x170)](_0x1bc38c,_0x3d538d(0xcb),{'enumerable':!0x0,'get':function(){return _0x491278;}});}));function _0x4bb7(){const _0x40c6aa=['_startPresenting','IConfigService','_init','connectInjector','entries','idle','You\x27re\x20presenting\x20the\x20document','toPrimitive','BuiltInUIPart','CollaborationSessionService','1.0.0-alpha.4','_liveShareService','_univerInstanceService','forEach','4MQhgRJ','pluginName','UniverLiveSharePlugin','prototype','getCurrentTypeOfUnit$','packageName','_handleTerminate','react','RxDisposable','1112640WCuaIR','NEW_CHANGESETS','tryStartPresenting','includes','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','use','map','UniverInstanceType','@univerjs-pro/collaboration','registerInitialStateReporter','unit','useObservable','Present\x20this\x20document','_commandService','_injector','CollaborationEvent','memberID','trim','displayName','_beIdle','4391128hHjciw','getUnitId','_startLiveShareCoordinator','IUIPartsService','constructor','exports','colorChannel1','button','getLiveShareCoordinatorSync','pipe','clsx','LIVESHARE_NEW_HOST','executeCommand','LiveShareIcon','forwardRef','_commandDisposable','text','954450DsvNxN','dispose','SetScrollOperation','tag','_presenter','_status$','following','url(#$1','touchDependencies','evenodd','offline','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','end','_stopPresenting','@univerjs-pro/live-share','UNIVER_UNKNOWN','sessionStatus$','default','DependentOn','disposeWithMe','_stopFollowing','mask','Dropdown','_handleOffline','Module','UniverProLiveShare','LIVESHARE_REQUEST_HOST','createElement','operations','not-following','UNIVER_SHEET','assign','_uiPartsService','OFFLINE','_config','getMemberID','You\x27re\x20not\x20following\x20the\x20presenter','delete','_handleOnline','createInstance','Plugin','UniverCore','params','override','Button','get','_mountLiveShare','Start\x20following','amd','React','function','1170840jhaZoI','Injector','find','HEADER_MENU','getTypeOfUnitAdded$','path','div','merge','You\x27are\x20offline.','@univerjs/ui','rxjs/operators','set','Start','_sharedOperations','complete','stringify','@univerjs-pro/collaboration-client','_fetchOperations','add','string','jsxs','throttleTime','defer','0\x200\x2017\x2017','live-share-icon','sheet','has','mutations','registerSharedOperation','_startFollowing','Stop\x20following','substring','toString','getTypeOfUnitDisposed$','current','attrs','xlink:href','Inject','useDependency','110076CBLLCf','idSuffix','getInitialStates','send','useRef','Subject','UniverProCollaboration','type','stopFollowing','data','toDisposable','_handleNewChangeSets','clear','_reporters','decorate','DisposableCollection','children','Fragment','length','UNIVER_LIVE_SHARE_PLUGIN','object','takeUntil','OPERATION','UniverUi','NOT_FOLLOWING','IDLE','6931062MQoDLK','LIVESHARE_OPERATION','Disposable','SAME_OPERATION_SHARE_INTERVAL','defineProperty','getLiveShareCoordinator','_collabSessionService','presenter','registerComponent','_status','1em','next','@univerjs/design','CommandType','startFollowing','http://www.w3.org/2000/svg','requireSession','You\x27re\x20following\x20the\x20presenter','jsx','_handleOperation','7FneSSy','random','dispose$','defs','LIVESHARE_TERMINATE','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','version','stopPresenting','symbol','stroke','_configService','asObservable','replace','SetWorksheetActiveOperation','_collabSession','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','SetZoomRatioOperation','onCommandExecuted','getConfig','getOwnPropertyDescriptor','_unitID','UniverSheetsUi','getStatus','shouldShareOperation','@univerjs/core','onStarting','SessionStatus','UniverDesign','live-share.config','fill','unitId','currentColor','subscribe','values','IUniverInstanceService','init','PRESENTING','_entities','UniverCollaborationClientPlugin','@univerjs/sheets','369661guMYZU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getValue','from','presenting','_handleNewHost'];_0x4bb7=function(){return _0x40c6aa;};return _0x4bb7();}
|
|
1
|
+
function _0xc27b(_0x36334f,_0x1ec772){_0x36334f=_0x36334f-0x6c;const _0x4c57b9=_0x4c57();let _0xc27b75=_0x4c57b9[_0x36334f];return _0xc27b75;}function _0x4c57(){const _0x3722d5=['React','subject','path','type','map','url(#$1','_mountLiveShare','stopPresenting','tryStartPresenting','mask','createInstance','getInitialStates','_handleNewChangeSets','unit','Start','LiveShareController','onStarting','IUniverInstanceService','presenter','Stop\x20following','_config','Dropdown','tag','@univerjs-pro/collaboration-client','_handleOnline','Start\x20following','symbol','2252fSArXs','_unitID','@univerjs/sheets','186XeJRVQ','registerComponent','getLiveShareCoordinatorSync','mutations','_status','toDisposable','defineProperty','_status$','includes','live-share-icon','2625730HlUiLR','LIVESHARE_NEW_HOST','params','currentColor','parseProtocolChangeset','stroke','createElement','ONLINE','_commandDisposable','useObservable','_sharedOperations','IConfigService','defer','getStatus','Fragment','operations','_beIdle','touchDependencies','next','rxjs/operators','has','getMemberID','react','_liveShareService','div','packageName','BuiltInUIPart','SetScrollOperation','getTypeOfUnitAdded$','getConfig','UniverCollaborationClientPlugin','text','CommandType','PRESENTING','265255Wiwxof','connectInjector','idle','stopFollowing','1em','xlink:href','attrs','_collabSessionService','shouldShareOperation','Button','delete','@univerjs/sheets-ui','IUIPartsService','dispose$','_uiPartsService','Present\x20this\x20document','Stop\x20presenting','RxDisposable','16ehKCNP','ICommandService','svg','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','_fetchOperations','default','LIVESHARE_REQUEST_HOST','iterator','complete','live-share.config','UniverCore','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','rxjs','defs','HEADER_MENU','UniverInstanceType','registerDependencies','prototype','You\x27re\x20not\x20following\x20the\x20presenter','stringify','@univerjs-pro/collaboration','DependentOn','button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','status$','find','dispose','merge','idSuffix','send','_commandService','length','UniverProCollaboration','startFollowing','clear','_handleNewHost','registerSharedOperation','LIVESHARE_OPERATION','_univerInstanceService','_presenter','entries','reverse','parse','following','children','sessionStatus$','getOwnPropertyDescriptor','useDependency','UniverSheetsUi','_startPresenting','jsxs','forEach','Injector','offline','SetWorksheetActiveOperation','forwardRef','init','@univerjs/ui','getValue','_startLiveShareCoordinator','fill','Subject','current','UNIVER_SHEET','unitId','useMemo','evenodd','presenting','4RNONTR','UNIVER_LIVE_SHARE_PLUGIN','_stopFollowing','CollaborationSessionService','SessionStatus','SAME_OPERATION_SHARE_INTERVAL','none','trim','replace','IDLE','takeUntil','Inject','UniverUi','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','642355TdMLUS','_configService','string','_stopPresenting','setConfig','_reporters','set','sheet','http://www.w3.org/2000/svg','subscribe','pipe','exports','displayName','toStringTag','getUnitId','object','_handleOffline','971700RwxVkp','Plugin','_startFollowing','_injector','7590eARdZk','function','requireSession','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','event$','CollaborationEvent','1252107TrxcFw','colorChannel1','OFFLINE','defIds','from','random','_handleTerminate','decorate','pluginName','get','add','You\x27are\x20offline.','DisposableCollection','Module','@univerjs-pro/live-share','throttleTime','1.0.0-alpha.6','unsubscribe','not-following','values','useRef','InsertSheetMutation','Disposable','assign','_init','data','_entities','SetZoomRatioOperation','jsx','executeCommand','_collabSession'];_0x4c57=function(){return _0x3722d5;};return _0x4c57();}(function(_0x550b65,_0xe75396){const _0x2b74d4=_0xc27b,_0x3814a0=_0x550b65();while(!![]){try{const _0x13dce1=parseInt(_0x2b74d4(0x86))/0x1+-parseInt(_0x2b74d4(0xc7))/0x2*(-parseInt(_0x2b74d4(0xca))/0x3)+parseInt(_0x2b74d4(0x14d))/0x4*(-parseInt(_0x2b74d4(0xf6))/0x5)+parseInt(_0x2b74d4(0x82))/0x6+parseInt(_0x2b74d4(0x71))/0x7*(-parseInt(_0x2b74d4(0x108))/0x8)+-parseInt(_0x2b74d4(0x8d))/0x9+parseInt(_0x2b74d4(0xd4))/0xa;if(_0x13dce1===_0xe75396)break;else _0x3814a0['push'](_0x3814a0['shift']());}catch(_0xe9b9de){_0x3814a0['push'](_0x3814a0['shift']());}}}(_0x4c57,0x1ed0d),function(_0xd64f2,_0x503091){const _0x429d78=_0xc27b;typeof exports==_0x429d78(0x80)&&typeof module<'u'?_0x503091(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define=='function'&&define['amd']?define([_0x429d78(0x7c),_0x429d78(0x11d),_0x429d78(0xc3),'@univerjs/core',_0x429d78(0xc9),_0x429d78(0x115),_0x429d78(0xe7),_0x429d78(0x101),_0x429d78(0x142),'@univerjs/design',_0x429d78(0xea),_0x429d78(0x114)],_0x503091):(_0xd64f2=typeof globalThis<'u'?globalThis:_0xd64f2||self,_0x503091(_0xd64f2['UniverProLiveShare']={},_0xd64f2[_0x429d78(0x129)],_0xd64f2['UniverProCollaborationClient'],_0xd64f2[_0x429d78(0x112)],_0xd64f2['UniverSheets'],_0xd64f2[_0x429d78(0x115)],_0xd64f2[_0x429d78(0x115)]['operators'],_0xd64f2[_0x429d78(0x139)],_0xd64f2[_0x429d78(0x6f)],_0xd64f2['UniverDesign'],_0xd64f2[_0x429d78(0xac)],_0xd64f2['React']));}(this,function(_0x5b27b4,_0x4b983a,_0x2c7683,_0x4f400d,_0xbae52,_0x177f8f,_0x5e1b38,_0x45e1d3,_0x57b3a6,_0x6ecfbf,_0x4e3fce,_0x4ebdde){const _0x60cf4a=_0xc27b;Object[_0x60cf4a(0xd0)](_0x5b27b4,Symbol[_0x60cf4a(0x7e)],{'value':_0x60cf4a(0x9a)});function _0x58aa06(_0x2c9b7b){'@babel/helpers - typeof';const _0x4a9c43=_0x60cf4a;return _0x58aa06=typeof Symbol==_0x4a9c43(0x87)&&typeof Symbol[_0x4a9c43(0x10f)]==_0x4a9c43(0xc6)?function(_0xb0e60b){return typeof _0xb0e60b;}:function(_0x46ef60){const _0xe83cc5=_0x4a9c43;return _0x46ef60&&typeof Symbol==_0xe83cc5(0x87)&&_0x46ef60['constructor']===Symbol&&_0x46ef60!==Symbol[_0xe83cc5(0x11a)]?_0xe83cc5(0xc6):typeof _0x46ef60;},_0x58aa06(_0x2c9b7b);}function _0x209c16(_0x5c0c3b,_0x905b7b){const _0xbc48d5=_0x60cf4a;if(_0x58aa06(_0x5c0c3b)!='object'||!_0x5c0c3b)return _0x5c0c3b;var _0x1cc65c=_0x5c0c3b[Symbol['toPrimitive']];if(_0x1cc65c!==void 0x0){var _0x1b5b14=_0x1cc65c['call'](_0x5c0c3b,_0x905b7b||_0xbc48d5(0x10d));if(_0x58aa06(_0x1b5b14)!=_0xbc48d5(0x80))return _0x1b5b14;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x905b7b===_0xbc48d5(0x73)?String:Number)(_0x5c0c3b);}function _0x501b24(_0x5eda31){const _0x2c2376=_0x60cf4a;var _0x1b3a8a=_0x209c16(_0x5eda31,_0x2c2376(0x73));return _0x58aa06(_0x1b3a8a)==_0x2c2376(0xc6)?_0x1b3a8a:_0x1b3a8a+'';}function _0x104c71(_0x578742,_0x4a2d19,_0x17ba6e){const _0x3e8e59=_0x60cf4a;return(_0x4a2d19=_0x501b24(_0x4a2d19))in _0x578742?Object[_0x3e8e59(0xd0)](_0x578742,_0x4a2d19,{'value':_0x17ba6e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x578742[_0x4a2d19]=_0x17ba6e,_0x578742;}var _0x5b84b7=class extends _0x4f400d[_0x60cf4a(0xa3)]{constructor(..._0x4f1ecc){const _0x4161f=_0x60cf4a;super(..._0x4f1ecc),_0x104c71(this,'_sharedOperations',new Set()),_0x104c71(this,_0x4161f(0x76),new Set());}['registerSharedOperation'](_0x4e978f){const _0x1f2cf5=_0x60cf4a;return this['_sharedOperations']['add'](_0x4e978f),(0x0,_0x4f400d['toDisposable'])(()=>this[_0x1f2cf5(0xde)][_0x1f2cf5(0x100)](_0x4e978f));}['registerInitialStateReporter'](_0x934231){const _0x193db8=_0x60cf4a;return this[_0x193db8(0x76)][_0x193db8(0x97)](_0x934231),(0x0,_0x4f400d[_0x193db8(0xcf)])(()=>this[_0x193db8(0x76)][_0x193db8(0x100)](_0x934231));}[_0x60cf4a(0xfe)](_0x41532d){const _0x15c914=_0x60cf4a;return this['_sharedOperations'][_0x15c914(0xe8)](_0x41532d);}[_0x60cf4a(0xb7)](_0x32953e){const _0x1059f9=_0x60cf4a;return Array[_0x1059f9(0x91)](this[_0x1059f9(0x76)])[_0x1059f9(0xb0)](_0x1c269b=>_0x1c269b(_0x32953e));}};function _0x4ef551(_0x5494b6,_0xf48b4d){return function(_0x144f04,_0x4d3838){_0xf48b4d(_0x144f04,_0x4d3838,_0x5494b6);};}function _0x33e881(_0x5b0566,_0x5b16d7,_0x19d4b4,_0x528b7b){const _0x4c7084=_0x60cf4a;var _0x401937=arguments[_0x4c7084(0x128)],_0x39fd0a=_0x401937<0x3?_0x5b16d7:_0x528b7b===null?_0x528b7b=Object[_0x4c7084(0x137)](_0x5b16d7,_0x19d4b4):_0x528b7b,_0x4d9edd;if(typeof Reflect==_0x4c7084(0x80)&&typeof Reflect['decorate']==_0x4c7084(0x87))_0x39fd0a=Reflect[_0x4c7084(0x94)](_0x5b0566,_0x5b16d7,_0x19d4b4,_0x528b7b);else{for(var _0x4bdd65=_0x5b0566[_0x4c7084(0x128)]-0x1;_0x4bdd65>=0x0;_0x4bdd65--)(_0x4d9edd=_0x5b0566[_0x4bdd65])&&(_0x39fd0a=(_0x401937<0x3?_0x4d9edd(_0x39fd0a):_0x401937>0x3?_0x4d9edd(_0x5b16d7,_0x19d4b4,_0x39fd0a):_0x4d9edd(_0x5b16d7,_0x19d4b4))||_0x39fd0a);}return _0x401937>0x3&&_0x39fd0a&&Object[_0x4c7084(0xd0)](_0x5b16d7,_0x19d4b4,_0x39fd0a),_0x39fd0a;}let _0x53ac8a=class extends _0x4f400d[_0x60cf4a(0x107)]{constructor(_0x2a8e4e,_0xd281fc,_0x3c43e6){const _0x3580f7=_0x60cf4a;super(),this[_0x3580f7(0x12f)]=_0x2a8e4e,this[_0x3580f7(0x85)]=_0xd281fc,this[_0x3580f7(0xfd)]=_0x3c43e6,_0x104c71(this,_0x3580f7(0xa7),new Map()),this[_0x3580f7(0xa5)]();}async['getLiveShareCoordinator'](_0xa19732){const _0x248f12=_0x60cf4a;return this['_entities'][_0x248f12(0xe8)](_0xa19732)||await this['_startLiveShareCoordinator'](_0xa19732),this[_0x248f12(0xa7)][_0x248f12(0x96)](_0xa19732);}[_0x60cf4a(0xcc)](_0x257254){const _0x448e16=_0x60cf4a;var _0x12dd05;return(_0x12dd05=this[_0x448e16(0xa7)][_0x448e16(0x96)](_0x257254))==null?null:_0x12dd05;}['_init'](){const _0x2c100d=_0x60cf4a;this[_0x2c100d(0x12f)][_0x2c100d(0xf0)](_0x4f400d[_0x2c100d(0x118)][_0x2c100d(0x148)])[_0x2c100d(0x7b)]((0x0,_0x5e1b38[_0x2c100d(0x6d)])(this[_0x2c100d(0x103)]))[_0x2c100d(0x7a)](async _0x51e583=>{const _0x1a4536=_0x2c100d;let _0x4057e6=_0x51e583[_0x1a4536(0xb9)][_0x1a4536(0x7f)]();this[_0x1a4536(0xa7)]['has'](_0x4057e6)||this[_0x1a4536(0x144)](_0x4057e6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4f400d['UniverInstanceType'][_0x2c100d(0x148)])['pipe']((0x0,_0x5e1b38[_0x2c100d(0x6d)])(this['dispose$']))[_0x2c100d(0x7a)](_0x1b599a=>{const _0x542551=_0x2c100d;let _0x3a135a=_0x1b599a[_0x542551(0x7f)](),_0x439a9e=this[_0x542551(0xa7)][_0x542551(0x96)](_0x3a135a);_0x439a9e==null||_0x439a9e[_0x542551(0x123)]();});}async[_0x60cf4a(0x144)](_0x13dad4){const _0x386b69=_0x60cf4a;let _0x209408=await this[_0x386b69(0xfd)][_0x386b69(0x88)](_0x13dad4),_0x946a17=this[_0x386b69(0x85)][_0x386b69(0xb6)](_0x1c9382,_0x13dad4,_0x209408);return _0x946a17[_0x386b69(0x141)](),this[_0x386b69(0xa7)][_0x386b69(0x77)](_0x13dad4,_0x946a17),_0x946a17;}};_0x53ac8a=_0x33e881([_0x4ef551(0x0,_0x4f400d[_0x60cf4a(0xbd)]),_0x4ef551(0x1,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x4f400d[_0x60cf4a(0x13d)])),_0x4ef551(0x2,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x2c7683[_0x60cf4a(0x150)]))],_0x53ac8a);let _0x1801f4=function(_0x1ab45d){const _0x2c18d2=_0x60cf4a;return _0x1ab45d[_0x2c18d2(0x8f)]=_0x2c18d2(0x13e),_0x1ab45d[_0x2c18d2(0x6c)]=_0x2c18d2(0xf8),_0x1ab45d['FOLLOWING']=_0x2c18d2(0x134),_0x1ab45d['NOT_FOLLOWING']=_0x2c18d2(0x9f),_0x1ab45d[_0x2c18d2(0xf5)]=_0x2c18d2(0x14c),_0x1ab45d;}({}),_0x1c9382=class extends _0x4f400d[_0x60cf4a(0x107)]{get[_0x60cf4a(0xce)](){const _0x3c61ff=_0x60cf4a;return this[_0x3c61ff(0xd1)][_0x3c61ff(0x143)]();}constructor(_0x92ed0b,_0x58c3fe,_0x133a1d,_0x33f9bb,_0x45140c){const _0x153067=_0x60cf4a;super(),this[_0x153067(0xc8)]=_0x92ed0b,this[_0x153067(0xab)]=_0x58c3fe,this['_configService']=_0x133a1d,this[_0x153067(0xeb)]=_0x33f9bb,this[_0x153067(0x127)]=_0x45140c,_0x104c71(this,_0x153067(0xd1),new _0x177f8f['BehaviorSubject'](_0x153067(0xf8))),_0x104c71(this,_0x153067(0x121),this[_0x153067(0xd1)]['asObservable']()),_0x104c71(this,_0x153067(0xa5),!0x1),_0x104c71(this,_0x153067(0xdc),null),_0x104c71(this,_0x153067(0x130),null);}[_0x60cf4a(0x123)](){const _0x24e998=_0x60cf4a;var _0x13b89f;(_0x13b89f=this[_0x24e998(0xdc)])==null||_0x13b89f['dispose'](),this[_0x24e998(0xd1)][_0x24e998(0xe6)](_0x24e998(0xf8)),this[_0x24e998(0xd1)][_0x24e998(0x110)]();}[_0x60cf4a(0xe1)](){const _0x4879b9=_0x60cf4a;return this[_0x4879b9(0xce)];}[_0x60cf4a(0x141)](){const _0xdbfca2=_0x60cf4a;this['_init']||(this[_0xdbfca2(0xa5)]=!0x0,this[_0xdbfca2(0xab)][_0xdbfca2(0x136)][_0xdbfca2(0x7b)]((0x0,_0x5e1b38[_0xdbfca2(0x6d)])(this[_0xdbfca2(0x103)]))['subscribe'](_0x3fa9ae=>{const _0x3246c6=_0xdbfca2;switch(_0x3fa9ae){case _0x2c7683[_0x3246c6(0x151)]['OFFLINE']:this[_0x3246c6(0x81)]();break;case _0x2c7683[_0x3246c6(0x151)][_0x3246c6(0xdb)]:this['_handleOnline']();break;default:}}),this[_0xdbfca2(0xab)][_0xdbfca2(0x8b)]['pipe']((0x0,_0x5e1b38[_0xdbfca2(0x6d)])(this[_0xdbfca2(0x103)]))[_0xdbfca2(0x7a)](_0x3a21a7=>{const _0x3416d5=_0xdbfca2;let {eventID:_0x25201e}=_0x3a21a7;switch(_0x25201e){case _0x4b983a[_0x3416d5(0x8c)][_0x3416d5(0xd5)]:this[_0x3416d5(0x12c)](_0x3a21a7);break;case _0x4b983a[_0x3416d5(0x8c)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3a21a7);break;case _0x4b983a[_0x3416d5(0x8c)]['LIVESHARE_TERMINATE']:this[_0x3416d5(0x93)]();break;case _0x4b983a[_0x3416d5(0x8c)]['NEW_CHANGESETS']:this[_0x3416d5(0xb8)](_0x3a21a7);break;default:}}));}[_0x60cf4a(0xb4)](){const _0x16c486=_0x60cf4a;this[_0x16c486(0xab)]['send']({'eventID':_0x4b983a[_0x16c486(0x8c)][_0x16c486(0x10e)],'data':{'unitID':this[_0x16c486(0xc8)],'userID':this[_0x16c486(0xab)][_0x16c486(0xe9)]()}},this[_0x16c486(0xc8)]);}[_0x60cf4a(0xb3)](){const _0x144c35=_0x60cf4a;this['_status']===_0x144c35(0x14c)&&(this[_0x144c35(0xd1)]['next'](_0x144c35(0xf8)),this[_0x144c35(0xab)][_0x144c35(0x126)]({'eventID':_0x4b983a[_0x144c35(0x8c)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x144c35(0xc8)]));}[_0x60cf4a(0x12a)](){const _0x1f853c=_0x60cf4a;this[_0x1f853c(0xce)]===_0x1f853c(0x9f)&&(this[_0x1f853c(0xd1)]['next'](_0x1f853c(0x134)),this[_0x1f853c(0x84)]());}[_0x60cf4a(0xf9)](){const _0xac727d=_0x60cf4a;this[_0xac727d(0xce)]===_0xac727d(0x134)&&this[_0xac727d(0x14f)]();}[_0x60cf4a(0x12c)](_0x4b34a3){const _0x22e2a6=_0x60cf4a;let {presenter:_0xd4ce5a}=_0x4b34a3['data'],_0x2c963f=this[_0x22e2a6(0xab)]['getMemberID']();this[_0x22e2a6(0x130)]=_0xd4ce5a,_0xd4ce5a===_0x2c963f?(this[_0x22e2a6(0x14f)](),this[_0x22e2a6(0x13a)]()):this['_status']!==_0x22e2a6(0x9f)&&(this['_stopPresenting'](),this[_0x22e2a6(0x84)]());}[_0x60cf4a(0x10c)](){const _0x18b290=_0x60cf4a;let _0x33faad={'eventID':_0x4b983a['CollaborationEvent'][_0x18b290(0x113)]};this['_collabSession'][_0x18b290(0x126)](_0x33faad,this[_0x18b290(0xc8)]);}['_handleTerminate'](){const _0x48af6d=_0x60cf4a;this[_0x48af6d(0x130)]=null,this[_0x48af6d(0xce)]!==_0x48af6d(0x14c)&&this['_beIdle']();}[_0x60cf4a(0xb8)](_0x3ea8db){const _0x952e66=_0x60cf4a;if(this[_0x952e66(0xce)]==='following'&&this[_0x952e66(0x130)]===_0x3ea8db[_0x952e66(0xa6)]['memberID']){let _0x7ddc2d=(0x0,_0x4b983a[_0x952e66(0xd8)])(_0x3ea8db[_0x952e66(0xa6)])[_0x952e66(0xcd)][_0x952e66(0x132)]()[_0x952e66(0x122)](_0x13e643=>_0x13e643['id']===_0xbae52[_0x952e66(0xa2)]['id']);if(_0x7ddc2d){let _0xcd5c94=_0x7ddc2d[_0x952e66(0xd6)][_0x952e66(0x149)],_0x5dfe00=_0x7ddc2d[_0x952e66(0xd6)][_0x952e66(0x78)]['id'];setTimeout(()=>{const _0x4e5b27=_0x952e66;this['_commandService'][_0x4e5b27(0xaa)](_0xbae52[_0x4e5b27(0x13f)]['id'],{'unitId':_0xcd5c94,'subUnitId':_0x5dfe00},{'fromCollab':!0x0});});}}}[_0x60cf4a(0x13a)](){const _0x155891=_0x60cf4a;var _0x2dd8ea;(_0x2dd8ea=this['_commandDisposable'])==null||_0x2dd8ea[_0x155891(0x123)](),this[_0x155891(0xd1)][_0x155891(0xe6)](_0x155891(0x14c));let _0x5012b1=new Map(),_0x476b60=this[_0x155891(0xdc)]=new _0x4f400d[(_0x155891(0x99))]();_0x476b60['add']((0x0,_0x4f400d[_0x155891(0xcf)])(()=>{const _0x138fb3=_0x155891;_0x5012b1[_0x138fb3(0x13c)](({subject:_0xc9735c,subscription:_0x30ab98})=>{const _0x1d12da=_0x138fb3;_0x30ab98[_0x1d12da(0x9e)](),_0xc9735c[_0x1d12da(0x110)]();}),_0x5012b1[_0x138fb3(0x12b)]();})),_0x476b60['add'](this[_0x155891(0x127)]['onCommandExecuted'](_0x1c9047=>{const _0x5d95e8=_0x155891;if(_0x1c9047[_0x5d95e8(0xaf)]!==_0x4f400d[_0x5d95e8(0xf4)]['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x1c9047['id']))return;let {id:_0x300de3}=_0x1c9047,_0x54d244;if(_0x5012b1[_0x5d95e8(0xe8)](_0x300de3))_0x54d244=_0x5012b1[_0x5d95e8(0x96)](_0x300de3)[_0x5d95e8(0xad)];else{var _0x3bb767;_0x54d244=new _0x177f8f[(_0x5d95e8(0x146))]();let _0x2acf17=_0x54d244[_0x5d95e8(0x7b)]((0x0,_0x5e1b38[_0x5d95e8(0x9c)])((_0x3bb767=this[_0x5d95e8(0x72)][_0x5d95e8(0xf1)](_0x5d95e8(0x152)))==null?0xc8:_0x3bb767,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d95e8(0x7a)](_0x692a88=>{const _0x1462d1=_0x5d95e8;this[_0x1462d1(0xab)]['send']({'eventID':_0x4b983a[_0x1462d1(0x8c)][_0x1462d1(0x12e)],'data':{'unitID':this[_0x1462d1(0xc8)],'operations':{[_0x692a88['id']]:{'id':_0x692a88['id'],'params':JSON[_0x1462d1(0x11c)](_0x692a88[_0x1462d1(0xd6)])}}}},this[_0x1462d1(0xc8)]);});_0x5012b1[_0x5d95e8(0x77)](_0x300de3,{'subject':_0x54d244,'subscription':_0x2acf17});}_0x54d244[_0x5d95e8(0xe6)](_0x1c9047);})),this[_0x155891(0xeb)][_0x155891(0xb7)](this[_0x155891(0xc8)])[_0x155891(0x13c)](_0x56f60d=>this[_0x155891(0xab)][_0x155891(0x126)]({'eventID':_0x4b983a['CollaborationEvent'][_0x155891(0x12e)],'data':{'unitID':this[_0x155891(0xc8)],'operations':{[_0x56f60d['id']]:{'id':_0x56f60d['id'],'params':JSON[_0x155891(0x11c)](_0x56f60d[_0x155891(0xd6)])}}}},this['_unitID']));}[_0x60cf4a(0x74)](){const _0x288b44=_0x60cf4a;var _0x55793f;this[_0x288b44(0xd1)]['next'](_0x288b44(0xf8)),(_0x55793f=this[_0x288b44(0xdc)])==null||_0x55793f[_0x288b44(0x123)](),this[_0x288b44(0xdc)]=null;}[_0x60cf4a(0x84)](){const _0x15cbd1=_0x60cf4a;var _0x303bb4;(_0x303bb4=this[_0x15cbd1(0xdc)])==null||_0x303bb4[_0x15cbd1(0x123)](),this[_0x15cbd1(0xd1)][_0x15cbd1(0xe6)]('following');}[_0x60cf4a(0xe4)](){const _0x3e6a87=_0x60cf4a;var _0x81b5bb;this[_0x3e6a87(0xd1)][_0x3e6a87(0xe6)](_0x3e6a87(0xf8)),(_0x81b5bb=this['_commandDisposable'])==null||_0x81b5bb[_0x3e6a87(0x123)](),this[_0x3e6a87(0xdc)]=null;}['_stopFollowing'](){const _0x46f986=_0x60cf4a;var _0x35ae97;this[_0x46f986(0xd1)][_0x46f986(0xe6)](_0x46f986(0x9f)),(_0x35ae97=this[_0x46f986(0xdc)])==null||_0x35ae97['dispose']();}['_handleOperation'](_0xba1dd4){const _0x8df1e1=_0x60cf4a;if(['presenting','not-following',_0x8df1e1(0x13e)][_0x8df1e1(0xd2)](this['_status'])||!_0xba1dd4[_0x8df1e1(0xa6)][_0x8df1e1(0xbe)]||_0xba1dd4[_0x8df1e1(0xa6)]['presenter']===this[_0x8df1e1(0xab)][_0x8df1e1(0xe9)]())return;this[_0x8df1e1(0xce)]===_0x8df1e1(0xf8)&&this[_0x8df1e1(0x84)]();let _0x75a959=_0xba1dd4[_0x8df1e1(0xa6)][_0x8df1e1(0xe3)];Object[_0x8df1e1(0xa0)](_0x75a959)[_0x8df1e1(0x13c)](_0x3898e9=>{const _0x52c24e=_0x8df1e1;this[_0x52c24e(0x127)]['executeCommand'](_0x3898e9['id'],_0x3898e9[_0x52c24e(0xd6)]?JSON[_0x52c24e(0x133)](_0x3898e9[_0x52c24e(0xd6)]):null,{'fromCollab':!0x0});});}[_0x60cf4a(0x81)](){const _0x3f625e=_0x60cf4a;var _0x55b1a7;this['_status$']['next'](_0x3f625e(0x13e)),(_0x55b1a7=this[_0x3f625e(0xdc)])==null||_0x55b1a7[_0x3f625e(0x123)]();}[_0x60cf4a(0xc4)](){const _0x223d07=_0x60cf4a;this[_0x223d07(0xd1)][_0x223d07(0xe6)](_0x223d07(0xf8)),this['_fetchOperations']();}};_0x1c9382=_0x33e881([_0x4ef551(0x2,_0x4f400d[_0x60cf4a(0xdf)]),_0x4ef551(0x3,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x5b84b7)),_0x4ef551(0x4,_0x4f400d[_0x60cf4a(0x109)])],_0x1c9382);var _0x9b74a2=_0x60cf4a(0x9b),_0x3e3ee6=_0x60cf4a(0x9d);let _0x7fad35={},_0x1ab3ac=class extends _0x4f400d[_0x60cf4a(0xa3)]{constructor(_0x154196){const _0x4fc8b5=_0x60cf4a;super(),this[_0x4fc8b5(0xeb)]=_0x154196,this[_0x4fc8b5(0xa5)]();}[_0x60cf4a(0xa5)](){const _0x5561f7=_0x60cf4a;[_0x45e1d3[_0x5561f7(0xa8)]['id'],_0x45e1d3[_0x5561f7(0xef)]['id'],_0xbae52[_0x5561f7(0x13f)]['id']][_0x5561f7(0x13c)](_0x357bd5=>{const _0x52a345=_0x5561f7;this['disposeWithMe'](this[_0x52a345(0xeb)][_0x52a345(0x12d)](_0x357bd5));});}};_0x1ab3ac=_0x33e881([_0x4ef551(0x0,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x5b84b7))],_0x1ab3ac);function _0x3fa625({ref:_0x5cd498,..._0x1698e5}){const _0x4519ac=_0x60cf4a;let {icon:_0x48790c,id:_0x777b42,className:_0x31a77a,extend:_0x91b507,..._0x29b2d8}=_0x1698e5,_0xd2696d=('univerjs-icon\x20univerjs-icon-'+_0x777b42+'\x20'+(_0x31a77a||''))[_0x4519ac(0x154)](),_0x59a53c=(0x0,_0x4e3fce[_0x4519ac(0xa1)])('_'+_0x3e7ac0());return _0x29b87e(_0x48790c,''+_0x777b42,{'defIds':_0x48790c[_0x4519ac(0x90)],'idSuffix':_0x59a53c[_0x4519ac(0x147)]},{'ref':_0x5cd498,'className':_0xd2696d,..._0x29b2d8},_0x91b507);}function _0x29b87e(_0x4ded35,_0x396387,_0x35519e,_0x5486ab,_0x197f00){const _0x204ce4=_0x60cf4a;return(0x0,_0x4e3fce[_0x204ce4(0xda)])(_0x4ded35[_0x204ce4(0xc2)],{'key':_0x396387,..._0x38c58d(_0x4ded35,_0x35519e,_0x197f00),..._0x5486ab},(_0x3a695e(_0x4ded35,_0x35519e)[_0x204ce4(0x135)]||[])['map']((_0x4fdfbd,_0x9bc719)=>_0x29b87e(_0x4fdfbd,_0x396387+'-'+_0x4ded35[_0x204ce4(0xc2)]+'-'+_0x9bc719,_0x35519e,void 0x0,_0x197f00)));}function _0x38c58d(_0x50d8d5,_0x5f1613,_0x344d88){const _0x753188=_0x60cf4a;let _0x54886e={..._0x50d8d5[_0x753188(0xfc)]};_0x344d88!=null&&_0x344d88[_0x753188(0x8e)]&&_0x54886e[_0x753188(0x145)]==='colorChannel1'&&(_0x54886e[_0x753188(0x145)]=_0x344d88[_0x753188(0x8e)]),_0x344d88!=null&&_0x344d88['colorChannel1']&&_0x54886e[_0x753188(0xd9)]===_0x753188(0x8e)&&(_0x54886e['stroke']=_0x344d88['colorChannel1']),_0x50d8d5[_0x753188(0xc2)]===_0x753188(0xb5)&&_0x54886e['id']&&(_0x54886e['id']+=_0x5f1613[_0x753188(0x125)]),Object[_0x753188(0x131)](_0x54886e)[_0x753188(0x13c)](([_0x2a5951,_0x2d10cf])=>{const _0x452db5=_0x753188;_0x2a5951===_0x452db5(0xb5)&&typeof _0x2d10cf=='string'&&(_0x54886e[_0x2a5951]=_0x2d10cf[_0x452db5(0x155)](/url\(#(.*)\)/,_0x452db5(0xb1)+_0x5f1613[_0x452db5(0x125)]+')'));});let {defIds:_0x1090d0}=_0x5f1613;return!_0x1090d0||_0x1090d0['length']===0x0?_0x54886e:(_0x50d8d5[_0x753188(0xc2)]==='use'&&_0x54886e[_0x753188(0xfb)]&&(_0x54886e[_0x753188(0xfb)]+=_0x5f1613['idSuffix']),Object[_0x753188(0x131)](_0x54886e)['forEach'](([_0x26cf59,_0x3b69bd])=>{const _0x46eefc=_0x753188;typeof _0x3b69bd==_0x46eefc(0x73)&&(_0x54886e[_0x26cf59]=_0x3b69bd[_0x46eefc(0x155)](/url\(#(.*)\)/,'url(#$1'+_0x5f1613['idSuffix']+')'));}),_0x54886e);}function _0x3a695e(_0x2c4eaa,_0x1c3c6a){const _0x325139=_0x60cf4a;var _0x253d01;let {defIds:_0x51b7df}=_0x1c3c6a;return!_0x51b7df||_0x51b7df['length']===0x0?_0x2c4eaa:_0x2c4eaa['tag']===_0x325139(0x116)&&(_0x253d01=_0x2c4eaa[_0x325139(0x135)])!=null&&_0x253d01['length']?{..._0x2c4eaa,'children':_0x2c4eaa[_0x325139(0x135)][_0x325139(0xb0)](_0x1eda7e=>typeof _0x1eda7e[_0x325139(0xfc)]['id']==_0x325139(0x73)&&_0x51b7df&&_0x51b7df[_0x325139(0xd2)](_0x1eda7e[_0x325139(0xfc)]['id'])?{..._0x1eda7e,'attrs':{..._0x1eda7e[_0x325139(0xfc)],'id':_0x1eda7e[_0x325139(0xfc)]['id']+_0x1c3c6a[_0x325139(0x125)]}}:_0x1eda7e)}:_0x2c4eaa;}function _0x3e7ac0(){const _0xa6b0df=_0x60cf4a;return Math[_0xa6b0df(0x92)]()['toString'](0x24)['substring'](0x2,0x8);}_0x3fa625['displayName']='UniverIcon';let _0x8289bc={'tag':_0x60cf4a(0x10a),'attrs':{'xmlns':_0x60cf4a(0x79),'fill':_0x60cf4a(0x153),'viewBox':'0\x200\x2017\x2017','width':_0x60cf4a(0xfa),'height':_0x60cf4a(0xfa)},'children':[{'tag':_0x60cf4a(0xae),'attrs':{'fill':_0x60cf4a(0xd7),'d':_0x60cf4a(0x10b)}},{'tag':_0x60cf4a(0xae),'attrs':{'fill':_0x60cf4a(0xd7),'d':_0x60cf4a(0x70),'fillRule':_0x60cf4a(0x14b),'clipRule':_0x60cf4a(0x14b)}}]},_0x266b72=(0x0,_0x4e3fce[_0x60cf4a(0x140)])(function(_0x289d49,_0xc3311f){const _0x4aa105=_0x60cf4a;return(0x0,_0x4e3fce['createElement'])(_0x3fa625,Object[_0x4aa105(0xa4)]({},_0x289d49,{'id':_0x4aa105(0xd3),'ref':_0xc3311f,'icon':_0x8289bc}));});_0x266b72[_0x60cf4a(0x7d)]='LiveShareIcon';function _0x55ee0f(){const _0x558f1f=_0x60cf4a;let _0x3ebfae=(0x0,_0x57b3a6['useDependency'])(_0x53ac8a),_0x2b09a4=(0x0,_0x57b3a6[_0x558f1f(0x138)])(_0x4f400d[_0x558f1f(0xbd)]),_0x2c9b99=(0x0,_0x57b3a6['useObservable'])(()=>_0x2b09a4['getCurrentTypeOfUnit$'](_0x4f400d[_0x558f1f(0x118)][_0x558f1f(0x148)]),void 0x0,!0x1,[]),_0x3e139b=(0x0,_0x57b3a6[_0x558f1f(0xdd)])((0x0,_0x4e3fce[_0x558f1f(0x14a)])(()=>_0x2c9b99?(0x0,_0x177f8f[_0x558f1f(0xe0)])(()=>(0x0,_0x177f8f[_0x558f1f(0x91)])(_0x3ebfae['getLiveShareCoordinator'](_0x2c9b99[_0x558f1f(0x7f)]()))):(0x0,_0x177f8f['of'])(null),[_0x2c9b99,_0x3ebfae]),null),_0x3f7ca6=(0x0,_0x57b3a6[_0x558f1f(0xdd)])(_0x3e139b?()=>_0x3e139b[_0x558f1f(0x121)]:null,'idle',!0x1,[_0x3e139b]);return _0x3e139b?(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x6ecfbf[_0x558f1f(0xc1)],{'align':'end','disabled':_0x3f7ca6===_0x558f1f(0x13e),'className':_0x558f1f(0x120),'overlay':(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x4c0038,{'status':_0x3f7ca6,'coordinator':_0x3e139b}),'children':(0x0,_0x4ebdde['jsx'])(_0x558f1f(0x11f),{'className':(0x0,_0x6ecfbf['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f7ca6===_0x558f1f(0x13e),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f7ca6!==_0x558f1f(0x13e)}),'type':_0x558f1f(0x11f),'children':(0x0,_0x4ebdde[_0x558f1f(0xa9)])(_0x266b72,{})})}):null;}function _0x4c0038(_0x36c310){const _0x4935ae=_0x60cf4a;let {status:_0x145283,coordinator:_0x4a6bdb}=_0x36c310;switch(_0x145283){case'idle':return(0x0,_0x4ebdde['jsx'])(_0x18bfe0,{'coordinator':_0x4a6bdb});case _0x4935ae(0x134):return(0x0,_0x4ebdde['jsx'])(_0x276575,{'coordinator':_0x4a6bdb});case _0x4935ae(0x9f):return(0x0,_0x4ebdde[_0x4935ae(0xa9)])(_0x474021,{'coordinator':_0x4a6bdb});case _0x4935ae(0x13e):return(0x0,_0x4ebdde['jsx'])(_0x19c3e3,{});case _0x4935ae(0x14c):return(0x0,_0x4ebdde[_0x4935ae(0xa9)])(_0x4af9f8,{'coordinator':_0x4a6bdb});default:return null;}}function _0x18bfe0(_0x5ad1fd){const _0x239772=_0x60cf4a;let {coordinator:_0x51fe54}=_0x5ad1fd;return(0x0,_0x4ebdde['jsxs'])(_0x4ebdde[_0x239772(0xe2)],{'children':[(0x0,_0x4ebdde[_0x239772(0xa9)])(_0x239772(0xec),{'className':_0x239772(0x8a),'children':_0x239772(0x105)}),(0x0,_0x4ebdde['jsx'])(_0x6ecfbf[_0x239772(0xff)],{'onClick':()=>_0x51fe54[_0x239772(0xb4)](),'children':_0x239772(0xba)})]});}function _0x276575(_0x4094ba){const _0x55a689=_0x60cf4a;let {coordinator:_0x237aaf}=_0x4094ba;return(0x0,_0x4ebdde[_0x55a689(0x13b)])(_0x4ebdde[_0x55a689(0xe2)],{'children':[(0x0,_0x4ebdde['jsx'])(_0x55a689(0xec),{'className':_0x55a689(0x8a),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x4ebdde['jsx'])(_0x6ecfbf[_0x55a689(0xff)],{'onClick':()=>_0x237aaf[_0x55a689(0xf9)](),'children':_0x55a689(0xbf)})]});}function _0x474021(_0x25a74b){const _0x28cfc0=_0x60cf4a;let {coordinator:_0x253582}=_0x25a74b;return(0x0,_0x4ebdde[_0x28cfc0(0x13b)])(_0x4ebdde[_0x28cfc0(0xe2)],{'children':[(0x0,_0x4ebdde[_0x28cfc0(0xa9)])(_0x28cfc0(0xec),{'className':_0x28cfc0(0x8a),'children':_0x28cfc0(0x11b)}),(0x0,_0x4ebdde[_0x28cfc0(0xa9)])(_0x6ecfbf[_0x28cfc0(0xff)],{'variant':_0x28cfc0(0xf3),'onClick':()=>_0x253582['startFollowing'](),'children':_0x28cfc0(0xc5)})]});}function _0x4af9f8(_0x4b4eb2){const _0x425688=_0x60cf4a;let {coordinator:_0x96d685}=_0x4b4eb2;return(0x0,_0x4ebdde[_0x425688(0x13b)])(_0x4ebdde[_0x425688(0xe2)],{'children':[(0x0,_0x4ebdde['jsx'])(_0x425688(0xec),{'className':_0x425688(0x8a),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x4ebdde[_0x425688(0xa9)])(_0x6ecfbf[_0x425688(0xff)],{'variant':'default','onClick':()=>_0x96d685[_0x425688(0xb3)](),'children':_0x425688(0x106)})]});}function _0x19c3e3(){const _0x3c9af9=_0x60cf4a;return(0x0,_0x4ebdde['jsx'])(_0x4ebdde[_0x3c9af9(0xe2)],{'children':_0x3c9af9(0x98)});}let _0x1d0542=class extends _0x4f400d['Disposable']{constructor(_0x40bbee,_0x363ab2){const _0x3aa612=_0x60cf4a;super(),this[_0x3aa612(0x85)]=_0x40bbee,this[_0x3aa612(0x104)]=_0x363ab2,this[_0x3aa612(0xb2)]();}[_0x60cf4a(0xb2)](){const _0x5cb3ca=_0x60cf4a;this[_0x5cb3ca(0x89)](this['_uiPartsService'][_0x5cb3ca(0xcb)](_0x57b3a6[_0x5cb3ca(0xee)][_0x5cb3ca(0x117)],()=>(0x0,_0x57b3a6[_0x5cb3ca(0xf7)])(_0x55ee0f,this[_0x5cb3ca(0x85)])));}};_0x1d0542=_0x33e881([_0x4ef551(0x0,(0x0,_0x4f400d[_0x60cf4a(0x6e)])(_0x4f400d[_0x60cf4a(0x13d)])),_0x4ef551(0x1,_0x57b3a6[_0x60cf4a(0x102)])],_0x1d0542);let _0x28f7f4=class extends _0x4f400d[_0x60cf4a(0x83)]{constructor(_0x393fe1=_0x7fad35,_0x4df693,_0x12a3d3){const _0x18db84=_0x60cf4a;super(),this['_config']=_0x393fe1,this['_injector']=_0x4df693,this['_configService']=_0x12a3d3;let {..._0x5978dd}=(0x0,_0x4f400d[_0x18db84(0x124)])({},_0x7fad35,this[_0x18db84(0xc0)]);this[_0x18db84(0x72)][_0x18db84(0x75)](_0x18db84(0x111),_0x5978dd);}[_0x60cf4a(0xbc)](){const _0x4bca28=_0x60cf4a;(0x0,_0x4f400d[_0x4bca28(0x119)])(this[_0x4bca28(0x85)],(0x0,_0x4f400d['mergeOverrideWithDependencies'])([[_0x5b84b7],[_0x53ac8a],[_0x1ab3ac],[_0x1d0542]],this[_0x4bca28(0xc0)]['override'])),(0x0,_0x4f400d['touchDependencies'])(this[_0x4bca28(0x85)],[[_0x1ab3ac]]);}['onRendered'](){const _0x3d6f4b=_0x60cf4a;(0x0,_0x4f400d[_0x3d6f4b(0xe5)])(this['_injector'],[[_0x1d0542]]);}};_0x104c71(_0x28f7f4,_0x60cf4a(0xaf),_0x4f400d[_0x60cf4a(0x118)]['UNIVER_UNKNOWN']),_0x104c71(_0x28f7f4,_0x60cf4a(0x95),_0x60cf4a(0x14e)),_0x104c71(_0x28f7f4,_0x60cf4a(0xed),_0x9b74a2),_0x104c71(_0x28f7f4,'version',_0x3e3ee6),_0x28f7f4=_0x33e881([(0x0,_0x4f400d[_0x60cf4a(0x11e)])(_0x2c7683[_0x60cf4a(0xf2)]),_0x4ef551(0x1,(0x0,_0x4f400d['Inject'])(_0x4f400d['Injector'])),_0x4ef551(0x2,_0x4f400d[_0x60cf4a(0xdf)])],_0x28f7f4),Object[_0x60cf4a(0xd0)](_0x5b27b4,_0x60cf4a(0xbb),{'enumerable':!0x0,'get':function(){return _0x53ac8a;}}),_0x5b27b4['LiveShareStatus']=_0x1801f4,Object[_0x60cf4a(0xd0)](_0x5b27b4,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0x28f7f4;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@univerjs/icons": "1.29.0",
|
|
66
|
-
"@univerjs-pro/collaboration": "1.0.0-alpha.
|
|
67
|
-
"@univerjs-pro/collaboration-client": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/design": "1.0.0-alpha.
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
72
|
-
"@univerjs/
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.6",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.6",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.6",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.6",
|
|
70
|
+
"@univerjs/ui": "1.0.0-alpha.6",
|
|
71
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.6",
|
|
72
|
+
"@univerjs/sheets": "1.0.0-alpha.6"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"postcss": "^8.5.19",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"tailwindcss": "3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
80
|
"vitest": "^4.1.10",
|
|
81
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
82
|
-
"@univerjs/protocol": "1.0.0-alpha.
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.6",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.6"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|