@univerjs-pro/collaboration-client-ui 0.10.11 → 0.10.12-nightly.202510251119
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/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/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/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/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 +17 -17
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3504c5=_0x3f6f;(function(_0x4eb697,_0x5a599e){const _0x1146b7=_0x3f6f,_0x477e4c=_0x4eb697();while(!![]){try{const _0x2c5a49=parseInt(_0x1146b7(0x3d3))/0x1*(-parseInt(_0x1146b7(0x323))/0x2)+-parseInt(_0x1146b7(0x3bb))/0x3*(-parseInt(_0x1146b7(0x2a8))/0x4)+parseInt(_0x1146b7(0x275))/0x5+parseInt(_0x1146b7(0x37b))/0x6*(parseInt(_0x1146b7(0x227))/0x7)+-parseInt(_0x1146b7(0x3de))/0x8+-parseInt(_0x1146b7(0x379))/0x9*(parseInt(_0x1146b7(0x1ab))/0xa)+parseInt(_0x1146b7(0x234))/0xb;if(_0x2c5a49===_0x5a599e)break;else _0x477e4c['push'](_0x477e4c['shift']());}catch(_0xae4972){_0x477e4c['push'](_0x477e4c['shift']());}}}(_0x13f0,0x18f32));var kt=Object[_0x3504c5(0x359)],Ht=(_0x482a1c,_0x110a6d,_0x5011bf)=>_0x110a6d in _0x482a1c?kt(_0x482a1c,_0x110a6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5011bf}):_0x482a1c[_0x110a6d]=_0x5011bf,_=(_0x2ec36f,_0x43f6e1,_0x1b1dfa)=>Ht(_0x2ec36f,typeof _0x43f6e1!=_0x3504c5(0x2f9)?_0x43f6e1+'':_0x43f6e1,_0x1b1dfa);import{jsx as _0x1bf90e,jsxs as _0x4b67ae}from'react/jsx-runtime';import{CollaborationStatus as _0x59f2be,CollaborationSessionService as _0x4e336e,CollaborationController as _0x4e7e15,DataLoaderService as _0x8ec34d,MemberService as _0x4cbb58,SessionStatus as _0x2298f4,ILocalCacheService as _0x55c362,CollaborationUIEventService as _0x291389,CollaborationUIEventId as _0x4435b4,DocCollaborationEntity as _0x4404c6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c0423,getLocalCacheKey as _0xb4d1e1,LOCAL_CACHE_INTERVAL as _0x46d03f,LOCAL_CACHE_INTERVAL_KEY as _0x43f6ef,UniverCollaborationClientPlugin as _0x22881b,CollaborationSocketService as _0x3d93bc,DEFAULT_WS_SESSION_TICKET_URL as _0x31c350,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x45cf52,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1e545f,UnitStatus as _0x38048c}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x21a3cc,IUniverInstanceService as _0x437d75,Inject as _0x13fac2,Injector as _0x4da47b,Disposable as _0x44caae,createIdentifier as _0x1db72c,ILogService as _0x3b520f,ICommandService as _0x378028,Optional as _0x20ad22,RxDisposable as _0x4dd7f6,Workbook as _0x172466,DOC_RANGE_TYPE as _0x2ff472,debounce as _0x47926c,Rectangle as _0x2a46cf,DisposableCollection as _0x42029c,toDisposable as _0x2576da,UniverInstanceType as _0x3d4d2c,generateRandomId as _0x144598,COLORS as _0x3312f1,ColorKit as _0x44319d,ThemeService as _0x2f412a,fromEventSubject as _0xc40dd,Tools as _0x267bed,CommandType as _0x441e2b,IConfigService as _0x10aea5,CanceledError as _0x4a6f3c,isFormulaString as _0x1fa515,isFormulaId as _0x315c33,ILocalStorageService as _0x3a9490,DependentOn as _0xc853a6,Plugin as _0xfc0127,merge as _0x27de3f,registerDependencies as _0x22a61d,mergeOverrideWithDependencies as _0x29e569,touchDependencies as _0x1e8471}from'@univerjs/core';import{useObservable as _0xfaff27,useDependency as _0x177251,IUIPartsService as _0x2adcc7,BuiltInUIPart as _0x186598,connectInjector as _0x42d200,IBeforeCloseService as _0x59ea3f,IMessageService as _0x1b730d,INotificationService as _0x540b4a}from'@univerjs/ui';import{BehaviorSubject as _0x1bb082,switchMap as _0x3ba0ae,of as _0x5943a5,takeUntil as _0xb04df5,debounceTime as _0x51621e,Subject as _0x5060b1,filter as _0x1db320,merge as _0x680757,combineLatest as _0x338b00,fromEvent as _0x18c819,shareReplay as _0x72b1f0,mapTo as _0x153ed4,distinctUntilChanged as _0x5a2f65}from'rxjs';import{Tooltip as _0x3a1b92,clsx as _0x1d78fd,MessageType as _0x520d9c}from'@univerjs/design';import{forwardRef as _0x41b5f7,useRef as _0xbc8706,createElement as _0x5593c4,useCallback as _0x4b2735}from'react';import{IRemoteInstanceService as _0x598a96}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x344768,RefRangeService as _0x1d2c90,SetSelectionsOperation as _0x225cd4,SheetsSelectionsService as _0x14ecb3,EffectRefRangId as _0x27ae65,handleIRemoveRow as _0x4a868d,handleIRemoveCol as _0x24566c,handleMoveRange as _0x538c2c,handleInsertRow as _0x8109a7,handleInsertRangeMoveRight as _0x4c8134,handleInsertRangeMoveDown as _0x3285a0,handleInsertCol as _0x204136,handleDeleteRangeMoveUp as _0x2dbc93,handleDeleteRangeMoveLeft as _0x449627,runRefRangeMutations as _0x13bbde}from'@univerjs/sheets';import{Shape as _0x3acd0c,Rect as _0x514da9,getColor as _0x486a87,RegularPolygon as _0x1556b3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3128aa,Vector2 as _0x3199d6,SHEET_VIEWPORT_KEY as _0xd834fb,IRenderManagerService as _0x5dc693}from'@univerjs/engine-render';import{HTTPService as _0x59d0d5,ISocketService as _0x5af1a8,WebSocketService as _0x476d5f}from'@univerjs/network';import{IDocClipboardService as _0x1cec76,NodePositionConvertToCursor as _0x587060,NodePositionConvertToRectRange as _0x118b5f,TEXT_RANGE_LAYER_INDEX as _0x26f088,SetDocZoomRatioOperation as _0x42495b,DocIMEInputManagerService as _0x23034e,DocStateChangeManagerService as _0x48cc88}from'@univerjs/docs-ui';import{IImageIoService as _0x54d2a8}from'@univerjs/drawing';import{ITransformService as _0x3943ee,CollaborationEvent as _0xbf2684,isTransformMutationFailure as _0x45a2c4,isTransformMutationsWithChangesetSuccess as _0x5d4db3,RevisionService as _0x1fe514,ISnapshotServerService as _0xe8f155}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5a1d5c,RichTextEditingMutation as _0xd909db,DocSelectionManagerService as _0x259657,DocSkeletonManagerService as _0x516f50}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4f5b3a,serializeRangeWithSheet as _0x48fa02,FormulaExecuteStageType as _0x41b0a9,FormulaExecutedStateType as _0x55b129,SetFormulaCalculationStartMutation as _0x4b0c98,SetFormulaCalculationNotificationMutation as _0x1d37ca}from'@univerjs/engine-formula';import{map as _0x43fad8,filter as _0x18ab68,throttleTime as _0x26bb7e,takeUntil as _0x3d85e9,switchMap as _0x1ed193}from'rxjs/operators';import{SheetSkeletonManagerService as _0x29be31,getCoordByCell as _0x5f53de,getSheetObject as _0x4d2825}from'@univerjs/sheets-ui';var g=function(){const _0x423ebf=_0x3504c5;return g=Object[_0x423ebf(0x1fa)]||function(_0x1b41b5){const _0x427a2c=_0x423ebf;for(var _0x56a127,_0x1b3f16=0x1,_0x2eef63=arguments[_0x427a2c(0x329)];_0x1b3f16<_0x2eef63;_0x1b3f16++){_0x56a127=arguments[_0x1b3f16];for(var _0x868370 in _0x56a127)Object[_0x427a2c(0x33c)][_0x427a2c(0x32a)][_0x427a2c(0x3a5)](_0x56a127,_0x868370)&&(_0x1b41b5[_0x868370]=_0x56a127[_0x868370]);}return _0x1b41b5;},g['apply'](this,arguments);},Ii=function(_0x1d9884,_0x2705b8){const _0x3c408b=_0x3504c5;var _0x9c8385={};for(var _0x55aeac in _0x1d9884)Object[_0x3c408b(0x33c)][_0x3c408b(0x32a)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac)&&_0x2705b8[_0x3c408b(0x279)](_0x55aeac)<0x0&&(_0x9c8385[_0x55aeac]=_0x1d9884[_0x55aeac]);if(_0x1d9884!=null&&typeof Object['getOwnPropertySymbols']==_0x3c408b(0x310)){for(var _0x1d396f=0x0,_0x55aeac=Object[_0x3c408b(0x362)](_0x1d9884);_0x1d396f<_0x55aeac['length'];_0x1d396f++)_0x2705b8[_0x3c408b(0x279)](_0x55aeac[_0x1d396f])<0x0&&Object['prototype'][_0x3c408b(0x2dd)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac[_0x1d396f])&&(_0x9c8385[_0x55aeac[_0x1d396f]]=_0x1d9884[_0x55aeac[_0x1d396f]]);}return _0x9c8385;},Xe=_0x41b5f7(function(_0x1f8caf,_0x2e246b){const _0x3916fa=_0x3504c5;var _0x679ce0=_0x1f8caf[_0x3916fa(0x3ca)],_0x3308d8=_0x1f8caf['id'],_0x1eb48f=_0x1f8caf['className'],_0x251498=_0x1f8caf[_0x3916fa(0x285)],_0x3e8105=Ii(_0x1f8caf,[_0x3916fa(0x3ca),'id',_0x3916fa(0x31a),_0x3916fa(0x285)]),_0x15e703=_0x3916fa(0x367)[_0x3916fa(0x298)](_0x3308d8,'\x20')[_0x3916fa(0x298)](_0x1eb48f||'')[_0x3916fa(0x1cf)](),_0x3fd528=_0xbc8706('_'[_0x3916fa(0x298)](Ei()));return Lt(_0x679ce0,''['concat'](_0x3308d8),{'defIds':_0x679ce0[_0x3916fa(0x284)],'idSuffix':_0x3fd528[_0x3916fa(0x1f4)]},g({'ref':_0x2e246b,'className':_0x15e703},_0x3e8105),_0x251498);});function Lt(_0xdec6cf,_0x2a1213,_0x308e4c,_0x2fe3ab,_0x4279db){const _0x3bb36e=_0x3504c5;return _0x5593c4(_0xdec6cf['tag'],g(g({'key':_0x2a1213},gi(_0xdec6cf,_0x308e4c,_0x4279db)),_0x2fe3ab),(vi(_0xdec6cf,_0x308e4c)['children']||[])[_0x3bb36e(0x3a8)](function(_0x352d51,_0x29eb7b){const _0x2733f0=_0x3bb36e;return Lt(_0x352d51,''[_0x2733f0(0x298)](_0x2a1213,'-')[_0x2733f0(0x298)](_0xdec6cf[_0x2733f0(0x288)],'-')['concat'](_0x29eb7b),_0x308e4c,void 0x0,_0x4279db);}));}function gi(_0x20d7c9,_0x2f90a5,_0x496ae3){const _0x82d082=_0x3504c5;var _0x595aee=g({},_0x20d7c9['attrs']);_0x496ae3!=null&&_0x496ae3['colorChannel1']&&_0x595aee['fill']===_0x82d082(0x38c)&&(_0x595aee[_0x82d082(0x396)]=_0x496ae3[_0x82d082(0x38c)]),_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x229)&&_0x595aee['id']&&(_0x595aee['id']=_0x595aee['id']+_0x2f90a5['idSuffix']),Object[_0x82d082(0x1bc)](_0x595aee)['forEach'](function(_0x1193cd){const _0x589163=_0x82d082;var _0x371cb5=_0x1193cd[0x0],_0x1e3669=_0x1193cd[0x1];_0x371cb5==='mask'&&typeof _0x1e3669==_0x589163(0x319)&&(_0x595aee[_0x371cb5]=_0x1e3669[_0x589163(0x1e8)](/url\(#(.*)\)/,'url(#$1'[_0x589163(0x298)](_0x2f90a5['idSuffix'],')')));});var _0x20e831=_0x2f90a5[_0x82d082(0x284)];return!_0x20e831||_0x20e831[_0x82d082(0x329)]===0x0||(_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x1a0)&&_0x595aee[_0x82d082(0x276)]&&(_0x595aee[_0x82d082(0x276)]=_0x595aee[_0x82d082(0x276)]+_0x2f90a5[_0x82d082(0x26f)]),Object['entries'](_0x595aee)[_0x82d082(0x3c9)](function(_0x2000e0){const _0x275663=_0x82d082;var _0x29c676=_0x2000e0[0x0],_0x594f4a=_0x2000e0[0x1];typeof _0x594f4a=='string'&&(_0x595aee[_0x29c676]=_0x594f4a[_0x275663(0x1e8)](/url\(#(.*)\)/,_0x275663(0x236)[_0x275663(0x298)](_0x2f90a5[_0x275663(0x26f)],')')));})),_0x595aee;}function vi(_0x4792da,_0x1154bf){const _0x314ed3=_0x3504c5;var _0x36b550,_0x4b63a1=_0x1154bf['defIds'];return!_0x4b63a1||_0x4b63a1[_0x314ed3(0x329)]===0x0?_0x4792da:_0x4792da[_0x314ed3(0x288)]===_0x314ed3(0x1f9)&&(!((_0x36b550=_0x4792da[_0x314ed3(0x35d)])===null||_0x36b550===void 0x0)&&_0x36b550[_0x314ed3(0x329)])?g(g({},_0x4792da),{'children':_0x4792da[_0x314ed3(0x35d)][_0x314ed3(0x3a8)](function(_0x57c8a0){const _0x1b021a=_0x314ed3;return typeof _0x57c8a0[_0x1b021a(0x246)]['id']==_0x1b021a(0x319)&&_0x4b63a1&&_0x4b63a1[_0x1b021a(0x240)](_0x57c8a0['attrs']['id'])?g(g({},_0x57c8a0),{'attrs':g(g({},_0x57c8a0[_0x1b021a(0x246)]),{'id':_0x57c8a0[_0x1b021a(0x246)]['id']+_0x1154bf[_0x1b021a(0x26f)]})}):_0x57c8a0;})}):_0x4792da;}function Ei(){const _0x50f1e6=_0x3504c5;return Math[_0x50f1e6(0x218)]()[_0x50f1e6(0x363)](0x24)['substring'](0x2,0x8);}Xe[_0x3504c5(0x1a2)]='UniverIcon';var pi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':_0x3504c5(0x3a1),'fill':_0x3504c5(0x3c8),'viewBox':_0x3504c5(0x3b4),'width':_0x3504c5(0x272),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x225)},'children':[{'tag':'path','attrs':{'stroke':_0x3504c5(0x3d0),'d':_0x3504c5(0x1e4),'strokeLinecap':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':'white','d':_0x3504c5(0x194)}}]}]}],'defIds':[_0x3504c5(0x309)]},Mt=_0x41b5f7(function(_0x31be92,_0x1aed35){const _0xbb10f0=_0x3504c5;return _0x5593c4(Xe,Object[_0xbb10f0(0x1fa)]({},_0x31be92,{'id':_0xbb10f0(0x322),'ref':_0x1aed35,'icon':pi}));});Mt['displayName']=_0x3504c5(0x311);var Oi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3504c5(0x34b),'width':'1em','height':_0x3504c5(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x271)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'stroke':_0x3504c5(0x3d0),'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':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':_0x3504c5(0x1f9),'attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':_0x3504c5(0x2f1)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':_0x3504c5(0x2cc),'d':_0x3504c5(0x194),'transform':_0x3504c5(0x37e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},At=_0x41b5f7(function(_0xa2c43f,_0x4ed8d9){const _0x4c742a=_0x3504c5;return _0x5593c4(Xe,Object['assign']({},_0xa2c43f,{'id':_0x4c742a(0x21e),'ref':_0x4ed8d9,'icon':Oi}));});At[_0x3504c5(0x1a2)]=_0x3504c5(0x364);function Ti(_0x467b21){const _0x387347=_0x3504c5;switch(_0x467b21){case _0x59f2be[_0x387347(0x1c5)]:return _0x387347(0x1a3);case _0x59f2be[_0x387347(0x2bd)]:return _0x387347(0x27d);case _0x59f2be['FETCH_MISS']:return _0x387347(0x2ca);case _0x59f2be[_0x387347(0x217)]:return'collabStatus.notCollab';case _0x59f2be[_0x387347(0x34f)]:case _0x59f2be[_0x387347(0x2f8)]:return _0x387347(0x1be);case _0x59f2be[_0x387347(0x2b8)]:case _0x59f2be[_0x387347(0x254)]:return _0x387347(0x1e9);}}function Ci(_0x3cc4c4){const _0x4e9e90=_0x3504c5,{status$:_0x2314c0}=_0x3cc4c4,_0x13e13d=_0xfaff27(_0x2314c0,_0x59f2be[_0x4e9e90(0x217)]),_0x234b88=_0x177251(_0x21a3cc),_0x54f507=_0x177251(_0x4e336e),_0x17bd69=_0x13e13d!==_0x59f2be['OFFLINE'],_0x18d22b=_0x234b88['t'](Ti(_0x13e13d)),_0x5b49a5=_0x17bd69?_0x1bf90e(At,{}):_0x1bf90e(Mt,{}),_0x54ae55=_0x4b2735(()=>{_0x17bd69||_0x54f507['reconnect']();},[_0x17bd69,_0x54f507]);function _0x54f1de(){const _0x4c232e=_0x4e9e90;return _0x4b67ae(_0x4c232e(0x231),{'className':_0x4c232e(0x376),'onClick':_0x54ae55,'children':[_0x1bf90e('div',{'className':_0x1d78fd('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x17bd69,'univer-text-red-500':!_0x17bd69}),'children':_0x5b49a5}),_0x1bf90e(_0x4c232e(0x231),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x18d22b})]});}return _0x17bd69?_0x54f1de():_0x1bf90e(_0x3a1b92,{'title':_0x234b88['t'](_0x4e9e90(0x1af)),'children':_0x54f1de()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x5aee52,_0x514c15,_0x3502f3,_0x58a585)=>{const _0x3136f7=_0x3504c5;for(var _0xccf8b1=_0x58a585>0x1?void 0x0:_0x58a585?Ri(_0x514c15,_0x3502f3):_0x514c15,_0x3a39f4=_0x5aee52[_0x3136f7(0x329)]-0x1,_0x3f9414;_0x3a39f4>=0x0;_0x3a39f4--)(_0x3f9414=_0x5aee52[_0x3a39f4])&&(_0xccf8b1=_0x3f9414(_0xccf8b1)||_0xccf8b1);return _0xccf8b1;},ie=(_0x2d8544,_0x3a62cb)=>(_0x29dfa5,_0x417840)=>_0x3a62cb(_0x29dfa5,_0x417840,_0x2d8544);let ae=class extends _0x44caae{constructor(_0x70c5b1,_0x45e6f6,_0x2b8a1b,_0x34e827){const _0x400696=_0x3504c5;super(),_(this,_0x400696(0x2e1),new _0x1bb082(_0x59f2be[_0x400696(0x217)])),(this[_0x400696(0x1a8)]=_0x70c5b1,this['_injector']=_0x45e6f6,this[_0x400696(0x29b)]=_0x2b8a1b,this[_0x400696(0x21b)]=_0x34e827,this[_0x400696(0x1d5)](),this[_0x400696(0x39e)]());}[_0x3504c5(0x39e)](){const _0x209082=_0x3504c5;this[_0x209082(0x2fd)](this[_0x209082(0x1a8)][_0x209082(0x2c1)][_0x209082(0x37f)](_0x3ba0ae(()=>{const _0x4f6e88=_0x209082,_0x4b3d55=this['_univerInstanceService']['getFocusedUnit']();return _0x4b3d55?this['_collaborationController'][_0x4f6e88(0x249)](_0x4b3d55[_0x4f6e88(0x3cc)]()):_0x5943a5(null);}),_0x3ba0ae(_0x457e40=>_0x457e40?_0x457e40[_0x209082(0x1ea)]:_0x5943a5(_0x59f2be[_0x209082(0x217)])))[_0x209082(0x336)](_0x5ecb06=>{const _0x315a5b=_0x209082;this[_0x315a5b(0x2e1)][_0x315a5b(0x25d)](_0x5ecb06);}));}[_0x3504c5(0x1d5)](){const _0x520cf9=_0x3504c5;this[_0x520cf9(0x2fd)](this[_0x520cf9(0x21b)][_0x520cf9(0x3d7)](_0x186598[_0x520cf9(0x26b)],()=>_0x42d200(bi({'status$':this[_0x520cf9(0x2e1)]['asObservable']()}),this[_0x520cf9(0x23b)])));}};ae=Di([ie(0x0,_0x437d75),ie(0x1,_0x13fac2(_0x4da47b)),ie(0x2,_0x13fac2(_0x4e7e15)),ie(0x3,_0x2adcc7)],ae);function bi(_0x24648d){const {status$:_0x269058}=_0x24648d;return function(){return _0x1bf90e(Ci,{'status$':_0x269058});};}const Pt=_0x1db72c('uni.network.url-service');var Ni=Object[_0x3504c5(0x1c3)],Ui=(_0x1d49ae,_0x30a28a,_0x4ac0e6,_0x4ab03b)=>{const _0x4eb293=_0x3504c5;for(var _0x123b08=_0x4ab03b>0x1?void 0x0:_0x4ab03b?Ni(_0x30a28a,_0x4ac0e6):_0x30a28a,_0x553674=_0x1d49ae[_0x4eb293(0x329)]-0x1,_0x4aea4a;_0x553674>=0x0;_0x553674--)(_0x4aea4a=_0x1d49ae[_0x553674])&&(_0x123b08=_0x4aea4a(_0x123b08)||_0x123b08);return _0x123b08;},z=(_0x108d03,_0x267ee2)=>(_0x508aec,_0x32c3b2)=>_0x267ee2(_0x508aec,_0x32c3b2,_0x108d03);let ce=class extends _0x4dd7f6{constructor(_0x2d40bd,_0x579bd5,_0x18f72e,_0x907587,_0x50fde3){const _0x479c00=_0x3504c5;super(),this[_0x479c00(0x3ba)]=_0x2d40bd,this[_0x479c00(0x36b)]=_0x579bd5,this[_0x479c00(0x213)]=_0x18f72e,this[_0x479c00(0x3b7)]=_0x907587,_0x50fde3?_0x50fde3==null||_0x50fde3['whenReady']()['then'](()=>this['_init']()):(this[_0x479c00(0x36b)]['debug'](_0x479c00(0x1db),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x479c00(0x19b)]());}async[_0x3504c5(0x19b)](){const _0x21d1ea=_0x3504c5,_0x26dfef=this[_0x21d1ea(0x3ba)][_0x21d1ea(0x391)](_0x21d1ea(0x2a4)),_0x3797be=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x201)),_0x2b7653=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x2a2));if(!_0x26dfef||!_0x3797be){this[_0x21d1ea(0x36b)][_0x21d1ea(0x2f3)]('[CollaborationDataLoaderController]',_0x21d1ea(0x1b2));return;}const _0x4526aa=await this[_0x21d1ea(0x3b7)][_0x21d1ea(0x2aa)](_0x26dfef,Number(_0x3797be),_0x2b7653);_0x4526aa&&_0x4526aa instanceof _0x172466&&this[_0x21d1ea(0x1e2)](_0x4526aa);}async[_0x3504c5(0x1e2)](_0x1a07f3){const _0x3686d7=_0x3504c5;await this[_0x3686d7(0x340)](_0x1a07f3),_0x1a07f3[_0x3686d7(0x283)][_0x3686d7(0x37f)](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](_0x7c5b00=>{const _0x2b900f=_0x3686d7;_0x7c5b00&&this[_0x2b900f(0x316)](_0x7c5b00);}),this['_urlService'][_0x3686d7(0x220)]['pipe'](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](()=>this[_0x3686d7(0x340)](_0x1a07f3));}[_0x3504c5(0x316)](_0x99b1db,_0x17bd04=!0x1){const _0x4e481b=_0x3504c5,_0x5e6668=this['_urlService'][_0x4e481b(0x391)](_0x4e481b(0x2a2));_0x99b1db[_0x4e481b(0x25f)]()!==_0x5e6668&&this['_urlService']['setParam'](_0x4e481b(0x2a2),_0x99b1db['getSheetId'](),_0x17bd04);}async[_0x3504c5(0x340)](_0x17c72a){const _0x4834f3=_0x3504c5;var _0x1d4676;const _0x332b28=this['_urlService'][_0x4834f3(0x391)](_0x4834f3(0x2a2));if(!_0x332b28||!_0x17c72a['getSheetBySheetId'](_0x332b28)){const _0x5a7cef=_0x17c72a['getUnhiddenWorksheets']()[0x0],_0x15d7e6=_0x17c72a[_0x4834f3(0x1fd)](_0x5a7cef);if(!_0x15d7e6)return;this[_0x4834f3(0x316)](_0x15d7e6,!0x0),await this[_0x4834f3(0x213)]['executeCommand'](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x5a7cef});return;}((_0x1d4676=_0x17c72a[_0x4834f3(0x2a7)]())==null?void 0x0:_0x1d4676[_0x4834f3(0x25f)]())!==_0x332b28&&await this['_commandService'][_0x4834f3(0x3a7)](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x332b28});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3b520f),z(0x2,_0x378028),z(0x3,_0x13fac2(_0x8ec34d)),z(0x4,_0x20ad22(_0x598a96))],ce);var Li=Object[_0x3504c5(0x1c3)],Mi=(_0x2e0cfc,_0x14a5d5,_0x1a98f6,_0x33f5ed)=>{const _0x226a2f=_0x3504c5;for(var _0x5b5276=_0x33f5ed>0x1?void 0x0:_0x33f5ed?Li(_0x14a5d5,_0x1a98f6):_0x14a5d5,_0x39a50e=_0x2e0cfc[_0x226a2f(0x329)]-0x1,_0xa6d187;_0x39a50e>=0x0;_0x39a50e--)(_0xa6d187=_0x2e0cfc[_0x39a50e])&&(_0x5b5276=_0xa6d187(_0x5b5276)||_0x5b5276);return _0x5b5276;},it=(_0x5f3dc9,_0x1e3120)=>(_0x23cd96,_0x1b5765)=>_0x1e3120(_0x23cd96,_0x1b5765,_0x5f3dc9);let Pe=class extends _0x4dd7f6{constructor(_0x26e2b8,_0x5bdf4f){const _0x591d8d=_0x3504c5;super(),this[_0x591d8d(0x19e)]=_0x26e2b8,this[_0x591d8d(0x2b1)]=_0x5bdf4f,this[_0x591d8d(0x19b)]();}[_0x3504c5(0x19b)](){const _0x5c908f=_0x3504c5,_0x47dce4=this;this[_0x5c908f(0x2fd)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x23c89c=>{const _0x40056d=_0x5c908f,_0x3fc2b8=await _0x47dce4['_imageIoService'][_0x40056d(0x1d1)](_0x23c89c);return _0x3fc2b8?{'source':_0x3fc2b8[_0x40056d(0x2f6)],'imageSourceType':_0x3fc2b8[_0x40056d(0x3cb)]}:null;}}));}};Pe=Mi([it(0x0,_0x1cec76),it(0x1,_0x54d2a8)],Pe);const nt=[_0x3504c5(0x358),_0x3504c5(0x2fe),_0x3504c5(0x2ac),_0x3504c5(0x386),_0x3504c5(0x38d),'yellow.400'];class Ge extends _0x44caae{constructor(){const _0x276b03=_0x3504c5;super(...arguments),_(this,_0x276b03(0x23d),new Map()),_(this,_0x276b03(0x3df),0x0);}[_0x3504c5(0x2a6)](_0x4cbf50){const _0x24e611=_0x3504c5;if(this[_0x24e611(0x23d)][_0x24e611(0x2db)](_0x4cbf50))return this[_0x24e611(0x23d)][_0x24e611(0x1c0)](_0x4cbf50);const _0x1eb5aa=nt[this[_0x24e611(0x3df)]];return this['_colorIndex']=(this[_0x24e611(0x3df)]+0x1)%nt[_0x24e611(0x329)],this[_0x24e611(0x23d)][_0x24e611(0x32b)](_0x4cbf50,_0x1eb5aa),_0x1eb5aa;}}function wt(_0x12f2ec){const _0x216b1d=_0x3504c5;let _0x576d3e='';for(const _0x5ead06 of _0x12f2ec){const {startOffset:_0x1fee87,endOffset:_0xf08c0d,isActive:_0x225a15,rangeType:_0xc56172,segmentId:_0x551a79,segmentPage:_0x506426}=_0x5ead06;_0x576d3e[_0x216b1d(0x329)]&&(_0x576d3e+=','),_0x576d3e+=_0x1fee87+':'+_0xf08c0d+':'+(_0x225a15?'1':'0')+':'+_0xc56172+':'+_0x551a79+':'+_0x506426;}return _0x576d3e;}function Ai(_0x340a77){const _0xbdc2be=_0x3504c5,_0x45916a=_0x340a77[_0xbdc2be(0x3b3)](','),_0x5ce8de=[];for(const _0x58b5e4 of _0x45916a){const [_0x10486c,_0x4e5170,_0x3993c2,_0x5df737,_0x8bc26,_0x1cbddc]=_0x58b5e4[_0xbdc2be(0x3b3)](':');_0x5ce8de[_0xbdc2be(0x2a3)]({'startOffset':Number(_0x10486c),'endOffset':Number(_0x4e5170),'collapsed':_0x10486c===_0x4e5170,'isActive':_0x3993c2==='1','rangeType':_0x5df737===_0x2ff472[_0xbdc2be(0x32d)]?_0x2ff472['TEXT']:_0x2ff472[_0xbdc2be(0x368)],'segmentId':typeof _0x8bc26==_0xbdc2be(0x319)?String(_0x8bc26):'','segmentPage':Number(_0x1cbddc!=null?_0x1cbddc:-0x1)});}return _0x5ce8de[_0xbdc2be(0x1e7)](_0x34f289=>_0x34f289[_0xbdc2be(0x1f5)])||(_0x5ce8de[0x0]['isActive']=!0x0),_0x5ce8de;}class Ke extends _0x4dd7f6{constructor(){const _0x48cfb4=_0x3504c5;super(...arguments),_(this,_0x48cfb4(0x30e),new _0x1bb082(null)),_(this,_0x48cfb4(0x1ae),this[_0x48cfb4(0x30e)]['asObservable']());}['syncEditingCollabCursor'](_0x8b74b4){const _0x414a8e=_0x3504c5,{unitID:_0x220d1a,memberID:_0x4dd9c0,textRanges:_0x343f62}=_0x8b74b4,_0x20c1b2=wt(_0x343f62);if(_0x20c1b2==='')return;const _0x29cd89={'unitID':_0x220d1a,'memberID':_0x4dd9c0,'selection':_0x20c1b2};this[_0x414a8e(0x30e)][_0x414a8e(0x25d)](_0x29cd89);}}var Pi=Object[_0x3504c5(0x1c3)],wi=(_0x1e8fb3,_0x57b5a5,_0x5c8907,_0x582346)=>{const _0xc07b0=_0x3504c5;for(var _0x136265=_0x582346>0x1?void 0x0:_0x582346?Pi(_0x57b5a5,_0x5c8907):_0x57b5a5,_0x2818ef=_0x1e8fb3[_0xc07b0(0x329)]-0x1,_0x4039cd;_0x2818ef>=0x0;_0x2818ef--)(_0x4039cd=_0x1e8fb3[_0x2818ef])&&(_0x136265=_0x4039cd(_0x136265)||_0x136265);return _0x136265;},P=(_0x46e6da,_0x524e21)=>(_0xf815f9,_0x5718c3)=>_0x524e21(_0xf815f9,_0x5718c3,_0x46e6da);const yi=0x12c,$i=0x64;let we=class extends _0x4dd7f6{constructor(_0x5281b9,_0x4f4f70,_0x259f5d,_0x2cd4f7,_0x1f06d6,_0xe84a8b,_0x53e916,_0xe8bd6e,_0x33ca59){const _0x4bf768=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4bf768(0x19b),!0x1),_(this,_0x4bf768(0x20a),new _0x1bb082(new Map())),_(this,_0x4bf768(0x22a),this[_0x4bf768(0x20a)]['asObservable']()),_(this,_0x4bf768(0x1cc),new _0x1bb082([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x51621e(yi))),_(this,_0x4bf768(0x195),_0x47926c(_0x1cbe54=>{const _0x33ee07=_0x4bf768,_0x27b953={'eventID':_0xbf2684[_0x33ee07(0x301)],'data':{'unitID':this['unitID'],'memberID':this[_0x33ee07(0x3bf)][_0x33ee07(0x345)](),'selection':wt(_0x1cbe54)}};this['_session']['send'](_0x27b953,this['unitID']);},$i)),(this[_0x4bf768(0x267)]=_0x5281b9,this[_0x4bf768(0x3bf)]=_0x4f4f70,this[_0x4bf768(0x23b)]=_0x259f5d,this[_0x4bf768(0x248)]=_0x2cd4f7,this[_0x4bf768(0x3a2)]=_0x1f06d6,this[_0x4bf768(0x2d1)]=_0xe84a8b,this[_0x4bf768(0x21d)]=_0x53e916,this[_0x4bf768(0x1a8)]=_0xe8bd6e,this[_0x4bf768(0x213)]=_0x33ca59);}get[_0x3504c5(0x38f)](){const _0x28991c=_0x3504c5;return this[_0x28991c(0x20a)]['getValue']();}get['roomMembers'](){const _0x2f7a30=_0x3504c5;return this[_0x2f7a30(0x1cc)][_0x2f7a30(0x320)]();}['dispose'](){const _0x4bc037=_0x3504c5;super[_0x4bc037(0x24a)](),this[_0x4bc037(0x20a)][_0x4bc037(0x25d)](new Map()),this[_0x4bc037(0x20a)][_0x4bc037(0x3c6)](),this[_0x4bc037(0x1cc)][_0x4bc037(0x25d)]([]),this['_roomMembers$'][_0x4bc037(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x1b41fe=_0x3504c5;this[_0x1b41fe(0x19b)]||(this[_0x1b41fe(0x19b)]=!0x0,this[_0x1b41fe(0x3bf)][_0x1b41fe(0x1d2)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x5c0d9c=>{const _0x57dd7d=_0x1b41fe;_0x5c0d9c===_0x2298f4['ONLINE']?this[_0x57dd7d(0x2bf)]():this['_toggleOffline']();}),this[_0x1b41fe(0x3bf)][_0x1b41fe(0x206)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x3a7bd8=>{const _0x3e01a2=_0x1b41fe,_0x5811ab=_0x3a7bd8[_0x3e01a2(0x28f)];_0x5811ab===_0xbf2684[_0x3e01a2(0x301)]&&this[_0x3e01a2(0x1c9)](_0x3a7bd8),_0x5811ab===_0xbf2684[_0x3e01a2(0x3bc)]&&this[_0x3e01a2(0x369)](_0x3a7bd8);}),this['disposeWithMe'](this[_0x1b41fe(0x213)][_0x1b41fe(0x383)](_0x387246=>{const _0xf2115a=_0x1b41fe,_0x59f7ab=_0x387246['params'];_0x59f7ab!=null&&this[_0xf2115a(0x1e5)]&&_0x387246['id']===_0x5a1d5c['id']&&_0x59f7ab[_0xf2115a(0x1f0)]===this['unitID']&&_0x59f7ab[_0xf2115a(0x24d)]===!0x1&&_0x59f7ab[_0xf2115a(0x1ed)][_0xf2115a(0x329)]>0x0&&this[_0xf2115a(0x195)](_0x59f7ab['ranges']);})),this[_0x1b41fe(0x2d1)][_0x1b41fe(0x1ae)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x241fc4=>{const _0x40cc46=_0x1b41fe;if((_0x241fc4==null?void 0x0:_0x241fc4['unitID'])!==this[_0x40cc46(0x267)])return;const _0x4c1ca9={'eventID':_0xbf2684['UPDATE_CURSOR'],'data':_0x241fc4};this['_onCursorUpdate'](_0x4c1ca9);}),this[_0x1b41fe(0x2fd)](this[_0x1b41fe(0x213)]['onCommandExecuted'](_0x3c57c4=>{const _0x1f57d2=_0x1b41fe;if(_0x3c57c4[_0x1f57d2(0x380)]==null)return;const _0x55807c=_0x3c57c4['params'];if(_0x3c57c4['id']!==_0xd909db['id']||_0x55807c[_0x1f57d2(0x1f0)]!==this[_0x1f57d2(0x267)])return;const _0x515fb8={'id':'doc.mutation.rich-text-editing','params':_0x55807c},_0xb64749=this[_0x1f57d2(0x38f)];for(const [_0x53a28c,_0x469383]of _0xb64749){const _0x3eca29={'id':_0x1f57d2(0x221),'params':{'unitId':this[_0x1f57d2(0x267)],'actions':null,'textRanges':_0x469383[_0x1f57d2(0x1ed)]}},_0x172b98=this[_0x1f57d2(0x21d)]['transformMutation'](_0x515fb8,_0x3eca29,!0x1);if(_0x45a2c4(_0x172b98))throw _0x172b98[_0x1f57d2(0x1b1)];_0xb64749[_0x1f57d2(0x32b)](_0x53a28c,{..._0x469383,'ranges':_0x172b98[_0x1f57d2(0x23e)][_0x1f57d2(0x380)][_0x1f57d2(0x204)]});}queueMicrotask(()=>{const _0x16fadd=_0x1f57d2;this[_0x16fadd(0x20a)][_0x16fadd(0x25d)](_0xb64749);});})));}[_0x3504c5(0x1c9)](_0xbdffcc){const _0x414190=_0x3504c5;var _0x7f42ce,_0x1881ae;const {memberID:_0x4cc056,selection:_0x571636}=_0xbdffcc[_0x414190(0x370)],_0x41e3b4=Ai(_0x571636),_0x521551=(_0x1881ae=(_0x7f42ce=this['_memberService'][_0x414190(0x394)](this[_0x414190(0x267)],_0x4cc056))==null?void 0x0:_0x7f42ce['name'])!=null?_0x1881ae:_0x414190(0x192),_0x558944={'color':this['_colorAssignService'][_0x414190(0x2a6)](_0x4cc056),'name':_0x521551,'ranges':_0x41e3b4},_0x51ffe2=this[_0x414190(0x38f)];_0x51ffe2[_0x414190(0x32b)](_0x4cc056,_0x558944),this[_0x414190(0x20a)][_0x414190(0x25d)](_0x51ffe2);}[_0x3504c5(0x369)](_0x35c98b){const _0x370795=_0x3504c5,{memberID:_0x593ed3}=_0x35c98b[_0x370795(0x370)],_0x35426f=this[_0x370795(0x38f)];_0x35426f[_0x370795(0x312)](_0x593ed3),this[_0x370795(0x20a)][_0x370795(0x25d)](_0x35426f);}['_toggleOnline'](){const _0x18b90c=_0x3504c5;var _0x3b75a9;if(this[_0x18b90c(0x1e5)]=!0x0,((_0x3b75a9=this[_0x18b90c(0x1a8)][_0x18b90c(0x1c4)]())==null?void 0x0:_0x3b75a9[_0x18b90c(0x3cc)]())!==this[_0x18b90c(0x267)])return;const _0x2d207b=this['_injector'][_0x18b90c(0x1c0)](_0x259657)['getDocRanges']();Array[_0x18b90c(0x1d8)](_0x2d207b)&&_0x2d207b[_0x18b90c(0x329)]>0x0&&this[_0x18b90c(0x195)](_0x2d207b);}[_0x3504c5(0x35b)](){const _0x35a763=_0x3504c5;this[_0x35a763(0x1e5)]=!0x1;}};we=wi([P(0x2,_0x13fac2(_0x4da47b)),P(0x3,_0x13fac2(Ge)),P(0x4,_0x13fac2(_0x4cbb58)),P(0x5,_0x13fac2(Ke)),P(0x6,_0x3943ee),P(0x7,_0x437d75),P(0x8,_0x378028)],we);var xi=Object[_0x3504c5(0x1c3)],Bi=(_0x392534,_0x19a127,_0x5be377,_0x3dc1ed)=>{for(var _0x209140=_0x3dc1ed>0x1?void 0x0:_0x3dc1ed?xi(_0x19a127,_0x5be377):_0x19a127,_0x3740fa=_0x392534['length']-0x1,_0x30877a;_0x3740fa>=0x0;_0x3740fa--)(_0x30877a=_0x392534[_0x3740fa])&&(_0x209140=_0x30877a(_0x209140)||_0x209140);return _0x209140;},F=(_0x409f27,_0x3eeeea)=>(_0x556f73,_0x488047)=>_0x3eeeea(_0x556f73,_0x488047,_0x409f27);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x65b8c4=[],_0x19bc0e=!0x1;return _0xa29ae9=>{_0x65b8c4['push'](_0xa29ae9),_0x19bc0e||(_0x19bc0e=!0x0,setTimeout(()=>{const _0x24e74e=_0x3f6f;_0x65b8c4[_0x24e74e(0x3c9)](_0x56a741=>_0x56a741()),_0x65b8c4=[],_0x19bc0e=!0x1;}));};};let ye=class extends _0x4dd7f6{constructor(_0x2088c1,_0xe57155,_0x48cc79,_0x5e5796,_0x4facc5,_0x2a9ef6,_0x55f798,_0x593a60){const _0x4a3ffe=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4a3ffe(0x19b),!0x1),_(this,'_cursorInfo$',new _0x1bb082(new Map())),_(this,_0x4a3ffe(0x22a),this[_0x4a3ffe(0x20a)][_0x4a3ffe(0x395)]()),_(this,_0x4a3ffe(0x1cc),new _0x1bb082([])),_(this,_0x4a3ffe(0x2a9),this[_0x4a3ffe(0x1cc)][_0x4a3ffe(0x37f)](_0x51621e(Fi))),_(this,'_updateLocalCursor',_0x47926c((_0x16742d,_0x1141e5)=>{const _0xaccc=_0x4a3ffe,_0x4ff9b6={'eventID':_0xbf2684[_0xaccc(0x301)],'data':{'unitID':this[_0xaccc(0x267)],'memberID':this[_0xaccc(0x3bf)][_0xaccc(0x345)](),'selection':_0x48fa02(_0x16742d,_0x1141e5[_0xaccc(0x2ce)])}};this[_0xaccc(0x3bf)][_0xaccc(0x3c2)](_0x4ff9b6,this[_0xaccc(0x267)]);},ki)),(this[_0x4a3ffe(0x267)]=_0x2088c1,this[_0x4a3ffe(0x3bf)]=_0xe57155,this['_injector']=_0x48cc79,this[_0x4a3ffe(0x248)]=_0x5e5796,this[_0x4a3ffe(0x3a2)]=_0x4facc5,this[_0x4a3ffe(0x1a8)]=_0x2a9ef6,this[_0x4a3ffe(0x213)]=_0x55f798,this[_0x4a3ffe(0x3ac)]=_0x593a60);}get[_0x3504c5(0x38f)](){const _0x573f32=_0x3504c5;return this['_cursorInfo$'][_0x573f32(0x320)]();}get['roomMembers'](){const _0x45aa05=_0x3504c5;return this[_0x45aa05(0x1cc)][_0x45aa05(0x320)]();}['dispose'](){const _0x3959c0=_0x3504c5;super['dispose'](),this[_0x3959c0(0x20a)]['next'](new Map()),this[_0x3959c0(0x20a)][_0x3959c0(0x3c6)](),this[_0x3959c0(0x1cc)]['next']([]),this['_roomMembers$'][_0x3959c0(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x229985=_0x3504c5;this[_0x229985(0x19b)]||(this[_0x229985(0x19b)]=!0x0,this['_session']['sessionStatus$'][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x32b561=>{const _0x3d0d47=_0x229985;_0x32b561===_0x2298f4[_0x3d0d47(0x243)]?this['_toggleOnline']():this[_0x3d0d47(0x35b)]();}),this['_session'][_0x229985(0x206)][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x27ceba=>{const _0x5aa281=_0x229985,_0x44ee05=_0x27ceba[_0x5aa281(0x28f)];_0x44ee05===_0xbf2684[_0x5aa281(0x301)]&&this[_0x5aa281(0x1c9)](_0x27ceba),_0x44ee05===_0xbf2684[_0x5aa281(0x3bc)]&&this[_0x5aa281(0x369)](_0x27ceba);}),this['_onRefRangeChange'](),this[_0x229985(0x2fd)](this[_0x229985(0x213)][_0x229985(0x383)](_0x310212=>{const _0x277c8b=_0x229985;if(this['_online']&&_0x310212['id']===_0x225cd4['id']&&_0x310212[_0x277c8b(0x380)][_0x277c8b(0x1f0)]===this[_0x277c8b(0x267)]){const _0x494c44=_0x310212[_0x277c8b(0x380)];this[_0x277c8b(0x195)](_0x494c44[_0x277c8b(0x3ab)],_0x494c44[_0x277c8b(0x29a)][0x0]);}})));}[_0x3504c5(0x1c9)](_0x225c03){const _0x20b668=_0x3504c5;var _0x378c24,_0x447f68;const {memberID:_0x5e74b1,selection:_0x83216a}=_0x225c03[_0x20b668(0x370)],{sheetName:_0x225b42,range:_0x17ba9f}=_0x4f5b3a(_0x83216a),_0x5e11ba={'name':(_0x447f68=(_0x378c24=this[_0x20b668(0x3a2)][_0x20b668(0x394)](this['unitID'],_0x5e74b1))==null?void 0x0:_0x378c24['name'])!=null?_0x447f68:_0x20b668(0x192),'range':this[_0x20b668(0x2e8)](_0x225b42,_0x17ba9f),'sheetID':_0x225b42,'color':this[_0x20b668(0x248)][_0x20b668(0x2a6)](_0x5e74b1),'selection':_0x83216a},_0x187be9=this[_0x20b668(0x38f)];_0x187be9['set'](_0x5e74b1,_0x5e11ba),this[_0x20b668(0x20a)][_0x20b668(0x25d)](_0x187be9);}['_onCursorDelete'](_0x33a8e3){const _0x37cd07=_0x3504c5,{memberID:_0x1265ca}=_0x33a8e3['data'],_0x2e084c=this[_0x37cd07(0x38f)];_0x2e084c[_0x37cd07(0x312)](_0x1265ca),this['_cursorInfo$'][_0x37cd07(0x25d)](_0x2e084c);}[_0x3504c5(0x2e8)](_0x1628a4,_0x8627ea){const _0x4715f9=_0x3504c5;var _0x1bee4a,_0x2e54ef;const _0x4abbe5=(_0x2e54ef=(_0x1bee4a=this['_univerInstanceService'][_0x4715f9(0x2e5)](this['unitID']))==null?void 0x0:_0x1bee4a[_0x4715f9(0x1fd)](_0x1628a4))==null?void 0x0:_0x2e54ef['getMergeData']();return(_0x4abbe5==null?void 0x0:_0x4abbe5[_0x4715f9(0x1c6)](_0x3ad096=>_0x2a46cf[_0x4715f9(0x202)](_0x3ad096,_0x8627ea)))||_0x8627ea;}[_0x3504c5(0x39c)](){const _0x258843=_0x3504c5,_0x2a539b=new _0x42029c(),_0x3e2a1f=Hi(),_0x2e5bd7=()=>{const _0x30fdca=_0x3f6f;_0x2a539b[_0x30fdca(0x24a)]();const _0x1e70f4=(_0x58fe84,_0x21e9c9,_0x4d1ad3,_0x5aae87)=>{const _0x1a8290=_0x30fdca;let _0x2dda4b=[];switch(_0x58fe84['id']){case _0x27ae65[_0x1a8290(0x1e1)]:{_0x2dda4b=_0x449627(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2c5)]:{_0x2dda4b=_0x2dbc93(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x3a4)]:{_0x2dda4b=_0x204136(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2e4)]:{_0x2dda4b=_0x3285a0(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x372)]:{_0x2dda4b=_0x4c8134(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x328)]:{_0x2dda4b=_0x8109a7(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x21f)]:{_0x2dda4b=_0x538c2c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveColCommandId']:{_0x2dda4b=_0x24566c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveRowCommandId']:{_0x2dda4b=_0x4a868d(_0x58fe84,_0x5aae87);break;}}const _0x2e6c93=_0x13bbde(_0x2dda4b,_0x5aae87),_0x10231b=this[_0x1a8290(0x38f)][_0x1a8290(0x1c0)](_0x21e9c9);if(_0x10231b&&_0x2e6c93){const _0x27e699={..._0x10231b,'range':_0x2e6c93};this[_0x1a8290(0x38f)][_0x1a8290(0x32b)](_0x21e9c9,_0x27e699),_0x3e2a1f(()=>{const _0x5846d6=_0x1a8290,_0x11742d=this[_0x5846d6(0x3ac)][_0x5846d6(0x375)](_0x2e6c93,_0x294aba=>(_0x11742d[_0x5846d6(0x24a)](),_0x1e70f4(_0x294aba,_0x21e9c9,_0x4d1ad3,_0x2e6c93)));_0x2a539b[_0x5846d6(0x314)](_0x11742d);});}return{'redos':[],'undos':[]};};this[_0x30fdca(0x38f)][_0x30fdca(0x3c9)]((_0xb523c8,_0x444cff)=>{const _0x4e7973=_0x30fdca,{range:_0x495b6a,sheetID:_0x28c3f3}=_0xb523c8,_0x116b14=this['_refRangeService'][_0x4e7973(0x375)](_0x495b6a,_0x329a36=>(_0x116b14[_0x4e7973(0x24a)](),_0x1e70f4(_0x329a36,_0x444cff,_0x28c3f3,_0x495b6a)));_0x2a539b[_0x4e7973(0x314)](_0x116b14);});};this[_0x258843(0x2fd)](_0x2576da(this[_0x258843(0x20a)][_0x258843(0x336)](()=>{_0x2e5bd7();})));}[_0x3504c5(0x2bf)](){const _0x93dc9e=_0x3504c5;var _0x241491,_0xcc41cf;if(this[_0x93dc9e(0x1e5)]=!0x0,((_0x241491=this[_0x93dc9e(0x1a8)]['getFocusedUnit']())==null?void 0x0:_0x241491['getUnitId']())!==this['unitID'])return;const _0x1a4637=(_0xcc41cf=this['_injector'][_0x93dc9e(0x1c0)](_0x14ecb3)[_0x93dc9e(0x216)]())==null?void 0x0:_0xcc41cf[0x0],_0x1c62ee=this[_0x93dc9e(0x1a8)][_0x93dc9e(0x289)](_0x3d4d2c['UNIVER_SHEET'])['getActiveSheet']();_0x1a4637&&_0x1c62ee&&this[_0x93dc9e(0x195)](_0x1c62ee[_0x93dc9e(0x25f)](),_0x1a4637);}['_toggleOffline'](){const _0x29dc39=_0x3504c5;this[_0x29dc39(0x1e5)]=!0x1;}};ye=Bi([F(0x2,_0x13fac2(_0x4da47b)),F(0x3,_0x13fac2(Ge)),F(0x4,_0x13fac2(_0x4cbb58)),F(0x5,_0x437d75),F(0x6,_0x378028),F(0x7,_0x13fac2(_0x1d2c90))],ye);var Yi=Object[_0x3504c5(0x1c3)],Wi=(_0x1d173a,_0x241d7b,_0xeec901,_0x4ca1cb)=>{const _0x414f39=_0x3504c5;for(var _0x21ddde=_0x4ca1cb>0x1?void 0x0:_0x4ca1cb?Yi(_0x241d7b,_0xeec901):_0x241d7b,_0x30ccda=_0x1d173a[_0x414f39(0x329)]-0x1,_0x3b4fb8;_0x30ccda>=0x0;_0x30ccda--)(_0x3b4fb8=_0x1d173a[_0x30ccda])&&(_0x21ddde=_0x3b4fb8(_0x21ddde)||_0x21ddde);return _0x21ddde;},pe=(_0x7be19d,_0x31d240)=>(_0x102ad4,_0xb52865)=>_0x31d240(_0x102ad4,_0xb52865,_0x7be19d);let Y=class extends _0x4dd7f6{constructor(_0xfb5afa,_0x5894f2,_0x1e16ba){const _0x16d380=_0x3504c5;super(),_(this,_0x16d380(0x388),new Map()),_(this,_0x16d380(0x35e),new _0x5060b1()),(this['_univerInstanceService']=_0xfb5afa,this[_0x16d380(0x23b)]=_0x5894f2,this[_0x16d380(0x27e)]=_0x1e16ba,this[_0x16d380(0x19b)]());}[_0x3504c5(0x24a)](){const _0x25025d=_0x3504c5;super[_0x25025d(0x24a)](),this[_0x25025d(0x35e)][_0x25025d(0x3c6)](),this[_0x25025d(0x388)][_0x25025d(0x3c9)](_0x30adb5=>_0x30adb5[_0x25025d(0x24a)]());}[_0x3504c5(0x1f3)](_0x3d3665){const _0x2693c9=_0x3504c5;return this[_0x2693c9(0x388)][_0x2693c9(0x2db)](_0x3d3665)?this[_0x2693c9(0x388)][_0x2693c9(0x1c0)](_0x3d3665)[_0x2693c9(0x22a)]:this[_0x2693c9(0x35e)]['pipe'](_0x1db320(_0x24efd9=>_0x24efd9[_0x2693c9(0x267)]===_0x3d3665),_0x3ba0ae(_0x1af308=>_0x1af308[_0x2693c9(0x22a)]));}[_0x3504c5(0x19b)](){const _0x33461a=_0x3504c5;this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c['UNIVER_SHEET'])[_0x33461a(0x37f)](_0xb04df5(this['dispose$']))[_0x33461a(0x336)](async _0x449966=>{const _0x40b923=_0x33461a,_0x50fcf9=_0x449966[_0x40b923(0x3cc)](),_0x249b39=await this['_startSheetCollabCursor'](_0x50fcf9);this[_0x40b923(0x35e)][_0x40b923(0x25d)](_0x249b39),this[_0x40b923(0x388)][_0x40b923(0x32b)](_0x50fcf9,_0x249b39);}),this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c[_0x33461a(0x34e)])[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x37f)](_0x1db320(_0x11eabf=>!_0x11eabf[_0x33461a(0x3cc)]()[_0x33461a(0x3c4)]('__')))[_0x33461a(0x336)](async _0x537cf1=>{const _0xc68926=_0x33461a,_0x55d265=_0x537cf1['getUnitId'](),_0x4d972c=await this[_0xc68926(0x297)](_0x55d265);this[_0xc68926(0x35e)][_0xc68926(0x25d)](_0x4d972c),this['_entities'][_0xc68926(0x32b)](_0x55d265,_0x4d972c);}),_0x680757(this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x34e)]),this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x3dc)]))[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x336)](_0x589ead=>{const _0x4959e4=_0x33461a,_0x1b851f=_0x589ead[_0x4959e4(0x3cc)](),_0x3798eb=this[_0x4959e4(0x388)]['get'](_0x1b851f);_0x3798eb&&(_0x3798eb[_0x4959e4(0x24a)](),this['_entities'][_0x4959e4(0x312)](_0x1b851f));});}async[_0x3504c5(0x338)](_0x500c30){const _0x39bfde=_0x3504c5,_0x137a12=await this[_0x39bfde(0x27e)][_0x39bfde(0x266)](_0x500c30),_0x19af7e=this[_0x39bfde(0x23b)][_0x39bfde(0x2af)](ye,_0x500c30,_0x137a12);return _0x19af7e[_0x39bfde(0x2ff)](),_0x19af7e;}async['_startDocCollabCursor'](_0x2308b1){const _0x22b8f3=_0x3504c5,_0x199345=await this[_0x22b8f3(0x27e)][_0x22b8f3(0x266)](_0x2308b1),_0x3f9c89=this[_0x22b8f3(0x23b)][_0x22b8f3(0x2af)](we,_0x2308b1,_0x199345);return _0x3f9c89[_0x22b8f3(0x2ff)](),_0x3f9c89;}};Y=Wi([pe(0x0,_0x437d75),pe(0x1,_0x13fac2(_0x4da47b)),pe(0x2,_0x13fac2(_0x4e336e))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x3759f1,_0x305c46){const _0x4ea90e=_0x3504c5;let {radius:_0x22b3bf,width:_0x222433,height:_0xb03249}=_0x305c46;_0x22b3bf=_0x22b3bf!=null?_0x22b3bf:0x0,_0x222433=_0x222433!=null?_0x222433:0x1e,_0xb03249=_0xb03249!=null?_0xb03249:0x1e;let _0x1ddfff=0x0,_0x43049e=0x0,_0x335222=0x0;_0x1ddfff=_0x43049e=_0x335222=Math[_0x4ea90e(0x366)](_0x22b3bf,_0x222433/0x2,_0xb03249/0x2),_0x3759f1[_0x4ea90e(0x2ab)](),_0x3759f1[_0x4ea90e(0x2b4)](_0x1ddfff,0x0),_0x3759f1['lineTo'](_0x222433-_0x43049e,0x0),_0x3759f1['arc'](_0x222433-_0x43049e,_0x43049e,_0x43049e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3759f1[_0x4ea90e(0x350)](_0x222433,_0xb03249-_0x335222),_0x3759f1[_0x4ea90e(0x203)](_0x222433-_0x335222,_0xb03249-_0x335222,_0x335222,0x0,Math['PI']/0x2,!0x1),_0x3759f1[_0x4ea90e(0x350)](0x0,_0xb03249),_0x3759f1[_0x4ea90e(0x350)](0x0,_0x1ddfff),_0x3759f1['arc'](_0x1ddfff,_0x1ddfff,_0x1ddfff,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3759f1[_0x4ea90e(0x365)](),_0x305c46[_0x4ea90e(0x396)]&&(_0x3759f1['save'](),_0x3759f1[_0x4ea90e(0x1d6)]=_0x305c46[_0x4ea90e(0x396)],_0x305c46[_0x4ea90e(0x1ce)]===_0x4ea90e(0x1b5)?_0x3759f1[_0x4ea90e(0x396)](_0x4ea90e(0x1b5)):_0x3759f1[_0x4ea90e(0x396)](),_0x3759f1[_0x4ea90e(0x270)]());}class Ie extends _0x3acd0c{constructor(_0x2f7192,_0x2745b0){const _0x504a20=_0x3504c5;super(_0x2f7192,_0x2745b0),_(this,_0x504a20(0x1d0)),_(this,_0x504a20(0x347)),(this[_0x504a20(0x1d0)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x1d0)],this[_0x504a20(0x347)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x347)]);}static[_0x3504c5(0x2b9)](_0x41c7ff,_0x3c50cd){const _0x207b3f=_0x3504c5,{text:_0x2fb724,color:_0x3b1e81}=_0x3c50cd;_0x41c7ff[_0x207b3f(0x39d)](),_0x41c7ff['font']=_0x207b3f(0x2ea);const _0x165444=_0x41c7ff[_0x207b3f(0x326)](_0x2fb724)[_0x207b3f(0x335)],_0x1d928c=Math[_0x207b3f(0x366)](_0x165444+0x2*Oe,rt);ji(_0x41c7ff,{'height':q,'radius':0x4,'width':_0x1d928c,'fill':_0x3b1e81}),_0x41c7ff[_0x207b3f(0x1d6)]=_0x207b3f(0x241);const _0x7e716a=Oe,_0x3f6d76=q-Vi,_0x23801f=rt-0x2*Oe;if(_0x165444>_0x23801f){let _0x7d31c9='',_0x10b207=0x0;for(const _0x407ddd of _0x2fb724){const _0x3ad7ab=_0x41c7ff[_0x207b3f(0x326)](_0x407ddd)[_0x207b3f(0x335)];if(_0x10b207+_0x3ad7ab<=_0x23801f-_0x41c7ff['measureText']('...')[_0x207b3f(0x335)])_0x7d31c9+=_0x407ddd,_0x10b207+=_0x3ad7ab;else{_0x7d31c9+='...';break;}}_0x41c7ff[_0x207b3f(0x263)](_0x7d31c9,_0x7e716a,_0x3f6d76);}else _0x41c7ff[_0x207b3f(0x263)](_0x2fb724,_0x7e716a,_0x3f6d76);_0x41c7ff[_0x207b3f(0x270)]();}[_0x3504c5(0x2de)](_0x3e2bd8){const _0x10533=_0x3504c5;Ie[_0x10533(0x2b9)](_0x3e2bd8,this);}}const Te=_0x3504c5(0x1ad),Xi='collab-text-range-',Gi=_0x3504c5(0x282),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x3504c5(0x2df);class ot{constructor(_0x26fda9,_0x97a410,_0x4173eb,_0x30b79f){const _0x2bae7f=_0x3504c5;_(this,_0x2bae7f(0x302),[]),_(this,'_anchor',null),_(this,_0x2bae7f(0x26a),null),_(this,'_anchorDot',null),_(this,_0x2bae7f(0x226),null),_(this,_0x2bae7f(0x1dd),null),(this['_cursor']=_0x26fda9,this[_0x2bae7f(0x34c)]=_0x97a410,this['_docSkeleton']=_0x4173eb,this[_0x2bae7f(0x30b)]=_0x30b79f,this[_0x2bae7f(0x1aa)]());}set['_hover'](_0x29bcc8){const _0x305341=_0x3504c5;_0x29bcc8?(this[_0x305341(0x252)]&&this[_0x305341(0x252)][_0x305341(0x2ba)](),this[_0x305341(0x26a)]&&this[_0x305341(0x26a)]['show']()):(this[_0x305341(0x252)]&&this['_anchorDot'][_0x305341(0x332)](),this['_textBubble']&&this[_0x305341(0x26a)]['hide']());}[_0x3504c5(0x24a)](){const _0x2d0ec7=_0x3504c5;for(const _0x59cda4 of this['_shapes'])_0x59cda4['dispose']();this[_0x2d0ec7(0x26a)]&&this['_textBubble'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x252)]&&this['_anchorDot'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x330)]&&this[_0x2d0ec7(0x330)][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x1dd)]&&this[_0x2d0ec7(0x1dd)]();}[_0x3504c5(0x1aa)](){const _0x3f4ee8=_0x3504c5;var _0x3e1112;const {_docSkeleton:_0x1a09af,_document:_0x24adae}=this,{color:_0x2956ca,name:_0x2d659c,ranges:_0x111573}=this[_0x3f4ee8(0x37c)],_0x54ce63=_0x24adae[_0x3f4ee8(0x25b)](),{docsLeft:_0x32ebe0,docsTop:_0x1c3a21}=_0x54ce63,_0x10544e=new _0x587060(_0x54ce63,_0x1a09af);for(const {startOffset:_0x235b5b,endOffset:_0x8249b0,rangeType:_0x4e2554,segmentId:_0x57d7db,segmentPage:_0x544e3b,collapsed:_0x28d1b8,isActive:_0x130c34}of _0x111573){const _0x89459f=_0x1a09af['findNodePositionByCharIndex'](_0x235b5b,!0x0,_0x57d7db,_0x544e3b);let _0x353e4c=_0x1a09af[_0x3f4ee8(0x3ad)](_0x8249b0,!0x0,_0x57d7db,_0x544e3b);if(_0x353e4c==null&&(_0x353e4c=_0x1a09af['findNodePositionByCharIndex'](_0x8249b0-0x1,!0x1,_0x57d7db,_0x544e3b)),_0x130c34){const {contentBoxPointGroup:_0x1460d7}=_0x10544e[_0x3f4ee8(0x361)](_0x353e4c,_0x353e4c);if(_0x1460d7[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2c2)](_0x2956ca,_0x1460d7,_0x32ebe0,_0x1c3a21,_0x2d659c),this[_0x3f4ee8(0x1dd)]=this['_handleHover']();}if(_0x89459f&&_0x353e4c){if(_0x4e2554===_0x2ff472['RECT']){const _0x9cf86e=new _0x118b5f(_0x54ce63,_0x1a09af),{pointGroup:_0x2acdbf}=(_0x3e1112=_0x9cf86e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c))!=null?_0x3e1112:{};if(_0x2acdbf==null||_0x2acdbf[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x3a6)](_0x2956ca,_0x2acdbf,_0x32ebe0,_0x1c3a21);}else{if(!_0x28d1b8){const {borderBoxPointGroup:_0x1f64a8}=_0x10544e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c);if(_0x1f64a8[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2b2)](_0x2956ca,_0x1f64a8,_0x32ebe0,_0x1c3a21);}}}}}[_0x3504c5(0x2c2)](_0x3f28a0,_0x34ccd5,_0x363e8d,_0x369baf,_0x2c0684){const _0x222a99=_0x3504c5,_0x409b4e=this['_getAnchorBounding'](_0x34ccd5),{left:_0x262bfc,top:_0x1cfa68,height:_0x3cea2d}=_0x409b4e,_0x3c5dca=this['_getScale'](),_0x57e825=zi/_0x3c5dca,_0x32169b=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf,'height':_0x3cea2d,'width':Ki,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':_0x57e825,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x32169b,this[_0x222a99(0x34c)]['addObject'](_0x32169b,_0x26f088);const _0x55d494=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':0x0,'stroke':_0x3f28a0||_0x486a87(_0x3312f1['black'],0x0),'evented':!0x1});this[_0x222a99(0x252)]=_0x55d494,this['_scene'][_0x222a99(0x2ec)](_0x55d494,_0x26f088);const _0x2ab52e=new Ie(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-q,'text':_0x2c0684,'color':_0x3f28a0});this[_0x222a99(0x26a)]=_0x2ab52e,this[_0x222a99(0x34c)][_0x222a99(0x2ec)](_0x2ab52e,_0x26f088),this[_0x222a99(0x39a)]=!0x1;}[_0x3504c5(0x1a9)](){const _0x376788=_0x3504c5,_0x10fd4=this['_anchor']['onPointerEnter$'][_0x376788(0x377)](()=>{const _0x4a9cee=_0x376788;this[_0x4a9cee(0x39a)]=!0x0;}),_0x5c617d=this['_anchor'][_0x376788(0x33e)]['subscribeEvent'](()=>{const _0x26ec71=_0x376788;this[_0x26ec71(0x226)]&&clearTimeout(this[_0x26ec71(0x226)]),this[_0x26ec71(0x226)]=setTimeout(()=>{const _0x2c2a90=_0x26ec71;this[_0x2c2a90(0x39a)]=!0x1;},0x7d0);});return()=>{const _0x2ca677=_0x376788;_0x10fd4[_0x2ca677(0x3a9)](),_0x5c617d['unsubscribe']();};}['_drawTextRange'](_0x33b007,_0x2966ce,_0x6b3e5e,_0x13ab6c){const _0x23b5a6=_0x3504c5,_0x49276c=new _0x44319d(_0x33b007)['setAlpha'](0.2)[_0x23b5a6(0x331)](),_0x25ae7a=new _0x1556b3(Xi+_0x144598(J),{'pointsGroup':_0x2966ce,'fill':_0x49276c||_0x486a87(_0x3312f1[_0x23b5a6(0x1b4)],0.2),'left':_0x6b3e5e,'top':_0x13ab6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23b5a6(0x302)][_0x23b5a6(0x2a3)](_0x25ae7a),this[_0x23b5a6(0x34c)][_0x23b5a6(0x2ec)](_0x25ae7a,_0x26f088);}['_drawRectRange'](_0x165746,_0x2d04af,_0x58c78b,_0x59a185){const _0x7bb002=_0x3504c5,_0x275d64=new _0x44319d(_0x165746)[_0x7bb002(0x23a)](0.2)[_0x7bb002(0x331)](),_0x145de5=new _0x1556b3(Gi+_0x144598(J),{'pointsGroup':_0x2d04af,'fill':_0x275d64||_0x486a87(_0x3312f1[_0x7bb002(0x1b4)],0.2),'left':_0x58c78b,'top':_0x59a185,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x7bb002(0x2a3)](_0x145de5),this[_0x7bb002(0x34c)][_0x7bb002(0x2ec)](_0x145de5,_0x26f088);}[_0x3504c5(0x1ca)](_0x1735b0){const _0x57b502=_0x1735b0[0x0],_0x27f658=_0x57b502[0x0],_0x37a2d9=_0x57b502[0x2],{x:_0x16a81e,y:_0x4c5e71}=_0x27f658,{x:_0x4447cb,y:_0x1d8c87}=_0x37a2d9;return{'left':_0x16a81e,'top':_0x4c5e71,'width':_0x4447cb-_0x16a81e,'height':_0x1d8c87-_0x4c5e71};}[_0x3504c5(0x33a)](){const _0x4ca918=_0x3504c5,{scaleX:_0x599836,scaleY:_0x32b339}=this[_0x4ca918(0x34c)][_0x4ca918(0x31e)]();return Math[_0x4ca918(0x2ad)](_0x599836,_0x32b339);}}var Zi=Object[_0x3504c5(0x1c3)],Qi=(_0x50a65d,_0x26b7f6,_0x43a8df,_0xbd17e3)=>{const _0xbfaf24=_0x3504c5;for(var _0x45b5ce=_0xbd17e3>0x1?void 0x0:_0xbd17e3?Zi(_0x26b7f6,_0x43a8df):_0x26b7f6,_0x1cb4e9=_0x50a65d[_0xbfaf24(0x329)]-0x1,_0x2768bf;_0x1cb4e9>=0x0;_0x1cb4e9--)(_0x2768bf=_0x50a65d[_0x1cb4e9])&&(_0x45b5ce=_0x2768bf(_0x45b5ce)||_0x45b5ce);return _0x45b5ce;},ne=(_0x5b1372,_0x2f1691)=>(_0x5a3e45,_0x587347)=>_0x2f1691(_0x5a3e45,_0x587347,_0x5b1372);let $e=class extends _0x4dd7f6{constructor(_0x293825,_0x52b680,_0x3db4d5,_0x320297,_0x161c75){const _0x3097e7=_0x3504c5;super(),_(this,_0x3097e7(0x3d8),[]),_(this,_0x3097e7(0x20e),[]),(this[_0x3097e7(0x346)]=_0x293825,this[_0x3097e7(0x355)]=_0x52b680,this[_0x3097e7(0x291)]=_0x3db4d5,this[_0x3097e7(0x213)]=_0x320297,this[_0x3097e7(0x2dc)]=_0x161c75,this[_0x3097e7(0x19b)]());}['_init'](){const _0x26b982=_0x3504c5,_0x16c165=this[_0x26b982(0x346)][_0x26b982(0x1f0)],_0x444428=this[_0x26b982(0x355)];this['disposeWithMe'](_0x338b00([this[_0x26b982(0x291)][_0x26b982(0x1f3)](_0x16c165),this[_0x26b982(0x2dc)][_0x26b982(0x245)]])[_0x26b982(0x37f)](_0x43fad8(([_0x35e3b3,_0x214cad])=>({'skeleton':_0x444428[_0x26b982(0x2d8)](),'cursors':[..._0x35e3b3[_0x26b982(0x387)]()][_0x26b982(0x2fa)](_0xd337b9=>({..._0xd337b9,'color':this[_0x26b982(0x2dc)][_0x26b982(0x1bf)](_0xd337b9[_0x26b982(0x1d0)])}))})))[_0x26b982(0x336)](_0x1537be=>{const _0x2bb060=_0x26b982;if(this[_0x2bb060(0x36e)](),_0x1537be){const {skeleton:_0x3446e5,cursors:_0x208b58}=_0x1537be;this[_0x2bb060(0x299)](_0x3446e5,_0x208b58);}})),this['_initResize'](),this[_0x26b982(0x193)]();}[_0x3504c5(0x299)](_0x4de40d,_0xf047b7){const _0x10ec0f=_0x3504c5,{scene:_0xe8040c,mainComponent:_0x126935}=this['_context'],_0x57548f=_0xf047b7['map'](_0x3d034f=>new ot(_0x3d034f,_0xe8040c,_0x4de40d,_0x126935));this[_0x10ec0f(0x3d8)]=_0x57548f,this[_0x10ec0f(0x20e)]=_0xf047b7;}[_0x3504c5(0x265)](){const _0x57952f=_0x3504c5;this[_0x57952f(0x36e)]();const {scene:_0x262440,mainComponent:_0x3ea0a9}=this[_0x57952f(0x346)],_0x58409d=this[_0x57952f(0x355)][_0x57952f(0x2d8)](),_0x4b25e6=this['_cursors'][_0x57952f(0x3a8)](_0x517306=>new ot(_0x517306,_0x262440,_0x58409d,_0x3ea0a9));this[_0x57952f(0x3d8)]=_0x4b25e6;}[_0x3504c5(0x36e)](){const _0x11f7a4=_0x3504c5;this['_cursorShapes'][_0x11f7a4(0x3c9)](_0x5d8dfa=>_0x5d8dfa[_0x11f7a4(0x24a)]()),this[_0x11f7a4(0x3d8)]=[];}[_0x3504c5(0x193)](){const _0x2054f3=_0x3504c5,_0x3a4635=[_0x42495b['id']];this[_0x2054f3(0x2fd)](this[_0x2054f3(0x213)][_0x2054f3(0x383)](_0x1d8e79=>{const _0x5933c8=_0x2054f3;_0x3a4635[_0x5933c8(0x240)](_0x1d8e79['id'])&&_0x1d8e79[_0x5933c8(0x380)][_0x5933c8(0x1f0)]===this['_context']['unitId']&&this[_0x5933c8(0x265)]();}));}[_0x3504c5(0x2bc)](){const _0x40daa7=_0x3504c5;this[_0x40daa7(0x2fd)](_0xc40dd(this[_0x40daa7(0x346)][_0x40daa7(0x244)][_0x40daa7(0x357)])[_0x40daa7(0x37f)](_0x18ab68(_0xfb00fb=>_0xfb00fb[_0x40daa7(0x201)]===_0x3128aa[_0x40daa7(0x32e)]),_0x26bb7e(0x10))['subscribe'](()=>{const _0x3673ee=_0x40daa7;this[_0x3673ee(0x265)]();}));}};$e=Qi([ne(0x1,_0x13fac2(_0x516f50)),ne(0x2,_0x13fac2(Y)),ne(0x3,_0x378028),ne(0x4,_0x13fac2(_0x2f412a))],$e);const qi=0x1,en=1.5;class tn extends _0x3acd0c{constructor(_0x5e75f3,_0x3882d7){const _0x3d53a0=_0x3504c5;super(_0x5e75f3,_0x3882d7),_(this,'_color'),_(this,_0x3d53a0(0x348),!0x1),_(this,_0x3d53a0(0x306)),_(this,'_name',''),_(this,'_labelPosition',_0x3d53a0(0x3cf)),_(this,_0x3d53a0(0x33b)),(_0x3882d7&&this[_0x3d53a0(0x3d9)](_0x3882d7),this[_0x3d53a0(0x3c0)]['subscribeEvent'](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x0})),this[_0x3d53a0(0x33e)][_0x3d53a0(0x377)](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x1})));}[_0x3504c5(0x3d9)](_0x26b9e0){const _0x2d3ffe=_0x3504c5;var _0x37cf08,_0x3aa6b2,_0x241d74,_0x515bab,_0x4b582b,_0x18785a;this[_0x2d3ffe(0x325)]=(_0x37cf08=_0x26b9e0[_0x2d3ffe(0x1d0)])!=null?_0x37cf08:this[_0x2d3ffe(0x325)],this['_hovered']=(_0x3aa6b2=_0x26b9e0[_0x2d3ffe(0x339)])!=null?_0x3aa6b2:this['_hovered'],this[_0x2d3ffe(0x306)]=(_0x241d74=_0x26b9e0[_0x2d3ffe(0x2ce)])!=null?_0x241d74:this[_0x2d3ffe(0x306)],this[_0x2d3ffe(0x253)]=(_0x515bab=_0x26b9e0[_0x2d3ffe(0x238)])!=null?_0x515bab:this[_0x2d3ffe(0x253)],this[_0x2d3ffe(0x3a0)]=(_0x4b582b=_0x26b9e0[_0x2d3ffe(0x290)])!=null?_0x4b582b:this[_0x2d3ffe(0x3a0)],this[_0x2d3ffe(0x33b)]=(_0x18785a=_0x26b9e0[_0x2d3ffe(0x260)])!=null?_0x18785a:this[_0x2d3ffe(0x33b)],this[_0x2d3ffe(0x3be)]({'width':_0x26b9e0[_0x2d3ffe(0x335)],'height':_0x26b9e0['height']});}[_0x3504c5(0x2f0)](_0x597db7){const _0x440a94=_0x3504c5,{row:_0x841981,column:_0x5bfb38}=_0x597db7;if(_0x841981>=this[_0x440a94(0x306)][_0x440a94(0x20b)]&&_0x841981<=this[_0x440a94(0x306)][_0x440a94(0x36c)]&&_0x5bfb38>=this['_range']['startColumn']&&_0x5bfb38<=this['_range']['endColumn']){this[_0x440a94(0x3d9)]({'hovered':!0x0});return;}this[_0x440a94(0x3d9)]({'hovered':!0x1});}['triggerDblclick'](_0x95240a){return!0x1;}[_0x3504c5(0x2de)](_0x4d3944){const _0x8b207d=_0x3504c5;_0x514da9[_0x8b207d(0x2b9)](_0x4d3944,{'width':this[_0x8b207d(0x335)],'height':this[_0x8b207d(0x1cb)],'strokeWidth':en,'stroke':this[_0x8b207d(0x325)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4d3944[_0x8b207d(0x39d)](),_0x4d3944[_0x8b207d(0x257)](0x1,0x0,0x0,0x1,this[_0x8b207d(0x335)],this['_labelPosition']===_0x8b207d(0x1a6)?0x0:-q),Ie[_0x8b207d(0x2b9)](_0x4d3944,{'text':this['_name'],'color':this[_0x8b207d(0x325)]}),_0x4d3944[_0x8b207d(0x270)]());}}var sn=Object[_0x3504c5(0x1c3)],nn=(_0x24aec0,_0x328036,_0xa8e174,_0x300704)=>{const _0x289a5c=_0x3504c5;for(var _0x3eb809=_0x300704>0x1?void 0x0:_0x300704?sn(_0x328036,_0xa8e174):_0x328036,_0x66bf19=_0x24aec0[_0x289a5c(0x329)]-0x1,_0x8e0e38;_0x66bf19>=0x0;_0x66bf19--)(_0x8e0e38=_0x24aec0[_0x66bf19])&&(_0x3eb809=_0x8e0e38(_0x3eb809)||_0x3eb809);return _0x3eb809;},Re=(_0x2f9053,_0x2a979c)=>(_0x18c97b,_0x224590)=>_0x2a979c(_0x18c97b,_0x224590,_0x2f9053);const rn=0x1389;let xe=class extends _0x4dd7f6{constructor(_0x36f0e2,_0x3c4631,_0x2089a2,_0x391a98){const _0x2be3bd=_0x3504c5;super(),_(this,_0x2be3bd(0x20e),new Set()),_(this,_0x2be3bd(0x333),null),(this['_context']=_0x36f0e2,this['_sheetSkeletonManagerService']=_0x3c4631,this[_0x2be3bd(0x291)]=_0x2089a2,this[_0x2be3bd(0x2dc)]=_0x391a98,this[_0x2be3bd(0x19b)]());}[_0x3504c5(0x19b)](){const _0x5723a5=_0x3504c5;this[_0x5723a5(0x2b0)][_0x5723a5(0x1bb)]['pipe'](_0x3d85e9(this[_0x5723a5(0x21c)]),_0x1ed193(_0x4b74e0=>{const _0x42a1ad=_0x5723a5;if(_0x4b74e0){const _0x9a987f=_0x4b74e0['sheetId'];return _0x338b00(this['_collabCursorController'][_0x42a1ad(0x1f3)](this[_0x42a1ad(0x346)][_0x42a1ad(0x1f0)]),this['_themeService']['currentTheme$'])[_0x42a1ad(0x37f)](_0x43fad8(([_0x1352fe,_0x1c8ac6])=>{const _0x39d9eb=new Map();return _0x1352fe['forEach']((_0x2ff11c,_0x393fb1)=>{const _0x482cd4=_0x3f6f;if(_0x2ff11c[_0x482cd4(0x228)]===_0x9a987f){const _0x40c0b0={..._0x2ff11c};_0x40c0b0[_0x482cd4(0x1d0)]=this[_0x482cd4(0x2dc)][_0x482cd4(0x1bf)](_0x2ff11c[_0x482cd4(0x1d0)]),_0x39d9eb[_0x482cd4(0x32b)](_0x393fb1,_0x40c0b0);}}),{'skeleton':_0x4b74e0,'cursors':_0x39d9eb};}));}return _0x5943a5({'skeleton':null,'cursors':new Map()});}))[_0x5723a5(0x336)](({skeleton:_0x10570a,cursors:_0x4a2779})=>{const _0x4f77fe=_0x5723a5;this[_0x4f77fe(0x36e)](),_0x10570a&&this[_0x4f77fe(0x299)](_0x10570a,_0x4a2779);}),this[_0x5723a5(0x2b0)]['currentSkeleton$'][_0x5723a5(0x336)](_0x4e6e95=>{const _0x4e7e73=_0x5723a5;if(_0x4e6e95==null)return;const {skeleton:_0x376579}=_0x4e6e95,{scene:_0x216d4d}=this[_0x4e7e73(0x346)];_0x216d4d[_0x4e7e73(0x39f)]['subscribeEvent'](_0x47926c(_0x5808cb=>{const _0x1c6b70=_0x4e7e73;var _0x44a504,_0x443136;const {offsetX:_0x40ef06,offsetY:_0x2814bb}=_0x5808cb,{x:_0x246ce5,y:_0x2a8401}=_0x216d4d[_0x1c6b70(0x258)](_0x3199d6[_0x1c6b70(0x24f)]([_0x40ef06,_0x2814bb])),{scaleX:_0x1b2e66,scaleY:_0x3f11a4}=_0x216d4d[_0x1c6b70(0x31e)](),_0x55091f=_0x216d4d[_0x1c6b70(0x29f)](_0xd834fb[_0x1c6b70(0x33d)]),_0x276cc7=_0x216d4d[_0x1c6b70(0x286)](_0x3199d6[_0x1c6b70(0x24f)]([_0x246ce5,_0x2a8401]),_0x55091f),_0x283278=_0x376579[_0x1c6b70(0x2c4)](_0x40ef06,_0x2814bb,_0x1b2e66,_0x3f11a4,_0x276cc7);((_0x44a504=this[_0x1c6b70(0x333)])==null?void 0x0:_0x44a504[_0x1c6b70(0x3ae)])===_0x283278[_0x1c6b70(0x3ae)]&&((_0x443136=this[_0x1c6b70(0x333)])==null?void 0x0:_0x443136[_0x1c6b70(0x212)])===_0x283278['row']||this[_0x1c6b70(0x20e)][_0x1c6b70(0x3c9)](_0x199a67=>{const _0x42a64e=_0x1c6b70;_0x199a67[_0x42a64e(0x2f0)](_0x283278);});},0x64));});}[_0x3504c5(0x299)](_0x52d605,_0x3ed844){const _0x217c54=_0x3504c5;var _0x1b1493;const _0x5b16fb=(_0x1b1493=this[_0x217c54(0x2b0)]['getCurrent']())==null?void 0x0:_0x1b1493[_0x217c54(0x303)];if(!_0x5b16fb)return;const _0x395f68=this[_0x217c54(0x3d2)]();if(!_0x395f68)return;this[_0x217c54(0x20e)]['forEach'](_0x2f2c9b=>{const _0x48dd6b=_0x217c54;_0x2f2c9b[_0x48dd6b(0x1ef)]();});const {scene:_0x3912fd}=_0x395f68,_0x177f64=on(Array[_0x217c54(0x277)](_0x3ed844['values']()))['map'](_0x57e7da=>{const _0x600a79=_0x217c54,{color:_0x536b4c,range:_0x4818b6,name:_0x216207,selection:_0xe9b04e,sheetID:_0x15673b}=_0x57e7da,{startColumn:_0x57a34e,startRow:_0x4e8f85,endColumn:_0x343ca3,endRow:_0x27ff42}=_0x4818b6,_0xb15bed=_0x5f53de(_0x4e8f85,_0x57a34e,_0x3912fd,_0x5b16fb),_0xaff247=_0x5f53de(_0x27ff42,_0x343ca3,_0x3912fd,_0x5b16fb),{columnHeaderHeightAndMarginTop:_0x267d63}=_0x5b16fb,{startX:_0x14e88d,startY:_0x523b46}=_0xb15bed,{endX:_0x1bb8c9,endY:_0xf10868}=_0xaff247,_0x3ae6d4=_0x1bb8c9-_0x14e88d,_0x56ee6a=_0xf10868-_0x523b46,_0x4904f9={'labelPosition':_0x523b46-_0x267d63>=q?'top':_0x600a79(0x1a6),'sheetID':_0x15673b,'range':_0x4818b6,'color':_0x536b4c,'name':_0x216207,'selection':_0xe9b04e,'left':_0x14e88d,'top':_0x523b46,'width':_0x3ae6d4,'height':_0x56ee6a,'evented':!0x1,'zIndex':rn};return new tn(_0x216207,_0x4904f9);});_0x3912fd['addObjects'](_0x177f64,qi),this[_0x217c54(0x20e)]=new Set(_0x177f64);}[_0x3504c5(0x36e)](){const _0x11e69b=_0x3504c5;var _0x2106ad;(_0x2106ad=this[_0x11e69b(0x20e)])==null||_0x2106ad['forEach'](_0x2e960a=>_0x2e960a[_0x11e69b(0x24a)]());}[_0x3504c5(0x3d2)](){const _0x5aac54=_0x3504c5;return _0x4d2825(this[_0x5aac54(0x346)][_0x5aac54(0x2a4)],this['_context']);}};xe=nn([Re(0x1,_0x13fac2(_0x29be31)),Re(0x2,_0x13fac2(Y)),Re(0x3,_0x13fac2(_0x2f412a))],xe);function on(_0x23cc1a){const _0xd6fd55=_0x3504c5,_0x4f3e8a=new Map();return _0x23cc1a['forEach'](_0x216028=>{const _0x1b3a7d=_0x3f6f;if(_0x4f3e8a[_0x1b3a7d(0x2db)](_0x216028[_0x1b3a7d(0x28a)])){const _0x22028b=_0x4f3e8a[_0x1b3a7d(0x1c0)](_0x216028['selection']);_0x22028b[_0x1b3a7d(0x238)]+=',\x20'+_0x216028['name'];}else _0x4f3e8a['set'](_0x216028[_0x1b3a7d(0x28a)],_0x216028);}),Array[_0xd6fd55(0x277)](_0x4f3e8a['values']());}var an=Object[_0x3504c5(0x1c3)],cn=(_0x35fd60,_0xaab3f7,_0x9afe0c,_0x3a34c4)=>{const _0x4180b1=_0x3504c5;for(var _0x4b6506=_0x3a34c4>0x1?void 0x0:_0x3a34c4?an(_0xaab3f7,_0x9afe0c):_0xaab3f7,_0x4b8904=_0x35fd60[_0x4180b1(0x329)]-0x1,_0x48e857;_0x4b8904>=0x0;_0x4b8904--)(_0x48e857=_0x35fd60[_0x4b8904])&&(_0x4b6506=_0x48e857(_0x4b6506)||_0x4b6506);return _0x4b6506;},k=(_0x291958,_0x5b9a98)=>(_0x36bcf8,_0x20225a)=>_0x5b9a98(_0x36bcf8,_0x20225a,_0x291958);let le=class extends _0x44caae{constructor(_0xf5a4a8,_0x5d4095,_0x2f6aa6,_0x4c4b5a,_0x381ee3,_0xf2852e){const _0xc3ae7=_0x3504c5;super(),this[_0xc3ae7(0x38a)]=_0xf5a4a8,this['_localCacheService']=_0x5d4095,this['_collaborationUIEventService']=_0x2f6aa6,this[_0xc3ae7(0x196)]=_0x4c4b5a,this[_0xc3ae7(0x300)]=_0x381ee3,this[_0xc3ae7(0x30a)]=_0xf2852e,this[_0xc3ae7(0x307)](),this[_0xc3ae7(0x3ce)]();}['_setupBeforeClosingHandler'](){const _0x441cac=_0x3504c5;this['disposeWithMe'](this[_0x441cac(0x38a)][_0x441cac(0x2cb)](()=>{const _0x313b3b=_0x441cac;if(this[_0x313b3b(0x2f4)][_0x313b3b(0x36f)][_0x313b3b(0x1fc)])return this[_0x313b3b(0x30a)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3504c5(0x3ce)](){const _0x5bb584=_0x3504c5;this[_0x5bb584(0x2fd)](this[_0x5bb584(0x1b6)][_0x5bb584(0x206)][_0x5bb584(0x336)](_0x532927=>{const _0x4abb74=_0x5bb584;_0x532927['id']===_0x4435b4[_0x4abb74(0x1ac)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t']('collaboration.single-unit.warning')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x3b5)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x223)]&&this[_0x4abb74(0x300)]['show']({'title':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e0)),'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x342)),'type':_0x4abb74(0x1b1),'duration':0x0}),_0x532927['id']===_0x4435b4['CONFLICT']&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))+'('+_0x532927[_0x4abb74(0x370)]+')'}),_0x532927['id']===_0x4435b4[_0x4abb74(0x37d)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this['_localeService']['t'](_0x532927[_0x4abb74(0x370)]||'')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x2d7)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x273))}),_0x532927['id']===_0x4435b4['SOCKET_FAILED']&&this['_messageService'][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x230)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1dc))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x27b)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x274))});}));}};le=cn([k(0x0,_0x59ea3f),k(0x1,_0x55c362),k(0x2,_0x13fac2(_0x291389)),k(0x3,_0x1b730d),k(0x4,_0x540b4a),k(0x5,_0x13fac2(_0x21a3cc))],le);const ln=_0x3504c5(0x25e),at={};var _n=Object['getOwnPropertyDescriptor'],hn=(_0x3df684,_0x3b2b56,_0x4ef956,_0x24d453)=>{const _0x337940=_0x3504c5;for(var _0x451089=_0x24d453>0x1?void 0x0:_0x24d453?_n(_0x3b2b56,_0x4ef956):_0x3b2b56,_0x5acf47=_0x3df684[_0x337940(0x329)]-0x1,_0x224829;_0x5acf47>=0x0;_0x5acf47--)(_0x224829=_0x3df684[_0x5acf47])&&(_0x451089=_0x224829(_0x451089)||_0x451089);return _0x451089;},ct=(_0x527552,_0x48372b)=>(_0x57c832,_0x3c313d)=>_0x48372b(_0x57c832,_0x3c313d,_0x527552);let _e=class{constructor(_0x5580b2,_0x54b052){const _0x463e47=_0x3504c5;this['_transformService']=_0x5580b2,this[_0x463e47(0x1b8)]=_0x54b052;}[_0x3504c5(0x1c2)](_0xc3b992){const _0xcf6c44=_0x3504c5;this[_0xcf6c44(0x313)](_0xc3b992),this[_0xcf6c44(0x219)](_0xc3b992);}[_0x3504c5(0x35a)](_0x127566){const _0x3a7445=_0x3504c5,{unitID:_0x11ce82}=_0x127566,_0x293901=this[_0x3a7445(0x1b8)][_0x3a7445(0x354)](_0x11ce82)[_0x3a7445(0x24c)](_0x23034e),{redoCache:_0xd12a20}=_0x293901[_0x3a7445(0x296)]();if(_0xd12a20[_0x3a7445(0x329)]===0x0)return _0x127566;let _0x46a8b6=_0x267bed[_0x3a7445(0x214)](_0x127566[_0x3a7445(0x2d3)][0x0]);for(let _0x27eb79=0x0;_0x27eb79<_0xd12a20[_0x3a7445(0x329)];_0x27eb79++){const _0x41f6ca={'id':'doc.mutation.rich-text-editing','params':{..._0xd12a20[_0x27eb79]}},_0x2ece3d=this[_0x3a7445(0x21d)][_0x3a7445(0x341)](_0x46a8b6,_0x41f6ca,!0x1);if(_0x45a2c4(_0x2ece3d))throw _0x2ece3d['error'];_0x46a8b6=_0x2ece3d['m1Prime'];}return{..._0x267bed['deepClone'](_0x127566),'mutations':[_0x46a8b6]};}['_transformUndoRedoStack'](_0x1ef64c){const _0x347b3d=_0x3504c5,{unitID:_0x5954f6}=_0x1ef64c,_0x3e9910=this['_renderManagerService']['getRenderById'](_0x5954f6)[_0x347b3d(0x24c)](_0x23034e),{undoCache:_0xbd98ab,redoCache:_0x2a3b4b}=_0x3e9910['getUndoRedoMutationParamsCache']();if(_0xbd98ab['length']===0x0||_0x2a3b4b['length']===0x0)return;const _0x262a4d=[],_0x5654b8=[];let _0x403eaa=_0x267bed[_0x347b3d(0x214)](_0x1ef64c[_0x347b3d(0x2d3)][0x0]),_0x366cb9=_0x267bed['deepClone'](_0x1ef64c['mutations'][0x0]);for(let _0x2054df=_0xbd98ab[_0x347b3d(0x329)]-0x1;_0x2054df>=0x0;_0x2054df--){const _0x5134c2={'id':_0x347b3d(0x221),'params':{..._0xbd98ab[_0x2054df]}},_0x2608dd={'id':_0x347b3d(0x221),'params':{..._0x2a3b4b[_0x2054df]}},_0x5c3df9=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x403eaa,_0x5134c2,!0x1),_0x93bdb0=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x366cb9,_0x2608dd,!0x1);if(_0x45a2c4(_0x5c3df9))throw _0x5c3df9[_0x347b3d(0x1b1)];if(_0x45a2c4(_0x93bdb0))throw _0x93bdb0[_0x347b3d(0x1b1)];_0x262a4d[_0x347b3d(0x30c)](_0x5c3df9[_0x347b3d(0x23e)]['params']),_0x5654b8[_0x347b3d(0x30c)](_0x93bdb0['m2Prime']['params']),_0x403eaa=_0x5c3df9[_0x347b3d(0x2cd)],_0x366cb9=_0x93bdb0[_0x347b3d(0x2cd)];}_0x3e9910[_0x347b3d(0x3d5)]({'undoCache':_0x262a4d,'redoCache':_0x5654b8});}[_0x3504c5(0x219)](_0x5327b5){const _0x5c0e7b=_0x3504c5,{unitID:_0x2b5957}=_0x5327b5,_0x38a222=this['_renderManagerService'][_0x5c0e7b(0x354)](_0x2b5957)[_0x5c0e7b(0x24c)](_0x23034e),_0x32e6f3=_0x38a222[_0x5c0e7b(0x28e)]();if(_0x32e6f3==null)return;const _0x41438f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5327b5[_0x5c0e7b(0x267)],'actions':null,'textRanges':[_0x32e6f3]}}],_0x55adc2=this[_0x5c0e7b(0x21d)][_0x5c0e7b(0x3b2)](_0x5327b5,_0x41438f);if(!_0x5d4db3(_0x55adc2))throw _0x55adc2[_0x5c0e7b(0x1b1)];const _0x3bca98=_0x55adc2[_0x5c0e7b(0x23e)][0x0][_0x5c0e7b(0x380)][_0x5c0e7b(0x204)];Array[_0x5c0e7b(0x1d8)](_0x3bca98)&&_0x3bca98[_0x5c0e7b(0x329)]&&_0x38a222[_0x5c0e7b(0x294)](_0x3bca98[0x0]);}};_e=hn([ct(0x0,_0x3943ee),ct(0x1,_0x5dc693)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x569f81,_0x3f913e,_0x28e0fc,_0x56c17a)=>{for(var _0x4ca6b8=_0x56c17a>0x1?void 0x0:_0x56c17a?un(_0x3f913e,_0x28e0fc):_0x3f913e,_0x125761=_0x569f81['length']-0x1,_0x129990;_0x125761>=0x0;_0x125761--)(_0x129990=_0x569f81[_0x125761])&&(_0x4ca6b8=_0x129990(_0x4ca6b8)||_0x4ca6b8);return _0x4ca6b8;},De=(_0x2ef500,_0xcdbb81)=>(_0x57caed,_0x4b44ee)=>_0xcdbb81(_0x57caed,_0x4b44ee,_0x2ef500);let he=class{constructor(_0x291f33,_0x559371,_0x1dc7e0){const _0x5b396b=_0x3504c5;this[_0x5b396b(0x23b)]=_0x291f33,this[_0x5b396b(0x21d)]=_0x559371,this[_0x5b396b(0x261)]=_0x1dc7e0;}['transformStateCache'](_0x2d9fe7){this['_transformHistoryAndStateStack'](_0x2d9fe7);}[_0x3504c5(0x35a)](_0x2d24ef){const _0x18b5f5=_0x3504c5,{unitID:_0x1d0950}=_0x2d24ef,{collaboration:_0x59276d}=this[_0x18b5f5(0x261)][_0x18b5f5(0x205)](_0x1d0950);if(_0x59276d[_0x18b5f5(0x329)]===0x0)return _0x2d24ef;let _0x1f03b1=_0x267bed[_0x18b5f5(0x214)](_0x2d24ef[_0x18b5f5(0x2d3)][0x0]);for(let _0x57e089=0x0;_0x57e089<_0x59276d[_0x18b5f5(0x329)];_0x57e089++){const _0x32c84e={'id':_0x18b5f5(0x221),'params':{'unitId':_0x59276d[_0x57e089][_0x18b5f5(0x1f0)],..._0x59276d[_0x57e089]['redoState']}},_0x3a6b22=this[_0x18b5f5(0x21d)][_0x18b5f5(0x341)](_0x1f03b1,_0x32c84e,!0x1);if(_0x45a2c4(_0x3a6b22))throw _0x3a6b22[_0x18b5f5(0x1b1)];_0x1f03b1=_0x3a6b22['m1Prime'];}return{..._0x267bed['deepClone'](_0x2d24ef),'mutations':[_0x1f03b1]};}[_0x3504c5(0x232)](_0x501d31){const _0x4ea30a=_0x3504c5,{unitID:_0x3751d7}=_0x501d31,{history:_0x1e49ef,collaboration:_0x425412}=this[_0x4ea30a(0x261)]['getStateCache'](_0x3751d7);if(_0x1e49ef[_0x4ea30a(0x329)]===0x0&&_0x425412['length']===0x0)return;const _0x4c39cc=[],_0x18c8ef=[];let _0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x15fc4d=_0x1e49ef[_0x4ea30a(0x329)]-0x1;_0x15fc4d>=0x0;_0x15fc4d--){const _0x4a4d6b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x32c)]}},_0xca48a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x30f)]}},_0x1f4859=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x4a4d6b,!0x1),_0x332740=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0xca48a2,!0x1);if(_0x45a2c4(_0x1f4859))throw _0x1f4859[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x332740))throw _0x332740[_0x4ea30a(0x1b1)];_0x4c39cc[_0x4ea30a(0x30c)]({..._0x1e49ef[_0x15fc4d],'undoState':_0x1f4859[_0x4ea30a(0x23e)][_0x4ea30a(0x380)],'redoState':_0x332740[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x1f4859[_0x4ea30a(0x2cd)],_0x2b5366=_0x332740['m1Prime'];}_0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x4fd246=_0x425412['length']-0x1;_0x4fd246>=0x0;_0x4fd246--){const _0x5048b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x32c)]}},_0x31b760={'id':_0x4ea30a(0x221),'params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x30f)]}},_0x418a47=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x5048b9,!0x1),_0x43d1f8=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0x31b760,!0x1);if(_0x45a2c4(_0x418a47))throw _0x418a47[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x43d1f8))throw _0x43d1f8[_0x4ea30a(0x1b1)];_0x18c8ef[_0x4ea30a(0x30c)]({..._0x425412[_0x4fd246],'undoState':_0x418a47['m2Prime'][_0x4ea30a(0x380)],'redoState':_0x43d1f8[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x418a47['m1Prime'],_0x2b5366=_0x43d1f8[_0x4ea30a(0x2cd)];}this[_0x4ea30a(0x261)][_0x4ea30a(0x190)](_0x3751d7,{'history':_0x4c39cc,'collaboration':_0x18c8ef});}};he=dn([De(0x0,_0x13fac2(_0x4da47b)),De(0x1,_0x3943ee),De(0x2,_0x13fac2(_0x48cc88))],he);var fn=Object[_0x3504c5(0x1c3)],Sn=(_0x129fd0,_0x5a41ef,_0x517b35,_0x50e062)=>{const _0x16d574=_0x3504c5;for(var _0x157593=_0x50e062>0x1?void 0x0:_0x50e062?fn(_0x5a41ef,_0x517b35):_0x5a41ef,_0x9b2b48=_0x129fd0[_0x16d574(0x329)]-0x1,_0x1b03c8;_0x9b2b48>=0x0;_0x9b2b48--)(_0x1b03c8=_0x129fd0[_0x9b2b48])&&(_0x157593=_0x1b03c8(_0x157593)||_0x157593);return _0x157593;},lt=(_0x3de24a,_0x56f4d5)=>(_0x10f480,_0xbf0be)=>_0x56f4d5(_0x10f480,_0xbf0be,_0x3de24a);let ue=class{constructor(_0x284425,_0x2f5768){const _0x201adb=_0x3504c5;this[_0x201adb(0x23b)]=_0x284425,this['_transformService']=_0x2f5768;}[_0x3504c5(0x31b)](_0x24ae4f){const _0x3c9bbb=_0x3504c5;var _0x5e834f;const _0x57e8a8=this[_0x3c9bbb(0x23b)][_0x3c9bbb(0x1c0)](_0x259657),_0x271aaf=(_0x5e834f=_0x57e8a8['getDocRanges']())!=null?_0x5e834f:[];if(_0x271aaf[_0x3c9bbb(0x329)]===0x0)return;const _0x4f95ad=_0x24ae4f[_0x3c9bbb(0x267)],_0x2f93d9=[{'id':_0x3c9bbb(0x221),'params':{'unitId':_0x4f95ad,'actions':null,'textRanges':_0x271aaf}}],_0x50c6ea=this[_0x3c9bbb(0x21d)][_0x3c9bbb(0x3b2)](_0x24ae4f,_0x2f93d9);if(!_0x5d4db3(_0x50c6ea))throw _0x50c6ea['error'];const _0xea427f=_0x50c6ea[_0x3c9bbb(0x23e)][0x0][_0x3c9bbb(0x380)][_0x3c9bbb(0x204)];Array[_0x3c9bbb(0x1d8)](_0xea427f)&&_0xea427f['length']&&_0x57e8a8[_0x3c9bbb(0x287)](_0xea427f,{'unitId':_0x4f95ad,'subUnitId':_0x4f95ad},!0x1);}};ue=Sn([lt(0x0,_0x13fac2(_0x4da47b)),lt(0x1,_0x3943ee)],ue);var mn=Object['getOwnPropertyDescriptor'],In=(_0x326cfe,_0x4c1f13,_0x2ff73b,_0x3aebb1)=>{for(var _0x18e448=_0x3aebb1>0x1?void 0x0:_0x3aebb1?mn(_0x4c1f13,_0x2ff73b):_0x4c1f13,_0x49b02d=_0x326cfe['length']-0x1,_0x4eb37f;_0x49b02d>=0x0;_0x49b02d--)(_0x4eb37f=_0x326cfe[_0x49b02d])&&(_0x18e448=_0x4eb37f(_0x18e448)||_0x18e448);return _0x18e448;},U=(_0x59bd2a,_0x4416e0)=>(_0x5434c2,_0x7229b0)=>_0x4416e0(_0x5434c2,_0x7229b0,_0x59bd2a);let de=class extends _0x44caae{constructor(_0x5dfcbe,_0x2f4ee9,_0x3a837d,_0x59aeb6,_0x29ae5a,_0x5ac894,_0x548c32,_0x1a1bf2){const _0x4fd34d=_0x3504c5;super(),_(this,_0x4fd34d(0x2e1),new _0x1bb082(_0x59f2be[_0x4fd34d(0x217)])),(this[_0x4fd34d(0x261)]=_0x5dfcbe,this[_0x4fd34d(0x29b)]=_0x2f4ee9,this[_0x4fd34d(0x1ff)]=_0x3a837d,this[_0x4fd34d(0x22b)]=_0x59aeb6,this['_docTransformSelectionsService']=_0x29ae5a,this['_docSyncEditingCollabCursorService']=_0x5ac894,this[_0x4fd34d(0x196)]=_0x548c32,this['_localeService']=_0x1a1bf2,this[_0x4fd34d(0x32f)]());}['_initEntityListener'](){const _0xddccfd=_0x3504c5;this[_0xddccfd(0x2fd)](this[_0xddccfd(0x29b)][_0xddccfd(0x250)][_0xddccfd(0x336)](_0x184e88=>{const _0x245679=_0xddccfd,_0x210e13=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0xaa0eca=>{const _0x300de6=_0x3f6f;if(_0xaa0eca==null)return;const {unitId:_0x238bf9,redoState:_0x135c90,commandId:_0x10a838}=_0xaa0eca;if(_0x238bf9!==_0x184e88[_0x300de6(0x267)])return;const _0x20ffcf={'id':_0x10a838,'type':_0x441e2b[_0x300de6(0x38e)],'params':{'unitId':_0x238bf9,'actions':_0x135c90[_0x300de6(0x22e)],'textRanges':null}};_0x184e88[_0x300de6(0x2c8)](_0x20ffcf);});if(_0x184e88['disposeWithMe'](_0x210e13),_0x184e88 instanceof _0x4404c6){const _0x24e621={'onTransformIME':_0x540947=>this[_0x245679(0x1ff)][_0x245679(0x1c2)](_0x540947),'onTransformState':_0x86943=>this[_0x245679(0x22b)][_0x245679(0x26d)](_0x86943),'onTransformSelections':_0x26e9fb=>this[_0x245679(0x3a3)][_0x245679(0x31b)](_0x26e9fb),'onSyncEditingCollabCursor':_0x58be55=>this['_docSyncEditingCollabCursorService'][_0x245679(0x29c)](_0x58be55),'onTransformRemoteChangesetByIMECache':_0xf4e023=>this['_docTransformIMECacheService'][_0x245679(0x35a)](_0xf4e023),'onTransformRemoteChangesetByStateCache':_0x15f20c=>this[_0x245679(0x22b)]['transformRemoteChangeset'](_0x15f20c)};_0x184e88[_0x245679(0x3c1)](_0x24e621);}}));}};de=In([U(0x0,_0x13fac2(_0x48cc88)),U(0x1,_0x13fac2(_0x4e7e15)),U(0x2,_0x13fac2(_e)),U(0x3,_0x13fac2(he)),U(0x4,_0x13fac2(ue)),U(0x5,_0x13fac2(Ke)),U(0x6,_0x1b730d),U(0x7,_0x13fac2(_0x21a3cc))],de);var Q=(_0x2be957=>(_0x2be957[_0x2be957[_0x3504c5(0x35f)]=0x0]=_0x3504c5(0x35f),_0x2be957[_0x2be957['OK']=0x1]='OK',_0x2be957[_0x2be957[_0x3504c5(0x3d4)]=0x2]=_0x3504c5(0x3d4),_0x2be957[_0x2be957[_0x3504c5(0x223)]=0x3]='PERMISSION_DENIED',_0x2be957[_0x2be957['NOT_FOUND']=0x4]=_0x3504c5(0x33f),_0x2be957[_0x2be957['UNAUTHENTICATED']=0x5]=_0x3504c5(0x2d4),_0x2be957[_0x2be957['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2be957[_0x2be957[_0x3504c5(0x1cd)]=0x7]=_0x3504c5(0x1cd),_0x2be957[_0x2be957[_0x3504c5(0x1eb)]=0x8]=_0x3504c5(0x1eb),_0x2be957[_0x2be957[_0x3504c5(0x251)]=0x9]='COMPLETION_FINISHED',_0x2be957[_0x2be957[_0x3504c5(0x36a)]=0xa]='LOGIN_FAILED',_0x2be957[_0x2be957[_0x3504c5(0x222)]=0xb]=_0x3504c5(0x222),_0x2be957[_0x2be957[_0x3504c5(0x374)]=0xc]=_0x3504c5(0x374),_0x2be957[_0x2be957[_0x3504c5(0x2d9)]=0xd]=_0x3504c5(0x2d9),_0x2be957[_0x2be957[_0x3504c5(0x1ba)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2be957[_0x2be957[_0x3504c5(0x318)]=0xf]=_0x3504c5(0x318),_0x2be957[_0x2be957[_0x3504c5(0x315)]=0x10]=_0x3504c5(0x315),_0x2be957[_0x2be957[_0x3504c5(0x349)]=0x64]=_0x3504c5(0x349),_0x2be957[_0x2be957[_0x3504c5(0x390)]=0x65]=_0x3504c5(0x390),_0x2be957[_0x2be957[_0x3504c5(0x399)]=0xc9]='USER_NOT_FOUND',_0x2be957[_0x2be957['USER_IS_ANONYMOUS']=0xca]=_0x3504c5(0x3d1),_0x2be957[_0x2be957['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x384)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2be957[_0x2be957['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3504c5(0x397),_0x2be957[_0x2be957[_0x3504c5(0x371)]=0x1773]=_0x3504c5(0x371),_0x2be957[_0x2be957['APPLY_REJECT']=0x1b59]=_0x3504c5(0x304),_0x2be957[_0x2be957[_0x3504c5(0x3b8)]=0x1b5a]=_0x3504c5(0x3b8),_0x2be957[_0x2be957['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x200)]=0x1b5c]=_0x3504c5(0x200),_0x2be957[_0x2be957[_0x3504c5(0x2c6)]=0x1b5d]=_0x3504c5(0x2c6),_0x2be957[_0x2be957['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2be957[_0x2be957[_0x3504c5(0x27c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x353)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x3b6)]=0x232b]=_0x3504c5(0x3b6),_0x2be957[_0x2be957[_0x3504c5(0x1d7)]=0x232c]=_0x3504c5(0x1d7),_0x2be957[_0x2be957[_0x3504c5(0x1b3)]=0x232d]=_0x3504c5(0x1b3),_0x2be957[_0x2be957[_0x3504c5(0x198)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2be957[_0x2be957[_0x3504c5(0x393)]=0x2712]=_0x3504c5(0x393),_0x2be957[_0x2be957['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3504c5(0x1b9),_0x2be957[_0x2be957[_0x3504c5(0x20f)]=0x2714]=_0x3504c5(0x20f),_0x2be957[_0x2be957[_0x3504c5(0x3b9)]=0x271a]=_0x3504c5(0x3b9),_0x2be957[_0x2be957[_0x3504c5(0x25a)]=0x271b]=_0x3504c5(0x25a),_0x2be957[_0x2be957[_0x3504c5(0x235)]=0x271c]=_0x3504c5(0x235),_0x2be957[_0x2be957['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3504c5(0x398),_0x2be957[_0x2be957[_0x3504c5(0x39b)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x211)]=0x271f]=_0x3504c5(0x211),_0x2be957[_0x2be957[_0x3504c5(0x19a)]=0x2720]=_0x3504c5(0x19a),_0x2be957[_0x2be957[_0x3504c5(0x1fb)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2be957[_0x2be957['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3504c5(0x23c),_0x2be957[_0x2be957['INVALID_INVITE_CODE']=0x2ee2]=_0x3504c5(0x29d),_0x2be957[_0x2be957[_0x3504c5(0x34d)]=0x2ee3]=_0x3504c5(0x34d),_0x2be957[_0x2be957[_0x3504c5(0x28c)]=0x2ee4]=_0x3504c5(0x28c),_0x2be957[_0x2be957[_0x3504c5(0x2b7)]=0x2ee5]=_0x3504c5(0x2b7),_0x2be957[_0x2be957[_0x3504c5(0x22d)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2be957[_0x2be957[_0x3504c5(0x382)]=0x32ca]=_0x3504c5(0x382),_0x2be957[_0x2be957[_0x3504c5(0x268)]=0x32cb]=_0x3504c5(0x268),_0x2be957[_0x2be957['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2be957[_0x2be957[_0x3504c5(0x1a4)]=0x36b2]=_0x3504c5(0x1a4),_0x2be957[_0x2be957[_0x3504c5(0x24b)]=0x36b3]=_0x3504c5(0x24b),_0x2be957[_0x2be957[_0x3504c5(0x1ee)]=0x36b4]=_0x3504c5(0x1ee),_0x2be957[_0x2be957[_0x3504c5(0x3bd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2be957[_0x2be957['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3504c5(0x233),_0x2be957[_0x2be957[_0x3504c5(0x23f)]=0x37dd]=_0x3504c5(0x23f),_0x2be957[_0x2be957[_0x3504c5(0x38b)]=0x3a99]=_0x3504c5(0x38b),_0x2be957[_0x2be957[_0x3504c5(0x378)]=0x3a9a]=_0x3504c5(0x378),_0x2be957[_0x2be957[_0x3504c5(0x2ed)]=0x3a9b]=_0x3504c5(0x2ed),_0x2be957[_0x2be957[_0x3504c5(0x2b5)]=0x3a9c]=_0x3504c5(0x2b5),_0x2be957[_0x2be957[_0x3504c5(0x295)]=0x3a9d]=_0x3504c5(0x295),_0x2be957[_0x2be957[_0x3504c5(0x392)]=0x3a9e]=_0x3504c5(0x392),_0x2be957[_0x2be957[_0x3504c5(0x256)]=0x3a9f]=_0x3504c5(0x256),_0x2be957[_0x2be957[_0x3504c5(0x259)]=-0x1]=_0x3504c5(0x259),_0x2be957))(Q||{});function gn(_0x3c1229){const _0x499118=_0x3504c5;var _0x41e163,_0x1acbb6;const _0x40bf97=(_0x41e163=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x41e163['stage'],_0x471a22=((_0x1acbb6=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x1acbb6[_0x499118(0x1a7)])||0x0;return _0x40bf97===_0x41b0a9['START_CALCULATION']&&_0x471a22>0x0;}function vn(_0x427c93){const _0x18626f=_0x3504c5;return _0x427c93[_0x18626f(0x264)]===_0x55b129[_0x18626f(0x2c9)];}var En=Object['getOwnPropertyDescriptor'],pn=(_0x58ea08,_0x2e9625,_0x3d9013,_0x5656f7)=>{const _0x32bc69=_0x3504c5;for(var _0x3ca8e5=_0x5656f7>0x1?void 0x0:_0x5656f7?En(_0x2e9625,_0x3d9013):_0x2e9625,_0x65804a=_0x58ea08[_0x32bc69(0x329)]-0x1,_0x4bb234;_0x65804a>=0x0;_0x65804a--)(_0x4bb234=_0x58ea08[_0x65804a])&&(_0x3ca8e5=_0x4bb234(_0x3ca8e5)||_0x3ca8e5);return _0x3ca8e5;},w=(_0x2ff639,_0xcd24c7)=>(_0xc1b86d,_0x12ee21)=>_0xcd24c7(_0xc1b86d,_0x12ee21,_0x2ff639);const On=_0x3504c5(0x381),Tn=_0x3504c5(0x2eb),Cn=_0x3504c5(0x389);let fe=class extends _0x44caae{constructor(_0x3ad6e1,_0x4896a4,_0x452cec,_0x389876,_0x38ff84,_0x3861b3,_0x2c08a7){const _0x115935=_0x3504c5;super(),_(this,_0x115935(0x31d),null),_(this,_0x115935(0x1df),0x0),_(this,_0x115935(0x20c),0x0),_(this,'_taskIds',[]),_(this,_0x115935(0x317),0x0),(this[_0x115935(0x196)]=_0x3ad6e1,this['_commandService']=_0x4896a4,this[_0x115935(0x305)]=_0x452cec,this[_0x115935(0x327)]=_0x389876,this[_0x115935(0x1a8)]=_0x38ff84,this['_logService']=_0x3861b3,this[_0x115935(0x30a)]=_0x2c08a7,this[_0x115935(0x269)]());}['_initCommandInterceptor'](){const _0xf61f69=_0x3504c5;this[_0xf61f69(0x2fd)](this[_0xf61f69(0x213)][_0xf61f69(0x321)]((_0x50d192,_0x21288c)=>{const _0x27fc42=_0xf61f69;if(_0x50d192['id']!==_0x4b0c98['id'])return;const _0x43b218=_0x50d192[_0x27fc42(0x380)];if(!this[_0x27fc42(0x2e3)](_0x43b218[_0x27fc42(0x1e3)]))return;if(!this[_0x27fc42(0x356)]())throw this[_0x27fc42(0x1fe)](_0x50d192,_0x21288c),this['_showGuardMessage'](),new _0x4a6f3c();})),this['disposeWithMe'](this[_0xf61f69(0x213)][_0xf61f69(0x383)]((_0x5d6f9d,_0x5ee08c)=>{const _0x1121aa=_0xf61f69;if(_0x5d6f9d['id']!==_0x1d37ca['id'])return;const _0x97f3a1=_0x5d6f9d[_0x1121aa(0x380)];if(gn(_0x97f3a1)){const _0xf004fc=_0x144598();this[_0x1121aa(0x19c)][_0x1121aa(0x2a3)](_0xf004fc),this[_0x1121aa(0x31f)](_0xf004fc);}else{if(vn(_0x97f3a1)&&this[_0x1121aa(0x19c)]['length']>0x0){const _0xead3bf=this['_taskIds'][_0x1121aa(0x208)]();this[_0x1121aa(0x1de)](_0xead3bf);}}}));}['dispose'](){const _0x5bd9a9=_0x3504c5;super['dispose'](),this[_0x5bd9a9(0x36d)](),this[_0x5bd9a9(0x19c)]=[],this[_0x5bd9a9(0x20c)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3504c5(0x1fe)](_0x24aa98,_0x19262f){const _0x3f279e=_0x3504c5;for(let _0x235068=0x0;_0x235068<0x1e;_0x235068++)try{if(await this[_0x3f279e(0x1a5)](),this[_0x3f279e(0x356)]()){this['_applyCommand'](_0x24aa98,_0x19262f),this[_0x3f279e(0x196)][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x37a)),'type':_0x520d9c[_0x3f279e(0x1d9)]});return;}await new Promise(_0x5df684=>{const _0x35f034=_0x3f279e;this[_0x35f034(0x31d)]=window[_0x35f034(0x197)](_0x5df684,0x3e8);});}catch(_0x101ade){this[_0x3f279e(0x36b)][_0x3f279e(0x1b1)](_0x101ade);}this['_messageService'][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x1da)),'type':_0x520d9c[_0x3f279e(0x230)]});}[_0x3504c5(0x3af)](_0xcb10bf,_0x11e3d3){const _0x5a5676=_0x3504c5;try{this['_commandService']['executeCommand'](_0xcb10bf['id'],_0xcb10bf[_0x5a5676(0x380)],_0x11e3d3);}catch(_0x52543e){this[_0x5a5676(0x36b)][_0x5a5676(0x1b1)](_0x52543e);}}['_setFormulaLimitStatus'](_0x2dce3b,_0x4e0991){const _0x3ea387=_0x3504c5;_0x4e0991<this[_0x3ea387(0x317)]||(this['_lastResponseTimestamp']=_0x4e0991,this['_maxFormulaLimit']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x199)]),this['_currentUsage']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x34a)]));}async[_0x3504c5(0x31f)](_0x585d96){const _0x46c403=_0x3504c5;var _0x3cd28b,_0x19921f;const _0x2918c5=Date[_0x46c403(0x3db)]();try{const _0x2eeea8=((_0x3cd28b=this[_0x46c403(0x305)][_0x46c403(0x27f)](_0x3c0423))==null?void 0x0:_0x3cd28b[_0x46c403(0x1f2)])||Tn,_0x1123f4=(await this['_httpService'][_0x46c403(0x3dd)](_0x2eeea8,{'body':JSON[_0x46c403(0x2d6)]({'taskId':_0x585d96})}))[_0x46c403(0x25c)];if(((_0x19921f=_0x1123f4[_0x46c403(0x1b1)])==null?void 0x0:_0x19921f[_0x46c403(0x2c7)])!==Q['OK'])return;this[_0x46c403(0x281)](_0x1123f4[_0x46c403(0x28b)],_0x2918c5);}catch(_0x5a4372){this[_0x46c403(0x36b)][_0x46c403(0x1b1)](_0x5a4372);}}async['_getFormulaLimitStatus'](_0x5413b4){const _0xe90194=_0x3504c5;var _0x1a3db2,_0x212e44;const _0x4f1a33=Date[_0xe90194(0x3db)]();try{const _0xc19b49=((_0x1a3db2=this[_0xe90194(0x305)]['getConfig'](_0x3c0423))==null?void 0x0:_0x1a3db2[_0xe90194(0x2b6)])||On,_0x29e14c=_0x5413b4?_0xc19b49+_0xe90194(0x215)+encodeURIComponent(_0x5413b4):_0xc19b49,_0x164e1e=(await this[_0xe90194(0x327)]['get'](_0x29e14c))[_0xe90194(0x25c)];if(((_0x212e44=_0x164e1e[_0xe90194(0x1b1)])==null?void 0x0:_0x212e44[_0xe90194(0x2c7)])!==Q['OK'])return;this[_0xe90194(0x281)](_0x164e1e[_0xe90194(0x28b)],_0x4f1a33);}catch(_0x50b5ed){this[_0xe90194(0x36b)][_0xe90194(0x1b1)](_0x50b5ed);}}async[_0x3504c5(0x1de)](_0x3c7950){const _0x424376=_0x3504c5;var _0x3aae9b,_0x46e57a;const _0x467975=Date[_0x424376(0x3db)]();try{const _0x3211a1=((_0x3aae9b=this[_0x424376(0x305)][_0x424376(0x27f)](_0x3c0423))==null?void 0x0:_0x3aae9b['releaseFormulaLimitUrl'])||Cn,_0x16d226=(await this[_0x424376(0x327)][_0x424376(0x3dd)](_0x3211a1,{'body':JSON['stringify']({'taskId':_0x3c7950})}))[_0x424376(0x25c)];if(((_0x46e57a=_0x16d226[_0x424376(0x1b1)])==null?void 0x0:_0x46e57a[_0x424376(0x2c7)])!==Q['OK'])return;this[_0x424376(0x281)](_0x16d226[_0x424376(0x28b)],_0x467975);}catch(_0x2a5a3c){this[_0x424376(0x36b)][_0x424376(0x1b1)](_0x2a5a3c);}}['_checkCalculationAvailable'](){const _0x423029=_0x3504c5;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x423029(0x20c)]>0x0;}[_0x3504c5(0x36d)](){const _0x4f5316=_0x3504c5;this[_0x4f5316(0x31d)]&&(clearTimeout(this['_pollingInterval']),this[_0x4f5316(0x31d)]=null);}[_0x3504c5(0x26e)](){const _0x49ca5c=_0x3504c5;this[_0x49ca5c(0x196)][_0x49ca5c(0x332)]({'content':this[_0x49ca5c(0x30a)]['t'](_0x49ca5c(0x31c)),'type':_0x520d9c[_0x49ca5c(0x3b0)]});}[_0x3504c5(0x2e3)](_0x4cff99){const _0x432ff3=_0x3504c5;for(const _0x320506 of _0x4cff99){const {unitId:_0x146f0e,sheetId:_0x3992ab,range:_0x551a6e}=_0x320506,_0x44dd77=this[_0x432ff3(0x1a8)][_0x432ff3(0x3aa)](_0x146f0e);if(!_0x44dd77)continue;const _0x5e973b=_0x44dd77[_0x432ff3(0x1fd)](_0x3992ab);if(!_0x5e973b)continue;const _0x54b341=_0x5e973b['getCellMatrix']();for(let _0x3f6b2d=_0x551a6e['startRow'];_0x3f6b2d<=_0x551a6e[_0x432ff3(0x36c)];_0x3f6b2d++)for(let _0x69779d=_0x551a6e[_0x432ff3(0x1c7)];_0x69779d<=_0x551a6e[_0x432ff3(0x3da)];_0x69779d++){const _0x5ddfef=_0x54b341[_0x432ff3(0x320)](_0x3f6b2d,_0x69779d);if(_0x5ddfef&&(_0x1fa515(_0x5ddfef['f'])||_0x315c33(_0x5ddfef['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x13fac2(_0x1b730d)),w(0x1,_0x378028),w(0x2,_0x10aea5),w(0x3,_0x13fac2(_0x59d0d5)),w(0x4,_0x437d75),w(0x5,_0x3b520f),w(0x6,_0x13fac2(_0x21a3cc))],fe);var Rn=Object[_0x3504c5(0x1c3)],Dn=(_0x54ed40,_0x48668e,_0x65e0b9,_0x2f286a)=>{for(var _0x194014=_0x2f286a>0x1?void 0x0:_0x2f286a?Rn(_0x48668e,_0x65e0b9):_0x48668e,_0xc37238=_0x54ed40['length']-0x1,_0xc92041;_0xc37238>=0x0;_0xc37238--)(_0xc92041=_0x54ed40[_0xc37238])&&(_0x194014=_0xc92041(_0x194014)||_0x194014);return _0x194014;},be=(_0x138f11,_0x22287e)=>(_0x29d246,_0x3e1741)=>_0x22287e(_0x29d246,_0x3e1741,_0x138f11);let Be=class extends _0x44caae{constructor(_0x9086c3,_0x22c6b5,_0x27a2be){const _0x1fcff5=_0x3504c5;super(),_(this,_0x1fcff5(0x2fb),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1fcff5(0x191),!0x1),(this[_0x1fcff5(0x305)]=_0x9086c3,this[_0x1fcff5(0x19f)]=_0x22c6b5,this[_0x1fcff5(0x2e7)]=_0x27a2be);}[_0x3504c5(0x2a0)](){const _0x27e6e5=_0x3504c5;this[_0x27e6e5(0x191)]=!0x0;}[_0x3504c5(0x2d2)](){this['_disabled']=!0x1;}get[_0x3504c5(0x36f)](){const _0x1fda18=_0x3504c5;return this[_0x1fda18(0x210)];}['dispose'](){const _0x1e36d3=_0x3504c5;this[_0x1e36d3(0x1b0)]()[_0x1e36d3(0x209)](()=>super[_0x1e36d3(0x24a)]());}async[_0x3504c5(0x308)](_0x306f7d){const _0x5467f4=_0x3504c5;return this[_0x5467f4(0x191)]?null:this[_0x5467f4(0x19f)][_0x5467f4(0x2f7)](_0xb4d1e1(_0x306f7d));}async[_0x3504c5(0x1d3)](_0x2b4f87,_0x2c71f6){return!!this['_localStorageService']['setItem'](_0x2b4f87,_0x2c71f6);}[_0x3504c5(0x2e6)](_0x40d8fd,_0x11b564,_0x109817,_0x2e82dd){const _0x54dc64=_0x3504c5,_0x1c8e3c=this[_0x54dc64(0x2e7)][_0x54dc64(0x2e0)](_0x40d8fd);this[_0x54dc64(0x2fb)][_0x54dc64(0x32b)](_0x40d8fd,{'unitID':_0x40d8fd,'type':_0x11b564,'awaitingChangeset':_0x109817,'mutations':_0x2e82dd,'rev':_0x1c8e3c}),this[_0x54dc64(0x210)][_0x54dc64(0x2db)](_0x40d8fd)||this[_0x54dc64(0x1c1)](_0x40d8fd);}[_0x3504c5(0x1c1)](_0x4a383f){const _0x150144=_0x3504c5,_0x3212a5=this['_getSaveTimeout']();_0x3212a5===0x0?this[_0x150144(0x360)](_0x4a383f):this[_0x150144(0x210)][_0x150144(0x32b)](_0x4a383f,setTimeout(()=>this[_0x150144(0x360)](_0x4a383f),_0x3212a5));}[_0x3504c5(0x2d0)](){const _0x378e39=_0x3504c5;var _0x478ca9;return(_0x478ca9=this['_configService'][_0x378e39(0x27f)](_0x43f6ef))!=null?_0x478ca9:_0x46d03f;}[_0x3504c5(0x360)](_0x1c90d4){const _0x3825fd=_0x3504c5,_0x50f445=this[_0x3825fd(0x210)][_0x3825fd(0x1c0)](_0x1c90d4);return _0x50f445!==void 0x0&&window[_0x3825fd(0x2ee)](_0x50f445),this[_0x3825fd(0x19f)][_0x3825fd(0x224)](_0xb4d1e1(_0x1c90d4),this[_0x3825fd(0x2fb)][_0x3825fd(0x1c0)](_0x1c90d4))[_0x3825fd(0x209)](()=>this[_0x3825fd(0x210)]['delete'](_0x1c90d4));}async[_0x3504c5(0x1b0)](){const _0x4d5e1b=_0x3504c5,_0x421af0=[];this['_saveTaskMap'][_0x4d5e1b(0x3c9)]((_0x277ae8,_0x3ca534)=>{const _0x468037=_0x4d5e1b;window['clearTimeout'](_0x277ae8),_0x421af0[_0x468037(0x2a3)](this['_saveCache'](_0x3ca534)[_0x468037(0x209)](()=>{const _0x3519c1=_0x468037;this['_saveTaskMap'][_0x3519c1(0x312)](_0x3ca534);}));}),await Promise[_0x4d5e1b(0x1d4)](_0x421af0);}};Be=Dn([be(0x0,_0x10aea5),be(0x1,_0x3a9490),be(0x2,_0x13fac2(_0x1fe514))],Be);class bn extends _0x4dd7f6{constructor(){const _0x59c5db=_0x3504c5;super(),_(this,_0x59c5db(0x220)),this[_0x59c5db(0x220)]=_0x18c819(window,_0x59c5db(0x1f6))['pipe'](_0xb04df5(this[_0x59c5db(0x21c)]),_0x72b1f0(0x1),_0x153ed4(void 0x0));}[_0x3504c5(0x3c7)](_0x289bcc,_0x499a6a,_0x3fd813=!0x1){const _0x5ad29f=_0x3504c5,_0x29e2f9=new URL(window[_0x5ad29f(0x1f7)]['href']);_0x29e2f9[_0x5ad29f(0x1c8)][_0x5ad29f(0x32b)](_0x289bcc,_0x499a6a),_0x3fd813?window[_0x5ad29f(0x3b1)][_0x5ad29f(0x344)]('','',_0x29e2f9[_0x5ad29f(0x363)]()):window[_0x5ad29f(0x3b1)]['pushState']('','',_0x29e2f9[_0x5ad29f(0x363)]());}[_0x3504c5(0x24e)](_0xbcaa91,_0x31d922=!0x1){const _0x3014d8=_0x3504c5,_0x1136de=new URL(window[_0x3014d8(0x1f7)]['href']);_0x1136de[_0x3014d8(0x1c8)]['delete'](_0xbcaa91),_0x31d922?window[_0x3014d8(0x3b1)][_0x3014d8(0x344)]('','',_0x1136de[_0x3014d8(0x363)]()):window[_0x3014d8(0x3b1)]['pushState']('','',_0x1136de[_0x3014d8(0x363)]());}[_0x3504c5(0x391)](_0x2a25e4){const _0x4f6433=_0x3504c5;var _0x382191;return(_0x382191=new URL(window['location']['href'])['searchParams'][_0x4f6433(0x1c0)](_0x2a25e4))!=null?_0x382191:void 0x0;}}var Nn=Object[_0x3504c5(0x359)],Un=Object[_0x3504c5(0x1c3)],Ln=(_0x41b103,_0x3f0ab3,_0x4ef834)=>_0x3f0ab3 in _0x41b103?Nn(_0x41b103,_0x3f0ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef834}):_0x41b103[_0x3f0ab3]=_0x4ef834,Mn=(_0x2fff1b,_0x52b56c,_0xf20daf,_0x22e619)=>{const _0x51b11f=_0x3504c5;for(var _0x5ed359=_0x22e619>0x1?void 0x0:_0x22e619?Un(_0x52b56c,_0xf20daf):_0x52b56c,_0x4472ed=_0x2fff1b[_0x51b11f(0x329)]-0x1,_0x4594d8;_0x4472ed>=0x0;_0x4472ed--)(_0x4594d8=_0x2fff1b[_0x4472ed])&&(_0x5ed359=_0x4594d8(_0x5ed359)||_0x5ed359);return _0x5ed359;},Ne=(_0x1a1dd1,_0xc1fc7d)=>(_0x43721b,_0x223501)=>_0xc1fc7d(_0x43721b,_0x223501,_0x1a1dd1),An=(_0x2a2f54,_0x4c4dec,_0x3d7d11)=>Ln(_0x2a2f54,_0x4c4dec+'',_0x3d7d11);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0xfc0127{constructor(_0x31bb24=at,_0x57f5e5,_0x306d48,_0x406cb3){const _0x2f3dc4=_0x3504c5;super(),this[_0x2f3dc4(0x385)]=_0x31bb24,this[_0x2f3dc4(0x1b8)]=_0x57f5e5,this[_0x2f3dc4(0x23b)]=_0x306d48,this[_0x2f3dc4(0x305)]=_0x406cb3;const {..._0x1e8cc0}=_0x27de3f({},at,this[_0x2f3dc4(0x385)]);this[_0x2f3dc4(0x305)]['setConfig'](ln,_0x1e8cc0);}[_0x3504c5(0x343)](){const _0x398cce=_0x3504c5;this[_0x398cce(0x26c)](),this[_0x398cce(0x2e2)]();}[_0x3504c5(0x334)](){const _0x5127ba=_0x3504c5;this[_0x5127ba(0x3cd)]();}[_0x3504c5(0x26c)](){const _0x1bdb87=_0x3504c5;var _0x2f5052;const _0x42a51f=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x5af1a8,{'useClass':_0x476d5f}],[_0x55c362,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x22a61d(this[_0x1bdb87(0x23b)],_0x29e569(_0x42a51f,(_0x2f5052=this[_0x1bdb87(0x385)])==null?void 0x0:_0x2f5052['override']));}[_0x3504c5(0x3cd)](){const _0x57d811=_0x3504c5;this['disposeWithMe'](this[_0x57d811(0x1b8)]['registerRenderModule'](_0x3d4d2c['UNIVER_DOC'],[$e])),this[_0x57d811(0x2fd)](this[_0x57d811(0x1b8)][_0x57d811(0x2ae)](_0x3d4d2c[_0x57d811(0x3dc)],[xe]));}[_0x3504c5(0x2e2)](){const _0x3f00ed=_0x3504c5;_0x1e8471(this[_0x3f00ed(0x23b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x3504c5(0x2d5),Pn),Fe=Mn([_0xc853a6(_0x22881b),Ne(0x1,_0x5dc693),Ne(0x2,_0x13fac2(_0x4da47b)),Ne(0x3,_0x10aea5)],Fe);var wn=Object[_0x3504c5(0x1c3)],yn=(_0x4bbbab,_0x4dca54,_0x2db037,_0xdd8df6)=>{const _0x3a4540=_0x3504c5;for(var _0x5a7404=_0xdd8df6>0x1?void 0x0:_0xdd8df6?wn(_0x4dca54,_0x2db037):_0x4dca54,_0x48e5ad=_0x4bbbab[_0x3a4540(0x329)]-0x1,_0x19f987;_0x48e5ad>=0x0;_0x48e5ad--)(_0x19f987=_0x4bbbab[_0x48e5ad])&&(_0x5a7404=_0x19f987(_0x5a7404)||_0x5a7404);return _0x5a7404;},Z=(_0x1d9233,_0x284648)=>(_0x7b0ff6,_0x16dac3)=>_0x284648(_0x7b0ff6,_0x16dac3,_0x1d9233);let _t=class extends _0x3d93bc{constructor(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5){super(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5);}async[_0x3504c5(0x2cf)](_0x40b5cb){const _0x956a45=_0x3504c5,_0x2c9ec0=await this['_getSessionTicket'](),_0x1fac83=this[_0x956a45(0x30d)](_0x40b5cb,_0x2c9ec0);return this[_0x956a45(0x22c)](_0x1fac83);}['_createSocketURL'](_0x4f9142,_0x12e88e){const _0x4af201=_0x3504c5,_0x3f8a0e=typeof window>'u'?new URL(_0x4f9142):new URL(_0x4f9142,window[_0x4af201(0x1f7)][_0x4af201(0x262)]);_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x1a1),_0x12e88e);const _0x5ef722=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4af201(0x1f7)]['search']);return _0x5ef722[_0x4af201(0x1c0)](_0x4af201(0x27a))&&_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x27a),_0x5ef722[_0x4af201(0x1c0)]('runId')),_0x3f8a0e[_0x4af201(0x363)]();}async[_0x3504c5(0x3c5)](){const _0x14b01b=_0x3504c5;var _0x57fbcf,_0x4c576d,_0x510e89;const _0x24a88f=this[_0x14b01b(0x305)]['getConfig'](_0x3c0423),_0x1267c8=(_0x57fbcf=_0x24a88f==null?void 0x0:_0x24a88f[_0x14b01b(0x237)])!=null?_0x57fbcf:_0x31c350;return(_0x510e89=(_0x4c576d=(await this[_0x14b01b(0x327)][_0x14b01b(0x1c0)](_0x1267c8,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x4c576d[_0x14b01b(0x1f8)])!=null?_0x510e89:'';}};function _0x3f6f(_0x59a2bd,_0x125518){const _0x13f0a3=_0x13f0();return _0x3f6f=function(_0x3f6fd2,_0x548f95){_0x3f6fd2=_0x3f6fd2-0x190;let _0x9d785=_0x13f0a3[_0x3f6fd2];return _0x9d785;},_0x3f6f(_0x59a2bd,_0x125518);}_t=yn([Z(0x0,_0x13fac2(_0x4da47b)),Z(0x1,_0x13fac2(_0x59d0d5)),Z(0x2,_0x10aea5),Z(0x3,_0x3b520f),Z(0x4,_0xe8f155)],_t);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x48f97f,_0x2192f9,_0x532e8f,_0x49f607)=>{const _0x6b53e9=_0x3504c5;for(var _0x5f0c92=_0x49f607>0x1?void 0x0:_0x49f607?$n(_0x2192f9,_0x532e8f):_0x2192f9,_0x28c250=_0x48f97f[_0x6b53e9(0x329)]-0x1,_0x55d2d6;_0x28c250>=0x0;_0x28c250--)(_0x55d2d6=_0x48f97f[_0x28c250])&&(_0x5f0c92=_0x55d2d6(_0x5f0c92)||_0x5f0c92);return _0x5f0c92;},Ue=(_0x464883,_0x1e43a5)=>(_0x1912cf,_0x169223)=>_0x1e43a5(_0x1912cf,_0x169223,_0x464883);let ht=class extends _0x44caae{constructor(_0x31c50a,_0x264346,_0x23b21b){const _0x144bda=_0x3504c5;super(),this[_0x144bda(0x1ec)]=_0x31c50a,this[_0x144bda(0x327)]=_0x264346,this[_0x144bda(0x305)]=_0x23b21b;}async[_0x3504c5(0x1f1)](_0x95222b,_0x2b8224,_0x2c4d1d,..._0x4db176){const _0x46e7dd=_0x3504c5;var _0x525316,_0x22144e,_0x8df527,_0x4a7534;const _0x86d7a4=this[_0x46e7dd(0x1ec)][_0x46e7dd(0x1c4)]();if(!_0x86d7a4)throw new Error(_0x46e7dd(0x28d));const _0x26a59c=((_0x525316=this[_0x46e7dd(0x305)][_0x46e7dd(0x27f)](_0x45cf52))!=null?_0x525316:_0x1e545f)+'/'+_0x95222b+'/run/'+_0x2b8224,_0x108294=new URL(window[_0x46e7dd(0x1f7)][_0x46e7dd(0x19d)]),_0x567f68={'scriptId':_0x95222b,'runId':(_0x22144e=_0x108294['searchParams']['get'](_0x46e7dd(0x27a)))!=null?_0x22144e:'','function':_0x2b8224,'unitId':_0x86d7a4['getUnitId'](),'argsOfFunction':JSON[_0x46e7dd(0x2d6)](_0x4db176),'invokeId':(_0x8df527=_0x2c4d1d['invokeId'])!=null?_0x8df527:'','executionId':(_0x4a7534=_0x2c4d1d[_0x46e7dd(0x2fc)])!=null?_0x4a7534:''};try{const _0x35d02c=await this[_0x46e7dd(0x327)][_0x46e7dd(0x3dd)](_0x26a59c,{'body':_0x567f68});return _0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)]&&_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)][_0x46e7dd(0x2c7)]!==Q['OK']?_0x46e7dd(0x292):_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x21a)];}catch{return'Failed';}}};ht=xn([Ue(0x0,_0x437d75),Ue(0x1,_0x13fac2(_0x59d0d5)),Ue(0x2,_0x10aea5)],ht);const ut=0x7530,dt=_0x3504c5(0x242);class ir extends _0x44caae{constructor(){const _0x164ead=_0x3504c5;super(),_(this,_0x164ead(0x2b3),_0x144598()),_(this,_0x164ead(0x337),new Set()),_(this,_0x164ead(0x1b7),new Map()),_(this,_0x164ead(0x2be),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x164ead(0x19b)]();}['dispose'](){const _0x20ff4=_0x3504c5;super['dispose'](),this[_0x20ff4(0x351)][_0x20ff4(0x3c9)]((_0x3094a4,_0x4f0928)=>this[_0x20ff4(0x293)](_0x4f0928)),this[_0x20ff4(0x2be)]&&window[_0x20ff4(0x2f5)](this[_0x20ff4(0x2be)]);}[_0x3504c5(0x2c3)](_0x3c4cd4){const _0x4df1ba=_0x3504c5;return this['_ensureSubject'](_0x3c4cd4)[_0x4df1ba(0x37f)](_0x5a2f65());}[_0x3504c5(0x3c3)](_0x296d0c){const _0x2ca5ae=_0x3504c5;this[_0x2ca5ae(0x337)][_0x2ca5ae(0x1fc)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2ca5ae(0x314)](_0x296d0c),this[_0x2ca5ae(0x2a1)]({'type':0x0,'memberID':this[_0x2ca5ae(0x2b3)],'unitIDs':[_0x296d0c],'isForwarded':!0x1});}[_0x3504c5(0x247)](_0x4a3907){const _0x284116=_0x3504c5;this[_0x284116(0x337)][_0x284116(0x312)](_0x4a3907),this[_0x284116(0x337)][_0x284116(0x1fc)]===0x0&&this[_0x284116(0x2be)]&&window[_0x284116(0x2f5)](this[_0x284116(0x2be)]);}[_0x3504c5(0x19b)](){const _0x2c2106=_0x3504c5;this[_0x2c2106(0x2fd)](_0x2576da(_0x18c819(window,_0x2c2106(0x2ef))[_0x2c2106(0x336)](_0x34bd85=>{if(_0x34bd85['key']!==dt||!_0x34bd85['newValue'])return;const _0x333c1a=JSON['parse'](_0x34bd85['newValue']);this['_handleEvent'](_0x333c1a);}))),window[_0x2c2106(0x2a5)]('unload',()=>this[_0x2c2106(0x2a1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2c2106(0x277)](this['_selfUnitIDs'])}));}[_0x3504c5(0x255)](_0x22f258){const _0x55defd=_0x3504c5;switch(_0x22f258['type']){case 0x0:this[_0x55defd(0x2da)](_0x22f258);break;case 0x1:this[_0x55defd(0x280)](_0x22f258);break;case 0x2:this[_0x55defd(0x373)](_0x22f258);break;}}[_0x3504c5(0x2da)](_0x5bdf71){const _0x4e4408=_0x3504c5,{unitIDs:_0x1a2583,memberID:_0x5f4686,isForwarded:_0x54ad4c}=_0x5bdf71;_0x1a2583[_0x4e4408(0x3c9)](_0x1903a4=>{const _0x1ff430=_0x4e4408;if(!_0x54ad4c&&this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)&&this[_0x1ff430(0x2bb)](_0x1903a4)[_0x1ff430(0x25d)](_0x38048c[_0x1ff430(0x324)]),!this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)||!this[_0x1ff430(0x1b7)][_0x1ff430(0x1c0)](_0x1903a4)[_0x1ff430(0x2db)](_0x5f4686)){const _0x2499e5=this['_unitOnClients'][_0x1ff430(0x1c0)](_0x1903a4)||new Set();_0x2499e5[_0x1ff430(0x314)](_0x5f4686),this['_unitOnClients'][_0x1ff430(0x32b)](_0x1903a4,_0x2499e5),this[_0x1ff430(0x3d6)](_0x5f4686);}}),_0x54ad4c||this[_0x4e4408(0x2a1)]({'type':0x0,'memberID':this[_0x4e4408(0x2b3)],'unitIDs':[...this[_0x4e4408(0x337)]],'isForwarded':!0x0});}[_0x3504c5(0x3d6)](_0x341125){const _0x3e1473=_0x3504c5;this['_removeClearOtherTimer'](_0x341125);const _0x4b8c11=window[_0x3e1473(0x197)](()=>{const _0x30ab05=_0x3e1473;this[_0x30ab05(0x1b7)][_0x30ab05(0x3c9)](_0x3194e4=>{_0x3194e4['delete'](_0x341125);});},ut*0x2);this[_0x3e1473(0x351)][_0x3e1473(0x32b)](_0x341125,_0x4b8c11);}[_0x3504c5(0x293)](_0x5c7a87){const _0x44eb7d=_0x3504c5;if(this['_clearOtherTimers'][_0x44eb7d(0x2db)](_0x5c7a87)){const _0xc2e681=this[_0x44eb7d(0x351)]['get'](_0x5c7a87);_0xc2e681&&window[_0x44eb7d(0x2ee)](_0xc2e681),this[_0x44eb7d(0x351)]['set'](_0x5c7a87,null);}}[_0x3504c5(0x280)](_0x2179f1){const _0x507a9d=_0x3504c5,{memberID:_0x12df86,unitIDs:_0x35a063}=_0x2179f1;_0x35a063[_0x507a9d(0x3c9)](_0x2219bc=>{const _0x1e518c=_0x507a9d;var _0xd9bed9;const _0x2c8efb=this['_unitOnClients']['get'](_0x2219bc);_0x2c8efb&&(_0x2c8efb[_0x1e518c(0x312)](_0x12df86),(_0xd9bed9=this[_0x1e518c(0x2bb)](_0x2219bc))==null||_0xd9bed9[_0x1e518c(0x25d)](_0x2c8efb[_0x1e518c(0x1fc)]===0x0?_0x38048c['NO_OTHER_CLIENTS_EDITING']:_0x38048c[_0x1e518c(0x324)]));}),this[_0x507a9d(0x293)](_0x12df86);}[_0x3504c5(0x373)](_0x292e32){const _0x180217=_0x3504c5;this[_0x180217(0x3d6)](_0x292e32[_0x180217(0x20d)]);}['_send'](_0x2a8cdf){const _0x5d46c8=_0x3504c5;localStorage[_0x5d46c8(0x224)](dt,JSON[_0x5d46c8(0x2d6)](_0x2a8cdf));}['_scheduleHeartbeat'](){const _0x2b574c=_0x3504c5;this[_0x2b574c(0x2be)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ut);}[_0x3504c5(0x2bb)](_0x2bcab1){const _0xd4d4a9=_0x3504c5;return this[_0xd4d4a9(0x207)][_0xd4d4a9(0x2db)](_0x2bcab1)||this['_unitStatus'][_0xd4d4a9(0x32b)](_0x2bcab1,new _0x1bb082(_0x38048c[_0xd4d4a9(0x278)])),this['_unitStatus'][_0xd4d4a9(0x1c0)](_0x2bcab1);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};function _0x13f0(){const _0x15c478=['concat','_updateCollabCursors','selections','_collaborationController','syncEditingCollabCursor','INVALID_INVITE_CODE','round','getViewport','disableLocalCache','_send','subunit','push','unit','addEventListener','assignAColorForMemberID','getActiveSheet','184pTEZph','roomMembers$','loadUnit','beginPath','green.600','max','registerRenderModule','createInstance','_sheetSkeletonManagerService','_imageIoService','_drawTextRange','_id','moveTo','REDEMPTION_CODE_NOT_STARTED','getformulaLimitStatusUrl','INVITE_CODE_ALREADY_BOUND','SYNCED','drawWith','hide','_ensureSubject','_initResize','CONFLICT','_heartbeatTimer','_toggleOnline','path','focused$','_drawAnchor','getUnitStatus$','getCellPositionByOffset','DeleteRangeMoveUpCommandId','APPLY_DUPLICATED','code','onLocalMutation','SUCCESS','collabStatus.fetchMiss','registerBeforeClose','white','m1Prime','range','createSocket','_getSaveTimeout','_syncEditingCollabCursorService','enableLocalCache','mutations','UNAUTHENTICATED','pluginName','stringify','SOCKET_FAILED_RETRY','getSkeleton','EMAIL_VERIFY_CODE_MISMATCH','_handleJoinEvent','has','_themeService','propertyIsEnumerable','_draw','rgba(255,\x20255,\x20255,\x200.01)','getCurrentRevOfUnit','_status$','_initDependencies','_hasFormulaInDirtyRanges','InsertRangeMoveDownCommandId','getUniverSheetInstance','updateOfflineData','_revisionService','_getMergeRange','parseInt','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','/universer-api/license/formula/limit/start','addObject','REDEMPTION_CODE_FULLY_REDEEMED','clearTimeout','storage','onMouseMove','on-line-icon_clip0_910_349','svg','debug','_localCacheService','clearInterval','source','getItem','AWAITING_WITH_PENDING','symbol','flatMap','_cachedData','executionId','disposeWithMe','jiqing.500','init','_notificationService','UPDATE_CURSOR','_shapes','skeleton','APPLY_REJECT','_configService','_range','_setupBeforeClosingHandler','loadOfflineData','off-line-icon_clip0_910_343','_localeService','_document','unshift','_createSocketURL','_collabCursorState$','redoState','function','OffLineIcon','delete','_transformUndoRedoStack','add','LOGIN_TOKEN_PROCESSING_FAILED','_updateURLWithCurrentState','_lastResponseTimestamp','AUTHORIZE_CODE_ILLEGAL','string','className','transformSelections','formula.calculation.waiting','_pollingInterval','getAncestorScale','_startCalculationLimit','getValue','beforeCommandExecuted','off-line-icon','8lNWTaR','OTHER_CLIENTS_EDITING','_color','measureText','_httpService','InsertRowCommandId','length','hasOwnProperty','set','undoState','TEXT','resize','_initEntityListener','_anchor','toRgbString','show','_lastPointer','onRendered','width','subscribe','_selfUnitIDs','_startSheetCollabCursor','hovered','_getScale','_backgroundColor','prototype','VIEW_MAIN','onPointerLeave$','NOT_FOUND','_updateSubUnitFromURLParams','transformMutation','permission.content','onStarting','replaceState','getMemberID','_context','text','_hovered','CURRENT_STATUS_CANNOT_OPERATE','currentUsage','0\x200\x2017\x2016','_scene','INVITE_CODE_REQUIRED','UNIVER_DOC','AWAITING','lineTo','_clearOtherTimers','Warning','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','_docSkeletonManagerService','_checkCalculationAvailable','onTransformChange$','purple.300','defineProperty','transformRemoteChangeset','_toggleOffline','getTypeOfUnitAdded$','children','_entityInit$','UNDEFINED','_saveCache','getRangePointData','getOwnPropertySymbols','toString','OnLineIcon','closePath','min','univerjs-icon\x20univerjs-icon-','RECT','_onCursorDelete','LOGIN_FAILED','_logService','endRow','_clearPolling','_removeCollabCursors','saveTaskMap','data','ENSURE_SNAPSHOT_EXECUTION','InsertRangeMoveRightCommandId','_handleHeartbeatEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','registerRefRange','univer-flex\x20univer-items-center','subscribeEvent','REDEMPTION_CODE_INACTIVE','27kgXByT','formula.calculation.started','12PyUkIX','_cursor','JOIN_ROOM_FAILED','translate(.97)','pipe','params','/universer-api/license/formula/limit/status','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','SNAPSHOT_INVALID_SNAPSHOT','_config','red.300','values','_entities','/universer-api/license/formula/limit/done','_beforeCloseService','REDEMPTION_INVALID_CODE','colorChannel1','blue.400','MUTATION','cursorInfo','ERROR_AGAIN','getParam','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_URL_COL_OUT_OF_RANGE','getMember','asObservable','fill','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','USER_NOT_FOUND','_hover','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onRefRangeChange','save','_initStatusListener','onPointerMove$','_labelPosition','http://www.w3.org/2000/svg','_memberService','_docTransformSelectionsService','InsertColCommandId','call','_drawRectRange','executeCommand','map','unsubscribe','getUnit','subUnitId','_refRangeService','findNodePositionByCharIndex','column','_applyCommand','Loading','history','transformMutationsWithChangeset','split','0\x200\x2016\x2016','CLOSE_ROOM','LICENSE_IMPORT_SIZE_EXCEEDED','_dataLoaderService','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_NO_CUBOID_FOR_QUESTION','_urlService','9390vQgkPT','USERS_LEAVE','ENTITLE_CHAT_LIMIT_EXCEED','transformByState','_session','onPointerEnter$','addHandlerCallback','send','editingUnit','startsWith','_getSessionTicket','complete','setParam','none','forEach','icon','imageSourceType','getUnitId','_registerRenderDependencies','_initEvent','top','currentColor','USER_IS_ANONYMOUS','_getSheetObject','43672gMbxCM','INTERNAL_ERROR','setUndoRedoMutationParamsCache','_scheduleClearOtherTimer','registerComponent','_cursorShapes','setShapeProps','endColumn','now','UNIVER_SHEET','post','649032lxEGBe','_colorIndex','setStateCache','_disabled','Unknown\x20user','_initCommandExecutedListener','M0\x200H16V16H0z','_updateLocalCursor','_messageService','setTimeout','YUUMI_UNABLE_LOAD_URL','maxFormulaLimit','YUUMI_CONNECTOR_URL_NOT_FOUND','_init','_taskIds','href','_docClipboardService','_localStorageService','use','sessionTicket','displayName','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_getFormulaLimitStatus','bottom','totalFormulasToCalculate','_univerInstanceService','_handleHover','_render','538590wfczri','OTHER_CLIENT_EDITING','collab-text-anchor-','collabCursorState$','collab-client.tooltip.reconnect','exhaustSavingTask','error','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_DISTRO_REJECTED','black','evenodd','_collaborationUIEventService','_unitOnClients','_renderManagerService','YUUMI_RATE_OVER_LIMIT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','currentSkeleton$','entries','getTypeOfUnitDisposed$','collabStatus.syncing','getColorFromTheme','get','_scheduleSaving','transformIMECache','getOwnPropertyDescriptor','getFocusedUnit','OFFLINE','find','startColumn','searchParams','_onCursorUpdate','_getAnchorBounding','height','_roomMembers$','INVALID_ARGUMENT','fillRule','trim','color','saveImage','sessionStatus$','saveOfflineData','all','_initStatusComponent','fillStyle','LICENSE_EXPORT_SIZE_EXCEEDED','isArray','Success','formula.calculation.unable','[CollaborationDataLoaderController]','session.connection-failed','_eventUnsubscribe','_releaseCalculationLimit','_maxFormulaLimit','permission.title','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','dirtyRanges','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','_online','collaboration.closeRoom','some','replace','collabStatus.synced','status$','TOO_MANY_REQUESTS','_instanceService','ranges','PAYMENT_CHANNEL_NOT_SUPPORT','makeDirty','unitId','runOnServer','startFormulaLimitUrl','getCollabCursors$','current','isActive','popstate','location','ticket','defs','assign','PY_RUNTIME_SCRIPT_ERROR','size','getSheetBySheetId','_checkAndWaitForCalculationPermission','_docTransformIMECacheService','APPLY_PERMISSION_DENIED','type','contains','arc','textRanges','getStateCache','event$','_unitStatus','shift','then','_cursorInfo$','startRow','_currentUsage','memberID','_cursors','YUUMI_SUBSCRIPTION_NOT_FOUND','_saveTaskMap','YUUMI_AI_RUN_FAILED','row','_commandService','deepClone','?taskId=','getCurrentSelections','NOT_COLLAB','random','_transformPreviousActiveRange','result','_uiPartsService','dispose$','_transformService','on-line-icon','MoveRangeCommandId','urlChange$','doc.mutation.rich-text-editing','MOBILE_VERIFY_CODE_MISMATCH','PERMISSION_DENIED','setItem','url(#off-line-icon_clip0_910_343)','_hideTimer','31241jpQOjb','sheetID','mask','cursorInfo$','_docTransformStateCacheService','_doCreateSocket','WECHAT_HAS_BEEN_BOUND','actions','stageInfo','Error','div','_transformHistoryAndStateStack','ENTITLE_REPORT_LIMIT_EXCEED','2546412XxETfJ','YUUMI_TABLE_NOT_FOUND_IN_UNIT','url(#$1','wsSessionTicketUrl','name','clipPath','setAlpha','_injector','INVITE_CODE_HAS_BEEN_UES','_assignedColors','m2Prime','ENTITLE_NEED_BILLING_ADDRESS','includes','#FFF','ACTIVE_UNIT_EVENT_CHANNEL','ONLINE','engine','currentTheme$','attrs','disposeUnit','_colorAssignService','getCollabEntity$','dispose','ENTITLE_DUP_SUBSCRIPTION','with','isEditing','removeParam','FromArray','entityInit$','COMPLETION_FINISHED','_anchorDot','_name','PENDING','_handleEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','transform','getRelativeToViewportCoord','UNRECOGNIZED','YUUMI_ASYNCIO_CANCELLED','getOffsetConfig','body','next','collaboration-client-ui.config','getSheetId','backgroundColor','_docStateChangeManagerService','origin','fillText','functionsExecutedState','_refreshCollabCursors','requireSession','unitID','EMAIL_HAS_BEEN_BOUND','_initCommandInterceptor','_textBubble','HEADER_MENU','_registerDependencies','transformStateCache','_showGuardMessage','idSuffix','restore','url(#on-line-icon_clip0_910_349)','1em','session.will-retry','session.collaboration-timeout','675950zIxyDZ','xlink:href','from','NO_OTHER_CLIENTS_EDITING','indexOf','runId','SUBMIT_CHANGESET_TIMEOUT','LICENSE_MAX_UNITS_EXCEEDED','collabStatus.conflict','_collabSessionService','getConfig','_handleLeaveEvent','_setFormulaLimitStatus','collab-rect-range-','activeSheet$','defIds','extend','getVpScrollXYInfoByPosToVp','replaceDocRanges','tag','getCurrentUnitForType','selection','limitInfo','USER_NOT_INVITED_CODE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getActiveRange','eventID','labelPosition','_collabCursorController','Failed','_removeClearOtherTimer','setActiveRange','REDEMPTION_USER_NOT_ELIGIBLE','getUndoRedoMutationParamsCache','_startDocCollabCursor'];_0x13f0=function(){return _0x15c478;};return _0x13f0();}
|
|
1
|
+
const _0x17995c=_0x220d;(function(_0x49d3c5,_0x207635){const _0x21fac1=_0x220d,_0x18bf16=_0x49d3c5();while(!![]){try{const _0x5de2c4=-parseInt(_0x21fac1(0x293))/0x1*(parseInt(_0x21fac1(0x1d4))/0x2)+-parseInt(_0x21fac1(0x17c))/0x3*(-parseInt(_0x21fac1(0x8d))/0x4)+-parseInt(_0x21fac1(0xa0))/0x5*(parseInt(_0x21fac1(0x171))/0x6)+-parseInt(_0x21fac1(0x179))/0x7+-parseInt(_0x21fac1(0x19c))/0x8*(parseInt(_0x21fac1(0x1d8))/0x9)+-parseInt(_0x21fac1(0x9b))/0xa*(-parseInt(_0x21fac1(0x89))/0xb)+parseInt(_0x21fac1(0x12c))/0xc*(parseInt(_0x21fac1(0x15f))/0xd);if(_0x5de2c4===_0x207635)break;else _0x18bf16['push'](_0x18bf16['shift']());}catch(_0x3c0ca7){_0x18bf16['push'](_0x18bf16['shift']());}}}(_0x2c3e,0x9be1f));var Ft=Object[_0x17995c(0x138)],kt=(_0x2faa31,_0x396087,_0x33e711)=>_0x396087 in _0x2faa31?Ft(_0x2faa31,_0x396087,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33e711}):_0x2faa31[_0x396087]=_0x33e711,l=(_0x5008f3,_0xed4035,_0xe4d8d5)=>kt(_0x5008f3,typeof _0xed4035!=_0x17995c(0xd8)?_0xed4035+'':_0xed4035,_0xe4d8d5);import{jsx as _0x2de4d5,jsxs as _0x1aafd0}from'react/jsx-runtime';import{CollaborationStatus as _0x5bc4e1,CollaborationSessionService as _0x141d96,CollaborationController as _0x4a8b28,DataLoaderService as _0x209b42,MemberService as _0x3af1e3,SessionStatus as _0x343edf,ILocalCacheService as _0x3a200a,CollaborationUIEventService as _0x372bc6,CollaborationUIEventId as _0x38ed89,DocCollaborationEntity as _0x4ff6ee,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x561a7a,getLocalCacheKey as _0x47bb08,LOCAL_CACHE_INTERVAL as _0x34d795,LOCAL_CACHE_INTERVAL_KEY as _0x406905,UniverCollaborationClientPlugin as _0x2497f2,CollaborationSocketService as _0x331ab9,DEFAULT_WS_SESSION_TICKET_URL as _0x3f8692,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x6c9711,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4a61fe,UnitStatus as _0x27e9f9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5bea2a,IUniverInstanceService as _0x382f2b,Inject as _0x11a278,Injector as _0x426398,Disposable as _0x29710c,createIdentifier as _0x3aacc3,ILogService as _0x12caba,ICommandService as _0x31e8e2,Optional as _0x5a4b96,RxDisposable as _0x53201b,Workbook as _0x169540,DOC_RANGE_TYPE as _0x461746,debounce as _0x302608,Rectangle as _0x3ec4b0,DisposableCollection as _0x5c7e15,toDisposable as _0x3213ea,UniverInstanceType as _0x502d97,generateRandomId as _0x25c646,COLORS as _0x4a1af7,ColorKit as _0x109ebd,ThemeService as _0x3e584d,fromEventSubject as _0x1f3ae9,Tools as _0x8e16b7,CommandType as _0x1bc9ba,IConfigService as _0x284c80,CanceledError as _0x5313b4,isFormulaString as _0x4f5ea9,isFormulaId as _0x267f20,ILocalStorageService as _0x241148,DependentOn as _0x53975f,Plugin as _0x494e53,merge as _0xf62ae0,registerDependencies as _0x3ace74,mergeOverrideWithDependencies as _0x23631a,touchDependencies as _0x3dce4a}from'@univerjs/core';import{useObservable as _0x4dd37a,useDependency as _0x3f14f5,IUIPartsService as _0x4e4718,BuiltInUIPart as _0x2203d5,connectInjector as _0x47ff02,IBeforeCloseService as _0x225f15,IMessageService as _0xc5e3ee,INotificationService as _0x503e3e}from'@univerjs/ui';import{BehaviorSubject as _0x5ab626,switchMap as _0x276c2a,of as _0x461f63,takeUntil as _0x426fdf,debounceTime as _0x241dd6,Subject as _0x34a8bd,filter as _0x26217d,merge as _0x298745,combineLatest as _0x524282,fromEvent as _0xa49f30,shareReplay as _0x9be7a1,mapTo as _0x2b6054,distinctUntilChanged as _0x430265}from'rxjs';import{Tooltip as _0x880d88,clsx as _0x550bfe,MessageType as _0x2001e5}from'@univerjs/design';import{useRef as _0x1878fa,createElement as _0x514801,forwardRef as _0x56b1a7,useCallback as _0x5a64d5}from'react';import{IRemoteInstanceService as _0x4f2f44}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x47535e,RefRangeService as _0x1fa5d1,SetSelectionsOperation as _0x4c6b4f,SheetsSelectionsService as _0x559b06,EffectRefRangId as _0x4e84fb,handleIRemoveRow as _0x21aa6f,handleIRemoveCol as _0x41f788,handleMoveRange as _0x3899df,handleInsertRow as _0xf510f4,handleInsertRangeMoveRight as _0x2f5940,handleInsertRangeMoveDown as _0x271c7f,handleInsertCol as _0x289e62,handleDeleteRangeMoveUp as _0x79a8bd,handleDeleteRangeMoveLeft as _0x230d4f,runRefRangeMutations as _0x205469}from'@univerjs/sheets';import{Shape as _0xd80c53,Rect as _0x27916c,getColor as _0x311d32,RegularPolygon as _0x4b441d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19661c,Vector2 as _0x58f725,SHEET_VIEWPORT_KEY as _0x2389fc,IRenderManagerService as _0x4b49a7}from'@univerjs/engine-render';import{HTTPService as _0x363c4f,ISocketService as _0x5a617a,WebSocketService as _0x3242f0}from'@univerjs/network';import{IDocClipboardService as _0x46f861,NodePositionConvertToCursor as _0x2b24bd,NodePositionConvertToRectRange as _0x3e66b9,TEXT_RANGE_LAYER_INDEX as _0x5f5b0d,SetDocZoomRatioOperation as _0x7dd482,DocIMEInputManagerService as _0x2a0c79,DocStateChangeManagerService as _0x2d3bec}from'@univerjs/docs-ui';import{IImageIoService as _0x42e058}from'@univerjs/drawing';import{ITransformService as _0x1a6bde,CollaborationEvent as _0x1eba19,isTransformMutationFailure as _0x55d582,isTransformMutationsWithChangesetSuccess as _0x4b8ff0,RevisionService as _0x225cbf,ISnapshotServerService as _0x4d1519}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3c75e4,RichTextEditingMutation as _0xc2d7de,DocSelectionManagerService as _0x470162,DocSkeletonManagerService as _0x33174f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x585551,serializeRangeWithSheet as _0x38a017,FormulaExecuteStageType as _0x19f2ec,FormulaExecutedStateType as _0x3bbfbf,SetFormulaCalculationStartMutation as _0x8e7314,SetFormulaCalculationNotificationMutation as _0x72d1d3}from'@univerjs/engine-formula';import{map as _0x248c7f,filter as _0x3f54ce,throttleTime as _0x53d2a8,takeUntil as _0x5050e3,switchMap as _0x4613aa}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2fc12d,getCoordByCell as _0x2f11d6,getSheetObject as _0x1f24ae}from'@univerjs/sheets-ui';function Ve({ref:_0x12a208,..._0x52c05c}){const _0x50c3f9=_0x17995c,{icon:_0x1cc93a,id:_0x100e42,className:_0x356d13,extend:_0x1f9490,..._0x216bf2}=_0x52c05c,_0x299e6b=('univerjs-icon\x20univerjs-icon-'+_0x100e42+'\x20'+(_0x356d13||''))[_0x50c3f9(0x24b)](),_0x34f699=_0x1878fa('_'+gi());return Ut(_0x1cc93a,''+_0x100e42,{'defIds':_0x1cc93a['defIds'],'idSuffix':_0x34f699['current']},{'ref':_0x12a208,'className':_0x299e6b,..._0x216bf2},_0x1f9490);}function Ut(_0xbdda36,_0x1f894b,_0x37bbc6,_0x27df6e,_0x123e49){const _0x18ebb1=_0x17995c;return _0x514801(_0xbdda36[_0x18ebb1(0x215)],{'key':_0x1f894b,...mi(_0xbdda36,_0x37bbc6,_0x123e49),..._0x27df6e},(fi(_0xbdda36,_0x37bbc6)['children']||[])['map']((_0x423ed6,_0x24bbe1)=>Ut(_0x423ed6,_0x1f894b+'-'+_0xbdda36['tag']+'-'+_0x24bbe1,_0x37bbc6,void 0x0,_0x123e49)));}function mi(_0x1948c7,_0x20fd9a,_0xa72a98){const _0x599107=_0x17995c,_0x432089={..._0x1948c7[_0x599107(0xb4)]};_0xa72a98!=null&&_0xa72a98[_0x599107(0xa1)]&&_0x432089['fill']===_0x599107(0xa1)&&(_0x432089[_0x599107(0x1cd)]=_0xa72a98[_0x599107(0xa1)]),_0x1948c7['tag']===_0x599107(0x1d7)&&_0x432089['id']&&(_0x432089['id']=_0x432089['id']+_0x20fd9a['idSuffix']),Object[_0x599107(0x1b2)](_0x432089)[_0x599107(0xbe)](([_0x8fc770,_0x5638d7])=>{const _0x4ee0f6=_0x599107;_0x8fc770===_0x4ee0f6(0x1d7)&&typeof _0x5638d7==_0x4ee0f6(0x20b)&&(_0x432089[_0x8fc770]=_0x5638d7['replace'](/url\(#(.*)\)/,_0x4ee0f6(0x19b)+_0x20fd9a[_0x4ee0f6(0x118)]+')'));});const {defIds:_0x332578}=_0x20fd9a;return!_0x332578||_0x332578['length']===0x0||(_0x1948c7[_0x599107(0x215)]===_0x599107(0xd1)&&_0x432089['xlink:href']&&(_0x432089['xlink:href']=_0x432089[_0x599107(0x18b)]+_0x20fd9a[_0x599107(0x118)]),Object['entries'](_0x432089)[_0x599107(0xbe)](([_0x218c2c,_0x277232])=>{const _0x59fed7=_0x599107;typeof _0x277232==_0x59fed7(0x20b)&&(_0x432089[_0x218c2c]=_0x277232[_0x59fed7(0x183)](/url\(#(.*)\)/,_0x59fed7(0x19b)+_0x20fd9a[_0x59fed7(0x118)]+')'));})),_0x432089;}function fi(_0x21e64f,_0x4ea2a8){const _0x314c81=_0x17995c;var _0x56d4f0;const {defIds:_0x39b325}=_0x4ea2a8;return!_0x39b325||_0x39b325[_0x314c81(0x28b)]===0x0?_0x21e64f:_0x21e64f['tag']==='defs'&&((_0x56d4f0=_0x21e64f['children'])!=null&&_0x56d4f0['length'])?{..._0x21e64f,'children':_0x21e64f['children'][_0x314c81(0x14e)](_0x1953a4=>typeof _0x1953a4[_0x314c81(0xb4)]['id']==_0x314c81(0x20b)&&_0x39b325&&_0x39b325[_0x314c81(0x16e)](_0x1953a4[_0x314c81(0xb4)]['id'])?{..._0x1953a4,'attrs':{..._0x1953a4[_0x314c81(0xb4)],'id':_0x1953a4[_0x314c81(0xb4)]['id']+_0x4ea2a8[_0x314c81(0x118)]}}:_0x1953a4)}:_0x21e64f;}function gi(){const _0x28595b=_0x17995c;return Math[_0x28595b(0x160)]()[_0x28595b(0x201)](0x24)[_0x28595b(0x17f)](0x2,0x8);}Ve[_0x17995c(0x12e)]=_0x17995c(0x221);const vi={'tag':_0x17995c(0xde),'attrs':{'xmlns':_0x17995c(0x219),'fill':_0x17995c(0xad),'viewBox':_0x17995c(0x194),'width':'1em','height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x2a6)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'d':_0x17995c(0x159),'strokeLinecap':_0x17995c(0x1ce),'strokeLinejoin':_0x17995c(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':_0x17995c(0x21c),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0x56b1a7(function(_0x3ed593,_0x521f22){const _0x2b2b7c=_0x17995c;return _0x514801(Ve,Object[_0x2b2b7c(0xa5)]({},_0x3ed593,{'id':_0x2b2b7c(0x210),'ref':_0x521f22,'icon':vi}));});Lt[_0x17995c(0x12e)]=_0x17995c(0x1a7);const Ei={'tag':'svg','attrs':{'xmlns':_0x17995c(0x219),'fill':'none','viewBox':_0x17995c(0x124),'width':_0x17995c(0x139),'height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x14a)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'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':_0x17995c(0x1ce),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':_0x17995c(0x1c1)},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x17995c(0xef)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Mt=_0x56b1a7(function(_0x2f6a84,_0x23b99b){const _0x57fbaf=_0x17995c;return _0x514801(Ve,Object['assign']({},_0x2f6a84,{'id':_0x57fbaf(0x2aa),'ref':_0x23b99b,'icon':Ei}));});Mt[_0x17995c(0x12e)]=_0x17995c(0x1b9);function pi(_0x234662){const _0x4fd0b4=_0x17995c;switch(_0x234662){case _0x5bc4e1['OFFLINE']:return _0x4fd0b4(0x22d);case _0x5bc4e1[_0x4fd0b4(0x14f)]:return'collabStatus.conflict';case _0x5bc4e1[_0x4fd0b4(0x1f5)]:return _0x4fd0b4(0xfa);case _0x5bc4e1['NOT_COLLAB']:return _0x4fd0b4(0x244);case _0x5bc4e1['AWAITING']:case _0x5bc4e1['AWAITING_WITH_PENDING']:return _0x4fd0b4(0xec);case _0x5bc4e1[_0x4fd0b4(0x1c3)]:case _0x5bc4e1[_0x4fd0b4(0x181)]:return _0x4fd0b4(0x260);}}function Oi(_0x4c7f3c){const _0x1cb6ac=_0x17995c,{status$:_0x560738}=_0x4c7f3c,_0x280fff=_0x4dd37a(_0x560738,_0x5bc4e1[_0x1cb6ac(0x192)]),_0xa49558=_0x3f14f5(_0x5bea2a),_0x418095=_0x3f14f5(_0x141d96),_0x256e98=_0x280fff!==_0x5bc4e1[_0x1cb6ac(0x28d)],_0x3c7e06=_0xa49558['t'](pi(_0x280fff)),_0x427180=_0x256e98?_0x2de4d5(Mt,{}):_0x2de4d5(Lt,{}),_0x429177=_0x5a64d5(()=>{const _0x6046bb=_0x1cb6ac;_0x256e98||_0x418095[_0x6046bb(0x229)]();},[_0x256e98,_0x418095]);function _0x4857a5(){const _0x38d313=_0x1cb6ac;return _0x1aafd0(_0x38d313(0x18c),{'className':'univer-flex\x20univer-items-center','onClick':_0x429177,'children':[_0x2de4d5(_0x38d313(0x18c),{'className':_0x550bfe(_0x38d313(0x196),{'univer-text-green-500':_0x256e98,'univer-text-red-500':!_0x256e98}),'children':_0x427180}),_0x2de4d5(_0x38d313(0x18c),{'className':_0x38d313(0x1a3),'children':_0x3c7e06})]});}return _0x256e98?_0x4857a5():_0x2de4d5(_0x880d88,{'title':_0xa49558['t']('collab-client.tooltip.reconnect'),'children':_0x4857a5()});}var Ti=Object[_0x17995c(0x153)],Ci=(_0x10c4e5,_0x438099,_0x59e0ae,_0x17cc18)=>{const _0xf2160a=_0x17995c;for(var _0x2e01e5=_0x17cc18>0x1?void 0x0:_0x17cc18?Ti(_0x438099,_0x59e0ae):_0x438099,_0xc38301=_0x10c4e5[_0xf2160a(0x28b)]-0x1,_0x11c05e;_0xc38301>=0x0;_0xc38301--)(_0x11c05e=_0x10c4e5[_0xc38301])&&(_0x2e01e5=_0x11c05e(_0x2e01e5)||_0x2e01e5);return _0x2e01e5;},se=(_0x2542ca,_0x573ff1)=>(_0x4e9a7c,_0x5cbc32)=>_0x573ff1(_0x4e9a7c,_0x5cbc32,_0x2542ca);let oe=class extends _0x29710c{constructor(_0x17542d,_0x2ef2b0,_0x5ed94b,_0x5cee66){const _0x42c199=_0x17995c;super(),l(this,_0x42c199(0xf7),new _0x5ab626(_0x5bc4e1[_0x42c199(0x192)])),(this[_0x42c199(0x290)]=_0x17542d,this[_0x42c199(0x287)]=_0x2ef2b0,this[_0x42c199(0x24d)]=_0x5ed94b,this[_0x42c199(0x14b)]=_0x5cee66,this[_0x42c199(0x27a)](),this['_initStatusListener']());}[_0x17995c(0x1e3)](){const _0x38c001=_0x17995c;this[_0x38c001(0x1c2)](this[_0x38c001(0x290)]['focused$'][_0x38c001(0x269)](_0x276c2a(()=>{const _0x2b28f6=_0x38c001,_0x3b1a86=this['_univerInstanceService'][_0x2b28f6(0x177)]();return _0x3b1a86?this[_0x2b28f6(0x24d)]['getCollabEntity$'](_0x3b1a86[_0x2b28f6(0x10d)]()):_0x461f63(null);}),_0x276c2a(_0x2d0774=>_0x2d0774?_0x2d0774[_0x38c001(0x167)]:_0x461f63(_0x5bc4e1[_0x38c001(0x192)])))[_0x38c001(0x158)](_0x153ee2=>{const _0x39482e=_0x38c001;this[_0x39482e(0xf7)][_0x39482e(0xf2)](_0x153ee2);}));}[_0x17995c(0x27a)](){const _0x311161=_0x17995c;this[_0x311161(0x1c2)](this[_0x311161(0x14b)][_0x311161(0xb7)](_0x2203d5[_0x311161(0xaf)],()=>_0x47ff02(Ri({'status$':this['_status$'][_0x311161(0xc8)]()}),this[_0x311161(0x287)])));}};oe=Ci([se(0x0,_0x382f2b),se(0x1,_0x11a278(_0x426398)),se(0x2,_0x11a278(_0x4a8b28)),se(0x3,_0x4e4718)],oe);function Ri(_0x2b4745){const {status$:_0x194434}=_0x2b4745;return function(){return _0x2de4d5(Oi,{'status$':_0x194434});};}const At=_0x3aacc3(_0x17995c(0xcf));var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x178d2f,_0x282bfb,_0x20fd0c,_0x47fe71)=>{const _0xcd69e7=_0x17995c;for(var _0x348387=_0x47fe71>0x1?void 0x0:_0x47fe71?Di(_0x282bfb,_0x20fd0c):_0x282bfb,_0x5e2b03=_0x178d2f[_0xcd69e7(0x28b)]-0x1,_0x1a174b;_0x5e2b03>=0x0;_0x5e2b03--)(_0x1a174b=_0x178d2f[_0x5e2b03])&&(_0x348387=_0x1a174b(_0x348387)||_0x348387);return _0x348387;},K=(_0x5eca7f,_0x214fff)=>(_0x10d8b8,_0x1ba7e3)=>_0x214fff(_0x10d8b8,_0x1ba7e3,_0x5eca7f);let ae=class extends _0x53201b{constructor(_0x4b7711,_0x21c66b,_0x3c002b,_0x1ce76c,_0x365c5f){const _0x24c7ba=_0x17995c;super(),this[_0x24c7ba(0x97)]=_0x4b7711,this[_0x24c7ba(0x18f)]=_0x21c66b,this[_0x24c7ba(0x1ed)]=_0x3c002b,this['_dataLoaderService']=_0x1ce76c,_0x365c5f?_0x365c5f==null||_0x365c5f[_0x24c7ba(0xe2)]()['then'](()=>this[_0x24c7ba(0x11f)]()):(this['_logService']['debug'](_0x24c7ba(0x281),_0x24c7ba(0x131)),this[_0x24c7ba(0x11f)]());}async['_init'](){const _0x416b9e=_0x17995c,_0x283f53=this[_0x416b9e(0x97)]['getParam'](_0x416b9e(0x20d)),_0x40b603=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)]('type'),_0x98637a=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)](_0x416b9e(0x268));if(!_0x283f53||!_0x40b603){this[_0x416b9e(0x18f)][_0x416b9e(0x24e)](_0x416b9e(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1373d0=await this[_0x416b9e(0x1d1)][_0x416b9e(0xfd)](_0x283f53,Number(_0x40b603),_0x98637a);_0x1373d0&&_0x1373d0 instanceof _0x169540&&this['_setupSubUnitSync'](_0x1373d0);}async[_0x17995c(0x1e5)](_0xd458b7){const _0x3682e1=_0x17995c;await this['_updateSubUnitFromURLParams'](_0xd458b7),_0xd458b7[_0x3682e1(0xc6)][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](_0x336353=>{_0x336353&&this['_updateURLWithCurrentState'](_0x336353);}),this[_0x3682e1(0x97)]['urlChange$'][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](()=>this[_0x3682e1(0x27e)](_0xd458b7));}[_0x17995c(0x173)](_0xb23203,_0x58051a=!0x1){const _0x4541bd=_0x17995c,_0x386def=this[_0x4541bd(0x97)][_0x4541bd(0x1ea)]('subunit');_0xb23203[_0x4541bd(0xa9)]()!==_0x386def&&this[_0x4541bd(0x97)]['setParam']('subunit',_0xb23203[_0x4541bd(0xa9)](),_0x58051a);}async[_0x17995c(0x27e)](_0x32ed0e){const _0xa59856=_0x17995c;var _0x21b3c3;const _0x33005d=this['_urlService'][_0xa59856(0x1ea)]('subunit');if(!_0x33005d||!_0x32ed0e[_0xa59856(0x2c1)](_0x33005d)){const _0x3c198e=_0x32ed0e['getUnhiddenWorksheets']()[0x0],_0x13d7c2=_0x32ed0e[_0xa59856(0x2c1)](_0x3c198e);if(!_0x13d7c2)return;this[_0xa59856(0x173)](_0x13d7c2,!0x0),await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e['getUnitId'](),'subUnitId':_0x3c198e});return;}((_0x21b3c3=_0x32ed0e[_0xa59856(0x2a4)]())==null?void 0x0:_0x21b3c3[_0xa59856(0xa9)]())!==_0x33005d&&await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e[_0xa59856(0x10d)](),'subUnitId':_0x33005d});}};ae=Ni([K(0x0,At),K(0x1,_0x12caba),K(0x2,_0x31e8e2),K(0x3,_0x11a278(_0x209b42)),K(0x4,_0x5a4b96(_0x4f2f44))],ae);var bi=Object[_0x17995c(0x153)],Ui=(_0x4ab951,_0x9de29,_0x4c85f7,_0x2e39cb)=>{const _0x47a046=_0x17995c;for(var _0x3a2544=_0x2e39cb>0x1?void 0x0:_0x2e39cb?bi(_0x9de29,_0x4c85f7):_0x9de29,_0x58d7c6=_0x4ab951[_0x47a046(0x28b)]-0x1,_0x5b4dd4;_0x58d7c6>=0x0;_0x58d7c6--)(_0x5b4dd4=_0x4ab951[_0x58d7c6])&&(_0x3a2544=_0x5b4dd4(_0x3a2544)||_0x3a2544);return _0x3a2544;},tt=(_0x330452,_0x126f55)=>(_0x5261c9,_0x193e4c)=>_0x126f55(_0x5261c9,_0x193e4c,_0x330452);let Ae=class extends _0x53201b{constructor(_0x416ef7,_0x4db707){const _0x647a6b=_0x17995c;super(),this[_0x647a6b(0x172)]=_0x416ef7,this['_imageIoService']=_0x4db707,this[_0x647a6b(0x11f)]();}[_0x17995c(0x11f)](){const _0x41024c=_0x17995c,_0x3d3e97=this;this[_0x41024c(0x1c2)](this[_0x41024c(0x172)][_0x41024c(0xab)]({'onBeforePasteImage':async _0x300faf=>{const _0x5a77e8=_0x41024c,_0x15c360=await _0x3d3e97[_0x5a77e8(0x188)][_0x5a77e8(0x147)](_0x300faf);return _0x15c360?{'source':_0x15c360[_0x5a77e8(0x211)],'imageSourceType':_0x15c360[_0x5a77e8(0x180)]}:null;}}));}};Ae=Ui([tt(0x0,_0x46f861),tt(0x1,_0x42e058)],Ae);const st=['purple.300','jiqing.500',_0x17995c(0x26b),_0x17995c(0xb5),_0x17995c(0xa4),_0x17995c(0x15b)];class je extends _0x29710c{constructor(){const _0x3f2d21=_0x17995c;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x3f2d21(0x258),0x0);}[_0x17995c(0x13e)](_0x23cdab){const _0x560067=_0x17995c;if(this[_0x560067(0x283)][_0x560067(0x2a9)](_0x23cdab))return this['_assignedColors']['get'](_0x23cdab);const _0x558baf=st[this[_0x560067(0x258)]];return this[_0x560067(0x258)]=(this[_0x560067(0x258)]+0x1)%st[_0x560067(0x28b)],this[_0x560067(0x283)][_0x560067(0xc9)](_0x23cdab,_0x558baf),_0x558baf;}}function Pt(_0x19e23b){let _0x3d0ffd='';for(const _0x2d9f23 of _0x19e23b){const {startOffset:_0x20086b,endOffset:_0x55e020,isActive:_0x20439d,rangeType:_0x297b5,segmentId:_0x2bf382,segmentPage:_0x5961b2}=_0x2d9f23;_0x3d0ffd['length']&&(_0x3d0ffd+=','),_0x3d0ffd+=_0x20086b+':'+_0x55e020+':'+(_0x20439d?'1':'0')+':'+_0x297b5+':'+_0x2bf382+':'+_0x5961b2;}return _0x3d0ffd;}function Li(_0x75f35){const _0x432997=_0x17995c,_0x318c07=_0x75f35['split'](','),_0x2cdfae=[];for(const _0x2e1dfc of _0x318c07){const [_0x334364,_0x12f799,_0x44ae93,_0x38f135,_0x2b121c,_0x3d589a]=_0x2e1dfc[_0x432997(0xd9)](':');_0x2cdfae[_0x432997(0x272)]({'startOffset':Number(_0x334364),'endOffset':Number(_0x12f799),'collapsed':_0x334364===_0x12f799,'isActive':_0x44ae93==='1','rangeType':_0x38f135===_0x461746[_0x432997(0x29e)]?_0x461746[_0x432997(0x29e)]:_0x461746[_0x432997(0x1aa)],'segmentId':typeof _0x2b121c=='string'?String(_0x2b121c):'','segmentPage':Number(_0x3d589a!=null?_0x3d589a:-0x1)});}return _0x2cdfae['some'](_0x59cd09=>_0x59cd09['isActive'])||(_0x2cdfae[0x0][_0x432997(0x262)]=!0x0),_0x2cdfae;}class Xe extends _0x53201b{constructor(){const _0x1891ee=_0x17995c;super(...arguments),l(this,_0x1891ee(0x125),new _0x5ab626(null)),l(this,_0x1891ee(0x248),this['_collabCursorState$'][_0x1891ee(0xc8)]());}[_0x17995c(0xe5)](_0x396afa){const _0x568f46=_0x17995c,{unitID:_0x299a9d,memberID:_0x5be6b1,textRanges:_0x5b7552}=_0x396afa,_0xb06cb5=Pt(_0x5b7552);if(_0xb06cb5==='')return;const _0x1b42fc={'unitID':_0x299a9d,'memberID':_0x5be6b1,'selection':_0xb06cb5};this[_0x568f46(0x125)][_0x568f46(0xf2)](_0x1b42fc);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x2e6312,_0x1cc560,_0x10f49a,_0x295d60)=>{for(var _0x53648e=_0x295d60>0x1?void 0x0:_0x295d60?Mi(_0x1cc560,_0x10f49a):_0x1cc560,_0x554a89=_0x2e6312['length']-0x1,_0x4abeff;_0x554a89>=0x0;_0x554a89--)(_0x4abeff=_0x2e6312[_0x554a89])&&(_0x53648e=_0x4abeff(_0x53648e)||_0x53648e);return _0x53648e;},A=(_0x2b379d,_0x34e274)=>(_0x3c9e3,_0x11863d)=>_0x34e274(_0x3c9e3,_0x11863d,_0x2b379d);const Pi=0x12c,wi=0x64;let Pe=class extends _0x53201b{constructor(_0x5735aa,_0x477d2e,_0x3e5fd1,_0x29ed97,_0x18a323,_0x14d562,_0x1fd674,_0x1f9ae2,_0x55c7f9){const _0x4c0b7e=_0x17995c;super(),l(this,_0x4c0b7e(0x208),!0x1),l(this,'_init',!0x1),l(this,_0x4c0b7e(0xbf),new _0x5ab626(new Map())),l(this,_0x4c0b7e(0x1b5),this[_0x4c0b7e(0xbf)][_0x4c0b7e(0xc8)]()),l(this,_0x4c0b7e(0x204),new _0x5ab626([])),l(this,_0x4c0b7e(0x1ad),this[_0x4c0b7e(0x204)]['pipe'](_0x241dd6(Pi))),l(this,_0x4c0b7e(0x1a5),_0x302608(_0x598083=>{const _0x173eab=_0x4c0b7e,_0x477df9={'eventID':_0x1eba19['UPDATE_CURSOR'],'data':{'unitID':this[_0x173eab(0x251)],'memberID':this['_session'][_0x173eab(0x29c)](),'selection':Pt(_0x598083)}};this['_session'][_0x173eab(0x1d5)](_0x477df9,this['unitID']);},wi)),(this[_0x4c0b7e(0x251)]=_0x5735aa,this[_0x4c0b7e(0x20f)]=_0x477d2e,this['_injector']=_0x3e5fd1,this[_0x4c0b7e(0x1d6)]=_0x29ed97,this[_0x4c0b7e(0x224)]=_0x18a323,this['_syncEditingCollabCursorService']=_0x14d562,this[_0x4c0b7e(0x20a)]=_0x1fd674,this[_0x4c0b7e(0x290)]=_0x1f9ae2,this[_0x4c0b7e(0x1ed)]=_0x55c7f9);}get[_0x17995c(0x164)](){const _0x260a09=_0x17995c;return this[_0x260a09(0xbf)]['getValue']();}get[_0x17995c(0x150)](){const _0x24db1b=_0x17995c;return this[_0x24db1b(0x204)][_0x24db1b(0x146)]();}[_0x17995c(0x2b4)](){const _0x53bd1a=_0x17995c;super[_0x53bd1a(0x2b4)](),this['_cursorInfo$'][_0x53bd1a(0xf2)](new Map()),this[_0x53bd1a(0xbf)][_0x53bd1a(0x25e)](),this['_roomMembers$'][_0x53bd1a(0xf2)]([]),this[_0x53bd1a(0x204)][_0x53bd1a(0x25e)]();}[_0x17995c(0x1f9)](){const _0x1de992=_0x17995c;this[_0x1de992(0x11f)]||(this[_0x1de992(0x11f)]=!0x0,this[_0x1de992(0x20f)][_0x1de992(0x29a)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))[_0x1de992(0x158)](_0x406f8b=>{const _0x33d9cb=_0x1de992;_0x406f8b===_0x343edf[_0x33d9cb(0x12f)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x1de992(0x26f)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))['subscribe'](_0x58c1cb=>{const _0x5292b9=_0x1de992,_0x385cf5=_0x58c1cb[_0x5292b9(0x28c)];_0x385cf5===_0x1eba19[_0x5292b9(0xff)]&&this['_onCursorUpdate'](_0x58c1cb),_0x385cf5===_0x1eba19[_0x5292b9(0xd6)]&&this[_0x5292b9(0x15c)](_0x58c1cb);}),this['disposeWithMe'](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0xbceb74=>{const _0x350b64=_0x1de992,_0x46b0a9=_0xbceb74['params'];_0x46b0a9!=null&&this[_0x350b64(0x208)]&&_0xbceb74['id']===_0x3c75e4['id']&&_0x46b0a9[_0x350b64(0x27b)]===this[_0x350b64(0x251)]&&_0x46b0a9[_0x350b64(0x148)]===!0x1&&_0x46b0a9['ranges'][_0x350b64(0x28b)]>0x0&&this['_updateLocalCursor'](_0x46b0a9[_0x350b64(0x1db)]);})),this[_0x1de992(0x267)][_0x1de992(0x248)][_0x1de992(0x269)](_0x426fdf(this['dispose$']))['subscribe'](_0x5d3fca=>{const _0x37fd8b=_0x1de992;if((_0x5d3fca==null?void 0x0:_0x5d3fca['unitID'])!==this[_0x37fd8b(0x251)])return;const _0x46e926={'eventID':_0x1eba19[_0x37fd8b(0xff)],'data':_0x5d3fca};this['_onCursorUpdate'](_0x46e926);}),this[_0x1de992(0x1c2)](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0x3372c5=>{const _0x32db06=_0x1de992;if(_0x3372c5[_0x32db06(0x166)]==null)return;const _0x466cf5=_0x3372c5[_0x32db06(0x166)];if(_0x3372c5['id']!==_0xc2d7de['id']||_0x466cf5[_0x32db06(0x27b)]!==this[_0x32db06(0x251)])return;const _0x2e2096={'id':_0x32db06(0x297),'params':_0x466cf5},_0x35d5c2=this[_0x32db06(0x164)];for(const [_0x342816,_0x157248]of _0x35d5c2){const _0x26c4be={'id':_0x32db06(0x297),'params':{'unitId':this[_0x32db06(0x251)],'actions':null,'textRanges':_0x157248[_0x32db06(0x1db)]}},_0x82e0f0=this[_0x32db06(0x20a)][_0x32db06(0x278)](_0x2e2096,_0x26c4be,!0x1);if(_0x55d582(_0x82e0f0))throw _0x82e0f0[_0x32db06(0x205)];_0x35d5c2[_0x32db06(0xc9)](_0x342816,{..._0x157248,'ranges':_0x82e0f0[_0x32db06(0x264)]['params'][_0x32db06(0x1b6)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x35d5c2);});})));}[_0x17995c(0x24a)](_0x1cb7da){const _0x16cdbc=_0x17995c;var _0x52727d,_0x72aa7c;const {memberID:_0x1551a2,selection:_0x56f306}=_0x1cb7da[_0x16cdbc(0x279)],_0x3051f2=Li(_0x56f306),_0xcd8afb=(_0x72aa7c=(_0x52727d=this['_memberService'][_0x16cdbc(0x2af)](this[_0x16cdbc(0x251)],_0x1551a2))==null?void 0x0:_0x52727d[_0x16cdbc(0x13a)])!=null?_0x72aa7c:_0x16cdbc(0xdf),_0x38e78f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1551a2),'name':_0xcd8afb,'ranges':_0x3051f2},_0x50cc57=this[_0x16cdbc(0x164)];_0x50cc57['set'](_0x1551a2,_0x38e78f),this[_0x16cdbc(0xbf)][_0x16cdbc(0xf2)](_0x50cc57);}[_0x17995c(0x15c)](_0x35f1e9){const _0x26e971=_0x17995c,{memberID:_0x2952a5}=_0x35f1e9[_0x26e971(0x279)],_0x39171a=this[_0x26e971(0x164)];_0x39171a[_0x26e971(0xeb)](_0x2952a5),this[_0x26e971(0xbf)][_0x26e971(0xf2)](_0x39171a);}[_0x17995c(0x23b)](){const _0x5298a5=_0x17995c;var _0x44e8e6;if(this[_0x5298a5(0x208)]=!0x0,((_0x44e8e6=this[_0x5298a5(0x290)][_0x5298a5(0x177)]())==null?void 0x0:_0x44e8e6[_0x5298a5(0x10d)]())!==this['unitID'])return;const _0x48ecb2=this[_0x5298a5(0x287)][_0x5298a5(0x265)](_0x470162)[_0x5298a5(0x1a0)]();Array[_0x5298a5(0x285)](_0x48ecb2)&&_0x48ecb2[_0x5298a5(0x28b)]>0x0&&this[_0x5298a5(0x1a5)](_0x48ecb2);}['_toggleOffline'](){this['_online']=!0x1;}};Pe=Ai([A(0x2,_0x11a278(_0x426398)),A(0x3,_0x11a278(je)),A(0x4,_0x11a278(_0x3af1e3)),A(0x5,_0x11a278(Xe)),A(0x6,_0x1a6bde),A(0x7,_0x382f2b),A(0x8,_0x31e8e2)],Pe);var yi=Object[_0x17995c(0x153)],$i=(_0xe3751e,_0x42c843,_0x271b2e,_0x3639ac)=>{const _0x2c88a3=_0x17995c;for(var _0x1fee78=_0x3639ac>0x1?void 0x0:_0x3639ac?yi(_0x42c843,_0x271b2e):_0x42c843,_0x1b7ef9=_0xe3751e[_0x2c88a3(0x28b)]-0x1,_0x59cbff;_0x1b7ef9>=0x0;_0x1b7ef9--)(_0x59cbff=_0xe3751e[_0x1b7ef9])&&(_0x1fee78=_0x59cbff(_0x1fee78)||_0x1fee78);return _0x1fee78;},B=(_0x49653a,_0x479dde)=>(_0x2ca8c4,_0x2b0447)=>_0x479dde(_0x2ca8c4,_0x2b0447,_0x49653a);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1da7b3=[],_0x5bf891=!0x1;return _0x3797c7=>{const _0x3535ab=_0x220d;_0x1da7b3[_0x3535ab(0x272)](_0x3797c7),_0x5bf891||(_0x5bf891=!0x0,setTimeout(()=>{_0x1da7b3['forEach'](_0x263ead=>_0x263ead()),_0x1da7b3=[],_0x5bf891=!0x1;}));};};let we=class extends _0x53201b{constructor(_0x128e58,_0x23f958,_0x19a4ea,_0x5bdfd6,_0x42c4e5,_0x30ee3f,_0x361bfb,_0x8764d6){const _0x1bc523=_0x17995c;super(),l(this,'_online',!0x1),l(this,_0x1bc523(0x11f),!0x1),l(this,_0x1bc523(0xbf),new _0x5ab626(new Map())),l(this,_0x1bc523(0x1b5),this['_cursorInfo$']['asObservable']()),l(this,_0x1bc523(0x204),new _0x5ab626([])),l(this,_0x1bc523(0x1ad),this[_0x1bc523(0x204)][_0x1bc523(0x269)](_0x241dd6(xi))),l(this,_0x1bc523(0x1a5),_0x302608((_0x5caf9a,_0x48f7e4)=>{const _0x2da358=_0x1bc523,_0x351e1a={'eventID':_0x1eba19[_0x2da358(0xff)],'data':{'unitID':this[_0x2da358(0x251)],'memberID':this['_session'][_0x2da358(0x29c)](),'selection':_0x38a017(_0x5caf9a,_0x48f7e4[_0x2da358(0x105)])}};this[_0x2da358(0x20f)][_0x2da358(0x1d5)](_0x351e1a,this['unitID']);},Bi)),(this[_0x1bc523(0x251)]=_0x128e58,this[_0x1bc523(0x20f)]=_0x23f958,this['_injector']=_0x19a4ea,this[_0x1bc523(0x1d6)]=_0x5bdfd6,this[_0x1bc523(0x224)]=_0x42c4e5,this[_0x1bc523(0x290)]=_0x30ee3f,this['_commandService']=_0x361bfb,this[_0x1bc523(0x11a)]=_0x8764d6);}get[_0x17995c(0x164)](){const _0xd41933=_0x17995c;return this[_0xd41933(0xbf)][_0xd41933(0x146)]();}get[_0x17995c(0x150)](){const _0x33c1ab=_0x17995c;return this['_roomMembers$'][_0x33c1ab(0x146)]();}[_0x17995c(0x2b4)](){const _0x3a7821=_0x17995c;super[_0x3a7821(0x2b4)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x3a7821(0x25e)](),this['_roomMembers$'][_0x3a7821(0xf2)]([]),this[_0x3a7821(0x204)][_0x3a7821(0x25e)]();}['init'](){const _0x556c98=_0x17995c;this[_0x556c98(0x11f)]||(this[_0x556c98(0x11f)]=!0x0,this[_0x556c98(0x20f)][_0x556c98(0x29a)][_0x556c98(0x269)](_0x426fdf(this['dispose$']))[_0x556c98(0x158)](_0x12d727=>{const _0x84105=_0x556c98;_0x12d727===_0x343edf[_0x84105(0x12f)]?this[_0x84105(0x23b)]():this['_toggleOffline']();}),this['_session']['event$'][_0x556c98(0x269)](_0x426fdf(this[_0x556c98(0xda)]))['subscribe'](_0x38abd6=>{const _0x40d781=_0x556c98,_0x2596a7=_0x38abd6[_0x40d781(0x28c)];_0x2596a7===_0x1eba19[_0x40d781(0xff)]&&this[_0x40d781(0x24a)](_0x38abd6),_0x2596a7===_0x1eba19[_0x40d781(0xd6)]&&this[_0x40d781(0x15c)](_0x38abd6);}),this[_0x556c98(0xce)](),this[_0x556c98(0x1c2)](this[_0x556c98(0x1ed)]['onCommandExecuted'](_0x431c0f=>{const _0x49db68=_0x556c98;if(this[_0x49db68(0x208)]&&_0x431c0f['id']===_0x4c6b4f['id']&&_0x431c0f[_0x49db68(0x166)][_0x49db68(0x27b)]===this['unitID']){const _0x220e06=_0x431c0f[_0x49db68(0x166)];this['_updateLocalCursor'](_0x220e06[_0x49db68(0x1be)],_0x220e06['selections'][0x0]);}})));}[_0x17995c(0x24a)](_0x38b30f){const _0x21c76b=_0x17995c;var _0x446e06,_0x522646;const {memberID:_0x4c426f,selection:_0x58c7a4}=_0x38b30f[_0x21c76b(0x279)],{sheetName:_0x448cbf,range:_0x46cc17}=_0x585551(_0x58c7a4),_0x5a9719={'name':(_0x522646=(_0x446e06=this['_memberService']['getMember'](this[_0x21c76b(0x251)],_0x4c426f))==null?void 0x0:_0x446e06[_0x21c76b(0x13a)])!=null?_0x522646:_0x21c76b(0xdf),'range':this['_getMergeRange'](_0x448cbf,_0x46cc17),'sheetID':_0x448cbf,'color':this[_0x21c76b(0x1d6)][_0x21c76b(0x13e)](_0x4c426f),'selection':_0x58c7a4},_0x346251=this[_0x21c76b(0x164)];_0x346251['set'](_0x4c426f,_0x5a9719),this[_0x21c76b(0xbf)][_0x21c76b(0xf2)](_0x346251);}[_0x17995c(0x15c)](_0x3fe85a){const _0x7dfd27=_0x17995c,{memberID:_0x29d1bf}=_0x3fe85a[_0x7dfd27(0x279)],_0x495878=this[_0x7dfd27(0x164)];_0x495878[_0x7dfd27(0xeb)](_0x29d1bf),this['_cursorInfo$'][_0x7dfd27(0xf2)](_0x495878);}[_0x17995c(0xbb)](_0x3ca4cf,_0x5324c1){const _0x51b739=_0x17995c;var _0x37765c,_0x2bb280;const _0x4cbfd=(_0x2bb280=(_0x37765c=this[_0x51b739(0x290)][_0x51b739(0x11c)](this[_0x51b739(0x251)]))==null?void 0x0:_0x37765c[_0x51b739(0x2c1)](_0x3ca4cf))==null?void 0x0:_0x2bb280['getMergeData']();return(_0x4cbfd==null?void 0x0:_0x4cbfd[_0x51b739(0xd2)](_0x419de9=>_0x3ec4b0[_0x51b739(0x252)](_0x419de9,_0x5324c1)))||_0x5324c1;}[_0x17995c(0xce)](){const _0x161532=_0x17995c,_0x1c200c=new _0x5c7e15(),_0x2207f0=Fi(),_0x1cce68=()=>{const _0x5545ec=_0x220d;_0x1c200c[_0x5545ec(0x2b4)]();const _0x4ead03=(_0x395bca,_0xe4999d,_0x3fc09e,_0xe15d89)=>{const _0x5ed03d=_0x5545ec;let _0x2619a6=[];switch(_0x395bca['id']){case _0x4e84fb[_0x5ed03d(0xc7)]:{_0x2619a6=_0x230d4f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x127)]:{_0x2619a6=_0x79a8bd(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x1d0)]:{_0x2619a6=_0x289e62(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x18d)]:{_0x2619a6=_0x271c7f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x112)]:{_0x2619a6=_0x2f5940(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x295)]:{_0x2619a6=_0xf510f4(_0x395bca,_0xe15d89);break;}case _0x4e84fb['MoveRangeCommandId']:{_0x2619a6=_0x3899df(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0xb6)]:{_0x2619a6=_0x41f788(_0x395bca,_0xe15d89);break;}case _0x4e84fb['RemoveRowCommandId']:{_0x2619a6=_0x21aa6f(_0x395bca,_0xe15d89);break;}}const _0x553d3f=_0x205469(_0x2619a6,_0xe15d89),_0x1ea7da=this['cursorInfo'][_0x5ed03d(0x265)](_0xe4999d);if(_0x1ea7da&&_0x553d3f){const _0x3a6a8d={..._0x1ea7da,'range':_0x553d3f};this[_0x5ed03d(0x164)][_0x5ed03d(0xc9)](_0xe4999d,_0x3a6a8d),_0x2207f0(()=>{const _0x42a5b1=_0x5ed03d,_0x176d90=this[_0x42a5b1(0x11a)][_0x42a5b1(0x198)](_0x553d3f,_0x980206=>(_0x176d90[_0x42a5b1(0x2b4)](),_0x4ead03(_0x980206,_0xe4999d,_0x3fc09e,_0x553d3f)));_0x1c200c[_0x42a5b1(0x25d)](_0x176d90);});}return{'redos':[],'undos':[]};};this[_0x5545ec(0x164)]['forEach']((_0x5e8eec,_0x4b6ee5)=>{const _0x3aece0=_0x5545ec,{range:_0x582fec,sheetID:_0x1ce4ee}=_0x5e8eec,_0x22a870=this[_0x3aece0(0x11a)][_0x3aece0(0x198)](_0x582fec,_0x1e36ed=>(_0x22a870[_0x3aece0(0x2b4)](),_0x4ead03(_0x1e36ed,_0x4b6ee5,_0x1ce4ee,_0x582fec)));_0x1c200c[_0x3aece0(0x25d)](_0x22a870);});};this[_0x161532(0x1c2)](_0x3213ea(this[_0x161532(0xbf)][_0x161532(0x158)](()=>{_0x1cce68();})));}[_0x17995c(0x23b)](){const _0x551d16=_0x17995c;var _0x5cddd5,_0x38fcbb;if(this[_0x551d16(0x208)]=!0x0,((_0x5cddd5=this['_univerInstanceService'][_0x551d16(0x177)]())==null?void 0x0:_0x5cddd5['getUnitId']())!==this[_0x551d16(0x251)])return;const _0x144566=(_0x38fcbb=this[_0x551d16(0x287)]['get'](_0x559b06)[_0x551d16(0x23d)]())==null?void 0x0:_0x38fcbb[0x0],_0x28d877=this[_0x551d16(0x290)][_0x551d16(0x1af)](_0x502d97[_0x551d16(0x12d)])[_0x551d16(0x2a4)]();_0x144566&&_0x28d877&&this[_0x551d16(0x1a5)](_0x28d877[_0x551d16(0xa9)](),_0x144566);}[_0x17995c(0x197)](){const _0x1f92b2=_0x17995c;this[_0x1f92b2(0x208)]=!0x1;}};we=$i([B(0x2,_0x11a278(_0x426398)),B(0x3,_0x11a278(je)),B(0x4,_0x11a278(_0x3af1e3)),B(0x5,_0x382f2b),B(0x6,_0x31e8e2),B(0x7,_0x11a278(_0x1fa5d1))],we);var ki=Object[_0x17995c(0x153)],Hi=(_0x512212,_0xce1175,_0x1debac,_0x2f71f8)=>{const _0x30a50e=_0x17995c;for(var _0x43efa0=_0x2f71f8>0x1?void 0x0:_0x2f71f8?ki(_0xce1175,_0x1debac):_0xce1175,_0x2c64b4=_0x512212[_0x30a50e(0x28b)]-0x1,_0x451834;_0x2c64b4>=0x0;_0x2c64b4--)(_0x451834=_0x512212[_0x2c64b4])&&(_0x43efa0=_0x451834(_0x43efa0)||_0x43efa0);return _0x43efa0;},Ee=(_0x23c3ed,_0x2a2807)=>(_0x1b5dc0,_0x4252ac)=>_0x2a2807(_0x1b5dc0,_0x4252ac,_0x23c3ed);let H=class extends _0x53201b{constructor(_0x242432,_0x3c489c,_0x217af4){const _0x4c63a0=_0x17995c;super(),l(this,_0x4c63a0(0x250),new Map()),l(this,_0x4c63a0(0x10f),new _0x34a8bd()),(this[_0x4c63a0(0x290)]=_0x242432,this[_0x4c63a0(0x287)]=_0x3c489c,this[_0x4c63a0(0x195)]=_0x217af4,this['_init']());}['dispose'](){const _0x72c20b=_0x17995c;super[_0x72c20b(0x2b4)](),this[_0x72c20b(0x10f)][_0x72c20b(0x25e)](),this[_0x72c20b(0x250)]['forEach'](_0x100e76=>_0x100e76[_0x72c20b(0x2b4)]());}['getCollabCursors$'](_0x386586){const _0x23762b=_0x17995c;return this['_entities'][_0x23762b(0x2a9)](_0x386586)?this[_0x23762b(0x250)][_0x23762b(0x265)](_0x386586)['cursorInfo$']:this[_0x23762b(0x10f)][_0x23762b(0x269)](_0x26217d(_0x549bc4=>_0x549bc4[_0x23762b(0x251)]===_0x386586),_0x276c2a(_0xa66069=>_0xa66069[_0x23762b(0x1b5)]));}[_0x17995c(0x11f)](){const _0x53713d=_0x17995c;this[_0x53713d(0x290)][_0x53713d(0x206)](_0x502d97[_0x53713d(0x12d)])['pipe'](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](async _0x34ed62=>{const _0x2f3e27=_0x53713d,_0x59868c=_0x34ed62['getUnitId'](),_0x612159=await this[_0x2f3e27(0x1b3)](_0x59868c);this[_0x2f3e27(0x10f)][_0x2f3e27(0xf2)](_0x612159),this[_0x2f3e27(0x250)][_0x2f3e27(0xc9)](_0x59868c,_0x612159);}),this[_0x53713d(0x290)]['getTypeOfUnitAdded$'](_0x502d97['UNIVER_DOC'])[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))['pipe'](_0x26217d(_0x5412f1=>!_0x5412f1[_0x53713d(0x10d)]()[_0x53713d(0xc2)]('__')))['subscribe'](async _0x4e8115=>{const _0x12553f=_0x53713d,_0x5a649d=_0x4e8115[_0x12553f(0x10d)](),_0x59d4d7=await this[_0x12553f(0x231)](_0x5a649d);this['_entityInit$'][_0x12553f(0xf2)](_0x59d4d7),this[_0x12553f(0x250)][_0x12553f(0xc9)](_0x5a649d,_0x59d4d7);}),_0x298745(this[_0x53713d(0x290)]['getTypeOfUnitDisposed$'](_0x502d97[_0x53713d(0x92)]),this[_0x53713d(0x290)][_0x53713d(0xdb)](_0x502d97['UNIVER_SHEET']))[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](_0x18a7f4=>{const _0x65fea7=_0x53713d,_0x4597e6=_0x18a7f4[_0x65fea7(0x10d)](),_0x21ca13=this[_0x65fea7(0x250)][_0x65fea7(0x265)](_0x4597e6);_0x21ca13&&(_0x21ca13[_0x65fea7(0x2b4)](),this['_entities'][_0x65fea7(0xeb)](_0x4597e6));});}async[_0x17995c(0x1b3)](_0x369113){const _0x680c2c=_0x17995c,_0x12447f=await this['_collabSessionService'][_0x680c2c(0xe3)](_0x369113),_0x4dfae3=this[_0x680c2c(0x287)]['createInstance'](we,_0x369113,_0x12447f);return _0x4dfae3[_0x680c2c(0x1f9)](),_0x4dfae3;}async[_0x17995c(0x231)](_0x29cb36){const _0x500360=_0x17995c,_0x9bd0e0=await this[_0x500360(0x195)][_0x500360(0xe3)](_0x29cb36),_0x11f8b4=this['_injector'][_0x500360(0x256)](Pe,_0x29cb36,_0x9bd0e0);return _0x11f8b4[_0x500360(0x1f9)](),_0x11f8b4;}};H=Hi([Ee(0x0,_0x382f2b),Ee(0x1,_0x11a278(_0x426398)),Ee(0x2,_0x11a278(_0x141d96))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x2c936d,_0x184730){const _0x42a2c9=_0x17995c;let {radius:_0x274b13,width:_0x1b99da,height:_0x3b865c}=_0x184730;_0x274b13=_0x274b13!=null?_0x274b13:0x0,_0x1b99da=_0x1b99da!=null?_0x1b99da:0x1e,_0x3b865c=_0x3b865c!=null?_0x3b865c:0x1e;let _0x29a516=0x0,_0x3ef43e=0x0,_0x4d3c83=0x0;_0x29a516=_0x3ef43e=_0x4d3c83=Math[_0x42a2c9(0xe6)](_0x274b13,_0x1b99da/0x2,_0x3b865c/0x2),_0x2c936d[_0x42a2c9(0x13d)](),_0x2c936d['moveTo'](_0x29a516,0x0),_0x2c936d['lineTo'](_0x1b99da-_0x3ef43e,0x0),_0x2c936d['arc'](_0x1b99da-_0x3ef43e,_0x3ef43e,_0x3ef43e,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](_0x1b99da,_0x3b865c-_0x4d3c83),_0x2c936d[_0x42a2c9(0x1fa)](_0x1b99da-_0x4d3c83,_0x3b865c-_0x4d3c83,_0x4d3c83,0x0,Math['PI']/0x2,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x3b865c),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x29a516),_0x2c936d[_0x42a2c9(0x1fa)](_0x29a516,_0x29a516,_0x29a516,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c936d[_0x42a2c9(0x286)](),_0x184730['fill']&&(_0x2c936d['save'](),_0x2c936d[_0x42a2c9(0x122)]=_0x184730[_0x42a2c9(0x1cd)],_0x184730['fillRule']==='evenodd'?_0x2c936d[_0x42a2c9(0x1cd)](_0x42a2c9(0x193)):_0x2c936d[_0x42a2c9(0x1cd)](),_0x2c936d[_0x42a2c9(0x88)]());}class me extends _0xd80c53{constructor(_0x310e9a,_0x337fca){const _0x1b5a10=_0x17995c;super(_0x310e9a,_0x337fca),l(this,_0x1b5a10(0x1b1)),l(this,_0x1b5a10(0x109)),(this['color']=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x1b1)],this[_0x1b5a10(0x109)]=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x109)]);}static[_0x17995c(0x178)](_0x36c29d,_0x36d9fd){const _0x33e063=_0x17995c,{text:_0x456829,color:_0x43121b}=_0x36d9fd;_0x36c29d[_0x33e063(0xb8)](),_0x36c29d[_0x33e063(0x291)]=_0x33e063(0x1de);const _0x8a73b1=_0x36c29d[_0x33e063(0x8f)](_0x456829)[_0x33e063(0x213)],_0x3ae76d=Math[_0x33e063(0xe6)](_0x8a73b1+0x2*pe,it);Wi(_0x36c29d,{'height':Q,'radius':0x4,'width':_0x3ae76d,'fill':_0x43121b}),_0x36c29d['fillStyle']=_0x33e063(0x1b0);const _0x2a89ef=pe,_0x43d4d7=Q-Yi,_0xd708a9=it-0x2*pe;if(_0x8a73b1>_0xd708a9){let _0x2746af='',_0x3c44f6=0x0;for(const _0x351206 of _0x456829){const _0x246791=_0x36c29d['measureText'](_0x351206)['width'];if(_0x3c44f6+_0x246791<=_0xd708a9-_0x36c29d[_0x33e063(0x8f)](_0x33e063(0x284))[_0x33e063(0x213)])_0x2746af+=_0x351206,_0x3c44f6+=_0x246791;else{_0x2746af+=_0x33e063(0x284);break;}}_0x36c29d[_0x33e063(0x19f)](_0x2746af,_0x2a89ef,_0x43d4d7);}else _0x36c29d[_0x33e063(0x19f)](_0x456829,_0x2a89ef,_0x43d4d7);_0x36c29d[_0x33e063(0x88)]();}[_0x17995c(0x19e)](_0x4d7dff){const _0x10f77b=_0x17995c;me[_0x10f77b(0x178)](_0x4d7dff,this);}}const Oe='collab-text-anchor-',Vi='collab-text-range-',ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x17995c(0x1e2);class nt{constructor(_0x571005,_0x526d95,_0x52ecb0,_0x12e205){const _0x55ad3e=_0x17995c;l(this,_0x55ad3e(0x133),[]),l(this,'_anchor',null),l(this,_0x55ad3e(0x117),null),l(this,_0x55ad3e(0xc5),null),l(this,'_hideTimer',null),l(this,_0x55ad3e(0x223),null),(this[_0x55ad3e(0x1ee)]=_0x571005,this['_scene']=_0x526d95,this[_0x55ad3e(0x119)]=_0x52ecb0,this[_0x55ad3e(0x247)]=_0x12e205,this['_render']());}set['_hover'](_0x381cce){const _0x16dda6=_0x17995c;_0x381cce?(this[_0x16dda6(0xc5)]&&this[_0x16dda6(0xc5)][_0x16dda6(0xcb)](),this['_textBubble']&&this[_0x16dda6(0x117)][_0x16dda6(0xfe)]()):(this[_0x16dda6(0xc5)]&&this['_anchorDot'][_0x16dda6(0xfe)](),this[_0x16dda6(0x117)]&&this['_textBubble'][_0x16dda6(0xcb)]());}[_0x17995c(0x2b4)](){const _0x3b1d41=_0x17995c;for(const _0x2002bb of this[_0x3b1d41(0x133)])_0x2002bb[_0x3b1d41(0x2b4)]();this[_0x3b1d41(0x117)]&&this[_0x3b1d41(0x117)][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0xc5)]&&this['_anchorDot'][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0x21e)]&&this[_0x3b1d41(0x21e)]['dispose'](),this[_0x3b1d41(0x223)]&&this['_eventUnsubscribe']();}[_0x17995c(0x2bc)](){const _0x1f2086=_0x17995c;var _0xcee9a2;const {_docSkeleton:_0x5b352c,_document:_0x192e43}=this,{color:_0x211478,name:_0xe4ac21,ranges:_0x87b0d7}=this[_0x1f2086(0x1ee)],_0xbea826=_0x192e43['getOffsetConfig'](),{docsLeft:_0x77ca69,docsTop:_0x11f81b}=_0xbea826,_0x3f1287=new _0x2b24bd(_0xbea826,_0x5b352c);for(const {startOffset:_0x50accd,endOffset:_0x1655cf,rangeType:_0x1d10a7,segmentId:_0xc9a9db,segmentPage:_0x4be7d7,collapsed:_0x4bf827,isActive:_0x28eeed}of _0x87b0d7){const _0x42d113=_0x5b352c[_0x1f2086(0x207)](_0x50accd,!0x0,_0xc9a9db,_0x4be7d7);let _0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf,!0x0,_0xc9a9db,_0x4be7d7);if(_0x3829f0==null&&(_0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf-0x1,!0x1,_0xc9a9db,_0x4be7d7)),_0x28eeed){const {contentBoxPointGroup:_0x4ee92b}=_0x3f1287[_0x1f2086(0x2b3)](_0x3829f0,_0x3829f0);if(_0x4ee92b['length']===0x0)continue;this[_0x1f2086(0x1e9)](_0x211478,_0x4ee92b,_0x77ca69,_0x11f81b,_0xe4ac21),this[_0x1f2086(0x223)]=this[_0x1f2086(0x17e)]();}if(_0x42d113&&_0x3829f0){if(_0x1d10a7===_0x461746[_0x1f2086(0x1aa)]){const _0x3c04f3=new _0x3e66b9(_0xbea826,_0x5b352c),{pointGroup:_0x3a9ad1}=(_0xcee9a2=_0x3c04f3['getRangePointData'](_0x42d113,_0x3829f0))!=null?_0xcee9a2:{};if(_0x3a9ad1==null||_0x3a9ad1['length']===0x0)continue;this[_0x1f2086(0x21d)](_0x211478,_0x3a9ad1,_0x77ca69,_0x11f81b);}else{if(!_0x4bf827){const {borderBoxPointGroup:_0x4366b4}=_0x3f1287['getRangePointData'](_0x42d113,_0x3829f0);if(_0x4366b4[_0x1f2086(0x28b)]===0x0)continue;this[_0x1f2086(0x1fc)](_0x211478,_0x4366b4,_0x77ca69,_0x11f81b);}}}}}[_0x17995c(0x1e9)](_0x3d0864,_0x595418,_0x22b852,_0x483603,_0x53610d){const _0x36f0e7=_0x17995c,_0x110657=this['_getAnchorBounding'](_0x595418),{left:_0x45c4cd,top:_0x546e1e,height:_0x56da22}=_0x110657,_0x51ef45=this[_0x36f0e7(0x156)](),_0x22554b=Gi/_0x51ef45,_0xcc7e7c=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603,'height':_0x56da22,'width':Xi,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':_0x22554b,'stroke':Ki,'evented':!0x0});this[_0x36f0e7(0x21e)]=_0xcc7e7c,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0xcc7e7c,_0x5f5b0d);const _0x1fd3fd=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Te/0x2,'height':Te,'width':Te,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':0x0,'stroke':_0x3d0864||_0x311d32(_0x4a1af7[_0x36f0e7(0x140)],0x0),'evented':!0x1});this['_anchorDot']=_0x1fd3fd,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x1fd3fd,_0x5f5b0d);const _0x3cf7b4=new me(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Q,'text':_0x53610d,'color':_0x3d0864});this[_0x36f0e7(0x117)]=_0x3cf7b4,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x3cf7b4,_0x5f5b0d),this[_0x36f0e7(0x1d2)]=!0x1;}['_handleHover'](){const _0x2bb7bb=_0x17995c,_0x1a8145=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x2ac)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x86fb69=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x249)][_0x2bb7bb(0x2bd)](()=>{const _0x564d2b=_0x2bb7bb;this['_hideTimer']&&clearTimeout(this[_0x564d2b(0x255)]),this[_0x564d2b(0x255)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x11b653=_0x2bb7bb;_0x1a8145[_0x11b653(0x271)](),_0x86fb69[_0x11b653(0x271)]();};}['_drawTextRange'](_0x1537b6,_0x43bc48,_0x415d27,_0x135c2e){const _0x5f297d=_0x17995c,_0x5143aa=new _0x109ebd(_0x1537b6)['setAlpha'](0.2)[_0x5f297d(0x2a1)](),_0xb09c3e=new _0x4b441d(Vi+_0x25c646(z),{'pointsGroup':_0x43bc48,'fill':_0x5143aa||_0x311d32(_0x4a1af7[_0x5f297d(0x140)],0.2),'left':_0x415d27,'top':_0x135c2e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f297d(0x133)][_0x5f297d(0x272)](_0xb09c3e),this[_0x5f297d(0x15e)][_0x5f297d(0x1a6)](_0xb09c3e,_0x5f5b0d);}['_drawRectRange'](_0x2bb2fe,_0x39ca98,_0x4654d6,_0x130499){const _0x50c8c3=_0x17995c,_0x22d122=new _0x109ebd(_0x2bb2fe)['setAlpha'](0.2)[_0x50c8c3(0x2a1)](),_0x4292a7=new _0x4b441d(ji+_0x25c646(z),{'pointsGroup':_0x39ca98,'fill':_0x22d122||_0x311d32(_0x4a1af7[_0x50c8c3(0x140)],0.2),'left':_0x4654d6,'top':_0x130499,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50c8c3(0x133)]['push'](_0x4292a7),this[_0x50c8c3(0x15e)][_0x50c8c3(0x1a6)](_0x4292a7,_0x5f5b0d);}[_0x17995c(0xb9)](_0x397888){const _0x2ee61c=_0x397888[0x0],_0x506c6e=_0x2ee61c[0x0],_0x4fe67c=_0x2ee61c[0x2],{x:_0x1ea9f6,y:_0x26ad8}=_0x506c6e,{x:_0x5e52dc,y:_0x482d97}=_0x4fe67c;return{'left':_0x1ea9f6,'top':_0x26ad8,'width':_0x5e52dc-_0x1ea9f6,'height':_0x482d97-_0x26ad8};}[_0x17995c(0x156)](){const _0x4fc046=_0x17995c,{scaleX:_0x36dc70,scaleY:_0x2d79ed}=this[_0x4fc046(0x15e)]['getAncestorScale']();return Math[_0x4fc046(0x12b)](_0x36dc70,_0x2d79ed);}}var zi=Object[_0x17995c(0x153)],Ji=(_0x322a5d,_0x5db957,_0x1781f2,_0x3fba08)=>{const _0xac7786=_0x17995c;for(var _0x5bf690=_0x3fba08>0x1?void 0x0:_0x3fba08?zi(_0x5db957,_0x1781f2):_0x5db957,_0x623d9a=_0x322a5d[_0xac7786(0x28b)]-0x1,_0x5bbd19;_0x623d9a>=0x0;_0x623d9a--)(_0x5bbd19=_0x322a5d[_0x623d9a])&&(_0x5bf690=_0x5bbd19(_0x5bf690)||_0x5bf690);return _0x5bf690;},ie=(_0x5f2645,_0x35b057)=>(_0x3e1884,_0x4d38e2)=>_0x35b057(_0x3e1884,_0x4d38e2,_0x5f2645);let ye=class extends _0x53201b{constructor(_0x51a3b4,_0xef8eca,_0x5de965,_0x4f9219,_0x1bc0e5){const _0x456f46=_0x17995c;super(),l(this,_0x456f46(0x8e),[]),l(this,_0x456f46(0x136),[]),(this[_0x456f46(0xf6)]=_0x51a3b4,this[_0x456f46(0x9d)]=_0xef8eca,this[_0x456f46(0x25c)]=_0x5de965,this[_0x456f46(0x1ed)]=_0x4f9219,this[_0x456f46(0x143)]=_0x1bc0e5,this[_0x456f46(0x11f)]());}[_0x17995c(0x11f)](){const _0x94378a=_0x17995c,_0x1ede84=this[_0x94378a(0xf6)][_0x94378a(0x27b)],_0x5240bc=this[_0x94378a(0x9d)];this[_0x94378a(0x1c2)](_0x524282([this[_0x94378a(0x25c)]['getCollabCursors$'](_0x1ede84),this['_themeService'][_0x94378a(0x1bd)]])[_0x94378a(0x269)](_0x248c7f(([_0x24106e,_0x2db39a])=>({'skeleton':_0x5240bc[_0x94378a(0x1ae)](),'cursors':[..._0x24106e[_0x94378a(0x161)]()]['flatMap'](_0x562784=>({..._0x562784,'color':this['_themeService'][_0x94378a(0x28a)](_0x562784[_0x94378a(0x1b1)])}))})))[_0x94378a(0x158)](_0x23f105=>{if(this['_removeCollabCursors'](),_0x23f105){const {skeleton:_0xd2af7,cursors:_0x27630c}=_0x23f105;this['_updateCollabCursors'](_0xd2af7,_0x27630c);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x3e1ac5,_0x1cd42d){const _0x134bea=_0x17995c,{scene:_0x405428,mainComponent:_0x11b563}=this[_0x134bea(0xf6)],_0x5c712a=_0x1cd42d[_0x134bea(0x14e)](_0xe070bd=>new nt(_0xe070bd,_0x405428,_0x3e1ac5,_0x11b563));this['_cursorShapes']=_0x5c712a,this['_cursors']=_0x1cd42d;}[_0x17995c(0x99)](){const _0x36100f=_0x17995c;this[_0x36100f(0x1f4)]();const {scene:_0x6281f7,mainComponent:_0x385864}=this[_0x36100f(0xf6)],_0x8cda5f=this[_0x36100f(0x9d)][_0x36100f(0x1ae)](),_0x1d5061=this['_cursors'][_0x36100f(0x14e)](_0x266632=>new nt(_0x266632,_0x6281f7,_0x8cda5f,_0x385864));this[_0x36100f(0x8e)]=_0x1d5061;}['_removeCollabCursors'](){const _0x4f5918=_0x17995c;this[_0x4f5918(0x8e)][_0x4f5918(0xbe)](_0x473eba=>_0x473eba[_0x4f5918(0x2b4)]()),this[_0x4f5918(0x8e)]=[];}[_0x17995c(0x103)](){const _0x3410a2=_0x17995c,_0x35d56e=[_0x7dd482['id']];this['disposeWithMe'](this[_0x3410a2(0x1ed)][_0x3410a2(0x162)](_0x39b0bd=>{const _0x46de66=_0x3410a2;_0x35d56e[_0x46de66(0x16e)](_0x39b0bd['id'])&&_0x39b0bd[_0x46de66(0x166)][_0x46de66(0x27b)]===this['_context'][_0x46de66(0x27b)]&&this[_0x46de66(0x99)]();}));}[_0x17995c(0x20c)](){const _0x261f7f=_0x17995c;this[_0x261f7f(0x1c2)](_0x1f3ae9(this[_0x261f7f(0xf6)]['engine'][_0x261f7f(0x239)])[_0x261f7f(0x269)](_0x3f54ce(_0x1adf1d=>_0x1adf1d[_0x261f7f(0x21b)]===_0x19661c[_0x261f7f(0x1c0)]),_0x53d2a8(0x10))[_0x261f7f(0x158)](()=>{const _0x552add=_0x261f7f;this[_0x552add(0x99)]();}));}};ye=Ji([ie(0x1,_0x11a278(_0x33174f)),ie(0x2,_0x11a278(H)),ie(0x3,_0x31e8e2),ie(0x4,_0x11a278(_0x3e584d))],ye);const Zi=0x1,Qi=1.5;class qi extends _0xd80c53{constructor(_0x321184,_0x34996c){const _0x52db11=_0x17995c;super(_0x321184,_0x34996c),l(this,_0x52db11(0x137)),l(this,_0x52db11(0x1c6),!0x1),l(this,_0x52db11(0xf5)),l(this,_0x52db11(0x2b9),''),l(this,_0x52db11(0x22f),_0x52db11(0x128)),l(this,_0x52db11(0x27c)),(_0x34996c&&this['setShapeProps'](_0x34996c),this[_0x52db11(0x2ac)]['subscribeEvent'](()=>this[_0x52db11(0x98)]({'hovered':!0x0})),this[_0x52db11(0x249)][_0x52db11(0x2bd)](()=>this[_0x52db11(0x98)]({'hovered':!0x1})));}[_0x17995c(0x98)](_0x26cabe){const _0x159739=_0x17995c;var _0xa9916c,_0x5b399f,_0x30bb58,_0x581f06,_0x4f050f,_0x526a9c;this[_0x159739(0x137)]=(_0xa9916c=_0x26cabe['color'])!=null?_0xa9916c:this[_0x159739(0x137)],this[_0x159739(0x1c6)]=(_0x5b399f=_0x26cabe[_0x159739(0x169)])!=null?_0x5b399f:this[_0x159739(0x1c6)],this[_0x159739(0xf5)]=(_0x30bb58=_0x26cabe[_0x159739(0x105)])!=null?_0x30bb58:this[_0x159739(0xf5)],this[_0x159739(0x2b9)]=(_0x581f06=_0x26cabe[_0x159739(0x13a)])!=null?_0x581f06:this['_name'],this[_0x159739(0x22f)]=(_0x4f050f=_0x26cabe[_0x159739(0x1e8)])!=null?_0x4f050f:this[_0x159739(0x22f)],this['_backgroundColor']=(_0x526a9c=_0x26cabe[_0x159739(0x1fd)])!=null?_0x526a9c:this['_backgroundColor'],this[_0x159739(0x15a)]({'width':_0x26cabe['width'],'height':_0x26cabe[_0x159739(0x2be)]});}[_0x17995c(0x2b0)](_0x1b4d9e){const _0x25bc84=_0x17995c,{row:_0x246701,column:_0x708d4f}=_0x1b4d9e;if(_0x246701>=this['_range'][_0x25bc84(0xb3)]&&_0x246701<=this[_0x25bc84(0xf5)]['endRow']&&_0x708d4f>=this[_0x25bc84(0xf5)][_0x25bc84(0x1c7)]&&_0x708d4f<=this[_0x25bc84(0xf5)][_0x25bc84(0x17b)]){this[_0x25bc84(0x98)]({'hovered':!0x0});return;}this[_0x25bc84(0x98)]({'hovered':!0x1});}['triggerDblclick'](_0x34be75){return!0x1;}[_0x17995c(0x19e)](_0x4283cf){const _0x9973ca=_0x17995c;_0x27916c[_0x9973ca(0x178)](_0x4283cf,{'width':this[_0x9973ca(0x213)],'height':this[_0x9973ca(0x2be)],'strokeWidth':Qi,'stroke':this[_0x9973ca(0x137)],'evented':!0x1,'fill':this[_0x9973ca(0x27c)]}),this['_hovered']&&(_0x4283cf[_0x9973ca(0xb8)](),_0x4283cf['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x9973ca(0x168)?0x0:-Q),me['drawWith'](_0x4283cf,{'text':this[_0x9973ca(0x2b9)],'color':this[_0x9973ca(0x137)]}),_0x4283cf[_0x9973ca(0x88)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0xc3026c,_0x3b6d53,_0x3b8d08,_0x3c94e5)=>{const _0x2733ab=_0x17995c;for(var _0x86d718=_0x3c94e5>0x1?void 0x0:_0x3c94e5?en(_0x3b6d53,_0x3b8d08):_0x3b6d53,_0x47504d=_0xc3026c[_0x2733ab(0x28b)]-0x1,_0x5b3ea1;_0x47504d>=0x0;_0x47504d--)(_0x5b3ea1=_0xc3026c[_0x47504d])&&(_0x86d718=_0x5b3ea1(_0x86d718)||_0x86d718);return _0x86d718;},Ce=(_0x25dd75,_0x10b524)=>(_0x3d1d80,_0x40760b)=>_0x10b524(_0x3d1d80,_0x40760b,_0x25dd75);const sn=0x1389;let $e=class extends _0x53201b{constructor(_0x2a3621,_0x20db61,_0x34879d,_0x49239e){const _0x25a698=_0x17995c;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this[_0x25a698(0xf6)]=_0x2a3621,this[_0x25a698(0x174)]=_0x20db61,this[_0x25a698(0x25c)]=_0x34879d,this['_themeService']=_0x49239e,this[_0x25a698(0x11f)]());}[_0x17995c(0x11f)](){const _0x5b6100=_0x17995c;this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x269)](_0x5050e3(this['dispose$']),_0x4613aa(_0x793257=>{const _0x4e5576=_0x5b6100;if(_0x793257){const _0x23327b=_0x793257[_0x4e5576(0x214)];return _0x524282(this['_collabCursorController'][_0x4e5576(0x245)](this['_context'][_0x4e5576(0x27b)]),this[_0x4e5576(0x143)]['currentTheme$'])['pipe'](_0x248c7f(([_0xa69828,_0x19eaf0])=>{const _0x46850e=_0x4e5576,_0x21d369=new Map();return _0xa69828[_0x46850e(0xbe)]((_0x17df51,_0x2c8db8)=>{const _0x5f0d2c=_0x46850e;if(_0x17df51[_0x5f0d2c(0x22a)]===_0x23327b){const _0x3ed736={..._0x17df51};_0x3ed736['color']=this['_themeService'][_0x5f0d2c(0x28a)](_0x17df51[_0x5f0d2c(0x1b1)]),_0x21d369[_0x5f0d2c(0xc9)](_0x2c8db8,_0x3ed736);}}),{'skeleton':_0x793257,'cursors':_0x21d369};}));}return _0x461f63({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d60f8,cursors:_0x59df42})=>{const _0x461ba4=_0x5b6100;this[_0x461ba4(0x1f4)](),_0x1d60f8&&this[_0x461ba4(0x175)](_0x1d60f8,_0x59df42);}),this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x158)](_0x1f9ec8=>{const _0x29a172=_0x5b6100;if(_0x1f9ec8==null)return;const {skeleton:_0x76c097}=_0x1f9ec8,{scene:_0x8ff3cd}=this[_0x29a172(0xf6)];_0x8ff3cd[_0x29a172(0x274)][_0x29a172(0x2bd)](_0x302608(_0x3cd2a7=>{const _0x3b5388=_0x29a172;var _0x22b5b3,_0x94cbfa;const {offsetX:_0x127028,offsetY:_0x41925c}=_0x3cd2a7,{x:_0xfd07b1,y:_0x553c02}=_0x8ff3cd[_0x3b5388(0x11e)](_0x58f725[_0x3b5388(0x2b7)]([_0x127028,_0x41925c])),{scaleX:_0x204881,scaleY:_0x20c155}=_0x8ff3cd[_0x3b5388(0x2ba)](),_0x4e23b5=_0x8ff3cd[_0x3b5388(0x11d)](_0x2389fc[_0x3b5388(0x184)]),_0x3aab02=_0x8ff3cd[_0x3b5388(0x1c5)](_0x58f725[_0x3b5388(0x2b7)]([_0xfd07b1,_0x553c02]),_0x4e23b5),_0xf58e9c=_0x76c097['getCellPositionByOffset'](_0x127028,_0x41925c,_0x204881,_0x20c155,_0x3aab02);((_0x22b5b3=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x22b5b3['column'])===_0xf58e9c[_0x3b5388(0x14c)]&&((_0x94cbfa=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x94cbfa[_0x3b5388(0x101)])===_0xf58e9c[_0x3b5388(0x101)]||this['_cursors'][_0x3b5388(0xbe)](_0xd45398=>{const _0x21c009=_0x3b5388;_0xd45398[_0x21c009(0x2b0)](_0xf58e9c);});},0x64));});}['_updateCollabCursors'](_0x5220b,_0x3f28df){const _0x4e44c5=_0x17995c;var _0x102a5c;const _0x34d85f=(_0x102a5c=this[_0x4e44c5(0x174)][_0x4e44c5(0x25f)]())==null?void 0x0:_0x102a5c['skeleton'];if(!_0x34d85f)return;const _0x1e7395=this[_0x4e44c5(0x25b)]();if(!_0x1e7395)return;this[_0x4e44c5(0x136)]['forEach'](_0x199723=>{const _0x557551=_0x4e44c5;_0x199723[_0x557551(0x1dc)]();});const {scene:_0x347c57}=_0x1e7395,_0x287e07=nn(Array[_0x4e44c5(0x294)](_0x3f28df[_0x4e44c5(0x161)]()))[_0x4e44c5(0x14e)](_0x431a8d=>{const {color:_0x10ef06,range:_0x292f7e,name:_0x206409,selection:_0x2f129b,sheetID:_0x44bc3e}=_0x431a8d,{startColumn:_0x44ea73,startRow:_0x4b8992,endColumn:_0x36a2f1,endRow:_0x148425}=_0x292f7e,_0x205a4b=_0x2f11d6(_0x4b8992,_0x44ea73,_0x347c57,_0x34d85f),_0x538ad5=_0x2f11d6(_0x148425,_0x36a2f1,_0x347c57,_0x34d85f),{columnHeaderHeightAndMarginTop:_0x2e0be3}=_0x34d85f,{startX:_0x4e0ee1,startY:_0x49ebec}=_0x205a4b,{endX:_0x52f7e6,endY:_0x35fed8}=_0x538ad5,_0x502c70=_0x52f7e6-_0x4e0ee1,_0x2be93f=_0x35fed8-_0x49ebec,_0x23b0f5={'labelPosition':_0x49ebec-_0x2e0be3>=Q?'top':'bottom','sheetID':_0x44bc3e,'range':_0x292f7e,'color':_0x10ef06,'name':_0x206409,'selection':_0x2f129b,'left':_0x4e0ee1,'top':_0x49ebec,'width':_0x502c70,'height':_0x2be93f,'evented':!0x1,'zIndex':sn};return new qi(_0x206409,_0x23b0f5);});_0x347c57[_0x4e44c5(0x299)](_0x287e07,Zi),this[_0x4e44c5(0x136)]=new Set(_0x287e07);}[_0x17995c(0x1f4)](){const _0x565ade=_0x17995c;var _0x4281a2;(_0x4281a2=this['_cursors'])==null||_0x4281a2['forEach'](_0x269769=>_0x269769[_0x565ade(0x2b4)]());}['_getSheetObject'](){const _0x3d964f=_0x17995c;return _0x1f24ae(this[_0x3d964f(0xf6)][_0x3d964f(0x20d)],this[_0x3d964f(0xf6)]);}};$e=tn([Ce(0x1,_0x11a278(_0x2fc12d)),Ce(0x2,_0x11a278(H)),Ce(0x3,_0x11a278(_0x3e584d))],$e);function nn(_0x57f747){const _0x2c96ea=_0x17995c,_0xc25cc2=new Map();return _0x57f747['forEach'](_0x363672=>{const _0x5b01a3=_0x220d;if(_0xc25cc2[_0x5b01a3(0x2a9)](_0x363672[_0x5b01a3(0x241)])){const _0x3e2058=_0xc25cc2['get'](_0x363672[_0x5b01a3(0x241)]);_0x3e2058[_0x5b01a3(0x13a)]+=',\x20'+_0x363672[_0x5b01a3(0x13a)];}else _0xc25cc2[_0x5b01a3(0xc9)](_0x363672['selection'],_0x363672);}),Array[_0x2c96ea(0x294)](_0xc25cc2[_0x2c96ea(0x161)]());}var rn=Object[_0x17995c(0x153)],on=(_0x5d1b1f,_0x2285b2,_0x4b11b6,_0x5a7cde)=>{const _0x517033=_0x17995c;for(var _0x211869=_0x5a7cde>0x1?void 0x0:_0x5a7cde?rn(_0x2285b2,_0x4b11b6):_0x2285b2,_0x4697e7=_0x5d1b1f[_0x517033(0x28b)]-0x1,_0xf598d;_0x4697e7>=0x0;_0x4697e7--)(_0xf598d=_0x5d1b1f[_0x4697e7])&&(_0x211869=_0xf598d(_0x211869)||_0x211869);return _0x211869;},F=(_0x1f38f6,_0x55f547)=>(_0x32c7f4,_0x1fe8fe)=>_0x55f547(_0x32c7f4,_0x1fe8fe,_0x1f38f6);let ce=class extends _0x29710c{constructor(_0x33d786,_0x22b10e,_0x2ac67d,_0xab289d,_0x45e198,_0x3c3078){const _0x229823=_0x17995c;super(),this[_0x229823(0x129)]=_0x33d786,this[_0x229823(0x259)]=_0x22b10e,this[_0x229823(0x185)]=_0x2ac67d,this[_0x229823(0x93)]=_0xab289d,this[_0x229823(0x2bb)]=_0x45e198,this[_0x229823(0x13c)]=_0x3c3078,this[_0x229823(0x2c0)](),this['_initEvent']();}[_0x17995c(0x2c0)](){const _0x4295fd=_0x17995c;this[_0x4295fd(0x1c2)](this[_0x4295fd(0x129)]['registerBeforeClose'](()=>{const _0x336e60=_0x4295fd;if(this[_0x336e60(0x259)][_0x336e60(0xa7)][_0x336e60(0x16f)])return this[_0x336e60(0x13c)]['t'](_0x336e60(0x273));}));}[_0x17995c(0x111)](){const _0x20ead3=_0x17995c;this[_0x20ead3(0x1c2)](this[_0x20ead3(0x185)]['event$']['subscribe'](_0x17c35f=>{const _0x1c1a2f=_0x20ead3;_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0xf1)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x228))}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x12a)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))}),_0x17c35f['id']===_0x38ed89['PERMISSION_DENIED']&&this[_0x1c1a2f(0x2bb)][_0x1c1a2f(0xfe)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x1c1a2f(0x186)),'type':_0x1c1a2f(0x205),'duration':0x0}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x14f)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))+'('+_0x17c35f[_0x1c1a2f(0x279)]+')'}),_0x17c35f['id']===_0x38ed89['JOIN_ROOM_FAILED']&&this['_messageService'][_0x1c1a2f(0xfe)]({'type':_0x2001e5['Warning'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x17c35f[_0x1c1a2f(0x279)]||'')}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x24f)]&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t']('session.will-retry')}),_0x17c35f['id']===_0x38ed89['SOCKET_FAILED']&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5['Error'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1bb))}),_0x17c35f['id']===_0x38ed89['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1cf))});}));}};ce=on([F(0x0,_0x225f15),F(0x1,_0x3a200a),F(0x2,_0x11a278(_0x372bc6)),F(0x3,_0xc5e3ee),F(0x4,_0x503e3e),F(0x5,_0x11a278(_0x5bea2a))],ce);const an=_0x17995c(0x26e),rt={};var cn=Object[_0x17995c(0x153)],_n=(_0x5418de,_0x524800,_0x156b49,_0x11aa1c)=>{const _0x23b60a=_0x17995c;for(var _0x1b3265=_0x11aa1c>0x1?void 0x0:_0x11aa1c?cn(_0x524800,_0x156b49):_0x524800,_0x3003ce=_0x5418de[_0x23b60a(0x28b)]-0x1,_0x18951f;_0x3003ce>=0x0;_0x3003ce--)(_0x18951f=_0x5418de[_0x3003ce])&&(_0x1b3265=_0x18951f(_0x1b3265)||_0x1b3265);return _0x1b3265;},ot=(_0x5b1840,_0x1d4c34)=>(_0x2e61bf,_0x2738ed)=>_0x1d4c34(_0x2e61bf,_0x2738ed,_0x5b1840);let _e=class{constructor(_0x2fe5ed,_0x4674e){const _0x4c6ff5=_0x17995c;this[_0x4c6ff5(0x20a)]=_0x2fe5ed,this['_renderManagerService']=_0x4674e;}['transformIMECache'](_0x36cdcf){this['_transformUndoRedoStack'](_0x36cdcf),this['_transformPreviousActiveRange'](_0x36cdcf);}['transformRemoteChangeset'](_0x3e8568){const _0x432cbb=_0x17995c,{unitID:_0x41aa09}=_0x3e8568,_0xc5261b=this[_0x432cbb(0x134)][_0x432cbb(0x107)](_0x41aa09)[_0x432cbb(0x261)](_0x2a0c79),{redoCache:_0x1e00b1}=_0xc5261b[_0x432cbb(0xca)]();if(_0x1e00b1[_0x432cbb(0x28b)]===0x0)return _0x3e8568;let _0x5627e7=_0x8e16b7[_0x432cbb(0x199)](_0x3e8568['mutations'][0x0]);for(let _0x2c5159=0x0;_0x2c5159<_0x1e00b1[_0x432cbb(0x28b)];_0x2c5159++){const _0x27648a={'id':_0x432cbb(0x297),'params':{..._0x1e00b1[_0x2c5159]}},_0x36bf42=this[_0x432cbb(0x20a)][_0x432cbb(0x278)](_0x5627e7,_0x27648a,!0x1);if(_0x55d582(_0x36bf42))throw _0x36bf42[_0x432cbb(0x205)];_0x5627e7=_0x36bf42[_0x432cbb(0x1f2)];}return{..._0x8e16b7[_0x432cbb(0x199)](_0x3e8568),'mutations':[_0x5627e7]};}[_0x17995c(0x123)](_0x167466){const _0x390d04=_0x17995c,{unitID:_0x332d90}=_0x167466,_0x56ff4f=this['_renderManagerService'][_0x390d04(0x107)](_0x332d90)[_0x390d04(0x261)](_0x2a0c79),{undoCache:_0x57b8fa,redoCache:_0x5bb24f}=_0x56ff4f[_0x390d04(0xca)]();if(_0x57b8fa[_0x390d04(0x28b)]===0x0||_0x5bb24f[_0x390d04(0x28b)]===0x0)return;const _0x493a65=[],_0x4ad395=[];let _0xc54562=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]),_0x444714=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]);for(let _0x3872a4=_0x57b8fa['length']-0x1;_0x3872a4>=0x0;_0x3872a4--){const _0x1c2f8e={'id':'doc.mutation.rich-text-editing','params':{..._0x57b8fa[_0x3872a4]}},_0x37e872={'id':'doc.mutation.rich-text-editing','params':{..._0x5bb24f[_0x3872a4]}},_0x356fc6=this['_transformService'][_0x390d04(0x278)](_0xc54562,_0x1c2f8e,!0x1),_0x11fe2d=this[_0x390d04(0x20a)][_0x390d04(0x278)](_0x444714,_0x37e872,!0x1);if(_0x55d582(_0x356fc6))throw _0x356fc6['error'];if(_0x55d582(_0x11fe2d))throw _0x11fe2d['error'];_0x493a65[_0x390d04(0x23e)](_0x356fc6[_0x390d04(0x264)][_0x390d04(0x166)]),_0x4ad395[_0x390d04(0x23e)](_0x11fe2d[_0x390d04(0x264)][_0x390d04(0x166)]),_0xc54562=_0x356fc6[_0x390d04(0x1f2)],_0x444714=_0x11fe2d['m1Prime'];}_0x56ff4f[_0x390d04(0x170)]({'undoCache':_0x493a65,'redoCache':_0x4ad395});}['_transformPreviousActiveRange'](_0x27af39){const _0x1e77c5=_0x17995c,{unitID:_0x160fee}=_0x27af39,_0x4df009=this[_0x1e77c5(0x134)][_0x1e77c5(0x107)](_0x160fee)['with'](_0x2a0c79),_0x245607=_0x4df009[_0x1e77c5(0xa2)]();if(_0x245607==null)return;const _0x5710eb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27af39['unitID'],'actions':null,'textRanges':[_0x245607]}}],_0x43c25e=this['_transformService'][_0x1e77c5(0x203)](_0x27af39,_0x5710eb);if(!_0x4b8ff0(_0x43c25e))throw _0x43c25e[_0x1e77c5(0x205)];const _0x425d75=_0x43c25e[_0x1e77c5(0x264)][0x0][_0x1e77c5(0x166)][_0x1e77c5(0x1b6)];Array['isArray'](_0x425d75)&&_0x425d75['length']&&_0x4df009[_0x1e77c5(0x1f8)](_0x425d75[0x0]);}};_e=_n([ot(0x0,_0x1a6bde),ot(0x1,_0x4b49a7)],_e);var ln=Object[_0x17995c(0x153)],hn=(_0x43effd,_0x1847d1,_0x1b809c,_0x18ece9)=>{for(var _0x4934eb=_0x18ece9>0x1?void 0x0:_0x18ece9?ln(_0x1847d1,_0x1b809c):_0x1847d1,_0x40a609=_0x43effd['length']-0x1,_0x5cd4bf;_0x40a609>=0x0;_0x40a609--)(_0x5cd4bf=_0x43effd[_0x40a609])&&(_0x4934eb=_0x5cd4bf(_0x4934eb)||_0x4934eb);return _0x4934eb;},Re=(_0x5d2874,_0x1405cf)=>(_0x36db53,_0x13aa94)=>_0x1405cf(_0x36db53,_0x13aa94,_0x5d2874);let le=class{constructor(_0x3ce797,_0x471c66,_0x352fff){const _0x1c0e5a=_0x17995c;this[_0x1c0e5a(0x287)]=_0x3ce797,this[_0x1c0e5a(0x20a)]=_0x471c66,this['_docStateChangeManagerService']=_0x352fff;}[_0x17995c(0x21f)](_0x101575){const _0x555f1a=_0x17995c;this[_0x555f1a(0xf3)](_0x101575);}[_0x17995c(0xb1)](_0x2d5bc2){const _0xa403c6=_0x17995c,{unitID:_0x485481}=_0x2d5bc2,{collaboration:_0x41e519}=this[_0xa403c6(0x106)][_0xa403c6(0x191)](_0x485481);if(_0x41e519[_0xa403c6(0x28b)]===0x0)return _0x2d5bc2;let _0x379a17=_0x8e16b7[_0xa403c6(0x199)](_0x2d5bc2[_0xa403c6(0xe4)][0x0]);for(let _0x5aab0c=0x0;_0x5aab0c<_0x41e519[_0xa403c6(0x28b)];_0x5aab0c++){const _0xb0feda={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41e519[_0x5aab0c][_0xa403c6(0x27b)],..._0x41e519[_0x5aab0c][_0xa403c6(0xfb)]}},_0x55e11a=this[_0xa403c6(0x20a)]['transformMutation'](_0x379a17,_0xb0feda,!0x1);if(_0x55d582(_0x55e11a))throw _0x55e11a[_0xa403c6(0x205)];_0x379a17=_0x55e11a['m1Prime'];}return{..._0x8e16b7['deepClone'](_0x2d5bc2),'mutations':[_0x379a17]};}[_0x17995c(0xf3)](_0x2cb528){const _0x288cbe=_0x17995c,{unitID:_0x3f8d05}=_0x2cb528,{history:_0x286b06,collaboration:_0x17a354}=this[_0x288cbe(0x106)][_0x288cbe(0x191)](_0x3f8d05);if(_0x286b06[_0x288cbe(0x28b)]===0x0&&_0x17a354[_0x288cbe(0x28b)]===0x0)return;const _0x572681=[],_0x2da08f=[];let _0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]),_0x3eb19f=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x16a631=_0x286b06[_0x288cbe(0x28b)]-0x1;_0x16a631>=0x0;_0x16a631--){const _0x576e72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0x220)]}},_0x215003={'id':_0x288cbe(0x297),'params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0xfb)]}},_0x3e46f4=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x576e72,!0x1),_0x4ebf14=this[_0x288cbe(0x20a)]['transformMutation'](_0x3eb19f,_0x215003,!0x1);if(_0x55d582(_0x3e46f4))throw _0x3e46f4[_0x288cbe(0x205)];if(_0x55d582(_0x4ebf14))throw _0x4ebf14[_0x288cbe(0x205)];_0x572681['unshift']({..._0x286b06[_0x16a631],'undoState':_0x3e46f4[_0x288cbe(0x264)][_0x288cbe(0x166)],'redoState':_0x4ebf14[_0x288cbe(0x264)][_0x288cbe(0x166)]}),_0x22fb76=_0x3e46f4[_0x288cbe(0x1f2)],_0x3eb19f=_0x4ebf14[_0x288cbe(0x1f2)];}_0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528['mutations'][0x0]),_0x3eb19f=_0x8e16b7['deepClone'](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x40385e=_0x17a354[_0x288cbe(0x28b)]-0x1;_0x40385e>=0x0;_0x40385e--){const _0x7e5013={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e]['unitId'],..._0x17a354[_0x40385e]['undoState']}},_0x246a40={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e][_0x288cbe(0x27b)],..._0x17a354[_0x40385e][_0x288cbe(0xfb)]}},_0x2db2e1=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x7e5013,!0x1),_0xd5bfcb=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x3eb19f,_0x246a40,!0x1);if(_0x55d582(_0x2db2e1))throw _0x2db2e1[_0x288cbe(0x205)];if(_0x55d582(_0xd5bfcb))throw _0xd5bfcb[_0x288cbe(0x205)];_0x2da08f[_0x288cbe(0x23e)]({..._0x17a354[_0x40385e],'undoState':_0x2db2e1[_0x288cbe(0x264)]['params'],'redoState':_0xd5bfcb[_0x288cbe(0x264)]['params']}),_0x22fb76=_0x2db2e1[_0x288cbe(0x1f2)],_0x3eb19f=_0xd5bfcb[_0x288cbe(0x1f2)];}this[_0x288cbe(0x106)][_0x288cbe(0x121)](_0x3f8d05,{'history':_0x572681,'collaboration':_0x2da08f});}};le=hn([Re(0x0,_0x11a278(_0x426398)),Re(0x1,_0x1a6bde),Re(0x2,_0x11a278(_0x2d3bec))],le);function _0x2c3e(){const _0x1aae8b=['INVITE_CODE_HAS_BEEN_UES','onTransformChange$','YUUMI_ASYNCIO_CANCELLED','_toggleOnline','exhaustSavingTask','getCurrentSelections','unshift','_docTransformIMECacheService','_showGuardMessage','selection','CHANGESET_REVISION_CONFILICT','_heartbeatTimer','collabStatus.notCollab','getCollabCursors$','CONNECTOR_DATA_TOO_LARGE','_document','collabCursorState$','onPointerLeave$','_onCursorUpdate','trim','_docTransformSelectionsService','_collaborationController','debug','SOCKET_FAILED_RETRY','_entities','unitID','contains','_docSyncEditingCollabCursorService','wsSessionTicketUrl','_hideTimer','createInstance','_scheduleHeartbeat','_colorIndex','_localCacheService','transformIMECache','_getSheetObject','_collabCursorController','add','complete','getCurrent','collabStatus.synced','with','isActive','OTHER_CLIENTS_EDITING','m2Prime','get','ERROR_AGAIN','_syncEditingCollabCursorService','subunit','pipe','MUTATION','green.600','storage','updateOfflineData','collaboration-client-ui.config','event$','_saveTaskMap','unsubscribe','push','collaboration-client.offline-data-not-saved','onPointerMove$','APPLY_PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','removeParam','transformMutation','data','_initStatusComponent','unitId','_backgroundColor','releaseFormulaLimitUrl','_updateSubUnitFromURLParams','defs','APPLY_REVISION_CONFILICT','[CollaborationDataLoaderController]','search','_assignedColors','...','isArray','closePath','_injector','functionsExecutedState','_checkCalculationAvailable','getColorFromTheme','length','eventID','OFFLINE','PAYMENT_CHANNEL_NOT_SUPPORT','addEventListener','_univerInstanceService','font','UNAUTHENTICATED','79631xAWklZ','from','InsertRowCommandId','USER_NOT_FOUND','doc.mutation.rich-text-editing','LOGIN_FAILED','addObjects','sessionStatus$','_applyCommand','getMemberID','code','TEXT','REDEMPTION_CODE_HAS_BEEN_CREATED','_getSaveTimeout','toRgbString','_setFormulaLimitStatus','lineTo','getActiveSheet','now','url(#off-line-icon_clip0_910_343)','_disabled','_lastResponseTimestamp','has','on-line-icon','APPLY_DUPLICATED','onPointerEnter$','location','_id','getMember','onMouseMove','parse','endRow','getRangePointData','dispose','disposeUnit','key','FromArray','_getFormulaLimitStatus','_name','getAncestorScale','_notificationService','_render','subscribeEvent','height','_handleJoinEvent','_setupBeforeClosingHandler','getSheetBySheetId','restore','6469331BTXpXu','ENTITLE_NEED_BILLING_ADDRESS','USER_IS_ANONYMOUS','AUTHORIZE_CODE_ILLEGAL','96956vtGhMs','_cursorShapes','measureText','clipPath','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_DOC','_messageService','transformSelections','enableLocalCache','_scheduleSaving','_urlService','setShapeProps','_refreshCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','10bymMwo','LICENSE_IMPORT_SIZE_EXCEEDED','_docSkeletonManagerService','executionId','UNRECOGNIZED','6635kTlWCz','colorChannel1','getActiveRange','PERMISSION_DENIED','blue.400','assign','dirtyRanges','saveTaskMap','loadOfflineData','getSheetId','formula.calculation.waiting','addClipboardHook','_handleLeaveEvent','none','ticket','HEADER_MENU','currentColor','transformRemoteChangeset','_revisionService','startRow','attrs','red.300','RemoveColCommandId','registerComponent','save','_getAnchorBounding','newValue','_getMergeRange','USER_NOT_INVITED_CODE','_cachedData','forEach','_cursorInfo$','_localStorageService','REDEMPTION_CODE_FULLY_REDEEMED','startsWith','_checkAndWaitForCalculationPermission','WECHAT_HAS_BEEN_BOUND','_anchorDot','activeSheet$','DeleteRangeMoveLeftCommandId','asObservable','set','getUndoRedoMutationParamsCache','hide','result','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','uni.network.url-service','parseInt','use','find','onLocalMutation','_initEntityListener','_scheduleClearOtherTimer','USERS_LEAVE','LOGIN_TOKEN_PROCESSING_FAILED','symbol','split','dispose$','getTypeOfUnitDisposed$','registerRenderModule','limitInfo','svg','Unknown\x20user','pluginName','/universer-api/license/formula/limit/status','whenReady','requireSession','mutations','syncEditingCollabCursor','min','YUUMI_ALL_TABLES_IS_INVALID','getUnit','searchParams','REDEMPTION_USER_NOT_ELIGIBLE','delete','collabStatus.syncing','REDEMPTION_CODE_INACTIVE','post','translate(.97)','NO_OTHER_CLIENTS_EDITING','OTHER_CLIENT_EDITING','next','_transformHistoryAndStateStack','beforeCommandExecuted','_range','_context','_status$','setTimeout','CURRENT_STATUS_CANNOT_OPERATE','collabStatus.fetchMiss','redoState','setItem','loadUnit','show','UPDATE_CURSOR','override','row','replaceState','_initCommandExecutedListener','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','range','_docStateChangeManagerService','getRenderById','_registerRenderDependencies','text','urlChange$','entityInit$','YUUMI_SUBSCRIPTION_NOT_FOUND','getUnitId','clearTimeout','_entityInit$','_taskIds','_initEvent','InsertRangeMoveRightCommandId','_ensureSubject','_send','_doCreateSocket','Loading','_textBubble','idSuffix','_docSkeleton','_refRangeService','_handleEvent','getUniverSheetInstance','getViewport','getRelativeToViewportCoord','_init','setInterval','setStateCache','fillStyle','_transformUndoRedoStack','0\x200\x2017\x2016','_collabCursorState$','EMAIL_VERIFY_CODE_MISMATCH','DeleteRangeMoveUpCommandId','top','_beforeCloseService','CLOSE_ROOM','max','3696QOCylF','UNIVER_SHEET','displayName','ONLINE','_selfUnitIDs','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','INVALID_INVITE_CODE','_shapes','_renderManagerService','currentSkeleton$','_cursors','_color','defineProperty','1em','name','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_localeService','beginPath','assignAColorForMemberID','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','black','runId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_themeService','path','INTERNAL_ERROR','getValue','saveImage','isEditing','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','_uiPartsService','column','PY_RUNTIME_SCRIPT_ERROR','map','CONFLICT','roomMembers','startFormulaLimitUrl','REDEMPTION_INVALID_CODE','getOwnPropertyDescriptor','YUUMI_NO_CUBOID_FOR_QUESTION','getCellMatrix','_getScale','Error','subscribe','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','transformByState','yellow.400','_onCursorDelete','_pollingInterval','_scene','68250tHSDNv','random','values','onCommandExecuted','_config','cursorInfo','LICENSE_DISTRO_REJECTED','params','status$','bottom','hovered','history','/universer-api/license/formula/limit/start','_initCommandInterceptor','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','includes','size','setUndoRedoMutationParamsCache','3162SJYRRh','_docClipboardService','_updateURLWithCurrentState','_sheetSkeletonManagerService','_updateCollabCursors','_unitOnClients','getFocusedUnit','drawWith','3668763RZBTYD','stageInfo','endColumn','132HVIQif','shift','_handleHover','substring','imageSourceType','PENDING','href','replace','VIEW_MAIN','_collaborationUIEventService','permission.content','MOBILE_VERIFY_CODE_MISMATCH','_imageIoService','Warning','_getSessionTicket','xlink:href','div','InsertRangeMoveDownCommandId','_clearOtherTimers','_logService','YUUMI_CONNECTOR_URL_NOT_FOUND','getStateCache','NOT_COLLAB','evenodd','0\x200\x2016\x2016','_collabSessionService','univer-mr-2\x20univer-flex\x20univer-text-xl','_toggleOffline','registerRefRange','deepClone','getConfig','url(#$1','8fLsreI','memberID','_draw','fillText','getDocRanges','_clearPolling','YUUMI_UNABLE_LOAD_URL','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','popstate','_updateLocalCursor','addObject','OffLineIcon','addHandlerCallback','Failed','RECT','INVALID_ARGUMENT','ENTITLE_REPORT_LIMIT_EXCEED','roomMembers$','getSkeleton','getCurrentUnitForType','#FFF','color','entries','_startSheetCollabCursor','COMPLETION_FINISHED','cursorInfo$','textRanges','all','ENTITLE_CAN_NOT_BUY_LOWER_OTP','OnLineIcon','INVITE_CODE_REQUIRED','session.connection-failed','_unitStatus','currentTheme$','subUnitId','_maxFormulaLimit','resize','on-line-icon_clip0_910_349','disposeWithMe','SYNCED','executeCommand','getVpScrollXYInfoByPosToVp','_hovered','startColumn','_registerDependencies','ALREADY_EXISTS','stage','_hasFormulaInDirtyRanges','sessionTicket','fill','round','session.collaboration-timeout','InsertColCommandId','_dataLoaderService','_hover','then','26DaoHDn','send','_colorAssignService','mask','3370509EpAISB','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_EXPORT_SIZE_EXCEEDED','ranges','makeDirty','stringify','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onStarting','_lastPointer','ENTITLE_CHAT_LIMIT_EXCEED','rgba(255,\x20255,\x20255,\x200.01)','_initStatusListener','NOT_FOUND','_setupSubUnitSync','SNAPSHOT_INVALID_SNAPSHOT','REDEMPTION_USER_REDEEM_TIMES_EXCEED','labelPosition','_drawAnchor','getParam','ACTIVE_UNIT_EVENT_CHANNEL','_releaseCalculationLimit','_commandService','_cursor','getformulaLimitStatusUrl','_saveCache','APPLY_REJECT','m1Prime','REDEMPTION_CODE_NOT_STARTED','_removeCollabCursors','FETCH_MISS','Success','origin','setActiveRange','init','arc','_httpService','_drawTextRange','backgroundColor','_currentUsage','UNDEFINED','body','toString','application/json','transformMutationsWithChangeset','_roomMembers$','error','getTypeOfUnitAdded$','findNodePositionByCharIndex','_online','/universer-api/license/formula/limit/done','_transformService','string','_initResize','unit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_session','off-line-icon','source','formula.calculation.started','width','sheetId','tag','replaceDocRanges','EMAIL_HAS_BEEN_BOUND','_initDependencies','http://www.w3.org/2000/svg','collaboration.closeRoom','type','white','_drawRectRange','_anchor','transformStateCache','undoState','UniverIcon','_docTransformStateCacheService','_eventUnsubscribe','_memberService','INVITE_CODE_ALREADY_BOUND','invokeId','setConfig','collaboration.single-unit.warning','reconnect','sheetID','_configService','_instanceService','collabStatus.offline','ENSURE_SNAPSHOT_EXECUTION','_labelPosition','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_startDocCollabCursor','saveOfflineData','_createSocketURL','_removeClearOtherTimer','YUUMI_AI_RUN_FAILED','getUnitStatus$','_startCalculationLimit'];_0x2c3e=function(){return _0x1aae8b;};return _0x2c3e();}var un=Object[_0x17995c(0x153)],dn=(_0x5ce16a,_0x160fbf,_0x88e93,_0x690448)=>{const _0x330b45=_0x17995c;for(var _0x4c191b=_0x690448>0x1?void 0x0:_0x690448?un(_0x160fbf,_0x88e93):_0x160fbf,_0x311274=_0x5ce16a[_0x330b45(0x28b)]-0x1,_0x50ebde;_0x311274>=0x0;_0x311274--)(_0x50ebde=_0x5ce16a[_0x311274])&&(_0x4c191b=_0x50ebde(_0x4c191b)||_0x4c191b);return _0x4c191b;},at=(_0x553236,_0x472adf)=>(_0x4c6d2c,_0x42141c)=>_0x472adf(_0x4c6d2c,_0x42141c,_0x553236);let he=class{constructor(_0x52cb04,_0x4aec2b){const _0x26bea5=_0x17995c;this[_0x26bea5(0x287)]=_0x52cb04,this[_0x26bea5(0x20a)]=_0x4aec2b;}[_0x17995c(0x94)](_0x269bfc){const _0x54de64=_0x17995c;var _0x5732d2;const _0x415144=this[_0x54de64(0x287)][_0x54de64(0x265)](_0x470162),_0xaf76ae=(_0x5732d2=_0x415144['getDocRanges']())!=null?_0x5732d2:[];if(_0xaf76ae[_0x54de64(0x28b)]===0x0)return;const _0x3ffa6c=_0x269bfc[_0x54de64(0x251)],_0x513840=[{'id':_0x54de64(0x297),'params':{'unitId':_0x3ffa6c,'actions':null,'textRanges':_0xaf76ae}}],_0x289b01=this[_0x54de64(0x20a)][_0x54de64(0x203)](_0x269bfc,_0x513840);if(!_0x4b8ff0(_0x289b01))throw _0x289b01['error'];const _0x41f8a0=_0x289b01[_0x54de64(0x264)][0x0]['params'][_0x54de64(0x1b6)];Array[_0x54de64(0x285)](_0x41f8a0)&&_0x41f8a0['length']&&_0x415144[_0x54de64(0x216)](_0x41f8a0,{'unitId':_0x3ffa6c,'subUnitId':_0x3ffa6c},!0x1);}};he=dn([at(0x0,_0x11a278(_0x426398)),at(0x1,_0x1a6bde)],he);function _0x220d(_0x5b21d1,_0x2b004d){const _0x2c3eff=_0x2c3e();return _0x220d=function(_0x220da6,_0x49799b){_0x220da6=_0x220da6-0x88;let _0x3d4a04=_0x2c3eff[_0x220da6];return _0x3d4a04;},_0x220d(_0x5b21d1,_0x2b004d);}var Sn=Object[_0x17995c(0x153)],In=(_0x33a433,_0x529052,_0x213b79,_0x3c5586)=>{const _0x24058a=_0x17995c;for(var _0x8c2ab3=_0x3c5586>0x1?void 0x0:_0x3c5586?Sn(_0x529052,_0x213b79):_0x529052,_0x2a0bdf=_0x33a433[_0x24058a(0x28b)]-0x1,_0x3581c2;_0x2a0bdf>=0x0;_0x2a0bdf--)(_0x3581c2=_0x33a433[_0x2a0bdf])&&(_0x8c2ab3=_0x3581c2(_0x8c2ab3)||_0x8c2ab3);return _0x8c2ab3;},b=(_0x31aaea,_0x468d06)=>(_0x562fea,_0x385421)=>_0x468d06(_0x562fea,_0x385421,_0x31aaea);let ue=class extends _0x29710c{constructor(_0x43c01a,_0x5e7724,_0x14624d,_0x85264d,_0x44f5ed,_0x50a901,_0x8383a9,_0x587a7c){const _0x2636e5=_0x17995c;super(),l(this,_0x2636e5(0xf7),new _0x5ab626(_0x5bc4e1[_0x2636e5(0x192)])),(this[_0x2636e5(0x106)]=_0x43c01a,this[_0x2636e5(0x24d)]=_0x5e7724,this[_0x2636e5(0x23f)]=_0x14624d,this[_0x2636e5(0x222)]=_0x85264d,this['_docTransformSelectionsService']=_0x44f5ed,this[_0x2636e5(0x253)]=_0x50a901,this['_messageService']=_0x8383a9,this['_localeService']=_0x587a7c,this['_initEntityListener']());}[_0x17995c(0xd4)](){const _0x442661=_0x17995c;this['disposeWithMe'](this['_collaborationController'][_0x442661(0x10b)][_0x442661(0x158)](_0x406340=>{const _0x3c408e=_0x442661,_0x499553=this[_0x3c408e(0x106)]['docStateChange$']['subscribe'](_0x4b579b=>{const _0x322d45=_0x3c408e;if(_0x4b579b==null)return;const {unitId:_0x3faf5e,redoState:_0x343a4e,commandId:_0x587b56}=_0x4b579b;if(_0x3faf5e!==_0x406340[_0x322d45(0x251)])return;const _0x128d36={'id':_0x587b56,'type':_0x1bc9ba[_0x322d45(0x26a)],'params':{'unitId':_0x3faf5e,'actions':_0x343a4e['actions'],'textRanges':null}};_0x406340[_0x322d45(0xd3)](_0x128d36);});if(_0x406340[_0x3c408e(0x1c2)](_0x499553),_0x406340 instanceof _0x4ff6ee){const _0x32f8c7={'onTransformIME':_0x289f15=>this[_0x3c408e(0x23f)][_0x3c408e(0x25a)](_0x289f15),'onTransformState':_0x352e8e=>this['_docTransformStateCacheService'][_0x3c408e(0x21f)](_0x352e8e),'onTransformSelections':_0x26ca7f=>this[_0x3c408e(0x24c)][_0x3c408e(0x94)](_0x26ca7f),'onSyncEditingCollabCursor':_0x1078c2=>this[_0x3c408e(0x253)]['syncEditingCollabCursor'](_0x1078c2),'onTransformRemoteChangesetByIMECache':_0xaef661=>this[_0x3c408e(0x23f)][_0x3c408e(0xb1)](_0xaef661),'onTransformRemoteChangesetByStateCache':_0x2adf1f=>this['_docTransformStateCacheService'][_0x3c408e(0xb1)](_0x2adf1f)};_0x406340[_0x3c408e(0x1a8)](_0x32f8c7);}}));}};ue=In([b(0x0,_0x11a278(_0x2d3bec)),b(0x1,_0x11a278(_0x4a8b28)),b(0x2,_0x11a278(_e)),b(0x3,_0x11a278(le)),b(0x4,_0x11a278(he)),b(0x5,_0x11a278(Xe)),b(0x6,_0xc5e3ee),b(0x7,_0x11a278(_0x5bea2a))],ue);var Z=(_0x4923c8=>(_0x4923c8[_0x4923c8[_0x17995c(0x1ff)]=0x0]=_0x17995c(0x1ff),_0x4923c8[_0x4923c8['OK']=0x1]='OK',_0x4923c8[_0x4923c8[_0x17995c(0x145)]=0x2]=_0x17995c(0x145),_0x4923c8[_0x4923c8[_0x17995c(0xa3)]=0x3]=_0x17995c(0xa3),_0x4923c8[_0x4923c8['NOT_FOUND']=0x4]=_0x17995c(0x1e4),_0x4923c8[_0x4923c8[_0x17995c(0x292)]=0x5]=_0x17995c(0x292),_0x4923c8[_0x4923c8[_0x17995c(0x1c9)]=0x6]=_0x17995c(0x1c9),_0x4923c8[_0x4923c8[_0x17995c(0x1ab)]=0x7]=_0x17995c(0x1ab),_0x4923c8[_0x4923c8['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4923c8[_0x4923c8[_0x17995c(0x1b4)]=0x9]=_0x17995c(0x1b4),_0x4923c8[_0x4923c8['LOGIN_FAILED']=0xa]=_0x17995c(0x298),_0x4923c8[_0x4923c8['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x17995c(0x187),_0x4923c8[_0x4923c8[_0x17995c(0x13f)]=0xc]=_0x17995c(0x13f),_0x4923c8[_0x4923c8[_0x17995c(0x126)]=0xd]=_0x17995c(0x126),_0x4923c8[_0x4923c8[_0x17995c(0x91)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4923c8[_0x4923c8[_0x17995c(0x8c)]=0xf]=_0x17995c(0x8c),_0x4923c8[_0x4923c8[_0x17995c(0xd7)]=0x10]=_0x17995c(0xd7),_0x4923c8[_0x4923c8[_0x17995c(0xf9)]=0x64]=_0x17995c(0xf9),_0x4923c8[_0x4923c8[_0x17995c(0x266)]=0x65]='ERROR_AGAIN',_0x4923c8[_0x4923c8[_0x17995c(0x296)]=0xc9]='USER_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x8b)]=0xca]=_0x17995c(0x8b),_0x4923c8[_0x4923c8[_0x17995c(0x242)]=0x1389]=_0x17995c(0x242),_0x4923c8[_0x4923c8[_0x17995c(0x1e6)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4923c8[_0x4923c8['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17995c(0x9a),_0x4923c8[_0x4923c8[_0x17995c(0x22e)]=0x1773]=_0x17995c(0x22e),_0x4923c8[_0x4923c8[_0x17995c(0x1f1)]=0x1b59]=_0x17995c(0x1f1),_0x4923c8[_0x4923c8[_0x17995c(0x1d9)]=0x1b5a]=_0x17995c(0x1d9),_0x4923c8[_0x4923c8[_0x17995c(0x280)]=0x1b5b]=_0x17995c(0x280),_0x4923c8[_0x4923c8[_0x17995c(0x275)]=0x1b5c]=_0x17995c(0x275),_0x4923c8[_0x4923c8['APPLY_DUPLICATED']=0x1b5d]=_0x17995c(0x2ab),_0x4923c8[_0x4923c8[_0x17995c(0x246)]=0x1f41]=_0x17995c(0x246),_0x4923c8[_0x4923c8[_0x17995c(0xcd)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x230)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x9c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4923c8[_0x4923c8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x17995c(0x1da),_0x4923c8[_0x4923c8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x17995c(0x165),_0x4923c8[_0x4923c8[_0x17995c(0x1a2)]=0x2711]=_0x17995c(0x1a2),_0x4923c8[_0x4923c8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4923c8[_0x4923c8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17995c(0x276),_0x4923c8[_0x4923c8[_0x17995c(0x10c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x154)]=0x271a]=_0x17995c(0x154),_0x4923c8[_0x4923c8[_0x17995c(0x23a)]=0x271b]=_0x17995c(0x23a),_0x4923c8[_0x4923c8['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x17995c(0x20e),_0x4923c8[_0x4923c8[_0x17995c(0xe7)]=0x271d]=_0x17995c(0xe7),_0x4923c8[_0x4923c8['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x17995c(0x104),_0x4923c8[_0x4923c8['YUUMI_AI_RUN_FAILED']=0x271f]=_0x17995c(0x235),_0x4923c8[_0x4923c8[_0x17995c(0x190)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x14d)]=0x2af9]=_0x17995c(0x14d),_0x4923c8[_0x4923c8['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17995c(0x238),_0x4923c8[_0x4923c8[_0x17995c(0x132)]=0x2ee2]=_0x17995c(0x132),_0x4923c8[_0x4923c8[_0x17995c(0x1ba)]=0x2ee3]=_0x17995c(0x1ba),_0x4923c8[_0x4923c8[_0x17995c(0xbc)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4923c8[_0x4923c8[_0x17995c(0x225)]=0x2ee5]=_0x17995c(0x225),_0x4923c8[_0x4923c8[_0x17995c(0xc4)]=0x32c9]=_0x17995c(0xc4),_0x4923c8[_0x4923c8[_0x17995c(0x149)]=0x32ca]=_0x17995c(0x149),_0x4923c8[_0x4923c8[_0x17995c(0x217)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4923c8[_0x4923c8[_0x17995c(0x1b8)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x4923c8[_0x4923c8[_0x17995c(0x16d)]=0x36b2]=_0x17995c(0x16d),_0x4923c8[_0x4923c8['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4923c8[_0x4923c8[_0x17995c(0x28e)]=0x36b4]=_0x17995c(0x28e),_0x4923c8[_0x4923c8[_0x17995c(0x1e1)]=0x3715]=_0x17995c(0x1e1),_0x4923c8[_0x4923c8[_0x17995c(0x1ac)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4923c8[_0x4923c8[_0x17995c(0x8a)]=0x37dd]=_0x17995c(0x8a),_0x4923c8[_0x4923c8[_0x17995c(0x152)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4923c8[_0x4923c8[_0x17995c(0xed)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x4923c8[_0x4923c8['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x17995c(0xc1),_0x4923c8[_0x4923c8[_0x17995c(0x1f3)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4923c8[_0x4923c8[_0x17995c(0xea)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4923c8[_0x4923c8[_0x17995c(0x1e7)]=0x3a9e]=_0x17995c(0x1e7),_0x4923c8[_0x4923c8['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x17995c(0x29f),_0x4923c8[_0x4923c8[_0x17995c(0x9f)]=-0x1]=_0x17995c(0x9f),_0x4923c8))(Z||{});function mn(_0x39dd97){const _0x46a338=_0x17995c;var _0x5e6d68,_0x497fb0;const _0x189475=(_0x5e6d68=_0x39dd97[_0x46a338(0x17a)])==null?void 0x0:_0x5e6d68[_0x46a338(0x1ca)],_0x353cb2=((_0x497fb0=_0x39dd97['stageInfo'])==null?void 0x0:_0x497fb0['totalFormulasToCalculate'])||0x0;return _0x189475===_0x19f2ec['START_CALCULATION']&&_0x353cb2>0x0;}function fn(_0x4247e0){const _0x1e76ef=_0x17995c;return _0x4247e0[_0x1e76ef(0x288)]===_0x3bbfbf['SUCCESS'];}var gn=Object[_0x17995c(0x153)],vn=(_0x14b946,_0x36fe02,_0x1ebfbc,_0x1a9a58)=>{const _0x203564=_0x17995c;for(var _0x3c9f06=_0x1a9a58>0x1?void 0x0:_0x1a9a58?gn(_0x36fe02,_0x1ebfbc):_0x36fe02,_0x364b18=_0x14b946[_0x203564(0x28b)]-0x1,_0xab9d66;_0x364b18>=0x0;_0x364b18--)(_0xab9d66=_0x14b946[_0x364b18])&&(_0x3c9f06=_0xab9d66(_0x3c9f06)||_0x3c9f06);return _0x3c9f06;},P=(_0x21d812,_0x256182)=>(_0x51604c,_0xf3d058)=>_0x256182(_0x51604c,_0xf3d058,_0x21d812);const En=_0x17995c(0xe1),pn=_0x17995c(0x16b),On=_0x17995c(0x209);let de=class extends _0x29710c{constructor(_0x1489b9,_0x449ffb,_0x17f9d6,_0x222490,_0x1dbe9c,_0x130a1b,_0x2789cb){const _0x10d6d8=_0x17995c;super(),l(this,_0x10d6d8(0x15d),null),l(this,'_maxFormulaLimit',0x0),l(this,_0x10d6d8(0x1fe),0x0),l(this,_0x10d6d8(0x110),[]),l(this,_0x10d6d8(0x2a8),0x0),(this[_0x10d6d8(0x93)]=_0x1489b9,this['_commandService']=_0x449ffb,this[_0x10d6d8(0x22b)]=_0x17f9d6,this[_0x10d6d8(0x1fb)]=_0x222490,this['_univerInstanceService']=_0x1dbe9c,this[_0x10d6d8(0x18f)]=_0x130a1b,this[_0x10d6d8(0x13c)]=_0x2789cb,this[_0x10d6d8(0x16c)]());}[_0x17995c(0x16c)](){const _0x23ca76=_0x17995c;this[_0x23ca76(0x1c2)](this['_commandService'][_0x23ca76(0xf4)]((_0x42dfdf,_0x1a8fdd)=>{const _0x12d81f=_0x23ca76;if(_0x42dfdf['id']!==_0x8e7314['id'])return;const _0x2b80e5=_0x42dfdf[_0x12d81f(0x166)];if(!this[_0x12d81f(0x1cb)](_0x2b80e5[_0x12d81f(0xa6)]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x42dfdf,_0x1a8fdd),this[_0x12d81f(0x240)](),new _0x5313b4();})),this['disposeWithMe'](this[_0x23ca76(0x1ed)][_0x23ca76(0x162)]((_0x592c57,_0x298123)=>{const _0x23e859=_0x23ca76;if(_0x592c57['id']!==_0x72d1d3['id'])return;const _0x3fd29d=_0x592c57[_0x23e859(0x166)];if(mn(_0x3fd29d)){const _0x40eb0b=_0x25c646();this[_0x23e859(0x110)]['push'](_0x40eb0b),this[_0x23e859(0x237)](_0x40eb0b);}else{if(fn(_0x3fd29d)&&this['_taskIds'][_0x23e859(0x28b)]>0x0){const _0x530e57=this[_0x23e859(0x110)][_0x23e859(0x17d)]();this[_0x23e859(0x1ec)](_0x530e57);}}}));}[_0x17995c(0x2b4)](){const _0x4a4a35=_0x17995c;super[_0x4a4a35(0x2b4)](),this[_0x4a4a35(0x1a1)](),this[_0x4a4a35(0x110)]=[],this['_currentUsage']=0x0,this[_0x4a4a35(0x1bf)]=0x0,this[_0x4a4a35(0x2a8)]=0x0;}async[_0x17995c(0xc3)](_0x28482a,_0x4c5ffd){const _0x5efcc0=_0x17995c;for(let _0x40d8ad=0x0;_0x40d8ad<0x1e;_0x40d8ad++)try{if(await this[_0x5efcc0(0x2b8)](),this['_checkCalculationAvailable']()){this[_0x5efcc0(0x29b)](_0x28482a,_0x4c5ffd),this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this[_0x5efcc0(0x13c)]['t'](_0x5efcc0(0x212)),'type':_0x2001e5[_0x5efcc0(0x1f6)]});return;}await new Promise(_0x5d6df2=>{const _0x1a7d6c=_0x5efcc0;this[_0x1a7d6c(0x15d)]=window[_0x1a7d6c(0xf8)](_0x5d6df2,0x3e8);});}catch(_0x17fea8){this[_0x5efcc0(0x18f)][_0x5efcc0(0x205)](_0x17fea8);}this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x2001e5[_0x5efcc0(0x157)]});}['_applyCommand'](_0x521b3c,_0x534bb3){const _0xff9843=_0x17995c;try{this[_0xff9843(0x1ed)][_0xff9843(0x1c4)](_0x521b3c['id'],_0x521b3c[_0xff9843(0x166)],_0x534bb3);}catch(_0x321d5e){this[_0xff9843(0x18f)]['error'](_0x321d5e);}}[_0x17995c(0x2a2)](_0x540f00,_0x1884c2){const _0x14d994=_0x17995c;_0x1884c2<this[_0x14d994(0x2a8)]||(this[_0x14d994(0x2a8)]=_0x1884c2,this['_maxFormulaLimit']=Number[_0x14d994(0xd0)](_0x540f00['maxFormulaLimit']),this[_0x14d994(0x1fe)]=Number['parseInt'](_0x540f00['currentUsage']));}async[_0x17995c(0x237)](_0x386c81){const _0x4e6a94=_0x17995c;var _0x3c6bb7,_0x1d8c6c;const _0x227dcd=Date['now']();try{const _0x3c783d=((_0x3c6bb7=this[_0x4e6a94(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x3c6bb7[_0x4e6a94(0x151)])||pn,_0x1ed237=(await this[_0x4e6a94(0x1fb)][_0x4e6a94(0xee)](_0x3c783d,{'body':JSON['stringify']({'taskId':_0x386c81})}))[_0x4e6a94(0x200)];if(((_0x1d8c6c=_0x1ed237[_0x4e6a94(0x205)])==null?void 0x0:_0x1d8c6c['code'])!==Z['OK'])return;this[_0x4e6a94(0x2a2)](_0x1ed237[_0x4e6a94(0xdd)],_0x227dcd);}catch(_0x17b3dd){this[_0x4e6a94(0x18f)][_0x4e6a94(0x205)](_0x17b3dd);}}async[_0x17995c(0x2b8)](_0x54155c){const _0x1585a5=_0x17995c;var _0x42a88b,_0x1ba1e6;const _0x7f8531=Date[_0x1585a5(0x2a5)]();try{const _0x1f0946=((_0x42a88b=this[_0x1585a5(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x42a88b[_0x1585a5(0x1ef)])||En,_0x1376a0=_0x54155c?_0x1f0946+'?taskId='+encodeURIComponent(_0x54155c):_0x1f0946,_0x35f9bf=(await this[_0x1585a5(0x1fb)][_0x1585a5(0x265)](_0x1376a0))['body'];if(((_0x1ba1e6=_0x35f9bf['error'])==null?void 0x0:_0x1ba1e6[_0x1585a5(0x29d)])!==Z['OK'])return;this[_0x1585a5(0x2a2)](_0x35f9bf[_0x1585a5(0xdd)],_0x7f8531);}catch(_0x37fb2b){this[_0x1585a5(0x18f)][_0x1585a5(0x205)](_0x37fb2b);}}async[_0x17995c(0x1ec)](_0x1c7102){const _0xc5efa3=_0x17995c;var _0x80090f,_0x26e493;const _0x98b644=Date[_0xc5efa3(0x2a5)]();try{const _0x3c425e=((_0x80090f=this[_0xc5efa3(0x22b)][_0xc5efa3(0x19a)](_0x561a7a))==null?void 0x0:_0x80090f[_0xc5efa3(0x27d)])||On,_0x423ea7=(await this['_httpService'][_0xc5efa3(0xee)](_0x3c425e,{'body':JSON[_0xc5efa3(0x1dd)]({'taskId':_0x1c7102})}))[_0xc5efa3(0x200)];if(((_0x26e493=_0x423ea7[_0xc5efa3(0x205)])==null?void 0x0:_0x26e493[_0xc5efa3(0x29d)])!==Z['OK'])return;this[_0xc5efa3(0x2a2)](_0x423ea7[_0xc5efa3(0xdd)],_0x98b644);}catch(_0x267f57){this[_0xc5efa3(0x18f)]['error'](_0x267f57);}}[_0x17995c(0x289)](){const _0x585a8a=_0x17995c;return this[_0x585a8a(0x1bf)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x585a8a(0x1fe)]>0x0;}[_0x17995c(0x1a1)](){this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x17995c(0x240)](){const _0x4150dc=_0x17995c;this[_0x4150dc(0x93)][_0x4150dc(0xfe)]({'content':this[_0x4150dc(0x13c)]['t'](_0x4150dc(0xaa)),'type':_0x2001e5[_0x4150dc(0x116)]});}[_0x17995c(0x1cb)](_0x1ba72c){const _0x102f1a=_0x17995c;for(const _0x35cb12 of _0x1ba72c){const {unitId:_0x48fd04,sheetId:_0x47bc16,range:_0x4edfa4}=_0x35cb12,_0x5c53e0=this['_univerInstanceService'][_0x102f1a(0xe8)](_0x48fd04);if(!_0x5c53e0)continue;const _0x450636=_0x5c53e0[_0x102f1a(0x2c1)](_0x47bc16);if(!_0x450636)continue;const _0x2cd7b1=_0x450636[_0x102f1a(0x155)]();for(let _0x41bac1=_0x4edfa4[_0x102f1a(0xb3)];_0x41bac1<=_0x4edfa4[_0x102f1a(0x2b2)];_0x41bac1++)for(let _0x4d9777=_0x4edfa4[_0x102f1a(0x1c7)];_0x4d9777<=_0x4edfa4[_0x102f1a(0x17b)];_0x4d9777++){const _0x42e03e=_0x2cd7b1[_0x102f1a(0x146)](_0x41bac1,_0x4d9777);if(_0x42e03e&&(_0x4f5ea9(_0x42e03e['f'])||_0x267f20(_0x42e03e['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x11a278(_0xc5e3ee)),P(0x1,_0x31e8e2),P(0x2,_0x284c80),P(0x3,_0x11a278(_0x363c4f)),P(0x4,_0x382f2b),P(0x5,_0x12caba),P(0x6,_0x11a278(_0x5bea2a))],de);var Tn=Object['getOwnPropertyDescriptor'],Cn=(_0x4df2c7,_0x373ef1,_0x5373b7,_0x2968f1)=>{const _0x42c13a=_0x17995c;for(var _0x360a04=_0x2968f1>0x1?void 0x0:_0x2968f1?Tn(_0x373ef1,_0x5373b7):_0x373ef1,_0x23a558=_0x4df2c7[_0x42c13a(0x28b)]-0x1,_0x4d0815;_0x23a558>=0x0;_0x23a558--)(_0x4d0815=_0x4df2c7[_0x23a558])&&(_0x360a04=_0x4d0815(_0x360a04)||_0x360a04);return _0x360a04;},De=(_0x13b360,_0x198a5c)=>(_0x33c50a,_0x4e263)=>_0x198a5c(_0x33c50a,_0x4e263,_0x13b360);let xe=class extends _0x29710c{constructor(_0x1e31cf,_0x33bee4,_0x109b05){const _0x253d27=_0x17995c;super(),l(this,_0x253d27(0xbd),new Map()),l(this,_0x253d27(0x270),new Map()),l(this,'_disabled',!0x1),(this[_0x253d27(0x22b)]=_0x1e31cf,this[_0x253d27(0xc0)]=_0x33bee4,this[_0x253d27(0xb2)]=_0x109b05);}['disableLocalCache'](){const _0x1da398=_0x17995c;this[_0x1da398(0x2a7)]=!0x0;}[_0x17995c(0x95)](){const _0x531368=_0x17995c;this[_0x531368(0x2a7)]=!0x1;}get[_0x17995c(0xa7)](){return this['_saveTaskMap'];}[_0x17995c(0x2b4)](){const _0x3c2f99=_0x17995c;this[_0x3c2f99(0x23c)]()[_0x3c2f99(0x1d3)](()=>super[_0x3c2f99(0x2b4)]());}async[_0x17995c(0xa8)](_0x24ea2b){const _0x4f6a54=_0x17995c;return this[_0x4f6a54(0x2a7)]?null:this['_localStorageService']['getItem'](_0x47bb08(_0x24ea2b));}async[_0x17995c(0x232)](_0x57e93e,_0x4601b8){const _0x358051=_0x17995c;return!!this[_0x358051(0xc0)][_0x358051(0xfc)](_0x57e93e,_0x4601b8);}[_0x17995c(0x26d)](_0x1e499e,_0x10a1fa,_0x2ab504,_0x1c965f){const _0x5b7483=_0x17995c,_0x1edd0b=this[_0x5b7483(0xb2)]['getCurrentRevOfUnit'](_0x1e499e);this[_0x5b7483(0xbd)][_0x5b7483(0xc9)](_0x1e499e,{'unitID':_0x1e499e,'type':_0x10a1fa,'awaitingChangeset':_0x2ab504,'mutations':_0x1c965f,'rev':_0x1edd0b}),this[_0x5b7483(0x270)][_0x5b7483(0x2a9)](_0x1e499e)||this[_0x5b7483(0x96)](_0x1e499e);}[_0x17995c(0x96)](_0x5445b1){const _0x4c8bbb=_0x17995c,_0x42802d=this[_0x4c8bbb(0x2a0)]();_0x42802d===0x0?this['_saveCache'](_0x5445b1):this[_0x4c8bbb(0x270)][_0x4c8bbb(0xc9)](_0x5445b1,setTimeout(()=>this[_0x4c8bbb(0x1f0)](_0x5445b1),_0x42802d));}[_0x17995c(0x2a0)](){const _0x3ab7f4=_0x17995c;var _0x352a1b;return(_0x352a1b=this[_0x3ab7f4(0x22b)][_0x3ab7f4(0x19a)](_0x406905))!=null?_0x352a1b:_0x34d795;}['_saveCache'](_0xbbf91){const _0x2d6826=_0x17995c,_0x5b7f49=this[_0x2d6826(0x270)]['get'](_0xbbf91);return _0x5b7f49!==void 0x0&&window['clearTimeout'](_0x5b7f49),this[_0x2d6826(0xc0)][_0x2d6826(0xfc)](_0x47bb08(_0xbbf91),this[_0x2d6826(0xbd)][_0x2d6826(0x265)](_0xbbf91))[_0x2d6826(0x1d3)](()=>this[_0x2d6826(0x270)]['delete'](_0xbbf91));}async['exhaustSavingTask'](){const _0x616175=_0x17995c,_0x4e1c31=[];this[_0x616175(0x270)][_0x616175(0xbe)]((_0x4c8481,_0x108623)=>{const _0x5de9a4=_0x616175;window[_0x5de9a4(0x10e)](_0x4c8481),_0x4e1c31[_0x5de9a4(0x272)](this[_0x5de9a4(0x1f0)](_0x108623)[_0x5de9a4(0x1d3)](()=>{const _0x2028d6=_0x5de9a4;this[_0x2028d6(0x270)][_0x2028d6(0xeb)](_0x108623);}));}),await Promise[_0x616175(0x1b7)](_0x4e1c31);}};xe=Cn([De(0x0,_0x284c80),De(0x1,_0x241148),De(0x2,_0x11a278(_0x225cbf))],xe);class Rn extends _0x53201b{constructor(){const _0x165f6f=_0x17995c;super(),l(this,_0x165f6f(0x10a)),this['urlChange$']=_0xa49f30(window,_0x165f6f(0x1a4))['pipe'](_0x426fdf(this[_0x165f6f(0xda)]),_0x9be7a1(0x1),_0x2b6054(void 0x0));}['setParam'](_0xaf10c8,_0x5b9742,_0x1aa013=!0x1){const _0x20ff40=_0x17995c,_0x217f50=new URL(window['location'][_0x20ff40(0x182)]);_0x217f50['searchParams'][_0x20ff40(0xc9)](_0xaf10c8,_0x5b9742),_0x1aa013?window[_0x20ff40(0x16a)][_0x20ff40(0x102)]('','',_0x217f50['toString']()):window[_0x20ff40(0x16a)]['pushState']('','',_0x217f50['toString']());}[_0x17995c(0x277)](_0x4872b5,_0x461718=!0x1){const _0x367148=_0x17995c,_0x109113=new URL(window['location'][_0x367148(0x182)]);_0x109113[_0x367148(0xe9)]['delete'](_0x4872b5),_0x461718?window['history'][_0x367148(0x102)]('','',_0x109113['toString']()):window[_0x367148(0x16a)]['pushState']('','',_0x109113[_0x367148(0x201)]());}[_0x17995c(0x1ea)](_0x1f97e1){const _0x3930d7=_0x17995c;var _0x4fd469;return(_0x4fd469=new URL(window[_0x3930d7(0x2ad)][_0x3930d7(0x182)])[_0x3930d7(0xe9)]['get'](_0x1f97e1))!=null?_0x4fd469:void 0x0;}}var Dn=Object[_0x17995c(0x138)],Nn=Object[_0x17995c(0x153)],bn=(_0x4ed3c1,_0x2178ce,_0x1f511f)=>_0x2178ce in _0x4ed3c1?Dn(_0x4ed3c1,_0x2178ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f511f}):_0x4ed3c1[_0x2178ce]=_0x1f511f,Un=(_0x377180,_0x87eb39,_0x197eb9,_0x42650e)=>{const _0x25f8a6=_0x17995c;for(var _0x30628a=_0x42650e>0x1?void 0x0:_0x42650e?Nn(_0x87eb39,_0x197eb9):_0x87eb39,_0x4225bc=_0x377180[_0x25f8a6(0x28b)]-0x1,_0x81a7d3;_0x4225bc>=0x0;_0x4225bc--)(_0x81a7d3=_0x377180[_0x4225bc])&&(_0x30628a=_0x81a7d3(_0x30628a)||_0x30628a);return _0x30628a;},Ne=(_0x2faa60,_0x33e008)=>(_0x34ab9d,_0x4565d5)=>_0x33e008(_0x34ab9d,_0x4565d5,_0x2faa60),Ln=(_0x5155b7,_0x38e9c7,_0x3491bf)=>bn(_0x5155b7,_0x38e9c7+'',_0x3491bf);const Mn=_0x17995c(0x142);let Be=class extends _0x494e53{constructor(_0x531fdb=rt,_0x16da5b,_0x2d2185,_0x27ce91){const _0x1480d4=_0x17995c;super(),this[_0x1480d4(0x163)]=_0x531fdb,this[_0x1480d4(0x134)]=_0x16da5b,this[_0x1480d4(0x287)]=_0x2d2185,this[_0x1480d4(0x22b)]=_0x27ce91;const {..._0x65eff9}=_0xf62ae0({},rt,this[_0x1480d4(0x163)]);this[_0x1480d4(0x22b)][_0x1480d4(0x227)](an,_0x65eff9);}[_0x17995c(0x1df)](){const _0x228669=_0x17995c;this[_0x228669(0x1c8)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0xfad83c=_0x17995c;var _0x14cd50;const _0x55ad2e=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5a617a,{'useClass':_0x3242f0}],[_0x3a200a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x3ace74(this[_0xfad83c(0x287)],_0x23631a(_0x55ad2e,(_0x14cd50=this[_0xfad83c(0x163)])==null?void 0x0:_0x14cd50[_0xfad83c(0x100)]));}[_0x17995c(0x108)](){const _0x5460aa=_0x17995c;this[_0x5460aa(0x1c2)](this[_0x5460aa(0x134)]['registerRenderModule'](_0x502d97['UNIVER_DOC'],[ye])),this['disposeWithMe'](this['_renderManagerService'][_0x5460aa(0xdc)](_0x502d97[_0x5460aa(0x12d)],[$e]));}[_0x17995c(0x218)](){const _0x403f7e=_0x17995c;_0x3dce4a(this[_0x403f7e(0x287)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x17995c(0xe0),Mn),Be=Un([_0x53975f(_0x2497f2),Ne(0x1,_0x4b49a7),Ne(0x2,_0x11a278(_0x426398)),Ne(0x3,_0x284c80)],Be);var An=Object[_0x17995c(0x153)],Pn=(_0x5e879b,_0x45a83d,_0x33b438,_0x1606b6)=>{for(var _0x39cecf=_0x1606b6>0x1?void 0x0:_0x1606b6?An(_0x45a83d,_0x33b438):_0x45a83d,_0xcde81c=_0x5e879b['length']-0x1,_0x27a343;_0xcde81c>=0x0;_0xcde81c--)(_0x27a343=_0x5e879b[_0xcde81c])&&(_0x39cecf=_0x27a343(_0x39cecf)||_0x39cecf);return _0x39cecf;},J=(_0x28a8ff,_0x46f9ce)=>(_0x7b992b,_0x32dd75)=>_0x46f9ce(_0x7b992b,_0x32dd75,_0x28a8ff);let ct=class extends _0x331ab9{constructor(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c){super(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c);}async['createSocket'](_0x2dcd0d){const _0x115269=_0x17995c,_0x4155a2=await this['_getSessionTicket'](),_0x3a9f82=this['_createSocketURL'](_0x2dcd0d,_0x4155a2);return this[_0x115269(0x115)](_0x3a9f82);}[_0x17995c(0x233)](_0x5ba77e,_0x64742a){const _0x1bdb22=_0x17995c,_0x499b11=typeof window>'u'?new URL(_0x5ba77e):new URL(_0x5ba77e,window[_0x1bdb22(0x2ad)][_0x1bdb22(0x1f7)]);_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x1cc),_0x64742a);const _0x3cb2b5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1bdb22(0x282)]);return _0x3cb2b5['get']('runId')&&_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x141),_0x3cb2b5['get'](_0x1bdb22(0x141))),_0x499b11[_0x1bdb22(0x201)]();}async[_0x17995c(0x18a)](){const _0x458faf=_0x17995c;var _0x3e8a59,_0x31a2c1,_0x43f562;const _0x3a3c28=this['_configService'][_0x458faf(0x19a)](_0x561a7a),_0x47a9d7=(_0x3e8a59=_0x3a3c28==null?void 0x0:_0x3a3c28[_0x458faf(0x254)])!=null?_0x3e8a59:_0x3f8692;return(_0x43f562=(_0x31a2c1=(await this[_0x458faf(0x1fb)][_0x458faf(0x265)](_0x47a9d7,{'headers':{'Content-Type':_0x458faf(0x202)}}))[_0x458faf(0x200)])==null?void 0x0:_0x31a2c1[_0x458faf(0xae)])!=null?_0x43f562:'';}};ct=Pn([J(0x0,_0x11a278(_0x426398)),J(0x1,_0x11a278(_0x363c4f)),J(0x2,_0x284c80),J(0x3,_0x12caba),J(0x4,_0x4d1519)],ct);var wn=Object[_0x17995c(0x153)],yn=(_0x591e65,_0x3ba57d,_0x3c8dd4,_0x386b24)=>{const _0x1fdf8a=_0x17995c;for(var _0x42d821=_0x386b24>0x1?void 0x0:_0x386b24?wn(_0x3ba57d,_0x3c8dd4):_0x3ba57d,_0x1e31f7=_0x591e65[_0x1fdf8a(0x28b)]-0x1,_0x429267;_0x1e31f7>=0x0;_0x1e31f7--)(_0x429267=_0x591e65[_0x1e31f7])&&(_0x42d821=_0x429267(_0x42d821)||_0x42d821);return _0x42d821;},be=(_0x582937,_0x2e8d40)=>(_0xdf4a8e,_0x1cb8c9)=>_0x2e8d40(_0xdf4a8e,_0x1cb8c9,_0x582937);let _t=class extends _0x29710c{constructor(_0x40da52,_0xfb613c,_0x166f2d){const _0x58d19c=_0x17995c;super(),this[_0x58d19c(0x22c)]=_0x40da52,this['_httpService']=_0xfb613c,this[_0x58d19c(0x22b)]=_0x166f2d;}async['runOnServer'](_0x126ed8,_0x551969,_0x443d63,..._0x361b4f){const _0x127c8a=_0x17995c;var _0x29865b,_0x36df4f,_0x5a14a9,_0x58ca6c;const _0x3387c7=this[_0x127c8a(0x22c)][_0x127c8a(0x177)]();if(!_0x3387c7)throw new Error(_0x127c8a(0x13b));const _0x3a4bd1=((_0x29865b=this['_configService'][_0x127c8a(0x19a)](_0x6c9711))!=null?_0x29865b:_0x4a61fe)+'/'+_0x126ed8+'/run/'+_0x551969,_0x1a807b=new URL(window[_0x127c8a(0x2ad)][_0x127c8a(0x182)]),_0x5614b9={'scriptId':_0x126ed8,'runId':(_0x36df4f=_0x1a807b['searchParams'][_0x127c8a(0x265)](_0x127c8a(0x141)))!=null?_0x36df4f:'','function':_0x551969,'unitId':_0x3387c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x361b4f),'invokeId':(_0x5a14a9=_0x443d63[_0x127c8a(0x226)])!=null?_0x5a14a9:'','executionId':(_0x58ca6c=_0x443d63[_0x127c8a(0x9e)])!=null?_0x58ca6c:''};try{const _0x204ef3=await this[_0x127c8a(0x1fb)][_0x127c8a(0xee)](_0x3a4bd1,{'body':_0x5614b9});return _0x204ef3[_0x127c8a(0x200)][_0x127c8a(0x205)]&&_0x204ef3['body'][_0x127c8a(0x205)][_0x127c8a(0x29d)]!==Z['OK']?_0x127c8a(0x1a9):_0x204ef3[_0x127c8a(0x200)][_0x127c8a(0xcc)];}catch{return _0x127c8a(0x1a9);}}};_t=yn([be(0x0,_0x382f2b),be(0x1,_0x11a278(_0x363c4f)),be(0x2,_0x284c80)],_t);const lt=0x7530,ht=_0x17995c(0x1eb);class tr extends _0x29710c{constructor(){const _0x298ded=_0x17995c;super(),l(this,'_id',_0x25c646()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x298ded(0x243),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x298ded(0x1bc),new Map()),this[_0x298ded(0x11f)]();}[_0x17995c(0x2b4)](){const _0x2557d1=_0x17995c;super[_0x2557d1(0x2b4)](),this[_0x2557d1(0x18e)][_0x2557d1(0xbe)]((_0x1cc68b,_0x4d77aa)=>this[_0x2557d1(0x234)](_0x4d77aa)),this[_0x2557d1(0x243)]&&window['clearInterval'](this[_0x2557d1(0x243)]);}[_0x17995c(0x236)](_0x3b4db2){const _0x12c446=_0x17995c;return this['_ensureSubject'](_0x3b4db2)[_0x12c446(0x269)](_0x430265());}['editingUnit'](_0x485bda){const _0x58472d=_0x17995c;this[_0x58472d(0x130)][_0x58472d(0x16f)]===0x0&&this[_0x58472d(0x257)](),this[_0x58472d(0x130)]['add'](_0x485bda),this['_send']({'type':0x0,'memberID':this[_0x58472d(0x2ae)],'unitIDs':[_0x485bda],'isForwarded':!0x1});}[_0x17995c(0x2b5)](_0x3e7d10){const _0x5e20d4=_0x17995c;this[_0x5e20d4(0x130)][_0x5e20d4(0xeb)](_0x3e7d10),this[_0x5e20d4(0x130)][_0x5e20d4(0x16f)]===0x0&&this[_0x5e20d4(0x243)]&&window['clearInterval'](this[_0x5e20d4(0x243)]);}['_init'](){const _0x1fd407=_0x17995c;this['disposeWithMe'](_0x3213ea(_0xa49f30(window,_0x1fd407(0x26c))['subscribe'](_0x593b1f=>{const _0x369ccf=_0x1fd407;if(_0x593b1f[_0x369ccf(0x2b6)]!==ht||!_0x593b1f['newValue'])return;const _0xffcbcb=JSON[_0x369ccf(0x2b1)](_0x593b1f[_0x369ccf(0xba)]);this['_handleEvent'](_0xffcbcb);}))),window[_0x1fd407(0x28f)]('unload',()=>this[_0x1fd407(0x114)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1fd407(0x130)])}));}[_0x17995c(0x11b)](_0x1f96d3){const _0x7b2a21=_0x17995c;switch(_0x1f96d3[_0x7b2a21(0x21b)]){case 0x0:this[_0x7b2a21(0x2bf)](_0x1f96d3);break;case 0x1:this['_handleLeaveEvent'](_0x1f96d3);break;case 0x2:this['_handleHeartbeatEvent'](_0x1f96d3);break;}}[_0x17995c(0x2bf)](_0xc40e19){const _0x1d67cb=_0x17995c,{unitIDs:_0xe05d72,memberID:_0x37724d,isForwarded:_0x25f358}=_0xc40e19;_0xe05d72['forEach'](_0x27cd4b=>{const _0xbecf8=_0x220d;if(!_0x25f358&&this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)&&this[_0xbecf8(0x113)](_0x27cd4b)[_0xbecf8(0xf2)](_0x27e9f9[_0xbecf8(0x263)]),!this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)||!this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)[_0xbecf8(0x2a9)](_0x37724d)){const _0x46fabf=this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)||new Set();_0x46fabf[_0xbecf8(0x25d)](_0x37724d),this[_0xbecf8(0x176)]['set'](_0x27cd4b,_0x46fabf),this[_0xbecf8(0xd5)](_0x37724d);}}),_0x25f358||this[_0x1d67cb(0x114)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x19607e){const _0x574710=_0x17995c;this[_0x574710(0x234)](_0x19607e);const _0x20e6cd=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x4734c5=>{const _0x4e0fe8=_0x220d;_0x4734c5[_0x4e0fe8(0xeb)](_0x19607e);});},lt*0x2);this['_clearOtherTimers'][_0x574710(0xc9)](_0x19607e,_0x20e6cd);}[_0x17995c(0x234)](_0x30a873){const _0x36cdfd=_0x17995c;if(this['_clearOtherTimers'][_0x36cdfd(0x2a9)](_0x30a873)){const _0x3e4858=this[_0x36cdfd(0x18e)][_0x36cdfd(0x265)](_0x30a873);_0x3e4858&&window['clearTimeout'](_0x3e4858),this[_0x36cdfd(0x18e)][_0x36cdfd(0xc9)](_0x30a873,null);}}[_0x17995c(0xac)](_0x111da3){const _0x209ce1=_0x17995c,{memberID:_0x3515f0,unitIDs:_0x47301b}=_0x111da3;_0x47301b[_0x209ce1(0xbe)](_0x2db8e0=>{const _0x4c3d18=_0x209ce1;var _0x1300af;const _0x2bedd6=this[_0x4c3d18(0x176)][_0x4c3d18(0x265)](_0x2db8e0);_0x2bedd6&&(_0x2bedd6['delete'](_0x3515f0),(_0x1300af=this[_0x4c3d18(0x113)](_0x2db8e0))==null||_0x1300af[_0x4c3d18(0xf2)](_0x2bedd6[_0x4c3d18(0x16f)]===0x0?_0x27e9f9[_0x4c3d18(0xf0)]:_0x27e9f9[_0x4c3d18(0x263)]));}),this['_removeClearOtherTimer'](_0x3515f0);}['_handleHeartbeatEvent'](_0x10d7c4){const _0x2151b2=_0x17995c;this[_0x2151b2(0xd5)](_0x10d7c4[_0x2151b2(0x19d)]);}[_0x17995c(0x114)](_0x59bdf6){const _0x6f0997=_0x17995c;localStorage[_0x6f0997(0xfc)](ht,JSON[_0x6f0997(0x1dd)](_0x59bdf6));}['_scheduleHeartbeat'](){const _0x127283=_0x17995c;this[_0x127283(0x243)]=window[_0x127283(0x120)](()=>{const _0x56d676=_0x127283;this[_0x56d676(0x114)]({'type':0x2,'memberID':this[_0x56d676(0x2ae)]});},lt);}[_0x17995c(0x113)](_0x35303c){const _0x596ff5=_0x17995c;return this[_0x596ff5(0x1bc)][_0x596ff5(0x2a9)](_0x35303c)||this[_0x596ff5(0x1bc)][_0x596ff5(0xc9)](_0x35303c,new _0x5ab626(_0x27e9f9[_0x596ff5(0xf0)])),this[_0x596ff5(0x1bc)][_0x596ff5(0x265)](_0x35303c);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
|