@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3
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/ca-ES.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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.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/ca-ES.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.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-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4a7abe=_0xdbe3;(function(_0x4f7829,_0x4f61a7){const _0x31b171=_0xdbe3,_0x469216=_0x4f7829();while(!![]){try{const _0x405d30=-parseInt(_0x31b171(0x30e))/0x1+parseInt(_0x31b171(0x3a6))/0x2+-parseInt(_0x31b171(0x429))/0x3*(-parseInt(_0x31b171(0x1d1))/0x4)+parseInt(_0x31b171(0x3a0))/0x5+parseInt(_0x31b171(0x488))/0x6+parseInt(_0x31b171(0x209))/0x7*(-parseInt(_0x31b171(0x2b3))/0x8)+parseInt(_0x31b171(0x39b))/0x9*(-parseInt(_0x31b171(0x212))/0xa);if(_0x405d30===_0x4f61a7)break;else _0x469216['push'](_0x469216['shift']());}catch(_0x28045a){_0x469216['push'](_0x469216['shift']());}}}(_0x3550,0xded0a));var Xe=Object[_0x4a7abe(0x25e)],Ke=(_0x1513ca,_0x1c9a95,_0x550757)=>_0x1c9a95 in _0x1513ca?Xe(_0x1513ca,_0x1c9a95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x550757}):_0x1513ca[_0x1c9a95]=_0x550757,_=(_0x529ced,_0x3ac635,_0x36fbf7)=>Ke(_0x529ced,typeof _0x3ac635!=_0x4a7abe(0x2fc)?_0x3ac635+'':_0x3ac635,_0x36fbf7);Object['defineProperty'](exports,Symbol[_0x4a7abe(0x3ef)],{'value':_0x4a7abe(0x252)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x31c6ab,..._0x588389}){const _0x151412=_0x4a7abe,{icon:_0x2a5f13,id:_0x37e5ee,className:_0x5d6aac,extend:_0x4773ca,..._0x2e2ddd}=_0x588389,_0x471ee0=(_0x151412(0x31b)+_0x37e5ee+'\x20'+(_0x5d6aac||''))[_0x151412(0x2fd)](),_0x345bc8=A[_0x151412(0x23b)]('_'+Qe());return $e(_0x2a5f13,''+_0x37e5ee,{'defIds':_0x2a5f13['defIds'],'idSuffix':_0x345bc8['current']},{'ref':_0x31c6ab,'className':_0x471ee0,..._0x2e2ddd},_0x4773ca);}function $e(_0x2f8396,_0xf76121,_0x2ca74e,_0xb05f7b,_0x136d71){const _0x56200e=_0x4a7abe;return A['createElement'](_0x2f8396[_0x56200e(0x37f)],{'key':_0xf76121,...Je(_0x2f8396,_0x2ca74e,_0x136d71),..._0xb05f7b},(Ze(_0x2f8396,_0x2ca74e)[_0x56200e(0x341)]||[])[_0x56200e(0x314)]((_0x1b5fcc,_0x300e56)=>$e(_0x1b5fcc,_0xf76121+'-'+_0x2f8396['tag']+'-'+_0x300e56,_0x2ca74e,void 0x0,_0x136d71)));}function Je(_0x2f354c,_0x3a3ac9,_0x4a24b9){const _0x1e2734=_0x4a7abe,_0x21eed6={..._0x2f354c['attrs']};_0x4a24b9!=null&&_0x4a24b9[_0x1e2734(0x23f)]&&_0x21eed6[_0x1e2734(0x42c)]==='colorChannel1'&&(_0x21eed6[_0x1e2734(0x42c)]=_0x4a24b9[_0x1e2734(0x23f)]),_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x204)&&_0x21eed6['id']&&(_0x21eed6['id']=_0x21eed6['id']+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x10bf47,_0x3704c0])=>{const _0x4ae7e6=_0x1e2734;_0x10bf47===_0x4ae7e6(0x204)&&typeof _0x3704c0==_0x4ae7e6(0x32b)&&(_0x21eed6[_0x10bf47]=_0x3704c0['replace'](/url\(#(.*)\)/,_0x4ae7e6(0x3ba)+_0x3a3ac9[_0x4ae7e6(0x472)]+')'));});const {defIds:_0x556def}=_0x3a3ac9;return!_0x556def||_0x556def[_0x1e2734(0x3e3)]===0x0||(_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x35b)&&_0x21eed6[_0x1e2734(0x215)]&&(_0x21eed6[_0x1e2734(0x215)]=_0x21eed6[_0x1e2734(0x215)]+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x4ff696,_0x40e85d])=>{const _0x19c1cf=_0x1e2734;typeof _0x40e85d=='string'&&(_0x21eed6[_0x4ff696]=_0x40e85d[_0x19c1cf(0x36f)](/url\(#(.*)\)/,'url(#$1'+_0x3a3ac9[_0x19c1cf(0x472)]+')'));})),_0x21eed6;}function Ze(_0x235df5,_0x40efd5){const _0x51d6cb=_0x4a7abe;var _0x288df9;const {defIds:_0x5117c3}=_0x40efd5;return!_0x5117c3||_0x5117c3[_0x51d6cb(0x3e3)]===0x0?_0x235df5:_0x235df5[_0x51d6cb(0x37f)]===_0x51d6cb(0x441)&&((_0x288df9=_0x235df5[_0x51d6cb(0x341)])!=null&&_0x288df9[_0x51d6cb(0x3e3)])?{..._0x235df5,'children':_0x235df5['children'][_0x51d6cb(0x314)](_0x145077=>typeof _0x145077['attrs']['id']==_0x51d6cb(0x32b)&&_0x5117c3&&_0x5117c3[_0x51d6cb(0x3fc)](_0x145077[_0x51d6cb(0x3fa)]['id'])?{..._0x145077,'attrs':{..._0x145077[_0x51d6cb(0x3fa)],'id':_0x145077[_0x51d6cb(0x3fa)]['id']+_0x40efd5['idSuffix']}}:_0x145077)}:_0x235df5;}function Qe(){const _0x576e0c=_0x4a7abe;return Math[_0x576e0c(0x33d)]()[_0x576e0c(0x442)](0x24)[_0x576e0c(0x27d)](0x2,0x8);}pe[_0x4a7abe(0x438)]=_0x4a7abe(0x340);const et={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4a7abe(0x415),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x411),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a7abe(0x441),'attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':_0x4a7abe(0x44f),'d':_0x4a7abe(0x357)}}]}]}],'defIds':[_0x4a7abe(0x26b)]},xe=A[_0x4a7abe(0x1c3)](function(_0x1edf92,_0x6c02d5){const _0x461e68=_0x4a7abe;return A['createElement'](pe,Object['assign']({},_0x1edf92,{'id':_0x461e68(0x2d8),'ref':_0x6c02d5,'icon':et}));});xe['displayName']=_0x4a7abe(0x3fb);const tt={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a7abe(0x47f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4a7abe(0x445)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7abe(0x2c1)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x1e0),'strokeLinecap':_0x4a7abe(0x381),'strokeLinejoin':_0x4a7abe(0x381),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':_0x4a7abe(0x458)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':'white','d':_0x4a7abe(0x357),'transform':_0x4a7abe(0x266)}}]}]}],'defIds':[_0x4a7abe(0x458)]},Be=A[_0x4a7abe(0x1c3)](function(_0x390add,_0x4fdb46){const _0x50432e=_0x4a7abe;return A[_0x50432e(0x40e)](pe,Object[_0x50432e(0x1ee)]({},_0x390add,{'id':_0x50432e(0x2c9),'ref':_0x4fdb46,'icon':tt}));});Be[_0x4a7abe(0x438)]='OnLineIcon';function st(_0x6ae967){const _0x3da826=_0x4a7abe;switch(_0x6ae967){case u[_0x3da826(0x1bb)]['OFFLINE']:return _0x3da826(0x28f);case u['CollaborationStatus'][_0x3da826(0x431)]:return _0x3da826(0x404);case u[_0x3da826(0x1bb)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x3da826(0x1bb)][_0x3da826(0x2f4)]:return _0x3da826(0x3b9);case u[_0x3da826(0x1bb)][_0x3da826(0x25c)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x3da826(0x3f5);case u[_0x3da826(0x1bb)][_0x3da826(0x21d)]:case u[_0x3da826(0x1bb)][_0x3da826(0x3c3)]:return _0x3da826(0x2e9);}}function it(_0x2208ae){const _0x270970=_0x4a7abe,{status$:_0x354a8c}=_0x2208ae,_0x52f502=O[_0x270970(0x391)](_0x354a8c,u['CollaborationStatus']['NOT_COLLAB']),_0x224281=O[_0x270970(0x218)](a['LocaleService']),_0x6d954e=O[_0x270970(0x218)](u['CollaborationSessionService']),_0x144ee4=_0x52f502!==u[_0x270970(0x1bb)][_0x270970(0x257)],_0x481e32=_0x224281['t'](st(_0x52f502)),_0x465707=_0x144ee4?M[_0x270970(0x261)](Be,{}):M[_0x270970(0x261)](xe,{}),_0x12429e=A[_0x270970(0x3b0)](()=>{const _0x2e2ea2=_0x270970;_0x144ee4||_0x6d954e[_0x2e2ea2(0x224)]();},[_0x144ee4,_0x6d954e]);function _0x249f26(){const _0x4f6eda=_0x270970;return M[_0x4f6eda(0x36a)]('div',{'className':_0x4f6eda(0x386),'onClick':_0x12429e,'children':[M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':p[_0x4f6eda(0x3e4)](_0x4f6eda(0x1b7),{'univer-text-green-500':_0x144ee4,'univer-text-red-500':!_0x144ee4}),'children':_0x465707}),M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':_0x4f6eda(0x1cc),'children':_0x481e32})]});}return _0x144ee4?_0x249f26():M[_0x270970(0x261)](p[_0x270970(0x479)],{'title':_0x224281['t'](_0x270970(0x2d3)),'children':_0x249f26()});}var nt=Object[_0x4a7abe(0x319)],rt=(_0x5d2156,_0x51e758,_0x2042d7,_0x15bb2d)=>{const _0x4e3cc5=_0x4a7abe;for(var _0x6f9a62=_0x15bb2d>0x1?void 0x0:_0x15bb2d?nt(_0x51e758,_0x2042d7):_0x51e758,_0x33f341=_0x5d2156[_0x4e3cc5(0x3e3)]-0x1,_0xcc74fb;_0x33f341>=0x0;_0x33f341--)(_0xcc74fb=_0x5d2156[_0x33f341])&&(_0x6f9a62=_0xcc74fb(_0x6f9a62)||_0x6f9a62);return _0x6f9a62;},K=(_0x5285a9,_0x2dd431)=>(_0x1a1323,_0x5f2744)=>_0x2dd431(_0x1a1323,_0x5f2744,_0x5285a9);exports[_0x4a7abe(0x446)]=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c8c12,_0x3a10ad,_0x113f71,_0x20e7e7){const _0x46c346=_0x4a7abe;super(),_(this,_0x46c346(0x489),new I['BehaviorSubject'](u[_0x46c346(0x1bb)][_0x46c346(0x2f4)])),(this[_0x46c346(0x393)]=_0x4c8c12,this[_0x46c346(0x449)]=_0x3a10ad,this[_0x46c346(0x24e)]=_0x113f71,this[_0x46c346(0x39d)]=_0x20e7e7,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a7abe(0x372)](){const _0x4ab49d=_0x4a7abe;this[_0x4ab49d(0x360)](this['_univerInstanceService'][_0x4ab49d(0x253)][_0x4ab49d(0x31d)](I[_0x4ab49d(0x1ef)](()=>{const _0x51e0e3=_0x4ab49d,_0x3adba0=this[_0x51e0e3(0x393)][_0x51e0e3(0x460)]();return _0x3adba0?this[_0x51e0e3(0x24e)][_0x51e0e3(0x46e)](_0x3adba0['getUnitId']()):I['of'](null);}),I[_0x4ab49d(0x1ef)](_0x1e0466=>_0x1e0466?_0x1e0466[_0x4ab49d(0x444)]:I['of'](u[_0x4ab49d(0x1bb)][_0x4ab49d(0x2f4)])))[_0x4ab49d(0x1f1)](_0x3da364=>{const _0x126590=_0x4ab49d;this[_0x126590(0x489)]['next'](_0x3da364);}));}[_0x4a7abe(0x233)](){const _0x270bd0=_0x4a7abe;this[_0x270bd0(0x360)](this['_uiPartsService'][_0x270bd0(0x2fa)](O[_0x270bd0(0x440)][_0x270bd0(0x2bd)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this[_0x270bd0(0x449)])));}},exports[_0x4a7abe(0x446)]=rt([K(0x0,a[_0x4a7abe(0x1e6)]),K(0x1,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),K(0x2,a[_0x4a7abe(0x32c)](u['CollaborationController'])),K(0x3,O[_0x4a7abe(0x462)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x35a843){const {status$:_0x2fb081}=_0x35a843;return function(){const _0x3c7275=_0xdbe3;return M[_0x3c7275(0x261)](it,{'status$':_0x2fb081});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x4a7abe(0x319)],ct=(_0x2b2180,_0x242231,_0x3ffaf4,_0x56db1e)=>{const _0x380fae=_0x4a7abe;for(var _0x5f1f30=_0x56db1e>0x1?void 0x0:_0x56db1e?at(_0x242231,_0x3ffaf4):_0x242231,_0x3957e7=_0x2b2180[_0x380fae(0x3e3)]-0x1,_0x2eb675;_0x3957e7>=0x0;_0x3957e7--)(_0x2eb675=_0x2b2180[_0x3957e7])&&(_0x5f1f30=_0x2eb675(_0x5f1f30)||_0x5f1f30);return _0x5f1f30;},Y=(_0x5cd0e0,_0x5b7552)=>(_0x291737,_0x5cb6d4)=>_0x5b7552(_0x291737,_0x5cb6d4,_0x5cd0e0);exports[_0x4a7abe(0x30d)]=class extends a['RxDisposable']{constructor(_0x26019f,_0x52cd89,_0x21c360,_0x20bbb0,_0x374f19){const _0x13d8ec=_0x4a7abe;super(),this[_0x13d8ec(0x2d7)]=_0x26019f,this[_0x13d8ec(0x32d)]=_0x52cd89,this[_0x13d8ec(0x263)]=_0x21c360,this[_0x13d8ec(0x333)]=_0x20bbb0,_0x374f19?_0x374f19==null||_0x374f19[_0x13d8ec(0x469)]()[_0x13d8ec(0x2bf)](()=>this[_0x13d8ec(0x3a9)]()):(this['_logService']['debug'](_0x13d8ec(0x3b7),_0x13d8ec(0x2d5)),this[_0x13d8ec(0x3a9)]());}async['_init'](){const _0x280c96=_0x4a7abe,_0x1a31da=this[_0x280c96(0x2d7)][_0x280c96(0x47c)]('unit'),_0x5aa70c=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2b1)),_0x2e3069=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2ce));if(!_0x1a31da||!_0x5aa70c){this[_0x280c96(0x32d)][_0x280c96(0x377)]('[CollaborationDataLoaderController]',_0x280c96(0x3df));return;}const _0x3615e7=await this[_0x280c96(0x333)][_0x280c96(0x251)](_0x1a31da,Number(_0x5aa70c),_0x2e3069);_0x3615e7&&_0x3615e7 instanceof a[_0x280c96(0x293)]&&this['_setupSubUnitSync'](_0x3615e7);}async[_0x4a7abe(0x258)](_0x3c7503){const _0x1b142a=_0x4a7abe;await this[_0x1b142a(0x40d)](_0x3c7503),_0x3c7503[_0x1b142a(0x423)][_0x1b142a(0x31d)](I['takeUntil'](this[_0x1b142a(0x288)]))['subscribe'](_0x3f1b3f=>{_0x3f1b3f&&this['_updateURLWithCurrentState'](_0x3f1b3f);}),this[_0x1b142a(0x2d7)][_0x1b142a(0x1ca)][_0x1b142a(0x31d)](I[_0x1b142a(0x239)](this[_0x1b142a(0x288)]))['subscribe'](()=>this[_0x1b142a(0x40d)](_0x3c7503));}['_updateURLWithCurrentState'](_0x45a553,_0x4fecc2=!0x1){const _0x3777c7=_0x4a7abe,_0x326403=this[_0x3777c7(0x2d7)]['getParam'](_0x3777c7(0x2ce));_0x45a553[_0x3777c7(0x338)]()!==_0x326403&&this[_0x3777c7(0x2d7)][_0x3777c7(0x3c7)]('subunit',_0x45a553[_0x3777c7(0x338)](),_0x4fecc2);}async[_0x4a7abe(0x40d)](_0x271472){const _0x10e304=_0x4a7abe;var _0x3f6c91;const _0x323d5e=this[_0x10e304(0x2d7)]['getParam'](_0x10e304(0x2ce));if(!_0x323d5e||!_0x271472[_0x10e304(0x2bb)](_0x323d5e)){const _0x3382e3=_0x271472[_0x10e304(0x1ed)]()[0x0],_0x7c3e6a=_0x271472[_0x10e304(0x2bb)](_0x3382e3);if(!_0x7c3e6a)return;this[_0x10e304(0x312)](_0x7c3e6a,!0x0),await this[_0x10e304(0x263)]['executeCommand'](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472['getUnitId'](),'subUnitId':_0x3382e3});return;}((_0x3f6c91=_0x271472[_0x10e304(0x3bd)]())==null?void 0x0:_0x3f6c91[_0x10e304(0x338)]())!==_0x323d5e&&await this['_commandService'][_0x10e304(0x22f)](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472[_0x10e304(0x201)](),'subUnitId':_0x323d5e});}},exports[_0x4a7abe(0x30d)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a7abe(0x1dc)]),Y(0x2,a[_0x4a7abe(0x434)]),Y(0x3,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x3b6)])),Y(0x4,a[_0x4a7abe(0x3ed)](qe[_0x4a7abe(0x313)]))],exports[_0x4a7abe(0x30d)]);var lt=Object[_0x4a7abe(0x319)],_t=(_0x21786a,_0x23ea2d,_0x3dfd6d,_0x7bc1d4)=>{const _0x1f1d73=_0x4a7abe;for(var _0x48a524=_0x7bc1d4>0x1?void 0x0:_0x7bc1d4?lt(_0x23ea2d,_0x3dfd6d):_0x23ea2d,_0x17407d=_0x21786a[_0x1f1d73(0x3e3)]-0x1,_0x4c72ab;_0x17407d>=0x0;_0x17407d--)(_0x4c72ab=_0x21786a[_0x17407d])&&(_0x48a524=_0x4c72ab(_0x48a524)||_0x48a524);return _0x48a524;},De=(_0x293997,_0x27e9ce)=>(_0x5e3324,_0x5641fd)=>_0x27e9ce(_0x5e3324,_0x5641fd,_0x293997);let me=class extends a[_0x4a7abe(0x3cf)]{constructor(_0xa3b3ae,_0x432396){const _0x11804b=_0x4a7abe;super(),this['_docClipboardService']=_0xa3b3ae,this['_imageIoService']=_0x432396,this[_0x11804b(0x3a9)]();}[_0x4a7abe(0x3a9)](){const _0x3e86d7=_0x4a7abe,_0x4172fd=this;this['disposeWithMe'](this['_docClipboardService'][_0x3e86d7(0x1da)]({'onBeforePasteImage':async _0xdd0457=>{const _0x40287f=_0x3e86d7,_0x5770bb=await _0x4172fd[_0x40287f(0x461)][_0x40287f(0x36e)](_0xdd0457);return _0x5770bb?{'source':_0x5770bb[_0x40287f(0x2dd)],'imageSourceType':_0x5770bb[_0x40287f(0x27f)]}:null;}}));}};function _0xdbe3(_0x30b648,_0x45d520){_0x30b648=_0x30b648-0x1b7;const _0x355068=_0x3550();let _0xdbe337=_0x355068[_0x30b648];return _0xdbe337;}me=_t([De(0x0,T[_0x4a7abe(0x44b)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4a7abe(0x454),_0x4a7abe(0x368),'green.600',_0x4a7abe(0x480),_0x4a7abe(0x3f7),_0x4a7abe(0x42f)];class Re extends a[_0x4a7abe(0x2de)]{constructor(){const _0x56a5e9=_0x4a7abe;super(...arguments),_(this,_0x56a5e9(0x2e2),new Map()),_(this,_0x56a5e9(0x2e5),0x0);}[_0x4a7abe(0x1de)](_0x4e9fde){const _0x1fcedb=_0x4a7abe;if(this['_assignedColors'][_0x1fcedb(0x439)](_0x4e9fde))return this['_assignedColors'][_0x1fcedb(0x1c8)](_0x4e9fde);const _0x1af8e7=Ne[this[_0x1fcedb(0x2e5)]];return this[_0x1fcedb(0x2e5)]=(this[_0x1fcedb(0x2e5)]+0x1)%Ne['length'],this[_0x1fcedb(0x2e2)]['set'](_0x4e9fde,_0x1af8e7),_0x1af8e7;}}function Fe(_0x352967){const _0x5e1c06=_0x4a7abe;let _0x3d639e='';for(const _0x5df97b of _0x352967){const {startOffset:_0x54d00c,endOffset:_0x1e0d32,isActive:_0x3e4862,rangeType:_0x1b2fb3,segmentId:_0x4b16b3,segmentPage:_0x162df3}=_0x5df97b;_0x3d639e[_0x5e1c06(0x3e3)]&&(_0x3d639e+=','),_0x3d639e+=_0x54d00c+':'+_0x1e0d32+':'+(_0x3e4862?'1':'0')+':'+_0x1b2fb3+':'+_0x4b16b3+':'+_0x162df3;}return _0x3d639e;}function ht(_0x4b7278){const _0x78000f=_0x4a7abe,_0x3cba74=_0x4b7278['split'](','),_0x115849=[];for(const _0x1173e1 of _0x3cba74){const [_0x1e4c9a,_0x9cec3c,_0x442e0e,_0x3151ec,_0x1361d5,_0x58176d]=_0x1173e1[_0x78000f(0x255)](':');_0x115849[_0x78000f(0x272)]({'startOffset':Number(_0x1e4c9a),'endOffset':Number(_0x9cec3c),'collapsed':_0x1e4c9a===_0x9cec3c,'isActive':_0x442e0e==='1','rangeType':_0x3151ec===a[_0x78000f(0x27b)][_0x78000f(0x262)]?a[_0x78000f(0x27b)][_0x78000f(0x262)]:a[_0x78000f(0x27b)][_0x78000f(0x2c7)],'segmentId':typeof _0x1361d5==_0x78000f(0x32b)?String(_0x1361d5):'','segmentPage':Number(_0x58176d!=null?_0x58176d:-0x1)});}return _0x115849[_0x78000f(0x22b)](_0x1430c1=>_0x1430c1['isActive'])||(_0x115849[0x0][_0x78000f(0x38b)]=!0x0),_0x115849;}class be extends a['RxDisposable']{constructor(){const _0x40b382=_0x4a7abe;super(...arguments),_(this,_0x40b382(0x448),new I[(_0x40b382(0x242))](null)),_(this,_0x40b382(0x1e8),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x468d67){const _0x26c934=_0x4a7abe,{unitID:_0x2e685f,memberID:_0x467531,textRanges:_0x25b953}=_0x468d67,_0x6f7bcc=Fe(_0x25b953);if(_0x6f7bcc==='')return;const _0x48e480={'unitID':_0x2e685f,'memberID':_0x467531,'selection':_0x6f7bcc};this[_0x26c934(0x448)][_0x26c934(0x435)](_0x48e480);}}var ut=Object[_0x4a7abe(0x319)],It=(_0x421997,_0x3077d3,_0x5435d1,_0xe520c2)=>{const _0x32d1dc=_0x4a7abe;for(var _0x39e3f2=_0xe520c2>0x1?void 0x0:_0xe520c2?ut(_0x3077d3,_0x5435d1):_0x3077d3,_0x23f9f1=_0x421997[_0x32d1dc(0x3e3)]-0x1,_0x268806;_0x23f9f1>=0x0;_0x23f9f1--)(_0x268806=_0x421997[_0x23f9f1])&&(_0x39e3f2=_0x268806(_0x39e3f2)||_0x39e3f2);return _0x39e3f2;},U=(_0x3481cd,_0x10989d)=>(_0x18d3d0,_0x53a600)=>_0x10989d(_0x18d3d0,_0x53a600,_0x3481cd);const St=0x12c,dt=0x64;let ve=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x1db430,_0x39ce4c,_0x44afcd,_0x2153de,_0x307441,_0x140178,_0x5418f0,_0x4eb565,_0x459054){const _0x19f28c=_0x4a7abe;super(),_(this,'_online',!0x1),_(this,_0x19f28c(0x3a9),!0x1),_(this,_0x19f28c(0x20b),new I[(_0x19f28c(0x242))](new Map())),_(this,_0x19f28c(0x2ac),this[_0x19f28c(0x20b)][_0x19f28c(0x389)]()),_(this,_0x19f28c(0x277),new I[(_0x19f28c(0x242))]([])),_(this,_0x19f28c(0x348),this['_roomMembers$'][_0x19f28c(0x31d)](I['debounceTime'](St))),_(this,_0x19f28c(0x2af),a[_0x19f28c(0x40a)](_0x42de6f=>{const _0x1d1c33=_0x19f28c,_0x38272c={'eventID':g[_0x1d1c33(0x3a1)][_0x1d1c33(0x222)],'data':{'unitID':this[_0x1d1c33(0x1f5)],'memberID':this[_0x1d1c33(0x2c8)][_0x1d1c33(0x3f9)](),'selection':Fe(_0x42de6f)}};this[_0x1d1c33(0x2c8)][_0x1d1c33(0x1f6)](_0x38272c,this['unitID']);},dt)),(this[_0x19f28c(0x1f5)]=_0x1db430,this[_0x19f28c(0x2c8)]=_0x39ce4c,this[_0x19f28c(0x449)]=_0x44afcd,this['_colorAssignService']=_0x2153de,this[_0x19f28c(0x295)]=_0x307441,this[_0x19f28c(0x2a1)]=_0x140178,this[_0x19f28c(0x3d4)]=_0x5418f0,this[_0x19f28c(0x393)]=_0x4eb565,this[_0x19f28c(0x263)]=_0x459054);}get[_0x4a7abe(0x346)](){const _0xe93db8=_0x4a7abe;return this['_cursorInfo$'][_0xe93db8(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x8600b5=_0x4a7abe;return this[_0x8600b5(0x277)][_0x8600b5(0x305)]();}['dispose'](){const _0x640844=_0x4a7abe;super['dispose'](),this['_cursorInfo$'][_0x640844(0x435)](new Map()),this[_0x640844(0x20b)][_0x640844(0x3e6)](),this[_0x640844(0x277)]['next']([]),this[_0x640844(0x277)][_0x640844(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x7d422a=_0x4a7abe;this[_0x7d422a(0x3a9)]||(this[_0x7d422a(0x3a9)]=!0x0,this[_0x7d422a(0x2c8)][_0x7d422a(0x353)]['pipe'](I[_0x7d422a(0x239)](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x17dd53=>{const _0x4651ad=_0x7d422a;_0x17dd53===u[_0x4651ad(0x493)][_0x4651ad(0x413)]?this[_0x4651ad(0x221)]():this[_0x4651ad(0x3d3)]();}),this[_0x7d422a(0x2c8)][_0x7d422a(0x1cb)][_0x7d422a(0x31d)](I['takeUntil'](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x515628=>{const _0x1a220d=_0x7d422a,_0x40321e=_0x515628[_0x1a220d(0x451)];_0x40321e===g[_0x1a220d(0x3a1)]['UPDATE_CURSOR']&&this[_0x1a220d(0x2a5)](_0x515628),_0x40321e===g[_0x1a220d(0x3a1)][_0x1a220d(0x1cd)]&&this[_0x1a220d(0x416)](_0x515628);}),this[_0x7d422a(0x360)](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x4e2a38=>{const _0x43a275=_0x7d422a,_0x1103e8=_0x4e2a38[_0x43a275(0x43f)];_0x1103e8!=null&&this[_0x43a275(0x3d2)]&&_0x4e2a38['id']===V[_0x43a275(0x362)]['id']&&_0x1103e8['unitId']===this[_0x43a275(0x1f5)]&&_0x1103e8['isEditing']===!0x1&&_0x1103e8[_0x43a275(0x44c)][_0x43a275(0x3e3)]>0x0&&this['_updateLocalCursor'](_0x1103e8[_0x43a275(0x44c)]);})),this[_0x7d422a(0x2a1)][_0x7d422a(0x1e8)]['pipe'](I['takeUntil'](this[_0x7d422a(0x288)]))['subscribe'](_0xb00e46=>{const _0x5548a4=_0x7d422a;if((_0xb00e46==null?void 0x0:_0xb00e46[_0x5548a4(0x1f5)])!==this[_0x5548a4(0x1f5)])return;const _0x2b1ab3={'eventID':g[_0x5548a4(0x3a1)]['UPDATE_CURSOR'],'data':_0xb00e46};this[_0x5548a4(0x2a5)](_0x2b1ab3);}),this['disposeWithMe'](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x507973=>{const _0x3f91e3=_0x7d422a;if(_0x507973[_0x3f91e3(0x43f)]==null)return;const _0x1fd4bc=_0x507973[_0x3f91e3(0x43f)];if(_0x507973['id']!==V[_0x3f91e3(0x30c)]['id']||_0x1fd4bc[_0x3f91e3(0x1c7)]!==this['unitID'])return;const _0x3d8f07={'id':_0x3f91e3(0x354),'params':_0x1fd4bc},_0x519d2a=this[_0x3f91e3(0x346)];for(const [_0x1c9331,_0x1bbe78]of _0x519d2a){const _0x1f6dcb={'id':_0x3f91e3(0x354),'params':{'unitId':this[_0x3f91e3(0x1f5)],'actions':null,'textRanges':_0x1bbe78['ranges']}},_0x433074=this['_transformService'][_0x3f91e3(0x2dc)](_0x3d8f07,_0x1f6dcb,!0x1);if(g[_0x3f91e3(0x408)](_0x433074))throw _0x433074[_0x3f91e3(0x291)];_0x519d2a[_0x3f91e3(0x205)](_0x1c9331,{..._0x1bbe78,'ranges':_0x433074['m2Prime'][_0x3f91e3(0x43f)]['textRanges']});}queueMicrotask(()=>{const _0x12a27c=_0x3f91e3;this[_0x12a27c(0x20b)][_0x12a27c(0x435)](_0x519d2a);});})));}[_0x4a7abe(0x2a5)](_0x961017){const _0x51fe4e=_0x4a7abe;var _0x128e87,_0x7a2dde;const {memberID:_0x44f0f6,selection:_0x282b1b}=_0x961017[_0x51fe4e(0x3c8)],_0x418f36=ht(_0x282b1b),_0x34504d=(_0x7a2dde=(_0x128e87=this['_memberService']['getMember'](this[_0x51fe4e(0x1f5)],_0x44f0f6))==null?void 0x0:_0x128e87['name'])!=null?_0x7a2dde:_0x51fe4e(0x20a),_0xee5c4b={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x44f0f6),'name':_0x34504d,'ranges':_0x418f36},_0x2a0511=this[_0x51fe4e(0x346)];_0x2a0511['set'](_0x44f0f6,_0xee5c4b),this[_0x51fe4e(0x20b)][_0x51fe4e(0x435)](_0x2a0511);}['_onCursorDelete'](_0x1e910b){const _0x2893f2=_0x4a7abe,{memberID:_0x4b7c84}=_0x1e910b[_0x2893f2(0x3c8)],_0x3da558=this[_0x2893f2(0x346)];_0x3da558['delete'](_0x4b7c84),this[_0x2893f2(0x20b)][_0x2893f2(0x435)](_0x3da558);}[_0x4a7abe(0x221)](){const _0x474f2c=_0x4a7abe;var _0xb2a90;if(this['_online']=!0x0,((_0xb2a90=this[_0x474f2c(0x393)][_0x474f2c(0x460)]())==null?void 0x0:_0xb2a90[_0x474f2c(0x201)]())!==this[_0x474f2c(0x1f5)])return;const _0xc138ba=this[_0x474f2c(0x449)][_0x474f2c(0x1c8)](V[_0x474f2c(0x325)])['getDocRanges']();Array[_0x474f2c(0x3b5)](_0xc138ba)&&_0xc138ba[_0x474f2c(0x3e3)]>0x0&&this[_0x474f2c(0x2af)](_0xc138ba);}[_0x4a7abe(0x3d3)](){const _0x380bca=_0x4a7abe;this[_0x380bca(0x3d2)]=!0x1;}};ve=It([U(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),U(0x3,a['Inject'](Re)),U(0x4,a['Inject'](u[_0x4a7abe(0x230)])),U(0x5,a[_0x4a7abe(0x32c)](be)),U(0x6,g[_0x4a7abe(0x2f2)]),U(0x7,a[_0x4a7abe(0x1e6)]),U(0x8,a['ICommandService'])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2d6075,_0x2c471d,_0x1e1c6c,_0x2cb4ef)=>{for(var _0x42a7b8=_0x2cb4ef>0x1?void 0x0:_0x2cb4ef?ft(_0x2c471d,_0x1e1c6c):_0x2c471d,_0x3cab63=_0x2d6075['length']-0x1,_0x3c7e50;_0x3cab63>=0x0;_0x3cab63--)(_0x3c7e50=_0x2d6075[_0x3cab63])&&(_0x42a7b8=_0x3c7e50(_0x42a7b8)||_0x42a7b8);return _0x42a7b8;},w=(_0x98c20b,_0x473e62)=>(_0x4649dc,_0xd66aed)=>_0x473e62(_0x4649dc,_0xd66aed,_0x98c20b);const vt=0x12c,gt=0x64,Et=()=>{let _0x164feb=[],_0x4bf412=!0x1;return _0x5bc21b=>{_0x164feb['push'](_0x5bc21b),_0x4bf412||(_0x4bf412=!0x0,setTimeout(()=>{const _0x3536d6=_0xdbe3;_0x164feb[_0x3536d6(0x2aa)](_0x271670=>_0x271670()),_0x164feb=[],_0x4bf412=!0x1;}));};};let ge=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x38a5cd,_0x193b80,_0x3ba474,_0x12526f,_0x498821,_0x39adc3,_0x3df02d,_0x4eee34){const _0x18c53b=_0x4a7abe;super(),_(this,_0x18c53b(0x3d2),!0x1),_(this,_0x18c53b(0x3a9),!0x1),_(this,_0x18c53b(0x20b),new I[(_0x18c53b(0x242))](new Map())),_(this,_0x18c53b(0x2ac),this[_0x18c53b(0x20b)][_0x18c53b(0x389)]()),_(this,'_roomMembers$',new I[(_0x18c53b(0x242))]([])),_(this,_0x18c53b(0x348),this['_roomMembers$'][_0x18c53b(0x31d)](I[_0x18c53b(0x304)](vt))),_(this,_0x18c53b(0x2af),a[_0x18c53b(0x40a)]((_0x43513f,_0x4fba47)=>{const _0x365918=_0x18c53b,_0xa42c8d={'eventID':g[_0x365918(0x3a1)][_0x365918(0x222)],'data':{'unitID':this[_0x365918(0x1f5)],'memberID':this[_0x365918(0x2c8)][_0x365918(0x3f9)](),'selection':B[_0x365918(0x361)](_0x43513f,_0x4fba47[_0x365918(0x1f8)])}};this[_0x365918(0x2c8)][_0x365918(0x1f6)](_0xa42c8d,this[_0x365918(0x1f5)]);},gt)),(this[_0x18c53b(0x1f5)]=_0x38a5cd,this['_session']=_0x193b80,this['_injector']=_0x3ba474,this['_colorAssignService']=_0x12526f,this[_0x18c53b(0x295)]=_0x498821,this[_0x18c53b(0x393)]=_0x39adc3,this['_commandService']=_0x3df02d,this[_0x18c53b(0x349)]=_0x4eee34);}get['cursorInfo'](){const _0x22b3cf=_0x4a7abe;return this['_cursorInfo$'][_0x22b3cf(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x52a1eb=_0x4a7abe;return this[_0x52a1eb(0x277)][_0x52a1eb(0x305)]();}[_0x4a7abe(0x234)](){const _0x2b2e64=_0x4a7abe;super['dispose'](),this[_0x2b2e64(0x20b)][_0x2b2e64(0x435)](new Map()),this[_0x2b2e64(0x20b)]['complete'](),this[_0x2b2e64(0x277)][_0x2b2e64(0x435)]([]),this[_0x2b2e64(0x277)][_0x2b2e64(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x42415c=_0x4a7abe;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x42415c(0x31d)](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x354050=>{const _0x3d681a=_0x42415c;_0x354050===u[_0x3d681a(0x493)][_0x3d681a(0x413)]?this[_0x3d681a(0x221)]():this['_toggleOffline']();}),this['_session'][_0x42415c(0x1cb)]['pipe'](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x5585de=>{const _0x4ff517=_0x42415c,_0x1643c5=_0x5585de[_0x4ff517(0x451)];_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x222)]&&this[_0x4ff517(0x2a5)](_0x5585de),_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x1cd)]&&this[_0x4ff517(0x416)](_0x5585de);}),this[_0x42415c(0x3e5)](),this[_0x42415c(0x360)](this[_0x42415c(0x263)][_0x42415c(0x453)](_0x595f7c=>{const _0x258dfd=_0x42415c;if(this[_0x258dfd(0x3d2)]&&_0x595f7c['id']===v[_0x258dfd(0x327)]['id']&&_0x595f7c['params'][_0x258dfd(0x1c7)]===this[_0x258dfd(0x1f5)]){const _0x4e0537=_0x595f7c[_0x258dfd(0x43f)];this['_updateLocalCursor'](_0x4e0537[_0x258dfd(0x1f7)],_0x4e0537[_0x258dfd(0x3d8)][0x0]);}})));}[_0x4a7abe(0x2a5)](_0x15fde9){const _0xf3fd0e=_0x4a7abe;var _0x5b3751,_0x9008c2;const {memberID:_0x4913a8,selection:_0x802b24}=_0x15fde9['data'],{sheetName:_0x108710,range:_0x4492ea}=B[_0xf3fd0e(0x269)](_0x802b24),_0x47dce6={'name':(_0x9008c2=(_0x5b3751=this[_0xf3fd0e(0x295)][_0xf3fd0e(0x339)](this['unitID'],_0x4913a8))==null?void 0x0:_0x5b3751['name'])!=null?_0x9008c2:'Unknown\x20user','range':this[_0xf3fd0e(0x481)](_0x108710,_0x4492ea),'sheetID':_0x108710,'color':this[_0xf3fd0e(0x376)][_0xf3fd0e(0x1de)](_0x4913a8),'selection':_0x802b24},_0x58e48d=this[_0xf3fd0e(0x346)];_0x58e48d[_0xf3fd0e(0x205)](_0x4913a8,_0x47dce6),this[_0xf3fd0e(0x20b)][_0xf3fd0e(0x435)](_0x58e48d);}[_0x4a7abe(0x416)](_0x172fbf){const _0x142218=_0x4a7abe,{memberID:_0x1afc3a}=_0x172fbf[_0x142218(0x3c8)],_0x29efd7=this[_0x142218(0x346)];_0x29efd7['delete'](_0x1afc3a),this[_0x142218(0x20b)][_0x142218(0x435)](_0x29efd7);}[_0x4a7abe(0x481)](_0x14b492,_0x359a9b){const _0x492fac=_0x4a7abe;var _0x7b169d,_0x1187c0;const _0x2e6c68=(_0x1187c0=(_0x7b169d=this[_0x492fac(0x393)][_0x492fac(0x26d)](this[_0x492fac(0x1f5)]))==null?void 0x0:_0x7b169d[_0x492fac(0x2bb)](_0x14b492))==null?void 0x0:_0x1187c0['getMergeData']();return(_0x2e6c68==null?void 0x0:_0x2e6c68[_0x492fac(0x3ec)](_0x196134=>a[_0x492fac(0x278)][_0x492fac(0x375)](_0x196134,_0x359a9b)))||_0x359a9b;}['_onRefRangeChange'](){const _0x1a6105=_0x4a7abe,_0x718dd=new a['DisposableCollection'](),_0x351b03=Et(),_0x164829=()=>{const _0x4f8018=_0xdbe3;_0x718dd[_0x4f8018(0x234)]();const _0x45af14=(_0x2b3a8f,_0x36d3bf,_0x3fa491,_0x20774a)=>{const _0x5793de=_0x4f8018;let _0x93bd0b=[];switch(_0x2b3a8f['id']){case v['EffectRefRangId'][_0x5793de(0x37c)]:{_0x93bd0b=v[_0x5793de(0x388)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['DeleteRangeMoveUpCommandId']:{_0x93bd0b=v['handleDeleteRangeMoveUp'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x1e1)]:{_0x93bd0b=v[_0x5793de(0x38e)](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x93bd0b=v[_0x5793de(0x3ea)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x401)]:{_0x93bd0b=v[_0x5793de(0x317)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x31c)]:{_0x93bd0b=v['handleInsertRow'](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['MoveRangeCommandId']:{_0x93bd0b=v[_0x5793de(0x20c)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x3ac)]:{_0x93bd0b=v['handleIRemoveCol'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x44e)]:{_0x93bd0b=v[_0x5793de(0x283)](_0x2b3a8f,_0x20774a);break;}}const _0x27d22b=v[_0x5793de(0x359)](_0x93bd0b,_0x20774a),_0x4d9049=this[_0x5793de(0x346)][_0x5793de(0x1c8)](_0x36d3bf);if(_0x4d9049&&_0x27d22b){const _0x34726b={..._0x4d9049,'range':_0x27d22b};this[_0x5793de(0x346)][_0x5793de(0x205)](_0x36d3bf,_0x34726b),_0x351b03(()=>{const _0x5023f1=_0x5793de,_0x260f1e=this[_0x5023f1(0x349)][_0x5023f1(0x2a2)](_0x27d22b,_0x3644a7=>(_0x260f1e[_0x5023f1(0x234)](),_0x45af14(_0x3644a7,_0x36d3bf,_0x3fa491,_0x27d22b)));_0x718dd[_0x5023f1(0x3ab)](_0x260f1e);});}return{'redos':[],'undos':[]};};this[_0x4f8018(0x346)]['forEach']((_0x8ae339,_0x1d0b98)=>{const _0x355fd4=_0x4f8018,{range:_0x388595,sheetID:_0x4216ae}=_0x8ae339,_0x103b7c=this[_0x355fd4(0x349)][_0x355fd4(0x2a2)](_0x388595,_0x514eaf=>(_0x103b7c[_0x355fd4(0x234)](),_0x45af14(_0x514eaf,_0x1d0b98,_0x4216ae,_0x388595)));_0x718dd[_0x355fd4(0x3ab)](_0x103b7c);});};this[_0x1a6105(0x360)](a[_0x1a6105(0x1e5)](this[_0x1a6105(0x20b)]['subscribe'](()=>{_0x164829();})));}['_toggleOnline'](){const _0x520f1c=_0x4a7abe;var _0x50f799,_0x4f0c97;if(this['_online']=!0x0,((_0x50f799=this[_0x520f1c(0x393)]['getFocusedUnit']())==null?void 0x0:_0x50f799[_0x520f1c(0x201)]())!==this[_0x520f1c(0x1f5)])return;const _0xe59169=(_0x4f0c97=this[_0x520f1c(0x449)][_0x520f1c(0x1c8)](v['SheetsSelectionsService'])[_0x520f1c(0x21e)]())==null?void 0x0:_0x4f0c97[0x0],_0xdc95fa=this[_0x520f1c(0x393)]['getCurrentUnitForType'](a[_0x520f1c(0x483)][_0x520f1c(0x324)])[_0x520f1c(0x3bd)]();_0xe59169&&_0xdc95fa&&this[_0x520f1c(0x2af)](_0xdc95fa[_0x520f1c(0x338)](),_0xe59169);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u[_0x4a7abe(0x230)])),w(0x5,a[_0x4a7abe(0x1e6)]),w(0x6,a[_0x4a7abe(0x434)]),w(0x7,a[_0x4a7abe(0x32c)](v[_0x4a7abe(0x478)]))],ge);var Ct=Object[_0x4a7abe(0x319)],Tt=(_0x29e448,_0x19bae5,_0x3b9d23,_0xab429c)=>{const _0x32e321=_0x4a7abe;for(var _0x3ee39f=_0xab429c>0x1?void 0x0:_0xab429c?Ct(_0x19bae5,_0x3b9d23):_0x19bae5,_0x37e57d=_0x29e448[_0x32e321(0x3e3)]-0x1,_0x5c605a;_0x37e57d>=0x0;_0x37e57d--)(_0x5c605a=_0x29e448[_0x37e57d])&&(_0x3ee39f=_0x5c605a(_0x3ee39f)||_0x3ee39f);return _0x3ee39f;},ce=(_0x357b6d,_0x542f10)=>(_0x328e2f,_0x41bdbc)=>_0x542f10(_0x328e2f,_0x41bdbc,_0x357b6d);let F=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x48a779,_0x1ddba2,_0x453473){const _0x1864dc=_0x4a7abe;super(),_(this,'_entities',new Map()),_(this,_0x1864dc(0x2df),new I[(_0x1864dc(0x315))]()),(this['_univerInstanceService']=_0x48a779,this[_0x1864dc(0x449)]=_0x1ddba2,this[_0x1864dc(0x28b)]=_0x453473,this[_0x1864dc(0x3a9)]());}[_0x4a7abe(0x234)](){const _0x35153e=_0x4a7abe;super[_0x35153e(0x234)](),this[_0x35153e(0x2df)][_0x35153e(0x3e6)](),this[_0x35153e(0x226)][_0x35153e(0x2aa)](_0x5e1e67=>_0x5e1e67['dispose']());}[_0x4a7abe(0x3a2)](_0x4df0df){const _0x51399e=_0x4a7abe;return this[_0x51399e(0x226)][_0x51399e(0x439)](_0x4df0df)?this['_entities'][_0x51399e(0x1c8)](_0x4df0df)[_0x51399e(0x2ac)]:this['_entityInit$'][_0x51399e(0x31d)](I['filter'](_0x507ef2=>_0x507ef2[_0x51399e(0x1f5)]===_0x4df0df),I[_0x51399e(0x1ef)](_0x38e94c=>_0x38e94c['cursorInfo$']));}[_0x4a7abe(0x3a9)](){const _0x2d8eb0=_0x4a7abe;this[_0x2d8eb0(0x393)][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET'])[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x239)](this['dispose$']))['subscribe'](async _0x372b24=>{const _0x34558c=_0x2d8eb0,_0x36cfe1=_0x372b24[_0x34558c(0x201)](),_0x5d1c23=await this[_0x34558c(0x485)](_0x36cfe1);this[_0x34558c(0x2df)]['next'](_0x5d1c23),this[_0x34558c(0x226)]['set'](_0x36cfe1,_0x5d1c23);}),this['_univerInstanceService'][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)])[_0x2d8eb0(0x31d)](I['takeUntil'](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x1f9)](_0x12ab22=>!_0x12ab22['getUnitId']()[_0x2d8eb0(0x270)]('__')))[_0x2d8eb0(0x1f1)](async _0x18e047=>{const _0x3b3817=_0x2d8eb0,_0x2a0d58=_0x18e047[_0x3b3817(0x201)](),_0x310105=await this[_0x3b3817(0x2a6)](_0x2a0d58);this[_0x3b3817(0x2df)]['next'](_0x310105),this[_0x3b3817(0x226)][_0x3b3817(0x205)](_0x2a0d58,_0x310105);}),I[_0x2d8eb0(0x2cd)](this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)]),this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET']))['pipe'](I[_0x2d8eb0(0x239)](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x1f1)](_0x4dc6a4=>{const _0x489c28=_0x2d8eb0,_0x1a52a2=_0x4dc6a4[_0x489c28(0x201)](),_0x5fc84=this[_0x489c28(0x226)]['get'](_0x1a52a2);_0x5fc84&&(_0x5fc84['dispose'](),this['_entities'][_0x489c28(0x1dd)](_0x1a52a2));});}async[_0x4a7abe(0x485)](_0x1565af){const _0x43580b=_0x4a7abe,_0x1e54eb=await this[_0x43580b(0x28b)][_0x43580b(0x311)](_0x1565af),_0x53f1d9=this[_0x43580b(0x449)][_0x43580b(0x20d)](ge,_0x1565af,_0x1e54eb);return _0x53f1d9['init'](),_0x53f1d9;}async[_0x4a7abe(0x2a6)](_0x3d6d24){const _0x1d629f=_0x4a7abe,_0xbb0d15=await this[_0x1d629f(0x28b)]['requireSession'](_0x3d6d24),_0x59b61d=this[_0x1d629f(0x449)]['createInstance'](ve,_0x3d6d24,_0xbb0d15);return _0x59b61d['init'](),_0x59b61d;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a[_0x4a7abe(0x22c)])),ce(0x2,a[_0x4a7abe(0x32c)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x2525f,_0x3ad9f0){const _0x143559=_0x4a7abe;let {radius:_0x427836,width:_0x4f7a95,height:_0x5249e0}=_0x3ad9f0;_0x427836=_0x427836!=null?_0x427836:0x0,_0x4f7a95=_0x4f7a95!=null?_0x4f7a95:0x1e,_0x5249e0=_0x5249e0!=null?_0x5249e0:0x1e;let _0xcf68f7=0x0,_0x26dc24=0x0,_0x463b82=0x0;_0xcf68f7=_0x26dc24=_0x463b82=Math[_0x143559(0x35d)](_0x427836,_0x4f7a95/0x2,_0x5249e0/0x2),_0x2525f[_0x143559(0x343)](),_0x2525f['moveTo'](_0xcf68f7,0x0),_0x2525f['lineTo'](_0x4f7a95-_0x26dc24,0x0),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x26dc24,_0x26dc24,_0x26dc24,Math['PI']*0x3/0x2,0x0,!0x1),_0x2525f[_0x143559(0x34a)](_0x4f7a95,_0x5249e0-_0x463b82),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x463b82,_0x5249e0-_0x463b82,_0x463b82,0x0,Math['PI']/0x2,!0x1),_0x2525f[_0x143559(0x34a)](0x0,_0x5249e0),_0x2525f[_0x143559(0x34a)](0x0,_0xcf68f7),_0x2525f[_0x143559(0x21b)](_0xcf68f7,_0xcf68f7,_0xcf68f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2525f['closePath'](),_0x3ad9f0[_0x143559(0x42c)]&&(_0x2525f[_0x143559(0x2ae)](),_0x2525f[_0x143559(0x26a)]=_0x3ad9f0['fill'],_0x3ad9f0[_0x143559(0x455)]==='evenodd'?_0x2525f[_0x143559(0x42c)](_0x143559(0x421)):_0x2525f[_0x143559(0x42c)](),_0x2525f['restore']());}class re extends C[_0x4a7abe(0x40c)]{constructor(_0x9d450f,_0x41f07e){const _0x2442d8=_0x4a7abe;super(_0x9d450f,_0x41f07e),_(this,'color'),_(this,_0x2442d8(0x285)),(this['color']=_0x41f07e==null?void 0x0:_0x41f07e['color'],this[_0x2442d8(0x285)]=_0x41f07e==null?void 0x0:_0x41f07e[_0x2442d8(0x285)]);}static[_0x4a7abe(0x328)](_0x262fb4,_0x1c36b9){const _0x5bd17f=_0x4a7abe,{text:_0x9f1aed,color:_0x5e5b00}=_0x1c36b9;_0x262fb4[_0x5bd17f(0x2ae)](),_0x262fb4[_0x5bd17f(0x292)]=_0x5bd17f(0x231);const _0x53d261=_0x262fb4['measureText'](_0x9f1aed)[_0x5bd17f(0x2f0)],_0x185507=Math['min'](_0x53d261+0x2*le,Ue);Ot(_0x262fb4,{'height':X,'radius':0x4,'width':_0x185507,'fill':_0x5e5b00}),_0x262fb4[_0x5bd17f(0x26a)]='#FFF';const _0x2463b4=le,_0x2290dd=X-pt,_0x599fb7=Ue-0x2*le;if(_0x53d261>_0x599fb7){let _0x50fb34='',_0xa7f91f=0x0;for(const _0x11ab7c of _0x9f1aed){const _0x54fb0c=_0x262fb4['measureText'](_0x11ab7c)[_0x5bd17f(0x2f0)];if(_0xa7f91f+_0x54fb0c<=_0x599fb7-_0x262fb4[_0x5bd17f(0x2ab)]('...')[_0x5bd17f(0x2f0)])_0x50fb34+=_0x11ab7c,_0xa7f91f+=_0x54fb0c;else{_0x50fb34+=_0x5bd17f(0x45c);break;}}_0x262fb4[_0x5bd17f(0x3e8)](_0x50fb34,_0x2463b4,_0x2290dd);}else _0x262fb4[_0x5bd17f(0x3e8)](_0x9f1aed,_0x2463b4,_0x2290dd);_0x262fb4[_0x5bd17f(0x46f)]();}['_draw'](_0x1c8d36){const _0x2c03b2=_0x4a7abe;re[_0x2c03b2(0x328)](_0x1c8d36,this);}}const _e=_0x4a7abe(0x2a7),Rt=_0x4a7abe(0x3ca),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a7abe(0x1bf);class Le{constructor(_0x41e70f,_0x3de8ce,_0x349927,_0x14100d){const _0xe101c3=_0x4a7abe;_(this,_0xe101c3(0x414),[]),_(this,_0xe101c3(0x3c9),null),_(this,'_textBubble',null),_(this,_0xe101c3(0x3f3),null),_(this,_0xe101c3(0x2f1),null),_(this,_0xe101c3(0x37d),null),(this['_cursor']=_0x41e70f,this[_0xe101c3(0x25a)]=_0x3de8ce,this[_0xe101c3(0x398)]=_0x349927,this[_0xe101c3(0x200)]=_0x14100d,this[_0xe101c3(0x250)]());}set[_0x4a7abe(0x243)](_0x4f5d51){const _0x319e0c=_0x4a7abe;_0x4f5d51?(this['_anchorDot']&&this[_0x319e0c(0x3f3)][_0x319e0c(0x227)](),this['_textBubble']&&this['_textBubble'][_0x319e0c(0x23e)]()):(this[_0x319e0c(0x3f3)]&&this[_0x319e0c(0x3f3)][_0x319e0c(0x23e)](),this[_0x319e0c(0x3aa)]&&this['_textBubble']['hide']());}['dispose'](){const _0x43cb30=_0x4a7abe;for(const _0x54d11c of this[_0x43cb30(0x414)])_0x54d11c[_0x43cb30(0x234)]();this[_0x43cb30(0x3aa)]&&this[_0x43cb30(0x3aa)]['dispose'](),this['_anchorDot']&&this[_0x43cb30(0x3f3)][_0x43cb30(0x234)](),this[_0x43cb30(0x3c9)]&&this[_0x43cb30(0x3c9)]['dispose'](),this[_0x43cb30(0x37d)]&&this[_0x43cb30(0x37d)]();}[_0x4a7abe(0x250)](){const _0x5da584=_0x4a7abe;var _0x200d6e;const {_docSkeleton:_0x1fa6ae,_document:_0x30ddbc}=this,{color:_0x89e5f5,name:_0x369267,ranges:_0x55e22b}=this['_cursor'],_0x3453f1=_0x30ddbc['getOffsetConfig'](),{docsLeft:_0x357b52,docsTop:_0x4a9815}=_0x3453f1,_0x1c4048=new T[(_0x5da584(0x2a8))](_0x3453f1,_0x1fa6ae);for(const {startOffset:_0x3ad5cf,endOffset:_0x1f294a,rangeType:_0xc7f038,segmentId:_0x30bc22,segmentPage:_0x25ec20,collapsed:_0x1a161a,isActive:_0x5974fd}of _0x55e22b){const _0x144d0e=_0x1fa6ae['findNodePositionByCharIndex'](_0x3ad5cf,!0x0,_0x30bc22,_0x25ec20);let _0x1cbe35=_0x1fa6ae['findNodePositionByCharIndex'](_0x1f294a,!0x0,_0x30bc22,_0x25ec20);if(_0x1cbe35==null&&(_0x1cbe35=_0x1fa6ae[_0x5da584(0x214)](_0x1f294a-0x1,!0x1,_0x30bc22,_0x25ec20)),_0x5974fd){const {contentBoxPointGroup:_0x2e1889}=_0x1c4048['getRangePointData'](_0x1cbe35,_0x1cbe35);if(_0x2e1889['length']===0x0)continue;this[_0x5da584(0x3f6)](_0x89e5f5,_0x2e1889,_0x357b52,_0x4a9815,_0x369267),this['_eventUnsubscribe']=this[_0x5da584(0x276)]();}if(_0x144d0e&&_0x1cbe35){if(_0xc7f038===a[_0x5da584(0x27b)][_0x5da584(0x2c7)]){const _0x8b8313=new T[(_0x5da584(0x2be))](_0x3453f1,_0x1fa6ae),{pointGroup:_0x155dbb}=(_0x200d6e=_0x8b8313[_0x5da584(0x29c)](_0x144d0e,_0x1cbe35))!=null?_0x200d6e:{};if(_0x155dbb==null||_0x155dbb[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x3b8)](_0x89e5f5,_0x155dbb,_0x357b52,_0x4a9815);}else{if(!_0x1a161a){const {borderBoxPointGroup:_0x741225}=_0x1c4048['getRangePointData'](_0x144d0e,_0x1cbe35);if(_0x741225[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x490)](_0x89e5f5,_0x741225,_0x357b52,_0x4a9815);}}}}}[_0x4a7abe(0x3f6)](_0x32eba2,_0x5efcc7,_0x109e3d,_0x229c00,_0x234f30){const _0x56802b=_0x4a7abe,_0x59546a=this[_0x56802b(0x2c0)](_0x5efcc7),{left:_0x2e53e0,top:_0x259ea0,height:_0x12db8a}=_0x59546a,_0x1ffa1f=this['_getScale'](),_0x2f4569=Nt/_0x1ffa1f,_0x5c106=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00,'height':_0x12db8a,'width':Dt,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':_0x2f4569,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5c106,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x5c106,T[_0x56802b(0x1f4)]);const _0x13bcc5=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-he/0x2,'height':he,'width':he,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x32eba2||C['getColor'](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'evented':!0x1});this[_0x56802b(0x3f3)]=_0x13bcc5,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x13bcc5,T['TEXT_RANGE_LAYER_INDEX']);const _0x176c38=new re(_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-X,'text':_0x234f30,'color':_0x32eba2});this[_0x56802b(0x3aa)]=_0x176c38,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x176c38,T[_0x56802b(0x1f4)]),this[_0x56802b(0x243)]=!0x1;}[_0x4a7abe(0x276)](){const _0x2e0836=_0x4a7abe,_0x33e148=this[_0x2e0836(0x3c9)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x11c9a4=_0x2e0836;this[_0x11c9a4(0x243)]=!0x0;}),_0x5c94c7=this['_anchor'][_0x2e0836(0x371)][_0x2e0836(0x2db)](()=>{const _0x4907b5=_0x2e0836;this[_0x4907b5(0x2f1)]&&clearTimeout(this[_0x4907b5(0x2f1)]),this[_0x4907b5(0x2f1)]=setTimeout(()=>{const _0x1f42a5=_0x4907b5;this[_0x1f42a5(0x243)]=!0x1;},0x7d0);});return()=>{const _0x2faba1=_0x2e0836;_0x33e148['unsubscribe'](),_0x5c94c7[_0x2faba1(0x2c4)]();};}[_0x4a7abe(0x490)](_0x3a7c3c,_0x34a9a1,_0x57ba70,_0xb45625){const _0x349bc9=_0x4a7abe,_0x43f454=new a['ColorKit'](_0x3a7c3c)['setAlpha'](0.2)['toRgbString'](),_0x283b2f=new C[(_0x349bc9(0x207))](Rt+a[_0x349bc9(0x32f)](H),{'pointsGroup':_0x34a9a1,'fill':_0x43f454||C[_0x349bc9(0x397)](a[_0x349bc9(0x379)]['black'],0.2),'left':_0x57ba70,'top':_0xb45625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x349bc9(0x414)]['push'](_0x283b2f),this[_0x349bc9(0x25a)][_0x349bc9(0x443)](_0x283b2f,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x3b8)](_0x555ba0,_0x11d653,_0x251bad,_0x3088dd){const _0x2944d8=_0x4a7abe,_0xdf8370=new a[(_0x2944d8(0x48f))](_0x555ba0)[_0x2944d8(0x380)](0.2)[_0x2944d8(0x2e6)](),_0x2f3428=new C[(_0x2944d8(0x207))](bt+a[_0x2944d8(0x32f)](H),{'pointsGroup':_0x11d653,'fill':_0xdf8370||C[_0x2944d8(0x397)](a['COLORS']['black'],0.2),'left':_0x251bad,'top':_0x3088dd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2944d8(0x414)][_0x2944d8(0x272)](_0x2f3428),this['_scene']['addObject'](_0x2f3428,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x2c0)](_0x11a69d){const _0x44b7a9=_0x11a69d[0x0],_0x20d1b7=_0x44b7a9[0x0],_0x5638d8=_0x44b7a9[0x2],{x:_0x769aa4,y:_0x23a3e5}=_0x20d1b7,{x:_0x353a3a,y:_0x2d250d}=_0x5638d8;return{'left':_0x769aa4,'top':_0x23a3e5,'width':_0x353a3a-_0x769aa4,'height':_0x2d250d-_0x23a3e5};}[_0x4a7abe(0x1f2)](){const _0x2a1905=_0x4a7abe,{scaleX:_0x4ab412,scaleY:_0x469cde}=this[_0x2a1905(0x25a)][_0x2a1905(0x45f)]();return Math['max'](_0x4ab412,_0x469cde);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x262cf7,_0x30f1aa,_0x477f9a,_0x57d6e0)=>{const _0x1bdb68=_0x4a7abe;for(var _0x46e1fc=_0x57d6e0>0x1?void 0x0:_0x57d6e0?Lt(_0x30f1aa,_0x477f9a):_0x30f1aa,_0x45ee3f=_0x262cf7[_0x1bdb68(0x3e3)]-0x1,_0x36c107;_0x45ee3f>=0x0;_0x45ee3f--)(_0x36c107=_0x262cf7[_0x45ee3f])&&(_0x46e1fc=_0x36c107(_0x46e1fc)||_0x46e1fc);return _0x46e1fc;},q=(_0x63aec7,_0x28195c)=>(_0x559e5f,_0x29c930)=>_0x28195c(_0x559e5f,_0x29c930,_0x63aec7);let Ee=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x359f13,_0x4dc287,_0x5da428,_0x42252b,_0x4a7c05){const _0x8ca2ba=_0x4a7abe;super(),_(this,_0x8ca2ba(0x34f),[]),_(this,_0x8ca2ba(0x247),[]),(this['_context']=_0x359f13,this[_0x8ca2ba(0x30b)]=_0x4dc287,this[_0x8ca2ba(0x1fc)]=_0x5da428,this[_0x8ca2ba(0x263)]=_0x42252b,this['_themeService']=_0x4a7c05,this['_init']());}[_0x4a7abe(0x3a9)](){const _0x5425c6=_0x4a7abe,_0x2af4a7=this['_context'][_0x5425c6(0x1c7)],_0x3ce163=this['_docSkeletonManagerService'];this[_0x5425c6(0x360)](I[_0x5425c6(0x26e)]([this[_0x5425c6(0x1fc)][_0x5425c6(0x3a2)](_0x2af4a7),this['_themeService'][_0x5425c6(0x418)]])[_0x5425c6(0x31d)]($[_0x5425c6(0x314)](([_0x21a53b,_0xd15346])=>({'skeleton':_0x3ce163['getSkeleton'](),'cursors':[..._0x21a53b[_0x5425c6(0x329)]()][_0x5425c6(0x47d)](_0xd209cc=>({..._0xd209cc,'color':this[_0x5425c6(0x3e7)][_0x5425c6(0x400)](_0xd209cc[_0x5425c6(0x217)])}))})))['subscribe'](_0x58735a=>{const _0x1c040d=_0x5425c6;if(this[_0x1c040d(0x42b)](),_0x58735a){const {skeleton:_0x128a41,cursors:_0x25721c}=_0x58735a;this[_0x1c040d(0x459)](_0x128a41,_0x25721c);}})),this['_initResize'](),this[_0x5425c6(0x2cc)]();}['_updateCollabCursors'](_0x5b874b,_0x2f6e99){const _0x51e9a3=_0x4a7abe,{scene:_0x33e282,mainComponent:_0x1073b8}=this['_context'],_0x4a9392=_0x2f6e99[_0x51e9a3(0x314)](_0x3a4422=>new Le(_0x3a4422,_0x33e282,_0x5b874b,_0x1073b8));this[_0x51e9a3(0x34f)]=_0x4a9392,this[_0x51e9a3(0x247)]=_0x2f6e99;}['_refreshCollabCursors'](){const _0x30dab5=_0x4a7abe;this['_removeCollabCursors']();const {scene:_0x3b1a7a,mainComponent:_0x4fad72}=this[_0x30dab5(0x42e)],_0x3a194e=this[_0x30dab5(0x30b)][_0x30dab5(0x3da)](),_0x27c997=this[_0x30dab5(0x247)]['map'](_0x3750a2=>new Le(_0x3750a2,_0x3b1a7a,_0x3a194e,_0x4fad72));this[_0x30dab5(0x34f)]=_0x27c997;}[_0x4a7abe(0x42b)](){const _0xd3e235=_0x4a7abe;this[_0xd3e235(0x34f)][_0xd3e235(0x2aa)](_0x14183a=>_0x14183a[_0xd3e235(0x234)]()),this[_0xd3e235(0x34f)]=[];}['_initCommandExecutedListener'](){const _0x254c9e=_0x4a7abe,_0x222845=[T[_0x254c9e(0x22d)]['id']];this['disposeWithMe'](this[_0x254c9e(0x263)][_0x254c9e(0x453)](_0x25cc50=>{const _0x44b017=_0x254c9e;_0x222845[_0x44b017(0x3fc)](_0x25cc50['id'])&&_0x25cc50[_0x44b017(0x43f)]['unitId']===this[_0x44b017(0x42e)][_0x44b017(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x4a7abe(0x3bb)](){const _0x1ffc77=_0x4a7abe;this['disposeWithMe'](a[_0x1ffc77(0x350)](this[_0x1ffc77(0x42e)]['engine'][_0x1ffc77(0x1b9)])[_0x1ffc77(0x31d)]($[_0x1ffc77(0x1f9)](_0x19ff53=>_0x19ff53[_0x1ffc77(0x2b1)]===C[_0x1ffc77(0x3a8)][_0x1ffc77(0x452)]),$[_0x1ffc77(0x387)](0x10))[_0x1ffc77(0x1f1)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x4a7abe(0x32c)](V[_0x4a7abe(0x29a)])),q(0x2,a[_0x4a7abe(0x32c)](F)),q(0x3,a[_0x4a7abe(0x434)]),q(0x4,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4a7abe(0x40c)]{constructor(_0x537ea7,_0x4dddb7){const _0x53db83=_0x4a7abe;super(_0x537ea7,_0x4dddb7),_(this,_0x53db83(0x3f0)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x53db83(0x3bf),''),_(this,_0x53db83(0x260),_0x53db83(0x28e)),_(this,_0x53db83(0x1db)),(_0x4dddb7&&this[_0x53db83(0x426)](_0x4dddb7),this[_0x53db83(0x203)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x0})),this[_0x53db83(0x371)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x1})));}[_0x4a7abe(0x426)](_0x47bda6){const _0x55789c=_0x4a7abe;var _0x1e9091,_0x12594d,_0x518de4,_0x1d23a8,_0x5f2d09,_0x5bafb6;this['_color']=(_0x1e9091=_0x47bda6['color'])!=null?_0x1e9091:this[_0x55789c(0x3f0)],this[_0x55789c(0x21f)]=(_0x12594d=_0x47bda6['hovered'])!=null?_0x12594d:this[_0x55789c(0x21f)],this[_0x55789c(0x23c)]=(_0x518de4=_0x47bda6[_0x55789c(0x1f8)])!=null?_0x518de4:this['_range'],this[_0x55789c(0x3bf)]=(_0x1d23a8=_0x47bda6[_0x55789c(0x1eb)])!=null?_0x1d23a8:this[_0x55789c(0x3bf)],this[_0x55789c(0x260)]=(_0x5f2d09=_0x47bda6['labelPosition'])!=null?_0x5f2d09:this[_0x55789c(0x260)],this[_0x55789c(0x1db)]=(_0x5bafb6=_0x47bda6[_0x55789c(0x2ed)])!=null?_0x5bafb6:this[_0x55789c(0x1db)],this['transformByState']({'width':_0x47bda6['width'],'height':_0x47bda6['height']});}[_0x4a7abe(0x273)](_0x5c6fab){const _0x13a003=_0x4a7abe,{row:_0x4d584a,column:_0x168a2d}=_0x5c6fab;if(_0x4d584a>=this[_0x13a003(0x23c)][_0x13a003(0x369)]&&_0x4d584a<=this[_0x13a003(0x23c)][_0x13a003(0x1ce)]&&_0x168a2d>=this[_0x13a003(0x23c)]['startColumn']&&_0x168a2d<=this[_0x13a003(0x23c)][_0x13a003(0x2fb)]){this[_0x13a003(0x426)]({'hovered':!0x0});return;}this[_0x13a003(0x426)]({'hovered':!0x1});}[_0x4a7abe(0x367)](_0x5cb3eb){return!0x1;}['_draw'](_0x13a15b){const _0x668880=_0x4a7abe;C['Rect'][_0x668880(0x328)](_0x13a15b,{'width':this[_0x668880(0x2f0)],'height':this[_0x668880(0x25d)],'strokeWidth':Pt,'stroke':this[_0x668880(0x3f0)],'evented':!0x1,'fill':this[_0x668880(0x1db)]}),this[_0x668880(0x21f)]&&(_0x13a15b[_0x668880(0x2ae)](),_0x13a15b[_0x668880(0x32a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x668880(0x3ce)?0x0:-X),re[_0x668880(0x328)](_0x13a15b,{'text':this['_name'],'color':this[_0x668880(0x3f0)]}),_0x13a15b[_0x668880(0x46f)]());}}function _0x3550(){const _0x721d9d=['getMember','currentUsage','_clearOtherTimers','_docSyncEditingCollabCursorService','random','stage','_id','UniverIcon','children','UniverCollaborationClientUIPlugin','beginPath','setItem','REDEMPTION_CODE_INACTIVE','cursorInfo','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers$','_refRangeService','lineTo','LICENSE_MAX_UNITS_EXCEEDED','\x20at\x20','INTERNAL_ERROR','history','_cursorShapes','fromEventSubject','SetWorksheetActivateCommand','WebBrowserSingleActiveUnitService','sessionStatus$','doc.mutation.rich-text-editing','textRanges','transformSelections','M0\x200H16V16H0z','FromArray','runRefRangeMutations','dirtyRanges','use','_initEntityListener','min','ENTITLE_COUPON_USED_UP','_lastPointer','disposeWithMe','serializeRangeWithSheet','SetTextSelectionsOperation','_revisionService','colno','_configService','collaboration.closeRoom','triggerDblclick','jiqing.500','startRow','jsxs','APPLY_NON_SEQUENTIAL_REVISION','REDEMPTION_CODE_NOT_STARTED','_initUserListener','saveImage','replace','Success','onPointerLeave$','_initStatusListener','unhandledrejection','SetFormulaCalculationStartMutation','contains','_colorAssignService','debug','touchDependencies','COLORS','INVITE_CODE_HAS_BEEN_UES','stack','DeleteRangeMoveLeftCommandId','_eventUnsubscribe','WebSocketService','tag','setAlpha','round','_releaseCalculationLimit','_monkeyPatchLogService','Failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','univer-flex\x20univer-items-center','throttleTime','handleDeleteRangeMoveLeft','asObservable','APPLY_PERMISSION_DENIED','isActive','_initUnhandledRejectionListener','LocaleService','handleInsertCol','saveOfflineData','WECHAT_HAS_BEEN_BOUND','useObservable','SetFormulaCalculationNotificationMutation','_univerInstanceService','_localStorageService','ENTITLE_COUPON_EXPIRED','_initEvent','getColor','_docSkeleton','_docStateChangeManagerService','[Window\x20Error]:\x20','117smTXfu','INVITE_CODE_REQUIRED','_uiPartsService','SOCKET_FAILED','exhaustSavingTask','2277125XQmDCO','CollaborationEvent','getCollabCursors$','UNIVER_DOC','NOT_FOUND','LOCAL_CACHE_INTERVAL','2552326ZprbPP','HTTPService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','_textBubble','add','RemoveColCommandId','TOO_MANY_REQUESTS','_messageService','registerDependencies','useCallback','sessionTicket','START_CALCULATION','_applyCommand','_transformHistoryAndStateStack','isArray','DataLoaderService','[CollaborationDataLoaderController]','_drawRectRange','collabStatus.notCollab','url(#$1','_initResize','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getActiveSheet','updateOfflineData','_name','_httpService','_localCacheService','getFormulaLimitStatusUrl','PENDING','INotificationService','collaboration.single-unit.warning','LOCAL_CACHE_INTERVAL_KEY','setParam','data','_anchor','collab-text-range-','AUTHORIZE_CODE_ILLEGAL','/run/','editingUnit','bottom','RxDisposable','getActiveRange','body','_online','_toggleOffline','_transformService','parseInt','getConfig','INVALID_ARGUMENT','selections','UnitStatus','getSkeleton','USER_NOT_INVITED_CODE','href','ENTITLE_CHAT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mergeOverrideWithDependencies','syncEditingCollabCursor','wsSessionTicketUrl','length','clsx','_onRefRangeChange','complete','_themeService','fillText','currentColor','handleInsertRangeMoveDown','with','find','Optional','isFormulaString','toStringTag','_color','clearInterval','getCoordByCell','_anchorDot','docStateChange$','collabStatus.syncing','_drawAnchor','blue.400','fromEvent','getMemberID','attrs','OffLineIcon','includes','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/frontend/logs','REDEMPTION_CODE_FULLY_REDEEMED','getColorFromTheme','InsertRangeMoveRightCommandId','m1Prime','addObjects','collabStatus.conflict','_cachedData','clipPath','IMessageService','isTransformMutationFailure','code','debounce','_instanceService','Shape','_updateSubUnitFromURLParams','createElement','LICENSE_EXPORT_SIZE_EXCEEDED','unit','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','Rect','ONLINE','_shapes','0\x200\x2016\x2016','_onCursorDelete','setTimeout','currentTheme$','getItem','mapTo','_maxFormulaLimit','_sheetSkeletonManagerService','ticket','createSocket','_scheduleHeartbeat','actions','evenodd','undoState','activeSheet$','_initDependencies','beforeCommandExecuted','setShapeProps','_docTransformSelectionsService','getRelativeToViewportCoord','2124PFplxb','CommandType','_removeCollabCursors','fill','from','_context','yellow.400','_ensureSubject','CONFLICT','svg','_handleJoinEvent','ICommandService','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_pollingInterval','displayName','has','permission.title','SUBMIT_CHANGESET_TIMEOUT','DEFAULT_WS_SESSION_TICKET_URL','MOBILE_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','params','BuiltInUIPart','defs','toString','addObject','status$','1em','DesktopCollaborationStatusDisplayController','USER_IS_ANONYMOUS','_collabCursorState$','_injector','_initCommandInterceptor','IDocClipboardService','ranges','_checkCalculationAvailable','RemoveRowCommandId','white','OTHER_CLIENTS_EDITING','eventID','resize','onCommandExecuted','purple.300','fillRule','/universer-api/license/formula/limit/start','clearTimeout','on-line-icon_clip0_910_349','_updateCollabCursors','APPLY_REVISION_CONFILICT','roomMembers','...','_taskIds','SheetCollabCursorShape','getAncestorScale','getFocusedUnit','_imageIoService','IUIPartsService','getVpScrollXYInfoByPosToVp','transformStateCache','onLocalMutation','SheetSkeletonManagerService','replaceDocRanges','redoState','whenReady','now','_handleEvent','YUUMI_NO_CUBOID_FOR_QUESTION','override','getCollabEntity$','restore','SOCKET_FAILED_RETRY','_hasFormulaInDirtyRanges','idSuffix','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','_getFormulaLimitStatus','EMAIL_HAS_BEEN_BOUND','ALREADY_EXISTS','RefRangeService','Tooltip','_memberID','_docTransformIMECacheService','getParam','flatMap','_setFormulaLimitStatus','none','red.300','_getMergeRange','_selfUnitIDs','UniverInstanceType','FormulaExecuteStageType','_startSheetCollabCursor','totalFormulasToCalculate','saveTaskMap','10080864ntUGfx','_status$','transformMutationsWithChangeset','RevisionService','_lastResponseTimestamp','disableLocalCache','PY_RUNTIME_SCRIPT_ERROR','ColorKit','_drawTextRange','ENTITLE_INVALID_COUPON_CODE','Plugin','SessionStatus','getUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','setStateCache','onTransformChange$','onRendered','CollaborationStatus','_disabled','CHANGESET_REVISION_CONFILICT','invokeId','rgba(255,\x20255,\x20255,\x200.01)','addEventListener','UniverCollaborationClientPlugin','functionsExecutedState','forwardRef','post','result','_transformUndoRedoStack','unitId','get','entityInit$','urlChange$','event$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','endRow','USER_NOT_FOUND','Error','6764hNwMLO','MOBILE_HAS_BEEN_BOUND','key','replaceState','formula.calculation.unable','CollaborationController','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_notificationService','releaseFormulaLimitUrl','addClipboardHook','_backgroundColor','ILogService','delete','assignAColorForMemberID','stringify','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','InsertColCommandId','formula.calculation.waiting','distinctUntilChanged','CollaborationUIEventId','toDisposable','IUniverInstanceService','LICENSE_IMPORT_SIZE_EXCEEDED','collabCursorState$','join','shift','name','Vector2','getUnhiddenWorksheets','assign','switchMap','searchParams','subscribe','_getScale','YUUMI_UNABLE_LOAD_URL','TEXT_RANGE_LAYER_INDEX','unitID','send','subUnitId','range','filter','DocStateChangeManagerService','_removeClearOtherTimer','_collabCursorController','_renderManagerService','location','CollaborationUIEventService','_document','getUnitId','newValue','onPointerEnter$','mask','set','YUUMI_URL_COL_OUT_OF_RANGE','RegularPolygon','registerBeforeClose','7snBShG','Unknown\x20user','_cursorInfo$','handleMoveRange','createInstance','_showGuardMessage','ThemeService','catch','[Unhandled\x20Rejection]:\x20','742810pnGEYC','UNRECOGNIZED','findNodePositionByCharIndex','xlink:href','getRenderById','color','useDependency','RemoteUniscriptService','lineno','arc','UNDEFINED','SYNCED','getCurrentSelections','_hovered','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOnline','UPDATE_CURSOR','[RemoteUniscriptService]:\x20no\x20focused\x20unit','reconnect','pushState','_entities','hide','getTypeOfUnitAdded$','MessageType','IBeforeCloseService','some','Injector','SetDocZoomRatioOperation','session.collaboration-timeout','executeCommand','MemberService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','shareReplay','_initStatusComponent','dispose','YUUMI_AI_RUN_FAILED','entries','row','_startCalculationLimit','takeUntil','setActiveRange','useRef','_range','_getSaveTimeout','show','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','getTypeOfUnitDisposed$','BehaviorSubject','_hover','_collaborationUIEventService','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_DISTRO_REJECTED','_cursors','skeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','IRenderManagerService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','/universer-api/license/formula/limit/status','memberID','_collaborationController','_registerRenderDependencies','_render','loadUnit','Module','focused$','PAYMENT_CHANNEL_NOT_SUPPORT','split','Loading','OFFLINE','_setupSubUnitSync','message','_scene','_currentUsage','AWAITING','height','defineProperty','runId','_labelPosition','jsx','TEXT','_commandService','_config','isFormulaId','translate(.97)','EMAIL_VERIFY_CODE_MISMATCH','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','deserializeRangeWithSheet','fillStyle','off-line-icon_clip0_910_343','session.connection-failed','getUniverSheetInstance','combineLatest','stageInfo','startsWith','_localeService','push','onMouseMove','BrowserCollaborationSocketService','APPLY_DUPLICATED','_handleHover','_roomMembers$','Rectangle','loadOfflineData','DependentOn','DOC_RANGE_TYPE','IConfigService','substring','/universer-api/license/formula/limit/done','imageSourceType','registerRenderModule','CollaborationSocketService','currentSkeleton$','handleIRemoveRow','filename','text','EffectRefRangId','SNAPSHOT_HAS_BEEN_REMOVED','dispose$','APPLY_REJECT','removeEventListener','_collabSessionService','path','?taskId=','top','collabStatus.offline','ENTITLE_USE_COUPON_NOT_1ST_TRADE','error','font','Workbook','_unitStatus','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_DENIED','isTransformMutationsWithChangesetSuccess','size','DocSkeletonManagerService','UNAUTHENTICATED','getRangePointData','_createSocketURL','_handleLeaveEvent','_collaborationSessionService','init','_syncEditingCollabCursorService','registerRefRange','deepClone','all','_onCursorUpdate','_startDocCollabCursor','collab-text-anchor-','NodePositionConvertToCursor','getLocalCacheKey','forEach','measureText','cursorInfo$','m2Prime','save','_updateLocalCursor','DocIMEInputManagerService','type','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','13281232OzTRXD','getCellPositionByOffset','selection','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','YUUMI_ASYNCIO_CANCELLED','pluginName','_getSessionTicket','getSheetBySheetId','CanceledError','HEADER_MENU','NodePositionConvertToRectRange','then','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','transformIMECache','YUUMI_CONNECTOR_URL_NOT_FOUND','unsubscribe','_checkAndWaitForCalculationPermission','ISnapshotServerService','RECT','_session','on-line-icon','onStarting','_docTransformStateCacheService','_initCommandExecutedListener','merge','subunit','_unitOnClients','ENTITLE_NEED_BILLING_ADDRESS','LOGIN_FAILED','WebURLService','collab-client.tooltip.reconnect','_initWindowErrorListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','session.will-retry','_urlService','off-line-icon','socket$','mutations','subscribeEvent','transformMutation','source','Disposable','_entityInit$','reason','CONNECTOR_DATA_TOO_LARGE','_assignedColors','_handleHeartbeatEvent','getUndoRedoMutationParamsCache','_colorIndex','toRgbString','div','[LogService\x20Error]:\x20','collabStatus.synced','_setupBeforeClosingHandler','setInterval','_saveCache','backgroundColor','_beforeCloseService','IURLService','width','_hideTimer','ITransformService','storage','NOT_COLLAB','ENTITLE_DUP_SUBSCRIPTION','transformRemoteChangeset','addHandlerCallback','INVALID_INVITE_CODE','CollaborationSessionService','registerComponent','endColumn','symbol','trim','_registerDependencies','unshift','getStateCache','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','debounceTime','getValue','limitInfo','_uploadLog','origin','SUCCESS','_scheduleSaving','_docSkeletonManagerService','RichTextEditingMutation','CollaborationDataLoaderController','1070503KzYION','_send','_clearPolling','requireSession','_updateURLWithCurrentState','IRemoteInstanceService','map','Subject','getCurrentRevOfUnit','handleInsertRangeMoveRight','black','getOwnPropertyDescriptor','REDEMPTION_INVALID_CODE','univerjs-icon\x20univerjs-icon-','InsertRowCommandId','pipe','COMPLETION_FINISHED','ILocalCacheService','DATA_SOURCE_TOO_LARGE','_saveTaskMap','CURRENT_STATUS_CANNOT_OPERATE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UNIVER_SHEET','DocSelectionManagerService','runOnServer','SetSelectionsOperation','drawWith','values','transform','string','Inject','_logService','_getSheetObject','generateRandomId','OTHER_CLIENT_EDITING','ENTITLE_INSUFFICIENT_QUOTA','getViewport','_dataLoaderService','YUUMI_RATE_OVER_LIMIT','ISocketService','_heartbeatTimer','Tools','getSheetId'];_0x3550=function(){return _0x721d9d;};return _0x3550();}var wt=Object[_0x4a7abe(0x319)],yt=(_0x587126,_0x21f875,_0x3338e4,_0x253f5c)=>{const _0x474f8=_0x4a7abe;for(var _0x478f0b=_0x253f5c>0x1?void 0x0:_0x253f5c?wt(_0x21f875,_0x3338e4):_0x21f875,_0x1442a4=_0x587126[_0x474f8(0x3e3)]-0x1,_0x459a06;_0x1442a4>=0x0;_0x1442a4--)(_0x459a06=_0x587126[_0x1442a4])&&(_0x478f0b=_0x459a06(_0x478f0b)||_0x478f0b);return _0x478f0b;},ue=(_0x532fc7,_0x5de633)=>(_0x1e8793,_0x222798)=>_0x5de633(_0x1e8793,_0x222798,_0x532fc7);const $t=0x1389;let Ce=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x182ab7,_0x29264e,_0xec329,_0x384c85){const _0x5cb118=_0x4a7abe;super(),_(this,_0x5cb118(0x247),new Set()),_(this,_0x5cb118(0x35f),null),(this[_0x5cb118(0x42e)]=_0x182ab7,this['_sheetSkeletonManagerService']=_0x29264e,this[_0x5cb118(0x1fc)]=_0xec329,this[_0x5cb118(0x3e7)]=_0x384c85,this[_0x5cb118(0x3a9)]());}[_0x4a7abe(0x3a9)](){const _0x13631c=_0x4a7abe;this[_0x13631c(0x41c)]['currentSkeleton$']['pipe']($[_0x13631c(0x239)](this['dispose$']),$['switchMap'](_0x2921e5=>{const _0x822019=_0x13631c;if(_0x2921e5){const _0x3e8fb9=_0x2921e5['sheetId'];return I[_0x822019(0x26e)](this['_collabCursorController'][_0x822019(0x3a2)](this['_context'][_0x822019(0x1c7)]),this[_0x822019(0x3e7)][_0x822019(0x418)])['pipe']($[_0x822019(0x314)](([_0x213e66,_0x2dfe56])=>{const _0x589de8=_0x822019,_0x3573b1=new Map();return _0x213e66[_0x589de8(0x2aa)]((_0x490583,_0x13d2f7)=>{const _0x2d30b4=_0x589de8;if(_0x490583['sheetID']===_0x3e8fb9){const _0x4d68ba={..._0x490583};_0x4d68ba[_0x2d30b4(0x217)]=this[_0x2d30b4(0x3e7)][_0x2d30b4(0x400)](_0x490583[_0x2d30b4(0x217)]),_0x3573b1['set'](_0x13d2f7,_0x4d68ba);}}),{'skeleton':_0x2921e5,'cursors':_0x3573b1};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x13631c(0x1f1)](({skeleton:_0x2dbc1,cursors:_0x20619a})=>{const _0xa6e18f=_0x13631c;this[_0xa6e18f(0x42b)](),_0x2dbc1&&this[_0xa6e18f(0x459)](_0x2dbc1,_0x20619a);}),this['_sheetSkeletonManagerService'][_0x13631c(0x282)][_0x13631c(0x1f1)](_0x347a44=>{const _0x583510=_0x13631c;if(_0x347a44==null)return;const {skeleton:_0x4e7ec1}=_0x347a44,{scene:_0x8ba0f8}=this[_0x583510(0x42e)];_0x8ba0f8['onPointerMove$'][_0x583510(0x2db)](a[_0x583510(0x40a)](_0x46f583=>{const _0x49f000=_0x583510;var _0x473446,_0xeeb589;const {offsetX:_0x194d8b,offsetY:_0x55b181}=_0x46f583,{x:_0x140ba8,y:_0x48752e}=_0x8ba0f8[_0x49f000(0x428)](C[_0x49f000(0x1ec)]['FromArray']([_0x194d8b,_0x55b181])),{scaleX:_0x126b0a,scaleY:_0x5b2d7c}=_0x8ba0f8[_0x49f000(0x45f)](),_0x1d2e16=_0x8ba0f8[_0x49f000(0x332)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x5385f6=_0x8ba0f8[_0x49f000(0x463)](C['Vector2'][_0x49f000(0x358)]([_0x140ba8,_0x48752e]),_0x1d2e16),_0x34b3ca=_0x4e7ec1[_0x49f000(0x2b4)](_0x194d8b,_0x55b181,_0x126b0a,_0x5b2d7c,_0x5385f6);((_0x473446=this[_0x49f000(0x35f)])==null?void 0x0:_0x473446['column'])===_0x34b3ca['column']&&((_0xeeb589=this[_0x49f000(0x35f)])==null?void 0x0:_0xeeb589['row'])===_0x34b3ca[_0x49f000(0x237)]||this[_0x49f000(0x247)][_0x49f000(0x2aa)](_0x5d4ca2=>{_0x5d4ca2['onMouseMove'](_0x34b3ca);});},0x64));});}['_updateCollabCursors'](_0x569e35,_0xe09400){const _0xdd576e=_0x4a7abe;var _0x3968f9;const _0x8f9a6c=(_0x3968f9=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3968f9[_0xdd576e(0x248)];if(!_0x8f9a6c)return;const _0x50b5fd=this[_0xdd576e(0x32e)]();if(!_0x50b5fd)return;this[_0xdd576e(0x247)][_0xdd576e(0x2aa)](_0x368606=>{_0x368606['makeDirty']();});const {scene:_0x32edab}=_0x50b5fd,_0x15c206=xt(Array[_0xdd576e(0x42d)](_0xe09400['values']()))[_0xdd576e(0x314)](_0x4a8e36=>{const _0x465e2e=_0xdd576e,{color:_0x5134a0,range:_0x704997,name:_0x5bc3d3,selection:_0xdfec17,sheetID:_0x45de84}=_0x4a8e36,{startColumn:_0x1a4c8b,startRow:_0x42e426,endColumn:_0xc4110d,endRow:_0x41f48f}=_0x704997,_0x17b610=J[_0x465e2e(0x3f2)](_0x42e426,_0x1a4c8b,_0x32edab,_0x8f9a6c),_0x7c6d74=J['getCoordByCell'](_0x41f48f,_0xc4110d,_0x32edab,_0x8f9a6c),{columnHeaderHeightAndMarginTop:_0x2d35bf}=_0x8f9a6c,{startX:_0x18c97c,startY:_0x3ea8ea}=_0x17b610,{endX:_0x2d3370,endY:_0x4a291a}=_0x7c6d74,_0xbc5c5f=_0x2d3370-_0x18c97c,_0x54fc60=_0x4a291a-_0x3ea8ea,_0x2442b1={'labelPosition':_0x3ea8ea-_0x2d35bf>=X?_0x465e2e(0x28e):_0x465e2e(0x3ce),'sheetID':_0x45de84,'range':_0x704997,'color':_0x5134a0,'name':_0x5bc3d3,'selection':_0xdfec17,'left':_0x18c97c,'top':_0x3ea8ea,'width':_0xbc5c5f,'height':_0x54fc60,'evented':!0x1,'zIndex':$t};return new je(_0x5bc3d3,_0x2442b1);});_0x32edab[_0xdd576e(0x403)](_0x15c206,At),this['_cursors']=new Set(_0x15c206);}['_removeCollabCursors'](){const _0x44a3db=_0x4a7abe;var _0x440d9f;(_0x440d9f=this['_cursors'])==null||_0x440d9f[_0x44a3db(0x2aa)](_0x19f345=>_0x19f345[_0x44a3db(0x234)]());}[_0x4a7abe(0x32e)](){const _0x5a095f=_0x4a7abe;return J['getSheetObject'](this['_context'][_0x5a095f(0x410)],this[_0x5a095f(0x42e)]);}};Ce=yt([ue(0x1,a[_0x4a7abe(0x32c)](J[_0x4a7abe(0x466)])),ue(0x2,a[_0x4a7abe(0x32c)](F)),ue(0x3,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ce);function xt(_0xa4741b){const _0x17ce17=_0x4a7abe,_0x44095d=new Map();return _0xa4741b['forEach'](_0x64fee4=>{const _0x259e86=_0xdbe3;if(_0x44095d['has'](_0x64fee4[_0x259e86(0x2b5)])){const _0x2e7589=_0x44095d[_0x259e86(0x1c8)](_0x64fee4[_0x259e86(0x2b5)]);_0x2e7589['name']+=',\x20'+_0x64fee4[_0x259e86(0x1eb)];}else _0x44095d[_0x259e86(0x205)](_0x64fee4[_0x259e86(0x2b5)],_0x64fee4);}),Array[_0x17ce17(0x42d)](_0x44095d[_0x17ce17(0x329)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x36bcb1,_0xc9178f,_0x142632,_0x1fa59f)=>{const _0x4cd36f=_0x4a7abe;for(var _0xbf3285=_0x1fa59f>0x1?void 0x0:_0x1fa59f?Bt(_0xc9178f,_0x142632):_0xc9178f,_0x4df951=_0x36bcb1[_0x4cd36f(0x3e3)]-0x1,_0x4f9372;_0x4df951>=0x0;_0x4df951--)(_0x4f9372=_0x36bcb1[_0x4df951])&&(_0xbf3285=_0x4f9372(_0xbf3285)||_0xbf3285);return _0xbf3285;},y=(_0x254f36,_0x338118)=>(_0x19dd2a,_0x3e662c)=>_0x338118(_0x19dd2a,_0x3e662c,_0x254f36);let Z=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c7432,_0x1c558,_0xde35cc,_0xf668ea,_0x2a5f8b,_0x17b3c6){const _0x19d6ad=_0x4a7abe;super(),this[_0x19d6ad(0x2ee)]=_0x4c7432,this[_0x19d6ad(0x3c1)]=_0x1c558,this['_collaborationUIEventService']=_0xde35cc,this['_messageService']=_0xf668ea,this[_0x19d6ad(0x1d8)]=_0x2a5f8b,this[_0x19d6ad(0x271)]=_0x17b3c6,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a7abe(0x2ea)](){const _0x3099ed=_0x4a7abe;this[_0x3099ed(0x360)](this['_beforeCloseService'][_0x3099ed(0x208)](()=>{const _0x494a91=_0x3099ed;if(this[_0x494a91(0x3c1)][_0x494a91(0x487)][_0x494a91(0x299)])return this[_0x494a91(0x271)]['t']('collaboration.offline-data-not-saved');}));}[_0x4a7abe(0x396)](){const _0x328378=_0x4a7abe;this[_0x328378(0x360)](this[_0x328378(0x244)][_0x328378(0x1cb)][_0x328378(0x1f1)](_0x4634a1=>{const _0x58301b=_0x328378;_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x330)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x3c5))}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['CLOSE_ROOM']&&this['_messageService'][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this['_localeService']['t'](_0x58301b(0x366))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x297)]&&this[_0x58301b(0x1d8)][_0x58301b(0x23e)]({'title':this[_0x58301b(0x271)]['t'](_0x58301b(0x43a)),'content':this[_0x58301b(0x271)]['t']('permission.content'),'type':_0x58301b(0x291),'duration':0x0}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x431)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x366))+'('+_0x4634a1['data']+')'}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['JOIN_ROOM_FAILED']&&this[_0x58301b(0x3ae)]['show']({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x4634a1['data']||'')}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x470)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x2d6))}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x39e)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p['MessageType'][_0x58301b(0x1d0)],'content':this['_localeService']['t'](_0x58301b(0x26c))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x43b)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x22e))});}));}};Z=Ft([y(0x0,O[_0x4a7abe(0x22a)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1ff)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4a7abe(0x3c4)]),y(0x5,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],Z);var jt=Object[_0x4a7abe(0x319)],kt=(_0x13175c,_0x5b945a,_0x9182a3,_0x1bb8ad)=>{for(var _0x2a3813=_0x1bb8ad>0x1?void 0x0:_0x1bb8ad?jt(_0x5b945a,_0x9182a3):_0x5b945a,_0x3775cc=_0x13175c['length']-0x1,_0x19ce22;_0x3775cc>=0x0;_0x3775cc--)(_0x19ce22=_0x13175c[_0x3775cc])&&(_0x2a3813=_0x19ce22(_0x2a3813)||_0x2a3813);return _0x2a3813;},z=(_0x53c7e4,_0x19e17c)=>(_0x413bb4,_0x116aee)=>_0x19e17c(_0x413bb4,_0x116aee,_0x53c7e4);let Q=class extends a[_0x4a7abe(0x2de)]{constructor(_0x331803,_0x476f39,_0x4734b6,_0x1f7c99){const _0x2cfc4b=_0x4a7abe;super(),_(this,'_memberID'),(this[_0x2cfc4b(0x449)]=_0x331803,this[_0x2cfc4b(0x3c0)]=_0x476f39,this[_0x2cfc4b(0x32d)]=_0x4734b6,this[_0x2cfc4b(0x29f)]=_0x1f7c99,this[_0x2cfc4b(0x3a9)]());}['_init'](){const _0x5afa18=_0x4a7abe;this[_0x5afa18(0x2d4)](),this[_0x5afa18(0x38c)](),this[_0x5afa18(0x383)](),this[_0x5afa18(0x36d)]();}[_0x4a7abe(0x36d)](){const _0x4a238a=_0x4a7abe;this['disposeWithMe'](this[_0x4a238a(0x29f)][_0x4a238a(0x2d9)][_0x4a238a(0x1f1)](_0x4fe711=>{const _0x59cb3f=_0x4a238a;this[_0x59cb3f(0x47a)]=_0x4fe711==null?void 0x0:_0x4fe711[_0x59cb3f(0x24d)];}));}[_0x4a7abe(0x2d4)](){const _0x3afa54=_0x4a7abe,_0x29222c=_0x37c0e2=>{const _0x13a13f=_0xdbe3;var _0x3cddc7;this[_0x13a13f(0x307)](_0x13a13f(0x291),_0x13a13f(0x39a)+_0x37c0e2['message']+_0x13a13f(0x34c)+_0x37c0e2[_0x13a13f(0x284)]+':'+_0x37c0e2[_0x13a13f(0x21a)]+':'+_0x37c0e2[_0x13a13f(0x364)]+'\x0a'+(((_0x3cddc7=_0x37c0e2[_0x13a13f(0x291)])==null?void 0x0:_0x3cddc7[_0x13a13f(0x37b)])||''));};window[_0x3afa54(0x1c0)](_0x3afa54(0x291),_0x29222c),this[_0x3afa54(0x360)](()=>{const _0x5275df=_0x3afa54;window[_0x5275df(0x28a)](_0x5275df(0x291),_0x29222c);});}[_0x4a7abe(0x38c)](){const _0x271e38=_0x4a7abe,_0x5e2911=_0x481406=>{const _0x10bfca=_0xdbe3;this[_0x10bfca(0x307)](_0x10bfca(0x291),_0x10bfca(0x211)+_0x481406[_0x10bfca(0x2e0)]);};window[_0x271e38(0x1c0)](_0x271e38(0x373),_0x5e2911),this[_0x271e38(0x360)](()=>{const _0x5b39ab=_0x271e38;window[_0x5b39ab(0x28a)](_0x5b39ab(0x373),_0x5e2911);});}['_monkeyPatchLogService'](){const _0x1be364=_0x4a7abe,_0x344fbf=this[_0x1be364(0x32d)]['error']['bind'](this['_logService']);this[_0x1be364(0x32d)][_0x1be364(0x291)]=(..._0x5b2e47)=>{const _0x50e5e0=_0x1be364,_0x32a271=_0x5b2e47[_0x50e5e0(0x314)](_0x189cca=>_0x189cca instanceof Error?_0x189cca[_0x50e5e0(0x259)]+'\x0a'+_0x189cca['stack']:String(_0x189cca))[_0x50e5e0(0x1e9)]('\x20');this[_0x50e5e0(0x307)](_0x50e5e0(0x291),_0x50e5e0(0x2e8)+_0x32a271),_0x344fbf(..._0x5b2e47);},this[_0x1be364(0x360)](()=>{const _0x1781b5=_0x1be364;this[_0x1781b5(0x32d)][_0x1781b5(0x291)]=_0x344fbf;});}[_0x4a7abe(0x307)](_0x5471df,_0x26ea07){const _0xbe93ce=_0x4a7abe;try{const _0x1749dd={'userId':this['_memberID'],'logLabel':_0x5471df,'content':_0x26ea07};this[_0xbe93ce(0x3c0)][_0xbe93ce(0x1c4)](_0xbe93ce(0x3fe),{'body':_0x1749dd})[_0xbe93ce(0x210)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4a7abe(0x22c)])),z(0x1,a['Inject'](x[_0x4a7abe(0x3a7)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4a7abe(0x2f9)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4a7abe(0x319)],Wt=(_0xf137f9,_0x282274,_0x53c2d4,_0x423e77)=>{const _0x132415=_0x4a7abe;for(var _0x3428aa=_0x423e77>0x1?void 0x0:_0x423e77?Ht(_0x282274,_0x53c2d4):_0x282274,_0x202289=_0xf137f9[_0x132415(0x3e3)]-0x1,_0x1ecbee;_0x202289>=0x0;_0x202289--)(_0x1ecbee=_0xf137f9[_0x202289])&&(_0x3428aa=_0x1ecbee(_0x3428aa)||_0x3428aa);return _0x3428aa;},Ae=(_0x2b93d7,_0x4f797d)=>(_0x2956f0,_0x4e3448)=>_0x4f797d(_0x2956f0,_0x4e3448,_0x2b93d7);let ee=class{constructor(_0x310e45,_0x5686a7){const _0x2e484c=_0x4a7abe;this['_transformService']=_0x310e45,this[_0x2e484c(0x1fd)]=_0x5686a7;}[_0x4a7abe(0x2c2)](_0x4e2f7e){const _0x2ba60e=_0x4a7abe;this[_0x2ba60e(0x1c6)](_0x4e2f7e),this[_0x2ba60e(0x474)](_0x4e2f7e);}[_0x4a7abe(0x2f6)](_0x708a72){const _0x417341=_0x4a7abe,{unitID:_0x4921a6}=_0x708a72,_0x36de3b=this[_0x417341(0x1fd)][_0x417341(0x216)](_0x4921a6)[_0x417341(0x3eb)](T['DocIMEInputManagerService']),{redoCache:_0x2843c7}=_0x36de3b[_0x417341(0x2e4)]();if(_0x2843c7['length']===0x0)return _0x708a72;let _0x5e1db8=a['Tools'][_0x417341(0x2a3)](_0x708a72[_0x417341(0x2da)][0x0]);for(let _0x35777a=0x0;_0x35777a<_0x2843c7['length'];_0x35777a++){const _0x33fa66={'id':_0x417341(0x354),'params':{..._0x2843c7[_0x35777a]}},_0x3a786a=this[_0x417341(0x3d4)][_0x417341(0x2dc)](_0x5e1db8,_0x33fa66,!0x1);if(g['isTransformMutationFailure'](_0x3a786a))throw _0x3a786a['error'];_0x5e1db8=_0x3a786a[_0x417341(0x402)];}return{...a[_0x417341(0x337)][_0x417341(0x2a3)](_0x708a72),'mutations':[_0x5e1db8]};}[_0x4a7abe(0x1c6)](_0x1a6e5e){const _0x1fb974=_0x4a7abe,{unitID:_0x50116f}=_0x1a6e5e,_0x1d4ecc=this[_0x1fb974(0x1fd)][_0x1fb974(0x216)](_0x50116f)[_0x1fb974(0x3eb)](T[_0x1fb974(0x2b0)]),{undoCache:_0xe0f278,redoCache:_0x59b16d}=_0x1d4ecc['getUndoRedoMutationParamsCache']();if(_0xe0f278['length']===0x0||_0x59b16d[_0x1fb974(0x3e3)]===0x0)return;const _0x1cb71=[],_0x2fbf81=[];let _0x4ce7b8=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e[_0x1fb974(0x2da)][0x0]),_0x3fc5be=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e['mutations'][0x0]);for(let _0xf66db3=_0xe0f278[_0x1fb974(0x3e3)]-0x1;_0xf66db3>=0x0;_0xf66db3--){const _0x5a1b60={'id':_0x1fb974(0x354),'params':{..._0xe0f278[_0xf66db3]}},_0x1e8809={'id':_0x1fb974(0x354),'params':{..._0x59b16d[_0xf66db3]}},_0x1f4c36=this[_0x1fb974(0x3d4)]['transformMutation'](_0x4ce7b8,_0x5a1b60,!0x1),_0x1984ec=this[_0x1fb974(0x3d4)][_0x1fb974(0x2dc)](_0x3fc5be,_0x1e8809,!0x1);if(g[_0x1fb974(0x408)](_0x1f4c36))throw _0x1f4c36[_0x1fb974(0x291)];if(g['isTransformMutationFailure'](_0x1984ec))throw _0x1984ec[_0x1fb974(0x291)];_0x1cb71['unshift'](_0x1f4c36[_0x1fb974(0x2ad)]['params']),_0x2fbf81[_0x1fb974(0x2ff)](_0x1984ec[_0x1fb974(0x2ad)][_0x1fb974(0x43f)]),_0x4ce7b8=_0x1f4c36[_0x1fb974(0x402)],_0x3fc5be=_0x1984ec['m1Prime'];}_0x1d4ecc['setUndoRedoMutationParamsCache']({'undoCache':_0x1cb71,'redoCache':_0x2fbf81});}[_0x4a7abe(0x474)](_0x362680){const _0x1a7f6c=_0x4a7abe,{unitID:_0x4a0b84}=_0x362680,_0x4924c2=this[_0x1a7f6c(0x1fd)]['getRenderById'](_0x4a0b84)[_0x1a7f6c(0x3eb)](T[_0x1a7f6c(0x2b0)]),_0x22d9b7=_0x4924c2[_0x1a7f6c(0x3d0)]();if(_0x22d9b7==null)return;const _0x2c7f83=[{'id':_0x1a7f6c(0x354),'params':{'unitId':_0x362680['unitID'],'actions':null,'textRanges':[_0x22d9b7]}}],_0x10a899=this['_transformService']['transformMutationsWithChangeset'](_0x362680,_0x2c7f83);if(!g[_0x1a7f6c(0x298)](_0x10a899))throw _0x10a899['error'];const _0x1ccd92=_0x10a899['m2Prime'][0x0]['params'][_0x1a7f6c(0x355)];Array[_0x1a7f6c(0x3b5)](_0x1ccd92)&&_0x1ccd92[_0x1a7f6c(0x3e3)]&&_0x4924c2[_0x1a7f6c(0x23a)](_0x1ccd92[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a7abe(0x2f2)]),Ae(0x1,C[_0x4a7abe(0x24a)])],ee);var Vt=Object[_0x4a7abe(0x319)],Gt=(_0x59995b,_0x4886c0,_0x58e30d,_0x4a83a6)=>{const _0xc8270f=_0x4a7abe;for(var _0x14203a=_0x4a83a6>0x1?void 0x0:_0x4a83a6?Vt(_0x4886c0,_0x58e30d):_0x4886c0,_0x14504a=_0x59995b[_0xc8270f(0x3e3)]-0x1,_0xe009ec;_0x14504a>=0x0;_0x14504a--)(_0xe009ec=_0x59995b[_0x14504a])&&(_0x14203a=_0xe009ec(_0x14203a)||_0x14203a);return _0x14203a;},Ie=(_0x5226cb,_0x185afb)=>(_0x3e4661,_0x3622e4)=>_0x185afb(_0x3e4661,_0x3622e4,_0x5226cb);let te=class{constructor(_0x25f974,_0x3edf63,_0xf26462){const _0x438617=_0x4a7abe;this[_0x438617(0x449)]=_0x25f974,this['_transformService']=_0x3edf63,this[_0x438617(0x399)]=_0xf26462;}[_0x4a7abe(0x464)](_0x4cdc7f){this['_transformHistoryAndStateStack'](_0x4cdc7f);}[_0x4a7abe(0x2f6)](_0x4ba2f8){const _0x9b0a42=_0x4a7abe,{unitID:_0x1a078a}=_0x4ba2f8,{collaboration:_0x5be3f9}=this['_docStateChangeManagerService']['getStateCache'](_0x1a078a);if(_0x5be3f9[_0x9b0a42(0x3e3)]===0x0)return _0x4ba2f8;let _0x5233d6=a[_0x9b0a42(0x337)]['deepClone'](_0x4ba2f8[_0x9b0a42(0x2da)][0x0]);for(let _0x32024e=0x0;_0x32024e<_0x5be3f9['length'];_0x32024e++){const _0x34a9d3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5be3f9[_0x32024e][_0x9b0a42(0x1c7)],..._0x5be3f9[_0x32024e][_0x9b0a42(0x468)]}},_0x997396=this[_0x9b0a42(0x3d4)][_0x9b0a42(0x2dc)](_0x5233d6,_0x34a9d3,!0x1);if(g[_0x9b0a42(0x408)](_0x997396))throw _0x997396['error'];_0x5233d6=_0x997396['m1Prime'];}return{...a['Tools']['deepClone'](_0x4ba2f8),'mutations':[_0x5233d6]};}[_0x4a7abe(0x3b4)](_0x297746){const _0x844299=_0x4a7abe,{unitID:_0x349b00}=_0x297746,{history:_0x4ce08d,collaboration:_0x7efe33}=this[_0x844299(0x399)][_0x844299(0x300)](_0x349b00);if(_0x4ce08d['length']===0x0&&_0x7efe33[_0x844299(0x3e3)]===0x0)return;const _0x348f42=[],_0x2f134e=[];let _0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x2e2f15=_0x4ce08d[_0x844299(0x3e3)]-0x1;_0x2e2f15>=0x0;_0x2e2f15--){const _0x22c640={'id':_0x844299(0x354),'params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['undoState']}},_0x1efc48={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['redoState']}},_0x223267=this[_0x844299(0x3d4)][_0x844299(0x2dc)](_0x4b1b05,_0x22c640,!0x1),_0xf2b24e=this[_0x844299(0x3d4)]['transformMutation'](_0xa6c23e,_0x1efc48,!0x1);if(g[_0x844299(0x408)](_0x223267))throw _0x223267[_0x844299(0x291)];if(g[_0x844299(0x408)](_0xf2b24e))throw _0xf2b24e[_0x844299(0x291)];_0x348f42[_0x844299(0x2ff)]({..._0x4ce08d[_0x2e2f15],'undoState':_0x223267['m2Prime'][_0x844299(0x43f)],'redoState':_0xf2b24e[_0x844299(0x2ad)]['params']}),_0x4b1b05=_0x223267['m1Prime'],_0xa6c23e=_0xf2b24e['m1Prime'];}_0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x5d3356=_0x7efe33['length']-0x1;_0x5d3356>=0x0;_0x5d3356--){const _0xee86f2={'id':_0x844299(0x354),'params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x422)]}},_0x5a5247={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x468)]}},_0x333b77=this['_transformService']['transformMutation'](_0x4b1b05,_0xee86f2,!0x1),_0x55d69a=this['_transformService'][_0x844299(0x2dc)](_0xa6c23e,_0x5a5247,!0x1);if(g[_0x844299(0x408)](_0x333b77))throw _0x333b77['error'];if(g[_0x844299(0x408)](_0x55d69a))throw _0x55d69a[_0x844299(0x291)];_0x2f134e[_0x844299(0x2ff)]({..._0x7efe33[_0x5d3356],'undoState':_0x333b77[_0x844299(0x2ad)][_0x844299(0x43f)],'redoState':_0x55d69a[_0x844299(0x2ad)][_0x844299(0x43f)]}),_0x4b1b05=_0x333b77[_0x844299(0x402)],_0xa6c23e=_0x55d69a[_0x844299(0x402)];}this['_docStateChangeManagerService'][_0x844299(0x1b8)](_0x349b00,{'history':_0x348f42,'collaboration':_0x2f134e});}};te=Gt([Ie(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Ie(0x1,g[_0x4a7abe(0x2f2)]),Ie(0x2,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)]))],te);var Xt=Object[_0x4a7abe(0x319)],Kt=(_0x310483,_0x399182,_0x35e49a,_0xb3c3bb)=>{for(var _0x640f36=_0xb3c3bb>0x1?void 0x0:_0xb3c3bb?Xt(_0x399182,_0x35e49a):_0x399182,_0xbd98a7=_0x310483['length']-0x1,_0xb4065;_0xbd98a7>=0x0;_0xbd98a7--)(_0xb4065=_0x310483[_0xbd98a7])&&(_0x640f36=_0xb4065(_0x640f36)||_0x640f36);return _0x640f36;},Pe=(_0x4500ab,_0x2d0c38)=>(_0x1f73b0,_0x28e623)=>_0x2d0c38(_0x1f73b0,_0x28e623,_0x4500ab);let se=class{constructor(_0x3c5781,_0x216b1c){const _0x3ca883=_0x4a7abe;this[_0x3ca883(0x449)]=_0x3c5781,this['_transformService']=_0x216b1c;}['transformSelections'](_0x345e04){const _0x3e3304=_0x4a7abe;var _0x4d62c1;const _0x41c6f9=this['_injector'][_0x3e3304(0x1c8)](V[_0x3e3304(0x325)]),_0x2e079b=(_0x4d62c1=_0x41c6f9['getDocRanges']())!=null?_0x4d62c1:[];if(_0x2e079b[_0x3e3304(0x3e3)]===0x0)return;const _0x47daf7=_0x345e04[_0x3e3304(0x1f5)],_0x303dba=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47daf7,'actions':null,'textRanges':_0x2e079b}}],_0x52fae6=this[_0x3e3304(0x3d4)][_0x3e3304(0x48a)](_0x345e04,_0x303dba);if(!g[_0x3e3304(0x298)](_0x52fae6))throw _0x52fae6[_0x3e3304(0x291)];const _0x4dfe34=_0x52fae6['m2Prime'][0x0][_0x3e3304(0x43f)][_0x3e3304(0x355)];Array['isArray'](_0x4dfe34)&&_0x4dfe34[_0x3e3304(0x3e3)]&&_0x41c6f9[_0x3e3304(0x467)](_0x4dfe34,{'unitId':_0x47daf7,'subUnitId':_0x47daf7},!0x1);}};se=Kt([Pe(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Pe(0x1,g[_0x4a7abe(0x2f2)])],se);var qt=Object[_0x4a7abe(0x319)],zt=(_0x330aa5,_0x4c5109,_0x246e7b,_0x5170cc)=>{const _0xc2cf0b=_0x4a7abe;for(var _0xbef097=_0x5170cc>0x1?void 0x0:_0x5170cc?qt(_0x4c5109,_0x246e7b):_0x4c5109,_0x123132=_0x330aa5[_0xc2cf0b(0x3e3)]-0x1,_0xd5de0a;_0x123132>=0x0;_0x123132--)(_0xd5de0a=_0x330aa5[_0x123132])&&(_0xbef097=_0xd5de0a(_0xbef097)||_0xbef097);return _0xbef097;},N=(_0x31af66,_0x197be6)=>(_0x45f057,_0x10719c)=>_0x197be6(_0x45f057,_0x10719c,_0x31af66);let ie=class extends a[_0x4a7abe(0x2de)]{constructor(_0x2e79a4,_0x3f2a31,_0x736f1f,_0x3c4f50,_0x5ade71,_0xb44b56,_0x3b451a,_0x39be62){const _0x1a3573=_0x4a7abe;super(),_(this,_0x1a3573(0x489),new I[(_0x1a3573(0x242))](u[_0x1a3573(0x1bb)][_0x1a3573(0x2f4)])),(this[_0x1a3573(0x399)]=_0x2e79a4,this[_0x1a3573(0x24e)]=_0x3f2a31,this[_0x1a3573(0x47b)]=_0x736f1f,this[_0x1a3573(0x2cb)]=_0x3c4f50,this[_0x1a3573(0x427)]=_0x5ade71,this[_0x1a3573(0x33c)]=_0xb44b56,this[_0x1a3573(0x3ae)]=_0x3b451a,this[_0x1a3573(0x271)]=_0x39be62,this[_0x1a3573(0x35c)]());}[_0x4a7abe(0x35c)](){const _0x297aaa=_0x4a7abe;this[_0x297aaa(0x360)](this[_0x297aaa(0x24e)][_0x297aaa(0x1c9)][_0x297aaa(0x1f1)](_0x986c2=>{const _0x539c2b=_0x297aaa,_0x34da63=this[_0x539c2b(0x399)][_0x539c2b(0x3f4)][_0x539c2b(0x1f1)](_0x1acd78=>{const _0x107148=_0x539c2b;if(_0x1acd78==null)return;const {unitId:_0x3563a3,redoState:_0x1d8739,commandId:_0x52aeb1}=_0x1acd78;if(_0x3563a3!==_0x986c2[_0x107148(0x1f5)])return;const _0x426f22={'id':_0x52aeb1,'type':a[_0x107148(0x42a)][_0x107148(0x301)],'params':{'unitId':_0x3563a3,'actions':_0x1d8739[_0x107148(0x420)],'textRanges':null}};_0x986c2[_0x107148(0x465)](_0x426f22);});if(_0x986c2[_0x539c2b(0x360)](_0x34da63),_0x986c2 instanceof u['DocCollaborationEntity']){const _0xf03e1d={'onTransformIME':_0x19ce83=>this[_0x539c2b(0x47b)]['transformIMECache'](_0x19ce83),'onTransformState':_0x1bd960=>this[_0x539c2b(0x2cb)][_0x539c2b(0x464)](_0x1bd960),'onTransformSelections':_0x258883=>this[_0x539c2b(0x427)][_0x539c2b(0x356)](_0x258883),'onSyncEditingCollabCursor':_0x115d82=>this['_docSyncEditingCollabCursorService'][_0x539c2b(0x3e1)](_0x115d82),'onTransformRemoteChangesetByIMECache':_0x3f4c79=>this[_0x539c2b(0x47b)]['transformRemoteChangeset'](_0x3f4c79),'onTransformRemoteChangesetByStateCache':_0x352b1c=>this[_0x539c2b(0x2cb)][_0x539c2b(0x2f6)](_0x352b1c)};_0x986c2[_0x539c2b(0x2f7)](_0xf03e1d);}}));}};ie=zt([N(0x0,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)])),N(0x1,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1d6)])),N(0x2,a[_0x4a7abe(0x32c)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x4a7abe(0x32c)](se)),N(0x5,a[_0x4a7abe(0x32c)](be)),N(0x6,O[_0x4a7abe(0x407)]),N(0x7,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ie);var G=(_0x3e8a3c=>(_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x21c)]=0x0]=_0x4a7abe(0x21c),_0x3e8a3c[_0x3e8a3c['OK']=0x1]='OK',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34d)]=0x2]='INTERNAL_ERROR',_0x3e8a3c[_0x3e8a3c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3a4)]=0x4]=_0x4a7abe(0x3a4),_0x3e8a3c[_0x3e8a3c['UNAUTHENTICATED']=0x5]=_0x4a7abe(0x29b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x477)]=0x6]=_0x4a7abe(0x477),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3d7)]=0x7]=_0x4a7abe(0x3d7),_0x3e8a3c[_0x3e8a3c['TOO_MANY_REQUESTS']=0x8]=_0x4a7abe(0x3ad),_0x3e8a3c[_0x3e8a3c['COMPLETION_FINISHED']=0x9]=_0x4a7abe(0x31e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d1)]=0xa]=_0x4a7abe(0x2d1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43d)]=0xb]=_0x4a7abe(0x43d),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x385)]=0xc]=_0x4a7abe(0x385),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x267)]=0xd]=_0x4a7abe(0x267),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x436)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3e8a3c[_0x3e8a3c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4a7abe(0x3cb),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x220)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x3e8a3c[_0x3e8a3c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4a7abe(0x322),_0x3e8a3c[_0x3e8a3c['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x3e8a3c[_0x3e8a3c['USER_NOT_FOUND']=0xc9]=_0x4a7abe(0x1cf),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x447)]=0xca]=_0x4a7abe(0x447),_0x3e8a3c[_0x3e8a3c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a7abe(0x1bd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43e)]=0x1771]=_0x4a7abe(0x43e),_0x3e8a3c[_0x3e8a3c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a7abe(0x287),_0x3e8a3c[_0x3e8a3c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x289)]=0x1b59]=_0x4a7abe(0x289),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36b)]=0x1b5a]=_0x4a7abe(0x36b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x45a)]=0x1b5b]=_0x4a7abe(0x45a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x38a)]=0x1b5c]=_0x4a7abe(0x38a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x275)]=0x1b5d]='APPLY_DUPLICATED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2e1)]=0x1f41]=_0x4a7abe(0x2e1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34b)]=0x2329]=_0x4a7abe(0x34b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x296)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1e7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x40f)]=0x232c]=_0x4a7abe(0x40f),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x246)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1f3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x206)]=0x2712]=_0x4a7abe(0x206),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x334)]=0x2713]=_0x4a7abe(0x334),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x302)]=0x2714]=_0x4a7abe(0x302),_0x3e8a3c[_0x3e8a3c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4a7abe(0x46c),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d7)]=0x271c]=_0x4a7abe(0x1d7),_0x3e8a3c[_0x3e8a3c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a7abe(0x3fd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b6)]=0x271e]=_0x4a7abe(0x2b6),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x235)]=0x271f]=_0x4a7abe(0x235),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2c3)]=0x2720]=_0x4a7abe(0x2c3),_0x3e8a3c[_0x3e8a3c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a7abe(0x48e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x37a)]=0x2ee1]=_0x4a7abe(0x37a),_0x3e8a3c[_0x3e8a3c['INVALID_INVITE_CODE']=0x2ee2]=_0x4a7abe(0x2f8),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x39c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3db)]=0x2ee4]=_0x4a7abe(0x3db),_0x3e8a3c[_0x3e8a3c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x390)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d2)]=0x32ca]=_0x4a7abe(0x1d2),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x476)]=0x32cb]=_0x4a7abe(0x476),_0x3e8a3c[_0x3e8a3c['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4a7abe(0x3de),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x24b)]=0x36b2]=_0x4a7abe(0x24b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2f5)]=0x36b3]=_0x4a7abe(0x2f5),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x254)]=0x36b4]=_0x4a7abe(0x254),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x491)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x395)]=0x36b6]=_0x4a7abe(0x395),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x35e)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x290)]=0x36b8]=_0x4a7abe(0x290),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3dd)]=0x3715]=_0x4a7abe(0x3dd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x240)]=0x3716]=_0x4a7abe(0x240),_0x3e8a3c[_0x3e8a3c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x4a7abe(0x331),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d0)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x31a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x3e8a3c[_0x3e8a3c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4a7abe(0x345),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3ff)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x347)]=0x3a9d]=_0x4a7abe(0x347),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3bc)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x245)]=0x3a9f]=_0x4a7abe(0x245),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x320)]=0x3e81]=_0x4a7abe(0x320),_0x3e8a3c[_0x3e8a3c['UNRECOGNIZED']=-0x1]=_0x4a7abe(0x213),_0x3e8a3c))(G||{});function Jt(_0x570c74){const _0x48a5d3=_0x4a7abe;var _0x54b533,_0x21f9e5;const _0x24f296=(_0x54b533=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x54b533[_0x48a5d3(0x33e)],_0x3d376c=((_0x21f9e5=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x21f9e5[_0x48a5d3(0x486)])||0x0;return _0x24f296===B[_0x48a5d3(0x484)][_0x48a5d3(0x3b2)]&&_0x3d376c>0x0;}function Zt(_0x3524a4){const _0x58d8b3=_0x4a7abe;return _0x3524a4[_0x58d8b3(0x1c2)]===B['FormulaExecutedStateType'][_0x58d8b3(0x309)];}var Qt=Object[_0x4a7abe(0x319)],es=(_0x5d5d42,_0x212455,_0x1c1832,_0x1a8815)=>{for(var _0x3b3e78=_0x1a8815>0x1?void 0x0:_0x1a8815?Qt(_0x212455,_0x1c1832):_0x212455,_0x3c7392=_0x5d5d42['length']-0x1,_0x2a0c1b;_0x3c7392>=0x0;_0x3c7392--)(_0x2a0c1b=_0x5d5d42[_0x3c7392])&&(_0x3b3e78=_0x2a0c1b(_0x3b3e78)||_0x3b3e78);return _0x3b3e78;},L=(_0x5be2cb,_0x594972)=>(_0x2c179f,_0x11d669)=>_0x594972(_0x2c179f,_0x11d669,_0x5be2cb);const ts=_0x4a7abe(0x24c),ss=_0x4a7abe(0x456),is=_0x4a7abe(0x27e);let ne=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a5c28,_0x50709a,_0xf4f448,_0x27dd4e,_0x4139cf,_0x214833,_0x1c2791){const _0x28805a=_0x4a7abe;super(),_(this,_0x28805a(0x437),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x28805a(0x25b),0x0),_(this,_0x28805a(0x45d),[]),_(this,_0x28805a(0x48c),0x0),(this[_0x28805a(0x3ae)]=_0x1a5c28,this['_commandService']=_0x50709a,this['_configService']=_0xf4f448,this['_httpService']=_0x27dd4e,this['_univerInstanceService']=_0x4139cf,this['_logService']=_0x214833,this[_0x28805a(0x271)]=_0x1c2791,this[_0x28805a(0x44a)]());}[_0x4a7abe(0x44a)](){const _0x26f38f=_0x4a7abe;this[_0x26f38f(0x360)](this[_0x26f38f(0x263)][_0x26f38f(0x425)]((_0x3bb669,_0x106d66)=>{const _0x1a5b4e=_0x26f38f;var _0xccbd60;if(_0x3bb669['id']!==B[_0x1a5b4e(0x374)]['id'])return;const _0x351a92=_0x3bb669[_0x1a5b4e(0x43f)];if(!this[_0x1a5b4e(0x471)]((_0xccbd60=_0x351a92[_0x1a5b4e(0x35a)])!=null?_0xccbd60:[]))return;if(!this[_0x1a5b4e(0x44d)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb669,_0x106d66),this[_0x1a5b4e(0x20e)](),new a[(_0x1a5b4e(0x2bc))]();})),this[_0x26f38f(0x360)](this['_commandService'][_0x26f38f(0x453)]((_0x3a3458,_0x10e925)=>{const _0x44f92e=_0x26f38f;if(_0x3a3458['id']!==B[_0x44f92e(0x392)]['id'])return;const _0x1ebe93=_0x3a3458[_0x44f92e(0x43f)];if(Jt(_0x1ebe93)){const _0x1e3177=a[_0x44f92e(0x32f)]();this['_taskIds'][_0x44f92e(0x272)](_0x1e3177),this[_0x44f92e(0x238)](_0x1e3177);}else{if(Zt(_0x1ebe93)&&this['_taskIds'][_0x44f92e(0x3e3)]>0x0){const _0x13f1b9=this[_0x44f92e(0x45d)][_0x44f92e(0x1ea)]();this[_0x44f92e(0x382)](_0x13f1b9);}}}));}[_0x4a7abe(0x234)](){const _0x4ea102=_0x4a7abe;super[_0x4ea102(0x234)](),this[_0x4ea102(0x310)](),this[_0x4ea102(0x45d)]=[],this['_currentUsage']=0x0,this[_0x4ea102(0x41b)]=0x0,this[_0x4ea102(0x48c)]=0x0;}async[_0x4a7abe(0x2c5)](_0x228dab,_0x32f671){const _0x27be41=_0x4a7abe;for(let _0x2569fd=0x0;_0x2569fd<0x1e;_0x2569fd++)try{if(await this[_0x27be41(0x475)](),this[_0x27be41(0x44d)]()){this['_applyCommand'](_0x228dab,_0x32f671),this['_messageService']['show']({'content':this[_0x27be41(0x271)]['t']('formula.calculation.started'),'type':p[_0x27be41(0x229)][_0x27be41(0x370)]});return;}await new Promise(_0x4a6ba6=>{const _0x366ca1=_0x27be41;this[_0x366ca1(0x437)]=window['setTimeout'](_0x4a6ba6,0x3e8);});}catch(_0x13be00){this[_0x27be41(0x32d)][_0x27be41(0x291)](_0x13be00);}this[_0x27be41(0x3ae)]['show']({'content':this[_0x27be41(0x271)]['t'](_0x27be41(0x1d5)),'type':p[_0x27be41(0x229)][_0x27be41(0x1d0)]});}[_0x4a7abe(0x3b3)](_0x513928,_0x1fc506){const _0x13bf5c=_0x4a7abe;try{this['_commandService'][_0x13bf5c(0x22f)](_0x513928['id'],_0x513928[_0x13bf5c(0x43f)],_0x1fc506);}catch(_0xbbebea){this[_0x13bf5c(0x32d)][_0x13bf5c(0x291)](_0xbbebea);}}[_0x4a7abe(0x47e)](_0x51e56d,_0x5e7583){const _0x437baf=_0x4a7abe;_0x5e7583<this['_lastResponseTimestamp']||(this[_0x437baf(0x48c)]=_0x5e7583,this['_maxFormulaLimit']=Number['parseInt'](_0x51e56d['maxFormulaLimit']),this[_0x437baf(0x25b)]=Number[_0x437baf(0x3d5)](_0x51e56d[_0x437baf(0x33a)]));}async[_0x4a7abe(0x238)](_0x4a87ca){const _0x2ed8fb=_0x4a7abe;var _0x5beb99,_0x181b5a;const _0x4c49bc=Date[_0x2ed8fb(0x46a)]();try{const _0x52cbec=((_0x5beb99=this[_0x2ed8fb(0x365)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5beb99['startFormulaLimitUrl'])||ss,_0x644bc4=(await this[_0x2ed8fb(0x3c0)][_0x2ed8fb(0x1c4)](_0x52cbec,{'body':JSON[_0x2ed8fb(0x1df)]({'taskId':_0x4a87ca})}))[_0x2ed8fb(0x3d1)];if(((_0x181b5a=_0x644bc4[_0x2ed8fb(0x291)])==null?void 0x0:_0x181b5a['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x644bc4['limitInfo'],_0x4c49bc);}catch(_0x2d6ac7){this[_0x2ed8fb(0x32d)][_0x2ed8fb(0x291)](_0x2d6ac7);}}async[_0x4a7abe(0x475)](_0x2767ee){const _0x50e84b=_0x4a7abe;var _0x2ce636,_0x439e89;const _0x2fada2=Date['now']();try{const _0x15d1f3=((_0x2ce636=this[_0x50e84b(0x365)][_0x50e84b(0x3d6)](u[_0x50e84b(0x268)]))==null?void 0x0:_0x2ce636[_0x50e84b(0x3c2)])||ts,_0x35f424=_0x2767ee?_0x15d1f3+_0x50e84b(0x28d)+encodeURIComponent(_0x2767ee):_0x15d1f3,_0x43796d=(await this[_0x50e84b(0x3c0)]['get'](_0x35f424))[_0x50e84b(0x3d1)];if(((_0x439e89=_0x43796d[_0x50e84b(0x291)])==null?void 0x0:_0x439e89['code'])!==G['OK'])return;this[_0x50e84b(0x47e)](_0x43796d['limitInfo'],_0x2fada2);}catch(_0x3016ad){this[_0x50e84b(0x32d)]['error'](_0x3016ad);}}async[_0x4a7abe(0x382)](_0x944747){const _0x190821=_0x4a7abe;var _0x46b3c7,_0xddcc7d;const _0x4a8ed7=Date['now']();try{const _0x17133d=((_0x46b3c7=this[_0x190821(0x365)]['getConfig'](u[_0x190821(0x268)]))==null?void 0x0:_0x46b3c7[_0x190821(0x1d9)])||is,_0x36bc58=(await this[_0x190821(0x3c0)]['post'](_0x17133d,{'body':JSON[_0x190821(0x1df)]({'taskId':_0x944747})}))[_0x190821(0x3d1)];if(((_0xddcc7d=_0x36bc58[_0x190821(0x291)])==null?void 0x0:_0xddcc7d[_0x190821(0x409)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x36bc58[_0x190821(0x306)],_0x4a8ed7);}catch(_0x9a0d0a){this['_logService'][_0x190821(0x291)](_0x9a0d0a);}}[_0x4a7abe(0x44d)](){const _0x215735=_0x4a7abe;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x215735(0x41b)]-this[_0x215735(0x25b)]>0x0;}[_0x4a7abe(0x310)](){const _0x3f4d37=_0x4a7abe;this[_0x3f4d37(0x437)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f4d37(0x437)]=null);}[_0x4a7abe(0x20e)](){const _0x5915fb=_0x4a7abe;this[_0x5915fb(0x3ae)]['show']({'content':this[_0x5915fb(0x271)]['t'](_0x5915fb(0x1e2)),'type':p['MessageType'][_0x5915fb(0x256)]});}[_0x4a7abe(0x471)](_0x11f8e2){const _0x478fec=_0x4a7abe;for(const _0x30a88e of _0x11f8e2){const {unitId:_0x1a816c,sheetId:_0x1c37c2,range:_0x26e626}=_0x30a88e,_0xbd02f5=this[_0x478fec(0x393)][_0x478fec(0x494)](_0x1a816c);if(!_0xbd02f5)continue;const _0x11fc36=_0xbd02f5[_0x478fec(0x2bb)](_0x1c37c2);if(!_0x11fc36)continue;const _0x1b92b6=_0x11fc36[_0x478fec(0x2b7)]();for(let _0x2b555f=_0x26e626[_0x478fec(0x369)];_0x2b555f<=_0x26e626[_0x478fec(0x1ce)];_0x2b555f++)for(let _0x3ff342=_0x26e626['startColumn'];_0x3ff342<=_0x26e626[_0x478fec(0x2fb)];_0x3ff342++){const _0x17f1d=_0x1b92b6[_0x478fec(0x305)](_0x2b555f,_0x3ff342);if(_0x17f1d&&(a[_0x478fec(0x3ee)](_0x17f1d['f'])||a[_0x478fec(0x265)](_0x17f1d['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x4a7abe(0x407)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),L(0x4,a[_0x4a7abe(0x1e6)]),L(0x5,a[_0x4a7abe(0x1dc)]),L(0x6,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ne);var ns=Object[_0x4a7abe(0x319)],rs=(_0x21cf97,_0xa1e283,_0x4a508c,_0x3a3eab)=>{const _0x6e6dd0=_0x4a7abe;for(var _0x1a10b9=_0x3a3eab>0x1?void 0x0:_0x3a3eab?ns(_0xa1e283,_0x4a508c):_0xa1e283,_0xd92c48=_0x21cf97[_0x6e6dd0(0x3e3)]-0x1,_0x29969c;_0xd92c48>=0x0;_0xd92c48--)(_0x29969c=_0x21cf97[_0xd92c48])&&(_0x1a10b9=_0x29969c(_0x1a10b9)||_0x1a10b9);return _0x1a10b9;},Se=(_0x42fdac,_0x599674)=>(_0x2e260e,_0x55f6aa)=>_0x599674(_0x2e260e,_0x55f6aa,_0x42fdac);let Te=class extends a[_0x4a7abe(0x2de)]{constructor(_0x5407be,_0x2466bf,_0x4f2fc4){const _0x5151ea=_0x4a7abe;super(),_(this,_0x5151ea(0x405),new Map()),_(this,_0x5151ea(0x321),new Map()),_(this,_0x5151ea(0x1bc),!0x1),(this[_0x5151ea(0x365)]=_0x5407be,this[_0x5151ea(0x394)]=_0x2466bf,this[_0x5151ea(0x363)]=_0x4f2fc4);}[_0x4a7abe(0x48d)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x592189=_0x4a7abe;this[_0x592189(0x1bc)]=!0x1;}get[_0x4a7abe(0x487)](){const _0xda1ccd=_0x4a7abe;return this[_0xda1ccd(0x321)];}[_0x4a7abe(0x234)](){const _0x17c5c5=_0x4a7abe;this[_0x17c5c5(0x39f)]()[_0x17c5c5(0x2bf)](()=>super[_0x17c5c5(0x234)]());}async[_0x4a7abe(0x279)](_0x551642){const _0x594656=_0x4a7abe;return this[_0x594656(0x1bc)]?null:this[_0x594656(0x394)][_0x594656(0x419)](u[_0x594656(0x2a9)](_0x551642));}async[_0x4a7abe(0x38f)](_0x45774c,_0x2aa9db){const _0x4502cd=_0x4a7abe;return!!this[_0x4502cd(0x394)][_0x4502cd(0x344)](_0x45774c,_0x2aa9db);}[_0x4a7abe(0x3be)](_0x1c625c,_0x27b393,_0x459bb1,_0x1bbc07){const _0x4206f5=_0x4a7abe,_0x542773=this[_0x4206f5(0x363)][_0x4206f5(0x316)](_0x1c625c);this['_cachedData'][_0x4206f5(0x205)](_0x1c625c,{'unitID':_0x1c625c,'type':_0x27b393,'awaitingChangeset':_0x459bb1,'mutations':_0x1bbc07,'rev':_0x542773}),this[_0x4206f5(0x321)]['has'](_0x1c625c)||this[_0x4206f5(0x30a)](_0x1c625c);}[_0x4a7abe(0x30a)](_0x49a3be){const _0x32c3e4=_0x4a7abe,_0x55e02c=this[_0x32c3e4(0x23d)]();_0x55e02c===0x0?this[_0x32c3e4(0x2ec)](_0x49a3be):this[_0x32c3e4(0x321)][_0x32c3e4(0x205)](_0x49a3be,setTimeout(()=>this[_0x32c3e4(0x2ec)](_0x49a3be),_0x55e02c));}[_0x4a7abe(0x23d)](){const _0x37a656=_0x4a7abe;var _0x5a0c6f;return(_0x5a0c6f=this[_0x37a656(0x365)][_0x37a656(0x3d6)](u[_0x37a656(0x3c6)]))!=null?_0x5a0c6f:u[_0x37a656(0x3a5)];}['_saveCache'](_0x452ae9){const _0x49429b=_0x4a7abe,_0x2f64bb=this[_0x49429b(0x321)][_0x49429b(0x1c8)](_0x452ae9);return _0x2f64bb!==void 0x0&&window[_0x49429b(0x457)](_0x2f64bb),this['_localStorageService'][_0x49429b(0x344)](u[_0x49429b(0x2a9)](_0x452ae9),this[_0x49429b(0x405)][_0x49429b(0x1c8)](_0x452ae9))[_0x49429b(0x2bf)](()=>this[_0x49429b(0x321)][_0x49429b(0x1dd)](_0x452ae9));}async[_0x4a7abe(0x39f)](){const _0x5ec868=_0x4a7abe,_0x34e51c=[];this[_0x5ec868(0x321)]['forEach']((_0x52b694,_0x3ec165)=>{const _0x2096ac=_0x5ec868;window['clearTimeout'](_0x52b694),_0x34e51c[_0x2096ac(0x272)](this[_0x2096ac(0x2ec)](_0x3ec165)[_0x2096ac(0x2bf)](()=>{const _0x2b9761=_0x2096ac;this[_0x2b9761(0x321)]['delete'](_0x3ec165);}));}),await Promise[_0x5ec868(0x2a4)](_0x34e51c);}};Te=rs([Se(0x0,a[_0x4a7abe(0x27c)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a7abe(0x32c)](g[_0x4a7abe(0x48b)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x390ff8=_0x4a7abe;super(),_(this,_0x390ff8(0x1ca)),this[_0x390ff8(0x1ca)]=I['fromEvent'](window,'popstate')[_0x390ff8(0x31d)](I[_0x390ff8(0x239)](this[_0x390ff8(0x288)]),I[_0x390ff8(0x232)](0x1),I[_0x390ff8(0x41a)](void 0x0));}[_0x4a7abe(0x3c7)](_0x59cbcf,_0x373abc,_0x51886a=!0x1){const _0x47a94e=_0x4a7abe,_0x119e31=new URL(window[_0x47a94e(0x1fe)][_0x47a94e(0x3dc)]);_0x119e31[_0x47a94e(0x1f0)][_0x47a94e(0x205)](_0x59cbcf,_0x373abc),_0x51886a?window[_0x47a94e(0x34e)]['replaceState']('','',_0x119e31[_0x47a94e(0x442)]()):window['history']['pushState']('','',_0x119e31['toString']());}['removeParam'](_0x299c0b,_0x29fe44=!0x1){const _0x54ffed=_0x4a7abe,_0xbde39e=new URL(window[_0x54ffed(0x1fe)][_0x54ffed(0x3dc)]);_0xbde39e['searchParams'][_0x54ffed(0x1dd)](_0x299c0b),_0x29fe44?window[_0x54ffed(0x34e)][_0x54ffed(0x1d4)]('','',_0xbde39e[_0x54ffed(0x442)]()):window[_0x54ffed(0x34e)][_0x54ffed(0x225)]('','',_0xbde39e['toString']());}['getParam'](_0x3efd35){const _0x4fc4e2=_0x4a7abe;var _0x21bb81;return(_0x21bb81=new URL(window[_0x4fc4e2(0x1fe)][_0x4fc4e2(0x3dc)])[_0x4fc4e2(0x1f0)][_0x4fc4e2(0x1c8)](_0x3efd35))!=null?_0x21bb81:void 0x0;}}var os=Object[_0x4a7abe(0x25e)],as=Object[_0x4a7abe(0x319)],cs=(_0x113e6d,_0x30bb09,_0x49eca0)=>_0x30bb09 in _0x113e6d?os(_0x113e6d,_0x30bb09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49eca0}):_0x113e6d[_0x30bb09]=_0x49eca0,ls=(_0x40e2de,_0x3909c0,_0x6e3518,_0x1230d7)=>{const _0xf2c6d5=_0x4a7abe;for(var _0x5dcbbe=_0x1230d7>0x1?void 0x0:_0x1230d7?as(_0x3909c0,_0x6e3518):_0x3909c0,_0x21a699=_0x40e2de[_0xf2c6d5(0x3e3)]-0x1,_0x14f0e9;_0x21a699>=0x0;_0x21a699--)(_0x14f0e9=_0x40e2de[_0x21a699])&&(_0x5dcbbe=_0x14f0e9(_0x5dcbbe)||_0x5dcbbe);return _0x5dcbbe;},de=(_0x2b1652,_0x527f8d)=>(_0x24361c,_0x4ffcf8)=>_0x527f8d(_0x24361c,_0x4ffcf8,_0x2b1652),_s=(_0x3023be,_0x44814a,_0x3bac4c)=>cs(_0x3023be,_0x44814a+'',_0x3bac4c);const hs=_0x4a7abe(0x323);exports[_0x4a7abe(0x342)]=class extends a[_0x4a7abe(0x492)]{constructor(_0x2f0a99=Me,_0x301133,_0x2b7adc,_0x27ab71){const _0x2f4ef2=_0x4a7abe;super(),this[_0x2f4ef2(0x264)]=_0x2f0a99,this[_0x2f4ef2(0x1fd)]=_0x301133,this[_0x2f4ef2(0x449)]=_0x2b7adc,this['_configService']=_0x27ab71;const {..._0x50bcc2}=a[_0x2f4ef2(0x2cd)]({},Me,this[_0x2f4ef2(0x264)]);this[_0x2f4ef2(0x365)]['setConfig'](Yt,_0x50bcc2);}[_0x4a7abe(0x2ca)](){const _0x1aa3b6=_0x4a7abe;this[_0x1aa3b6(0x2fe)](),this[_0x1aa3b6(0x424)]();}[_0x4a7abe(0x1ba)](){const _0x3814c2=_0x4a7abe;this[_0x3814c2(0x24f)]();}[_0x4a7abe(0x2fe)](){const _0x32a807=_0x4a7abe;var _0x18ec63;const _0x123e80=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x32a807(0x335)],{'useClass':x[_0x32a807(0x37e)]}],[u[_0x32a807(0x31f)],{'useClass':Te}],[exports[_0x32a807(0x446)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x32a807(0x264)]['enableFrontendLog']&&_0x123e80[_0x32a807(0x272)]([Q]),a[_0x32a807(0x3af)](this[_0x32a807(0x449)],a[_0x32a807(0x3e0)](_0x123e80,(_0x18ec63=this['_config'])==null?void 0x0:_0x18ec63[_0x32a807(0x46d)]));}[_0x4a7abe(0x24f)](){const _0x4a0ee1=_0x4a7abe;this[_0x4a0ee1(0x360)](this['_renderManagerService'][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x3a3)],[Ee])),this[_0x4a0ee1(0x360)](this[_0x4a0ee1(0x1fd)][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x324)],[Ce]));}[_0x4a7abe(0x424)](){const _0x316e7f=_0x4a7abe;a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[F],[exports[_0x316e7f(0x446)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x316e7f(0x264)]['enableFrontendLog']&&a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4a7abe(0x2b9),hs),exports[_0x4a7abe(0x342)]=ls([a[_0x4a7abe(0x27a)](u[_0x4a7abe(0x1c1)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),de(0x3,a['IConfigService'])],exports[_0x4a7abe(0x342)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x210771,_0x22e963,_0x42662f,_0x1a0166)=>{for(var _0x2604c2=_0x1a0166>0x1?void 0x0:_0x1a0166?us(_0x22e963,_0x42662f):_0x22e963,_0x4ddb33=_0x210771['length']-0x1,_0x2fcca7;_0x4ddb33>=0x0;_0x4ddb33--)(_0x2fcca7=_0x210771[_0x4ddb33])&&(_0x2604c2=_0x2fcca7(_0x2604c2)||_0x2604c2);return _0x2604c2;},W=(_0x2cd09e,_0x49f322)=>(_0x1597e4,_0x5aa550)=>_0x49f322(_0x1597e4,_0x5aa550,_0x2cd09e);exports['BrowserCollaborationSocketService']=class extends u[_0x4a7abe(0x281)]{constructor(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a){super(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a);}async[_0x4a7abe(0x41e)](_0x81658f){const _0x5c717d=_0x4a7abe,_0x584b3e=await this[_0x5c717d(0x2ba)](),_0x3ee088=this[_0x5c717d(0x29d)](_0x81658f,_0x584b3e);return this['_doCreateSocket'](_0x3ee088);}[_0x4a7abe(0x29d)](_0x2213f6,_0x16b0bc){const _0x280ea2=_0x4a7abe,_0x30d8a1=typeof window>'u'?new URL(_0x2213f6):new URL(_0x2213f6,window[_0x280ea2(0x1fe)][_0x280ea2(0x308)]);_0x30d8a1['searchParams'][_0x280ea2(0x205)](_0x280ea2(0x3b1),_0x16b0bc);const _0x5f728b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x280ea2(0x1fe)]['search']);return _0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))&&_0x30d8a1[_0x280ea2(0x1f0)][_0x280ea2(0x205)]('runId',_0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))),_0x30d8a1[_0x280ea2(0x442)]();}async['_getSessionTicket'](){const _0x369b0f=_0x4a7abe;var _0x57ef8d,_0x13ea26,_0x4c6fdc;const _0x1c42e6=this[_0x369b0f(0x365)][_0x369b0f(0x3d6)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e1927=(_0x57ef8d=_0x1c42e6==null?void 0x0:_0x1c42e6[_0x369b0f(0x3e2)])!=null?_0x57ef8d:u[_0x369b0f(0x43c)];return(_0x4c6fdc=(_0x13ea26=(await this[_0x369b0f(0x3c0)]['get'](_0x1e1927,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x13ea26[_0x369b0f(0x41d)])!=null?_0x4c6fdc:'';}},exports[_0x4a7abe(0x274)]=Is([W(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),W(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),W(0x2,a[_0x4a7abe(0x27c)]),W(0x3,a[_0x4a7abe(0x1dc)]),W(0x4,g[_0x4a7abe(0x2c6)])],exports[_0x4a7abe(0x274)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x1d56cc,_0x182b5d,_0x241e24,_0x5ac2c0)=>{const _0x9f4d18=_0x4a7abe;for(var _0x4d5011=_0x5ac2c0>0x1?void 0x0:_0x5ac2c0?Ss(_0x182b5d,_0x241e24):_0x182b5d,_0x1e8f89=_0x1d56cc[_0x9f4d18(0x3e3)]-0x1,_0x301419;_0x1e8f89>=0x0;_0x1e8f89--)(_0x301419=_0x1d56cc[_0x1e8f89])&&(_0x4d5011=_0x301419(_0x4d5011)||_0x4d5011);return _0x4d5011;},fe=(_0x38de57,_0x49ee45)=>(_0x4a22cf,_0xbf337c)=>_0x49ee45(_0x4a22cf,_0xbf337c,_0x38de57);exports['RemoteUniscriptService']=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a2a84,_0x3ec3b9,_0x1a12fc){const _0x5219d7=_0x4a7abe;super(),this[_0x5219d7(0x40b)]=_0x1a2a84,this[_0x5219d7(0x3c0)]=_0x3ec3b9,this[_0x5219d7(0x365)]=_0x1a12fc;}async[_0x4a7abe(0x326)](_0x6e5623,_0x1325b9,_0x55c94c,..._0x1b50e3){const _0x4a8df5=_0x4a7abe;var _0x30bd09,_0x329df3,_0x47c0aa,_0x29f25e;const _0x1aec45=this[_0x4a8df5(0x40b)][_0x4a8df5(0x460)]();if(!_0x1aec45)throw new Error(_0x4a8df5(0x223));const _0x2123f6=((_0x30bd09=this['_configService'][_0x4a8df5(0x3d6)](u[_0x4a8df5(0x2b2)]))!=null?_0x30bd09:u[_0x4a8df5(0x249)])+'/'+_0x6e5623+_0x4a8df5(0x3cc)+_0x1325b9,_0x50bef8=new URL(window['location'][_0x4a8df5(0x3dc)]),_0x3df2dd={'scriptId':_0x6e5623,'runId':(_0x329df3=_0x50bef8[_0x4a8df5(0x1f0)][_0x4a8df5(0x1c8)]('runId'))!=null?_0x329df3:'','function':_0x1325b9,'unitId':_0x1aec45['getUnitId'](),'argsOfFunction':JSON[_0x4a8df5(0x1df)](_0x1b50e3),'invokeId':(_0x47c0aa=_0x55c94c[_0x4a8df5(0x1be)])!=null?_0x47c0aa:'','executionId':(_0x29f25e=_0x55c94c['executionId'])!=null?_0x29f25e:''};try{const _0x4a7477=await this[_0x4a8df5(0x3c0)][_0x4a8df5(0x1c4)](_0x2123f6,{'body':_0x3df2dd});return _0x4a7477[_0x4a8df5(0x3d1)]['error']&&_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x291)][_0x4a8df5(0x409)]!==G['OK']?_0x4a8df5(0x384):_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x1c5)];}catch{return'Failed';}}},exports[_0x4a7abe(0x219)]=ds([fe(0x0,a[_0x4a7abe(0x1e6)]),fe(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),fe(0x2,a[_0x4a7abe(0x27c)])],exports['RemoteUniscriptService']);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x4a7abe(0x2de)]{constructor(){const _0xa95208=_0x4a7abe;super(),_(this,'_id',a[_0xa95208(0x32f)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xa95208(0x336),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xa95208(0x294),new Map()),this[_0xa95208(0x3a9)]();}[_0x4a7abe(0x234)](){const _0xbc590c=_0x4a7abe;super['dispose'](),this[_0xbc590c(0x33b)]['forEach']((_0x4e1ae6,_0x388b8c)=>this['_removeClearOtherTimer'](_0x388b8c)),this['_heartbeatTimer']&&window[_0xbc590c(0x3f1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x6a6b5a){const _0x236b77=_0x4a7abe;return this[_0x236b77(0x430)](_0x6a6b5a)['pipe'](I[_0x236b77(0x1e3)]());}[_0x4a7abe(0x3cd)](_0x3f6ec2){const _0x293dea=_0x4a7abe;this['_selfUnitIDs'][_0x293dea(0x299)]===0x0&&this[_0x293dea(0x41f)](),this[_0x293dea(0x482)][_0x293dea(0x3ab)](_0x3f6ec2),this[_0x293dea(0x30f)]({'type':0x0,'memberID':this[_0x293dea(0x33f)],'unitIDs':[_0x3f6ec2],'isForwarded':!0x1});}['disposeUnit'](_0x36abb0){const _0x349801=_0x4a7abe;this[_0x349801(0x482)][_0x349801(0x1dd)](_0x36abb0),this[_0x349801(0x482)][_0x349801(0x299)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4a7abe(0x3a9)](){const _0x3af302=_0x4a7abe;this[_0x3af302(0x360)](a[_0x3af302(0x1e5)](I[_0x3af302(0x3f8)](window,_0x3af302(0x2f3))[_0x3af302(0x1f1)](_0x57a0c4=>{const _0x5d2a70=_0x3af302;if(_0x57a0c4[_0x5d2a70(0x1d3)]!==ye||!_0x57a0c4['newValue'])return;const _0x495158=JSON['parse'](_0x57a0c4[_0x5d2a70(0x202)]);this[_0x5d2a70(0x46b)](_0x495158);}))),window[_0x3af302(0x1c0)]('unload',()=>this[_0x3af302(0x30f)]({'type':0x1,'memberID':this[_0x3af302(0x33f)],'unitIDs':Array[_0x3af302(0x42d)](this[_0x3af302(0x482)])}));}[_0x4a7abe(0x46b)](_0x58fe5f){const _0x5b909f=_0x4a7abe;switch(_0x58fe5f['type']){case 0x0:this['_handleJoinEvent'](_0x58fe5f);break;case 0x1:this['_handleLeaveEvent'](_0x58fe5f);break;case 0x2:this[_0x5b909f(0x2e3)](_0x58fe5f);break;}}[_0x4a7abe(0x433)](_0x345208){const _0xd284ba=_0x4a7abe,{unitIDs:_0x42eacf,memberID:_0x2b98c4,isForwarded:_0x46d163}=_0x345208;_0x42eacf[_0xd284ba(0x2aa)](_0x5e5084=>{const _0x418a59=_0xd284ba;if(!_0x46d163&&this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)&&this['_ensureSubject'](_0x5e5084)['next'](u[_0x418a59(0x3d9)][_0x418a59(0x450)]),!this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)||!this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)['has'](_0x2b98c4)){const _0x24377e=this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)||new Set();_0x24377e[_0x418a59(0x3ab)](_0x2b98c4),this['_unitOnClients'][_0x418a59(0x205)](_0x5e5084,_0x24377e),this[_0x418a59(0x303)](_0x2b98c4);}}),_0x46d163||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd284ba(0x482)]],'isForwarded':!0x0});}[_0x4a7abe(0x303)](_0x2967f2){const _0x2dbb5b=_0x4a7abe;this[_0x2dbb5b(0x1fb)](_0x2967f2);const _0x814271=window[_0x2dbb5b(0x417)](()=>{const _0x5980c7=_0x2dbb5b;this[_0x5980c7(0x2cf)]['forEach'](_0x40eb64=>{_0x40eb64['delete'](_0x2967f2);});},we*0x2);this[_0x2dbb5b(0x33b)]['set'](_0x2967f2,_0x814271);}[_0x4a7abe(0x1fb)](_0x2f9db6){const _0x301265=_0x4a7abe;if(this[_0x301265(0x33b)][_0x301265(0x439)](_0x2f9db6)){const _0x5f55b1=this[_0x301265(0x33b)]['get'](_0x2f9db6);_0x5f55b1&&window[_0x301265(0x457)](_0x5f55b1),this[_0x301265(0x33b)][_0x301265(0x205)](_0x2f9db6,null);}}[_0x4a7abe(0x29e)](_0x3a0477){const _0x21d18f=_0x4a7abe,{memberID:_0x380e2a,unitIDs:_0x31db19}=_0x3a0477;_0x31db19[_0x21d18f(0x2aa)](_0x55a4a0=>{const _0x34e1f6=_0x21d18f;var _0x376424;const _0x399974=this[_0x34e1f6(0x2cf)]['get'](_0x55a4a0);_0x399974&&(_0x399974[_0x34e1f6(0x1dd)](_0x380e2a),(_0x376424=this[_0x34e1f6(0x430)](_0x55a4a0))==null||_0x376424['next'](_0x399974[_0x34e1f6(0x299)]===0x0?u[_0x34e1f6(0x3d9)][_0x34e1f6(0x473)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x21d18f(0x1fb)](_0x380e2a);}['_handleHeartbeatEvent'](_0x24563b){const _0x236b66=_0x4a7abe;this[_0x236b66(0x303)](_0x24563b[_0x236b66(0x24d)]);}[_0x4a7abe(0x30f)](_0x49dd52){const _0x1639eb=_0x4a7abe;localStorage[_0x1639eb(0x344)](ye,JSON['stringify'](_0x49dd52));}['_scheduleHeartbeat'](){const _0x49acc1=_0x4a7abe;this['_heartbeatTimer']=window[_0x49acc1(0x2eb)](()=>{const _0x26c37e=_0x49acc1;this[_0x26c37e(0x30f)]({'type':0x2,'memberID':this[_0x26c37e(0x33f)]});},we);}[_0x4a7abe(0x430)](_0x183253){const _0x471e2a=_0x4a7abe;return this['_unitStatus'][_0x471e2a(0x439)](_0x183253)||this[_0x471e2a(0x294)][_0x471e2a(0x205)](_0x183253,new I[(_0x471e2a(0x242))](u['UnitStatus'][_0x471e2a(0x473)])),this[_0x471e2a(0x294)][_0x471e2a(0x1c8)](_0x183253);}}exports[_0x4a7abe(0x2ef)]=Oe,exports[_0x4a7abe(0x45e)]=je,exports[_0x4a7abe(0x352)]=fs,exports[_0x4a7abe(0x2d2)]=ke;
|
|
1
|
+
'use strict';const _0x2369fc=_0x8c2a;(function(_0x5d3429,_0x3b6b61){const _0x374a0c=_0x8c2a,_0x3a62de=_0x5d3429();while(!![]){try{const _0x30fcf6=parseInt(_0x374a0c(0x240))/0x1*(parseInt(_0x374a0c(0x285))/0x2)+parseInt(_0x374a0c(0x232))/0x3+-parseInt(_0x374a0c(0x341))/0x4+parseInt(_0x374a0c(0x1f4))/0x5+-parseInt(_0x374a0c(0x368))/0x6*(parseInt(_0x374a0c(0x144))/0x7)+-parseInt(_0x374a0c(0x264))/0x8+-parseInt(_0x374a0c(0x2e9))/0x9;if(_0x30fcf6===_0x3b6b61)break;else _0x3a62de['push'](_0x3a62de['shift']());}catch(_0x9368db){_0x3a62de['push'](_0x3a62de['shift']());}}}(_0x4655,0xf3220));var Xe=Object[_0x2369fc(0x202)],Ke=(_0x2454ab,_0x327667,_0x2e6822)=>_0x327667 in _0x2454ab?Xe(_0x2454ab,_0x327667,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e6822}):_0x2454ab[_0x327667]=_0x2e6822,_=(_0x468a63,_0x201957,_0x13dcb5)=>Ke(_0x468a63,typeof _0x201957!='symbol'?_0x201957+'':_0x201957,_0x13dcb5);Object[_0x2369fc(0x202)](exports,Symbol[_0x2369fc(0x2a2)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x359da7,..._0x5b76f9}){const _0x580a49=_0x2369fc,{icon:_0x19aa52,id:_0x16d7ac,className:_0x1c3760,extend:_0xeded02,..._0x985933}=_0x5b76f9,_0x1ff95b=('univerjs-icon\x20univerjs-icon-'+_0x16d7ac+'\x20'+(_0x1c3760||''))[_0x580a49(0x1b6)](),_0x367d25=A[_0x580a49(0x1ac)]('_'+Qe());return $e(_0x19aa52,''+_0x16d7ac,{'defIds':_0x19aa52[_0x580a49(0x21e)],'idSuffix':_0x367d25[_0x580a49(0x317)]},{'ref':_0x359da7,'className':_0x1ff95b,..._0x985933},_0xeded02);}function $e(_0x3ac5bb,_0x3f29c3,_0x5532bd,_0x36027e,_0x537a3e){const _0x113d48=_0x2369fc;return A[_0x113d48(0x137)](_0x3ac5bb[_0x113d48(0x251)],{'key':_0x3f29c3,...Je(_0x3ac5bb,_0x5532bd,_0x537a3e),..._0x36027e},(Ze(_0x3ac5bb,_0x5532bd)[_0x113d48(0x260)]||[])[_0x113d48(0x22c)]((_0x5e925d,_0x240f46)=>$e(_0x5e925d,_0x3f29c3+'-'+_0x3ac5bb[_0x113d48(0x251)]+'-'+_0x240f46,_0x5532bd,void 0x0,_0x537a3e)));}function Je(_0x45553c,_0x45b7c1,_0x2b035a){const _0xbae77e=_0x2369fc,_0x47ca3d={..._0x45553c[_0xbae77e(0x371)]};_0x2b035a!=null&&_0x2b035a[_0xbae77e(0x1f6)]&&_0x47ca3d['fill']===_0xbae77e(0x1f6)&&(_0x47ca3d[_0xbae77e(0x126)]=_0x2b035a['colorChannel1']),_0x45553c['tag']==='mask'&&_0x47ca3d['id']&&(_0x47ca3d['id']=_0x47ca3d['id']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x33d8d6,_0xeec0a])=>{const _0x1e9e3e=_0xbae77e;_0x33d8d6===_0x1e9e3e(0xe8)&&typeof _0xeec0a==_0x1e9e3e(0x2c5)&&(_0x47ca3d[_0x33d8d6]=_0xeec0a[_0x1e9e3e(0x3a4)](/url\(#(.*)\)/,_0x1e9e3e(0x398)+_0x45b7c1[_0x1e9e3e(0x247)]+')'));});const {defIds:_0x573c6c}=_0x45b7c1;return!_0x573c6c||_0x573c6c['length']===0x0||(_0x45553c[_0xbae77e(0x251)]===_0xbae77e(0x241)&&_0x47ca3d[_0xbae77e(0x231)]&&(_0x47ca3d['xlink:href']=_0x47ca3d['xlink:href']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x2e764d,_0x470b66])=>{const _0x4a557e=_0xbae77e;typeof _0x470b66==_0x4a557e(0x2c5)&&(_0x47ca3d[_0x2e764d]=_0x470b66[_0x4a557e(0x3a4)](/url\(#(.*)\)/,_0x4a557e(0x398)+_0x45b7c1[_0x4a557e(0x247)]+')'));})),_0x47ca3d;}function Ze(_0x40fce6,_0x21f295){const _0x4efa26=_0x2369fc;var _0x3adbf8;const {defIds:_0x38c2b2}=_0x21f295;return!_0x38c2b2||_0x38c2b2[_0x4efa26(0x236)]===0x0?_0x40fce6:_0x40fce6[_0x4efa26(0x251)]===_0x4efa26(0x17c)&&((_0x3adbf8=_0x40fce6[_0x4efa26(0x260)])!=null&&_0x3adbf8[_0x4efa26(0x236)])?{..._0x40fce6,'children':_0x40fce6[_0x4efa26(0x260)][_0x4efa26(0x22c)](_0x2b435a=>typeof _0x2b435a[_0x4efa26(0x371)]['id']==_0x4efa26(0x2c5)&&_0x38c2b2&&_0x38c2b2['includes'](_0x2b435a[_0x4efa26(0x371)]['id'])?{..._0x2b435a,'attrs':{..._0x2b435a['attrs'],'id':_0x2b435a[_0x4efa26(0x371)]['id']+_0x21f295[_0x4efa26(0x247)]}}:_0x2b435a)}:_0x40fce6;}function Qe(){const _0x2eb43d=_0x2369fc;return Math['random']()[_0x2eb43d(0x138)](0x24)['substring'](0x2,0x8);}pe[_0x2369fc(0x1a2)]=_0x2369fc(0x1b1);const et={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2369fc(0x16d),'viewBox':_0x2369fc(0x119),'width':_0x2369fc(0x190),'height':_0x2369fc(0x190)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2369fc(0x244),'attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x298),'strokeLinecap':_0x2369fc(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2369fc(0x17c),'attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':_0x2369fc(0x35c)},'children':[{'tag':_0x2369fc(0x244),'attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1)}}]}]}],'defIds':[_0x2369fc(0x35c)]},xe=A[_0x2369fc(0x36e)](function(_0x4a2528,_0x49833a){const _0x24024f=_0x2369fc;return A[_0x24024f(0x137)](pe,Object[_0x24024f(0x3a6)]({},_0x4a2528,{'id':_0x24024f(0x2d8),'ref':_0x49833a,'icon':et}));});xe[_0x2369fc(0x1a2)]='OffLineIcon';const tt={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2369fc(0x100),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2369fc(0x383)},'children':[{'tag':'path','attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x282),'strokeLinecap':'round','strokeLinejoin':_0x2369fc(0x2fc),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1),'transform':_0x2369fc(0x339)}}]}]}],'defIds':[_0x2369fc(0xff)]},Be=A['forwardRef'](function(_0x7b04b4,_0x25fae8){const _0x5bb3d1=_0x2369fc;return A[_0x5bb3d1(0x137)](pe,Object[_0x5bb3d1(0x3a6)]({},_0x7b04b4,{'id':'on-line-icon','ref':_0x25fae8,'icon':tt}));});Be[_0x2369fc(0x1a2)]=_0x2369fc(0x128);function st(_0x52f10c){const _0x3280f6=_0x2369fc;switch(_0x52f10c){case u['CollaborationStatus'][_0x3280f6(0x1dd)]:return _0x3280f6(0x1d4);case u['CollaborationStatus'][_0x3280f6(0x19b)]:return _0x3280f6(0xee);case u[_0x3280f6(0x30b)][_0x3280f6(0x2c8)]:return _0x3280f6(0x238);case u[_0x3280f6(0x30b)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x3280f6(0x30b)][_0x3280f6(0x373)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x24d)]:return _0x3280f6(0x279);case u['CollaborationStatus'][_0x3280f6(0x391)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x2d4)]:return'collabStatus.synced';}}function it(_0x55c39a){const _0x413587=_0x2369fc,{status$:_0x2fe453}=_0x55c39a,_0x513e7c=O['useObservable'](_0x2fe453,u[_0x413587(0x30b)][_0x413587(0x200)]),_0x3d5370=O[_0x413587(0x16f)](a[_0x413587(0x20e)]),_0x3db2c4=O[_0x413587(0x16f)](u[_0x413587(0xf0)]),_0x1eeb49=_0x513e7c!==u['CollaborationStatus'][_0x413587(0x1dd)],_0x47dd38=_0x3d5370['t'](st(_0x513e7c)),_0x439584=_0x1eeb49?M['jsx'](Be,{}):M[_0x413587(0x101)](xe,{}),_0x3d8829=A[_0x413587(0x3af)](()=>{const _0x597f80=_0x413587;_0x1eeb49||_0x3db2c4[_0x597f80(0x129)]();},[_0x1eeb49,_0x3db2c4]);function _0x5bb0a6(){const _0x4915da=_0x413587;return M[_0x4915da(0x262)](_0x4915da(0x14b),{'className':_0x4915da(0x342),'onClick':_0x3d8829,'children':[M[_0x4915da(0x101)]('div',{'className':p[_0x4915da(0x187)](_0x4915da(0x2b9),{'univer-text-green-500':_0x1eeb49,'univer-text-red-500':!_0x1eeb49}),'children':_0x439584}),M['jsx'](_0x4915da(0x14b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x47dd38})]});}return _0x1eeb49?_0x5bb0a6():M[_0x413587(0x101)](p[_0x413587(0x10c)],{'title':_0x3d5370['t']('collab-client.tooltip.reconnect'),'children':_0x5bb0a6()});}var nt=Object[_0x2369fc(0x219)],rt=(_0x24f666,_0x406eb6,_0x34eb9a,_0x4b7e37)=>{const _0x2046fd=_0x2369fc;for(var _0x1519a3=_0x4b7e37>0x1?void 0x0:_0x4b7e37?nt(_0x406eb6,_0x34eb9a):_0x406eb6,_0xcdf357=_0x24f666[_0x2046fd(0x236)]-0x1,_0x56459d;_0xcdf357>=0x0;_0xcdf357--)(_0x56459d=_0x24f666[_0xcdf357])&&(_0x1519a3=_0x56459d(_0x1519a3)||_0x1519a3);return _0x1519a3;},K=(_0x584d14,_0x357733)=>(_0x42a74d,_0x4d6bae)=>_0x357733(_0x42a74d,_0x4d6bae,_0x584d14);exports[_0x2369fc(0x18e)]=class extends a[_0x2369fc(0x189)]{constructor(_0x54c6c0,_0xd5d67d,_0x30a5f6,_0x5888c2){const _0x445ab9=_0x2369fc;super(),_(this,_0x445ab9(0x11c),new I[(_0x445ab9(0x121))](u[_0x445ab9(0x30b)][_0x445ab9(0x200)])),(this[_0x445ab9(0x1ff)]=_0x54c6c0,this[_0x445ab9(0x2bc)]=_0xd5d67d,this[_0x445ab9(0x2e7)]=_0x30a5f6,this[_0x445ab9(0x29e)]=_0x5888c2,this[_0x445ab9(0x1bc)](),this['_initStatusListener']());}[_0x2369fc(0x176)](){const _0x4b58e6=_0x2369fc;this[_0x4b58e6(0x237)](this['_univerInstanceService'][_0x4b58e6(0x243)]['pipe'](I['switchMap'](()=>{const _0x58757c=_0x4b58e6,_0x25d9f0=this[_0x58757c(0x1ff)]['getFocusedUnit']();return _0x25d9f0?this[_0x58757c(0x2e7)][_0x58757c(0x1c0)](_0x25d9f0[_0x58757c(0x253)]()):I['of'](null);}),I['switchMap'](_0x5a5f14=>_0x5a5f14?_0x5a5f14['status$']:I['of'](u['CollaborationStatus'][_0x4b58e6(0x200)])))[_0x4b58e6(0x1e3)](_0x3c805f=>{const _0x161ead=_0x4b58e6;this['_status$'][_0x161ead(0x2b7)](_0x3c805f);}));}['_initStatusComponent'](){const _0x45f0d0=_0x2369fc;this[_0x45f0d0(0x237)](this[_0x45f0d0(0x29e)][_0x45f0d0(0x32d)](O['BuiltInUIPart'][_0x45f0d0(0x319)],()=>O[_0x45f0d0(0x1f0)](ot({'status$':this[_0x45f0d0(0x11c)][_0x45f0d0(0xf4)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x2369fc(0x24a)]),K(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),K(0x2,a['Inject'](u[_0x2369fc(0x26e)])),K(0x3,O['IUIPartsService'])],exports[_0x2369fc(0x18e)]);function ot(_0x54792b){const {status$:_0x40e3ff}=_0x54792b;return function(){const _0xdf7167=_0x8c2a;return M[_0xdf7167(0x101)](it,{'status$':_0x40e3ff});};}const Oe=a[_0x2369fc(0x155)](_0x2369fc(0x375));var at=Object[_0x2369fc(0x219)],ct=(_0x5797ca,_0x57b27f,_0x222a01,_0x58fa70)=>{const _0x5a5aff=_0x2369fc;for(var _0x2d594f=_0x58fa70>0x1?void 0x0:_0x58fa70?at(_0x57b27f,_0x222a01):_0x57b27f,_0x3e7f68=_0x5797ca[_0x5a5aff(0x236)]-0x1,_0x3c2996;_0x3e7f68>=0x0;_0x3e7f68--)(_0x3c2996=_0x5797ca[_0x3e7f68])&&(_0x2d594f=_0x3c2996(_0x2d594f)||_0x2d594f);return _0x2d594f;},Y=(_0x5d8bfa,_0x2f3da7)=>(_0x4f6b65,_0x58e062)=>_0x2f3da7(_0x4f6b65,_0x58e062,_0x5d8bfa);exports['CollaborationDataLoaderController']=class extends a[_0x2369fc(0x37f)]{constructor(_0x2de99c,_0x4fb173,_0x25f815,_0x5c77fd,_0x2d6eb8){const _0x8ba264=_0x2369fc;super(),this[_0x8ba264(0x33f)]=_0x2de99c,this[_0x8ba264(0x17d)]=_0x4fb173,this[_0x8ba264(0x24c)]=_0x25f815,this[_0x8ba264(0x27b)]=_0x5c77fd,_0x2d6eb8?_0x2d6eb8==null||_0x2d6eb8[_0x8ba264(0x301)]()[_0x8ba264(0x39a)](()=>this[_0x8ba264(0x2d3)]()):(this[_0x8ba264(0x17d)][_0x8ba264(0x325)](_0x8ba264(0x25b),_0x8ba264(0x30f)),this['_init']());}async[_0x2369fc(0x2d3)](){const _0x6e59ef=_0x2369fc,_0x2656c6=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x15c)),_0x19800c=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x230)),_0xa4d6=this[_0x6e59ef(0x33f)]['getParam'](_0x6e59ef(0x2a1));if(!_0x2656c6||!_0x19800c){this[_0x6e59ef(0x17d)]['debug'](_0x6e59ef(0x25b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4af4f5=await this[_0x6e59ef(0x27b)][_0x6e59ef(0x2c0)](_0x2656c6,Number(_0x19800c),_0xa4d6);_0x4af4f5&&_0x4af4f5 instanceof a['Workbook']&&this[_0x6e59ef(0x239)](_0x4af4f5);}async[_0x2369fc(0x239)](_0x27f3af){const _0x3ef1a4=_0x2369fc;await this[_0x3ef1a4(0x204)](_0x27f3af),_0x27f3af['activeSheet$']['pipe'](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](_0x5335aa=>{const _0x413533=_0x3ef1a4;_0x5335aa&&this[_0x413533(0x2a5)](_0x5335aa);}),this[_0x3ef1a4(0x33f)]['urlChange$'][_0x3ef1a4(0x28a)](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](()=>this[_0x3ef1a4(0x204)](_0x27f3af));}[_0x2369fc(0x2a5)](_0x12412b,_0x207ac4=!0x1){const _0x579fab=_0x2369fc,_0x2c212a=this['_urlService'][_0x579fab(0x34a)](_0x579fab(0x2a1));_0x12412b[_0x579fab(0x2b0)]()!==_0x2c212a&&this['_urlService'][_0x579fab(0x226)]('subunit',_0x12412b[_0x579fab(0x2b0)](),_0x207ac4);}async[_0x2369fc(0x204)](_0x4dfe05){const _0x2ee5e4=_0x2369fc;var _0x2aadc3;const _0x47ef7b=this['_urlService'][_0x2ee5e4(0x34a)]('subunit');if(!_0x47ef7b||!_0x4dfe05[_0x2ee5e4(0x26b)](_0x47ef7b)){const _0x442a98=_0x4dfe05[_0x2ee5e4(0x16b)]()[0x0],_0x47b16d=_0x4dfe05[_0x2ee5e4(0x26b)](_0x442a98);if(!_0x47b16d)return;this[_0x2ee5e4(0x2a5)](_0x47b16d,!0x0),await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x442a98});return;}((_0x2aadc3=_0x4dfe05[_0x2ee5e4(0x363)]())==null?void 0x0:_0x2aadc3['getSheetId']())!==_0x47ef7b&&await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x47ef7b});}},exports[_0x2369fc(0x296)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x2369fc(0x164)]),Y(0x3,a['Inject'](u[_0x2369fc(0x311)])),Y(0x4,a[_0x2369fc(0x19f)](qe[_0x2369fc(0x2ee)]))],exports[_0x2369fc(0x296)]);var lt=Object[_0x2369fc(0x219)],_t=(_0xb24bf1,_0xb75bff,_0x51ffa4,_0x3f6529)=>{const _0x34251d=_0x2369fc;for(var _0x2fb1da=_0x3f6529>0x1?void 0x0:_0x3f6529?lt(_0xb75bff,_0x51ffa4):_0xb75bff,_0x36e436=_0xb24bf1[_0x34251d(0x236)]-0x1,_0x342df9;_0x36e436>=0x0;_0x36e436--)(_0x342df9=_0xb24bf1[_0x36e436])&&(_0x2fb1da=_0x342df9(_0x2fb1da)||_0x2fb1da);return _0x2fb1da;},De=(_0x5a8a4f,_0x293683)=>(_0x1be77f,_0x42bf92)=>_0x293683(_0x1be77f,_0x42bf92,_0x5a8a4f);let me=class extends a['RxDisposable']{constructor(_0x3fdb0f,_0x3024d4){const _0x2af5d9=_0x2369fc;super(),this['_docClipboardService']=_0x3fdb0f,this[_0x2af5d9(0x354)]=_0x3024d4,this[_0x2af5d9(0x2d3)]();}[_0x2369fc(0x2d3)](){const _0x50842c=_0x2369fc,_0x378f9c=this;this[_0x50842c(0x237)](this[_0x50842c(0x291)][_0x50842c(0x380)]({'onBeforePasteImage':async _0xa2e553=>{const _0x4c6f65=_0x50842c,_0x51daeb=await _0x378f9c[_0x4c6f65(0x354)][_0x4c6f65(0x1d6)](_0xa2e553);return _0x51daeb?{'source':_0x51daeb[_0x4c6f65(0x148)],'imageSourceType':_0x51daeb[_0x4c6f65(0x193)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x2369fc(0x2a3)])],me);const Ne=['purple.300','jiqing.500',_0x2369fc(0x12f),'red.300','blue.400',_0x2369fc(0x26c)];class Re extends a['Disposable']{constructor(){const _0x38befd=_0x2369fc;super(...arguments),_(this,_0x38befd(0x1ef),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x10aacf){const _0x27ea9c=_0x2369fc;if(this[_0x27ea9c(0x1ef)][_0x27ea9c(0x17a)](_0x10aacf))return this[_0x27ea9c(0x1ef)][_0x27ea9c(0x30d)](_0x10aacf);const _0x38b42d=Ne[this[_0x27ea9c(0x159)]];return this[_0x27ea9c(0x159)]=(this[_0x27ea9c(0x159)]+0x1)%Ne[_0x27ea9c(0x236)],this[_0x27ea9c(0x1ef)][_0x27ea9c(0x2c6)](_0x10aacf,_0x38b42d),_0x38b42d;}}function Fe(_0x190ee7){const _0x3c17ab=_0x2369fc;let _0x18cc84='';for(const _0x55ded2 of _0x190ee7){const {startOffset:_0x52c1f9,endOffset:_0x59417e,isActive:_0x1efae5,rangeType:_0x53e0ec,segmentId:_0x3825ba,segmentPage:_0x105faf}=_0x55ded2;_0x18cc84[_0x3c17ab(0x236)]&&(_0x18cc84+=','),_0x18cc84+=_0x52c1f9+':'+_0x59417e+':'+(_0x1efae5?'1':'0')+':'+_0x53e0ec+':'+_0x3825ba+':'+_0x105faf;}return _0x18cc84;}function ht(_0xde0c52){const _0x5d7f73=_0x2369fc,_0x432891=_0xde0c52['split'](','),_0x2182e0=[];for(const _0x11560e of _0x432891){const [_0x433445,_0x4d39d4,_0x515d37,_0x1bb900,_0x591fcd,_0x1b2685]=_0x11560e[_0x5d7f73(0x2b2)](':');_0x2182e0[_0x5d7f73(0x1a0)]({'startOffset':Number(_0x433445),'endOffset':Number(_0x4d39d4),'collapsed':_0x433445===_0x4d39d4,'isActive':_0x515d37==='1','rangeType':_0x1bb900===a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]?a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]:a[_0x5d7f73(0x23f)][_0x5d7f73(0x302)],'segmentId':typeof _0x591fcd=='string'?String(_0x591fcd):'','segmentPage':Number(_0x1b2685!=null?_0x1b2685:-0x1)});}return _0x2182e0[_0x5d7f73(0x259)](_0x568ea4=>_0x568ea4[_0x5d7f73(0x266)])||(_0x2182e0[0x0][_0x5d7f73(0x266)]=!0x0),_0x2182e0;}class be extends a['RxDisposable']{constructor(){const _0x48d0ac=_0x2369fc;super(...arguments),_(this,_0x48d0ac(0x29c),new I[(_0x48d0ac(0x121))](null)),_(this,_0x48d0ac(0x278),this[_0x48d0ac(0x29c)][_0x48d0ac(0xf4)]());}[_0x2369fc(0x217)](_0x40f28f){const {unitID:_0x13eeec,memberID:_0x3e9b72,textRanges:_0x63d08c}=_0x40f28f,_0x1bcdfd=Fe(_0x63d08c);if(_0x1bcdfd==='')return;const _0x1196cd={'unitID':_0x13eeec,'memberID':_0x3e9b72,'selection':_0x1bcdfd};this['_collabCursorState$']['next'](_0x1196cd);}}var ut=Object[_0x2369fc(0x219)],It=(_0x4938dc,_0x5a56e2,_0x49de73,_0x2c15bc)=>{const _0x41bca7=_0x2369fc;for(var _0xf076b5=_0x2c15bc>0x1?void 0x0:_0x2c15bc?ut(_0x5a56e2,_0x49de73):_0x5a56e2,_0x531a09=_0x4938dc[_0x41bca7(0x236)]-0x1,_0x1411bb;_0x531a09>=0x0;_0x531a09--)(_0x1411bb=_0x4938dc[_0x531a09])&&(_0xf076b5=_0x1411bb(_0xf076b5)||_0xf076b5);return _0xf076b5;},U=(_0x4b881a,_0x224348)=>(_0xd7aab4,_0x5ab75f)=>_0x224348(_0xd7aab4,_0x5ab75f,_0x4b881a);const St=0x12c,dt=0x64;let ve=class extends a[_0x2369fc(0x37f)]{constructor(_0xf61b79,_0x3568e9,_0x32525a,_0x578bbc,_0x46b399,_0x255cc9,_0x36b778,_0x400024,_0x2b4ae3){const _0x337e84=_0x2369fc;super(),_(this,_0x337e84(0x2e3),!0x1),_(this,_0x337e84(0x2d3),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x337e84(0x27d),this[_0x337e84(0x1f1)]['asObservable']()),_(this,_0x337e84(0x352),new I[(_0x337e84(0x121))]([])),_(this,_0x337e84(0x37c),this[_0x337e84(0x352)][_0x337e84(0x28a)](I[_0x337e84(0x2d9)](St))),_(this,'_updateLocalCursor',a[_0x337e84(0x16a)](_0x4e9892=>{const _0x22ee50=_0x337e84,_0x373856={'eventID':g[_0x22ee50(0x22a)][_0x22ee50(0x24b)],'data':{'unitID':this[_0x22ee50(0x1ca)],'memberID':this[_0x22ee50(0x376)][_0x22ee50(0x38d)](),'selection':Fe(_0x4e9892)}};this[_0x22ee50(0x376)][_0x22ee50(0x2e2)](_0x373856,this[_0x22ee50(0x1ca)]);},dt)),(this[_0x337e84(0x1ca)]=_0xf61b79,this[_0x337e84(0x376)]=_0x3568e9,this[_0x337e84(0x2bc)]=_0x32525a,this[_0x337e84(0x28d)]=_0x578bbc,this[_0x337e84(0x338)]=_0x46b399,this[_0x337e84(0x32a)]=_0x255cc9,this['_transformService']=_0x36b778,this[_0x337e84(0x1ff)]=_0x400024,this[_0x337e84(0x24c)]=_0x2b4ae3);}get[_0x2369fc(0x374)](){const _0x3a7531=_0x2369fc;return this[_0x3a7531(0x1f1)]['getValue']();}get[_0x2369fc(0x284)](){const _0x6e1224=_0x2369fc;return this[_0x6e1224(0x352)][_0x6e1224(0x23e)]();}[_0x2369fc(0x31e)](){const _0xdebe4b=_0x2369fc;super[_0xdebe4b(0x31e)](),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x2b7)](new Map()),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x36f)](),this[_0xdebe4b(0x352)][_0xdebe4b(0x2b7)]([]),this[_0xdebe4b(0x352)][_0xdebe4b(0x36f)]();}[_0x2369fc(0xe9)](){const _0x5959be=_0x2369fc;this[_0x5959be(0x2d3)]||(this[_0x5959be(0x2d3)]=!0x0,this[_0x5959be(0x376)]['sessionStatus$']['pipe'](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))[_0x5959be(0x1e3)](_0x3723ab=>{const _0x2feb75=_0x5959be;_0x3723ab===u[_0x2feb75(0x1d7)][_0x2feb75(0x357)]?this[_0x2feb75(0x35e)]():this[_0x2feb75(0x19d)]();}),this[_0x5959be(0x376)][_0x5959be(0x37d)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))['subscribe'](_0x1cce42=>{const _0x980260=_0x5959be,_0x43c789=_0x1cce42[_0x980260(0x2bf)];_0x43c789===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x980260(0x367)](_0x1cce42),_0x43c789===g[_0x980260(0x22a)][_0x980260(0x133)]&&this[_0x980260(0x1cd)](_0x1cce42);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)]['onCommandExecuted'](_0x3c0c33=>{const _0x5ad06f=_0x5959be,_0x332f00=_0x3c0c33[_0x5ad06f(0x38c)];_0x332f00!=null&&this[_0x5ad06f(0x2e3)]&&_0x3c0c33['id']===V[_0x5ad06f(0x183)]['id']&&_0x332f00[_0x5ad06f(0x3a9)]===this['unitID']&&_0x332f00[_0x5ad06f(0x12c)]===!0x1&&_0x332f00[_0x5ad06f(0x33c)][_0x5ad06f(0x236)]>0x0&&this[_0x5ad06f(0x2a7)](_0x332f00['ranges']);})),this['_syncEditingCollabCursorService'][_0x5959be(0x278)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this['dispose$']))[_0x5959be(0x1e3)](_0x1e3c82=>{const _0x66717a=_0x5959be;if((_0x1e3c82==null?void 0x0:_0x1e3c82['unitID'])!==this[_0x66717a(0x1ca)])return;const _0x1c8e20={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1e3c82};this['_onCursorUpdate'](_0x1c8e20);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)][_0x5959be(0x2dc)](_0x29a9d6=>{const _0x5d34c8=_0x5959be;if(_0x29a9d6[_0x5d34c8(0x38c)]==null)return;const _0x29a2dd=_0x29a9d6[_0x5d34c8(0x38c)];if(_0x29a9d6['id']!==V[_0x5d34c8(0x30a)]['id']||_0x29a2dd[_0x5d34c8(0x3a9)]!==this[_0x5d34c8(0x1ca)])return;const _0x4d6d47={'id':_0x5d34c8(0x272),'params':_0x29a2dd},_0x182ac0=this['cursorInfo'];for(const [_0x5bcd55,_0x1ede04]of _0x182ac0){const _0x55c19d={'id':_0x5d34c8(0x272),'params':{'unitId':this[_0x5d34c8(0x1ca)],'actions':null,'textRanges':_0x1ede04[_0x5d34c8(0x33c)]}},_0x1cedb2=this['_transformService']['transformMutation'](_0x4d6d47,_0x55c19d,!0x1);if(g[_0x5d34c8(0x1c5)](_0x1cedb2))throw _0x1cedb2['error'];_0x182ac0[_0x5d34c8(0x2c6)](_0x5bcd55,{..._0x1ede04,'ranges':_0x1cedb2[_0x5d34c8(0x33a)][_0x5d34c8(0x38c)][_0x5d34c8(0x358)]});}queueMicrotask(()=>{const _0x31021f=_0x5d34c8;this[_0x31021f(0x1f1)][_0x31021f(0x2b7)](_0x182ac0);});})));}[_0x2369fc(0x367)](_0x179ec5){const _0x3c6f08=_0x2369fc;var _0x382f18,_0x2e700c;const {memberID:_0x1be972,selection:_0x16094b}=_0x179ec5[_0x3c6f08(0x2ce)],_0x35e108=ht(_0x16094b),_0x4cc78c=(_0x2e700c=(_0x382f18=this['_memberService'][_0x3c6f08(0x1e0)](this[_0x3c6f08(0x1ca)],_0x1be972))==null?void 0x0:_0x382f18[_0x3c6f08(0x2e0)])!=null?_0x2e700c:_0x3c6f08(0x106),_0x2c29af={'color':this['_colorAssignService'][_0x3c6f08(0x2d6)](_0x1be972),'name':_0x4cc78c,'ranges':_0x35e108},_0x175a1e=this['cursorInfo'];_0x175a1e['set'](_0x1be972,_0x2c29af),this[_0x3c6f08(0x1f1)][_0x3c6f08(0x2b7)](_0x175a1e);}[_0x2369fc(0x1cd)](_0x39df7e){const _0x188423=_0x2369fc,{memberID:_0x2d3042}=_0x39df7e['data'],_0x20f13d=this[_0x188423(0x374)];_0x20f13d[_0x188423(0x10a)](_0x2d3042),this[_0x188423(0x1f1)][_0x188423(0x2b7)](_0x20f13d);}[_0x2369fc(0x35e)](){const _0x11070c=_0x2369fc;var _0x44247a;if(this[_0x11070c(0x2e3)]=!0x0,((_0x44247a=this[_0x11070c(0x1ff)][_0x11070c(0x347)]())==null?void 0x0:_0x44247a['getUnitId']())!==this[_0x11070c(0x1ca)])return;const _0x3c868f=this[_0x11070c(0x2bc)]['get'](V[_0x11070c(0x191)])['getDocRanges']();Array['isArray'](_0x3c868f)&&_0x3c868f[_0x11070c(0x236)]>0x0&&this['_updateLocalCursor'](_0x3c868f);}[_0x2369fc(0x19d)](){const _0x52c32d=_0x2369fc;this[_0x52c32d(0x2e3)]=!0x1;}};ve=It([U(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),U(0x3,a[_0x2369fc(0x2ab)](Re)),U(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),U(0x5,a[_0x2369fc(0x2ab)](be)),U(0x6,g[_0x2369fc(0x192)]),U(0x7,a[_0x2369fc(0x24a)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x2369fc(0x219)],mt=(_0x5e3c6c,_0x2f5bb4,_0x2a73c6,_0x2edf8b)=>{const _0x4e5a31=_0x2369fc;for(var _0x3baafd=_0x2edf8b>0x1?void 0x0:_0x2edf8b?ft(_0x2f5bb4,_0x2a73c6):_0x2f5bb4,_0xb4bf52=_0x5e3c6c[_0x4e5a31(0x236)]-0x1,_0x12b6a9;_0xb4bf52>=0x0;_0xb4bf52--)(_0x12b6a9=_0x5e3c6c[_0xb4bf52])&&(_0x3baafd=_0x12b6a9(_0x3baafd)||_0x3baafd);return _0x3baafd;},w=(_0x23c37b,_0x135530)=>(_0xd8db72,_0x21519d)=>_0x135530(_0xd8db72,_0x21519d,_0x23c37b);const vt=0x12c,gt=0x64,Et=()=>{let _0x1feab4=[],_0x43670a=!0x1;return _0x48a77b=>{const _0x53b0ed=_0x8c2a;_0x1feab4[_0x53b0ed(0x1a0)](_0x48a77b),_0x43670a||(_0x43670a=!0x0,setTimeout(()=>{const _0xec044e=_0x53b0ed;_0x1feab4[_0xec044e(0x1a4)](_0x380937=>_0x380937()),_0x1feab4=[],_0x43670a=!0x1;}));};};let ge=class extends a[_0x2369fc(0x37f)]{constructor(_0x52c974,_0xa81df0,_0x25d5b1,_0x2e62d6,_0x15b4c7,_0x29047b,_0x1ce607,_0x394db7){const _0x2ae60a=_0x2369fc;super(),_(this,'_online',!0x1),_(this,_0x2ae60a(0x2d3),!0x1),_(this,'_cursorInfo$',new I[(_0x2ae60a(0x121))](new Map())),_(this,_0x2ae60a(0x27d),this['_cursorInfo$']['asObservable']()),_(this,_0x2ae60a(0x352),new I['BehaviorSubject']([])),_(this,_0x2ae60a(0x37c),this[_0x2ae60a(0x352)]['pipe'](I[_0x2ae60a(0x2d9)](vt))),_(this,_0x2ae60a(0x2a7),a['debounce']((_0x577d10,_0x21e120)=>{const _0xdbe021=_0x2ae60a,_0x4560e5={'eventID':g[_0xdbe021(0x22a)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xdbe021(0x376)][_0xdbe021(0x38d)](),'selection':B[_0xdbe021(0x299)](_0x577d10,_0x21e120[_0xdbe021(0xf5)])}};this[_0xdbe021(0x376)][_0xdbe021(0x2e2)](_0x4560e5,this[_0xdbe021(0x1ca)]);},gt)),(this['unitID']=_0x52c974,this[_0x2ae60a(0x376)]=_0xa81df0,this[_0x2ae60a(0x2bc)]=_0x25d5b1,this[_0x2ae60a(0x28d)]=_0x2e62d6,this[_0x2ae60a(0x338)]=_0x15b4c7,this[_0x2ae60a(0x1ff)]=_0x29047b,this[_0x2ae60a(0x24c)]=_0x1ce607,this[_0x2ae60a(0x1fc)]=_0x394db7);}get['cursorInfo'](){const _0x31d1e0=_0x2369fc;return this['_cursorInfo$'][_0x31d1e0(0x23e)]();}get[_0x2369fc(0x284)](){const _0x26baca=_0x2369fc;return this[_0x26baca(0x352)][_0x26baca(0x23e)]();}['dispose'](){const _0xc1b08e=_0x2369fc;super[_0xc1b08e(0x31e)](),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x2b7)](new Map()),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x36f)](),this[_0xc1b08e(0x352)][_0xc1b08e(0x2b7)]([]),this['_roomMembers$']['complete']();}[_0x2369fc(0xe9)](){const _0x48abd1=_0x2369fc;this[_0x48abd1(0x2d3)]||(this[_0x48abd1(0x2d3)]=!0x0,this['_session'][_0x48abd1(0x1f8)][_0x48abd1(0x28a)](I['takeUntil'](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x467833=>{const _0x3116fe=_0x48abd1;_0x467833===u[_0x3116fe(0x1d7)]['ONLINE']?this[_0x3116fe(0x35e)]():this[_0x3116fe(0x19d)]();}),this[_0x48abd1(0x376)][_0x48abd1(0x37d)][_0x48abd1(0x28a)](I[_0x48abd1(0x1e2)](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x541e4f=>{const _0x2a6521=_0x48abd1,_0x30e628=_0x541e4f[_0x2a6521(0x2bf)];_0x30e628===g[_0x2a6521(0x22a)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x541e4f),_0x30e628===g[_0x2a6521(0x22a)][_0x2a6521(0x133)]&&this['_onCursorDelete'](_0x541e4f);}),this[_0x48abd1(0x12d)](),this['disposeWithMe'](this[_0x48abd1(0x24c)][_0x48abd1(0x2dc)](_0x460de9=>{const _0x1c4f9c=_0x48abd1;if(this[_0x1c4f9c(0x2e3)]&&_0x460de9['id']===v[_0x1c4f9c(0x1c9)]['id']&&_0x460de9[_0x1c4f9c(0x38c)][_0x1c4f9c(0x3a9)]===this[_0x1c4f9c(0x1ca)]){const _0x35f70c=_0x460de9[_0x1c4f9c(0x38c)];this[_0x1c4f9c(0x2a7)](_0x35f70c['subUnitId'],_0x35f70c[_0x1c4f9c(0x211)][0x0]);}})));}[_0x2369fc(0x367)](_0x1f7027){const _0x472c1d=_0x2369fc;var _0x172da5,_0x4167d3;const {memberID:_0x100b17,selection:_0x432f1f}=_0x1f7027[_0x472c1d(0x2ce)],{sheetName:_0x80f913,range:_0x268142}=B[_0x472c1d(0x201)](_0x432f1f),_0x3e167c={'name':(_0x4167d3=(_0x172da5=this[_0x472c1d(0x338)][_0x472c1d(0x1e0)](this[_0x472c1d(0x1ca)],_0x100b17))==null?void 0x0:_0x172da5[_0x472c1d(0x2e0)])!=null?_0x4167d3:_0x472c1d(0x106),'range':this[_0x472c1d(0x1c2)](_0x80f913,_0x268142),'sheetID':_0x80f913,'color':this['_colorAssignService'][_0x472c1d(0x2d6)](_0x100b17),'selection':_0x432f1f},_0x3ea9c2=this[_0x472c1d(0x374)];_0x3ea9c2[_0x472c1d(0x2c6)](_0x100b17,_0x3e167c),this[_0x472c1d(0x1f1)][_0x472c1d(0x2b7)](_0x3ea9c2);}[_0x2369fc(0x1cd)](_0x4231d2){const _0x43cb68=_0x2369fc,{memberID:_0x2633dd}=_0x4231d2['data'],_0x58cf70=this[_0x43cb68(0x374)];_0x58cf70['delete'](_0x2633dd),this[_0x43cb68(0x1f1)][_0x43cb68(0x2b7)](_0x58cf70);}['_getMergeRange'](_0x26d513,_0x383d63){const _0x2da29b=_0x2369fc;var _0x45e88c,_0x5ac7a3;const _0x206093=(_0x5ac7a3=(_0x45e88c=this[_0x2da29b(0x1ff)][_0x2da29b(0x15b)](this[_0x2da29b(0x1ca)]))==null?void 0x0:_0x45e88c['getSheetBySheetId'](_0x26d513))==null?void 0x0:_0x5ac7a3[_0x2da29b(0x22d)]();return(_0x206093==null?void 0x0:_0x206093['find'](_0x9cf95=>a['Rectangle'][_0x2da29b(0x19a)](_0x9cf95,_0x383d63)))||_0x383d63;}[_0x2369fc(0x12d)](){const _0x2cefa3=_0x2369fc,_0x4f8180=new a[(_0x2cefa3(0x2e4))](),_0x41ad5a=Et(),_0x3ef154=()=>{const _0x428539=_0x2cefa3;_0x4f8180[_0x428539(0x31e)]();const _0x2c9deb=(_0x42db0e,_0x132e34,_0x586561,_0x363323)=>{const _0x25e1cf=_0x428539;let _0x1074bc=[];switch(_0x42db0e['id']){case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x120)]:{_0x1074bc=v[_0x25e1cf(0x134)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)]['DeleteRangeMoveUpCommandId']:{_0x1074bc=v[_0x25e1cf(0x116)](_0x42db0e,_0x363323);break;}case v['EffectRefRangId'][_0x25e1cf(0x36a)]:{_0x1074bc=v[_0x25e1cf(0x3a1)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x1f5)]:{_0x1074bc=v['handleInsertRangeMoveDown'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1074bc=v['handleInsertRangeMoveRight'](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x2ef)]:{_0x1074bc=v['handleInsertRow'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x1074bc=v[_0x25e1cf(0x2fe)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x167)]:{_0x1074bc=v[_0x25e1cf(0x288)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x315)]:{_0x1074bc=v[_0x25e1cf(0x21d)](_0x42db0e,_0x363323);break;}}const _0x41f2ad=v[_0x25e1cf(0x306)](_0x1074bc,_0x363323),_0x26f81b=this[_0x25e1cf(0x374)][_0x25e1cf(0x30d)](_0x132e34);if(_0x26f81b&&_0x41f2ad){const _0x1792f5={..._0x26f81b,'range':_0x41f2ad};this[_0x25e1cf(0x374)][_0x25e1cf(0x2c6)](_0x132e34,_0x1792f5),_0x41ad5a(()=>{const _0x2a13a8=_0x25e1cf,_0x22a10e=this['_refRangeService'][_0x2a13a8(0x36b)](_0x41f2ad,_0x2c41ab=>(_0x22a10e[_0x2a13a8(0x31e)](),_0x2c9deb(_0x2c41ab,_0x132e34,_0x586561,_0x41f2ad)));_0x4f8180[_0x2a13a8(0x161)](_0x22a10e);});}return{'redos':[],'undos':[]};};this[_0x428539(0x374)][_0x428539(0x1a4)]((_0x456122,_0x515bb9)=>{const _0x4193cd=_0x428539,{range:_0x580805,sheetID:_0x4d8c54}=_0x456122,_0x55fcfc=this[_0x4193cd(0x1fc)][_0x4193cd(0x36b)](_0x580805,_0x6493d4=>(_0x55fcfc[_0x4193cd(0x31e)](),_0x2c9deb(_0x6493d4,_0x515bb9,_0x4d8c54,_0x580805)));_0x4f8180[_0x4193cd(0x161)](_0x55fcfc);});};this['disposeWithMe'](a[_0x2cefa3(0x199)](this['_cursorInfo$'][_0x2cefa3(0x1e3)](()=>{_0x3ef154();})));}[_0x2369fc(0x35e)](){const _0x2fea14=_0x2369fc;var _0x340e08,_0x5300fc;if(this[_0x2fea14(0x2e3)]=!0x0,((_0x340e08=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x340e08[_0x2fea14(0x253)]())!==this['unitID'])return;const _0x4c1e61=(_0x5300fc=this[_0x2fea14(0x2bc)][_0x2fea14(0x30d)](v[_0x2fea14(0x39f)])['getCurrentSelections']())==null?void 0x0:_0x5300fc[0x0],_0x5853f2=this[_0x2fea14(0x1ff)]['getCurrentUnitForType'](a[_0x2fea14(0x392)]['UNIVER_SHEET'])[_0x2fea14(0x363)]();_0x4c1e61&&_0x5853f2&&this[_0x2fea14(0x2a7)](_0x5853f2[_0x2fea14(0x2b0)](),_0x4c1e61);}[_0x2369fc(0x19d)](){const _0x446ff6=_0x2369fc;this[_0x446ff6(0x2e3)]=!0x1;}};ge=mt([w(0x2,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),w(0x3,a[_0x2369fc(0x2ab)](Re)),w(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),w(0x5,a['IUniverInstanceService']),w(0x6,a['ICommandService']),w(0x7,a[_0x2369fc(0x2ab)](v[_0x2369fc(0x269)]))],ge);var Ct=Object[_0x2369fc(0x219)],Tt=(_0x431715,_0x1783c4,_0x4b00da,_0x362d07)=>{const _0x3c3502=_0x2369fc;for(var _0x2dcd1e=_0x362d07>0x1?void 0x0:_0x362d07?Ct(_0x1783c4,_0x4b00da):_0x1783c4,_0x304b00=_0x431715[_0x3c3502(0x236)]-0x1,_0x59088c;_0x304b00>=0x0;_0x304b00--)(_0x59088c=_0x431715[_0x304b00])&&(_0x2dcd1e=_0x59088c(_0x2dcd1e)||_0x2dcd1e);return _0x2dcd1e;},ce=(_0x30ab56,_0x1f2d8c)=>(_0x3c9680,_0x58b0b9)=>_0x1f2d8c(_0x3c9680,_0x58b0b9,_0x30ab56);let F=class extends a[_0x2369fc(0x37f)]{constructor(_0x4399e9,_0x18ae3c,_0x5eb800){const _0x5ae095=_0x2369fc;super(),_(this,_0x5ae095(0x2cf),new Map()),_(this,_0x5ae095(0x389),new I[(_0x5ae095(0x310))]()),(this['_univerInstanceService']=_0x4399e9,this[_0x5ae095(0x2bc)]=_0x18ae3c,this[_0x5ae095(0x16c)]=_0x5eb800,this[_0x5ae095(0x2d3)]());}[_0x2369fc(0x31e)](){const _0xafd8b6=_0x2369fc;super[_0xafd8b6(0x31e)](),this[_0xafd8b6(0x389)][_0xafd8b6(0x36f)](),this[_0xafd8b6(0x2cf)]['forEach'](_0x50ca55=>_0x50ca55['dispose']());}[_0x2369fc(0xe3)](_0x5c4502){const _0x55a520=_0x2369fc;return this[_0x55a520(0x2cf)][_0x55a520(0x17a)](_0x5c4502)?this[_0x55a520(0x2cf)][_0x55a520(0x30d)](_0x5c4502)[_0x55a520(0x27d)]:this[_0x55a520(0x389)][_0x55a520(0x28a)](I[_0x55a520(0x21c)](_0x202527=>_0x202527[_0x55a520(0x1ca)]===_0x5c4502),I[_0x55a520(0x280)](_0x353760=>_0x353760['cursorInfo$']));}[_0x2369fc(0x2d3)](){const _0x15ecd9=_0x2369fc;this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a['UniverInstanceType'][_0x15ecd9(0x2b8)])[_0x15ecd9(0x28a)](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x1e3)](async _0x1740b6=>{const _0x43825d=_0x15ecd9,_0x246fec=_0x1740b6[_0x43825d(0x253)](),_0x1cf8a9=await this[_0x43825d(0x343)](_0x246fec);this[_0x43825d(0x389)][_0x43825d(0x2b7)](_0x1cf8a9),this[_0x43825d(0x2cf)][_0x43825d(0x2c6)](_0x246fec,_0x1cf8a9);}),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a[_0x15ecd9(0x392)][_0x15ecd9(0xf2)])['pipe'](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x21c)](_0x4a24f3=>!_0x4a24f3['getUnitId']()[_0x15ecd9(0x1c7)]('__')))[_0x15ecd9(0x1e3)](async _0x22f191=>{const _0x2a9d62=_0x15ecd9,_0x2aa447=_0x22f191['getUnitId'](),_0x30b4fe=await this[_0x2a9d62(0x294)](_0x2aa447);this[_0x2a9d62(0x389)][_0x2a9d62(0x2b7)](_0x30b4fe),this['_entities']['set'](_0x2aa447,_0x30b4fe);}),I[_0x15ecd9(0x224)](this[_0x15ecd9(0x1ff)]['getTypeOfUnitDisposed$'](a[_0x15ecd9(0x392)]['UNIVER_DOC']),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x14c)](a[_0x15ecd9(0x392)][_0x15ecd9(0x2b8)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x1e2)](this[_0x15ecd9(0x131)]))['subscribe'](_0x334909=>{const _0x1548cc=_0x15ecd9,_0x157cc2=_0x334909[_0x1548cc(0x253)](),_0x4289f5=this['_entities']['get'](_0x157cc2);_0x4289f5&&(_0x4289f5[_0x1548cc(0x31e)](),this['_entities'][_0x1548cc(0x10a)](_0x157cc2));});}async[_0x2369fc(0x343)](_0x496603){const _0x4edd45=_0x2369fc,_0x541767=await this['_collabSessionService']['requireSession'](_0x496603),_0x3dfb28=this[_0x4edd45(0x2bc)][_0x4edd45(0x365)](ge,_0x496603,_0x541767);return _0x3dfb28['init'](),_0x3dfb28;}async[_0x2369fc(0x294)](_0x39f2d7){const _0xd6d815=_0x2369fc,_0x2895c5=await this[_0xd6d815(0x16c)][_0xd6d815(0x2a8)](_0x39f2d7),_0x47d55e=this[_0xd6d815(0x2bc)][_0xd6d815(0x365)](ve,_0x39f2d7,_0x2895c5);return _0x47d55e[_0xd6d815(0xe9)](),_0x47d55e;}};F=Tt([ce(0x0,a[_0x2369fc(0x24a)]),ce(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),ce(0x2,a['Inject'](u[_0x2369fc(0xf0)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x1694f7,_0x1c67c2){const _0x1d26f9=_0x2369fc;let {radius:_0x4f3e26,width:_0x376a04,height:_0x22bffd}=_0x1c67c2;_0x4f3e26=_0x4f3e26!=null?_0x4f3e26:0x0,_0x376a04=_0x376a04!=null?_0x376a04:0x1e,_0x22bffd=_0x22bffd!=null?_0x22bffd:0x1e;let _0x493eba=0x0,_0x5abafd=0x0,_0x563d31=0x0;_0x493eba=_0x5abafd=_0x563d31=Math[_0x1d26f9(0x151)](_0x4f3e26,_0x376a04/0x2,_0x22bffd/0x2),_0x1694f7['beginPath'](),_0x1694f7['moveTo'](_0x493eba,0x0),_0x1694f7[_0x1d26f9(0x27e)](_0x376a04-_0x5abafd,0x0),_0x1694f7['arc'](_0x376a04-_0x5abafd,_0x5abafd,_0x5abafd,Math['PI']*0x3/0x2,0x0,!0x1),_0x1694f7['lineTo'](_0x376a04,_0x22bffd-_0x563d31),_0x1694f7[_0x1d26f9(0x135)](_0x376a04-_0x563d31,_0x22bffd-_0x563d31,_0x563d31,0x0,Math['PI']/0x2,!0x1),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x22bffd),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x493eba),_0x1694f7[_0x1d26f9(0x135)](_0x493eba,_0x493eba,_0x493eba,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1694f7[_0x1d26f9(0x1e1)](),_0x1c67c2[_0x1d26f9(0x126)]&&(_0x1694f7[_0x1d26f9(0x112)](),_0x1694f7[_0x1d26f9(0x13b)]=_0x1c67c2[_0x1d26f9(0x126)],_0x1c67c2[_0x1d26f9(0x2ec)]===_0x1d26f9(0x11f)?_0x1694f7[_0x1d26f9(0x126)]('evenodd'):_0x1694f7[_0x1d26f9(0x126)](),_0x1694f7['restore']());}class re extends C['Shape']{constructor(_0x5ca66b,_0x378a88){const _0x22d921=_0x2369fc;super(_0x5ca66b,_0x378a88),_(this,_0x22d921(0x123)),_(this,_0x22d921(0x13e)),(this[_0x22d921(0x123)]=_0x378a88==null?void 0x0:_0x378a88['color'],this['text']=_0x378a88==null?void 0x0:_0x378a88[_0x22d921(0x13e)]);}static[_0x2369fc(0x263)](_0x372d1b,_0x41f6e1){const _0x25ccae=_0x2369fc,{text:_0x3cc0bb,color:_0x5dc2e8}=_0x41f6e1;_0x372d1b[_0x25ccae(0x112)](),_0x372d1b[_0x25ccae(0x39b)]=_0x25ccae(0x114);const _0x34e9d3=_0x372d1b[_0x25ccae(0x223)](_0x3cc0bb)[_0x25ccae(0xf7)],_0x5882ee=Math[_0x25ccae(0x151)](_0x34e9d3+0x2*le,Ue);Ot(_0x372d1b,{'height':X,'radius':0x4,'width':_0x5882ee,'fill':_0x5dc2e8}),_0x372d1b[_0x25ccae(0x13b)]=_0x25ccae(0x1d3);const _0x33b93b=le,_0x2a0702=X-pt,_0x20d106=Ue-0x2*le;if(_0x34e9d3>_0x20d106){let _0x2a40b0='',_0x137e5e=0x0;for(const _0x5baf8a of _0x3cc0bb){const _0x1bae7e=_0x372d1b[_0x25ccae(0x223)](_0x5baf8a)['width'];if(_0x137e5e+_0x1bae7e<=_0x20d106-_0x372d1b[_0x25ccae(0x223)](_0x25ccae(0x2f6))[_0x25ccae(0xf7)])_0x2a40b0+=_0x5baf8a,_0x137e5e+=_0x1bae7e;else{_0x2a40b0+=_0x25ccae(0x2f6);break;}}_0x372d1b[_0x25ccae(0x2a6)](_0x2a40b0,_0x33b93b,_0x2a0702);}else _0x372d1b[_0x25ccae(0x2a6)](_0x3cc0bb,_0x33b93b,_0x2a0702);_0x372d1b[_0x25ccae(0x1fb)]();}[_0x2369fc(0x1ad)](_0x1c9215){const _0x29dd47=_0x2369fc;re[_0x29dd47(0x263)](_0x1c9215,this);}}const _e=_0x2369fc(0x169),Rt=_0x2369fc(0x35f),bt=_0x2369fc(0x378),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2369fc(0xf6);class Le{constructor(_0x461695,_0x900680,_0x79d213,_0x13edf0){const _0x39f4e1=_0x2369fc;_(this,_0x39f4e1(0x2c3),[]),_(this,_0x39f4e1(0x1e9),null),_(this,_0x39f4e1(0x265),null),_(this,_0x39f4e1(0x2bb),null),_(this,'_hideTimer',null),_(this,_0x39f4e1(0x318),null),(this[_0x39f4e1(0x1ce)]=_0x461695,this[_0x39f4e1(0x163)]=_0x900680,this[_0x39f4e1(0x127)]=_0x79d213,this[_0x39f4e1(0x399)]=_0x13edf0,this[_0x39f4e1(0x274)]());}set[_0x2369fc(0x21b)](_0x392158){const _0x567edb=_0x2369fc;_0x392158?(this[_0x567edb(0x2bb)]&&this[_0x567edb(0x2bb)]['hide'](),this[_0x567edb(0x265)]&&this[_0x567edb(0x265)][_0x567edb(0x1c4)]()):(this['_anchorDot']&&this['_anchorDot'][_0x567edb(0x1c4)](),this[_0x567edb(0x265)]&&this['_textBubble']['hide']());}[_0x2369fc(0x31e)](){const _0x204a91=_0x2369fc;for(const _0x6b86d9 of this[_0x204a91(0x2c3)])_0x6b86d9['dispose']();this[_0x204a91(0x265)]&&this[_0x204a91(0x265)]['dispose'](),this[_0x204a91(0x2bb)]&&this[_0x204a91(0x2bb)][_0x204a91(0x31e)](),this['_anchor']&&this[_0x204a91(0x1e9)]['dispose'](),this['_eventUnsubscribe']&&this[_0x204a91(0x318)]();}[_0x2369fc(0x274)](){const _0x16f917=_0x2369fc;var _0x4eec24;const {_docSkeleton:_0x2bbe27,_document:_0x4bb0d2}=this,{color:_0x329340,name:_0x12c250,ranges:_0x11add5}=this[_0x16f917(0x1ce)],_0x4c39eb=_0x4bb0d2[_0x16f917(0x304)](),{docsLeft:_0x4f6458,docsTop:_0x333b58}=_0x4c39eb,_0x5e40da=new T[(_0x16f917(0x158))](_0x4c39eb,_0x2bbe27);for(const {startOffset:_0x1899d4,endOffset:_0xdfee3c,rangeType:_0x846f12,segmentId:_0x5d27c5,segmentPage:_0x53cde7,collapsed:_0xa8dffc,isActive:_0x24672e}of _0x11add5){const _0x2614f7=_0x2bbe27[_0x16f917(0x18d)](_0x1899d4,!0x0,_0x5d27c5,_0x53cde7);let _0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c,!0x0,_0x5d27c5,_0x53cde7);if(_0x4e53f0==null&&(_0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c-0x1,!0x1,_0x5d27c5,_0x53cde7)),_0x24672e){const {contentBoxPointGroup:_0x1f9f99}=_0x5e40da[_0x16f917(0x2fd)](_0x4e53f0,_0x4e53f0);if(_0x1f9f99[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x1ec)](_0x329340,_0x1f9f99,_0x4f6458,_0x333b58,_0x12c250),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x2614f7&&_0x4e53f0){if(_0x846f12===a[_0x16f917(0x23f)]['RECT']){const _0x33e95f=new T['NodePositionConvertToRectRange'](_0x4c39eb,_0x2bbe27),{pointGroup:_0x4a33c9}=(_0x4eec24=_0x33e95f[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0))!=null?_0x4eec24:{};if(_0x4a33c9==null||_0x4a33c9[_0x16f917(0x236)]===0x0)continue;this['_drawRectRange'](_0x329340,_0x4a33c9,_0x4f6458,_0x333b58);}else{if(!_0xa8dffc){const {borderBoxPointGroup:_0x2b5e0d}=_0x5e40da[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0);if(_0x2b5e0d[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x2f8)](_0x329340,_0x2b5e0d,_0x4f6458,_0x333b58);}}}}}[_0x2369fc(0x1ec)](_0x40c8ef,_0x8c2019,_0x265cdb,_0x593891,_0x28a1a4){const _0x1b89c5=_0x2369fc,_0x3374ee=this[_0x1b89c5(0x1dc)](_0x8c2019),{left:_0x3b0d05,top:_0xb9cb7d,height:_0x4c8b9a}=_0x3374ee,_0x2c477c=this[_0x1b89c5(0x142)](),_0x3a6721=Nt/_0x2c477c,_0x1d3a7b=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891,'height':_0x4c8b9a,'width':Dt,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)][_0x1b89c5(0x3ab)],0x0),'strokeWidth':_0x3a6721,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x1d3a7b,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x1d3a7b,T[_0x1b89c5(0x388)]);const _0x273611=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-he/0x2,'height':he,'width':he,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40c8ef||C[_0x1b89c5(0x1fe)](a['COLORS'][_0x1b89c5(0x3ab)],0x0),'evented':!0x1});this['_anchorDot']=_0x273611,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x273611,T[_0x1b89c5(0x388)]);const _0x404e9d=new re(_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-X,'text':_0x28a1a4,'color':_0x40c8ef});this[_0x1b89c5(0x265)]=_0x404e9d,this[_0x1b89c5(0x163)]['addObject'](_0x404e9d,T[_0x1b89c5(0x388)]),this['_hover']=!0x1;}[_0x2369fc(0x1ab)](){const _0x2070dc=_0x2369fc,_0x33b217=this[_0x2070dc(0x1e9)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x306cc2=this[_0x2070dc(0x1e9)][_0x2070dc(0x113)]['subscribeEvent'](()=>{const _0x3173f6=_0x2070dc;this[_0x3173f6(0x1ea)]&&clearTimeout(this[_0x3173f6(0x1ea)]),this[_0x3173f6(0x1ea)]=setTimeout(()=>{const _0x4c743c=_0x3173f6;this[_0x4c743c(0x21b)]=!0x1;},0x7d0);});return()=>{const _0x447df0=_0x2070dc;_0x33b217['unsubscribe'](),_0x306cc2[_0x447df0(0xe7)]();};}[_0x2369fc(0x2f8)](_0x14040a,_0x2bc485,_0x6f997f,_0x5a0fc2){const _0x4b1617=_0x2369fc,_0x965ae0=new a[(_0x4b1617(0x1d8))](_0x14040a)[_0x4b1617(0x2da)](0.2)[_0x4b1617(0x394)](),_0x4ee1d6=new C[(_0x4b1617(0xfb))](Rt+a[_0x4b1617(0x2f7)](H),{'pointsGroup':_0x2bc485,'fill':_0x965ae0||C[_0x4b1617(0x1fe)](a[_0x4b1617(0x225)][_0x4b1617(0x3ab)],0.2),'left':_0x6f997f,'top':_0x5a0fc2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b1617(0x2c3)][_0x4b1617(0x1a0)](_0x4ee1d6),this['_scene'][_0x4b1617(0x221)](_0x4ee1d6,T[_0x4b1617(0x388)]);}[_0x2369fc(0x322)](_0x16b990,_0x379caa,_0x1d71d6,_0xd57617){const _0xc26e03=_0x2369fc,_0x2ec394=new a[(_0xc26e03(0x1d8))](_0x16b990)[_0xc26e03(0x2da)](0.2)[_0xc26e03(0x394)](),_0x310311=new C['RegularPolygon'](bt+a[_0xc26e03(0x2f7)](H),{'pointsGroup':_0x379caa,'fill':_0x2ec394||C['getColor'](a['COLORS'][_0xc26e03(0x3ab)],0.2),'left':_0x1d71d6,'top':_0xd57617,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xc26e03(0x1a0)](_0x310311),this[_0xc26e03(0x163)][_0xc26e03(0x221)](_0x310311,T[_0xc26e03(0x388)]);}[_0x2369fc(0x1dc)](_0x4a35e6){const _0x3edc20=_0x4a35e6[0x0],_0x11824e=_0x3edc20[0x0],_0x43495f=_0x3edc20[0x2],{x:_0x17e92e,y:_0x11b68c}=_0x11824e,{x:_0x423b84,y:_0x1a3a38}=_0x43495f;return{'left':_0x17e92e,'top':_0x11b68c,'width':_0x423b84-_0x17e92e,'height':_0x1a3a38-_0x11b68c};}[_0x2369fc(0x142)](){const _0x11e34c=_0x2369fc,{scaleX:_0xe0c71b,scaleY:_0x2ba433}=this['_scene'][_0x11e34c(0x1b0)]();return Math[_0x11e34c(0x1d5)](_0xe0c71b,_0x2ba433);}}var Lt=Object[_0x2369fc(0x219)],Mt=(_0x5abb22,_0x4b7132,_0x1d0c72,_0x37c7a5)=>{const _0x5cc0f5=_0x2369fc;for(var _0x393ac4=_0x37c7a5>0x1?void 0x0:_0x37c7a5?Lt(_0x4b7132,_0x1d0c72):_0x4b7132,_0xf150c6=_0x5abb22[_0x5cc0f5(0x236)]-0x1,_0x4d4927;_0xf150c6>=0x0;_0xf150c6--)(_0x4d4927=_0x5abb22[_0xf150c6])&&(_0x393ac4=_0x4d4927(_0x393ac4)||_0x393ac4);return _0x393ac4;},q=(_0x19883d,_0x60d5ff)=>(_0x3381c5,_0xb06fba)=>_0x60d5ff(_0x3381c5,_0xb06fba,_0x19883d);let Ee=class extends a[_0x2369fc(0x37f)]{constructor(_0x596262,_0x58e4e3,_0x24496c,_0x3e3e0d,_0x4f9347){const _0x47faeb=_0x2369fc;super(),_(this,_0x47faeb(0x20c),[]),_(this,_0x47faeb(0x18a),[]),(this['_context']=_0x596262,this[_0x47faeb(0x30c)]=_0x58e4e3,this[_0x47faeb(0x102)]=_0x24496c,this[_0x47faeb(0x24c)]=_0x3e3e0d,this[_0x47faeb(0x324)]=_0x4f9347,this[_0x47faeb(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x1f9d86=_0x2369fc,_0x646286=this[_0x1f9d86(0x1e8)][_0x1f9d86(0x3a9)],_0x4fc05f=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x1f9d86(0x11a)]([this[_0x1f9d86(0x102)][_0x1f9d86(0xe3)](_0x646286),this[_0x1f9d86(0x324)][_0x1f9d86(0x184)]])['pipe']($[_0x1f9d86(0x22c)](([_0x1a35a2,_0x3bcca5])=>({'skeleton':_0x4fc05f['getSkeleton'](),'cursors':[..._0x1a35a2['values']()][_0x1f9d86(0x38f)](_0x323227=>({..._0x323227,'color':this['_themeService'][_0x1f9d86(0x2b5)](_0x323227[_0x1f9d86(0x123)])}))})))[_0x1f9d86(0x1e3)](_0xb86bc4=>{const _0x321dad=_0x1f9d86;if(this[_0x321dad(0x258)](),_0xb86bc4){const {skeleton:_0x390cdd,cursors:_0x49126b}=_0xb86bc4;this[_0x321dad(0x382)](_0x390cdd,_0x49126b);}})),this[_0x1f9d86(0x2cc)](),this[_0x1f9d86(0x300)]();}['_updateCollabCursors'](_0x341897,_0x1e63c5){const _0x3b4c94=_0x2369fc,{scene:_0x499fad,mainComponent:_0x122e34}=this['_context'],_0x4b1eda=_0x1e63c5[_0x3b4c94(0x22c)](_0x290a0b=>new Le(_0x290a0b,_0x499fad,_0x341897,_0x122e34));this[_0x3b4c94(0x20c)]=_0x4b1eda,this[_0x3b4c94(0x18a)]=_0x1e63c5;}['_refreshCollabCursors'](){const _0x4ede2a=_0x2369fc;this['_removeCollabCursors']();const {scene:_0x242229,mainComponent:_0x33a172}=this['_context'],_0x41a699=this['_docSkeletonManagerService'][_0x4ede2a(0x3ac)](),_0x3475f6=this[_0x4ede2a(0x18a)][_0x4ede2a(0x22c)](_0x40ad51=>new Le(_0x40ad51,_0x242229,_0x41a699,_0x33a172));this['_cursorShapes']=_0x3475f6;}[_0x2369fc(0x258)](){const _0x4ce305=_0x2369fc;this[_0x4ce305(0x20c)][_0x4ce305(0x1a4)](_0x19d689=>_0x19d689[_0x4ce305(0x31e)]()),this[_0x4ce305(0x20c)]=[];}[_0x2369fc(0x300)](){const _0x25ef47=_0x2369fc,_0x325f85=[T[_0x25ef47(0x228)]['id']];this[_0x25ef47(0x237)](this[_0x25ef47(0x24c)][_0x25ef47(0x2dc)](_0x3c7aed=>{const _0x327909=_0x25ef47;_0x325f85[_0x327909(0x11d)](_0x3c7aed['id'])&&_0x3c7aed['params'][_0x327909(0x3a9)]===this[_0x327909(0x1e8)][_0x327909(0x3a9)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x3562c7=_0x2369fc;this['disposeWithMe'](a[_0x3562c7(0x17f)](this[_0x3562c7(0x1e8)][_0x3562c7(0x1ee)][_0x3562c7(0x1a5)])[_0x3562c7(0x28a)]($['filter'](_0x855a54=>_0x855a54[_0x3562c7(0x230)]===C[_0x3562c7(0x147)][_0x3562c7(0x21f)]),$[_0x3562c7(0x141)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};function _0x4655(){const _0x1cc157=['_init','PENDING','getCurrentRevOfUnit','assignAColorForMemberID','sessionTicket','off-line-icon','debounceTime','setAlpha','DocStateChangeManagerService','onCommandExecuted','_saveTaskMap','UNAUTHENTICATED','setActiveRange','name','YUUMI_RATE_OVER_LIMIT','send','_online','DisposableCollection','/universer-api/license/formula/limit/start','Failed','_collaborationController','ILogService','19530090dTVVHG','_unitOnClients','_configService','fillRule','setItem','IRemoteInstanceService','InsertRowCommandId','_getSaveTimeout','_setupBeforeClosingHandler','unshift','_selfUnitIDs','EffectRefRangId','entityInit$','...','generateRandomId','_drawTextRange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_cachedData','touchDependencies','round','getRangePointData','handleMoveRange','collaboration.closeRoom','_initCommandExecutedListener','whenReady','RECT','onPointerMove$','getOffsetConfig','sheetID','runRefRangeMutations','shift','executeCommand','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RichTextEditingMutation','CollaborationStatus','_docSkeletonManagerService','get','_pollingInterval','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Subject','DataLoaderService','disposeUnit','Shape','MessageType','RemoveRowCommandId','setUndoRedoMutationParamsCache','current','_eventUnsubscribe','HEADER_MENU','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_setFormulaLimitStatus','SHEET_VIEWPORT_KEY','dispose','YUUMI_NO_CUBOID_FOR_QUESTION','FromArray','TEXT','_drawRectRange','_initDependencies','_themeService','debug','onStarting','INVALID_INVITE_CODE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','releaseFormulaLimitUrl','_syncEditingCollabCursorService','subscribeEvent','permission.title','registerComponent','currentSkeleton$','MOBILE_VERIFY_CODE_MISMATCH','skeleton','SetFormulaCalculationNotificationMutation','CONNECTOR_DATA_TOO_LARGE','functionsExecutedState','_range','_docTransformSelectionsService','_checkAndWaitForCalculationPermission','_transformHistoryAndStateStack','_memberService','translate(.97)','m2Prime','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ranges','ThemeService','searchParams','_urlService','_instanceService','1749976zetQSz','univer-flex\x20univer-items-center','_startSheetCollabCursor','clearInterval','INVITE_CODE_REQUIRED','_handleJoinEvent','getFocusedUnit','ENTITLE_COUPON_USED_UP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getParam','INVALID_ARGUMENT','replaceState','transformSelections','SUBMIT_CHANGESET_TIMEOUT','_transformService','newValue','ILocalCacheService','_roomMembers$','height','_imageIoService','bottom','transformMutation','ONLINE','textRanges','_initUnhandledRejectionListener','INVITE_CODE_HAS_BEEN_UES','Plugin','off-line-icon_clip0_910_343','updateOfflineData','_toggleOnline','collab-text-range-','override','_initUserListener','APPLY_PERMISSION_DENIED','getActiveSheet','INotificationService','createInstance','_getFormulaLimitStatus','_onCursorUpdate','6asdGbM','_scheduleSaving','InsertColCommandId','registerRefRange','unhandledrejection','_monkeyPatchLogService','forwardRef','complete','with','attrs','ISocketService','AWAITING','cursorInfo','uni.network.url-service','_session','REDEMPTION_CODE_HAS_BEEN_CREATED','collab-rect-range-','post','TOO_MANY_REQUESTS','endColumn','roomMembers$','event$','_labelPosition','RxDisposable','addClipboardHook','ERROR_AGAIN','_updateCollabCursors','url(#on-line-icon_clip0_910_349)','join','colno','YUUMI_AI_RUN_FAILED','LICENSE_IMPORT_SIZE_EXCEEDED','TEXT_RANGE_LAYER_INDEX','_entityInit$','parseInt','CanceledError','params','getMemberID','ENTITLE_REPORT_LIMIT_EXCEED','flatMap','sheetId','SYNCED','UniverInstanceType','collaboration.single-unit.warning','toRgbString','shareReplay','disableLocalCache','VIEW_MAIN','url(#$1','_document','then','font','_unitStatus','key','transformMutationsWithChangeset','SheetsSelectionsService','runOnServer','handleInsertCol','_getSessionTicket','top','replace','mapTo','assign','now','/universer-api/frontend/logs','unitId','values','black','getSkeleton','_docStateChangeManagerService','endRow','useCallback','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_maxFormulaLimit','OTHER_CLIENT_EDITING','getCollabCursors$','href','_transformPreviousActiveRange','_httpService','unsubscribe','mask','init','setInterval','YUUMI_URL_COL_OUT_OF_RANGE','formula.calculation.started','_messageService','collabStatus.conflict','MemberService','CollaborationSessionService','Error','UNIVER_DOC','dirtyRanges','asObservable','range','rgba(255,\x20255,\x20255,\x200.01)','width','LOGIN_TOKEN_PROCESSING_FAILED','CollaborationUIEventId','IMessageService','RegularPolygon','stageInfo','_heartbeatTimer','getConfig','on-line-icon_clip0_910_349','0\x200\x2017\x2016','jsx','_collabCursorController','totalFormulasToCalculate','removeParam','LICENSE_DISTRO_REJECTED','Unknown\x20user','YUUMI_ASYNCIO_CANCELLED','YUUMI_ALL_TABLES_IS_INVALID','LICENSE_EXPORT_SIZE_EXCEEDED','delete','CollaborationUIEventService','Tooltip','pushState','code','CommandType','_renderManagerService','storage','save','onPointerLeave$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','replaceDocRanges','handleDeleteRangeMoveUp','history','_collaborationUIEventService','0\x200\x2016\x2016','combineLatest','_disabled','_status$','includes','message','evenodd','DeleteRangeMoveLeftCommandId','BehaviorSubject','pluginName','color','_send','permission.content','fill','_docSkeleton','OnLineIcon','reconnect','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','isEditing','_onRefRangeChange','transformByState','green.600','limitInfo','dispose$','enableFrontendLog','USERS_LEAVE','handleDeleteRangeMoveLeft','arc','ACTIVE_UNIT_EVENT_CHANNEL','createElement','toString','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docTransformIMECacheService','fillStyle','actions','[Window\x20Error]:\x20','text','setStateCache','USER_NOT_FOUND','throttleTime','_getScale','ticket','1313354VWNgAh','PY_RUNTIME_SCRIPT_ERROR','getVpScrollXYInfoByPosToVp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','source','[LogService\x20Error]:\x20','WebURLService','div','getTypeOfUnitDisposed$','getCoordByCell','getUnitStatus$','DATA_SOURCE_TOO_LARGE','INTERNAL_ERROR','min','registerRenderModule','_currentUsage','SheetCollabCursorShape','createIdentifier','PERMISSION_DENIED','[Unhandled\x20Rejection]:\x20','NodePositionConvertToCursor','_colorIndex','IConfigService','getUniverSheetInstance','unit','APPLY_DUPLICATED','getSheetObject','urlChange$','_handleHeartbeatEvent','add','ENTITLE_CHAT_LIMIT_EXCEED','_scene','ICommandService','m1Prime','getStateCache','RemoveColCommandId','row','collab-text-anchor-','debounce','getUnhiddenWorksheets','_collabSessionService','none','wsSessionTicketUrl','useDependency','Injector','Warning','getItem','currentUsage','backgroundColor','UniverCollaborationClientPlugin','_initStatusListener','reason','stack','UnitStatus','has','LICENSE_MAX_UNITS_EXCEEDED','defs','_logService','PAYMENT_CHANNEL_NOT_SUPPORT','fromEventSubject','NO_OTHER_CLIENTS_EDITING','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOCAL_CACHE_INTERVAL_KEY','SetTextSelectionsOperation','currentTheme$','REDEMPTION_USER_NOT_ELIGIBLE','collaboration-client-ui.config','clsx','_scheduleHeartbeat','Disposable','_cursors','CLOSE_ROOM','_uploadLog','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','registerBeforeClose','1em','DocSelectionManagerService','ITransformService','imageSourceType','_initWindowErrorListener','svg','location','entries','ENTITLE_INSUFFICIENT_QUOTA','toDisposable','contains','CONFLICT','currentColor','_toggleOffline','executionId','Optional','push','getTypeOfUnitAdded$','displayName','_localeService','forEach','onTransformChange$','_taskIds','_handleLeaveEvent','memberID','NOT_FOUND','_collaborationSessionService','_handleHover','useRef','_draw','DocCollaborationEntity','error','getAncestorScale','UniverIcon','getLocalCacheKey','editingUnit','Tools','mergeOverrideWithDependencies','trim','collaboration.offline-data-not-saved','YUUMI_UNABLE_LOAD_URL','session.will-retry','getRenderById','_checkCalculationAvailable','_initStatusComponent','IBeforeCloseService','_initEntityListener','result','getCollabEntity$','_showGuardMessage','_getMergeRange','body','show','isTransformMutationFailure','selection','startsWith','onMouseMove','SetSelectionsOperation','unitID','_lastPointer','ENTITLE_NEED_BILLING_ADDRESS','_onCursorDelete','_cursor','LOCAL_CACHE_INTERVAL','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','size','stage','#FFF','collabStatus.offline','max','saveImage','SessionStatus','ColorKit','mutations','DependentOn','ALREADY_EXISTS','_getAnchorBounding','OFFLINE','beforeCommandExecuted','CHANGESET_REVISION_CONFILICT','getMember','closePath','takeUntil','subscribe','labelPosition','_localCacheService','catch','_scheduleClearOtherTimer','_context','_anchor','_hideTimer','deepClone','_drawAnchor','getCellMatrix','engine','_assignedColors','connectInjector','_cursorInfo$','UniverCollaborationClientUIPlugin','REDEMPTION_CODE_FULLY_REDEEMED','6450680Bhixhv','InsertRangeMoveDownCommandId','colorChannel1','_localStorageService','sessionStatus$','BrowserCollaborationSocketService','undoState','restore','_refRangeService','_hovered','getColor','_univerInstanceService','NOT_COLLAB','deserializeRangeWithSheet','defineProperty','_initCommandInterceptor','_updateSubUnitFromURLParams','_memberID','_saveCache','isFormulaId','_docSyncEditingCollabCursorService','_getSheetObject','IURLService','runId','_cursorShapes','_id','LocaleService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','?taskId=','selections','MOBILE_HAS_BEEN_BOUND','FormulaExecuteStageType','onRendered','/run/','_color','syncEditingCollabCursor','transformIMECache','getOwnPropertyDescriptor','registerDependencies','_hover','filter','handleIRemoveRow','defIds','resize','invokeId','addObject','getCellPositionByOffset','measureText','merge','COLORS','setParam','clipPath','SetDocZoomRatioOperation','_beforeCloseService','CollaborationEvent','UNRECOGNIZED','map','getMergeData','_notificationService','_clearPolling','type','xlink:href','5317509qWWbOd','USER_IS_ANONYMOUS','transformRemoteChangeset','DocIMEInputManagerService','length','disposeWithMe','collabStatus.fetchMiss','_setupSubUnitSync','from','getUndoRedoMutationParamsCache','_registerDependencies','CURRENT_STATUS_CANNOT_OPERATE','getValue','DOC_RANGE_TYPE','71HItjCS','use','docStateChange$','focused$','path','APPLY_NON_SEQUENTIAL_REVISION','column','idSuffix','_applyCommand','HTTPService','IUniverInstanceService','UPDATE_CURSOR','_commandService','AWAITING_WITH_PENDING','ENTITLE_COUPON_EXPIRED','_lastResponseTimestamp','WECHAT_HAS_BEEN_BOUND','tag','getActiveRange','getUnitId','white','_removeClearOtherTimer','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','_removeCollabCursors','some','SetWorksheetActivateCommand','[CollaborationDataLoaderController]','clearTimeout','COMPLETION_FINISHED','Rect','startRow','children','setTimeout','jsxs','drawWith','8625320UBuEFn','_textBubble','isActive','getCurrent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RefRangeService','redoState','getSheetBySheetId','yellow.400','FormulaExecutedStateType','CollaborationController','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformUndoRedoStack','DocSkeletonManagerService','doc.mutation.rich-text-editing','_doCreateSocket','_render','startFormulaLimitUrl','setShapeProps','WebBrowserSingleActiveUnitService','collabCursorState$','collabStatus.syncing','onPointerEnter$','_dataLoaderService','ILocalStorageService','cursorInfo$','lineTo','_name','switchMap','\x20at\x20','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','INVITE_CODE_ALREADY_BOUND','roomMembers','50888Loirmg','LOGIN_FAILED','REDEMPTION_CODE_INACTIVE','handleIRemoveCol','_createSocketURL','pipe','ENSURE_SNAPSHOT_EXECUTION','_backgroundColor','_colorAssignService','_releaseCalculationLimit','SNAPSHOT_HAS_BEEN_REMOVED','getFormulaLimitStatusUrl','_docClipboardService','removeEventListener','isArray','_startDocCollabCursor','fromEvent','CollaborationDataLoaderController','REDEMPTION_INVALID_CODE','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','serializeRangeWithSheet','transformStateCache','lineno','_collabCursorState$','SNAPSHOT_INVALID_SNAPSHOT','_uiPartsService','CollaborationSocketService','USER_NOT_INVITED_CODE','subunit','toStringTag','IImageIoService','addEventListener','_updateURLWithCurrentState','fillText','_updateLocalCursor','requireSession','ISnapshotServerService','_docTransformStateCacheService','Inject','stringify','_config','ENTITLE_INVALID_COUPON_CODE','SOCKET_FAILED_RETRY','getSheetId','M0\x200H16V16H0z','split','_hasFormulaInDirtyRanges','REDEMPTION_CODE_NOT_STARTED','getColorFromTheme','_registerRenderDependencies','next','UNIVER_SHEET','univer-mr-2\x20univer-flex\x20univer-text-xl','maxFormulaLimit','_anchorDot','_injector','saveTaskMap','RemoteUniscriptService','eventID','loadUnit','UNDEFINED','EMAIL_HAS_BEEN_BOUND','_shapes','OTHER_CLIENTS_EDITING','string','set','_sheetSkeletonManagerService','FETCH_MISS','getViewport','SetFormulaCalculationStartMutation','YUUMI_SUBSCRIPTION_NOT_FOUND','_initResize','triggerDblclick','data','_entities','_initEvent','_ensureSubject','AUTHORIZE_CODE_ILLEGAL'];_0x4655=function(){return _0x1cc157;};return _0x4655();}Ee=Mt([q(0x1,a['Inject'](V[_0x2369fc(0x271)])),q(0x2,a[_0x2369fc(0x2ab)](F)),q(0x3,a[_0x2369fc(0x164)]),q(0x4,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x2369fc(0x313)]{constructor(_0x59bd2b,_0x8afcc4){const _0x18aceb=_0x2369fc;super(_0x59bd2b,_0x8afcc4),_(this,'_color'),_(this,_0x18aceb(0x1fd),!0x1),_(this,_0x18aceb(0x334)),_(this,_0x18aceb(0x27f),''),_(this,_0x18aceb(0x37e),_0x18aceb(0x3a3)),_(this,_0x18aceb(0x28c)),(_0x8afcc4&&this[_0x18aceb(0x276)](_0x8afcc4),this[_0x18aceb(0x27a)][_0x18aceb(0x32b)](()=>this[_0x18aceb(0x276)]({'hovered':!0x0})),this[_0x18aceb(0x113)][_0x18aceb(0x32b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2369fc(0x276)](_0x220ae7){const _0x104b4f=_0x2369fc;var _0x4f01d3,_0x3f685d,_0x1c8cf8,_0x50a7ed,_0x5e124e,_0x542496;this[_0x104b4f(0x216)]=(_0x4f01d3=_0x220ae7['color'])!=null?_0x4f01d3:this[_0x104b4f(0x216)],this['_hovered']=(_0x3f685d=_0x220ae7['hovered'])!=null?_0x3f685d:this[_0x104b4f(0x1fd)],this[_0x104b4f(0x334)]=(_0x1c8cf8=_0x220ae7[_0x104b4f(0xf5)])!=null?_0x1c8cf8:this[_0x104b4f(0x334)],this[_0x104b4f(0x27f)]=(_0x50a7ed=_0x220ae7[_0x104b4f(0x2e0)])!=null?_0x50a7ed:this[_0x104b4f(0x27f)],this[_0x104b4f(0x37e)]=(_0x5e124e=_0x220ae7[_0x104b4f(0x1e4)])!=null?_0x5e124e:this[_0x104b4f(0x37e)],this[_0x104b4f(0x28c)]=(_0x542496=_0x220ae7[_0x104b4f(0x174)])!=null?_0x542496:this[_0x104b4f(0x28c)],this[_0x104b4f(0x12e)]({'width':_0x220ae7[_0x104b4f(0xf7)],'height':_0x220ae7['height']});}['onMouseMove'](_0x35ceac){const _0x3a0768=_0x2369fc,{row:_0x3afdd6,column:_0x10ada8}=_0x35ceac;if(_0x3afdd6>=this[_0x3a0768(0x334)]['startRow']&&_0x3afdd6<=this[_0x3a0768(0x334)][_0x3a0768(0x3ae)]&&_0x10ada8>=this[_0x3a0768(0x334)]['startColumn']&&_0x10ada8<=this['_range'][_0x3a0768(0x37b)]){this[_0x3a0768(0x276)]({'hovered':!0x0});return;}this[_0x3a0768(0x276)]({'hovered':!0x1});}[_0x2369fc(0x2cd)](_0x113490){return!0x1;}[_0x2369fc(0x1ad)](_0x3ab64a){const _0x5a0eb1=_0x2369fc;C[_0x5a0eb1(0x25e)][_0x5a0eb1(0x263)](_0x3ab64a,{'width':this[_0x5a0eb1(0xf7)],'height':this[_0x5a0eb1(0x353)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a0eb1(0x28c)]}),this[_0x5a0eb1(0x1fd)]&&(_0x3ab64a[_0x5a0eb1(0x112)](),_0x3ab64a['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5a0eb1(0x355)?0x0:-X),re[_0x5a0eb1(0x263)](_0x3ab64a,{'text':this[_0x5a0eb1(0x27f)],'color':this[_0x5a0eb1(0x216)]}),_0x3ab64a['restore']());}}var wt=Object[_0x2369fc(0x219)],yt=(_0x526607,_0x19ebcd,_0xa344d9,_0x100456)=>{const _0x3b8b50=_0x2369fc;for(var _0x4f923a=_0x100456>0x1?void 0x0:_0x100456?wt(_0x19ebcd,_0xa344d9):_0x19ebcd,_0x1d4dbd=_0x526607[_0x3b8b50(0x236)]-0x1,_0x33b203;_0x1d4dbd>=0x0;_0x1d4dbd--)(_0x33b203=_0x526607[_0x1d4dbd])&&(_0x4f923a=_0x33b203(_0x4f923a)||_0x4f923a);return _0x4f923a;},ue=(_0x43deba,_0xb64775)=>(_0x5bd08f,_0x2ad1d8)=>_0xb64775(_0x5bd08f,_0x2ad1d8,_0x43deba);const $t=0x1389;let Ce=class extends a[_0x2369fc(0x37f)]{constructor(_0x30ccad,_0x2b0753,_0x34883c,_0x5ab4e5){const _0x56a8a5=_0x2369fc;super(),_(this,'_cursors',new Set()),_(this,_0x56a8a5(0x1cb),null),(this[_0x56a8a5(0x1e8)]=_0x30ccad,this['_sheetSkeletonManagerService']=_0x2b0753,this[_0x56a8a5(0x102)]=_0x34883c,this['_themeService']=_0x5ab4e5,this[_0x56a8a5(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x28caa0=_0x2369fc;this[_0x28caa0(0x2c7)]['currentSkeleton$']['pipe']($[_0x28caa0(0x1e2)](this[_0x28caa0(0x131)]),$[_0x28caa0(0x280)](_0x5eb626=>{const _0x301511=_0x28caa0;if(_0x5eb626){const _0x1af02f=_0x5eb626[_0x301511(0x390)];return I['combineLatest'](this[_0x301511(0x102)][_0x301511(0xe3)](this['_context'][_0x301511(0x3a9)]),this[_0x301511(0x324)]['currentTheme$'])[_0x301511(0x28a)]($[_0x301511(0x22c)](([_0x4d35c0,_0x58a3ed])=>{const _0x1b68ed=new Map();return _0x4d35c0['forEach']((_0x412d20,_0x542fd0)=>{const _0x2e85b8=_0x8c2a;if(_0x412d20[_0x2e85b8(0x305)]===_0x1af02f){const _0x3b8ed6={..._0x412d20};_0x3b8ed6['color']=this[_0x2e85b8(0x324)][_0x2e85b8(0x2b5)](_0x412d20[_0x2e85b8(0x123)]),_0x1b68ed['set'](_0x542fd0,_0x3b8ed6);}}),{'skeleton':_0x5eb626,'cursors':_0x1b68ed};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x28caa0(0x1e3)](({skeleton:_0x585842,cursors:_0x3159dd})=>{const _0x5a2f69=_0x28caa0;this[_0x5a2f69(0x258)](),_0x585842&&this[_0x5a2f69(0x382)](_0x585842,_0x3159dd);}),this['_sheetSkeletonManagerService'][_0x28caa0(0x32e)]['subscribe'](_0x2ac8b2=>{const _0x5e97ed=_0x28caa0;if(_0x2ac8b2==null)return;const {skeleton:_0x1266ba}=_0x2ac8b2,{scene:_0x6ed087}=this[_0x5e97ed(0x1e8)];_0x6ed087[_0x5e97ed(0x303)][_0x5e97ed(0x32b)](a['debounce'](_0x3b69d9=>{const _0xc62488=_0x5e97ed;var _0x560a68,_0x4e29bb;const {offsetX:_0x383df5,offsetY:_0x98000d}=_0x3b69d9,{x:_0x9252e4,y:_0x187007}=_0x6ed087['getRelativeToViewportCoord'](C['Vector2'][_0xc62488(0x320)]([_0x383df5,_0x98000d])),{scaleX:_0x509bdf,scaleY:_0x5d090d}=_0x6ed087[_0xc62488(0x1b0)](),_0x24830a=_0x6ed087[_0xc62488(0x2c9)](C[_0xc62488(0x31d)][_0xc62488(0x397)]),_0x148861=_0x6ed087[_0xc62488(0x146)](C['Vector2']['FromArray']([_0x9252e4,_0x187007]),_0x24830a),_0x20bb51=_0x1266ba[_0xc62488(0x222)](_0x383df5,_0x98000d,_0x509bdf,_0x5d090d,_0x148861);((_0x560a68=this[_0xc62488(0x1cb)])==null?void 0x0:_0x560a68['column'])===_0x20bb51[_0xc62488(0x246)]&&((_0x4e29bb=this[_0xc62488(0x1cb)])==null?void 0x0:_0x4e29bb['row'])===_0x20bb51[_0xc62488(0x168)]||this[_0xc62488(0x18a)][_0xc62488(0x1a4)](_0x2e6acc=>{const _0x2133b8=_0xc62488;_0x2e6acc[_0x2133b8(0x1c8)](_0x20bb51);});},0x64));});}['_updateCollabCursors'](_0xe24fbd,_0x2b2192){const _0x558db1=_0x2369fc;var _0x41de1;const _0x5a62d8=(_0x41de1=this[_0x558db1(0x2c7)][_0x558db1(0x267)]())==null?void 0x0:_0x41de1[_0x558db1(0x330)];if(!_0x5a62d8)return;const _0x4d06b3=this[_0x558db1(0x209)]();if(!_0x4d06b3)return;this[_0x558db1(0x18a)][_0x558db1(0x1a4)](_0x3d6aaf=>{_0x3d6aaf['makeDirty']();});const {scene:_0x367d6a}=_0x4d06b3,_0x503868=xt(Array[_0x558db1(0x23a)](_0x2b2192[_0x558db1(0x3aa)]()))[_0x558db1(0x22c)](_0x5011ab=>{const _0x23fde1=_0x558db1,{color:_0x1eb2fb,range:_0x250fc0,name:_0x42e33b,selection:_0x44a398,sheetID:_0x4aaf7f}=_0x5011ab,{startColumn:_0x3b6930,startRow:_0x23fd34,endColumn:_0x4b7e19,endRow:_0xccb695}=_0x250fc0,_0x3ff209=J[_0x23fde1(0x14d)](_0x23fd34,_0x3b6930,_0x367d6a,_0x5a62d8),_0x528af5=J[_0x23fde1(0x14d)](_0xccb695,_0x4b7e19,_0x367d6a,_0x5a62d8),{columnHeaderHeightAndMarginTop:_0xaa6f48}=_0x5a62d8,{startX:_0x501808,startY:_0x2e414a}=_0x3ff209,{endX:_0x3f3884,endY:_0x5861c2}=_0x528af5,_0x5f56f3=_0x3f3884-_0x501808,_0x2275c4=_0x5861c2-_0x2e414a,_0x3af645={'labelPosition':_0x2e414a-_0xaa6f48>=X?'top':'bottom','sheetID':_0x4aaf7f,'range':_0x250fc0,'color':_0x1eb2fb,'name':_0x42e33b,'selection':_0x44a398,'left':_0x501808,'top':_0x2e414a,'width':_0x5f56f3,'height':_0x2275c4,'evented':!0x1,'zIndex':$t};return new je(_0x42e33b,_0x3af645);});_0x367d6a['addObjects'](_0x503868,At),this[_0x558db1(0x18a)]=new Set(_0x503868);}['_removeCollabCursors'](){const _0x3cdf27=_0x2369fc;var _0xb54e3e;(_0xb54e3e=this[_0x3cdf27(0x18a)])==null||_0xb54e3e['forEach'](_0x1420a3=>_0x1420a3[_0x3cdf27(0x31e)]());}[_0x2369fc(0x209)](){const _0x2fa758=_0x2369fc;return J[_0x2fa758(0x15e)](this[_0x2fa758(0x1e8)][_0x2fa758(0x15c)],this[_0x2fa758(0x1e8)]);}};Ce=yt([ue(0x1,a[_0x2369fc(0x2ab)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x2369fc(0x2ab)](F)),ue(0x3,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ce);function xt(_0x571d14){const _0x18c62f=_0x2369fc,_0x127399=new Map();return _0x571d14[_0x18c62f(0x1a4)](_0x4fb24c=>{const _0x34e383=_0x18c62f;if(_0x127399[_0x34e383(0x17a)](_0x4fb24c[_0x34e383(0x1c6)])){const _0x4ff380=_0x127399['get'](_0x4fb24c[_0x34e383(0x1c6)]);_0x4ff380['name']+=',\x20'+_0x4fb24c[_0x34e383(0x2e0)];}else _0x127399[_0x34e383(0x2c6)](_0x4fb24c[_0x34e383(0x1c6)],_0x4fb24c);}),Array[_0x18c62f(0x23a)](_0x127399[_0x18c62f(0x3aa)]());}var Bt=Object[_0x2369fc(0x219)],Ft=(_0x2de132,_0x54f56c,_0x427668,_0x296d1c)=>{for(var _0x3632bd=_0x296d1c>0x1?void 0x0:_0x296d1c?Bt(_0x54f56c,_0x427668):_0x54f56c,_0x3fe745=_0x2de132['length']-0x1,_0x4c6360;_0x3fe745>=0x0;_0x3fe745--)(_0x4c6360=_0x2de132[_0x3fe745])&&(_0x3632bd=_0x4c6360(_0x3632bd)||_0x3632bd);return _0x3632bd;},y=(_0x2743ed,_0x12eeae)=>(_0x2a9c35,_0x277c0f)=>_0x12eeae(_0x2a9c35,_0x277c0f,_0x2743ed);let Z=class extends a[_0x2369fc(0x189)]{constructor(_0x3b1af9,_0x3ec1d7,_0xc981dd,_0x273fe1,_0x55b74e,_0x2704d2){const _0x583468=_0x2369fc;super(),this[_0x583468(0x229)]=_0x3b1af9,this[_0x583468(0x1e5)]=_0x3ec1d7,this[_0x583468(0x118)]=_0xc981dd,this['_messageService']=_0x273fe1,this[_0x583468(0x22e)]=_0x55b74e,this['_localeService']=_0x2704d2,this[_0x583468(0x2f1)](),this[_0x583468(0x2d0)]();}['_setupBeforeClosingHandler'](){const _0x538f1f=_0x2369fc;this[_0x538f1f(0x237)](this[_0x538f1f(0x229)][_0x538f1f(0x18f)](()=>{const _0x149ce0=_0x538f1f;if(this[_0x149ce0(0x1e5)][_0x149ce0(0x2bd)][_0x149ce0(0x1d1)])return this['_localeService']['t'](_0x149ce0(0x1b7));}));}[_0x2369fc(0x2d0)](){const _0x3afdca=_0x2369fc;this[_0x3afdca(0x237)](this[_0x3afdca(0x118)]['event$']['subscribe'](_0x1f445c=>{const _0x366d82=_0x3afdca;_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0xe2)]&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x393))}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x18b)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x2ff))}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x156)]&&this[_0x366d82(0x22e)][_0x366d82(0x1c4)]({'title':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x32c)),'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x125)),'type':_0x366d82(0x1af),'duration':0x0}),_0x1f445c['id']===u[_0x366d82(0xf9)]['CONFLICT']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0xf1)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x2ff))+'('+_0x1f445c[_0x366d82(0x2ce)]+')'}),_0x1f445c['id']===u[_0x366d82(0xf9)]['JOIN_ROOM_FAILED']&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x1f445c['data']||'')}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x2af)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x1b9))}),_0x1f445c['id']===u[_0x366d82(0xf9)]['SOCKET_FAILED']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p['MessageType']['Error'],'content':this[_0x366d82(0x1a3)]['t']('session.connection-failed')}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x34e)]&&this['_messageService'][_0x366d82(0x1c4)]({'type':p['MessageType'][_0x366d82(0xf1)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2369fc(0x1bd)]),y(0x1,u[_0x2369fc(0x351)]),y(0x2,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x10b)])),y(0x3,O[_0x2369fc(0xfa)]),y(0x4,O[_0x2369fc(0x364)]),y(0x5,a[_0x2369fc(0x2ab)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x11e2c,_0x4f5cd1,_0x51982f,_0x1a2257)=>{const _0x4c82cb=_0x2369fc;for(var _0x2d2521=_0x1a2257>0x1?void 0x0:_0x1a2257?jt(_0x4f5cd1,_0x51982f):_0x4f5cd1,_0x18079e=_0x11e2c[_0x4c82cb(0x236)]-0x1,_0x5b2f4b;_0x18079e>=0x0;_0x18079e--)(_0x5b2f4b=_0x11e2c[_0x18079e])&&(_0x2d2521=_0x5b2f4b(_0x2d2521)||_0x2d2521);return _0x2d2521;},z=(_0x53db70,_0x4c1069)=>(_0x314c2d,_0x25f75f)=>_0x4c1069(_0x314c2d,_0x25f75f,_0x53db70);let Q=class extends a[_0x2369fc(0x189)]{constructor(_0x114372,_0x4e6c3a,_0x1f6a76,_0x3df539){const _0x13186e=_0x2369fc;super(),_(this,_0x13186e(0x205)),(this[_0x13186e(0x2bc)]=_0x114372,this['_httpService']=_0x4e6c3a,this[_0x13186e(0x17d)]=_0x1f6a76,this[_0x13186e(0x1aa)]=_0x3df539,this['_init']());}[_0x2369fc(0x2d3)](){const _0x2ac75b=_0x2369fc;this[_0x2ac75b(0x194)](),this[_0x2ac75b(0x359)](),this[_0x2ac75b(0x36d)](),this[_0x2ac75b(0x361)]();}[_0x2369fc(0x361)](){const _0x20ad71=_0x2369fc;this[_0x20ad71(0x237)](this[_0x20ad71(0x1aa)]['socket$'][_0x20ad71(0x1e3)](_0x258d48=>{const _0x58e65c=_0x20ad71;this['_memberID']=_0x258d48==null?void 0x0:_0x258d48[_0x58e65c(0x1a8)];}));}[_0x2369fc(0x194)](){const _0x4243f6=_0x2369fc,_0xa21811=_0x4a2024=>{const _0x391760=_0x8c2a;var _0x2c144f;this[_0x391760(0x18c)](_0x391760(0x1af),_0x391760(0x13d)+_0x4a2024[_0x391760(0x11e)]+_0x391760(0x281)+_0x4a2024['filename']+':'+_0x4a2024[_0x391760(0x29b)]+':'+_0x4a2024[_0x391760(0x385)]+'\x0a'+(((_0x2c144f=_0x4a2024[_0x391760(0x1af)])==null?void 0x0:_0x2c144f['stack'])||''));};window[_0x4243f6(0x2a4)](_0x4243f6(0x1af),_0xa21811),this['disposeWithMe'](()=>{const _0x38b93e=_0x4243f6;window[_0x38b93e(0x292)]('error',_0xa21811);});}[_0x2369fc(0x359)](){const _0x22837f=_0x2369fc,_0x374867=_0x5e4efe=>{const _0x57b748=_0x8c2a;this['_uploadLog'](_0x57b748(0x1af),_0x57b748(0x157)+_0x5e4efe[_0x57b748(0x177)]);};window[_0x22837f(0x2a4)]('unhandledrejection',_0x374867),this[_0x22837f(0x237)](()=>{const _0x4d279b=_0x22837f;window['removeEventListener'](_0x4d279b(0x36c),_0x374867);});}[_0x2369fc(0x36d)](){const _0x56e08b=_0x2369fc,_0x55e12b=this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]['bind'](this[_0x56e08b(0x17d)]);this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]=(..._0x20f371)=>{const _0x2a93e4=_0x56e08b,_0x44c4db=_0x20f371[_0x2a93e4(0x22c)](_0x4b9e11=>_0x4b9e11 instanceof Error?_0x4b9e11[_0x2a93e4(0x11e)]+'\x0a'+_0x4b9e11[_0x2a93e4(0x178)]:String(_0x4b9e11))[_0x2a93e4(0x384)]('\x20');this[_0x2a93e4(0x18c)](_0x2a93e4(0x1af),_0x2a93e4(0x149)+_0x44c4db),_0x55e12b(..._0x20f371);},this[_0x56e08b(0x237)](()=>{const _0x181107=_0x56e08b;this[_0x181107(0x17d)]['error']=_0x55e12b;});}[_0x2369fc(0x18c)](_0x2fe8b2,_0x139665){const _0x330855=_0x2369fc;try{const _0x59aa7f={'userId':this[_0x330855(0x205)],'logLabel':_0x2fe8b2,'content':_0x139665};this['_httpService']['post'](_0x330855(0x3a8),{'body':_0x59aa7f})[_0x330855(0x1e6)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),z(0x1,a[_0x2369fc(0x2ab)](x['HTTPService'])),z(0x2,a[_0x2369fc(0x2e8)]),z(0x3,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xf0)]))],Q);const Yt=_0x2369fc(0x186),Me={};var Ht=Object[_0x2369fc(0x219)],Wt=(_0x4af169,_0x1809b4,_0x43567c,_0x5605d3)=>{const _0x291721=_0x2369fc;for(var _0x4cda57=_0x5605d3>0x1?void 0x0:_0x5605d3?Ht(_0x1809b4,_0x43567c):_0x1809b4,_0xd1c9bd=_0x4af169[_0x291721(0x236)]-0x1,_0x9b726;_0xd1c9bd>=0x0;_0xd1c9bd--)(_0x9b726=_0x4af169[_0xd1c9bd])&&(_0x4cda57=_0x9b726(_0x4cda57)||_0x4cda57);return _0x4cda57;},Ae=(_0x469fa9,_0x20ed6c)=>(_0x40e3ae,_0x3a51ef)=>_0x20ed6c(_0x40e3ae,_0x3a51ef,_0x469fa9);let ee=class{constructor(_0x5e2f46,_0x5d78d9){const _0xf31627=_0x2369fc;this['_transformService']=_0x5e2f46,this[_0xf31627(0x110)]=_0x5d78d9;}[_0x2369fc(0x218)](_0x5d2624){const _0x4a5dae=_0x2369fc;this[_0x4a5dae(0x270)](_0x5d2624),this['_transformPreviousActiveRange'](_0x5d2624);}[_0x2369fc(0x234)](_0x5debf7){const _0x38b04e=_0x2369fc,{unitID:_0x59d953}=_0x5debf7,_0x2390b5=this[_0x38b04e(0x110)][_0x38b04e(0x1ba)](_0x59d953)[_0x38b04e(0x370)](T[_0x38b04e(0x235)]),{redoCache:_0x16119e}=_0x2390b5[_0x38b04e(0x23b)]();if(_0x16119e[_0x38b04e(0x236)]===0x0)return _0x5debf7;let _0x101666=a[_0x38b04e(0x1b4)]['deepClone'](_0x5debf7[_0x38b04e(0x1d9)][0x0]);for(let _0x5939ed=0x0;_0x5939ed<_0x16119e[_0x38b04e(0x236)];_0x5939ed++){const _0xae44eb={'id':_0x38b04e(0x272),'params':{..._0x16119e[_0x5939ed]}},_0x123a5a=this[_0x38b04e(0x34f)][_0x38b04e(0x356)](_0x101666,_0xae44eb,!0x1);if(g['isTransformMutationFailure'](_0x123a5a))throw _0x123a5a[_0x38b04e(0x1af)];_0x101666=_0x123a5a[_0x38b04e(0x165)];}return{...a['Tools'][_0x38b04e(0x1eb)](_0x5debf7),'mutations':[_0x101666]};}['_transformUndoRedoStack'](_0x2897d2){const _0x4d6b00=_0x2369fc,{unitID:_0x164409}=_0x2897d2,_0x91824d=this[_0x4d6b00(0x110)][_0x4d6b00(0x1ba)](_0x164409)['with'](T['DocIMEInputManagerService']),{undoCache:_0xd29d40,redoCache:_0x25534f}=_0x91824d[_0x4d6b00(0x23b)]();if(_0xd29d40[_0x4d6b00(0x236)]===0x0||_0x25534f[_0x4d6b00(0x236)]===0x0)return;const _0x58466e=[],_0x550f67=[];let _0x52e6c0=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]),_0xc8253a=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]);for(let _0x1039ac=_0xd29d40['length']-0x1;_0x1039ac>=0x0;_0x1039ac--){const _0xda8189={'id':_0x4d6b00(0x272),'params':{..._0xd29d40[_0x1039ac]}},_0x1e13eb={'id':'doc.mutation.rich-text-editing','params':{..._0x25534f[_0x1039ac]}},_0x2f0e06=this['_transformService']['transformMutation'](_0x52e6c0,_0xda8189,!0x1),_0x54e419=this[_0x4d6b00(0x34f)][_0x4d6b00(0x356)](_0xc8253a,_0x1e13eb,!0x1);if(g[_0x4d6b00(0x1c5)](_0x2f0e06))throw _0x2f0e06['error'];if(g[_0x4d6b00(0x1c5)](_0x54e419))throw _0x54e419[_0x4d6b00(0x1af)];_0x58466e['unshift'](_0x2f0e06[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x550f67[_0x4d6b00(0x2f2)](_0x54e419[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x52e6c0=_0x2f0e06[_0x4d6b00(0x165)],_0xc8253a=_0x54e419[_0x4d6b00(0x165)];}_0x91824d[_0x4d6b00(0x316)]({'undoCache':_0x58466e,'redoCache':_0x550f67});}[_0x2369fc(0xe5)](_0x35a163){const _0x442b93=_0x2369fc,{unitID:_0x2320a4}=_0x35a163,_0x11fb3b=this[_0x442b93(0x110)][_0x442b93(0x1ba)](_0x2320a4)[_0x442b93(0x370)](T[_0x442b93(0x235)]),_0x5b87be=_0x11fb3b[_0x442b93(0x252)]();if(_0x5b87be==null)return;const _0x8d318f=[{'id':_0x442b93(0x272),'params':{'unitId':_0x35a163[_0x442b93(0x1ca)],'actions':null,'textRanges':[_0x5b87be]}}],_0x24ef00=this[_0x442b93(0x34f)][_0x442b93(0x39e)](_0x35a163,_0x8d318f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x24ef00))throw _0x24ef00[_0x442b93(0x1af)];const _0x45743a=_0x24ef00['m2Prime'][0x0][_0x442b93(0x38c)]['textRanges'];Array[_0x442b93(0x293)](_0x45743a)&&_0x45743a[_0x442b93(0x236)]&&_0x11fb3b[_0x442b93(0x2df)](_0x45743a[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x2369fc(0x219)],Gt=(_0x9e2d58,_0x3c31fd,_0x26758b,_0x52a64f)=>{const _0x7c45a2=_0x2369fc;for(var _0x31acd9=_0x52a64f>0x1?void 0x0:_0x52a64f?Vt(_0x3c31fd,_0x26758b):_0x3c31fd,_0x216994=_0x9e2d58[_0x7c45a2(0x236)]-0x1,_0x90d7e7;_0x216994>=0x0;_0x216994--)(_0x90d7e7=_0x9e2d58[_0x216994])&&(_0x31acd9=_0x90d7e7(_0x31acd9)||_0x31acd9);return _0x31acd9;},Ie=(_0x172382,_0x586d49)=>(_0x1ac554,_0x55a0bd)=>_0x586d49(_0x1ac554,_0x55a0bd,_0x172382);let te=class{constructor(_0x1caf36,_0x326354,_0x4c1ee6){const _0x319dc1=_0x2369fc;this[_0x319dc1(0x2bc)]=_0x1caf36,this[_0x319dc1(0x34f)]=_0x326354,this[_0x319dc1(0x3ad)]=_0x4c1ee6;}['transformStateCache'](_0x2c6d51){this['_transformHistoryAndStateStack'](_0x2c6d51);}[_0x2369fc(0x234)](_0xd170dc){const _0x550d21=_0x2369fc,{unitID:_0x36c61c}=_0xd170dc,{collaboration:_0x2350f6}=this[_0x550d21(0x3ad)][_0x550d21(0x166)](_0x36c61c);if(_0x2350f6['length']===0x0)return _0xd170dc;let _0x4d9494=a[_0x550d21(0x1b4)]['deepClone'](_0xd170dc['mutations'][0x0]);for(let _0x4b437e=0x0;_0x4b437e<_0x2350f6[_0x550d21(0x236)];_0x4b437e++){const _0x21935d={'id':_0x550d21(0x272),'params':{'unitId':_0x2350f6[_0x4b437e][_0x550d21(0x3a9)],..._0x2350f6[_0x4b437e]['redoState']}},_0x29b23a=this[_0x550d21(0x34f)][_0x550d21(0x356)](_0x4d9494,_0x21935d,!0x1);if(g[_0x550d21(0x1c5)](_0x29b23a))throw _0x29b23a[_0x550d21(0x1af)];_0x4d9494=_0x29b23a['m1Prime'];}return{...a[_0x550d21(0x1b4)][_0x550d21(0x1eb)](_0xd170dc),'mutations':[_0x4d9494]};}[_0x2369fc(0x337)](_0x1b5917){const _0x4808a0=_0x2369fc,{unitID:_0x4a89fa}=_0x1b5917,{history:_0x44a85b,collaboration:_0x2ea179}=this[_0x4808a0(0x3ad)][_0x4808a0(0x166)](_0x4a89fa);if(_0x44a85b[_0x4808a0(0x236)]===0x0&&_0x2ea179[_0x4808a0(0x236)]===0x0)return;const _0x432c71=[],_0x30da9c=[];let _0x4b1a7f=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a['Tools']['deepClone'](_0x1b5917['mutations'][0x0]);for(let _0x1f9126=_0x44a85b[_0x4808a0(0x236)]-0x1;_0x1f9126>=0x0;_0x1f9126--){const _0x11b1e4={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126][_0x4808a0(0x3a9)],..._0x44a85b[_0x1f9126][_0x4808a0(0x1fa)]}},_0x1ff7d7={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126]['unitId'],..._0x44a85b[_0x1f9126][_0x4808a0(0x26a)]}},_0x19e218=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0x4b1a7f,_0x11b1e4,!0x1),_0x1c35c4=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x1ff7d7,!0x1);if(g[_0x4808a0(0x1c5)](_0x19e218))throw _0x19e218['error'];if(g['isTransformMutationFailure'](_0x1c35c4))throw _0x1c35c4[_0x4808a0(0x1af)];_0x432c71[_0x4808a0(0x2f2)]({..._0x44a85b[_0x1f9126],'undoState':_0x19e218['m2Prime']['params'],'redoState':_0x1c35c4[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x19e218['m1Prime'],_0xe37b30=_0x1c35c4[_0x4808a0(0x165)];}_0x4b1a7f=a[_0x4808a0(0x1b4)]['deepClone'](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917['mutations'][0x0]);for(let _0x4f05a3=_0x2ea179[_0x4808a0(0x236)]-0x1;_0x4f05a3>=0x0;_0x4f05a3--){const _0x293291={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x1fa)]}},_0x376b92={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x26a)]}},_0x88c46d=this['_transformService'][_0x4808a0(0x356)](_0x4b1a7f,_0x293291,!0x1),_0x5ca504=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x376b92,!0x1);if(g[_0x4808a0(0x1c5)](_0x88c46d))throw _0x88c46d[_0x4808a0(0x1af)];if(g[_0x4808a0(0x1c5)](_0x5ca504))throw _0x5ca504[_0x4808a0(0x1af)];_0x30da9c[_0x4808a0(0x2f2)]({..._0x2ea179[_0x4f05a3],'undoState':_0x88c46d['m2Prime'][_0x4808a0(0x38c)],'redoState':_0x5ca504[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x88c46d['m1Prime'],_0xe37b30=_0x5ca504[_0x4808a0(0x165)];}this['_docStateChangeManagerService'][_0x4808a0(0x13f)](_0x4a89fa,{'history':_0x432c71,'collaboration':_0x30da9c});}};te=Gt([Ie(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x2369fc(0x2ab)](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x30b2e3,_0x2a88a4,_0x1141cf,_0x43ce83)=>{const _0x4fd04f=_0x2369fc;for(var _0x365b6c=_0x43ce83>0x1?void 0x0:_0x43ce83?Xt(_0x2a88a4,_0x1141cf):_0x2a88a4,_0x4afc2e=_0x30b2e3[_0x4fd04f(0x236)]-0x1,_0x129268;_0x4afc2e>=0x0;_0x4afc2e--)(_0x129268=_0x30b2e3[_0x4afc2e])&&(_0x365b6c=_0x129268(_0x365b6c)||_0x365b6c);return _0x365b6c;},Pe=(_0x1e28e5,_0x2a09b3)=>(_0x593f02,_0x58c1e7)=>_0x2a09b3(_0x593f02,_0x58c1e7,_0x1e28e5);let se=class{constructor(_0xd2511f,_0x2243f1){const _0x378458=_0x2369fc;this[_0x378458(0x2bc)]=_0xd2511f,this['_transformService']=_0x2243f1;}['transformSelections'](_0x157be4){const _0xb9268d=_0x2369fc;var _0x2fa0bf;const _0x33bdee=this[_0xb9268d(0x2bc)][_0xb9268d(0x30d)](V[_0xb9268d(0x191)]),_0x4cb861=(_0x2fa0bf=_0x33bdee['getDocRanges']())!=null?_0x2fa0bf:[];if(_0x4cb861[_0xb9268d(0x236)]===0x0)return;const _0x19d42c=_0x157be4[_0xb9268d(0x1ca)],_0x1db773=[{'id':_0xb9268d(0x272),'params':{'unitId':_0x19d42c,'actions':null,'textRanges':_0x4cb861}}],_0x234fc6=this['_transformService'][_0xb9268d(0x39e)](_0x157be4,_0x1db773);if(!g[_0xb9268d(0x12b)](_0x234fc6))throw _0x234fc6[_0xb9268d(0x1af)];const _0xd8ea3d=_0x234fc6[_0xb9268d(0x33a)][0x0][_0xb9268d(0x38c)][_0xb9268d(0x358)];Array[_0xb9268d(0x293)](_0xd8ea3d)&&_0xd8ea3d[_0xb9268d(0x236)]&&_0x33bdee[_0xb9268d(0x115)](_0xd8ea3d,{'unitId':_0x19d42c,'subUnitId':_0x19d42c},!0x1);}};se=Kt([Pe(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Pe(0x1,g[_0x2369fc(0x192)])],se);var qt=Object[_0x2369fc(0x219)],zt=(_0x29c1,_0x3c65a9,_0xc73bff,_0x3e72d3)=>{const _0x2985bb=_0x2369fc;for(var _0x25b694=_0x3e72d3>0x1?void 0x0:_0x3e72d3?qt(_0x3c65a9,_0xc73bff):_0x3c65a9,_0x41e21b=_0x29c1[_0x2985bb(0x236)]-0x1,_0x20edea;_0x41e21b>=0x0;_0x41e21b--)(_0x20edea=_0x29c1[_0x41e21b])&&(_0x25b694=_0x20edea(_0x25b694)||_0x25b694);return _0x25b694;},N=(_0x47fed0,_0x87a851)=>(_0x41d3d2,_0xb9160b)=>_0x87a851(_0x41d3d2,_0xb9160b,_0x47fed0);let ie=class extends a[_0x2369fc(0x189)]{constructor(_0x101598,_0x3bb58f,_0x2ac636,_0x14cccf,_0x37cbdd,_0xcdc08f,_0x1eff9b,_0x184c04){const _0x5e32be=_0x2369fc;super(),_(this,_0x5e32be(0x11c),new I[(_0x5e32be(0x121))](u[_0x5e32be(0x30b)][_0x5e32be(0x200)])),(this['_docStateChangeManagerService']=_0x101598,this['_collaborationController']=_0x3bb58f,this[_0x5e32be(0x13a)]=_0x2ac636,this[_0x5e32be(0x2aa)]=_0x14cccf,this[_0x5e32be(0x335)]=_0x37cbdd,this[_0x5e32be(0x208)]=_0xcdc08f,this['_messageService']=_0x1eff9b,this[_0x5e32be(0x1a3)]=_0x184c04,this[_0x5e32be(0x1be)]());}[_0x2369fc(0x1be)](){const _0x525c6d=_0x2369fc;this[_0x525c6d(0x237)](this[_0x525c6d(0x2e7)][_0x525c6d(0x2f5)][_0x525c6d(0x1e3)](_0x4d2e3e=>{const _0x5e17f0=_0x525c6d,_0xbb092d=this[_0x5e17f0(0x3ad)][_0x5e17f0(0x242)][_0x5e17f0(0x1e3)](_0x2ce065=>{const _0x26a5da=_0x5e17f0;if(_0x2ce065==null)return;const {unitId:_0x2e0188,redoState:_0x57d6e6,commandId:_0x46aacd}=_0x2ce065;if(_0x2e0188!==_0x4d2e3e['unitID'])return;const _0x1b2d5c={'id':_0x46aacd,'type':a[_0x26a5da(0x10f)]['MUTATION'],'params':{'unitId':_0x2e0188,'actions':_0x57d6e6[_0x26a5da(0x13c)],'textRanges':null}};_0x4d2e3e['onLocalMutation'](_0x1b2d5c);});if(_0x4d2e3e[_0x5e17f0(0x237)](_0xbb092d),_0x4d2e3e instanceof u[_0x5e17f0(0x1ae)]){const _0x16b80={'onTransformIME':_0x3f5b10=>this[_0x5e17f0(0x13a)][_0x5e17f0(0x218)](_0x3f5b10),'onTransformState':_0x2edfb4=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x29a)](_0x2edfb4),'onTransformSelections':_0x120529=>this[_0x5e17f0(0x335)][_0x5e17f0(0x34d)](_0x120529),'onSyncEditingCollabCursor':_0x554d65=>this[_0x5e17f0(0x208)][_0x5e17f0(0x217)](_0x554d65),'onTransformRemoteChangesetByIMECache':_0x6aea9c=>this[_0x5e17f0(0x13a)]['transformRemoteChangeset'](_0x6aea9c),'onTransformRemoteChangesetByStateCache':_0x2f8107=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x234)](_0x2f8107)};_0x4d2e3e['addHandlerCallback'](_0x16b80);}}));}};ie=zt([N(0x0,a[_0x2369fc(0x2ab)](T[_0x2369fc(0x2db)])),N(0x1,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x26e)])),N(0x2,a[_0x2369fc(0x2ab)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x2369fc(0x2ab)](se)),N(0x5,a[_0x2369fc(0x2ab)](be)),N(0x6,O[_0x2369fc(0xfa)]),N(0x7,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x20e)]))],ie);var G=(_0x7da79d=>(_0x7da79d[_0x7da79d[_0x2369fc(0x2c1)]=0x0]=_0x2369fc(0x2c1),_0x7da79d[_0x7da79d['OK']=0x1]='OK',_0x7da79d[_0x7da79d[_0x2369fc(0x150)]=0x2]=_0x2369fc(0x150),_0x7da79d[_0x7da79d['PERMISSION_DENIED']=0x3]=_0x2369fc(0x156),_0x7da79d[_0x7da79d[_0x2369fc(0x1a9)]=0x4]='NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x2de)]=0x5]=_0x2369fc(0x2de),_0x7da79d[_0x7da79d[_0x2369fc(0x1db)]=0x6]='ALREADY_EXISTS',_0x7da79d[_0x7da79d['INVALID_ARGUMENT']=0x7]=_0x2369fc(0x34b),_0x7da79d[_0x7da79d[_0x2369fc(0x37a)]=0x8]='TOO_MANY_REQUESTS',_0x7da79d[_0x7da79d[_0x2369fc(0x25d)]=0x9]='COMPLETION_FINISHED',_0x7da79d[_0x7da79d[_0x2369fc(0x286)]=0xa]=_0x2369fc(0x286),_0x7da79d[_0x7da79d[_0x2369fc(0x32f)]=0xb]=_0x2369fc(0x32f),_0x7da79d[_0x7da79d[_0x2369fc(0x256)]=0xc]=_0x2369fc(0x256),_0x7da79d[_0x7da79d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2369fc(0x31a),_0x7da79d[_0x7da79d[_0x2369fc(0x20f)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x7da79d[_0x7da79d['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2369fc(0x2d2),_0x7da79d[_0x7da79d[_0x2369fc(0xf8)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x7da79d[_0x7da79d[_0x2369fc(0x23d)]=0x64]=_0x2369fc(0x23d),_0x7da79d[_0x7da79d[_0x2369fc(0x381)]=0x65]=_0x2369fc(0x381),_0x7da79d[_0x7da79d[_0x2369fc(0x140)]=0xc9]=_0x2369fc(0x140),_0x7da79d[_0x7da79d[_0x2369fc(0x233)]=0xca]='USER_IS_ANONYMOUS',_0x7da79d[_0x7da79d[_0x2369fc(0x1df)]=0x1389]=_0x2369fc(0x1df),_0x7da79d[_0x7da79d[_0x2369fc(0x29d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7da79d[_0x7da79d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2369fc(0x28f),_0x7da79d[_0x7da79d[_0x2369fc(0x28b)]=0x1773]=_0x2369fc(0x28b),_0x7da79d[_0x7da79d['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x7da79d[_0x7da79d[_0x2369fc(0x245)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x7da79d[_0x7da79d[_0x2369fc(0x257)]=0x1b5b]=_0x2369fc(0x257),_0x7da79d[_0x7da79d[_0x2369fc(0x362)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x7da79d[_0x7da79d[_0x2369fc(0x15d)]=0x1b5d]=_0x2369fc(0x15d),_0x7da79d[_0x7da79d[_0x2369fc(0x332)]=0x1f41]=_0x2369fc(0x332),_0x7da79d[_0x7da79d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2369fc(0x17b),_0x7da79d[_0x7da79d['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2369fc(0x268),_0x7da79d[_0x7da79d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2369fc(0x387),_0x7da79d[_0x7da79d[_0x2369fc(0x109)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x105)]=0x232d]=_0x2369fc(0x105),_0x7da79d[_0x7da79d[_0x2369fc(0x1b8)]=0x2711]=_0x2369fc(0x1b8),_0x7da79d[_0x7da79d[_0x2369fc(0xeb)]=0x2712]=_0x2369fc(0xeb),_0x7da79d[_0x7da79d[_0x2369fc(0x2e1)]=0x2713]=_0x2369fc(0x2e1),_0x7da79d[_0x7da79d[_0x2369fc(0x2cb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x31f)]=0x271a]=_0x2369fc(0x31f),_0x7da79d[_0x7da79d[_0x2369fc(0x107)]=0x271b]=_0x2369fc(0x107),_0x7da79d[_0x7da79d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2369fc(0x349),_0x7da79d[_0x7da79d['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x2369fc(0x108),_0x7da79d[_0x7da79d['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x386)]=0x271f]=_0x2369fc(0x386),_0x7da79d[_0x7da79d['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2369fc(0x26f),_0x7da79d[_0x7da79d[_0x2369fc(0x145)]=0x2af9]=_0x2369fc(0x145),_0x7da79d[_0x7da79d[_0x2369fc(0x35a)]=0x2ee1]=_0x2369fc(0x35a),_0x7da79d[_0x7da79d[_0x2369fc(0x327)]=0x2ee2]=_0x2369fc(0x327),_0x7da79d[_0x7da79d[_0x2369fc(0x345)]=0x2ee3]=_0x2369fc(0x345),_0x7da79d[_0x7da79d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2369fc(0x2a0),_0x7da79d[_0x7da79d[_0x2369fc(0x283)]=0x2ee5]=_0x2369fc(0x283),_0x7da79d[_0x7da79d[_0x2369fc(0x250)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x7da79d[_0x7da79d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2369fc(0x212),_0x7da79d[_0x7da79d[_0x2369fc(0x2c2)]=0x32cb]=_0x2369fc(0x2c2),_0x7da79d[_0x7da79d[_0x2369fc(0x328)]=0x36b1]=_0x2369fc(0x328),_0x7da79d[_0x7da79d[_0x2369fc(0x31b)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x7da79d[_0x7da79d['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x7da79d[_0x7da79d['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x2369fc(0x17e),_0x7da79d[_0x7da79d['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x2369fc(0x2ae),_0x7da79d[_0x7da79d[_0x2369fc(0x24e)]=0x36b6]=_0x2369fc(0x24e),_0x7da79d[_0x7da79d['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x2369fc(0x348),_0x7da79d[_0x7da79d['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x2369fc(0x33b),_0x7da79d[_0x7da79d[_0x2369fc(0x162)]=0x3715]=_0x2369fc(0x162),_0x7da79d[_0x7da79d[_0x2369fc(0x38e)]=0x3716]=_0x2369fc(0x38e),_0x7da79d[_0x7da79d[_0x2369fc(0x198)]=0x3717]=_0x2369fc(0x198),_0x7da79d[_0x7da79d[_0x2369fc(0x1cc)]=0x37dd]=_0x2369fc(0x1cc),_0x7da79d[_0x7da79d[_0x2369fc(0x297)]=0x3a99]=_0x2369fc(0x297),_0x7da79d[_0x7da79d[_0x2369fc(0x287)]=0x3a9a]=_0x2369fc(0x287),_0x7da79d[_0x7da79d[_0x2369fc(0x1f3)]=0x3a9b]=_0x2369fc(0x1f3),_0x7da79d[_0x7da79d['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2369fc(0x2b4),_0x7da79d[_0x7da79d[_0x2369fc(0x185)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x7da79d[_0x7da79d[_0x2369fc(0x139)]=0x3a9e]=_0x2369fc(0x139),_0x7da79d[_0x7da79d['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2369fc(0x377),_0x7da79d[_0x7da79d[_0x2369fc(0x14f)]=0x3e81]=_0x2369fc(0x14f),_0x7da79d[_0x7da79d[_0x2369fc(0x22b)]=-0x1]=_0x2369fc(0x22b),_0x7da79d))(G||{});function Jt(_0x4a57f6){const _0x206c34=_0x2369fc;var _0x301762,_0xf95e5d;const _0xe3bbc3=(_0x301762=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0x301762[_0x206c34(0x1d2)],_0x3c1cae=((_0xf95e5d=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0xf95e5d[_0x206c34(0x103)])||0x0;return _0xe3bbc3===B[_0x206c34(0x213)]['START_CALCULATION']&&_0x3c1cae>0x0;}function Zt(_0xab70c8){const _0x13a2f7=_0x2369fc;return _0xab70c8[_0x13a2f7(0x333)]===B[_0x13a2f7(0x26d)]['SUCCESS'];}var Qt=Object[_0x2369fc(0x219)],es=(_0x393d2b,_0x2d9a51,_0x4d9e4d,_0x28f850)=>{const _0x454bc2=_0x2369fc;for(var _0x3a6e41=_0x28f850>0x1?void 0x0:_0x28f850?Qt(_0x2d9a51,_0x4d9e4d):_0x2d9a51,_0x4929e5=_0x393d2b[_0x454bc2(0x236)]-0x1,_0x1cea03;_0x4929e5>=0x0;_0x4929e5--)(_0x1cea03=_0x393d2b[_0x4929e5])&&(_0x3a6e41=_0x1cea03(_0x3a6e41)||_0x3a6e41);return _0x3a6e41;},L=(_0x5374f8,_0x270533)=>(_0x54ef4b,_0x377bdc)=>_0x270533(_0x54ef4b,_0x377bdc,_0x5374f8);const ts='/universer-api/license/formula/limit/status',ss=_0x2369fc(0x2e5),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x2369fc(0x189)]{constructor(_0xeba15,_0x1e5f6e,_0x387b9d,_0x49baad,_0x40e5d3,_0x508ac6,_0x5b3a36){const _0x452897=_0x2369fc;super(),_(this,_0x452897(0x30e),null),_(this,_0x452897(0xe1),0x0),_(this,_0x452897(0x153),0x0),_(this,_0x452897(0x1a6),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x452897(0xed)]=_0xeba15,this[_0x452897(0x24c)]=_0x1e5f6e,this[_0x452897(0x2eb)]=_0x387b9d,this[_0x452897(0xe6)]=_0x49baad,this[_0x452897(0x1ff)]=_0x40e5d3,this[_0x452897(0x17d)]=_0x508ac6,this[_0x452897(0x1a3)]=_0x5b3a36,this[_0x452897(0x203)]());}['_initCommandInterceptor'](){const _0x2dfb26=_0x2369fc;this['disposeWithMe'](this['_commandService'][_0x2dfb26(0x1de)]((_0x49fe7c,_0x2d2aba)=>{const _0x9969fe=_0x2dfb26;var _0x2446db;if(_0x49fe7c['id']!==B[_0x9969fe(0x2ca)]['id'])return;const _0x157070=_0x49fe7c['params'];if(!this[_0x9969fe(0x2b3)]((_0x2446db=_0x157070[_0x9969fe(0xf3)])!=null?_0x2446db:[]))return;if(!this[_0x9969fe(0x1bb)]())throw this[_0x9969fe(0x336)](_0x49fe7c,_0x2d2aba),this['_showGuardMessage'](),new a[(_0x9969fe(0x38b))]();})),this[_0x2dfb26(0x237)](this['_commandService'][_0x2dfb26(0x2dc)]((_0x250f5d,_0x1e6b13)=>{const _0x1809e7=_0x2dfb26;if(_0x250f5d['id']!==B[_0x1809e7(0x331)]['id'])return;const _0x36b6f6=_0x250f5d[_0x1809e7(0x38c)];if(Jt(_0x36b6f6)){const _0xddbb65=a['generateRandomId']();this[_0x1809e7(0x1a6)][_0x1809e7(0x1a0)](_0xddbb65),this['_startCalculationLimit'](_0xddbb65);}else{if(Zt(_0x36b6f6)&&this[_0x1809e7(0x1a6)][_0x1809e7(0x236)]>0x0){const _0x1798ab=this[_0x1809e7(0x1a6)][_0x1809e7(0x307)]();this['_releaseCalculationLimit'](_0x1798ab);}}}));}['dispose'](){const _0x5edf4b=_0x2369fc;super[_0x5edf4b(0x31e)](),this[_0x5edf4b(0x22f)](),this['_taskIds']=[],this[_0x5edf4b(0x153)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2369fc(0x336)](_0x5de99f,_0xafc3bd){const _0x246359=_0x2369fc;for(let _0x2a0e11=0x0;_0x2a0e11<0x1e;_0x2a0e11++)try{if(await this[_0x246359(0x366)](),this[_0x246359(0x1bb)]()){this[_0x246359(0x248)](_0x5de99f,_0xafc3bd),this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t'](_0x246359(0xec)),'type':p[_0x246359(0x314)]['Success']});return;}await new Promise(_0x4388cf=>{const _0x208c96=_0x246359;this['_pollingInterval']=window[_0x208c96(0x261)](_0x4388cf,0x3e8);});}catch(_0x373aec){this[_0x246359(0x17d)][_0x246359(0x1af)](_0x373aec);}this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t']('formula.calculation.unable'),'type':p[_0x246359(0x314)][_0x246359(0xf1)]});}[_0x2369fc(0x248)](_0x136e4f,_0x3c8fad){const _0x36f620=_0x2369fc;try{this['_commandService'][_0x36f620(0x308)](_0x136e4f['id'],_0x136e4f[_0x36f620(0x38c)],_0x3c8fad);}catch(_0x437adb){this[_0x36f620(0x17d)][_0x36f620(0x1af)](_0x437adb);}}['_setFormulaLimitStatus'](_0x562f87,_0x174871){const _0x2782df=_0x2369fc;_0x174871<this['_lastResponseTimestamp']||(this[_0x2782df(0x24f)]=_0x174871,this[_0x2782df(0xe1)]=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x2ba)]),this['_currentUsage']=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x173)]));}async['_startCalculationLimit'](_0x9ad17a){const _0x19a7e0=_0x2369fc;var _0x703e74,_0x422d98;const _0x471bf3=Date[_0x19a7e0(0x3a7)]();try{const _0x4b9e76=((_0x703e74=this[_0x19a7e0(0x2eb)][_0x19a7e0(0xfe)](u[_0x19a7e0(0x2f9)]))==null?void 0x0:_0x703e74[_0x19a7e0(0x275)])||ss,_0xd92182=(await this['_httpService'][_0x19a7e0(0x379)](_0x4b9e76,{'body':JSON[_0x19a7e0(0x2ac)]({'taskId':_0x9ad17a})}))[_0x19a7e0(0x1c3)];if(((_0x422d98=_0xd92182[_0x19a7e0(0x1af)])==null?void 0x0:_0x422d98['code'])!==G['OK'])return;this[_0x19a7e0(0x31c)](_0xd92182[_0x19a7e0(0x130)],_0x471bf3);}catch(_0x6e3616){this[_0x19a7e0(0x17d)][_0x19a7e0(0x1af)](_0x6e3616);}}async[_0x2369fc(0x366)](_0x5237a5){const _0x2de34f=_0x2369fc;var _0x52dfa2,_0x37321b;const _0x4429fa=Date[_0x2de34f(0x3a7)]();try{const _0x15e2e8=((_0x52dfa2=this[_0x2de34f(0x2eb)][_0x2de34f(0xfe)](u[_0x2de34f(0x2f9)]))==null?void 0x0:_0x52dfa2[_0x2de34f(0x290)])||ts,_0x5dcb92=_0x5237a5?_0x15e2e8+_0x2de34f(0x210)+encodeURIComponent(_0x5237a5):_0x15e2e8,_0x446cc4=(await this[_0x2de34f(0xe6)][_0x2de34f(0x30d)](_0x5dcb92))[_0x2de34f(0x1c3)];if(((_0x37321b=_0x446cc4[_0x2de34f(0x1af)])==null?void 0x0:_0x37321b[_0x2de34f(0x10e)])!==G['OK'])return;this[_0x2de34f(0x31c)](_0x446cc4[_0x2de34f(0x130)],_0x4429fa);}catch(_0x402c93){this[_0x2de34f(0x17d)][_0x2de34f(0x1af)](_0x402c93);}}async[_0x2369fc(0x28e)](_0x57de86){const _0x218a3d=_0x2369fc;var _0x3eb598,_0x4bed19;const _0x1e715b=Date['now']();try{const _0x1adf6f=((_0x3eb598=this[_0x218a3d(0x2eb)][_0x218a3d(0xfe)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3eb598[_0x218a3d(0x329)])||is,_0x32b289=(await this[_0x218a3d(0xe6)][_0x218a3d(0x379)](_0x1adf6f,{'body':JSON[_0x218a3d(0x2ac)]({'taskId':_0x57de86})}))['body'];if(((_0x4bed19=_0x32b289[_0x218a3d(0x1af)])==null?void 0x0:_0x4bed19[_0x218a3d(0x10e)])!==G['OK'])return;this[_0x218a3d(0x31c)](_0x32b289[_0x218a3d(0x130)],_0x1e715b);}catch(_0x7d0154){this[_0x218a3d(0x17d)][_0x218a3d(0x1af)](_0x7d0154);}}[_0x2369fc(0x1bb)](){const _0x1dc8cd=_0x2369fc;return this[_0x1dc8cd(0xe1)]===0x0?!0x0:this[_0x1dc8cd(0xe1)]-this[_0x1dc8cd(0x153)]>0x0;}[_0x2369fc(0x22f)](){const _0x387a1b=_0x2369fc;this[_0x387a1b(0x30e)]&&(clearTimeout(this['_pollingInterval']),this[_0x387a1b(0x30e)]=null);}[_0x2369fc(0x1c1)](){const _0x5f1493=_0x2369fc;this[_0x5f1493(0xed)][_0x5f1493(0x1c4)]({'content':this[_0x5f1493(0x1a3)]['t']('formula.calculation.waiting'),'type':p[_0x5f1493(0x314)]['Loading']});}[_0x2369fc(0x2b3)](_0x24732b){const _0x6971aa=_0x2369fc;for(const _0x4ad822 of _0x24732b){const {unitId:_0x373359,sheetId:_0x3d0d90,range:_0x525577}=_0x4ad822,_0x2af5f6=this['_univerInstanceService']['getUnit'](_0x373359);if(!_0x2af5f6)continue;const _0x46ce2f=_0x2af5f6['getSheetBySheetId'](_0x3d0d90);if(!_0x46ce2f)continue;const _0x2efcfe=_0x46ce2f[_0x6971aa(0x1ed)]();for(let _0x15bd10=_0x525577[_0x6971aa(0x25f)];_0x15bd10<=_0x525577[_0x6971aa(0x3ae)];_0x15bd10++)for(let _0x47cc2a=_0x525577['startColumn'];_0x47cc2a<=_0x525577[_0x6971aa(0x37b)];_0x47cc2a++){const _0x2eb805=_0x2efcfe['getValue'](_0x15bd10,_0x47cc2a);if(_0x2eb805&&(a['isFormulaString'](_0x2eb805['f'])||a[_0x6971aa(0x207)](_0x2eb805['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2369fc(0x2ab)](O[_0x2369fc(0xfa)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x2369fc(0x2e8)]),L(0x6,a['Inject'](a[_0x2369fc(0x20e)]))],ne);var ns=Object[_0x2369fc(0x219)],rs=(_0x167321,_0x5b746c,_0x2439fa,_0x29373c)=>{const _0x1eaef5=_0x2369fc;for(var _0x347e77=_0x29373c>0x1?void 0x0:_0x29373c?ns(_0x5b746c,_0x2439fa):_0x5b746c,_0x23925b=_0x167321[_0x1eaef5(0x236)]-0x1,_0x463a7a;_0x23925b>=0x0;_0x23925b--)(_0x463a7a=_0x167321[_0x23925b])&&(_0x347e77=_0x463a7a(_0x347e77)||_0x347e77);return _0x347e77;},Se=(_0xdc49fe,_0x16daf0)=>(_0x34d459,_0x3a4498)=>_0x16daf0(_0x34d459,_0x3a4498,_0xdc49fe);let Te=class extends a[_0x2369fc(0x189)]{constructor(_0x673115,_0xa78d66,_0x5ad6c7){const _0x241a31=_0x2369fc;super(),_(this,_0x241a31(0x2fa),new Map()),_(this,_0x241a31(0x2dd),new Map()),_(this,_0x241a31(0x11b),!0x1),(this[_0x241a31(0x2eb)]=_0x673115,this[_0x241a31(0x1f7)]=_0xa78d66,this['_revisionService']=_0x5ad6c7);}[_0x2369fc(0x396)](){const _0x2d1c1c=_0x2369fc;this[_0x2d1c1c(0x11b)]=!0x0;}['enableLocalCache'](){const _0x4a21d2=_0x2369fc;this[_0x4a21d2(0x11b)]=!0x1;}get[_0x2369fc(0x2bd)](){const _0x1b016e=_0x2369fc;return this[_0x1b016e(0x2dd)];}[_0x2369fc(0x31e)](){const _0x445543=_0x2369fc;this['exhaustSavingTask']()[_0x445543(0x39a)](()=>super[_0x445543(0x31e)]());}async['loadOfflineData'](_0x567e29){const _0x5993ef=_0x2369fc;return this[_0x5993ef(0x11b)]?null:this[_0x5993ef(0x1f7)][_0x5993ef(0x172)](u[_0x5993ef(0x1b2)](_0x567e29));}async['saveOfflineData'](_0x235d95,_0x5d1850){return!!this['_localStorageService']['setItem'](_0x235d95,_0x5d1850);}[_0x2369fc(0x35d)](_0x5769a9,_0x2a19ec,_0x35c542,_0x28252c){const _0x242827=_0x2369fc,_0x308a16=this['_revisionService'][_0x242827(0x2d5)](_0x5769a9);this[_0x242827(0x2fa)][_0x242827(0x2c6)](_0x5769a9,{'unitID':_0x5769a9,'type':_0x2a19ec,'awaitingChangeset':_0x35c542,'mutations':_0x28252c,'rev':_0x308a16}),this[_0x242827(0x2dd)][_0x242827(0x17a)](_0x5769a9)||this[_0x242827(0x369)](_0x5769a9);}[_0x2369fc(0x369)](_0x30b005){const _0x339cb6=_0x2369fc,_0x39dcdc=this[_0x339cb6(0x2f0)]();_0x39dcdc===0x0?this[_0x339cb6(0x206)](_0x30b005):this[_0x339cb6(0x2dd)][_0x339cb6(0x2c6)](_0x30b005,setTimeout(()=>this[_0x339cb6(0x206)](_0x30b005),_0x39dcdc));}[_0x2369fc(0x2f0)](){const _0x34042b=_0x2369fc;var _0x58e7d2;return(_0x58e7d2=this['_configService'][_0x34042b(0xfe)](u[_0x34042b(0x182)]))!=null?_0x58e7d2:u[_0x34042b(0x1cf)];}[_0x2369fc(0x206)](_0xa686a7){const _0x369663=_0x2369fc,_0x369126=this[_0x369663(0x2dd)][_0x369663(0x30d)](_0xa686a7);return _0x369126!==void 0x0&&window[_0x369663(0x25c)](_0x369126),this[_0x369663(0x1f7)][_0x369663(0x2ed)](u['getLocalCacheKey'](_0xa686a7),this[_0x369663(0x2fa)][_0x369663(0x30d)](_0xa686a7))[_0x369663(0x39a)](()=>this[_0x369663(0x2dd)][_0x369663(0x10a)](_0xa686a7));}async['exhaustSavingTask'](){const _0x59bc5c=_0x2369fc,_0xb2312a=[];this['_saveTaskMap'][_0x59bc5c(0x1a4)]((_0x51607f,_0x1dab78)=>{const _0x2639f2=_0x59bc5c;window['clearTimeout'](_0x51607f),_0xb2312a[_0x2639f2(0x1a0)](this['_saveCache'](_0x1dab78)[_0x2639f2(0x39a)](()=>{const _0x1b9777=_0x2639f2;this['_saveTaskMap'][_0x1b9777(0x10a)](_0x1dab78);}));}),await Promise['all'](_0xb2312a);}};Te=rs([Se(0x0,a[_0x2369fc(0x15a)]),Se(0x1,a[_0x2369fc(0x27c)]),Se(0x2,a[_0x2369fc(0x2ab)](g['RevisionService']))],Te);function _0x8c2a(_0x1bedeb,_0x503aad){_0x1bedeb=_0x1bedeb-0xe0;const _0x465539=_0x4655();let _0x8c2a19=_0x465539[_0x1bedeb];return _0x8c2a19;}class ke extends a['RxDisposable']{constructor(){const _0xcee922=_0x2369fc;super(),_(this,_0xcee922(0x15f)),this[_0xcee922(0x15f)]=I['fromEvent'](window,'popstate')[_0xcee922(0x28a)](I['takeUntil'](this[_0xcee922(0x131)]),I[_0xcee922(0x395)](0x1),I[_0xcee922(0x3a5)](void 0x0));}[_0x2369fc(0x226)](_0x8d8bd9,_0x1b85ce,_0x2f80e9=!0x1){const _0x253c32=_0x2369fc,_0x2f0809=new URL(window[_0x253c32(0x196)][_0x253c32(0xe4)]);_0x2f0809[_0x253c32(0x33e)]['set'](_0x8d8bd9,_0x1b85ce),_0x2f80e9?window[_0x253c32(0x117)][_0x253c32(0x34c)]('','',_0x2f0809[_0x253c32(0x138)]()):window[_0x253c32(0x117)][_0x253c32(0x10d)]('','',_0x2f0809[_0x253c32(0x138)]());}[_0x2369fc(0x104)](_0x3792a8,_0x39f3fa=!0x1){const _0x5c17ed=_0x2369fc,_0x3c1631=new URL(window[_0x5c17ed(0x196)]['href']);_0x3c1631[_0x5c17ed(0x33e)][_0x5c17ed(0x10a)](_0x3792a8),_0x39f3fa?window[_0x5c17ed(0x117)]['replaceState']('','',_0x3c1631[_0x5c17ed(0x138)]()):window['history'][_0x5c17ed(0x10d)]('','',_0x3c1631[_0x5c17ed(0x138)]());}[_0x2369fc(0x34a)](_0x28d433){const _0x2cbd22=_0x2369fc;var _0x302838;return(_0x302838=new URL(window['location']['href'])[_0x2cbd22(0x33e)]['get'](_0x28d433))!=null?_0x302838:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2369fc(0x219)],cs=(_0x41354c,_0x4f6f9a,_0x3a3af1)=>_0x4f6f9a in _0x41354c?os(_0x41354c,_0x4f6f9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a3af1}):_0x41354c[_0x4f6f9a]=_0x3a3af1,ls=(_0x31d556,_0x1d2d84,_0x34ea43,_0x52803c)=>{const _0x40010a=_0x2369fc;for(var _0x301fc7=_0x52803c>0x1?void 0x0:_0x52803c?as(_0x1d2d84,_0x34ea43):_0x1d2d84,_0x42431e=_0x31d556[_0x40010a(0x236)]-0x1,_0x3a5bc0;_0x42431e>=0x0;_0x42431e--)(_0x3a5bc0=_0x31d556[_0x42431e])&&(_0x301fc7=_0x3a5bc0(_0x301fc7)||_0x301fc7);return _0x301fc7;},de=(_0x37ba2d,_0xfdee91)=>(_0x3c51be,_0xfbd0b0)=>_0xfdee91(_0x3c51be,_0xfbd0b0,_0x37ba2d),_s=(_0x5c676f,_0x25d42a,_0x3045c6)=>cs(_0x5c676f,_0x25d42a+'',_0x3045c6);const hs=_0x2369fc(0xe0);exports[_0x2369fc(0x1f2)]=class extends a[_0x2369fc(0x35b)]{constructor(_0x390230=Me,_0x388ce7,_0x34e59b,_0x23b53c){const _0x11208f=_0x2369fc;super(),this[_0x11208f(0x2ad)]=_0x390230,this[_0x11208f(0x110)]=_0x388ce7,this[_0x11208f(0x2bc)]=_0x34e59b,this['_configService']=_0x23b53c;const {..._0x416783}=a[_0x11208f(0x224)]({},Me,this[_0x11208f(0x2ad)]);this[_0x11208f(0x2eb)]['setConfig'](Yt,_0x416783);}[_0x2369fc(0x326)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x2369fc(0x214)](){const _0x2b6b91=_0x2369fc;this[_0x2b6b91(0x2b6)]();}[_0x2369fc(0x23c)](){const _0x5076da=_0x2369fc;var _0x34e906;const _0x4c898e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5076da(0x372)],{'useClass':x['WebSocketService']}],[u[_0x5076da(0x351)],{'useClass':Te}],[exports[_0x5076da(0x18e)]],[ie],[Z],[F],[me],[exports[_0x5076da(0x296)]]];this[_0x5076da(0x2ad)][_0x5076da(0x132)]&&_0x4c898e[_0x5076da(0x1a0)]([Q]),a[_0x5076da(0x21a)](this['_injector'],a[_0x5076da(0x1b5)](_0x4c898e,(_0x34e906=this[_0x5076da(0x2ad)])==null?void 0x0:_0x34e906[_0x5076da(0x360)]));}[_0x2369fc(0x2b6)](){const _0x52650b=_0x2369fc;this['disposeWithMe'](this['_renderManagerService'][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_DOC'],[Ee])),this[_0x52650b(0x237)](this[_0x52650b(0x110)][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_SHEET'],[Ce]));}[_0x2369fc(0x323)](){const _0x4b9592=_0x2369fc;a[_0x4b9592(0x2fb)](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x4b9592(0x296)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x4b9592(0x2fb)](this[_0x4b9592(0x2bc)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x2369fc(0x122),hs),exports[_0x2369fc(0x1f2)]=ls([a[_0x2369fc(0x1da)](u[_0x2369fc(0x175)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),de(0x3,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x1f2)]);var us=Object[_0x2369fc(0x219)],Is=(_0x64959d,_0x4a014f,_0x131db4,_0x3a3d06)=>{const _0x360380=_0x2369fc;for(var _0x30dd56=_0x3a3d06>0x1?void 0x0:_0x3a3d06?us(_0x4a014f,_0x131db4):_0x4a014f,_0x3bc514=_0x64959d[_0x360380(0x236)]-0x1,_0x82140d;_0x3bc514>=0x0;_0x3bc514--)(_0x82140d=_0x64959d[_0x3bc514])&&(_0x30dd56=_0x82140d(_0x30dd56)||_0x30dd56);return _0x30dd56;},W=(_0x4567c1,_0x207871)=>(_0x3b1830,_0x5eb078)=>_0x207871(_0x3b1830,_0x5eb078,_0x4567c1);exports[_0x2369fc(0x1f9)]=class extends u[_0x2369fc(0x29f)]{constructor(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3){super(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3);}async['createSocket'](_0x5ed18c){const _0x507e9c=_0x2369fc,_0x4164c6=await this[_0x507e9c(0x3a2)](),_0xa95b19=this[_0x507e9c(0x289)](_0x5ed18c,_0x4164c6);return this[_0x507e9c(0x273)](_0xa95b19);}[_0x2369fc(0x289)](_0x4d2221,_0x156ce5){const _0x1e8ff1=_0x2369fc,_0x4d6bfe=typeof window>'u'?new URL(_0x4d2221):new URL(_0x4d2221,window['location']['origin']);_0x4d6bfe[_0x1e8ff1(0x33e)]['set'](_0x1e8ff1(0x2d7),_0x156ce5);const _0x579c3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))&&_0x4d6bfe[_0x1e8ff1(0x33e)][_0x1e8ff1(0x2c6)]('runId',_0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))),_0x4d6bfe[_0x1e8ff1(0x138)]();}async['_getSessionTicket'](){const _0x41f446=_0x2369fc;var _0x26ec91,_0x218172,_0x476532;const _0xb4e29=this['_configService'][_0x41f446(0xfe)](u[_0x41f446(0x2f9)]),_0x4392c0=(_0x26ec91=_0xb4e29==null?void 0x0:_0xb4e29[_0x41f446(0x16e)])!=null?_0x26ec91:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x476532=(_0x218172=(await this['_httpService'][_0x41f446(0x30d)](_0x4392c0,{'headers':{'Content-Type':'application/json'}}))[_0x41f446(0x1c3)])==null?void 0x0:_0x218172[_0x41f446(0x143)])!=null?_0x476532:'';}},exports[_0x2369fc(0x1f9)]=Is([W(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),W(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),W(0x2,a[_0x2369fc(0x15a)]),W(0x3,a['ILogService']),W(0x4,g[_0x2369fc(0x2a9)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x2369fc(0x219)],ds=(_0x5e1d59,_0x1d47d3,_0x242aef,_0x5ddad2)=>{const _0x41ec08=_0x2369fc;for(var _0x466c77=_0x5ddad2>0x1?void 0x0:_0x5ddad2?Ss(_0x1d47d3,_0x242aef):_0x1d47d3,_0x45537d=_0x5e1d59[_0x41ec08(0x236)]-0x1,_0x13600d;_0x45537d>=0x0;_0x45537d--)(_0x13600d=_0x5e1d59[_0x45537d])&&(_0x466c77=_0x13600d(_0x466c77)||_0x466c77);return _0x466c77;},fe=(_0x13af53,_0xf834eb)=>(_0x3d9698,_0x57f54c)=>_0xf834eb(_0x3d9698,_0x57f54c,_0x13af53);exports[_0x2369fc(0x2be)]=class extends a['Disposable']{constructor(_0x2461f3,_0x2372f4,_0x35a4de){const _0xa4d59c=_0x2369fc;super(),this[_0xa4d59c(0x340)]=_0x2461f3,this[_0xa4d59c(0xe6)]=_0x2372f4,this[_0xa4d59c(0x2eb)]=_0x35a4de;}async[_0x2369fc(0x3a0)](_0x1c9071,_0x4c98ab,_0x158a79,..._0x4fed72){const _0x1eb246=_0x2369fc;var _0x26a23b,_0xf04cef,_0x50fce2,_0x27be01;const _0x3ba8f1=this['_instanceService'][_0x1eb246(0x347)]();if(!_0x3ba8f1)throw new Error(_0x1eb246(0x309));const _0x4de0ee=((_0x26a23b=this[_0x1eb246(0x2eb)][_0x1eb246(0xfe)](u[_0x1eb246(0x1d0)]))!=null?_0x26a23b:u[_0x1eb246(0x181)])+'/'+_0x1c9071+_0x1eb246(0x215)+_0x4c98ab,_0x527430=new URL(window['location']['href']),_0x2e8317={'scriptId':_0x1c9071,'runId':(_0xf04cef=_0x527430[_0x1eb246(0x33e)][_0x1eb246(0x30d)](_0x1eb246(0x20b)))!=null?_0xf04cef:'','function':_0x4c98ab,'unitId':_0x3ba8f1['getUnitId'](),'argsOfFunction':JSON[_0x1eb246(0x2ac)](_0x4fed72),'invokeId':(_0x50fce2=_0x158a79[_0x1eb246(0x220)])!=null?_0x50fce2:'','executionId':(_0x27be01=_0x158a79[_0x1eb246(0x19e)])!=null?_0x27be01:''};try{const _0x3e84b7=await this[_0x1eb246(0xe6)][_0x1eb246(0x379)](_0x4de0ee,{'body':_0x2e8317});return _0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)]&&_0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)][_0x1eb246(0x10e)]!==G['OK']?_0x1eb246(0x2e6):_0x3e84b7['body'][_0x1eb246(0x1bf)];}catch{return _0x1eb246(0x2e6);}}},exports[_0x2369fc(0x2be)]=ds([fe(0x0,a[_0x2369fc(0x24a)]),fe(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),fe(0x2,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x2be)]);const we=0x7530,ye=_0x2369fc(0x136);class fs extends a['Disposable']{constructor(){const _0x1ab608=_0x2369fc;super(),_(this,_0x1ab608(0x20d),a[_0x1ab608(0x2f7)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1ab608(0x2ea),new Map()),_(this,_0x1ab608(0xfd),null),_(this,_0x1ab608(0x12a),new Map()),_(this,_0x1ab608(0x39c),new Map()),this['_init']();}['dispose'](){const _0x1e8718=_0x2369fc;super[_0x1e8718(0x31e)](),this['_clearOtherTimers']['forEach']((_0x5884c4,_0x3b92d0)=>this[_0x1e8718(0x255)](_0x3b92d0)),this[_0x1e8718(0xfd)]&&window[_0x1e8718(0x344)](this[_0x1e8718(0xfd)]);}[_0x2369fc(0x14e)](_0xfa32d6){const _0x4f30d0=_0x2369fc;return this[_0x4f30d0(0x2d1)](_0xfa32d6)['pipe'](I['distinctUntilChanged']());}[_0x2369fc(0x1b3)](_0x5eeaff){const _0x2ce71f=_0x2369fc;this[_0x2ce71f(0x2f3)][_0x2ce71f(0x1d1)]===0x0&&this[_0x2ce71f(0x188)](),this[_0x2ce71f(0x2f3)][_0x2ce71f(0x161)](_0x5eeaff),this[_0x2ce71f(0x124)]({'type':0x0,'memberID':this[_0x2ce71f(0x20d)],'unitIDs':[_0x5eeaff],'isForwarded':!0x1});}[_0x2369fc(0x312)](_0x27be4e){const _0x195ce3=_0x2369fc;this[_0x195ce3(0x2f3)]['delete'](_0x27be4e),this[_0x195ce3(0x2f3)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x195ce3(0xfd)]);}[_0x2369fc(0x2d3)](){const _0x4b1311=_0x2369fc;this[_0x4b1311(0x237)](a[_0x4b1311(0x199)](I[_0x4b1311(0x295)](window,_0x4b1311(0x111))['subscribe'](_0x45114d=>{const _0x28ea06=_0x4b1311;if(_0x45114d[_0x28ea06(0x39d)]!==ye||!_0x45114d[_0x28ea06(0x350)])return;const _0x4ad16e=JSON['parse'](_0x45114d[_0x28ea06(0x350)]);this['_handleEvent'](_0x4ad16e);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x4b1311(0x20d)],'unitIDs':Array[_0x4b1311(0x23a)](this[_0x4b1311(0x2f3)])}));}['_handleEvent'](_0x599df1){const _0x254bfa=_0x2369fc;switch(_0x599df1[_0x254bfa(0x230)]){case 0x0:this[_0x254bfa(0x346)](_0x599df1);break;case 0x1:this[_0x254bfa(0x1a7)](_0x599df1);break;case 0x2:this[_0x254bfa(0x160)](_0x599df1);break;}}['_handleJoinEvent'](_0xaaef86){const _0x4c128e=_0x2369fc,{unitIDs:_0x4755ea,memberID:_0x246c47,isForwarded:_0x2136fd}=_0xaaef86;_0x4755ea[_0x4c128e(0x1a4)](_0x5425ef=>{const _0x1b5f36=_0x4c128e;if(!_0x2136fd&&this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)&&this[_0x1b5f36(0x2d1)](_0x5425ef)[_0x1b5f36(0x2b7)](u[_0x1b5f36(0x179)][_0x1b5f36(0x2c4)]),!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)||!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)[_0x1b5f36(0x17a)](_0x246c47)){const _0x516e92=this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)||new Set();_0x516e92[_0x1b5f36(0x161)](_0x246c47),this[_0x1b5f36(0x2ea)][_0x1b5f36(0x2c6)](_0x5425ef,_0x516e92),this['_scheduleClearOtherTimer'](_0x246c47);}}),_0x2136fd||this[_0x4c128e(0x124)]({'type':0x0,'memberID':this[_0x4c128e(0x20d)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2369fc(0x1e7)](_0x3c4bda){const _0x37eb76=_0x2369fc;this[_0x37eb76(0x255)](_0x3c4bda);const _0x5996b5=window[_0x37eb76(0x261)](()=>{const _0x3fa051=_0x37eb76;this[_0x3fa051(0x2ea)][_0x3fa051(0x1a4)](_0x526e2e=>{const _0x2079da=_0x3fa051;_0x526e2e[_0x2079da(0x10a)](_0x3c4bda);});},we*0x2);this[_0x37eb76(0x12a)][_0x37eb76(0x2c6)](_0x3c4bda,_0x5996b5);}[_0x2369fc(0x255)](_0x27f140){const _0x39b971=_0x2369fc;if(this[_0x39b971(0x12a)][_0x39b971(0x17a)](_0x27f140)){const _0x3c8c49=this[_0x39b971(0x12a)]['get'](_0x27f140);_0x3c8c49&&window['clearTimeout'](_0x3c8c49),this[_0x39b971(0x12a)][_0x39b971(0x2c6)](_0x27f140,null);}}['_handleLeaveEvent'](_0x19669b){const _0x358181=_0x2369fc,{memberID:_0xf9f949,unitIDs:_0x534270}=_0x19669b;_0x534270[_0x358181(0x1a4)](_0x436e9b=>{const _0xbdcdbd=_0x358181;var _0x2da717;const _0x182dba=this[_0xbdcdbd(0x2ea)][_0xbdcdbd(0x30d)](_0x436e9b);_0x182dba&&(_0x182dba[_0xbdcdbd(0x10a)](_0xf9f949),(_0x2da717=this[_0xbdcdbd(0x2d1)](_0x436e9b))==null||_0x2da717['next'](_0x182dba[_0xbdcdbd(0x1d1)]===0x0?u['UnitStatus'][_0xbdcdbd(0x180)]:u[_0xbdcdbd(0x179)][_0xbdcdbd(0x2c4)]));}),this[_0x358181(0x255)](_0xf9f949);}[_0x2369fc(0x160)](_0xf1be7){const _0x219c93=_0x2369fc;this['_scheduleClearOtherTimer'](_0xf1be7[_0x219c93(0x1a8)]);}[_0x2369fc(0x124)](_0x1c84f6){const _0x4e42ac=_0x2369fc;localStorage[_0x4e42ac(0x2ed)](ye,JSON['stringify'](_0x1c84f6));}[_0x2369fc(0x188)](){const _0x4f28da=_0x2369fc;this[_0x4f28da(0xfd)]=window[_0x4f28da(0xea)](()=>{const _0x2e83ec=_0x4f28da;this[_0x2e83ec(0x124)]({'type':0x2,'memberID':this[_0x2e83ec(0x20d)]});},we);}['_ensureSubject'](_0x58987c){const _0x26460c=_0x2369fc;return this[_0x26460c(0x39c)][_0x26460c(0x17a)](_0x58987c)||this[_0x26460c(0x39c)]['set'](_0x58987c,new I[(_0x26460c(0x121))](u[_0x26460c(0x179)][_0x26460c(0x180)])),this[_0x26460c(0x39c)][_0x26460c(0x30d)](_0x58987c);}}exports[_0x2369fc(0x20a)]=Oe,exports[_0x2369fc(0x154)]=je,exports[_0x2369fc(0x277)]=fs,exports[_0x2369fc(0x14a)]=ke;
|