@univerjs-pro/collaboration-client-ui 0.13.0-insiders.20251220-0a5ea4d → 0.13.0-insiders.20251223-857805c
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 +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x200baf=_0x1887;(function(_0xe03ad,_0x4eb063){const _0x17e9f0=_0x1887,_0x54836c=_0xe03ad();while(!![]){try{const _0x305b17=parseInt(_0x17e9f0(0x1a6))/0x1+parseInt(_0x17e9f0(0x290))/0x2*(-parseInt(_0x17e9f0(0x30d))/0x3)+parseInt(_0x17e9f0(0x334))/0x4+-parseInt(_0x17e9f0(0x1d6))/0x5*(-parseInt(_0x17e9f0(0x182))/0x6)+parseInt(_0x17e9f0(0x2ae))/0x7+parseInt(_0x17e9f0(0x160))/0x8+parseInt(_0x17e9f0(0x350))/0x9*(-parseInt(_0x17e9f0(0x2a7))/0xa);if(_0x305b17===_0x4eb063)break;else _0x54836c['push'](_0x54836c['shift']());}catch(_0x4038fd){_0x54836c['push'](_0x54836c['shift']());}}}(_0x1856,0xc15c7));var Yt=Object[_0x200baf(0x348)],Wt=(_0x2efd65,_0xc3edb8,_0xe1dffb)=>_0xc3edb8 in _0x2efd65?Yt(_0x2efd65,_0xc3edb8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1dffb}):_0x2efd65[_0xc3edb8]=_0xe1dffb,_=(_0x32a736,_0x66feed,_0x6b0fc5)=>Wt(_0x32a736,typeof _0x66feed!=_0x200baf(0x31a)?_0x66feed+'':_0x66feed,_0x6b0fc5);import{jsx as _0x3f0013,jsxs as _0x37710a}from'react/jsx-runtime';import{CollaborationStatus as _0x112ced,CollaborationSessionService as _0x3b0fea,CollaborationController as _0x520957,DataLoaderService as _0x479f7c,MemberService as _0x51fd01,SessionStatus as _0x1ea97c,ILocalCacheService as _0xfd1d99,CollaborationUIEventService as _0x494b64,CollaborationUIEventId as _0x219328,DocCollaborationEntity as _0x3e58f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x29e120,getLocalCacheKey as _0x485938,LOCAL_CACHE_INTERVAL as _0x13deb4,LOCAL_CACHE_INTERVAL_KEY as _0x31d314,UniverCollaborationClientPlugin as _0x488310,CollaborationSocketService as _0x945b60,DEFAULT_WS_SESSION_TICKET_URL as _0x41cd70,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5c1f65,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3c15de,UnitStatus as _0x5e0c7e}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x58dae0,IUniverInstanceService as _0x3ccdde,Inject as _0x193ac9,Injector as _0x74bc13,Disposable as _0x4651e2,createIdentifier as _0x4668aa,ILogService as _0x443635,ICommandService as _0x32edf0,Optional as _0xdb2b8b,RxDisposable as _0x21bef9,Workbook as _0x358112,DOC_RANGE_TYPE as _0x54dcb6,debounce as _0x6c0b16,Rectangle as _0x361cb8,DisposableCollection as _0x269f8d,toDisposable as _0x2877fe,UniverInstanceType as _0x3f82f7,generateRandomId as _0x5930d8,COLORS as _0x350c74,ColorKit as _0x2eb62e,ThemeService as _0x5ad652,fromEventSubject as _0x2ad510,Tools as _0x473840,CommandType as _0x377348,IConfigService as _0x56e2e1,CanceledError as _0x38929a,isFormulaString as _0x54e843,isFormulaId as _0x4f4a0b,ILocalStorageService as _0x2a0434,DependentOn as _0x3414f6,Plugin as _0x5c9d70,merge as _0x3a2c7f,registerDependencies as _0x45fd98,mergeOverrideWithDependencies as _0x22d312,touchDependencies as _0x45a3e3}from'@univerjs/core';import{useObservable as _0x198bd2,useDependency as _0x1860a0,IUIPartsService as _0x46cffa,BuiltInUIPart as _0x33a677,connectInjector as _0x1c89ee,IBeforeCloseService as _0x2aa14b,IMessageService as _0x378cfb,INotificationService as _0x2f32ad}from'@univerjs/ui';import{BehaviorSubject as _0x2c6743,switchMap as _0x597a2d,of as _0x3f8f2b,takeUntil as _0x4759ef,debounceTime as _0x6e15d,Subject as _0x39034e,filter as _0x45dc53,merge as _0x3a3bab,combineLatest as _0x5b39f1,fromEvent as _0x41e1c1,shareReplay as _0x41d02e,mapTo as _0x192222,distinctUntilChanged as _0x10311e}from'rxjs';import{Tooltip as _0x560dbf,clsx as _0x1119c3,MessageType as _0x5f0a68}from'@univerjs/design';import{useRef as _0x320a17,createElement as _0x5924f2,forwardRef as _0x11cfdd,useCallback as _0x218d1b}from'react';import{IRemoteInstanceService as _0x1e0323}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5cdf7a,RefRangeService as _0x27eb71,SetSelectionsOperation as _0x46e613,SheetsSelectionsService as _0x5deda9,EffectRefRangId as _0x47b6ab,handleIRemoveRow as _0x758062,handleIRemoveCol as _0x3c1c0e,handleMoveRange as _0x127603,handleInsertRow as _0x428be7,handleInsertRangeMoveRight as _0x1b0fb8,handleInsertRangeMoveDown as _0xaae4f7,handleInsertCol as _0x42b468,handleDeleteRangeMoveUp as _0x12a59d,handleDeleteRangeMoveLeft as _0x36be90,runRefRangeMutations as _0x3a12f0}from'@univerjs/sheets';import{Shape as _0x1690d1,Rect as _0x164e6b,getColor as _0x34d0e1,RegularPolygon as _0x48a99e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x539f47,Vector2 as _0x303df0,SHEET_VIEWPORT_KEY as _0x4b4009,IRenderManagerService as _0x4b6ef2}from'@univerjs/engine-render';import{HTTPService as _0x119c37,ISocketService as _0x41390d,WebSocketService as _0x13836a}from'@univerjs/network';import{IDocClipboardService as _0x5776e3,NodePositionConvertToCursor as _0x452441,NodePositionConvertToRectRange as _0x52d4fd,TEXT_RANGE_LAYER_INDEX as _0x5c58e6,SetDocZoomRatioOperation as _0xe28433,DocIMEInputManagerService as _0x17f979,DocStateChangeManagerService as _0x2c31cd}from'@univerjs/docs-ui';import{IImageIoService as _0x2bf624}from'@univerjs/drawing';import{ITransformService as _0xc45270,CollaborationEvent as _0x48d9d7,isTransformMutationFailure as _0x36fd28,isTransformMutationsWithChangesetSuccess as _0x447983,RevisionService as _0x1e41b6,ISnapshotServerService as _0xae48d4}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x7339b8,RichTextEditingMutation as _0x17801a,DocSelectionManagerService as _0x16dfb3,DocSkeletonManagerService as _0x34964f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x422d16,serializeRangeWithSheet as _0x47805b,FormulaExecuteStageType as _0x244a54,FormulaExecutedStateType as _0x24d840,SetFormulaCalculationStartMutation as _0x584a44,SetFormulaCalculationNotificationMutation as _0x253cd0}from'@univerjs/engine-formula';import{map as _0x5ba291,filter as _0x146eab,throttleTime as _0x305f42,takeUntil as _0x2a2c9c,switchMap as _0x22fd43}from'rxjs/operators';import{SheetSkeletonManagerService as _0x5805dd,getCoordByCell as _0xfea7ce,getSheetObject as _0x508ac8}from'@univerjs/sheets-ui';function Ge({ref:_0x3eeef6,..._0x516ef1}){const _0x2d7ca6=_0x200baf,{icon:_0x61bc14,id:_0x1e24fb,className:_0x5690ac,extend:_0x2bf7a1,..._0x55ae22}=_0x516ef1,_0x2d22d8=(_0x2d7ca6(0x33e)+_0x1e24fb+'\x20'+(_0x5690ac||''))[_0x2d7ca6(0x371)](),_0x349df0=_0x320a17('_'+vi());return At(_0x61bc14,''+_0x1e24fb,{'defIds':_0x61bc14['defIds'],'idSuffix':_0x349df0[_0x2d7ca6(0x2f6)]},{'ref':_0x3eeef6,'className':_0x2d22d8,..._0x55ae22},_0x2bf7a1);}function At(_0x40cf08,_0x48db79,_0x13aa0e,_0xb887ad,_0x2edd4b){const _0x307057=_0x200baf;return _0x5924f2(_0x40cf08[_0x307057(0x20d)],{'key':_0x48db79,...gi(_0x40cf08,_0x13aa0e,_0x2edd4b),..._0xb887ad},(Ei(_0x40cf08,_0x13aa0e)[_0x307057(0x16c)]||[])[_0x307057(0x37c)]((_0x551744,_0x157044)=>At(_0x551744,_0x48db79+'-'+_0x40cf08[_0x307057(0x20d)]+'-'+_0x157044,_0x13aa0e,void 0x0,_0x2edd4b)));}function gi(_0x190953,_0x4f8cce,_0x3e70e9){const _0x353778=_0x200baf,_0x26f15e={..._0x190953[_0x353778(0x2d0)]};_0x3e70e9!=null&&_0x3e70e9[_0x353778(0x303)]&&_0x26f15e[_0x353778(0x1e4)]===_0x353778(0x303)&&(_0x26f15e[_0x353778(0x1e4)]=_0x3e70e9['colorChannel1']),_0x190953[_0x353778(0x20d)]===_0x353778(0x32a)&&_0x26f15e['id']&&(_0x26f15e['id']=_0x26f15e['id']+_0x4f8cce[_0x353778(0x2cf)]),Object[_0x353778(0x1fc)](_0x26f15e)[_0x353778(0x130)](([_0x372952,_0x27267a])=>{const _0x477184=_0x353778;_0x372952===_0x477184(0x32a)&&typeof _0x27267a=='string'&&(_0x26f15e[_0x372952]=_0x27267a[_0x477184(0x28c)](/url\(#(.*)\)/,_0x477184(0x35d)+_0x4f8cce['idSuffix']+')'));});const {defIds:_0x1e2efb}=_0x4f8cce;return!_0x1e2efb||_0x1e2efb[_0x353778(0x198)]===0x0||(_0x190953['tag']===_0x353778(0x2fc)&&_0x26f15e['xlink:href']&&(_0x26f15e[_0x353778(0x2c2)]=_0x26f15e[_0x353778(0x2c2)]+_0x4f8cce[_0x353778(0x2cf)]),Object[_0x353778(0x1fc)](_0x26f15e)[_0x353778(0x130)](([_0x2cb52c,_0x4288a2])=>{const _0x8e4a29=_0x353778;typeof _0x4288a2==_0x8e4a29(0x29b)&&(_0x26f15e[_0x2cb52c]=_0x4288a2[_0x8e4a29(0x28c)](/url\(#(.*)\)/,_0x8e4a29(0x35d)+_0x4f8cce[_0x8e4a29(0x2cf)]+')'));})),_0x26f15e;}function Ei(_0x4c0f97,_0x4459ba){const _0x5364f1=_0x200baf;var _0x2741ec;const {defIds:_0x35b2f5}=_0x4459ba;return!_0x35b2f5||_0x35b2f5[_0x5364f1(0x198)]===0x0?_0x4c0f97:_0x4c0f97['tag']==='defs'&&((_0x2741ec=_0x4c0f97[_0x5364f1(0x16c)])!=null&&_0x2741ec[_0x5364f1(0x198)])?{..._0x4c0f97,'children':_0x4c0f97[_0x5364f1(0x16c)]['map'](_0x3a33f1=>typeof _0x3a33f1[_0x5364f1(0x2d0)]['id']==_0x5364f1(0x29b)&&_0x35b2f5&&_0x35b2f5[_0x5364f1(0x19b)](_0x3a33f1[_0x5364f1(0x2d0)]['id'])?{..._0x3a33f1,'attrs':{..._0x3a33f1['attrs'],'id':_0x3a33f1[_0x5364f1(0x2d0)]['id']+_0x4459ba[_0x5364f1(0x2cf)]}}:_0x3a33f1)}:_0x4c0f97;}function vi(){const _0x52901f=_0x200baf;return Math[_0x52901f(0x187)]()[_0x52901f(0x13d)](0x24)['substring'](0x2,0x8);}Ge[_0x200baf(0x17d)]=_0x200baf(0x1d9);const pi={'tag':_0x200baf(0x323),'attrs':{'xmlns':_0x200baf(0x2c7),'fill':_0x200baf(0x2a8),'viewBox':'0\x200\x2016\x2016','width':_0x200baf(0x25f),'height':_0x200baf(0x25f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x200baf(0x223),'attrs':{'stroke':'currentColor','d':_0x200baf(0x363),'strokeLinecap':_0x200baf(0x309),'strokeLinejoin':_0x200baf(0x309),'strokeWidth':1.2}}]},{'tag':_0x200baf(0x213),'attrs':{},'children':[{'tag':_0x200baf(0x14b),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x200baf(0x223),'attrs':{'fill':_0x200baf(0x180),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x11cfdd(function(_0x1df2e6,_0x5d1085){const _0x5899aa=_0x200baf;return _0x5924f2(Ge,Object[_0x5899aa(0x2a0)]({},_0x1df2e6,{'id':_0x5899aa(0x181),'ref':_0x5d1085,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':_0x200baf(0x323),'attrs':{'xmlns':_0x200baf(0x2c7),'fill':_0x200baf(0x2a8),'viewBox':_0x200baf(0x235),'width':_0x200baf(0x25f),'height':_0x200baf(0x25f)},'children':[{'tag':'g','attrs':{'clipPath':_0x200baf(0x176)},'children':[{'tag':'path','attrs':{'stroke':_0x200baf(0x20f),'d':_0x200baf(0x179),'strokeLinecap':_0x200baf(0x309),'strokeLinejoin':_0x200baf(0x309),'strokeWidth':1.2}}]},{'tag':_0x200baf(0x213),'attrs':{},'children':[{'tag':_0x200baf(0x14b),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x200baf(0x223),'attrs':{'fill':_0x200baf(0x180),'d':_0x200baf(0x379),'transform':_0x200baf(0x21a)}}]}]}],'defIds':[_0x200baf(0x239)]},wt=_0x11cfdd(function(_0x428b44,_0x5da965){const _0x5cb777=_0x200baf;return _0x5924f2(Ge,Object['assign']({},_0x428b44,{'id':_0x5cb777(0x2e1),'ref':_0x5da965,'icon':Oi}));});wt[_0x200baf(0x17d)]='OnLineIcon';function Ti(_0x2dcc77){const _0x516f4a=_0x200baf;switch(_0x2dcc77){case _0x112ced[_0x516f4a(0x358)]:return'collabStatus.offline';case _0x112ced['CONFLICT']:return _0x516f4a(0x36c);case _0x112ced[_0x516f4a(0x1dc)]:return _0x516f4a(0x276);case _0x112ced['NOT_COLLAB']:return'collabStatus.notCollab';case _0x112ced[_0x516f4a(0x29f)]:case _0x112ced['AWAITING_WITH_PENDING']:return _0x516f4a(0x34e);case _0x112ced[_0x516f4a(0x2c3)]:case _0x112ced[_0x516f4a(0x1ca)]:return _0x516f4a(0x26f);}}function Ci(_0x363be5){const _0x4bd18f=_0x200baf,{status$:_0x27f1a1}=_0x363be5,_0x5529cc=_0x198bd2(_0x27f1a1,_0x112ced['NOT_COLLAB']),_0x22633a=_0x1860a0(_0x58dae0),_0x48e517=_0x1860a0(_0x3b0fea),_0x281453=_0x5529cc!==_0x112ced['OFFLINE'],_0x518312=_0x22633a['t'](Ti(_0x5529cc)),_0x2f781c=_0x281453?_0x3f0013(wt,{}):_0x3f0013(Pt,{}),_0x46b77d=_0x218d1b(()=>{_0x281453||_0x48e517['reconnect']();},[_0x281453,_0x48e517]);function _0x4537ae(){const _0x77a519=_0x1887;return _0x37710a(_0x77a519(0x196),{'className':_0x77a519(0x14d),'onClick':_0x46b77d,'children':[_0x3f0013(_0x77a519(0x196),{'className':_0x1119c3(_0x77a519(0x18a),{'univer-text-green-500':_0x281453,'univer-text-red-500':!_0x281453}),'children':_0x2f781c}),_0x3f0013(_0x77a519(0x196),{'className':_0x77a519(0x2f9),'children':_0x518312})]});}return _0x281453?_0x4537ae():_0x3f0013(_0x560dbf,{'title':_0x22633a['t'](_0x4bd18f(0x32b)),'children':_0x4537ae()});}var Ri=Object[_0x200baf(0x1fa)],Di=(_0x90aa7c,_0x7687db,_0x58d0f4,_0x2b5e36)=>{const _0x18a72f=_0x200baf;for(var _0x48ceb1=_0x2b5e36>0x1?void 0x0:_0x2b5e36?Ri(_0x7687db,_0x58d0f4):_0x7687db,_0x189355=_0x90aa7c[_0x18a72f(0x198)]-0x1,_0x484274;_0x189355>=0x0;_0x189355--)(_0x484274=_0x90aa7c[_0x189355])&&(_0x48ceb1=_0x484274(_0x48ceb1)||_0x48ceb1);return _0x48ceb1;},se=(_0x2474c9,_0x153380)=>(_0x3bfdc0,_0xbd7e90)=>_0x153380(_0x3bfdc0,_0xbd7e90,_0x2474c9);let ae=class extends _0x4651e2{constructor(_0x348520,_0x4bece9,_0x30bbc1,_0x2480b6){const _0x3f4369=_0x200baf;super(),_(this,_0x3f4369(0x1bd),new _0x2c6743(_0x112ced['NOT_COLLAB'])),(this[_0x3f4369(0x1dd)]=_0x348520,this['_injector']=_0x4bece9,this['_collaborationController']=_0x30bbc1,this['_uiPartsService']=_0x2480b6,this[_0x3f4369(0x166)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x4a7a53=_0x200baf;this[_0x4a7a53(0x342)](this[_0x4a7a53(0x1dd)]['focused$'][_0x4a7a53(0x236)](_0x597a2d(()=>{const _0x5666a1=_0x4a7a53,_0x11d01b=this['_univerInstanceService']['getFocusedUnit']();return _0x11d01b?this[_0x5666a1(0x24a)][_0x5666a1(0x364)](_0x11d01b[_0x5666a1(0x1d3)]()):_0x3f8f2b(null);}),_0x597a2d(_0x2f2a84=>_0x2f2a84?_0x2f2a84['status$']:_0x3f8f2b(_0x112ced[_0x4a7a53(0x218)])))[_0x4a7a53(0x2ad)](_0x22f358=>{const _0x100830=_0x4a7a53;this['_status$'][_0x100830(0x1a7)](_0x22f358);}));}[_0x200baf(0x166)](){const _0x1218e9=_0x200baf;this['disposeWithMe'](this[_0x1218e9(0x262)][_0x1218e9(0x1b4)](_0x33a677['HEADER_MENU'],()=>_0x1c89ee(Ni({'status$':this[_0x1218e9(0x1bd)]['asObservable']()}),this['_injector'])));}};ae=Di([se(0x0,_0x3ccdde),se(0x1,_0x193ac9(_0x74bc13)),se(0x2,_0x193ac9(_0x520957)),se(0x3,_0x46cffa)],ae);function Ni(_0x1ad541){const {status$:_0x51cc27}=_0x1ad541;return function(){return _0x3f0013(Ci,{'status$':_0x51cc27});};}const yt=_0x4668aa('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x4248f3,_0x29252f,_0x648be5,_0x14d9b0)=>{const _0x9c2533=_0x200baf;for(var _0x4ae374=_0x14d9b0>0x1?void 0x0:_0x14d9b0?bi(_0x29252f,_0x648be5):_0x29252f,_0x44ec3b=_0x4248f3[_0x9c2533(0x198)]-0x1,_0x2d1ef4;_0x44ec3b>=0x0;_0x44ec3b--)(_0x2d1ef4=_0x4248f3[_0x44ec3b])&&(_0x4ae374=_0x2d1ef4(_0x4ae374)||_0x4ae374);return _0x4ae374;},K=(_0x18b839,_0x52a905)=>(_0x55cd87,_0x2fb3d0)=>_0x52a905(_0x55cd87,_0x2fb3d0,_0x18b839);let ce=class extends _0x21bef9{constructor(_0x2f0463,_0x329373,_0x3ffc4c,_0x3d9366,_0x566ce4){const _0x59e566=_0x200baf;super(),this[_0x59e566(0x27f)]=_0x2f0463,this[_0x59e566(0x29a)]=_0x329373,this['_commandService']=_0x3ffc4c,this[_0x59e566(0x174)]=_0x3d9366,_0x566ce4?_0x566ce4==null||_0x566ce4['whenReady']()[_0x59e566(0x189)](()=>this[_0x59e566(0x35e)]()):(this['_logService'][_0x59e566(0x2e3)](_0x59e566(0x2a1),_0x59e566(0x353)),this[_0x59e566(0x35e)]());}async[_0x200baf(0x35e)](){const _0x43ba77=_0x200baf,_0x58f7e7=this['_urlService']['getParam'](_0x43ba77(0x31f)),_0x5f4ae6=this['_urlService'][_0x43ba77(0x32e)](_0x43ba77(0x242)),_0x215c08=this[_0x43ba77(0x27f)][_0x43ba77(0x32e)]('subunit');if(!_0x58f7e7||!_0x5f4ae6){this[_0x43ba77(0x29a)][_0x43ba77(0x2e3)](_0x43ba77(0x2a1),_0x43ba77(0x346));return;}const _0x415a8d=await this['_dataLoaderService'][_0x43ba77(0x260)](_0x58f7e7,Number(_0x5f4ae6),_0x215c08);_0x415a8d&&_0x415a8d instanceof _0x358112&&this['_setupSubUnitSync'](_0x415a8d);}async[_0x200baf(0x291)](_0x25d327){const _0x19c507=_0x200baf;await this[_0x19c507(0x320)](_0x25d327),_0x25d327[_0x19c507(0x2c0)][_0x19c507(0x236)](_0x4759ef(this[_0x19c507(0x329)]))[_0x19c507(0x2ad)](_0x2e62b8=>{const _0x44bb05=_0x19c507;_0x2e62b8&&this[_0x44bb05(0x22a)](_0x2e62b8);}),this[_0x19c507(0x27f)][_0x19c507(0x205)][_0x19c507(0x236)](_0x4759ef(this[_0x19c507(0x329)]))[_0x19c507(0x2ad)](()=>this[_0x19c507(0x320)](_0x25d327));}['_updateURLWithCurrentState'](_0x4b43ad,_0x467438=!0x1){const _0x4e7c15=_0x200baf,_0x4f242f=this[_0x4e7c15(0x27f)][_0x4e7c15(0x32e)](_0x4e7c15(0x231));_0x4b43ad['getSheetId']()!==_0x4f242f&&this['_urlService'][_0x4e7c15(0x148)](_0x4e7c15(0x231),_0x4b43ad[_0x4e7c15(0x15c)](),_0x467438);}async['_updateSubUnitFromURLParams'](_0x493b0e){const _0x8a5878=_0x200baf;var _0x22c2dd;const _0x52ca70=this[_0x8a5878(0x27f)][_0x8a5878(0x32e)]('subunit');if(!_0x52ca70||!_0x493b0e[_0x8a5878(0x13c)](_0x52ca70)){const _0x51a04d=_0x493b0e[_0x8a5878(0x157)]()[0x0],_0xf7587=_0x493b0e[_0x8a5878(0x13c)](_0x51a04d);if(!_0xf7587)return;this[_0x8a5878(0x22a)](_0xf7587,!0x0),await this[_0x8a5878(0x23c)][_0x8a5878(0x327)](_0x5cdf7a['id'],{'unitId':_0x493b0e[_0x8a5878(0x1d3)](),'subUnitId':_0x51a04d});return;}((_0x22c2dd=_0x493b0e[_0x8a5878(0x156)]())==null?void 0x0:_0x22c2dd[_0x8a5878(0x15c)]())!==_0x52ca70&&await this[_0x8a5878(0x23c)][_0x8a5878(0x327)](_0x5cdf7a['id'],{'unitId':_0x493b0e[_0x8a5878(0x1d3)](),'subUnitId':_0x52ca70});}};ce=Li([K(0x0,yt),K(0x1,_0x443635),K(0x2,_0x32edf0),K(0x3,_0x193ac9(_0x479f7c)),K(0x4,_0xdb2b8b(_0x1e0323))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x3151f9,_0xd59f61,_0x292448,_0x272eb4)=>{const _0x25cd6e=_0x200baf;for(var _0xe3d5b9=_0x272eb4>0x1?void 0x0:_0x272eb4?Ui(_0xd59f61,_0x292448):_0xd59f61,_0x27d3e6=_0x3151f9[_0x25cd6e(0x198)]-0x1,_0x22af23;_0x27d3e6>=0x0;_0x27d3e6--)(_0x22af23=_0x3151f9[_0x27d3e6])&&(_0xe3d5b9=_0x22af23(_0xe3d5b9)||_0xe3d5b9);return _0xe3d5b9;},rt=(_0x1d9497,_0x3a69c8)=>(_0x371a95,_0x1c8735)=>_0x3a69c8(_0x371a95,_0x1c8735,_0x1d9497);let $e=class extends _0x21bef9{constructor(_0x3221e0,_0x43c900){super(),this['_docClipboardService']=_0x3221e0,this['_imageIoService']=_0x43c900,this['_init']();}[_0x200baf(0x35e)](){const _0x47c163=_0x200baf,_0x3e0be3=this;this[_0x47c163(0x342)](this['_docClipboardService'][_0x47c163(0x304)]({'onBeforePasteImage':async _0x19d1c2=>{const _0x2e9ed5=_0x47c163,_0x2c68f7=await _0x3e0be3['_imageIoService']['saveImage'](_0x19d1c2);return _0x2c68f7?{'source':_0x2c68f7[_0x2e9ed5(0x1f2)],'imageSourceType':_0x2c68f7[_0x2e9ed5(0x191)]}:null;}}));}};$e=Mi([rt(0x0,_0x5776e3),rt(0x1,_0x2bf624)],$e);const ot=[_0x200baf(0x151),_0x200baf(0x26e),_0x200baf(0x28b),_0x200baf(0x376),_0x200baf(0x2ba),_0x200baf(0x2be)];class Ke extends _0x4651e2{constructor(){const _0x5e44b6=_0x200baf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5e44b6(0x1c8),0x0);}[_0x200baf(0x1af)](_0x2c53c6){const _0x13ef01=_0x200baf;if(this[_0x13ef01(0x2d9)][_0x13ef01(0x378)](_0x2c53c6))return this[_0x13ef01(0x2d9)]['get'](_0x2c53c6);const _0x386bfa=ot[this['_colorIndex']];return this[_0x13ef01(0x1c8)]=(this[_0x13ef01(0x1c8)]+0x1)%ot[_0x13ef01(0x198)],this[_0x13ef01(0x2d9)][_0x13ef01(0x2d1)](_0x2c53c6,_0x386bfa),_0x386bfa;}}function $t(_0x57154e){const _0x495e46=_0x200baf;let _0x8e731b='';for(const _0x23aff0 of _0x57154e){const {startOffset:_0x482831,endOffset:_0x319258,isActive:_0x220d57,rangeType:_0x524b72,segmentId:_0x5727b5,segmentPage:_0x4eb96c}=_0x23aff0;_0x8e731b[_0x495e46(0x198)]&&(_0x8e731b+=','),_0x8e731b+=_0x482831+':'+_0x319258+':'+(_0x220d57?'1':'0')+':'+_0x524b72+':'+_0x5727b5+':'+_0x4eb96c;}return _0x8e731b;}function Ai(_0x5b4489){const _0x46c5e1=_0x200baf,_0x4abf85=_0x5b4489['split'](','),_0x5b558a=[];for(const _0x56dec3 of _0x4abf85){const [_0x2e5f6b,_0x510508,_0x118d2a,_0x3bea92,_0xaf4380,_0x55fd93]=_0x56dec3[_0x46c5e1(0x237)](':');_0x5b558a['push']({'startOffset':Number(_0x2e5f6b),'endOffset':Number(_0x510508),'collapsed':_0x2e5f6b===_0x510508,'isActive':_0x118d2a==='1','rangeType':_0x3bea92===_0x54dcb6[_0x46c5e1(0x326)]?_0x54dcb6[_0x46c5e1(0x326)]:_0x54dcb6['RECT'],'segmentId':typeof _0xaf4380==_0x46c5e1(0x29b)?String(_0xaf4380):'','segmentPage':Number(_0x55fd93!=null?_0x55fd93:-0x1)});}return _0x5b558a[_0x46c5e1(0x230)](_0x43ee4e=>_0x43ee4e[_0x46c5e1(0x217)])||(_0x5b558a[0x0][_0x46c5e1(0x217)]=!0x0),_0x5b558a;}class ze extends _0x21bef9{constructor(){const _0xac5562=_0x200baf;super(...arguments),_(this,_0xac5562(0x172),new _0x2c6743(null)),_(this,_0xac5562(0x264),this[_0xac5562(0x172)][_0xac5562(0x17f)]());}[_0x200baf(0x1da)](_0x2eaf5e){const _0x134831=_0x200baf,{unitID:_0x29f5fb,memberID:_0x27c99f,textRanges:_0x112921}=_0x2eaf5e,_0x455656=$t(_0x112921);if(_0x455656==='')return;const _0x3ad04f={'unitID':_0x29f5fb,'memberID':_0x27c99f,'selection':_0x455656};this['_collabCursorState$'][_0x134831(0x1a7)](_0x3ad04f);}}var Pi=Object[_0x200baf(0x1fa)],wi=(_0x220e12,_0x4ac865,_0x3c4b2c,_0x545d9e)=>{const _0x53ce9f=_0x200baf;for(var _0xb95038=_0x545d9e>0x1?void 0x0:_0x545d9e?Pi(_0x4ac865,_0x3c4b2c):_0x4ac865,_0x2455df=_0x220e12[_0x53ce9f(0x198)]-0x1,_0x3145ea;_0x2455df>=0x0;_0x2455df--)(_0x3145ea=_0x220e12[_0x2455df])&&(_0xb95038=_0x3145ea(_0xb95038)||_0xb95038);return _0xb95038;},A=(_0x27fedf,_0x4ee3cc)=>(_0x4dc795,_0x21c692)=>_0x4ee3cc(_0x4dc795,_0x21c692,_0x27fedf);const yi=0x12c,$i=0x64;let xe=class extends _0x21bef9{constructor(_0x43c802,_0xb1404f,_0x5937fb,_0x39f066,_0x24ce9d,_0x345b8e,_0x3f20ef,_0x134d5b,_0x10ab73){const _0x5ea79b=_0x200baf;super(),_(this,'_online',!0x1),_(this,_0x5ea79b(0x35e),!0x1),_(this,_0x5ea79b(0x337),new _0x2c6743(new Map())),_(this,_0x5ea79b(0x232),this[_0x5ea79b(0x337)]['asObservable']()),_(this,_0x5ea79b(0x164),new _0x2c6743([])),_(this,'roomMembers$',this['_roomMembers$'][_0x5ea79b(0x236)](_0x6e15d(yi))),_(this,_0x5ea79b(0x31b),_0x6c0b16(_0x3a69a8=>{const _0x3bc8dd=_0x5ea79b,_0x35d09e={'eventID':_0x48d9d7[_0x3bc8dd(0x2e0)],'data':{'unitID':this[_0x3bc8dd(0x2fa)],'memberID':this[_0x3bc8dd(0x265)][_0x3bc8dd(0x2c8)](),'selection':$t(_0x3a69a8)}};this[_0x3bc8dd(0x265)][_0x3bc8dd(0x141)](_0x35d09e,this['unitID']);},$i)),(this[_0x5ea79b(0x2fa)]=_0x43c802,this[_0x5ea79b(0x265)]=_0xb1404f,this[_0x5ea79b(0x211)]=_0x5937fb,this[_0x5ea79b(0x2cb)]=_0x39f066,this[_0x5ea79b(0x186)]=_0x24ce9d,this[_0x5ea79b(0x296)]=_0x345b8e,this[_0x5ea79b(0x2ec)]=_0x3f20ef,this[_0x5ea79b(0x1dd)]=_0x134d5b,this[_0x5ea79b(0x23c)]=_0x10ab73);}get[_0x200baf(0x288)](){const _0x1903dc=_0x200baf;return this[_0x1903dc(0x337)]['getValue']();}get[_0x200baf(0x366)](){const _0x5bab98=_0x200baf;return this[_0x5bab98(0x164)][_0x5bab98(0x1c5)]();}['dispose'](){const _0x1334d2=_0x200baf;super['dispose'](),this[_0x1334d2(0x337)]['next'](new Map()),this[_0x1334d2(0x337)][_0x1334d2(0x1b7)](),this['_roomMembers$']['next']([]),this[_0x1334d2(0x164)][_0x1334d2(0x1b7)]();}[_0x200baf(0x268)](){const _0x38fa90=_0x200baf;this[_0x38fa90(0x35e)]||(this['_init']=!0x0,this[_0x38fa90(0x265)]['sessionStatus$'][_0x38fa90(0x236)](_0x4759ef(this['dispose$']))['subscribe'](_0x2060cd=>{const _0x5cef3d=_0x38fa90;_0x2060cd===_0x1ea97c['ONLINE']?this[_0x5cef3d(0x1c6)]():this['_toggleOffline']();}),this[_0x38fa90(0x265)][_0x38fa90(0x2a3)][_0x38fa90(0x236)](_0x4759ef(this['dispose$']))[_0x38fa90(0x2ad)](_0x2d60c9=>{const _0x1e0d46=_0x38fa90,_0x37ae99=_0x2d60c9[_0x1e0d46(0x1d2)];_0x37ae99===_0x48d9d7['UPDATE_CURSOR']&&this[_0x1e0d46(0x372)](_0x2d60c9),_0x37ae99===_0x48d9d7[_0x1e0d46(0x365)]&&this[_0x1e0d46(0x2e8)](_0x2d60c9);}),this[_0x38fa90(0x342)](this['_commandService'][_0x38fa90(0x1c2)](_0x5ca527=>{const _0x5d90f9=_0x38fa90,_0x24cb34=_0x5ca527[_0x5d90f9(0x195)];_0x24cb34!=null&&this['_online']&&_0x5ca527['id']===_0x7339b8['id']&&_0x24cb34['unitId']===this[_0x5d90f9(0x2fa)]&&_0x24cb34[_0x5d90f9(0x165)]===!0x1&&_0x24cb34[_0x5d90f9(0x1cf)]['length']>0x0&&this[_0x5d90f9(0x31b)](_0x24cb34['ranges']);})),this[_0x38fa90(0x296)]['collabCursorState$'][_0x38fa90(0x236)](_0x4759ef(this[_0x38fa90(0x329)]))['subscribe'](_0x2305b8=>{const _0x43de11=_0x38fa90;if((_0x2305b8==null?void 0x0:_0x2305b8['unitID'])!==this[_0x43de11(0x2fa)])return;const _0x46ba4b={'eventID':_0x48d9d7[_0x43de11(0x2e0)],'data':_0x2305b8};this[_0x43de11(0x372)](_0x46ba4b);}),this[_0x38fa90(0x342)](this['_commandService'][_0x38fa90(0x1c2)](_0x5c3405=>{const _0x5a0f90=_0x38fa90;if(_0x5c3405['params']==null)return;const _0xc355a3=_0x5c3405[_0x5a0f90(0x195)];if(_0x5c3405['id']!==_0x17801a['id']||_0xc355a3[_0x5a0f90(0x2bd)]!==this[_0x5a0f90(0x2fa)])return;const _0x3615af={'id':'doc.mutation.rich-text-editing','params':_0xc355a3},_0x14f2ba=this[_0x5a0f90(0x288)];for(const [_0x2bddb3,_0x5a0a8d]of _0x14f2ba){const _0x112bc2={'id':_0x5a0f90(0x1d5),'params':{'unitId':this[_0x5a0f90(0x2fa)],'actions':null,'textRanges':_0x5a0a8d[_0x5a0f90(0x1cf)]}},_0x41fc01=this[_0x5a0f90(0x2ec)][_0x5a0f90(0x2c6)](_0x3615af,_0x112bc2,!0x1);if(_0x36fd28(_0x41fc01))throw _0x41fc01[_0x5a0f90(0x28f)];_0x14f2ba[_0x5a0f90(0x2d1)](_0x2bddb3,{..._0x5a0a8d,'ranges':_0x41fc01[_0x5a0f90(0x1c9)][_0x5a0f90(0x195)][_0x5a0f90(0x240)]});}queueMicrotask(()=>{const _0x41db28=_0x5a0f90;this[_0x41db28(0x337)][_0x41db28(0x1a7)](_0x14f2ba);});})));}[_0x200baf(0x372)](_0x25754f){const _0x374430=_0x200baf;var _0x372011,_0x1c5f8e;const {memberID:_0x451aa7,selection:_0x579cb7}=_0x25754f[_0x374430(0x25e)],_0x605f0d=Ai(_0x579cb7),_0x4abe48=(_0x1c5f8e=(_0x372011=this[_0x374430(0x186)][_0x374430(0x359)](this[_0x374430(0x2fa)],_0x451aa7))==null?void 0x0:_0x372011[_0x374430(0x332)])!=null?_0x1c5f8e:'Unknown\x20user',_0x4859b1={'color':this['_colorAssignService'][_0x374430(0x1af)](_0x451aa7),'name':_0x4abe48,'ranges':_0x605f0d},_0x295377=this[_0x374430(0x288)];_0x295377[_0x374430(0x2d1)](_0x451aa7,_0x4859b1),this[_0x374430(0x337)][_0x374430(0x1a7)](_0x295377);}['_onCursorDelete'](_0x4cdbc5){const _0x77c14e=_0x200baf,{memberID:_0x1b2c95}=_0x4cdbc5['data'],_0x378fbf=this['cursorInfo'];_0x378fbf['delete'](_0x1b2c95),this['_cursorInfo$'][_0x77c14e(0x1a7)](_0x378fbf);}[_0x200baf(0x1c6)](){const _0x472347=_0x200baf;var _0x176a16;if(this['_online']=!0x0,((_0x176a16=this[_0x472347(0x1dd)][_0x472347(0x2ea)]())==null?void 0x0:_0x176a16[_0x472347(0x1d3)]())!==this[_0x472347(0x2fa)])return;const _0x5efdb8=this[_0x472347(0x211)]['get'](_0x16dfb3)[_0x472347(0x1cd)]();Array[_0x472347(0x1a9)](_0x5efdb8)&&_0x5efdb8[_0x472347(0x198)]>0x0&&this['_updateLocalCursor'](_0x5efdb8);}[_0x200baf(0x1a2)](){const _0x87bd79=_0x200baf;this[_0x87bd79(0x149)]=!0x1;}};xe=wi([A(0x2,_0x193ac9(_0x74bc13)),A(0x3,_0x193ac9(Ke)),A(0x4,_0x193ac9(_0x51fd01)),A(0x5,_0x193ac9(ze)),A(0x6,_0xc45270),A(0x7,_0x3ccdde),A(0x8,_0x32edf0)],xe);var xi=Object[_0x200baf(0x1fa)],Bi=(_0x1db1c9,_0x2fdceb,_0x5c98ed,_0x434510)=>{const _0x3832e8=_0x200baf;for(var _0x405d64=_0x434510>0x1?void 0x0:_0x434510?xi(_0x2fdceb,_0x5c98ed):_0x2fdceb,_0x3b81a4=_0x1db1c9[_0x3832e8(0x198)]-0x1,_0x3ac027;_0x3b81a4>=0x0;_0x3b81a4--)(_0x3ac027=_0x1db1c9[_0x3b81a4])&&(_0x405d64=_0x3ac027(_0x405d64)||_0x405d64);return _0x405d64;},B=(_0xa2e997,_0x5b4d1b)=>(_0x1c3a90,_0x27d759)=>_0x5b4d1b(_0x1c3a90,_0x27d759,_0xa2e997);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xaaa674=[],_0x4560e6=!0x1;return _0x2e3e71=>{_0xaaa674['push'](_0x2e3e71),_0x4560e6||(_0x4560e6=!0x0,setTimeout(()=>{_0xaaa674['forEach'](_0x131a11=>_0x131a11()),_0xaaa674=[],_0x4560e6=!0x1;}));};};let Be=class extends _0x21bef9{constructor(_0x3ffd3b,_0x1d8f4e,_0x37cae8,_0x4f0d05,_0x109504,_0x54f219,_0x2944c4,_0x3c637f){const _0x49c52d=_0x200baf;super(),_(this,_0x49c52d(0x149),!0x1),_(this,'_init',!0x1),_(this,_0x49c52d(0x337),new _0x2c6743(new Map())),_(this,'cursorInfo$',this[_0x49c52d(0x337)][_0x49c52d(0x17f)]()),_(this,_0x49c52d(0x164),new _0x2c6743([])),_(this,_0x49c52d(0x178),this[_0x49c52d(0x164)][_0x49c52d(0x236)](_0x6e15d(Fi))),_(this,_0x49c52d(0x31b),_0x6c0b16((_0xdfb0ac,_0xf2a7dc)=>{const _0x4fc518=_0x49c52d,_0x6dc905={'eventID':_0x48d9d7[_0x4fc518(0x2e0)],'data':{'unitID':this[_0x4fc518(0x2fa)],'memberID':this[_0x4fc518(0x265)][_0x4fc518(0x2c8)](),'selection':_0x47805b(_0xdfb0ac,_0xf2a7dc[_0x4fc518(0x146)])}};this[_0x4fc518(0x265)][_0x4fc518(0x141)](_0x6dc905,this[_0x4fc518(0x2fa)]);},ki)),(this[_0x49c52d(0x2fa)]=_0x3ffd3b,this[_0x49c52d(0x265)]=_0x1d8f4e,this[_0x49c52d(0x211)]=_0x37cae8,this[_0x49c52d(0x2cb)]=_0x4f0d05,this[_0x49c52d(0x186)]=_0x109504,this['_univerInstanceService']=_0x54f219,this[_0x49c52d(0x23c)]=_0x2944c4,this['_refRangeService']=_0x3c637f);}get[_0x200baf(0x288)](){const _0x4cd95=_0x200baf;return this[_0x4cd95(0x337)][_0x4cd95(0x1c5)]();}get[_0x200baf(0x366)](){const _0x26aa95=_0x200baf;return this[_0x26aa95(0x164)][_0x26aa95(0x1c5)]();}[_0x200baf(0x1f1)](){const _0x36eb48=_0x200baf;super[_0x36eb48(0x1f1)](),this['_cursorInfo$']['next'](new Map()),this[_0x36eb48(0x337)][_0x36eb48(0x1b7)](),this[_0x36eb48(0x164)][_0x36eb48(0x1a7)]([]),this['_roomMembers$'][_0x36eb48(0x1b7)]();}[_0x200baf(0x268)](){const _0x1c63db=_0x200baf;this[_0x1c63db(0x35e)]||(this[_0x1c63db(0x35e)]=!0x0,this[_0x1c63db(0x265)][_0x1c63db(0x36e)]['pipe'](_0x4759ef(this[_0x1c63db(0x329)]))[_0x1c63db(0x2ad)](_0x47ca24=>{const _0x3d53ed=_0x1c63db;_0x47ca24===_0x1ea97c[_0x3d53ed(0x271)]?this[_0x3d53ed(0x1c6)]():this[_0x3d53ed(0x1a2)]();}),this[_0x1c63db(0x265)]['event$'][_0x1c63db(0x236)](_0x4759ef(this[_0x1c63db(0x329)]))[_0x1c63db(0x2ad)](_0x439c7c=>{const _0x363f88=_0x1c63db,_0x475b72=_0x439c7c[_0x363f88(0x1d2)];_0x475b72===_0x48d9d7['UPDATE_CURSOR']&&this[_0x363f88(0x372)](_0x439c7c),_0x475b72===_0x48d9d7['USERS_LEAVE']&&this[_0x363f88(0x2e8)](_0x439c7c);}),this[_0x1c63db(0x199)](),this['disposeWithMe'](this[_0x1c63db(0x23c)]['onCommandExecuted'](_0x4c1e2d=>{const _0x55c6b9=_0x1c63db;if(this['_online']&&_0x4c1e2d['id']===_0x46e613['id']&&_0x4c1e2d['params'][_0x55c6b9(0x2bd)]===this[_0x55c6b9(0x2fa)]){const _0x5b6b36=_0x4c1e2d[_0x55c6b9(0x195)];this[_0x55c6b9(0x31b)](_0x5b6b36[_0x55c6b9(0x299)],_0x5b6b36[_0x55c6b9(0x333)][0x0]);}})));}[_0x200baf(0x372)](_0x1eadbf){const _0x6eecf6=_0x200baf;var _0x4ba455,_0x5e513b;const {memberID:_0x160ab4,selection:_0x492fa1}=_0x1eadbf[_0x6eecf6(0x25e)],{sheetName:_0x3cf79f,range:_0x549583}=_0x422d16(_0x492fa1),_0x453409={'name':(_0x5e513b=(_0x4ba455=this[_0x6eecf6(0x186)][_0x6eecf6(0x359)](this[_0x6eecf6(0x2fa)],_0x160ab4))==null?void 0x0:_0x4ba455[_0x6eecf6(0x332)])!=null?_0x5e513b:_0x6eecf6(0x167),'range':this[_0x6eecf6(0x2df)](_0x3cf79f,_0x549583),'sheetID':_0x3cf79f,'color':this[_0x6eecf6(0x2cb)]['assignAColorForMemberID'](_0x160ab4),'selection':_0x492fa1},_0x4d9fb2=this[_0x6eecf6(0x288)];_0x4d9fb2[_0x6eecf6(0x2d1)](_0x160ab4,_0x453409),this[_0x6eecf6(0x337)][_0x6eecf6(0x1a7)](_0x4d9fb2);}[_0x200baf(0x2e8)](_0x184080){const _0x557c46=_0x200baf,{memberID:_0x20a59a}=_0x184080[_0x557c46(0x25e)],_0x47bf32=this['cursorInfo'];_0x47bf32[_0x557c46(0x1b3)](_0x20a59a),this[_0x557c46(0x337)][_0x557c46(0x1a7)](_0x47bf32);}[_0x200baf(0x2df)](_0x43b7f7,_0x5d5c5a){const _0x49363d=_0x200baf;var _0x1fd3f1,_0x2c7463;const _0x517d7e=(_0x2c7463=(_0x1fd3f1=this['_univerInstanceService'][_0x49363d(0x162)](this[_0x49363d(0x2fa)]))==null?void 0x0:_0x1fd3f1[_0x49363d(0x13c)](_0x43b7f7))==null?void 0x0:_0x2c7463[_0x49363d(0x225)]();return(_0x517d7e==null?void 0x0:_0x517d7e[_0x49363d(0x212)](_0x5c6363=>_0x361cb8[_0x49363d(0x2e7)](_0x5c6363,_0x5d5c5a)))||_0x5d5c5a;}[_0x200baf(0x199)](){const _0x414ce4=_0x200baf,_0x386367=new _0x269f8d(),_0x3b1d63=Hi(),_0x236d10=()=>{const _0x4b1160=_0x1887;_0x386367[_0x4b1160(0x1f1)]();const _0xde6efc=(_0x1d0902,_0x3387f3,_0x5cfb42,_0x338dd6)=>{const _0x1a7f82=_0x4b1160;let _0x4e7fb8=[];switch(_0x1d0902['id']){case _0x47b6ab[_0x1a7f82(0x287)]:{_0x4e7fb8=_0x36be90(_0x1d0902,_0x338dd6);break;}case _0x47b6ab[_0x1a7f82(0x20c)]:{_0x4e7fb8=_0x12a59d(_0x1d0902,_0x338dd6);break;}case _0x47b6ab[_0x1a7f82(0x36a)]:{_0x4e7fb8=_0x42b468(_0x1d0902,_0x338dd6);break;}case _0x47b6ab['InsertRangeMoveDownCommandId']:{_0x4e7fb8=_0xaae4f7(_0x1d0902,_0x338dd6);break;}case _0x47b6ab[_0x1a7f82(0x278)]:{_0x4e7fb8=_0x1b0fb8(_0x1d0902,_0x338dd6);break;}case _0x47b6ab[_0x1a7f82(0x2f4)]:{_0x4e7fb8=_0x428be7(_0x1d0902,_0x338dd6);break;}case _0x47b6ab[_0x1a7f82(0x1ee)]:{_0x4e7fb8=_0x127603(_0x1d0902,_0x338dd6);break;}case _0x47b6ab['RemoveColCommandId']:{_0x4e7fb8=_0x3c1c0e(_0x1d0902,_0x338dd6);break;}case _0x47b6ab['RemoveRowCommandId']:{_0x4e7fb8=_0x758062(_0x1d0902,_0x338dd6);break;}}const _0x34dd3e=_0x3a12f0(_0x4e7fb8,_0x338dd6),_0x4f0876=this['cursorInfo'][_0x1a7f82(0x215)](_0x3387f3);if(_0x4f0876&&_0x34dd3e){const _0x32679f={..._0x4f0876,'range':_0x34dd3e};this['cursorInfo'][_0x1a7f82(0x2d1)](_0x3387f3,_0x32679f),_0x3b1d63(()=>{const _0x500b62=_0x1a7f82,_0x3e3054=this[_0x500b62(0x1f4)][_0x500b62(0x352)](_0x34dd3e,_0x55cdd4=>(_0x3e3054[_0x500b62(0x1f1)](),_0xde6efc(_0x55cdd4,_0x3387f3,_0x5cfb42,_0x34dd3e)));_0x386367['add'](_0x3e3054);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x35b2c9,_0x55a042)=>{const _0x12ee41=_0x4b1160,{range:_0x2085ed,sheetID:_0x2ab5b2}=_0x35b2c9,_0x264018=this[_0x12ee41(0x1f4)][_0x12ee41(0x352)](_0x2085ed,_0x57bafb=>(_0x264018[_0x12ee41(0x1f1)](),_0xde6efc(_0x57bafb,_0x55a042,_0x2ab5b2,_0x2085ed)));_0x386367[_0x12ee41(0x203)](_0x264018);});};this[_0x414ce4(0x342)](_0x2877fe(this[_0x414ce4(0x337)][_0x414ce4(0x2ad)](()=>{_0x236d10();})));}['_toggleOnline'](){const _0x2ae209=_0x200baf;var _0x37bafb,_0x5d50d9;if(this[_0x2ae209(0x149)]=!0x0,((_0x37bafb=this[_0x2ae209(0x1dd)][_0x2ae209(0x2ea)]())==null?void 0x0:_0x37bafb['getUnitId']())!==this['unitID'])return;const _0x17d3cc=(_0x5d50d9=this[_0x2ae209(0x211)][_0x2ae209(0x215)](_0x5deda9)[_0x2ae209(0x245)]())==null?void 0x0:_0x5d50d9[0x0],_0x2210a6=this[_0x2ae209(0x1dd)][_0x2ae209(0x2c4)](_0x3f82f7[_0x2ae209(0x22e)])[_0x2ae209(0x156)]();_0x17d3cc&&_0x2210a6&&this[_0x2ae209(0x31b)](_0x2210a6[_0x2ae209(0x15c)](),_0x17d3cc);}[_0x200baf(0x1a2)](){const _0x5d7a90=_0x200baf;this[_0x5d7a90(0x149)]=!0x1;}};Be=Bi([B(0x2,_0x193ac9(_0x74bc13)),B(0x3,_0x193ac9(Ke)),B(0x4,_0x193ac9(_0x51fd01)),B(0x5,_0x3ccdde),B(0x6,_0x32edf0),B(0x7,_0x193ac9(_0x27eb71))],Be);var Yi=Object[_0x200baf(0x1fa)],Wi=(_0x4e2463,_0x4f3c50,_0x38446e,_0xabbbbc)=>{const _0x35dce5=_0x200baf;for(var _0x5f2cd3=_0xabbbbc>0x1?void 0x0:_0xabbbbc?Yi(_0x4f3c50,_0x38446e):_0x4f3c50,_0x194102=_0x4e2463[_0x35dce5(0x198)]-0x1,_0x951211;_0x194102>=0x0;_0x194102--)(_0x951211=_0x4e2463[_0x194102])&&(_0x5f2cd3=_0x951211(_0x5f2cd3)||_0x5f2cd3);return _0x5f2cd3;},Ce=(_0x3611dc,_0x3734cf)=>(_0x1a4304,_0x2de5b7)=>_0x3734cf(_0x1a4304,_0x2de5b7,_0x3611dc);let H=class extends _0x21bef9{constructor(_0x2c58b8,_0x542128,_0x24474d){const _0x55b21a=_0x200baf;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x39034e()),(this[_0x55b21a(0x1dd)]=_0x2c58b8,this[_0x55b21a(0x211)]=_0x542128,this['_collabSessionService']=_0x24474d,this[_0x55b21a(0x35e)]());}['dispose'](){const _0x1b61c9=_0x200baf;super['dispose'](),this[_0x1b61c9(0x2b2)][_0x1b61c9(0x1b7)](),this[_0x1b61c9(0x1f9)][_0x1b61c9(0x130)](_0x285a69=>_0x285a69['dispose']());}[_0x200baf(0x192)](_0x2dd9b3){const _0x3b5c94=_0x200baf;return this['_entities'][_0x3b5c94(0x378)](_0x2dd9b3)?this[_0x3b5c94(0x1f9)]['get'](_0x2dd9b3)[_0x3b5c94(0x232)]:this['_entityInit$'][_0x3b5c94(0x236)](_0x45dc53(_0x34eb21=>_0x34eb21[_0x3b5c94(0x2fa)]===_0x2dd9b3),_0x597a2d(_0x29e1b3=>_0x29e1b3[_0x3b5c94(0x232)]));}[_0x200baf(0x35e)](){const _0x4c6de9=_0x200baf;this[_0x4c6de9(0x1dd)][_0x4c6de9(0x221)](_0x3f82f7[_0x4c6de9(0x22e)])[_0x4c6de9(0x236)](_0x4759ef(this[_0x4c6de9(0x329)]))[_0x4c6de9(0x2ad)](async _0x1fb008=>{const _0xffe45d=_0x4c6de9,_0x5b8f46=_0x1fb008[_0xffe45d(0x1d3)](),_0x3c99a6=await this[_0xffe45d(0x1c3)](_0x5b8f46);this[_0xffe45d(0x2b2)][_0xffe45d(0x1a7)](_0x3c99a6),this['_entities']['set'](_0x5b8f46,_0x3c99a6);}),this[_0x4c6de9(0x1dd)]['getTypeOfUnitAdded$'](_0x3f82f7[_0x4c6de9(0x32d)])['pipe'](_0x4759ef(this[_0x4c6de9(0x329)]))[_0x4c6de9(0x236)](_0x45dc53(_0x4e4781=>!_0x4e4781[_0x4c6de9(0x1d3)]()[_0x4c6de9(0x311)]('__')))[_0x4c6de9(0x2ad)](async _0x550d03=>{const _0x26b572=_0x4c6de9,_0x4adcb2=_0x550d03[_0x26b572(0x1d3)](),_0x56b305=await this[_0x26b572(0x18f)](_0x4adcb2);this['_entityInit$'][_0x26b572(0x1a7)](_0x56b305),this[_0x26b572(0x1f9)][_0x26b572(0x2d1)](_0x4adcb2,_0x56b305);}),_0x3a3bab(this[_0x4c6de9(0x1dd)][_0x4c6de9(0x2ef)](_0x3f82f7['UNIVER_DOC']),this['_univerInstanceService'][_0x4c6de9(0x2ef)](_0x3f82f7[_0x4c6de9(0x22e)]))[_0x4c6de9(0x236)](_0x4759ef(this[_0x4c6de9(0x329)]))[_0x4c6de9(0x2ad)](_0x4e5064=>{const _0x45ba03=_0x4c6de9,_0x91a3cc=_0x4e5064['getUnitId'](),_0x5a9a44=this[_0x45ba03(0x1f9)][_0x45ba03(0x215)](_0x91a3cc);_0x5a9a44&&(_0x5a9a44[_0x45ba03(0x1f1)](),this[_0x45ba03(0x1f9)][_0x45ba03(0x1b3)](_0x91a3cc));});}async['_startSheetCollabCursor'](_0x5b2e2e){const _0x4d58d7=_0x200baf,_0xa7f3ff=await this[_0x4d58d7(0x1e8)][_0x4d58d7(0x16a)](_0x5b2e2e),_0x543984=this['_injector']['createInstance'](Be,_0x5b2e2e,_0xa7f3ff);return _0x543984['init'](),_0x543984;}async[_0x200baf(0x18f)](_0x138390){const _0x40bb77=_0x200baf,_0x10656e=await this[_0x40bb77(0x1e8)]['requireSession'](_0x138390),_0x454f59=this[_0x40bb77(0x211)]['createInstance'](xe,_0x138390,_0x10656e);return _0x454f59[_0x40bb77(0x268)](),_0x454f59;}};H=Wi([Ce(0x0,_0x3ccdde),Ce(0x1,_0x193ac9(_0x74bc13)),Ce(0x2,_0x193ac9(_0x3b0fea))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0xd4fbd3,_0x430f5e){const _0x184c44=_0x200baf;let {radius:_0x757d64,width:_0x8ec8cd,height:_0x3c06f7}=_0x430f5e;_0x757d64=_0x757d64!=null?_0x757d64:0x0,_0x8ec8cd=_0x8ec8cd!=null?_0x8ec8cd:0x1e,_0x3c06f7=_0x3c06f7!=null?_0x3c06f7:0x1e;let _0x5b3b98=0x0,_0x20f131=0x0,_0x219dc5=0x0;_0x5b3b98=_0x20f131=_0x219dc5=Math['min'](_0x757d64,_0x8ec8cd/0x2,_0x3c06f7/0x2),_0xd4fbd3[_0x184c44(0x330)](),_0xd4fbd3[_0x184c44(0x250)](_0x5b3b98,0x0),_0xd4fbd3[_0x184c44(0x1d8)](_0x8ec8cd-_0x20f131,0x0),_0xd4fbd3[_0x184c44(0x1f3)](_0x8ec8cd-_0x20f131,_0x20f131,_0x20f131,Math['PI']*0x3/0x2,0x0,!0x1),_0xd4fbd3[_0x184c44(0x1d8)](_0x8ec8cd,_0x3c06f7-_0x219dc5),_0xd4fbd3[_0x184c44(0x1f3)](_0x8ec8cd-_0x219dc5,_0x3c06f7-_0x219dc5,_0x219dc5,0x0,Math['PI']/0x2,!0x1),_0xd4fbd3[_0x184c44(0x1d8)](0x0,_0x3c06f7),_0xd4fbd3['lineTo'](0x0,_0x5b3b98),_0xd4fbd3[_0x184c44(0x1f3)](_0x5b3b98,_0x5b3b98,_0x5b3b98,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xd4fbd3[_0x184c44(0x1b2)](),_0x430f5e[_0x184c44(0x1e4)]&&(_0xd4fbd3['save'](),_0xd4fbd3['fillStyle']=_0x430f5e[_0x184c44(0x1e4)],_0x430f5e['fillRule']===_0x184c44(0x15e)?_0xd4fbd3[_0x184c44(0x1e4)](_0x184c44(0x15e)):_0xd4fbd3[_0x184c44(0x1e4)](),_0xd4fbd3[_0x184c44(0x13b)]());}class ve extends _0x1690d1{constructor(_0x3ea7db,_0x56fa24){const _0x4e348a=_0x200baf;super(_0x3ea7db,_0x56fa24),_(this,_0x4e348a(0x27e)),_(this,_0x4e348a(0x30b)),(this['color']=_0x56fa24==null?void 0x0:_0x56fa24[_0x4e348a(0x27e)],this['text']=_0x56fa24==null?void 0x0:_0x56fa24[_0x4e348a(0x30b)]);}static[_0x200baf(0x367)](_0x1539e9,_0x48893a){const _0x102e3b=_0x200baf,{text:_0x1638d4,color:_0x44c585}=_0x48893a;_0x1539e9[_0x102e3b(0x34a)](),_0x1539e9[_0x102e3b(0x1ec)]=_0x102e3b(0x21f);const _0x47d785=_0x1539e9['measureText'](_0x1638d4)[_0x102e3b(0x2e6)],_0x493c32=Math[_0x102e3b(0x1ba)](_0x47d785+0x2*Re,at);ji(_0x1539e9,{'height':Q,'radius':0x4,'width':_0x493c32,'fill':_0x44c585}),_0x1539e9[_0x102e3b(0x206)]='#FFF';const _0x5d59a6=Re,_0x3a1841=Q-Vi,_0xc13824=at-0x2*Re;if(_0x47d785>_0xc13824){let _0xf3101='',_0x29412e=0x0;for(const _0xcc69a9 of _0x1638d4){const _0x841845=_0x1539e9[_0x102e3b(0x2f1)](_0xcc69a9)['width'];if(_0x29412e+_0x841845<=_0xc13824-_0x1539e9['measureText']('...')[_0x102e3b(0x2e6)])_0xf3101+=_0xcc69a9,_0x29412e+=_0x841845;else{_0xf3101+=_0x102e3b(0x308);break;}}_0x1539e9['fillText'](_0xf3101,_0x5d59a6,_0x3a1841);}else _0x1539e9['fillText'](_0x1638d4,_0x5d59a6,_0x3a1841);_0x1539e9[_0x102e3b(0x13b)]();}['_draw'](_0x33cf8b){ve['drawWith'](_0x33cf8b,this);}}const De=_0x200baf(0x370),Xi=_0x200baf(0x2f2),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x2bfa33,_0x44e286,_0x5023ee,_0x54a187){const _0x63239f=_0x200baf;_(this,_0x63239f(0x139),[]),_(this,_0x63239f(0x1bb),null),_(this,_0x63239f(0x194),null),_(this,_0x63239f(0x313),null),_(this,_0x63239f(0x284),null),_(this,'_eventUnsubscribe',null),(this[_0x63239f(0x244)]=_0x2bfa33,this[_0x63239f(0x2a2)]=_0x44e286,this['_docSkeleton']=_0x5023ee,this[_0x63239f(0x261)]=_0x54a187,this[_0x63239f(0x193)]());}set['_hover'](_0xe6ee28){const _0x22014e=_0x200baf;_0xe6ee28?(this[_0x22014e(0x313)]&&this[_0x22014e(0x313)][_0x22014e(0x321)](),this[_0x22014e(0x194)]&&this['_textBubble'][_0x22014e(0x220)]()):(this[_0x22014e(0x313)]&&this[_0x22014e(0x313)][_0x22014e(0x220)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x200baf(0x1f1)](){const _0x541b99=_0x200baf;for(const _0x4a4bb5 of this[_0x541b99(0x139)])_0x4a4bb5['dispose']();this[_0x541b99(0x194)]&&this[_0x541b99(0x194)]['dispose'](),this[_0x541b99(0x313)]&&this[_0x541b99(0x313)]['dispose'](),this['_anchor']&&this[_0x541b99(0x1bb)][_0x541b99(0x1f1)](),this[_0x541b99(0x228)]&&this[_0x541b99(0x228)]();}[_0x200baf(0x193)](){const _0x329c6b=_0x200baf;var _0x283dc5;const {_docSkeleton:_0x168ff6,_document:_0x32d33d}=this,{color:_0x29c3f0,name:_0x34e200,ranges:_0x28defc}=this['_cursor'],_0x2695c6=_0x32d33d['getOffsetConfig'](),{docsLeft:_0xbeab61,docsTop:_0x494066}=_0x2695c6,_0x3427a8=new _0x452441(_0x2695c6,_0x168ff6);for(const {startOffset:_0x4a877a,endOffset:_0x534d3c,rangeType:_0x26b11b,segmentId:_0x4a3a8f,segmentPage:_0x2c6861,collapsed:_0x4909a7,isActive:_0x12f851}of _0x28defc){const _0x1ba61e=_0x168ff6[_0x329c6b(0x275)](_0x4a877a,!0x0,_0x4a3a8f,_0x2c6861);let _0x111a16=_0x168ff6[_0x329c6b(0x275)](_0x534d3c,!0x0,_0x4a3a8f,_0x2c6861);if(_0x111a16==null&&(_0x111a16=_0x168ff6['findNodePositionByCharIndex'](_0x534d3c-0x1,!0x1,_0x4a3a8f,_0x2c6861)),_0x12f851){const {contentBoxPointGroup:_0x5ee1f1}=_0x3427a8[_0x329c6b(0x188)](_0x111a16,_0x111a16);if(_0x5ee1f1['length']===0x0)continue;this[_0x329c6b(0x344)](_0x29c3f0,_0x5ee1f1,_0xbeab61,_0x494066,_0x34e200),this[_0x329c6b(0x228)]=this['_handleHover']();}if(_0x1ba61e&&_0x111a16){if(_0x26b11b===_0x54dcb6['RECT']){const _0x10467e=new _0x52d4fd(_0x2695c6,_0x168ff6),{pointGroup:_0x3ae155}=(_0x283dc5=_0x10467e[_0x329c6b(0x188)](_0x1ba61e,_0x111a16))!=null?_0x283dc5:{};if(_0x3ae155==null||_0x3ae155['length']===0x0)continue;this['_drawRectRange'](_0x29c3f0,_0x3ae155,_0xbeab61,_0x494066);}else{if(!_0x4909a7){const {borderBoxPointGroup:_0xf7551a}=_0x3427a8[_0x329c6b(0x188)](_0x1ba61e,_0x111a16);if(_0xf7551a[_0x329c6b(0x198)]===0x0)continue;this['_drawTextRange'](_0x29c3f0,_0xf7551a,_0xbeab61,_0x494066);}}}}}['_drawAnchor'](_0x126fdc,_0x574049,_0x579a84,_0x52e0e3,_0x212c9a){const _0x20e7ae=_0x200baf,_0x5b2194=this['_getAnchorBounding'](_0x574049),{left:_0x31c7bb,top:_0x1a4654,height:_0xfd96bb}=_0x5b2194,_0x24cc28=this[_0x20e7ae(0x1f8)](),_0x2eed1e=zi/_0x24cc28,_0x5b6cf4=new _0x164e6b(De+_0x5930d8(z),{'left':_0x31c7bb+_0x579a84-_0x2eed1e,'top':_0x1a4654+_0x52e0e3,'height':_0xfd96bb,'width':Ki,'fill':_0x126fdc||_0x34d0e1(_0x350c74[_0x20e7ae(0x17c)],0x0),'strokeWidth':_0x2eed1e,'stroke':Ji,'evented':!0x0});this[_0x20e7ae(0x1bb)]=_0x5b6cf4,this['_scene'][_0x20e7ae(0x1e6)](_0x5b6cf4,_0x5c58e6);const _0x332d94=new _0x164e6b(De+_0x5930d8(z),{'left':_0x31c7bb+_0x579a84-_0x2eed1e,'top':_0x1a4654+_0x52e0e3-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x126fdc||_0x34d0e1(_0x350c74[_0x20e7ae(0x17c)],0x0),'strokeWidth':0x0,'stroke':_0x126fdc||_0x34d0e1(_0x350c74[_0x20e7ae(0x17c)],0x0),'evented':!0x1});this[_0x20e7ae(0x313)]=_0x332d94,this['_scene'][_0x20e7ae(0x1e6)](_0x332d94,_0x5c58e6);const _0x1c68e0=new ve(De+_0x5930d8(z),{'left':_0x31c7bb+_0x579a84-_0x2eed1e,'top':_0x1a4654+_0x52e0e3-Q,'text':_0x212c9a,'color':_0x126fdc});this[_0x20e7ae(0x194)]=_0x1c68e0,this[_0x20e7ae(0x2a2)][_0x20e7ae(0x1e6)](_0x1c68e0,_0x5c58e6),this[_0x20e7ae(0x2a4)]=!0x1;}['_handleHover'](){const _0x49f32d=_0x200baf,_0x4611bc=this[_0x49f32d(0x1bb)][_0x49f32d(0x29c)][_0x49f32d(0x13f)](()=>{const _0x9f6172=_0x49f32d;this[_0x9f6172(0x2a4)]=!0x0;}),_0x1bd06e=this[_0x49f32d(0x1bb)]['onPointerLeave$'][_0x49f32d(0x13f)](()=>{const _0x1715e4=_0x49f32d;this['_hideTimer']&&clearTimeout(this[_0x1715e4(0x284)]),this[_0x1715e4(0x284)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5d5b79=_0x49f32d;_0x4611bc[_0x5d5b79(0x227)](),_0x1bd06e[_0x5d5b79(0x227)]();};}[_0x200baf(0x26d)](_0x58c7d5,_0xdf649d,_0xfa7671,_0x206b61){const _0x23d307=_0x200baf,_0x1c971d=new _0x2eb62e(_0x58c7d5)[_0x23d307(0x15d)](0.2)[_0x23d307(0x1d7)](),_0x45c5d5=new _0x48a99e(Xi+_0x5930d8(z),{'pointsGroup':_0xdf649d,'fill':_0x1c971d||_0x34d0e1(_0x350c74[_0x23d307(0x17c)],0.2),'left':_0xfa7671,'top':_0x206b61,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23d307(0x139)]['push'](_0x45c5d5),this[_0x23d307(0x2a2)]['addObject'](_0x45c5d5,_0x5c58e6);}[_0x200baf(0x1f6)](_0x258c2f,_0x24901f,_0x2c0a95,_0x137ce8){const _0x43d750=_0x200baf,_0x3d44ec=new _0x2eb62e(_0x258c2f)['setAlpha'](0.2)[_0x43d750(0x1d7)](),_0x1d5618=new _0x48a99e(Gi+_0x5930d8(z),{'pointsGroup':_0x24901f,'fill':_0x3d44ec||_0x34d0e1(_0x350c74[_0x43d750(0x17c)],0.2),'left':_0x2c0a95,'top':_0x137ce8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1d5618),this['_scene'][_0x43d750(0x1e6)](_0x1d5618,_0x5c58e6);}['_getAnchorBounding'](_0xbe4094){const _0x2a2f3d=_0xbe4094[0x0],_0x113e70=_0x2a2f3d[0x0],_0x2591ce=_0x2a2f3d[0x2],{x:_0x3338b0,y:_0x55414c}=_0x113e70,{x:_0x187cb2,y:_0x4dc79a}=_0x2591ce;return{'left':_0x3338b0,'top':_0x55414c,'width':_0x187cb2-_0x3338b0,'height':_0x4dc79a-_0x55414c};}[_0x200baf(0x1f8)](){const _0x5f5bc7=_0x200baf,{scaleX:_0x16e2e2,scaleY:_0x1f1f47}=this[_0x5f5bc7(0x2a2)][_0x5f5bc7(0x200)]();return Math['max'](_0x16e2e2,_0x1f1f47);}}var Zi=Object[_0x200baf(0x1fa)],Qi=(_0x1c1248,_0xa9e723,_0x1494b3,_0x292173)=>{const _0x54670c=_0x200baf;for(var _0x4d70b8=_0x292173>0x1?void 0x0:_0x292173?Zi(_0xa9e723,_0x1494b3):_0xa9e723,_0x1a11ec=_0x1c1248[_0x54670c(0x198)]-0x1,_0x2c6571;_0x1a11ec>=0x0;_0x1a11ec--)(_0x2c6571=_0x1c1248[_0x1a11ec])&&(_0x4d70b8=_0x2c6571(_0x4d70b8)||_0x4d70b8);return _0x4d70b8;},ie=(_0x5f5b15,_0x398046)=>(_0x5a4e03,_0x4682bb)=>_0x398046(_0x5a4e03,_0x4682bb,_0x5f5b15);let Fe=class extends _0x21bef9{constructor(_0x1eebf1,_0x2d3aa3,_0x59157d,_0xcd73d8,_0x5ce92d){const _0x320df3=_0x200baf;super(),_(this,'_cursorShapes',[]),_(this,_0x320df3(0x357),[]),(this[_0x320df3(0x32c)]=_0x1eebf1,this[_0x320df3(0x30f)]=_0x2d3aa3,this[_0x320df3(0x325)]=_0x59157d,this[_0x320df3(0x23c)]=_0xcd73d8,this[_0x320df3(0x258)]=_0x5ce92d,this['_init']());}['_init'](){const _0x11eba8=_0x200baf,_0xa801c0=this[_0x11eba8(0x32c)]['unitId'],_0x584995=this[_0x11eba8(0x30f)];this[_0x11eba8(0x342)](_0x5b39f1([this[_0x11eba8(0x325)]['getCollabCursors$'](_0xa801c0),this[_0x11eba8(0x258)][_0x11eba8(0x150)]])[_0x11eba8(0x236)](_0x5ba291(([_0x44e148,_0x313c2a])=>({'skeleton':_0x584995[_0x11eba8(0x2bc)](),'cursors':[..._0x44e148[_0x11eba8(0x2ac)]()][_0x11eba8(0x274)](_0x17eef5=>({..._0x17eef5,'color':this[_0x11eba8(0x258)][_0x11eba8(0x35b)](_0x17eef5[_0x11eba8(0x27e)])}))})))[_0x11eba8(0x2ad)](_0x1c7bac=>{const _0x2d7636=_0x11eba8;if(this['_removeCollabCursors'](),_0x1c7bac){const {skeleton:_0x34b5de,cursors:_0x2bd976}=_0x1c7bac;this[_0x2d7636(0x1df)](_0x34b5de,_0x2bd976);}})),this[_0x11eba8(0x173)](),this[_0x11eba8(0x362)]();}[_0x200baf(0x1df)](_0x2cb7ba,_0x405c5a){const _0x2723e7=_0x200baf,{scene:_0x1c7187,mainComponent:_0x376872}=this[_0x2723e7(0x32c)],_0x356562=_0x405c5a[_0x2723e7(0x37c)](_0x5071f5=>new ct(_0x5071f5,_0x1c7187,_0x2cb7ba,_0x376872));this['_cursorShapes']=_0x356562,this['_cursors']=_0x405c5a;}[_0x200baf(0x360)](){const _0x1adf77=_0x200baf;this[_0x1adf77(0x152)]();const {scene:_0x100c6b,mainComponent:_0x4eff40}=this['_context'],_0x41474d=this[_0x1adf77(0x30f)]['getSkeleton'](),_0x57783b=this[_0x1adf77(0x357)]['map'](_0x5e6fc1=>new ct(_0x5e6fc1,_0x100c6b,_0x41474d,_0x4eff40));this['_cursorShapes']=_0x57783b;}[_0x200baf(0x152)](){const _0x27eb1c=_0x200baf;this[_0x27eb1c(0x1cc)]['forEach'](_0x3b1c06=>_0x3b1c06[_0x27eb1c(0x1f1)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x27842e=_0x200baf,_0x241917=[_0xe28433['id']];this[_0x27842e(0x342)](this[_0x27842e(0x23c)][_0x27842e(0x1c2)](_0xbb9163=>{const _0x3000ed=_0x27842e;_0x241917[_0x3000ed(0x19b)](_0xbb9163['id'])&&_0xbb9163['params']['unitId']===this[_0x3000ed(0x32c)][_0x3000ed(0x2bd)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x412f17=_0x200baf;this[_0x412f17(0x342)](_0x2ad510(this[_0x412f17(0x32c)][_0x412f17(0x30a)][_0x412f17(0x184)])[_0x412f17(0x236)](_0x146eab(_0x4f9a11=>_0x4f9a11[_0x412f17(0x242)]===_0x539f47['resize']),_0x305f42(0x10))['subscribe'](()=>{const _0x6c0e7a=_0x412f17;this[_0x6c0e7a(0x360)]();}));}};Fe=Qi([ie(0x1,_0x193ac9(_0x34964f)),ie(0x2,_0x193ac9(H)),ie(0x3,_0x32edf0),ie(0x4,_0x193ac9(_0x5ad652))],Fe);const qi=0x1,en=1.5;class tn extends _0x1690d1{constructor(_0x32bfef,_0x54c91a){const _0x52deed=_0x200baf;super(_0x32bfef,_0x54c91a),_(this,'_color'),_(this,_0x52deed(0x248),!0x1),_(this,'_range'),_(this,_0x52deed(0x2fd),''),_(this,_0x52deed(0x132),_0x52deed(0x17e)),_(this,_0x52deed(0x2fb)),(_0x54c91a&&this['setShapeProps'](_0x54c91a),this[_0x52deed(0x29c)][_0x52deed(0x13f)](()=>this[_0x52deed(0x2b4)]({'hovered':!0x0})),this[_0x52deed(0x2e4)]['subscribeEvent'](()=>this[_0x52deed(0x2b4)]({'hovered':!0x1})));}[_0x200baf(0x2b4)](_0x3c58c8){const _0x46fc95=_0x200baf;var _0x2be4b0,_0xf89fe8,_0x156f9f,_0x531c48,_0x4c1db6,_0x2c66ae;this[_0x46fc95(0x298)]=(_0x2be4b0=_0x3c58c8[_0x46fc95(0x27e)])!=null?_0x2be4b0:this['_color'],this[_0x46fc95(0x248)]=(_0xf89fe8=_0x3c58c8[_0x46fc95(0x243)])!=null?_0xf89fe8:this[_0x46fc95(0x248)],this[_0x46fc95(0x134)]=(_0x156f9f=_0x3c58c8[_0x46fc95(0x146)])!=null?_0x156f9f:this[_0x46fc95(0x134)],this['_name']=(_0x531c48=_0x3c58c8[_0x46fc95(0x332)])!=null?_0x531c48:this[_0x46fc95(0x2fd)],this[_0x46fc95(0x132)]=(_0x4c1db6=_0x3c58c8[_0x46fc95(0x1eb)])!=null?_0x4c1db6:this[_0x46fc95(0x132)],this[_0x46fc95(0x2fb)]=(_0x2c66ae=_0x3c58c8[_0x46fc95(0x368)])!=null?_0x2c66ae:this[_0x46fc95(0x2fb)],this[_0x46fc95(0x2cd)]({'width':_0x3c58c8[_0x46fc95(0x2e6)],'height':_0x3c58c8[_0x46fc95(0x1db)]});}[_0x200baf(0x183)](_0xb18eba){const _0x307ddd=_0x200baf,{row:_0x24430b,column:_0x342255}=_0xb18eba;if(_0x24430b>=this[_0x307ddd(0x134)][_0x307ddd(0x286)]&&_0x24430b<=this[_0x307ddd(0x134)][_0x307ddd(0x233)]&&_0x342255>=this[_0x307ddd(0x134)][_0x307ddd(0x318)]&&_0x342255<=this[_0x307ddd(0x134)][_0x307ddd(0x2bb)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x307ddd(0x2b4)]({'hovered':!0x1});}[_0x200baf(0x30c)](_0x48627b){return!0x1;}[_0x200baf(0x37b)](_0x3a6d6d){const _0x436e8e=_0x200baf;_0x164e6b['drawWith'](_0x3a6d6d,{'width':this[_0x436e8e(0x2e6)],'height':this[_0x436e8e(0x1db)],'strokeWidth':en,'stroke':this[_0x436e8e(0x298)],'evented':!0x1,'fill':this[_0x436e8e(0x2fb)]}),this[_0x436e8e(0x248)]&&(_0x3a6d6d[_0x436e8e(0x34a)](),_0x3a6d6d[_0x436e8e(0x1ce)](0x1,0x0,0x0,0x1,this['width'],this[_0x436e8e(0x132)]===_0x436e8e(0x361)?0x0:-Q),ve[_0x436e8e(0x367)](_0x3a6d6d,{'text':this[_0x436e8e(0x2fd)],'color':this[_0x436e8e(0x298)]}),_0x3a6d6d[_0x436e8e(0x13b)]());}}var sn=Object[_0x200baf(0x1fa)],nn=(_0x270a9b,_0x4eba45,_0x392533,_0x49c9b1)=>{for(var _0x230079=_0x49c9b1>0x1?void 0x0:_0x49c9b1?sn(_0x4eba45,_0x392533):_0x4eba45,_0x5f4799=_0x270a9b['length']-0x1,_0x4933d9;_0x5f4799>=0x0;_0x5f4799--)(_0x4933d9=_0x270a9b[_0x5f4799])&&(_0x230079=_0x4933d9(_0x230079)||_0x230079);return _0x230079;},be=(_0x579e53,_0x11c127)=>(_0x1e377e,_0x4b72e5)=>_0x11c127(_0x1e377e,_0x4b72e5,_0x579e53);const rn=0x1389;let ke=class extends _0x21bef9{constructor(_0x4744f2,_0x89c07f,_0x1f1604,_0x536cd4){const _0x474959=_0x200baf;super(),_(this,_0x474959(0x357),new Set()),_(this,_0x474959(0x140),null),(this['_context']=_0x4744f2,this[_0x474959(0x1d0)]=_0x89c07f,this[_0x474959(0x325)]=_0x1f1604,this['_themeService']=_0x536cd4,this[_0x474959(0x35e)]());}['_init'](){const _0x36dd5d=_0x200baf;this['_sheetSkeletonManagerService'][_0x36dd5d(0x339)][_0x36dd5d(0x236)](_0x2a2c9c(this['dispose$']),_0x22fd43(_0x3e497=>{const _0x252704=_0x36dd5d;if(_0x3e497){const _0x451d53=_0x3e497[_0x252704(0x35f)];return _0x5b39f1(this[_0x252704(0x325)][_0x252704(0x192)](this[_0x252704(0x32c)][_0x252704(0x2bd)]),this[_0x252704(0x258)][_0x252704(0x150)])[_0x252704(0x236)](_0x5ba291(([_0x44f179,_0x4a5993])=>{const _0x640a8d=_0x252704,_0x21f837=new Map();return _0x44f179[_0x640a8d(0x130)]((_0xd35cf8,_0x108280)=>{const _0x4b6072=_0x640a8d;if(_0xd35cf8[_0x4b6072(0x356)]===_0x451d53){const _0x4f693b={..._0xd35cf8};_0x4f693b[_0x4b6072(0x27e)]=this[_0x4b6072(0x258)][_0x4b6072(0x35b)](_0xd35cf8[_0x4b6072(0x27e)]),_0x21f837[_0x4b6072(0x2d1)](_0x108280,_0x4f693b);}}),{'skeleton':_0x3e497,'cursors':_0x21f837};}));}return _0x3f8f2b({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x57112c,cursors:_0x2dcadc})=>{const _0x5be50d=_0x36dd5d;this[_0x5be50d(0x152)](),_0x57112c&&this['_updateCollabCursors'](_0x57112c,_0x2dcadc);}),this[_0x36dd5d(0x1d0)]['currentSkeleton$']['subscribe'](_0x3d3caf=>{const _0x4b46ac=_0x36dd5d;if(_0x3d3caf==null)return;const {skeleton:_0x26e3a9}=_0x3d3caf,{scene:_0x284128}=this[_0x4b46ac(0x32c)];_0x284128[_0x4b46ac(0x21b)][_0x4b46ac(0x13f)](_0x6c0b16(_0xdcbb3e=>{const _0x595d74=_0x4b46ac;var _0x4d9257,_0x37d36b;const {offsetX:_0x63e16f,offsetY:_0x194bdb}=_0xdcbb3e,{x:_0x8a369a,y:_0x2a65c2}=_0x284128[_0x595d74(0x277)](_0x303df0[_0x595d74(0x29e)]([_0x63e16f,_0x194bdb])),{scaleX:_0x5ce348,scaleY:_0x992f6}=_0x284128[_0x595d74(0x200)](),_0x552036=_0x284128[_0x595d74(0x2b8)](_0x4b4009[_0x595d74(0x2b0)]),_0x27dbec=_0x284128[_0x595d74(0x154)](_0x303df0[_0x595d74(0x29e)]([_0x8a369a,_0x2a65c2]),_0x552036),_0xde9eb0=_0x26e3a9['getCellPositionByOffset'](_0x63e16f,_0x194bdb,_0x5ce348,_0x992f6,_0x27dbec);((_0x4d9257=this['_lastPointer'])==null?void 0x0:_0x4d9257[_0x595d74(0x302)])===_0xde9eb0['column']&&((_0x37d36b=this[_0x595d74(0x140)])==null?void 0x0:_0x37d36b[_0x595d74(0x2bf)])===_0xde9eb0[_0x595d74(0x2bf)]||this[_0x595d74(0x357)]['forEach'](_0x3b5022=>{const _0x4201df=_0x595d74;_0x3b5022[_0x4201df(0x183)](_0xde9eb0);});},0x64));});}['_updateCollabCursors'](_0x3b2b96,_0x7f2592){const _0x3f66ec=_0x200baf;var _0x35752f;const _0x4585df=(_0x35752f=this[_0x3f66ec(0x1d0)]['getCurrent']())==null?void 0x0:_0x35752f[_0x3f66ec(0x2c1)];if(!_0x4585df)return;const _0x4d16ee=this[_0x3f66ec(0x272)]();if(!_0x4d16ee)return;this[_0x3f66ec(0x357)][_0x3f66ec(0x130)](_0x30f76f=>{_0x30f76f['makeDirty']();});const {scene:_0x5f1a4b}=_0x4d16ee,_0x3b0738=on(Array[_0x3f66ec(0x2d8)](_0x7f2592[_0x3f66ec(0x2ac)]()))[_0x3f66ec(0x37c)](_0x4c7754=>{const _0x54e813=_0x3f66ec,{color:_0x38eb9e,range:_0x5523e3,name:_0x212fba,selection:_0x488036,sheetID:_0x2e0599}=_0x4c7754,{startColumn:_0x103c60,startRow:_0x6d8d85,endColumn:_0x4cf5a2,endRow:_0x18abc4}=_0x5523e3,_0x2e81f8=_0xfea7ce(_0x6d8d85,_0x103c60,_0x5f1a4b,_0x4585df),_0x434a96=_0xfea7ce(_0x18abc4,_0x4cf5a2,_0x5f1a4b,_0x4585df),{columnHeaderHeightAndMarginTop:_0x33427b}=_0x4585df,{startX:_0xebc3ed,startY:_0x332c2a}=_0x2e81f8,{endX:_0x522436,endY:_0x3ba4a2}=_0x434a96,_0x4158e6=_0x522436-_0xebc3ed,_0x38560f=_0x3ba4a2-_0x332c2a,_0x2f5dc1={'labelPosition':_0x332c2a-_0x33427b>=Q?'top':_0x54e813(0x361),'sheetID':_0x2e0599,'range':_0x5523e3,'color':_0x38eb9e,'name':_0x212fba,'selection':_0x488036,'left':_0xebc3ed,'top':_0x332c2a,'width':_0x4158e6,'height':_0x38560f,'evented':!0x1,'zIndex':rn};return new tn(_0x212fba,_0x2f5dc1);});_0x5f1a4b[_0x3f66ec(0x14f)](_0x3b0738,qi),this[_0x3f66ec(0x357)]=new Set(_0x3b0738);}[_0x200baf(0x152)](){const _0x577dfb=_0x200baf;var _0x21ca38;(_0x21ca38=this[_0x577dfb(0x357)])==null||_0x21ca38[_0x577dfb(0x130)](_0x5b53c6=>_0x5b53c6['dispose']());}[_0x200baf(0x272)](){const _0xe6b211=_0x200baf;return _0x508ac8(this[_0xe6b211(0x32c)][_0xe6b211(0x31f)],this[_0xe6b211(0x32c)]);}};ke=nn([be(0x1,_0x193ac9(_0x5805dd)),be(0x2,_0x193ac9(H)),be(0x3,_0x193ac9(_0x5ad652))],ke);function on(_0x436be0){const _0x503fad=_0x200baf,_0x5178d4=new Map();return _0x436be0[_0x503fad(0x130)](_0xc47d01=>{const _0x4c215e=_0x503fad;if(_0x5178d4['has'](_0xc47d01[_0x4c215e(0x15f)])){const _0x30c6a2=_0x5178d4['get'](_0xc47d01[_0x4c215e(0x15f)]);_0x30c6a2[_0x4c215e(0x332)]+=',\x20'+_0xc47d01[_0x4c215e(0x332)];}else _0x5178d4[_0x4c215e(0x2d1)](_0xc47d01[_0x4c215e(0x15f)],_0xc47d01);}),Array[_0x503fad(0x2d8)](_0x5178d4[_0x503fad(0x2ac)]());}var an=Object[_0x200baf(0x1fa)],cn=(_0x2c3a21,_0x29c9bc,_0x312af5,_0x471fd5)=>{const _0x39f5f6=_0x200baf;for(var _0x50969c=_0x471fd5>0x1?void 0x0:_0x471fd5?an(_0x29c9bc,_0x312af5):_0x29c9bc,_0x31e7be=_0x2c3a21[_0x39f5f6(0x198)]-0x1,_0x2c9cd3;_0x31e7be>=0x0;_0x31e7be--)(_0x2c9cd3=_0x2c3a21[_0x31e7be])&&(_0x50969c=_0x2c9cd3(_0x50969c)||_0x50969c);return _0x50969c;},F=(_0x412bf8,_0x4dd41c)=>(_0x3c3262,_0x3b3ba4)=>_0x4dd41c(_0x3c3262,_0x3b3ba4,_0x412bf8);let _e=class extends _0x4651e2{constructor(_0x31fac0,_0x57a60b,_0x105d17,_0x3e91e2,_0x985b6b,_0x27bf88){const _0x497e46=_0x200baf;super(),this[_0x497e46(0x161)]=_0x31fac0,this['_localCacheService']=_0x57a60b,this[_0x497e46(0x257)]=_0x105d17,this[_0x497e46(0x33c)]=_0x3e91e2,this[_0x497e46(0x31d)]=_0x985b6b,this[_0x497e46(0x197)]=_0x27bf88,this[_0x497e46(0x163)](),this['_initEvent']();}[_0x200baf(0x163)](){const _0x212c23=_0x200baf;this['disposeWithMe'](this['_beforeCloseService'][_0x212c23(0x295)](()=>{const _0x1832a4=_0x212c23;if(this[_0x1832a4(0x241)][_0x1832a4(0x2b3)][_0x1832a4(0x2b9)])return this[_0x1832a4(0x197)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x824a95=_0x200baf;this[_0x824a95(0x342)](this[_0x824a95(0x257)][_0x824a95(0x2a3)]['subscribe'](_0x42e047=>{const _0x3c48d6=_0x824a95;_0x42e047['id']===_0x219328['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x5f0a68[_0x3c48d6(0x1de)],'content':this[_0x3c48d6(0x197)]['t']('collaboration.single-unit.warning')}),_0x42e047['id']===_0x219328[_0x3c48d6(0x23b)]&&this[_0x3c48d6(0x33c)][_0x3c48d6(0x220)]({'type':_0x5f0a68[_0x3c48d6(0x1de)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x42e047['id']===_0x219328[_0x3c48d6(0x2b6)]&&this['_notificationService']['show']({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3c48d6(0x197)]['t'](_0x3c48d6(0x29d)),'type':'error','duration':0x0}),_0x42e047['id']===_0x219328[_0x3c48d6(0x305)]&&this['_messageService'][_0x3c48d6(0x220)]({'type':_0x5f0a68[_0x3c48d6(0x35a)],'content':this[_0x3c48d6(0x197)]['t'](_0x3c48d6(0x1be))+'('+_0x42e047[_0x3c48d6(0x25e)]+')'}),_0x42e047['id']===_0x219328['JOIN_ROOM_FAILED']&&this[_0x3c48d6(0x33c)][_0x3c48d6(0x220)]({'type':_0x5f0a68[_0x3c48d6(0x1de)],'content':this['_localeService']['t'](_0x42e047[_0x3c48d6(0x25e)]||'')}),_0x42e047['id']===_0x219328[_0x3c48d6(0x23a)]&&this[_0x3c48d6(0x33c)][_0x3c48d6(0x220)]({'type':_0x5f0a68['Warning'],'content':this[_0x3c48d6(0x197)]['t'](_0x3c48d6(0x169))}),_0x42e047['id']===_0x219328[_0x3c48d6(0x22f)]&&this[_0x3c48d6(0x33c)][_0x3c48d6(0x220)]({'type':_0x5f0a68[_0x3c48d6(0x35a)],'content':this['_localeService']['t'](_0x3c48d6(0x1cb))}),_0x42e047['id']===_0x219328[_0x3c48d6(0x1ea)]&&this['_messageService'][_0x3c48d6(0x220)]({'type':_0x5f0a68['Error'],'content':this[_0x3c48d6(0x197)]['t'](_0x3c48d6(0x297))});}));}};_e=cn([F(0x0,_0x2aa14b),F(0x1,_0xfd1d99),F(0x2,_0x193ac9(_0x494b64)),F(0x3,_0x378cfb),F(0x4,_0x2f32ad),F(0x5,_0x193ac9(_0x58dae0))],_e);var _n=Object[_0x200baf(0x1fa)],ln=(_0x4f8a9a,_0x2a173,_0x375da4,_0x2ec5a4)=>{const _0x39b257=_0x200baf;for(var _0x549e1a=_0x2ec5a4>0x1?void 0x0:_0x2ec5a4?_n(_0x2a173,_0x375da4):_0x2a173,_0x416e3d=_0x4f8a9a[_0x39b257(0x198)]-0x1,_0x1dc081;_0x416e3d>=0x0;_0x416e3d--)(_0x1dc081=_0x4f8a9a[_0x416e3d])&&(_0x549e1a=_0x1dc081(_0x549e1a)||_0x549e1a);return _0x549e1a;},ne=(_0x2adc6c,_0x4a093e)=>(_0x5ce393,_0x44ea34)=>_0x4a093e(_0x5ce393,_0x44ea34,_0x2adc6c);let le=class extends _0x4651e2{constructor(_0x37807a,_0x567a40,_0x270dc7,_0x360c13){const _0x230cd9=_0x200baf;super(),_(this,_0x230cd9(0x1b9)),(this[_0x230cd9(0x211)]=_0x37807a,this[_0x230cd9(0x2d2)]=_0x567a40,this[_0x230cd9(0x29a)]=_0x270dc7,this[_0x230cd9(0x202)]=_0x360c13,this[_0x230cd9(0x35e)]());}[_0x200baf(0x35e)](){const _0x4a85cd=_0x200baf;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x4a85cd(0x322)](),this[_0x4a85cd(0x15a)]();}[_0x200baf(0x15a)](){const _0x5e6cd2=_0x200baf;this[_0x5e6cd2(0x342)](this['_collaborationSessionService']['socket$']['subscribe'](_0x38f33b=>{const _0xbf5b0d=_0x5e6cd2;this[_0xbf5b0d(0x1b9)]=_0x38f33b==null?void 0x0:_0x38f33b[_0xbf5b0d(0x21d)];}));}[_0x200baf(0x14c)](){const _0x4b9670=_0x200baf,_0x3b12ad=_0x911a8d=>{const _0x2669de=_0x1887;var _0x15dd2f;this[_0x2669de(0x37d)](_0x2669de(0x28f),'[Window\x20Error]:\x20'+_0x911a8d['message']+_0x2669de(0x23e)+_0x911a8d['filename']+':'+_0x911a8d[_0x2669de(0x2c9)]+':'+_0x911a8d[_0x2669de(0x204)]+'\x0a'+(((_0x15dd2f=_0x911a8d[_0x2669de(0x28f)])==null?void 0x0:_0x15dd2f['stack'])||''));};window[_0x4b9670(0x253)]('error',_0x3b12ad),this['disposeWithMe'](()=>{const _0x266824=_0x4b9670;window[_0x266824(0x2ed)]('error',_0x3b12ad);});}[_0x200baf(0x131)](){const _0x548b3e=_0x200baf,_0x4e95e4=_0x1fd538=>{const _0x14379a=_0x1887;this[_0x14379a(0x37d)](_0x14379a(0x28f),_0x14379a(0x2d5)+_0x1fd538[_0x14379a(0x1c4)]);};window[_0x548b3e(0x253)](_0x548b3e(0x208),_0x4e95e4),this['disposeWithMe'](()=>{const _0x3abd3e=_0x548b3e;window[_0x3abd3e(0x2ed)](_0x3abd3e(0x208),_0x4e95e4);});}[_0x200baf(0x322)](){const _0x5aba0=_0x200baf,_0x13dca1=this['_logService'][_0x5aba0(0x28f)][_0x5aba0(0x1d4)](this[_0x5aba0(0x29a)]);this[_0x5aba0(0x29a)][_0x5aba0(0x28f)]=(..._0x58fd4f)=>{const _0x53f578=_0x5aba0,_0x5a373f=_0x58fd4f[_0x53f578(0x37c)](_0x1ce62f=>_0x1ce62f instanceof Error?_0x1ce62f[_0x53f578(0x2ce)]+'\x0a'+_0x1ce62f['stack']:String(_0x1ce62f))[_0x53f578(0x171)]('\x20');this[_0x53f578(0x37d)](_0x53f578(0x28f),_0x53f578(0x2a6)+_0x5a373f),_0x13dca1(..._0x58fd4f);},this[_0x5aba0(0x342)](()=>{const _0x39b6a6=_0x5aba0;this[_0x39b6a6(0x29a)][_0x39b6a6(0x28f)]=_0x13dca1;});}[_0x200baf(0x37d)](_0x5ad0a9,_0x5affa7){const _0x3bc250=_0x200baf;try{const _0x32c392={'userId':this[_0x3bc250(0x1b9)],'logLabel':_0x5ad0a9,'content':_0x5affa7};this[_0x3bc250(0x2d2)][_0x3bc250(0x14e)](_0x3bc250(0x31c),{'body':_0x32c392})[_0x3bc250(0x285)](()=>{});}catch{}}};le=ln([ne(0x0,_0x193ac9(_0x74bc13)),ne(0x1,_0x193ac9(_0x119c37)),ne(0x2,_0x443635),ne(0x3,_0x193ac9(_0x3b0fea))],le);const hn=_0x200baf(0x216),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x429b86,_0x178aea,_0x53ec1a,_0x34fe56)=>{const _0x2a4c50=_0x200baf;for(var _0x5c07be=_0x34fe56>0x1?void 0x0:_0x34fe56?un(_0x178aea,_0x53ec1a):_0x178aea,_0x362df2=_0x429b86[_0x2a4c50(0x198)]-0x1,_0x57519e;_0x362df2>=0x0;_0x362df2--)(_0x57519e=_0x429b86[_0x362df2])&&(_0x5c07be=_0x57519e(_0x5c07be)||_0x5c07be);return _0x5c07be;},lt=(_0x36b865,_0x2c6e01)=>(_0x28ffcc,_0x5b6522)=>_0x2c6e01(_0x28ffcc,_0x5b6522,_0x36b865);let he=class{constructor(_0x56e283,_0x3b2ddc){const _0x5bfde6=_0x200baf;this[_0x5bfde6(0x2ec)]=_0x56e283,this['_renderManagerService']=_0x3b2ddc;}['transformIMECache'](_0x3a4c98){const _0x194841=_0x200baf;this[_0x194841(0x331)](_0x3a4c98),this[_0x194841(0x280)](_0x3a4c98);}[_0x200baf(0x369)](_0x597e41){const _0x2873bd=_0x200baf,{unitID:_0x3bfd46}=_0x597e41,_0x11abb8=this[_0x2873bd(0x33b)][_0x2873bd(0x2b5)](_0x3bfd46)[_0x2873bd(0x147)](_0x17f979),{redoCache:_0x5de501}=_0x11abb8['getUndoRedoMutationParamsCache']();if(_0x5de501['length']===0x0)return _0x597e41;let _0x30eada=_0x473840[_0x2873bd(0x34f)](_0x597e41['mutations'][0x0]);for(let _0x14fc37=0x0;_0x14fc37<_0x5de501[_0x2873bd(0x198)];_0x14fc37++){const _0x3d94fe={'id':_0x2873bd(0x1d5),'params':{..._0x5de501[_0x14fc37]}},_0xec0c48=this['_transformService']['transformMutation'](_0x30eada,_0x3d94fe,!0x1);if(_0x36fd28(_0xec0c48))throw _0xec0c48['error'];_0x30eada=_0xec0c48[_0x2873bd(0x1ac)];}return{..._0x473840[_0x2873bd(0x34f)](_0x597e41),'mutations':[_0x30eada]};}[_0x200baf(0x331)](_0x2ed7a2){const _0x4ae376=_0x200baf,{unitID:_0x4e5b41}=_0x2ed7a2,_0x24da21=this[_0x4ae376(0x33b)][_0x4ae376(0x2b5)](_0x4e5b41)[_0x4ae376(0x147)](_0x17f979),{undoCache:_0x8d49e5,redoCache:_0x2816ed}=_0x24da21['getUndoRedoMutationParamsCache']();if(_0x8d49e5[_0x4ae376(0x198)]===0x0||_0x2816ed['length']===0x0)return;const _0x5ee3ea=[],_0x1dd600=[];let _0x375043=_0x473840['deepClone'](_0x2ed7a2[_0x4ae376(0x375)][0x0]),_0x2e6a21=_0x473840[_0x4ae376(0x34f)](_0x2ed7a2['mutations'][0x0]);for(let _0x2a9bc0=_0x8d49e5[_0x4ae376(0x198)]-0x1;_0x2a9bc0>=0x0;_0x2a9bc0--){const _0x100c86={'id':_0x4ae376(0x1d5),'params':{..._0x8d49e5[_0x2a9bc0]}},_0x3371be={'id':_0x4ae376(0x1d5),'params':{..._0x2816ed[_0x2a9bc0]}},_0x556a4e=this[_0x4ae376(0x2ec)][_0x4ae376(0x2c6)](_0x375043,_0x100c86,!0x1),_0x5555b3=this[_0x4ae376(0x2ec)][_0x4ae376(0x2c6)](_0x2e6a21,_0x3371be,!0x1);if(_0x36fd28(_0x556a4e))throw _0x556a4e['error'];if(_0x36fd28(_0x5555b3))throw _0x5555b3['error'];_0x5ee3ea[_0x4ae376(0x1ed)](_0x556a4e[_0x4ae376(0x1c9)][_0x4ae376(0x195)]),_0x1dd600[_0x4ae376(0x1ed)](_0x5555b3[_0x4ae376(0x1c9)]['params']),_0x375043=_0x556a4e[_0x4ae376(0x1ac)],_0x2e6a21=_0x5555b3['m1Prime'];}_0x24da21[_0x4ae376(0x26c)]({'undoCache':_0x5ee3ea,'redoCache':_0x1dd600});}[_0x200baf(0x280)](_0x285d40){const _0xba8269=_0x200baf,{unitID:_0x47abb3}=_0x285d40,_0x405a50=this[_0xba8269(0x33b)][_0xba8269(0x2b5)](_0x47abb3)[_0xba8269(0x147)](_0x17f979),_0x3949e0=_0x405a50[_0xba8269(0x18b)]();if(_0x3949e0==null)return;const _0x5121c2=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x285d40['unitID'],'actions':null,'textRanges':[_0x3949e0]}}],_0x895c35=this[_0xba8269(0x2ec)][_0xba8269(0x21e)](_0x285d40,_0x5121c2);if(!_0x447983(_0x895c35))throw _0x895c35['error'];const _0x4a1501=_0x895c35[_0xba8269(0x1c9)][0x0]['params'][_0xba8269(0x240)];Array['isArray'](_0x4a1501)&&_0x4a1501[_0xba8269(0x198)]&&_0x405a50[_0xba8269(0x1b8)](_0x4a1501[0x0]);}};he=dn([lt(0x0,_0xc45270),lt(0x1,_0x4b6ef2)],he);var Sn=Object[_0x200baf(0x1fa)],In=(_0x430b66,_0x2c4a56,_0x2ca614,_0xa84f66)=>{const _0x4aea12=_0x200baf;for(var _0x22f22f=_0xa84f66>0x1?void 0x0:_0xa84f66?Sn(_0x2c4a56,_0x2ca614):_0x2c4a56,_0x494e6f=_0x430b66[_0x4aea12(0x198)]-0x1,_0x2e8990;_0x494e6f>=0x0;_0x494e6f--)(_0x2e8990=_0x430b66[_0x494e6f])&&(_0x22f22f=_0x2e8990(_0x22f22f)||_0x22f22f);return _0x22f22f;},Le=(_0x5396a3,_0x2aa80e)=>(_0x9df4ec,_0x438302)=>_0x2aa80e(_0x9df4ec,_0x438302,_0x5396a3);let ue=class{constructor(_0x2eea15,_0x116b18,_0x589586){const _0x38e985=_0x200baf;this[_0x38e985(0x211)]=_0x2eea15,this['_transformService']=_0x116b18,this[_0x38e985(0x207)]=_0x589586;}[_0x200baf(0x16b)](_0x262598){this['_transformHistoryAndStateStack'](_0x262598);}['transformRemoteChangeset'](_0x3f38b3){const _0x2389a4=_0x200baf,{unitID:_0x367a67}=_0x3f38b3,{collaboration:_0x1639e6}=this[_0x2389a4(0x207)][_0x2389a4(0x263)](_0x367a67);if(_0x1639e6['length']===0x0)return _0x3f38b3;let _0x1d391b=_0x473840[_0x2389a4(0x34f)](_0x3f38b3[_0x2389a4(0x375)][0x0]);for(let _0x5d2f96=0x0;_0x5d2f96<_0x1639e6['length'];_0x5d2f96++){const _0x52f2f8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1639e6[_0x5d2f96][_0x2389a4(0x2bd)],..._0x1639e6[_0x5d2f96][_0x2389a4(0x201)]}},_0x447308=this[_0x2389a4(0x2ec)]['transformMutation'](_0x1d391b,_0x52f2f8,!0x1);if(_0x36fd28(_0x447308))throw _0x447308['error'];_0x1d391b=_0x447308[_0x2389a4(0x1ac)];}return{..._0x473840['deepClone'](_0x3f38b3),'mutations':[_0x1d391b]};}[_0x200baf(0x2f3)](_0x38de36){const _0x16b3bb=_0x200baf,{unitID:_0xd4d9f}=_0x38de36,{history:_0x1093a2,collaboration:_0x138aa0}=this[_0x16b3bb(0x207)]['getStateCache'](_0xd4d9f);if(_0x1093a2[_0x16b3bb(0x198)]===0x0&&_0x138aa0[_0x16b3bb(0x198)]===0x0)return;const _0xa61fdc=[],_0x5ea82a=[];let _0x52e7f2=_0x473840[_0x16b3bb(0x34f)](_0x38de36['mutations'][0x0]),_0x8728ce=_0x473840[_0x16b3bb(0x34f)](_0x38de36['mutations'][0x0]);for(let _0x274334=_0x1093a2[_0x16b3bb(0x198)]-0x1;_0x274334>=0x0;_0x274334--){const _0x42df34={'id':_0x16b3bb(0x1d5),'params':{'unitId':_0x1093a2[_0x274334]['unitId'],..._0x1093a2[_0x274334][_0x16b3bb(0x226)]}},_0x448edf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1093a2[_0x274334][_0x16b3bb(0x2bd)],..._0x1093a2[_0x274334][_0x16b3bb(0x201)]}},_0x2b915c=this[_0x16b3bb(0x2ec)][_0x16b3bb(0x2c6)](_0x52e7f2,_0x42df34,!0x1),_0x5306bd=this[_0x16b3bb(0x2ec)][_0x16b3bb(0x2c6)](_0x8728ce,_0x448edf,!0x1);if(_0x36fd28(_0x2b915c))throw _0x2b915c[_0x16b3bb(0x28f)];if(_0x36fd28(_0x5306bd))throw _0x5306bd[_0x16b3bb(0x28f)];_0xa61fdc[_0x16b3bb(0x1ed)]({..._0x1093a2[_0x274334],'undoState':_0x2b915c[_0x16b3bb(0x1c9)]['params'],'redoState':_0x5306bd[_0x16b3bb(0x1c9)]['params']}),_0x52e7f2=_0x2b915c[_0x16b3bb(0x1ac)],_0x8728ce=_0x5306bd[_0x16b3bb(0x1ac)];}_0x52e7f2=_0x473840[_0x16b3bb(0x34f)](_0x38de36[_0x16b3bb(0x375)][0x0]),_0x8728ce=_0x473840[_0x16b3bb(0x34f)](_0x38de36[_0x16b3bb(0x375)][0x0]);for(let _0x5023c3=_0x138aa0['length']-0x1;_0x5023c3>=0x0;_0x5023c3--){const _0x2624f3={'id':_0x16b3bb(0x1d5),'params':{'unitId':_0x138aa0[_0x5023c3][_0x16b3bb(0x2bd)],..._0x138aa0[_0x5023c3]['undoState']}},_0x2d7f66={'id':_0x16b3bb(0x1d5),'params':{'unitId':_0x138aa0[_0x5023c3][_0x16b3bb(0x2bd)],..._0x138aa0[_0x5023c3]['redoState']}},_0x6d0e97=this['_transformService'][_0x16b3bb(0x2c6)](_0x52e7f2,_0x2624f3,!0x1),_0x1a355a=this[_0x16b3bb(0x2ec)]['transformMutation'](_0x8728ce,_0x2d7f66,!0x1);if(_0x36fd28(_0x6d0e97))throw _0x6d0e97[_0x16b3bb(0x28f)];if(_0x36fd28(_0x1a355a))throw _0x1a355a[_0x16b3bb(0x28f)];_0x5ea82a[_0x16b3bb(0x1ed)]({..._0x138aa0[_0x5023c3],'undoState':_0x6d0e97[_0x16b3bb(0x1c9)]['params'],'redoState':_0x1a355a[_0x16b3bb(0x1c9)][_0x16b3bb(0x195)]}),_0x52e7f2=_0x6d0e97['m1Prime'],_0x8728ce=_0x1a355a[_0x16b3bb(0x1ac)];}this[_0x16b3bb(0x207)][_0x16b3bb(0x1c0)](_0xd4d9f,{'history':_0xa61fdc,'collaboration':_0x5ea82a});}};function _0x1887(_0x10069c,_0x3493ea){_0x10069c=_0x10069c-0x12f;const _0x18569b=_0x1856();let _0x18877e=_0x18569b[_0x10069c];return _0x18877e;}ue=In([Le(0x0,_0x193ac9(_0x74bc13)),Le(0x1,_0xc45270),Le(0x2,_0x193ac9(_0x2c31cd))],ue);var mn=Object['getOwnPropertyDescriptor'],fn=(_0x3acf3a,_0x3fa46e,_0x12dadf,_0x5b5a4d)=>{const _0x15f29b=_0x200baf;for(var _0x4e3df6=_0x5b5a4d>0x1?void 0x0:_0x5b5a4d?mn(_0x3fa46e,_0x12dadf):_0x3fa46e,_0x52640b=_0x3acf3a[_0x15f29b(0x198)]-0x1,_0x3dcb60;_0x52640b>=0x0;_0x52640b--)(_0x3dcb60=_0x3acf3a[_0x52640b])&&(_0x4e3df6=_0x3dcb60(_0x4e3df6)||_0x4e3df6);return _0x4e3df6;},ht=(_0x3b1a1,_0x39de40)=>(_0x560aee,_0x382f44)=>_0x39de40(_0x560aee,_0x382f44,_0x3b1a1);let de=class{constructor(_0x4d5db2,_0xdb9b6f){const _0x275cac=_0x200baf;this[_0x275cac(0x211)]=_0x4d5db2,this['_transformService']=_0xdb9b6f;}[_0x200baf(0x133)](_0xfe17e5){const _0x3e1577=_0x200baf;var _0x5a164c;const _0x2db5e3=this['_injector'][_0x3e1577(0x215)](_0x16dfb3),_0x229d1b=(_0x5a164c=_0x2db5e3[_0x3e1577(0x1cd)]())!=null?_0x5a164c:[];if(_0x229d1b[_0x3e1577(0x198)]===0x0)return;const _0x275321=_0xfe17e5['unitID'],_0x40cbc1=[{'id':_0x3e1577(0x1d5),'params':{'unitId':_0x275321,'actions':null,'textRanges':_0x229d1b}}],_0x3c8857=this[_0x3e1577(0x2ec)][_0x3e1577(0x21e)](_0xfe17e5,_0x40cbc1);if(!_0x447983(_0x3c8857))throw _0x3c8857[_0x3e1577(0x28f)];const _0x119739=_0x3c8857['m2Prime'][0x0][_0x3e1577(0x195)][_0x3e1577(0x240)];Array[_0x3e1577(0x1a9)](_0x119739)&&_0x119739[_0x3e1577(0x198)]&&_0x2db5e3[_0x3e1577(0x2a9)](_0x119739,{'unitId':_0x275321,'subUnitId':_0x275321},!0x1);}};de=fn([ht(0x0,_0x193ac9(_0x74bc13)),ht(0x1,_0xc45270)],de);var gn=Object[_0x200baf(0x1fa)],En=(_0x7a0331,_0x2aaaf5,_0x2f6f51,_0x2522f6)=>{const _0xbf8503=_0x200baf;for(var _0x2a28a4=_0x2522f6>0x1?void 0x0:_0x2522f6?gn(_0x2aaaf5,_0x2f6f51):_0x2aaaf5,_0x129b5b=_0x7a0331[_0xbf8503(0x198)]-0x1,_0x570dc4;_0x129b5b>=0x0;_0x129b5b--)(_0x570dc4=_0x7a0331[_0x129b5b])&&(_0x2a28a4=_0x570dc4(_0x2a28a4)||_0x2a28a4);return _0x2a28a4;},U=(_0x192a82,_0x5c581a)=>(_0x36172c,_0x294550)=>_0x5c581a(_0x36172c,_0x294550,_0x192a82);let Se=class extends _0x4651e2{constructor(_0x5b33a9,_0x3b6b90,_0x14d0eb,_0x2ae152,_0x456d3f,_0x53b046,_0x508b06,_0x1ff420){const _0x2714db=_0x200baf;super(),_(this,_0x2714db(0x1bd),new _0x2c6743(_0x112ced['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x5b33a9,this['_collaborationController']=_0x3b6b90,this['_docTransformIMECacheService']=_0x14d0eb,this[_0x2714db(0x2d7)]=_0x2ae152,this[_0x2714db(0x312)]=_0x456d3f,this[_0x2714db(0x273)]=_0x53b046,this[_0x2714db(0x33c)]=_0x508b06,this['_localeService']=_0x1ff420,this['_initEntityListener']());}[_0x200baf(0x2ca)](){const _0x513dbe=_0x200baf;this[_0x513dbe(0x342)](this[_0x513dbe(0x24a)][_0x513dbe(0x1bc)][_0x513dbe(0x2ad)](_0x5933b2=>{const _0x953578=_0x513dbe,_0x31f289=this[_0x953578(0x207)][_0x953578(0x27b)][_0x953578(0x2ad)](_0x5b85b8=>{const _0x7d3aab=_0x953578;if(_0x5b85b8==null)return;const {unitId:_0x455f06,redoState:_0x20e11b,commandId:_0x30f3db}=_0x5b85b8;if(_0x455f06!==_0x5933b2[_0x7d3aab(0x2fa)])return;const _0x564301={'id':_0x30f3db,'type':_0x377348['MUTATION'],'params':{'unitId':_0x455f06,'actions':_0x20e11b[_0x7d3aab(0x18e)],'textRanges':null}};_0x5933b2[_0x7d3aab(0x336)](_0x564301);});if(_0x5933b2[_0x953578(0x342)](_0x31f289),_0x5933b2 instanceof _0x3e58f0){const _0x4dbc1b={'onTransformIME':_0x4c2ca0=>this['_docTransformIMECacheService']['transformIMECache'](_0x4c2ca0),'onTransformState':_0x5190d3=>this[_0x953578(0x2d7)][_0x953578(0x16b)](_0x5190d3),'onTransformSelections':_0x494741=>this[_0x953578(0x312)][_0x953578(0x133)](_0x494741),'onSyncEditingCollabCursor':_0x247869=>this[_0x953578(0x273)][_0x953578(0x1da)](_0x247869),'onTransformRemoteChangesetByIMECache':_0x169b60=>this[_0x953578(0x324)][_0x953578(0x369)](_0x169b60),'onTransformRemoteChangesetByStateCache':_0x2e73a3=>this[_0x953578(0x2d7)]['transformRemoteChangeset'](_0x2e73a3)};_0x5933b2['addHandlerCallback'](_0x4dbc1b);}}));}};Se=En([U(0x0,_0x193ac9(_0x2c31cd)),U(0x1,_0x193ac9(_0x520957)),U(0x2,_0x193ac9(he)),U(0x3,_0x193ac9(ue)),U(0x4,_0x193ac9(de)),U(0x5,_0x193ac9(ze)),U(0x6,_0x378cfb),U(0x7,_0x193ac9(_0x58dae0))],Se);var Z=(_0x296117=>(_0x296117[_0x296117[_0x200baf(0x137)]=0x0]=_0x200baf(0x137),_0x296117[_0x296117['OK']=0x1]='OK',_0x296117[_0x296117['INTERNAL_ERROR']=0x2]=_0x200baf(0x1fe),_0x296117[_0x296117[_0x200baf(0x2b6)]=0x3]=_0x200baf(0x2b6),_0x296117[_0x296117[_0x200baf(0x2a5)]=0x4]=_0x200baf(0x2a5),_0x296117[_0x296117[_0x200baf(0x238)]=0x5]=_0x200baf(0x238),_0x296117[_0x296117[_0x200baf(0x18c)]=0x6]=_0x200baf(0x18c),_0x296117[_0x296117[_0x200baf(0x1ff)]=0x7]=_0x200baf(0x1ff),_0x296117[_0x296117[_0x200baf(0x251)]=0x8]=_0x200baf(0x251),_0x296117[_0x296117[_0x200baf(0x20b)]=0x9]='COMPLETION_FINISHED',_0x296117[_0x296117[_0x200baf(0x13e)]=0xa]=_0x200baf(0x13e),_0x296117[_0x296117['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x200baf(0x270),_0x296117[_0x296117['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x296117[_0x296117[_0x200baf(0x1fd)]=0xd]=_0x200baf(0x1fd),_0x296117[_0x296117[_0x200baf(0x1a5)]=0xe]=_0x200baf(0x1a5),_0x296117[_0x296117[_0x200baf(0x1bf)]=0xf]=_0x200baf(0x1bf),_0x296117[_0x296117[_0x200baf(0x20e)]=0x10]=_0x200baf(0x20e),_0x296117[_0x296117[_0x200baf(0x347)]=0x64]=_0x200baf(0x347),_0x296117[_0x296117['ERROR_AGAIN']=0x65]=_0x200baf(0x2e9),_0x296117[_0x296117[_0x200baf(0x219)]=0xc9]=_0x200baf(0x219),_0x296117[_0x296117[_0x200baf(0x19f)]=0xca]=_0x200baf(0x19f),_0x296117[_0x296117[_0x200baf(0x143)]=0x1389]=_0x200baf(0x143),_0x296117[_0x296117[_0x200baf(0x269)]=0x1771]=_0x200baf(0x269),_0x296117[_0x296117[_0x200baf(0x34c)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x296117[_0x296117[_0x200baf(0x1d1)]=0x1773]=_0x200baf(0x1d1),_0x296117[_0x296117[_0x200baf(0x2f7)]=0x1b59]=_0x200baf(0x2f7),_0x296117[_0x296117[_0x200baf(0x255)]=0x1b5a]=_0x200baf(0x255),_0x296117[_0x296117[_0x200baf(0x2d4)]=0x1b5b]=_0x200baf(0x2d4),_0x296117[_0x296117['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x200baf(0x2ff),_0x296117[_0x296117[_0x200baf(0x267)]=0x1b5d]=_0x200baf(0x267),_0x296117[_0x296117['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x200baf(0x224),_0x296117[_0x296117['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x296117[_0x296117[_0x200baf(0x345)]=0x232a]=_0x200baf(0x345),_0x296117[_0x296117[_0x200baf(0x16e)]=0x232b]=_0x200baf(0x16e),_0x296117[_0x296117['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x200baf(0x293),_0x296117[_0x296117[_0x200baf(0x23f)]=0x232d]=_0x200baf(0x23f),_0x296117[_0x296117[_0x200baf(0x310)]=0x2711]=_0x200baf(0x310),_0x296117[_0x296117[_0x200baf(0x259)]=0x2712]=_0x200baf(0x259),_0x296117[_0x296117[_0x200baf(0x315)]=0x2713]=_0x200baf(0x315),_0x296117[_0x296117['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x200baf(0x33f),_0x296117[_0x296117[_0x200baf(0x351)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x296117[_0x296117[_0x200baf(0x2eb)]=0x271b]=_0x200baf(0x2eb),_0x296117[_0x296117[_0x200baf(0x210)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x296117[_0x296117[_0x200baf(0x340)]=0x271d]=_0x200baf(0x340),_0x296117[_0x296117[_0x200baf(0x23d)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x296117[_0x296117[_0x200baf(0x144)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x296117[_0x296117[_0x200baf(0x18d)]=0x2720]=_0x200baf(0x18d),_0x296117[_0x296117[_0x200baf(0x209)]=0x2af9]=_0x200baf(0x209),_0x296117[_0x296117[_0x200baf(0x1e2)]=0x2ee1]=_0x200baf(0x1e2),_0x296117[_0x296117[_0x200baf(0x354)]=0x2ee2]='INVALID_INVITE_CODE',_0x296117[_0x296117[_0x200baf(0x1a4)]=0x2ee3]=_0x200baf(0x1a4),_0x296117[_0x296117['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x296117[_0x296117[_0x200baf(0x2b1)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x296117[_0x296117[_0x200baf(0x22b)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x296117[_0x296117[_0x200baf(0x341)]=0x32ca]=_0x200baf(0x341),_0x296117[_0x296117[_0x200baf(0x373)]=0x32cb]=_0x200baf(0x373),_0x296117[_0x296117[_0x200baf(0x349)]=0x36b1]=_0x200baf(0x349),_0x296117[_0x296117[_0x200baf(0x2ee)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x296117[_0x296117[_0x200baf(0x34d)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x296117[_0x296117[_0x200baf(0x19e)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x296117[_0x296117[_0x200baf(0x2f5)]=0x36b5]=_0x200baf(0x2f5),_0x296117[_0x296117[_0x200baf(0x25d)]=0x36b6]=_0x200baf(0x25d),_0x296117[_0x296117[_0x200baf(0x15b)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x296117[_0x296117['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x200baf(0x19c),_0x296117[_0x296117['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x200baf(0x1c7),_0x296117[_0x296117[_0x200baf(0x281)]=0x3716]=_0x200baf(0x281),_0x296117[_0x296117[_0x200baf(0x19d)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x296117[_0x296117[_0x200baf(0x1b1)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x296117[_0x296117[_0x200baf(0x1b5)]=0x3a99]=_0x200baf(0x1b5),_0x296117[_0x296117['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x200baf(0x1ad),_0x296117[_0x296117[_0x200baf(0x306)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x296117[_0x296117[_0x200baf(0x27d)]=0x3a9c]=_0x200baf(0x27d),_0x296117[_0x296117[_0x200baf(0x12f)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x296117[_0x296117[_0x200baf(0x138)]=0x3a9e]=_0x200baf(0x138),_0x296117[_0x296117['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x296117[_0x296117[_0x200baf(0x2c5)]=0x3e81]=_0x200baf(0x2c5),_0x296117[_0x296117[_0x200baf(0x2dc)]=-0x1]=_0x200baf(0x2dc),_0x296117))(Z||{});function vn(_0x13b151){const _0x29e5c9=_0x200baf;var _0x33b8f0,_0x38b5b1;const _0x49178a=(_0x33b8f0=_0x13b151[_0x29e5c9(0x175)])==null?void 0x0:_0x33b8f0[_0x29e5c9(0x319)],_0x49ea63=((_0x38b5b1=_0x13b151['stageInfo'])==null?void 0x0:_0x38b5b1[_0x29e5c9(0x1a3)])||0x0;return _0x49178a===_0x244a54[_0x29e5c9(0x24b)]&&_0x49ea63>0x0;}function pn(_0x58eff7){const _0x332266=_0x200baf;return _0x58eff7[_0x332266(0x256)]===_0x24d840['SUCCESS'];}var On=Object[_0x200baf(0x1fa)],Tn=(_0x199175,_0x997a3e,_0x6e8552,_0x1011f3)=>{for(var _0x398dae=_0x1011f3>0x1?void 0x0:_0x1011f3?On(_0x997a3e,_0x6e8552):_0x997a3e,_0x106311=_0x199175['length']-0x1,_0x327725;_0x106311>=0x0;_0x106311--)(_0x327725=_0x199175[_0x106311])&&(_0x398dae=_0x327725(_0x398dae)||_0x398dae);return _0x398dae;},P=(_0x3cad68,_0x421c2d)=>(_0x23db89,_0x49ba68)=>_0x421c2d(_0x23db89,_0x49ba68,_0x3cad68);const Cn=_0x200baf(0x168),Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';function _0x1856(){const _0x41267e=['_updateURLWithCurrentState','WECHAT_HAS_BEEN_BOUND','_getFormulaLimitStatus','_clearPolling','UNIVER_SHEET','SOCKET_FAILED','some','subunit','cursorInfo$','endRow','_taskIds','0\x200\x2017\x2016','pipe','split','UNAUTHENTICATED','on-line-icon_clip0_910_349','SOCKET_FAILED_RETRY','CLOSE_ROOM','_commandService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','\x20at\x20','LICENSE_DISTRO_REJECTED','textRanges','_localCacheService','type','hovered','_cursor','getCurrentSelections','editingUnit','pushState','_hovered','ticket','_collaborationController','START_CALCULATION','_getSessionTicket','replaceState','_saveCache','_maxFormulaLimit','moveTo','TOO_MANY_REQUESTS','setInterval','addEventListener','clearInterval','APPLY_NON_SEQUENTIAL_REVISION','functionsExecutedState','_collaborationUIEventService','_themeService','YUUMI_URL_COL_OUT_OF_RANGE','parse','storage','?taskId=','ENTITLE_COUPON_EXPIRED','data','1em','loadUnit','_document','_uiPartsService','getStateCache','collabCursorState$','_session','_checkCalculationAvailable','APPLY_DUPLICATED','init','SNAPSHOT_INVALID_SNAPSHOT','limitInfo','popstate','setUndoRedoMutationParamsCache','_drawTextRange','jiqing.500','collabStatus.synced','MOBILE_VERIFY_CODE_MISMATCH','ONLINE','_getSheetObject','_docSyncEditingCollabCursorService','flatMap','findNodePositionByCharIndex','collabStatus.fetchMiss','getRelativeToViewportCoord','InsertRangeMoveRightCommandId','stringify','dirtyRanges','docStateChange$','search','REDEMPTION_CODE_NOT_STARTED','color','_urlService','_transformPreviousActiveRange','ENTITLE_REPORT_LIMIT_EXCEED','_startCalculationLimit','Failed','_hideTimer','catch','startRow','DeleteRangeMoveLeftCommandId','cursorInfo','_pollingInterval','releaseFormulaLimitUrl','green.600','replace','NO_OTHER_CLIENTS_EDITING','enableLocalCache','error','22WvaivY','_setupSubUnitSync','_releaseCalculationLimit','LICENSE_EXPORT_SIZE_EXCEEDED','_checkAndWaitForCalculationPermission','registerBeforeClose','_syncEditingCollabCursorService','session.collaboration-timeout','_color','subUnitId','_logService','string','onPointerEnter$','permission.content','FromArray','AWAITING','assign','[CollaborationDataLoaderController]','_scene','event$','_hover','NOT_FOUND','[LogService\x20Error]:\x20','2220930hAaXCe','none','replaceDocRanges','_scheduleSaving','_selfUnitIDs','values','subscribe','9076179ZgwxsD','body','VIEW_MAIN','INVITE_CODE_ALREADY_BOUND','_entityInit$','saveTaskMap','setShapeProps','getRenderById','PERMISSION_DENIED','runId','getViewport','size','blue.400','endColumn','getSkeleton','unitId','yellow.400','row','activeSheet$','skeleton','xlink:href','SYNCED','getCurrentUnitForType','DATA_SOURCE_TOO_LARGE','transformMutation','http://www.w3.org/2000/svg','getMemberID','lineno','_initEntityListener','_colorAssignService','_unitStatus','transformByState','message','idSuffix','attrs','set','_httpService','executionId','APPLY_REVISION_CONFILICT','[Unhandled\x20Rejection]:\x20','formula.calculation.waiting','_docTransformStateCacheService','from','_assignedColors','_applyCommand','_registerDependencies','UNRECOGNIZED','_handleEvent','ACTIVE_UNIT_EVENT_CHANNEL','_getMergeRange','UPDATE_CURSOR','on-line-icon','registerRenderModule','debug','onPointerLeave$','getUnitStatus$','width','contains','_onCursorDelete','ERROR_AGAIN','getFocusedUnit','YUUMI_ASYNCIO_CANCELLED','_transformService','removeEventListener','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getTypeOfUnitDisposed$','enableFrontendLog','measureText','collab-text-range-','_transformHistoryAndStateStack','InsertRowCommandId','ENTITLE_INVALID_COUPON_CODE','current','APPLY_REJECT','code','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','unitID','_backgroundColor','use','_name','currentUsage','APPLY_PERMISSION_DENIED','_send','createSocket','column','colorChannel1','addClipboardHook','CONFLICT','REDEMPTION_CODE_FULLY_REDEEMED','parseInt','...','round','engine','text','triggerDblclick','361902vCHJWa','getConfig','_docSkeletonManagerService','YUUMI_UNABLE_LOAD_URL','startsWith','_docTransformSelectionsService','_anchorDot','_hasFormulaInDirtyRanges','YUUMI_RATE_OVER_LIMIT','newValue','_config','startColumn','stage','symbol','_updateLocalCursor','/universer-api/frontend/logs','_notificationService','_saveTaskMap','unit','_updateSubUnitFromURLParams','hide','_monkeyPatchLogService','svg','_docTransformIMECacheService','_collabCursorController','TEXT','executeCommand','result','dispose$','mask','collab-client.tooltip.reconnect','_context','UNIVER_DOC','getParam','_registerRenderDependencies','beginPath','_transformUndoRedoStack','name','selections','3878088iqfoNd','setItem','onLocalMutation','_cursorInfo$','_revisionService','currentSkeleton$','_removeClearOtherTimer','_renderManagerService','_messageService','override','univerjs-icon\x20univerjs-icon-','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_ALL_TABLES_IS_INVALID','MOBILE_HAS_BEEN_BOUND','disposeWithMe','startFormulaLimitUrl','_drawAnchor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CURRENT_STATUS_CANNOT_OPERATE','defineProperty','ENTITLE_CAN_NOT_BUY_LOWER_OTP','save','getUnit','SNAPSHOT_HAS_BEEN_REMOVED','ENTITLE_DUP_SUBSCRIPTION','collabStatus.syncing','deepClone','54HXebIh','YUUMI_NO_CUBOID_FOR_QUESTION','registerRefRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','INVALID_INVITE_CODE','OTHER_CLIENTS_EDITING','sheetID','_cursors','OFFLINE','getMember','Error','getColorFromTheme','Loading','url(#$1','_init','sheetId','_refreshCollabCursors','bottom','_initCommandExecutedListener','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','getCollabEntity$','USERS_LEAVE','roomMembers','drawWith','backgroundColor','transformRemoteChangeset','InsertColCommandId','_heartbeatTimer','collabStatus.conflict','getformulaLimitStatusUrl','sessionStatus$','onRendered','collab-text-anchor-','trim','_onCursorUpdate','EMAIL_HAS_BEEN_BOUND','disposeUnit','mutations','red.300','_setFormulaLimitStatus','has','M0\x200H16V16H0z','_currentUsage','_draw','map','_uploadLog','REDEMPTION_USER_NOT_ELIGIBLE','forEach','_initUnhandledRejectionListener','_labelPosition','transformSelections','_range','setConfig','saveOfflineData','UNDEFINED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_shapes','disableLocalCache','restore','getSheetBySheetId','toString','LOGIN_FAILED','subscribeEvent','_lastPointer','send','_configService','CHANGESET_REVISION_CONFILICT','YUUMI_AI_RUN_FAILED','_disabled','range','with','setParam','_online','getCurrentRevOfUnit','clipPath','_initWindowErrorListener','univer-flex\x20univer-items-center','post','addObjects','currentTheme$','purple.300','_removeCollabCursors','updateOfflineData','getVpScrollXYInfoByPosToVp','_instanceService','getActiveSheet','getUnhiddenWorksheets','_scheduleClearOtherTimer','onStarting','_initUserListener','ENTITLE_COUPON_USED_UP','getSheetId','setAlpha','evenodd','selection','7854496dmCVuI','_beforeCloseService','getUniverSheetInstance','_setupBeforeClosingHandler','_roomMembers$','isEditing','_initStatusComponent','Unknown\x20user','/universer-api/license/formula/limit/status','session.will-retry','requireSession','transformStateCache','children','_handleHeartbeatEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_lastResponseTimestamp','_handleLeaveEvent','join','_collabCursorState$','_initResize','_dataLoaderService','stageInfo','url(#on-line-icon_clip0_910_349)','push','roomMembers$','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','now','invokeId','black','displayName','top','asObservable','white','off-line-icon','565332glnXQq','onMouseMove','onTransformChange$','formula.calculation.started','_memberService','random','getRangePointData','then','univer-mr-2\x20univer-flex\x20univer-text-xl','getActiveRange','ALREADY_EXISTS','YUUMI_CONNECTOR_URL_NOT_FOUND','actions','_startDocCollabCursor','_doCreateSocket','imageSourceType','getCollabCursors$','_render','_textBubble','params','div','_localeService','length','_onRefRangeChange','_showGuardMessage','includes','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ENTITLE_INSUFFICIENT_QUOTA','PAYMENT_CHANNEL_NOT_SUPPORT','USER_IS_ANONYMOUS','_id','_initDependencies','_toggleOffline','totalFormulasToCalculate','INVITE_CODE_REQUIRED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','15164MDGhMz','next','setTimeout','isArray','sessionTicket','_initCommandInterceptor','m1Prime','REDEMPTION_CODE_INACTIVE','Success','assignAColorForMemberID','getCellMatrix','ENTITLE_NEED_BILLING_ADDRESS','closePath','delete','registerComponent','REDEMPTION_INVALID_CODE','all','complete','setActiveRange','_memberID','min','_anchor','entityInit$','_status$','collaboration.closeRoom','AUTHORIZE_CODE_ILLEGAL','setStateCache','_ensureSubject','onCommandExecuted','_startSheetCollabCursor','reason','getValue','_toggleOnline','ENTITLE_CHAT_LIMIT_EXCEED','_colorIndex','m2Prime','PENDING','session.connection-failed','_cursorShapes','getDocRanges','transform','ranges','_sheetSkeletonManagerService','ENSURE_SNAPSHOT_EXECUTION','eventID','getUnitId','bind','doc.mutation.rich-text-editing','10HDlDCg','toRgbString','lineTo','UniverIcon','syncEditingCollabCursor','height','FETCH_MISS','_univerInstanceService','Warning','_updateCollabCursors','_cachedData','runOnServer','INVITE_CODE_HAS_BEEN_UES','_getSaveTimeout','fill','href','addObject','getItem','_collabSessionService','_localStorageService','SUBMIT_CHANGESET_TIMEOUT','labelPosition','font','unshift','MoveRangeCommandId','/run/','_createSocketURL','dispose','source','arc','_refRangeService','_scheduleHeartbeat','_drawRectRange','location','_getScale','_entities','getOwnPropertyDescriptor','_handleJoinEvent','entries','EMAIL_VERIFY_CODE_MISMATCH','INTERNAL_ERROR','INVALID_ARGUMENT','getAncestorScale','redoState','_collaborationSessionService','add','colno','urlChange$','fillStyle','_docStateChangeManagerService','unhandledrejection','PY_RUNTIME_SCRIPT_ERROR','_unitOnClients','COMPLETION_FINISHED','DeleteRangeMoveUpCommandId','tag','LOGIN_TOKEN_PROCESSING_FAILED','currentColor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_injector','find','defs','searchParams','get','collaboration-client-ui.config','isActive','NOT_COLLAB','USER_NOT_FOUND','translate(.97)','onPointerMove$','_clearOtherTimers','memberID','transformMutationsWithChangeset','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','show','getTypeOfUnitAdded$','application/json','path','CONNECTOR_DATA_TOO_LARGE','getMergeData','undoState','unsubscribe','_eventUnsubscribe','history'];_0x1856=function(){return _0x41267e;};return _0x1856();}let Ie=class extends _0x4651e2{constructor(_0x1b0611,_0x5d867f,_0x3e59b5,_0x52750b,_0x285a88,_0x53d451,_0x20a64f){const _0x46d6ac=_0x200baf;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x46d6ac(0x37a),0x0),_(this,_0x46d6ac(0x234),[]),_(this,_0x46d6ac(0x16f),0x0),(this[_0x46d6ac(0x33c)]=_0x1b0611,this[_0x46d6ac(0x23c)]=_0x5d867f,this[_0x46d6ac(0x142)]=_0x3e59b5,this[_0x46d6ac(0x2d2)]=_0x52750b,this[_0x46d6ac(0x1dd)]=_0x285a88,this[_0x46d6ac(0x29a)]=_0x53d451,this['_localeService']=_0x20a64f,this['_initCommandInterceptor']());}[_0x200baf(0x1ab)](){const _0x149328=_0x200baf;this[_0x149328(0x342)](this[_0x149328(0x23c)]['beforeCommandExecuted']((_0x35c7c8,_0x25cc60)=>{const _0x597b09=_0x149328;var _0x372785;if(_0x35c7c8['id']!==_0x584a44['id'])return;const _0x5b7c94=_0x35c7c8[_0x597b09(0x195)];if(!this[_0x597b09(0x314)]((_0x372785=_0x5b7c94[_0x597b09(0x27a)])!=null?_0x372785:[]))return;if(!this[_0x597b09(0x266)]())throw this['_checkAndWaitForCalculationPermission'](_0x35c7c8,_0x25cc60),this[_0x597b09(0x19a)](),new _0x38929a();})),this['disposeWithMe'](this[_0x149328(0x23c)][_0x149328(0x1c2)]((_0x122d7d,_0x3662e4)=>{const _0x555866=_0x149328;if(_0x122d7d['id']!==_0x253cd0['id'])return;const _0x2fab2b=_0x122d7d[_0x555866(0x195)];if(vn(_0x2fab2b)){const _0x131d5f=_0x5930d8();this[_0x555866(0x234)][_0x555866(0x177)](_0x131d5f),this[_0x555866(0x282)](_0x131d5f);}else{if(pn(_0x2fab2b)&&this[_0x555866(0x234)][_0x555866(0x198)]>0x0){const _0x45b6df=this['_taskIds']['shift']();this[_0x555866(0x292)](_0x45b6df);}}}));}[_0x200baf(0x1f1)](){const _0x57e827=_0x200baf;super[_0x57e827(0x1f1)](),this['_clearPolling'](),this[_0x57e827(0x234)]=[],this[_0x57e827(0x37a)]=0x0,this[_0x57e827(0x24f)]=0x0,this[_0x57e827(0x16f)]=0x0;}async[_0x200baf(0x294)](_0x1a4319,_0x1e377a){const _0x5aa928=_0x200baf;for(let _0x1eceea=0x0;_0x1eceea<0x1e;_0x1eceea++)try{if(await this[_0x5aa928(0x22c)](),this['_checkCalculationAvailable']()){this[_0x5aa928(0x2da)](_0x1a4319,_0x1e377a),this[_0x5aa928(0x33c)]['show']({'content':this[_0x5aa928(0x197)]['t'](_0x5aa928(0x185)),'type':_0x5f0a68[_0x5aa928(0x1ae)]});return;}await new Promise(_0x1bdabe=>{const _0x22c2bc=_0x5aa928;this['_pollingInterval']=window[_0x22c2bc(0x1a8)](_0x1bdabe,0x3e8);});}catch(_0x35caed){this['_logService'][_0x5aa928(0x28f)](_0x35caed);}this['_messageService']['show']({'content':this[_0x5aa928(0x197)]['t']('formula.calculation.unable'),'type':_0x5f0a68['Error']});}[_0x200baf(0x2da)](_0x3312e9,_0x531e47){const _0x5437d7=_0x200baf;try{this[_0x5437d7(0x23c)][_0x5437d7(0x327)](_0x3312e9['id'],_0x3312e9[_0x5437d7(0x195)],_0x531e47);}catch(_0x197dbd){this['_logService']['error'](_0x197dbd);}}['_setFormulaLimitStatus'](_0x4080c9,_0x301816){const _0x5132e7=_0x200baf;_0x301816<this[_0x5132e7(0x16f)]||(this[_0x5132e7(0x16f)]=_0x301816,this[_0x5132e7(0x24f)]=Number[_0x5132e7(0x307)](_0x4080c9['maxFormulaLimit']),this[_0x5132e7(0x37a)]=Number['parseInt'](_0x4080c9[_0x5132e7(0x2fe)]));}async[_0x200baf(0x282)](_0x4219c3){const _0x4e4912=_0x200baf;var _0x1383a5,_0x34b3a7;const _0x155668=Date['now']();try{const _0x338093=((_0x1383a5=this[_0x4e4912(0x142)][_0x4e4912(0x30e)](_0x29e120))==null?void 0x0:_0x1383a5[_0x4e4912(0x343)])||Rn,_0x2a5354=(await this[_0x4e4912(0x2d2)][_0x4e4912(0x14e)](_0x338093,{'body':JSON[_0x4e4912(0x279)]({'taskId':_0x4219c3})}))[_0x4e4912(0x2af)];if(((_0x34b3a7=_0x2a5354[_0x4e4912(0x28f)])==null?void 0x0:_0x34b3a7[_0x4e4912(0x2f8)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x2a5354[_0x4e4912(0x26a)],_0x155668);}catch(_0x2b273b){this[_0x4e4912(0x29a)][_0x4e4912(0x28f)](_0x2b273b);}}async[_0x200baf(0x22c)](_0x38f4b5){const _0x2648e6=_0x200baf;var _0x111f32,_0x179fbe;const _0xe0aa85=Date['now']();try{const _0x4770a4=((_0x111f32=this[_0x2648e6(0x142)][_0x2648e6(0x30e)](_0x29e120))==null?void 0x0:_0x111f32[_0x2648e6(0x36d)])||Cn,_0x1b283d=_0x38f4b5?_0x4770a4+_0x2648e6(0x25c)+encodeURIComponent(_0x38f4b5):_0x4770a4,_0x443e8c=(await this[_0x2648e6(0x2d2)][_0x2648e6(0x215)](_0x1b283d))[_0x2648e6(0x2af)];if(((_0x179fbe=_0x443e8c[_0x2648e6(0x28f)])==null?void 0x0:_0x179fbe[_0x2648e6(0x2f8)])!==Z['OK'])return;this[_0x2648e6(0x377)](_0x443e8c['limitInfo'],_0xe0aa85);}catch(_0x45351f){this[_0x2648e6(0x29a)][_0x2648e6(0x28f)](_0x45351f);}}async[_0x200baf(0x292)](_0x30c44e){const _0x338b9d=_0x200baf;var _0x48f2eb,_0x550234;const _0x5a7d41=Date[_0x338b9d(0x17a)]();try{const _0x9960ab=((_0x48f2eb=this['_configService']['getConfig'](_0x29e120))==null?void 0x0:_0x48f2eb[_0x338b9d(0x28a)])||Dn,_0x55963c=(await this[_0x338b9d(0x2d2)]['post'](_0x9960ab,{'body':JSON[_0x338b9d(0x279)]({'taskId':_0x30c44e})}))[_0x338b9d(0x2af)];if(((_0x550234=_0x55963c[_0x338b9d(0x28f)])==null?void 0x0:_0x550234[_0x338b9d(0x2f8)])!==Z['OK'])return;this[_0x338b9d(0x377)](_0x55963c[_0x338b9d(0x26a)],_0x5a7d41);}catch(_0x34169a){this[_0x338b9d(0x29a)][_0x338b9d(0x28f)](_0x34169a);}}[_0x200baf(0x266)](){const _0x121349=_0x200baf;return this[_0x121349(0x24f)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x121349(0x37a)]>0x0;}[_0x200baf(0x22d)](){const _0x29a82a=_0x200baf;this[_0x29a82a(0x289)]&&(clearTimeout(this[_0x29a82a(0x289)]),this['_pollingInterval']=null);}[_0x200baf(0x19a)](){const _0x16c207=_0x200baf;this[_0x16c207(0x33c)]['show']({'content':this[_0x16c207(0x197)]['t'](_0x16c207(0x2d6)),'type':_0x5f0a68[_0x16c207(0x35c)]});}[_0x200baf(0x314)](_0x119952){const _0xa23369=_0x200baf;for(const _0x312d9b of _0x119952){const {unitId:_0x36b141,sheetId:_0x14e39f,range:_0x53b24e}=_0x312d9b,_0x176cd2=this['_univerInstanceService'][_0xa23369(0x34b)](_0x36b141);if(!_0x176cd2)continue;const _0x14d1e5=_0x176cd2[_0xa23369(0x13c)](_0x14e39f);if(!_0x14d1e5)continue;const _0x340be4=_0x14d1e5[_0xa23369(0x1b0)]();for(let _0x3c495d=_0x53b24e[_0xa23369(0x286)];_0x3c495d<=_0x53b24e[_0xa23369(0x233)];_0x3c495d++)for(let _0x5459d2=_0x53b24e[_0xa23369(0x318)];_0x5459d2<=_0x53b24e['endColumn'];_0x5459d2++){const _0x4a1f39=_0x340be4['getValue'](_0x3c495d,_0x5459d2);if(_0x4a1f39&&(_0x54e843(_0x4a1f39['f'])||_0x4f4a0b(_0x4a1f39['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x193ac9(_0x378cfb)),P(0x1,_0x32edf0),P(0x2,_0x56e2e1),P(0x3,_0x193ac9(_0x119c37)),P(0x4,_0x3ccdde),P(0x5,_0x443635),P(0x6,_0x193ac9(_0x58dae0))],Ie);var Nn=Object[_0x200baf(0x1fa)],bn=(_0x7723db,_0x52d9f9,_0x30ba22,_0x57065d)=>{const _0x213d5f=_0x200baf;for(var _0x43f988=_0x57065d>0x1?void 0x0:_0x57065d?Nn(_0x52d9f9,_0x30ba22):_0x52d9f9,_0x4d6edd=_0x7723db[_0x213d5f(0x198)]-0x1,_0x335358;_0x4d6edd>=0x0;_0x4d6edd--)(_0x335358=_0x7723db[_0x4d6edd])&&(_0x43f988=_0x335358(_0x43f988)||_0x43f988);return _0x43f988;},Ue=(_0x403020,_0x3be58e)=>(_0xddaa71,_0x12a5de)=>_0x3be58e(_0xddaa71,_0x12a5de,_0x403020);let He=class extends _0x4651e2{constructor(_0x19d512,_0x3a2c99,_0x2d24d3){const _0x58093a=_0x200baf;super(),_(this,_0x58093a(0x1e0),new Map()),_(this,_0x58093a(0x31e),new Map()),_(this,'_disabled',!0x1),(this[_0x58093a(0x142)]=_0x19d512,this[_0x58093a(0x1e9)]=_0x3a2c99,this['_revisionService']=_0x2d24d3);}[_0x200baf(0x13a)](){const _0x2daca3=_0x200baf;this[_0x2daca3(0x145)]=!0x0;}[_0x200baf(0x28e)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x1945e8=_0x200baf;return this[_0x1945e8(0x31e)];}['dispose'](){const _0x3d8c30=_0x200baf;this['exhaustSavingTask']()[_0x3d8c30(0x189)](()=>super[_0x3d8c30(0x1f1)]());}async['loadOfflineData'](_0x2b1955){const _0x3c5340=_0x200baf;return this[_0x3c5340(0x145)]?null:this['_localStorageService'][_0x3c5340(0x1e7)](_0x485938(_0x2b1955));}async[_0x200baf(0x136)](_0x563c7a,_0x2359e8){const _0x59394b=_0x200baf;return!!this[_0x59394b(0x1e9)]['setItem'](_0x563c7a,_0x2359e8);}[_0x200baf(0x153)](_0x489084,_0x145f97,_0x30bc7f,_0x1d97db){const _0x5a6e6c=_0x200baf,_0x4f8280=this[_0x5a6e6c(0x338)][_0x5a6e6c(0x14a)](_0x489084);this[_0x5a6e6c(0x1e0)]['set'](_0x489084,{'unitID':_0x489084,'type':_0x145f97,'awaitingChangeset':_0x30bc7f,'mutations':_0x1d97db,'rev':_0x4f8280}),this['_saveTaskMap'][_0x5a6e6c(0x378)](_0x489084)||this[_0x5a6e6c(0x2aa)](_0x489084);}[_0x200baf(0x2aa)](_0x296bcf){const _0x163ce4=_0x200baf,_0x4dc996=this[_0x163ce4(0x1e3)]();_0x4dc996===0x0?this['_saveCache'](_0x296bcf):this[_0x163ce4(0x31e)][_0x163ce4(0x2d1)](_0x296bcf,setTimeout(()=>this['_saveCache'](_0x296bcf),_0x4dc996));}[_0x200baf(0x1e3)](){const _0x5ecb3d=_0x200baf;var _0x4f57fd;return(_0x4f57fd=this['_configService'][_0x5ecb3d(0x30e)](_0x31d314))!=null?_0x4f57fd:_0x13deb4;}[_0x200baf(0x24e)](_0x4e85d8){const _0x38a18d=_0x200baf,_0x262ec4=this[_0x38a18d(0x31e)][_0x38a18d(0x215)](_0x4e85d8);return _0x262ec4!==void 0x0&&window['clearTimeout'](_0x262ec4),this[_0x38a18d(0x1e9)][_0x38a18d(0x335)](_0x485938(_0x4e85d8),this['_cachedData'][_0x38a18d(0x215)](_0x4e85d8))[_0x38a18d(0x189)](()=>this[_0x38a18d(0x31e)][_0x38a18d(0x1b3)](_0x4e85d8));}async['exhaustSavingTask'](){const _0x3053be=_0x200baf,_0x200e91=[];this[_0x3053be(0x31e)][_0x3053be(0x130)]((_0x46b8d2,_0x2f5c9a)=>{const _0xd77176=_0x3053be;window['clearTimeout'](_0x46b8d2),_0x200e91[_0xd77176(0x177)](this[_0xd77176(0x24e)](_0x2f5c9a)['then'](()=>{const _0x531d95=_0xd77176;this['_saveTaskMap'][_0x531d95(0x1b3)](_0x2f5c9a);}));}),await Promise[_0x3053be(0x1b6)](_0x200e91);}};He=bn([Ue(0x0,_0x56e2e1),Ue(0x1,_0x2a0434),Ue(0x2,_0x193ac9(_0x1e41b6))],He);class Ln extends _0x21bef9{constructor(){const _0x48737f=_0x200baf;super(),_(this,'urlChange$'),this[_0x48737f(0x205)]=_0x41e1c1(window,_0x48737f(0x26b))[_0x48737f(0x236)](_0x4759ef(this[_0x48737f(0x329)]),_0x41d02e(0x1),_0x192222(void 0x0));}[_0x200baf(0x148)](_0x3dca63,_0x49995c,_0x40e837=!0x1){const _0x21ff06=_0x200baf,_0x21a7a2=new URL(window[_0x21ff06(0x1f7)][_0x21ff06(0x1e5)]);_0x21a7a2['searchParams'][_0x21ff06(0x2d1)](_0x3dca63,_0x49995c),_0x40e837?window['history'][_0x21ff06(0x24d)]('','',_0x21a7a2[_0x21ff06(0x13d)]()):window[_0x21ff06(0x229)][_0x21ff06(0x247)]('','',_0x21a7a2[_0x21ff06(0x13d)]());}['removeParam'](_0x36a012,_0x4b54e8=!0x1){const _0x30342d=_0x200baf,_0x4a0e01=new URL(window[_0x30342d(0x1f7)][_0x30342d(0x1e5)]);_0x4a0e01['searchParams']['delete'](_0x36a012),_0x4b54e8?window['history'][_0x30342d(0x24d)]('','',_0x4a0e01[_0x30342d(0x13d)]()):window[_0x30342d(0x229)][_0x30342d(0x247)]('','',_0x4a0e01['toString']());}[_0x200baf(0x32e)](_0x53d50c){const _0x45cf73=_0x200baf;var _0x3eb2ca;return(_0x3eb2ca=new URL(window[_0x45cf73(0x1f7)][_0x45cf73(0x1e5)])[_0x45cf73(0x214)][_0x45cf73(0x215)](_0x53d50c))!=null?_0x3eb2ca:void 0x0;}}var Un=Object[_0x200baf(0x348)],Mn=Object[_0x200baf(0x1fa)],An=(_0x22de70,_0x4c0bc4,_0x1044fb)=>_0x4c0bc4 in _0x22de70?Un(_0x22de70,_0x4c0bc4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1044fb}):_0x22de70[_0x4c0bc4]=_0x1044fb,Pn=(_0x3690c5,_0x4d4733,_0x2124be,_0x2874d7)=>{const _0x2fd557=_0x200baf;for(var _0x57e99a=_0x2874d7>0x1?void 0x0:_0x2874d7?Mn(_0x4d4733,_0x2124be):_0x4d4733,_0x434a25=_0x3690c5[_0x2fd557(0x198)]-0x1,_0x52e46b;_0x434a25>=0x0;_0x434a25--)(_0x52e46b=_0x3690c5[_0x434a25])&&(_0x57e99a=_0x52e46b(_0x57e99a)||_0x57e99a);return _0x57e99a;},Me=(_0x2b0d29,_0x1ed23c)=>(_0x4ff4da,_0x44abaf)=>_0x1ed23c(_0x4ff4da,_0x44abaf,_0x2b0d29),wn=(_0x547dea,_0x3392bd,_0x40f3a3)=>An(_0x547dea,_0x3392bd+'',_0x40f3a3);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x5c9d70{constructor(_0x4eef94=_t,_0x479e9d,_0x6c9970,_0x1dabea){const _0x2c713c=_0x200baf;super(),this['_config']=_0x4eef94,this[_0x2c713c(0x33b)]=_0x479e9d,this['_injector']=_0x6c9970,this[_0x2c713c(0x142)]=_0x1dabea;const {..._0x281ece}=_0x3a2c7f({},_t,this['_config']);this[_0x2c713c(0x142)][_0x2c713c(0x135)](hn,_0x281ece);}[_0x200baf(0x159)](){const _0x25a76b=_0x200baf;this['_registerDependencies'](),this[_0x25a76b(0x1a1)]();}[_0x200baf(0x36f)](){const _0x137aaf=_0x200baf;this[_0x137aaf(0x32f)]();}[_0x200baf(0x2db)](){const _0xa0ca8f=_0x200baf;var _0xc154d4;const _0x5a0cc8=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x41390d,{'useClass':_0x13836a}],[_0xfd1d99,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0xa0ca8f(0x317)]['enableFrontendLog']&&_0x5a0cc8[_0xa0ca8f(0x177)]([le]),_0x45fd98(this[_0xa0ca8f(0x211)],_0x22d312(_0x5a0cc8,(_0xc154d4=this[_0xa0ca8f(0x317)])==null?void 0x0:_0xc154d4[_0xa0ca8f(0x33d)]));}['_registerRenderDependencies'](){const _0x27c9ad=_0x200baf;this[_0x27c9ad(0x342)](this[_0x27c9ad(0x33b)]['registerRenderModule'](_0x3f82f7[_0x27c9ad(0x32d)],[Fe])),this[_0x27c9ad(0x342)](this['_renderManagerService'][_0x27c9ad(0x2e2)](_0x3f82f7['UNIVER_SHEET'],[ke]));}[_0x200baf(0x1a1)](){const _0x1e05ab=_0x200baf;_0x45a3e3(this[_0x1e05ab(0x211)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x1e05ab(0x317)][_0x1e05ab(0x2f0)]&&_0x45a3e3(this[_0x1e05ab(0x211)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3414f6(_0x488310),Me(0x1,_0x4b6ef2),Me(0x2,_0x193ac9(_0x74bc13)),Me(0x3,_0x56e2e1)],Ye);var $n=Object[_0x200baf(0x1fa)],xn=(_0x111f86,_0x5dcbf8,_0x5ebe5f,_0x172c39)=>{for(var _0x1ce8d4=_0x172c39>0x1?void 0x0:_0x172c39?$n(_0x5dcbf8,_0x5ebe5f):_0x5dcbf8,_0x880de4=_0x111f86['length']-0x1,_0x45fad1;_0x880de4>=0x0;_0x880de4--)(_0x45fad1=_0x111f86[_0x880de4])&&(_0x1ce8d4=_0x45fad1(_0x1ce8d4)||_0x1ce8d4);return _0x1ce8d4;},J=(_0x171f81,_0x438055)=>(_0x2be273,_0x51bc4e)=>_0x438055(_0x2be273,_0x51bc4e,_0x171f81);let ut=class extends _0x945b60{constructor(_0xedc1b9,_0xfc649e,_0x2d2244,_0xc0eaf8,_0x1d2fb1){super(_0xedc1b9,_0xfc649e,_0x2d2244,_0xc0eaf8,_0x1d2fb1);}async[_0x200baf(0x301)](_0x75753d){const _0x46fc76=_0x200baf,_0x52b128=await this[_0x46fc76(0x24c)](),_0x198702=this[_0x46fc76(0x1f0)](_0x75753d,_0x52b128);return this[_0x46fc76(0x190)](_0x198702);}[_0x200baf(0x1f0)](_0xef4cea,_0x246a33){const _0x17debc=_0x200baf,_0x511259=typeof window>'u'?new URL(_0xef4cea):new URL(_0xef4cea,window[_0x17debc(0x1f7)]['origin']);_0x511259['searchParams'][_0x17debc(0x2d1)](_0x17debc(0x1aa),_0x246a33);const _0x4c7687=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x17debc(0x1f7)][_0x17debc(0x27c)]);return _0x4c7687['get'](_0x17debc(0x2b7))&&_0x511259[_0x17debc(0x214)]['set'](_0x17debc(0x2b7),_0x4c7687[_0x17debc(0x215)]('runId')),_0x511259[_0x17debc(0x13d)]();}async[_0x200baf(0x24c)](){const _0x1af725=_0x200baf;var _0x3152f,_0x4d5bcd,_0x2f4a24;const _0xa3d1b5=this[_0x1af725(0x142)][_0x1af725(0x30e)](_0x29e120),_0xfbf712=(_0x3152f=_0xa3d1b5==null?void 0x0:_0xa3d1b5['wsSessionTicketUrl'])!=null?_0x3152f:_0x41cd70;return(_0x2f4a24=(_0x4d5bcd=(await this['_httpService'][_0x1af725(0x215)](_0xfbf712,{'headers':{'Content-Type':_0x1af725(0x222)}}))[_0x1af725(0x2af)])==null?void 0x0:_0x4d5bcd[_0x1af725(0x249)])!=null?_0x2f4a24:'';}};ut=xn([J(0x0,_0x193ac9(_0x74bc13)),J(0x1,_0x193ac9(_0x119c37)),J(0x2,_0x56e2e1),J(0x3,_0x443635),J(0x4,_0xae48d4)],ut);var Bn=Object[_0x200baf(0x1fa)],Fn=(_0x4de10c,_0x39e561,_0x57dff6,_0x15d12b)=>{for(var _0x2a9406=_0x15d12b>0x1?void 0x0:_0x15d12b?Bn(_0x39e561,_0x57dff6):_0x39e561,_0x3fa9c6=_0x4de10c['length']-0x1,_0x4c6f86;_0x3fa9c6>=0x0;_0x3fa9c6--)(_0x4c6f86=_0x4de10c[_0x3fa9c6])&&(_0x2a9406=_0x4c6f86(_0x2a9406)||_0x2a9406);return _0x2a9406;},Ae=(_0x5470b9,_0xce6c40)=>(_0x59e2b5,_0x40b4a0)=>_0xce6c40(_0x59e2b5,_0x40b4a0,_0x5470b9);let dt=class extends _0x4651e2{constructor(_0x51b115,_0x57f25e,_0x24f930){const _0x59e045=_0x200baf;super(),this[_0x59e045(0x155)]=_0x51b115,this[_0x59e045(0x2d2)]=_0x57f25e,this[_0x59e045(0x142)]=_0x24f930;}async[_0x200baf(0x1e1)](_0x2cea1e,_0x21ad13,_0x4d933e,..._0x1fb743){const _0x5a1a10=_0x200baf;var _0x28b9e2,_0x2f3af8,_0x171712,_0x50585f;const _0x5dd68f=this[_0x5a1a10(0x155)][_0x5a1a10(0x2ea)]();if(!_0x5dd68f)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2812ef=((_0x28b9e2=this[_0x5a1a10(0x142)][_0x5a1a10(0x30e)](_0x5c1f65))!=null?_0x28b9e2:_0x3c15de)+'/'+_0x2cea1e+_0x5a1a10(0x1ef)+_0x21ad13,_0x54c7be=new URL(window[_0x5a1a10(0x1f7)]['href']),_0x2fec61={'scriptId':_0x2cea1e,'runId':(_0x2f3af8=_0x54c7be[_0x5a1a10(0x214)][_0x5a1a10(0x215)](_0x5a1a10(0x2b7)))!=null?_0x2f3af8:'','function':_0x21ad13,'unitId':_0x5dd68f[_0x5a1a10(0x1d3)](),'argsOfFunction':JSON[_0x5a1a10(0x279)](_0x1fb743),'invokeId':(_0x171712=_0x4d933e[_0x5a1a10(0x17b)])!=null?_0x171712:'','executionId':(_0x50585f=_0x4d933e[_0x5a1a10(0x2d3)])!=null?_0x50585f:''};try{const _0x3bf71c=await this[_0x5a1a10(0x2d2)][_0x5a1a10(0x14e)](_0x2812ef,{'body':_0x2fec61});return _0x3bf71c['body'][_0x5a1a10(0x28f)]&&_0x3bf71c['body']['error']['code']!==Z['OK']?_0x5a1a10(0x283):_0x3bf71c[_0x5a1a10(0x2af)][_0x5a1a10(0x328)];}catch{return _0x5a1a10(0x283);}}};dt=Fn([Ae(0x0,_0x3ccdde),Ae(0x1,_0x193ac9(_0x119c37)),Ae(0x2,_0x56e2e1)],dt);const St=0x7530,It=_0x200baf(0x2de);class rr extends _0x4651e2{constructor(){const _0x1330ad=_0x200baf;super(),_(this,_0x1330ad(0x1a0),_0x5930d8()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1330ad(0x20a),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x1330ad(0x21c),new Map()),_(this,'_unitStatus',new Map()),this[_0x1330ad(0x35e)]();}[_0x200baf(0x1f1)](){const _0xdf956c=_0x200baf;super[_0xdf956c(0x1f1)](),this[_0xdf956c(0x21c)]['forEach']((_0x11a33a,_0x1575a8)=>this['_removeClearOtherTimer'](_0x1575a8)),this['_heartbeatTimer']&&window['clearInterval'](this[_0xdf956c(0x36b)]);}[_0x200baf(0x2e5)](_0x1af183){const _0x44b37=_0x200baf;return this[_0x44b37(0x1c1)](_0x1af183)[_0x44b37(0x236)](_0x10311e());}[_0x200baf(0x246)](_0x19894f){const _0x2f0c22=_0x200baf;this[_0x2f0c22(0x2ab)][_0x2f0c22(0x2b9)]===0x0&&this[_0x2f0c22(0x1f5)](),this[_0x2f0c22(0x2ab)]['add'](_0x19894f),this[_0x2f0c22(0x300)]({'type':0x0,'memberID':this[_0x2f0c22(0x1a0)],'unitIDs':[_0x19894f],'isForwarded':!0x1});}[_0x200baf(0x374)](_0x35d878){const _0x1eb912=_0x200baf;this[_0x1eb912(0x2ab)][_0x1eb912(0x1b3)](_0x35d878),this[_0x1eb912(0x2ab)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x1eb912(0x254)](this[_0x1eb912(0x36b)]);}[_0x200baf(0x35e)](){const _0x36a3a7=_0x200baf;this['disposeWithMe'](_0x2877fe(_0x41e1c1(window,_0x36a3a7(0x25b))[_0x36a3a7(0x2ad)](_0x33e397=>{const _0x3e1188=_0x36a3a7;if(_0x33e397['key']!==It||!_0x33e397[_0x3e1188(0x316)])return;const _0x48bd72=JSON[_0x3e1188(0x25a)](_0x33e397[_0x3e1188(0x316)]);this['_handleEvent'](_0x48bd72);}))),window[_0x36a3a7(0x253)]('unload',()=>this[_0x36a3a7(0x300)]({'type':0x1,'memberID':this[_0x36a3a7(0x1a0)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x200baf(0x2dd)](_0x4fd400){const _0x4edd2b=_0x200baf;switch(_0x4fd400[_0x4edd2b(0x242)]){case 0x0:this[_0x4edd2b(0x1fb)](_0x4fd400);break;case 0x1:this['_handleLeaveEvent'](_0x4fd400);break;case 0x2:this['_handleHeartbeatEvent'](_0x4fd400);break;}}[_0x200baf(0x1fb)](_0x3f9ac8){const _0x13fab8=_0x200baf,{unitIDs:_0x35d8ee,memberID:_0x7b058c,isForwarded:_0x55c1e4}=_0x3f9ac8;_0x35d8ee[_0x13fab8(0x130)](_0x23281e=>{const _0x5d6b8a=_0x13fab8;if(!_0x55c1e4&&this[_0x5d6b8a(0x20a)][_0x5d6b8a(0x378)](_0x23281e)&&this['_ensureSubject'](_0x23281e)[_0x5d6b8a(0x1a7)](_0x5e0c7e[_0x5d6b8a(0x355)]),!this[_0x5d6b8a(0x20a)][_0x5d6b8a(0x378)](_0x23281e)||!this['_unitOnClients']['get'](_0x23281e)[_0x5d6b8a(0x378)](_0x7b058c)){const _0x251ec7=this[_0x5d6b8a(0x20a)][_0x5d6b8a(0x215)](_0x23281e)||new Set();_0x251ec7[_0x5d6b8a(0x203)](_0x7b058c),this[_0x5d6b8a(0x20a)][_0x5d6b8a(0x2d1)](_0x23281e,_0x251ec7),this[_0x5d6b8a(0x158)](_0x7b058c);}}),_0x55c1e4||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x13fab8(0x2ab)]],'isForwarded':!0x0});}[_0x200baf(0x158)](_0x54d080){const _0x512874=_0x200baf;this[_0x512874(0x33a)](_0x54d080);const _0x5af415=window[_0x512874(0x1a8)](()=>{const _0x1752c5=_0x512874;this[_0x1752c5(0x20a)][_0x1752c5(0x130)](_0x2246d4=>{const _0x1d81da=_0x1752c5;_0x2246d4[_0x1d81da(0x1b3)](_0x54d080);});},St*0x2);this[_0x512874(0x21c)][_0x512874(0x2d1)](_0x54d080,_0x5af415);}['_removeClearOtherTimer'](_0x567d0a){const _0x49eba0=_0x200baf;if(this[_0x49eba0(0x21c)]['has'](_0x567d0a)){const _0x2fb487=this[_0x49eba0(0x21c)][_0x49eba0(0x215)](_0x567d0a);_0x2fb487&&window['clearTimeout'](_0x2fb487),this[_0x49eba0(0x21c)][_0x49eba0(0x2d1)](_0x567d0a,null);}}[_0x200baf(0x170)](_0x1348ce){const _0x1993ab=_0x200baf,{memberID:_0x1a950d,unitIDs:_0x5da9ce}=_0x1348ce;_0x5da9ce[_0x1993ab(0x130)](_0xc95af2=>{const _0x475576=_0x1993ab;var _0x1ae3c1;const _0x331b5e=this[_0x475576(0x20a)][_0x475576(0x215)](_0xc95af2);_0x331b5e&&(_0x331b5e[_0x475576(0x1b3)](_0x1a950d),(_0x1ae3c1=this[_0x475576(0x1c1)](_0xc95af2))==null||_0x1ae3c1[_0x475576(0x1a7)](_0x331b5e[_0x475576(0x2b9)]===0x0?_0x5e0c7e[_0x475576(0x28d)]:_0x5e0c7e['OTHER_CLIENTS_EDITING']));}),this[_0x1993ab(0x33a)](_0x1a950d);}[_0x200baf(0x16d)](_0x26bbc1){const _0x530bfd=_0x200baf;this['_scheduleClearOtherTimer'](_0x26bbc1[_0x530bfd(0x21d)]);}['_send'](_0x44a50f){localStorage['setItem'](It,JSON['stringify'](_0x44a50f));}[_0x200baf(0x1f5)](){const _0x3d90fc=_0x200baf;this['_heartbeatTimer']=window[_0x3d90fc(0x252)](()=>{const _0x1d218a=_0x3d90fc;this[_0x1d218a(0x300)]({'type':0x2,'memberID':this[_0x1d218a(0x1a0)]});},St);}[_0x200baf(0x1c1)](_0x53e010){const _0x4abdf5=_0x200baf;return this[_0x4abdf5(0x2cc)][_0x4abdf5(0x378)](_0x53e010)||this[_0x4abdf5(0x2cc)][_0x4abdf5(0x2d1)](_0x53e010,new _0x2c6743(_0x5e0c7e[_0x4abdf5(0x28d)])),this['_unitStatus'][_0x4abdf5(0x215)](_0x53e010);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x10e5ae=_0x22a7;(function(_0x1c08d6,_0xef2192){const _0x361bca=_0x22a7,_0x2d9707=_0x1c08d6();while(!![]){try{const _0x4bbdd6=-parseInt(_0x361bca(0x20b))/0x1*(-parseInt(_0x361bca(0x39f))/0x2)+-parseInt(_0x361bca(0x16b))/0x3+parseInt(_0x361bca(0x17c))/0x4*(-parseInt(_0x361bca(0x235))/0x5)+parseInt(_0x361bca(0x338))/0x6*(parseInt(_0x361bca(0x335))/0x7)+parseInt(_0x361bca(0x2ca))/0x8+parseInt(_0x361bca(0x2f2))/0x9*(parseInt(_0x361bca(0x181))/0xa)+-parseInt(_0x361bca(0x1fd))/0xb*(parseInt(_0x361bca(0x300))/0xc);if(_0x4bbdd6===_0xef2192)break;else _0x2d9707['push'](_0x2d9707['shift']());}catch(_0x1c83ee){_0x2d9707['push'](_0x2d9707['shift']());}}}(_0x55b5,0x6e399));var Yt=Object[_0x10e5ae(0x2e8)],Wt=(_0xae245e,_0x343e2d,_0xd79749)=>_0x343e2d in _0xae245e?Yt(_0xae245e,_0x343e2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd79749}):_0xae245e[_0x343e2d]=_0xd79749,_=(_0x504bec,_0x5eccf0,_0x4148a0)=>Wt(_0x504bec,typeof _0x5eccf0!=_0x10e5ae(0x1c0)?_0x5eccf0+'':_0x5eccf0,_0x4148a0);import{jsx as _0xa9364f,jsxs as _0xd4918a}from'react/jsx-runtime';import{CollaborationStatus as _0x49794b,CollaborationSessionService as _0x46d329,CollaborationController as _0x49d37f,DataLoaderService as _0x104e64,MemberService as _0x319d5b,SessionStatus as _0x5dcd48,ILocalCacheService as _0x9b4c08,CollaborationUIEventService as _0x152d43,CollaborationUIEventId as _0x15f878,DocCollaborationEntity as _0x2e5e83,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x57c3c4,getLocalCacheKey as _0x4c5e39,LOCAL_CACHE_INTERVAL as _0x5ca98d,LOCAL_CACHE_INTERVAL_KEY as _0x5d33a4,UniverCollaborationClientPlugin as _0x4d5145,CollaborationSocketService as _0x37836e,DEFAULT_WS_SESSION_TICKET_URL as _0x12d59,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x53a66d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xd92e6b,UnitStatus as _0x207dfa}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x18978e,IUniverInstanceService as _0x173d8f,Inject as _0x1edbdc,Injector as _0x4c84de,Disposable as _0x3ae839,createIdentifier as _0x31c94a,ILogService as _0x55546c,ICommandService as _0x3b4a9a,Optional as _0x19c13a,RxDisposable as _0x3ce2d7,Workbook as _0x2815c8,DOC_RANGE_TYPE as _0xfb1d22,debounce as _0x3e8a30,Rectangle as _0x49e984,DisposableCollection as _0x268fce,toDisposable as _0x1a2dad,UniverInstanceType as _0x5b6f05,generateRandomId as _0x5f38d1,COLORS as _0x5f1293,ColorKit as _0x2bf61e,ThemeService as _0x2385c1,fromEventSubject as _0x48f479,Tools as _0x36fc49,CommandType as _0x129c45,IConfigService as _0x605853,CanceledError as _0x377e6a,isFormulaString as _0xb4d481,isFormulaId as _0x43d39d,ILocalStorageService as _0x4d7c29,DependentOn as _0x31ce94,Plugin as _0x42d66a,merge as _0x4a6691,registerDependencies as _0x1cf016,mergeOverrideWithDependencies as _0x2f3661,touchDependencies as _0x12a460}from'@univerjs/core';import{useObservable as _0xf6155f,useDependency as _0x177c11,IUIPartsService as _0x43acc8,BuiltInUIPart as _0x58f329,connectInjector as _0x2b6fc9,IBeforeCloseService as _0x2a1e35,IMessageService as _0x5322e7,INotificationService as _0x5066fc}from'@univerjs/ui';import{BehaviorSubject as _0x2a3ec5,switchMap as _0x5999ef,of as _0x44477d,takeUntil as _0x5b1bf8,debounceTime as _0x1e285a,Subject as _0x220ae7,filter as _0x4a0a2a,merge as _0x37469d,combineLatest as _0x4ce906,fromEvent as _0x5e1332,shareReplay as _0x5e31de,mapTo as _0x5b9306,distinctUntilChanged as _0x301459}from'rxjs';import{Tooltip as _0x4719f3,clsx as _0x2eb376,MessageType as _0x53c397}from'@univerjs/design';import{useRef as _0xaf0cb2,createElement as _0xbb5c48,forwardRef as _0x512dfc,useCallback as _0x2b30eb}from'react';import{IRemoteInstanceService as _0x153c7d}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1c0845,RefRangeService as _0x2d0348,SetSelectionsOperation as _0x36d9db,SheetsSelectionsService as _0x2fbecb,EffectRefRangId as _0x2cc45c,handleIRemoveRow as _0x3cf701,handleIRemoveCol as _0x16f206,handleMoveRange as _0x15f2c4,handleInsertRow as _0x5dedcd,handleInsertRangeMoveRight as _0x260bc4,handleInsertRangeMoveDown as _0x28ffda,handleInsertCol as _0x8f7d1f,handleDeleteRangeMoveUp as _0x239603,handleDeleteRangeMoveLeft as _0x3c1c71,runRefRangeMutations as _0xb9f112}from'@univerjs/sheets';import{Shape as _0x1dca1c,Rect as _0x44a078,getColor as _0x127f23,RegularPolygon as _0xbf1443,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x26adfe,Vector2 as _0x4f772d,SHEET_VIEWPORT_KEY as _0x4efa2a,IRenderManagerService as _0x492138}from'@univerjs/engine-render';import{HTTPService as _0x19584b,ISocketService as _0x219ae4,WebSocketService as _0x26b325}from'@univerjs/network';import{IDocClipboardService as _0x59bb07,NodePositionConvertToCursor as _0x1bfd44,NodePositionConvertToRectRange as _0x52a367,TEXT_RANGE_LAYER_INDEX as _0x24b623,SetDocZoomRatioOperation as _0x1e3d4b,DocIMEInputManagerService as _0x5ed8e2,DocStateChangeManagerService as _0x55703d}from'@univerjs/docs-ui';import{IImageIoService as _0x38f674}from'@univerjs/drawing';import{ITransformService as _0x1c83da,CollaborationEvent as _0x482560,isTransformMutationFailure as _0x169852,isTransformMutationsWithChangesetSuccess as _0xd2aef2,RevisionService as _0x40fb3e,ISnapshotServerService as _0x882767}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x81a704,RichTextEditingMutation as _0x443caf,DocSelectionManagerService as _0x377aef,DocSkeletonManagerService as _0x420697}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x23408d,serializeRangeWithSheet as _0x31d697,FormulaExecuteStageType as _0x239954,FormulaExecutedStateType as _0x2fe971,SetFormulaCalculationStartMutation as _0x5f56a2,SetFormulaCalculationNotificationMutation as _0x38f980}from'@univerjs/engine-formula';import{map as _0x1437cc,filter as _0x328732,throttleTime as _0x276b3c,takeUntil as _0x40836a,switchMap as _0x1beeb6}from'rxjs/operators';import{SheetSkeletonManagerService as _0x5caf3e,getCoordByCell as _0x52e643,getSheetObject as _0x1744fb}from'@univerjs/sheets-ui';function Ge({ref:_0x2ce2e8,..._0x194184}){const _0x5db670=_0x10e5ae,{icon:_0x2af43b,id:_0x45e165,className:_0x157cb6,extend:_0x4c3171,..._0x593a6d}=_0x194184,_0x557107=('univerjs-icon\x20univerjs-icon-'+_0x45e165+'\x20'+(_0x157cb6||''))['trim'](),_0x44fd0a=_0xaf0cb2('_'+vi());return At(_0x2af43b,''+_0x45e165,{'defIds':_0x2af43b[_0x5db670(0x20d)],'idSuffix':_0x44fd0a['current']},{'ref':_0x2ce2e8,'className':_0x557107,..._0x593a6d},_0x4c3171);}function At(_0x334b8c,_0x22e001,_0x15239b,_0x2e7746,_0x342b78){const _0x40eba2=_0x10e5ae;return _0xbb5c48(_0x334b8c['tag'],{'key':_0x22e001,...gi(_0x334b8c,_0x15239b,_0x342b78),..._0x2e7746},(Ei(_0x334b8c,_0x15239b)[_0x40eba2(0x344)]||[])[_0x40eba2(0x310)]((_0x37a83f,_0xeaf234)=>At(_0x37a83f,_0x22e001+'-'+_0x334b8c[_0x40eba2(0x301)]+'-'+_0xeaf234,_0x15239b,void 0x0,_0x342b78)));}function gi(_0xcba73c,_0x79ad60,_0x5aa8da){const _0x47f963=_0x10e5ae,_0x4a387f={..._0xcba73c['attrs']};_0x5aa8da!=null&&_0x5aa8da[_0x47f963(0x37a)]&&_0x4a387f[_0x47f963(0x3a5)]==='colorChannel1'&&(_0x4a387f['fill']=_0x5aa8da[_0x47f963(0x37a)]),_0xcba73c[_0x47f963(0x301)]===_0x47f963(0x1fe)&&_0x4a387f['id']&&(_0x4a387f['id']=_0x4a387f['id']+_0x79ad60[_0x47f963(0x3b7)]),Object['entries'](_0x4a387f)[_0x47f963(0x2cd)](([_0x19d6b2,_0x51c88b])=>{const _0x1902b7=_0x47f963;_0x19d6b2==='mask'&&typeof _0x51c88b==_0x1902b7(0x249)&&(_0x4a387f[_0x19d6b2]=_0x51c88b[_0x1902b7(0x1a9)](/url\(#(.*)\)/,_0x1902b7(0x278)+_0x79ad60[_0x1902b7(0x3b7)]+')'));});const {defIds:_0x43bde8}=_0x79ad60;return!_0x43bde8||_0x43bde8[_0x47f963(0x39a)]===0x0||(_0xcba73c[_0x47f963(0x301)]===_0x47f963(0x342)&&_0x4a387f['xlink:href']&&(_0x4a387f[_0x47f963(0x2d7)]=_0x4a387f[_0x47f963(0x2d7)]+_0x79ad60[_0x47f963(0x3b7)]),Object[_0x47f963(0x341)](_0x4a387f)[_0x47f963(0x2cd)](([_0x4e7ea9,_0x1cb429])=>{const _0x296374=_0x47f963;typeof _0x1cb429==_0x296374(0x249)&&(_0x4a387f[_0x4e7ea9]=_0x1cb429[_0x296374(0x1a9)](/url\(#(.*)\)/,_0x296374(0x278)+_0x79ad60[_0x296374(0x3b7)]+')'));})),_0x4a387f;}function Ei(_0x3dda06,_0x40aced){const _0x542d1e=_0x10e5ae;var _0x225602;const {defIds:_0x821025}=_0x40aced;return!_0x821025||_0x821025[_0x542d1e(0x39a)]===0x0?_0x3dda06:_0x3dda06[_0x542d1e(0x301)]===_0x542d1e(0x384)&&((_0x225602=_0x3dda06[_0x542d1e(0x344)])!=null&&_0x225602[_0x542d1e(0x39a)])?{..._0x3dda06,'children':_0x3dda06[_0x542d1e(0x344)][_0x542d1e(0x310)](_0x105579=>typeof _0x105579[_0x542d1e(0x284)]['id']==_0x542d1e(0x249)&&_0x821025&&_0x821025['includes'](_0x105579[_0x542d1e(0x284)]['id'])?{..._0x105579,'attrs':{..._0x105579[_0x542d1e(0x284)],'id':_0x105579[_0x542d1e(0x284)]['id']+_0x40aced[_0x542d1e(0x3b7)]}}:_0x105579)}:_0x3dda06;}function vi(){const _0x50c951=_0x10e5ae;return Math['random']()[_0x50c951(0x1a2)](0x24)[_0x50c951(0x20a)](0x2,0x8);}Ge['displayName']=_0x10e5ae(0x329);const pi={'tag':'svg','attrs':{'xmlns':_0x10e5ae(0x19e),'fill':_0x10e5ae(0x313),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x10e5ae(0x188)},'children':[{'tag':_0x10e5ae(0x3b0),'attrs':{'stroke':_0x10e5ae(0x287),'d':_0x10e5ae(0x311),'strokeLinecap':_0x10e5ae(0x2da),'strokeLinejoin':_0x10e5ae(0x2da),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10e5ae(0x399),'attrs':{'id':_0x10e5ae(0x314)},'children':[{'tag':_0x10e5ae(0x3b0),'attrs':{'fill':'white','d':_0x10e5ae(0x174)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x512dfc(function(_0x1e1f3d,_0x3c21fc){const _0x3f54e5=_0x10e5ae;return _0xbb5c48(Ge,Object[_0x3f54e5(0x3ba)]({},_0x1e1f3d,{'id':_0x3f54e5(0x36d),'ref':_0x3c21fc,'icon':pi}));});function _0x55b5(){const _0x292a8b=['_configService','_collabCursorController','DeleteRangeMoveUpCommandId','_revisionService','now','currentTheme$','div','setConfig','makeDirty','stack','flatMap','_docSkeleton','_shapes','_onCursorUpdate','1em','_docSyncEditingCollabCursorService','_scene','registerRenderModule','_transformPreviousActiveRange','PAYMENT_CHANNEL_NOT_SUPPORT','?taskId=','off-line-icon','_localeService','m1Prime','ACTIVE_UNIT_EVENT_CHANNEL','getSkeleton','rgba(255,\x20255,\x20255,\x200.01)','mutations','LICENSE_MAX_UNITS_EXCEEDED','dispose','_context','_hovered','formula.calculation.unable','REDEMPTION_INVALID_CODE','colorChannel1','registerBeforeClose','_syncEditingCollabCursorService','maxFormulaLimit','_removeClearOtherTimer','_memberService','_currentUsage','from','InsertRowCommandId','memberID','defs','message','START_CALCULATION','_drawTextRange','roomMembers','pushState','LICENSE_IMPORT_SIZE_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','hide','arc','_lastResponseTimestamp','collabStatus.syncing','_drawAnchor','_unitStatus','getCurrentUnitForType','_scheduleClearOtherTimer','cursorInfo$','enableFrontendLog','on-line-icon','NOT_COLLAB','reason','clipPath','length','bottom','startColumn','setAlpha','NOT_FOUND','818842hIpChP','JOIN_ROOM_FAILED','getActiveRange','TOO_MANY_REQUESTS','getOffsetConfig','_initStatusComponent','fill','translate(.97)','RemoveRowCommandId','transformIMECache','SUBMIT_CHANGESET_TIMEOUT','UPDATE_CURSOR','InsertRangeMoveRightCommandId','_injector','UNIVER_DOC','session.will-retry','getRenderById','path','closePath','override','getFocusedUnit','_refreshCollabCursors','_docSkeletonManagerService','with','idSuffix','collaboration-client-ui.config','getMergeData','assign','collaboration.closeRoom','APPLY_REJECT','getStateCache','fillStyle','USER_NOT_INVITED_CODE','getUniverSheetInstance','_document','setUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','INVITE_CODE_ALREADY_BOUND','type','onCommandExecuted','141726kovpCx','size','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','restore','_docClipboardService','MOBILE_HAS_BEEN_BOUND','_initWindowErrorListener','_initUserListener','SOCKET_FAILED','M0\x200H16V16H0z','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_HAS_BEEN_UES','collab-text-range-','_init','parse','univer-mr-2\x20univer-flex\x20univer-text-xl','MOBILE_VERIFY_CODE_MISMATCH','4rVlxVE','onLocalMutation','_drawRectRange','_messageService','getActiveSheet','30OAmMPz','_getSaveTimeout','_backgroundColor','_roomMembers$','_showGuardMessage','setInterval','svg','url(#off-line-icon_clip0_910_343)','_getSheetObject','_heartbeatTimer','...','_textBubble','DeleteRangeMoveLeftCommandId','transformStateCache','eventID','COMPLETION_FINISHED','exhaustSavingTask','height','some','functionsExecutedState','text','find','/universer-api/license/formula/limit/status','disposeUnit','UNRECOGNIZED','selection','getCellPositionByOffset','replaceState','engine','http://www.w3.org/2000/svg','max','_instanceService','subunit','toString','_memberID','unit','_sheetSkeletonManagerService','getUnitStatus$','source','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','replace','_eventUnsubscribe','_assignedColors','NO_OTHER_CLIENTS_EDITING','addObjects','YUUMI_RATE_OVER_LIMIT','_updateCollabCursors','OnLineIcon','_draw','getDocRanges','collaboration.offline-data-not-saved','show','drawWith','getTypeOfUnitDisposed$','/universer-api/license/formula/limit/start','unitId','OffLineIcon','Warning','_checkAndWaitForCalculationPermission','_updateLocalCursor','_transformUndoRedoStack','_cursor','collab-client.tooltip.reconnect','symbol','removeEventListener','_online','InsertRangeMoveDownCommandId','beginPath','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_getAnchorBounding','OTHER_CLIENTS_EDITING','clearInterval','_handleLeaveEvent','jiqing.500','USER_NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','createInstance','getformulaLimitStatusUrl','setParam','limitInfo','getConfig','APPLY_PERMISSION_DENIED','pipe','YUUMI_ASYNCIO_CANCELLED','_collaborationUIEventService','ENTITLE_COUPON_USED_UP','requireSession','EMAIL_VERIFY_CODE_MISMATCH','clearTimeout','univer-flex\x20univer-items-center','_toggleOffline','search','transformMutation','collabCursorState$','_startSheetCollabCursor','save','_cursorShapes','_initStatusListener','EMAIL_HAS_BEEN_BOUND','addHandlerCallback','dispose$','getRangePointData','getMemberID','AWAITING_WITH_PENDING','stringify','_startCalculationLimit','_uploadLog','_initEntityListener','fillRule','FETCH_MISS','_collaborationSessionService','history','stage','ENTITLE_INVALID_COUPON_CODE','getItem','deepClone','ranges','subscribeEvent','UNIVER_SHEET','_refRangeService','lineTo','runId','startRow','_removeCollabCursors','355036idKAnv','mask','_send','_clearPolling','getVpScrollXYInfoByPosToVp','toRgbString','_uiPartsService','MUTATION','USERS_LEAVE','REDEMPTION_CODE_INACTIVE','/universer-api/license/formula/limit/done','YUUMI_ALL_TABLES_IS_INVALID','debug','substring','1eULdSM','ONLINE','defIds','getColorFromTheme','resize','_applyCommand','session.collaboration-timeout','disposeWithMe','addEventListener','hovered','REDEMPTION_CODE_NOT_STARTED','href','ENTITLE_CHAT_LIMIT_EXCEED','_handleEvent','/run/','_httpService','getUnitId','collabStatus.offline','_cursorInfo$','_getMergeRange','uni.network.url-service','[Window\x20Error]:\x20','AUTHORIZE_CODE_ILLEGAL','_onRefRangeChange','_range','cursorInfo','_beforeCloseService','_registerRenderDependencies','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','[Unhandled\x20Rejection]:\x20','subscribe','INVITE_CODE_REQUIRED','onPointerLeave$','_initResize','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','setItem','#FFF','invokeId','_docTransformIMECacheService','permission.content','startFormulaLimitUrl','loadUnit','2636035xKflPC','code','_updateSubUnitFromURLParams','post','width','has','currentSkeleton$','complete','_initEvent','_setupBeforeClosingHandler','font','params','_taskIds','transformRemoteChangeset','onPointerEnter$','displayName','_clearOtherTimers','AWAITING','ENTITLE_DUP_SUBSCRIPTION','yellow.400','string','on-line-icon_clip0_910_349','[LogService\x20Error]:\x20','push','_transformService','collab-rect-range-','[RemoteUniscriptService]:\x20no\x20focused\x20unit','roomMembers$','TEXT','getTypeOfUnitAdded$','data','green.600','filename','_ensureSubject','_handleHover','_localStorageService','getValue','stageInfo','HEADER_MENU','Unknown\x20user','undoState','shift','collabStatus.notCollab','colno','searchParams','docStateChange$','_setFormulaLimitStatus','_docTransformSelectionsService','findNodePositionByCharIndex','_entities','YUUMI_SUBSCRIPTION_NOT_FOUND','_session','selections','_univerInstanceService','unsubscribe','socket$','_color','_toggleOnline','_handleHeartbeatEvent','newValue','getAncestorScale','init','_hideTimer','INVALID_INVITE_CODE','transformMutationsWithChangeset','add','asObservable','url(#$1','PERMISSION_DENIED','_colorIndex','SYNCED','m2Prime','_updateURLWithCurrentState','getCollabEntity$','CURRENT_STATUS_CANNOT_OPERATE','storage','_urlService','getRelativeToViewportCoord','top','attrs','ALREADY_EXISTS','collabStatus.conflict','currentColor','CONNECTOR_DATA_TOO_LARGE','registerComponent','_initUnhandledRejectionListener','_lastPointer','_logService','REDEMPTION_CODE_FULLY_REDEEMED','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','focused$','APPLY_REVISION_CONFILICT','_createSocketURL','ENTITLE_INSUFFICIENT_QUOTA','ERROR_AGAIN','then','_monkeyPatchLogService','getSheetBySheetId','moveTo','_handleJoinEvent','values','REDEMPTION_USER_NOT_ELIGIBLE','_collabSessionService','collabStatus.synced','_themeService','key','YUUMI_CONNECTOR_URL_NOT_FOUND','getOwnPropertyDescriptor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','color','_colorAssignService','_saveTaskMap','origin','_localCacheService','YUUMI_AI_RUN_FAILED','evenodd','InsertColCommandId','_cachedData','setStateCache','_transformHistoryAndStateStack','purple.300','collab-text-anchor-','_anchor','INTERNAL_ERROR','getUnit','ENTITLE_NEED_BILLING_ADDRESS','unitID','formula.calculation.waiting','blue.400','onTransformChange$','onMouseMove','_registerDependencies','UNAUTHENTICATED','_scheduleSaving','OTHER_CLIENT_EDITING','executeCommand','textRanges','YUUMI_UNABLE_LOAD_URL','_initCommandInterceptor','_hasFormulaInDirtyRanges','activeSheet$','_anchorDot','CHANGESET_REVISION_CONFILICT','_imageIoService','UNDEFINED','_labelPosition','setShapeProps','_checkCalculationAvailable','5225928mOxmkX','session.connection-failed','subUnitId','forEach','_getSessionTicket','contains','dirtyRanges','_initCommandExecutedListener','INVALID_ARGUMENT','loadOfflineData','_docStateChangeManagerService','set','min','xlink:href','getCurrentSelections','registerRefRange','round','enableLocalCache','_selfUnitIDs','WECHAT_HAS_BEEN_BOUND','YUUMI_NO_CUBOID_FOR_QUESTION','OFFLINE','body','isArray','_collabCursorState$','_saveCache','_getScale','_hover','_releaseCalculationLimit','endRow','defineProperty','_setupSubUnitSync','DATA_SOURCE_TOO_LARGE','LICENSE_DISTRO_REJECTED','LOGIN_FAILED','addObject','getParam','_name','saveOfflineData','editingUnit','228429ApHGGq','YUUMI_TABLE_NOT_FOUND_IN_UNIT','black','saveTaskMap','error','REDEMPTION_CODE_HAS_BEEN_CREATED','reconnect','_render','_renderManagerService','[CollaborationDataLoaderController]','SNAPSHOT_INVALID_SNAPSHOT','runOnServer','CONFLICT','_disabled','72LbBZKK','tag','disableLocalCache','getMember','send','_notificationService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','Error','permission.title','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','delete','_onCursorDelete','_docTransformStateCacheService','getUndoRedoMutationParamsCache','_config','get','map','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','_status$','none','off-line-icon_clip0_910_343','_id','Success','_scheduleHeartbeat','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','startsWith','YUUMI_URL_COL_OUT_OF_RANGE','skeleton','_maxFormulaLimit','event$','unshift','_pollingInterval','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ENTITLE_COUPON_EXPIRED','APPLY_NON_SEQUENTIAL_REVISION','_unitOnClients','redoState','VIEW_MAIN','REDEMPTION_USER_REDEEM_TIMES_EXCEED','isEditing','endColumn','UniverIcon','_commandService','FromArray','getViewport','getUnhiddenWorksheets','ENTITLE_REPORT_LIMIT_EXCEED','onPointerMove$','_getFormulaLimitStatus','_entityInit$','application/json','transformByState','assignAColorForMemberID','565467QycToA','entityInit$','_cursors','6pPXcmv','location','removeParam','_dataLoaderService','LICENSE_EXPORT_SIZE_EXCEEDED','updateOfflineData','fillText','ticket','sheetId','entries','use','collaboration.single-unit.warning','children','name','createSocket','collabStatus.fetchMiss','imageSourceType','getSheetId','getCollabCursors$','column','syncEditingCollabCursor','parseInt','measureText','split','_collaborationController','range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setTimeout','sheetID','row','isActive','getCurrent'];_0x55b5=function(){return _0x292a8b;};return _0x55b5();}Pt[_0x10e5ae(0x244)]=_0x10e5ae(0x1b9);const Oi={'tag':_0x10e5ae(0x187),'attrs':{'xmlns':_0x10e5ae(0x19e),'fill':_0x10e5ae(0x313),'viewBox':'0\x200\x2017\x2016','width':_0x10e5ae(0x366),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x10e5ae(0x3b0),'attrs':{'stroke':_0x10e5ae(0x287),'d':'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','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x10e5ae(0x384),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x10e5ae(0x3b0),'attrs':{'fill':'white','d':_0x10e5ae(0x174),'transform':_0x10e5ae(0x3a6)}}]}]}],'defIds':[_0x10e5ae(0x24a)]},wt=_0x512dfc(function(_0x2c6818,_0x3c51d6){const _0x93eda9=_0x10e5ae;return _0xbb5c48(Ge,Object[_0x93eda9(0x3ba)]({},_0x2c6818,{'id':_0x93eda9(0x396),'ref':_0x3c51d6,'icon':Oi}));});wt[_0x10e5ae(0x244)]=_0x10e5ae(0x1b0);function Ti(_0xc2a206){const _0x53f937=_0x10e5ae;switch(_0xc2a206){case _0x49794b['OFFLINE']:return _0x53f937(0x21c);case _0x49794b[_0x53f937(0x2fe)]:return _0x53f937(0x286);case _0x49794b[_0x53f937(0x1ee)]:return _0x53f937(0x347);case _0x49794b[_0x53f937(0x397)]:return _0x53f937(0x25f);case _0x49794b[_0x53f937(0x246)]:case _0x49794b[_0x53f937(0x1e8)]:return _0x53f937(0x38f);case _0x49794b[_0x53f937(0x27b)]:case _0x49794b['PENDING']:return _0x53f937(0x29d);}}function Ci(_0x483a48){const _0x137e61=_0x10e5ae,{status$:_0x1dca82}=_0x483a48,_0x228af3=_0xf6155f(_0x1dca82,_0x49794b[_0x137e61(0x397)]),_0xcd5fda=_0x177c11(_0x18978e),_0x340f6a=_0x177c11(_0x46d329),_0x4fb4f9=_0x228af3!==_0x49794b[_0x137e61(0x2df)],_0x1b1068=_0xcd5fda['t'](Ti(_0x228af3)),_0x20d57c=_0x4fb4f9?_0xa9364f(wt,{}):_0xa9364f(Pt,{}),_0x4209df=_0x2b30eb(()=>{const _0x4e925c=_0x137e61;_0x4fb4f9||_0x340f6a[_0x4e925c(0x2f8)]();},[_0x4fb4f9,_0x340f6a]);function _0x24c974(){const _0x33b3de=_0x137e61;return _0xd4918a(_0x33b3de(0x35e),{'className':_0x33b3de(0x1da),'onClick':_0x4209df,'children':[_0xa9364f(_0x33b3de(0x35e),{'className':_0x2eb376(_0x33b3de(0x17a),{'univer-text-green-500':_0x4fb4f9,'univer-text-red-500':!_0x4fb4f9}),'children':_0x20d57c}),_0xa9364f('div',{'className':_0x33b3de(0x318),'children':_0x1b1068})]});}return _0x4fb4f9?_0x24c974():_0xa9364f(_0x4719f3,{'title':_0xcd5fda['t'](_0x137e61(0x1bf)),'children':_0x24c974()});}var Ri=Object[_0x10e5ae(0x2a1)],Di=(_0x1177ce,_0x28ea61,_0x773938,_0x31613d)=>{const _0x8b0ed8=_0x10e5ae;for(var _0x1237e3=_0x31613d>0x1?void 0x0:_0x31613d?Ri(_0x28ea61,_0x773938):_0x28ea61,_0x24d759=_0x1177ce[_0x8b0ed8(0x39a)]-0x1,_0x1a6136;_0x24d759>=0x0;_0x24d759--)(_0x1a6136=_0x1177ce[_0x24d759])&&(_0x1237e3=_0x1a6136(_0x1237e3)||_0x1237e3);return _0x1237e3;},se=(_0x125b48,_0x4b3382)=>(_0x12cc50,_0x5bd601)=>_0x4b3382(_0x12cc50,_0x5bd601,_0x125b48);let ae=class extends _0x3ae839{constructor(_0x45ba80,_0x21e065,_0x2c4946,_0x2ecbed){const _0x7ba22f=_0x10e5ae;super(),_(this,'_status$',new _0x2a3ec5(_0x49794b[_0x7ba22f(0x397)])),(this['_univerInstanceService']=_0x45ba80,this[_0x7ba22f(0x3ac)]=_0x21e065,this['_collaborationController']=_0x2c4946,this[_0x7ba22f(0x203)]=_0x2ecbed,this[_0x7ba22f(0x3a4)](),this['_initStatusListener']());}[_0x10e5ae(0x1e2)](){const _0x30e631=_0x10e5ae;this[_0x30e631(0x212)](this['_univerInstanceService'][_0x30e631(0x290)]['pipe'](_0x5999ef(()=>{const _0x290703=_0x30e631,_0x44281f=this[_0x290703(0x26a)][_0x290703(0x3b3)]();return _0x44281f?this[_0x290703(0x350)][_0x290703(0x27e)](_0x44281f['getUnitId']()):_0x44477d(null);}),_0x5999ef(_0x35925d=>_0x35925d?_0x35925d['status$']:_0x44477d(_0x49794b[_0x30e631(0x397)])))[_0x30e631(0x229)](_0x4dc01c=>{const _0x378b8e=_0x30e631;this['_status$'][_0x378b8e(0x28e)](_0x4dc01c);}));}['_initStatusComponent'](){const _0x441494=_0x10e5ae;this[_0x441494(0x212)](this[_0x441494(0x203)][_0x441494(0x289)](_0x58f329[_0x441494(0x25b)],()=>_0x2b6fc9(Ni({'status$':this[_0x441494(0x312)][_0x441494(0x277)]()}),this[_0x441494(0x3ac)])));}};ae=Di([se(0x0,_0x173d8f),se(0x1,_0x1edbdc(_0x4c84de)),se(0x2,_0x1edbdc(_0x49d37f)),se(0x3,_0x43acc8)],ae);function Ni(_0x1e2c4b){const {status$:_0x5cac04}=_0x1e2c4b;return function(){return _0xa9364f(Ci,{'status$':_0x5cac04});};}const yt=_0x31c94a(_0x10e5ae(0x21f));var bi=Object[_0x10e5ae(0x2a1)],Li=(_0x2ddb17,_0x21c537,_0x3b0eb4,_0xeba06)=>{const _0x306e92=_0x10e5ae;for(var _0x5dd546=_0xeba06>0x1?void 0x0:_0xeba06?bi(_0x21c537,_0x3b0eb4):_0x21c537,_0x22d06e=_0x2ddb17[_0x306e92(0x39a)]-0x1,_0x2dc741;_0x22d06e>=0x0;_0x22d06e--)(_0x2dc741=_0x2ddb17[_0x22d06e])&&(_0x5dd546=_0x2dc741(_0x5dd546)||_0x5dd546);return _0x5dd546;},K=(_0x4c7ce3,_0xca6357)=>(_0x2255b6,_0x19ad8a)=>_0xca6357(_0x2255b6,_0x19ad8a,_0x4c7ce3);let ce=class extends _0x3ce2d7{constructor(_0x26da92,_0x451364,_0x4df1ce,_0xea5be0,_0x43c400){const _0x1210b2=_0x10e5ae;super(),this[_0x1210b2(0x281)]=_0x26da92,this['_logService']=_0x451364,this['_commandService']=_0x4df1ce,this[_0x1210b2(0x33b)]=_0xea5be0,_0x43c400?_0x43c400==null||_0x43c400['whenReady']()['then'](()=>this['_init']()):(this[_0x1210b2(0x28c)][_0x1210b2(0x209)](_0x1210b2(0x2fb),_0x1210b2(0x16d)),this[_0x1210b2(0x178)]());}async[_0x10e5ae(0x178)](){const _0x4df881=_0x10e5ae,_0x16d6f1=this['_urlService'][_0x4df881(0x2ee)](_0x4df881(0x1a4)),_0x25070d=this['_urlService']['getParam'](_0x4df881(0x169)),_0x5ef1b2=this['_urlService'][_0x4df881(0x2ee)](_0x4df881(0x1a1));if(!_0x16d6f1||!_0x25070d){this[_0x4df881(0x28c)][_0x4df881(0x209)]('[CollaborationDataLoaderController]',_0x4df881(0x309));return;}const _0x270c44=await this[_0x4df881(0x33b)][_0x4df881(0x234)](_0x16d6f1,Number(_0x25070d),_0x5ef1b2);_0x270c44&&_0x270c44 instanceof _0x2815c8&&this[_0x4df881(0x2e9)](_0x270c44);}async[_0x10e5ae(0x2e9)](_0x1ec9f6){const _0x2e9f32=_0x10e5ae;await this['_updateSubUnitFromURLParams'](_0x1ec9f6),_0x1ec9f6[_0x2e9f32(0x2c2)]['pipe'](_0x5b1bf8(this[_0x2e9f32(0x1e5)]))[_0x2e9f32(0x229)](_0x108471=>{const _0x3c69b5=_0x2e9f32;_0x108471&&this[_0x3c69b5(0x27d)](_0x108471);}),this['_urlService']['urlChange$'][_0x2e9f32(0x1d3)](_0x5b1bf8(this[_0x2e9f32(0x1e5)]))[_0x2e9f32(0x229)](()=>this[_0x2e9f32(0x237)](_0x1ec9f6));}[_0x10e5ae(0x27d)](_0x13c592,_0x35343d=!0x1){const _0x3186dd=_0x10e5ae,_0x25d1cb=this['_urlService']['getParam'](_0x3186dd(0x1a1));_0x13c592[_0x3186dd(0x349)]()!==_0x25d1cb&&this[_0x3186dd(0x281)][_0x3186dd(0x1cf)](_0x3186dd(0x1a1),_0x13c592[_0x3186dd(0x349)](),_0x35343d);}async[_0x10e5ae(0x237)](_0x1aabfa){const _0x18d7e9=_0x10e5ae;var _0x103748;const _0x2e0a2f=this['_urlService'][_0x18d7e9(0x2ee)](_0x18d7e9(0x1a1));if(!_0x2e0a2f||!_0x1aabfa[_0x18d7e9(0x297)](_0x2e0a2f)){const _0x11f617=_0x1aabfa[_0x18d7e9(0x32d)]()[0x0],_0x4b5f26=_0x1aabfa['getSheetBySheetId'](_0x11f617);if(!_0x4b5f26)return;this['_updateURLWithCurrentState'](_0x4b5f26,!0x0),await this[_0x18d7e9(0x32a)][_0x18d7e9(0x2bd)](_0x1c0845['id'],{'unitId':_0x1aabfa['getUnitId'](),'subUnitId':_0x11f617});return;}((_0x103748=_0x1aabfa[_0x18d7e9(0x180)]())==null?void 0x0:_0x103748['getSheetId']())!==_0x2e0a2f&&await this['_commandService']['executeCommand'](_0x1c0845['id'],{'unitId':_0x1aabfa[_0x18d7e9(0x21b)](),'subUnitId':_0x2e0a2f});}};ce=Li([K(0x0,yt),K(0x1,_0x55546c),K(0x2,_0x3b4a9a),K(0x3,_0x1edbdc(_0x104e64)),K(0x4,_0x19c13a(_0x153c7d))],ce);var Ui=Object[_0x10e5ae(0x2a1)],Mi=(_0x4129f7,_0x185c1b,_0x250f9d,_0x230690)=>{const _0x2b0bed=_0x10e5ae;for(var _0x578208=_0x230690>0x1?void 0x0:_0x230690?Ui(_0x185c1b,_0x250f9d):_0x185c1b,_0x36ef5a=_0x4129f7[_0x2b0bed(0x39a)]-0x1,_0x16ba1a;_0x36ef5a>=0x0;_0x36ef5a--)(_0x16ba1a=_0x4129f7[_0x36ef5a])&&(_0x578208=_0x16ba1a(_0x578208)||_0x578208);return _0x578208;},rt=(_0x19bb98,_0x48b9fe)=>(_0x153df4,_0x5ef885)=>_0x48b9fe(_0x153df4,_0x5ef885,_0x19bb98);let $e=class extends _0x3ce2d7{constructor(_0x45b4ff,_0x4eee37){const _0x186bca=_0x10e5ae;super(),this[_0x186bca(0x16f)]=_0x45b4ff,this[_0x186bca(0x2c5)]=_0x4eee37,this[_0x186bca(0x178)]();}[_0x10e5ae(0x178)](){const _0x3434ea=_0x10e5ae,_0x47a413=this;this[_0x3434ea(0x212)](this[_0x3434ea(0x16f)]['addClipboardHook']({'onBeforePasteImage':async _0x32f2a1=>{const _0x45dd2a=_0x3434ea,_0x48fce2=await _0x47a413[_0x45dd2a(0x2c5)]['saveImage'](_0x32f2a1);return _0x48fce2?{'source':_0x48fce2[_0x45dd2a(0x1a7)],'imageSourceType':_0x48fce2[_0x45dd2a(0x348)]}:null;}}));}};$e=Mi([rt(0x0,_0x59bb07),rt(0x1,_0x38f674)],$e);const ot=[_0x10e5ae(0x2ae),_0x10e5ae(0x1ca),_0x10e5ae(0x254),'red.300',_0x10e5ae(0x2b6),_0x10e5ae(0x248)];class Ke extends _0x3ae839{constructor(){const _0x539aaf=_0x10e5ae;super(...arguments),_(this,_0x539aaf(0x1ab),new Map()),_(this,_0x539aaf(0x27a),0x0);}[_0x10e5ae(0x334)](_0x4a4fa0){const _0x52d445=_0x10e5ae;if(this[_0x52d445(0x1ab)]['has'](_0x4a4fa0))return this['_assignedColors'][_0x52d445(0x30f)](_0x4a4fa0);const _0x29bc9c=ot[this[_0x52d445(0x27a)]];return this[_0x52d445(0x27a)]=(this[_0x52d445(0x27a)]+0x1)%ot['length'],this[_0x52d445(0x1ab)][_0x52d445(0x2d5)](_0x4a4fa0,_0x29bc9c),_0x29bc9c;}}function $t(_0x278104){const _0x5b8124=_0x10e5ae;let _0x49a36d='';for(const _0x1431f8 of _0x278104){const {startOffset:_0x57ed9e,endOffset:_0x2ed06f,isActive:_0x5ce269,rangeType:_0x905b6a,segmentId:_0x24c6f9,segmentPage:_0x2a878e}=_0x1431f8;_0x49a36d[_0x5b8124(0x39a)]&&(_0x49a36d+=','),_0x49a36d+=_0x57ed9e+':'+_0x2ed06f+':'+(_0x5ce269?'1':'0')+':'+_0x905b6a+':'+_0x24c6f9+':'+_0x2a878e;}return _0x49a36d;}function Ai(_0x27b86f){const _0x12476f=_0x10e5ae,_0x14f39d=_0x27b86f['split'](','),_0x197523=[];for(const _0x334600 of _0x14f39d){const [_0x4fdae2,_0x4d8e36,_0x262baa,_0x4c7866,_0x43d691,_0xf1e604]=_0x334600[_0x12476f(0x34f)](':');_0x197523['push']({'startOffset':Number(_0x4fdae2),'endOffset':Number(_0x4d8e36),'collapsed':_0x4fdae2===_0x4d8e36,'isActive':_0x262baa==='1','rangeType':_0x4c7866===_0xfb1d22[_0x12476f(0x251)]?_0xfb1d22['TEXT']:_0xfb1d22['RECT'],'segmentId':typeof _0x43d691==_0x12476f(0x249)?String(_0x43d691):'','segmentPage':Number(_0xf1e604!=null?_0xf1e604:-0x1)});}return _0x197523[_0x12476f(0x193)](_0x2494a3=>_0x2494a3[_0x12476f(0x356)])||(_0x197523[0x0]['isActive']=!0x0),_0x197523;}class ze extends _0x3ce2d7{constructor(){const _0x2854be=_0x10e5ae;super(...arguments),_(this,_0x2854be(0x2e2),new _0x2a3ec5(null)),_(this,_0x2854be(0x1de),this[_0x2854be(0x2e2)][_0x2854be(0x277)]());}[_0x10e5ae(0x34c)](_0xba9e1e){const _0x2b54da=_0x10e5ae,{unitID:_0x601d2e,memberID:_0x2e41aa,textRanges:_0xca0d7d}=_0xba9e1e,_0x3dbff5=$t(_0xca0d7d);if(_0x3dbff5==='')return;const _0x1b2ccb={'unitID':_0x601d2e,'memberID':_0x2e41aa,'selection':_0x3dbff5};this[_0x2b54da(0x2e2)][_0x2b54da(0x28e)](_0x1b2ccb);}}var Pi=Object[_0x10e5ae(0x2a1)],wi=(_0x50e8bc,_0x1d430b,_0x519813,_0xd0395e)=>{for(var _0xc72ca5=_0xd0395e>0x1?void 0x0:_0xd0395e?Pi(_0x1d430b,_0x519813):_0x1d430b,_0x55feec=_0x50e8bc['length']-0x1,_0x5f144f;_0x55feec>=0x0;_0x55feec--)(_0x5f144f=_0x50e8bc[_0x55feec])&&(_0xc72ca5=_0x5f144f(_0xc72ca5)||_0xc72ca5);return _0xc72ca5;},A=(_0x5e7c71,_0x12f085)=>(_0x2c2d0e,_0x532502)=>_0x12f085(_0x2c2d0e,_0x532502,_0x5e7c71);const yi=0x12c,$i=0x64;let xe=class extends _0x3ce2d7{constructor(_0x4a5595,_0x13388a,_0x824a98,_0x480944,_0x25cf33,_0x5656d4,_0x1cb534,_0x3a6abe,_0x506cf8){const _0x533bed=_0x10e5ae;super(),_(this,_0x533bed(0x1c2),!0x1),_(this,_0x533bed(0x178),!0x1),_(this,_0x533bed(0x21d),new _0x2a3ec5(new Map())),_(this,'cursorInfo$',this[_0x533bed(0x21d)][_0x533bed(0x277)]()),_(this,_0x533bed(0x184),new _0x2a3ec5([])),_(this,_0x533bed(0x250),this[_0x533bed(0x184)][_0x533bed(0x1d3)](_0x1e285a(yi))),_(this,_0x533bed(0x1bc),_0x3e8a30(_0xb21dfb=>{const _0x26b347=_0x533bed,_0x4e49a5={'eventID':_0x482560[_0x26b347(0x3aa)],'data':{'unitID':this[_0x26b347(0x2b4)],'memberID':this[_0x26b347(0x268)][_0x26b347(0x1e7)](),'selection':$t(_0xb21dfb)}};this[_0x26b347(0x268)][_0x26b347(0x304)](_0x4e49a5,this[_0x26b347(0x2b4)]);},$i)),(this[_0x533bed(0x2b4)]=_0x4a5595,this[_0x533bed(0x268)]=_0x13388a,this[_0x533bed(0x3ac)]=_0x824a98,this[_0x533bed(0x2a4)]=_0x480944,this[_0x533bed(0x37f)]=_0x25cf33,this[_0x533bed(0x37c)]=_0x5656d4,this['_transformService']=_0x1cb534,this['_univerInstanceService']=_0x3a6abe,this[_0x533bed(0x32a)]=_0x506cf8);}get['cursorInfo'](){const _0x113095=_0x10e5ae;return this[_0x113095(0x21d)][_0x113095(0x259)]();}get[_0x10e5ae(0x388)](){const _0x38bd2c=_0x10e5ae;return this[_0x38bd2c(0x184)][_0x38bd2c(0x259)]();}[_0x10e5ae(0x375)](){const _0x5c8279=_0x10e5ae;super[_0x5c8279(0x375)](),this['_cursorInfo$']['next'](new Map()),this[_0x5c8279(0x21d)]['complete'](),this[_0x5c8279(0x184)][_0x5c8279(0x28e)]([]),this[_0x5c8279(0x184)]['complete']();}[_0x10e5ae(0x272)](){const _0x1c73ee=_0x10e5ae;this['_init']||(this[_0x1c73ee(0x178)]=!0x0,this['_session']['sessionStatus$'][_0x1c73ee(0x1d3)](_0x5b1bf8(this[_0x1c73ee(0x1e5)]))[_0x1c73ee(0x229)](_0x2fd5c2=>{const _0x2e9a9e=_0x1c73ee;_0x2fd5c2===_0x5dcd48[_0x2e9a9e(0x20c)]?this[_0x2e9a9e(0x26e)]():this[_0x2e9a9e(0x1db)]();}),this[_0x1c73ee(0x268)]['event$'][_0x1c73ee(0x1d3)](_0x5b1bf8(this[_0x1c73ee(0x1e5)]))[_0x1c73ee(0x229)](_0x101729=>{const _0x36bef2=_0x1c73ee,_0x2fdcb4=_0x101729[_0x36bef2(0x18f)];_0x2fdcb4===_0x482560['UPDATE_CURSOR']&&this[_0x36bef2(0x365)](_0x101729),_0x2fdcb4===_0x482560[_0x36bef2(0x205)]&&this['_onCursorDelete'](_0x101729);}),this['disposeWithMe'](this[_0x1c73ee(0x32a)][_0x1c73ee(0x16a)](_0x1da2e5=>{const _0x37411b=_0x1c73ee,_0x393871=_0x1da2e5['params'];_0x393871!=null&&this[_0x37411b(0x1c2)]&&_0x1da2e5['id']===_0x81a704['id']&&_0x393871[_0x37411b(0x1b8)]===this['unitID']&&_0x393871[_0x37411b(0x327)]===!0x1&&_0x393871[_0x37411b(0x1f5)][_0x37411b(0x39a)]>0x0&&this[_0x37411b(0x1bc)](_0x393871[_0x37411b(0x1f5)]);})),this['_syncEditingCollabCursorService'][_0x1c73ee(0x1de)][_0x1c73ee(0x1d3)](_0x5b1bf8(this[_0x1c73ee(0x1e5)]))[_0x1c73ee(0x229)](_0x55c07a=>{const _0x1d885c=_0x1c73ee;if((_0x55c07a==null?void 0x0:_0x55c07a[_0x1d885c(0x2b4)])!==this[_0x1d885c(0x2b4)])return;const _0x182c80={'eventID':_0x482560['UPDATE_CURSOR'],'data':_0x55c07a};this[_0x1d885c(0x365)](_0x182c80);}),this[_0x1c73ee(0x212)](this['_commandService'][_0x1c73ee(0x16a)](_0x38e37b=>{const _0x16f1e7=_0x1c73ee;if(_0x38e37b['params']==null)return;const _0x594c96=_0x38e37b[_0x16f1e7(0x240)];if(_0x38e37b['id']!==_0x443caf['id']||_0x594c96['unitId']!==this[_0x16f1e7(0x2b4)])return;const _0x11b7f8={'id':_0x16f1e7(0x3c3),'params':_0x594c96},_0x10e3eb=this[_0x16f1e7(0x224)];for(const [_0x89bd80,_0x472876]of _0x10e3eb){const _0x510ea8={'id':_0x16f1e7(0x3c3),'params':{'unitId':this[_0x16f1e7(0x2b4)],'actions':null,'textRanges':_0x472876[_0x16f1e7(0x1f5)]}},_0x170df2=this[_0x16f1e7(0x24d)]['transformMutation'](_0x11b7f8,_0x510ea8,!0x1);if(_0x169852(_0x170df2))throw _0x170df2[_0x16f1e7(0x2f6)];_0x10e3eb[_0x16f1e7(0x2d5)](_0x89bd80,{..._0x472876,'ranges':_0x170df2[_0x16f1e7(0x27c)][_0x16f1e7(0x240)][_0x16f1e7(0x2be)]});}queueMicrotask(()=>{const _0x45a4f9=_0x16f1e7;this[_0x45a4f9(0x21d)][_0x45a4f9(0x28e)](_0x10e3eb);});})));}[_0x10e5ae(0x365)](_0x2999d6){const _0x15044d=_0x10e5ae;var _0x109890,_0x568858;const {memberID:_0x40b532,selection:_0x561043}=_0x2999d6['data'],_0x12fec1=Ai(_0x561043),_0x3d3b43=(_0x568858=(_0x109890=this[_0x15044d(0x37f)][_0x15044d(0x303)](this['unitID'],_0x40b532))==null?void 0x0:_0x109890[_0x15044d(0x345)])!=null?_0x568858:_0x15044d(0x25c),_0x158cdc={'color':this['_colorAssignService'][_0x15044d(0x334)](_0x40b532),'name':_0x3d3b43,'ranges':_0x12fec1},_0x36bc7f=this[_0x15044d(0x224)];_0x36bc7f[_0x15044d(0x2d5)](_0x40b532,_0x158cdc),this[_0x15044d(0x21d)]['next'](_0x36bc7f);}[_0x10e5ae(0x30b)](_0x577b4e){const _0x1d3b86=_0x10e5ae,{memberID:_0x429d46}=_0x577b4e[_0x1d3b86(0x253)],_0x3ca7a0=this[_0x1d3b86(0x224)];_0x3ca7a0['delete'](_0x429d46),this[_0x1d3b86(0x21d)][_0x1d3b86(0x28e)](_0x3ca7a0);}['_toggleOnline'](){const _0x1acdca=_0x10e5ae;var _0x316d91;if(this['_online']=!0x0,((_0x316d91=this[_0x1acdca(0x26a)]['getFocusedUnit']())==null?void 0x0:_0x316d91['getUnitId']())!==this[_0x1acdca(0x2b4)])return;const _0x39b9f0=this[_0x1acdca(0x3ac)][_0x1acdca(0x30f)](_0x377aef)['getDocRanges']();Array[_0x1acdca(0x2e1)](_0x39b9f0)&&_0x39b9f0[_0x1acdca(0x39a)]>0x0&&this['_updateLocalCursor'](_0x39b9f0);}[_0x10e5ae(0x1db)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x1edbdc(_0x4c84de)),A(0x3,_0x1edbdc(Ke)),A(0x4,_0x1edbdc(_0x319d5b)),A(0x5,_0x1edbdc(ze)),A(0x6,_0x1c83da),A(0x7,_0x173d8f),A(0x8,_0x3b4a9a)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x2f8234,_0x17a39a,_0x208486,_0x1b714e)=>{const _0x1d9d53=_0x10e5ae;for(var _0x59187a=_0x1b714e>0x1?void 0x0:_0x1b714e?xi(_0x17a39a,_0x208486):_0x17a39a,_0x5562ac=_0x2f8234[_0x1d9d53(0x39a)]-0x1,_0x85b350;_0x5562ac>=0x0;_0x5562ac--)(_0x85b350=_0x2f8234[_0x5562ac])&&(_0x59187a=_0x85b350(_0x59187a)||_0x59187a);return _0x59187a;},B=(_0xff1fe1,_0x3be941)=>(_0x417865,_0x3f6cb4)=>_0x3be941(_0x417865,_0x3f6cb4,_0xff1fe1);function _0x22a7(_0x4a303d,_0x108fd5){_0x4a303d=_0x4a303d-0x168;const _0x55b502=_0x55b5();let _0x22a761=_0x55b502[_0x4a303d];return _0x22a761;}const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4142e1=[],_0x15be1b=!0x1;return _0x5cd8f1=>{const _0x5e5202=_0x22a7;_0x4142e1[_0x5e5202(0x24c)](_0x5cd8f1),_0x15be1b||(_0x15be1b=!0x0,setTimeout(()=>{const _0x36d447=_0x5e5202;_0x4142e1[_0x36d447(0x2cd)](_0x1fa7f2=>_0x1fa7f2()),_0x4142e1=[],_0x15be1b=!0x1;}));};};let Be=class extends _0x3ce2d7{constructor(_0x7a9296,_0x4e58bc,_0x2d2165,_0x23413f,_0x4cf9e8,_0x407cf1,_0x3d5713,_0x431500){const _0x4638de=_0x10e5ae;super(),_(this,_0x4638de(0x1c2),!0x1),_(this,'_init',!0x1),_(this,_0x4638de(0x21d),new _0x2a3ec5(new Map())),_(this,_0x4638de(0x394),this['_cursorInfo$']['asObservable']()),_(this,_0x4638de(0x184),new _0x2a3ec5([])),_(this,_0x4638de(0x250),this[_0x4638de(0x184)][_0x4638de(0x1d3)](_0x1e285a(Fi))),_(this,_0x4638de(0x1bc),_0x3e8a30((_0x592473,_0x7714da)=>{const _0x50d563=_0x4638de,_0x3f28a9={'eventID':_0x482560['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x50d563(0x268)][_0x50d563(0x1e7)](),'selection':_0x31d697(_0x592473,_0x7714da[_0x50d563(0x351)])}};this[_0x50d563(0x268)][_0x50d563(0x304)](_0x3f28a9,this['unitID']);},ki)),(this[_0x4638de(0x2b4)]=_0x7a9296,this[_0x4638de(0x268)]=_0x4e58bc,this[_0x4638de(0x3ac)]=_0x2d2165,this[_0x4638de(0x2a4)]=_0x23413f,this[_0x4638de(0x37f)]=_0x4cf9e8,this[_0x4638de(0x26a)]=_0x407cf1,this[_0x4638de(0x32a)]=_0x3d5713,this['_refRangeService']=_0x431500);}get[_0x10e5ae(0x224)](){const _0x1e0500=_0x10e5ae;return this['_cursorInfo$'][_0x1e0500(0x259)]();}get[_0x10e5ae(0x388)](){const _0x33c41a=_0x10e5ae;return this[_0x33c41a(0x184)][_0x33c41a(0x259)]();}[_0x10e5ae(0x375)](){const _0x4a93cb=_0x10e5ae;super[_0x4a93cb(0x375)](),this[_0x4a93cb(0x21d)][_0x4a93cb(0x28e)](new Map()),this[_0x4a93cb(0x21d)][_0x4a93cb(0x23c)](),this[_0x4a93cb(0x184)][_0x4a93cb(0x28e)]([]),this[_0x4a93cb(0x184)]['complete']();}[_0x10e5ae(0x272)](){const _0x5c0587=_0x10e5ae;this['_init']||(this[_0x5c0587(0x178)]=!0x0,this[_0x5c0587(0x268)]['sessionStatus$']['pipe'](_0x5b1bf8(this[_0x5c0587(0x1e5)]))[_0x5c0587(0x229)](_0x122b6e=>{const _0x427474=_0x5c0587;_0x122b6e===_0x5dcd48[_0x427474(0x20c)]?this[_0x427474(0x26e)]():this[_0x427474(0x1db)]();}),this[_0x5c0587(0x268)][_0x5c0587(0x31d)]['pipe'](_0x5b1bf8(this['dispose$']))[_0x5c0587(0x229)](_0x23bc0d=>{const _0x21b3e6=_0x5c0587,_0xf31627=_0x23bc0d[_0x21b3e6(0x18f)];_0xf31627===_0x482560[_0x21b3e6(0x3aa)]&&this[_0x21b3e6(0x365)](_0x23bc0d),_0xf31627===_0x482560[_0x21b3e6(0x205)]&&this[_0x21b3e6(0x30b)](_0x23bc0d);}),this[_0x5c0587(0x222)](),this[_0x5c0587(0x212)](this['_commandService'][_0x5c0587(0x16a)](_0x1eb905=>{const _0x493e66=_0x5c0587;if(this[_0x493e66(0x1c2)]&&_0x1eb905['id']===_0x36d9db['id']&&_0x1eb905[_0x493e66(0x240)][_0x493e66(0x1b8)]===this[_0x493e66(0x2b4)]){const _0x2a17ad=_0x1eb905['params'];this[_0x493e66(0x1bc)](_0x2a17ad[_0x493e66(0x2cc)],_0x2a17ad[_0x493e66(0x269)][0x0]);}})));}[_0x10e5ae(0x365)](_0x58d2df){const _0x4cf463=_0x10e5ae;var _0x387d24,_0x1eb408;const {memberID:_0x246453,selection:_0x3d441c}=_0x58d2df['data'],{sheetName:_0x311acd,range:_0x46d3b7}=_0x23408d(_0x3d441c),_0x4b176e={'name':(_0x1eb408=(_0x387d24=this[_0x4cf463(0x37f)]['getMember'](this[_0x4cf463(0x2b4)],_0x246453))==null?void 0x0:_0x387d24[_0x4cf463(0x345)])!=null?_0x1eb408:'Unknown\x20user','range':this[_0x4cf463(0x21e)](_0x311acd,_0x46d3b7),'sheetID':_0x311acd,'color':this[_0x4cf463(0x2a4)][_0x4cf463(0x334)](_0x246453),'selection':_0x3d441c},_0x362eef=this[_0x4cf463(0x224)];_0x362eef[_0x4cf463(0x2d5)](_0x246453,_0x4b176e),this[_0x4cf463(0x21d)]['next'](_0x362eef);}[_0x10e5ae(0x30b)](_0xcb20ab){const _0x4fdf69=_0x10e5ae,{memberID:_0xa82523}=_0xcb20ab[_0x4fdf69(0x253)],_0x138c13=this[_0x4fdf69(0x224)];_0x138c13[_0x4fdf69(0x30a)](_0xa82523),this[_0x4fdf69(0x21d)][_0x4fdf69(0x28e)](_0x138c13);}['_getMergeRange'](_0x557aad,_0x209b8c){const _0x4d3064=_0x10e5ae;var _0x4257b1,_0x21d98e;const _0x2f5e95=(_0x21d98e=(_0x4257b1=this[_0x4d3064(0x26a)][_0x4d3064(0x3c0)](this[_0x4d3064(0x2b4)]))==null?void 0x0:_0x4257b1[_0x4d3064(0x297)](_0x557aad))==null?void 0x0:_0x21d98e[_0x4d3064(0x3b9)]();return(_0x2f5e95==null?void 0x0:_0x2f5e95[_0x4d3064(0x196)](_0x1ce5de=>_0x49e984[_0x4d3064(0x2cf)](_0x1ce5de,_0x209b8c)))||_0x209b8c;}[_0x10e5ae(0x222)](){const _0x5e95af=_0x10e5ae,_0x5321c4=new _0x268fce(),_0x59f734=Hi(),_0x28ec63=()=>{const _0x128d48=_0x22a7;_0x5321c4[_0x128d48(0x375)]();const _0x76547e=(_0x3b3b2a,_0x306f89,_0x4b20e5,_0x434c49)=>{const _0x4cd358=_0x128d48;let _0x535642=[];switch(_0x3b3b2a['id']){case _0x2cc45c[_0x4cd358(0x18d)]:{_0x535642=_0x3c1c71(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x35a)]:{_0x535642=_0x239603(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x2aa)]:{_0x535642=_0x8f7d1f(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x1c3)]:{_0x535642=_0x28ffda(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x3ab)]:{_0x535642=_0x260bc4(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x382)]:{_0x535642=_0x5dedcd(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c['MoveRangeCommandId']:{_0x535642=_0x15f2c4(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c['RemoveColCommandId']:{_0x535642=_0x16f206(_0x3b3b2a,_0x434c49);break;}case _0x2cc45c[_0x4cd358(0x3a7)]:{_0x535642=_0x3cf701(_0x3b3b2a,_0x434c49);break;}}const _0x3c746a=_0xb9f112(_0x535642,_0x434c49),_0x2f23a2=this['cursorInfo'][_0x4cd358(0x30f)](_0x306f89);if(_0x2f23a2&&_0x3c746a){const _0x56d32d={..._0x2f23a2,'range':_0x3c746a};this[_0x4cd358(0x224)][_0x4cd358(0x2d5)](_0x306f89,_0x56d32d),_0x59f734(()=>{const _0x1f037b=_0x4cd358,_0x23b187=this[_0x1f037b(0x1f8)][_0x1f037b(0x2d9)](_0x3c746a,_0x4e9a88=>(_0x23b187['dispose'](),_0x76547e(_0x4e9a88,_0x306f89,_0x4b20e5,_0x3c746a)));_0x5321c4[_0x1f037b(0x276)](_0x23b187);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x128d48(0x2cd)]((_0x2c196a,_0x2cae9d)=>{const _0x18fa92=_0x128d48,{range:_0x540175,sheetID:_0x3266d7}=_0x2c196a,_0x1d55c1=this[_0x18fa92(0x1f8)][_0x18fa92(0x2d9)](_0x540175,_0x3c5b6a=>(_0x1d55c1['dispose'](),_0x76547e(_0x3c5b6a,_0x2cae9d,_0x3266d7,_0x540175)));_0x5321c4[_0x18fa92(0x276)](_0x1d55c1);});};this[_0x5e95af(0x212)](_0x1a2dad(this['_cursorInfo$'][_0x5e95af(0x229)](()=>{_0x28ec63();})));}[_0x10e5ae(0x26e)](){const _0xc2589c=_0x10e5ae;var _0x47f0ef,_0x530864;if(this[_0xc2589c(0x1c2)]=!0x0,((_0x47f0ef=this[_0xc2589c(0x26a)][_0xc2589c(0x3b3)]())==null?void 0x0:_0x47f0ef[_0xc2589c(0x21b)]())!==this[_0xc2589c(0x2b4)])return;const _0x6391de=(_0x530864=this[_0xc2589c(0x3ac)][_0xc2589c(0x30f)](_0x2fbecb)[_0xc2589c(0x2d8)]())==null?void 0x0:_0x530864[0x0],_0x3f3b0d=this[_0xc2589c(0x26a)][_0xc2589c(0x392)](_0x5b6f05[_0xc2589c(0x1f7)])['getActiveSheet']();_0x6391de&&_0x3f3b0d&&this[_0xc2589c(0x1bc)](_0x3f3b0d['getSheetId'](),_0x6391de);}[_0x10e5ae(0x1db)](){const _0x1e514e=_0x10e5ae;this[_0x1e514e(0x1c2)]=!0x1;}};Be=Bi([B(0x2,_0x1edbdc(_0x4c84de)),B(0x3,_0x1edbdc(Ke)),B(0x4,_0x1edbdc(_0x319d5b)),B(0x5,_0x173d8f),B(0x6,_0x3b4a9a),B(0x7,_0x1edbdc(_0x2d0348))],Be);var Yi=Object[_0x10e5ae(0x2a1)],Wi=(_0x5c61c7,_0x5c2b21,_0x5811c5,_0x238f00)=>{const _0x1c8329=_0x10e5ae;for(var _0x1cd252=_0x238f00>0x1?void 0x0:_0x238f00?Yi(_0x5c2b21,_0x5811c5):_0x5c2b21,_0x496a20=_0x5c61c7[_0x1c8329(0x39a)]-0x1,_0x52a30e;_0x496a20>=0x0;_0x496a20--)(_0x52a30e=_0x5c61c7[_0x496a20])&&(_0x1cd252=_0x52a30e(_0x1cd252)||_0x1cd252);return _0x1cd252;},Ce=(_0x3c38a4,_0x294cc0)=>(_0x4eb790,_0x296b31)=>_0x294cc0(_0x4eb790,_0x296b31,_0x3c38a4);let H=class extends _0x3ce2d7{constructor(_0x21759e,_0x17379d,_0xc240c2){const _0x25e937=_0x10e5ae;super(),_(this,'_entities',new Map()),_(this,_0x25e937(0x331),new _0x220ae7()),(this['_univerInstanceService']=_0x21759e,this[_0x25e937(0x3ac)]=_0x17379d,this[_0x25e937(0x29c)]=_0xc240c2,this[_0x25e937(0x178)]());}['dispose'](){const _0xee457d=_0x10e5ae;super[_0xee457d(0x375)](),this[_0xee457d(0x331)][_0xee457d(0x23c)](),this[_0xee457d(0x266)]['forEach'](_0x2f29b8=>_0x2f29b8[_0xee457d(0x375)]());}[_0x10e5ae(0x34a)](_0x337b7b){const _0x41eb3c=_0x10e5ae;return this['_entities'][_0x41eb3c(0x23a)](_0x337b7b)?this['_entities'][_0x41eb3c(0x30f)](_0x337b7b)[_0x41eb3c(0x394)]:this['_entityInit$'][_0x41eb3c(0x1d3)](_0x4a0a2a(_0x5611f4=>_0x5611f4[_0x41eb3c(0x2b4)]===_0x337b7b),_0x5999ef(_0x7c7fd7=>_0x7c7fd7[_0x41eb3c(0x394)]));}[_0x10e5ae(0x178)](){const _0x18a697=_0x10e5ae;this[_0x18a697(0x26a)][_0x18a697(0x252)](_0x5b6f05[_0x18a697(0x1f7)])['pipe'](_0x5b1bf8(this[_0x18a697(0x1e5)]))[_0x18a697(0x229)](async _0x5ef5ca=>{const _0x51580c=_0x18a697,_0x545989=_0x5ef5ca['getUnitId'](),_0x5e3ca4=await this[_0x51580c(0x1df)](_0x545989);this['_entityInit$'][_0x51580c(0x28e)](_0x5e3ca4),this[_0x51580c(0x266)][_0x51580c(0x2d5)](_0x545989,_0x5e3ca4);}),this[_0x18a697(0x26a)][_0x18a697(0x252)](_0x5b6f05[_0x18a697(0x3ad)])[_0x18a697(0x1d3)](_0x5b1bf8(this[_0x18a697(0x1e5)]))['pipe'](_0x4a0a2a(_0x549fc3=>!_0x549fc3[_0x18a697(0x21b)]()[_0x18a697(0x319)]('__')))[_0x18a697(0x229)](async _0x1c16ba=>{const _0x35a0b9=_0x18a697,_0x132ed4=_0x1c16ba['getUnitId'](),_0x10523f=await this['_startDocCollabCursor'](_0x132ed4);this[_0x35a0b9(0x331)][_0x35a0b9(0x28e)](_0x10523f),this[_0x35a0b9(0x266)][_0x35a0b9(0x2d5)](_0x132ed4,_0x10523f);}),_0x37469d(this[_0x18a697(0x26a)][_0x18a697(0x1b6)](_0x5b6f05[_0x18a697(0x3ad)]),this[_0x18a697(0x26a)][_0x18a697(0x1b6)](_0x5b6f05[_0x18a697(0x1f7)]))[_0x18a697(0x1d3)](_0x5b1bf8(this[_0x18a697(0x1e5)]))[_0x18a697(0x229)](_0x1f1d4=>{const _0x2022e8=_0x18a697,_0xefaed4=_0x1f1d4['getUnitId'](),_0x5be92d=this[_0x2022e8(0x266)][_0x2022e8(0x30f)](_0xefaed4);_0x5be92d&&(_0x5be92d[_0x2022e8(0x375)](),this[_0x2022e8(0x266)][_0x2022e8(0x30a)](_0xefaed4));});}async[_0x10e5ae(0x1df)](_0x3e58d4){const _0x3b66e3=_0x10e5ae,_0x5d8bab=await this[_0x3b66e3(0x29c)][_0x3b66e3(0x1d7)](_0x3e58d4),_0x2a685d=this[_0x3b66e3(0x3ac)][_0x3b66e3(0x1cd)](Be,_0x3e58d4,_0x5d8bab);return _0x2a685d[_0x3b66e3(0x272)](),_0x2a685d;}async['_startDocCollabCursor'](_0x46a6b6){const _0x583133=_0x10e5ae,_0x3952fa=await this['_collabSessionService'][_0x583133(0x1d7)](_0x46a6b6),_0x1efd05=this[_0x583133(0x3ac)][_0x583133(0x1cd)](xe,_0x46a6b6,_0x3952fa);return _0x1efd05[_0x583133(0x272)](),_0x1efd05;}};H=Wi([Ce(0x0,_0x173d8f),Ce(0x1,_0x1edbdc(_0x4c84de)),Ce(0x2,_0x1edbdc(_0x46d329))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x21c065,_0x4f1374){const _0x147cb6=_0x10e5ae;let {radius:_0x492543,width:_0x1952fe,height:_0x4b826a}=_0x4f1374;_0x492543=_0x492543!=null?_0x492543:0x0,_0x1952fe=_0x1952fe!=null?_0x1952fe:0x1e,_0x4b826a=_0x4b826a!=null?_0x4b826a:0x1e;let _0x4a220b=0x0,_0x3693dc=0x0,_0x28808b=0x0;_0x4a220b=_0x3693dc=_0x28808b=Math[_0x147cb6(0x2d6)](_0x492543,_0x1952fe/0x2,_0x4b826a/0x2),_0x21c065[_0x147cb6(0x1c4)](),_0x21c065[_0x147cb6(0x298)](_0x4a220b,0x0),_0x21c065[_0x147cb6(0x1f9)](_0x1952fe-_0x3693dc,0x0),_0x21c065['arc'](_0x1952fe-_0x3693dc,_0x3693dc,_0x3693dc,Math['PI']*0x3/0x2,0x0,!0x1),_0x21c065[_0x147cb6(0x1f9)](_0x1952fe,_0x4b826a-_0x28808b),_0x21c065['arc'](_0x1952fe-_0x28808b,_0x4b826a-_0x28808b,_0x28808b,0x0,Math['PI']/0x2,!0x1),_0x21c065[_0x147cb6(0x1f9)](0x0,_0x4b826a),_0x21c065['lineTo'](0x0,_0x4a220b),_0x21c065[_0x147cb6(0x38d)](_0x4a220b,_0x4a220b,_0x4a220b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x21c065[_0x147cb6(0x3b1)](),_0x4f1374[_0x147cb6(0x3a5)]&&(_0x21c065[_0x147cb6(0x1e0)](),_0x21c065[_0x147cb6(0x3be)]=_0x4f1374[_0x147cb6(0x3a5)],_0x4f1374[_0x147cb6(0x1ed)]===_0x147cb6(0x2a9)?_0x21c065['fill']('evenodd'):_0x21c065[_0x147cb6(0x3a5)](),_0x21c065[_0x147cb6(0x16e)]());}class ve extends _0x1dca1c{constructor(_0x3d29de,_0x95b971){const _0x2320b2=_0x10e5ae;super(_0x3d29de,_0x95b971),_(this,_0x2320b2(0x2a3)),_(this,_0x2320b2(0x195)),(this[_0x2320b2(0x2a3)]=_0x95b971==null?void 0x0:_0x95b971[_0x2320b2(0x2a3)],this[_0x2320b2(0x195)]=_0x95b971==null?void 0x0:_0x95b971['text']);}static[_0x10e5ae(0x1b5)](_0x82a6cb,_0x2b81aa){const _0x29e4c9=_0x10e5ae,{text:_0x23cb1b,color:_0x18fbcd}=_0x2b81aa;_0x82a6cb[_0x29e4c9(0x1e0)](),_0x82a6cb[_0x29e4c9(0x23f)]=_0x29e4c9(0x2a2);const _0x44377e=_0x82a6cb[_0x29e4c9(0x34e)](_0x23cb1b)[_0x29e4c9(0x239)],_0x5b1517=Math['min'](_0x44377e+0x2*Re,at);ji(_0x82a6cb,{'height':Q,'radius':0x4,'width':_0x5b1517,'fill':_0x18fbcd}),_0x82a6cb['fillStyle']=_0x29e4c9(0x22f);const _0x3dfe90=Re,_0x478ec9=Q-Vi,_0x433d81=at-0x2*Re;if(_0x44377e>_0x433d81){let _0x332a4c='',_0x1b8e6c=0x0;for(const _0x5f1e22 of _0x23cb1b){const _0x332285=_0x82a6cb['measureText'](_0x5f1e22)[_0x29e4c9(0x239)];if(_0x1b8e6c+_0x332285<=_0x433d81-_0x82a6cb['measureText'](_0x29e4c9(0x18b))[_0x29e4c9(0x239)])_0x332a4c+=_0x5f1e22,_0x1b8e6c+=_0x332285;else{_0x332a4c+=_0x29e4c9(0x18b);break;}}_0x82a6cb[_0x29e4c9(0x33e)](_0x332a4c,_0x3dfe90,_0x478ec9);}else _0x82a6cb[_0x29e4c9(0x33e)](_0x23cb1b,_0x3dfe90,_0x478ec9);_0x82a6cb[_0x29e4c9(0x16e)]();}[_0x10e5ae(0x1b1)](_0x23f137){ve['drawWith'](_0x23f137,this);}}const De=_0x10e5ae(0x2af),Xi=_0x10e5ae(0x177),Gi=_0x10e5ae(0x24e),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x10e5ae(0x372);class ct{constructor(_0x216910,_0x1c31e1,_0x13dead,_0x341290){const _0x4b95b6=_0x10e5ae;_(this,_0x4b95b6(0x364),[]),_(this,'_anchor',null),_(this,_0x4b95b6(0x18c),null),_(this,_0x4b95b6(0x2c3),null),_(this,_0x4b95b6(0x273),null),_(this,'_eventUnsubscribe',null),(this[_0x4b95b6(0x1be)]=_0x216910,this[_0x4b95b6(0x368)]=_0x1c31e1,this[_0x4b95b6(0x363)]=_0x13dead,this[_0x4b95b6(0x3c1)]=_0x341290,this[_0x4b95b6(0x2f9)]());}set[_0x10e5ae(0x2e5)](_0x484232){const _0x651021=_0x10e5ae;_0x484232?(this['_anchorDot']&&this['_anchorDot'][_0x651021(0x38c)](),this[_0x651021(0x18c)]&&this[_0x651021(0x18c)]['show']()):(this[_0x651021(0x2c3)]&&this['_anchorDot'][_0x651021(0x1b4)](),this[_0x651021(0x18c)]&&this[_0x651021(0x18c)]['hide']());}[_0x10e5ae(0x375)](){const _0x3ac003=_0x10e5ae;for(const _0x337c5c of this[_0x3ac003(0x364)])_0x337c5c['dispose']();this[_0x3ac003(0x18c)]&&this[_0x3ac003(0x18c)][_0x3ac003(0x375)](),this[_0x3ac003(0x2c3)]&&this[_0x3ac003(0x2c3)][_0x3ac003(0x375)](),this[_0x3ac003(0x2b0)]&&this['_anchor'][_0x3ac003(0x375)](),this[_0x3ac003(0x1aa)]&&this['_eventUnsubscribe']();}[_0x10e5ae(0x2f9)](){const _0x4ad357=_0x10e5ae;var _0x24689a;const {_docSkeleton:_0x759aa,_document:_0xa92354}=this,{color:_0x161c4f,name:_0x2c19bd,ranges:_0xaa27f4}=this[_0x4ad357(0x1be)],_0x5cebfa=_0xa92354[_0x4ad357(0x3a3)](),{docsLeft:_0x5b3d0e,docsTop:_0x28d974}=_0x5cebfa,_0x7bf302=new _0x1bfd44(_0x5cebfa,_0x759aa);for(const {startOffset:_0x436b1e,endOffset:_0x4f3fa0,rangeType:_0x26e758,segmentId:_0x3bef48,segmentPage:_0x1ece5f,collapsed:_0x4bfb02,isActive:_0x1bfcc7}of _0xaa27f4){const _0xc7f4a4=_0x759aa[_0x4ad357(0x265)](_0x436b1e,!0x0,_0x3bef48,_0x1ece5f);let _0x2b243d=_0x759aa[_0x4ad357(0x265)](_0x4f3fa0,!0x0,_0x3bef48,_0x1ece5f);if(_0x2b243d==null&&(_0x2b243d=_0x759aa[_0x4ad357(0x265)](_0x4f3fa0-0x1,!0x1,_0x3bef48,_0x1ece5f)),_0x1bfcc7){const {contentBoxPointGroup:_0x25e559}=_0x7bf302[_0x4ad357(0x1e6)](_0x2b243d,_0x2b243d);if(_0x25e559[_0x4ad357(0x39a)]===0x0)continue;this[_0x4ad357(0x390)](_0x161c4f,_0x25e559,_0x5b3d0e,_0x28d974,_0x2c19bd),this['_eventUnsubscribe']=this[_0x4ad357(0x257)]();}if(_0xc7f4a4&&_0x2b243d){if(_0x26e758===_0xfb1d22['RECT']){const _0x265a9f=new _0x52a367(_0x5cebfa,_0x759aa),{pointGroup:_0x479a26}=(_0x24689a=_0x265a9f[_0x4ad357(0x1e6)](_0xc7f4a4,_0x2b243d))!=null?_0x24689a:{};if(_0x479a26==null||_0x479a26[_0x4ad357(0x39a)]===0x0)continue;this['_drawRectRange'](_0x161c4f,_0x479a26,_0x5b3d0e,_0x28d974);}else{if(!_0x4bfb02){const {borderBoxPointGroup:_0x416ee6}=_0x7bf302[_0x4ad357(0x1e6)](_0xc7f4a4,_0x2b243d);if(_0x416ee6['length']===0x0)continue;this[_0x4ad357(0x387)](_0x161c4f,_0x416ee6,_0x5b3d0e,_0x28d974);}}}}}[_0x10e5ae(0x390)](_0x23b81c,_0x11b4fd,_0x323686,_0x2bfc16,_0x45d68b){const _0x3892ab=_0x10e5ae,_0xb306e=this['_getAnchorBounding'](_0x11b4fd),{left:_0x2a8483,top:_0x5e6b93,height:_0x1cf00c}=_0xb306e,_0x331062=this[_0x3892ab(0x2e4)](),_0x33208b=zi/_0x331062,_0x4aa286=new _0x44a078(De+_0x5f38d1(z),{'left':_0x2a8483+_0x323686-_0x33208b,'top':_0x5e6b93+_0x2bfc16,'height':_0x1cf00c,'width':Ki,'fill':_0x23b81c||_0x127f23(_0x5f1293['black'],0x0),'strokeWidth':_0x33208b,'stroke':Ji,'evented':!0x0});this[_0x3892ab(0x2b0)]=_0x4aa286,this[_0x3892ab(0x368)]['addObject'](_0x4aa286,_0x24b623);const _0x4cf8bf=new _0x44a078(De+_0x5f38d1(z),{'left':_0x2a8483+_0x323686-_0x33208b,'top':_0x5e6b93+_0x2bfc16-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x23b81c||_0x127f23(_0x5f1293[_0x3892ab(0x2f4)],0x0),'strokeWidth':0x0,'stroke':_0x23b81c||_0x127f23(_0x5f1293[_0x3892ab(0x2f4)],0x0),'evented':!0x1});this[_0x3892ab(0x2c3)]=_0x4cf8bf,this[_0x3892ab(0x368)][_0x3892ab(0x2ed)](_0x4cf8bf,_0x24b623);const _0x3da431=new ve(De+_0x5f38d1(z),{'left':_0x2a8483+_0x323686-_0x33208b,'top':_0x5e6b93+_0x2bfc16-Q,'text':_0x45d68b,'color':_0x23b81c});this[_0x3892ab(0x18c)]=_0x3da431,this[_0x3892ab(0x368)][_0x3892ab(0x2ed)](_0x3da431,_0x24b623),this['_hover']=!0x1;}[_0x10e5ae(0x257)](){const _0x284f93=_0x10e5ae,_0x1b6ad0=this[_0x284f93(0x2b0)]['onPointerEnter$'][_0x284f93(0x1f6)](()=>{const _0xfda5c6=_0x284f93;this[_0xfda5c6(0x2e5)]=!0x0;}),_0x5be077=this['_anchor'][_0x284f93(0x22b)][_0x284f93(0x1f6)](()=>{const _0x2f0b01=_0x284f93;this['_hideTimer']&&clearTimeout(this[_0x2f0b01(0x273)]),this[_0x2f0b01(0x273)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5c9302=_0x284f93;_0x1b6ad0[_0x5c9302(0x26b)](),_0x5be077[_0x5c9302(0x26b)]();};}[_0x10e5ae(0x387)](_0x27760a,_0x2b2997,_0x5aab68,_0x157eac){const _0x4c2abc=_0x10e5ae,_0x341d3a=new _0x2bf61e(_0x27760a)[_0x4c2abc(0x39d)](0.2)[_0x4c2abc(0x202)](),_0x5ebe03=new _0xbf1443(Xi+_0x5f38d1(z),{'pointsGroup':_0x2b2997,'fill':_0x341d3a||_0x127f23(_0x5f1293[_0x4c2abc(0x2f4)],0.2),'left':_0x5aab68,'top':_0x157eac,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4c2abc(0x24c)](_0x5ebe03),this[_0x4c2abc(0x368)][_0x4c2abc(0x2ed)](_0x5ebe03,_0x24b623);}[_0x10e5ae(0x17e)](_0x52c2ae,_0x3f425b,_0x190571,_0x3c3907){const _0x31a112=_0x10e5ae,_0x1dd37d=new _0x2bf61e(_0x52c2ae)[_0x31a112(0x39d)](0.2)['toRgbString'](),_0x39276c=new _0xbf1443(Gi+_0x5f38d1(z),{'pointsGroup':_0x3f425b,'fill':_0x1dd37d||_0x127f23(_0x5f1293[_0x31a112(0x2f4)],0.2),'left':_0x190571,'top':_0x3c3907,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x31a112(0x364)][_0x31a112(0x24c)](_0x39276c),this[_0x31a112(0x368)][_0x31a112(0x2ed)](_0x39276c,_0x24b623);}[_0x10e5ae(0x1c6)](_0x4964b9){const _0x2478d0=_0x4964b9[0x0],_0x37da7e=_0x2478d0[0x0],_0x269b51=_0x2478d0[0x2],{x:_0x2309eb,y:_0x2d03c8}=_0x37da7e,{x:_0x3d8332,y:_0x45a725}=_0x269b51;return{'left':_0x2309eb,'top':_0x2d03c8,'width':_0x3d8332-_0x2309eb,'height':_0x45a725-_0x2d03c8};}[_0x10e5ae(0x2e4)](){const _0x1ce3cb=_0x10e5ae,{scaleX:_0x2833d6,scaleY:_0x55ebcb}=this[_0x1ce3cb(0x368)]['getAncestorScale']();return Math[_0x1ce3cb(0x19f)](_0x2833d6,_0x55ebcb);}}var Zi=Object[_0x10e5ae(0x2a1)],Qi=(_0x4ee028,_0x5ad32f,_0x3f302e,_0x540c06)=>{const _0x10509e=_0x10e5ae;for(var _0x2fc63c=_0x540c06>0x1?void 0x0:_0x540c06?Zi(_0x5ad32f,_0x3f302e):_0x5ad32f,_0x52575a=_0x4ee028[_0x10509e(0x39a)]-0x1,_0x5bbbd6;_0x52575a>=0x0;_0x52575a--)(_0x5bbbd6=_0x4ee028[_0x52575a])&&(_0x2fc63c=_0x5bbbd6(_0x2fc63c)||_0x2fc63c);return _0x2fc63c;},ie=(_0x45629a,_0x7258de)=>(_0x4f6c51,_0x1637b6)=>_0x7258de(_0x4f6c51,_0x1637b6,_0x45629a);let Fe=class extends _0x3ce2d7{constructor(_0x89b412,_0x531a40,_0x167a4f,_0x480682,_0x4c576a){const _0x23ea51=_0x10e5ae;super(),_(this,_0x23ea51(0x1e1),[]),_(this,'_cursors',[]),(this[_0x23ea51(0x376)]=_0x89b412,this[_0x23ea51(0x3b5)]=_0x531a40,this[_0x23ea51(0x359)]=_0x167a4f,this[_0x23ea51(0x32a)]=_0x480682,this[_0x23ea51(0x29e)]=_0x4c576a,this['_init']());}[_0x10e5ae(0x178)](){const _0xf994b3=_0x10e5ae,_0x434bd1=this[_0xf994b3(0x376)][_0xf994b3(0x1b8)],_0x2c8f5c=this[_0xf994b3(0x3b5)];this[_0xf994b3(0x212)](_0x4ce906([this[_0xf994b3(0x359)][_0xf994b3(0x34a)](_0x434bd1),this[_0xf994b3(0x29e)]['currentTheme$']])['pipe'](_0x1437cc(([_0x55ef72,_0x4634eb])=>({'skeleton':_0x2c8f5c[_0xf994b3(0x371)](),'cursors':[..._0x55ef72[_0xf994b3(0x29a)]()][_0xf994b3(0x362)](_0x4e4209=>({..._0x4e4209,'color':this[_0xf994b3(0x29e)][_0xf994b3(0x20e)](_0x4e4209[_0xf994b3(0x2a3)])}))})))[_0xf994b3(0x229)](_0x5026f1=>{const _0x23a992=_0xf994b3;if(this[_0x23a992(0x1fc)](),_0x5026f1){const {skeleton:_0x3980d3,cursors:_0x13bb36}=_0x5026f1;this[_0x23a992(0x1af)](_0x3980d3,_0x13bb36);}})),this[_0xf994b3(0x22c)](),this[_0xf994b3(0x2d1)]();}[_0x10e5ae(0x1af)](_0x49ff98,_0x4963b9){const _0x32e2fa=_0x10e5ae,{scene:_0x2d368d,mainComponent:_0x1fca95}=this[_0x32e2fa(0x376)],_0x98f77a=_0x4963b9[_0x32e2fa(0x310)](_0x5582c1=>new ct(_0x5582c1,_0x2d368d,_0x49ff98,_0x1fca95));this['_cursorShapes']=_0x98f77a,this['_cursors']=_0x4963b9;}[_0x10e5ae(0x3b4)](){const _0x4b3cfa=_0x10e5ae;this['_removeCollabCursors']();const {scene:_0x37dfa5,mainComponent:_0x37c88a}=this[_0x4b3cfa(0x376)],_0x57dc9b=this[_0x4b3cfa(0x3b5)][_0x4b3cfa(0x371)](),_0x5c7b80=this[_0x4b3cfa(0x337)][_0x4b3cfa(0x310)](_0x3ece1f=>new ct(_0x3ece1f,_0x37dfa5,_0x57dc9b,_0x37c88a));this[_0x4b3cfa(0x1e1)]=_0x5c7b80;}[_0x10e5ae(0x1fc)](){const _0x2908a9=_0x10e5ae;this[_0x2908a9(0x1e1)][_0x2908a9(0x2cd)](_0x7958c6=>_0x7958c6[_0x2908a9(0x375)]()),this['_cursorShapes']=[];}[_0x10e5ae(0x2d1)](){const _0xf0cd05=_0x10e5ae,_0xed4382=[_0x1e3d4b['id']];this['disposeWithMe'](this['_commandService'][_0xf0cd05(0x16a)](_0x306ac2=>{const _0xbac1a3=_0xf0cd05;_0xed4382['includes'](_0x306ac2['id'])&&_0x306ac2['params'][_0xbac1a3(0x1b8)]===this[_0xbac1a3(0x376)]['unitId']&&this[_0xbac1a3(0x3b4)]();}));}[_0x10e5ae(0x22c)](){const _0xa43f05=_0x10e5ae;this['disposeWithMe'](_0x48f479(this[_0xa43f05(0x376)][_0xa43f05(0x19d)][_0xa43f05(0x2b7)])[_0xa43f05(0x1d3)](_0x328732(_0x481b63=>_0x481b63['type']===_0x26adfe[_0xa43f05(0x20f)]),_0x276b3c(0x10))['subscribe'](()=>{const _0xf2f0e=_0xa43f05;this[_0xf2f0e(0x3b4)]();}));}};Fe=Qi([ie(0x1,_0x1edbdc(_0x420697)),ie(0x2,_0x1edbdc(H)),ie(0x3,_0x3b4a9a),ie(0x4,_0x1edbdc(_0x2385c1))],Fe);const qi=0x1,en=1.5;class tn extends _0x1dca1c{constructor(_0x4382f2,_0x4570d4){const _0x51430f=_0x10e5ae;super(_0x4382f2,_0x4570d4),_(this,_0x51430f(0x26d)),_(this,_0x51430f(0x377),!0x1),_(this,'_range'),_(this,_0x51430f(0x2ef),''),_(this,_0x51430f(0x2c7),_0x51430f(0x283)),_(this,_0x51430f(0x183)),(_0x4570d4&&this['setShapeProps'](_0x4570d4),this[_0x51430f(0x243)]['subscribeEvent'](()=>this[_0x51430f(0x2c8)]({'hovered':!0x0})),this[_0x51430f(0x22b)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x4357c7){const _0x2f4d59=_0x10e5ae;var _0x2fb8fd,_0x520d71,_0x19cd90,_0x28324c,_0x5209aa,_0x398ae5;this[_0x2f4d59(0x26d)]=(_0x2fb8fd=_0x4357c7['color'])!=null?_0x2fb8fd:this[_0x2f4d59(0x26d)],this[_0x2f4d59(0x377)]=(_0x520d71=_0x4357c7[_0x2f4d59(0x214)])!=null?_0x520d71:this[_0x2f4d59(0x377)],this[_0x2f4d59(0x223)]=(_0x19cd90=_0x4357c7[_0x2f4d59(0x351)])!=null?_0x19cd90:this[_0x2f4d59(0x223)],this[_0x2f4d59(0x2ef)]=(_0x28324c=_0x4357c7['name'])!=null?_0x28324c:this[_0x2f4d59(0x2ef)],this['_labelPosition']=(_0x5209aa=_0x4357c7['labelPosition'])!=null?_0x5209aa:this['_labelPosition'],this['_backgroundColor']=(_0x398ae5=_0x4357c7['backgroundColor'])!=null?_0x398ae5:this[_0x2f4d59(0x183)],this[_0x2f4d59(0x333)]({'width':_0x4357c7['width'],'height':_0x4357c7['height']});}[_0x10e5ae(0x2b8)](_0xb3f02a){const _0x186ce0=_0x10e5ae,{row:_0x382ed0,column:_0x1c33c1}=_0xb3f02a;if(_0x382ed0>=this[_0x186ce0(0x223)][_0x186ce0(0x1fb)]&&_0x382ed0<=this['_range'][_0x186ce0(0x2e7)]&&_0x1c33c1>=this['_range'][_0x186ce0(0x39c)]&&_0x1c33c1<=this[_0x186ce0(0x223)][_0x186ce0(0x328)]){this[_0x186ce0(0x2c8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x5ae7a5){return!0x1;}['_draw'](_0x5204ad){const _0x97174b=_0x10e5ae;_0x44a078['drawWith'](_0x5204ad,{'width':this['width'],'height':this[_0x97174b(0x192)],'strokeWidth':en,'stroke':this[_0x97174b(0x26d)],'evented':!0x1,'fill':this[_0x97174b(0x183)]}),this['_hovered']&&(_0x5204ad[_0x97174b(0x1e0)](),_0x5204ad['transform'](0x1,0x0,0x0,0x1,this[_0x97174b(0x239)],this['_labelPosition']===_0x97174b(0x39b)?0x0:-Q),ve['drawWith'](_0x5204ad,{'text':this[_0x97174b(0x2ef)],'color':this[_0x97174b(0x26d)]}),_0x5204ad[_0x97174b(0x16e)]());}}var sn=Object[_0x10e5ae(0x2a1)],nn=(_0x45c99d,_0x4299ae,_0xb8def6,_0x1afa72)=>{const _0xa49df5=_0x10e5ae;for(var _0x5692c7=_0x1afa72>0x1?void 0x0:_0x1afa72?sn(_0x4299ae,_0xb8def6):_0x4299ae,_0x4a6e58=_0x45c99d[_0xa49df5(0x39a)]-0x1,_0x4cadf4;_0x4a6e58>=0x0;_0x4a6e58--)(_0x4cadf4=_0x45c99d[_0x4a6e58])&&(_0x5692c7=_0x4cadf4(_0x5692c7)||_0x5692c7);return _0x5692c7;},be=(_0x36f513,_0x54360d)=>(_0x4d5bc8,_0x43fad3)=>_0x54360d(_0x4d5bc8,_0x43fad3,_0x36f513);const rn=0x1389;let ke=class extends _0x3ce2d7{constructor(_0x36d675,_0x2d9db0,_0x42686d,_0x7ad25d){const _0x46f84e=_0x10e5ae;super(),_(this,_0x46f84e(0x337),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x36d675,this[_0x46f84e(0x1a5)]=_0x2d9db0,this[_0x46f84e(0x359)]=_0x42686d,this[_0x46f84e(0x29e)]=_0x7ad25d,this[_0x46f84e(0x178)]());}['_init'](){const _0x3ee335=_0x10e5ae;this[_0x3ee335(0x1a5)][_0x3ee335(0x23b)][_0x3ee335(0x1d3)](_0x40836a(this[_0x3ee335(0x1e5)]),_0x1beeb6(_0xd3cbbd=>{const _0x24cddc=_0x3ee335;if(_0xd3cbbd){const _0x29291a=_0xd3cbbd[_0x24cddc(0x340)];return _0x4ce906(this[_0x24cddc(0x359)]['getCollabCursors$'](this[_0x24cddc(0x376)]['unitId']),this[_0x24cddc(0x29e)][_0x24cddc(0x35d)])['pipe'](_0x1437cc(([_0x4d3595,_0x568c66])=>{const _0x1e8bfb=new Map();return _0x4d3595['forEach']((_0x377510,_0x31ff64)=>{const _0x336056=_0x22a7;if(_0x377510[_0x336056(0x354)]===_0x29291a){const _0x1bd7d5={..._0x377510};_0x1bd7d5[_0x336056(0x2a3)]=this[_0x336056(0x29e)][_0x336056(0x20e)](_0x377510[_0x336056(0x2a3)]),_0x1e8bfb[_0x336056(0x2d5)](_0x31ff64,_0x1bd7d5);}}),{'skeleton':_0xd3cbbd,'cursors':_0x1e8bfb};}));}return _0x44477d({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x583f76,cursors:_0x29070a})=>{const _0x110680=_0x3ee335;this[_0x110680(0x1fc)](),_0x583f76&&this[_0x110680(0x1af)](_0x583f76,_0x29070a);}),this[_0x3ee335(0x1a5)][_0x3ee335(0x23b)][_0x3ee335(0x229)](_0x2bf304=>{const _0x41a009=_0x3ee335;if(_0x2bf304==null)return;const {skeleton:_0x83def7}=_0x2bf304,{scene:_0x440195}=this[_0x41a009(0x376)];_0x440195[_0x41a009(0x32f)][_0x41a009(0x1f6)](_0x3e8a30(_0x2f387d=>{const _0x57004c=_0x41a009;var _0x26e0fb,_0x271173;const {offsetX:_0x2c9e4a,offsetY:_0x2c95bf}=_0x2f387d,{x:_0x30b8d3,y:_0x57139d}=_0x440195[_0x57004c(0x282)](_0x4f772d[_0x57004c(0x32b)]([_0x2c9e4a,_0x2c95bf])),{scaleX:_0x1ba101,scaleY:_0x302bf9}=_0x440195[_0x57004c(0x271)](),_0x3776d2=_0x440195[_0x57004c(0x32c)](_0x4efa2a[_0x57004c(0x325)]),_0x2e7f1c=_0x440195[_0x57004c(0x201)](_0x4f772d[_0x57004c(0x32b)]([_0x30b8d3,_0x57139d]),_0x3776d2),_0x5ef6e6=_0x83def7[_0x57004c(0x19b)](_0x2c9e4a,_0x2c95bf,_0x1ba101,_0x302bf9,_0x2e7f1c);((_0x26e0fb=this[_0x57004c(0x28b)])==null?void 0x0:_0x26e0fb['column'])===_0x5ef6e6[_0x57004c(0x34b)]&&((_0x271173=this[_0x57004c(0x28b)])==null?void 0x0:_0x271173[_0x57004c(0x355)])===_0x5ef6e6[_0x57004c(0x355)]||this[_0x57004c(0x337)][_0x57004c(0x2cd)](_0x55191f=>{const _0xd517dd=_0x57004c;_0x55191f[_0xd517dd(0x2b8)](_0x5ef6e6);});},0x64));});}[_0x10e5ae(0x1af)](_0x132b98,_0x24ebb2){const _0x4967aa=_0x10e5ae;var _0x203442;const _0x9b0034=(_0x203442=this[_0x4967aa(0x1a5)][_0x4967aa(0x357)]())==null?void 0x0:_0x203442[_0x4967aa(0x31b)];if(!_0x9b0034)return;const _0xc4a3ba=this['_getSheetObject']();if(!_0xc4a3ba)return;this['_cursors'][_0x4967aa(0x2cd)](_0x5afc32=>{const _0x4851a9=_0x4967aa;_0x5afc32[_0x4851a9(0x360)]();});const {scene:_0x4ec294}=_0xc4a3ba,_0x5d35e7=on(Array[_0x4967aa(0x381)](_0x24ebb2['values']()))[_0x4967aa(0x310)](_0xd86e17=>{const _0x2f84b9=_0x4967aa,{color:_0x4755cc,range:_0x1d5b34,name:_0x37ee7d,selection:_0x3a95be,sheetID:_0x3284c2}=_0xd86e17,{startColumn:_0x161934,startRow:_0x59e190,endColumn:_0x3080c3,endRow:_0x29f537}=_0x1d5b34,_0x444a80=_0x52e643(_0x59e190,_0x161934,_0x4ec294,_0x9b0034),_0x5ccc66=_0x52e643(_0x29f537,_0x3080c3,_0x4ec294,_0x9b0034),{columnHeaderHeightAndMarginTop:_0x2aa292}=_0x9b0034,{startX:_0x176250,startY:_0x9b07da}=_0x444a80,{endX:_0x530aea,endY:_0x5b5358}=_0x5ccc66,_0x5f1a7c=_0x530aea-_0x176250,_0x1ae2db=_0x5b5358-_0x9b07da,_0x487d99={'labelPosition':_0x9b07da-_0x2aa292>=Q?'top':_0x2f84b9(0x39b),'sheetID':_0x3284c2,'range':_0x1d5b34,'color':_0x4755cc,'name':_0x37ee7d,'selection':_0x3a95be,'left':_0x176250,'top':_0x9b07da,'width':_0x5f1a7c,'height':_0x1ae2db,'evented':!0x1,'zIndex':rn};return new tn(_0x37ee7d,_0x487d99);});_0x4ec294[_0x4967aa(0x1ad)](_0x5d35e7,qi),this[_0x4967aa(0x337)]=new Set(_0x5d35e7);}['_removeCollabCursors'](){const _0xa4c71=_0x10e5ae;var _0x344f39;(_0x344f39=this[_0xa4c71(0x337)])==null||_0x344f39[_0xa4c71(0x2cd)](_0x4f29ec=>_0x4f29ec[_0xa4c71(0x375)]());}[_0x10e5ae(0x189)](){const _0x3029d4=_0x10e5ae;return _0x1744fb(this[_0x3029d4(0x376)][_0x3029d4(0x1a4)],this[_0x3029d4(0x376)]);}};ke=nn([be(0x1,_0x1edbdc(_0x5caf3e)),be(0x2,_0x1edbdc(H)),be(0x3,_0x1edbdc(_0x2385c1))],ke);function on(_0x19a603){const _0x4c338f=_0x10e5ae,_0x3802f3=new Map();return _0x19a603[_0x4c338f(0x2cd)](_0x1523e9=>{const _0x30e099=_0x4c338f;if(_0x3802f3[_0x30e099(0x23a)](_0x1523e9['selection'])){const _0x5d30a2=_0x3802f3[_0x30e099(0x30f)](_0x1523e9[_0x30e099(0x19a)]);_0x5d30a2[_0x30e099(0x345)]+=',\x20'+_0x1523e9['name'];}else _0x3802f3['set'](_0x1523e9[_0x30e099(0x19a)],_0x1523e9);}),Array[_0x4c338f(0x381)](_0x3802f3[_0x4c338f(0x29a)]());}var an=Object[_0x10e5ae(0x2a1)],cn=(_0x132367,_0x1984f4,_0x2443a3,_0x475a86)=>{const _0x5067cf=_0x10e5ae;for(var _0x48d82f=_0x475a86>0x1?void 0x0:_0x475a86?an(_0x1984f4,_0x2443a3):_0x1984f4,_0xa76016=_0x132367[_0x5067cf(0x39a)]-0x1,_0x4cab32;_0xa76016>=0x0;_0xa76016--)(_0x4cab32=_0x132367[_0xa76016])&&(_0x48d82f=_0x4cab32(_0x48d82f)||_0x48d82f);return _0x48d82f;},F=(_0xedf727,_0x31d532)=>(_0xdaa598,_0xa4ce18)=>_0x31d532(_0xdaa598,_0xa4ce18,_0xedf727);let _e=class extends _0x3ae839{constructor(_0x4e0f80,_0x4d2b44,_0x196fe0,_0x5ec97c,_0x3554a2,_0x15157d){const _0x41df34=_0x10e5ae;super(),this[_0x41df34(0x225)]=_0x4e0f80,this[_0x41df34(0x2a7)]=_0x4d2b44,this[_0x41df34(0x1d5)]=_0x196fe0,this[_0x41df34(0x17f)]=_0x5ec97c,this[_0x41df34(0x305)]=_0x3554a2,this['_localeService']=_0x15157d,this[_0x41df34(0x23e)](),this[_0x41df34(0x23d)]();}[_0x10e5ae(0x23e)](){const _0x2790cf=_0x10e5ae;this[_0x2790cf(0x212)](this[_0x2790cf(0x225)][_0x2790cf(0x37b)](()=>{const _0x2bc03e=_0x2790cf;if(this[_0x2bc03e(0x2a7)]['saveTaskMap'][_0x2bc03e(0x16c)])return this['_localeService']['t'](_0x2bc03e(0x1b3));}));}[_0x10e5ae(0x23d)](){const _0x133f3d=_0x10e5ae;this['disposeWithMe'](this['_collaborationUIEventService'][_0x133f3d(0x31d)]['subscribe'](_0x1e13ee=>{const _0x4796d3=_0x133f3d;_0x1e13ee['id']===_0x15f878[_0x4796d3(0x2bc)]&&this['_messageService'][_0x4796d3(0x1b4)]({'type':_0x53c397['Warning'],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x343))}),_0x1e13ee['id']===_0x15f878['CLOSE_ROOM']&&this['_messageService'][_0x4796d3(0x1b4)]({'type':_0x53c397[_0x4796d3(0x1ba)],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x3bb))}),_0x1e13ee['id']===_0x15f878['PERMISSION_DENIED']&&this[_0x4796d3(0x305)][_0x4796d3(0x1b4)]({'title':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x308)),'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x232)),'type':_0x4796d3(0x2f6),'duration':0x0}),_0x1e13ee['id']===_0x15f878[_0x4796d3(0x2fe)]&&this[_0x4796d3(0x17f)][_0x4796d3(0x1b4)]({'type':_0x53c397[_0x4796d3(0x307)],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x3bb))+'('+_0x1e13ee['data']+')'}),_0x1e13ee['id']===_0x15f878[_0x4796d3(0x3a0)]&&this[_0x4796d3(0x17f)][_0x4796d3(0x1b4)]({'type':_0x53c397[_0x4796d3(0x1ba)],'content':this[_0x4796d3(0x36e)]['t'](_0x1e13ee['data']||'')}),_0x1e13ee['id']===_0x15f878['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x4796d3(0x1b4)]({'type':_0x53c397[_0x4796d3(0x1ba)],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x3ae))}),_0x1e13ee['id']===_0x15f878[_0x4796d3(0x173)]&&this[_0x4796d3(0x17f)][_0x4796d3(0x1b4)]({'type':_0x53c397[_0x4796d3(0x307)],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x2cb))}),_0x1e13ee['id']===_0x15f878[_0x4796d3(0x3a9)]&&this[_0x4796d3(0x17f)]['show']({'type':_0x53c397[_0x4796d3(0x307)],'content':this[_0x4796d3(0x36e)]['t'](_0x4796d3(0x211))});}));}};_e=cn([F(0x0,_0x2a1e35),F(0x1,_0x9b4c08),F(0x2,_0x1edbdc(_0x152d43)),F(0x3,_0x5322e7),F(0x4,_0x5066fc),F(0x5,_0x1edbdc(_0x18978e))],_e);var _n=Object[_0x10e5ae(0x2a1)],ln=(_0x2ebb29,_0x58ac32,_0x5a4c83,_0x586a66)=>{const _0x4fcd2b=_0x10e5ae;for(var _0x2b4e88=_0x586a66>0x1?void 0x0:_0x586a66?_n(_0x58ac32,_0x5a4c83):_0x58ac32,_0x3c2044=_0x2ebb29[_0x4fcd2b(0x39a)]-0x1,_0x2dcba3;_0x3c2044>=0x0;_0x3c2044--)(_0x2dcba3=_0x2ebb29[_0x3c2044])&&(_0x2b4e88=_0x2dcba3(_0x2b4e88)||_0x2b4e88);return _0x2b4e88;},ne=(_0x54ae4e,_0x5e881f)=>(_0x5d7420,_0x481f29)=>_0x5e881f(_0x5d7420,_0x481f29,_0x54ae4e);let le=class extends _0x3ae839{constructor(_0x244998,_0xbeaaec,_0xbf5031,_0xef81bf){const _0x354e7c=_0x10e5ae;super(),_(this,_0x354e7c(0x1a3)),(this[_0x354e7c(0x3ac)]=_0x244998,this['_httpService']=_0xbeaaec,this[_0x354e7c(0x28c)]=_0xbf5031,this[_0x354e7c(0x1ef)]=_0xef81bf,this[_0x354e7c(0x178)]());}[_0x10e5ae(0x178)](){const _0xd6309e=_0x10e5ae;this[_0xd6309e(0x171)](),this[_0xd6309e(0x28a)](),this[_0xd6309e(0x296)](),this[_0xd6309e(0x172)]();}[_0x10e5ae(0x172)](){const _0x109979=_0x10e5ae;this[_0x109979(0x212)](this[_0x109979(0x1ef)][_0x109979(0x26c)]['subscribe'](_0x2253d2=>{const _0x4c7e3a=_0x109979;this[_0x4c7e3a(0x1a3)]=_0x2253d2==null?void 0x0:_0x2253d2['memberID'];}));}['_initWindowErrorListener'](){const _0x3e69a8=_0x10e5ae,_0x30754d=_0x1b0ebc=>{const _0x4c1e8f=_0x22a7;var _0x2df3b2;this[_0x4c1e8f(0x1eb)](_0x4c1e8f(0x2f6),_0x4c1e8f(0x220)+_0x1b0ebc[_0x4c1e8f(0x385)]+'\x20at\x20'+_0x1b0ebc[_0x4c1e8f(0x255)]+':'+_0x1b0ebc['lineno']+':'+_0x1b0ebc[_0x4c1e8f(0x260)]+'\x0a'+(((_0x2df3b2=_0x1b0ebc[_0x4c1e8f(0x2f6)])==null?void 0x0:_0x2df3b2[_0x4c1e8f(0x361)])||''));};window[_0x3e69a8(0x213)]('error',_0x30754d),this['disposeWithMe'](()=>{const _0x4b8bff=_0x3e69a8;window[_0x4b8bff(0x1c1)](_0x4b8bff(0x2f6),_0x30754d);});}['_initUnhandledRejectionListener'](){const _0x1be584=_0x10e5ae,_0x2c7578=_0x46316d=>{const _0x284d62=_0x22a7;this['_uploadLog']('error',_0x284d62(0x228)+_0x46316d[_0x284d62(0x398)]);};window[_0x1be584(0x213)]('unhandledrejection',_0x2c7578),this['disposeWithMe'](()=>{const _0x3c438d=_0x1be584;window[_0x3c438d(0x1c1)]('unhandledrejection',_0x2c7578);});}[_0x10e5ae(0x296)](){const _0x213d6a=_0x10e5ae,_0x47f638=this['_logService'][_0x213d6a(0x2f6)]['bind'](this[_0x213d6a(0x28c)]);this[_0x213d6a(0x28c)][_0x213d6a(0x2f6)]=(..._0x2b7f7a)=>{const _0xeaedfb=_0x213d6a,_0x1115e7=_0x2b7f7a[_0xeaedfb(0x310)](_0x4bef5d=>_0x4bef5d instanceof Error?_0x4bef5d[_0xeaedfb(0x385)]+'\x0a'+_0x4bef5d[_0xeaedfb(0x361)]:String(_0x4bef5d))['join']('\x20');this[_0xeaedfb(0x1eb)]('error',_0xeaedfb(0x24b)+_0x1115e7),_0x47f638(..._0x2b7f7a);},this[_0x213d6a(0x212)](()=>{const _0x265500=_0x213d6a;this[_0x265500(0x28c)]['error']=_0x47f638;});}['_uploadLog'](_0x31a8aa,_0x1f398b){const _0x424159=_0x10e5ae;try{const _0x2b0ba7={'userId':this[_0x424159(0x1a3)],'logLabel':_0x31a8aa,'content':_0x1f398b};this[_0x424159(0x21a)][_0x424159(0x238)]('/universer-api/frontend/logs',{'body':_0x2b0ba7})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x1edbdc(_0x4c84de)),ne(0x1,_0x1edbdc(_0x19584b)),ne(0x2,_0x55546c),ne(0x3,_0x1edbdc(_0x46d329))],le);const hn=_0x10e5ae(0x3b8),_t={};var un=Object[_0x10e5ae(0x2a1)],dn=(_0x4d4ef3,_0x30dacc,_0x2ee067,_0x1e575e)=>{for(var _0x587661=_0x1e575e>0x1?void 0x0:_0x1e575e?un(_0x30dacc,_0x2ee067):_0x30dacc,_0x5a041a=_0x4d4ef3['length']-0x1,_0xd63800;_0x5a041a>=0x0;_0x5a041a--)(_0xd63800=_0x4d4ef3[_0x5a041a])&&(_0x587661=_0xd63800(_0x587661)||_0x587661);return _0x587661;},lt=(_0x23501c,_0x181c51)=>(_0x50edc8,_0x403f26)=>_0x181c51(_0x50edc8,_0x403f26,_0x23501c);let he=class{constructor(_0xfc6b20,_0x1c9a3c){const _0x3aeb3c=_0x10e5ae;this[_0x3aeb3c(0x24d)]=_0xfc6b20,this[_0x3aeb3c(0x2fa)]=_0x1c9a3c;}[_0x10e5ae(0x3a8)](_0x3e0ac3){const _0x22e06c=_0x10e5ae;this[_0x22e06c(0x1bd)](_0x3e0ac3),this['_transformPreviousActiveRange'](_0x3e0ac3);}[_0x10e5ae(0x242)](_0x58dd0a){const _0x4ab95d=_0x10e5ae,{unitID:_0x4bcfc1}=_0x58dd0a,_0x1c2f0d=this[_0x4ab95d(0x2fa)][_0x4ab95d(0x3af)](_0x4bcfc1)[_0x4ab95d(0x3b6)](_0x5ed8e2),{redoCache:_0xab3f8f}=_0x1c2f0d[_0x4ab95d(0x30d)]();if(_0xab3f8f['length']===0x0)return _0x58dd0a;let _0x47a63d=_0x36fc49[_0x4ab95d(0x1f4)](_0x58dd0a[_0x4ab95d(0x373)][0x0]);for(let _0x3fd0d9=0x0;_0x3fd0d9<_0xab3f8f[_0x4ab95d(0x39a)];_0x3fd0d9++){const _0x34ae46={'id':'doc.mutation.rich-text-editing','params':{..._0xab3f8f[_0x3fd0d9]}},_0x52b2a3=this[_0x4ab95d(0x24d)][_0x4ab95d(0x1dd)](_0x47a63d,_0x34ae46,!0x1);if(_0x169852(_0x52b2a3))throw _0x52b2a3['error'];_0x47a63d=_0x52b2a3[_0x4ab95d(0x36f)];}return{..._0x36fc49[_0x4ab95d(0x1f4)](_0x58dd0a),'mutations':[_0x47a63d]};}['_transformUndoRedoStack'](_0x3d3479){const _0x104971=_0x10e5ae,{unitID:_0x267489}=_0x3d3479,_0x4d1439=this[_0x104971(0x2fa)][_0x104971(0x3af)](_0x267489)[_0x104971(0x3b6)](_0x5ed8e2),{undoCache:_0x41a7fc,redoCache:_0x4da186}=_0x4d1439[_0x104971(0x30d)]();if(_0x41a7fc[_0x104971(0x39a)]===0x0||_0x4da186[_0x104971(0x39a)]===0x0)return;const _0x1307bb=[],_0x1d5629=[];let _0x1aa875=_0x36fc49['deepClone'](_0x3d3479['mutations'][0x0]),_0x47542f=_0x36fc49[_0x104971(0x1f4)](_0x3d3479['mutations'][0x0]);for(let _0x4542d3=_0x41a7fc[_0x104971(0x39a)]-0x1;_0x4542d3>=0x0;_0x4542d3--){const _0x323c56={'id':'doc.mutation.rich-text-editing','params':{..._0x41a7fc[_0x4542d3]}},_0x48e96a={'id':'doc.mutation.rich-text-editing','params':{..._0x4da186[_0x4542d3]}},_0x4fc74b=this[_0x104971(0x24d)][_0x104971(0x1dd)](_0x1aa875,_0x323c56,!0x1),_0x2450e1=this[_0x104971(0x24d)]['transformMutation'](_0x47542f,_0x48e96a,!0x1);if(_0x169852(_0x4fc74b))throw _0x4fc74b[_0x104971(0x2f6)];if(_0x169852(_0x2450e1))throw _0x2450e1[_0x104971(0x2f6)];_0x1307bb[_0x104971(0x31e)](_0x4fc74b['m2Prime'][_0x104971(0x240)]),_0x1d5629[_0x104971(0x31e)](_0x2450e1[_0x104971(0x27c)][_0x104971(0x240)]),_0x1aa875=_0x4fc74b[_0x104971(0x36f)],_0x47542f=_0x2450e1[_0x104971(0x36f)];}_0x4d1439[_0x104971(0x3c2)]({'undoCache':_0x1307bb,'redoCache':_0x1d5629});}[_0x10e5ae(0x36a)](_0x5cb943){const _0x338266=_0x10e5ae,{unitID:_0x5d7ead}=_0x5cb943,_0x426960=this[_0x338266(0x2fa)]['getRenderById'](_0x5d7ead)[_0x338266(0x3b6)](_0x5ed8e2),_0x25b97f=_0x426960[_0x338266(0x3a1)]();if(_0x25b97f==null)return;const _0x1d6da0=[{'id':_0x338266(0x3c3),'params':{'unitId':_0x5cb943['unitID'],'actions':null,'textRanges':[_0x25b97f]}}],_0x5a445b=this[_0x338266(0x24d)][_0x338266(0x275)](_0x5cb943,_0x1d6da0);if(!_0xd2aef2(_0x5a445b))throw _0x5a445b[_0x338266(0x2f6)];const _0x431c58=_0x5a445b['m2Prime'][0x0][_0x338266(0x240)]['textRanges'];Array[_0x338266(0x2e1)](_0x431c58)&&_0x431c58['length']&&_0x426960['setActiveRange'](_0x431c58[0x0]);}};he=dn([lt(0x0,_0x1c83da),lt(0x1,_0x492138)],he);var Sn=Object[_0x10e5ae(0x2a1)],In=(_0x3ffd57,_0x5c5d71,_0x1fc758,_0x14714d)=>{for(var _0x16beba=_0x14714d>0x1?void 0x0:_0x14714d?Sn(_0x5c5d71,_0x1fc758):_0x5c5d71,_0x19a615=_0x3ffd57['length']-0x1,_0xba975b;_0x19a615>=0x0;_0x19a615--)(_0xba975b=_0x3ffd57[_0x19a615])&&(_0x16beba=_0xba975b(_0x16beba)||_0x16beba);return _0x16beba;},Le=(_0x1a18e1,_0xc3679)=>(_0x2f6a41,_0x12eaed)=>_0xc3679(_0x2f6a41,_0x12eaed,_0x1a18e1);let ue=class{constructor(_0x5f74d4,_0x2a84ac,_0x11f518){const _0x561366=_0x10e5ae;this[_0x561366(0x3ac)]=_0x5f74d4,this[_0x561366(0x24d)]=_0x2a84ac,this[_0x561366(0x2d4)]=_0x11f518;}[_0x10e5ae(0x18e)](_0x4cbc0a){const _0x3ea357=_0x10e5ae;this[_0x3ea357(0x2ad)](_0x4cbc0a);}[_0x10e5ae(0x242)](_0x2ba67d){const _0xf87218=_0x10e5ae,{unitID:_0x1547a3}=_0x2ba67d,{collaboration:_0x22fa4f}=this[_0xf87218(0x2d4)][_0xf87218(0x3bd)](_0x1547a3);if(_0x22fa4f['length']===0x0)return _0x2ba67d;let _0x3c40c8=_0x36fc49['deepClone'](_0x2ba67d['mutations'][0x0]);for(let _0x2a41d6=0x0;_0x2a41d6<_0x22fa4f[_0xf87218(0x39a)];_0x2a41d6++){const _0xd59558={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x22fa4f[_0x2a41d6][_0xf87218(0x1b8)],..._0x22fa4f[_0x2a41d6]['redoState']}},_0x46891c=this[_0xf87218(0x24d)][_0xf87218(0x1dd)](_0x3c40c8,_0xd59558,!0x1);if(_0x169852(_0x46891c))throw _0x46891c['error'];_0x3c40c8=_0x46891c[_0xf87218(0x36f)];}return{..._0x36fc49[_0xf87218(0x1f4)](_0x2ba67d),'mutations':[_0x3c40c8]};}[_0x10e5ae(0x2ad)](_0x47c121){const _0x453823=_0x10e5ae,{unitID:_0x37c824}=_0x47c121,{history:_0xbedb0,collaboration:_0x3a4e1e}=this['_docStateChangeManagerService'][_0x453823(0x3bd)](_0x37c824);if(_0xbedb0['length']===0x0&&_0x3a4e1e[_0x453823(0x39a)]===0x0)return;const _0x5dec4e=[],_0x2a7c3d=[];let _0x1bb041=_0x36fc49[_0x453823(0x1f4)](_0x47c121[_0x453823(0x373)][0x0]),_0x3f97d6=_0x36fc49[_0x453823(0x1f4)](_0x47c121[_0x453823(0x373)][0x0]);for(let _0x21c496=_0xbedb0['length']-0x1;_0x21c496>=0x0;_0x21c496--){const _0x28a9df={'id':_0x453823(0x3c3),'params':{'unitId':_0xbedb0[_0x21c496]['unitId'],..._0xbedb0[_0x21c496][_0x453823(0x25d)]}},_0x1ff3e1={'id':_0x453823(0x3c3),'params':{'unitId':_0xbedb0[_0x21c496][_0x453823(0x1b8)],..._0xbedb0[_0x21c496][_0x453823(0x324)]}},_0x4130a9=this[_0x453823(0x24d)]['transformMutation'](_0x1bb041,_0x28a9df,!0x1),_0x3b5ef9=this[_0x453823(0x24d)][_0x453823(0x1dd)](_0x3f97d6,_0x1ff3e1,!0x1);if(_0x169852(_0x4130a9))throw _0x4130a9[_0x453823(0x2f6)];if(_0x169852(_0x3b5ef9))throw _0x3b5ef9[_0x453823(0x2f6)];_0x5dec4e[_0x453823(0x31e)]({..._0xbedb0[_0x21c496],'undoState':_0x4130a9[_0x453823(0x27c)][_0x453823(0x240)],'redoState':_0x3b5ef9[_0x453823(0x27c)][_0x453823(0x240)]}),_0x1bb041=_0x4130a9['m1Prime'],_0x3f97d6=_0x3b5ef9[_0x453823(0x36f)];}_0x1bb041=_0x36fc49[_0x453823(0x1f4)](_0x47c121[_0x453823(0x373)][0x0]),_0x3f97d6=_0x36fc49[_0x453823(0x1f4)](_0x47c121[_0x453823(0x373)][0x0]);for(let _0x4d471e=_0x3a4e1e['length']-0x1;_0x4d471e>=0x0;_0x4d471e--){const _0x91a3fd={'id':_0x453823(0x3c3),'params':{'unitId':_0x3a4e1e[_0x4d471e]['unitId'],..._0x3a4e1e[_0x4d471e][_0x453823(0x25d)]}},_0x5d5071={'id':_0x453823(0x3c3),'params':{'unitId':_0x3a4e1e[_0x4d471e][_0x453823(0x1b8)],..._0x3a4e1e[_0x4d471e][_0x453823(0x324)]}},_0x1f4e6f=this[_0x453823(0x24d)]['transformMutation'](_0x1bb041,_0x91a3fd,!0x1),_0x4096fb=this[_0x453823(0x24d)][_0x453823(0x1dd)](_0x3f97d6,_0x5d5071,!0x1);if(_0x169852(_0x1f4e6f))throw _0x1f4e6f['error'];if(_0x169852(_0x4096fb))throw _0x4096fb[_0x453823(0x2f6)];_0x2a7c3d[_0x453823(0x31e)]({..._0x3a4e1e[_0x4d471e],'undoState':_0x1f4e6f[_0x453823(0x27c)][_0x453823(0x240)],'redoState':_0x4096fb['m2Prime'][_0x453823(0x240)]}),_0x1bb041=_0x1f4e6f['m1Prime'],_0x3f97d6=_0x4096fb[_0x453823(0x36f)];}this[_0x453823(0x2d4)][_0x453823(0x2ac)](_0x37c824,{'history':_0x5dec4e,'collaboration':_0x2a7c3d});}};ue=In([Le(0x0,_0x1edbdc(_0x4c84de)),Le(0x1,_0x1c83da),Le(0x2,_0x1edbdc(_0x55703d))],ue);var mn=Object[_0x10e5ae(0x2a1)],fn=(_0x1a9250,_0xad789e,_0x17c081,_0x58c3ac)=>{for(var _0x3c325d=_0x58c3ac>0x1?void 0x0:_0x58c3ac?mn(_0xad789e,_0x17c081):_0xad789e,_0x16d60c=_0x1a9250['length']-0x1,_0x1e5f4d;_0x16d60c>=0x0;_0x16d60c--)(_0x1e5f4d=_0x1a9250[_0x16d60c])&&(_0x3c325d=_0x1e5f4d(_0x3c325d)||_0x3c325d);return _0x3c325d;},ht=(_0x326134,_0x4bc08a)=>(_0x3b7a88,_0x150c55)=>_0x4bc08a(_0x3b7a88,_0x150c55,_0x326134);let de=class{constructor(_0xc0ac6e,_0x4dd001){const _0x29dc7e=_0x10e5ae;this[_0x29dc7e(0x3ac)]=_0xc0ac6e,this[_0x29dc7e(0x24d)]=_0x4dd001;}['transformSelections'](_0x56ef05){const _0x5258a8=_0x10e5ae;var _0x2e2a78;const _0x5017e4=this[_0x5258a8(0x3ac)][_0x5258a8(0x30f)](_0x377aef),_0x158978=(_0x2e2a78=_0x5017e4[_0x5258a8(0x1b2)]())!=null?_0x2e2a78:[];if(_0x158978['length']===0x0)return;const _0x1acfc8=_0x56ef05['unitID'],_0x3d09ee=[{'id':_0x5258a8(0x3c3),'params':{'unitId':_0x1acfc8,'actions':null,'textRanges':_0x158978}}],_0x5657e8=this[_0x5258a8(0x24d)][_0x5258a8(0x275)](_0x56ef05,_0x3d09ee);if(!_0xd2aef2(_0x5657e8))throw _0x5657e8['error'];const _0x1c5f17=_0x5657e8['m2Prime'][0x0][_0x5258a8(0x240)]['textRanges'];Array[_0x5258a8(0x2e1)](_0x1c5f17)&&_0x1c5f17[_0x5258a8(0x39a)]&&_0x5017e4['replaceDocRanges'](_0x1c5f17,{'unitId':_0x1acfc8,'subUnitId':_0x1acfc8},!0x1);}};de=fn([ht(0x0,_0x1edbdc(_0x4c84de)),ht(0x1,_0x1c83da)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x3dcad4,_0x1f9ca4,_0x6db838,_0x3932fd)=>{const _0x280f17=_0x10e5ae;for(var _0x72cd54=_0x3932fd>0x1?void 0x0:_0x3932fd?gn(_0x1f9ca4,_0x6db838):_0x1f9ca4,_0x1e2740=_0x3dcad4[_0x280f17(0x39a)]-0x1,_0x5d24ca;_0x1e2740>=0x0;_0x1e2740--)(_0x5d24ca=_0x3dcad4[_0x1e2740])&&(_0x72cd54=_0x5d24ca(_0x72cd54)||_0x72cd54);return _0x72cd54;},U=(_0x17fce4,_0x1ca052)=>(_0x4b5722,_0x32eec0)=>_0x1ca052(_0x4b5722,_0x32eec0,_0x17fce4);let Se=class extends _0x3ae839{constructor(_0xc8ed93,_0x4ea45c,_0x34e8b9,_0x1fd819,_0x343224,_0xf95d80,_0x30a89b,_0x1f5753){const _0xce6faf=_0x10e5ae;super(),_(this,_0xce6faf(0x312),new _0x2a3ec5(_0x49794b['NOT_COLLAB'])),(this[_0xce6faf(0x2d4)]=_0xc8ed93,this[_0xce6faf(0x350)]=_0x4ea45c,this[_0xce6faf(0x231)]=_0x34e8b9,this[_0xce6faf(0x30c)]=_0x1fd819,this[_0xce6faf(0x264)]=_0x343224,this[_0xce6faf(0x367)]=_0xf95d80,this[_0xce6faf(0x17f)]=_0x30a89b,this[_0xce6faf(0x36e)]=_0x1f5753,this[_0xce6faf(0x1ec)]());}['_initEntityListener'](){const _0x3923ba=_0x10e5ae;this[_0x3923ba(0x212)](this[_0x3923ba(0x350)][_0x3923ba(0x336)][_0x3923ba(0x229)](_0xf7e870=>{const _0x366a92=_0x3923ba,_0x1bf478=this['_docStateChangeManagerService'][_0x366a92(0x262)][_0x366a92(0x229)](_0x3b1448=>{const _0x1ebfb5=_0x366a92;if(_0x3b1448==null)return;const {unitId:_0x2013e8,redoState:_0x4ab78f,commandId:_0x527bf5}=_0x3b1448;if(_0x2013e8!==_0xf7e870[_0x1ebfb5(0x2b4)])return;const _0x264a97={'id':_0x527bf5,'type':_0x129c45[_0x1ebfb5(0x204)],'params':{'unitId':_0x2013e8,'actions':_0x4ab78f['actions'],'textRanges':null}};_0xf7e870[_0x1ebfb5(0x17d)](_0x264a97);});if(_0xf7e870[_0x366a92(0x212)](_0x1bf478),_0xf7e870 instanceof _0x2e5e83){const _0x70f888={'onTransformIME':_0x5b2669=>this[_0x366a92(0x231)][_0x366a92(0x3a8)](_0x5b2669),'onTransformState':_0x53e137=>this[_0x366a92(0x30c)][_0x366a92(0x18e)](_0x53e137),'onTransformSelections':_0x4a22f5=>this['_docTransformSelectionsService']['transformSelections'](_0x4a22f5),'onSyncEditingCollabCursor':_0x1a7b26=>this[_0x366a92(0x367)][_0x366a92(0x34c)](_0x1a7b26),'onTransformRemoteChangesetByIMECache':_0x1ed91f=>this['_docTransformIMECacheService'][_0x366a92(0x242)](_0x1ed91f),'onTransformRemoteChangesetByStateCache':_0x4ef620=>this[_0x366a92(0x30c)]['transformRemoteChangeset'](_0x4ef620)};_0xf7e870[_0x366a92(0x1e4)](_0x70f888);}}));}};Se=En([U(0x0,_0x1edbdc(_0x55703d)),U(0x1,_0x1edbdc(_0x49d37f)),U(0x2,_0x1edbdc(he)),U(0x3,_0x1edbdc(ue)),U(0x4,_0x1edbdc(de)),U(0x5,_0x1edbdc(ze)),U(0x6,_0x5322e7),U(0x7,_0x1edbdc(_0x18978e))],Se);var Z=(_0xf16476=>(_0xf16476[_0xf16476[_0x10e5ae(0x2c6)]=0x0]=_0x10e5ae(0x2c6),_0xf16476[_0xf16476['OK']=0x1]='OK',_0xf16476[_0xf16476[_0x10e5ae(0x2b1)]=0x2]=_0x10e5ae(0x2b1),_0xf16476[_0xf16476[_0x10e5ae(0x279)]=0x3]=_0x10e5ae(0x279),_0xf16476[_0xf16476[_0x10e5ae(0x39e)]=0x4]=_0x10e5ae(0x39e),_0xf16476[_0xf16476['UNAUTHENTICATED']=0x5]=_0x10e5ae(0x2ba),_0xf16476[_0xf16476['ALREADY_EXISTS']=0x6]=_0x10e5ae(0x285),_0xf16476[_0xf16476['INVALID_ARGUMENT']=0x7]=_0x10e5ae(0x2d2),_0xf16476[_0xf16476[_0x10e5ae(0x3a2)]=0x8]=_0x10e5ae(0x3a2),_0xf16476[_0xf16476[_0x10e5ae(0x190)]=0x9]=_0x10e5ae(0x190),_0xf16476[_0xf16476[_0x10e5ae(0x2ec)]=0xa]='LOGIN_FAILED',_0xf16476[_0xf16476[_0x10e5ae(0x17b)]=0xb]=_0x10e5ae(0x17b),_0xf16476[_0xf16476['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x10e5ae(0x227),_0xf16476[_0xf16476[_0x10e5ae(0x1d8)]=0xd]=_0x10e5ae(0x1d8),_0xf16476[_0xf16476[_0x10e5ae(0x28f)]=0xe]=_0x10e5ae(0x28f),_0xf16476[_0xf16476[_0x10e5ae(0x221)]=0xf]=_0x10e5ae(0x221),_0xf16476[_0xf16476['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0xf16476[_0xf16476[_0x10e5ae(0x27f)]=0x64]=_0x10e5ae(0x27f),_0xf16476[_0xf16476['ERROR_AGAIN']=0x65]=_0x10e5ae(0x294),_0xf16476[_0xf16476[_0x10e5ae(0x1cb)]=0xc9]=_0x10e5ae(0x1cb),_0xf16476[_0xf16476['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0xf16476[_0xf16476[_0x10e5ae(0x2c4)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xf16476[_0xf16476['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x10e5ae(0x2fc),_0xf16476[_0xf16476[_0x10e5ae(0x38b)]=0x1772]=_0x10e5ae(0x38b),_0xf16476[_0xf16476['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x10e5ae(0x175),_0xf16476[_0xf16476[_0x10e5ae(0x3bc)]=0x1b59]=_0x10e5ae(0x3bc),_0xf16476[_0xf16476[_0x10e5ae(0x322)]=0x1b5a]=_0x10e5ae(0x322),_0xf16476[_0xf16476[_0x10e5ae(0x291)]=0x1b5b]=_0x10e5ae(0x291),_0xf16476[_0xf16476[_0x10e5ae(0x1d2)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xf16476[_0xf16476['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0xf16476[_0xf16476['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x10e5ae(0x288),_0xf16476[_0xf16476[_0x10e5ae(0x374)]=0x2329]=_0x10e5ae(0x374),_0xf16476[_0xf16476[_0x10e5ae(0x352)]=0x232a]=_0x10e5ae(0x352),_0xf16476[_0xf16476['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x10e5ae(0x38a),_0xf16476[_0xf16476[_0x10e5ae(0x33c)]=0x232c]=_0x10e5ae(0x33c),_0xf16476[_0xf16476[_0x10e5ae(0x2eb)]=0x232d]=_0x10e5ae(0x2eb),_0xf16476[_0xf16476[_0x10e5ae(0x2bf)]=0x2711]=_0x10e5ae(0x2bf),_0xf16476[_0xf16476[_0x10e5ae(0x31a)]=0x2712]=_0x10e5ae(0x31a),_0xf16476[_0xf16476[_0x10e5ae(0x1ae)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xf16476[_0xf16476[_0x10e5ae(0x267)]=0x2714]=_0x10e5ae(0x267),_0xf16476[_0xf16476[_0x10e5ae(0x2de)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xf16476[_0xf16476[_0x10e5ae(0x1d4)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xf16476[_0xf16476[_0x10e5ae(0x2f3)]=0x271c]=_0x10e5ae(0x2f3),_0xf16476[_0xf16476[_0x10e5ae(0x208)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xf16476[_0xf16476[_0x10e5ae(0x320)]=0x271e]=_0x10e5ae(0x320),_0xf16476[_0xf16476[_0x10e5ae(0x2a8)]=0x271f]=_0x10e5ae(0x2a8),_0xf16476[_0xf16476[_0x10e5ae(0x2a0)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0xf16476[_0xf16476[_0x10e5ae(0x1cc)]=0x2af9]=_0x10e5ae(0x1cc),_0xf16476[_0xf16476[_0x10e5ae(0x176)]=0x2ee1]=_0x10e5ae(0x176),_0xf16476[_0xf16476[_0x10e5ae(0x274)]=0x2ee2]=_0x10e5ae(0x274),_0xf16476[_0xf16476[_0x10e5ae(0x22a)]=0x2ee3]=_0x10e5ae(0x22a),_0xf16476[_0xf16476[_0x10e5ae(0x3bf)]=0x2ee4]=_0x10e5ae(0x3bf),_0xf16476[_0xf16476[_0x10e5ae(0x168)]=0x2ee5]=_0x10e5ae(0x168),_0xf16476[_0xf16476['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x10e5ae(0x2dd),_0xf16476[_0xf16476['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x10e5ae(0x170),_0xf16476[_0xf16476['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x10e5ae(0x1e3),_0xf16476[_0xf16476[_0x10e5ae(0x306)]=0x36b1]=_0x10e5ae(0x306),_0xf16476[_0xf16476[_0x10e5ae(0x1a8)]=0x36b2]=_0x10e5ae(0x1a8),_0xf16476[_0xf16476[_0x10e5ae(0x247)]=0x36b3]=_0x10e5ae(0x247),_0xf16476[_0xf16476[_0x10e5ae(0x36b)]=0x36b4]=_0x10e5ae(0x36b),_0xf16476[_0xf16476[_0x10e5ae(0x1f2)]=0x36b5]=_0x10e5ae(0x1f2),_0xf16476[_0xf16476[_0x10e5ae(0x321)]=0x36b6]=_0x10e5ae(0x321),_0xf16476[_0xf16476[_0x10e5ae(0x1d6)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0xf16476[_0xf16476['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x10e5ae(0x1c5),_0xf16476[_0xf16476[_0x10e5ae(0x217)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0xf16476[_0xf16476[_0x10e5ae(0x32e)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0xf16476[_0xf16476[_0x10e5ae(0x293)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xf16476[_0xf16476[_0x10e5ae(0x2b3)]=0x37dd]=_0x10e5ae(0x2b3),_0xf16476[_0xf16476[_0x10e5ae(0x379)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xf16476[_0xf16476[_0x10e5ae(0x206)]=0x3a9a]=_0x10e5ae(0x206),_0xf16476[_0xf16476[_0x10e5ae(0x28d)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0xf16476[_0xf16476[_0x10e5ae(0x215)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xf16476[_0xf16476['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x10e5ae(0x29b),_0xf16476[_0xf16476[_0x10e5ae(0x326)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xf16476[_0xf16476[_0x10e5ae(0x2f7)]=0x3a9f]=_0x10e5ae(0x2f7),_0xf16476[_0xf16476[_0x10e5ae(0x2ea)]=0x3e81]=_0x10e5ae(0x2ea),_0xf16476[_0xf16476[_0x10e5ae(0x199)]=-0x1]='UNRECOGNIZED',_0xf16476))(Z||{});function vn(_0x309cf9){const _0xe8308d=_0x10e5ae;var _0x158749,_0x42c3a3;const _0x15decd=(_0x158749=_0x309cf9[_0xe8308d(0x25a)])==null?void 0x0:_0x158749[_0xe8308d(0x1f1)],_0x1857ab=((_0x42c3a3=_0x309cf9[_0xe8308d(0x25a)])==null?void 0x0:_0x42c3a3['totalFormulasToCalculate'])||0x0;return _0x15decd===_0x239954[_0xe8308d(0x386)]&&_0x1857ab>0x0;}function pn(_0x1a2f3a){const _0x46802f=_0x10e5ae;return _0x1a2f3a[_0x46802f(0x194)]===_0x2fe971['SUCCESS'];}var On=Object[_0x10e5ae(0x2a1)],Tn=(_0x5cbf46,_0x4c8730,_0x19d18d,_0x2343fd)=>{const _0x3ac1f0=_0x10e5ae;for(var _0x3b4c33=_0x2343fd>0x1?void 0x0:_0x2343fd?On(_0x4c8730,_0x19d18d):_0x4c8730,_0x1d69e2=_0x5cbf46[_0x3ac1f0(0x39a)]-0x1,_0x5e6fd2;_0x1d69e2>=0x0;_0x1d69e2--)(_0x5e6fd2=_0x5cbf46[_0x1d69e2])&&(_0x3b4c33=_0x5e6fd2(_0x3b4c33)||_0x3b4c33);return _0x3b4c33;},P=(_0x38f2d1,_0x1fb373)=>(_0x34f3d9,_0x478242)=>_0x1fb373(_0x34f3d9,_0x478242,_0x38f2d1);const Cn=_0x10e5ae(0x197),Rn=_0x10e5ae(0x1b7),Dn=_0x10e5ae(0x207);let Ie=class extends _0x3ae839{constructor(_0x192186,_0x334d2d,_0x5c42e8,_0x585d9f,_0x35465d,_0x18f707,_0x230c10){const _0x5ad424=_0x10e5ae;super(),_(this,_0x5ad424(0x31f),null),_(this,_0x5ad424(0x31c),0x0),_(this,_0x5ad424(0x380),0x0),_(this,_0x5ad424(0x241),[]),_(this,_0x5ad424(0x38e),0x0),(this['_messageService']=_0x192186,this[_0x5ad424(0x32a)]=_0x334d2d,this[_0x5ad424(0x358)]=_0x5c42e8,this['_httpService']=_0x585d9f,this[_0x5ad424(0x26a)]=_0x35465d,this[_0x5ad424(0x28c)]=_0x18f707,this['_localeService']=_0x230c10,this['_initCommandInterceptor']());}[_0x10e5ae(0x2c0)](){const _0x33b8a3=_0x10e5ae;this[_0x33b8a3(0x212)](this[_0x33b8a3(0x32a)]['beforeCommandExecuted']((_0x2ecb0d,_0x2a42c3)=>{const _0x3f733d=_0x33b8a3;var _0x13bf59;if(_0x2ecb0d['id']!==_0x5f56a2['id'])return;const _0x233e0b=_0x2ecb0d[_0x3f733d(0x240)];if(!this[_0x3f733d(0x2c1)]((_0x13bf59=_0x233e0b[_0x3f733d(0x2d0)])!=null?_0x13bf59:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x3f733d(0x1bb)](_0x2ecb0d,_0x2a42c3),this[_0x3f733d(0x185)](),new _0x377e6a();})),this[_0x33b8a3(0x212)](this[_0x33b8a3(0x32a)]['onCommandExecuted']((_0x2c82c0,_0x2b76c7)=>{const _0x14b0a1=_0x33b8a3;if(_0x2c82c0['id']!==_0x38f980['id'])return;const _0x4e21c4=_0x2c82c0[_0x14b0a1(0x240)];if(vn(_0x4e21c4)){const _0x1a7518=_0x5f38d1();this['_taskIds'][_0x14b0a1(0x24c)](_0x1a7518),this[_0x14b0a1(0x1ea)](_0x1a7518);}else{if(pn(_0x4e21c4)&&this[_0x14b0a1(0x241)]['length']>0x0){const _0x4ca5f4=this[_0x14b0a1(0x241)][_0x14b0a1(0x25e)]();this[_0x14b0a1(0x2e6)](_0x4ca5f4);}}}));}[_0x10e5ae(0x375)](){const _0x39d80d=_0x10e5ae;super[_0x39d80d(0x375)](),this[_0x39d80d(0x200)](),this[_0x39d80d(0x241)]=[],this[_0x39d80d(0x380)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x476e4c,_0xa6a6e6){const _0x28397d=_0x10e5ae;for(let _0x1feb5d=0x0;_0x1feb5d<0x1e;_0x1feb5d++)try{if(await this[_0x28397d(0x330)](),this[_0x28397d(0x2c9)]()){this[_0x28397d(0x210)](_0x476e4c,_0xa6a6e6),this[_0x28397d(0x17f)][_0x28397d(0x1b4)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x53c397[_0x28397d(0x316)]});return;}await new Promise(_0x2f53e5=>{const _0xe959b9=_0x28397d;this[_0xe959b9(0x31f)]=window[_0xe959b9(0x353)](_0x2f53e5,0x3e8);});}catch(_0xd8af2c){this[_0x28397d(0x28c)][_0x28397d(0x2f6)](_0xd8af2c);}this[_0x28397d(0x17f)]['show']({'content':this[_0x28397d(0x36e)]['t'](_0x28397d(0x378)),'type':_0x53c397[_0x28397d(0x307)]});}[_0x10e5ae(0x210)](_0x1406f9,_0xc8a953){const _0x5a58b9=_0x10e5ae;try{this[_0x5a58b9(0x32a)][_0x5a58b9(0x2bd)](_0x1406f9['id'],_0x1406f9['params'],_0xc8a953);}catch(_0x1578c9){this[_0x5a58b9(0x28c)]['error'](_0x1578c9);}}[_0x10e5ae(0x263)](_0xf09883,_0x16c2be){const _0x1771f6=_0x10e5ae;_0x16c2be<this[_0x1771f6(0x38e)]||(this[_0x1771f6(0x38e)]=_0x16c2be,this[_0x1771f6(0x31c)]=Number[_0x1771f6(0x34d)](_0xf09883[_0x1771f6(0x37d)]),this[_0x1771f6(0x380)]=Number[_0x1771f6(0x34d)](_0xf09883['currentUsage']));}async[_0x10e5ae(0x1ea)](_0x29c88e){const _0x497a0e=_0x10e5ae;var _0x10cc64,_0x1046f8;const _0x406df0=Date[_0x497a0e(0x35c)]();try{const _0x72b18c=((_0x10cc64=this[_0x497a0e(0x358)][_0x497a0e(0x1d1)](_0x57c3c4))==null?void 0x0:_0x10cc64[_0x497a0e(0x233)])||Rn,_0x57c418=(await this['_httpService'][_0x497a0e(0x238)](_0x72b18c,{'body':JSON['stringify']({'taskId':_0x29c88e})}))['body'];if(((_0x1046f8=_0x57c418['error'])==null?void 0x0:_0x1046f8[_0x497a0e(0x236)])!==Z['OK'])return;this[_0x497a0e(0x263)](_0x57c418[_0x497a0e(0x1d0)],_0x406df0);}catch(_0x555163){this['_logService'][_0x497a0e(0x2f6)](_0x555163);}}async[_0x10e5ae(0x330)](_0x524533){const _0x5d6ebb=_0x10e5ae;var _0x5ddf63,_0x1cf2e9;const _0x12551e=Date[_0x5d6ebb(0x35c)]();try{const _0x380ad5=((_0x5ddf63=this[_0x5d6ebb(0x358)]['getConfig'](_0x57c3c4))==null?void 0x0:_0x5ddf63[_0x5d6ebb(0x1ce)])||Cn,_0x549354=_0x524533?_0x380ad5+_0x5d6ebb(0x36c)+encodeURIComponent(_0x524533):_0x380ad5,_0x16f47b=(await this[_0x5d6ebb(0x21a)][_0x5d6ebb(0x30f)](_0x549354))[_0x5d6ebb(0x2e0)];if(((_0x1cf2e9=_0x16f47b[_0x5d6ebb(0x2f6)])==null?void 0x0:_0x1cf2e9[_0x5d6ebb(0x236)])!==Z['OK'])return;this[_0x5d6ebb(0x263)](_0x16f47b[_0x5d6ebb(0x1d0)],_0x12551e);}catch(_0xdeb069){this['_logService'][_0x5d6ebb(0x2f6)](_0xdeb069);}}async[_0x10e5ae(0x2e6)](_0x2e8783){const _0x2abf4e=_0x10e5ae;var _0x4ff4e5,_0x5e1b95;const _0x360bae=Date['now']();try{const _0x525923=((_0x4ff4e5=this[_0x2abf4e(0x358)][_0x2abf4e(0x1d1)](_0x57c3c4))==null?void 0x0:_0x4ff4e5['releaseFormulaLimitUrl'])||Dn,_0x45d04f=(await this[_0x2abf4e(0x21a)][_0x2abf4e(0x238)](_0x525923,{'body':JSON[_0x2abf4e(0x1e9)]({'taskId':_0x2e8783})}))[_0x2abf4e(0x2e0)];if(((_0x5e1b95=_0x45d04f['error'])==null?void 0x0:_0x5e1b95['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x45d04f[_0x2abf4e(0x1d0)],_0x360bae);}catch(_0xc209a){this[_0x2abf4e(0x28c)][_0x2abf4e(0x2f6)](_0xc209a);}}[_0x10e5ae(0x2c9)](){const _0x527c26=_0x10e5ae;return this[_0x527c26(0x31c)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x527c26(0x380)]>0x0;}[_0x10e5ae(0x200)](){const _0x32ebed=_0x10e5ae;this[_0x32ebed(0x31f)]&&(clearTimeout(this[_0x32ebed(0x31f)]),this[_0x32ebed(0x31f)]=null);}[_0x10e5ae(0x185)](){const _0x13ccff=_0x10e5ae;this['_messageService']['show']({'content':this[_0x13ccff(0x36e)]['t'](_0x13ccff(0x2b5)),'type':_0x53c397['Loading']});}[_0x10e5ae(0x2c1)](_0x38b04b){const _0x29cc74=_0x10e5ae;for(const _0x55222e of _0x38b04b){const {unitId:_0x1f66bd,sheetId:_0x51eed8,range:_0x9e20cc}=_0x55222e,_0x3ceaaf=this[_0x29cc74(0x26a)][_0x29cc74(0x2b2)](_0x1f66bd);if(!_0x3ceaaf)continue;const _0x2ac288=_0x3ceaaf[_0x29cc74(0x297)](_0x51eed8);if(!_0x2ac288)continue;const _0x265734=_0x2ac288['getCellMatrix']();for(let _0x188977=_0x9e20cc[_0x29cc74(0x1fb)];_0x188977<=_0x9e20cc[_0x29cc74(0x2e7)];_0x188977++)for(let _0x1b21d4=_0x9e20cc[_0x29cc74(0x39c)];_0x1b21d4<=_0x9e20cc[_0x29cc74(0x328)];_0x1b21d4++){const _0x3b7c11=_0x265734['getValue'](_0x188977,_0x1b21d4);if(_0x3b7c11&&(_0xb4d481(_0x3b7c11['f'])||_0x43d39d(_0x3b7c11['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x1edbdc(_0x5322e7)),P(0x1,_0x3b4a9a),P(0x2,_0x605853),P(0x3,_0x1edbdc(_0x19584b)),P(0x4,_0x173d8f),P(0x5,_0x55546c),P(0x6,_0x1edbdc(_0x18978e))],Ie);var Nn=Object[_0x10e5ae(0x2a1)],bn=(_0x1278e7,_0x29f248,_0xe6e6bd,_0x428a2e)=>{const _0x2fd4f5=_0x10e5ae;for(var _0x22352b=_0x428a2e>0x1?void 0x0:_0x428a2e?Nn(_0x29f248,_0xe6e6bd):_0x29f248,_0x4639b3=_0x1278e7[_0x2fd4f5(0x39a)]-0x1,_0x83d763;_0x4639b3>=0x0;_0x4639b3--)(_0x83d763=_0x1278e7[_0x4639b3])&&(_0x22352b=_0x83d763(_0x22352b)||_0x22352b);return _0x22352b;},Ue=(_0x2a5e47,_0x287f50)=>(_0xde0c4,_0x200d17)=>_0x287f50(_0xde0c4,_0x200d17,_0x2a5e47);let He=class extends _0x3ae839{constructor(_0x18e36e,_0x4c3b1d,_0xcf152){const _0x16f514=_0x10e5ae;super(),_(this,_0x16f514(0x2ab),new Map()),_(this,_0x16f514(0x2a5),new Map()),_(this,'_disabled',!0x1),(this[_0x16f514(0x358)]=_0x18e36e,this[_0x16f514(0x258)]=_0x4c3b1d,this[_0x16f514(0x35b)]=_0xcf152);}[_0x10e5ae(0x302)](){const _0xe1a254=_0x10e5ae;this[_0xe1a254(0x2ff)]=!0x0;}[_0x10e5ae(0x2db)](){const _0x2b4050=_0x10e5ae;this[_0x2b4050(0x2ff)]=!0x1;}get[_0x10e5ae(0x2f5)](){const _0x416fc3=_0x10e5ae;return this[_0x416fc3(0x2a5)];}['dispose'](){const _0x21cbfa=_0x10e5ae;this[_0x21cbfa(0x191)]()[_0x21cbfa(0x295)](()=>super['dispose']());}async[_0x10e5ae(0x2d3)](_0x598cf2){const _0x7d2f86=_0x10e5ae;return this[_0x7d2f86(0x2ff)]?null:this[_0x7d2f86(0x258)][_0x7d2f86(0x1f3)](_0x4c5e39(_0x598cf2));}async[_0x10e5ae(0x2f0)](_0x1e23e1,_0x4972c6){const _0x5fccad=_0x10e5ae;return!!this[_0x5fccad(0x258)]['setItem'](_0x1e23e1,_0x4972c6);}[_0x10e5ae(0x33d)](_0x1c3670,_0x2eaa02,_0x159e65,_0xdbb4){const _0x398cb5=_0x10e5ae,_0xf15f30=this[_0x398cb5(0x35b)]['getCurrentRevOfUnit'](_0x1c3670);this[_0x398cb5(0x2ab)][_0x398cb5(0x2d5)](_0x1c3670,{'unitID':_0x1c3670,'type':_0x2eaa02,'awaitingChangeset':_0x159e65,'mutations':_0xdbb4,'rev':_0xf15f30}),this['_saveTaskMap'][_0x398cb5(0x23a)](_0x1c3670)||this['_scheduleSaving'](_0x1c3670);}[_0x10e5ae(0x2bb)](_0x3b85ba){const _0x35e162=_0x10e5ae,_0x50b4c2=this['_getSaveTimeout']();_0x50b4c2===0x0?this[_0x35e162(0x2e3)](_0x3b85ba):this[_0x35e162(0x2a5)]['set'](_0x3b85ba,setTimeout(()=>this[_0x35e162(0x2e3)](_0x3b85ba),_0x50b4c2));}[_0x10e5ae(0x182)](){const _0x5135ed=_0x10e5ae;var _0x49bdcd;return(_0x49bdcd=this[_0x5135ed(0x358)][_0x5135ed(0x1d1)](_0x5d33a4))!=null?_0x49bdcd:_0x5ca98d;}[_0x10e5ae(0x2e3)](_0x238eca){const _0x3c9940=_0x10e5ae,_0x238437=this['_saveTaskMap'][_0x3c9940(0x30f)](_0x238eca);return _0x238437!==void 0x0&&window[_0x3c9940(0x1d9)](_0x238437),this['_localStorageService'][_0x3c9940(0x22e)](_0x4c5e39(_0x238eca),this['_cachedData'][_0x3c9940(0x30f)](_0x238eca))[_0x3c9940(0x295)](()=>this[_0x3c9940(0x2a5)]['delete'](_0x238eca));}async['exhaustSavingTask'](){const _0x56601b=_0x10e5ae,_0x2d6b8e=[];this[_0x56601b(0x2a5)][_0x56601b(0x2cd)]((_0x5a33b6,_0xd95fcf)=>{const _0x2b8b21=_0x56601b;window[_0x2b8b21(0x1d9)](_0x5a33b6),_0x2d6b8e[_0x2b8b21(0x24c)](this[_0x2b8b21(0x2e3)](_0xd95fcf)[_0x2b8b21(0x295)](()=>{const _0x40492c=_0x2b8b21;this[_0x40492c(0x2a5)][_0x40492c(0x30a)](_0xd95fcf);}));}),await Promise['all'](_0x2d6b8e);}};He=bn([Ue(0x0,_0x605853),Ue(0x1,_0x4d7c29),Ue(0x2,_0x1edbdc(_0x40fb3e))],He);class Ln extends _0x3ce2d7{constructor(){const _0x3a3187=_0x10e5ae;super(),_(this,'urlChange$'),this['urlChange$']=_0x5e1332(window,'popstate')[_0x3a3187(0x1d3)](_0x5b1bf8(this[_0x3a3187(0x1e5)]),_0x5e31de(0x1),_0x5b9306(void 0x0));}[_0x10e5ae(0x1cf)](_0x5481c1,_0x543584,_0x180489=!0x1){const _0x32b9ee=_0x10e5ae,_0x15b66d=new URL(window['location']['href']);_0x15b66d[_0x32b9ee(0x261)]['set'](_0x5481c1,_0x543584),_0x180489?window['history'][_0x32b9ee(0x19c)]('','',_0x15b66d[_0x32b9ee(0x1a2)]()):window['history']['pushState']('','',_0x15b66d['toString']());}[_0x10e5ae(0x33a)](_0x2d48d0,_0xa61e35=!0x1){const _0x287a4d=_0x10e5ae,_0x6c0803=new URL(window[_0x287a4d(0x339)]['href']);_0x6c0803[_0x287a4d(0x261)][_0x287a4d(0x30a)](_0x2d48d0),_0xa61e35?window[_0x287a4d(0x1f0)][_0x287a4d(0x19c)]('','',_0x6c0803[_0x287a4d(0x1a2)]()):window['history'][_0x287a4d(0x389)]('','',_0x6c0803[_0x287a4d(0x1a2)]());}[_0x10e5ae(0x2ee)](_0x6afbed){const _0x1a9757=_0x10e5ae;var _0x1d2f4f;return(_0x1d2f4f=new URL(window[_0x1a9757(0x339)][_0x1a9757(0x216)])['searchParams'][_0x1a9757(0x30f)](_0x6afbed))!=null?_0x1d2f4f:void 0x0;}}var Un=Object[_0x10e5ae(0x2e8)],Mn=Object[_0x10e5ae(0x2a1)],An=(_0x49251c,_0x4c748a,_0x492ae8)=>_0x4c748a in _0x49251c?Un(_0x49251c,_0x4c748a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x492ae8}):_0x49251c[_0x4c748a]=_0x492ae8,Pn=(_0x55a240,_0x3fe33d,_0x16942d,_0x4f3029)=>{const _0x3d20bb=_0x10e5ae;for(var _0x1a2cbf=_0x4f3029>0x1?void 0x0:_0x4f3029?Mn(_0x3fe33d,_0x16942d):_0x3fe33d,_0x55100c=_0x55a240[_0x3d20bb(0x39a)]-0x1,_0x4c6e2e;_0x55100c>=0x0;_0x55100c--)(_0x4c6e2e=_0x55a240[_0x55100c])&&(_0x1a2cbf=_0x4c6e2e(_0x1a2cbf)||_0x1a2cbf);return _0x1a2cbf;},Me=(_0x3336dc,_0x2981b4)=>(_0x4d5b39,_0x5bb104)=>_0x2981b4(_0x4d5b39,_0x5bb104,_0x3336dc),wn=(_0x53352c,_0x1d24e5,_0x4a72e0)=>An(_0x53352c,_0x1d24e5+'',_0x4a72e0);const yn=_0x10e5ae(0x22d);let Ye=class extends _0x42d66a{constructor(_0xe7ec52=_t,_0x2161c3,_0xc42b92,_0x5c3911){const _0x3a6e8f=_0x10e5ae;super(),this[_0x3a6e8f(0x30e)]=_0xe7ec52,this[_0x3a6e8f(0x2fa)]=_0x2161c3,this[_0x3a6e8f(0x3ac)]=_0xc42b92,this['_configService']=_0x5c3911;const {..._0x4f9e09}=_0x4a6691({},_t,this[_0x3a6e8f(0x30e)]);this[_0x3a6e8f(0x358)][_0x3a6e8f(0x35f)](hn,_0x4f9e09);}['onStarting'](){const _0xa88f3a=_0x10e5ae;this[_0xa88f3a(0x2b9)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x10e5ae(0x2b9)](){const _0x305741=_0x10e5ae;var _0x34552c;const _0x30bd4f=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x219ae4,{'useClass':_0x26b325}],[_0x9b4c08,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x305741(0x30e)][_0x305741(0x395)]&&_0x30bd4f['push']([le]),_0x1cf016(this['_injector'],_0x2f3661(_0x30bd4f,(_0x34552c=this[_0x305741(0x30e)])==null?void 0x0:_0x34552c[_0x305741(0x3b2)]));}[_0x10e5ae(0x226)](){const _0x5085d9=_0x10e5ae;this['disposeWithMe'](this[_0x5085d9(0x2fa)]['registerRenderModule'](_0x5b6f05[_0x5085d9(0x3ad)],[Fe])),this[_0x5085d9(0x212)](this['_renderManagerService'][_0x5085d9(0x369)](_0x5b6f05[_0x5085d9(0x1f7)],[ke]));}['_initDependencies'](){const _0x1c7bff=_0x10e5ae;_0x12a460(this[_0x1c7bff(0x3ac)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x1c7bff(0x30e)][_0x1c7bff(0x395)]&&_0x12a460(this[_0x1c7bff(0x3ac)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x31ce94(_0x4d5145),Me(0x1,_0x492138),Me(0x2,_0x1edbdc(_0x4c84de)),Me(0x3,_0x605853)],Ye);var $n=Object[_0x10e5ae(0x2a1)],xn=(_0x2a6e4d,_0xabda1d,_0x3be83d,_0x4dc997)=>{const _0x302e06=_0x10e5ae;for(var _0x2a2a2a=_0x4dc997>0x1?void 0x0:_0x4dc997?$n(_0xabda1d,_0x3be83d):_0xabda1d,_0x31b9d6=_0x2a6e4d[_0x302e06(0x39a)]-0x1,_0x1b7ccc;_0x31b9d6>=0x0;_0x31b9d6--)(_0x1b7ccc=_0x2a6e4d[_0x31b9d6])&&(_0x2a2a2a=_0x1b7ccc(_0x2a2a2a)||_0x2a2a2a);return _0x2a2a2a;},J=(_0x17c4b0,_0x243bc0)=>(_0x1ad922,_0x3b2146)=>_0x243bc0(_0x1ad922,_0x3b2146,_0x17c4b0);let ut=class extends _0x37836e{constructor(_0x15c096,_0x17bbcd,_0x2274a3,_0x52a12d,_0x2f44cc){super(_0x15c096,_0x17bbcd,_0x2274a3,_0x52a12d,_0x2f44cc);}async[_0x10e5ae(0x346)](_0x18ec6d){const _0x4b5950=_0x10e5ae,_0x3775cc=await this['_getSessionTicket'](),_0x212031=this[_0x4b5950(0x292)](_0x18ec6d,_0x3775cc);return this['_doCreateSocket'](_0x212031);}['_createSocketURL'](_0x18270d,_0xad60cc){const _0x392d0e=_0x10e5ae,_0x17b89e=typeof window>'u'?new URL(_0x18270d):new URL(_0x18270d,window[_0x392d0e(0x339)][_0x392d0e(0x2a6)]);_0x17b89e[_0x392d0e(0x261)]['set']('sessionTicket',_0xad60cc);const _0x2b1d61=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x392d0e(0x1dc)]);return _0x2b1d61[_0x392d0e(0x30f)](_0x392d0e(0x1fa))&&_0x17b89e[_0x392d0e(0x261)][_0x392d0e(0x2d5)]('runId',_0x2b1d61['get'](_0x392d0e(0x1fa))),_0x17b89e[_0x392d0e(0x1a2)]();}async[_0x10e5ae(0x2ce)](){const _0x216124=_0x10e5ae;var _0x1924fa,_0x228493,_0x5e1884;const _0x2d8d27=this[_0x216124(0x358)]['getConfig'](_0x57c3c4),_0x367d8b=(_0x1924fa=_0x2d8d27==null?void 0x0:_0x2d8d27['wsSessionTicketUrl'])!=null?_0x1924fa:_0x12d59;return(_0x5e1884=(_0x228493=(await this['_httpService']['get'](_0x367d8b,{'headers':{'Content-Type':_0x216124(0x332)}}))[_0x216124(0x2e0)])==null?void 0x0:_0x228493[_0x216124(0x33f)])!=null?_0x5e1884:'';}};ut=xn([J(0x0,_0x1edbdc(_0x4c84de)),J(0x1,_0x1edbdc(_0x19584b)),J(0x2,_0x605853),J(0x3,_0x55546c),J(0x4,_0x882767)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x3c9994,_0x71dd1d,_0x370083,_0x59153e)=>{const _0x328ea0=_0x10e5ae;for(var _0x232913=_0x59153e>0x1?void 0x0:_0x59153e?Bn(_0x71dd1d,_0x370083):_0x71dd1d,_0xed8731=_0x3c9994[_0x328ea0(0x39a)]-0x1,_0x358139;_0xed8731>=0x0;_0xed8731--)(_0x358139=_0x3c9994[_0xed8731])&&(_0x232913=_0x358139(_0x232913)||_0x232913);return _0x232913;},Ae=(_0x5d7d5d,_0x1f5043)=>(_0x24b670,_0x11ad38)=>_0x1f5043(_0x24b670,_0x11ad38,_0x5d7d5d);let dt=class extends _0x3ae839{constructor(_0x534b09,_0x228244,_0x4ee5ef){const _0x2aaa60=_0x10e5ae;super(),this['_instanceService']=_0x534b09,this['_httpService']=_0x228244,this[_0x2aaa60(0x358)]=_0x4ee5ef;}async[_0x10e5ae(0x2fd)](_0x4a5e4d,_0x2a13ac,_0x197dfc,..._0x401549){const _0x4cfb52=_0x10e5ae;var _0x4873a2,_0x198293,_0x3fcd4d,_0x4d1202;const _0x2b451f=this[_0x4cfb52(0x1a0)][_0x4cfb52(0x3b3)]();if(!_0x2b451f)throw new Error(_0x4cfb52(0x24f));const _0x276262=((_0x4873a2=this['_configService'][_0x4cfb52(0x1d1)](_0x53a66d))!=null?_0x4873a2:_0xd92e6b)+'/'+_0x4a5e4d+_0x4cfb52(0x219)+_0x2a13ac,_0x37db61=new URL(window[_0x4cfb52(0x339)][_0x4cfb52(0x216)]),_0x1f31e6={'scriptId':_0x4a5e4d,'runId':(_0x198293=_0x37db61['searchParams'][_0x4cfb52(0x30f)]('runId'))!=null?_0x198293:'','function':_0x2a13ac,'unitId':_0x2b451f[_0x4cfb52(0x21b)](),'argsOfFunction':JSON[_0x4cfb52(0x1e9)](_0x401549),'invokeId':(_0x3fcd4d=_0x197dfc[_0x4cfb52(0x230)])!=null?_0x3fcd4d:'','executionId':(_0x4d1202=_0x197dfc['executionId'])!=null?_0x4d1202:''};try{const _0x4653ef=await this[_0x4cfb52(0x21a)][_0x4cfb52(0x238)](_0x276262,{'body':_0x1f31e6});return _0x4653ef['body']['error']&&_0x4653ef['body']['error'][_0x4cfb52(0x236)]!==Z['OK']?'Failed':_0x4653ef[_0x4cfb52(0x2e0)]['result'];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x173d8f),Ae(0x1,_0x1edbdc(_0x19584b)),Ae(0x2,_0x605853)],dt);const St=0x7530,It=_0x10e5ae(0x370);class rr extends _0x3ae839{constructor(){const _0x401212=_0x10e5ae;super(),_(this,_0x401212(0x315),_0x5f38d1()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x401212(0x18a),null),_(this,_0x401212(0x245),new Map()),_(this,_0x401212(0x391),new Map()),this[_0x401212(0x178)]();}[_0x10e5ae(0x375)](){const _0x2a26a1=_0x10e5ae;super[_0x2a26a1(0x375)](),this[_0x2a26a1(0x245)][_0x2a26a1(0x2cd)]((_0x567681,_0x16ee14)=>this[_0x2a26a1(0x37e)](_0x16ee14)),this[_0x2a26a1(0x18a)]&&window[_0x2a26a1(0x1c8)](this['_heartbeatTimer']);}[_0x10e5ae(0x1a6)](_0x40003d){const _0x4fef58=_0x10e5ae;return this[_0x4fef58(0x256)](_0x40003d)[_0x4fef58(0x1d3)](_0x301459());}[_0x10e5ae(0x2f1)](_0x132418){const _0x4a44b3=_0x10e5ae;this[_0x4a44b3(0x2dc)]['size']===0x0&&this[_0x4a44b3(0x317)](),this[_0x4a44b3(0x2dc)][_0x4a44b3(0x276)](_0x132418),this[_0x4a44b3(0x1ff)]({'type':0x0,'memberID':this[_0x4a44b3(0x315)],'unitIDs':[_0x132418],'isForwarded':!0x1});}[_0x10e5ae(0x198)](_0x2d9876){const _0x5b27d5=_0x10e5ae;this['_selfUnitIDs'][_0x5b27d5(0x30a)](_0x2d9876),this[_0x5b27d5(0x2dc)][_0x5b27d5(0x16c)]===0x0&&this[_0x5b27d5(0x18a)]&&window[_0x5b27d5(0x1c8)](this[_0x5b27d5(0x18a)]);}[_0x10e5ae(0x178)](){const _0xa18043=_0x10e5ae;this[_0xa18043(0x212)](_0x1a2dad(_0x5e1332(window,_0xa18043(0x280))[_0xa18043(0x229)](_0x197d9e=>{const _0x411bab=_0xa18043;if(_0x197d9e[_0x411bab(0x29f)]!==It||!_0x197d9e['newValue'])return;const _0x1ee0aa=JSON[_0x411bab(0x179)](_0x197d9e[_0x411bab(0x270)]);this[_0x411bab(0x218)](_0x1ee0aa);}))),window[_0xa18043(0x213)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0xa18043(0x315)],'unitIDs':Array[_0xa18043(0x381)](this[_0xa18043(0x2dc)])}));}[_0x10e5ae(0x218)](_0x2d1b03){const _0x37365a=_0x10e5ae;switch(_0x2d1b03['type']){case 0x0:this[_0x37365a(0x299)](_0x2d1b03);break;case 0x1:this[_0x37365a(0x1c9)](_0x2d1b03);break;case 0x2:this[_0x37365a(0x26f)](_0x2d1b03);break;}}[_0x10e5ae(0x299)](_0x851266){const _0x516807=_0x10e5ae,{unitIDs:_0x2fccca,memberID:_0x420949,isForwarded:_0x4590fa}=_0x851266;_0x2fccca[_0x516807(0x2cd)](_0x1939c0=>{const _0x55201b=_0x516807;if(!_0x4590fa&&this[_0x55201b(0x323)][_0x55201b(0x23a)](_0x1939c0)&&this['_ensureSubject'](_0x1939c0)['next'](_0x207dfa[_0x55201b(0x1c7)]),!this[_0x55201b(0x323)]['has'](_0x1939c0)||!this[_0x55201b(0x323)]['get'](_0x1939c0)['has'](_0x420949)){const _0x42b604=this[_0x55201b(0x323)][_0x55201b(0x30f)](_0x1939c0)||new Set();_0x42b604[_0x55201b(0x276)](_0x420949),this[_0x55201b(0x323)][_0x55201b(0x2d5)](_0x1939c0,_0x42b604),this[_0x55201b(0x393)](_0x420949);}}),_0x4590fa||this[_0x516807(0x1ff)]({'type':0x0,'memberID':this[_0x516807(0x315)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x10e5ae(0x393)](_0x558a4c){const _0x5765d9=_0x10e5ae;this['_removeClearOtherTimer'](_0x558a4c);const _0x286a2d=window[_0x5765d9(0x353)](()=>{const _0x3d781d=_0x5765d9;this['_unitOnClients'][_0x3d781d(0x2cd)](_0x41435c=>{_0x41435c['delete'](_0x558a4c);});},St*0x2);this['_clearOtherTimers'][_0x5765d9(0x2d5)](_0x558a4c,_0x286a2d);}[_0x10e5ae(0x37e)](_0x538187){const _0x548dee=_0x10e5ae;if(this['_clearOtherTimers'][_0x548dee(0x23a)](_0x538187)){const _0x47dab0=this['_clearOtherTimers'][_0x548dee(0x30f)](_0x538187);_0x47dab0&&window['clearTimeout'](_0x47dab0),this['_clearOtherTimers'][_0x548dee(0x2d5)](_0x538187,null);}}['_handleLeaveEvent'](_0x5af3c4){const _0x5bfe94=_0x10e5ae,{memberID:_0x3992ee,unitIDs:_0x56053a}=_0x5af3c4;_0x56053a[_0x5bfe94(0x2cd)](_0x21a343=>{const _0x395bc6=_0x5bfe94;var _0x19b856;const _0x792c63=this[_0x395bc6(0x323)][_0x395bc6(0x30f)](_0x21a343);_0x792c63&&(_0x792c63[_0x395bc6(0x30a)](_0x3992ee),(_0x19b856=this[_0x395bc6(0x256)](_0x21a343))==null||_0x19b856[_0x395bc6(0x28e)](_0x792c63[_0x395bc6(0x16c)]===0x0?_0x207dfa[_0x395bc6(0x1ac)]:_0x207dfa[_0x395bc6(0x1c7)]));}),this[_0x5bfe94(0x37e)](_0x3992ee);}[_0x10e5ae(0x26f)](_0x51b36b){const _0x31369d=_0x10e5ae;this[_0x31369d(0x393)](_0x51b36b[_0x31369d(0x383)]);}[_0x10e5ae(0x1ff)](_0x29e35b){localStorage['setItem'](It,JSON['stringify'](_0x29e35b));}['_scheduleHeartbeat'](){const _0x477ffc=_0x10e5ae;this['_heartbeatTimer']=window[_0x477ffc(0x186)](()=>{const _0x397236=_0x477ffc;this[_0x397236(0x1ff)]({'type':0x2,'memberID':this['_id']});},St);}[_0x10e5ae(0x256)](_0x3f2c54){const _0x53c228=_0x10e5ae;return this['_unitStatus'][_0x53c228(0x23a)](_0x3f2c54)||this[_0x53c228(0x391)][_0x53c228(0x2d5)](_0x3f2c54,new _0x2a3ec5(_0x207dfa['NO_OTHER_CLIENTS_EDITING'])),this[_0x53c228(0x391)][_0x53c228(0x30f)](_0x3f2c54);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|