@univerjs-pro/collaboration-client-ui 1.0.0-alpha.5 → 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/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4fde36=_0x4dee;(function(_0x276877,_0x639d91){const _0x37a9a5=_0x4dee,_0x54e0c3=_0x276877();while(!![]){try{const _0x17ccd1=parseInt(_0x37a9a5(0x248))/0x1+-parseInt(_0x37a9a5(0x2bd))/0x2*(-parseInt(_0x37a9a5(0x1a8))/0x3)+parseInt(_0x37a9a5(0x2d7))/0x4*(parseInt(_0x37a9a5(0x19d))/0x5)+-parseInt(_0x37a9a5(0x193))/0x6*(-parseInt(_0x37a9a5(0x301))/0x7)+-parseInt(_0x37a9a5(0x424))/0x8+-parseInt(_0x37a9a5(0x44f))/0x9*(-parseInt(_0x37a9a5(0x1c0))/0xa)+-parseInt(_0x37a9a5(0x362))/0xb*(parseInt(_0x37a9a5(0x1ee))/0xc);if(_0x17ccd1===_0x639d91)break;else _0x54e0c3['push'](_0x54e0c3['shift']());}catch(_0x4b9eb1){_0x54e0c3['push'](_0x54e0c3['shift']());}}}(_0x29fa,0x5ce08),Object[_0x4fde36(0x319)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0xe321b8){const _0x2c3b45=_0x4fde36;switch(_0xe321b8){case t[_0x2c3b45(0x45c)]['OFFLINE']:return{'icon':(0x0,l['jsx'])(s['OffLineIcon'],{}),'colorClass':_0x2c3b45(0x290),'i18nKey':_0x2c3b45(0x3e0),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x2c3b45(0x17d)};case t[_0x2c3b45(0x45c)]['CONFLICT']:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s[_0x2c3b45(0x42b)],{}),'colorClass':'univer-text-orange-500','i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x2c3b45(0x17d)};case t['CollaborationStatus'][_0x2c3b45(0x247)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s['LoadingMultiIcon'],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':_0x2c3b45(0x3b9),'clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t['CollaborationStatus'][_0x2c3b45(0x2eb)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s[_0x2c3b45(0x1ca)],{}),'colorClass':_0x2c3b45(0x373),'i18nKey':_0x2c3b45(0x2e3),'clickable':!0x1,'indicator':_0x2c3b45(0x17d)};case t[_0x2c3b45(0x45c)]['AWAITING']:case t['CollaborationStatus'][_0x2c3b45(0x2a0)]:return{'icon':(0x0,l[_0x2c3b45(0x307)])(s['LoadingMultiIcon'],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t[_0x2c3b45(0x45c)][_0x2c3b45(0x2c7)]:return{'icon':(0x0,l['jsx'])(s[_0x2c3b45(0x444)],{}),'colorClass':_0x2c3b45(0x200),'i18nKey':_0x2c3b45(0x268),'clickable':!0x1,'indicator':_0x2c3b45(0x311)};case t[_0x2c3b45(0x45c)][_0x2c3b45(0x3cd)]:return{'icon':(0x0,l['jsx'])(s[_0x2c3b45(0x1ca)],{}),'colorClass':_0x2c3b45(0x364),'i18nKey':_0x2c3b45(0x228),'clickable':!0x1,'indicator':'static'};}}function ne(_0x48b84a){const _0xb04f30=_0x4fde36;let {status$:_0x1f0c1f}=_0x48b84a,_0x33803b=(0x0,r[_0xb04f30(0x2be)])(_0x1f0c1f,t[_0xb04f30(0x45c)][_0xb04f30(0x2eb)]),_0x4eeadb=(0x0,r[_0xb04f30(0x443)])(n[_0xb04f30(0x1da)]),_0x2949d4=(0x0,r[_0xb04f30(0x443)])(t[_0xb04f30(0x289)]),_0xbe5474=(0x0,c[_0xb04f30(0x279)])(()=>te(_0x33803b),[_0x33803b]),_0x2e99f5=_0x33803b!==t['CollaborationStatus'][_0xb04f30(0x471)],_0x1a3b02=_0x4eeadb['t'](_0xbe5474['i18nKey']),_0x16a572=_0xbe5474[_0xb04f30(0x2da)]?_0x4eeadb['t'](_0xbe5474[_0xb04f30(0x2da)]):_0x1a3b02,_0x2bb6f3=(0x0,c[_0xb04f30(0x3c8)])(()=>{const _0x41a8a7=_0xb04f30;_0x2e99f5||_0x2949d4[_0x41a8a7(0x335)]();},[_0x2e99f5,_0x2949d4]),_0x49a622=(0x0,c[_0xb04f30(0x3c8)])(_0x3c2c67=>{const _0x3db5ac=_0xb04f30;!_0x2e99f5&&(_0x3c2c67['key']===_0x3db5ac(0x219)||_0x3c2c67[_0x3db5ac(0x377)]==='\x20')&&(_0x3c2c67[_0x3db5ac(0x458)](),_0x2949d4[_0x3db5ac(0x335)]());},[_0x2e99f5,_0x2949d4]),_0x3c669c=(0x0,l[_0xb04f30(0x307)])('span',{'className':(0x0,o[_0xb04f30(0x454)])(_0xb04f30(0x316),_0xb04f30(0x35b),_0xbe5474[_0xb04f30(0x2dd)],{'univer-animate-spin':_0xbe5474['indicator']===_0xb04f30(0x311),'univer-animate-pulse':_0xbe5474['indicator']===_0xb04f30(0x2b0)}),'aria-hidden':_0xb04f30(0x418),'children':_0xbe5474['icon']}),_0x3c2d5b=(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x303),{'className':(0x0,o[_0xb04f30(0x454)])(_0xb04f30(0x316),_0xb04f30(0x170),_0xb04f30(0x1f6),_0xb04f30(0x2a6),_0xb04f30(0x173),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0xbe5474[_0xb04f30(0x169)],'univer-cursor-default':!_0xbe5474[_0xb04f30(0x169)]}),'children':_0x3c669c});return _0xbe5474[_0xb04f30(0x169)]?(0x0,l['jsx'])(o[_0xb04f30(0x365)],{'title':_0x16a572,'placement':_0xb04f30(0x348),'children':(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x2b6),{'type':_0xb04f30(0x2b6),'onClick':_0x2bb6f3,'onKeyDown':_0x49a622,'className':(0x0,o[_0xb04f30(0x454)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0xb04f30(0x229),'univer-m-0\x20univer-p-0',_0xb04f30(0x274)),'aria-label':_0x1a3b02+'\x20-\x20'+_0x16a572,'role':_0xb04f30(0x32f),'aria-live':_0xb04f30(0x306),'aria-atomic':_0xb04f30(0x418),'children':_0x3c2d5b})}):(0x0,l[_0xb04f30(0x307)])(o['Tooltip'],{'title':_0x16a572,'placement':_0xb04f30(0x348),'children':(0x0,l[_0xb04f30(0x307)])(_0xb04f30(0x3b8),{'className':(0x0,o[_0xb04f30(0x454)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x1a3b02,'role':'status','aria-live':_0xb04f30(0x306),'aria-atomic':_0xb04f30(0x418),'children':_0x3c2d5b})});}function b(_0x3353e5){'@babel/helpers - typeof';return b=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5e6711){return typeof _0x5e6711;}:function(_0x21d9d8){const _0x29e23d=_0x4dee;return _0x21d9d8&&typeof Symbol=='function'&&_0x21d9d8[_0x29e23d(0x42d)]===Symbol&&_0x21d9d8!==Symbol[_0x29e23d(0x321)]?_0x29e23d(0x341):typeof _0x21d9d8;},b(_0x3353e5);}function re(_0x482aea,_0x392218){const _0x5bd06e=_0x4fde36;if(b(_0x482aea)!='object'||!_0x482aea)return _0x482aea;var _0x1eefdc=_0x482aea[Symbol[_0x5bd06e(0x1fb)]];if(_0x1eefdc!==void 0x0){var _0x5a1942=_0x1eefdc['call'](_0x482aea,_0x392218||_0x5bd06e(0x468));if(b(_0x5a1942)!=_0x5bd06e(0x17a))return _0x5a1942;throw TypeError(_0x5bd06e(0x220));}return(_0x392218===_0x5bd06e(0x189)?String:Number)(_0x482aea);}function ie(_0x5d8f8c){const _0x466e96=_0x4fde36;var _0x1fc17b=re(_0x5d8f8c,_0x466e96(0x189));return b(_0x1fc17b)==_0x466e96(0x341)?_0x1fc17b:_0x1fc17b+'';}function x(_0xb45240,_0x43a720,_0x3a244e){const _0x36936d=_0x4fde36;return(_0x43a720=ie(_0x43a720))in _0xb45240?Object[_0x36936d(0x319)](_0xb45240,_0x43a720,{'value':_0x3a244e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb45240[_0x43a720]=_0x3a244e,_0xb45240;}function S(_0xdf52a8,_0x1f5cb8){return function(_0xb9d054,_0x3180e3){_0x1f5cb8(_0xb9d054,_0x3180e3,_0xdf52a8);};}function C(_0x668edf,_0x5d3dbc,_0x4bef8f,_0x46007a){const _0x113801=_0x4fde36;var _0x513441=arguments['length'],_0x7035bf=_0x513441<0x3?_0x5d3dbc:_0x46007a===null?_0x46007a=Object[_0x113801(0x20e)](_0x5d3dbc,_0x4bef8f):_0x46007a,_0x29d278;if(typeof Reflect==_0x113801(0x17a)&&typeof Reflect[_0x113801(0x31f)]=='function')_0x7035bf=Reflect['decorate'](_0x668edf,_0x5d3dbc,_0x4bef8f,_0x46007a);else{for(var _0x4d85f0=_0x668edf['length']-0x1;_0x4d85f0>=0x0;_0x4d85f0--)(_0x29d278=_0x668edf[_0x4d85f0])&&(_0x7035bf=(_0x513441<0x3?_0x29d278(_0x7035bf):_0x513441>0x3?_0x29d278(_0x5d3dbc,_0x4bef8f,_0x7035bf):_0x29d278(_0x5d3dbc,_0x4bef8f))||_0x7035bf);}return _0x513441>0x3&&_0x7035bf&&Object[_0x113801(0x319)](_0x5d3dbc,_0x4bef8f,_0x7035bf),_0x7035bf;}let w=class extends n[_0x4fde36(0x231)]{constructor(_0x5ac1cb,_0x6cc6d4,_0x2dfc3c,_0x36ca2b){const _0x2d9522=_0x4fde36;super(),this['_univerInstanceService']=_0x5ac1cb,this['_injector']=_0x6cc6d4,this[_0x2d9522(0x25c)]=_0x2dfc3c,this['_uiPartsService']=_0x36ca2b,x(this,_0x2d9522(0x2b2),new i[(_0x2d9522(0x299))](t[_0x2d9522(0x45c)][_0x2d9522(0x2eb)])),this['_initStatusComponent'](),this[_0x2d9522(0x281)]();}[_0x4fde36(0x281)](){const _0x3130ca=_0x4fde36;this[_0x3130ca(0x32d)]((0x0,i['merge'])(this[_0x3130ca(0x47b)][_0x3130ca(0x187)],this['_univerInstanceService'][_0x3130ca(0x474)](n[_0x3130ca(0x272)][_0x3130ca(0x370)]),this['_univerInstanceService'][_0x3130ca(0x474)](n[_0x3130ca(0x272)][_0x3130ca(0x47d)]))['pipe']((0x0,a['map'])(()=>ae(this[_0x3130ca(0x47b)])),(0x0,a[_0x3130ca(0x264)])(),(0x0,i['switchMap'])(_0x352598=>_0x352598?this['_collaborationController'][_0x3130ca(0x45d)](_0x352598):(0x0,i['of'])(null)),(0x0,i['switchMap'])(_0x4cb2cb=>_0x4cb2cb?_0x4cb2cb[_0x3130ca(0x2d8)]:(0x0,i['of'])(t[_0x3130ca(0x45c)][_0x3130ca(0x2eb)])))[_0x3130ca(0x18e)](_0x3679e9=>{this['_status$']['next'](_0x3679e9);}));}[_0x4fde36(0x33f)](){const _0x28941f=_0x4fde36;this['disposeWithMe'](this[_0x28941f(0x2c1)][_0x28941f(0x29f)](r[_0x28941f(0x3c0)][_0x28941f(0x27e)],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x28941f(0x2b2)][_0x28941f(0x45f)]()}),this['_injector'])));}};w=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n['Inject'])(t['CollaborationController'])),S(0x3,r[_0x4fde36(0x25e)])],w);let T=class extends n[_0x4fde36(0x231)]{constructor(_0x28cd38,_0x5eaa0d,_0x4f71d0,_0x4f8a77){const _0x296918=_0x4fde36;super(),this['_univerInstanceService']=_0x28cd38,this[_0x296918(0x1df)]=_0x5eaa0d,this[_0x296918(0x25c)]=_0x4f71d0,this[_0x296918(0x2c1)]=_0x4f8a77,x(this,_0x296918(0x2b2),new i[(_0x296918(0x299))](t[_0x296918(0x45c)][_0x296918(0x2eb)])),this[_0x296918(0x33f)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x37b600=_0x4fde36;this['disposeWithMe']((0x0,i['merge'])((0x0,i['of'])(null),this[_0x37b600(0x47b)][_0x37b600(0x474)](n[_0x37b600(0x272)][_0x37b600(0x367)]))[_0x37b600(0x19f)]((0x0,a[_0x37b600(0x42a)])(()=>oe(this[_0x37b600(0x47b)])),(0x0,a[_0x37b600(0x264)])(),(0x0,i['switchMap'])(_0x396166=>_0x396166?this[_0x37b600(0x25c)][_0x37b600(0x45d)](_0x396166):(0x0,i['of'])(null)),(0x0,i[_0x37b600(0x3e5)])(_0x4fee13=>_0x4fee13?_0x4fee13[_0x37b600(0x2d8)]:(0x0,i['of'])(t[_0x37b600(0x45c)][_0x37b600(0x2eb)])))[_0x37b600(0x18e)](_0x1b8879=>{const _0x2fd0de=_0x37b600;this[_0x2fd0de(0x2b2)][_0x2fd0de(0x345)](_0x1b8879);}));}[_0x4fde36(0x33f)](){const _0x26d511=_0x4fde36;this[_0x26d511(0x32d)](this['_uiPartsService'][_0x26d511(0x29f)](e['BOARD_TOP_RIGHT_MENU_LEADING_PART'],()=>(0x0,r[_0x26d511(0x3f0)])(se({'status$':this[_0x26d511(0x2b2)][_0x26d511(0x45f)]()}),this[_0x26d511(0x1df)])));}};T=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x21d)])),S(0x3,r[_0x4fde36(0x25e)])],T);function ae(_0x409971){const _0xa65632=_0x4fde36;let _0x6487d6=_0x409971['getFocusedUnit'](),_0x4d0033=_0x6487d6==null?void 0x0:_0x6487d6[_0xa65632(0x448)]();if(_0x4d0033&&!(0x0,n[_0xa65632(0x331)])(_0x4d0033))return _0x4d0033;let _0x62e140=_0x409971[_0xa65632(0x470)](n[_0xa65632(0x272)][_0xa65632(0x370)]),_0x40059d=_0x62e140==null?void 0x0:_0x62e140[_0xa65632(0x448)]();if(_0x40059d&&!(0x0,n[_0xa65632(0x331)])(_0x40059d))return _0x40059d;let _0x274e70=_0x409971[_0xa65632(0x470)](n[_0xa65632(0x272)][_0xa65632(0x47d)]);if(_0x274e70)return _0x274e70[_0xa65632(0x448)]();let _0x70e507=_0x409971[_0xa65632(0x3af)](n[_0xa65632(0x272)][_0xa65632(0x370)])[_0xa65632(0x2de)](_0x51875d=>!(0x0,n[_0xa65632(0x331)])(_0x51875d[_0xa65632(0x448)]()));return _0x70e507?_0x70e507[_0xa65632(0x448)]():null;}function oe(_0x145bbb){const _0x25bd60=_0x4fde36;var _0x348db0;let _0x294878=_0x145bbb['getCurrentUnitOfType'](n[_0x25bd60(0x272)]['UNIVER_BOARD']);return(_0x348db0=_0x294878==null?void 0x0:_0x294878[_0x25bd60(0x448)]())==null?null:_0x348db0;}function se(_0x4d2e8f){let {status$:_0x2fe1e1}=_0x4d2e8f;return function(){return(0x0,l['jsx'])(ne,{'status$':_0x2fe1e1});};}var ce=_0x4fde36(0x409),le=_0x4fde36(0x36a);const ue={};let E=class extends n['RxDisposable']{constructor(_0x3191e5,_0x1b28e2){const _0x1fd5a5=_0x4fde36;super(),this[_0x1fd5a5(0x217)]=_0x3191e5,this[_0x1fd5a5(0x3a5)]=_0x1b28e2,this[_0x1fd5a5(0x392)]();}['_init'](){const _0xa9b96b=_0x4fde36;let _0x370a04=this;this[_0xa9b96b(0x32d)](this['_docClipboardService'][_0xa9b96b(0x3b4)]({'onBeforePasteImage':async _0x38c58f=>{const _0x1fbfc7=_0xa9b96b;let _0xaf667f=await _0x370a04[_0x1fbfc7(0x3a5)][_0x1fbfc7(0x32b)](_0x38c58f);return _0xaf667f?{'source':_0xaf667f[_0x1fbfc7(0x236)],'imageSourceType':_0xaf667f[_0x1fbfc7(0x36f)]}:null;}}));}};E=C([S(0x0,f['IDocClipboardService']),S(0x1,n[_0x4fde36(0x3ed)])],E);function de(_0x2dcb24,_0x4bfe8f){const _0x7a143f=_0x4fde36;_0x2dcb24['save'](),_0x2dcb24[_0x7a143f(0x275)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x57e0c5=_0x2dcb24[_0x7a143f(0x1d1)](_0x4bfe8f)[_0x7a143f(0x395)];return _0x2dcb24['restore'](),Math['min'](_0x57e0c5+0x8,0xc8);}function fe(_0x4aeff2,_0x191fe2){const _0x35cc0f=_0x4fde36;var _0xc11079,_0x548e42,_0x153d60;let {radius:_0x3a2255,width:_0x29fd22,height:_0xa27f68}=_0x191fe2;_0x3a2255=(_0xc11079=_0x3a2255)==null?0x0:_0xc11079,_0x29fd22=(_0x548e42=_0x29fd22)==null?0x1e:_0x548e42,_0xa27f68=(_0x153d60=_0xa27f68)==null?0x1e:_0x153d60;let _0x40d8b8=0x0,_0x3b41c7=0x0,_0x130eb3=0x0;_0x40d8b8=_0x3b41c7=_0x130eb3=Math[_0x35cc0f(0x18d)](_0x3a2255,_0x29fd22/0x2,_0xa27f68/0x2),_0x4aeff2[_0x35cc0f(0x442)](),_0x4aeff2[_0x35cc0f(0x43e)](_0x40d8b8,0x0),_0x4aeff2[_0x35cc0f(0x28e)](_0x29fd22-_0x3b41c7,0x0),_0x4aeff2[_0x35cc0f(0x479)](_0x29fd22-_0x3b41c7,_0x3b41c7,_0x3b41c7,Math['PI']*0x3/0x2,0x0,!0x1),_0x4aeff2[_0x35cc0f(0x28e)](_0x29fd22,_0xa27f68-_0x130eb3),_0x4aeff2[_0x35cc0f(0x479)](_0x29fd22-_0x130eb3,_0xa27f68-_0x130eb3,_0x130eb3,0x0,Math['PI']/0x2,!0x1),_0x4aeff2['lineTo'](0x0,_0xa27f68),_0x4aeff2[_0x35cc0f(0x28e)](0x0,_0x40d8b8),_0x4aeff2['arc'](_0x40d8b8,_0x40d8b8,_0x40d8b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4aeff2[_0x35cc0f(0x3f5)](),_0x191fe2['fill']&&(_0x4aeff2[_0x35cc0f(0x277)](),_0x4aeff2[_0x35cc0f(0x2ac)]=_0x191fe2[_0x35cc0f(0x3cc)],_0x191fe2[_0x35cc0f(0x1cc)]===_0x35cc0f(0x2e4)?_0x4aeff2[_0x35cc0f(0x3cc)](_0x35cc0f(0x2e4)):_0x4aeff2[_0x35cc0f(0x3cc)](),_0x4aeff2[_0x35cc0f(0x396)]());}var D=class e extends u[_0x4fde36(0x3d2)]{constructor(_0x51e2ea,_0x237756){const _0x564ec7=_0x4fde36;super(_0x51e2ea,_0x237756),x(this,_0x564ec7(0x403),void 0x0),x(this,_0x564ec7(0x3de),void 0x0),this[_0x564ec7(0x403)]=_0x237756==null?void 0x0:_0x237756[_0x564ec7(0x403)],this['text']=_0x237756==null?void 0x0:_0x237756[_0x564ec7(0x3de)];}static['drawWith'](_0x143dcf,_0x1a83eb){const _0x2f78d9=_0x4fde36;let {text:_0x25d92e,color:_0x380c8a}=_0x1a83eb;_0x143dcf[_0x2f78d9(0x277)](),_0x143dcf[_0x2f78d9(0x275)]=_0x2f78d9(0x1cf);let _0x45918e=_0x143dcf[_0x2f78d9(0x1d1)](_0x25d92e)[_0x2f78d9(0x395)];if(fe(_0x143dcf,{'height':0x14,'radius':0x4,'width':de(_0x143dcf,_0x25d92e),'fill':_0x380c8a,'evented':!0x1}),_0x143dcf[_0x2f78d9(0x2ac)]=_0x2f78d9(0x401),_0x45918e>0xc0){let _0x32dd01='',_0x268276=0x0;for(let _0x288cdd of _0x25d92e){let _0x2abfca=_0x143dcf[_0x2f78d9(0x1d1)](_0x288cdd)[_0x2f78d9(0x395)];if(_0x268276+_0x2abfca<=0xc0-_0x143dcf['measureText'](_0x2f78d9(0x34a))['width'])_0x32dd01+=_0x288cdd,_0x268276+=_0x2abfca;else{_0x32dd01+=_0x2f78d9(0x34a);break;}}_0x143dcf[_0x2f78d9(0x190)](_0x32dd01,0x4,0xf);}else _0x143dcf[_0x2f78d9(0x190)](_0x25d92e,0x4,0xf);_0x143dcf[_0x2f78d9(0x396)]();}[_0x4fde36(0x3d9)](_0x276bbd){const _0x15d451=_0x4fde36;e[_0x15d451(0x2c9)](_0x276bbd,this);}};const O=0x138a;var pe=class extends u[_0x4fde36(0x3d2)]{constructor(_0x9e27c2,_0x15abdc){const _0x45c661=_0x4fde36;super(_0x9e27c2,{..._0x15abdc,'evented':!0x1}),x(this,_0x45c661(0x20c),'#4f46e5'),x(this,_0x45c661(0x215),''),x(this,_0x45c661(0x291),!0x0),_0x15abdc&&this['setShapeProps'](_0x15abdc);}[_0x4fde36(0x1be)](_0x51d9eb){const _0x4b2fc6=_0x4fde36;var _0x512528,_0x13eaca,_0x1af94f,_0x46e1b5,_0x2b56e2,_0xd567fa,_0x5e051e,_0x21d748;this[_0x4b2fc6(0x20c)]=(_0x512528=_0x51d9eb[_0x4b2fc6(0x403)])==null?this[_0x4b2fc6(0x20c)]:_0x512528,this[_0x4b2fc6(0x215)]=(_0x13eaca=_0x51d9eb['name'])==null?this[_0x4b2fc6(0x215)]:_0x13eaca,this[_0x4b2fc6(0x291)]=(_0x1af94f=_0x51d9eb['showText'])==null?this[_0x4b2fc6(0x291)]:_0x1af94f,this[_0x4b2fc6(0x30b)]=!0x1,this[_0x4b2fc6(0x460)]({'left':(_0x46e1b5=_0x51d9eb[_0x4b2fc6(0x3b6)])==null?this['left']:_0x46e1b5,'top':(_0x2b56e2=_0x51d9eb[_0x4b2fc6(0x2e1)])==null?this[_0x4b2fc6(0x2e1)]:_0x2b56e2,'width':(_0xd567fa=_0x51d9eb[_0x4b2fc6(0x395)])==null?this[_0x4b2fc6(0x395)]:_0xd567fa,'height':(_0x5e051e=_0x51d9eb[_0x4b2fc6(0x380)])==null?this[_0x4b2fc6(0x380)]:_0x5e051e,'angle':(_0x21d748=_0x51d9eb[_0x4b2fc6(0x244)])==null?this[_0x4b2fc6(0x244)]:_0x21d748});}[_0x4fde36(0x3d9)](_0x130a88){const _0x58007f=_0x4fde36;_0x130a88['save'](),_0x130a88[_0x58007f(0x302)]=this[_0x58007f(0x20c)],_0x130a88[_0x58007f(0x359)]=this[_0x58007f(0x27b)]||1.5,_0x130a88['setLineDash']([0x6,0x4]),_0x130a88[_0x58007f(0x393)](0x0,0x0,this[_0x58007f(0x395)],this[_0x58007f(0x380)]),_0x130a88['restore'](),this['_showText']&&(_0x130a88[_0x58007f(0x277)](),_0x130a88[_0x58007f(0x39f)](0x1,0x0,0x0,0x1,this['width'],-0x14),D[_0x58007f(0x2c9)](_0x130a88,{'text':this['_name'],'color':this[_0x58007f(0x20c)]}),_0x130a88[_0x58007f(0x396)]());}};const me=[_0x4fde36(0x22d),_0x4fde36(0x1bf),_0x4fde36(0x435),_0x4fde36(0x440),_0x4fde36(0x262),_0x4fde36(0x1f2)];var k=class extends n[_0x4fde36(0x231)]{constructor(..._0x4331ee){const _0x54c260=_0x4fde36;super(..._0x4331ee),x(this,'_assignedColors',new Map()),x(this,_0x54c260(0x2ae),0x0);}[_0x4fde36(0x284)](_0x3adf54){const _0x54cca5=_0x4fde36;if(this[_0x54cca5(0x288)][_0x54cca5(0x24d)](_0x3adf54))return this[_0x54cca5(0x288)][_0x54cca5(0x3bd)](_0x3adf54);let _0x44040b=me[this[_0x54cca5(0x2ae)]];return this[_0x54cca5(0x2ae)]=(this[_0x54cca5(0x2ae)]+0x1)%me['length'],this[_0x54cca5(0x288)]['set'](_0x3adf54,_0x44040b),_0x44040b;}};function he(_0x5bf4ad){const _0x1ab331=_0x4fde36;let _0x35e550;try{_0x35e550=JSON[_0x1ab331(0x3a1)](_0x5bf4ad);}catch{return null;}if(typeof _0x35e550!=_0x1ab331(0x17a)||!_0x35e550)return null;let _0x22aac7=_0x35e550;if(_0x22aac7[_0x1ab331(0x351)]!=='board-element-selection'||typeof _0x22aac7['unitId']!=_0x1ab331(0x189)||typeof _0x22aac7[_0x1ab331(0x21c)]!=_0x1ab331(0x189))return null;let _0x52e522=Array[_0x1ab331(0x343)](_0x22aac7['selectedIds'])?_0x22aac7[_0x1ab331(0x38f)][_0x1ab331(0x381)](_0x197d5c=>typeof _0x197d5c==_0x1ab331(0x189)):[],_0x7a32bd=typeof _0x22aac7['focusedId']==_0x1ab331(0x189)?_0x22aac7[_0x1ab331(0x178)]:null;return{'kind':_0x1ab331(0x203),'unitId':_0x22aac7[_0x1ab331(0x1e9)],'subUnitId':_0x22aac7[_0x1ab331(0x21c)],'selectedIds':_0x52e522,'focusedId':_0x7a32bd};}let A=class extends n[_0x4fde36(0x18c)]{get[_0x4fde36(0x23c)](){const _0x5169af=_0x4fde36;return this[_0x5169af(0x1ab)]['getValue']();}get[_0x4fde36(0x1d2)](){const _0x340853=_0x4fde36;return this[_0x340853(0x1d8)][_0x340853(0x1ec)]();}constructor(_0x11c0b6,_0x2bc115,_0x2909e4,_0x19e816,_0x5f21ae){const _0x31755e=_0x4fde36;super(),this[_0x31755e(0x478)]=_0x11c0b6,this[_0x31755e(0x1a2)]=_0x2bc115,this[_0x31755e(0x2fc)]=_0x2909e4,this[_0x31755e(0x36b)]=_0x19e816,this[_0x31755e(0x2a7)]=_0x5f21ae,x(this,'_online',!0x1),x(this,_0x31755e(0x392),!0x1),x(this,_0x31755e(0x1ab),new i[(_0x31755e(0x299))](new Map())),x(this,'cursorInfo$',this[_0x31755e(0x1ab)][_0x31755e(0x45f)]()),x(this,_0x31755e(0x1d8),new i['BehaviorSubject']([])),x(this,_0x31755e(0x280),this[_0x31755e(0x1d8)][_0x31755e(0x19f)]((0x0,i[_0x31755e(0x3c6)])(0x12c))),x(this,_0x31755e(0x2c0),(0x0,n[_0x31755e(0x2bb)])(_0x32c17b=>{const _0x1ffc68=_0x31755e;let _0x248226=_0x32c17b[_0x1ffc68(0x1a5)];if(!_0x248226||_0x248226[_0x1ffc68(0x1e9)]!==this[_0x1ffc68(0x478)])return;let _0x20579d={'kind':_0x1ffc68(0x203),'unitId':_0x248226[_0x1ffc68(0x1e9)],'subUnitId':_0x248226[_0x1ffc68(0x21c)],'selectedIds':_0x32c17b['selectedIds'][_0x1ffc68(0x381)](_0x28ea5f=>typeof _0x28ea5f==_0x1ffc68(0x189)),'focusedId':_0x32c17b[_0x1ffc68(0x178)]},_0x6beea4={'eventID':p[_0x1ffc68(0x426)][_0x1ffc68(0x1a1)],'data':{'unitID':this[_0x1ffc68(0x478)],'memberID':this[_0x1ffc68(0x1a2)]['getMemberID'](),'selection':JSON[_0x1ffc68(0x1e5)](_0x20579d)}};this[_0x1ffc68(0x1a2)][_0x1ffc68(0x1e0)](_0x6beea4,this[_0x1ffc68(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x25ace8=_0x4fde36;super[_0x25ace8(0x295)](),this['_cursorInfo$'][_0x25ace8(0x345)](new Map()),this['_cursorInfo$']['complete'](),this[_0x25ace8(0x1d8)][_0x25ace8(0x345)]([]),this[_0x25ace8(0x1d8)][_0x25ace8(0x20b)]();}[_0x4fde36(0x3e9)](){const _0x399fbe=_0x4fde36;this[_0x399fbe(0x392)]||(this['_init']=!0x0,this[_0x399fbe(0x1a2)][_0x399fbe(0x1b9)]['pipe']((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))['subscribe'](_0x5657ca=>{const _0x1d4ccf=_0x399fbe;_0x5657ca===t[_0x1d4ccf(0x42c)][_0x1d4ccf(0x31d)]?this['_toggleOnline']():this[_0x1d4ccf(0x181)]();}),this['_session']['event$'][_0x399fbe(0x19f)]((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))['subscribe'](_0x2add5e=>{const _0x113546=_0x399fbe;let _0x508dc3=_0x2add5e[_0x113546(0x16f)];_0x508dc3===p[_0x113546(0x426)][_0x113546(0x1a1)]&&this[_0x113546(0x3f7)](_0x2add5e),_0x508dc3===p[_0x113546(0x426)][_0x113546(0x31b)]&&this[_0x113546(0x47e)](_0x2add5e);}),this['_boardElementStateService'][_0x399fbe(0x225)][_0x399fbe(0x19f)]((0x0,i[_0x399fbe(0x328)])(this[_0x399fbe(0x2d2)]))[_0x399fbe(0x18e)](_0x24688f=>{const _0x4abb9e=_0x399fbe;this[_0x4abb9e(0x26b)]&&this[_0x4abb9e(0x2c0)](_0x24688f);}));}[_0x4fde36(0x3f7)](_0x4862b0){const _0xd7b2=_0x4fde36;var _0x34e9ca,_0x5261dd,_0x46c316,_0xa625b;let {memberID:_0xa87def,selection:_0xe4845e}=_0x4862b0[_0xd7b2(0x176)];if(_0xa87def===((_0x34e9ca=(_0x5261dd=this[_0xd7b2(0x1a2)])[_0xd7b2(0x356)])==null?void 0x0:_0x34e9ca[_0xd7b2(0x1bd)](_0x5261dd)))return;let _0x150de8=he(_0xe4845e);if(!_0x150de8||_0x150de8[_0xd7b2(0x1e9)]!==this[_0xd7b2(0x478)])return;let _0x52364b=(_0x46c316=(_0xa625b=this[_0xd7b2(0x36b)]['getMember'](this['unitID'],_0xa87def))==null?void 0x0:_0xa625b[_0xd7b2(0x1d4)])==null?'Unknown\x20user':_0x46c316,_0x3db213={'color':this[_0xd7b2(0x2fc)][_0xd7b2(0x284)](_0xa87def),'name':_0x52364b,'unitId':_0x150de8[_0xd7b2(0x1e9)],'subUnitId':_0x150de8[_0xd7b2(0x21c)],'selectedIds':_0x150de8['selectedIds'],'focusedId':_0x150de8[_0xd7b2(0x178)],'selection':_0xe4845e},_0x22b366=new Map(this[_0xd7b2(0x23c)]);_0x22b366[_0xd7b2(0x1a4)](_0xa87def,_0x3db213),this['_cursorInfo$'][_0xd7b2(0x345)](_0x22b366);}[_0x4fde36(0x47e)](_0x550142){const _0x380a65=_0x4fde36;let {memberID:_0x7f836e}=_0x550142[_0x380a65(0x176)],_0x3db312=new Map(this['cursorInfo']);_0x3db312[_0x380a65(0x3a7)](_0x7f836e),this[_0x380a65(0x1ab)][_0x380a65(0x345)](_0x3db312);}[_0x4fde36(0x445)](){const _0x35461f=_0x4fde36;this['_online']=!0x0,this[_0x35461f(0x2c0)](this[_0x35461f(0x2a7)][_0x35461f(0x1fc)]());}['_toggleOffline'](){this['_online']=!0x1;}};A=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x3,(0x0,n['Inject'])(t[_0x4fde36(0x405)])),S(0x4,(0x0,n['Inject'])(e[_0x4fde36(0x41c)]))],A);function ge(_0x5b7df4){let _0x4c5d71='';for(let _0x2f0052 of _0x5b7df4){let {startOffset:_0x4104bf,endOffset:_0x2e8d02,isActive:_0x2f8fad,rangeType:_0x1a67bd,segmentId:_0x2cb198,segmentPage:_0x5707af}=_0x2f0052;_0x4c5d71['length']&&(_0x4c5d71+=','),_0x4c5d71+=_0x4104bf+':'+_0x2e8d02+':'+(_0x2f8fad?'1':'0')+':'+_0x1a67bd+':'+_0x2cb198+':'+_0x5707af;}return _0x4c5d71;}function _e(_0x1b30d8){const _0x197fc3=_0x4fde36;let _0x362db1=_0x1b30d8[_0x197fc3(0x44b)](','),_0x15b75f=[];for(let _0x486ce5 of _0x362db1){let [_0x382775,_0x4ed35a,_0x5ef0dc,_0x26d62a,_0x20f521,_0x144fab]=_0x486ce5['split'](':');_0x15b75f[_0x197fc3(0x2e8)]({'startOffset':Number(_0x382775),'endOffset':Number(_0x4ed35a),'collapsed':_0x382775===_0x4ed35a,'isActive':_0x5ef0dc==='1','rangeType':_0x26d62a===n[_0x197fc3(0x45a)][_0x197fc3(0x3aa)]?n[_0x197fc3(0x45a)]['TEXT']:n[_0x197fc3(0x45a)][_0x197fc3(0x252)],'segmentId':typeof _0x20f521=='string'?String(_0x20f521):'','segmentPage':Number(_0x144fab==null?-0x1:_0x144fab)});}return _0x15b75f[_0x197fc3(0x237)](_0x5861cf=>_0x5861cf['isActive'])||(_0x15b75f[0x0][_0x197fc3(0x369)]=!0x0),_0x15b75f;}var j=class extends n[_0x4fde36(0x18c)]{constructor(..._0x4e66b5){const _0x30033c=_0x4fde36;super(..._0x4e66b5),x(this,_0x30033c(0x3d0),new i['BehaviorSubject'](null)),x(this,_0x30033c(0x253),this[_0x30033c(0x3d0)][_0x30033c(0x45f)]());}[_0x4fde36(0x40b)](_0x586101){const _0x2ce2ca=_0x4fde36;let {unitID:_0x3bfd0a,memberID:_0x415d4f,textRanges:_0x164237}=_0x586101,_0x479b03=ge(_0x164237);if(_0x479b03==='')return;let _0x25e47f={'unitID':_0x3bfd0a,'memberID':_0x415d4f,'selection':_0x479b03};this['_collabCursorState$'][_0x2ce2ca(0x345)](_0x25e47f);}};let M=class extends n['RxDisposable']{get['cursorInfo'](){const _0xc47d37=_0x4fde36;return this[_0xc47d37(0x1ab)][_0xc47d37(0x1ec)]();}get[_0x4fde36(0x1d2)](){const _0x575f77=_0x4fde36;return this[_0x575f77(0x1d8)][_0x575f77(0x1ec)]();}constructor(_0x496943,_0x9e53d7,_0x3b5001,_0x400dfb,_0x3df1e7,_0x124b57,_0x10be2a,_0x534c37,_0xdd297){const _0x57147f=_0x4fde36;super(),this[_0x57147f(0x478)]=_0x496943,this[_0x57147f(0x1a2)]=_0x9e53d7,this[_0x57147f(0x1df)]=_0x3b5001,this[_0x57147f(0x2fc)]=_0x400dfb,this['_memberService']=_0x3df1e7,this[_0x57147f(0x1d5)]=_0x124b57,this['_transformService']=_0x10be2a,this['_univerInstanceService']=_0x534c37,this['_commandService']=_0xdd297,x(this,_0x57147f(0x26b),!0x1),x(this,_0x57147f(0x392),!0x1),x(this,_0x57147f(0x1ab),new i[(_0x57147f(0x299))](new Map())),x(this,_0x57147f(0x259),this[_0x57147f(0x1ab)][_0x57147f(0x45f)]()),x(this,_0x57147f(0x1d8),new i[(_0x57147f(0x299))]([])),x(this,_0x57147f(0x280),this[_0x57147f(0x1d8)][_0x57147f(0x19f)]((0x0,i[_0x57147f(0x3c6)])(0x12c))),x(this,_0x57147f(0x2c0),(0x0,n['debounce'])(_0x55c23c=>{const _0x43013c=_0x57147f;let _0xe68162={'eventID':p[_0x43013c(0x426)][_0x43013c(0x1a1)],'data':{'unitID':this[_0x43013c(0x478)],'memberID':this[_0x43013c(0x1a2)][_0x43013c(0x356)](),'selection':ge(_0x55c23c)}};this[_0x43013c(0x1a2)][_0x43013c(0x1e0)](_0xe68162,this[_0x43013c(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x36be38=_0x4fde36;super['dispose'](),this['_cursorInfo$'][_0x36be38(0x345)](new Map()),this[_0x36be38(0x1ab)][_0x36be38(0x20b)](),this[_0x36be38(0x1d8)][_0x36be38(0x345)]([]),this[_0x36be38(0x1d8)][_0x36be38(0x20b)]();}[_0x4fde36(0x3e9)](){const _0x591b37=_0x4fde36;this[_0x591b37(0x392)]||(this[_0x591b37(0x392)]=!0x0,this[_0x591b37(0x1a2)]['sessionStatus$'][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x5c74f4=>{const _0x260cb2=_0x591b37;_0x5c74f4===t[_0x260cb2(0x42c)][_0x260cb2(0x31d)]?this[_0x260cb2(0x445)]():this[_0x260cb2(0x181)]();}),this[_0x591b37(0x1a2)][_0x591b37(0x41a)][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x52c8e2=>{const _0x1e4003=_0x591b37;let _0x19041b=_0x52c8e2[_0x1e4003(0x16f)];_0x19041b===p[_0x1e4003(0x426)][_0x1e4003(0x1a1)]&&this[_0x1e4003(0x3f7)](_0x52c8e2),_0x19041b===p[_0x1e4003(0x426)][_0x1e4003(0x31b)]&&this[_0x1e4003(0x47e)](_0x52c8e2);}),this[_0x591b37(0x32d)](this[_0x591b37(0x3fa)]['onCommandExecuted'](_0x43097a=>{const _0x3b2fb2=_0x591b37;let _0x3bb880=_0x43097a['params'];_0x3bb880!=null&&this['_online']&&_0x43097a['id']===m[_0x3b2fb2(0x1b2)]['id']&&_0x3bb880[_0x3b2fb2(0x1e9)]===this[_0x3b2fb2(0x478)]&&_0x3bb880['isEditing']===!0x1&&_0x3bb880[_0x3b2fb2(0x327)][_0x3b2fb2(0x2ee)]>0x0&&this[_0x3b2fb2(0x2c0)](_0x3bb880[_0x3b2fb2(0x327)]);})),this[_0x591b37(0x1d5)][_0x591b37(0x253)][_0x591b37(0x19f)]((0x0,i[_0x591b37(0x328)])(this[_0x591b37(0x2d2)]))[_0x591b37(0x18e)](_0x5f1512=>{const _0x5604bc=_0x591b37;if((_0x5f1512==null?void 0x0:_0x5f1512[_0x5604bc(0x478)])!==this[_0x5604bc(0x478)])return;let _0x4c63ba={'eventID':p[_0x5604bc(0x426)][_0x5604bc(0x1a1)],'data':_0x5f1512};this['_onCursorUpdate'](_0x4c63ba);}),this[_0x591b37(0x32d)](this[_0x591b37(0x3fa)][_0x591b37(0x376)](_0x1feab9=>{const _0x402e21=_0x591b37;if(_0x1feab9[_0x402e21(0x198)]==null)return;let _0x3be5cd=_0x1feab9[_0x402e21(0x198)];if(_0x1feab9['id']!==m['RichTextEditingMutation']['id']||_0x3be5cd[_0x402e21(0x1e9)]!==this[_0x402e21(0x478)])return;let _0x5a62c9={'id':'doc.mutation.rich-text-editing','params':_0x3be5cd},_0x1b3a80=this['cursorInfo'];for(let [_0x1aeed5,_0x229ca7]of _0x1b3a80){let _0x520033={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x229ca7[_0x402e21(0x327)]}},_0x55c158=this[_0x402e21(0x251)][_0x402e21(0x36e)](_0x5a62c9,_0x520033,!0x1);if((0x0,p[_0x402e21(0x3b7)])(_0x55c158))throw _0x55c158['error'];_0x1b3a80[_0x402e21(0x1a4)](_0x1aeed5,{..._0x229ca7,'ranges':_0x55c158[_0x402e21(0x22c)][_0x402e21(0x198)]['textRanges']});}queueMicrotask(()=>{const _0x325857=_0x402e21;this[_0x325857(0x1ab)][_0x325857(0x345)](_0x1b3a80);});})));}[_0x4fde36(0x3f7)](_0x7909d7){const _0x4d9fb4=_0x4fde36;var _0x373d46,_0x300864;let {memberID:_0x13ed07,selection:_0x545a53}=_0x7909d7['data'],_0x6f777c=_e(_0x545a53),_0x312b71=(_0x373d46=(_0x300864=this[_0x4d9fb4(0x36b)][_0x4d9fb4(0x1ba)](this[_0x4d9fb4(0x478)],_0x13ed07))==null?void 0x0:_0x300864[_0x4d9fb4(0x1d4)])==null?_0x4d9fb4(0x239):_0x373d46,_0x51ccbb={'color':this[_0x4d9fb4(0x2fc)][_0x4d9fb4(0x284)](_0x13ed07),'name':_0x312b71,'ranges':_0x6f777c},_0x175adf=this[_0x4d9fb4(0x23c)];_0x175adf[_0x4d9fb4(0x1a4)](_0x13ed07,_0x51ccbb),this[_0x4d9fb4(0x1ab)][_0x4d9fb4(0x345)](_0x175adf);}['_onCursorDelete'](_0x22ac70){const _0x1ba1aa=_0x4fde36;let {memberID:_0x411f4f}=_0x22ac70[_0x1ba1aa(0x176)],_0x51c7a7=this[_0x1ba1aa(0x23c)];_0x51c7a7[_0x1ba1aa(0x3a7)](_0x411f4f),this[_0x1ba1aa(0x1ab)][_0x1ba1aa(0x345)](_0x51c7a7);}[_0x4fde36(0x445)](){const _0x4cc431=_0x4fde36;var _0x13e817;if(this[_0x4cc431(0x26b)]=!0x0,((_0x13e817=this[_0x4cc431(0x47b)][_0x4cc431(0x206)]())==null?void 0x0:_0x13e817[_0x4cc431(0x448)]())!==this[_0x4cc431(0x478)])return;let _0x2dc1b0=this[_0x4cc431(0x1df)]['get'](m[_0x4cc431(0x2f5)])[_0x4cc431(0x387)]();Array[_0x4cc431(0x343)](_0x2dc1b0)&&_0x2dc1b0[_0x4cc431(0x2ee)]>0x0&&this[_0x4cc431(0x2c0)](_0x2dc1b0);}['_toggleOffline'](){const _0x352b98=_0x4fde36;this[_0x352b98(0x26b)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x3,(0x0,n['Inject'])(k)),S(0x4,(0x0,n['Inject'])(t['MemberService'])),S(0x5,(0x0,n[_0x4fde36(0x2ff)])(j)),S(0x6,p['ITransformService']),S(0x7,n[_0x4fde36(0x260)]),S(0x8,n['ICommandService'])],M);const ve=()=>{let _0x4fb538=[],_0x3f86cf=!0x1;return _0x2cc3b2=>{const _0x1f24a3=_0x4dee;_0x4fb538[_0x1f24a3(0x2e8)](_0x2cc3b2),_0x3f86cf||(_0x3f86cf=!0x0,setTimeout(()=>{_0x4fb538['forEach'](_0x2b169d=>_0x2b169d()),_0x4fb538=[],_0x3f86cf=!0x1;}));};};let N=class extends n['RxDisposable']{get[_0x4fde36(0x23c)](){const _0x4f5248=_0x4fde36;return this[_0x4f5248(0x1ab)][_0x4f5248(0x1ec)]();}get['roomMembers'](){const _0x920e4=_0x4fde36;return this[_0x920e4(0x1d8)][_0x920e4(0x1ec)]();}constructor(_0x5f4d52,_0x26194d,_0x574375,_0x1fed89,_0x1442f2,_0x2673e3,_0x493236,_0x15e5f1){const _0x278559=_0x4fde36;super(),this[_0x278559(0x478)]=_0x5f4d52,this[_0x278559(0x1a2)]=_0x26194d,this['_injector']=_0x574375,this['_colorAssignService']=_0x1fed89,this['_memberService']=_0x1442f2,this[_0x278559(0x47b)]=_0x2673e3,this['_commandService']=_0x493236,this[_0x278559(0x368)]=_0x15e5f1,x(this,'_online',!0x1),x(this,_0x278559(0x392),!0x1),x(this,_0x278559(0x1ab),new i[(_0x278559(0x299))](new Map())),x(this,_0x278559(0x259),this['_cursorInfo$'][_0x278559(0x45f)]()),x(this,_0x278559(0x1d8),new i[(_0x278559(0x299))]([])),x(this,_0x278559(0x280),this[_0x278559(0x1d8)]['pipe']((0x0,i[_0x278559(0x3c6)])(0x12c))),x(this,_0x278559(0x2c0),(0x0,n['debounce'])((_0x5862f9,_0x548b20)=>{const _0x242d11=_0x278559;let _0x1de971={'eventID':p[_0x242d11(0x426)][_0x242d11(0x1a1)],'data':{'unitID':this[_0x242d11(0x478)],'memberID':this['_session'][_0x242d11(0x356)](),'selection':(0x0,h['serializeRangeWithSheet'])(_0x5862f9,_0x548b20[_0x242d11(0x2cc)])}};this[_0x242d11(0x1a2)][_0x242d11(0x1e0)](_0x1de971,this[_0x242d11(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x3fdb26=_0x4fde36;super[_0x3fdb26(0x295)](),this['_cursorInfo$'][_0x3fdb26(0x345)](new Map()),this[_0x3fdb26(0x1ab)][_0x3fdb26(0x20b)](),this[_0x3fdb26(0x1d8)][_0x3fdb26(0x345)]([]),this[_0x3fdb26(0x1d8)][_0x3fdb26(0x20b)]();}['init'](){const _0x157c12=_0x4fde36;this[_0x157c12(0x392)]||(this[_0x157c12(0x392)]=!0x0,this[_0x157c12(0x1a2)][_0x157c12(0x1b9)][_0x157c12(0x19f)]((0x0,i[_0x157c12(0x328)])(this[_0x157c12(0x2d2)]))['subscribe'](_0x4a622d=>{const _0x44cabc=_0x157c12;_0x4a622d===t[_0x44cabc(0x42c)][_0x44cabc(0x31d)]?this[_0x44cabc(0x445)]():this[_0x44cabc(0x181)]();}),this[_0x157c12(0x1a2)]['event$'][_0x157c12(0x19f)]((0x0,i[_0x157c12(0x328)])(this[_0x157c12(0x2d2)]))['subscribe'](_0x1c6ef9=>{const _0x21992b=_0x157c12;let _0x5ced72=_0x1c6ef9[_0x21992b(0x16f)];_0x5ced72===p['CollaborationEvent'][_0x21992b(0x1a1)]&&this[_0x21992b(0x3f7)](_0x1c6ef9),_0x5ced72===p[_0x21992b(0x426)][_0x21992b(0x31b)]&&this[_0x21992b(0x47e)](_0x1c6ef9);}),this[_0x157c12(0x1dc)](),this[_0x157c12(0x32d)](this['_commandService']['onCommandExecuted'](_0x525572=>{const _0x65f667=_0x157c12;if(this[_0x65f667(0x26b)]&&_0x525572['id']===g['SetSelectionsOperation']['id']&&_0x525572['params']['unitId']===this['unitID']){let _0x50c741=_0x525572['params'];this[_0x65f667(0x2c0)](_0x50c741[_0x65f667(0x21c)],_0x50c741[_0x65f667(0x3bf)][0x0]);}})));}[_0x4fde36(0x3f7)](_0x3959b1){const _0x1b46ae=_0x4fde36;var _0x4d8fe6,_0xbb9a99;let {memberID:_0x311990,selection:_0x30051a}=_0x3959b1['data'],{sheetName:_0x367ee5,range:_0x2ad455}=(0x0,h[_0x1b46ae(0x32a)])(_0x30051a),_0x2b6e62={'name':(_0x4d8fe6=(_0xbb9a99=this[_0x1b46ae(0x36b)]['getMember'](this[_0x1b46ae(0x478)],_0x311990))==null?void 0x0:_0xbb9a99[_0x1b46ae(0x1d4)])==null?'Unknown\x20user':_0x4d8fe6,'range':this['_getMergeRange'](_0x367ee5,_0x2ad455),'sheetID':_0x367ee5,'color':this[_0x1b46ae(0x2fc)][_0x1b46ae(0x284)](_0x311990),'selection':_0x30051a},_0x114b3e=this[_0x1b46ae(0x23c)];_0x114b3e[_0x1b46ae(0x1a4)](_0x311990,_0x2b6e62),this['_cursorInfo$'][_0x1b46ae(0x345)](_0x114b3e);}[_0x4fde36(0x47e)](_0x34ee71){const _0x24fdb4=_0x4fde36;let {memberID:_0x22c717}=_0x34ee71[_0x24fdb4(0x176)],_0x4c9aa8=this['cursorInfo'];_0x4c9aa8['delete'](_0x22c717),this[_0x24fdb4(0x1ab)][_0x24fdb4(0x345)](_0x4c9aa8);}['_getMergeRange'](_0x58982a,_0x280c08){const _0x1a8c57=_0x4fde36;var _0x3b9a93;let _0x546dd4=(_0x3b9a93=this[_0x1a8c57(0x47b)][_0x1a8c57(0x406)](this[_0x1a8c57(0x478)]))==null||(_0x3b9a93=_0x3b9a93[_0x1a8c57(0x20f)](_0x58982a))==null?void 0x0:_0x3b9a93[_0x1a8c57(0x33b)]();return(_0x546dd4==null?void 0x0:_0x546dd4[_0x1a8c57(0x2de)](_0x2000e4=>n[_0x1a8c57(0x22a)][_0x1a8c57(0x1de)](_0x2000e4,_0x280c08)))||_0x280c08;}['_onRefRangeChange'](){const _0x4494b4=_0x4fde36;let _0x534f36=new n[(_0x4494b4(0x22f))](),_0x8706ef=ve(),_0x42db4c=()=>{const _0x539b24=_0x4494b4;_0x534f36[_0x539b24(0x295)]();let _0x397220=(_0x4376b0,_0x4faa45,_0xa5f0b5,_0x483ddb)=>{const _0x1a1a5f=_0x539b24;let _0x1e6967=[];switch(_0x4376b0['id']){case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x342)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1b5)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x27c)]:_0x1e6967=(0x0,g['handleDeleteRangeMoveUp'])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)]['InsertColCommandId']:_0x1e6967=(0x0,g['handleInsertCol'])(_0x4376b0,_0x483ddb);break;case g['EffectRefRangId'][_0x1a1a5f(0x414)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x21a)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x36c)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x430)])(_0x4376b0,_0x483ddb);break;case g['EffectRefRangId'][_0x1a1a5f(0x3bc)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x404)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x2ab)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1c2)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x2a1)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x1fe)])(_0x4376b0,_0x483ddb);break;case g[_0x1a1a5f(0x420)][_0x1a1a5f(0x382)]:_0x1e6967=(0x0,g[_0x1a1a5f(0x481)])(_0x4376b0,_0x483ddb);break;}let _0x2de991=(0x0,g[_0x1a1a5f(0x3e8)])(_0x1e6967,_0x483ddb),_0x55ebff=this[_0x1a1a5f(0x23c)][_0x1a1a5f(0x3bd)](_0x4faa45);if(_0x55ebff&&_0x2de991){let _0x2c63be={..._0x55ebff,'range':_0x2de991};this['cursorInfo'][_0x1a1a5f(0x1a4)](_0x4faa45,_0x2c63be),_0x8706ef(()=>{const _0x54d7ab=_0x1a1a5f;let _0x9697b3=this[_0x54d7ab(0x368)][_0x54d7ab(0x1a3)](_0x2de991,_0x460940=>(_0x9697b3[_0x54d7ab(0x295)](),_0x397220(_0x460940,_0x4faa45,_0xa5f0b5,_0x2de991)));_0x534f36[_0x54d7ab(0x46f)](_0x9697b3);});}return{'redos':[],'undos':[]};};this[_0x539b24(0x23c)][_0x539b24(0x19e)]((_0x214618,_0x17fe8a)=>{const _0x16d36d=_0x539b24;let {range:_0x42b3af,sheetID:_0x5df4db}=_0x214618,_0x360b4a=this[_0x16d36d(0x368)]['registerRefRange'](_0x42b3af,_0x42d80f=>(_0x360b4a['dispose'](),_0x397220(_0x42d80f,_0x17fe8a,_0x5df4db,_0x42b3af)));_0x534f36[_0x16d36d(0x46f)](_0x360b4a);});};this[_0x4494b4(0x32d)]((0x0,n['toDisposable'])(this[_0x4494b4(0x1ab)][_0x4494b4(0x18e)](()=>{_0x42db4c();})));}[_0x4fde36(0x445)](){const _0xe3c504=_0x4fde36;var _0x129281,_0x313dca;if(this[_0xe3c504(0x26b)]=!0x0,((_0x129281=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x129281[_0xe3c504(0x448)]())!==this[_0xe3c504(0x478)])return;let _0x5c0e7d=(_0x313dca=this['_injector'][_0xe3c504(0x3bd)](g['SheetsSelectionsService'])[_0xe3c504(0x39d)]())==null?void 0x0:_0x313dca[0x0],_0x2c7a0d=this[_0xe3c504(0x47b)][_0xe3c504(0x470)](n['UniverInstanceType'][_0xe3c504(0x47d)])[_0xe3c504(0x208)]();_0x5c0e7d&&_0x2c7a0d&&this[_0xe3c504(0x2c0)](_0x2c7a0d[_0xe3c504(0x39c)](),_0x5c0e7d);}['_toggleOffline'](){const _0xffcec4=_0x4fde36;this[_0xffcec4(0x26b)]=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n[_0x4fde36(0x197)])),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x405)])),S(0x5,n[_0x4fde36(0x260)]),S(0x6,n[_0x4fde36(0x375)]),S(0x7,(0x0,n['Inject'])(g['RefRangeService']))],N);function ye(_0x5afb49){const _0xb031ef=_0x4fde36;let _0x486a6b;try{_0x486a6b=JSON['parse'](_0x5afb49);}catch{return null;}if(typeof _0x486a6b!='object'||!_0x486a6b)return null;let _0x79824b=_0x486a6b;if(_0x79824b[_0xb031ef(0x351)]!==_0xb031ef(0x2dc)||typeof _0x79824b[_0xb031ef(0x1e9)]!=_0xb031ef(0x189)||typeof _0x79824b[_0xb031ef(0x21c)]!=_0xb031ef(0x189))return null;let _0x3da76e=Array[_0xb031ef(0x343)](_0x79824b['selectedIds'])?_0x79824b['selectedIds'][_0xb031ef(0x381)](_0x2d58de=>typeof _0x2d58de==_0xb031ef(0x189)):[],_0x1da694=typeof _0x79824b[_0xb031ef(0x178)]==_0xb031ef(0x189)?_0x79824b[_0xb031ef(0x178)]:null;return{'kind':_0xb031ef(0x2dc),'unitId':_0x79824b['unitId'],'subUnitId':_0x79824b[_0xb031ef(0x21c)],'selectedIds':_0x3da76e,'focusedId':_0x1da694};}let P=class extends n[_0x4fde36(0x18c)]{get[_0x4fde36(0x23c)](){const _0x399e99=_0x4fde36;return this['_cursorInfo$'][_0x399e99(0x1ec)]();}get[_0x4fde36(0x1d2)](){return this['_roomMembers$']['getValue']();}constructor(_0x18516c,_0x3b3f52,_0x43b948,_0xc66490,_0x14f20d){const _0x4f5ead=_0x4fde36;super(),this[_0x4f5ead(0x478)]=_0x18516c,this[_0x4f5ead(0x1a2)]=_0x3b3f52,this[_0x4f5ead(0x2fc)]=_0x43b948,this['_memberService']=_0xc66490,this[_0x4f5ead(0x459)]=_0x14f20d,x(this,_0x4f5ead(0x26b),!0x1),x(this,_0x4f5ead(0x392),!0x1),x(this,_0x4f5ead(0x1ab),new i[(_0x4f5ead(0x299))](new Map())),x(this,_0x4f5ead(0x259),this[_0x4f5ead(0x1ab)][_0x4f5ead(0x45f)]()),x(this,_0x4f5ead(0x1d8),new i['BehaviorSubject']([])),x(this,'roomMembers$',this[_0x4f5ead(0x1d8)][_0x4f5ead(0x19f)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x4f5ead(0x2c0),(0x0,n[_0x4f5ead(0x2bb)])(_0x489d41=>{const _0x50e62c=_0x4f5ead;let _0xd10a61=_0x489d41[_0x50e62c(0x1a5)];if(!_0xd10a61||_0xd10a61['unitId']!==this[_0x50e62c(0x478)])return;let _0x39b5b8={'kind':_0x50e62c(0x2dc),'unitId':_0xd10a61[_0x50e62c(0x1e9)],'subUnitId':_0xd10a61[_0x50e62c(0x21c)],'selectedIds':_0x489d41[_0x50e62c(0x38f)]['filter'](_0x44a2e3=>typeof _0x44a2e3==_0x50e62c(0x189)),'focusedId':_0x489d41[_0x50e62c(0x178)]},_0x9269cd={'eventID':p[_0x50e62c(0x426)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x50e62c(0x478)],'memberID':this['_session'][_0x50e62c(0x356)](),'selection':JSON[_0x50e62c(0x1e5)](_0x39b5b8)}};this[_0x50e62c(0x1a2)]['send'](_0x9269cd,this[_0x50e62c(0x478)]);},0x64));}[_0x4fde36(0x295)](){const _0x5bd499=_0x4fde36;super[_0x5bd499(0x295)](),this['_cursorInfo$'][_0x5bd499(0x345)](new Map()),this[_0x5bd499(0x1ab)][_0x5bd499(0x20b)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x5bd499(0x20b)]();}['init'](){const _0x10cc5a=_0x4fde36;this[_0x10cc5a(0x392)]||(this[_0x10cc5a(0x392)]=!0x0,this[_0x10cc5a(0x1a2)][_0x10cc5a(0x1b9)]['pipe']((0x0,i[_0x10cc5a(0x328)])(this[_0x10cc5a(0x2d2)]))[_0x10cc5a(0x18e)](_0x38a9ed=>{const _0x7c1fc1=_0x10cc5a;_0x38a9ed===t[_0x7c1fc1(0x42c)]['ONLINE']?this[_0x7c1fc1(0x445)]():this[_0x7c1fc1(0x181)]();}),this[_0x10cc5a(0x1a2)]['event$'][_0x10cc5a(0x19f)]((0x0,i['takeUntil'])(this[_0x10cc5a(0x2d2)]))[_0x10cc5a(0x18e)](_0x449137=>{const _0x2daa63=_0x10cc5a;let _0x242ea1=_0x449137[_0x2daa63(0x16f)];_0x242ea1===p[_0x2daa63(0x426)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x449137),_0x242ea1===p[_0x2daa63(0x426)][_0x2daa63(0x31b)]&&this[_0x2daa63(0x47e)](_0x449137);}),this['_slideDrawingStateService']['state$'][_0x10cc5a(0x19f)]((0x0,i[_0x10cc5a(0x328)])(this['dispose$']))['subscribe'](_0x1b22ad=>{const _0x1a6c4a=_0x10cc5a;this[_0x1a6c4a(0x26b)]&&this[_0x1a6c4a(0x2c0)](_0x1b22ad);}));}['_onCursorUpdate'](_0x32825f){const _0x21600a=_0x4fde36;var _0x4f83ae,_0x56e18b,_0x5b1f71,_0x5b38dc;let {memberID:_0x5ddf5f,selection:_0x994b9d}=_0x32825f[_0x21600a(0x176)];if(_0x5ddf5f===((_0x4f83ae=(_0x56e18b=this[_0x21600a(0x1a2)])[_0x21600a(0x356)])==null?void 0x0:_0x4f83ae[_0x21600a(0x1bd)](_0x56e18b)))return;let _0x3ef47a=ye(_0x994b9d);if(!_0x3ef47a||_0x3ef47a[_0x21600a(0x1e9)]!==this[_0x21600a(0x478)])return;let _0x1071d2=(_0x5b1f71=(_0x5b38dc=this['_memberService'][_0x21600a(0x1ba)](this[_0x21600a(0x478)],_0x5ddf5f))==null?void 0x0:_0x5b38dc[_0x21600a(0x1d4)])==null?_0x21600a(0x239):_0x5b1f71,_0x4d37ea={'color':this[_0x21600a(0x2fc)][_0x21600a(0x284)](_0x5ddf5f),'name':_0x1071d2,'unitId':_0x3ef47a['unitId'],'subUnitId':_0x3ef47a[_0x21600a(0x21c)],'selectedIds':_0x3ef47a[_0x21600a(0x38f)],'focusedId':_0x3ef47a[_0x21600a(0x178)],'selection':_0x994b9d},_0x6cea8a=new Map(this[_0x21600a(0x23c)]);_0x6cea8a[_0x21600a(0x1a4)](_0x5ddf5f,_0x4d37ea),this[_0x21600a(0x1ab)]['next'](_0x6cea8a);}[_0x4fde36(0x47e)](_0x7e74e0){const _0x8c3bc8=_0x4fde36;let {memberID:_0x5e150c}=_0x7e74e0['data'],_0x5eecd3=new Map(this[_0x8c3bc8(0x23c)]);_0x5eecd3['delete'](_0x5e150c),this[_0x8c3bc8(0x1ab)]['next'](_0x5eecd3);}[_0x4fde36(0x445)](){const _0x2c2e85=_0x4fde36;this[_0x2c2e85(0x26b)]=!0x0,this[_0x2c2e85(0x2c0)](this['_slideDrawingStateService'][_0x2c2e85(0x1fc)]());}['_toggleOffline'](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x4fde36(0x2ff)])(k)),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x405)])),S(0x4,(0x0,n['Inject'])(_[_0x4fde36(0x2e9)]))],P);let F=class extends n[_0x4fde36(0x18c)]{constructor(_0x437552,_0x5bd0e5,_0x579e51){const _0x2ea758=_0x4fde36;super(),this[_0x2ea758(0x47b)]=_0x437552,this['_injector']=_0x5bd0e5,this[_0x2ea758(0x192)]=_0x579e51,x(this,_0x2ea758(0x31e),new Map()),x(this,_0x2ea758(0x3a9),new i[(_0x2ea758(0x389))]()),this[_0x2ea758(0x392)]();}[_0x4fde36(0x295)](){const _0x4dd21d=_0x4fde36;super[_0x4dd21d(0x295)](),this['_entityInit$'][_0x4dd21d(0x20b)](),this[_0x4dd21d(0x31e)][_0x4dd21d(0x19e)](_0xd82c81=>_0xd82c81['dispose']());}[_0x4fde36(0x2cb)](_0x4e4c7a){const _0x3b1b95=_0x4fde36;return this['_entities'][_0x3b1b95(0x24d)](_0x4e4c7a)?this[_0x3b1b95(0x31e)][_0x3b1b95(0x3bd)](_0x4e4c7a)['cursorInfo$']:this[_0x3b1b95(0x3a9)][_0x3b1b95(0x19f)]((0x0,i['filter'])(_0x5e70e0=>_0x5e70e0[_0x3b1b95(0x478)]===_0x4e4c7a),(0x0,i[_0x3b1b95(0x3e5)])(_0x4fe65e=>_0x4fe65e[_0x3b1b95(0x259)]));}['_init'](){const _0x4a7361=_0x4fde36;this[_0x4a7361(0x47b)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x4a7361(0x47d)])['pipe']((0x0,i['takeUntil'])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](async _0x37c255=>{const _0xfa2433=_0x4a7361;let _0x21b87b=_0x37c255[_0xfa2433(0x40f)]['getUnitId'](),_0xb0861f=await this[_0xfa2433(0x344)](_0x21b87b);this[_0xfa2433(0x3a9)][_0xfa2433(0x345)](_0xb0861f),this['_entities']['set'](_0x21b87b,_0xb0861f);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)]['UNIVER_DOC'])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x19f)]((0x0,i['filter'])(_0x4f6984=>!_0x4f6984[_0x4a7361(0x40f)][_0x4a7361(0x448)]()[_0x4a7361(0x2ce)]('__')))[_0x4a7361(0x18e)](async _0xffd62b=>{const _0x446f24=_0x4a7361;let {unit:_0x581c3b}=_0xffd62b,_0x4e808a=_0x581c3b['getUnitId'](),_0x2577b0=await this[_0x446f24(0x3e2)](_0x4e808a);this[_0x446f24(0x3a9)][_0x446f24(0x345)](_0x2577b0),this[_0x446f24(0x31e)]['set'](_0x4e808a,_0x2577b0);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)][_0x4a7361(0x2ec)])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this['dispose$']))[_0x4a7361(0x18e)](async _0x4590c8=>{const _0x4b4210=_0x4a7361;let _0x1776af=_0x4590c8['unit'][_0x4b4210(0x448)](),_0x4d8bec=await this[_0x4b4210(0x355)](_0x1776af);this[_0x4b4210(0x3a9)][_0x4b4210(0x345)](_0x4d8bec),this[_0x4b4210(0x31e)][_0x4b4210(0x1a4)](_0x1776af,_0x4d8bec);}),this[_0x4a7361(0x47b)][_0x4a7361(0x416)](n[_0x4a7361(0x272)]['UNIVER_BOARD'])[_0x4a7361(0x19f)]((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](async _0x561a85=>{const _0x13299d=_0x4a7361;let _0x22b4ec=_0x561a85[_0x13299d(0x40f)][_0x13299d(0x448)](),_0x14b8ca=await this[_0x13299d(0x336)](_0x22b4ec);this[_0x13299d(0x3a9)][_0x13299d(0x345)](_0x14b8ca),this[_0x13299d(0x31e)]['set'](_0x22b4ec,_0x14b8ca);}),(0x0,i[_0x4a7361(0x3ef)])(this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)][_0x4a7361(0x370)]),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)]['UNIVER_SHEET']),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)][_0x4a7361(0x2ec)]),this[_0x4a7361(0x47b)][_0x4a7361(0x334)](n[_0x4a7361(0x272)]['UNIVER_BOARD']))['pipe']((0x0,i[_0x4a7361(0x328)])(this[_0x4a7361(0x2d2)]))[_0x4a7361(0x18e)](_0x5c2fb3=>{const _0x18f008=_0x4a7361;let _0x58f5ba=_0x5c2fb3[_0x18f008(0x448)](),_0x78bf0d=this[_0x18f008(0x31e)][_0x18f008(0x3bd)](_0x58f5ba);_0x78bf0d&&(_0x78bf0d['dispose'](),this[_0x18f008(0x31e)][_0x18f008(0x3a7)](_0x58f5ba));});}async[_0x4fde36(0x344)](_0x99e736){const _0x137d96=_0x4fde36;let _0x411223=await this[_0x137d96(0x192)][_0x137d96(0x40a)](_0x99e736),_0x352809=this[_0x137d96(0x1df)][_0x137d96(0x434)](N,_0x99e736,_0x411223);return _0x352809[_0x137d96(0x3e9)](),_0x352809;}async[_0x4fde36(0x3e2)](_0x37c128){const _0x9c0cce=_0x4fde36;let _0x17c16d=await this[_0x9c0cce(0x192)][_0x9c0cce(0x40a)](_0x37c128),_0x29b6c5=this[_0x9c0cce(0x1df)][_0x9c0cce(0x434)](M,_0x37c128,_0x17c16d);return _0x29b6c5['init'](),_0x29b6c5;}async[_0x4fde36(0x355)](_0x6f9ff7){const _0x466cae=_0x4fde36;let _0x438ee3=await this[_0x466cae(0x192)]['requireSession'](_0x6f9ff7),_0x365813=this['_injector']['createInstance'](P,_0x6f9ff7,_0x438ee3);return _0x365813[_0x466cae(0x3e9)](),_0x365813;}async[_0x4fde36(0x336)](_0x589a4f){const _0x45e28e=_0x4fde36;let _0x29bd00=await this[_0x45e28e(0x192)][_0x45e28e(0x40a)](_0x589a4f),_0xe1deef=this[_0x45e28e(0x1df)][_0x45e28e(0x434)](A,_0x589a4f,_0x29bd00);return _0xe1deef[_0x45e28e(0x3e9)](),_0xe1deef;}};F=C([S(0x0,n[_0x4fde36(0x260)]),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t['CollaborationSessionService']))],F);let I=class extends n[_0x4fde36(0x18c)]{constructor(_0x4d96e4,_0x44a593,_0x3b909f){const _0x12fdf7=_0x4fde36;super(),this[_0x12fdf7(0x46c)]=_0x4d96e4,this[_0x12fdf7(0x25a)]=_0x44a593,this[_0x12fdf7(0x21e)]=_0x3b909f,x(this,'_cursors',new Set()),x(this,'_renderScheduled',!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,'_latestCursors',new Map()),this['_init']();}['dispose'](){const _0x5dea7f=_0x4fde36;this['_removeCollabCursors'](),super[_0x5dea7f(0x295)]();}['_init'](){const _0x9332dc=_0x4fde36;let _0x1cf85a=this[_0x9332dc(0x25a)]['getCollabCursors$'](this[_0x9332dc(0x46c)][_0x9332dc(0x1e9)]);this[_0x9332dc(0x32d)]((0x0,n[_0x9332dc(0x292)])((0x0,i[_0x9332dc(0x2f7)])([_0x1cf85a,this[_0x9332dc(0x46c)][_0x9332dc(0x40f)][_0x9332dc(0x233)],this['_themeService'][_0x9332dc(0x3fe)]])[_0x9332dc(0x19f)]((0x0,i[_0x9332dc(0x328)])(this[_0x9332dc(0x2d2)]))[_0x9332dc(0x18e)](([_0x422f82])=>{const _0x47966a=_0x9332dc;let _0x5e812e=this[_0x47966a(0x46c)][_0x47966a(0x40f)][_0x47966a(0x3eb)](),_0x60a2b3=new Map();_0x422f82[_0x47966a(0x19e)]((_0xdd5d8,_0x3aa1b4)=>{const _0x4403b9=_0x47966a;_0xdd5d8[_0x4403b9(0x21c)]===_0x5e812e&&_0x60a2b3[_0x4403b9(0x1a4)](_0x3aa1b4,{..._0xdd5d8,'color':this[_0x4403b9(0x21e)][_0x4403b9(0x3b5)](_0xdd5d8['color'])});}),this['_latestCursors']=_0x60a2b3,this['_scheduleRender']();})));let _0x55e7e9=this[_0x9332dc(0x46c)]['scene'];this['disposeWithMe']((0x0,n[_0x9332dc(0x292)])(_0x55e7e9['addObject$'][_0x9332dc(0x19f)]((0x0,i[_0x9332dc(0x328)])(this['dispose$']))[_0x9332dc(0x18e)](()=>{const _0x4fe36f=_0x9332dc;this[_0x4fe36f(0x258)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x18664b=_0x4fde36;this[_0x18664b(0x46a)]||(this[_0x18664b(0x46a)]=!0x0,Promise[_0x18664b(0x308)]()[_0x18664b(0x3fb)](()=>{const _0x35e051=_0x18664b;this[_0x35e051(0x46a)]=!0x1,this[_0x35e051(0x1c8)]();}));}[_0x4fde36(0x1c8)](){const _0x23fb9e=_0x4fde36;this[_0x23fb9e(0x349)]();let _0x1e919f=this[_0x23fb9e(0x46c)][_0x23fb9e(0x40f)][_0x23fb9e(0x3eb)](),_0x4b36f5=[];if(this[_0x23fb9e(0x357)]['forEach']((_0x34e681,_0x3d224c)=>{const _0x13876b=_0x23fb9e;_0x34e681['subUnitId']===_0x1e919f&&_0x34e681[_0x13876b(0x38f)]['forEach'](_0x3de001=>{const _0x4c2fe5=_0x13876b;let _0x290e79=(0x0,e[_0x4c2fe5(0x337)])(_0x34e681['unitId'],_0x3de001),_0x1d8341=this['_getSceneObjectByKey'](_0x290e79);if(!_0x1d8341)return;let _0x330022=this[_0x4c2fe5(0x3c1)](_0x1d8341);_0x4b36f5['push'](new pe('board-collab-cursor-'+_0x3d224c+'-'+_0x3de001,{..._0x34e681,'left':_0x330022['left'],'top':_0x330022['top'],'width':_0x330022[_0x4c2fe5(0x395)],'height':_0x330022['height'],'angle':_0x1d8341[_0x4c2fe5(0x244)],'evented':!0x1,'zIndex':O}));});}),_0x4b36f5[_0x23fb9e(0x2ee)]===0x0){this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x17e)](!0x0);return;}this[_0x23fb9e(0x258)]=!0x0,this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x3d6)](_0x4b36f5,O),this[_0x23fb9e(0x258)]=!0x1,this['_cursors']=new Set(_0x4b36f5),this[_0x23fb9e(0x46c)][_0x23fb9e(0x1e3)][_0x23fb9e(0x17e)](!0x0);}['_removeCollabCursors'](){const _0x29107f=_0x4fde36;let _0x430b8a=Array[_0x29107f(0x412)](this[_0x29107f(0x2ea)]);if(_0x430b8a['length']===0x0)return;let _0x1794dc=this[_0x29107f(0x46c)][_0x29107f(0x1e3)];_0x29107f(0x24e)in _0x1794dc&&typeof _0x1794dc['removeObjects']==_0x29107f(0x1f5)?_0x1794dc['removeObjects'](_0x430b8a):_0x430b8a[_0x29107f(0x19e)](_0x1d0058=>{const _0x43fd6b=_0x29107f;_0x43fd6b(0x296)in _0x1794dc&&typeof _0x1794dc['removeObject']==_0x43fd6b(0x1f5)?_0x1794dc['removeObject'](_0x1d0058):_0x1d0058['dispose']();}),this[_0x29107f(0x2ea)][_0x29107f(0x2ca)](),_0x1794dc['makeDirty'](!0x0);}[_0x4fde36(0x398)](_0x14e671){const _0x2f436a=_0x4fde36;var _0xb106b2,_0x489897,_0x58a954;let _0xe33175=this[_0x2f436a(0x46c)][_0x2f436a(0x1e3)];return(_0xb106b2=(_0x489897=(_0x58a954=_0xe33175['getObjectIncludeInGroup'])==null?void 0x0:_0x58a954[_0x2f436a(0x1bd)](_0xe33175,_0x14e671))==null?_0xe33175[_0x2f436a(0x1c5)](_0x14e671):_0x489897)==null?null:_0xb106b2;}['_getObjectBounds'](_0x37089b){const _0x1d54c3=_0x4fde36;var _0x1d7c4a,_0x491171;let _0x27bb84=_0x37089b;return(_0x1d7c4a=(_0x491171=_0x27bb84['getRealBound'])==null?void 0x0:_0x491171[_0x1d54c3(0x1bd)](_0x27bb84))==null?{'left':_0x37089b[_0x1d54c3(0x3b6)],'top':_0x37089b[_0x1d54c3(0x2e1)],'width':_0x37089b['width'],'height':_0x37089b[_0x1d54c3(0x380)]}:_0x1d7c4a;}};I=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n['ThemeService']))],I);function _0x29fa(){const _0x575a27=['_transformUndoRedoStack','delete','uni.network.url-service','_entityInit$','TEXT','_sheetSkeletonManagerService','createElement','triggerDblclick','_registerRenderDependencies','getAllUnitsForType','body','SnapshotLoadStage','_isBlinkVisible','column','addClipboardHook','getColorFromTheme','left','isTransformMutationFailure','div','collaboration-client-ui.collabStatus.fetchMiss','activeSheetId','_getAnchorBounding','InsertRowCommandId','get','unload','selections','BuiltInUIPart','_getObjectBounds','_lastResponseTimestamp','now','_logService','DEFAULT_WS_SESSION_TICKET_URL','debounceTime','error','useCallback','getViewport','_messageIds','UniverCollaborationClientPlugin','fill','SYNCED','maxFormulaLimit','RegularPolygon','_collabCursorState$','onPointerMove$','Shape','_scheduleHeartbeat','highlight','collaboration-client-ui.conflict.content','addObjects','remove','collab-text-anchor-','_draw','row','_stopBlinking','code','unsubscribe','text','getOffsetConfig','collaboration-client-ui.collabStatus.offline','LOADING_SNAPSHOT','_startDocCollabCursor','_dataLoaderService','Tools','switchMap','getCurrentRevOfUnit','collaboration-client-ui.permission.title','runRefRangeMutations','init','transformIMECache','getActivePageId','getCellMatrix','IImageIoService','sheetId','merge','connectInjector','Button','getSheetObject','application/json','setConfig','closePath','getParam','_onCursorUpdate','CollaborationSocketService','collaboration-client-ui.conflict.title','_commandService','then','_pollingInterval','Failed','currentTheme$','all','getUnit','#FFF','Plugin','color','handleInsertRow','MemberService','getUniverSheetInstance','_docTransformStateCacheService','_applyCommand','@univerjs-pro/collaboration-client-ui','requireSession','syncEditingCollabCursor','undoState','values','location','unit','_docTransformIMECacheService','isTransformMutationsWithChangesetSuccess','from','endRow','InsertRangeMoveDownCommandId','_initEntityListener','getTypeOfUnitAdded$','getRenderById','true','/universer-api/license/formula/limit/start','event$','ThemeService','IBoardElementStateService','_notificationService','FromArray','_renderManagerService','EffectRefRangId','SnapshotLoadingService','RemoteUniscriptService','_getSessionTicket','652256pzDxXu','_startCalculationLimit','CollaborationEvent','getCellPositionByOffset','isFormulaId','beforeCommandExecuted','map','OffLineIcon','SessionStatus','constructor','collaboration-client-ui.session.will-retry','_latestStates','handleInsertRangeMoveRight','_backgroundColor','_updateSubUnitFromURLParams','_hover','createInstance','green.600','DocSkeletonManagerService','updateOfflineData','ISocketService','[Window\x20Error]:\x20','getLocalCacheKey','socket$','message','isFormulaString','moveTo','_shortcutBlock','red.300','_urlService','beginPath','useDependency','LoadingMultiIcon','_toggleOnline','mutations','m1Prime','getUnitId','transformSelections','unshift','split','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','snapshot-loading-timeout','_showGuardMessage','261UDuAHs','_blinkTimer','_hideTimer','getVpScrollXYInfoByPosToVp','labelHorizontalPosition','clsx','_shortcutService','_drawTextRange','_docStateChangeManagerService','preventDefault','_slideDrawingStateService','DOC_RANGE_TYPE','jsxs','CollaborationStatus','getCollabEntity$','collaboration-client-ui.session.connection-failed','asObservable','transformByState','getObjectIncludeInGroup',',\x200.2)','_clearTimeoutState','_uploadLog','collab-rect-range-','memberID','SUCCESS','default','_updateURLWithCurrentState','_renderScheduled','_localeService','_context','[CollaborationDataLoaderController]','disableLocalCache','add','getCurrentUnitOfType','OFFLINE','pluginName','getId','getCurrentTypeOfUnit$','_getSheetLoadingRenderService','transformRemoteChangeset','invokeId','unitID','arc','SUBMIT_CHANGESET_TIMEOUT','_univerInstanceService','createIdentifier','UNIVER_SHEET','_onCursorDelete','_updateCollabCursors','addEventListener','handleIRemoveRow','right','collaboration-client-ui.collaboration.closeRoom','loadUnit','UnitStatus','_previewUnitId','NodePositionConvertToRectRange','_watchBlockProgress','_checkCalculationAvailable','CollaborationUIEventId','clickable','_offsetY','Optional','_getLighterColor','_setFormulaLimitStatus','with','eventID','univer-h-8\x20univer-w-8\x20univer-rounded-lg','setTimeout','DocIMEInputManagerService','dark:focus:!univer-ring-offset-gray-800','_config','_initEvent','data','stack','focusedId','pushState','object','override','_httpService','static','makeDirty','timedOut','getRangePointData','_toggleOffline','_docSkeletonManagerService','_range','TEXT_RANGE_LAYER_INDEX','onPointerEnter$','_getSaveTimeout','focused$','_snapshotLoadingService','string','collaboration-client-ui.config','runId','RxDisposable','min','subscribe','_checkAndWaitForCalculationPermission','fillText','_refreshCollabCursors','_collabSessionService','12954lVfBpG','_handleHeartbeatEvent','small','onStarting','Injector','params','COMPLETE','replaceState','_releaseCalculationLimit','offsetY','5ylKUyP','forEach','pipe','_disabled','UPDATE_CURSOR','_session','registerRefRange','set','context','SetFormulaCalculationNotificationMutation','getUndoRedoMutationParamsCache','857481iFhZEe','enableFrontendLog','UniverCollaborationClientUIPlugin','_cursorInfo$','MessageType','showSkeleton','_interactionBlocked$','ILocalCacheService','_initWindowErrorListener','deepClone','SetTextSelectionsOperation','_getScale','replace','handleDeleteRangeMoveLeft','debug','_hidePreview','touchDependencies','sessionStatus$','getMember','toRgbString','workbookShell','call','setShapeProps','jiqing.500','94680stHsvq','getCoordByCell','handleMoveRange','_setupBeforeClosingHandler','DocStateChangeManagerService','getObject','_localCacheService','fromEventSubject','_render','forceDisable','OnLineIcon','startFormulaLimitUrl','fillRule','backgroundColor','ColorKit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slide-collab-cursor-','measureText','roomMembers','setInterval','name','_syncEditingCollabCursorService','_drawRectRange','getUnhiddenWorksheets','_roomMembers$','loadOfflineData','LocaleService','_initCommandExecutedListener','_onRefRangeChange','toString','contains','_injector','send','collaboration-client-ui.formula.calculation.started','_scheduleRender','scene','post','stringify','INotificationService','LOADING_BLOCKS','executeCommand','unitId','Fragment','highlightSecond','getValue','OTHER_CLIENTS_EDITING','804gTWdeP','_sheetLoadingRenderService','_startBlinking','_ensureSubject','yellow.400','Vector2','_highlightSecond','function','univer-transition-all\x20univer-duration-200','getFormulaLimitStatusUrl','_docTransformSelectionsService','_setInteractionBlocked','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toPrimitive','getSnapshot','_handleJoinEvent','handleIRemoveCol','_id','univer-text-blue-500','clearTimeout','slice','board-element-selection','getCurrentSkeleton','LOCAL_CACHE_INTERVAL_KEY','getFocusedUnit','ISheetLoadingRenderService','getActiveSheet','subscribeEvent','?taskId=','complete','_color','getRealBound','getOwnPropertyDescriptor','getSheetBySheetId','max','SetWorksheetActivateCommand','previewCellData','getAncestorScale','ILocalStorageService','_name','currentUsage','_docClipboardService','[Unhandled\x20Rejection]:\x20','Enter','handleInsertRangeMoveDown','getColor','subUnitId','CollaborationController','_themeService','_eventUnsubscribe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SheetSkeletonManagerService','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_handleEvent','SOCKET_FAILED','state$','_labelPosition','findNodePositionByCharIndex','collaboration-client-ui.collabStatus.synced','univer-border-none\x20univer-bg-transparent','Rectangle','_initUnhandledRejectionListener','m2Prime','purple.300','colno','DisposableCollection','getSkeleton','Disposable','disposeUnit','theme$','START_CALCULATION','generateRandomId','source','some','collaboration-client-ui.snapshotLoading.refresh','Unknown\x20user','mergeOverrideWithDependencies','primary','cursorInfo','editingUnit','clearInterval','getRelativeToViewportCoord','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','flatMap','SHEET_VIEWPORT_KEY','PERMISSION_DENIED','angle','enableDocumentCollaborationUI','catch','FETCH_MISS','225654zwFTnf','functionsExecutedState','Rect','startPluginsForType','_scheduleClearOtherTimer','has','removeObjects','_drawAnchor','_labelHorizontalPosition','_transformService','RECT','collabCursorState$','onPointerLeave$','_cursorShapes','hovered','Error','_isApplyingOverlays','cursorInfo$','_collabCursorController','resize','_collaborationController','VIEW_MAIN','IUIPartsService','_configService','IUniverInstanceService','reason','blue.400','_updateSheetPreview','distinctUntilChanged','rgba(','registerRenderModule','_blockProgressWatches','collaboration-client-ui.collabStatus.syncing','_handoffUnitIds','_highlight','_online','timeoutState$','redoState','registerBeforeClose','reload','_isVisibleUnit','dirtyRanges','UniverInstanceType','_revisionService','univer-appearance-none','font','NO_OTHER_CLIENTS_EDITING','save','labelPosition','useMemo','removeEventListener','strokeWidth','DeleteRangeMoveUpCommandId','throttleTime','HEADER_MENU','\x20at\x20','roomMembers$','_initStatusListener','_memberID','transformStateCache','assignAColorForMemberID','_saveTaskMap','_hasFormulaInDirtyRanges','_maxFormulaLimit','_assignedColors','CollaborationSessionService','_currentUsage','COLORS','_shapes','_pluginService','lineTo','limitInfo','univer-text-red-500','_showText','toDisposable','IMessageService','rgb','dispose','removeObject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getActiveSlide','BehaviorSubject','filename','addHandlerCallback','exhaustSavingTask','Workbook','_clearOtherTimers','registerComponent','AWAITING_WITH_PENDING','RemoveColCommandId','collaboration-client-ui.snapshotLoading.timeout','_cachedData','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_send','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_boardElementStateService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','/universer-api/frontend/logs','shareReplay','MoveRangeCommandId','fillStyle','_anchor','_colorIndex','runOnServer','pulse','rgba','_status$','_createSocketURL','replaceDocRanges','PluginService','button','_transformPreviousActiveRange','newValue','CollaborationUIEventService','DesktopCollaborationStatusDisplayController','debounce','previewReady','2OefTnF','useObservable','_heartbeatTimer','_updateLocalCursor','_uiPartsService','_updateMessage','hide','getItem','_getSheetObject','saveTaskMap','PENDING','setUndoRedoMutationParamsCache','drawWith','clear','getCollabCursors$','range','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','startsWith','fromEvent','OTHER_CLIENT_EDITING','parseInt','dispose$','_scheduleSaving','ISnapshotServerService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration-client-ui.collaboration.offline-data-not-saved','2426120iyyzaC','status$','IBeforeCloseService','tooltipKey','engine','slide-element-selection','colorClass','find','sessionTicket','SheetCollabCursorShape','top','HTTPService','collaboration-client-ui.collabStatus.notCollab','evenodd','type','rgba(255,\x20255,\x20255,\x200.01)','selection','push','ISlideDrawingStateService','_cursors','NOT_COLLAB','UNIVER_SLIDE','_collaborationUIEventService','length','setOffsetY','ITransformService','href','_timeoutState$','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_collaborationSessionService','DocSelectionManagerService','snapshot-loading-interaction-guard','combineLatest','show','_saveCache','stage','unhandledrejection','_colorAssignService','Loading','_messageService','Inject','backupOfflineData','1127Kgodly','strokeStyle','span','pageManager','black','polite','jsx','resolve','enableLocalCache','_localStorageService','evented','_clearPolling','_textBubble','handoff','FormulaExecuteStageType','_blinkIntervalTimer','spin','_anchorDot','currentSkeleton$','ILogService','LOCAL_CACHE_INTERVAL','univer-flex\x20univer-items-center\x20univer-justify-center','refreshLabel','subunit','defineProperty','showText','USERS_LEAVE','_initCommandInterceptor','ONLINE','_entities','decorate','SOCKET_FAILED_RETRY','prototype','version','_taskIds','buildDrawingOKey','_setupSubUnitSync','loadedBlocks','ranges','takeUntil','BrowserCollaborationSocketService','deserializeRangeWithSheet','saveImage','_cursor','disposeWithMe','transformMutationsWithChangeset','status','_instanceService','isInternalEditorID','onTransformChange$','_unitOnClients','getTypeOfUnitDisposed$','reconnect','_startBoardCollabCursor','getBoardElementRenderObjectKey','_handleLeaveEvent','_registerDependencies','_lastPointer','getMergeData','sheetID','RevisionService','searchParams','_initStatusComponent','removeParam','symbol','DeleteRangeMoveLeftCommandId','isArray','_startSheetCollabCursor','next','endColumn','textRanges','bottom','_removeCollabCursors','...','_hovered','ErrorCode','_selfUnitIDs','WebSocketService','ERROR','_monkeyPatchLogService','kind','IURLService','size','_scene','_startSlideCollabCursor','getMemberID','_latestCursors','_unitStatus','lineWidth','value','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','GLOBAL','whenReady','FormulaExecutedStateType','setActiveRange','startRow','WarningIcon','209858ZAirVh','_initUserListener','univer-text-green-500','Tooltip','_clearBlockProgressWatch','UNIVER_BOARD','_refRangeService','isActive','1.0.0-alpha.5','_memberService','InsertRangeMoveRightCommandId','onMouseMove','transformMutation','imageSourceType','UNIVER_DOC','_removeClearOtherTimer','setAlpha','univer-text-gray-400','IRenderManagerService','ICommandService','onCommandExecuted','key','activeSheet$','_initResize','getStateCache','_pointerMoveDisposable','history','/universer-api/license/formula/limit/status','[LogService\x20Error]:\x20','_initDependencies','height','filter','RemoveRowCommandId','startColumn','getUnitStatus$','IConfigService','urlChange$','getDocRanges','SetDocZoomRatioOperation','Subject','addObject','registerDependencies','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','executionId','setItem','selectedIds','totalBlocks','getConfig','_init','strokeRect','Warning','width','restore','includes','_getSceneObjectByKey','CONFLICT','_beforeCloseService','doc.mutation.rich-text-editing','getSheetId','getCurrentSelections','packageName','transform','setParam','parse','_getFormulaLimitStatus','_doCreateSocket','timeoutId','_imageIoService'];_0x29fa=function(){return _0x575a27;};return _0x29fa();}const L=_0x4fde36(0x3d8);var be=class{constructor(_0x26d784,_0x509b39,_0x480b1b,_0x783607){const _0x5406d4=_0x4fde36;this['_cursor']=_0x26d784,this['_scene']=_0x509b39,this['_docSkeleton']=_0x480b1b,this['_document']=_0x783607,x(this,_0x5406d4(0x28c),[]),x(this,_0x5406d4(0x2ad),null),x(this,'_textBubble',null),x(this,_0x5406d4(0x312),null),x(this,'_hideTimer',null),x(this,_0x5406d4(0x21f),null),this[_0x5406d4(0x1c8)]();}set[_0x4fde36(0x433)](_0xcab156){const _0x48e53b=_0x4fde36;_0xcab156?(this['_anchorDot']&&this[_0x48e53b(0x312)][_0x48e53b(0x2c3)](),this[_0x48e53b(0x30d)]&&this[_0x48e53b(0x30d)][_0x48e53b(0x2f8)]()):(this[_0x48e53b(0x312)]&&this['_anchorDot']['show'](),this[_0x48e53b(0x30d)]&&this[_0x48e53b(0x30d)]['hide']());}[_0x4fde36(0x295)](){const _0x5b15cc=_0x4fde36;for(let _0xf439e8 of this[_0x5b15cc(0x28c)])_0xf439e8['dispose']();this[_0x5b15cc(0x30d)]&&this['_textBubble'][_0x5b15cc(0x295)](),this[_0x5b15cc(0x312)]&&this[_0x5b15cc(0x312)][_0x5b15cc(0x295)](),this[_0x5b15cc(0x2ad)]&&this[_0x5b15cc(0x2ad)][_0x5b15cc(0x295)](),this['_eventUnsubscribe']&&this[_0x5b15cc(0x21f)]();}[_0x4fde36(0x1c8)](){const _0x138f67=_0x4fde36;let {_docSkeleton:_0x25b63f,_document:_0x50b0a0}=this,{color:_0x3b3cfc,name:_0x169586,ranges:_0x52fa10}=this[_0x138f67(0x32c)],_0x102193=_0x50b0a0[_0x138f67(0x3df)](),{docsLeft:_0x1302cb,docsTop:_0x1f83a4}=_0x102193,_0x30769d=new f['NodePositionConvertToCursor'](_0x102193,_0x25b63f);for(let {startOffset:_0x3dfe5e,endOffset:_0xd49b53,rangeType:_0x384dc1,segmentId:_0x26d775,segmentPage:_0x3ce9da,collapsed:_0x5db97c,isActive:_0x1ad1ba}of _0x52fa10){let _0x1525b3=_0x25b63f[_0x138f67(0x227)](_0x3dfe5e,!0x0,_0x26d775,_0x3ce9da),_0x4d5834=_0x25b63f['findNodePositionByCharIndex'](_0xd49b53,!0x0,_0x26d775,_0x3ce9da);if(_0x4d5834==null&&(_0x4d5834=_0x25b63f[_0x138f67(0x227)](_0xd49b53-0x1,!0x1,_0x26d775,_0x3ce9da)),_0x1ad1ba){let {contentBoxPointGroup:_0x2f0483}=_0x30769d[_0x138f67(0x180)](_0x4d5834,_0x4d5834);if(_0x2f0483[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x24f)](_0x3b3cfc,_0x2f0483,_0x1302cb,_0x1f83a4,_0x169586),this[_0x138f67(0x21f)]=this['_handleHover']();}if(_0x1525b3&&_0x4d5834){if(_0x384dc1===n['DOC_RANGE_TYPE'][_0x138f67(0x252)]){var _0x502957;let {pointGroup:_0x5c7606}=(_0x502957=new f[(_0x138f67(0x165))](_0x102193,_0x25b63f)['getRangePointData'](_0x1525b3,_0x4d5834))==null?{}:_0x502957;if(_0x5c7606==null||_0x5c7606[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x1d6)](_0x3b3cfc,_0x5c7606,_0x1302cb,_0x1f83a4);}else{if(!_0x5db97c){let {borderBoxPointGroup:_0x1be072}=_0x30769d[_0x138f67(0x180)](_0x1525b3,_0x4d5834);if(_0x1be072[_0x138f67(0x2ee)]===0x0)continue;this[_0x138f67(0x456)](_0x3b3cfc,_0x1be072,_0x1302cb,_0x1f83a4);}}}}}[_0x4fde36(0x24f)](_0x3e1fa8,_0x44fc8d,_0xc0639,_0x150580,_0x32fc90){const _0x544d53=_0x4fde36;let {left:_0x13629e,top:_0x456e8a,height:_0xd9d147}=this[_0x544d53(0x3bb)](_0x44fc8d),_0x1cde1d=1.5/this[_0x544d53(0x1b3)](),_0x175104=new u[(_0x544d53(0x24a))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580,'height':_0xd9d147,'width':1.5,'fill':_0x3e1fa8||(0x0,u[_0x544d53(0x21b)])(n[_0x544d53(0x28b)][_0x544d53(0x305)],0x0),'strokeWidth':_0x1cde1d,'stroke':_0x544d53(0x2e6),'evented':!0x0});this[_0x544d53(0x2ad)]=_0x175104,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x175104,f[_0x544d53(0x184)]);let _0x20141b=new u[(_0x544d53(0x24a))](L+(0x0,n['generateRandomId'])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3e1fa8||(0x0,u['getColor'])(n['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e1fa8||(0x0,u[_0x544d53(0x21b)])(n[_0x544d53(0x28b)]['black'],0x0),'evented':!0x1});this[_0x544d53(0x312)]=_0x20141b,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x20141b,f[_0x544d53(0x184)]);let _0x5e65eb=new D(L+(0x0,n[_0x544d53(0x235)])(0x6),{'left':_0x13629e+_0xc0639-_0x1cde1d,'top':_0x456e8a+_0x150580-0x14,'text':_0x32fc90,'color':_0x3e1fa8});this['_textBubble']=_0x5e65eb,this[_0x544d53(0x354)][_0x544d53(0x38a)](_0x5e65eb,f[_0x544d53(0x184)]),this[_0x544d53(0x433)]=!0x1;}['_handleHover'](){const _0x272f38=_0x4fde36;let _0x3d07c0=this[_0x272f38(0x2ad)][_0x272f38(0x185)][_0x272f38(0x209)](()=>{this['_hover']=!0x0;}),_0xbc96be=this[_0x272f38(0x2ad)][_0x272f38(0x254)][_0x272f38(0x209)](()=>{const _0x509d5d=_0x272f38;this['_hideTimer']&&clearTimeout(this[_0x509d5d(0x451)]),this[_0x509d5d(0x451)]=setTimeout(()=>{const _0x386815=_0x509d5d;this[_0x386815(0x433)]=!0x1;},0x7d0);});return()=>{const _0x1f8eef=_0x272f38;_0x3d07c0[_0x1f8eef(0x3dd)](),_0xbc96be[_0x1f8eef(0x3dd)]();};}[_0x4fde36(0x456)](_0x2b1a7a,_0x23d2c3,_0x4088d0,_0xa0c969){const _0xa15d47=_0x4fde36;let _0x46fe14=0.2,_0x1f9758=new n[(_0xa15d47(0x1ce))](_0x2b1a7a)['setAlpha'](_0x46fe14)[_0xa15d47(0x1bb)](),_0x144aea=new u[(_0xa15d47(0x3cf))]('collab-text-range-'+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x23d2c3,'fill':_0x1f9758||(0x0,u[_0xa15d47(0x21b)])(n[_0xa15d47(0x28b)][_0xa15d47(0x305)],_0x46fe14),'left':_0x4088d0,'top':_0xa0c969,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xa15d47(0x2e8)](_0x144aea),this['_scene'][_0xa15d47(0x38a)](_0x144aea,f[_0xa15d47(0x184)]);}[_0x4fde36(0x1d6)](_0x27cbf5,_0xf211cd,_0x55c693,_0x3061a1){const _0x31f233=_0x4fde36;let _0x5dba43=0.2,_0x44e93d=new n[(_0x31f233(0x1ce))](_0x27cbf5)[_0x31f233(0x372)](_0x5dba43)[_0x31f233(0x1bb)](),_0x54e3fb=new u[(_0x31f233(0x3cf))](_0x31f233(0x465)+(0x0,n[_0x31f233(0x235)])(0x6),{'pointsGroup':_0xf211cd,'fill':_0x44e93d||(0x0,u[_0x31f233(0x21b)])(n['COLORS'][_0x31f233(0x305)],_0x5dba43),'left':_0x55c693,'top':_0x3061a1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x54e3fb),this[_0x31f233(0x354)]['addObject'](_0x54e3fb,f[_0x31f233(0x184)]);}[_0x4fde36(0x3bb)](_0x1f0d43){let _0x386bba=_0x1f0d43[0x0],_0x31be09=_0x386bba[0x0],_0x37fa2b=_0x386bba[0x2],{x:_0x1e3918,y:_0x15c334}=_0x31be09,{x:_0x3efc7f,y:_0x3ed203}=_0x37fa2b;return{'left':_0x1e3918,'top':_0x15c334,'width':_0x3efc7f-_0x1e3918,'height':_0x3ed203-_0x15c334};}[_0x4fde36(0x1b3)](){const _0xdcce84=_0x4fde36;let {scaleX:_0x3ee531,scaleY:_0x1a1b99}=this[_0xdcce84(0x354)]['getAncestorScale']();return Math[_0xdcce84(0x210)](_0x3ee531,_0x1a1b99);}};let R=class extends n[_0x4fde36(0x18c)]{constructor(_0x2608f0,_0x4715c3,_0x474b81,_0x59751d,_0xbdaf59){const _0x382c41=_0x4fde36;super(),this['_context']=_0x2608f0,this[_0x382c41(0x182)]=_0x4715c3,this[_0x382c41(0x25a)]=_0x474b81,this['_commandService']=_0x59751d,this[_0x382c41(0x21e)]=_0xbdaf59,x(this,'_cursorShapes',[]),x(this,_0x382c41(0x2ea),[]),this[_0x382c41(0x392)]();}['_init'](){const _0x40e804=_0x4fde36;let _0x2f4310=this[_0x40e804(0x46c)]['unitId'],_0x1ac376=this['_docSkeletonManagerService'];this[_0x40e804(0x32d)]((0x0,i[_0x40e804(0x2f7)])([this[_0x40e804(0x25a)][_0x40e804(0x2cb)](_0x2f4310),this[_0x40e804(0x21e)][_0x40e804(0x3fe)]])[_0x40e804(0x19f)]((0x0,a[_0x40e804(0x42a)])(([_0x3a8c1a,_0xf1fa83])=>({'skeleton':_0x1ac376[_0x40e804(0x230)](),'cursors':[..._0x3a8c1a[_0x40e804(0x40d)]()][_0x40e804(0x241)](_0x363cae=>({..._0x363cae,'color':this[_0x40e804(0x21e)][_0x40e804(0x3b5)](_0x363cae[_0x40e804(0x403)])}))})))[_0x40e804(0x18e)](_0x17fb99=>{const _0x4e78ae=_0x40e804;if(this[_0x4e78ae(0x349)](),_0x17fb99){let {skeleton:_0xfb251c,cursors:_0x50ca2e}=_0x17fb99;this[_0x4e78ae(0x47f)](_0xfb251c,_0x50ca2e);}})),this[_0x40e804(0x379)](),this[_0x40e804(0x1db)]();}[_0x4fde36(0x47f)](_0xc0802e,_0x2f644d){const _0x68da6a=_0x4fde36;let {scene:_0x4daffe,mainComponent:_0x5c6dfa}=this[_0x68da6a(0x46c)],_0x448aa7=_0x2f644d[_0x68da6a(0x42a)](_0x48fa9c=>new be(_0x48fa9c,_0x4daffe,_0xc0802e,_0x5c6dfa));this[_0x68da6a(0x255)]=_0x448aa7,this[_0x68da6a(0x2ea)]=_0x2f644d;}[_0x4fde36(0x191)](){const _0x2a7f3f=_0x4fde36;this[_0x2a7f3f(0x349)]();let {scene:_0x28c6be,mainComponent:_0x5005dd}=this[_0x2a7f3f(0x46c)],_0x587878=this[_0x2a7f3f(0x182)][_0x2a7f3f(0x230)](),_0xc307a6=this[_0x2a7f3f(0x2ea)][_0x2a7f3f(0x42a)](_0x5b4e2e=>new be(_0x5b4e2e,_0x28c6be,_0x587878,_0x5005dd));this[_0x2a7f3f(0x255)]=_0xc307a6;}[_0x4fde36(0x349)](){const _0x1d30b3=_0x4fde36;this[_0x1d30b3(0x255)][_0x1d30b3(0x19e)](_0x2590b2=>_0x2590b2[_0x1d30b3(0x295)]()),this['_cursorShapes']=[];}[_0x4fde36(0x1db)](){const _0x2783c2=_0x4fde36;let _0x33c749=[f[_0x2783c2(0x388)]['id']];this[_0x2783c2(0x32d)](this[_0x2783c2(0x3fa)][_0x2783c2(0x376)](_0x13e632=>{const _0x1e2ebc=_0x2783c2;_0x33c749[_0x1e2ebc(0x397)](_0x13e632['id'])&&_0x13e632[_0x1e2ebc(0x198)]['unitId']===this[_0x1e2ebc(0x46c)][_0x1e2ebc(0x1e9)]&&this['_refreshCollabCursors']();}));}[_0x4fde36(0x379)](){const _0x1ee8ab=_0x4fde36;this[_0x1ee8ab(0x32d)]((0x0,n[_0x1ee8ab(0x1c7)])(this[_0x1ee8ab(0x46c)][_0x1ee8ab(0x2db)][_0x1ee8ab(0x332)])[_0x1ee8ab(0x19f)]((0x0,a[_0x1ee8ab(0x381)])(_0x5cba4b=>_0x5cba4b[_0x1ee8ab(0x2e5)]===u[_0x1ee8ab(0x297)][_0x1ee8ab(0x25b)]),(0x0,a[_0x1ee8ab(0x27d)])(0x10))[_0x1ee8ab(0x18e)](()=>{this['_refreshCollabCursors']();}));}};R=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(m[_0x4fde36(0x436)])),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(F)),S(0x3,n[_0x4fde36(0x375)]),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x41b)]))],R);var xe=class extends u[_0x4fde36(0x3d2)]{constructor(_0x573e8b,_0x262b99){const _0x21c556=_0x4fde36;if(super(_0x573e8b,_0x262b99),x(this,'_color',void 0x0),x(this,_0x21c556(0x34b),!0x1),x(this,'_range',void 0x0),x(this,_0x21c556(0x215),''),x(this,'_labelPosition',_0x21c556(0x2e1)),x(this,_0x21c556(0x431),void 0x0),x(this,_0x21c556(0x291),void 0x0),x(this,_0x21c556(0x26a),void 0x0),x(this,_0x21c556(0x1f4),0x4),x(this,_0x21c556(0x450),void 0x0),x(this,_0x21c556(0x310),void 0x0),x(this,'_isBlinkVisible',!0x0),x(this,'_offsetY',0x0),x(this,_0x21c556(0x250),_0x21c556(0x482)),_0x262b99){var _0x2a78f3;if(this['setShapeProps'](_0x262b99),_0x262b99['highlight']&&((_0x2a78f3=_0x262b99[_0x21c556(0x1eb)])==null?this['_highlightSecond']:_0x2a78f3)){var _0x20ce25;this['_startBlinking']((_0x20ce25=_0x262b99[_0x21c556(0x1eb)])==null?this[_0x21c556(0x1f4)]:_0x20ce25);}}this[_0x21c556(0x185)][_0x21c556(0x209)](()=>this[_0x21c556(0x1be)]({'hovered':!0x0})),this[_0x21c556(0x254)][_0x21c556(0x209)](()=>this[_0x21c556(0x1be)]({'hovered':!0x1}));}[_0x4fde36(0x2ef)](_0x455cc1){this['_offsetY']=_0x455cc1;}['setShapeProps'](_0x25d42a){const _0x118723=_0x4fde36;var _0x5b087c,_0x35727,_0x78dbe4,_0x26782b,_0x5b725a,_0x3d4d57,_0x4d77f6,_0x5d5685;this['_color']=(_0x5b087c=_0x25d42a[_0x118723(0x403)])==null?this[_0x118723(0x20c)]:_0x5b087c,this[_0x118723(0x34b)]=(_0x35727=_0x25d42a[_0x118723(0x256)])==null?this[_0x118723(0x34b)]:_0x35727,this['_range']=(_0x78dbe4=_0x25d42a[_0x118723(0x2cc)])==null?this[_0x118723(0x183)]:_0x78dbe4,this[_0x118723(0x215)]=(_0x26782b=_0x25d42a[_0x118723(0x1d4)])==null?this[_0x118723(0x215)]:_0x26782b,this[_0x118723(0x226)]=(_0x5b725a=_0x25d42a[_0x118723(0x278)])==null?this[_0x118723(0x226)]:_0x5b725a,this[_0x118723(0x431)]=(_0x3d4d57=_0x25d42a[_0x118723(0x1cd)])==null?this['_backgroundColor']:_0x3d4d57,this['_showText']=(_0x4d77f6=_0x25d42a[_0x118723(0x31a)])==null?this[_0x118723(0x291)]:_0x4d77f6,this['_labelHorizontalPosition']=(_0x5d5685=_0x25d42a[_0x118723(0x453)])==null?this[_0x118723(0x250)]:_0x5d5685,_0x25d42a[_0x118723(0x1eb)]!==void 0x0&&(this[_0x118723(0x1f4)]=_0x25d42a[_0x118723(0x1eb)]),_0x25d42a[_0x118723(0x3d4)]!==void 0x0&&(this[_0x118723(0x26a)]=_0x25d42a[_0x118723(0x3d4)]),_0x25d42a[_0x118723(0x19c)]!==void 0x0&&(this[_0x118723(0x16a)]=_0x25d42a[_0x118723(0x19c)]),this[_0x118723(0x460)]({'width':_0x25d42a[_0x118723(0x395)],'height':_0x25d42a[_0x118723(0x380)]});}[_0x4fde36(0x36d)](_0x53cc5c){const _0x3e3fc0=_0x4fde36;let {row:_0x33162d,column:_0x3ea2f8}=_0x53cc5c;if(_0x33162d>=this[_0x3e3fc0(0x183)]['startRow']&&_0x33162d<=this['_range'][_0x3e3fc0(0x413)]&&_0x3ea2f8>=this[_0x3e3fc0(0x183)][_0x3e3fc0(0x383)]&&_0x3ea2f8<=this['_range'][_0x3e3fc0(0x346)]){this[_0x3e3fc0(0x1be)]({'hovered':!0x0});return;}this[_0x3e3fc0(0x1be)]({'hovered':!0x1});}[_0x4fde36(0x1f0)](_0x107be2){const _0x48731d=_0x4fde36;this[_0x48731d(0x3db)](),this[_0x48731d(0x3b2)]=!0x0,this['_blinkIntervalTimer']=window[_0x48731d(0x1d3)](()=>{const _0x56a9a3=_0x48731d;this[_0x56a9a3(0x3b2)]=!this['_isBlinkVisible'],this[_0x56a9a3(0x17e)](!0x0);},0x1f4),this[_0x48731d(0x450)]=window['setTimeout'](()=>{const _0x4d3384=_0x48731d;this[_0x4d3384(0x3db)](),this['_isBlinkVisible']=!0x0,this[_0x4d3384(0x17e)](!0x0);},_0x107be2*0x3e8);}['_stopBlinking'](){const _0x15564c=_0x4fde36;this['_blinkIntervalTimer']&&(window[_0x15564c(0x23e)](this[_0x15564c(0x310)]),this[_0x15564c(0x310)]=void 0x0),this['_blinkTimer']&&(window[_0x15564c(0x201)](this[_0x15564c(0x450)]),this['_blinkTimer']=void 0x0);}[_0x4fde36(0x3ad)](_0x1c263e){return!0x1;}[_0x4fde36(0x295)](){const _0x150b55=_0x4fde36;this[_0x150b55(0x3db)](),super[_0x150b55(0x295)]();}[_0x4fde36(0x3d9)](_0x39870b){const _0x16062e=_0x4fde36;let _0x5196f4=this[_0x16062e(0x20c)],_0x1fae74=this['_backgroundColor'];if(this['_highlight']&&!this[_0x16062e(0x3b2)]&&(_0x5196f4=this[_0x16062e(0x16c)](this['_color']),_0x1fae74=this[_0x16062e(0x431)]?this[_0x16062e(0x16c)](this[_0x16062e(0x431)]):void 0x0),u['Rect'][_0x16062e(0x2c9)](_0x39870b,{'width':this[_0x16062e(0x395)],'height':this[_0x16062e(0x380)],'strokeWidth':this[_0x16062e(0x27b)]||1.5,'stroke':_0x5196f4,'evented':!0x1,'fill':_0x1fae74}),this[_0x16062e(0x34b)]||this[_0x16062e(0x291)]){var _0x34323b;_0x39870b[_0x16062e(0x277)]();let _0x20ea5c=this[_0x16062e(0x250)]===_0x16062e(0x3b6)?-de(_0x39870b,this[_0x16062e(0x215)]):this['width'];_0x39870b[_0x16062e(0x39f)](0x1,0x0,0x0,0x1,_0x20ea5c,(this[_0x16062e(0x226)]===_0x16062e(0x348)?0x0:-0x14)+((_0x34323b=this[_0x16062e(0x16a)])==null?0x0:_0x34323b)),D['drawWith'](_0x39870b,{'text':this[_0x16062e(0x215)],'color':_0x5196f4}),_0x39870b[_0x16062e(0x396)]();}}[_0x4fde36(0x16c)](_0x15a761){const _0x73f13e=_0x4fde36;return _0x15a761[_0x73f13e(0x2ce)]('#')?_0x73f13e(0x265)+Number['parseInt'](_0x15a761['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x73f13e(0x2d1)](_0x15a761['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x73f13e(0x2d1)](_0x15a761[_0x73f13e(0x202)](0x5,0x7),0x10)+_0x73f13e(0x462):_0x15a761[_0x73f13e(0x2ce)](_0x73f13e(0x2b1))?_0x15a761['replace'](/[\d.]+\)$/g,'0.2)'):_0x15a761[_0x73f13e(0x2ce)](_0x73f13e(0x294))?_0x15a761[_0x73f13e(0x1b4)](_0x73f13e(0x294),_0x73f13e(0x2b1))[_0x73f13e(0x1b4)](')',_0x73f13e(0x462)):_0x15a761;}};let z=class extends n[_0x4fde36(0x18c)]{constructor(_0x56a967,_0x572c26,_0x55521d,_0x15d28b){const _0x491474=_0x4fde36;super(),this[_0x491474(0x46c)]=_0x56a967,this[_0x491474(0x3ab)]=_0x572c26,this[_0x491474(0x25a)]=_0x55521d,this[_0x491474(0x21e)]=_0x15d28b,x(this,_0x491474(0x2ea),new Set()),x(this,_0x491474(0x33a),null),x(this,_0x491474(0x37b),null),this[_0x491474(0x392)]();}[_0x4fde36(0x392)](){const _0x36c8a4=_0x4fde36;this['_sheetSkeletonManagerService'][_0x36c8a4(0x313)][_0x36c8a4(0x19f)]((0x0,a[_0x36c8a4(0x328)])(this[_0x36c8a4(0x2d2)]),(0x0,a[_0x36c8a4(0x3e5)])(_0x5d7de6=>{const _0x25eb5d=_0x36c8a4;if(_0x5d7de6){let _0x2f54c4=_0x5d7de6[_0x25eb5d(0x3ee)];return(0x0,i[_0x25eb5d(0x2f7)])(this[_0x25eb5d(0x25a)][_0x25eb5d(0x2cb)](this['_context'][_0x25eb5d(0x1e9)]),this[_0x25eb5d(0x21e)][_0x25eb5d(0x3fe)])['pipe']((0x0,a[_0x25eb5d(0x42a)])(([_0x280601,_0x24bc1b])=>{const _0x32d0fe=_0x25eb5d;let _0x54ebf6=new Map();return _0x280601[_0x32d0fe(0x19e)]((_0xca3ee7,_0x480a47)=>{const _0x4a99bc=_0x32d0fe;if(_0xca3ee7[_0x4a99bc(0x33c)]===_0x2f54c4){let _0xfd15c0={..._0xca3ee7};_0xfd15c0['color']=this[_0x4a99bc(0x21e)][_0x4a99bc(0x3b5)](_0xca3ee7['color']),_0x54ebf6[_0x4a99bc(0x1a4)](_0x480a47,_0xfd15c0);}}),{'skeleton':_0x5d7de6,'cursors':_0x54ebf6};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3f2814,cursors:_0x5603e6})=>{const _0x406f68=_0x36c8a4;this[_0x406f68(0x349)](),_0x3f2814&&this['_updateCollabCursors'](_0x3f2814,_0x5603e6);}),this[_0x36c8a4(0x32d)](this[_0x36c8a4(0x3ab)]['currentSkeleton$'][_0x36c8a4(0x19f)]((0x0,a[_0x36c8a4(0x328)])(this[_0x36c8a4(0x2d2)]))[_0x36c8a4(0x18e)](_0x2b4ef8=>{const _0x4617bc=_0x36c8a4;var _0xec044c;if(_0x2b4ef8==null)return;(_0xec044c=this['_pointerMoveDisposable'])==null||_0xec044c[_0x4617bc(0x3dd)](),this[_0x4617bc(0x37b)]=null;let {skeleton:_0x16c050}=_0x2b4ef8,{scene:_0x4b8ff7}=this[_0x4617bc(0x46c)];this[_0x4617bc(0x37b)]=_0x4b8ff7[_0x4617bc(0x3d1)][_0x4617bc(0x209)]((0x0,n['debounce'])(_0xcba12=>{const _0x5ca5db=_0x4617bc;var _0x12c789,_0x1291f6;let {offsetX:_0x4dc938,offsetY:_0x5c842d}=_0xcba12,{x:_0x227064,y:_0x17bf04}=_0x4b8ff7[_0x5ca5db(0x23f)](u['Vector2']['FromArray']([_0x4dc938,_0x5c842d])),{scaleX:_0x5ecb79,scaleY:_0x544069}=_0x4b8ff7[_0x5ca5db(0x213)](),_0x4917ce=_0x4b8ff7[_0x5ca5db(0x3c9)](u[_0x5ca5db(0x242)][_0x5ca5db(0x25d)]),_0x5cf358=_0x4b8ff7[_0x5ca5db(0x452)](u[_0x5ca5db(0x1f3)][_0x5ca5db(0x41e)]([_0x227064,_0x17bf04]),_0x4917ce),_0x53d373=_0x16c050[_0x5ca5db(0x427)](_0x4dc938,_0x5c842d,_0x5ecb79,_0x544069,_0x5cf358);((_0x12c789=this['_lastPointer'])==null?void 0x0:_0x12c789['column'])===_0x53d373[_0x5ca5db(0x3b3)]&&((_0x1291f6=this[_0x5ca5db(0x33a)])==null?void 0x0:_0x1291f6[_0x5ca5db(0x3da)])===_0x53d373[_0x5ca5db(0x3da)]||this[_0x5ca5db(0x2ea)][_0x5ca5db(0x19e)](_0x15c25=>{_0x15c25['onMouseMove'](_0x53d373);});},0x64));})),this['disposeWithMe']((0x0,n[_0x36c8a4(0x292)])(()=>{const _0x1dfe21=_0x36c8a4;var _0x48bb58;(_0x48bb58=this[_0x1dfe21(0x37b)])==null||_0x48bb58['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x465160,_0x257cc5){const _0x39f2ce=_0x4fde36;let _0x5775d5=this[_0x39f2ce(0x3ab)][_0x39f2ce(0x204)]();if(!_0x5775d5)return;let _0x3c7c7a=this[_0x39f2ce(0x2c5)]();if(!_0x3c7c7a)return;this['_cursors'][_0x39f2ce(0x19e)](_0x5599e4=>{const _0x15dc0d=_0x39f2ce;_0x5599e4[_0x15dc0d(0x17e)]();});let {scene:_0x1f3321}=_0x3c7c7a,_0x23dd46=Se(Array[_0x39f2ce(0x412)](_0x257cc5[_0x39f2ce(0x40d)]()))[_0x39f2ce(0x42a)](_0x587a43=>{const _0x2c5d79=_0x39f2ce;let {color:_0x3b62a0,range:_0x310782,name:_0x21396d,selection:_0x5901ab,sheetID:_0x5426b5}=_0x587a43,{startColumn:_0xe2d080,startRow:_0x5cbe0c,endColumn:_0x18f629,endRow:_0x49107c}=_0x310782,_0x475c61=(0x0,v['getCoordByCell'])(_0x5cbe0c,_0xe2d080,_0x1f3321,_0x5775d5),_0x240b99=(0x0,v[_0x2c5d79(0x1c1)])(_0x49107c,_0x18f629,_0x1f3321,_0x5775d5),{columnHeaderHeightAndMarginTop:_0x7cf100}=_0x5775d5,{startX:_0x100bc7,startY:_0x23f08e}=_0x475c61,{endX:_0x5ba764,endY:_0x522126}=_0x240b99,_0x5af001=_0x5ba764-_0x100bc7,_0x513af3=_0x522126-_0x23f08e;return new xe(_0x21396d,{'labelPosition':_0x23f08e-_0x7cf100>=0x14?'top':_0x2c5d79(0x348),'sheetID':_0x5426b5,'range':_0x310782,'color':_0x3b62a0,'name':_0x21396d,'selection':_0x5901ab,'left':_0x100bc7,'top':_0x23f08e,'width':_0x5af001,'height':_0x513af3,'evented':!0x1,'zIndex':0x1389});});_0x1f3321['addObjects'](_0x23dd46,0x1),this['_cursors']=new Set(_0x23dd46);}['_removeCollabCursors'](){const _0x228f59=_0x4fde36;var _0x28f316;(_0x28f316=this['_cursors'])==null||_0x28f316[_0x228f59(0x19e)](_0x53293f=>_0x53293f[_0x228f59(0x295)]());}[_0x4fde36(0x2c5)](){const _0x43f89b=_0x4fde36;return(0x0,v[_0x43f89b(0x3f2)])(this[_0x43f89b(0x46c)]['unit'],this[_0x43f89b(0x46c)]);}};z=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(v[_0x4fde36(0x221)])),S(0x2,(0x0,n['Inject'])(F)),S(0x3,(0x0,n['Inject'])(n['ThemeService']))],z);function Se(_0x2f0d5a){const _0x45403d=_0x4fde36;let _0x35f50d=new Map();return _0x2f0d5a[_0x45403d(0x19e)](_0x129a26=>{const _0x40e1d8=_0x45403d;if(_0x35f50d['has'](_0x129a26[_0x40e1d8(0x2e7)])){let _0xc82360=_0x35f50d[_0x40e1d8(0x3bd)](_0x129a26[_0x40e1d8(0x2e7)]);_0xc82360[_0x40e1d8(0x1d4)]+=',\x20'+_0x129a26[_0x40e1d8(0x1d4)];}else _0x35f50d[_0x40e1d8(0x1a4)](_0x129a26[_0x40e1d8(0x2e7)],_0x129a26);}),Array[_0x45403d(0x412)](_0x35f50d[_0x45403d(0x40d)]());}let B=class extends n[_0x4fde36(0x18c)]{constructor(_0x5bbec0,_0x5b2f1d,_0x26a215){const _0x2d1fb1=_0x4fde36;super(),this[_0x2d1fb1(0x46c)]=_0x5bbec0,this[_0x2d1fb1(0x25a)]=_0x5b2f1d,this[_0x2d1fb1(0x21e)]=_0x26a215,x(this,_0x2d1fb1(0x2ea),new Set()),x(this,_0x2d1fb1(0x46a),!0x1),x(this,_0x2d1fb1(0x258),!0x1),x(this,_0x2d1fb1(0x357),new Map()),this[_0x2d1fb1(0x392)]();}['dispose'](){const _0x45d2f0=_0x4fde36;this[_0x45d2f0(0x349)](),super[_0x45d2f0(0x295)]();}['_init'](){const _0x46f5a4=_0x4fde36;let _0x5b3b1c=this['_context']['unit'][_0x46f5a4(0x304)]['activeSlideId$'],_0x12a4e1=this[_0x46f5a4(0x25a)][_0x46f5a4(0x2cb)](this[_0x46f5a4(0x46c)]['unitId']);this[_0x46f5a4(0x32d)]((0x0,n[_0x46f5a4(0x292)])((0x0,i[_0x46f5a4(0x2f7)])([_0x12a4e1,_0x5b3b1c,this['_themeService']['currentTheme$']])['pipe']((0x0,i[_0x46f5a4(0x328)])(this[_0x46f5a4(0x2d2)]))[_0x46f5a4(0x18e)](([_0x286ebc,_0xe58cdc])=>{const _0x4953a2=_0x46f5a4;let _0xab2e2c=new Map();_0x286ebc[_0x4953a2(0x19e)]((_0x24368c,_0x4f564b)=>{const _0x2d7816=_0x4953a2;_0x24368c['subUnitId']===_0xe58cdc&&_0xab2e2c['set'](_0x4f564b,{..._0x24368c,'color':this[_0x2d7816(0x21e)][_0x2d7816(0x3b5)](_0x24368c[_0x2d7816(0x403)])});}),this['_latestCursors']=_0xab2e2c,this[_0x4953a2(0x1e2)]();})));let _0x55f1d4=this[_0x46f5a4(0x46c)]['scene'];this[_0x46f5a4(0x32d)]((0x0,n[_0x46f5a4(0x292)])(_0x55f1d4['addObject$'][_0x46f5a4(0x19f)]((0x0,i[_0x46f5a4(0x328)])(this[_0x46f5a4(0x2d2)]))['subscribe'](()=>{const _0x5472cd=_0x46f5a4;this[_0x5472cd(0x258)]||this[_0x5472cd(0x1e2)]();})));}[_0x4fde36(0x1e2)](){const _0x444f6a=_0x4fde36;this[_0x444f6a(0x46a)]||(this['_renderScheduled']=!0x0,Promise[_0x444f6a(0x308)]()[_0x444f6a(0x3fb)](()=>{const _0x1bf8b8=_0x444f6a;this[_0x1bf8b8(0x46a)]=!0x1,this[_0x1bf8b8(0x1c8)]();}));}[_0x4fde36(0x1c8)](){const _0x59e82b=_0x4fde36;var _0x476c2f;this[_0x59e82b(0x349)]();let _0x26bd06=(_0x476c2f=this['_context']['unit'][_0x59e82b(0x304)][_0x59e82b(0x298)]())==null?void 0x0:_0x476c2f[_0x59e82b(0x473)]();if(!_0x26bd06)return;let _0x4898ea=[];if(this[_0x59e82b(0x357)][_0x59e82b(0x19e)]((_0x521d96,_0x38f30c)=>{const _0x26d3d4=_0x59e82b;_0x521d96[_0x26d3d4(0x21c)]===_0x26bd06&&_0x521d96[_0x26d3d4(0x38f)][_0x26d3d4(0x19e)](_0x5716af=>{const _0x17d8ac=_0x26d3d4;let _0x1a6fe2=(0x0,_[_0x17d8ac(0x324)])(_0x521d96['unitId'],_0x521d96[_0x17d8ac(0x21c)],_0x5716af),_0x3975c9=this[_0x17d8ac(0x398)](_0x1a6fe2);if(!_0x3975c9)return;let _0x5437f9=this[_0x17d8ac(0x3c1)](_0x3975c9);_0x4898ea[_0x17d8ac(0x2e8)](new pe(_0x17d8ac(0x1d0)+_0x38f30c+'-'+_0x5716af,{..._0x521d96,'left':_0x5437f9[_0x17d8ac(0x3b6)],'top':_0x5437f9[_0x17d8ac(0x2e1)],'width':_0x5437f9[_0x17d8ac(0x395)],'height':_0x5437f9[_0x17d8ac(0x380)],'angle':_0x3975c9['angle'],'evented':!0x1,'zIndex':O}));});}),_0x4898ea[_0x59e82b(0x2ee)]===0x0){this[_0x59e82b(0x46c)][_0x59e82b(0x1e3)]['makeDirty'](!0x0);return;}this[_0x59e82b(0x258)]=!0x0,this[_0x59e82b(0x46c)]['scene'][_0x59e82b(0x3d6)](_0x4898ea,O),this[_0x59e82b(0x258)]=!0x1,this[_0x59e82b(0x2ea)]=new Set(_0x4898ea),this['_context'][_0x59e82b(0x1e3)][_0x59e82b(0x17e)](!0x0);}[_0x4fde36(0x349)](){const _0x4bf13e=_0x4fde36;let _0x286810=Array[_0x4bf13e(0x412)](this[_0x4bf13e(0x2ea)]);if(_0x286810['length']===0x0)return;let _0x2d775c=this[_0x4bf13e(0x46c)][_0x4bf13e(0x1e3)];_0x4bf13e(0x24e)in _0x2d775c&&typeof _0x2d775c['removeObjects']==_0x4bf13e(0x1f5)?_0x2d775c[_0x4bf13e(0x24e)](_0x286810):_0x286810[_0x4bf13e(0x19e)](_0x3303ef=>{const _0x59689f=_0x4bf13e;_0x59689f(0x296)in _0x2d775c&&typeof _0x2d775c[_0x59689f(0x296)]=='function'?_0x2d775c[_0x59689f(0x296)](_0x3303ef):_0x3303ef[_0x59689f(0x295)]();}),this[_0x4bf13e(0x2ea)]['clear'](),_0x2d775c[_0x4bf13e(0x17e)](!0x0);}[_0x4fde36(0x398)](_0x2ed7b9){const _0x5f59e3=_0x4fde36;var _0x5ae562,_0x26f4ec,_0x29aa64;let _0x1f6142=this[_0x5f59e3(0x46c)][_0x5f59e3(0x1e3)];return(_0x5ae562=(_0x26f4ec=(_0x29aa64=_0x1f6142[_0x5f59e3(0x461)])==null?void 0x0:_0x29aa64[_0x5f59e3(0x1bd)](_0x1f6142,_0x2ed7b9))==null?_0x1f6142['getObject'](_0x2ed7b9):_0x26f4ec)==null?null:_0x5ae562;}['_getObjectBounds'](_0xe0275b){const _0x15b0f3=_0x4fde36;var _0x1d9e00,_0x4e236;let _0x5e8ec2=_0xe0275b;return(_0x1d9e00=(_0x4e236=_0x5e8ec2[_0x15b0f3(0x20d)])==null?void 0x0:_0x4e236[_0x15b0f3(0x1bd)](_0x5e8ec2))==null?{'left':_0xe0275b[_0x15b0f3(0x3b6)],'top':_0xe0275b['top'],'width':_0xe0275b['width'],'height':_0xe0275b[_0x15b0f3(0x380)]}:_0x1d9e00;}};B=C([S(0x1,(0x0,n[_0x4fde36(0x2ff)])(F)),S(0x2,(0x0,n['Inject'])(n[_0x4fde36(0x41b)]))],B);let V=class extends n[_0x4fde36(0x231)]{constructor(_0x3b2f79,_0x13b519,_0x4886f3,_0x3bca51,_0x58c25f,_0x15760c){const _0x3e44a6=_0x4fde36;super(),this[_0x3e44a6(0x39a)]=_0x3b2f79,this[_0x3e44a6(0x1c6)]=_0x13b519,this[_0x3e44a6(0x2ed)]=_0x4886f3,this[_0x3e44a6(0x2fe)]=_0x3bca51,this[_0x3e44a6(0x41d)]=_0x58c25f,this[_0x3e44a6(0x46b)]=_0x15760c,this[_0x3e44a6(0x1c3)](),this[_0x3e44a6(0x175)]();}[_0x4fde36(0x1c3)](){const _0xac9bb4=_0x4fde36;this[_0xac9bb4(0x32d)](this[_0xac9bb4(0x39a)][_0xac9bb4(0x26e)](()=>{const _0xcac11=_0xac9bb4;if(this['_localCacheService'][_0xcac11(0x2c6)][_0xcac11(0x353)])return this['_localeService']['t'](_0xcac11(0x2d6));}));}[_0x4fde36(0x175)](){const _0x180216=_0x4fde36;this[_0x180216(0x32d)](this[_0x180216(0x2ed)][_0x180216(0x41a)][_0x180216(0x18e)](_0x3da6f2=>{const _0x34735c=_0x180216;_0x3da6f2['id']===t['CollaborationUIEventId'][_0x34735c(0x2d0)]&&this['_messageService'][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)]['Warning'],'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x3da6f2['id']===t[_0x34735c(0x168)]['CLOSE_ROOM']&&this[_0x34735c(0x2fe)]['show']({'type':o['MessageType']['Warning'],'content':this['_localeService']['t'](_0x34735c(0x483))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x243)]&&this[_0x34735c(0x41d)][_0x34735c(0x2f8)]({'title':this['_localeService']['t'](_0x34735c(0x3e7)),'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.permission.content'),'type':_0x34735c(0x3c7),'duration':0x0}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x399)]&&this['_notificationService'][_0x34735c(0x2f8)]({'title':this[_0x34735c(0x46b)]['t'](_0x34735c(0x3f9)),'content':this['_localeService']['t'](_0x34735c(0x3d5)),'type':'error','duration':0x0}),_0x3da6f2['id']===t[_0x34735c(0x168)]['JOIN_ROOM_FAILED']&&this['_messageService']['show']({'type':o[_0x34735c(0x1ac)][_0x34735c(0x394)],'content':this['_localeService']['t'](_0x3da6f2['data']||'')}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x320)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x394)],'content':this['_localeService']['t'](_0x34735c(0x42e))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x224)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x257)],'content':this[_0x34735c(0x46b)]['t'](_0x34735c(0x45e))}),_0x3da6f2['id']===t[_0x34735c(0x168)][_0x34735c(0x47a)]&&this[_0x34735c(0x2fe)][_0x34735c(0x2f8)]({'type':o[_0x34735c(0x1ac)][_0x34735c(0x257)],'content':this[_0x34735c(0x46b)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};V=C([S(0x0,r[_0x4fde36(0x2d9)]),S(0x1,t[_0x4fde36(0x1af)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x2b9)])),S(0x3,r[_0x4fde36(0x293)]),S(0x4,r[_0x4fde36(0x1e6)]),S(0x5,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],V);const H=(0x0,n[_0x4fde36(0x47c)])(_0x4fde36(0x3a8));let U=class extends n[_0x4fde36(0x18c)]{constructor(_0x3e53f6,_0x3840a6,_0x314008,_0x3e0252,_0x561413){const _0x371317=_0x4fde36;super(),this[_0x371317(0x441)]=_0x3e53f6,this[_0x371317(0x3c4)]=_0x3840a6,this[_0x371317(0x3fa)]=_0x314008,this[_0x371317(0x3e3)]=_0x3e0252,_0x561413?_0x561413[_0x371317(0x35d)]()[_0x371317(0x3fb)](()=>this['_init']()):(this[_0x371317(0x3c4)][_0x371317(0x1b6)](_0x371317(0x46d),_0x371317(0x1fa)),this[_0x371317(0x392)]());}async[_0x4fde36(0x392)](){const _0x3a1179=_0x4fde36;let _0x2dbb58=this[_0x3a1179(0x441)][_0x3a1179(0x3f6)](_0x3a1179(0x40f)),_0x6d66d9=this['_urlService'][_0x3a1179(0x3f6)](_0x3a1179(0x2e5)),_0x87f5bc=this[_0x3a1179(0x441)]['getParam'](_0x3a1179(0x318));if(!_0x2dbb58||!_0x6d66d9){this[_0x3a1179(0x3c4)][_0x3a1179(0x1b6)]('[CollaborationDataLoaderController]',_0x3a1179(0x2d5));return;}let _0x4d5fa0=await this[_0x3a1179(0x3e3)][_0x3a1179(0x484)](_0x2dbb58,Number(_0x6d66d9),_0x87f5bc);_0x4d5fa0&&_0x4d5fa0 instanceof n[_0x3a1179(0x29d)]&&this['_setupSubUnitSync'](_0x4d5fa0);}async[_0x4fde36(0x325)](_0x2b973f){const _0xbda23c=_0x4fde36;await this[_0xbda23c(0x432)](_0x2b973f),_0x2b973f[_0xbda23c(0x378)][_0xbda23c(0x19f)]((0x0,i[_0xbda23c(0x328)])(this[_0xbda23c(0x2d2)]))[_0xbda23c(0x18e)](_0x195e61=>{_0x195e61&&this['_updateURLWithCurrentState'](_0x195e61);}),this['_urlService'][_0xbda23c(0x386)][_0xbda23c(0x19f)]((0x0,i[_0xbda23c(0x328)])(this[_0xbda23c(0x2d2)]))['subscribe'](()=>this[_0xbda23c(0x432)](_0x2b973f));}[_0x4fde36(0x469)](_0x8b7358,_0x3b870f=!0x1){const _0x40d199=_0x4fde36;let _0x55df35=this[_0x40d199(0x441)][_0x40d199(0x3f6)](_0x40d199(0x318));_0x8b7358[_0x40d199(0x39c)]()!==_0x55df35&&this[_0x40d199(0x441)]['setParam'](_0x40d199(0x318),_0x8b7358['getSheetId'](),_0x3b870f);}async[_0x4fde36(0x432)](_0x47aeda){const _0x36d0f3=_0x4fde36;var _0x202584;let _0x105591=this[_0x36d0f3(0x441)]['getParam'](_0x36d0f3(0x318));if(!_0x105591||!_0x47aeda[_0x36d0f3(0x20f)](_0x105591)){let _0x5cc87e=_0x47aeda[_0x36d0f3(0x1d7)]()[0x0],_0x1d793f=_0x47aeda['getSheetBySheetId'](_0x5cc87e);if(!_0x1d793f)return;this[_0x36d0f3(0x469)](_0x1d793f,!0x0),await this[_0x36d0f3(0x3fa)][_0x36d0f3(0x1e8)](g[_0x36d0f3(0x211)]['id'],{'unitId':_0x47aeda[_0x36d0f3(0x448)](),'subUnitId':_0x5cc87e});return;}((_0x202584=_0x47aeda[_0x36d0f3(0x208)]())==null?void 0x0:_0x202584[_0x36d0f3(0x39c)]())!==_0x105591&&await this[_0x36d0f3(0x3fa)]['executeCommand'](g[_0x36d0f3(0x211)]['id'],{'unitId':_0x47aeda[_0x36d0f3(0x448)](),'subUnitId':_0x105591});}};U=C([S(0x0,H),S(0x1,n[_0x4fde36(0x314)]),S(0x2,n[_0x4fde36(0x375)]),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t['DataLoaderService'])),S(0x4,(0x0,n[_0x4fde36(0x16b)])(ee['IRemoteInstanceService']))],U);let W=class{constructor(_0x2050e6,_0x275fa8){const _0x1612f9=_0x4fde36;this['_transformService']=_0x2050e6,this[_0x1612f9(0x41f)]=_0x275fa8;}[_0x4fde36(0x3ea)](_0x235369){const _0x1e9bdf=_0x4fde36;this[_0x1e9bdf(0x3a6)](_0x235369),this[_0x1e9bdf(0x2b7)](_0x235369);}['transformRemoteChangeset'](_0x3f32de){const _0x3a2c08=_0x4fde36;let {unitID:_0x26e11b}=_0x3f32de,{redoCache:_0x1567a3}=this[_0x3a2c08(0x41f)][_0x3a2c08(0x417)](_0x26e11b)['with'](f[_0x3a2c08(0x172)])[_0x3a2c08(0x1a7)]();if(_0x1567a3[_0x3a2c08(0x2ee)]===0x0)return _0x3f32de;let _0x378d1d=n[_0x3a2c08(0x3e4)][_0x3a2c08(0x1b1)](_0x3f32de['mutations'][0x0]);for(let _0x2b9951=0x0;_0x2b9951<_0x1567a3[_0x3a2c08(0x2ee)];_0x2b9951++){let _0x537682={'id':_0x3a2c08(0x39b),'params':{..._0x1567a3[_0x2b9951]}},_0x3982f9=this[_0x3a2c08(0x251)][_0x3a2c08(0x36e)](_0x378d1d,_0x537682,!0x1);if((0x0,p[_0x3a2c08(0x3b7)])(_0x3982f9))throw _0x3982f9[_0x3a2c08(0x3c7)];_0x378d1d=_0x3982f9['m1Prime'];}return{...n['Tools'][_0x3a2c08(0x1b1)](_0x3f32de),'mutations':[_0x378d1d]};}[_0x4fde36(0x3a6)](_0x2473ef){const _0x2ac68e=_0x4fde36;let {unitID:_0x3d5a1e}=_0x2473ef,_0x2af178=this[_0x2ac68e(0x41f)][_0x2ac68e(0x417)](_0x3d5a1e)['with'](f[_0x2ac68e(0x172)]),{undoCache:_0x4371a7,redoCache:_0x3e773e}=_0x2af178['getUndoRedoMutationParamsCache']();if(_0x4371a7[_0x2ac68e(0x2ee)]===0x0||_0x3e773e[_0x2ac68e(0x2ee)]===0x0)return;let _0x495807=[],_0x40de4f=[],_0x14a8e1=n[_0x2ac68e(0x3e4)][_0x2ac68e(0x1b1)](_0x2473ef['mutations'][0x0]),_0x29870c=n[_0x2ac68e(0x3e4)][_0x2ac68e(0x1b1)](_0x2473ef['mutations'][0x0]);for(let _0x2301f8=_0x4371a7[_0x2ac68e(0x2ee)]-0x1;_0x2301f8>=0x0;_0x2301f8--){let _0x190788={'id':_0x2ac68e(0x39b),'params':{..._0x4371a7[_0x2301f8]}},_0x2bad1f={'id':_0x2ac68e(0x39b),'params':{..._0x3e773e[_0x2301f8]}},_0x16f102=this[_0x2ac68e(0x251)]['transformMutation'](_0x14a8e1,_0x190788,!0x1),_0xdbc3d3=this[_0x2ac68e(0x251)][_0x2ac68e(0x36e)](_0x29870c,_0x2bad1f,!0x1);if((0x0,p[_0x2ac68e(0x3b7)])(_0x16f102))throw _0x16f102['error'];if((0x0,p[_0x2ac68e(0x3b7)])(_0xdbc3d3))throw _0xdbc3d3[_0x2ac68e(0x3c7)];_0x495807[_0x2ac68e(0x44a)](_0x16f102['m2Prime'][_0x2ac68e(0x198)]),_0x40de4f['unshift'](_0xdbc3d3[_0x2ac68e(0x22c)][_0x2ac68e(0x198)]),_0x14a8e1=_0x16f102[_0x2ac68e(0x447)],_0x29870c=_0xdbc3d3[_0x2ac68e(0x447)];}_0x2af178[_0x2ac68e(0x2c8)]({'undoCache':_0x495807,'redoCache':_0x40de4f});}[_0x4fde36(0x2b7)](_0x3ba982){const _0x3f64e9=_0x4fde36;let {unitID:_0x241e8f}=_0x3ba982,_0x425f95=this[_0x3f64e9(0x41f)]['getRenderById'](_0x241e8f)[_0x3f64e9(0x16e)](f[_0x3f64e9(0x172)]),_0x4d74ea=_0x425f95['getActiveRange']();if(_0x4d74ea==null)return;let _0x11c2d5=[{'id':_0x3f64e9(0x39b),'params':{'unitId':_0x3ba982[_0x3f64e9(0x478)],'actions':null,'textRanges':[_0x4d74ea]}}],_0x52d80c=this['_transformService']['transformMutationsWithChangeset'](_0x3ba982,_0x11c2d5);if(!(0x0,p[_0x3f64e9(0x411)])(_0x52d80c))throw _0x52d80c['error'];let _0x37780a=_0x52d80c['m2Prime'][0x0][_0x3f64e9(0x198)][_0x3f64e9(0x347)];Array[_0x3f64e9(0x343)](_0x37780a)&&_0x37780a['length']&&_0x425f95[_0x3f64e9(0x35f)](_0x37780a[0x0]);}};W=C([S(0x0,p[_0x4fde36(0x2f0)]),S(0x1,u[_0x4fde36(0x374)])],W);let G=class{constructor(_0x2b7ccf,_0xec0204,_0x2ac3dc){const _0x6da006=_0x4fde36;this['_injector']=_0x2b7ccf,this[_0x6da006(0x251)]=_0xec0204,this[_0x6da006(0x457)]=_0x2ac3dc;}[_0x4fde36(0x283)](_0x54999b){this['_transformHistoryAndStateStack'](_0x54999b);}[_0x4fde36(0x476)](_0x216259){const _0x58e927=_0x4fde36;let {unitID:_0x1b93f3}=_0x216259,{collaboration:_0x56613d}=this[_0x58e927(0x457)][_0x58e927(0x37a)](_0x1b93f3);if(_0x56613d[_0x58e927(0x2ee)]===0x0)return _0x216259;let _0x285363=n[_0x58e927(0x3e4)]['deepClone'](_0x216259[_0x58e927(0x446)][0x0]);for(let _0x38882e=0x0;_0x38882e<_0x56613d[_0x58e927(0x2ee)];_0x38882e++){let _0x22223a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x56613d[_0x38882e][_0x58e927(0x1e9)],..._0x56613d[_0x38882e][_0x58e927(0x26d)]}},_0x16041b=this[_0x58e927(0x251)][_0x58e927(0x36e)](_0x285363,_0x22223a,!0x1);if((0x0,p[_0x58e927(0x3b7)])(_0x16041b))throw _0x16041b['error'];_0x285363=_0x16041b[_0x58e927(0x447)];}return{...n['Tools'][_0x58e927(0x1b1)](_0x216259),'mutations':[_0x285363]};}['_transformHistoryAndStateStack'](_0x14ba84){const _0x34a34a=_0x4fde36;let {unitID:_0x2e84b8}=_0x14ba84,{history:_0x2cc7ff,collaboration:_0x3703ec}=this['_docStateChangeManagerService'][_0x34a34a(0x37a)](_0x2e84b8);if(_0x2cc7ff[_0x34a34a(0x2ee)]===0x0&&_0x3703ec[_0x34a34a(0x2ee)]===0x0)return;let _0x53d23b=[],_0x34a8e6=[],_0x3ba63e=n['Tools'][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]),_0x10705a=n['Tools'][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]);for(let _0x438c0d=_0x2cc7ff[_0x34a34a(0x2ee)]-0x1;_0x438c0d>=0x0;_0x438c0d--){let _0x2bee92={'id':_0x34a34a(0x39b),'params':{'unitId':_0x2cc7ff[_0x438c0d][_0x34a34a(0x1e9)],..._0x2cc7ff[_0x438c0d][_0x34a34a(0x40c)]}},_0xedf592={'id':_0x34a34a(0x39b),'params':{'unitId':_0x2cc7ff[_0x438c0d][_0x34a34a(0x1e9)],..._0x2cc7ff[_0x438c0d]['redoState']}},_0x5d4a43=this['_transformService'][_0x34a34a(0x36e)](_0x3ba63e,_0x2bee92,!0x1),_0x35f07f=this['_transformService'][_0x34a34a(0x36e)](_0x10705a,_0xedf592,!0x1);if((0x0,p[_0x34a34a(0x3b7)])(_0x5d4a43))throw _0x5d4a43[_0x34a34a(0x3c7)];if((0x0,p[_0x34a34a(0x3b7)])(_0x35f07f))throw _0x35f07f[_0x34a34a(0x3c7)];_0x53d23b['unshift']({..._0x2cc7ff[_0x438c0d],'undoState':_0x5d4a43['m2Prime'][_0x34a34a(0x198)],'redoState':_0x35f07f['m2Prime'][_0x34a34a(0x198)]}),_0x3ba63e=_0x5d4a43[_0x34a34a(0x447)],_0x10705a=_0x35f07f[_0x34a34a(0x447)];}_0x3ba63e=n[_0x34a34a(0x3e4)][_0x34a34a(0x1b1)](_0x14ba84['mutations'][0x0]),_0x10705a=n[_0x34a34a(0x3e4)]['deepClone'](_0x14ba84['mutations'][0x0]);for(let _0x53749a=_0x3703ec[_0x34a34a(0x2ee)]-0x1;_0x53749a>=0x0;_0x53749a--){let _0x21412f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3703ec[_0x53749a][_0x34a34a(0x1e9)],..._0x3703ec[_0x53749a][_0x34a34a(0x40c)]}},_0x2ea4f5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3703ec[_0x53749a]['unitId'],..._0x3703ec[_0x53749a]['redoState']}},_0x2ee786=this[_0x34a34a(0x251)][_0x34a34a(0x36e)](_0x3ba63e,_0x21412f,!0x1),_0x53061f=this[_0x34a34a(0x251)][_0x34a34a(0x36e)](_0x10705a,_0x2ea4f5,!0x1);if((0x0,p[_0x34a34a(0x3b7)])(_0x2ee786))throw _0x2ee786[_0x34a34a(0x3c7)];if((0x0,p[_0x34a34a(0x3b7)])(_0x53061f))throw _0x53061f[_0x34a34a(0x3c7)];_0x34a8e6[_0x34a34a(0x44a)]({..._0x3703ec[_0x53749a],'undoState':_0x2ee786[_0x34a34a(0x22c)]['params'],'redoState':_0x53061f['m2Prime'][_0x34a34a(0x198)]}),_0x3ba63e=_0x2ee786[_0x34a34a(0x447)],_0x10705a=_0x53061f[_0x34a34a(0x447)];}this[_0x34a34a(0x457)]['setStateCache'](_0x2e84b8,{'history':_0x53d23b,'collaboration':_0x34a8e6});}};G=C([S(0x0,(0x0,n['Inject'])(n[_0x4fde36(0x197)])),S(0x1,p[_0x4fde36(0x2f0)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(m[_0x4fde36(0x1c4)]))],G);let K=class{constructor(_0xe4fc93,_0x33808e){const _0x325776=_0x4fde36;this['_injector']=_0xe4fc93,this[_0x325776(0x251)]=_0x33808e;}[_0x4fde36(0x449)](_0x31860c){const _0x4cd7d=_0x4fde36;var _0x1522c7;let _0x3470dc=this[_0x4cd7d(0x1df)][_0x4cd7d(0x3bd)](m[_0x4cd7d(0x2f5)]),_0xfd54e8=(_0x1522c7=_0x3470dc[_0x4cd7d(0x387)]())==null?[]:_0x1522c7;if(_0xfd54e8[_0x4cd7d(0x2ee)]===0x0)return;let _0x5410a8=_0x31860c[_0x4cd7d(0x478)],_0x36b04d=[{'id':_0x4cd7d(0x39b),'params':{'unitId':_0x5410a8,'actions':null,'textRanges':_0xfd54e8}}],_0x4619d6=this[_0x4cd7d(0x251)][_0x4cd7d(0x32e)](_0x31860c,_0x36b04d);if(!(0x0,p[_0x4cd7d(0x411)])(_0x4619d6))throw _0x4619d6[_0x4cd7d(0x3c7)];let _0x6cdf69=_0x4619d6[_0x4cd7d(0x22c)][0x0][_0x4cd7d(0x198)]['textRanges'];Array[_0x4cd7d(0x343)](_0x6cdf69)&&_0x6cdf69[_0x4cd7d(0x2ee)]&&_0x3470dc[_0x4cd7d(0x2b4)](_0x6cdf69,{'unitId':_0x5410a8,'subUnitId':_0x5410a8},!0x1);}};K=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,p['ITransformService'])],K);let q=class extends n[_0x4fde36(0x231)]{constructor(_0x5a7b80,_0x2e6d8e,_0x40b3d0,_0x22ab03,_0x5ac1a9,_0x509080,_0x386276){const _0xaa8e75=_0x4fde36;super(),this[_0xaa8e75(0x25c)]=_0x5a7b80,this[_0xaa8e75(0x410)]=_0x2e6d8e,this[_0xaa8e75(0x407)]=_0x40b3d0,this['_docTransformSelectionsService']=_0x22ab03,this['_docSyncEditingCollabCursorService']=_0x5ac1a9,this[_0xaa8e75(0x2fe)]=_0x509080,this[_0xaa8e75(0x46b)]=_0x386276,x(this,_0xaa8e75(0x2b2),new i['BehaviorSubject'](t[_0xaa8e75(0x45c)][_0xaa8e75(0x2eb)])),this[_0xaa8e75(0x415)]();}[_0x4fde36(0x415)](){const _0xa6539d=_0x4fde36;this[_0xa6539d(0x32d)](this[_0xa6539d(0x25c)]['entityInit$'][_0xa6539d(0x18e)](_0x56cbde=>{const _0xcd97dc=_0xa6539d;_0x56cbde instanceof t['DocCollaborationEntity']&&_0x56cbde[_0xcd97dc(0x29b)]({'onTransformIME':_0x58f59e=>this[_0xcd97dc(0x410)]['transformIMECache'](_0x58f59e),'onTransformState':_0x4f774f=>this['_docTransformStateCacheService'][_0xcd97dc(0x283)](_0x4f774f),'onTransformSelections':_0xad56ef=>this[_0xcd97dc(0x1f8)][_0xcd97dc(0x449)](_0xad56ef),'onSyncEditingCollabCursor':_0x10d5a0=>this['_docSyncEditingCollabCursorService'][_0xcd97dc(0x40b)](_0x10d5a0),'onTransformRemoteChangesetByIMECache':_0x1bbcb4=>this[_0xcd97dc(0x410)][_0xcd97dc(0x476)](_0x1bbcb4),'onTransformRemoteChangesetByStateCache':_0x3ce062=>this[_0xcd97dc(0x407)][_0xcd97dc(0x476)](_0x3ce062)});}));}};function _0x4dee(_0x27e75b,_0x410a0){_0x27e75b=_0x27e75b-0x163;const _0x29fa7c=_0x29fa();let _0x4dee3c=_0x29fa7c[_0x27e75b];return _0x4dee3c;}q=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x21d)])),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(W)),S(0x2,(0x0,n['Inject'])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(j)),S(0x5,r['IMessageService']),S(0x6,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],q);let J=class extends n[_0x4fde36(0x231)]{constructor(_0x300226,_0x27574f,_0x2bf5b4,_0x2e44af){const _0x1d40ef=_0x4fde36;super(),this[_0x1d40ef(0x1df)]=_0x300226,this[_0x1d40ef(0x17c)]=_0x27574f,this['_logService']=_0x2bf5b4,this['_collaborationSessionService']=_0x2e44af,x(this,_0x1d40ef(0x282),void 0x0),this['_init']();}[_0x4fde36(0x392)](){const _0x846a8f=_0x4fde36;this[_0x846a8f(0x1b0)](),this[_0x846a8f(0x22b)](),this[_0x846a8f(0x350)](),this[_0x846a8f(0x363)]();}[_0x4fde36(0x363)](){const _0x46b5c6=_0x4fde36;this['disposeWithMe'](this[_0x46b5c6(0x2f4)][_0x46b5c6(0x43b)][_0x46b5c6(0x18e)](_0x20c9df=>{const _0x267b68=_0x46b5c6;this[_0x267b68(0x282)]=_0x20c9df==null?void 0x0:_0x20c9df[_0x267b68(0x466)];}));}[_0x4fde36(0x1b0)](){const _0x121647=_0x4fde36;let _0x511015=_0x398244=>{const _0x46ce72=_0x4dee;var _0x40eb39;this[_0x46ce72(0x464)](_0x46ce72(0x3c7),_0x46ce72(0x439)+_0x398244[_0x46ce72(0x43c)]+_0x46ce72(0x27f)+_0x398244[_0x46ce72(0x29a)]+':'+_0x398244['lineno']+':'+_0x398244[_0x46ce72(0x22e)]+'\x0a'+(((_0x40eb39=_0x398244[_0x46ce72(0x3c7)])==null?void 0x0:_0x40eb39[_0x46ce72(0x177)])||''));};window[_0x121647(0x480)](_0x121647(0x3c7),_0x511015),this[_0x121647(0x32d)](()=>{const _0x3210c5=_0x121647;window[_0x3210c5(0x27a)](_0x3210c5(0x3c7),_0x511015);});}[_0x4fde36(0x22b)](){const _0x81d00e=_0x4fde36;let _0x54bd7b=_0x24c621=>{const _0xe12f85=_0x4dee;this[_0xe12f85(0x464)](_0xe12f85(0x3c7),_0xe12f85(0x218)+_0x24c621[_0xe12f85(0x261)]);};window[_0x81d00e(0x480)](_0x81d00e(0x2fb),_0x54bd7b),this[_0x81d00e(0x32d)](()=>{const _0x2f648f=_0x81d00e;window['removeEventListener'](_0x2f648f(0x2fb),_0x54bd7b);});}['_monkeyPatchLogService'](){const _0x103bd1=_0x4fde36;let _0x52f71d=this['_logService']['error']['bind'](this['_logService']);this[_0x103bd1(0x3c4)]['error']=(..._0x5b9527)=>{const _0x13ddab=_0x103bd1;let _0x2c324a=_0x5b9527['map'](_0x14fd85=>_0x14fd85 instanceof Error?_0x14fd85[_0x13ddab(0x43c)]+'\x0a'+_0x14fd85[_0x13ddab(0x177)]:String(_0x14fd85))['join']('\x20');this['_uploadLog'](_0x13ddab(0x3c7),_0x13ddab(0x37e)+_0x2c324a),_0x52f71d(..._0x5b9527);},this[_0x103bd1(0x32d)](()=>{const _0x371c2a=_0x103bd1;this[_0x371c2a(0x3c4)]['error']=_0x52f71d;});}[_0x4fde36(0x464)](_0x3e45d6,_0x52097c){const _0x303f5c=_0x4fde36;try{let _0x40a22d={'userId':this[_0x303f5c(0x282)],'logLabel':_0x3e45d6,'content':_0x52097c};this[_0x303f5c(0x17c)][_0x303f5c(0x1e4)](_0x303f5c(0x2a9),{'body':_0x40a22d})[_0x303f5c(0x246)](()=>{});}catch{}}};J=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,(0x0,n['Inject'])(d[_0x4fde36(0x2e2)])),S(0x2,n[_0x4fde36(0x314)]),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(t[_0x4fde36(0x289)]))],J);function Ce({state$:_0x1e4969,interactionBlocked$:_0x4d7904}){const _0x8a4e83=_0x4fde36;return(0x0,l[_0x8a4e83(0x45b)])(l[_0x8a4e83(0x1ea)],{'children':[(0x0,r[_0x8a4e83(0x2be)])(_0x4d7904,!0x1,!0x0)&&(0x0,l[_0x8a4e83(0x307)])(_0x8a4e83(0x3b8),{'data-u-comp':_0x8a4e83(0x2f6),'aria-hidden':!0x0,'className':_0x8a4e83(0x222)}),(0x0,l[_0x8a4e83(0x307)])(we,{'state$':_0x1e4969})]});}function we({state$:_0xf912bd}){const _0x45a3d4=_0x4fde36;let _0x249409=(0x0,r[_0x45a3d4(0x2be)])(_0xf912bd,null,!0x0);return _0x249409?(0x0,l[_0x45a3d4(0x45b)])(_0x45a3d4(0x3b8),{'data-u-comp':_0x45a3d4(0x44d),'role':'alert','className':_0x45a3d4(0x44c),'children':[(0x0,l['jsx'])(s[_0x45a3d4(0x361)],{'className':_0x45a3d4(0x2f3)}),(0x0,l[_0x45a3d4(0x307)])('span',{'children':_0x249409['content']}),(0x0,l['jsx'])(o[_0x45a3d4(0x3f1)],{'size':_0x45a3d4(0x195),'variant':_0x45a3d4(0x23b),'onClick':()=>window[_0x45a3d4(0x40e)][_0x45a3d4(0x26f)](),'children':_0x249409[_0x45a3d4(0x317)]})]}):null;}const Y='snapshot-loading-';let X=class extends n[_0x4fde36(0x231)]{constructor(_0x991809,_0x6b53c8,_0x3e510d,_0x4da6e9,_0x796e4b,_0x224e13,_0x32d962,_0xadacb1){const _0x4ed81b=_0x4fde36;super(),this[_0x4ed81b(0x188)]=_0x991809,this[_0x4ed81b(0x2fe)]=_0x6b53c8,this[_0x4ed81b(0x46b)]=_0x3e510d,this[_0x4ed81b(0x1df)]=_0x4da6e9,this['_pluginService']=_0x796e4b,this[_0x4ed81b(0x455)]=_0x32d962,this[_0x4ed81b(0x441)]=_0xadacb1,x(this,_0x4ed81b(0x2f2),new i[(_0x4ed81b(0x299))](null)),x(this,_0x4ed81b(0x1ae),new i[(_0x4ed81b(0x299))](!0x1)),x(this,_0x4ed81b(0x3ca),new Set()),x(this,_0x4ed81b(0x267),new Map()),x(this,_0x4ed81b(0x269),new Set()),x(this,'_latestStates',new Map()),x(this,'_previewUnitId',void 0x0),x(this,_0x4ed81b(0x43f),void 0x0),x(this,_0x4ed81b(0x1ef),void 0x0),x(this,'timeoutState$',this[_0x4ed81b(0x2f2)][_0x4ed81b(0x45f)]());let _0x346dc9=()=>(0x0,c[_0x4ed81b(0x3ac)])(Ce,{'state$':this[_0x4ed81b(0x26c)],'interactionBlocked$':this[_0x4ed81b(0x1ae)]});this[_0x4ed81b(0x32d)](_0x224e13[_0x4ed81b(0x29f)](r[_0x4ed81b(0x3c0)][_0x4ed81b(0x35c)],()=>(0x0,r[_0x4ed81b(0x3f0)])(_0x346dc9,this['_injector']))),this[_0x4ed81b(0x32d)](this['_snapshotLoadingService'][_0x4ed81b(0x225)][_0x4ed81b(0x18e)](_0x56ddc7=>{const _0x15ca37=_0x4ed81b;this['_latestStates']=_0x56ddc7,_0x56ddc7[_0x15ca37(0x19e)](_0x1dcdde=>{const _0x3dca2d=_0x15ca37;this[_0x3dca2d(0x2c2)](_0x1dcdde),this[_0x3dca2d(0x263)](_0x1dcdde);});})),this['disposeWithMe'](this[_0x4ed81b(0x441)]['urlChange$'][_0x4ed81b(0x18e)](()=>{const _0x32f09e=_0x4ed81b;this[_0x32f09e(0x42f)][_0x32f09e(0x19e)](_0x349cb0=>{const _0x4a3206=_0x32f09e;this['_updateMessage'](_0x349cb0),this[_0x4a3206(0x263)](_0x349cb0);});}));}[_0x4fde36(0x295)](){const _0x2397ee=_0x4fde36;var _0x358e41;if(this[_0x2397ee(0x3ca)][_0x2397ee(0x19e)](_0xa3c041=>this[_0x2397ee(0x2fe)][_0x2397ee(0x3d7)](_0xa3c041)),this[_0x2397ee(0x3ca)][_0x2397ee(0x2ca)](),this['_previewUnitId']){var _0x44606a;(_0x44606a=this[_0x2397ee(0x1ef)])==null||_0x44606a[_0x2397ee(0x2c3)](this[_0x2397ee(0x164)]);}this[_0x2397ee(0x164)]=void 0x0,this['_blockProgressWatches']['forEach'](({timeoutId:_0x3f9797})=>clearTimeout(_0x3f9797)),this[_0x2397ee(0x267)][_0x2397ee(0x2ca)](),(_0x358e41=this[_0x2397ee(0x43f)])==null||_0x358e41[_0x2397ee(0x295)](),this[_0x2397ee(0x43f)]=void 0x0,this[_0x2397ee(0x2f2)][_0x2397ee(0x20b)](),this[_0x2397ee(0x1ae)][_0x2397ee(0x20b)](),super[_0x2397ee(0x295)]();}[_0x4fde36(0x2c2)](_0x5dfdba){const _0x38e171=_0x4fde36;let _0x3f88a1=''+Y+_0x5dfdba[_0x38e171(0x1e9)];if(_0x5dfdba[_0x38e171(0x2fa)]===p['SnapshotLoadStage'][_0x38e171(0x199)]){if(this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this['_isVisibleUnit'](_0x5dfdba[_0x38e171(0x1e9)])&&this[_0x38e171(0x164)]===_0x5dfdba[_0x38e171(0x1e9)]){this[_0x38e171(0x2fe)][_0x38e171(0x2f8)]({'id':_0x3f88a1,'type':o['MessageType'][_0x38e171(0x2fd)],'duration':0x1/0x0,'content':this[_0x38e171(0x46b)]['t']('collaboration-client-ui.snapshotLoading.loadingSheet')}),this[_0x38e171(0x3ca)][_0x38e171(0x46f)](_0x3f88a1);return;}this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)]['delete'](_0x3f88a1);return;}if(!this['_isVisibleUnit'](_0x5dfdba['unitId'])){this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)][_0x38e171(0x3a7)](_0x3f88a1);return;}if(_0x5dfdba[_0x38e171(0x2fa)]===p[_0x38e171(0x3b1)][_0x38e171(0x34f)]){this['_clearBlockProgressWatch'](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x463)](_0x5dfdba[_0x38e171(0x1e9)]),this['_messageService']['show']({'id':_0x3f88a1,'type':o[_0x38e171(0x1ac)][_0x38e171(0x257)],'content':this[_0x38e171(0x46b)]['t'](_0x38e171(0x45e))}),this['_messageIds'][_0x38e171(0x3a7)](_0x3f88a1);return;}if(_0x5dfdba[_0x38e171(0x2fa)]!==p[_0x38e171(0x3b1)][_0x38e171(0x1e7)]||_0x5dfdba[_0x38e171(0x390)]<=0xa){this[_0x38e171(0x366)](_0x5dfdba[_0x38e171(0x1e9)]),this[_0x38e171(0x2fe)][_0x38e171(0x3d7)](_0x3f88a1),this[_0x38e171(0x3ca)][_0x38e171(0x3a7)](_0x3f88a1);return;}this[_0x38e171(0x166)](_0x5dfdba)||(this[_0x38e171(0x2fe)][_0x38e171(0x2f8)]({'id':_0x3f88a1,'type':o[_0x38e171(0x1ac)][_0x38e171(0x2fd)],'duration':0x1/0x0,'content':this[_0x38e171(0x46b)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x5dfdba[_0x38e171(0x326)]+'/'+_0x5dfdba[_0x38e171(0x390)]}),this[_0x38e171(0x3ca)][_0x38e171(0x46f)](_0x3f88a1));}[_0x4fde36(0x166)](_0x3e19f8){const _0xbd8631=_0x4fde36;let _0x527e41=this['_blockProgressWatches'][_0xbd8631(0x3bd)](_0x3e19f8[_0xbd8631(0x1e9)]);if((_0x527e41==null?void 0x0:_0x527e41[_0xbd8631(0x326)])===_0x3e19f8[_0xbd8631(0x326)])return _0x527e41['timedOut'];this[_0xbd8631(0x366)](_0x3e19f8[_0xbd8631(0x1e9)]);let _0x21bec7=setTimeout(()=>{const _0x37568c=_0xbd8631;let _0x52b9c9=this[_0x37568c(0x267)][_0x37568c(0x3bd)](_0x3e19f8[_0x37568c(0x1e9)]);if(!_0x52b9c9||_0x52b9c9[_0x37568c(0x3a4)]!==_0x21bec7)return;_0x52b9c9[_0x37568c(0x17f)]=!0x0;let _0x3d8675=''+Y+_0x3e19f8['unitId'];this[_0x37568c(0x2fe)][_0x37568c(0x3d7)](_0x3d8675),this[_0x37568c(0x3ca)][_0x37568c(0x3a7)](_0x3d8675),this[_0x37568c(0x2f2)][_0x37568c(0x345)]({'unitId':_0x3e19f8[_0x37568c(0x1e9)],'content':this[_0x37568c(0x46b)]['t'](_0x37568c(0x2a2),String(_0x3e19f8['loadedBlocks']),String(_0x3e19f8['totalBlocks'])),'refreshLabel':this[_0x37568c(0x46b)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0xbd8631(0x267)][_0xbd8631(0x1a4)](_0x3e19f8[_0xbd8631(0x1e9)],{'loadedBlocks':_0x3e19f8[_0xbd8631(0x326)],'timedOut':!0x1,'timeoutId':_0x21bec7}),!0x1;}[_0x4fde36(0x366)](_0x218bd6){const _0x1170e6=_0x4fde36;let _0x2fd695=this['_blockProgressWatches'][_0x1170e6(0x3bd)](_0x218bd6);_0x2fd695&&(clearTimeout(_0x2fd695[_0x1170e6(0x3a4)]),this['_blockProgressWatches'][_0x1170e6(0x3a7)](_0x218bd6),this[_0x1170e6(0x463)](_0x218bd6));}[_0x4fde36(0x463)](_0x5a4cda){const _0x8b1905=_0x4fde36;var _0x379f70;((_0x379f70=this[_0x8b1905(0x2f2)][_0x8b1905(0x35a)])==null?void 0x0:_0x379f70[_0x8b1905(0x1e9)])===_0x5a4cda&&this[_0x8b1905(0x2f2)][_0x8b1905(0x345)](null);}[_0x4fde36(0x263)](_0x52df34){const _0x5df111=_0x4fde36;if(_0x52df34[_0x5df111(0x2fa)]===p[_0x5df111(0x3b1)][_0x5df111(0x3e1)]&&this[_0x5df111(0x269)][_0x5df111(0x3a7)](_0x52df34[_0x5df111(0x1e9)]),!this[_0x5df111(0x270)](_0x52df34['unitId'])){this[_0x5df111(0x1b7)](_0x52df34['unitId']);return;}if(_0x52df34[_0x5df111(0x2fa)]===p[_0x5df111(0x3b1)][_0x5df111(0x34f)]||_0x52df34[_0x5df111(0x390)]<=0xa){this[_0x5df111(0x1b7)](_0x52df34[_0x5df111(0x1e9)]);return;}if(_0x52df34[_0x5df111(0x2fa)]===p['SnapshotLoadStage'][_0x5df111(0x199)]){this['_handoffPreview'](_0x52df34[_0x5df111(0x1e9)]);return;}if(_0x52df34[_0x5df111(0x2fa)]===p['SnapshotLoadStage'][_0x5df111(0x1e7)]&&_0x52df34[_0x5df111(0x1bc)]&&_0x52df34[_0x5df111(0x3ba)]){let _0x52623b=this[_0x5df111(0x475)]();if(!_0x52623b)return;this[_0x5df111(0x164)]&&this[_0x5df111(0x164)]!==_0x52df34[_0x5df111(0x1e9)]&&this['_hidePreview'](this[_0x5df111(0x164)]),_0x52623b[_0x5df111(0x1ad)](_0x52df34['workbookShell'],_0x52df34[_0x5df111(0x3ba)]),this['_previewUnitId']=_0x52df34[_0x5df111(0x1e9)],this[_0x5df111(0x1f9)](!0x0),_0x52df34[_0x5df111(0x2bc)]&&_0x52623b['show'](_0x52df34['workbookShell'],_0x52df34['activeSheetId'],_0x52df34[_0x5df111(0x212)]);}}['_handoffPreview'](_0x309991){const _0x397a23=_0x4fde36;if(this[_0x397a23(0x164)]!==_0x309991||this[_0x397a23(0x269)][_0x397a23(0x24d)](_0x309991))return;let _0x4ca193=this['_sheetLoadingRenderService'];_0x4ca193&&(this[_0x397a23(0x269)]['add'](_0x309991),_0x4ca193[_0x397a23(0x30e)](_0x309991,0x2710)[_0x397a23(0x3fb)](_0x46eb88=>{const _0x143f1d=_0x397a23;if(this[_0x143f1d(0x164)]!==_0x309991)return;if(_0x46eb88){let _0x3290ad=''+Y+_0x309991;this[_0x143f1d(0x2fe)]['remove'](_0x3290ad),this[_0x143f1d(0x3ca)][_0x143f1d(0x3a7)](_0x3290ad),this[_0x143f1d(0x164)]=void 0x0,this[_0x143f1d(0x1f9)](!0x1);return;}let _0x3a93a7=''+Y+_0x309991;this[_0x143f1d(0x2fe)][_0x143f1d(0x3d7)](_0x3a93a7),this[_0x143f1d(0x3ca)][_0x143f1d(0x3a7)](_0x3a93a7),this[_0x143f1d(0x2f2)][_0x143f1d(0x345)]({'unitId':_0x309991,'content':this[_0x143f1d(0x46b)]['t'](_0x143f1d(0x45e)),'refreshLabel':this[_0x143f1d(0x46b)]['t'](_0x143f1d(0x238))});}));}[_0x4fde36(0x1b7)](_0x69ffa2){const _0x429889=_0x4fde36;var _0x3f05c9;this[_0x429889(0x164)]===_0x69ffa2&&((_0x3f05c9=this['_sheetLoadingRenderService'])==null||_0x3f05c9['hide'](_0x69ffa2),this['_previewUnitId']=void 0x0,this['_setInteractionBlocked'](!0x1));}[_0x4fde36(0x1f9)](_0x19d967){const _0x16f515=_0x4fde36;if(_0x19d967!==this[_0x16f515(0x1ae)][_0x16f515(0x35a)]){if(_0x19d967)this[_0x16f515(0x43f)]=this[_0x16f515(0x455)][_0x16f515(0x1c9)]();else{var _0x1c7355;(_0x1c7355=this[_0x16f515(0x43f)])==null||_0x1c7355[_0x16f515(0x295)](),this[_0x16f515(0x43f)]=void 0x0;}this[_0x16f515(0x1ae)][_0x16f515(0x345)](_0x19d967);}}[_0x4fde36(0x270)](_0x21fa64){const _0x396a53=_0x4fde36;let _0x25062f=this[_0x396a53(0x441)][_0x396a53(0x3f6)](_0x396a53(0x40f));return!_0x25062f||_0x25062f===_0x21fa64;}[_0x4fde36(0x475)](){const _0x4e4827=_0x4fde36;return this[_0x4e4827(0x1ef)]?this['_sheetLoadingRenderService']:(this[_0x4e4827(0x28d)][_0x4e4827(0x24b)](n[_0x4e4827(0x272)][_0x4e4827(0x47d)]),this['_injector'][_0x4e4827(0x24d)](v[_0x4e4827(0x207)])&&(this['_sheetLoadingRenderService']=this[_0x4e4827(0x1df)][_0x4e4827(0x3bd)](v['ISheetLoadingRenderService'])),this[_0x4e4827(0x1ef)]);}};X=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(p[_0x4fde36(0x421)])),S(0x1,r[_0x4fde36(0x293)]),S(0x2,(0x0,n['Inject'])(n['LocaleService'])),S(0x3,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x4,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x2b5)])),S(0x5,r[_0x4fde36(0x25e)]),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0xd327be){const _0x144d03=_0x4fde36;var _0x51e1dd,_0x37811e;let _0x5e4fd9=(_0x51e1dd=_0xd327be['stageInfo'])==null?void 0x0:_0x51e1dd[_0x144d03(0x2fa)],_0x1635a2=((_0x37811e=_0xd327be['stageInfo'])==null?void 0x0:_0x37811e['totalFormulasToCalculate'])||0x0;return _0x5e4fd9===h[_0x144d03(0x30f)][_0x144d03(0x234)]&&_0x1635a2>0x0;}function Ee(_0x554ad8){const _0x10a3c5=_0x4fde36;return _0x554ad8[_0x10a3c5(0x249)]===h[_0x10a3c5(0x35e)][_0x10a3c5(0x467)];}let Z=class extends n[_0x4fde36(0x231)]{constructor(_0x20640b,_0x53a3aa,_0x1d6326,_0x3a7984,_0x5e1f5b,_0x238f62,_0x4d07a3){const _0x430580=_0x4fde36;super(),this['_messageService']=_0x20640b,this[_0x430580(0x3fa)]=_0x53a3aa,this[_0x430580(0x25f)]=_0x1d6326,this[_0x430580(0x17c)]=_0x3a7984,this[_0x430580(0x47b)]=_0x5e1f5b,this['_logService']=_0x238f62,this[_0x430580(0x46b)]=_0x4d07a3,x(this,_0x430580(0x3fc),null),x(this,_0x430580(0x287),0x0),x(this,'_currentUsage',0x0),x(this,_0x430580(0x323),[]),x(this,_0x430580(0x3c2),0x0),this[_0x430580(0x31c)]();}['_initCommandInterceptor'](){const _0x4d28f2=_0x4fde36;this[_0x4d28f2(0x32d)](this['_commandService'][_0x4d28f2(0x429)]((_0x32e560,_0x3f9962)=>{const _0x489946=_0x4d28f2;var _0x194c9e;if(_0x32e560['id']!==h['SetFormulaCalculationStartMutation']['id'])return;let _0x3308a1=_0x32e560['params'];if(this[_0x489946(0x286)]((_0x194c9e=_0x3308a1[_0x489946(0x271)])==null?[]:_0x194c9e)&&!this[_0x489946(0x167)]())throw this[_0x489946(0x18f)](_0x32e560,_0x3f9962),this[_0x489946(0x44e)](),new n['CanceledError']();})),this[_0x4d28f2(0x32d)](this[_0x4d28f2(0x3fa)][_0x4d28f2(0x376)]((_0x10cbe8,_0x1e6bd8)=>{const _0x4a449c=_0x4d28f2;if(_0x10cbe8['id']!==h[_0x4a449c(0x1a6)]['id'])return;let _0x5bce2d=_0x10cbe8[_0x4a449c(0x198)];if(Te(_0x5bce2d)){let _0x51ce10=(0x0,n[_0x4a449c(0x235)])();this[_0x4a449c(0x323)][_0x4a449c(0x2e8)](_0x51ce10),this[_0x4a449c(0x425)](_0x51ce10);}else{if(Ee(_0x5bce2d)&&this[_0x4a449c(0x323)][_0x4a449c(0x2ee)]>0x0){let _0x1de4b4=this[_0x4a449c(0x323)]['shift']();this[_0x4a449c(0x19b)](_0x1de4b4);}}}));}['dispose'](){const _0x41a821=_0x4fde36;super['dispose'](),this[_0x41a821(0x30c)](),this[_0x41a821(0x323)]=[],this[_0x41a821(0x28a)]=0x0,this[_0x41a821(0x287)]=0x0,this[_0x41a821(0x3c2)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4864f2,_0x1750f1){const _0x4a9276=_0x4fde36;for(let _0x54a6b1=0x0;_0x54a6b1<0x1e;_0x54a6b1++)try{if(await this[_0x4a9276(0x3a2)](),this[_0x4a9276(0x167)]()){this[_0x4a9276(0x408)](_0x4864f2,_0x1750f1),this[_0x4a9276(0x2fe)][_0x4a9276(0x2f8)]({'content':this[_0x4a9276(0x46b)]['t'](_0x4a9276(0x1e1)),'type':o[_0x4a9276(0x1ac)]['Success']});return;}await new Promise(_0x518089=>{const _0x2a95b2=_0x4a9276;this[_0x2a95b2(0x3fc)]=window[_0x2a95b2(0x171)](_0x518089,0x3e8);});}catch(_0x379b29){this[_0x4a9276(0x3c4)][_0x4a9276(0x3c7)](_0x379b29);}this[_0x4a9276(0x2fe)][_0x4a9276(0x2f8)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':o[_0x4a9276(0x1ac)]['Error']});}['_applyCommand'](_0xc5d388,_0x54e5db){const _0x18f9ed=_0x4fde36;try{this[_0x18f9ed(0x3fa)][_0x18f9ed(0x1e8)](_0xc5d388['id'],_0xc5d388[_0x18f9ed(0x198)],_0x54e5db);}catch(_0x100b2c){this[_0x18f9ed(0x3c4)][_0x18f9ed(0x3c7)](_0x100b2c);}}[_0x4fde36(0x16d)](_0x2a735a,_0x362e48){const _0x224243=_0x4fde36;_0x362e48<this[_0x224243(0x3c2)]||(this['_lastResponseTimestamp']=_0x362e48,this[_0x224243(0x287)]=Number[_0x224243(0x2d1)](_0x2a735a[_0x224243(0x3ce)]),this['_currentUsage']=Number['parseInt'](_0x2a735a[_0x224243(0x216)]));}async[_0x4fde36(0x425)](_0x5ea49c){const _0x560e97=_0x4fde36;let _0x432349=Date[_0x560e97(0x3c3)]();try{var _0x1fa4f4,_0x481e32;let _0x352d70=((_0x1fa4f4=this[_0x560e97(0x25f)][_0x560e97(0x391)](t[_0x560e97(0x240)]))==null?void 0x0:_0x1fa4f4[_0x560e97(0x1cb)])||_0x560e97(0x419),_0x20fd73=(await this[_0x560e97(0x17c)]['post'](_0x352d70,{'body':JSON[_0x560e97(0x1e5)]({'taskId':_0x5ea49c})}))[_0x560e97(0x3b0)];if(((_0x481e32=_0x20fd73['error'])==null?void 0x0:_0x481e32[_0x560e97(0x3dc)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x20fd73[_0x560e97(0x28f)],_0x432349);}catch(_0x52f21d){this[_0x560e97(0x3c4)][_0x560e97(0x3c7)](_0x52f21d);}}async[_0x4fde36(0x3a2)](_0x5dfc02){const _0x29d5b4=_0x4fde36;let _0x3d18ff=Date['now']();try{var _0x300df1,_0x59de96;let _0x53194d=((_0x300df1=this[_0x29d5b4(0x25f)][_0x29d5b4(0x391)](t[_0x29d5b4(0x240)]))==null?void 0x0:_0x300df1[_0x29d5b4(0x1f7)])||_0x29d5b4(0x37d),_0x440391=_0x5dfc02?_0x53194d+_0x29d5b4(0x20a)+encodeURIComponent(_0x5dfc02):_0x53194d,_0x3bc0f2=(await this['_httpService'][_0x29d5b4(0x3bd)](_0x440391))[_0x29d5b4(0x3b0)];if(((_0x59de96=_0x3bc0f2['error'])==null?void 0x0:_0x59de96[_0x29d5b4(0x3dc)])!==y[_0x29d5b4(0x34c)]['OK'])return;this[_0x29d5b4(0x16d)](_0x3bc0f2[_0x29d5b4(0x28f)],_0x3d18ff);}catch(_0x319b97){this[_0x29d5b4(0x3c4)]['error'](_0x319b97);}}async[_0x4fde36(0x19b)](_0x431cf4){const _0x4a65c5=_0x4fde36;let _0x55697e=Date[_0x4a65c5(0x3c3)]();try{var _0xfb9bce,_0x568d4e;let _0x35d879=((_0xfb9bce=this[_0x4a65c5(0x25f)][_0x4a65c5(0x391)](t[_0x4a65c5(0x240)]))==null?void 0x0:_0xfb9bce['releaseFormulaLimitUrl'])||'/universer-api/license/formula/limit/done',_0x4816a5=(await this[_0x4a65c5(0x17c)][_0x4a65c5(0x1e4)](_0x35d879,{'body':JSON[_0x4a65c5(0x1e5)]({'taskId':_0x431cf4})}))[_0x4a65c5(0x3b0)];if(((_0x568d4e=_0x4816a5['error'])==null?void 0x0:_0x568d4e['code'])!==y[_0x4a65c5(0x34c)]['OK'])return;this[_0x4a65c5(0x16d)](_0x4816a5[_0x4a65c5(0x28f)],_0x55697e);}catch(_0x365844){this[_0x4a65c5(0x3c4)][_0x4a65c5(0x3c7)](_0x365844);}}['_checkCalculationAvailable'](){const _0x2ed8ec=_0x4fde36;return this[_0x2ed8ec(0x287)]===0x0?!0x0:this[_0x2ed8ec(0x287)]-this['_currentUsage']>0x0;}[_0x4fde36(0x30c)](){const _0x2b21fd=_0x4fde36;this[_0x2b21fd(0x3fc)]&&(clearTimeout(this['_pollingInterval']),this[_0x2b21fd(0x3fc)]=null);}['_showGuardMessage'](){const _0x3000e8=_0x4fde36;this[_0x3000e8(0x2fe)][_0x3000e8(0x2f8)]({'content':this[_0x3000e8(0x46b)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':o[_0x3000e8(0x1ac)][_0x3000e8(0x2fd)]});}[_0x4fde36(0x286)](_0x6660ec){const _0x3e01cb=_0x4fde36;for(let _0x60ba81 of _0x6660ec){let {unitId:_0x20f93e,sheetId:_0x35f664,range:_0x599452}=_0x60ba81,_0x3c60f3=this['_univerInstanceService'][_0x3e01cb(0x400)](_0x20f93e);if(!_0x3c60f3)continue;let _0x393e0e=_0x3c60f3[_0x3e01cb(0x20f)](_0x35f664);if(!_0x393e0e)continue;let _0x7f9446=_0x393e0e[_0x3e01cb(0x3ec)]();for(let _0x2d8238=_0x599452[_0x3e01cb(0x360)];_0x2d8238<=_0x599452['endRow'];_0x2d8238++)for(let _0x3ca66d=_0x599452[_0x3e01cb(0x383)];_0x3ca66d<=_0x599452['endColumn'];_0x3ca66d++){let _0x3bb816=_0x7f9446[_0x3e01cb(0x1ec)](_0x2d8238,_0x3ca66d);if(_0x3bb816&&((0x0,n[_0x3e01cb(0x43d)])(_0x3bb816['f'])||(0x0,n[_0x3e01cb(0x428)])(_0x3bb816['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(r[_0x4fde36(0x293)])),S(0x1,n[_0x4fde36(0x375)]),S(0x2,n[_0x4fde36(0x385)]),S(0x3,(0x0,n['Inject'])(d['HTTPService'])),S(0x4,n[_0x4fde36(0x260)]),S(0x5,n[_0x4fde36(0x314)]),S(0x6,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x1da)]))],Z);let De=class extends n['Disposable']{constructor(_0x1704c2,_0x5a969c,_0xbb6e97){const _0x3d7601=_0x4fde36;super(),this[_0x3d7601(0x25f)]=_0x1704c2,this[_0x3d7601(0x30a)]=_0x5a969c,this[_0x3d7601(0x273)]=_0xbb6e97,x(this,_0x3d7601(0x2a3),new Map()),x(this,'_saveTaskMap',new Map()),x(this,'_disabled',!0x1);}[_0x4fde36(0x46e)](){this['_disabled']=!0x0;}[_0x4fde36(0x309)](){const _0x3c1ef5=_0x4fde36;this[_0x3c1ef5(0x1a0)]=!0x1;}get[_0x4fde36(0x2c6)](){return this['_saveTaskMap'];}['dispose'](){const _0x52d5b3=_0x4fde36;this[_0x52d5b3(0x29c)]()[_0x52d5b3(0x3fb)](()=>super[_0x52d5b3(0x295)]());}async[_0x4fde36(0x1d9)](_0x2b87b4){const _0x148eb1=_0x4fde36;return this[_0x148eb1(0x1a0)]?null:this[_0x148eb1(0x30a)][_0x148eb1(0x2c4)]((0x0,t['getLocalCacheKey'])(_0x2b87b4));}async['saveOfflineData'](_0x480884,_0x330683){const _0x220833=_0x4fde36;return!!this[_0x220833(0x30a)][_0x220833(0x38e)]((0x0,t[_0x220833(0x43a)])(_0x480884),_0x330683);}async[_0x4fde36(0x300)](_0x185dff,_0x202960){const _0x552fc6=_0x4fde36;var _0x1c9f73;let _0x3d9c61=(_0x1c9f73=this[_0x552fc6(0x2a3)][_0x552fc6(0x3bd)](_0x185dff))==null?await this['_localStorageService'][_0x552fc6(0x2c4)]((0x0,t[_0x552fc6(0x43a)])(_0x185dff)):_0x1c9f73;if(!_0x3d9c61)return;let _0x4f328b=Date[_0x552fc6(0x3c3)](),_0x5c79c5=new Date(_0x4f328b)['toISOString']();await this[_0x552fc6(0x30a)][_0x552fc6(0x38e)]((0x0,t['getLocalCacheKey'])(_0x185dff)+':backup:'+_0x4f328b,{'reason':_0x202960,'createdAt':_0x5c79c5,'data':_0x3d9c61});}[_0x4fde36(0x437)](_0x249cbb,_0xd03ab7,_0x12c598,_0x5509d3){const _0x28898a=_0x4fde36;let _0x19b9a6=this[_0x28898a(0x273)][_0x28898a(0x3e6)](_0x249cbb);this['_cachedData'][_0x28898a(0x1a4)](_0x249cbb,{'unitID':_0x249cbb,'type':_0xd03ab7,'awaitingChangeset':_0x12c598,'mutations':_0x5509d3,'rev':_0x19b9a6}),this[_0x28898a(0x285)][_0x28898a(0x24d)](_0x249cbb)||this[_0x28898a(0x2d3)](_0x249cbb);}[_0x4fde36(0x2d3)](_0x3d9fab){const _0x32f580=_0x4fde36;let _0x167a10=this[_0x32f580(0x186)]();_0x167a10===0x0?this['_saveCache'](_0x3d9fab):this[_0x32f580(0x285)][_0x32f580(0x1a4)](_0x3d9fab,window[_0x32f580(0x171)](()=>this[_0x32f580(0x2f9)](_0x3d9fab),_0x167a10));}[_0x4fde36(0x186)](){const _0x494a2a=_0x4fde36;var _0x47bfd9;return(_0x47bfd9=this[_0x494a2a(0x25f)][_0x494a2a(0x391)](t[_0x494a2a(0x205)]))==null?t[_0x494a2a(0x315)]:_0x47bfd9;}[_0x4fde36(0x2f9)](_0x545975){const _0x30abaa=_0x4fde36;let _0x490e13=this['_saveTaskMap'][_0x30abaa(0x3bd)](_0x545975);return _0x490e13!==void 0x0&&window[_0x30abaa(0x201)](_0x490e13),this['_localStorageService']['setItem']((0x0,t['getLocalCacheKey'])(_0x545975),this[_0x30abaa(0x2a3)][_0x30abaa(0x3bd)](_0x545975))[_0x30abaa(0x3fb)](()=>this[_0x30abaa(0x285)][_0x30abaa(0x3a7)](_0x545975));}async[_0x4fde36(0x29c)](){const _0x28f6f3=_0x4fde36;let _0x39e0f6=[];this[_0x28f6f3(0x285)][_0x28f6f3(0x19e)]((_0x36462a,_0x31970a)=>{const _0x2dc428=_0x28f6f3;window[_0x2dc428(0x201)](_0x36462a),_0x39e0f6[_0x2dc428(0x2e8)](this[_0x2dc428(0x2f9)](_0x31970a)[_0x2dc428(0x3fb)](()=>{const _0x4680f0=_0x2dc428;this['_saveTaskMap'][_0x4680f0(0x3a7)](_0x31970a);}));}),await Promise[_0x28f6f3(0x3ff)](_0x39e0f6);}};De=C([S(0x0,n[_0x4fde36(0x385)]),S(0x1,n[_0x4fde36(0x214)]),S(0x2,(0x0,n['Inject'])(p[_0x4fde36(0x33d)]))],De);var Oe=class extends n[_0x4fde36(0x18c)]{constructor(){const _0x41bdd7=_0x4fde36;super(),x(this,_0x41bdd7(0x386),void 0x0),this[_0x41bdd7(0x386)]=(0x0,i[_0x41bdd7(0x2cf)])(window,'popstate')['pipe']((0x0,i[_0x41bdd7(0x328)])(this[_0x41bdd7(0x2d2)]),(0x0,i[_0x41bdd7(0x2aa)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i['mapTo'])(void 0x0));}[_0x4fde36(0x3a0)](_0x4c8da4,_0x21f63a,_0x1f8eb9=!0x1){const _0x247476=_0x4fde36;let _0x3514d8=new URL(window[_0x247476(0x40e)][_0x247476(0x2f1)]);_0x3514d8[_0x247476(0x33e)][_0x247476(0x1a4)](_0x4c8da4,_0x21f63a),_0x1f8eb9?window[_0x247476(0x37c)][_0x247476(0x19a)]('','',_0x3514d8[_0x247476(0x1dd)]()):window['history'][_0x247476(0x179)]('','',_0x3514d8['toString']());}[_0x4fde36(0x340)](_0x5f3468,_0x2b08d5=!0x1){const _0x4af378=_0x4fde36;let _0xa6cc1=new URL(window[_0x4af378(0x40e)][_0x4af378(0x2f1)]);_0xa6cc1[_0x4af378(0x33e)]['delete'](_0x5f3468),_0x2b08d5?window[_0x4af378(0x37c)][_0x4af378(0x19a)]('','',_0xa6cc1['toString']()):window[_0x4af378(0x37c)][_0x4af378(0x179)]('','',_0xa6cc1[_0x4af378(0x1dd)]());}[_0x4fde36(0x3f6)](_0x5ba57c){const _0x28c911=_0x4fde36;var _0x24f225;return(_0x24f225=new URL(window[_0x28c911(0x40e)]['href'])['searchParams'][_0x28c911(0x3bd)](_0x5ba57c))==null?void 0x0:_0x24f225;}};let Q=class extends n[_0x4fde36(0x402)]{constructor(_0x4f4f12=ue,_0x21b721,_0x3f861e,_0x1ac066){const _0x59c2cc=_0x4fde36;super(),this[_0x59c2cc(0x174)]=_0x4f4f12,this['_renderManagerService']=_0x21b721,this[_0x59c2cc(0x1df)]=_0x3f861e,this[_0x59c2cc(0x25f)]=_0x1ac066;let {..._0x44b97d}=(0x0,n[_0x59c2cc(0x3ef)])({},ue,this[_0x59c2cc(0x174)]);this['_configService'][_0x59c2cc(0x3f4)](_0x59c2cc(0x18a),_0x44b97d);}[_0x4fde36(0x196)](){const _0x4032ad=_0x4fde36;this[_0x4032ad(0x339)](),this['_initDependencies']();}['onRendered'](){const _0x684f22=_0x4fde36;this[_0x684f22(0x3ae)]();}[_0x4fde36(0x339)](){const _0x53a0c6=_0x4fde36;var _0x1ddbd6;let _0x17bd0c=[[k],[Z],[H,{'useClass':Oe}],[d[_0x53a0c6(0x438)],{'useClass':d[_0x53a0c6(0x34e)]}],[t[_0x53a0c6(0x1af)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x53a0c6(0x174)][_0x53a0c6(0x245)]!==!0x1&&_0x17bd0c[_0x53a0c6(0x2e8)]([K],[W],[G],[j],[q],[E]),this[_0x53a0c6(0x174)][_0x53a0c6(0x1a9)]&&_0x17bd0c[_0x53a0c6(0x2e8)]([J]),(0x0,n[_0x53a0c6(0x38b)])(this[_0x53a0c6(0x1df)],(0x0,n[_0x53a0c6(0x23a)])(_0x17bd0c,(_0x1ddbd6=this['_config'])==null?void 0x0:_0x1ddbd6[_0x53a0c6(0x17b)]));}[_0x4fde36(0x3ae)](){const _0x547e75=_0x4fde36;this[_0x547e75(0x174)][_0x547e75(0x245)]!==!0x1&&this[_0x547e75(0x32d)](this['_renderManagerService']['registerRenderModule'](n[_0x547e75(0x272)][_0x547e75(0x370)],[R])),this['disposeWithMe'](this[_0x547e75(0x41f)][_0x547e75(0x266)](n[_0x547e75(0x272)][_0x547e75(0x47d)],[z])),this[_0x547e75(0x32d)](this[_0x547e75(0x41f)][_0x547e75(0x266)](n[_0x547e75(0x272)]['UNIVER_SLIDE'],[B])),this[_0x547e75(0x32d)](this[_0x547e75(0x41f)][_0x547e75(0x266)](n['UniverInstanceType'][_0x547e75(0x367)],[I]));}[_0x4fde36(0x37f)](){const _0x123b48=_0x4fde36;(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x123b48(0x174)][_0x123b48(0x245)]!==!0x1&&(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[q],[E]]),this[_0x123b48(0x174)][_0x123b48(0x1a9)]&&(0x0,n[_0x123b48(0x1b8)])(this[_0x123b48(0x1df)],[[J]]);}};x(Q,_0x4fde36(0x472),_0x4fde36(0x2a8)),x(Q,_0x4fde36(0x39e),ce),x(Q,_0x4fde36(0x322),le),Q=C([(0x0,n['DependentOn'])(t[_0x4fde36(0x3cb)]),S(0x1,u[_0x4fde36(0x374)]),S(0x2,(0x0,n[_0x4fde36(0x2ff)])(n['Injector'])),S(0x3,n[_0x4fde36(0x385)])],Q);let ke=class extends t[_0x4fde36(0x3f8)]{constructor(_0x5b01bb,_0x34cafa,_0x4c575a,_0x487cca,_0x364b39){super(_0x5b01bb,_0x34cafa,_0x4c575a,_0x487cca,_0x364b39);}async['createSocket'](_0xfef03a){const _0x430ea5=_0x4fde36;let _0x5c82ed=await this[_0x430ea5(0x423)](),_0x120ce9=this[_0x430ea5(0x2b3)](_0xfef03a,_0x5c82ed);return this[_0x430ea5(0x3a3)](_0x120ce9);}[_0x4fde36(0x2b3)](_0x521f1d,_0x186f3a){const _0x3aa945=_0x4fde36;let _0xf86318=typeof window>'u'?new URL(_0x521f1d):new URL(_0x521f1d,window[_0x3aa945(0x40e)]['origin']);_0xf86318['searchParams'][_0x3aa945(0x1a4)](_0x3aa945(0x2df),_0x186f3a);let _0x2f1cf9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3aa945(0x40e)]['search']);return _0x2f1cf9['get'](_0x3aa945(0x18b))&&_0xf86318['searchParams'][_0x3aa945(0x1a4)](_0x3aa945(0x18b),_0x2f1cf9[_0x3aa945(0x3bd)]('runId')),_0xf86318[_0x3aa945(0x1dd)]();}async['_getSessionTicket'](){const _0x4c01fd=_0x4fde36;var _0x82af13,_0x557f0e,_0x1554cb;let _0x4a7894=this[_0x4c01fd(0x25f)][_0x4c01fd(0x391)](t[_0x4c01fd(0x240)]),_0x6d004=(_0x82af13=_0x4a7894==null?void 0x0:_0x4a7894['wsSessionTicketUrl'])==null?t[_0x4c01fd(0x3c5)]:_0x82af13;return(_0x557f0e=(_0x1554cb=(await this[_0x4c01fd(0x17c)]['get'](_0x6d004,{'headers':{'Content-Type':_0x4c01fd(0x3f3)}}))[_0x4c01fd(0x3b0)])==null?void 0x0:_0x1554cb['ticket'])==null?'':_0x557f0e;}};ke=C([S(0x0,(0x0,n[_0x4fde36(0x2ff)])(n[_0x4fde36(0x197)])),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(d[_0x4fde36(0x2e2)])),S(0x2,n[_0x4fde36(0x385)]),S(0x3,n[_0x4fde36(0x314)]),S(0x4,p[_0x4fde36(0x2d4)])],ke);let $=class extends n[_0x4fde36(0x231)]{constructor(_0x2d0cd4,_0x21fce3,_0x3518bd){const _0x4fbd97=_0x4fde36;super(),this['_instanceService']=_0x2d0cd4,this[_0x4fbd97(0x17c)]=_0x21fce3,this['_configService']=_0x3518bd;}async[_0x4fde36(0x2af)](_0x418b83,_0x7927c0,_0x223e35,..._0x5d6612){const _0x4b6f03=_0x4fde36;var _0x36e417,_0x4517de,_0x1d3b6e,_0x678675;let _0x19632d=this[_0x4b6f03(0x330)][_0x4b6f03(0x206)]();if(!_0x19632d)throw Error(_0x4b6f03(0x2a4));let _0x415eb8=((_0x36e417=this[_0x4b6f03(0x25f)][_0x4b6f03(0x391)](t[_0x4b6f03(0x2cd)]))==null?t[_0x4b6f03(0x38c)]:_0x36e417)+'/'+_0x418b83+'/run/'+_0x7927c0,_0x53ffe5={'scriptId':_0x418b83,'runId':(_0x4517de=new URL(window['location'][_0x4b6f03(0x2f1)])[_0x4b6f03(0x33e)][_0x4b6f03(0x3bd)]('runId'))==null?'':_0x4517de,'function':_0x7927c0,'unitId':_0x19632d[_0x4b6f03(0x448)](),'argsOfFunction':JSON[_0x4b6f03(0x1e5)](_0x5d6612),'invokeId':(_0x1d3b6e=_0x223e35[_0x4b6f03(0x477)])==null?'':_0x1d3b6e,'executionId':(_0x678675=_0x223e35[_0x4b6f03(0x38d)])==null?'':_0x678675};try{let _0x4cf8b8=await this[_0x4b6f03(0x17c)][_0x4b6f03(0x1e4)](_0x415eb8,{'body':_0x53ffe5});return _0x4cf8b8[_0x4b6f03(0x3b0)][_0x4b6f03(0x3c7)]&&_0x4cf8b8[_0x4b6f03(0x3b0)][_0x4b6f03(0x3c7)]['code']!==y[_0x4b6f03(0x34c)]['OK']?'Failed':_0x4cf8b8['body']['result'];}catch{return _0x4b6f03(0x3fd);}}};$=C([S(0x0,n[_0x4fde36(0x260)]),S(0x1,(0x0,n[_0x4fde36(0x2ff)])(d['HTTPService'])),S(0x2,n[_0x4fde36(0x385)])],$);const Ae=0x7530,je='ACTIVE_UNIT_EVENT_CHANNEL';var Me=class extends n['Disposable']{constructor(){const _0x30f29f=_0x4fde36;super(),x(this,_0x30f29f(0x1ff),(0x0,n[_0x30f29f(0x235)])()),x(this,_0x30f29f(0x34d),new Set()),x(this,'_unitOnClients',new Map()),x(this,_0x30f29f(0x2bf),null),x(this,'_clearOtherTimers',new Map()),x(this,_0x30f29f(0x358),new Map()),this['_init']();}[_0x4fde36(0x295)](){const _0x4b2f6c=_0x4fde36;super[_0x4b2f6c(0x295)](),this[_0x4b2f6c(0x29e)][_0x4b2f6c(0x19e)]((_0x2bb7c3,_0x3eccd2)=>this[_0x4b2f6c(0x371)](_0x3eccd2)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x4b2f6c(0x2bf)]);}[_0x4fde36(0x384)](_0x3f5f3c){const _0x296b5f=_0x4fde36;return this[_0x296b5f(0x1f1)](_0x3f5f3c)[_0x296b5f(0x19f)]((0x0,i[_0x296b5f(0x264)])());}[_0x4fde36(0x23d)](_0x3ad30b){const _0x7c554b=_0x4fde36;this[_0x7c554b(0x34d)][_0x7c554b(0x353)]===0x0&&this[_0x7c554b(0x3d3)](),this['_selfUnitIDs']['add'](_0x3ad30b),this[_0x7c554b(0x2a5)]({'type':0x0,'memberID':this[_0x7c554b(0x1ff)],'unitIDs':[_0x3ad30b],'isForwarded':!0x1});}[_0x4fde36(0x232)](_0x37856a){const _0x411819=_0x4fde36;this[_0x411819(0x34d)]['delete'](_0x37856a),this['_selfUnitIDs'][_0x411819(0x353)]===0x0&&this[_0x411819(0x2bf)]&&window[_0x411819(0x23e)](this[_0x411819(0x2bf)]);}[_0x4fde36(0x392)](){const _0x2a6c8d=_0x4fde36;this[_0x2a6c8d(0x32d)]((0x0,n['toDisposable'])((0x0,i['fromEvent'])(window,'storage')[_0x2a6c8d(0x18e)](_0x3fabe4=>{const _0x3bf0bf=_0x2a6c8d;if(_0x3fabe4['key']!==je||!_0x3fabe4[_0x3bf0bf(0x2b8)])return;let _0x527d9b=JSON[_0x3bf0bf(0x3a1)](_0x3fabe4[_0x3bf0bf(0x2b8)]);this['_handleEvent'](_0x527d9b);}))),window[_0x2a6c8d(0x480)](_0x2a6c8d(0x3be),()=>this[_0x2a6c8d(0x2a5)]({'type':0x1,'memberID':this[_0x2a6c8d(0x1ff)],'unitIDs':Array[_0x2a6c8d(0x412)](this[_0x2a6c8d(0x34d)])}));}[_0x4fde36(0x223)](_0x2839d4){const _0x15dcc4=_0x4fde36;switch(_0x2839d4[_0x15dcc4(0x2e5)]){case 0x0:this[_0x15dcc4(0x1fd)](_0x2839d4);break;case 0x1:this[_0x15dcc4(0x338)](_0x2839d4);break;case 0x2:this[_0x15dcc4(0x194)](_0x2839d4);break;}}[_0x4fde36(0x1fd)](_0xe8a514){const _0x21f26f=_0x4fde36;let {unitIDs:_0x3a6ade,memberID:_0x29d944,isForwarded:_0x1947e6}=_0xe8a514;_0x3a6ade[_0x21f26f(0x19e)](_0x33d1d7=>{const _0x1c6bc=_0x21f26f;if(!_0x1947e6&&this[_0x1c6bc(0x333)][_0x1c6bc(0x24d)](_0x33d1d7)&&this[_0x1c6bc(0x1f1)](_0x33d1d7)[_0x1c6bc(0x345)](t[_0x1c6bc(0x163)][_0x1c6bc(0x1ed)]),!this[_0x1c6bc(0x333)][_0x1c6bc(0x24d)](_0x33d1d7)||!this[_0x1c6bc(0x333)]['get'](_0x33d1d7)[_0x1c6bc(0x24d)](_0x29d944)){let _0x2d85fc=this[_0x1c6bc(0x333)][_0x1c6bc(0x3bd)](_0x33d1d7)||new Set();_0x2d85fc[_0x1c6bc(0x46f)](_0x29d944),this[_0x1c6bc(0x333)][_0x1c6bc(0x1a4)](_0x33d1d7,_0x2d85fc),this[_0x1c6bc(0x24c)](_0x29d944);}}),_0x1947e6||this[_0x21f26f(0x2a5)]({'type':0x0,'memberID':this[_0x21f26f(0x1ff)],'unitIDs':[...this[_0x21f26f(0x34d)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3c2377){const _0x1c51ba=_0x4fde36;this[_0x1c51ba(0x371)](_0x3c2377);let _0x581f54=window[_0x1c51ba(0x171)](()=>{const _0x5c5c65=_0x1c51ba;this[_0x5c5c65(0x333)][_0x5c5c65(0x19e)](_0x285144=>{const _0x347955=_0x5c5c65;_0x285144[_0x347955(0x3a7)](_0x3c2377);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x3c2377,_0x581f54);}[_0x4fde36(0x371)](_0x198b40){const _0xfecb25=_0x4fde36;if(this[_0xfecb25(0x29e)][_0xfecb25(0x24d)](_0x198b40)){let _0x5668e8=this[_0xfecb25(0x29e)][_0xfecb25(0x3bd)](_0x198b40);_0x5668e8&&window[_0xfecb25(0x201)](_0x5668e8),this['_clearOtherTimers'][_0xfecb25(0x1a4)](_0x198b40,null);}}['_handleLeaveEvent'](_0x34692e){const _0x7eee26=_0x4fde36;let {memberID:_0x5f27d9,unitIDs:_0x53ee69}=_0x34692e;_0x53ee69['forEach'](_0x1a8505=>{const _0x4abaf8=_0x4dee;var _0x26283f;let _0x52c8f9=this[_0x4abaf8(0x333)]['get'](_0x1a8505);_0x52c8f9&&(_0x52c8f9['delete'](_0x5f27d9),(_0x26283f=this[_0x4abaf8(0x1f1)](_0x1a8505))==null||_0x26283f['next'](_0x52c8f9[_0x4abaf8(0x353)]===0x0?t[_0x4abaf8(0x163)][_0x4abaf8(0x276)]:t[_0x4abaf8(0x163)][_0x4abaf8(0x1ed)]));}),this[_0x7eee26(0x371)](_0x5f27d9);}[_0x4fde36(0x194)](_0x43c957){const _0x4fd600=_0x4fde36;this[_0x4fd600(0x24c)](_0x43c957[_0x4fd600(0x466)]);}['_send'](_0x2b284f){const _0x2836f9=_0x4fde36;localStorage[_0x2836f9(0x38e)](je,JSON[_0x2836f9(0x1e5)](_0x2b284f));}[_0x4fde36(0x3d3)](){const _0xdb16e7=_0x4fde36;this[_0xdb16e7(0x2bf)]=window[_0xdb16e7(0x1d3)](()=>{const _0x3d45ba=_0xdb16e7;this[_0x3d45ba(0x2a5)]({'type':0x2,'memberID':this['_id']});},Ae);}[_0x4fde36(0x1f1)](_0x3c2ca8){const _0x1fc517=_0x4fde36;return this[_0x1fc517(0x358)][_0x1fc517(0x24d)](_0x3c2ca8)||this[_0x1fc517(0x358)][_0x1fc517(0x1a4)](_0x3c2ca8,new i[(_0x1fc517(0x299))](t['UnitStatus'][_0x1fc517(0x276)])),this['_unitStatus'][_0x1fc517(0x3bd)](_0x3c2ca8);}};Object[_0x4fde36(0x319)](exports,_0x4fde36(0x329),{'enumerable':!0x0,'get':function(){return ke;}}),Object[_0x4fde36(0x319)](exports,_0x4fde36(0x2ba),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x4fde36(0x352)]=H,Object[_0x4fde36(0x319)](exports,_0x4fde36(0x422),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4fde36(0x2e0)]=xe,Object['defineProperty'](exports,_0x4fde36(0x1aa),{'enumerable':!0x0,'get':function(){return Q;}}),exports['WebBrowserSingleActiveUnitService']=Me;
|
|
1
|
+
const _0x3e206b=_0x1029;(function(_0x58c710,_0xb65c52){const _0x3e50a2=_0x1029,_0x5b4851=_0x58c710();while(!![]){try{const _0xb6351a=-parseInt(_0x3e50a2(0x229))/0x1+parseInt(_0x3e50a2(0x14b))/0x2+-parseInt(_0x3e50a2(0x17d))/0x3+parseInt(_0x3e50a2(0x2ea))/0x4*(parseInt(_0x3e50a2(0x221))/0x5)+-parseInt(_0x3e50a2(0x2da))/0x6+-parseInt(_0x3e50a2(0x1f4))/0x7+parseInt(_0x3e50a2(0x123))/0x8;if(_0xb6351a===_0xb65c52)break;else _0x5b4851['push'](_0x5b4851['shift']());}catch(_0x4df976){_0x5b4851['push'](_0x5b4851['shift']());}}}(_0x2886,0x1ee23),Object['defineProperty'](exports,Symbol[_0x3e206b(0x117)],{'value':_0x3e206b(0x2b2)}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/engine-render'),d=require('@univerjs/network'),f=require('@univerjs/docs-ui'),p=require('@univerjs-pro/collaboration'),m=require('@univerjs/docs'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs-pro/slides-ui'),v=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),y=require('@univerjs/protocol');function te(_0x378bd3){const _0x1627f8=_0x3e206b;switch(_0x378bd3){case t[_0x1627f8(0x266)][_0x1627f8(0x301)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x31d)],{}),'colorClass':_0x1627f8(0x356),'i18nKey':_0x1627f8(0x13f),'tooltipKey':_0x1627f8(0x423),'clickable':!0x0,'indicator':_0x1627f8(0x1c7)};case t['CollaborationStatus'][_0x1627f8(0x276)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x31d)],{}),'colorClass':_0x1627f8(0x236),'i18nKey':_0x1627f8(0x168),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};case t[_0x1627f8(0x266)]['FETCH_MISS']:return{'icon':(0x0,l['jsx'])(s[_0x1627f8(0x3ef)],{}),'colorClass':_0x1627f8(0x152),'i18nKey':_0x1627f8(0x195),'clickable':!0x1,'indicator':_0x1627f8(0x20d)};case t[_0x1627f8(0x266)][_0x1627f8(0x12d)]:return{'icon':(0x0,l['jsx'])(s[_0x1627f8(0x1a8)],{}),'colorClass':_0x1627f8(0x2f1),'i18nKey':_0x1627f8(0x3d5),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};case t[_0x1627f8(0x266)]['AWAITING']:case t['CollaborationStatus'][_0x1627f8(0x354)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x3ef)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x1627f8(0x17b),'clickable':!0x1,'indicator':_0x1627f8(0x20d)};case t['CollaborationStatus'][_0x1627f8(0x304)]:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x3ef)],{}),'colorClass':_0x1627f8(0x152),'i18nKey':_0x1627f8(0x17b),'clickable':!0x1,'indicator':'spin'};case t['CollaborationStatus']['SYNCED']:return{'icon':(0x0,l[_0x1627f8(0x40c)])(s[_0x1627f8(0x1a8)],{}),'colorClass':'univer-text-green-500','i18nKey':_0x1627f8(0x1a3),'clickable':!0x1,'indicator':_0x1627f8(0x1c7)};}}function ne(_0x519dc4){const _0x3905c5=_0x3e206b;let {status$:_0x3553e4}=_0x519dc4,_0x255649=(0x0,r[_0x3905c5(0x3a8)])(_0x3553e4,t[_0x3905c5(0x266)]['NOT_COLLAB']),_0x3a0a65=(0x0,r['useDependency'])(n[_0x3905c5(0x11d)]),_0x2f3fb5=(0x0,r['useDependency'])(t[_0x3905c5(0x167)]),_0x5c70c2=(0x0,c[_0x3905c5(0x2eb)])(()=>te(_0x255649),[_0x255649]),_0x549e8f=_0x255649!==t[_0x3905c5(0x266)]['OFFLINE'],_0x36f5a6=_0x3a0a65['t'](_0x5c70c2[_0x3905c5(0x192)]),_0x456499=_0x5c70c2[_0x3905c5(0x199)]?_0x3a0a65['t'](_0x5c70c2[_0x3905c5(0x199)]):_0x36f5a6,_0x2c74ad=(0x0,c[_0x3905c5(0x39c)])(()=>{_0x549e8f||_0x2f3fb5['reconnect']();},[_0x549e8f,_0x2f3fb5]),_0x1316b7=(0x0,c[_0x3905c5(0x39c)])(_0x40edc8=>{const _0xd65d05=_0x3905c5;!_0x549e8f&&(_0x40edc8['key']==='Enter'||_0x40edc8[_0xd65d05(0x25b)]==='\x20')&&(_0x40edc8['preventDefault'](),_0x2f3fb5[_0xd65d05(0x23a)]());},[_0x549e8f,_0x2f3fb5]),_0x15f7eb=(0x0,l[_0x3905c5(0x40c)])('span',{'className':(0x0,o[_0x3905c5(0x203)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3905c5(0x36a),_0x5c70c2[_0x3905c5(0x1ae)],{'univer-animate-spin':_0x5c70c2[_0x3905c5(0x32e)]===_0x3905c5(0x20d),'univer-animate-pulse':_0x5c70c2['indicator']==='pulse'}),'aria-hidden':'true','children':_0x5c70c2['icon']}),_0x5b59db=(0x0,l[_0x3905c5(0x40c)])('span',{'className':(0x0,o[_0x3905c5(0x203)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3905c5(0x24a),_0x3905c5(0x13a),_0x3905c5(0x331),_0x3905c5(0x3d8),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5c70c2['clickable'],'univer-cursor-default':!_0x5c70c2[_0x3905c5(0x3d6)]}),'children':_0x15f7eb});return _0x5c70c2[_0x3905c5(0x3d6)]?(0x0,l[_0x3905c5(0x40c)])(o[_0x3905c5(0x3b0)],{'title':_0x456499,'placement':'bottom','children':(0x0,l[_0x3905c5(0x40c)])(_0x3905c5(0x1a7),{'type':_0x3905c5(0x1a7),'onClick':_0x2c74ad,'onKeyDown':_0x1316b7,'className':(0x0,o[_0x3905c5(0x203)])(_0x3905c5(0x2ed),_0x3905c5(0x165),_0x3905c5(0x1c6),_0x3905c5(0x3d4)),'aria-label':_0x36f5a6+_0x3905c5(0x3b3)+_0x456499,'role':'status','aria-live':_0x3905c5(0x2e4),'aria-atomic':_0x3905c5(0x181),'children':_0x5b59db})}):(0x0,l[_0x3905c5(0x40c)])(o[_0x3905c5(0x3b0)],{'title':_0x456499,'placement':_0x3905c5(0x17f),'children':(0x0,l[_0x3905c5(0x40c)])(_0x3905c5(0x3d7),{'className':(0x0,o['clsx'])(_0x3905c5(0x2ed),_0x3905c5(0x165),_0x3905c5(0x1c6)),'aria-label':_0x36f5a6,'role':_0x3905c5(0x350),'aria-live':_0x3905c5(0x2e4),'aria-atomic':_0x3905c5(0x181),'children':_0x5b59db})});}function b(_0x305763){'@babel/helpers - typeof';const _0x2ebde8=_0x3e206b;return b=typeof Symbol==_0x2ebde8(0x256)&&typeof Symbol['iterator']==_0x2ebde8(0x37b)?function(_0xf1faec){return typeof _0xf1faec;}:function(_0x1d5300){const _0x319b50=_0x2ebde8;return _0x1d5300&&typeof Symbol=='function'&&_0x1d5300[_0x319b50(0x2fc)]===Symbol&&_0x1d5300!==Symbol[_0x319b50(0x263)]?_0x319b50(0x37b):typeof _0x1d5300;},b(_0x305763);}function re(_0x4d97bb,_0x76f44b){const _0x3d725f=_0x3e206b;if(b(_0x4d97bb)!='object'||!_0x4d97bb)return _0x4d97bb;var _0x26714d=_0x4d97bb[Symbol['toPrimitive']];if(_0x26714d!==void 0x0){var _0x20f052=_0x26714d['call'](_0x4d97bb,_0x76f44b||_0x3d725f(0x33a));if(b(_0x20f052)!=_0x3d725f(0x39b))return _0x20f052;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x76f44b===_0x3d725f(0x25e)?String:Number)(_0x4d97bb);}function ie(_0x214029){const _0x5d2988=_0x3e206b;var _0x13a9a7=re(_0x214029,_0x5d2988(0x25e));return b(_0x13a9a7)=='symbol'?_0x13a9a7:_0x13a9a7+'';}function x(_0xd71fb6,_0x25f449,_0x4a1cfb){const _0x513ee1=_0x3e206b;return(_0x25f449=ie(_0x25f449))in _0xd71fb6?Object[_0x513ee1(0x17e)](_0xd71fb6,_0x25f449,{'value':_0x4a1cfb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd71fb6[_0x25f449]=_0x4a1cfb,_0xd71fb6;}function S(_0x21d06f,_0x1c972d){return function(_0x243ea2,_0x284b31){_0x1c972d(_0x243ea2,_0x284b31,_0x21d06f);};}function C(_0x318229,_0x2b7d87,_0x408a21,_0x1f86c3){const _0x224640=_0x3e206b;var _0x3b0745=arguments[_0x224640(0x2ca)],_0x3cc73c=_0x3b0745<0x3?_0x2b7d87:_0x1f86c3===null?_0x1f86c3=Object[_0x224640(0x31e)](_0x2b7d87,_0x408a21):_0x1f86c3,_0x1d8abd;if(typeof Reflect==_0x224640(0x39b)&&typeof Reflect[_0x224640(0x153)]==_0x224640(0x256))_0x3cc73c=Reflect['decorate'](_0x318229,_0x2b7d87,_0x408a21,_0x1f86c3);else{for(var _0x3d2fe4=_0x318229[_0x224640(0x2ca)]-0x1;_0x3d2fe4>=0x0;_0x3d2fe4--)(_0x1d8abd=_0x318229[_0x3d2fe4])&&(_0x3cc73c=(_0x3b0745<0x3?_0x1d8abd(_0x3cc73c):_0x3b0745>0x3?_0x1d8abd(_0x2b7d87,_0x408a21,_0x3cc73c):_0x1d8abd(_0x2b7d87,_0x408a21))||_0x3cc73c);}return _0x3b0745>0x3&&_0x3cc73c&&Object[_0x224640(0x17e)](_0x2b7d87,_0x408a21,_0x3cc73c),_0x3cc73c;}let w=class extends n['Disposable']{constructor(_0x42649c,_0x338f0a,_0x18ea27,_0x49d984){const _0x4eea31=_0x3e206b;super(),this[_0x4eea31(0x169)]=_0x42649c,this['_injector']=_0x338f0a,this[_0x4eea31(0x38d)]=_0x18ea27,this[_0x4eea31(0x344)]=_0x49d984,x(this,_0x4eea31(0x3f9),new i[(_0x4eea31(0x19a))](t[_0x4eea31(0x266)][_0x4eea31(0x12d)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x3e206b(0x143)](){const _0x11f78b=_0x3e206b;this[_0x11f78b(0x1b7)]((0x0,i['merge'])(this[_0x11f78b(0x169)]['focused$'],this[_0x11f78b(0x169)][_0x11f78b(0x3ae)](n[_0x11f78b(0x166)][_0x11f78b(0x267)]),this[_0x11f78b(0x169)]['getCurrentTypeOfUnit$'](n[_0x11f78b(0x166)][_0x11f78b(0x3b6)]))[_0x11f78b(0x40a)]((0x0,a[_0x11f78b(0x29e)])(()=>ae(this[_0x11f78b(0x169)])),(0x0,a[_0x11f78b(0x2f2)])(),(0x0,i['switchMap'])(_0x56d990=>_0x56d990?this[_0x11f78b(0x38d)][_0x11f78b(0x33c)](_0x56d990):(0x0,i['of'])(null)),(0x0,i[_0x11f78b(0x1e6)])(_0x562794=>_0x562794?_0x562794['status$']:(0x0,i['of'])(t['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x29f2af=>{const _0x2c1230=_0x11f78b;this[_0x2c1230(0x3f9)][_0x2c1230(0x33b)](_0x29f2af);}));}[_0x3e206b(0x2fe)](){const _0x61326c=_0x3e206b;this[_0x61326c(0x1b7)](this[_0x61326c(0x344)][_0x61326c(0x3a6)](r[_0x61326c(0x3e5)][_0x61326c(0x3da)],()=>(0x0,r['connectInjector'])(se({'status$':this['_status$'][_0x61326c(0x1fb)]()}),this['_injector'])));}};w=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x3,r[_0x3e206b(0x228)])],w);let T=class extends n['Disposable']{constructor(_0xd2700d,_0x2f4dc4,_0x588d7e,_0x2223f1){const _0x4081ca=_0x3e206b;super(),this[_0x4081ca(0x169)]=_0xd2700d,this['_injector']=_0x2f4dc4,this['_collaborationController']=_0x588d7e,this['_uiPartsService']=_0x2223f1,x(this,_0x4081ca(0x3f9),new i[(_0x4081ca(0x19a))](t[_0x4081ca(0x266)][_0x4081ca(0x12d)])),this[_0x4081ca(0x2fe)](),this[_0x4081ca(0x143)]();}[_0x3e206b(0x143)](){const _0x3236b6=_0x3e206b;this['disposeWithMe']((0x0,i[_0x3236b6(0x273)])((0x0,i['of'])(null),this[_0x3236b6(0x169)][_0x3236b6(0x3ae)](n[_0x3236b6(0x166)]['UNIVER_BOARD']))[_0x3236b6(0x40a)]((0x0,a[_0x3236b6(0x29e)])(()=>oe(this[_0x3236b6(0x169)])),(0x0,a[_0x3236b6(0x2f2)])(),(0x0,i[_0x3236b6(0x1e6)])(_0x4f47ec=>_0x4f47ec?this[_0x3236b6(0x38d)][_0x3236b6(0x33c)](_0x4f47ec):(0x0,i['of'])(null)),(0x0,i[_0x3236b6(0x1e6)])(_0x23bbb0=>_0x23bbb0?_0x23bbb0[_0x3236b6(0x307)]:(0x0,i['of'])(t[_0x3236b6(0x266)][_0x3236b6(0x12d)])))[_0x3236b6(0x2e6)](_0x53c011=>{const _0x2606c2=_0x3236b6;this[_0x2606c2(0x3f9)][_0x2606c2(0x33b)](_0x53c011);}));}[_0x3e206b(0x2fe)](){const _0xb84081=_0x3e206b;this[_0xb84081(0x1b7)](this[_0xb84081(0x344)][_0xb84081(0x3a6)](e[_0xb84081(0x170)],()=>(0x0,r[_0xb84081(0x16a)])(se({'status$':this['_status$'][_0xb84081(0x1fb)]()}),this[_0xb84081(0x141)])));}};T=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x3,r[_0x3e206b(0x228)])],T);function ae(_0x2a6db7){const _0x1dc148=_0x3e206b;let _0xc228ce=_0x2a6db7[_0x1dc148(0x323)](),_0x4061c6=_0xc228ce==null?void 0x0:_0xc228ce[_0x1dc148(0x187)]();if(_0x4061c6&&!(0x0,n[_0x1dc148(0x351)])(_0x4061c6))return _0x4061c6;let _0x3cb59c=_0x2a6db7[_0x1dc148(0x3ad)](n[_0x1dc148(0x166)][_0x1dc148(0x267)]),_0x106673=_0x3cb59c==null?void 0x0:_0x3cb59c[_0x1dc148(0x187)]();if(_0x106673&&!(0x0,n[_0x1dc148(0x351)])(_0x106673))return _0x106673;let _0x237bd3=_0x2a6db7[_0x1dc148(0x3ad)](n[_0x1dc148(0x166)][_0x1dc148(0x3b6)]);if(_0x237bd3)return _0x237bd3['getUnitId']();let _0x1797e8=_0x2a6db7[_0x1dc148(0x3b1)](n[_0x1dc148(0x166)][_0x1dc148(0x267)])[_0x1dc148(0x18a)](_0x3727a9=>!(0x0,n[_0x1dc148(0x351)])(_0x3727a9[_0x1dc148(0x187)]()));return _0x1797e8?_0x1797e8[_0x1dc148(0x187)]():null;}function oe(_0x4474d6){const _0x226fb6=_0x3e206b;var _0x54963d;let _0xa49d06=_0x4474d6[_0x226fb6(0x3ad)](n[_0x226fb6(0x166)][_0x226fb6(0x1d6)]);return(_0x54963d=_0xa49d06==null?void 0x0:_0xa49d06[_0x226fb6(0x187)]())==null?null:_0x54963d;}function se(_0x2f64cd){let {status$:_0x59b171}=_0x2f64cd;return function(){const _0xdd9fa8=_0x1029;return(0x0,l[_0xdd9fa8(0x40c)])(ne,{'status$':_0x59b171});};}var ce=_0x3e206b(0x3e9),le='1.0.0-alpha.6';const ue={};let E=class extends n[_0x3e206b(0x1cf)]{constructor(_0xc5b649,_0xf6899e){const _0x51cb08=_0x3e206b;super(),this[_0x51cb08(0x28a)]=_0xc5b649,this[_0x51cb08(0x29a)]=_0xf6899e,this[_0x51cb08(0x327)]();}[_0x3e206b(0x327)](){const _0x5c8813=_0x3e206b;let _0x32ff0e=this;this[_0x5c8813(0x1b7)](this[_0x5c8813(0x28a)][_0x5c8813(0x306)]({'onBeforePasteImage':async _0x2fb846=>{const _0x580e9e=_0x5c8813;let _0x2c3d7f=await _0x32ff0e[_0x580e9e(0x29a)][_0x580e9e(0x13c)](_0x2fb846);return _0x2c3d7f?{'source':_0x2c3d7f['source'],'imageSourceType':_0x2c3d7f[_0x580e9e(0x2a1)]}:null;}}));}};E=C([S(0x0,f[_0x3e206b(0x22a)]),S(0x1,n[_0x3e206b(0x410)])],E);function de(_0x47668d,_0x19753a){const _0xd4bea3=_0x3e206b;_0x47668d['save'](),_0x47668d[_0xd4bea3(0x1e9)]=_0xd4bea3(0x418);let _0x2ec503=_0x47668d[_0xd4bea3(0x40d)](_0x19753a)[_0xd4bea3(0x3ed)];return _0x47668d[_0xd4bea3(0x291)](),Math[_0xd4bea3(0x24c)](_0x2ec503+0x8,0xc8);}function fe(_0xc8928a,_0x7c18ac){const _0x422a30=_0x3e206b;var _0x486290,_0x5c977a,_0x5ad9cf;let {radius:_0x3c54a5,width:_0x381234,height:_0x5da927}=_0x7c18ac;_0x3c54a5=(_0x486290=_0x3c54a5)==null?0x0:_0x486290,_0x381234=(_0x5c977a=_0x381234)==null?0x1e:_0x5c977a,_0x5da927=(_0x5ad9cf=_0x5da927)==null?0x1e:_0x5ad9cf;let _0xdea487=0x0,_0x36f54e=0x0,_0x734992=0x0;_0xdea487=_0x36f54e=_0x734992=Math[_0x422a30(0x24c)](_0x3c54a5,_0x381234/0x2,_0x5da927/0x2),_0xc8928a[_0x422a30(0x292)](),_0xc8928a[_0x422a30(0x380)](_0xdea487,0x0),_0xc8928a[_0x422a30(0x1f1)](_0x381234-_0x36f54e,0x0),_0xc8928a[_0x422a30(0x219)](_0x381234-_0x36f54e,_0x36f54e,_0x36f54e,Math['PI']*0x3/0x2,0x0,!0x1),_0xc8928a['lineTo'](_0x381234,_0x5da927-_0x734992),_0xc8928a[_0x422a30(0x219)](_0x381234-_0x734992,_0x5da927-_0x734992,_0x734992,0x0,Math['PI']/0x2,!0x1),_0xc8928a[_0x422a30(0x1f1)](0x0,_0x5da927),_0xc8928a[_0x422a30(0x1f1)](0x0,_0xdea487),_0xc8928a[_0x422a30(0x219)](_0xdea487,_0xdea487,_0xdea487,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc8928a[_0x422a30(0x163)](),_0x7c18ac[_0x422a30(0x1ad)]&&(_0xc8928a[_0x422a30(0x345)](),_0xc8928a[_0x422a30(0x386)]=_0x7c18ac[_0x422a30(0x1ad)],_0x7c18ac[_0x422a30(0x247)]==='evenodd'?_0xc8928a[_0x422a30(0x1ad)]('evenodd'):_0xc8928a[_0x422a30(0x1ad)](),_0xc8928a[_0x422a30(0x291)]());}function _0x2886(){const _0x8ca693=['_getSessionTicket','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','addEventListener','parseInt',':backup:','registerBeforeClose','_localStorageService','/universer-api/frontend/logs','INotificationService','invokeId','default','next','getCollabEntity$','event$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','forceDisable','_doCreateSocket','_setupBeforeClosingHandler','getRangePointData','_removeCollabCursors','_uiPartsService','save','ISocketService','complete','popstate','_localCacheService','MemberService','registerDependencies','purple.300','_updateCollabCursors','context','activeSheet$','status','isInternalEditorID','RemoveColCommandId','Warning','AWAITING_WITH_PENDING','_scene','univer-text-red-500','getCoordByCell','search','collaboration-client-ui.permission.content','removeObjects','unload','dirtyRanges','startsWith','_createSocketURL','ThemeService','_logService','0.2)','endRow','Plugin','getRealBound','_refreshCollabCursors','collab-text-anchor-','_color','version','set','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','drawWith','enableLocalCache','_onCursorDelete','transformStateCache','jiqing.500','getMemberID','isActive','_handleHover','_collaborationSessionService','DependentOn','SetSelectionsOperation','_refRangeService','SHEET_VIEWPORT_KEY','Vector2','getVpScrollXYInfoByPosToVp','syncEditingCollabCursor','symbol','pushState','_getSheetObject','_getSaveTimeout','saveTaskMap','moveTo','_docSkeletonManagerService','TEXT_RANGE_LAYER_INDEX','CLOSE_ROOM','loadUnit','_notificationService','fillStyle','now','_scheduleSaving','_renderScheduled','_commandService','SetDocZoomRatioOperation','jsxs','_collaborationController','_sheetSkeletonManagerService','replace','body','CollaborationUIEventId','collaboration-client-ui.conflict.title','handleInsertRangeMoveRight','_snapshotLoadingService','getSheetId','filename','reason','WebSocketService','IBoardElementStateService','_docSyncEditingCollabCursorService','object','useCallback','_render','showText','setInterval','split','onPointerEnter$','Disposable','size','createIdentifier','_cachedData','registerComponent','USERS_LEAVE','useObservable','_initCommandInterceptor','exhaustSavingTask','_getFormulaLimitStatus','_clearOtherTimers','getCurrentUnitOfType','getCurrentTypeOfUnit$','_memberID','Tooltip','getAllUnitsForType','MoveRangeCommandId','\x20-\x20','_highlightSecond','setAlpha','UNIVER_SHEET','getParam','_onCursorUpdate','runOnServer','type','IBeforeCloseService','_transformPreviousActiveRange','remove','getCollabCursors$','unit','color','_messageService','enableDocumentCollaborationUI','beforeCommandExecuted','_registerDependencies','getValue','_hidePreview','error','ISlideDrawingStateService','handoff','black','_pollingInterval','Unknown\x20user','_anchor','_id','sessionStatus$','hovered','getUnitStatus$','_selfUnitIDs','ILocalCacheService','univer-appearance-none','collaboration-client-ui.collabStatus.notCollab','clickable','div','dark:focus:!univer-ring-offset-gray-800','generateRandomId','HEADER_MENU','getConfig','InsertRangeMoveDownCommandId','UPDATE_CURSOR','_highlight','unitID','getActivePageId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DocSelectionManagerService','/universer-api/license/formula/limit/status','[Unhandled\x20Rejection]:\x20','BuiltInUIPart','_isVisibleUnit','activeSheetId','_clearBlockProgressWatch','@univerjs-pro/collaboration-client-ui','_disabled','_config','registerRenderModule','width','IMessageService','LoadingMultiIcon','stageInfo','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNIVER_SLIDE','timedOut','_eventUnsubscribe','_colorIndex','_onRefRangeChange','_lastPointer','NodePositionConvertToCursor','_status$','has','debounce','whenReady','_draw','slide-element-selection','SheetsSelectionsService','_startSheetCollabCursor','colno','_hideTimer','pageManager','isFormulaString','_getObjectBounds','stringify','mapTo','startColumn','\x20at\x20','pipe','getId','jsx','measureText','stack','getSkeleton','IImageIoService','collaboration-client-ui.config','getSheetObject','_updateSubUnitFromURLParams','/universer-api/license/formula/limit/start','DeleteRangeMoveLeftCommandId','_entityInit$','transformSelections','bold\x2013px\x20Arial,\x20sans-serif','_roomMembers$','fromEventSubject','collab-text-range-','shareReplay','_isApplyingOverlays','_clearPolling','DEFAULT_WS_SESSION_TICKET_URL','handleMoveRange','_getLighterColor','post','collaboration-client-ui.collabClient.tooltip.reconnect','_handleJoinEvent','toStringTag','mutations','debug','combineLatest','filter','deepClone','LocaleService','[CollaborationDataLoaderController]','Shape','Workbook','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getItem','2677040dggyuH','setActiveRange','_pointerMoveDisposable','send','sheetID','endColumn','_clearTimeoutState','VIEW_MAIN','name','value','NOT_COLLAB','touchDependencies','_pluginService','_urlService','with','_send','_uploadLog','handleIRemoveCol','_toggleOffline','rgba(255,\x20255,\x20255,\x200.01)','_startCalculationLimit','timeoutState$','_getSheetLoadingRenderService','univer-transition-all\x20univer-duration-200','getSnapshot','saveImage','Success','transformMutationsWithChangeset','collaboration-client-ui.collabStatus.offline','collaboration-client-ui.snapshotLoading.loadingSheet','_injector','collaboration-client-ui.collaboration.closeRoom','_initStatusListener','onCommandExecuted','getCurrentSkeleton','location','getColor','_startBoardCollabCursor','DocCollaborationEntity','SetFormulaCalculationNotificationMutation','468248uBumVs','getRelativeToViewportCoord','getObjectIncludeInGroup','_labelHorizontalPosition','timeoutId','_drawRectRange','findNodePositionByCharIndex','univer-text-blue-500','decorate','COMPLETE','alert','_timeoutState$','Error','show','_blinkTimer','_collaborationUIEventService','_transformHistoryAndStateStack','MessageType','_applyCommand','createElement','href','isEditing','currentTheme$','_docTransformIMECacheService','closePath','_backgroundColor','univer-border-none\x20univer-bg-transparent','UniverInstanceType','CollaborationSessionService','collaboration-client-ui.collabStatus.conflict','_univerInstanceService','connectInjector','_checkCalculationAvailable','_ensureSubject','_docTransformStateCacheService','highlightSecond','executeCommand','BOARD_TOP_RIGHT_MENU_LEADING_PART','_revisionService','Optional','Subject','setConfig','offsetY','DocIMEInputManagerService','slice','all','collaboration-client-ui.session.will-retry','subunit','collaboration-client-ui.collabStatus.syncing','unshift','689553lSbWoA','defineProperty','bottom','RefRangeService','true','requireSession','replaceState','_initDependencies','LOADING_BLOCKS','searchParams','getUnitId','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','[Window\x20Error]:\x20','find','updateOfflineData','_collabCursorState$','NodePositionConvertToRectRange','COLORS','_httpService','onRendered','_session','i18nKey','engine','_cursorShapes','collaboration-client-ui.collabStatus.fetchMiss','unitId','onMouseMove','collaboration-client-ui.snapshotLoading.refresh','tooltipKey','BehaviorSubject','reload','board-collab-cursor-','_updateSheetPreview','column','doc.mutation.rich-text-editing','ticket','totalBlocks','_entities','collaboration-client-ui.collabStatus.synced','_docStateChangeManagerService','refreshLabel','_transformUndoRedoStack','button','OnLineIcon','roomMembers','limitInfo','isArray','_scheduleRender','fill','colorClass','OTHER_CLIENTS_EDITING','mergeOverrideWithDependencies','HTTPService','isTransformMutationFailure','fillText','angle','_showGuardMessage','WarningIcon','disposeWithMe','setTimeout','SetWorksheetActivateCommand','stage','_transformService','_handoffPreview','_unitOnClients','redoState','RECT','_removeClearOtherTimer','_saveTaskMap','_getMergeRange','functionsExecutedState','Failed','registerRefRange','univer-m-0\x20univer-p-0','static','[LogService\x20Error]:\x20','showSkeleton','_toggleOnline','_docTransformSelectionsService','releaseFormulaLimitUrl','hide','_messageIds','RxDisposable','_hover','_maxFormulaLimit','override','contains','_getScale','collaboration-client-ui.collaboration.offline-data-not-saved','UNIVER_BOARD','state$','SnapshotLoadStage','collaboration-client-ui.conflict.content','Fragment','Loading','clearInterval','right','DesktopCollaborationStatusDisplayController','setParam','_previewUnitId','_drawAnchor','_dataLoaderService','isTransformMutationsWithChangesetSuccess','ICommandService','lineno','switchMap','_scheduleHeartbeat','unsubscribe','font','_cursorInfo$','newValue','parse','FromArray','scene','CanceledError','kind','lineTo','snapshot-loading-timeout','SnapshotLoadingService','288253dpwIAz','onPointerLeave$','left','_startBlinking','board-element-selection','transformRemoteChangeset','subUnitId','asObservable','getRenderById','toString','params','roomMembers$','makeDirty','removeObject','code','clsx','collaboration-client-ui.collaboration.single-unit.warning','_setInteractionBlocked','getTypeOfUnitAdded$','_unitStatus','PluginService','_shortcutBlock','fromEvent','_colorAssignService','getStateCache','spin','IConfigService','WebBrowserSingleActiveUnitService','_checkAndWaitForCalculationPermission','enableFrontendLog','CollaborationEvent','_cursors','text','backupOfflineData','highlight','setStateCache','IRenderManagerService','arc','some','getTypeOfUnitDisposed$','_taskIds','removeEventListener','DisposableCollection','DocSkeletonManagerService','removeParam','95790WhtwiN','_collabSessionService','InsertRangeMoveRightCommandId','dispose$','setItem','saveOfflineData','_name','IUIPartsService','55153bMpwGL','IDocClipboardService','SheetCollabCursorShape','throttleTime','_memberService','_handleHeartbeatEvent','_boardElementStateService','_renderManagerService','span','rgba(','selections','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_isBlinkVisible','univer-text-orange-500','_hasFormulaInDirtyRanges','height','_updateURLWithCurrentState','reconnect','_initUserListener','uni.network.url-service','serializeRangeWithSheet','backgroundColor','ACTIVE_UNIT_EVENT_CHANNEL','lineWidth','ColorKit','_offsetY','ErrorCode','Injector','handleInsertRow','_range','fillRule','RichTextEditingMutation','Tools','univer-h-8\x20univer-w-8\x20univer-rounded-lg','handleDeleteRangeMoveLeft','min','_syncEditingCollabCursorService','buildDrawingOKey','_initCommandExecutedListener','transformMutation','then','_heartbeatTimer','_assignedColors','transform','unhandledrejection','function','getLocalCacheKey','_latestStates','disableLocalCache','_registerRenderDependencies','key','totalFormulasToCalculate','EffectRefRangId','string','SOCKET_FAILED','snapshot-loading-interaction-guard','collabCursorState$','join','prototype','add','blue.400','CollaborationStatus','UNIVER_DOC','addObject$','_getAnchorBounding','_shapes','SessionStatus','_saveCache','InsertRowCommandId','selection','...','addObject','from','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','merge','m1Prime','_handoffUnitIds','CONFLICT','_stopBlinking','_currentUsage','m2Prime','getCurrentRevOfUnit','textRanges','Button','IUniverInstanceService','collaboration-client-ui.permission.title','FormulaExecutedStateType','rgba','CollaborationUIEventService','getUndoRedoMutationParamsCache','urlChange$','OTHER_CLIENT_EDITING','SUCCESS','labelPosition','slide-collab-cursor-','collaboration-client-ui.formula.calculation.started','getSheetBySheetId','_docClipboardService','get','workbookShell','_initUnhandledRejectionListener','_document','#4f46e5','getActiveSlide','restore','beginPath','call','cursorInfo$','toISOString','DataLoaderService','toDisposable','_setFormulaLimitStatus','primary','_imageIoService','strokeWidth','UniverCollaborationClientUIPlugin','collaboration-client-ui.session.collaboration-timeout','map','handleInsertCol','IURLService','imageSourceType','_hovered','getFormulaLimitStatusUrl','_showText','editingUnit','ranges','origin','dispose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentSelections','debounceTime','SheetSkeletonManagerService','/run/','transformIMECache','_anchorDot','addHandlerCallback','onTransformChange$','Module','_localeService','clearTimeout','_getSceneObjectByKey','toRgbString','_shortcutService','selectedIds','_sheetLoadingRenderService','_monkeyPatchLogService','LOCAL_CACHE_INTERVAL','NO_OTHER_CLIENTS_EDITING','delete','theme$','CollaborationController','createInstance','ITransformService','_handleLeaveEvent','ILogService','collaboration-client-ui.snapshotLoading.timeout','_interactionBlocked$','startRow','_collabCursorController','_initResize','_initWindowErrorListener','length','getDocRanges','_blinkIntervalTimer','values','FormulaExecuteStageType','ERROR','RegularPolygon','_online','getUniverSheetInstance','PERMISSION_DENIED','_updateMessage','ILocalStorageService','forEach','_cursor','onPointerMove$','loadedBlocks','1386120rlAGtO','_initEntityListener','_docSkeleton','getBoardElementRenderObjectKey','Inject','bind','_labelPosition','_slideDrawingStateService','_startDocCollabCursor','deserializeRangeWithSheet','polite','init','subscribe','application/json','UnitStatus','ONLINE','24FSSHwQ','useMemo','assignAColorForMemberID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','data','focusedId','strokeStyle','univer-text-gray-400','distinctUntilChanged','cursorInfo','createSocket','runId','resolve','IRemoteInstanceService','getActiveSheet','getViewport','Rect','maxFormulaLimit','constructor','range','_initStatusComponent','isFormulaId','transformByState','OFFLINE','_configService','currentSkeleton$','PENDING','previewCellData','addClipboardHook','status$','DOC_RANGE_TYPE','_instanceService','_latestCursors','setShapeProps','_blockProgressWatches','setLineDash','collaboration-client-ui.session.connection-failed','_updateLocalCursor','replaceDocRanges','addObjects','_textBubble','push','_scheduleClearOtherTimer','snapshot-loading-','_beforeCloseService','_handleEvent','_context','history','eventID','_lastResponseTimestamp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','OffLineIcon','getOwnPropertyDescriptor','_watchBlockProgress','/universer-api/license/formula/limit/done','yellow.400','getMember','getFocusedUnit','_themeService','_initEvent','takeUntil','_init','getColorFromTheme','currentUsage','top','subscribeEvent','_setupSubUnitSync','clear','indicator','resize'];_0x2886=function(){return _0x8ca693;};return _0x2886();}var D=class e extends u[_0x3e206b(0x11f)]{constructor(_0x58cfbe,_0x23b034){const _0xe6cb16=_0x3e206b;super(_0x58cfbe,_0x23b034),x(this,_0xe6cb16(0x3c0),void 0x0),x(this,_0xe6cb16(0x214),void 0x0),this[_0xe6cb16(0x3c0)]=_0x23b034==null?void 0x0:_0x23b034[_0xe6cb16(0x3c0)],this[_0xe6cb16(0x214)]=_0x23b034==null?void 0x0:_0x23b034[_0xe6cb16(0x214)];}static[_0x3e206b(0x36b)](_0x11f681,_0x5cd6f3){const _0x13754d=_0x3e206b;let {text:_0x51a825,color:_0x2e815d}=_0x5cd6f3;_0x11f681[_0x13754d(0x345)](),_0x11f681[_0x13754d(0x1e9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x5a1164=_0x11f681[_0x13754d(0x40d)](_0x51a825)[_0x13754d(0x3ed)];if(fe(_0x11f681,{'height':0x14,'radius':0x4,'width':de(_0x11f681,_0x51a825),'fill':_0x2e815d,'evented':!0x1}),_0x11f681[_0x13754d(0x386)]='#FFF',_0x5a1164>0xc0){let _0xd6c65f='',_0x26517b=0x0;for(let _0x220d36 of _0x51a825){let _0x107b86=_0x11f681['measureText'](_0x220d36)[_0x13754d(0x3ed)];if(_0x26517b+_0x107b86<=0xc0-_0x11f681['measureText'](_0x13754d(0x26f))[_0x13754d(0x3ed)])_0xd6c65f+=_0x220d36,_0x26517b+=_0x107b86;else{_0xd6c65f+='...';break;}}_0x11f681[_0x13754d(0x1b3)](_0xd6c65f,0x4,0xf);}else _0x11f681[_0x13754d(0x1b3)](_0x51a825,0x4,0xf);_0x11f681[_0x13754d(0x291)]();}[_0x3e206b(0x3fd)](_0x437ca0){const _0x3b06ef=_0x3e206b;e[_0x3b06ef(0x36b)](_0x437ca0,this);}};const O=0x138a;var pe=class extends u[_0x3e206b(0x11f)]{constructor(_0x23cdb6,_0xf38c94){const _0x449b30=_0x3e206b;super(_0x23cdb6,{..._0xf38c94,'evented':!0x1}),x(this,'_color',_0x449b30(0x28f)),x(this,_0x449b30(0x227),''),x(this,'_showText',!0x0),_0xf38c94&&this[_0x449b30(0x30b)](_0xf38c94);}['setShapeProps'](_0x57a329){const _0x574393=_0x3e206b;var _0x4f9bfd,_0x246e10,_0x3c0d7b,_0x5ce09e,_0x1a4e20,_0x501028,_0x9d2d43,_0x2aada8;this['_color']=(_0x4f9bfd=_0x57a329[_0x574393(0x3c0)])==null?this[_0x574393(0x367)]:_0x4f9bfd,this[_0x574393(0x227)]=(_0x246e10=_0x57a329[_0x574393(0x12b)])==null?this['_name']:_0x246e10,this[_0x574393(0x2a4)]=(_0x3c0d7b=_0x57a329['showText'])==null?this['_showText']:_0x3c0d7b,this['evented']=!0x1,this[_0x574393(0x300)]({'left':(_0x5ce09e=_0x57a329[_0x574393(0x1f6)])==null?this[_0x574393(0x1f6)]:_0x5ce09e,'top':(_0x1a4e20=_0x57a329[_0x574393(0x32a)])==null?this[_0x574393(0x32a)]:_0x1a4e20,'width':(_0x501028=_0x57a329[_0x574393(0x3ed)])==null?this[_0x574393(0x3ed)]:_0x501028,'height':(_0x9d2d43=_0x57a329[_0x574393(0x238)])==null?this[_0x574393(0x238)]:_0x9d2d43,'angle':(_0x2aada8=_0x57a329[_0x574393(0x1b4)])==null?this[_0x574393(0x1b4)]:_0x2aada8});}[_0x3e206b(0x3fd)](_0x473feb){const _0x2b2af6=_0x3e206b;_0x473feb[_0x2b2af6(0x345)](),_0x473feb[_0x2b2af6(0x2f0)]=this[_0x2b2af6(0x367)],_0x473feb[_0x2b2af6(0x240)]=this[_0x2b2af6(0x29b)]||1.5,_0x473feb[_0x2b2af6(0x30d)]([0x6,0x4]),_0x473feb['strokeRect'](0x0,0x0,this[_0x2b2af6(0x3ed)],this[_0x2b2af6(0x238)]),_0x473feb['restore'](),this[_0x2b2af6(0x2a4)]&&(_0x473feb[_0x2b2af6(0x345)](),_0x473feb[_0x2b2af6(0x254)](0x1,0x0,0x0,0x1,this[_0x2b2af6(0x3ed)],-0x14),D['drawWith'](_0x473feb,{'text':this['_name'],'color':this[_0x2b2af6(0x367)]}),_0x473feb[_0x2b2af6(0x291)]());}};const me=[_0x3e206b(0x34c),_0x3e206b(0x36f),'green.600','red.300',_0x3e206b(0x265),_0x3e206b(0x321)];var k=class extends n[_0x3e206b(0x3a2)]{constructor(..._0x323784){const _0x1589fc=_0x3e206b;super(..._0x323784),x(this,_0x1589fc(0x253),new Map()),x(this,_0x1589fc(0x3f5),0x0);}[_0x3e206b(0x2ec)](_0xde1942){const _0x4a0073=_0x3e206b;if(this[_0x4a0073(0x253)]['has'](_0xde1942))return this[_0x4a0073(0x253)]['get'](_0xde1942);let _0x27c22e=me[this['_colorIndex']];return this[_0x4a0073(0x3f5)]=(this[_0x4a0073(0x3f5)]+0x1)%me[_0x4a0073(0x2ca)],this[_0x4a0073(0x253)]['set'](_0xde1942,_0x27c22e),_0x27c22e;}};function he(_0x2a8d37){const _0x1f25f0=_0x3e206b;let _0x4ef286;try{_0x4ef286=JSON[_0x1f25f0(0x1ec)](_0x2a8d37);}catch{return null;}if(typeof _0x4ef286!=_0x1f25f0(0x39b)||!_0x4ef286)return null;let _0x2c8d69=_0x4ef286;if(_0x2c8d69[_0x1f25f0(0x1f0)]!==_0x1f25f0(0x1f8)||typeof _0x2c8d69[_0x1f25f0(0x196)]!='string'||typeof _0x2c8d69[_0x1f25f0(0x1fa)]!=_0x1f25f0(0x25e))return null;let _0x39d7ea=Array['isArray'](_0x2c8d69['selectedIds'])?_0x2c8d69[_0x1f25f0(0x2b8)][_0x1f25f0(0x11b)](_0xe594ce=>typeof _0xe594ce=='string'):[],_0x4489ad=typeof _0x2c8d69[_0x1f25f0(0x2ef)]==_0x1f25f0(0x25e)?_0x2c8d69[_0x1f25f0(0x2ef)]:null;return{'kind':_0x1f25f0(0x1f8),'unitId':_0x2c8d69[_0x1f25f0(0x196)],'subUnitId':_0x2c8d69['subUnitId'],'selectedIds':_0x39d7ea,'focusedId':_0x4489ad};}let A=class extends n[_0x3e206b(0x1cf)]{get[_0x3e206b(0x2f3)](){const _0x37be49=_0x3e206b;return this[_0x37be49(0x1ea)]['getValue']();}get[_0x3e206b(0x1a9)](){const _0x4d6d01=_0x3e206b;return this[_0x4d6d01(0x419)][_0x4d6d01(0x3c5)]();}constructor(_0x497a48,_0x2a9a51,_0x158a9d,_0x280c9a,_0x43140f){const _0xc97353=_0x3e206b;super(),this[_0xc97353(0x3df)]=_0x497a48,this[_0xc97353(0x191)]=_0x2a9a51,this[_0xc97353(0x20b)]=_0x158a9d,this[_0xc97353(0x22d)]=_0x280c9a,this[_0xc97353(0x22f)]=_0x43140f,x(this,_0xc97353(0x2d1),!0x1),x(this,_0xc97353(0x327),!0x1),x(this,_0xc97353(0x1ea),new i[(_0xc97353(0x19a))](new Map())),x(this,_0xc97353(0x294),this['_cursorInfo$'][_0xc97353(0x1fb)]()),x(this,_0xc97353(0x419),new i['BehaviorSubject']([])),x(this,_0xc97353(0x1ff),this['_roomMembers$']['pipe']((0x0,i[_0xc97353(0x2ab)])(0x12c))),x(this,_0xc97353(0x30f),(0x0,n[_0xc97353(0x3fb)])(_0x4e2261=>{const _0x592206=_0xc97353;let _0x513ea5=_0x4e2261[_0x592206(0x34e)];if(!_0x513ea5||_0x513ea5[_0x592206(0x196)]!==this[_0x592206(0x3df)])return;let _0x1832dc={'kind':_0x592206(0x1f8),'unitId':_0x513ea5[_0x592206(0x196)],'subUnitId':_0x513ea5[_0x592206(0x1fa)],'selectedIds':_0x4e2261[_0x592206(0x2b8)]['filter'](_0xccf4b6=>typeof _0xccf4b6==_0x592206(0x25e)),'focusedId':_0x4e2261[_0x592206(0x2ef)]},_0x424a5d={'eventID':p[_0x592206(0x212)][_0x592206(0x3dd)],'data':{'unitID':this[_0x592206(0x3df)],'memberID':this['_session'][_0x592206(0x370)](),'selection':JSON[_0x592206(0x406)](_0x1832dc)}};this['_session']['send'](_0x424a5d,this['unitID']);},0x64));}[_0x3e206b(0x2a8)](){const _0x4c2136=_0x3e206b;super[_0x4c2136(0x2a8)](),this[_0x4c2136(0x1ea)]['next'](new Map()),this[_0x4c2136(0x1ea)][_0x4c2136(0x347)](),this[_0x4c2136(0x419)][_0x4c2136(0x33b)]([]),this[_0x4c2136(0x419)][_0x4c2136(0x347)]();}[_0x3e206b(0x2e5)](){const _0x45ea24=_0x3e206b;this[_0x45ea24(0x327)]||(this[_0x45ea24(0x327)]=!0x0,this[_0x45ea24(0x191)]['sessionStatus$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))[_0x45ea24(0x2e6)](_0x1c4437=>{const _0x210c8e=_0x45ea24;_0x1c4437===t['SessionStatus'][_0x210c8e(0x2e9)]?this[_0x210c8e(0x1ca)]():this[_0x210c8e(0x135)]();}),this[_0x45ea24(0x191)]['event$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))['subscribe'](_0x15c8a0=>{const _0x51163c=_0x45ea24;let _0x11ed62=_0x15c8a0['eventID'];_0x11ed62===p[_0x51163c(0x212)][_0x51163c(0x3dd)]&&this['_onCursorUpdate'](_0x15c8a0),_0x11ed62===p[_0x51163c(0x212)][_0x51163c(0x3a7)]&&this[_0x51163c(0x36d)](_0x15c8a0);}),this[_0x45ea24(0x22f)]['state$'][_0x45ea24(0x40a)]((0x0,i[_0x45ea24(0x326)])(this[_0x45ea24(0x224)]))['subscribe'](_0x16b227=>{const _0xeef3b4=_0x45ea24;this[_0xeef3b4(0x2d1)]&&this[_0xeef3b4(0x30f)](_0x16b227);}));}['_onCursorUpdate'](_0x1552bf){const _0x270b47=_0x3e206b;var _0x4de047,_0x109fb4,_0x53c4f8,_0x4b244a;let {memberID:_0x243619,selection:_0x119d9a}=_0x1552bf['data'];if(_0x243619===((_0x4de047=(_0x109fb4=this[_0x270b47(0x191)])[_0x270b47(0x370)])==null?void 0x0:_0x4de047['call'](_0x109fb4)))return;let _0x165b71=he(_0x119d9a);if(!_0x165b71||_0x165b71[_0x270b47(0x196)]!==this[_0x270b47(0x3df)])return;let _0x1bf008=(_0x53c4f8=(_0x4b244a=this['_memberService'][_0x270b47(0x322)](this[_0x270b47(0x3df)],_0x243619))==null?void 0x0:_0x4b244a[_0x270b47(0x12b)])==null?_0x270b47(0x3cc):_0x53c4f8,_0x58f682={'color':this[_0x270b47(0x20b)]['assignAColorForMemberID'](_0x243619),'name':_0x1bf008,'unitId':_0x165b71[_0x270b47(0x196)],'subUnitId':_0x165b71[_0x270b47(0x1fa)],'selectedIds':_0x165b71['selectedIds'],'focusedId':_0x165b71[_0x270b47(0x2ef)],'selection':_0x119d9a},_0x3d5a8f=new Map(this['cursorInfo']);_0x3d5a8f[_0x270b47(0x369)](_0x243619,_0x58f682),this[_0x270b47(0x1ea)][_0x270b47(0x33b)](_0x3d5a8f);}[_0x3e206b(0x36d)](_0x4e9732){const _0x477b8c=_0x3e206b;let {memberID:_0x362f39}=_0x4e9732['data'],_0x5d2e7f=new Map(this[_0x477b8c(0x2f3)]);_0x5d2e7f[_0x477b8c(0x2bd)](_0x362f39),this[_0x477b8c(0x1ea)]['next'](_0x5d2e7f);}['_toggleOnline'](){const _0x5e7dde=_0x3e206b;this[_0x5e7dde(0x2d1)]=!0x0,this['_updateLocalCursor'](this['_boardElementStateService'][_0x5e7dde(0x13b)]());}['_toggleOffline'](){const _0x141c82=_0x3e206b;this[_0x141c82(0x2d1)]=!0x1;}};A=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x4,(0x0,n['Inject'])(e[_0x3e206b(0x399)]))],A);function _0x1029(_0x312c72,_0x2224d8){_0x312c72=_0x312c72-0x117;const _0x288692=_0x2886();let _0x10291f=_0x288692[_0x312c72];return _0x10291f;}function ge(_0x2f84e3){let _0x1f0211='';for(let _0x2a1e2d of _0x2f84e3){let {startOffset:_0x1d0ac5,endOffset:_0x564ffd,isActive:_0x1d6da5,rangeType:_0x16be36,segmentId:_0x2c7e39,segmentPage:_0x36ebbe}=_0x2a1e2d;_0x1f0211['length']&&(_0x1f0211+=','),_0x1f0211+=_0x1d0ac5+':'+_0x564ffd+':'+(_0x1d6da5?'1':'0')+':'+_0x16be36+':'+_0x2c7e39+':'+_0x36ebbe;}return _0x1f0211;}function _e(_0x27ee58){const _0x32c4af=_0x3e206b;let _0x16e35c=_0x27ee58[_0x32c4af(0x3a0)](','),_0x376609=[];for(let _0x2e22e8 of _0x16e35c){let [_0x4154e8,_0x498254,_0x3f3ef2,_0x387eff,_0x162268,_0x376afa]=_0x2e22e8[_0x32c4af(0x3a0)](':');_0x376609[_0x32c4af(0x313)]({'startOffset':Number(_0x4154e8),'endOffset':Number(_0x498254),'collapsed':_0x4154e8===_0x498254,'isActive':_0x3f3ef2==='1','rangeType':_0x387eff===n[_0x32c4af(0x308)]['TEXT']?n[_0x32c4af(0x308)]['TEXT']:n[_0x32c4af(0x308)][_0x32c4af(0x1bf)],'segmentId':typeof _0x162268==_0x32c4af(0x25e)?String(_0x162268):'','segmentPage':Number(_0x376afa==null?-0x1:_0x376afa)});}return _0x376609[_0x32c4af(0x21a)](_0x1e5471=>_0x1e5471['isActive'])||(_0x376609[0x0][_0x32c4af(0x371)]=!0x0),_0x376609;}var j=class extends n[_0x3e206b(0x1cf)]{constructor(..._0x4d2dd6){const _0x3b4d4e=_0x3e206b;super(..._0x4d2dd6),x(this,_0x3b4d4e(0x18c),new i[(_0x3b4d4e(0x19a))](null)),x(this,_0x3b4d4e(0x261),this[_0x3b4d4e(0x18c)][_0x3b4d4e(0x1fb)]());}[_0x3e206b(0x37a)](_0x418d64){const _0x70109a=_0x3e206b;let {unitID:_0x487b6b,memberID:_0x5f2d0b,textRanges:_0x550844}=_0x418d64,_0x3a682a=ge(_0x550844);if(_0x3a682a==='')return;let _0x5de86d={'unitID':_0x487b6b,'memberID':_0x5f2d0b,'selection':_0x3a682a};this[_0x70109a(0x18c)]['next'](_0x5de86d);}};let M=class extends n['RxDisposable']{get['cursorInfo'](){const _0x49a592=_0x3e206b;return this[_0x49a592(0x1ea)][_0x49a592(0x3c5)]();}get[_0x3e206b(0x1a9)](){const _0x31c786=_0x3e206b;return this[_0x31c786(0x419)][_0x31c786(0x3c5)]();}constructor(_0x3453a5,_0x152ebc,_0x3ce60c,_0x3f4f0b,_0x1aeb45,_0x3e7f7f,_0x48f435,_0x2782c6,_0x18f14f){const _0x900e58=_0x3e206b;super(),this[_0x900e58(0x3df)]=_0x3453a5,this[_0x900e58(0x191)]=_0x152ebc,this['_injector']=_0x3ce60c,this['_colorAssignService']=_0x3f4f0b,this['_memberService']=_0x1aeb45,this[_0x900e58(0x24d)]=_0x3e7f7f,this[_0x900e58(0x1bb)]=_0x48f435,this['_univerInstanceService']=_0x2782c6,this[_0x900e58(0x38a)]=_0x18f14f,x(this,_0x900e58(0x2d1),!0x1),x(this,_0x900e58(0x327),!0x1),x(this,'_cursorInfo$',new i[(_0x900e58(0x19a))](new Map())),x(this,_0x900e58(0x294),this['_cursorInfo$']['asObservable']()),x(this,_0x900e58(0x419),new i[(_0x900e58(0x19a))]([])),x(this,_0x900e58(0x1ff),this[_0x900e58(0x419)][_0x900e58(0x40a)]((0x0,i['debounceTime'])(0x12c))),x(this,_0x900e58(0x30f),(0x0,n[_0x900e58(0x3fb)])(_0x55d6de=>{const _0x124cfa=_0x900e58;let _0xd3b67c={'eventID':p[_0x124cfa(0x212)][_0x124cfa(0x3dd)],'data':{'unitID':this[_0x124cfa(0x3df)],'memberID':this['_session'][_0x124cfa(0x370)](),'selection':ge(_0x55d6de)}};this[_0x124cfa(0x191)][_0x124cfa(0x126)](_0xd3b67c,this[_0x124cfa(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x461f7b=_0x3e206b;super[_0x461f7b(0x2a8)](),this[_0x461f7b(0x1ea)][_0x461f7b(0x33b)](new Map()),this['_cursorInfo$'][_0x461f7b(0x347)](),this[_0x461f7b(0x419)]['next']([]),this[_0x461f7b(0x419)][_0x461f7b(0x347)]();}[_0x3e206b(0x2e5)](){const _0x282e21=_0x3e206b;this['_init']||(this['_init']=!0x0,this[_0x282e21(0x191)][_0x282e21(0x3cf)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this['dispose$']))[_0x282e21(0x2e6)](_0xe1bd71=>{const _0x50adf1=_0x282e21;_0xe1bd71===t['SessionStatus'][_0x50adf1(0x2e9)]?this[_0x50adf1(0x1ca)]():this['_toggleOffline']();}),this['_session'][_0x282e21(0x33d)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this[_0x282e21(0x224)]))[_0x282e21(0x2e6)](_0x3cdd19=>{const _0x5d2852=_0x282e21;let _0x5f5226=_0x3cdd19[_0x5d2852(0x31a)];_0x5f5226===p[_0x5d2852(0x212)][_0x5d2852(0x3dd)]&&this['_onCursorUpdate'](_0x3cdd19),_0x5f5226===p['CollaborationEvent'][_0x5d2852(0x3a7)]&&this['_onCursorDelete'](_0x3cdd19);}),this[_0x282e21(0x1b7)](this[_0x282e21(0x38a)][_0x282e21(0x144)](_0x4a0980=>{const _0x54a537=_0x282e21;let _0x1e953c=_0x4a0980['params'];_0x1e953c!=null&&this[_0x54a537(0x2d1)]&&_0x4a0980['id']===m['SetTextSelectionsOperation']['id']&&_0x1e953c['unitId']===this['unitID']&&_0x1e953c[_0x54a537(0x160)]===!0x1&&_0x1e953c[_0x54a537(0x2a6)][_0x54a537(0x2ca)]>0x0&&this[_0x54a537(0x30f)](_0x1e953c[_0x54a537(0x2a6)]);})),this[_0x282e21(0x24d)][_0x282e21(0x261)][_0x282e21(0x40a)]((0x0,i[_0x282e21(0x326)])(this['dispose$']))['subscribe'](_0x2a819a=>{const _0x5325cc=_0x282e21;if((_0x2a819a==null?void 0x0:_0x2a819a['unitID'])!==this[_0x5325cc(0x3df)])return;let _0x462074={'eventID':p[_0x5325cc(0x212)][_0x5325cc(0x3dd)],'data':_0x2a819a};this[_0x5325cc(0x3b8)](_0x462074);}),this['disposeWithMe'](this['_commandService'][_0x282e21(0x144)](_0x2b4826=>{const _0x9d669a=_0x282e21;if(_0x2b4826[_0x9d669a(0x1fe)]==null)return;let _0xea1ead=_0x2b4826[_0x9d669a(0x1fe)];if(_0x2b4826['id']!==m[_0x9d669a(0x248)]['id']||_0xea1ead[_0x9d669a(0x196)]!==this[_0x9d669a(0x3df)])return;let _0x4dee10={'id':_0x9d669a(0x19f),'params':_0xea1ead},_0x402315=this['cursorInfo'];for(let [_0x26495c,_0x380936]of _0x402315){let _0x5e5325={'id':_0x9d669a(0x19f),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x380936[_0x9d669a(0x2a6)]}},_0x170f7d=this[_0x9d669a(0x1bb)]['transformMutation'](_0x4dee10,_0x5e5325,!0x1);if((0x0,p[_0x9d669a(0x1b2)])(_0x170f7d))throw _0x170f7d['error'];_0x402315[_0x9d669a(0x369)](_0x26495c,{..._0x380936,'ranges':_0x170f7d[_0x9d669a(0x279)][_0x9d669a(0x1fe)][_0x9d669a(0x27b)]});}queueMicrotask(()=>{const _0x56a584=_0x9d669a;this[_0x56a584(0x1ea)][_0x56a584(0x33b)](_0x402315);});})));}[_0x3e206b(0x3b8)](_0x4f0941){const _0x5a418f=_0x3e206b;var _0x30d773,_0x1eb0fa;let {memberID:_0x1ed3ba,selection:_0x21fc4a}=_0x4f0941[_0x5a418f(0x2ee)],_0x15d7f1=_e(_0x21fc4a),_0x5b6544=(_0x30d773=(_0x1eb0fa=this[_0x5a418f(0x22d)]['getMember'](this[_0x5a418f(0x3df)],_0x1ed3ba))==null?void 0x0:_0x1eb0fa[_0x5a418f(0x12b)])==null?'Unknown\x20user':_0x30d773,_0x281205={'color':this[_0x5a418f(0x20b)][_0x5a418f(0x2ec)](_0x1ed3ba),'name':_0x5b6544,'ranges':_0x15d7f1},_0x11f372=this[_0x5a418f(0x2f3)];_0x11f372['set'](_0x1ed3ba,_0x281205),this[_0x5a418f(0x1ea)][_0x5a418f(0x33b)](_0x11f372);}[_0x3e206b(0x36d)](_0x4c82fb){const _0x11edd0=_0x3e206b;let {memberID:_0x179c6e}=_0x4c82fb[_0x11edd0(0x2ee)],_0x5d9adf=this[_0x11edd0(0x2f3)];_0x5d9adf['delete'](_0x179c6e),this['_cursorInfo$']['next'](_0x5d9adf);}[_0x3e206b(0x1ca)](){const _0x175550=_0x3e206b;var _0x478bf0;if(this[_0x175550(0x2d1)]=!0x0,((_0x478bf0=this[_0x175550(0x169)][_0x175550(0x323)]())==null?void 0x0:_0x478bf0[_0x175550(0x187)]())!==this[_0x175550(0x3df)])return;let _0x2b598f=this[_0x175550(0x141)][_0x175550(0x28b)](m[_0x175550(0x3e2)])[_0x175550(0x2cb)]();Array[_0x175550(0x1ab)](_0x2b598f)&&_0x2b598f[_0x175550(0x2ca)]>0x0&&this[_0x175550(0x30f)](_0x2b598f);}['_toggleOffline'](){const _0x5493ae=_0x3e206b;this[_0x5493ae(0x2d1)]=!0x1;}};M=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x3,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x5,(0x0,n['Inject'])(j)),S(0x6,p[_0x3e206b(0x2c1)]),S(0x7,n[_0x3e206b(0x27d)]),S(0x8,n[_0x3e206b(0x1e4)])],M);const ve=()=>{let _0x4fb021=[],_0x542d32=!0x1;return _0x2f4d19=>{const _0x2d1300=_0x1029;_0x4fb021[_0x2d1300(0x313)](_0x2f4d19),_0x542d32||(_0x542d32=!0x0,setTimeout(()=>{_0x4fb021['forEach'](_0x5a1f73=>_0x5a1f73()),_0x4fb021=[],_0x542d32=!0x1;}));};};let N=class extends n[_0x3e206b(0x1cf)]{get['cursorInfo'](){const _0x2075ff=_0x3e206b;return this['_cursorInfo$'][_0x2075ff(0x3c5)]();}get['roomMembers'](){const _0x3a7fb4=_0x3e206b;return this[_0x3a7fb4(0x419)][_0x3a7fb4(0x3c5)]();}constructor(_0x3e6a64,_0x32862c,_0x5870e5,_0x1f956f,_0x15aa04,_0x23bd51,_0x268c02,_0xb20120){const _0x294f15=_0x3e206b;super(),this[_0x294f15(0x3df)]=_0x3e6a64,this['_session']=_0x32862c,this['_injector']=_0x5870e5,this['_colorAssignService']=_0x1f956f,this['_memberService']=_0x15aa04,this[_0x294f15(0x169)]=_0x23bd51,this[_0x294f15(0x38a)]=_0x268c02,this[_0x294f15(0x376)]=_0xb20120,x(this,_0x294f15(0x2d1),!0x1),x(this,_0x294f15(0x327),!0x1),x(this,_0x294f15(0x1ea),new i[(_0x294f15(0x19a))](new Map())),x(this,_0x294f15(0x294),this[_0x294f15(0x1ea)]['asObservable']()),x(this,'_roomMembers$',new i['BehaviorSubject']([])),x(this,_0x294f15(0x1ff),this['_roomMembers$']['pipe']((0x0,i[_0x294f15(0x2ab)])(0x12c))),x(this,'_updateLocalCursor',(0x0,n[_0x294f15(0x3fb)])((_0x5329ee,_0x3a2fa5)=>{const _0x141200=_0x294f15;let _0x1c5bc5={'eventID':p[_0x141200(0x212)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x141200(0x3df)],'memberID':this[_0x141200(0x191)]['getMemberID'](),'selection':(0x0,h[_0x141200(0x23d)])(_0x5329ee,_0x3a2fa5['range'])}};this[_0x141200(0x191)][_0x141200(0x126)](_0x1c5bc5,this[_0x141200(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x48e3c4=_0x3e206b;super['dispose'](),this['_cursorInfo$'][_0x48e3c4(0x33b)](new Map()),this[_0x48e3c4(0x1ea)]['complete'](),this[_0x48e3c4(0x419)][_0x48e3c4(0x33b)]([]),this['_roomMembers$'][_0x48e3c4(0x347)]();}['init'](){const _0x529762=_0x3e206b;this[_0x529762(0x327)]||(this['_init']=!0x0,this[_0x529762(0x191)][_0x529762(0x3cf)][_0x529762(0x40a)]((0x0,i[_0x529762(0x326)])(this['dispose$']))[_0x529762(0x2e6)](_0x55751c=>{const _0x51e72e=_0x529762;_0x55751c===t['SessionStatus'][_0x51e72e(0x2e9)]?this['_toggleOnline']():this[_0x51e72e(0x135)]();}),this['_session'][_0x529762(0x33d)]['pipe']((0x0,i[_0x529762(0x326)])(this[_0x529762(0x224)]))['subscribe'](_0x569cd4=>{const _0x3647bb=_0x529762;let _0x140cb9=_0x569cd4[_0x3647bb(0x31a)];_0x140cb9===p[_0x3647bb(0x212)][_0x3647bb(0x3dd)]&&this['_onCursorUpdate'](_0x569cd4),_0x140cb9===p['CollaborationEvent'][_0x3647bb(0x3a7)]&&this[_0x3647bb(0x36d)](_0x569cd4);}),this[_0x529762(0x3f6)](),this['disposeWithMe'](this[_0x529762(0x38a)][_0x529762(0x144)](_0x4460d6=>{const _0x59d481=_0x529762;if(this[_0x59d481(0x2d1)]&&_0x4460d6['id']===g[_0x59d481(0x375)]['id']&&_0x4460d6[_0x59d481(0x1fe)]['unitId']===this[_0x59d481(0x3df)]){let _0xa2a5c2=_0x4460d6[_0x59d481(0x1fe)];this['_updateLocalCursor'](_0xa2a5c2[_0x59d481(0x1fa)],_0xa2a5c2[_0x59d481(0x233)][0x0]);}})));}['_onCursorUpdate'](_0x4970b8){const _0x42e4d9=_0x3e206b;var _0x58a6de,_0x5539cc;let {memberID:_0x46ca18,selection:_0xba347c}=_0x4970b8[_0x42e4d9(0x2ee)],{sheetName:_0x55d9cb,range:_0x145fc4}=(0x0,h[_0x42e4d9(0x2e3)])(_0xba347c),_0x3dc088={'name':(_0x58a6de=(_0x5539cc=this[_0x42e4d9(0x22d)][_0x42e4d9(0x322)](this[_0x42e4d9(0x3df)],_0x46ca18))==null?void 0x0:_0x5539cc[_0x42e4d9(0x12b)])==null?_0x42e4d9(0x3cc):_0x58a6de,'range':this['_getMergeRange'](_0x55d9cb,_0x145fc4),'sheetID':_0x55d9cb,'color':this[_0x42e4d9(0x20b)][_0x42e4d9(0x2ec)](_0x46ca18),'selection':_0xba347c},_0x46224c=this[_0x42e4d9(0x2f3)];_0x46224c[_0x42e4d9(0x369)](_0x46ca18,_0x3dc088),this[_0x42e4d9(0x1ea)]['next'](_0x46224c);}[_0x3e206b(0x36d)](_0x8e2118){const _0x3dee25=_0x3e206b;let {memberID:_0x3bdc65}=_0x8e2118[_0x3dee25(0x2ee)],_0x31c7b0=this[_0x3dee25(0x2f3)];_0x31c7b0[_0x3dee25(0x2bd)](_0x3bdc65),this['_cursorInfo$']['next'](_0x31c7b0);}[_0x3e206b(0x1c2)](_0x3b8583,_0x27f96a){const _0x12edaf=_0x3e206b;var _0x41b169;let _0x5734ab=(_0x41b169=this[_0x12edaf(0x169)][_0x12edaf(0x2d2)](this[_0x12edaf(0x3df)]))==null||(_0x41b169=_0x41b169[_0x12edaf(0x289)](_0x3b8583))==null?void 0x0:_0x41b169['getMergeData']();return(_0x5734ab==null?void 0x0:_0x5734ab[_0x12edaf(0x18a)](_0x56d996=>n['Rectangle'][_0x12edaf(0x1d3)](_0x56d996,_0x27f96a)))||_0x27f96a;}[_0x3e206b(0x3f6)](){const _0x2371f0=_0x3e206b;let _0x43aa08=new n[(_0x2371f0(0x21e))](),_0x2e046a=ve(),_0x568d3e=()=>{const _0xc008e6=_0x2371f0;_0x43aa08[_0xc008e6(0x2a8)]();let _0x1bda0b=(_0x44ee29,_0x1eeb31,_0x349745,_0x156158)=>{const _0x10dc7a=_0xc008e6;let _0x3bc167=[];switch(_0x44ee29['id']){case g['EffectRefRangId'][_0x10dc7a(0x415)]:_0x3bc167=(0x0,g[_0x10dc7a(0x24b)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['DeleteRangeMoveUpCommandId']:_0x3bc167=(0x0,g['handleDeleteRangeMoveUp'])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['InsertColCommandId']:_0x3bc167=(0x0,g[_0x10dc7a(0x29f)])(_0x44ee29,_0x156158);break;case g['EffectRefRangId'][_0x10dc7a(0x3dc)]:_0x3bc167=(0x0,g['handleInsertRangeMoveDown'])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x223)]:_0x3bc167=(0x0,g[_0x10dc7a(0x393)])(_0x44ee29,_0x156158);break;case g['EffectRefRangId'][_0x10dc7a(0x26d)]:_0x3bc167=(0x0,g[_0x10dc7a(0x245)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x3b2)]:_0x3bc167=(0x0,g[_0x10dc7a(0x420)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)][_0x10dc7a(0x352)]:_0x3bc167=(0x0,g[_0x10dc7a(0x134)])(_0x44ee29,_0x156158);break;case g[_0x10dc7a(0x25d)]['RemoveRowCommandId']:_0x3bc167=(0x0,g['handleIRemoveRow'])(_0x44ee29,_0x156158);break;}let _0x5c1a61=(0x0,g['runRefRangeMutations'])(_0x3bc167,_0x156158),_0x591bf3=this[_0x10dc7a(0x2f3)]['get'](_0x1eeb31);if(_0x591bf3&&_0x5c1a61){let _0x4e6e9c={..._0x591bf3,'range':_0x5c1a61};this[_0x10dc7a(0x2f3)]['set'](_0x1eeb31,_0x4e6e9c),_0x2e046a(()=>{const _0xeb8470=_0x10dc7a;let _0x4a07ef=this['_refRangeService'][_0xeb8470(0x1c5)](_0x5c1a61,_0x3fef38=>(_0x4a07ef[_0xeb8470(0x2a8)](),_0x1bda0b(_0x3fef38,_0x1eeb31,_0x349745,_0x5c1a61)));_0x43aa08['add'](_0x4a07ef);});}return{'redos':[],'undos':[]};};this[_0xc008e6(0x2f3)][_0xc008e6(0x2d6)]((_0x7cc83e,_0x2f76ab)=>{const _0xff21cf=_0xc008e6;let {range:_0xc3d87f,sheetID:_0x54ed33}=_0x7cc83e,_0x535d6e=this[_0xff21cf(0x376)][_0xff21cf(0x1c5)](_0xc3d87f,_0x260d26=>(_0x535d6e[_0xff21cf(0x2a8)](),_0x1bda0b(_0x260d26,_0x2f76ab,_0x54ed33,_0xc3d87f)));_0x43aa08[_0xff21cf(0x264)](_0x535d6e);});};this[_0x2371f0(0x1b7)]((0x0,n[_0x2371f0(0x297)])(this[_0x2371f0(0x1ea)][_0x2371f0(0x2e6)](()=>{_0x568d3e();})));}['_toggleOnline'](){const _0x519eb8=_0x3e206b;var _0x3c1828,_0x13b2f0;if(this['_online']=!0x0,((_0x3c1828=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3c1828['getUnitId']())!==this[_0x519eb8(0x3df)])return;let _0x199530=(_0x13b2f0=this[_0x519eb8(0x141)][_0x519eb8(0x28b)](g[_0x519eb8(0x3ff)])[_0x519eb8(0x2aa)]())==null?void 0x0:_0x13b2f0[0x0],_0x45089b=this['_univerInstanceService']['getCurrentUnitOfType'](n[_0x519eb8(0x166)]['UNIVER_SHEET'])[_0x519eb8(0x2f8)]();_0x199530&&_0x45089b&&this[_0x519eb8(0x30f)](_0x45089b[_0x519eb8(0x395)](),_0x199530);}[_0x3e206b(0x135)](){this['_online']=!0x1;}};N=C([S(0x2,(0x0,n['Inject'])(n['Injector'])),S(0x3,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x5,n[_0x3e206b(0x27d)]),S(0x6,n[_0x3e206b(0x1e4)]),S(0x7,(0x0,n[_0x3e206b(0x2de)])(g[_0x3e206b(0x180)]))],N);function ye(_0x3f2785){const _0x4b0041=_0x3e206b;let _0x1e1b81;try{_0x1e1b81=JSON[_0x4b0041(0x1ec)](_0x3f2785);}catch{return null;}if(typeof _0x1e1b81!=_0x4b0041(0x39b)||!_0x1e1b81)return null;let _0x46df30=_0x1e1b81;if(_0x46df30['kind']!==_0x4b0041(0x3fe)||typeof _0x46df30['unitId']!='string'||typeof _0x46df30['subUnitId']!=_0x4b0041(0x25e))return null;let _0x5ae9bd=Array['isArray'](_0x46df30['selectedIds'])?_0x46df30[_0x4b0041(0x2b8)][_0x4b0041(0x11b)](_0x469955=>typeof _0x469955=='string'):[],_0x7a7c16=typeof _0x46df30['focusedId']==_0x4b0041(0x25e)?_0x46df30[_0x4b0041(0x2ef)]:null;return{'kind':'slide-element-selection','unitId':_0x46df30['unitId'],'subUnitId':_0x46df30[_0x4b0041(0x1fa)],'selectedIds':_0x5ae9bd,'focusedId':_0x7a7c16};}let P=class extends n[_0x3e206b(0x1cf)]{get[_0x3e206b(0x2f3)](){const _0x164089=_0x3e206b;return this[_0x164089(0x1ea)][_0x164089(0x3c5)]();}get['roomMembers'](){const _0x5fb717=_0x3e206b;return this[_0x5fb717(0x419)][_0x5fb717(0x3c5)]();}constructor(_0x1f3a7c,_0xed4945,_0x20595c,_0x41462e,_0x10713f){const _0x4d87f7=_0x3e206b;super(),this[_0x4d87f7(0x3df)]=_0x1f3a7c,this[_0x4d87f7(0x191)]=_0xed4945,this[_0x4d87f7(0x20b)]=_0x20595c,this[_0x4d87f7(0x22d)]=_0x41462e,this['_slideDrawingStateService']=_0x10713f,x(this,_0x4d87f7(0x2d1),!0x1),x(this,_0x4d87f7(0x327),!0x1),x(this,_0x4d87f7(0x1ea),new i[(_0x4d87f7(0x19a))](new Map())),x(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),x(this,_0x4d87f7(0x419),new i['BehaviorSubject']([])),x(this,_0x4d87f7(0x1ff),this[_0x4d87f7(0x419)]['pipe']((0x0,i[_0x4d87f7(0x2ab)])(0x12c))),x(this,_0x4d87f7(0x30f),(0x0,n[_0x4d87f7(0x3fb)])(_0x547c84=>{const _0x20da18=_0x4d87f7;let _0x2a27e7=_0x547c84['context'];if(!_0x2a27e7||_0x2a27e7['unitId']!==this[_0x20da18(0x3df)])return;let _0x502b41={'kind':'slide-element-selection','unitId':_0x2a27e7[_0x20da18(0x196)],'subUnitId':_0x2a27e7[_0x20da18(0x1fa)],'selectedIds':_0x547c84[_0x20da18(0x2b8)][_0x20da18(0x11b)](_0x165f4b=>typeof _0x165f4b==_0x20da18(0x25e)),'focusedId':_0x547c84['focusedId']},_0x4f298d={'eventID':p[_0x20da18(0x212)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x20da18(0x3df)],'memberID':this[_0x20da18(0x191)]['getMemberID'](),'selection':JSON[_0x20da18(0x406)](_0x502b41)}};this[_0x20da18(0x191)][_0x20da18(0x126)](_0x4f298d,this[_0x20da18(0x3df)]);},0x64));}[_0x3e206b(0x2a8)](){const _0x121742=_0x3e206b;super[_0x121742(0x2a8)](),this['_cursorInfo$'][_0x121742(0x33b)](new Map()),this[_0x121742(0x1ea)][_0x121742(0x347)](),this[_0x121742(0x419)][_0x121742(0x33b)]([]),this[_0x121742(0x419)][_0x121742(0x347)]();}[_0x3e206b(0x2e5)](){const _0x49aa00=_0x3e206b;this[_0x49aa00(0x327)]||(this[_0x49aa00(0x327)]=!0x0,this[_0x49aa00(0x191)][_0x49aa00(0x3cf)]['pipe']((0x0,i[_0x49aa00(0x326)])(this[_0x49aa00(0x224)]))[_0x49aa00(0x2e6)](_0x138a8a=>{const _0x55c146=_0x49aa00;_0x138a8a===t[_0x55c146(0x26b)][_0x55c146(0x2e9)]?this[_0x55c146(0x1ca)]():this['_toggleOffline']();}),this[_0x49aa00(0x191)][_0x49aa00(0x33d)]['pipe']((0x0,i[_0x49aa00(0x326)])(this[_0x49aa00(0x224)]))[_0x49aa00(0x2e6)](_0x382aa9=>{const _0x30da20=_0x49aa00;let _0x3ca9bb=_0x382aa9['eventID'];_0x3ca9bb===p['CollaborationEvent'][_0x30da20(0x3dd)]&&this['_onCursorUpdate'](_0x382aa9),_0x3ca9bb===p[_0x30da20(0x212)]['USERS_LEAVE']&&this[_0x30da20(0x36d)](_0x382aa9);}),this[_0x49aa00(0x2e1)][_0x49aa00(0x1d7)][_0x49aa00(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))['subscribe'](_0x57807c=>{const _0x22ba5d=_0x49aa00;this[_0x22ba5d(0x2d1)]&&this['_updateLocalCursor'](_0x57807c);}));}[_0x3e206b(0x3b8)](_0x1c0ba2){const _0x517567=_0x3e206b;var _0xf1c08b,_0x888e8c,_0x3fa4b0,_0x343f8f;let {memberID:_0x7209bf,selection:_0x10920c}=_0x1c0ba2[_0x517567(0x2ee)];if(_0x7209bf===((_0xf1c08b=(_0x888e8c=this[_0x517567(0x191)])['getMemberID'])==null?void 0x0:_0xf1c08b[_0x517567(0x293)](_0x888e8c)))return;let _0x791caf=ye(_0x10920c);if(!_0x791caf||_0x791caf['unitId']!==this['unitID'])return;let _0x1f1fbf=(_0x3fa4b0=(_0x343f8f=this[_0x517567(0x22d)][_0x517567(0x322)](this['unitID'],_0x7209bf))==null?void 0x0:_0x343f8f[_0x517567(0x12b)])==null?_0x517567(0x3cc):_0x3fa4b0,_0x4d0aae={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x7209bf),'name':_0x1f1fbf,'unitId':_0x791caf[_0x517567(0x196)],'subUnitId':_0x791caf['subUnitId'],'selectedIds':_0x791caf[_0x517567(0x2b8)],'focusedId':_0x791caf[_0x517567(0x2ef)],'selection':_0x10920c},_0x367f1e=new Map(this[_0x517567(0x2f3)]);_0x367f1e[_0x517567(0x369)](_0x7209bf,_0x4d0aae),this[_0x517567(0x1ea)]['next'](_0x367f1e);}[_0x3e206b(0x36d)](_0x3c9180){const _0x375ba5=_0x3e206b;let {memberID:_0x43da42}=_0x3c9180[_0x375ba5(0x2ee)],_0x48850d=new Map(this[_0x375ba5(0x2f3)]);_0x48850d[_0x375ba5(0x2bd)](_0x43da42),this[_0x375ba5(0x1ea)][_0x375ba5(0x33b)](_0x48850d);}[_0x3e206b(0x1ca)](){const _0x1d689b=_0x3e206b;this['_online']=!0x0,this[_0x1d689b(0x30f)](this[_0x1d689b(0x2e1)][_0x1d689b(0x13b)]());}[_0x3e206b(0x135)](){this['_online']=!0x1;}};P=C([S(0x2,(0x0,n[_0x3e206b(0x2de)])(k)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x34a)])),S(0x4,(0x0,n[_0x3e206b(0x2de)])(_[_0x3e206b(0x3c8)]))],P);let F=class extends n['RxDisposable']{constructor(_0x36f853,_0x56a267,_0xab8a74){const _0x40b29a=_0x3e206b;super(),this[_0x40b29a(0x169)]=_0x36f853,this[_0x40b29a(0x141)]=_0x56a267,this['_collabSessionService']=_0xab8a74,x(this,_0x40b29a(0x1a2),new Map()),x(this,_0x40b29a(0x416),new i[(_0x40b29a(0x173))]()),this[_0x40b29a(0x327)]();}['dispose'](){const _0x315d02=_0x3e206b;super[_0x315d02(0x2a8)](),this['_entityInit$'][_0x315d02(0x347)](),this[_0x315d02(0x1a2)][_0x315d02(0x2d6)](_0x14f0bc=>_0x14f0bc['dispose']());}[_0x3e206b(0x3be)](_0x2d3898){const _0xe2c345=_0x3e206b;return this['_entities'][_0xe2c345(0x3fa)](_0x2d3898)?this[_0xe2c345(0x1a2)][_0xe2c345(0x28b)](_0x2d3898)[_0xe2c345(0x294)]:this[_0xe2c345(0x416)][_0xe2c345(0x40a)]((0x0,i['filter'])(_0x34a47d=>_0x34a47d[_0xe2c345(0x3df)]===_0x2d3898),(0x0,i[_0xe2c345(0x1e6)])(_0x2a5e70=>_0x2a5e70['cursorInfo$']));}[_0x3e206b(0x327)](){const _0x5929df=_0x3e206b;this[_0x5929df(0x169)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x5929df(0x3b6)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this[_0x5929df(0x224)]))[_0x5929df(0x2e6)](async _0xc44fa4=>{const _0x5c73de=_0x5929df;let _0x571319=_0xc44fa4[_0x5c73de(0x3bf)][_0x5c73de(0x187)](),_0x488741=await this[_0x5c73de(0x400)](_0x571319);this[_0x5c73de(0x416)][_0x5c73de(0x33b)](_0x488741),this['_entities'][_0x5c73de(0x369)](_0x571319,_0x488741);}),this['_univerInstanceService'][_0x5929df(0x206)](n[_0x5929df(0x166)][_0x5929df(0x267)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this['dispose$']))[_0x5929df(0x40a)]((0x0,i['filter'])(_0x561107=>!_0x561107[_0x5929df(0x3bf)][_0x5929df(0x187)]()['startsWith']('__')))['subscribe'](async _0x23a63e=>{const _0x5cf108=_0x5929df;let {unit:_0x57b701}=_0x23a63e,_0x3a8357=_0x57b701[_0x5cf108(0x187)](),_0x1e68c5=await this[_0x5cf108(0x2e2)](_0x3a8357);this[_0x5cf108(0x416)][_0x5cf108(0x33b)](_0x1e68c5),this[_0x5cf108(0x1a2)][_0x5cf108(0x369)](_0x3a8357,_0x1e68c5);}),this[_0x5929df(0x169)][_0x5929df(0x206)](n[_0x5929df(0x166)][_0x5929df(0x3f2)])[_0x5929df(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))[_0x5929df(0x2e6)](async _0x5bc2d8=>{const _0x43ee00=_0x5929df;let _0x352007=_0x5bc2d8[_0x43ee00(0x3bf)][_0x43ee00(0x187)](),_0xe1c463=await this['_startSlideCollabCursor'](_0x352007);this[_0x43ee00(0x416)][_0x43ee00(0x33b)](_0xe1c463),this[_0x43ee00(0x1a2)][_0x43ee00(0x369)](_0x352007,_0xe1c463);}),this[_0x5929df(0x169)][_0x5929df(0x206)](n['UniverInstanceType'][_0x5929df(0x1d6)])[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this[_0x5929df(0x224)]))[_0x5929df(0x2e6)](async _0x4106ee=>{const _0x2cc7eb=_0x5929df;let _0x53679a=_0x4106ee['unit'][_0x2cc7eb(0x187)](),_0x433505=await this[_0x2cc7eb(0x148)](_0x53679a);this['_entityInit$'][_0x2cc7eb(0x33b)](_0x433505),this['_entities'][_0x2cc7eb(0x369)](_0x53679a,_0x433505);}),(0x0,i[_0x5929df(0x273)])(this['_univerInstanceService'][_0x5929df(0x21b)](n[_0x5929df(0x166)]['UNIVER_DOC']),this[_0x5929df(0x169)]['getTypeOfUnitDisposed$'](n[_0x5929df(0x166)][_0x5929df(0x3b6)]),this[_0x5929df(0x169)][_0x5929df(0x21b)](n[_0x5929df(0x166)][_0x5929df(0x3f2)]),this[_0x5929df(0x169)][_0x5929df(0x21b)](n[_0x5929df(0x166)][_0x5929df(0x1d6)]))[_0x5929df(0x40a)]((0x0,i[_0x5929df(0x326)])(this['dispose$']))['subscribe'](_0x155163=>{const _0x19d6b8=_0x5929df;let _0x287d73=_0x155163[_0x19d6b8(0x187)](),_0xdf7119=this[_0x19d6b8(0x1a2)][_0x19d6b8(0x28b)](_0x287d73);_0xdf7119&&(_0xdf7119['dispose'](),this['_entities'][_0x19d6b8(0x2bd)](_0x287d73));});}async[_0x3e206b(0x400)](_0x41b274){const _0x5acaad=_0x3e206b;let _0x40d95c=await this[_0x5acaad(0x222)][_0x5acaad(0x182)](_0x41b274),_0x1a5c65=this[_0x5acaad(0x141)][_0x5acaad(0x2c0)](N,_0x41b274,_0x40d95c);return _0x1a5c65[_0x5acaad(0x2e5)](),_0x1a5c65;}async['_startDocCollabCursor'](_0x421803){const _0x22daa0=_0x3e206b;let _0x49a29b=await this[_0x22daa0(0x222)][_0x22daa0(0x182)](_0x421803),_0x1abfc2=this['_injector'][_0x22daa0(0x2c0)](M,_0x421803,_0x49a29b);return _0x1abfc2[_0x22daa0(0x2e5)](),_0x1abfc2;}async['_startSlideCollabCursor'](_0x5b0b02){const _0x40f545=_0x3e206b;let _0x44481f=await this[_0x40f545(0x222)][_0x40f545(0x182)](_0x5b0b02),_0x5a4adc=this[_0x40f545(0x141)]['createInstance'](P,_0x5b0b02,_0x44481f);return _0x5a4adc[_0x40f545(0x2e5)](),_0x5a4adc;}async[_0x3e206b(0x148)](_0x1157fd){const _0x8c58bd=_0x3e206b;let _0xbefe24=await this[_0x8c58bd(0x222)][_0x8c58bd(0x182)](_0x1157fd),_0x30b704=this[_0x8c58bd(0x141)][_0x8c58bd(0x2c0)](A,_0x1157fd,_0xbefe24);return _0x30b704['init'](),_0x30b704;}};F=C([S(0x0,n['IUniverInstanceService']),S(0x1,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x167)]))],F);let I=class extends n['RxDisposable']{constructor(_0x203280,_0x7fcc59,_0x3645cb){const _0x30b07e=_0x3e206b;super(),this[_0x30b07e(0x318)]=_0x203280,this[_0x30b07e(0x2c7)]=_0x7fcc59,this['_themeService']=_0x3645cb,x(this,_0x30b07e(0x213),new Set()),x(this,'_renderScheduled',!0x1),x(this,_0x30b07e(0x41d),!0x1),x(this,_0x30b07e(0x30a),new Map()),this['_init']();}[_0x3e206b(0x2a8)](){const _0x6c3622=_0x3e206b;this[_0x6c3622(0x343)](),super[_0x6c3622(0x2a8)]();}[_0x3e206b(0x327)](){const _0x4af877=_0x3e206b;let _0x78925d=this[_0x4af877(0x2c7)][_0x4af877(0x3be)](this['_context'][_0x4af877(0x196)]);this[_0x4af877(0x1b7)]((0x0,n[_0x4af877(0x297)])((0x0,i['combineLatest'])([_0x78925d,this[_0x4af877(0x318)][_0x4af877(0x3bf)][_0x4af877(0x2be)],this[_0x4af877(0x324)]['currentTheme$']])['pipe']((0x0,i[_0x4af877(0x326)])(this[_0x4af877(0x224)]))[_0x4af877(0x2e6)](([_0x35dc28])=>{const _0x5798c6=_0x4af877;let _0x374071=this[_0x5798c6(0x318)]['unit'][_0x5798c6(0x3e0)](),_0x538d2e=new Map();_0x35dc28[_0x5798c6(0x2d6)]((_0x38428e,_0x1bcd9a)=>{const _0x521891=_0x5798c6;_0x38428e[_0x521891(0x1fa)]===_0x374071&&_0x538d2e[_0x521891(0x369)](_0x1bcd9a,{..._0x38428e,'color':this[_0x521891(0x324)][_0x521891(0x328)](_0x38428e[_0x521891(0x3c0)])});}),this['_latestCursors']=_0x538d2e,this[_0x5798c6(0x1ac)]();})));let _0x577d4b=this['_context']['scene'];this['disposeWithMe']((0x0,n['toDisposable'])(_0x577d4b[_0x4af877(0x268)]['pipe']((0x0,i[_0x4af877(0x326)])(this[_0x4af877(0x224)]))['subscribe'](()=>{const _0x36038d=_0x4af877;this[_0x36038d(0x41d)]||this[_0x36038d(0x1ac)]();})));}['_scheduleRender'](){const _0xfd6a1c=_0x3e206b;this[_0xfd6a1c(0x389)]||(this['_renderScheduled']=!0x0,Promise[_0xfd6a1c(0x2f6)]()[_0xfd6a1c(0x251)](()=>{const _0x48bb55=_0xfd6a1c;this[_0x48bb55(0x389)]=!0x1,this[_0x48bb55(0x39d)]();}));}['_render'](){const _0x4ded0e=_0x3e206b;this[_0x4ded0e(0x343)]();let _0x4f3835=this[_0x4ded0e(0x318)][_0x4ded0e(0x3bf)][_0x4ded0e(0x3e0)](),_0xb21ecc=[];if(this[_0x4ded0e(0x30a)][_0x4ded0e(0x2d6)]((_0x395b9b,_0x2b42d7)=>{const _0x419a9b=_0x4ded0e;_0x395b9b[_0x419a9b(0x1fa)]===_0x4f3835&&_0x395b9b[_0x419a9b(0x2b8)][_0x419a9b(0x2d6)](_0x398d38=>{const _0x19a722=_0x419a9b;let _0x1ab6ab=(0x0,e[_0x19a722(0x2dd)])(_0x395b9b[_0x19a722(0x196)],_0x398d38),_0x48d6f6=this[_0x19a722(0x2b5)](_0x1ab6ab);if(!_0x48d6f6)return;let _0x904bcf=this[_0x19a722(0x405)](_0x48d6f6);_0xb21ecc[_0x19a722(0x313)](new pe(_0x19a722(0x19c)+_0x2b42d7+'-'+_0x398d38,{..._0x395b9b,'left':_0x904bcf[_0x19a722(0x1f6)],'top':_0x904bcf['top'],'width':_0x904bcf[_0x19a722(0x3ed)],'height':_0x904bcf[_0x19a722(0x238)],'angle':_0x48d6f6[_0x19a722(0x1b4)],'evented':!0x1,'zIndex':O}));});}),_0xb21ecc[_0x4ded0e(0x2ca)]===0x0){this['_context']['scene']['makeDirty'](!0x0);return;}this[_0x4ded0e(0x41d)]=!0x0,this[_0x4ded0e(0x318)]['scene'][_0x4ded0e(0x311)](_0xb21ecc,O),this[_0x4ded0e(0x41d)]=!0x1,this['_cursors']=new Set(_0xb21ecc),this['_context'][_0x4ded0e(0x1ee)][_0x4ded0e(0x200)](!0x0);}[_0x3e206b(0x343)](){const _0x2297ab=_0x3e206b;let _0x4b4456=Array['from'](this[_0x2297ab(0x213)]);if(_0x4b4456[_0x2297ab(0x2ca)]===0x0)return;let _0x30b193=this[_0x2297ab(0x318)][_0x2297ab(0x1ee)];_0x2297ab(0x35a)in _0x30b193&&typeof _0x30b193[_0x2297ab(0x35a)]=='function'?_0x30b193[_0x2297ab(0x35a)](_0x4b4456):_0x4b4456['forEach'](_0x457b83=>{const _0x5771a1=_0x2297ab;'removeObject'in _0x30b193&&typeof _0x30b193[_0x5771a1(0x201)]==_0x5771a1(0x256)?_0x30b193[_0x5771a1(0x201)](_0x457b83):_0x457b83[_0x5771a1(0x2a8)]();}),this[_0x2297ab(0x213)][_0x2297ab(0x32d)](),_0x30b193[_0x2297ab(0x200)](!0x0);}[_0x3e206b(0x2b5)](_0x313941){const _0x48087b=_0x3e206b;var _0xcd702f,_0x5b9ec0,_0x41b7ed;let _0x4f18de=this[_0x48087b(0x318)][_0x48087b(0x1ee)];return(_0xcd702f=(_0x5b9ec0=(_0x41b7ed=_0x4f18de[_0x48087b(0x14d)])==null?void 0x0:_0x41b7ed[_0x48087b(0x293)](_0x4f18de,_0x313941))==null?_0x4f18de['getObject'](_0x313941):_0x5b9ec0)==null?null:_0xcd702f;}[_0x3e206b(0x405)](_0x507a6b){const _0xf32b4=_0x3e206b;var _0x1f2348,_0x5e8331;let _0x2af6ef=_0x507a6b;return(_0x1f2348=(_0x5e8331=_0x2af6ef[_0xf32b4(0x364)])==null?void 0x0:_0x5e8331['call'](_0x2af6ef))==null?{'left':_0x507a6b['left'],'top':_0x507a6b['top'],'width':_0x507a6b[_0xf32b4(0x3ed)],'height':_0x507a6b[_0xf32b4(0x238)]}:_0x1f2348;}};I=C([S(0x1,(0x0,n['Inject'])(F)),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x35f)]))],I);const L=_0x3e206b(0x366);var be=class{constructor(_0x2d4ccf,_0x1d4cd2,_0x4db318,_0x37a698){const _0x1c50f7=_0x3e206b;this[_0x1c50f7(0x2d7)]=_0x2d4ccf,this[_0x1c50f7(0x355)]=_0x1d4cd2,this[_0x1c50f7(0x2dc)]=_0x4db318,this[_0x1c50f7(0x28e)]=_0x37a698,x(this,_0x1c50f7(0x26a),[]),x(this,'_anchor',null),x(this,_0x1c50f7(0x312),null),x(this,_0x1c50f7(0x2af),null),x(this,_0x1c50f7(0x402),null),x(this,_0x1c50f7(0x3f4),null),this[_0x1c50f7(0x39d)]();}set[_0x3e206b(0x1d0)](_0x55efeb){const _0x565a0e=_0x3e206b;_0x55efeb?(this[_0x565a0e(0x2af)]&&this[_0x565a0e(0x2af)][_0x565a0e(0x1cd)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x565a0e(0x2af)]&&this['_anchorDot']['show'](),this[_0x565a0e(0x312)]&&this[_0x565a0e(0x312)][_0x565a0e(0x1cd)]());}[_0x3e206b(0x2a8)](){const _0x31c207=_0x3e206b;for(let _0x4ef9be of this[_0x31c207(0x26a)])_0x4ef9be[_0x31c207(0x2a8)]();this[_0x31c207(0x312)]&&this[_0x31c207(0x312)][_0x31c207(0x2a8)](),this[_0x31c207(0x2af)]&&this[_0x31c207(0x2af)][_0x31c207(0x2a8)](),this[_0x31c207(0x3cd)]&&this[_0x31c207(0x3cd)]['dispose'](),this[_0x31c207(0x3f4)]&&this[_0x31c207(0x3f4)]();}[_0x3e206b(0x39d)](){const _0x5f02f6=_0x3e206b;let {_docSkeleton:_0xfaede1,_document:_0x56a116}=this,{color:_0x4c9255,name:_0x12af46,ranges:_0x20487a}=this[_0x5f02f6(0x2d7)],_0x4be9ab=_0x56a116['getOffsetConfig'](),{docsLeft:_0x2628d6,docsTop:_0x21ed1b}=_0x4be9ab,_0x3590b=new f[(_0x5f02f6(0x3f8))](_0x4be9ab,_0xfaede1);for(let {startOffset:_0x4e0887,endOffset:_0x12695b,rangeType:_0x4ca855,segmentId:_0x235882,segmentPage:_0x325e06,collapsed:_0x1358c8,isActive:_0x4e6d1e}of _0x20487a){let _0x55b53b=_0xfaede1[_0x5f02f6(0x151)](_0x4e0887,!0x0,_0x235882,_0x325e06),_0x5e5931=_0xfaede1[_0x5f02f6(0x151)](_0x12695b,!0x0,_0x235882,_0x325e06);if(_0x5e5931==null&&(_0x5e5931=_0xfaede1['findNodePositionByCharIndex'](_0x12695b-0x1,!0x1,_0x235882,_0x325e06)),_0x4e6d1e){let {contentBoxPointGroup:_0x5a9553}=_0x3590b[_0x5f02f6(0x342)](_0x5e5931,_0x5e5931);if(_0x5a9553['length']===0x0)continue;this[_0x5f02f6(0x1e1)](_0x4c9255,_0x5a9553,_0x2628d6,_0x21ed1b,_0x12af46),this[_0x5f02f6(0x3f4)]=this[_0x5f02f6(0x372)]();}if(_0x55b53b&&_0x5e5931){if(_0x4ca855===n['DOC_RANGE_TYPE'][_0x5f02f6(0x1bf)]){var _0x5a1130;let {pointGroup:_0x36dffb}=(_0x5a1130=new f[(_0x5f02f6(0x18d))](_0x4be9ab,_0xfaede1)[_0x5f02f6(0x342)](_0x55b53b,_0x5e5931))==null?{}:_0x5a1130;if(_0x36dffb==null||_0x36dffb[_0x5f02f6(0x2ca)]===0x0)continue;this[_0x5f02f6(0x150)](_0x4c9255,_0x36dffb,_0x2628d6,_0x21ed1b);}else{if(!_0x1358c8){let {borderBoxPointGroup:_0x2932ae}=_0x3590b['getRangePointData'](_0x55b53b,_0x5e5931);if(_0x2932ae[_0x5f02f6(0x2ca)]===0x0)continue;this['_drawTextRange'](_0x4c9255,_0x2932ae,_0x2628d6,_0x21ed1b);}}}}}[_0x3e206b(0x1e1)](_0xbe6413,_0x25d5fc,_0xd6608d,_0x335896,_0x59d732){const _0x4e8f6f=_0x3e206b;let {left:_0x2560a2,top:_0x415ffa,height:_0x49483d}=this[_0x4e8f6f(0x269)](_0x25d5fc),_0x48a5e4=1.5/this[_0x4e8f6f(0x1d4)](),_0x2610a9=new u[(_0x4e8f6f(0x2fa))](L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896,'height':_0x49483d,'width':1.5,'fill':_0xbe6413||(0x0,u[_0x4e8f6f(0x147)])(n[_0x4e8f6f(0x18e)][_0x4e8f6f(0x3ca)],0x0),'strokeWidth':_0x48a5e4,'stroke':_0x4e8f6f(0x136),'evented':!0x0});this[_0x4e8f6f(0x3cd)]=_0x2610a9,this[_0x4e8f6f(0x355)][_0x4e8f6f(0x270)](_0x2610a9,f[_0x4e8f6f(0x382)]);let _0x194d36=new u[(_0x4e8f6f(0x2fa))](L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xbe6413||(0x0,u['getColor'])(n[_0x4e8f6f(0x18e)][_0x4e8f6f(0x3ca)],0x0),'strokeWidth':0x0,'stroke':_0xbe6413||(0x0,u[_0x4e8f6f(0x147)])(n['COLORS'][_0x4e8f6f(0x3ca)],0x0),'evented':!0x1});this[_0x4e8f6f(0x2af)]=_0x194d36,this['_scene'][_0x4e8f6f(0x270)](_0x194d36,f[_0x4e8f6f(0x382)]);let _0x36194b=new D(L+(0x0,n[_0x4e8f6f(0x3d9)])(0x6),{'left':_0x2560a2+_0xd6608d-_0x48a5e4,'top':_0x415ffa+_0x335896-0x14,'text':_0x59d732,'color':_0xbe6413});this[_0x4e8f6f(0x312)]=_0x36194b,this[_0x4e8f6f(0x355)]['addObject'](_0x36194b,f['TEXT_RANGE_LAYER_INDEX']),this[_0x4e8f6f(0x1d0)]=!0x1;}[_0x3e206b(0x372)](){const _0x44dd5c=_0x3e206b;let _0x16f1ac=this['_anchor'][_0x44dd5c(0x3a1)][_0x44dd5c(0x32b)](()=>{this['_hover']=!0x0;}),_0x37d669=this['_anchor'][_0x44dd5c(0x1f5)][_0x44dd5c(0x32b)](()=>{const _0x30fbc3=_0x44dd5c;this[_0x30fbc3(0x402)]&&clearTimeout(this[_0x30fbc3(0x402)]),this[_0x30fbc3(0x402)]=setTimeout(()=>{const _0x3d2a8c=_0x30fbc3;this[_0x3d2a8c(0x1d0)]=!0x1;},0x7d0);});return()=>{const _0x3b6cb4=_0x44dd5c;_0x16f1ac[_0x3b6cb4(0x1e8)](),_0x37d669['unsubscribe']();};}['_drawTextRange'](_0x5c49e2,_0x123f1e,_0x58a668,_0x512a7a){const _0x7395ff=_0x3e206b;let _0x51cf0b=0.2,_0x4b0a10=new n['ColorKit'](_0x5c49e2)['setAlpha'](_0x51cf0b)[_0x7395ff(0x2b6)](),_0x210d98=new u[(_0x7395ff(0x2d0))](_0x7395ff(0x41b)+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x123f1e,'fill':_0x4b0a10||(0x0,u[_0x7395ff(0x147)])(n['COLORS'][_0x7395ff(0x3ca)],_0x51cf0b),'left':_0x58a668,'top':_0x512a7a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7395ff(0x26a)][_0x7395ff(0x313)](_0x210d98),this[_0x7395ff(0x355)][_0x7395ff(0x270)](_0x210d98,f[_0x7395ff(0x382)]);}[_0x3e206b(0x150)](_0x23a9db,_0x25ef83,_0x18bb55,_0x385c03){const _0x31e7fa=_0x3e206b;let _0x146e12=0.2,_0x6bb5e=new n[(_0x31e7fa(0x241))](_0x23a9db)[_0x31e7fa(0x3b5)](_0x146e12)[_0x31e7fa(0x2b6)](),_0x35b160=new u['RegularPolygon']('collab-rect-range-'+(0x0,n['generateRandomId'])(0x6),{'pointsGroup':_0x25ef83,'fill':_0x6bb5e||(0x0,u[_0x31e7fa(0x147)])(n[_0x31e7fa(0x18e)][_0x31e7fa(0x3ca)],_0x146e12),'left':_0x18bb55,'top':_0x385c03,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x35b160),this['_scene'][_0x31e7fa(0x270)](_0x35b160,f[_0x31e7fa(0x382)]);}[_0x3e206b(0x269)](_0x5407ae){let _0x5be284=_0x5407ae[0x0],_0x182f14=_0x5be284[0x0],_0x3c03f6=_0x5be284[0x2],{x:_0x21551a,y:_0x23a6e6}=_0x182f14,{x:_0x469b40,y:_0x57c11f}=_0x3c03f6;return{'left':_0x21551a,'top':_0x23a6e6,'width':_0x469b40-_0x21551a,'height':_0x57c11f-_0x23a6e6};}[_0x3e206b(0x1d4)](){const _0x3a82f8=_0x3e206b;let {scaleX:_0x1da5fb,scaleY:_0x3805f0}=this[_0x3a82f8(0x355)]['getAncestorScale']();return Math['max'](_0x1da5fb,_0x3805f0);}};let R=class extends n[_0x3e206b(0x1cf)]{constructor(_0x3c983f,_0x2bf2a0,_0x5d8cd6,_0x114284,_0x4a11a4){const _0x10fc85=_0x3e206b;super(),this[_0x10fc85(0x318)]=_0x3c983f,this[_0x10fc85(0x381)]=_0x2bf2a0,this[_0x10fc85(0x2c7)]=_0x5d8cd6,this[_0x10fc85(0x38a)]=_0x114284,this[_0x10fc85(0x324)]=_0x4a11a4,x(this,_0x10fc85(0x194),[]),x(this,'_cursors',[]),this['_init']();}['_init'](){const _0x405164=_0x3e206b;let _0x4e0049=this['_context'][_0x405164(0x196)],_0x43b53b=this[_0x405164(0x381)];this[_0x405164(0x1b7)]((0x0,i[_0x405164(0x11a)])([this[_0x405164(0x2c7)][_0x405164(0x3be)](_0x4e0049),this['_themeService'][_0x405164(0x161)]])[_0x405164(0x40a)]((0x0,a[_0x405164(0x29e)])(([_0xac63e2,_0x41a0f9])=>({'skeleton':_0x43b53b[_0x405164(0x40f)](),'cursors':[..._0xac63e2[_0x405164(0x2cd)]()]['flatMap'](_0x2f733d=>({..._0x2f733d,'color':this[_0x405164(0x324)][_0x405164(0x328)](_0x2f733d[_0x405164(0x3c0)])}))})))[_0x405164(0x2e6)](_0x210750=>{const _0x146e4d=_0x405164;if(this[_0x146e4d(0x343)](),_0x210750){let {skeleton:_0x4addbf,cursors:_0x4f28d3}=_0x210750;this[_0x146e4d(0x34d)](_0x4addbf,_0x4f28d3);}})),this[_0x405164(0x2c8)](),this[_0x405164(0x24f)]();}['_updateCollabCursors'](_0x89d6af,_0x21644a){const _0x5b5445=_0x3e206b;let {scene:_0x3143ac,mainComponent:_0x5b1d73}=this[_0x5b5445(0x318)],_0x5a80fe=_0x21644a[_0x5b5445(0x29e)](_0x53424f=>new be(_0x53424f,_0x3143ac,_0x89d6af,_0x5b1d73));this[_0x5b5445(0x194)]=_0x5a80fe,this[_0x5b5445(0x213)]=_0x21644a;}[_0x3e206b(0x365)](){const _0x289c78=_0x3e206b;this['_removeCollabCursors']();let {scene:_0x2735fd,mainComponent:_0x1fddf5}=this[_0x289c78(0x318)],_0x34b414=this['_docSkeletonManagerService'][_0x289c78(0x40f)](),_0x55ec5b=this[_0x289c78(0x213)][_0x289c78(0x29e)](_0x478d02=>new be(_0x478d02,_0x2735fd,_0x34b414,_0x1fddf5));this[_0x289c78(0x194)]=_0x55ec5b;}[_0x3e206b(0x343)](){const _0x2e93a5=_0x3e206b;this[_0x2e93a5(0x194)][_0x2e93a5(0x2d6)](_0x4ab8b4=>_0x4ab8b4[_0x2e93a5(0x2a8)]()),this[_0x2e93a5(0x194)]=[];}['_initCommandExecutedListener'](){const _0x4c1e3f=_0x3e206b;let _0x4d9776=[f[_0x4c1e3f(0x38b)]['id']];this[_0x4c1e3f(0x1b7)](this[_0x4c1e3f(0x38a)][_0x4c1e3f(0x144)](_0x39ac8e=>{const _0x200be0=_0x4c1e3f;_0x4d9776['includes'](_0x39ac8e['id'])&&_0x39ac8e['params'][_0x200be0(0x196)]===this[_0x200be0(0x318)][_0x200be0(0x196)]&&this[_0x200be0(0x365)]();}));}[_0x3e206b(0x2c8)](){const _0x1d4901=_0x3e206b;this[_0x1d4901(0x1b7)]((0x0,n[_0x1d4901(0x41a)])(this[_0x1d4901(0x318)][_0x1d4901(0x193)][_0x1d4901(0x2b1)])[_0x1d4901(0x40a)]((0x0,a[_0x1d4901(0x11b)])(_0x678bd2=>_0x678bd2['type']===u[_0x1d4901(0x31c)][_0x1d4901(0x32f)]),(0x0,a[_0x1d4901(0x22c)])(0x10))[_0x1d4901(0x2e6)](()=>{this['_refreshCollabCursors']();}));}};R=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(m[_0x3e206b(0x21f)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x3,n[_0x3e206b(0x1e4)]),S(0x4,(0x0,n['Inject'])(n['ThemeService']))],R);var xe=class extends u[_0x3e206b(0x11f)]{constructor(_0x2e92ca,_0x5886dc){const _0x5eab77=_0x3e206b;if(super(_0x2e92ca,_0x5886dc),x(this,_0x5eab77(0x367),void 0x0),x(this,_0x5eab77(0x2a2),!0x1),x(this,_0x5eab77(0x246),void 0x0),x(this,_0x5eab77(0x227),''),x(this,_0x5eab77(0x2e0),'top'),x(this,_0x5eab77(0x164),void 0x0),x(this,_0x5eab77(0x2a4),void 0x0),x(this,'_highlight',void 0x0),x(this,_0x5eab77(0x3b4),0x4),x(this,_0x5eab77(0x159),void 0x0),x(this,'_blinkIntervalTimer',void 0x0),x(this,_0x5eab77(0x235),!0x0),x(this,'_offsetY',0x0),x(this,_0x5eab77(0x14e),_0x5eab77(0x1dd)),_0x5886dc){var _0xd5e683;if(this[_0x5eab77(0x30b)](_0x5886dc),_0x5886dc[_0x5eab77(0x216)]&&((_0xd5e683=_0x5886dc['highlightSecond'])==null?this[_0x5eab77(0x3b4)]:_0xd5e683)){var _0x3133c0;this[_0x5eab77(0x1f7)]((_0x3133c0=_0x5886dc[_0x5eab77(0x16e)])==null?this['_highlightSecond']:_0x3133c0);}}this[_0x5eab77(0x3a1)][_0x5eab77(0x32b)](()=>this[_0x5eab77(0x30b)]({'hovered':!0x0})),this[_0x5eab77(0x1f5)][_0x5eab77(0x32b)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0x1c3058){const _0x383fb8=_0x3e206b;this[_0x383fb8(0x242)]=_0x1c3058;}['setShapeProps'](_0x129885){const _0x111ba5=_0x3e206b;var _0x17ca3f,_0x4d9f19,_0x57d3f9,_0xfd3458,_0x38c1e7,_0x326444,_0x1c3aec,_0x3df44d;this[_0x111ba5(0x367)]=(_0x17ca3f=_0x129885[_0x111ba5(0x3c0)])==null?this[_0x111ba5(0x367)]:_0x17ca3f,this[_0x111ba5(0x2a2)]=(_0x4d9f19=_0x129885[_0x111ba5(0x3d0)])==null?this[_0x111ba5(0x2a2)]:_0x4d9f19,this[_0x111ba5(0x246)]=(_0x57d3f9=_0x129885[_0x111ba5(0x2fd)])==null?this[_0x111ba5(0x246)]:_0x57d3f9,this[_0x111ba5(0x227)]=(_0xfd3458=_0x129885[_0x111ba5(0x12b)])==null?this['_name']:_0xfd3458,this[_0x111ba5(0x2e0)]=(_0x38c1e7=_0x129885[_0x111ba5(0x286)])==null?this['_labelPosition']:_0x38c1e7,this[_0x111ba5(0x164)]=(_0x326444=_0x129885[_0x111ba5(0x23e)])==null?this[_0x111ba5(0x164)]:_0x326444,this[_0x111ba5(0x2a4)]=(_0x1c3aec=_0x129885[_0x111ba5(0x39e)])==null?this[_0x111ba5(0x2a4)]:_0x1c3aec,this[_0x111ba5(0x14e)]=(_0x3df44d=_0x129885['labelHorizontalPosition'])==null?this[_0x111ba5(0x14e)]:_0x3df44d,_0x129885[_0x111ba5(0x16e)]!==void 0x0&&(this[_0x111ba5(0x3b4)]=_0x129885[_0x111ba5(0x16e)]),_0x129885[_0x111ba5(0x216)]!==void 0x0&&(this[_0x111ba5(0x3de)]=_0x129885[_0x111ba5(0x216)]),_0x129885[_0x111ba5(0x175)]!==void 0x0&&(this['_offsetY']=_0x129885[_0x111ba5(0x175)]),this[_0x111ba5(0x300)]({'width':_0x129885[_0x111ba5(0x3ed)],'height':_0x129885['height']});}[_0x3e206b(0x197)](_0x2a6afa){const _0x53971d=_0x3e206b;let {row:_0x28e150,column:_0x13c460}=_0x2a6afa;if(_0x28e150>=this[_0x53971d(0x246)][_0x53971d(0x2c6)]&&_0x28e150<=this[_0x53971d(0x246)][_0x53971d(0x362)]&&_0x13c460>=this[_0x53971d(0x246)][_0x53971d(0x408)]&&_0x13c460<=this[_0x53971d(0x246)][_0x53971d(0x128)]){this[_0x53971d(0x30b)]({'hovered':!0x0});return;}this[_0x53971d(0x30b)]({'hovered':!0x1});}[_0x3e206b(0x1f7)](_0x3f2b48){const _0x459f5c=_0x3e206b;this[_0x459f5c(0x277)](),this[_0x459f5c(0x235)]=!0x0,this['_blinkIntervalTimer']=window[_0x459f5c(0x39f)](()=>{const _0x39333d=_0x459f5c;this[_0x39333d(0x235)]=!this[_0x39333d(0x235)],this[_0x39333d(0x200)](!0x0);},0x1f4),this[_0x459f5c(0x159)]=window[_0x459f5c(0x1b8)](()=>{const _0x556c8a=_0x459f5c;this[_0x556c8a(0x277)](),this[_0x556c8a(0x235)]=!0x0,this[_0x556c8a(0x200)](!0x0);},_0x3f2b48*0x3e8);}[_0x3e206b(0x277)](){const _0x1bb5d4=_0x3e206b;this['_blinkIntervalTimer']&&(window[_0x1bb5d4(0x1dc)](this[_0x1bb5d4(0x2cc)]),this['_blinkIntervalTimer']=void 0x0),this[_0x1bb5d4(0x159)]&&(window[_0x1bb5d4(0x2b4)](this[_0x1bb5d4(0x159)]),this[_0x1bb5d4(0x159)]=void 0x0);}['triggerDblclick'](_0x12736b){return!0x1;}[_0x3e206b(0x2a8)](){const _0xc29dc6=_0x3e206b;this[_0xc29dc6(0x277)](),super['dispose']();}[_0x3e206b(0x3fd)](_0x50ba31){const _0xa080cd=_0x3e206b;let _0x44edab=this[_0xa080cd(0x367)],_0x990559=this[_0xa080cd(0x164)];if(this[_0xa080cd(0x3de)]&&!this[_0xa080cd(0x235)]&&(_0x44edab=this[_0xa080cd(0x421)](this[_0xa080cd(0x367)]),_0x990559=this[_0xa080cd(0x164)]?this[_0xa080cd(0x421)](this[_0xa080cd(0x164)]):void 0x0),u[_0xa080cd(0x2fa)]['drawWith'](_0x50ba31,{'width':this[_0xa080cd(0x3ed)],'height':this['height'],'strokeWidth':this[_0xa080cd(0x29b)]||1.5,'stroke':_0x44edab,'evented':!0x1,'fill':_0x990559}),this[_0xa080cd(0x2a2)]||this['_showText']){var _0x50464f;_0x50ba31[_0xa080cd(0x345)]();let _0x22d35e=this['_labelHorizontalPosition']===_0xa080cd(0x1f6)?-de(_0x50ba31,this[_0xa080cd(0x227)]):this[_0xa080cd(0x3ed)];_0x50ba31[_0xa080cd(0x254)](0x1,0x0,0x0,0x1,_0x22d35e,(this['_labelPosition']===_0xa080cd(0x17f)?0x0:-0x14)+((_0x50464f=this['_offsetY'])==null?0x0:_0x50464f)),D['drawWith'](_0x50ba31,{'text':this[_0xa080cd(0x227)],'color':_0x44edab}),_0x50ba31[_0xa080cd(0x291)]();}}[_0x3e206b(0x421)](_0x26f57e){const _0x209680=_0x3e206b;return _0x26f57e[_0x209680(0x35d)]('#')?_0x209680(0x232)+Number['parseInt'](_0x26f57e[_0x209680(0x177)](0x1,0x3),0x10)+',\x20'+Number[_0x209680(0x333)](_0x26f57e[_0x209680(0x177)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x26f57e[_0x209680(0x177)](0x5,0x7),0x10)+',\x200.2)':_0x26f57e[_0x209680(0x35d)](_0x209680(0x280))?_0x26f57e[_0x209680(0x38f)](/[\d.]+\)$/g,_0x209680(0x361)):_0x26f57e[_0x209680(0x35d)]('rgb')?_0x26f57e[_0x209680(0x38f)]('rgb',_0x209680(0x280))[_0x209680(0x38f)](')',',\x200.2)'):_0x26f57e;}};let z=class extends n[_0x3e206b(0x1cf)]{constructor(_0x2fac2b,_0x207325,_0x1c15e2,_0x4cc7d8){const _0x93176f=_0x3e206b;super(),this[_0x93176f(0x318)]=_0x2fac2b,this[_0x93176f(0x38e)]=_0x207325,this['_collabCursorController']=_0x1c15e2,this[_0x93176f(0x324)]=_0x4cc7d8,x(this,_0x93176f(0x213),new Set()),x(this,'_lastPointer',null),x(this,_0x93176f(0x125),null),this[_0x93176f(0x327)]();}[_0x3e206b(0x327)](){const _0x542403=_0x3e206b;this[_0x542403(0x38e)][_0x542403(0x303)][_0x542403(0x40a)]((0x0,a[_0x542403(0x326)])(this[_0x542403(0x224)]),(0x0,a[_0x542403(0x1e6)])(_0x22e4c3=>{const _0x280998=_0x542403;if(_0x22e4c3){let _0x177f22=_0x22e4c3['sheetId'];return(0x0,i[_0x280998(0x11a)])(this[_0x280998(0x2c7)][_0x280998(0x3be)](this['_context']['unitId']),this[_0x280998(0x324)]['currentTheme$'])[_0x280998(0x40a)]((0x0,a[_0x280998(0x29e)])(([_0x50c4f1,_0xe04591])=>{const _0x585c07=_0x280998;let _0x276fd2=new Map();return _0x50c4f1[_0x585c07(0x2d6)]((_0x4efa97,_0x2ec4db)=>{const _0x691065=_0x585c07;if(_0x4efa97[_0x691065(0x127)]===_0x177f22){let _0x5ea47a={..._0x4efa97};_0x5ea47a[_0x691065(0x3c0)]=this[_0x691065(0x324)][_0x691065(0x328)](_0x4efa97[_0x691065(0x3c0)]),_0x276fd2[_0x691065(0x369)](_0x2ec4db,_0x5ea47a);}}),{'skeleton':_0x22e4c3,'cursors':_0x276fd2};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1bbe95,cursors:_0x2ff17e})=>{const _0x5df343=_0x542403;this[_0x5df343(0x343)](),_0x1bbe95&&this[_0x5df343(0x34d)](_0x1bbe95,_0x2ff17e);}),this[_0x542403(0x1b7)](this[_0x542403(0x38e)][_0x542403(0x303)][_0x542403(0x40a)]((0x0,a[_0x542403(0x326)])(this[_0x542403(0x224)]))[_0x542403(0x2e6)](_0x409b5c=>{const _0x8be9c3=_0x542403;var _0x338bab;if(_0x409b5c==null)return;(_0x338bab=this[_0x8be9c3(0x125)])==null||_0x338bab[_0x8be9c3(0x1e8)](),this[_0x8be9c3(0x125)]=null;let {skeleton:_0x4d84c2}=_0x409b5c,{scene:_0x2c6b00}=this[_0x8be9c3(0x318)];this['_pointerMoveDisposable']=_0x2c6b00[_0x8be9c3(0x2d8)][_0x8be9c3(0x32b)]((0x0,n[_0x8be9c3(0x3fb)])(_0x46df2b=>{const _0x3fdb0d=_0x8be9c3;var _0x112881,_0x348ad4;let {offsetX:_0x1fe30b,offsetY:_0x128337}=_0x46df2b,{x:_0x5ee825,y:_0x15ce0a}=_0x2c6b00[_0x3fdb0d(0x14c)](u[_0x3fdb0d(0x378)]['FromArray']([_0x1fe30b,_0x128337])),{scaleX:_0x243f44,scaleY:_0x2f470c}=_0x2c6b00['getAncestorScale'](),_0x5c5dbc=_0x2c6b00[_0x3fdb0d(0x2f9)](u[_0x3fdb0d(0x377)][_0x3fdb0d(0x12a)]),_0x1f712c=_0x2c6b00[_0x3fdb0d(0x379)](u['Vector2'][_0x3fdb0d(0x1ed)]([_0x5ee825,_0x15ce0a]),_0x5c5dbc),_0x2ef05d=_0x4d84c2['getCellPositionByOffset'](_0x1fe30b,_0x128337,_0x243f44,_0x2f470c,_0x1f712c);((_0x112881=this[_0x3fdb0d(0x3f7)])==null?void 0x0:_0x112881[_0x3fdb0d(0x19e)])===_0x2ef05d['column']&&((_0x348ad4=this[_0x3fdb0d(0x3f7)])==null?void 0x0:_0x348ad4['row'])===_0x2ef05d['row']||this[_0x3fdb0d(0x213)][_0x3fdb0d(0x2d6)](_0x28e3b5=>{const _0x168ab7=_0x3fdb0d;_0x28e3b5[_0x168ab7(0x197)](_0x2ef05d);});},0x64));})),this['disposeWithMe']((0x0,n['toDisposable'])(()=>{const _0x57734d=_0x542403;var _0x2efa69;(_0x2efa69=this['_pointerMoveDisposable'])==null||_0x2efa69[_0x57734d(0x1e8)](),this['_pointerMoveDisposable']=null;}));}[_0x3e206b(0x34d)](_0x40c42d,_0x1d0d09){const _0x18daad=_0x3e206b;let _0x1e20a5=this[_0x18daad(0x38e)][_0x18daad(0x145)]();if(!_0x1e20a5)return;let _0xec61eb=this['_getSheetObject']();if(!_0xec61eb)return;this[_0x18daad(0x213)]['forEach'](_0x2e718f=>{const _0x5a290d=_0x18daad;_0x2e718f[_0x5a290d(0x200)]();});let {scene:_0x3f0cad}=_0xec61eb,_0x5b323f=Se(Array[_0x18daad(0x271)](_0x1d0d09[_0x18daad(0x2cd)]()))[_0x18daad(0x29e)](_0x3e7c90=>{const _0x4b1873=_0x18daad;let {color:_0x1d36d6,range:_0x452361,name:_0x311607,selection:_0xf71439,sheetID:_0x17bef}=_0x3e7c90,{startColumn:_0x510428,startRow:_0x2ba9ec,endColumn:_0x17710f,endRow:_0x1c033c}=_0x452361,_0x1acded=(0x0,v[_0x4b1873(0x357)])(_0x2ba9ec,_0x510428,_0x3f0cad,_0x1e20a5),_0x513774=(0x0,v[_0x4b1873(0x357)])(_0x1c033c,_0x17710f,_0x3f0cad,_0x1e20a5),{columnHeaderHeightAndMarginTop:_0x25b5b0}=_0x1e20a5,{startX:_0x2c838,startY:_0x36aad0}=_0x1acded,{endX:_0x2d671a,endY:_0x2679da}=_0x513774,_0x567040=_0x2d671a-_0x2c838,_0x107d21=_0x2679da-_0x36aad0;return new xe(_0x311607,{'labelPosition':_0x36aad0-_0x25b5b0>=0x14?_0x4b1873(0x32a):_0x4b1873(0x17f),'sheetID':_0x17bef,'range':_0x452361,'color':_0x1d36d6,'name':_0x311607,'selection':_0xf71439,'left':_0x2c838,'top':_0x36aad0,'width':_0x567040,'height':_0x107d21,'evented':!0x1,'zIndex':0x1389});});_0x3f0cad['addObjects'](_0x5b323f,0x1),this['_cursors']=new Set(_0x5b323f);}[_0x3e206b(0x343)](){const _0x4c6222=_0x3e206b;var _0x3f5cd7;(_0x3f5cd7=this[_0x4c6222(0x213)])==null||_0x3f5cd7['forEach'](_0x31e276=>_0x31e276[_0x4c6222(0x2a8)]());}[_0x3e206b(0x37d)](){const _0x1d49a7=_0x3e206b;return(0x0,v[_0x1d49a7(0x412)])(this[_0x1d49a7(0x318)][_0x1d49a7(0x3bf)],this['_context']);}};z=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(v[_0x3e206b(0x2ac)])),S(0x2,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x3,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x35f)]))],z);function Se(_0x5bcf4b){const _0x3ec081=_0x3e206b;let _0x5c71d0=new Map();return _0x5bcf4b[_0x3ec081(0x2d6)](_0x1d4ba8=>{const _0x1f52cd=_0x3ec081;if(_0x5c71d0[_0x1f52cd(0x3fa)](_0x1d4ba8[_0x1f52cd(0x26e)])){let _0x1d459f=_0x5c71d0['get'](_0x1d4ba8[_0x1f52cd(0x26e)]);_0x1d459f[_0x1f52cd(0x12b)]+=',\x20'+_0x1d4ba8[_0x1f52cd(0x12b)];}else _0x5c71d0[_0x1f52cd(0x369)](_0x1d4ba8[_0x1f52cd(0x26e)],_0x1d4ba8);}),Array[_0x3ec081(0x271)](_0x5c71d0[_0x3ec081(0x2cd)]());}let B=class extends n[_0x3e206b(0x1cf)]{constructor(_0x4703e0,_0x482c82,_0x5d9291){const _0x61ec9b=_0x3e206b;super(),this[_0x61ec9b(0x318)]=_0x4703e0,this[_0x61ec9b(0x2c7)]=_0x482c82,this[_0x61ec9b(0x324)]=_0x5d9291,x(this,'_cursors',new Set()),x(this,_0x61ec9b(0x389),!0x1),x(this,'_isApplyingOverlays',!0x1),x(this,_0x61ec9b(0x30a),new Map()),this['_init']();}[_0x3e206b(0x2a8)](){const _0x28cdea=_0x3e206b;this[_0x28cdea(0x343)](),super[_0x28cdea(0x2a8)]();}[_0x3e206b(0x327)](){const _0x18b33e=_0x3e206b;let _0x286c8f=this['_context']['unit'][_0x18b33e(0x403)]['activeSlideId$'],_0x5798fe=this['_collabCursorController'][_0x18b33e(0x3be)](this[_0x18b33e(0x318)][_0x18b33e(0x196)]);this['disposeWithMe']((0x0,n[_0x18b33e(0x297)])((0x0,i['combineLatest'])([_0x5798fe,_0x286c8f,this[_0x18b33e(0x324)][_0x18b33e(0x161)]])[_0x18b33e(0x40a)]((0x0,i['takeUntil'])(this['dispose$']))['subscribe'](([_0x517297,_0x22df53])=>{const _0x1b5332=_0x18b33e;let _0x4d1400=new Map();_0x517297[_0x1b5332(0x2d6)]((_0x3e9f59,_0x2a82be)=>{const _0x1b785a=_0x1b5332;_0x3e9f59[_0x1b785a(0x1fa)]===_0x22df53&&_0x4d1400[_0x1b785a(0x369)](_0x2a82be,{..._0x3e9f59,'color':this['_themeService'][_0x1b785a(0x328)](_0x3e9f59[_0x1b785a(0x3c0)])});}),this[_0x1b5332(0x30a)]=_0x4d1400,this[_0x1b5332(0x1ac)]();})));let _0x26f817=this[_0x18b33e(0x318)][_0x18b33e(0x1ee)];this['disposeWithMe']((0x0,n['toDisposable'])(_0x26f817['addObject$'][_0x18b33e(0x40a)]((0x0,i[_0x18b33e(0x326)])(this[_0x18b33e(0x224)]))[_0x18b33e(0x2e6)](()=>{const _0x5b2b11=_0x18b33e;this[_0x5b2b11(0x41d)]||this['_scheduleRender']();})));}[_0x3e206b(0x1ac)](){const _0x4a1402=_0x3e206b;this['_renderScheduled']||(this[_0x4a1402(0x389)]=!0x0,Promise[_0x4a1402(0x2f6)]()[_0x4a1402(0x251)](()=>{const _0x3c6c97=_0x4a1402;this[_0x3c6c97(0x389)]=!0x1,this[_0x3c6c97(0x39d)]();}));}['_render'](){const _0x1cf4b2=_0x3e206b;var _0x24c142;this[_0x1cf4b2(0x343)]();let _0x35063e=(_0x24c142=this[_0x1cf4b2(0x318)][_0x1cf4b2(0x3bf)][_0x1cf4b2(0x403)][_0x1cf4b2(0x290)]())==null?void 0x0:_0x24c142[_0x1cf4b2(0x40b)]();if(!_0x35063e)return;let _0x2ecbd3=[];if(this['_latestCursors']['forEach']((_0x4c76f2,_0x1f0bb3)=>{const _0x17631c=_0x1cf4b2;_0x4c76f2['subUnitId']===_0x35063e&&_0x4c76f2[_0x17631c(0x2b8)][_0x17631c(0x2d6)](_0x4908db=>{const _0x3e0dac=_0x17631c;let _0x590235=(0x0,_[_0x3e0dac(0x24e)])(_0x4c76f2[_0x3e0dac(0x196)],_0x4c76f2[_0x3e0dac(0x1fa)],_0x4908db),_0x192702=this[_0x3e0dac(0x2b5)](_0x590235);if(!_0x192702)return;let _0x17a570=this[_0x3e0dac(0x405)](_0x192702);_0x2ecbd3[_0x3e0dac(0x313)](new pe(_0x3e0dac(0x287)+_0x1f0bb3+'-'+_0x4908db,{..._0x4c76f2,'left':_0x17a570[_0x3e0dac(0x1f6)],'top':_0x17a570['top'],'width':_0x17a570[_0x3e0dac(0x3ed)],'height':_0x17a570[_0x3e0dac(0x238)],'angle':_0x192702['angle'],'evented':!0x1,'zIndex':O}));});}),_0x2ecbd3['length']===0x0){this['_context'][_0x1cf4b2(0x1ee)][_0x1cf4b2(0x200)](!0x0);return;}this[_0x1cf4b2(0x41d)]=!0x0,this[_0x1cf4b2(0x318)][_0x1cf4b2(0x1ee)]['addObjects'](_0x2ecbd3,O),this[_0x1cf4b2(0x41d)]=!0x1,this[_0x1cf4b2(0x213)]=new Set(_0x2ecbd3),this[_0x1cf4b2(0x318)]['scene'][_0x1cf4b2(0x200)](!0x0);}[_0x3e206b(0x343)](){const _0x155bc6=_0x3e206b;let _0x308255=Array[_0x155bc6(0x271)](this['_cursors']);if(_0x308255[_0x155bc6(0x2ca)]===0x0)return;let _0x54b3ec=this[_0x155bc6(0x318)][_0x155bc6(0x1ee)];'removeObjects'in _0x54b3ec&&typeof _0x54b3ec[_0x155bc6(0x35a)]==_0x155bc6(0x256)?_0x54b3ec['removeObjects'](_0x308255):_0x308255['forEach'](_0x149f05=>{const _0x53c9a8=_0x155bc6;_0x53c9a8(0x201)in _0x54b3ec&&typeof _0x54b3ec[_0x53c9a8(0x201)]==_0x53c9a8(0x256)?_0x54b3ec['removeObject'](_0x149f05):_0x149f05[_0x53c9a8(0x2a8)]();}),this[_0x155bc6(0x213)][_0x155bc6(0x32d)](),_0x54b3ec[_0x155bc6(0x200)](!0x0);}[_0x3e206b(0x2b5)](_0x18390b){const _0x1b0c4f=_0x3e206b;var _0xcae7f7,_0x56ceb2,_0x2e0fe0;let _0x377fbb=this[_0x1b0c4f(0x318)][_0x1b0c4f(0x1ee)];return(_0xcae7f7=(_0x56ceb2=(_0x2e0fe0=_0x377fbb[_0x1b0c4f(0x14d)])==null?void 0x0:_0x2e0fe0['call'](_0x377fbb,_0x18390b))==null?_0x377fbb['getObject'](_0x18390b):_0x56ceb2)==null?null:_0xcae7f7;}['_getObjectBounds'](_0x48f902){const _0xbcf56d=_0x3e206b;var _0x6ec4e8,_0x139456;let _0x129ac8=_0x48f902;return(_0x6ec4e8=(_0x139456=_0x129ac8[_0xbcf56d(0x364)])==null?void 0x0:_0x139456[_0xbcf56d(0x293)](_0x129ac8))==null?{'left':_0x48f902[_0xbcf56d(0x1f6)],'top':_0x48f902['top'],'width':_0x48f902[_0xbcf56d(0x3ed)],'height':_0x48f902[_0xbcf56d(0x238)]}:_0x6ec4e8;}};B=C([S(0x1,(0x0,n[_0x3e206b(0x2de)])(F)),S(0x2,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x35f)]))],B);let V=class extends n[_0x3e206b(0x3a2)]{constructor(_0x23ce56,_0x3c01b2,_0x306b6b,_0x4634c2,_0x1208e4,_0x10864b){const _0x9bbf70=_0x3e206b;super(),this[_0x9bbf70(0x316)]=_0x23ce56,this[_0x9bbf70(0x349)]=_0x3c01b2,this[_0x9bbf70(0x15a)]=_0x306b6b,this[_0x9bbf70(0x3c1)]=_0x4634c2,this[_0x9bbf70(0x385)]=_0x1208e4,this[_0x9bbf70(0x2b3)]=_0x10864b,this[_0x9bbf70(0x341)](),this[_0x9bbf70(0x325)]();}[_0x3e206b(0x341)](){const _0x10b259=_0x3e206b;this[_0x10b259(0x1b7)](this[_0x10b259(0x316)][_0x10b259(0x335)](()=>{const _0xc2268b=_0x10b259;if(this['_localCacheService']['saveTaskMap'][_0xc2268b(0x3a3)])return this[_0xc2268b(0x2b3)]['t'](_0xc2268b(0x1d5));}));}['_initEvent'](){const _0x5003f3=_0x3e206b;this[_0x5003f3(0x1b7)](this[_0x5003f3(0x15a)][_0x5003f3(0x33d)][_0x5003f3(0x2e6)](_0x5eb4a0=>{const _0x48a739=_0x5003f3;_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x284)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Warning'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x204))}),_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x383)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType'][_0x48a739(0x353)],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x142))}),_0x5eb4a0['id']===t[_0x48a739(0x391)][_0x48a739(0x2d3)]&&this[_0x48a739(0x385)][_0x48a739(0x158)]({'title':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x27e)),'content':this['_localeService']['t'](_0x48a739(0x359)),'type':'error','duration':0x0}),_0x5eb4a0['id']===t['CollaborationUIEventId']['CONFLICT']&&this[_0x48a739(0x385)][_0x48a739(0x158)]({'title':this['_localeService']['t'](_0x48a739(0x392)),'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x1d9)),'type':_0x48a739(0x3c7),'duration':0x0}),_0x5eb4a0['id']===t[_0x48a739(0x391)]['JOIN_ROOM_FAILED']&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType'][_0x48a739(0x353)],'content':this[_0x48a739(0x2b3)]['t'](_0x5eb4a0[_0x48a739(0x2ee)]||'')}),_0x5eb4a0['id']===t['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Warning'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x179))}),_0x5eb4a0['id']===t['CollaborationUIEventId'][_0x48a739(0x25f)]&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o[_0x48a739(0x15c)]['Error'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x30e))}),_0x5eb4a0['id']===t[_0x48a739(0x391)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x48a739(0x3c1)][_0x48a739(0x158)]({'type':o['MessageType']['Error'],'content':this[_0x48a739(0x2b3)]['t'](_0x48a739(0x29d))});}));}};V=C([S(0x0,r[_0x3e206b(0x3bb)]),S(0x1,t[_0x3e206b(0x3d3)]),S(0x2,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x281)])),S(0x3,r['IMessageService']),S(0x4,r[_0x3e206b(0x338)]),S(0x5,(0x0,n['Inject'])(n[_0x3e206b(0x11d)]))],V);const H=(0x0,n[_0x3e206b(0x3a4)])(_0x3e206b(0x23c));let U=class extends n['RxDisposable']{constructor(_0x4d15f0,_0x23f8ea,_0x21a900,_0x37d741,_0x284fd0){const _0x51e987=_0x3e206b;super(),this[_0x51e987(0x130)]=_0x4d15f0,this[_0x51e987(0x360)]=_0x23f8ea,this[_0x51e987(0x38a)]=_0x21a900,this[_0x51e987(0x1e2)]=_0x37d741,_0x284fd0?_0x284fd0[_0x51e987(0x3fc)]()[_0x51e987(0x251)](()=>this['_init']()):(this['_logService'][_0x51e987(0x119)](_0x51e987(0x11e),_0x51e987(0x2a9)),this[_0x51e987(0x327)]());}async['_init'](){const _0x1429b9=_0x3e206b;let _0x3dd306=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)](_0x1429b9(0x3bf)),_0x1252b9=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)]('type'),_0x29466f=this[_0x1429b9(0x130)][_0x1429b9(0x3b7)]('subunit');if(!_0x3dd306||!_0x1252b9){this[_0x1429b9(0x360)][_0x1429b9(0x119)](_0x1429b9(0x11e),_0x1429b9(0x272));return;}let _0x386a83=await this['_dataLoaderService'][_0x1429b9(0x384)](_0x3dd306,Number(_0x1252b9),_0x29466f);_0x386a83&&_0x386a83 instanceof n[_0x1429b9(0x120)]&&this['_setupSubUnitSync'](_0x386a83);}async[_0x3e206b(0x32c)](_0x460c1f){const _0x3c7be1=_0x3e206b;await this[_0x3c7be1(0x413)](_0x460c1f),_0x460c1f[_0x3c7be1(0x34f)][_0x3c7be1(0x40a)]((0x0,i['takeUntil'])(this[_0x3c7be1(0x224)]))[_0x3c7be1(0x2e6)](_0x1974b2=>{const _0x46bf60=_0x3c7be1;_0x1974b2&&this[_0x46bf60(0x239)](_0x1974b2);}),this[_0x3c7be1(0x130)]['urlChange$'][_0x3c7be1(0x40a)]((0x0,i['takeUntil'])(this[_0x3c7be1(0x224)]))['subscribe'](()=>this[_0x3c7be1(0x413)](_0x460c1f));}[_0x3e206b(0x239)](_0x294f3b,_0x2f3728=!0x1){const _0x3172f9=_0x3e206b;let _0x3db689=this['_urlService'][_0x3172f9(0x3b7)](_0x3172f9(0x17a));_0x294f3b['getSheetId']()!==_0x3db689&&this['_urlService'][_0x3172f9(0x1df)](_0x3172f9(0x17a),_0x294f3b['getSheetId'](),_0x2f3728);}async[_0x3e206b(0x413)](_0x4e9948){const _0x253ac1=_0x3e206b;var _0x1feaf9;let _0x49d2ce=this[_0x253ac1(0x130)][_0x253ac1(0x3b7)]('subunit');if(!_0x49d2ce||!_0x4e9948[_0x253ac1(0x289)](_0x49d2ce)){let _0x166e1=_0x4e9948['getUnhiddenWorksheets']()[0x0],_0x535ecc=_0x4e9948['getSheetBySheetId'](_0x166e1);if(!_0x535ecc)return;this[_0x253ac1(0x239)](_0x535ecc,!0x0),await this[_0x253ac1(0x38a)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4e9948['getUnitId'](),'subUnitId':_0x166e1});return;}((_0x1feaf9=_0x4e9948[_0x253ac1(0x2f8)]())==null?void 0x0:_0x1feaf9[_0x253ac1(0x395)]())!==_0x49d2ce&&await this[_0x253ac1(0x38a)]['executeCommand'](g[_0x253ac1(0x1b9)]['id'],{'unitId':_0x4e9948[_0x253ac1(0x187)](),'subUnitId':_0x49d2ce});}};U=C([S(0x0,H),S(0x1,n[_0x3e206b(0x2c3)]),S(0x2,n[_0x3e206b(0x1e4)]),S(0x3,(0x0,n['Inject'])(t[_0x3e206b(0x296)])),S(0x4,(0x0,n[_0x3e206b(0x172)])(ee[_0x3e206b(0x2f7)]))],U);let W=class{constructor(_0x2e8e4a,_0x331497){const _0x31ff12=_0x3e206b;this['_transformService']=_0x2e8e4a,this[_0x31ff12(0x230)]=_0x331497;}['transformIMECache'](_0x35e47e){const _0x32a2fb=_0x3e206b;this['_transformUndoRedoStack'](_0x35e47e),this[_0x32a2fb(0x3bc)](_0x35e47e);}[_0x3e206b(0x1f9)](_0x18257c){const _0x17aa87=_0x3e206b;let {unitID:_0x2ea439}=_0x18257c,{redoCache:_0x39b5cb}=this[_0x17aa87(0x230)][_0x17aa87(0x1fc)](_0x2ea439)['with'](f[_0x17aa87(0x176)])[_0x17aa87(0x282)]();if(_0x39b5cb[_0x17aa87(0x2ca)]===0x0)return _0x18257c;let _0x5c07d9=n['Tools'][_0x17aa87(0x11c)](_0x18257c[_0x17aa87(0x118)][0x0]);for(let _0x13a7dd=0x0;_0x13a7dd<_0x39b5cb[_0x17aa87(0x2ca)];_0x13a7dd++){let _0x138e00={'id':_0x17aa87(0x19f),'params':{..._0x39b5cb[_0x13a7dd]}},_0x5920de=this[_0x17aa87(0x1bb)][_0x17aa87(0x250)](_0x5c07d9,_0x138e00,!0x1);if((0x0,p[_0x17aa87(0x1b2)])(_0x5920de))throw _0x5920de['error'];_0x5c07d9=_0x5920de[_0x17aa87(0x274)];}return{...n[_0x17aa87(0x249)][_0x17aa87(0x11c)](_0x18257c),'mutations':[_0x5c07d9]};}[_0x3e206b(0x1a6)](_0x426f65){const _0x570ab1=_0x3e206b;let {unitID:_0x5effb5}=_0x426f65,_0x5616a1=this[_0x570ab1(0x230)][_0x570ab1(0x1fc)](_0x5effb5)[_0x570ab1(0x131)](f[_0x570ab1(0x176)]),{undoCache:_0x13b40e,redoCache:_0x19074f}=_0x5616a1[_0x570ab1(0x282)]();if(_0x13b40e[_0x570ab1(0x2ca)]===0x0||_0x19074f[_0x570ab1(0x2ca)]===0x0)return;let _0xafe6df=[],_0x43f94e=[],_0x1dc1f8=n[_0x570ab1(0x249)]['deepClone'](_0x426f65[_0x570ab1(0x118)][0x0]),_0x62a211=n[_0x570ab1(0x249)][_0x570ab1(0x11c)](_0x426f65[_0x570ab1(0x118)][0x0]);for(let _0x5367cc=_0x13b40e[_0x570ab1(0x2ca)]-0x1;_0x5367cc>=0x0;_0x5367cc--){let _0x367776={'id':_0x570ab1(0x19f),'params':{..._0x13b40e[_0x5367cc]}},_0x2c4272={'id':_0x570ab1(0x19f),'params':{..._0x19074f[_0x5367cc]}},_0x2706fb=this[_0x570ab1(0x1bb)][_0x570ab1(0x250)](_0x1dc1f8,_0x367776,!0x1),_0x474943=this[_0x570ab1(0x1bb)][_0x570ab1(0x250)](_0x62a211,_0x2c4272,!0x1);if((0x0,p['isTransformMutationFailure'])(_0x2706fb))throw _0x2706fb[_0x570ab1(0x3c7)];if((0x0,p['isTransformMutationFailure'])(_0x474943))throw _0x474943[_0x570ab1(0x3c7)];_0xafe6df[_0x570ab1(0x17c)](_0x2706fb[_0x570ab1(0x279)][_0x570ab1(0x1fe)]),_0x43f94e[_0x570ab1(0x17c)](_0x474943[_0x570ab1(0x279)][_0x570ab1(0x1fe)]),_0x1dc1f8=_0x2706fb['m1Prime'],_0x62a211=_0x474943[_0x570ab1(0x274)];}_0x5616a1['setUndoRedoMutationParamsCache']({'undoCache':_0xafe6df,'redoCache':_0x43f94e});}[_0x3e206b(0x3bc)](_0x24fa42){const _0x401a76=_0x3e206b;let {unitID:_0x6d396d}=_0x24fa42,_0x2cc496=this[_0x401a76(0x230)][_0x401a76(0x1fc)](_0x6d396d)[_0x401a76(0x131)](f[_0x401a76(0x176)]),_0x59be2a=_0x2cc496['getActiveRange']();if(_0x59be2a==null)return;let _0x4fa9db=[{'id':_0x401a76(0x19f),'params':{'unitId':_0x24fa42[_0x401a76(0x3df)],'actions':null,'textRanges':[_0x59be2a]}}],_0x5c723a=this[_0x401a76(0x1bb)][_0x401a76(0x13e)](_0x24fa42,_0x4fa9db);if(!(0x0,p[_0x401a76(0x1e3)])(_0x5c723a))throw _0x5c723a[_0x401a76(0x3c7)];let _0x20e0a5=_0x5c723a[_0x401a76(0x279)][0x0]['params'][_0x401a76(0x27b)];Array['isArray'](_0x20e0a5)&&_0x20e0a5[_0x401a76(0x2ca)]&&_0x2cc496[_0x401a76(0x124)](_0x20e0a5[0x0]);}};W=C([S(0x0,p[_0x3e206b(0x2c1)]),S(0x1,u['IRenderManagerService'])],W);let G=class{constructor(_0xae6a58,_0x3e225b,_0x342d87){const _0xb88516=_0x3e206b;this[_0xb88516(0x141)]=_0xae6a58,this[_0xb88516(0x1bb)]=_0x3e225b,this[_0xb88516(0x1a4)]=_0x342d87;}[_0x3e206b(0x36e)](_0x223bb1){const _0xd83360=_0x3e206b;this[_0xd83360(0x15b)](_0x223bb1);}[_0x3e206b(0x1f9)](_0x489aa9){const _0x44b4fd=_0x3e206b;let {unitID:_0x36ccc2}=_0x489aa9,{collaboration:_0x6523a0}=this[_0x44b4fd(0x1a4)][_0x44b4fd(0x20c)](_0x36ccc2);if(_0x6523a0[_0x44b4fd(0x2ca)]===0x0)return _0x489aa9;let _0x355f9c=n[_0x44b4fd(0x249)][_0x44b4fd(0x11c)](_0x489aa9[_0x44b4fd(0x118)][0x0]);for(let _0x408c6c=0x0;_0x408c6c<_0x6523a0[_0x44b4fd(0x2ca)];_0x408c6c++){let _0x243e67={'id':_0x44b4fd(0x19f),'params':{'unitId':_0x6523a0[_0x408c6c][_0x44b4fd(0x196)],..._0x6523a0[_0x408c6c][_0x44b4fd(0x1be)]}},_0x4837c7=this[_0x44b4fd(0x1bb)][_0x44b4fd(0x250)](_0x355f9c,_0x243e67,!0x1);if((0x0,p[_0x44b4fd(0x1b2)])(_0x4837c7))throw _0x4837c7[_0x44b4fd(0x3c7)];_0x355f9c=_0x4837c7[_0x44b4fd(0x274)];}return{...n[_0x44b4fd(0x249)][_0x44b4fd(0x11c)](_0x489aa9),'mutations':[_0x355f9c]};}['_transformHistoryAndStateStack'](_0x3c378b){const _0x56db41=_0x3e206b;let {unitID:_0x500459}=_0x3c378b,{history:_0xf3ce92,collaboration:_0xa49f0f}=this[_0x56db41(0x1a4)][_0x56db41(0x20c)](_0x500459);if(_0xf3ce92[_0x56db41(0x2ca)]===0x0&&_0xa49f0f[_0x56db41(0x2ca)]===0x0)return;let _0x2923cd=[],_0x5de908=[],_0x864b9f=n[_0x56db41(0x249)][_0x56db41(0x11c)](_0x3c378b[_0x56db41(0x118)][0x0]),_0x3c1055=n[_0x56db41(0x249)]['deepClone'](_0x3c378b[_0x56db41(0x118)][0x0]);for(let _0x2922b7=_0xf3ce92[_0x56db41(0x2ca)]-0x1;_0x2922b7>=0x0;_0x2922b7--){let _0x33bd37={'id':_0x56db41(0x19f),'params':{'unitId':_0xf3ce92[_0x2922b7][_0x56db41(0x196)],..._0xf3ce92[_0x2922b7]['undoState']}},_0x15569e={'id':_0x56db41(0x19f),'params':{'unitId':_0xf3ce92[_0x2922b7][_0x56db41(0x196)],..._0xf3ce92[_0x2922b7][_0x56db41(0x1be)]}},_0x54c753=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x864b9f,_0x33bd37,!0x1),_0x2899a0=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x3c1055,_0x15569e,!0x1);if((0x0,p[_0x56db41(0x1b2)])(_0x54c753))throw _0x54c753[_0x56db41(0x3c7)];if((0x0,p[_0x56db41(0x1b2)])(_0x2899a0))throw _0x2899a0['error'];_0x2923cd['unshift']({..._0xf3ce92[_0x2922b7],'undoState':_0x54c753[_0x56db41(0x279)][_0x56db41(0x1fe)],'redoState':_0x2899a0['m2Prime'][_0x56db41(0x1fe)]}),_0x864b9f=_0x54c753['m1Prime'],_0x3c1055=_0x2899a0['m1Prime'];}_0x864b9f=n[_0x56db41(0x249)][_0x56db41(0x11c)](_0x3c378b[_0x56db41(0x118)][0x0]),_0x3c1055=n[_0x56db41(0x249)]['deepClone'](_0x3c378b[_0x56db41(0x118)][0x0]);for(let _0x8f3d84=_0xa49f0f[_0x56db41(0x2ca)]-0x1;_0x8f3d84>=0x0;_0x8f3d84--){let _0x3cb6ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa49f0f[_0x8f3d84][_0x56db41(0x196)],..._0xa49f0f[_0x8f3d84]['undoState']}},_0x37db63={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xa49f0f[_0x8f3d84][_0x56db41(0x196)],..._0xa49f0f[_0x8f3d84][_0x56db41(0x1be)]}},_0x2654ba=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x864b9f,_0x3cb6ba,!0x1),_0x162957=this[_0x56db41(0x1bb)][_0x56db41(0x250)](_0x3c1055,_0x37db63,!0x1);if((0x0,p[_0x56db41(0x1b2)])(_0x2654ba))throw _0x2654ba[_0x56db41(0x3c7)];if((0x0,p[_0x56db41(0x1b2)])(_0x162957))throw _0x162957['error'];_0x5de908['unshift']({..._0xa49f0f[_0x8f3d84],'undoState':_0x2654ba[_0x56db41(0x279)][_0x56db41(0x1fe)],'redoState':_0x162957[_0x56db41(0x279)][_0x56db41(0x1fe)]}),_0x864b9f=_0x2654ba[_0x56db41(0x274)],_0x3c1055=_0x162957[_0x56db41(0x274)];}this[_0x56db41(0x1a4)][_0x56db41(0x217)](_0x500459,{'history':_0x2923cd,'collaboration':_0x5de908});}};G=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x244)])),S(0x1,p[_0x3e206b(0x2c1)]),S(0x2,(0x0,n['Inject'])(m['DocStateChangeManagerService']))],G);let K=class{constructor(_0x1d9309,_0xfb3e60){const _0x4afdef=_0x3e206b;this[_0x4afdef(0x141)]=_0x1d9309,this[_0x4afdef(0x1bb)]=_0xfb3e60;}[_0x3e206b(0x417)](_0x29dbe5){const _0x207b7b=_0x3e206b;var _0x34beb1;let _0x53535f=this[_0x207b7b(0x141)][_0x207b7b(0x28b)](m[_0x207b7b(0x3e2)]),_0xdfd39c=(_0x34beb1=_0x53535f[_0x207b7b(0x2cb)]())==null?[]:_0x34beb1;if(_0xdfd39c[_0x207b7b(0x2ca)]===0x0)return;let _0x57657b=_0x29dbe5['unitID'],_0x14aeed=[{'id':_0x207b7b(0x19f),'params':{'unitId':_0x57657b,'actions':null,'textRanges':_0xdfd39c}}],_0x368f6e=this[_0x207b7b(0x1bb)]['transformMutationsWithChangeset'](_0x29dbe5,_0x14aeed);if(!(0x0,p[_0x207b7b(0x1e3)])(_0x368f6e))throw _0x368f6e[_0x207b7b(0x3c7)];let _0x5dc127=_0x368f6e[_0x207b7b(0x279)][0x0][_0x207b7b(0x1fe)][_0x207b7b(0x27b)];Array[_0x207b7b(0x1ab)](_0x5dc127)&&_0x5dc127[_0x207b7b(0x2ca)]&&_0x53535f[_0x207b7b(0x310)](_0x5dc127,{'unitId':_0x57657b,'subUnitId':_0x57657b},!0x1);}};K=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(n['Injector'])),S(0x1,p[_0x3e206b(0x2c1)])],K);let q=class extends n['Disposable']{constructor(_0x1cd4e0,_0x465593,_0x2c022d,_0xe8f54,_0x1bd8be,_0x35a6c8,_0x590490){const _0x102355=_0x3e206b;super(),this[_0x102355(0x38d)]=_0x1cd4e0,this[_0x102355(0x162)]=_0x465593,this[_0x102355(0x16d)]=_0x2c022d,this[_0x102355(0x1cb)]=_0xe8f54,this[_0x102355(0x39a)]=_0x1bd8be,this['_messageService']=_0x35a6c8,this['_localeService']=_0x590490,x(this,_0x102355(0x3f9),new i['BehaviorSubject'](t['CollaborationStatus'][_0x102355(0x12d)])),this[_0x102355(0x2db)]();}['_initEntityListener'](){const _0x5f18d3=_0x3e206b;this[_0x5f18d3(0x1b7)](this[_0x5f18d3(0x38d)]['entityInit$'][_0x5f18d3(0x2e6)](_0x35096e=>{const _0x42f8ce=_0x5f18d3;_0x35096e instanceof t[_0x42f8ce(0x149)]&&_0x35096e[_0x42f8ce(0x2b0)]({'onTransformIME':_0x4b4643=>this[_0x42f8ce(0x162)][_0x42f8ce(0x2ae)](_0x4b4643),'onTransformState':_0x39ee09=>this[_0x42f8ce(0x16d)][_0x42f8ce(0x36e)](_0x39ee09),'onTransformSelections':_0x3fa95b=>this[_0x42f8ce(0x1cb)]['transformSelections'](_0x3fa95b),'onSyncEditingCollabCursor':_0x14a27e=>this['_docSyncEditingCollabCursorService'][_0x42f8ce(0x37a)](_0x14a27e),'onTransformRemoteChangesetByIMECache':_0x4043de=>this[_0x42f8ce(0x162)][_0x42f8ce(0x1f9)](_0x4043de),'onTransformRemoteChangesetByStateCache':_0x2a15c0=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2a15c0)});}));}};q=C([S(0x0,(0x0,n[_0x3e206b(0x2de)])(t[_0x3e206b(0x2bf)])),S(0x1,(0x0,n[_0x3e206b(0x2de)])(W)),S(0x2,(0x0,n['Inject'])(G)),S(0x3,(0x0,n['Inject'])(K)),S(0x4,(0x0,n[_0x3e206b(0x2de)])(j)),S(0x5,r[_0x3e206b(0x3ee)]),S(0x6,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x11d)]))],q);let J=class extends n[_0x3e206b(0x3a2)]{constructor(_0x3d7fd5,_0x1a43bc,_0x2ce90c,_0x15acfa){const _0x215ec1=_0x3e206b;super(),this[_0x215ec1(0x141)]=_0x3d7fd5,this[_0x215ec1(0x18f)]=_0x1a43bc,this[_0x215ec1(0x360)]=_0x2ce90c,this[_0x215ec1(0x373)]=_0x15acfa,x(this,_0x215ec1(0x3af),void 0x0),this[_0x215ec1(0x327)]();}[_0x3e206b(0x327)](){const _0x18f2ec=_0x3e206b;this[_0x18f2ec(0x2c9)](),this[_0x18f2ec(0x28d)](),this[_0x18f2ec(0x2ba)](),this[_0x18f2ec(0x23b)]();}[_0x3e206b(0x23b)](){const _0x3dd7e9=_0x3e206b;this[_0x3dd7e9(0x1b7)](this[_0x3dd7e9(0x373)]['socket$']['subscribe'](_0x254e51=>{const _0x300bd6=_0x3dd7e9;this[_0x300bd6(0x3af)]=_0x254e51==null?void 0x0:_0x254e51['memberID'];}));}[_0x3e206b(0x2c9)](){const _0x204368=_0x3e206b;let _0x1080bf=_0x5cd29f=>{const _0x4041c5=_0x1029;var _0x4a5a7f;this[_0x4041c5(0x133)](_0x4041c5(0x3c7),_0x4041c5(0x189)+_0x5cd29f['message']+_0x4041c5(0x409)+_0x5cd29f[_0x4041c5(0x396)]+':'+_0x5cd29f[_0x4041c5(0x1e5)]+':'+_0x5cd29f[_0x4041c5(0x401)]+'\x0a'+(((_0x4a5a7f=_0x5cd29f[_0x4041c5(0x3c7)])==null?void 0x0:_0x4a5a7f[_0x4041c5(0x40e)])||''));};window['addEventListener'](_0x204368(0x3c7),_0x1080bf),this[_0x204368(0x1b7)](()=>{const _0x16ad0f=_0x204368;window[_0x16ad0f(0x21d)](_0x16ad0f(0x3c7),_0x1080bf);});}['_initUnhandledRejectionListener'](){const _0x5cc308=_0x3e206b;let _0x2a9a5b=_0x3a063c=>{const _0x2f8988=_0x1029;this[_0x2f8988(0x133)](_0x2f8988(0x3c7),_0x2f8988(0x3e4)+_0x3a063c[_0x2f8988(0x397)]);};window[_0x5cc308(0x332)](_0x5cc308(0x255),_0x2a9a5b),this[_0x5cc308(0x1b7)](()=>{const _0xd04dd6=_0x5cc308;window[_0xd04dd6(0x21d)](_0xd04dd6(0x255),_0x2a9a5b);});}['_monkeyPatchLogService'](){const _0x444b01=_0x3e206b;let _0x43f1f8=this[_0x444b01(0x360)]['error'][_0x444b01(0x2df)](this[_0x444b01(0x360)]);this[_0x444b01(0x360)][_0x444b01(0x3c7)]=(..._0x487d8b)=>{const _0x2cf8a6=_0x444b01;let _0x3980fe=_0x487d8b[_0x2cf8a6(0x29e)](_0x1143be=>_0x1143be instanceof Error?_0x1143be['message']+'\x0a'+_0x1143be[_0x2cf8a6(0x40e)]:String(_0x1143be))[_0x2cf8a6(0x262)]('\x20');this['_uploadLog'](_0x2cf8a6(0x3c7),_0x2cf8a6(0x1c8)+_0x3980fe),_0x43f1f8(..._0x487d8b);},this[_0x444b01(0x1b7)](()=>{const _0x339151=_0x444b01;this[_0x339151(0x360)][_0x339151(0x3c7)]=_0x43f1f8;});}['_uploadLog'](_0x3ac8cb,_0x50f722){const _0x408059=_0x3e206b;try{let _0x4367f7={'userId':this[_0x408059(0x3af)],'logLabel':_0x3ac8cb,'content':_0x50f722};this[_0x408059(0x18f)]['post'](_0x408059(0x337),{'body':_0x4367f7})['catch'](()=>{});}catch{}}};J=C([S(0x0,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x1,(0x0,n[_0x3e206b(0x2de)])(d[_0x3e206b(0x1b1)])),S(0x2,n['ILogService']),S(0x3,(0x0,n['Inject'])(t[_0x3e206b(0x167)]))],J);function Ce({state$:_0x1a90a8,interactionBlocked$:_0x2cc6c6}){const _0xd37d05=_0x3e206b;return(0x0,l['jsxs'])(l[_0xd37d05(0x1da)],{'children':[(0x0,r['useObservable'])(_0x2cc6c6,!0x1,!0x0)&&(0x0,l[_0xd37d05(0x40c)])(_0xd37d05(0x3d7),{'data-u-comp':_0xd37d05(0x260),'aria-hidden':!0x0,'className':'univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait'}),(0x0,l[_0xd37d05(0x40c)])(we,{'state$':_0x1a90a8})]});}function we({state$:_0x308758}){const _0x16cba7=_0x3e206b;let _0x31173d=(0x0,r[_0x16cba7(0x3a8)])(_0x308758,null,!0x0);return _0x31173d?(0x0,l[_0x16cba7(0x38c)])(_0x16cba7(0x3d7),{'data-u-comp':_0x16cba7(0x1f2),'role':_0x16cba7(0x155),'className':_0x16cba7(0x188),'children':[(0x0,l[_0x16cba7(0x40c)])(s[_0x16cba7(0x1b6)],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,l[_0x16cba7(0x40c)])(_0x16cba7(0x231),{'children':_0x31173d['content']}),(0x0,l[_0x16cba7(0x40c)])(o[_0x16cba7(0x27c)],{'size':'small','variant':_0x16cba7(0x299),'onClick':()=>window[_0x16cba7(0x146)][_0x16cba7(0x19b)](),'children':_0x31173d[_0x16cba7(0x1a5)]})]}):null;}const Y=_0x3e206b(0x315);let X=class extends n['Disposable']{constructor(_0x4e0f4d,_0x51a14d,_0x2f51bc,_0x1530f0,_0x166134,_0x2b882e,_0x1ba0b7,_0x4ce2d1){const _0x199ec2=_0x3e206b;super(),this['_snapshotLoadingService']=_0x4e0f4d,this[_0x199ec2(0x3c1)]=_0x51a14d,this[_0x199ec2(0x2b3)]=_0x2f51bc,this[_0x199ec2(0x141)]=_0x1530f0,this[_0x199ec2(0x12f)]=_0x166134,this['_shortcutService']=_0x1ba0b7,this[_0x199ec2(0x130)]=_0x4ce2d1,x(this,_0x199ec2(0x156),new i[(_0x199ec2(0x19a))](null)),x(this,_0x199ec2(0x2c5),new i[(_0x199ec2(0x19a))](!0x1)),x(this,'_messageIds',new Set()),x(this,'_blockProgressWatches',new Map()),x(this,_0x199ec2(0x275),new Set()),x(this,'_latestStates',new Map()),x(this,_0x199ec2(0x1e0),void 0x0),x(this,_0x199ec2(0x209),void 0x0),x(this,_0x199ec2(0x2b9),void 0x0),x(this,_0x199ec2(0x138),this[_0x199ec2(0x156)][_0x199ec2(0x1fb)]());let _0x18bea1=()=>(0x0,c[_0x199ec2(0x15e)])(Ce,{'state$':this['timeoutState$'],'interactionBlocked$':this['_interactionBlocked$']});this[_0x199ec2(0x1b7)](_0x2b882e[_0x199ec2(0x3a6)](r[_0x199ec2(0x3e5)]['GLOBAL'],()=>(0x0,r[_0x199ec2(0x16a)])(_0x18bea1,this[_0x199ec2(0x141)]))),this[_0x199ec2(0x1b7)](this[_0x199ec2(0x394)][_0x199ec2(0x1d7)][_0x199ec2(0x2e6)](_0x356f30=>{const _0xea4003=_0x199ec2;this[_0xea4003(0x258)]=_0x356f30,_0x356f30[_0xea4003(0x2d6)](_0x48a8e1=>{const _0x1ff44d=_0xea4003;this['_updateMessage'](_0x48a8e1),this[_0x1ff44d(0x19d)](_0x48a8e1);});})),this[_0x199ec2(0x1b7)](this['_urlService'][_0x199ec2(0x283)][_0x199ec2(0x2e6)](()=>{const _0x3b54ed=_0x199ec2;this[_0x3b54ed(0x258)][_0x3b54ed(0x2d6)](_0x2bd9d3=>{const _0x1f99df=_0x3b54ed;this[_0x1f99df(0x2d4)](_0x2bd9d3),this[_0x1f99df(0x19d)](_0x2bd9d3);});}));}[_0x3e206b(0x2a8)](){const _0x131770=_0x3e206b;var _0x5b7cb0;if(this[_0x131770(0x1ce)]['forEach'](_0x351035=>this[_0x131770(0x3c1)][_0x131770(0x3bd)](_0x351035)),this[_0x131770(0x1ce)][_0x131770(0x32d)](),this[_0x131770(0x1e0)]){var _0x2d7cf7;(_0x2d7cf7=this[_0x131770(0x2b9)])==null||_0x2d7cf7['hide'](this[_0x131770(0x1e0)]);}this['_previewUnitId']=void 0x0,this[_0x131770(0x30c)][_0x131770(0x2d6)](({timeoutId:_0x381c8d})=>clearTimeout(_0x381c8d)),this[_0x131770(0x30c)]['clear'](),(_0x5b7cb0=this[_0x131770(0x209)])==null||_0x5b7cb0[_0x131770(0x2a8)](),this[_0x131770(0x209)]=void 0x0,this[_0x131770(0x156)]['complete'](),this['_interactionBlocked$'][_0x131770(0x347)](),super['dispose']();}[_0x3e206b(0x2d4)](_0x5d6449){const _0x3ec64a=_0x3e206b;let _0x3f8bd5=''+Y+_0x5d6449[_0x3ec64a(0x196)];if(_0x5d6449[_0x3ec64a(0x1ba)]===p[_0x3ec64a(0x1d8)][_0x3ec64a(0x154)]){if(this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3e6)](_0x5d6449[_0x3ec64a(0x196)])&&this[_0x3ec64a(0x1e0)]===_0x5d6449[_0x3ec64a(0x196)]){this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o[_0x3ec64a(0x15c)]['Loading'],'duration':0x1/0x0,'content':this[_0x3ec64a(0x2b3)]['t'](_0x3ec64a(0x140))}),this['_messageIds'][_0x3ec64a(0x264)](_0x3f8bd5);return;}this[_0x3ec64a(0x129)](_0x5d6449['unitId']),this['_messageService'][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}if(!this[_0x3ec64a(0x3e6)](_0x5d6449['unitId'])){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x129)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)]['delete'](_0x3f8bd5);return;}if(_0x5d6449['stage']===p[_0x3ec64a(0x1d8)]['ERROR']){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x129)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o[_0x3ec64a(0x15c)]['Error'],'content':this['_localeService']['t'](_0x3ec64a(0x30e))}),this['_messageIds'][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}if(_0x5d6449['stage']!==p['SnapshotLoadStage'][_0x3ec64a(0x185)]||_0x5d6449['totalBlocks']<=0xa){this[_0x3ec64a(0x3e8)](_0x5d6449[_0x3ec64a(0x196)]),this[_0x3ec64a(0x3c1)][_0x3ec64a(0x3bd)](_0x3f8bd5),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x2bd)](_0x3f8bd5);return;}this[_0x3ec64a(0x31f)](_0x5d6449)||(this[_0x3ec64a(0x3c1)][_0x3ec64a(0x158)]({'id':_0x3f8bd5,'type':o['MessageType'][_0x3ec64a(0x1db)],'duration':0x1/0x0,'content':this[_0x3ec64a(0x2b3)]['t'](_0x3ec64a(0x195))+'\x20'+_0x5d6449[_0x3ec64a(0x2d9)]+'/'+_0x5d6449[_0x3ec64a(0x1a1)]}),this[_0x3ec64a(0x1ce)][_0x3ec64a(0x264)](_0x3f8bd5));}[_0x3e206b(0x31f)](_0xcab83c){const _0x385e8b=_0x3e206b;let _0x381e59=this[_0x385e8b(0x30c)][_0x385e8b(0x28b)](_0xcab83c[_0x385e8b(0x196)]);if((_0x381e59==null?void 0x0:_0x381e59[_0x385e8b(0x2d9)])===_0xcab83c['loadedBlocks'])return _0x381e59[_0x385e8b(0x3f3)];this[_0x385e8b(0x3e8)](_0xcab83c['unitId']);let _0x48a458=setTimeout(()=>{const _0x4a3941=_0x385e8b;let _0x16df24=this[_0x4a3941(0x30c)][_0x4a3941(0x28b)](_0xcab83c[_0x4a3941(0x196)]);if(!_0x16df24||_0x16df24[_0x4a3941(0x14f)]!==_0x48a458)return;_0x16df24[_0x4a3941(0x3f3)]=!0x0;let _0x1e3cd0=''+Y+_0xcab83c[_0x4a3941(0x196)];this['_messageService'][_0x4a3941(0x3bd)](_0x1e3cd0),this[_0x4a3941(0x1ce)]['delete'](_0x1e3cd0),this[_0x4a3941(0x156)][_0x4a3941(0x33b)]({'unitId':_0xcab83c['unitId'],'content':this[_0x4a3941(0x2b3)]['t'](_0x4a3941(0x2c4),String(_0xcab83c['loadedBlocks']),String(_0xcab83c['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x4a3941(0x198))});},0xea60);return this['_blockProgressWatches'][_0x385e8b(0x369)](_0xcab83c[_0x385e8b(0x196)],{'loadedBlocks':_0xcab83c[_0x385e8b(0x2d9)],'timedOut':!0x1,'timeoutId':_0x48a458}),!0x1;}['_clearBlockProgressWatch'](_0x1ff0da){const _0x4b65cb=_0x3e206b;let _0x156596=this['_blockProgressWatches']['get'](_0x1ff0da);_0x156596&&(clearTimeout(_0x156596[_0x4b65cb(0x14f)]),this[_0x4b65cb(0x30c)][_0x4b65cb(0x2bd)](_0x1ff0da),this[_0x4b65cb(0x129)](_0x1ff0da));}[_0x3e206b(0x129)](_0x422db5){const _0x139322=_0x3e206b;var _0x52cdd3;((_0x52cdd3=this[_0x139322(0x156)]['value'])==null?void 0x0:_0x52cdd3[_0x139322(0x196)])===_0x422db5&&this[_0x139322(0x156)][_0x139322(0x33b)](null);}[_0x3e206b(0x19d)](_0x2feb0){const _0x1c5045=_0x3e206b;if(_0x2feb0[_0x1c5045(0x1ba)]===p[_0x1c5045(0x1d8)]['LOADING_SNAPSHOT']&&this[_0x1c5045(0x275)]['delete'](_0x2feb0[_0x1c5045(0x196)]),!this['_isVisibleUnit'](_0x2feb0[_0x1c5045(0x196)])){this[_0x1c5045(0x3c6)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0[_0x1c5045(0x1ba)]===p[_0x1c5045(0x1d8)][_0x1c5045(0x2cf)]||_0x2feb0[_0x1c5045(0x1a1)]<=0xa){this[_0x1c5045(0x3c6)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0['stage']===p[_0x1c5045(0x1d8)]['COMPLETE']){this[_0x1c5045(0x1bc)](_0x2feb0[_0x1c5045(0x196)]);return;}if(_0x2feb0['stage']===p[_0x1c5045(0x1d8)][_0x1c5045(0x185)]&&_0x2feb0[_0x1c5045(0x28c)]&&_0x2feb0[_0x1c5045(0x3e7)]){let _0x24b7a5=this['_getSheetLoadingRenderService']();if(!_0x24b7a5)return;this[_0x1c5045(0x1e0)]&&this[_0x1c5045(0x1e0)]!==_0x2feb0[_0x1c5045(0x196)]&&this[_0x1c5045(0x3c6)](this[_0x1c5045(0x1e0)]),_0x24b7a5[_0x1c5045(0x1c9)](_0x2feb0['workbookShell'],_0x2feb0[_0x1c5045(0x3e7)]),this[_0x1c5045(0x1e0)]=_0x2feb0[_0x1c5045(0x196)],this[_0x1c5045(0x205)](!0x0),_0x2feb0['previewReady']&&_0x24b7a5[_0x1c5045(0x158)](_0x2feb0[_0x1c5045(0x28c)],_0x2feb0[_0x1c5045(0x3e7)],_0x2feb0[_0x1c5045(0x305)]);}}['_handoffPreview'](_0x379365){const _0x262780=_0x3e206b;if(this[_0x262780(0x1e0)]!==_0x379365||this['_handoffUnitIds'][_0x262780(0x3fa)](_0x379365))return;let _0x8d2db6=this[_0x262780(0x2b9)];_0x8d2db6&&(this['_handoffUnitIds'][_0x262780(0x264)](_0x379365),_0x8d2db6[_0x262780(0x3c9)](_0x379365,0x2710)[_0x262780(0x251)](_0x2065e5=>{const _0x437745=_0x262780;if(this[_0x437745(0x1e0)]!==_0x379365)return;if(_0x2065e5){let _0x5e12e3=''+Y+_0x379365;this['_messageService'][_0x437745(0x3bd)](_0x5e12e3),this[_0x437745(0x1ce)]['delete'](_0x5e12e3),this['_previewUnitId']=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x31d9c4=''+Y+_0x379365;this[_0x437745(0x3c1)]['remove'](_0x31d9c4),this['_messageIds']['delete'](_0x31d9c4),this[_0x437745(0x156)][_0x437745(0x33b)]({'unitId':_0x379365,'content':this[_0x437745(0x2b3)]['t']('collaboration-client-ui.session.connection-failed'),'refreshLabel':this[_0x437745(0x2b3)]['t'](_0x437745(0x198))});}));}[_0x3e206b(0x3c6)](_0x3c19cd){const _0x5a02ff=_0x3e206b;var _0x4c3f80;this[_0x5a02ff(0x1e0)]===_0x3c19cd&&((_0x4c3f80=this[_0x5a02ff(0x2b9)])==null||_0x4c3f80[_0x5a02ff(0x1cd)](_0x3c19cd),this[_0x5a02ff(0x1e0)]=void 0x0,this[_0x5a02ff(0x205)](!0x1));}['_setInteractionBlocked'](_0x43ae24){const _0x53ce0a=_0x3e206b;if(_0x43ae24!==this[_0x53ce0a(0x2c5)][_0x53ce0a(0x12c)]){if(_0x43ae24)this[_0x53ce0a(0x209)]=this[_0x53ce0a(0x2b7)][_0x53ce0a(0x33f)]();else{var _0x539e5e;(_0x539e5e=this[_0x53ce0a(0x209)])==null||_0x539e5e[_0x53ce0a(0x2a8)](),this[_0x53ce0a(0x209)]=void 0x0;}this[_0x53ce0a(0x2c5)][_0x53ce0a(0x33b)](_0x43ae24);}}[_0x3e206b(0x3e6)](_0x217c49){const _0x570397=_0x3e206b;let _0x4e9f85=this['_urlService'][_0x570397(0x3b7)]('unit');return!_0x4e9f85||_0x4e9f85===_0x217c49;}[_0x3e206b(0x139)](){const _0x2ec2c8=_0x3e206b;return this['_sheetLoadingRenderService']?this[_0x2ec2c8(0x2b9)]:(this[_0x2ec2c8(0x12f)]['startPluginsForType'](n[_0x2ec2c8(0x166)][_0x2ec2c8(0x3b6)]),this[_0x2ec2c8(0x141)]['has'](v['ISheetLoadingRenderService'])&&(this['_sheetLoadingRenderService']=this[_0x2ec2c8(0x141)][_0x2ec2c8(0x28b)](v['ISheetLoadingRenderService'])),this[_0x2ec2c8(0x2b9)]);}};X=C([S(0x0,(0x0,n['Inject'])(p[_0x3e206b(0x1f3)])),S(0x1,r[_0x3e206b(0x3ee)]),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x11d)])),S(0x3,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x4,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x208)])),S(0x5,r['IUIPartsService']),S(0x6,r['IShortcutService']),S(0x7,H)],X);function Te(_0x409d61){const _0x10b07a=_0x3e206b;var _0x373a6c,_0x2eeaf8;let _0x1344d6=(_0x373a6c=_0x409d61['stageInfo'])==null?void 0x0:_0x373a6c[_0x10b07a(0x1ba)],_0x24c75b=((_0x2eeaf8=_0x409d61[_0x10b07a(0x3f0)])==null?void 0x0:_0x2eeaf8[_0x10b07a(0x25c)])||0x0;return _0x1344d6===h[_0x10b07a(0x2ce)]['START_CALCULATION']&&_0x24c75b>0x0;}function Ee(_0x597259){const _0x22ebbe=_0x3e206b;return _0x597259[_0x22ebbe(0x1c3)]===h[_0x22ebbe(0x27f)][_0x22ebbe(0x285)];}let Z=class extends n[_0x3e206b(0x3a2)]{constructor(_0x33e70a,_0x551a36,_0x28b651,_0x230b4b,_0x1936b7,_0x236812,_0x39f679){const _0x588047=_0x3e206b;super(),this[_0x588047(0x3c1)]=_0x33e70a,this[_0x588047(0x38a)]=_0x551a36,this[_0x588047(0x302)]=_0x28b651,this[_0x588047(0x18f)]=_0x230b4b,this[_0x588047(0x169)]=_0x1936b7,this['_logService']=_0x236812,this[_0x588047(0x2b3)]=_0x39f679,x(this,_0x588047(0x3cb),null),x(this,_0x588047(0x1d1),0x0),x(this,_0x588047(0x278),0x0),x(this,_0x588047(0x21c),[]),x(this,'_lastResponseTimestamp',0x0),this['_initCommandInterceptor']();}[_0x3e206b(0x3a9)](){const _0x3d4fe3=_0x3e206b;this[_0x3d4fe3(0x1b7)](this['_commandService'][_0x3d4fe3(0x3c3)]((_0x33390c,_0x17c58f)=>{const _0x289aa5=_0x3d4fe3;var _0x4a5522;if(_0x33390c['id']!==h['SetFormulaCalculationStartMutation']['id'])return;let _0x2d3810=_0x33390c[_0x289aa5(0x1fe)];if(this[_0x289aa5(0x237)]((_0x4a5522=_0x2d3810[_0x289aa5(0x35c)])==null?[]:_0x4a5522)&&!this[_0x289aa5(0x16b)]())throw this[_0x289aa5(0x210)](_0x33390c,_0x17c58f),this[_0x289aa5(0x1b5)](),new n[(_0x289aa5(0x1ef))]();})),this[_0x3d4fe3(0x1b7)](this['_commandService'][_0x3d4fe3(0x144)]((_0xa495bd,_0x3ae85c)=>{const _0x50d5c0=_0x3d4fe3;if(_0xa495bd['id']!==h[_0x50d5c0(0x14a)]['id'])return;let _0x19aeeb=_0xa495bd[_0x50d5c0(0x1fe)];if(Te(_0x19aeeb)){let _0x501abf=(0x0,n[_0x50d5c0(0x3d9)])();this[_0x50d5c0(0x21c)][_0x50d5c0(0x313)](_0x501abf),this[_0x50d5c0(0x137)](_0x501abf);}else{if(Ee(_0x19aeeb)&&this['_taskIds'][_0x50d5c0(0x2ca)]>0x0){let _0x208410=this[_0x50d5c0(0x21c)]['shift']();this['_releaseCalculationLimit'](_0x208410);}}}));}[_0x3e206b(0x2a8)](){const _0x3dec43=_0x3e206b;super['dispose'](),this[_0x3dec43(0x41e)](),this[_0x3dec43(0x21c)]=[],this['_currentUsage']=0x0,this[_0x3dec43(0x1d1)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3e206b(0x210)](_0x3888bf,_0x36e2c9){const _0xd5d940=_0x3e206b;for(let _0x2dbf1e=0x0;_0x2dbf1e<0x1e;_0x2dbf1e++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0xd5d940(0x15d)](_0x3888bf,_0x36e2c9),this['_messageService'][_0xd5d940(0x158)]({'content':this[_0xd5d940(0x2b3)]['t'](_0xd5d940(0x288)),'type':o['MessageType'][_0xd5d940(0x13d)]});return;}await new Promise(_0x1ba1ee=>{const _0xbc8e41=_0xd5d940;this[_0xbc8e41(0x3cb)]=window[_0xbc8e41(0x1b8)](_0x1ba1ee,0x3e8);});}catch(_0x3f655b){this['_logService'][_0xd5d940(0x3c7)](_0x3f655b);}this[_0xd5d940(0x3c1)][_0xd5d940(0x158)]({'content':this[_0xd5d940(0x2b3)]['t']('collaboration-client-ui.formula.calculation.unable'),'type':o[_0xd5d940(0x15c)][_0xd5d940(0x157)]});}[_0x3e206b(0x15d)](_0x14f72e,_0x46d2e1){const _0x1fc965=_0x3e206b;try{this[_0x1fc965(0x38a)][_0x1fc965(0x16f)](_0x14f72e['id'],_0x14f72e['params'],_0x46d2e1);}catch(_0x319ba8){this['_logService'][_0x1fc965(0x3c7)](_0x319ba8);}}[_0x3e206b(0x298)](_0x2b73f5,_0x7b2503){const _0x7ed787=_0x3e206b;_0x7b2503<this[_0x7ed787(0x31b)]||(this[_0x7ed787(0x31b)]=_0x7b2503,this[_0x7ed787(0x1d1)]=Number[_0x7ed787(0x333)](_0x2b73f5[_0x7ed787(0x2fb)]),this[_0x7ed787(0x278)]=Number[_0x7ed787(0x333)](_0x2b73f5[_0x7ed787(0x329)]));}async['_startCalculationLimit'](_0x2c71bd){const _0x22f7d0=_0x3e206b;let _0x694db1=Date[_0x22f7d0(0x387)]();try{var _0x5ce3b6,_0x4c2db3;let _0x14d274=((_0x5ce3b6=this[_0x22f7d0(0x302)]['getConfig'](t[_0x22f7d0(0x33e)]))==null?void 0x0:_0x5ce3b6['startFormulaLimitUrl'])||_0x22f7d0(0x414),_0x4eb50c=(await this['_httpService'][_0x22f7d0(0x422)](_0x14d274,{'body':JSON[_0x22f7d0(0x406)]({'taskId':_0x2c71bd})}))[_0x22f7d0(0x390)];if(((_0x4c2db3=_0x4eb50c['error'])==null?void 0x0:_0x4c2db3[_0x22f7d0(0x202)])!==y['ErrorCode']['OK'])return;this[_0x22f7d0(0x298)](_0x4eb50c['limitInfo'],_0x694db1);}catch(_0x377d3e){this['_logService']['error'](_0x377d3e);}}async[_0x3e206b(0x3ab)](_0x3d833d){const _0x28a445=_0x3e206b;let _0x12d806=Date[_0x28a445(0x387)]();try{var _0xe3673e,_0x47361c;let _0x4c7b10=((_0xe3673e=this[_0x28a445(0x302)][_0x28a445(0x3db)](t[_0x28a445(0x33e)]))==null?void 0x0:_0xe3673e[_0x28a445(0x2a3)])||_0x28a445(0x3e3),_0x1a0359=_0x3d833d?_0x4c7b10+'?taskId='+encodeURIComponent(_0x3d833d):_0x4c7b10,_0x3ec080=(await this['_httpService'][_0x28a445(0x28b)](_0x1a0359))[_0x28a445(0x390)];if(((_0x47361c=_0x3ec080['error'])==null?void 0x0:_0x47361c[_0x28a445(0x202)])!==y['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x3ec080[_0x28a445(0x1aa)],_0x12d806);}catch(_0x151fa0){this[_0x28a445(0x360)][_0x28a445(0x3c7)](_0x151fa0);}}async['_releaseCalculationLimit'](_0x3037f5){const _0x4c2af7=_0x3e206b;let _0x5cca84=Date[_0x4c2af7(0x387)]();try{var _0x549e18,_0x2f4c18;let _0x379640=((_0x549e18=this[_0x4c2af7(0x302)]['getConfig'](t[_0x4c2af7(0x33e)]))==null?void 0x0:_0x549e18[_0x4c2af7(0x1cc)])||_0x4c2af7(0x320),_0x1a4662=(await this[_0x4c2af7(0x18f)]['post'](_0x379640,{'body':JSON['stringify']({'taskId':_0x3037f5})}))[_0x4c2af7(0x390)];if(((_0x2f4c18=_0x1a4662[_0x4c2af7(0x3c7)])==null?void 0x0:_0x2f4c18['code'])!==y[_0x4c2af7(0x243)]['OK'])return;this['_setFormulaLimitStatus'](_0x1a4662[_0x4c2af7(0x1aa)],_0x5cca84);}catch(_0x47af80){this[_0x4c2af7(0x360)]['error'](_0x47af80);}}[_0x3e206b(0x16b)](){const _0x4bc7df=_0x3e206b;return this[_0x4bc7df(0x1d1)]===0x0?!0x0:this[_0x4bc7df(0x1d1)]-this[_0x4bc7df(0x278)]>0x0;}[_0x3e206b(0x41e)](){const _0x4dae27=_0x3e206b;this[_0x4dae27(0x3cb)]&&(clearTimeout(this['_pollingInterval']),this[_0x4dae27(0x3cb)]=null);}[_0x3e206b(0x1b5)](){const _0x5b82b9=_0x3e206b;this['_messageService'][_0x5b82b9(0x158)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.waiting'),'type':o[_0x5b82b9(0x15c)]['Loading']});}[_0x3e206b(0x237)](_0x59c50c){const _0x3e6644=_0x3e206b;for(let _0x41856d of _0x59c50c){let {unitId:_0x4cb3ac,sheetId:_0x2b8837,range:_0x274b58}=_0x41856d,_0x258ea8=this['_univerInstanceService']['getUnit'](_0x4cb3ac);if(!_0x258ea8)continue;let _0x255a6b=_0x258ea8['getSheetBySheetId'](_0x2b8837);if(!_0x255a6b)continue;let _0x47b4c2=_0x255a6b['getCellMatrix']();for(let _0x5572e4=_0x274b58[_0x3e6644(0x2c6)];_0x5572e4<=_0x274b58[_0x3e6644(0x362)];_0x5572e4++)for(let _0x5bd432=_0x274b58[_0x3e6644(0x408)];_0x5bd432<=_0x274b58['endColumn'];_0x5bd432++){let _0x216e3f=_0x47b4c2[_0x3e6644(0x3c5)](_0x5572e4,_0x5bd432);if(_0x216e3f&&((0x0,n[_0x3e6644(0x404)])(_0x216e3f['f'])||(0x0,n[_0x3e6644(0x2ff)])(_0x216e3f['si'])))return!0x0;}}return!0x1;}};Z=C([S(0x0,(0x0,n['Inject'])(r['IMessageService'])),S(0x1,n['ICommandService']),S(0x2,n[_0x3e206b(0x20e)]),S(0x3,(0x0,n['Inject'])(d['HTTPService'])),S(0x4,n[_0x3e206b(0x27d)]),S(0x5,n[_0x3e206b(0x2c3)]),S(0x6,(0x0,n[_0x3e206b(0x2de)])(n[_0x3e206b(0x11d)]))],Z);let De=class extends n[_0x3e206b(0x3a2)]{constructor(_0x1e275d,_0x2f180f,_0x361fb6){const _0x5ae08a=_0x3e206b;super(),this[_0x5ae08a(0x302)]=_0x1e275d,this['_localStorageService']=_0x2f180f,this[_0x5ae08a(0x171)]=_0x361fb6,x(this,_0x5ae08a(0x3a5),new Map()),x(this,_0x5ae08a(0x1c1),new Map()),x(this,_0x5ae08a(0x3ea),!0x1);}[_0x3e206b(0x259)](){const _0x9aacc=_0x3e206b;this[_0x9aacc(0x3ea)]=!0x0;}[_0x3e206b(0x36c)](){const _0x2b634c=_0x3e206b;this[_0x2b634c(0x3ea)]=!0x1;}get[_0x3e206b(0x37f)](){const _0x4ee941=_0x3e206b;return this[_0x4ee941(0x1c1)];}[_0x3e206b(0x2a8)](){const _0x34db6c=_0x3e206b;this[_0x34db6c(0x3aa)]()['then'](()=>super[_0x34db6c(0x2a8)]());}async['loadOfflineData'](_0x5c762d){const _0x16b217=_0x3e206b;return this[_0x16b217(0x3ea)]?null:this[_0x16b217(0x336)][_0x16b217(0x122)]((0x0,t[_0x16b217(0x257)])(_0x5c762d));}async[_0x3e206b(0x226)](_0x111614,_0x56d56){const _0x38a59d=_0x3e206b;return!!this[_0x38a59d(0x336)][_0x38a59d(0x225)]((0x0,t[_0x38a59d(0x257)])(_0x111614),_0x56d56);}async[_0x3e206b(0x215)](_0x52b2bb,_0x578b4c){const _0x107997=_0x3e206b;var _0x558331;let _0x521d23=(_0x558331=this['_cachedData'][_0x107997(0x28b)](_0x52b2bb))==null?await this[_0x107997(0x336)]['getItem']((0x0,t['getLocalCacheKey'])(_0x52b2bb)):_0x558331;if(!_0x521d23)return;let _0xddfcd2=Date['now'](),_0x5715ce=new Date(_0xddfcd2)[_0x107997(0x295)]();await this[_0x107997(0x336)][_0x107997(0x225)]((0x0,t[_0x107997(0x257)])(_0x52b2bb)+_0x107997(0x334)+_0xddfcd2,{'reason':_0x578b4c,'createdAt':_0x5715ce,'data':_0x521d23});}[_0x3e206b(0x18b)](_0x23eb7e,_0x379282,_0x3a26dc,_0x55ef5e){const _0x29139f=_0x3e206b;let _0x1a0649=this[_0x29139f(0x171)][_0x29139f(0x27a)](_0x23eb7e);this[_0x29139f(0x3a5)][_0x29139f(0x369)](_0x23eb7e,{'unitID':_0x23eb7e,'type':_0x379282,'awaitingChangeset':_0x3a26dc,'mutations':_0x55ef5e,'rev':_0x1a0649}),this['_saveTaskMap']['has'](_0x23eb7e)||this['_scheduleSaving'](_0x23eb7e);}[_0x3e206b(0x388)](_0x278fc6){const _0x591188=_0x3e206b;let _0x458b66=this['_getSaveTimeout']();_0x458b66===0x0?this['_saveCache'](_0x278fc6):this[_0x591188(0x1c1)][_0x591188(0x369)](_0x278fc6,window[_0x591188(0x1b8)](()=>this[_0x591188(0x26c)](_0x278fc6),_0x458b66));}[_0x3e206b(0x37e)](){const _0x17b7fa=_0x3e206b;var _0x2f1a65;return(_0x2f1a65=this[_0x17b7fa(0x302)][_0x17b7fa(0x3db)](t['LOCAL_CACHE_INTERVAL_KEY']))==null?t[_0x17b7fa(0x2bb)]:_0x2f1a65;}['_saveCache'](_0x486d31){const _0x25bc8b=_0x3e206b;let _0x1e2a41=this[_0x25bc8b(0x1c1)][_0x25bc8b(0x28b)](_0x486d31);return _0x1e2a41!==void 0x0&&window[_0x25bc8b(0x2b4)](_0x1e2a41),this[_0x25bc8b(0x336)][_0x25bc8b(0x225)]((0x0,t[_0x25bc8b(0x257)])(_0x486d31),this[_0x25bc8b(0x3a5)][_0x25bc8b(0x28b)](_0x486d31))[_0x25bc8b(0x251)](()=>this[_0x25bc8b(0x1c1)]['delete'](_0x486d31));}async['exhaustSavingTask'](){const _0x1644c8=_0x3e206b;let _0x56c282=[];this[_0x1644c8(0x1c1)][_0x1644c8(0x2d6)]((_0x48255c,_0x202495)=>{const _0x2fad6d=_0x1644c8;window['clearTimeout'](_0x48255c),_0x56c282[_0x2fad6d(0x313)](this[_0x2fad6d(0x26c)](_0x202495)['then'](()=>{const _0x5081a7=_0x2fad6d;this[_0x5081a7(0x1c1)]['delete'](_0x202495);}));}),await Promise[_0x1644c8(0x178)](_0x56c282);}};De=C([S(0x0,n[_0x3e206b(0x20e)]),S(0x1,n[_0x3e206b(0x2d5)]),S(0x2,(0x0,n['Inject'])(p['RevisionService']))],De);var Oe=class extends n['RxDisposable']{constructor(){const _0x2e939f=_0x3e206b;super(),x(this,_0x2e939f(0x283),void 0x0),this[_0x2e939f(0x283)]=(0x0,i[_0x2e939f(0x20a)])(window,_0x2e939f(0x348))[_0x2e939f(0x40a)]((0x0,i[_0x2e939f(0x326)])(this[_0x2e939f(0x224)]),(0x0,i[_0x2e939f(0x41c)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x2e939f(0x407)])(void 0x0));}[_0x3e206b(0x1df)](_0x450de6,_0x479f74,_0x14cdc6=!0x1){const _0x10bd61=_0x3e206b;let _0x16b188=new URL(window[_0x10bd61(0x146)]['href']);_0x16b188[_0x10bd61(0x186)][_0x10bd61(0x369)](_0x450de6,_0x479f74),_0x14cdc6?window[_0x10bd61(0x319)][_0x10bd61(0x183)]('','',_0x16b188[_0x10bd61(0x1fd)]()):window['history'][_0x10bd61(0x37c)]('','',_0x16b188[_0x10bd61(0x1fd)]());}[_0x3e206b(0x220)](_0x98a743,_0x174138=!0x1){const _0x515f5e=_0x3e206b;let _0xfb223e=new URL(window[_0x515f5e(0x146)][_0x515f5e(0x15f)]);_0xfb223e[_0x515f5e(0x186)][_0x515f5e(0x2bd)](_0x98a743),_0x174138?window['history'][_0x515f5e(0x183)]('','',_0xfb223e[_0x515f5e(0x1fd)]()):window[_0x515f5e(0x319)]['pushState']('','',_0xfb223e[_0x515f5e(0x1fd)]());}[_0x3e206b(0x3b7)](_0x3d07cc){const _0x5e5070=_0x3e206b;var _0x112d60;return(_0x112d60=new URL(window[_0x5e5070(0x146)][_0x5e5070(0x15f)])[_0x5e5070(0x186)]['get'](_0x3d07cc))==null?void 0x0:_0x112d60;}};let Q=class extends n[_0x3e206b(0x363)]{constructor(_0x171c84=ue,_0x41efe2,_0x1f7c79,_0x79e5c3){const _0x4ddb45=_0x3e206b;super(),this[_0x4ddb45(0x3eb)]=_0x171c84,this[_0x4ddb45(0x230)]=_0x41efe2,this['_injector']=_0x1f7c79,this[_0x4ddb45(0x302)]=_0x79e5c3;let {..._0x36106a}=(0x0,n['merge'])({},ue,this[_0x4ddb45(0x3eb)]);this[_0x4ddb45(0x302)][_0x4ddb45(0x174)](_0x4ddb45(0x411),_0x36106a);}['onStarting'](){const _0x471f3b=_0x3e206b;this[_0x471f3b(0x3c4)](),this[_0x471f3b(0x184)]();}[_0x3e206b(0x190)](){const _0x180b73=_0x3e206b;this[_0x180b73(0x25a)]();}[_0x3e206b(0x3c4)](){const _0x32f903=_0x3e206b;var _0x4f755e;let _0x31eb46=[[k],[Z],[H,{'useClass':Oe}],[d[_0x32f903(0x346)],{'useClass':d[_0x32f903(0x398)]}],[t[_0x32f903(0x3d3)],{'useClass':De}],[w],[T],[V],[F],[U],[X]];this[_0x32f903(0x3eb)]['enableDocumentCollaborationUI']!==!0x1&&_0x31eb46[_0x32f903(0x313)]([K],[W],[G],[j],[q],[E]),this['_config'][_0x32f903(0x211)]&&_0x31eb46[_0x32f903(0x313)]([J]),(0x0,n[_0x32f903(0x34b)])(this[_0x32f903(0x141)],(0x0,n[_0x32f903(0x1b0)])(_0x31eb46,(_0x4f755e=this[_0x32f903(0x3eb)])==null?void 0x0:_0x4f755e[_0x32f903(0x1d2)]));}[_0x3e206b(0x25a)](){const _0x53b400=_0x3e206b;this[_0x53b400(0x3eb)][_0x53b400(0x3c2)]!==!0x1&&this['disposeWithMe'](this[_0x53b400(0x230)][_0x53b400(0x3ec)](n['UniverInstanceType']['UNIVER_DOC'],[R])),this[_0x53b400(0x1b7)](this[_0x53b400(0x230)]['registerRenderModule'](n[_0x53b400(0x166)][_0x53b400(0x3b6)],[z])),this['disposeWithMe'](this[_0x53b400(0x230)][_0x53b400(0x3ec)](n[_0x53b400(0x166)][_0x53b400(0x3f2)],[B])),this[_0x53b400(0x1b7)](this[_0x53b400(0x230)]['registerRenderModule'](n['UniverInstanceType'][_0x53b400(0x1d6)],[I]));}[_0x3e206b(0x184)](){const _0x324f42=_0x3e206b;(0x0,n[_0x324f42(0x12e)])(this['_injector'],[[F],[w],[T],[V],[U],[Z],[X]]),this[_0x324f42(0x3eb)][_0x324f42(0x3c2)]!==!0x1&&(0x0,n['touchDependencies'])(this[_0x324f42(0x141)],[[q],[E]]),this[_0x324f42(0x3eb)][_0x324f42(0x211)]&&(0x0,n[_0x324f42(0x12e)])(this[_0x324f42(0x141)],[[J]]);}};x(Q,'pluginName',_0x3e206b(0x121)),x(Q,'packageName',ce),x(Q,_0x3e206b(0x368),le),Q=C([(0x0,n[_0x3e206b(0x374)])(t['UniverCollaborationClientPlugin']),S(0x1,u[_0x3e206b(0x218)]),S(0x2,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x3,n[_0x3e206b(0x20e)])],Q);let ke=class extends t['CollaborationSocketService']{constructor(_0xdbd999,_0x546afc,_0x358b5a,_0x3e4e7b,_0x15a765){super(_0xdbd999,_0x546afc,_0x358b5a,_0x3e4e7b,_0x15a765);}async[_0x3e206b(0x2f4)](_0x21b8cb){const _0x4ceb3b=_0x3e206b;let _0x1dc7a6=await this['_getSessionTicket'](),_0x47fa89=this[_0x4ceb3b(0x35e)](_0x21b8cb,_0x1dc7a6);return this[_0x4ceb3b(0x340)](_0x47fa89);}[_0x3e206b(0x35e)](_0x149f57,_0x133488){const _0x4051c7=_0x3e206b;let _0x45e445=typeof window>'u'?new URL(_0x149f57):new URL(_0x149f57,window['location'][_0x4051c7(0x2a7)]);_0x45e445['searchParams'][_0x4051c7(0x369)]('sessionTicket',_0x133488);let _0x55520c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4051c7(0x146)][_0x4051c7(0x358)]);return _0x55520c['get'](_0x4051c7(0x2f5))&&_0x45e445[_0x4051c7(0x186)][_0x4051c7(0x369)](_0x4051c7(0x2f5),_0x55520c[_0x4051c7(0x28b)](_0x4051c7(0x2f5))),_0x45e445[_0x4051c7(0x1fd)]();}async[_0x3e206b(0x330)](){const _0x4a0823=_0x3e206b;var _0x5ad09a,_0x557927,_0x53950c;let _0x4782d7=this[_0x4a0823(0x302)][_0x4a0823(0x3db)](t[_0x4a0823(0x33e)]),_0x952a45=(_0x5ad09a=_0x4782d7==null?void 0x0:_0x4782d7['wsSessionTicketUrl'])==null?t[_0x4a0823(0x41f)]:_0x5ad09a;return(_0x557927=(_0x53950c=(await this[_0x4a0823(0x18f)]['get'](_0x952a45,{'headers':{'Content-Type':_0x4a0823(0x2e7)}}))[_0x4a0823(0x390)])==null?void 0x0:_0x53950c[_0x4a0823(0x1a0)])==null?'':_0x557927;}};ke=C([S(0x0,(0x0,n['Inject'])(n[_0x3e206b(0x244)])),S(0x1,(0x0,n['Inject'])(d[_0x3e206b(0x1b1)])),S(0x2,n['IConfigService']),S(0x3,n[_0x3e206b(0x2c3)]),S(0x4,p['ISnapshotServerService'])],ke);let $=class extends n[_0x3e206b(0x3a2)]{constructor(_0x39ebde,_0x4d7c31,_0x4167a8){const _0x59b5b1=_0x3e206b;super(),this[_0x59b5b1(0x309)]=_0x39ebde,this[_0x59b5b1(0x18f)]=_0x4d7c31,this['_configService']=_0x4167a8;}async[_0x3e206b(0x3b9)](_0x519ab1,_0x4bc533,_0x300b7b,..._0x3aabd9){const _0x39c8f6=_0x3e206b;var _0x2b9290,_0x1fc807,_0x453df0,_0x14c854;let _0x10d9f8=this['_instanceService'][_0x39c8f6(0x323)]();if(!_0x10d9f8)throw Error(_0x39c8f6(0x234));let _0x38faf9=((_0x2b9290=this[_0x39c8f6(0x302)][_0x39c8f6(0x3db)](t[_0x39c8f6(0x3f1)]))==null?t[_0x39c8f6(0x3e1)]:_0x2b9290)+'/'+_0x519ab1+_0x39c8f6(0x2ad)+_0x4bc533,_0x9911bc={'scriptId':_0x519ab1,'runId':(_0x1fc807=new URL(window[_0x39c8f6(0x146)][_0x39c8f6(0x15f)])[_0x39c8f6(0x186)][_0x39c8f6(0x28b)](_0x39c8f6(0x2f5)))==null?'':_0x1fc807,'function':_0x4bc533,'unitId':_0x10d9f8[_0x39c8f6(0x187)](),'argsOfFunction':JSON[_0x39c8f6(0x406)](_0x3aabd9),'invokeId':(_0x453df0=_0x300b7b[_0x39c8f6(0x339)])==null?'':_0x453df0,'executionId':(_0x14c854=_0x300b7b['executionId'])==null?'':_0x14c854};try{let _0x58d7ed=await this[_0x39c8f6(0x18f)][_0x39c8f6(0x422)](_0x38faf9,{'body':_0x9911bc});return _0x58d7ed[_0x39c8f6(0x390)][_0x39c8f6(0x3c7)]&&_0x58d7ed[_0x39c8f6(0x390)][_0x39c8f6(0x3c7)][_0x39c8f6(0x202)]!==y[_0x39c8f6(0x243)]['OK']?_0x39c8f6(0x1c4):_0x58d7ed['body']['result'];}catch{return _0x39c8f6(0x1c4);}}};$=C([S(0x0,n[_0x3e206b(0x27d)]),S(0x1,(0x0,n[_0x3e206b(0x2de)])(d[_0x3e206b(0x1b1)])),S(0x2,n[_0x3e206b(0x20e)])],$);const Ae=0x7530,je=_0x3e206b(0x23f);var Me=class extends n[_0x3e206b(0x3a2)]{constructor(){const _0x3d9bd5=_0x3e206b;super(),x(this,_0x3d9bd5(0x3ce),(0x0,n[_0x3d9bd5(0x3d9)])()),x(this,_0x3d9bd5(0x3d2),new Set()),x(this,_0x3d9bd5(0x1bd),new Map()),x(this,_0x3d9bd5(0x252),null),x(this,_0x3d9bd5(0x3ac),new Map()),x(this,'_unitStatus',new Map()),this[_0x3d9bd5(0x327)]();}[_0x3e206b(0x2a8)](){const _0x597953=_0x3e206b;super[_0x597953(0x2a8)](),this[_0x597953(0x3ac)][_0x597953(0x2d6)]((_0x3d92c6,_0x189916)=>this[_0x597953(0x1c0)](_0x189916)),this['_heartbeatTimer']&&window[_0x597953(0x1dc)](this[_0x597953(0x252)]);}[_0x3e206b(0x3d1)](_0x3c4676){const _0x2fa2e7=_0x3e206b;return this['_ensureSubject'](_0x3c4676)[_0x2fa2e7(0x40a)]((0x0,i['distinctUntilChanged'])());}[_0x3e206b(0x2a5)](_0x1f2513){const _0x21dcf3=_0x3e206b;this[_0x21dcf3(0x3d2)][_0x21dcf3(0x3a3)]===0x0&&this[_0x21dcf3(0x1e7)](),this[_0x21dcf3(0x3d2)][_0x21dcf3(0x264)](_0x1f2513),this[_0x21dcf3(0x132)]({'type':0x0,'memberID':this[_0x21dcf3(0x3ce)],'unitIDs':[_0x1f2513],'isForwarded':!0x1});}['disposeUnit'](_0x3fe027){const _0x3bf878=_0x3e206b;this['_selfUnitIDs']['delete'](_0x3fe027),this[_0x3bf878(0x3d2)][_0x3bf878(0x3a3)]===0x0&&this['_heartbeatTimer']&&window[_0x3bf878(0x1dc)](this[_0x3bf878(0x252)]);}[_0x3e206b(0x327)](){const _0x514e72=_0x3e206b;this['disposeWithMe']((0x0,n[_0x514e72(0x297)])((0x0,i[_0x514e72(0x20a)])(window,'storage')['subscribe'](_0x4a7c1d=>{const _0x321181=_0x514e72;if(_0x4a7c1d[_0x321181(0x25b)]!==je||!_0x4a7c1d[_0x321181(0x1eb)])return;let _0x50f739=JSON[_0x321181(0x1ec)](_0x4a7c1d[_0x321181(0x1eb)]);this[_0x321181(0x317)](_0x50f739);}))),window[_0x514e72(0x332)](_0x514e72(0x35b),()=>this[_0x514e72(0x132)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x514e72(0x271)](this['_selfUnitIDs'])}));}[_0x3e206b(0x317)](_0x167a2f){const _0x1bcd49=_0x3e206b;switch(_0x167a2f[_0x1bcd49(0x3ba)]){case 0x0:this[_0x1bcd49(0x424)](_0x167a2f);break;case 0x1:this[_0x1bcd49(0x2c2)](_0x167a2f);break;case 0x2:this[_0x1bcd49(0x22e)](_0x167a2f);break;}}[_0x3e206b(0x424)](_0x177176){const _0x14e9d2=_0x3e206b;let {unitIDs:_0x14a21b,memberID:_0x743e8a,isForwarded:_0x51505a}=_0x177176;_0x14a21b[_0x14e9d2(0x2d6)](_0x2d203d=>{const _0x59a273=_0x14e9d2;if(!_0x51505a&&this[_0x59a273(0x1bd)][_0x59a273(0x3fa)](_0x2d203d)&&this['_ensureSubject'](_0x2d203d)['next'](t[_0x59a273(0x2e8)][_0x59a273(0x1af)]),!this['_unitOnClients'][_0x59a273(0x3fa)](_0x2d203d)||!this[_0x59a273(0x1bd)][_0x59a273(0x28b)](_0x2d203d)['has'](_0x743e8a)){let _0x5e0366=this[_0x59a273(0x1bd)][_0x59a273(0x28b)](_0x2d203d)||new Set();_0x5e0366['add'](_0x743e8a),this[_0x59a273(0x1bd)][_0x59a273(0x369)](_0x2d203d,_0x5e0366),this[_0x59a273(0x314)](_0x743e8a);}}),_0x51505a||this[_0x14e9d2(0x132)]({'type':0x0,'memberID':this[_0x14e9d2(0x3ce)],'unitIDs':[...this[_0x14e9d2(0x3d2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x246918){const _0x133a13=_0x3e206b;this[_0x133a13(0x1c0)](_0x246918);let _0x2c4c34=window[_0x133a13(0x1b8)](()=>{const _0x5117c8=_0x133a13;this['_unitOnClients'][_0x5117c8(0x2d6)](_0x50807a=>{const _0x510167=_0x5117c8;_0x50807a[_0x510167(0x2bd)](_0x246918);});},Ae*0x2);this[_0x133a13(0x3ac)][_0x133a13(0x369)](_0x246918,_0x2c4c34);}[_0x3e206b(0x1c0)](_0x4f69ba){const _0xcc55d6=_0x3e206b;if(this[_0xcc55d6(0x3ac)]['has'](_0x4f69ba)){let _0x3a1f09=this['_clearOtherTimers'][_0xcc55d6(0x28b)](_0x4f69ba);_0x3a1f09&&window[_0xcc55d6(0x2b4)](_0x3a1f09),this[_0xcc55d6(0x3ac)][_0xcc55d6(0x369)](_0x4f69ba,null);}}[_0x3e206b(0x2c2)](_0x456eff){const _0x46b9b3=_0x3e206b;let {memberID:_0x3a33ea,unitIDs:_0x12fa5c}=_0x456eff;_0x12fa5c[_0x46b9b3(0x2d6)](_0x4aad69=>{const _0x1a7663=_0x46b9b3;var _0xa3aeaf;let _0x47ca39=this['_unitOnClients'][_0x1a7663(0x28b)](_0x4aad69);_0x47ca39&&(_0x47ca39[_0x1a7663(0x2bd)](_0x3a33ea),(_0xa3aeaf=this[_0x1a7663(0x16c)](_0x4aad69))==null||_0xa3aeaf['next'](_0x47ca39[_0x1a7663(0x3a3)]===0x0?t[_0x1a7663(0x2e8)][_0x1a7663(0x2bc)]:t[_0x1a7663(0x2e8)][_0x1a7663(0x1af)]));}),this[_0x46b9b3(0x1c0)](_0x3a33ea);}[_0x3e206b(0x22e)](_0x35672a){const _0x127eb7=_0x3e206b;this[_0x127eb7(0x314)](_0x35672a['memberID']);}[_0x3e206b(0x132)](_0x37e885){const _0x5ba3a9=_0x3e206b;localStorage[_0x5ba3a9(0x225)](je,JSON[_0x5ba3a9(0x406)](_0x37e885));}[_0x3e206b(0x1e7)](){const _0x223e94=_0x3e206b;this['_heartbeatTimer']=window[_0x223e94(0x39f)](()=>{const _0x56e007=_0x223e94;this[_0x56e007(0x132)]({'type':0x2,'memberID':this[_0x56e007(0x3ce)]});},Ae);}[_0x3e206b(0x16c)](_0x81691f){const _0x46ca64=_0x3e206b;return this[_0x46ca64(0x207)][_0x46ca64(0x3fa)](_0x81691f)||this[_0x46ca64(0x207)][_0x46ca64(0x369)](_0x81691f,new i[(_0x46ca64(0x19a))](t[_0x46ca64(0x2e8)][_0x46ca64(0x2bc)])),this['_unitStatus'][_0x46ca64(0x28b)](_0x81691f);}};Object[_0x3e206b(0x17e)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,_0x3e206b(0x1de),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x3e206b(0x2a0)]=H,Object[_0x3e206b(0x17e)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3e206b(0x22b)]=xe,Object[_0x3e206b(0x17e)](exports,_0x3e206b(0x29c),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x3e206b(0x20f)]=Me;
|