@univerjs-pro/collaboration-client-ui 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-7f1a98f

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2ff5b3=_0x140f;(function(_0x461f7a,_0xc107cb){const _0x599a15=_0x140f,_0x16b6d2=_0x461f7a();while(!![]){try{const _0x3d6a36=parseInt(_0x599a15(0x2d3))/0x1+parseInt(_0x599a15(0x268))/0x2*(-parseInt(_0x599a15(0x207))/0x3)+parseInt(_0x599a15(0x21d))/0x4*(parseInt(_0x599a15(0xf9))/0x5)+parseInt(_0x599a15(0x26b))/0x6+parseInt(_0x599a15(0x1d9))/0x7*(-parseInt(_0x599a15(0xe3))/0x8)+-parseInt(_0x599a15(0x269))/0x9+-parseInt(_0x599a15(0x2bf))/0xa*(parseInt(_0x599a15(0x298))/0xb);if(_0x3d6a36===_0xc107cb)break;else _0x16b6d2['push'](_0x16b6d2['shift']());}catch(_0x47417f){_0x16b6d2['push'](_0x16b6d2['shift']());}}}(_0x5449,0xaff03));function _0x140f(_0xfc4a0,_0x3c8702){const _0x544927=_0x5449();return _0x140f=function(_0x140f15,_0x335e77){_0x140f15=_0x140f15-0xd0;let _0x515047=_0x544927[_0x140f15];return _0x515047;},_0x140f(_0xfc4a0,_0x3c8702);}var Xe=Object[_0x2ff5b3(0x132)],Ke=(_0x23fe95,_0x2db42d,_0x405695)=>_0x2db42d in _0x23fe95?Xe(_0x23fe95,_0x2db42d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405695}):_0x23fe95[_0x2db42d]=_0x405695,_=(_0x587b63,_0x484610,_0x248e56)=>Ke(_0x587b63,typeof _0x484610!='symbol'?_0x484610+'':_0x484610,_0x248e56);Object[_0x2ff5b3(0x132)](exports,Symbol[_0x2ff5b3(0x165)],{'value':_0x2ff5b3(0x38b)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x33097c,..._0x1d6769}){const _0x39f795=_0x2ff5b3,{icon:_0x57f5fe,id:_0xee238e,className:_0x28de24,extend:_0x3f2bbd,..._0x101ff0}=_0x1d6769,_0x53be8e=('univerjs-icon\x20univerjs-icon-'+_0xee238e+'\x20'+(_0x28de24||''))[_0x39f795(0x276)](),_0x5185ac=A[_0x39f795(0x332)]('_'+Qe());return $e(_0x57f5fe,''+_0xee238e,{'defIds':_0x57f5fe[_0x39f795(0x30e)],'idSuffix':_0x5185ac[_0x39f795(0x1e4)]},{'ref':_0x33097c,'className':_0x53be8e,..._0x101ff0},_0x3f2bbd);}function $e(_0x149f65,_0x4edea2,_0x96dbae,_0x1c20da,_0x388528){const _0x2388e8=_0x2ff5b3;return A[_0x2388e8(0x110)](_0x149f65[_0x2388e8(0x30c)],{'key':_0x4edea2,...Je(_0x149f65,_0x96dbae,_0x388528),..._0x1c20da},(Ze(_0x149f65,_0x96dbae)[_0x2388e8(0x353)]||[])[_0x2388e8(0x26e)]((_0x16a9a7,_0x296bab)=>$e(_0x16a9a7,_0x4edea2+'-'+_0x149f65[_0x2388e8(0x30c)]+'-'+_0x296bab,_0x96dbae,void 0x0,_0x388528)));}function Je(_0x37ba22,_0x2eaffb,_0x4b350f){const _0x4e90f6=_0x2ff5b3,_0x3aebf2={..._0x37ba22[_0x4e90f6(0x30f)]};_0x4b350f!=null&&_0x4b350f['colorChannel1']&&_0x3aebf2['fill']==='colorChannel1'&&(_0x3aebf2[_0x4e90f6(0x309)]=_0x4b350f[_0x4e90f6(0x21c)]),_0x37ba22[_0x4e90f6(0x30c)]===_0x4e90f6(0x128)&&_0x3aebf2['id']&&(_0x3aebf2['id']=_0x3aebf2['id']+_0x2eaffb['idSuffix']),Object['entries'](_0x3aebf2)['forEach'](([_0x79d9b6,_0x15b8e8])=>{const _0x54bccc=_0x4e90f6;_0x79d9b6===_0x54bccc(0x128)&&typeof _0x15b8e8=='string'&&(_0x3aebf2[_0x79d9b6]=_0x15b8e8[_0x54bccc(0x1a8)](/url\(#(.*)\)/,_0x54bccc(0x11f)+_0x2eaffb['idSuffix']+')'));});const {defIds:_0xb3a8a0}=_0x2eaffb;return!_0xb3a8a0||_0xb3a8a0[_0x4e90f6(0x17b)]===0x0||(_0x37ba22[_0x4e90f6(0x30c)]===_0x4e90f6(0x324)&&_0x3aebf2['xlink:href']&&(_0x3aebf2['xlink:href']=_0x3aebf2[_0x4e90f6(0x1fe)]+_0x2eaffb[_0x4e90f6(0x296)]),Object['entries'](_0x3aebf2)[_0x4e90f6(0x1fc)](([_0x46b8c9,_0x2e79df])=>{const _0x580374=_0x4e90f6;typeof _0x2e79df==_0x580374(0x211)&&(_0x3aebf2[_0x46b8c9]=_0x2e79df[_0x580374(0x1a8)](/url\(#(.*)\)/,_0x580374(0x11f)+_0x2eaffb[_0x580374(0x296)]+')'));})),_0x3aebf2;}function Ze(_0x2ab53c,_0x402dd0){const _0x5a3a72=_0x2ff5b3;var _0x4a95d0;const {defIds:_0x31e7c5}=_0x402dd0;return!_0x31e7c5||_0x31e7c5[_0x5a3a72(0x17b)]===0x0?_0x2ab53c:_0x2ab53c[_0x5a3a72(0x30c)]===_0x5a3a72(0x2c2)&&((_0x4a95d0=_0x2ab53c[_0x5a3a72(0x353)])!=null&&_0x4a95d0['length'])?{..._0x2ab53c,'children':_0x2ab53c[_0x5a3a72(0x353)]['map'](_0x99ac79=>typeof _0x99ac79[_0x5a3a72(0x30f)]['id']=='string'&&_0x31e7c5&&_0x31e7c5[_0x5a3a72(0x275)](_0x99ac79[_0x5a3a72(0x30f)]['id'])?{..._0x99ac79,'attrs':{..._0x99ac79[_0x5a3a72(0x30f)],'id':_0x99ac79[_0x5a3a72(0x30f)]['id']+_0x402dd0[_0x5a3a72(0x296)]}}:_0x99ac79)}:_0x2ab53c;}function Qe(){const _0x14c634=_0x2ff5b3;return Math[_0x14c634(0x2e2)]()['toString'](0x24)[_0x14c634(0x1dc)](0x2,0x8);}Te[_0x2ff5b3(0xf0)]=_0x2ff5b3(0x2df);function _0x5449(){const _0x78b72=['_maxFormulaLimit','tag','m1Prime','defIds','attrs','undoState','_handleHeartbeatEvent','WECHAT_HAS_BEEN_BOUND','SetWorksheetActivateCommand','Optional','_scene','LICENSE_DISTRO_REJECTED','_heartbeatTimer','_context','_createSocketURL','black','CollaborationSocketService','BuiltInUIPart','saveImage','location','onPointerMove$','asObservable','getMemberID','pushState','getRenderById','use','debounce','docStateChange$','complete','loadOfflineData','currentSkeleton$','addObject','_collaborationUIEventService','IDocClipboardService','push','registerBeforeClose','Plugin','_docSkeleton','unitId','useRef','getConfig','_toggleOffline','_initCommandExecutedListener','subscribe','MUTATION','TOO_MANY_REQUESTS','useCallback','height','ranges','_initCommandInterceptor','collab-text-anchor-','_scheduleSaving','merge','stringify','CollaborationSessionService','ERROR_AGAIN','transformSelections','clsx','Shape','loadUnit','setParam','session.connection-failed','engine','stage','SOCKET_FAILED_RETRY','data','CollaborationStatus','BrowserCollaborationSocketService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_drawAnchor','getStateCache','_revisionService','children','transformMutation','univer-mr-2\x20univer-flex\x20univer-text-xl','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentSelections','history','switchMap','setShapeProps','off-line-icon_clip0_910_343','getOwnPropertyDescriptor','PERMISSION_DENIED','deepClone','_localCacheService','_getAnchorBounding','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','getLocalCacheKey','_docTransformIMECacheService','delete','_updateURLWithCurrentState','ISocketService','permission.content','SheetCollabCursorShape','onRendered','_getSheetObject','dispose$','searchParams','_cursors','_shapes','_startSheetCollabCursor','_selfUnitIDs','getRangePointData','flatMap','combineLatest','_hideTimer','unit','DocCollaborationEntity','getMember','mapTo','PY_RUNTIME_SCRIPT_ERROR','exhaustSavingTask','then','m2Prime','registerRefRange','APPLY_REVISION_CONFILICT','_handleLeaveEvent','isTransformMutationFailure','session.will-retry','unhandledrejection','getCollabCursors$','TEXT_RANGE_LAYER_INDEX','set','SUBMIT_CHANGESET_TIMEOUT','YUUMI_UNABLE_LOAD_URL','_localStorageService','getCollabEntity$','Module','currentTheme$','OFFLINE','type','send','_updateCollabCursors','fillStyle','addObjects','RegularPolygon','Inject','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_monkeyPatchLogService','none','getViewport','uni.network.url-service','_cursor','off-line-icon','startColumn','_setFormulaLimitStatus','lineno','_configService','collabStatus.synced','/universer-api/license/formula/limit/start','MessageType','getParam','WebSocketService','TEXT','catch','ONLINE','ThemeService','MemberService','273488hahmwc','sheetId','CHANGESET_REVISION_CONFILICT','Tooltip','UniverCollaborationClientUIPlugin','InsertRangeMoveRightCommandId','SessionStatus','_toggleOnline','handleMoveRange','font','_handleHover','OTHER_CLIENT_EDITING','getAncestorScale','displayName','_textBubble','addClipboardHook','has','RemoteUniscriptService','UniverCollaborationClientPlugin','handleIRemoveCol','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','DocStateChangeManagerService','194125dQgQNK','Unknown\x20user','COMPLETION_FINISHED','collaboration-client-ui.config','_cursorShapes','PAYMENT_CHANNEL_NOT_SUPPORT','_scheduleClearOtherTimer','max','_color','setAlpha','_uploadLog','jsx','_docTransformStateCacheService','takeUntil','_collaborationController','Failed','_disabled','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','assign','textRanges','_collaborationSessionService','roomMembers','body','createElement','key','UNAUTHENTICATED','setTimeout','_colorIndex','NOT_COLLAB','size','_initUserListener','USER_NOT_FOUND','getMergeData','_startCalculationLimit','saveTaskMap','getFocusedUnit','endRow','ALREADY_EXISTS','url(#$1','requireSession','onPointerLeave$','ENTITLE_NEED_BILLING_ADDRESS','ILogService','IUIPartsService','throttleTime','transformIMECache','_unitStatus','mask','_initEntityListener','transformStateCache','_removeClearOtherTimer','_transformUndoRedoStack','_initUnhandledRejectionListener','_initResize','_handleJoinEvent','IRemoteInstanceService','RxDisposable','defineProperty','_docSkeletonManagerService','M0\x200H16V16H0z','_localeService','socket$','forwardRef','code','imageSourceType','startFormulaLimitUrl','Tools','_renderManagerService','startRow','CollaborationUIEventId','_beforeCloseService','currentUsage','replaceState','onCommandExecuted','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','1em','YUUMI_CONNECTOR_URL_NOT_FOUND','findNodePositionByCharIndex','_drawTextRange','activeSheet$','collabStatus.syncing','DOC_RANGE_TYPE','ILocalCacheService','_status$','next','_refRangeService','save','CommandType','disableLocalCache','getSheetObject','disposeUnit','_initStatusListener','RevisionService','getTypeOfUnitDisposed$','_draw','serializeRangeWithSheet','focused$','formula.calculation.started','_docStateChangeManagerService','removeEventListener','FromArray','_logService','rgba(255,\x20255,\x20255,\x200.01)','getCurrentRevOfUnit','executionId','jsxs','handleInsertRangeMoveDown','ENTITLE_REPORT_LIMIT_EXCEED','toStringTag','createSocket','roomMembers$','hide','popstate','getVpScrollXYInfoByPosToVp','memberID','getValue','_instanceService','labelPosition','_getFormulaLimitStatus','YUUMI_SUBSCRIPTION_NOT_FOUND','/run/','_session','colno','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','range','_ensureSubject','red.300','_anchorDot','COLORS','_transformPreviousActiveRange','length','LOCAL_CACHE_INTERVAL_KEY','VIEW_MAIN','_initDependencies','unsubscribe','_initWindowErrorListener','LOCAL_CACHE_INTERVAL','\x20at\x20','NO_OTHER_CLIENTS_EDITING','Vector2','_messageService','collaboration.single-unit.warning','triggerDblclick','DesktopCollaborationStatusDisplayController','ENSURE_SNAPSHOT_EXECUTION','_transformHistoryAndStateStack','fromEvent','search','evenodd','formula.calculation.waiting','getRelativeToViewportCoord','onPointerEnter$','YUUMI_URL_COL_OUT_OF_RANGE','getUnit','endColumn','_transformService','createInstance','LICENSE_IMPORT_SIZE_EXCEEDED','LocaleService','DisposableCollection','APPLY_NON_SEQUENTIAL_REVISION','top','isArray','from','_config','_urlService','EffectRefRangId','stack','_name','DeleteRangeMoveUpCommandId','toString','makeDirty','onStarting','resize','handleIRemoveRow','replace','url(#on-line-icon_clip0_910_349)','OTHER_CLIENTS_EDITING','_setupSubUnitSync','add','CollaborationController','jiqing.500','INVITE_CODE_HAS_BEEN_UES','_backgroundColor','deserializeRangeWithSheet','filter','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_drawRectRange','_lastPointer','INotificationService','getCurrentUnitForType','bottom','eventID','ENTITLE_CAN_NOT_BUY_LOWER_OTP','REDEMPTION_INVALID_CODE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_updateSubUnitFromURLParams','clearTimeout','INTERNAL_ERROR','_onCursorDelete','JOIN_ROOM_FAILED','with','REDEMPTION_CODE_HAS_BEEN_CREATED','transform','distinctUntilChanged','collabStatus.fetchMiss','_dataLoaderService','transformByState','get','lineTo','width','updateOfflineData','ENTITLE_CHAT_LIMIT_EXCEED','_commandService','handleDeleteRangeMoveLeft','_getSaveTimeout','BehaviorSubject','editingUnit','executeCommand','isTransformMutationsWithChangesetSuccess','some','round','FETCH_MISS','EMAIL_VERIFY_CODE_MISMATCH','70XSmHcc','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','[Unhandled\x20Rejection]:\x20','substring','_getSessionTicket','WebURLService','getTypeOfUnitAdded$','collabStatus.conflict','getDocRanges','clearInterval','_setupBeforeClosingHandler','current','_getMergeRange','releaseFormulaLimitUrl','MOBILE_VERIFY_CODE_MISMATCH','isFormulaId','#FFF','UNIVER_SHEET','SetFormulaCalculationStartMutation','handleInsertRow','selection','getActiveRange','connectInjector','CURRENT_STATUS_CANNOT_OPERATE','blue.400','_checkAndWaitForCalculationPermission','IBeforeCloseService','setConfig','PENDING','_render','skeleton','_scheduleHeartbeat','measureText','ColorKit','runRefRangeMutations','forEach','YUUMI_RATE_OVER_LIMIT','xlink:href','redoState','_online','IRenderManagerService','now','getCoordByCell','entityInit$','YUUMI_ASYNCIO_CANCELLED','YUUMI_ALL_TABLES_IS_INVALID','222NalHmf','origin','ICommandService','DeleteRangeMoveLeftCommandId','_collabCursorController','_removeCollabCursors','_assignedColors','show','TRANSFORM_CHANGE_OBSERVABLE_TYPE','params','string','univer-flex\x20univer-items-center','getUndoRedoMutationParamsCache','yellow.400','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','split','text','_getScale','removeParam','DependentOn','IUniverInstanceService','colorChannel1','92HmSOUE','dirtyRanges','event$','getColorFromTheme','UNDEFINED','collabStatus.offline','toDisposable','_roomMembers$','_refreshCollabCursors','beginPath','registerComponent','collabStatus.notCollab','_registerRenderDependencies','transformMutationsWithChangeset','_collabCursorState$','_univerInstanceService','getSheetId','_labelPosition','LOGIN_TOKEN_PROCESSING_FAILED','IImageIoService','formula.calculation.unable','_docTransformSelectionsService','RemoveColCommandId','div','_id','filename','getUnitId','SheetSkeletonManagerService','CollaborationEvent','Error','generateRandomId','FormulaExecuteStageType','svg','SNAPSHOT_INVALID_SNAPSHOT','unload','_clearOtherTimers','_httpService','INVALID_INVITE_CODE','ILocalStorageService','dispose','limitInfo','_entities','HTTPService','row','init','syncEditingCollabCursor','_doCreateSocket','REDEMPTION_CODE_FULLY_REDEEMED','SetDocZoomRatioOperation','values','_applyCommand','name','REDEMPTION_CODE_NOT_STARTED','unitID','touchDependencies','collaboration.closeRoom','fillRule','Rect','YUUMI_NO_CUBOID_FOR_QUESTION','[Window\x20Error]:\x20','getColor','_onRefRangeChange','CollaborationDataLoaderController','_anchor','_syncEditingCollabCursorService','UniverInstanceType','sheetID','ENTITLE_INSUFFICIENT_QUOTA','APPLY_DUPLICATED','handleInsertRangeMoveRight','_init','RemoveRowCommandId','_send','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_showGuardMessage','13316PRUwTe','12505644tLcLzr','currentColor','4827102mjEINR','CONNECTOR_DATA_TOO_LARGE','toRgbString','map','_onCursorUpdate','useDependency','_hovered','LICENSE_EXPORT_SIZE_EXCEEDED','all','isFormulaString','includes','trim','/universer-api/license/formula/limit/done','DATA_SOURCE_TOO_LARGE','post','_taskIds','AUTHORIZE_CODE_ILLEGAL','_colorAssignService','setItem','EMAIL_HAS_BEEN_BOUND','setUndoRedoMutationParamsCache','session.collaboration-timeout','stageInfo','drawWith','UnitStatus','USER_IS_ANONYMOUS','http://www.w3.org/2000/svg','_pollingInterval','cursorInfo','runId','ITransformService','IURLService','SetFormulaCalculationNotificationMutation','_docClipboardService','_currentUsage','RECT','IMessageService','min','_releaseCalculationLimit','_collabSessionService','newValue','_cachedData','_saveCache','idSuffix','_initEvent','100705sUBgQm','...','_cursorInfo$','_sheetSkeletonManagerService','Workbook','UPDATE_CURSOR','_unitOnClients','subscribeEvent','override','_checkCalculationAvailable','/universer-api/license/formula/limit/status','_updateLocalCursor','saveOfflineData','MoveRangeCommandId','SheetsSelectionsService','error','addEventListener','collab-rect-range-','LICENSE_MAX_UNITS_EXCEEDED','unshift','Warning','registerDependencies','isEditing','SNAPSHOT_HAS_BEEN_REMOVED','UNIVER_DOC','_uiPartsService','parseInt','isActive','functionsExecutedState','sessionStatus$','getformulaLimitStatusUrl','subunit','enableFrontendLog','assignAColorForMemberID','DocSelectionManagerService','APPLY_PERMISSION_DENIED','parse','disposeWithMe','cursorInfo$','40cravYh','reconnect','USER_NOT_INVITED_CODE','defs','InsertColCommandId','status$','_initStatusComponent','_range','white','INVALID_ARGUMENT','_memberID','transformRemoteChangeset','_entityInit$','MOBILE_HAS_BEEN_BOUND','getCurrent','AWAITING_WITH_PENDING','href','permission.title','setActiveRange','/universer-api/frontend/logs','1283839zZmrIT','_clearPolling','handleInsertCol','UNRECOGNIZED','CollaborationUIEventService','_registerDependencies','NOT_FOUND','_lastResponseTimestamp','on-line-icon_clip0_910_349','application/json','REDEMPTION_CODE_INACTIVE','doc.mutation.rich-text-editing','UniverIcon','totalFormulasToCalculate','collaboration-client.offline-data-not-saved','random','ENTITLE_DUP_SUBSCRIPTION','IConfigService','path','Subject','registerRenderModule','_saveTaskMap','NodePositionConvertToRectRange','Injector','arc','APPLY_REJECT','_injector','color','_memberService','_eventUnsubscribe','urlChange$','debounceTime','startsWith','getOffsetConfig','getSheetBySheetId','_handleEvent','onMouseMove','_imageIoService','mutations','onTransformChange$','restore','[CollaborationDataLoaderController]','beforeCommandExecuted','pipe','fillText','Disposable','_themeService','fromEventSubject','debug','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RichTextEditingMutation','INVITE_CODE_ALREADY_BOUND','sessionTicket','_hover','fill','getActiveSheet'];_0x5449=function(){return _0x78b72;};return _0x5449();}const et={'tag':_0x2ff5b3(0x23d),'attrs':{'xmlns':_0x2ff5b3(0x285),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2ff5b3(0x144),'height':_0x2ff5b3(0x144)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'stroke':'currentColor','d':_0x2ff5b3(0xf7),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2ff5b3(0x2c2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'fill':_0x2ff5b3(0x2c7),'d':_0x2ff5b3(0x134)}}]}]}],'defIds':[_0x2ff5b3(0x35b)]},xe=A[_0x2ff5b3(0x137)](function(_0x5dab7b,_0x23d66c){const _0x535749=_0x2ff5b3;return A['createElement'](Te,Object[_0x535749(0x10b)]({},_0x5dab7b,{'id':_0x535749(0xd4),'ref':_0x23d66c,'icon':et}));});xe[_0x2ff5b3(0xf0)]='OffLineIcon';const tt={'tag':_0x2ff5b3(0x23d),'attrs':{'xmlns':_0x2ff5b3(0x285),'fill':_0x2ff5b3(0xd0),'viewBox':'0\x200\x2017\x2016','width':_0x2ff5b3(0x144),'height':_0x2ff5b3(0x144)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ff5b3(0x1a9)},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'stroke':_0x2ff5b3(0x26a),'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':_0x2ff5b3(0x1d6),'strokeLinejoin':_0x2ff5b3(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x2ff5b3(0x2c2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2ff5b3(0x2db)},'children':[{'tag':_0x2ff5b3(0x2e5),'attrs':{'fill':_0x2ff5b3(0x2c7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x2ff5b3(0x2db)]},Be=A['forwardRef'](function(_0x581259,_0x5d873d){const _0x618fad=_0x2ff5b3;return A[_0x618fad(0x110)](Te,Object[_0x618fad(0x10b)]({},_0x581259,{'id':'on-line-icon','ref':_0x5d873d,'icon':tt}));});Be[_0x2ff5b3(0xf0)]='OnLineIcon';function st(_0x4fd16b){const _0x445ec9=_0x2ff5b3;switch(_0x4fd16b){case u[_0x445ec9(0x34d)]['OFFLINE']:return _0x445ec9(0x222);case u[_0x445ec9(0x34d)]['CONFLICT']:return _0x445ec9(0x1e0);case u[_0x445ec9(0x34d)][_0x445ec9(0x1d7)]:return _0x445ec9(0x1c6);case u['CollaborationStatus'][_0x445ec9(0x115)]:return _0x445ec9(0x228);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x445ec9(0x2ce)]:return _0x445ec9(0x149);case u[_0x445ec9(0x34d)]['SYNCED']:case u[_0x445ec9(0x34d)][_0x445ec9(0x1f5)]:return _0x445ec9(0xd9);}}function it(_0x4fe75b){const _0x3b017f=_0x2ff5b3,{status$:_0x4237bc}=_0x4fe75b,_0x1b371d=O['useObservable'](_0x4237bc,u[_0x3b017f(0x34d)]['NOT_COLLAB']),_0x33ab18=O[_0x3b017f(0x270)](a['LocaleService']),_0x4396de=O['useDependency'](u['CollaborationSessionService']),_0x31f9f0=_0x1b371d!==u[_0x3b017f(0x34d)][_0x3b017f(0x38d)],_0x10b868=_0x33ab18['t'](st(_0x1b371d)),_0x30c718=_0x31f9f0?M[_0x3b017f(0x104)](Be,{}):M[_0x3b017f(0x104)](xe,{}),_0x31d5c6=A[_0x3b017f(0x339)](()=>{const _0x1bcb67=_0x3b017f;_0x31f9f0||_0x4396de[_0x1bcb67(0x2c0)]();},[_0x31f9f0,_0x4396de]);function _0x1cdd48(){const _0x574f6b=_0x3b017f;return M[_0x574f6b(0x162)](_0x574f6b(0x234),{'className':_0x574f6b(0x212),'onClick':_0x31d5c6,'children':[M[_0x574f6b(0x104)](_0x574f6b(0x234),{'className':T[_0x574f6b(0x344)](_0x574f6b(0x355),{'univer-text-green-500':_0x31f9f0,'univer-text-red-500':!_0x31f9f0}),'children':_0x30c718}),M[_0x574f6b(0x104)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x10b868})]});}return _0x31f9f0?_0x1cdd48():M[_0x3b017f(0x104)](T[_0x3b017f(0xe6)],{'title':_0x33ab18['t']('collab-client.tooltip.reconnect'),'children':_0x1cdd48()});}var nt=Object[_0x2ff5b3(0x35c)],rt=(_0x626afa,_0x28acca,_0x418c3e,_0x2e68c4)=>{const _0x2b5eb3=_0x2ff5b3;for(var _0x17d1bf=_0x2e68c4>0x1?void 0x0:_0x2e68c4?nt(_0x28acca,_0x418c3e):_0x28acca,_0x3b5587=_0x626afa[_0x2b5eb3(0x17b)]-0x1,_0x380bbe;_0x3b5587>=0x0;_0x3b5587--)(_0x380bbe=_0x626afa[_0x3b5587])&&(_0x17d1bf=_0x380bbe(_0x17d1bf)||_0x17d1bf);return _0x17d1bf;},K=(_0x71c944,_0x4d5d9c)=>(_0x4708cc,_0x2162a4)=>_0x4d5d9c(_0x4708cc,_0x2162a4,_0x71c944);exports[_0x2ff5b3(0x188)]=class extends a[_0x2ff5b3(0x300)]{constructor(_0x1d5ed3,_0x52e706,_0x4a166c,_0x201d05){const _0x555d2a=_0x2ff5b3;super(),_(this,'_status$',new I[(_0x555d2a(0x1d1))](u[_0x555d2a(0x34d)]['NOT_COLLAB'])),(this[_0x555d2a(0x22c)]=_0x1d5ed3,this[_0x555d2a(0x2ed)]=_0x52e706,this[_0x555d2a(0x107)]=_0x4a166c,this[_0x555d2a(0x2b1)]=_0x201d05,this[_0x555d2a(0x2c5)](),this[_0x555d2a(0x154)]());}['_initStatusListener'](){const _0x210218=_0x2ff5b3;this[_0x210218(0x2bd)](this[_0x210218(0x22c)][_0x210218(0x159)]['pipe'](I['switchMap'](()=>{const _0x3be95f=_0x210218,_0x3bbb1f=this[_0x3be95f(0x22c)][_0x3be95f(0x11c)]();return _0x3bbb1f?this['_collaborationController'][_0x3be95f(0x38a)](_0x3bbb1f[_0x3be95f(0x237)]()):I['of'](null);}),I[_0x210218(0x359)](_0x54372f=>_0x54372f?_0x54372f[_0x210218(0x2c4)]:I['of'](u[_0x210218(0x34d)][_0x210218(0x115)])))[_0x210218(0x336)](_0x329281=>{this['_status$']['next'](_0x329281);}));}[_0x2ff5b3(0x2c5)](){const _0x3b955f=_0x2ff5b3;this[_0x3b955f(0x2bd)](this[_0x3b955f(0x2b1)][_0x3b955f(0x227)](O[_0x3b955f(0x31c)]['HEADER_MENU'],()=>O[_0x3b955f(0x1ef)](ot({'status$':this[_0x3b955f(0x14c)][_0x3b955f(0x320)]()}),this[_0x3b955f(0x2ed)])));}},exports[_0x2ff5b3(0x188)]=rt([K(0x0,a[_0x2ff5b3(0x21b)]),K(0x1,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),K(0x2,a['Inject'](u[_0x2ff5b3(0x1ad)])),K(0x3,O[_0x2ff5b3(0x124)])],exports[_0x2ff5b3(0x188)]);function ot(_0x1535a7){const {status$:_0x561fcc}=_0x1535a7;return function(){const _0x20af34=_0x140f;return M[_0x20af34(0x104)](it,{'status$':_0x561fcc});};}const Oe=a['createIdentifier'](_0x2ff5b3(0xd2));var at=Object[_0x2ff5b3(0x35c)],ct=(_0x1202f3,_0x2a013b,_0x4cfbc3,_0x39c684)=>{const _0xaa1c32=_0x2ff5b3;for(var _0x5e2f00=_0x39c684>0x1?void 0x0:_0x39c684?at(_0x2a013b,_0x4cfbc3):_0x2a013b,_0x270aaf=_0x1202f3[_0xaa1c32(0x17b)]-0x1,_0x23fe51;_0x270aaf>=0x0;_0x270aaf--)(_0x23fe51=_0x1202f3[_0x270aaf])&&(_0x5e2f00=_0x23fe51(_0x5e2f00)||_0x5e2f00);return _0x5e2f00;},Y=(_0x23d7b7,_0x3e66f7)=>(_0x23b68b,_0x21f1d6)=>_0x3e66f7(_0x23b68b,_0x21f1d6,_0x23d7b7);exports['CollaborationDataLoaderController']=class extends a[_0x2ff5b3(0x131)]{constructor(_0x1e6de8,_0xc8422d,_0x85e996,_0x3c2436,_0x3834cf){const _0x5030e6=_0x2ff5b3;super(),this[_0x5030e6(0x19e)]=_0x1e6de8,this[_0x5030e6(0x15e)]=_0xc8422d,this['_commandService']=_0x85e996,this[_0x5030e6(0x1c7)]=_0x3c2436,_0x3834cf?_0x3834cf==null||_0x3834cf['whenReady']()[_0x5030e6(0x37c)](()=>this[_0x5030e6(0x263)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x5030e6(0x356)),this['_init']());}async[_0x2ff5b3(0x263)](){const _0x1ec5ac=_0x2ff5b3,_0x661468=this[_0x1ec5ac(0x19e)]['getParam'](_0x1ec5ac(0x376)),_0x5d135e=this['_urlService'][_0x1ec5ac(0xdc)](_0x1ec5ac(0x38e)),_0x14a6f9=this['_urlService'][_0x1ec5ac(0xdc)]('subunit');if(!_0x661468||!_0x5d135e){this[_0x1ec5ac(0x15e)][_0x1ec5ac(0x303)](_0x1ec5ac(0x2fc),_0x1ec5ac(0x304));return;}const _0x4c4b1b=await this['_dataLoaderService'][_0x1ec5ac(0x346)](_0x661468,Number(_0x5d135e),_0x14a6f9);_0x4c4b1b&&_0x4c4b1b instanceof a[_0x1ec5ac(0x29c)]&&this[_0x1ec5ac(0x1ab)](_0x4c4b1b);}async[_0x2ff5b3(0x1ab)](_0x2f97d3){const _0x4dacd4=_0x2ff5b3;await this['_updateSubUnitFromURLParams'](_0x2f97d3),_0x2f97d3[_0x4dacd4(0x148)][_0x4dacd4(0x2fe)](I[_0x4dacd4(0x106)](this['dispose$']))[_0x4dacd4(0x336)](_0x38a380=>{const _0x5e9c1e=_0x4dacd4;_0x38a380&&this[_0x5e9c1e(0x366)](_0x38a380);}),this[_0x4dacd4(0x19e)][_0x4dacd4(0x2f1)][_0x4dacd4(0x2fe)](I[_0x4dacd4(0x106)](this[_0x4dacd4(0x36c)]))[_0x4dacd4(0x336)](()=>this[_0x4dacd4(0x1bd)](_0x2f97d3));}[_0x2ff5b3(0x366)](_0x20734c,_0x1a8e23=!0x1){const _0x225560=_0x2ff5b3,_0x41a4c9=this[_0x225560(0x19e)][_0x225560(0xdc)]('subunit');_0x20734c[_0x225560(0x22d)]()!==_0x41a4c9&&this['_urlService'][_0x225560(0x347)](_0x225560(0x2b7),_0x20734c[_0x225560(0x22d)](),_0x1a8e23);}async[_0x2ff5b3(0x1bd)](_0x4b7869){const _0x293f07=_0x2ff5b3;var _0xc146d3;const _0x9e71c7=this[_0x293f07(0x19e)][_0x293f07(0xdc)](_0x293f07(0x2b7));if(!_0x9e71c7||!_0x4b7869['getSheetBySheetId'](_0x9e71c7)){const _0x792fb2=_0x4b7869['getUnhiddenWorksheets']()[0x0],_0x550d3d=_0x4b7869[_0x293f07(0x2f5)](_0x792fb2);if(!_0x550d3d)return;this[_0x293f07(0x366)](_0x550d3d,!0x0),await this['_commandService'][_0x293f07(0x1d3)](v[_0x293f07(0x313)]['id'],{'unitId':_0x4b7869[_0x293f07(0x237)](),'subUnitId':_0x792fb2});return;}((_0xc146d3=_0x4b7869[_0x293f07(0x30a)]())==null?void 0x0:_0xc146d3[_0x293f07(0x22d)]())!==_0x9e71c7&&await this[_0x293f07(0x1ce)][_0x293f07(0x1d3)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4b7869['getUnitId'](),'subUnitId':_0x9e71c7});}},exports[_0x2ff5b3(0x25b)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x2ff5b3(0x209)]),Y(0x3,a[_0x2ff5b3(0x394)](u['DataLoaderService'])),Y(0x4,a[_0x2ff5b3(0x314)](qe[_0x2ff5b3(0x130)]))],exports['CollaborationDataLoaderController']);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x2671fa,_0x430c2,_0x4c1e26,_0x3b183d)=>{for(var _0x5c326d=_0x3b183d>0x1?void 0x0:_0x3b183d?lt(_0x430c2,_0x4c1e26):_0x430c2,_0x32c695=_0x2671fa['length']-0x1,_0xc6e45b;_0x32c695>=0x0;_0x32c695--)(_0xc6e45b=_0x2671fa[_0x32c695])&&(_0x5c326d=_0xc6e45b(_0x5c326d)||_0x5c326d);return _0x5c326d;},De=(_0x4b8406,_0x20ac28)=>(_0x362e40,_0x1e10a2)=>_0x20ac28(_0x362e40,_0x1e10a2,_0x4b8406);let me=class extends a['RxDisposable']{constructor(_0x365411,_0x1fccb9){const _0x142675=_0x2ff5b3;super(),this[_0x142675(0x28c)]=_0x365411,this[_0x142675(0x2f8)]=_0x1fccb9,this[_0x142675(0x263)]();}[_0x2ff5b3(0x263)](){const _0x7b5cf1=_0x2ff5b3,_0x2d5b61=this;this[_0x7b5cf1(0x2bd)](this[_0x7b5cf1(0x28c)][_0x7b5cf1(0xf2)]({'onBeforePasteImage':async _0x3a948a=>{const _0x2aa860=_0x7b5cf1,_0x4a8ac=await _0x2d5b61[_0x2aa860(0x2f8)][_0x2aa860(0x31d)](_0x3a948a);return _0x4a8ac?{'source':_0x4a8ac['source'],'imageSourceType':_0x4a8ac[_0x2aa860(0x139)]}:null;}}));}};me=_t([De(0x0,p[_0x2ff5b3(0x32c)]),De(0x1,ze[_0x2ff5b3(0x230)])],me);const Ne=['purple.300',_0x2ff5b3(0x1ae),'green.600',_0x2ff5b3(0x177),_0x2ff5b3(0x1f1),_0x2ff5b3(0x214)];class Re extends a[_0x2ff5b3(0x300)]{constructor(){const _0x5155b5=_0x2ff5b3;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5155b5(0x114),0x0);}[_0x2ff5b3(0x2b9)](_0x38b118){const _0x41180e=_0x2ff5b3;if(this[_0x41180e(0x20d)]['has'](_0x38b118))return this[_0x41180e(0x20d)][_0x41180e(0x1c9)](_0x38b118);const _0x435294=Ne[this[_0x41180e(0x114)]];return this['_colorIndex']=(this[_0x41180e(0x114)]+0x1)%Ne[_0x41180e(0x17b)],this[_0x41180e(0x20d)][_0x41180e(0x386)](_0x38b118,_0x435294),_0x435294;}}function Fe(_0x7eb32b){const _0x2a86e0=_0x2ff5b3;let _0x4f306d='';for(const _0x3f7e24 of _0x7eb32b){const {startOffset:_0x404b2f,endOffset:_0x40a26f,isActive:_0x1295b6,rangeType:_0x3316e7,segmentId:_0x222f93,segmentPage:_0x4301b2}=_0x3f7e24;_0x4f306d[_0x2a86e0(0x17b)]&&(_0x4f306d+=','),_0x4f306d+=_0x404b2f+':'+_0x40a26f+':'+(_0x1295b6?'1':'0')+':'+_0x3316e7+':'+_0x222f93+':'+_0x4301b2;}return _0x4f306d;}function ht(_0x227596){const _0x46f451=_0x2ff5b3,_0x59a9ea=_0x227596[_0x46f451(0x216)](','),_0x3fb96e=[];for(const _0x4a6f18 of _0x59a9ea){const [_0x2d546b,_0x2b429c,_0x405822,_0x1295ad,_0xae3f58,_0x13c014]=_0x4a6f18['split'](':');_0x3fb96e[_0x46f451(0x32d)]({'startOffset':Number(_0x2d546b),'endOffset':Number(_0x2b429c),'collapsed':_0x2d546b===_0x2b429c,'isActive':_0x405822==='1','rangeType':_0x1295ad===a[_0x46f451(0x14a)]['TEXT']?a['DOC_RANGE_TYPE'][_0x46f451(0xde)]:a[_0x46f451(0x14a)][_0x46f451(0x28e)],'segmentId':typeof _0xae3f58==_0x46f451(0x211)?String(_0xae3f58):'','segmentPage':Number(_0x13c014!=null?_0x13c014:-0x1)});}return _0x3fb96e[_0x46f451(0x1d5)](_0x40e1ec=>_0x40e1ec[_0x46f451(0x2b3)])||(_0x3fb96e[0x0][_0x46f451(0x2b3)]=!0x0),_0x3fb96e;}class be extends a[_0x2ff5b3(0x131)]{constructor(){const _0x16a0f1=_0x2ff5b3;super(...arguments),_(this,_0x16a0f1(0x22b),new I[(_0x16a0f1(0x1d1))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x16a0f1(0x320)]());}['syncEditingCollabCursor'](_0x30f97b){const _0x3974aa=_0x2ff5b3,{unitID:_0x2da3d2,memberID:_0x2f713f,textRanges:_0x221500}=_0x30f97b,_0x281202=Fe(_0x221500);if(_0x281202==='')return;const _0x1aec45={'unitID':_0x2da3d2,'memberID':_0x2f713f,'selection':_0x281202};this[_0x3974aa(0x22b)][_0x3974aa(0x14d)](_0x1aec45);}}var ut=Object[_0x2ff5b3(0x35c)],It=(_0x2c8c89,_0x4ddc9d,_0x224cf1,_0x3a9ac2)=>{const _0x222537=_0x2ff5b3;for(var _0xbc74=_0x3a9ac2>0x1?void 0x0:_0x3a9ac2?ut(_0x4ddc9d,_0x224cf1):_0x4ddc9d,_0x2391d9=_0x2c8c89[_0x222537(0x17b)]-0x1,_0x71405c;_0x2391d9>=0x0;_0x2391d9--)(_0x71405c=_0x2c8c89[_0x2391d9])&&(_0xbc74=_0x71405c(_0xbc74)||_0xbc74);return _0xbc74;},U=(_0x1218e4,_0x2567a0)=>(_0x3be6d2,_0x4c2d5b)=>_0x2567a0(_0x3be6d2,_0x4c2d5b,_0x1218e4);const dt=0x12c,St=0x64;let ve=class extends a[_0x2ff5b3(0x131)]{constructor(_0x2397ce,_0x424bc8,_0x2c2d30,_0xd8ca18,_0x590766,_0x499025,_0x3c7145,_0x5df6d0,_0x297d23){const _0x5b1b5c=_0x2ff5b3;super(),_(this,_0x5b1b5c(0x200),!0x1),_(this,_0x5b1b5c(0x263),!0x1),_(this,_0x5b1b5c(0x29a),new I[(_0x5b1b5c(0x1d1))](new Map())),_(this,'cursorInfo$',this[_0x5b1b5c(0x29a)][_0x5b1b5c(0x320)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x5b1b5c(0x167),this[_0x5b1b5c(0x224)][_0x5b1b5c(0x2fe)](I['debounceTime'](dt))),_(this,_0x5b1b5c(0x2a3),a[_0x5b1b5c(0x325)](_0x279f6a=>{const _0x219bc2=_0x5b1b5c,_0x2b52a6={'eventID':g[_0x219bc2(0x239)][_0x219bc2(0x29d)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x279f6a)}};this['_session']['send'](_0x2b52a6,this[_0x219bc2(0x252)]);},St)),(this[_0x5b1b5c(0x252)]=_0x2397ce,this[_0x5b1b5c(0x172)]=_0x424bc8,this[_0x5b1b5c(0x2ed)]=_0x2c2d30,this[_0x5b1b5c(0x27c)]=_0xd8ca18,this[_0x5b1b5c(0x2ef)]=_0x590766,this['_syncEditingCollabCursorService']=_0x499025,this[_0x5b1b5c(0x194)]=_0x3c7145,this[_0x5b1b5c(0x22c)]=_0x5df6d0,this['_commandService']=_0x297d23);}get[_0x2ff5b3(0x287)](){const _0x5a63c8=_0x2ff5b3;return this[_0x5a63c8(0x29a)][_0x5a63c8(0x16c)]();}get[_0x2ff5b3(0x10e)](){return this['_roomMembers$']['getValue']();}[_0x2ff5b3(0x244)](){const _0x430ab0=_0x2ff5b3;super[_0x430ab0(0x244)](),this['_cursorInfo$']['next'](new Map()),this[_0x430ab0(0x29a)][_0x430ab0(0x327)](),this[_0x430ab0(0x224)][_0x430ab0(0x14d)]([]),this[_0x430ab0(0x224)][_0x430ab0(0x327)]();}[_0x2ff5b3(0x249)](){const _0xe24109=_0x2ff5b3;this[_0xe24109(0x263)]||(this[_0xe24109(0x263)]=!0x0,this['_session'][_0xe24109(0x2b5)][_0xe24109(0x2fe)](I[_0xe24109(0x106)](this[_0xe24109(0x36c)]))[_0xe24109(0x336)](_0x13e1b0=>{const _0x1255fa=_0xe24109;_0x13e1b0===u['SessionStatus'][_0x1255fa(0xe0)]?this['_toggleOnline']():this[_0x1255fa(0x334)]();}),this[_0xe24109(0x172)][_0xe24109(0x21f)][_0xe24109(0x2fe)](I[_0xe24109(0x106)](this['dispose$']))[_0xe24109(0x336)](_0x1772d0=>{const _0x34ecb4=_0xe24109,_0x450695=_0x1772d0[_0x34ecb4(0x1b9)];_0x450695===g[_0x34ecb4(0x239)][_0x34ecb4(0x29d)]&&this[_0x34ecb4(0x26f)](_0x1772d0),_0x450695===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x34ecb4(0x1c0)](_0x1772d0);}),this['disposeWithMe'](this[_0xe24109(0x1ce)][_0xe24109(0x142)](_0x2b9f05=>{const _0x3d7257=_0xe24109,_0x384169=_0x2b9f05[_0x3d7257(0x210)];_0x384169!=null&&this[_0x3d7257(0x200)]&&_0x2b9f05['id']===V['SetTextSelectionsOperation']['id']&&_0x384169['unitId']===this[_0x3d7257(0x252)]&&_0x384169[_0x3d7257(0x2ae)]===!0x1&&_0x384169[_0x3d7257(0x33b)][_0x3d7257(0x17b)]>0x0&&this[_0x3d7257(0x2a3)](_0x384169['ranges']);})),this[_0xe24109(0x25d)]['collabCursorState$'][_0xe24109(0x2fe)](I['takeUntil'](this['dispose$']))['subscribe'](_0x487cb6=>{const _0x1a7f90=_0xe24109;if((_0x487cb6==null?void 0x0:_0x487cb6[_0x1a7f90(0x252)])!==this['unitID'])return;const _0x58456c={'eventID':g['CollaborationEvent'][_0x1a7f90(0x29d)],'data':_0x487cb6};this[_0x1a7f90(0x26f)](_0x58456c);}),this[_0xe24109(0x2bd)](this['_commandService'][_0xe24109(0x142)](_0x2d4169=>{const _0x230b7a=_0xe24109;if(_0x2d4169['params']==null)return;const _0x195651=_0x2d4169[_0x230b7a(0x210)];if(_0x2d4169['id']!==V[_0x230b7a(0x305)]['id']||_0x195651[_0x230b7a(0x331)]!==this['unitID'])return;const _0x4be4ac={'id':_0x230b7a(0x2de),'params':_0x195651},_0x4988ee=this[_0x230b7a(0x287)];for(const [_0x1a2b67,_0x382528]of _0x4988ee){const _0x48c246={'id':_0x230b7a(0x2de),'params':{'unitId':this[_0x230b7a(0x252)],'actions':null,'textRanges':_0x382528[_0x230b7a(0x33b)]}},_0x484f7d=this[_0x230b7a(0x194)][_0x230b7a(0x354)](_0x4be4ac,_0x48c246,!0x1);if(g[_0x230b7a(0x381)](_0x484f7d))throw _0x484f7d[_0x230b7a(0x2a7)];_0x4988ee[_0x230b7a(0x386)](_0x1a2b67,{..._0x382528,'ranges':_0x484f7d[_0x230b7a(0x37d)]['params'][_0x230b7a(0x10c)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4988ee);});})));}['_onCursorUpdate'](_0x3936b3){const _0x18e36a=_0x2ff5b3;var _0x4f4a08,_0x2c979b;const {memberID:_0x92815e,selection:_0x259cdc}=_0x3936b3[_0x18e36a(0x34c)],_0x5de089=ht(_0x259cdc),_0x8ae25d=(_0x2c979b=(_0x4f4a08=this[_0x18e36a(0x2ef)][_0x18e36a(0x378)](this[_0x18e36a(0x252)],_0x92815e))==null?void 0x0:_0x4f4a08['name'])!=null?_0x2c979b:_0x18e36a(0xfa),_0x3af0a6={'color':this[_0x18e36a(0x27c)][_0x18e36a(0x2b9)](_0x92815e),'name':_0x8ae25d,'ranges':_0x5de089},_0x244eb7=this['cursorInfo'];_0x244eb7[_0x18e36a(0x386)](_0x92815e,_0x3af0a6),this['_cursorInfo$'][_0x18e36a(0x14d)](_0x244eb7);}[_0x2ff5b3(0x1c0)](_0x84218a){const _0x36c51d=_0x2ff5b3,{memberID:_0x6bb0ec}=_0x84218a[_0x36c51d(0x34c)],_0x1b3886=this[_0x36c51d(0x287)];_0x1b3886[_0x36c51d(0x365)](_0x6bb0ec),this[_0x36c51d(0x29a)][_0x36c51d(0x14d)](_0x1b3886);}[_0x2ff5b3(0xea)](){const _0x593819=_0x2ff5b3;var _0x3ddbbc;if(this[_0x593819(0x200)]=!0x0,((_0x3ddbbc=this[_0x593819(0x22c)][_0x593819(0x11c)]())==null?void 0x0:_0x3ddbbc[_0x593819(0x237)]())!==this['unitID'])return;const _0x419c7f=this['_injector']['get'](V[_0x593819(0x2ba)])[_0x593819(0x1e1)]();Array['isArray'](_0x419c7f)&&_0x419c7f[_0x593819(0x17b)]>0x0&&this['_updateLocalCursor'](_0x419c7f);}[_0x2ff5b3(0x334)](){const _0x4bee30=_0x2ff5b3;this[_0x4bee30(0x200)]=!0x1;}};ve=It([U(0x2,a[_0x2ff5b3(0x394)](a['Injector'])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x2ff5b3(0x394)](u[_0x2ff5b3(0xe2)])),U(0x5,a['Inject'](be)),U(0x6,g[_0x2ff5b3(0x289)]),U(0x7,a[_0x2ff5b3(0x21b)]),U(0x8,a[_0x2ff5b3(0x209)])],ve);var ft=Object[_0x2ff5b3(0x35c)],mt=(_0x243e69,_0x360b8d,_0xcb7915,_0x12d9f0)=>{const _0x240adf=_0x2ff5b3;for(var _0x3985b0=_0x12d9f0>0x1?void 0x0:_0x12d9f0?ft(_0x360b8d,_0xcb7915):_0x360b8d,_0x1b292b=_0x243e69[_0x240adf(0x17b)]-0x1,_0x179215;_0x1b292b>=0x0;_0x1b292b--)(_0x179215=_0x243e69[_0x1b292b])&&(_0x3985b0=_0x179215(_0x3985b0)||_0x3985b0);return _0x3985b0;},w=(_0x12a203,_0xc28d27)=>(_0x29b217,_0x4b3832)=>_0xc28d27(_0x29b217,_0x4b3832,_0x12a203);const vt=0x12c,gt=0x64,Et=()=>{let _0xc2f754=[],_0x5bf4e7=!0x1;return _0x10bd2e=>{const _0x45ccc6=_0x140f;_0xc2f754[_0x45ccc6(0x32d)](_0x10bd2e),_0x5bf4e7||(_0x5bf4e7=!0x0,setTimeout(()=>{const _0x44beb0=_0x45ccc6;_0xc2f754[_0x44beb0(0x1fc)](_0xb4ac1=>_0xb4ac1()),_0xc2f754=[],_0x5bf4e7=!0x1;}));};};let ge=class extends a[_0x2ff5b3(0x131)]{constructor(_0x3d7aef,_0x41641b,_0x478e8a,_0x47ca5f,_0x5606f0,_0x38eedc,_0x2f3751,_0x21bc3e){const _0x489cbe=_0x2ff5b3;super(),_(this,_0x489cbe(0x200),!0x1),_(this,_0x489cbe(0x263),!0x1),_(this,'_cursorInfo$',new I[(_0x489cbe(0x1d1))](new Map())),_(this,'cursorInfo$',this[_0x489cbe(0x29a)][_0x489cbe(0x320)]()),_(this,_0x489cbe(0x224),new I[(_0x489cbe(0x1d1))]([])),_(this,_0x489cbe(0x167),this[_0x489cbe(0x224)][_0x489cbe(0x2fe)](I[_0x489cbe(0x2f2)](vt))),_(this,_0x489cbe(0x2a3),a[_0x489cbe(0x325)]((_0x440244,_0x1235f0)=>{const _0xaa0dc9=_0x489cbe,_0x56b1d3={'eventID':g['CollaborationEvent'][_0xaa0dc9(0x29d)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xaa0dc9(0x321)](),'selection':B[_0xaa0dc9(0x158)](_0x440244,_0x1235f0[_0xaa0dc9(0x175)])}};this[_0xaa0dc9(0x172)][_0xaa0dc9(0x38f)](_0x56b1d3,this[_0xaa0dc9(0x252)]);},gt)),(this[_0x489cbe(0x252)]=_0x3d7aef,this['_session']=_0x41641b,this[_0x489cbe(0x2ed)]=_0x478e8a,this['_colorAssignService']=_0x47ca5f,this[_0x489cbe(0x2ef)]=_0x5606f0,this[_0x489cbe(0x22c)]=_0x38eedc,this['_commandService']=_0x2f3751,this[_0x489cbe(0x14e)]=_0x21bc3e);}get[_0x2ff5b3(0x287)](){const _0xb07be6=_0x2ff5b3;return this[_0xb07be6(0x29a)][_0xb07be6(0x16c)]();}get[_0x2ff5b3(0x10e)](){const _0xba2dbb=_0x2ff5b3;return this[_0xba2dbb(0x224)][_0xba2dbb(0x16c)]();}[_0x2ff5b3(0x244)](){const _0x554ae3=_0x2ff5b3;super['dispose'](),this['_cursorInfo$'][_0x554ae3(0x14d)](new Map()),this[_0x554ae3(0x29a)][_0x554ae3(0x327)](),this['_roomMembers$']['next']([]),this[_0x554ae3(0x224)][_0x554ae3(0x327)]();}[_0x2ff5b3(0x249)](){const _0x258cb0=_0x2ff5b3;this[_0x258cb0(0x263)]||(this['_init']=!0x0,this['_session'][_0x258cb0(0x2b5)]['pipe'](I[_0x258cb0(0x106)](this[_0x258cb0(0x36c)]))[_0x258cb0(0x336)](_0x250206=>{const _0x2a9bff=_0x258cb0;_0x250206===u[_0x2a9bff(0xe9)][_0x2a9bff(0xe0)]?this[_0x2a9bff(0xea)]():this[_0x2a9bff(0x334)]();}),this[_0x258cb0(0x172)][_0x258cb0(0x21f)][_0x258cb0(0x2fe)](I[_0x258cb0(0x106)](this[_0x258cb0(0x36c)]))[_0x258cb0(0x336)](_0x598d7a=>{const _0x8ed02c=_0x258cb0,_0xaf44aa=_0x598d7a[_0x8ed02c(0x1b9)];_0xaf44aa===g['CollaborationEvent'][_0x8ed02c(0x29d)]&&this['_onCursorUpdate'](_0x598d7a),_0xaf44aa===g[_0x8ed02c(0x239)]['USERS_LEAVE']&&this[_0x8ed02c(0x1c0)](_0x598d7a);}),this[_0x258cb0(0x25a)](),this['disposeWithMe'](this[_0x258cb0(0x1ce)][_0x258cb0(0x142)](_0x3833b7=>{const _0x3f3ea0=_0x258cb0;if(this['_online']&&_0x3833b7['id']===v['SetSelectionsOperation']['id']&&_0x3833b7[_0x3f3ea0(0x210)][_0x3f3ea0(0x331)]===this['unitID']){const _0x551ab5=_0x3833b7['params'];this[_0x3f3ea0(0x2a3)](_0x551ab5['subUnitId'],_0x551ab5['selections'][0x0]);}})));}[_0x2ff5b3(0x26f)](_0xb19c17){const _0x23ee2b=_0x2ff5b3;var _0xf239de,_0x2611b2;const {memberID:_0x39312c,selection:_0x1d0654}=_0xb19c17[_0x23ee2b(0x34c)],{sheetName:_0x201347,range:_0x1e32df}=B[_0x23ee2b(0x1b1)](_0x1d0654),_0x152aa8={'name':(_0x2611b2=(_0xf239de=this[_0x23ee2b(0x2ef)]['getMember'](this[_0x23ee2b(0x252)],_0x39312c))==null?void 0x0:_0xf239de[_0x23ee2b(0x250)])!=null?_0x2611b2:'Unknown\x20user','range':this[_0x23ee2b(0x1e5)](_0x201347,_0x1e32df),'sheetID':_0x201347,'color':this[_0x23ee2b(0x27c)][_0x23ee2b(0x2b9)](_0x39312c),'selection':_0x1d0654},_0x3ba0c0=this[_0x23ee2b(0x287)];_0x3ba0c0[_0x23ee2b(0x386)](_0x39312c,_0x152aa8),this['_cursorInfo$'][_0x23ee2b(0x14d)](_0x3ba0c0);}[_0x2ff5b3(0x1c0)](_0x622fc7){const _0x2022f5=_0x2ff5b3,{memberID:_0x41cc67}=_0x622fc7[_0x2022f5(0x34c)],_0x43e367=this[_0x2022f5(0x287)];_0x43e367[_0x2022f5(0x365)](_0x41cc67),this['_cursorInfo$'][_0x2022f5(0x14d)](_0x43e367);}[_0x2ff5b3(0x1e5)](_0x3b9bb6,_0x78ccc0){const _0x1e4834=_0x2ff5b3;var _0x8c4290,_0x2b8f37;const _0x57f88c=(_0x2b8f37=(_0x8c4290=this[_0x1e4834(0x22c)]['getUniverSheetInstance'](this[_0x1e4834(0x252)]))==null?void 0x0:_0x8c4290['getSheetBySheetId'](_0x3b9bb6))==null?void 0x0:_0x2b8f37[_0x1e4834(0x119)]();return(_0x57f88c==null?void 0x0:_0x57f88c['find'](_0x5d59d8=>a['Rectangle']['contains'](_0x5d59d8,_0x78ccc0)))||_0x78ccc0;}[_0x2ff5b3(0x25a)](){const _0x2062fa=_0x2ff5b3,_0x124b13=new a[(_0x2062fa(0x198))](),_0x3cc583=Et(),_0x251f0b=()=>{const _0x36b489=_0x2062fa;_0x124b13[_0x36b489(0x244)]();const _0x3151d=(_0x59b460,_0x44a947,_0x378aa8,_0x2c9ff2)=>{const _0x26c215=_0x36b489;let _0x41e71c=[];switch(_0x59b460['id']){case v[_0x26c215(0x19f)][_0x26c215(0x20a)]:{_0x41e71c=v[_0x26c215(0x1cf)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x1a2)]:{_0x41e71c=v['handleDeleteRangeMoveUp'](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x2c3)]:{_0x41e71c=v[_0x26c215(0x2d5)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)]['InsertRangeMoveDownCommandId']:{_0x41e71c=v[_0x26c215(0x163)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)][_0x26c215(0xe8)]:{_0x41e71c=v[_0x26c215(0x262)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)]['InsertRowCommandId']:{_0x41e71c=v[_0x26c215(0x1ec)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x2a5)]:{_0x41e71c=v[_0x26c215(0xeb)](_0x59b460,_0x2c9ff2);break;}case v[_0x26c215(0x19f)][_0x26c215(0x233)]:{_0x41e71c=v[_0x26c215(0xf6)](_0x59b460,_0x2c9ff2);break;}case v['EffectRefRangId'][_0x26c215(0x264)]:{_0x41e71c=v[_0x26c215(0x1a7)](_0x59b460,_0x2c9ff2);break;}}const _0x28cbbe=v[_0x26c215(0x1fb)](_0x41e71c,_0x2c9ff2),_0x6ab597=this[_0x26c215(0x287)][_0x26c215(0x1c9)](_0x44a947);if(_0x6ab597&&_0x28cbbe){const _0xac8f72={..._0x6ab597,'range':_0x28cbbe};this[_0x26c215(0x287)][_0x26c215(0x386)](_0x44a947,_0xac8f72),_0x3cc583(()=>{const _0x33d673=_0x26c215,_0xb0f5a8=this[_0x33d673(0x14e)][_0x33d673(0x37e)](_0x28cbbe,_0xa6b8c9=>(_0xb0f5a8['dispose'](),_0x3151d(_0xa6b8c9,_0x44a947,_0x378aa8,_0x28cbbe)));_0x124b13[_0x33d673(0x1ac)](_0xb0f5a8);});}return{'redos':[],'undos':[]};};this[_0x36b489(0x287)]['forEach']((_0xb5bcab,_0xa41d5)=>{const _0x1834ee=_0x36b489,{range:_0x90752c,sheetID:_0x505f5f}=_0xb5bcab,_0x5e0ca6=this[_0x1834ee(0x14e)][_0x1834ee(0x37e)](_0x90752c,_0x15fc97=>(_0x5e0ca6[_0x1834ee(0x244)](),_0x3151d(_0x15fc97,_0xa41d5,_0x505f5f,_0x90752c)));_0x124b13[_0x1834ee(0x1ac)](_0x5e0ca6);});};this['disposeWithMe'](a[_0x2062fa(0x223)](this[_0x2062fa(0x29a)][_0x2062fa(0x336)](()=>{_0x251f0b();})));}['_toggleOnline'](){const _0x5a1f82=_0x2ff5b3;var _0x39727f,_0xd1e4ed;if(this[_0x5a1f82(0x200)]=!0x0,((_0x39727f=this[_0x5a1f82(0x22c)][_0x5a1f82(0x11c)]())==null?void 0x0:_0x39727f[_0x5a1f82(0x237)]())!==this['unitID'])return;const _0x463280=(_0xd1e4ed=this[_0x5a1f82(0x2ed)]['get'](v[_0x5a1f82(0x2a6)])[_0x5a1f82(0x357)]())==null?void 0x0:_0xd1e4ed[0x0],_0x40d3f8=this[_0x5a1f82(0x22c)][_0x5a1f82(0x1b7)](a[_0x5a1f82(0x25e)][_0x5a1f82(0x1ea)])[_0x5a1f82(0x30a)]();_0x463280&&_0x40d3f8&&this['_updateLocalCursor'](_0x40d3f8[_0x5a1f82(0x22d)](),_0x463280);}['_toggleOffline'](){const _0x310160=_0x2ff5b3;this[_0x310160(0x200)]=!0x1;}};ge=mt([w(0x2,a[_0x2ff5b3(0x394)](a['Injector'])),w(0x3,a[_0x2ff5b3(0x394)](Re)),w(0x4,a[_0x2ff5b3(0x394)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2ff5b3(0x209)]),w(0x7,a[_0x2ff5b3(0x394)](v['RefRangeService']))],ge);var Ct=Object[_0x2ff5b3(0x35c)],pt=(_0x2b7c2e,_0x1490e8,_0x39bb01,_0x5c99f7)=>{for(var _0x4c8fb4=_0x5c99f7>0x1?void 0x0:_0x5c99f7?Ct(_0x1490e8,_0x39bb01):_0x1490e8,_0x3eabe4=_0x2b7c2e['length']-0x1,_0x2765f3;_0x3eabe4>=0x0;_0x3eabe4--)(_0x2765f3=_0x2b7c2e[_0x3eabe4])&&(_0x4c8fb4=_0x2765f3(_0x4c8fb4)||_0x4c8fb4);return _0x4c8fb4;},ce=(_0x5bf7f1,_0x40e963)=>(_0x55e6c8,_0x183d79)=>_0x40e963(_0x55e6c8,_0x183d79,_0x5bf7f1);let F=class extends a[_0x2ff5b3(0x131)]{constructor(_0x53610d,_0x5948bf,_0x222075){const _0x3ce713=_0x2ff5b3;super(),_(this,_0x3ce713(0x246),new Map()),_(this,_0x3ce713(0x2cb),new I[(_0x3ce713(0x2e6))]()),(this['_univerInstanceService']=_0x53610d,this['_injector']=_0x5948bf,this[_0x3ce713(0x292)]=_0x222075,this[_0x3ce713(0x263)]());}[_0x2ff5b3(0x244)](){const _0x7499bd=_0x2ff5b3;super['dispose'](),this['_entityInit$'][_0x7499bd(0x327)](),this[_0x7499bd(0x246)]['forEach'](_0x311bad=>_0x311bad[_0x7499bd(0x244)]());}['getCollabCursors$'](_0x2f3de8){const _0x5d5217=_0x2ff5b3;return this[_0x5d5217(0x246)][_0x5d5217(0xf3)](_0x2f3de8)?this[_0x5d5217(0x246)][_0x5d5217(0x1c9)](_0x2f3de8)[_0x5d5217(0x2be)]:this['_entityInit$'][_0x5d5217(0x2fe)](I[_0x5d5217(0x1b2)](_0x55d9f6=>_0x55d9f6[_0x5d5217(0x252)]===_0x2f3de8),I[_0x5d5217(0x359)](_0x436876=>_0x436876[_0x5d5217(0x2be)]));}[_0x2ff5b3(0x263)](){const _0x167109=_0x2ff5b3;this[_0x167109(0x22c)][_0x167109(0x1df)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x167109(0x2fe)](I[_0x167109(0x106)](this[_0x167109(0x36c)]))[_0x167109(0x336)](async _0x750ade=>{const _0x97149f=_0x167109,_0xfa6c1a=_0x750ade['getUnitId'](),_0x29c0e4=await this['_startSheetCollabCursor'](_0xfa6c1a);this[_0x97149f(0x2cb)]['next'](_0x29c0e4),this['_entities'][_0x97149f(0x386)](_0xfa6c1a,_0x29c0e4);}),this['_univerInstanceService'][_0x167109(0x1df)](a['UniverInstanceType'][_0x167109(0x2b0)])[_0x167109(0x2fe)](I[_0x167109(0x106)](this[_0x167109(0x36c)]))[_0x167109(0x2fe)](I['filter'](_0x316303=>!_0x316303[_0x167109(0x237)]()[_0x167109(0x2f3)]('__')))['subscribe'](async _0x26795d=>{const _0x4c6d51=_0x167109,_0x2f9438=_0x26795d[_0x4c6d51(0x237)](),_0x545fde=await this['_startDocCollabCursor'](_0x2f9438);this[_0x4c6d51(0x2cb)]['next'](_0x545fde),this[_0x4c6d51(0x246)][_0x4c6d51(0x386)](_0x2f9438,_0x545fde);}),I[_0x167109(0x33f)](this[_0x167109(0x22c)][_0x167109(0x156)](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x167109(0x25e)][_0x167109(0x1ea)]))['pipe'](I[_0x167109(0x106)](this['dispose$']))[_0x167109(0x336)](_0x36b106=>{const _0x25d7d9=_0x167109,_0x4d2674=_0x36b106[_0x25d7d9(0x237)](),_0x1c53d1=this['_entities'][_0x25d7d9(0x1c9)](_0x4d2674);_0x1c53d1&&(_0x1c53d1[_0x25d7d9(0x244)](),this[_0x25d7d9(0x246)][_0x25d7d9(0x365)](_0x4d2674));});}async[_0x2ff5b3(0x370)](_0x5d1f1c){const _0x1f842d=_0x2ff5b3,_0x220b95=await this[_0x1f842d(0x292)][_0x1f842d(0x120)](_0x5d1f1c),_0x2bd5b6=this[_0x1f842d(0x2ed)][_0x1f842d(0x195)](ge,_0x5d1f1c,_0x220b95);return _0x2bd5b6[_0x1f842d(0x249)](),_0x2bd5b6;}async['_startDocCollabCursor'](_0x1424ee){const _0x1c8d1e=_0x2ff5b3,_0x296eb1=await this[_0x1c8d1e(0x292)][_0x1c8d1e(0x120)](_0x1424ee),_0x1d6202=this[_0x1c8d1e(0x2ed)][_0x1c8d1e(0x195)](ve,_0x1424ee,_0x296eb1);return _0x1d6202['init'](),_0x1d6202;}};F=pt([ce(0x0,a[_0x2ff5b3(0x21b)]),ce(0x1,a[_0x2ff5b3(0x394)](a['Injector'])),ce(0x2,a['Inject'](u[_0x2ff5b3(0x341)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x240c78,_0xb9e3f4){const _0xc1dd27=_0x2ff5b3;let {radius:_0x358e8d,width:_0x267800,height:_0x5151c9}=_0xb9e3f4;_0x358e8d=_0x358e8d!=null?_0x358e8d:0x0,_0x267800=_0x267800!=null?_0x267800:0x1e,_0x5151c9=_0x5151c9!=null?_0x5151c9:0x1e;let _0x4ff96b=0x0,_0x374587=0x0,_0x88e94e=0x0;_0x4ff96b=_0x374587=_0x88e94e=Math[_0xc1dd27(0x290)](_0x358e8d,_0x267800/0x2,_0x5151c9/0x2),_0x240c78[_0xc1dd27(0x226)](),_0x240c78['moveTo'](_0x4ff96b,0x0),_0x240c78[_0xc1dd27(0x1ca)](_0x267800-_0x374587,0x0),_0x240c78[_0xc1dd27(0x2eb)](_0x267800-_0x374587,_0x374587,_0x374587,Math['PI']*0x3/0x2,0x0,!0x1),_0x240c78[_0xc1dd27(0x1ca)](_0x267800,_0x5151c9-_0x88e94e),_0x240c78[_0xc1dd27(0x2eb)](_0x267800-_0x88e94e,_0x5151c9-_0x88e94e,_0x88e94e,0x0,Math['PI']/0x2,!0x1),_0x240c78[_0xc1dd27(0x1ca)](0x0,_0x5151c9),_0x240c78[_0xc1dd27(0x1ca)](0x0,_0x4ff96b),_0x240c78[_0xc1dd27(0x2eb)](_0x4ff96b,_0x4ff96b,_0x4ff96b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x240c78['closePath'](),_0xb9e3f4[_0xc1dd27(0x309)]&&(_0x240c78[_0xc1dd27(0x14f)](),_0x240c78['fillStyle']=_0xb9e3f4['fill'],_0xb9e3f4[_0xc1dd27(0x255)]===_0xc1dd27(0x18d)?_0x240c78['fill'](_0xc1dd27(0x18d)):_0x240c78[_0xc1dd27(0x309)](),_0x240c78['restore']());}class re extends C['Shape']{constructor(_0xc677c5,_0x20ac63){const _0x496fc0=_0x2ff5b3;super(_0xc677c5,_0x20ac63),_(this,_0x496fc0(0x2ee)),_(this,'text'),(this[_0x496fc0(0x2ee)]=_0x20ac63==null?void 0x0:_0x20ac63[_0x496fc0(0x2ee)],this['text']=_0x20ac63==null?void 0x0:_0x20ac63[_0x496fc0(0x217)]);}static[_0x2ff5b3(0x282)](_0x2da99c,_0x1c49ca){const _0x30b7f4=_0x2ff5b3,{text:_0x2b0c69,color:_0x210537}=_0x1c49ca;_0x2da99c[_0x30b7f4(0x14f)](),_0x2da99c[_0x30b7f4(0xec)]=_0x30b7f4(0x174);const _0x2c4e76=_0x2da99c['measureText'](_0x2b0c69)[_0x30b7f4(0x1cb)],_0x4ca9f2=Math[_0x30b7f4(0x290)](_0x2c4e76+0x2*le,Ue);Ot(_0x2da99c,{'height':X,'radius':0x4,'width':_0x4ca9f2,'fill':_0x210537}),_0x2da99c[_0x30b7f4(0x391)]=_0x30b7f4(0x1e9);const _0x3dd91c=le,_0x4d9d72=X-Tt,_0x3b40f6=Ue-0x2*le;if(_0x2c4e76>_0x3b40f6){let _0x4e5c7b='',_0x1568ac=0x0;for(const _0x2218c9 of _0x2b0c69){const _0x587f90=_0x2da99c[_0x30b7f4(0x1f9)](_0x2218c9)[_0x30b7f4(0x1cb)];if(_0x1568ac+_0x587f90<=_0x3b40f6-_0x2da99c['measureText'](_0x30b7f4(0x299))[_0x30b7f4(0x1cb)])_0x4e5c7b+=_0x2218c9,_0x1568ac+=_0x587f90;else{_0x4e5c7b+=_0x30b7f4(0x299);break;}}_0x2da99c[_0x30b7f4(0x2ff)](_0x4e5c7b,_0x3dd91c,_0x4d9d72);}else _0x2da99c[_0x30b7f4(0x2ff)](_0x2b0c69,_0x3dd91c,_0x4d9d72);_0x2da99c['restore']();}[_0x2ff5b3(0x157)](_0x4b4c93){const _0x5537b0=_0x2ff5b3;re[_0x5537b0(0x282)](_0x4b4c93,this);}}const _e=_0x2ff5b3(0x33d),Rt='collab-text-range-',bt=_0x2ff5b3(0x2a9),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2ff5b3(0x15f);class Le{constructor(_0x12e5ea,_0x57085e,_0xbe7c1,_0x3e5e41){const _0x278a4a=_0x2ff5b3;_(this,_0x278a4a(0x36f),[]),_(this,_0x278a4a(0x25c),null),_(this,_0x278a4a(0xf1),null),_(this,_0x278a4a(0x178),null),_(this,_0x278a4a(0x375),null),_(this,_0x278a4a(0x2f0),null),(this[_0x278a4a(0xd3)]=_0x12e5ea,this[_0x278a4a(0x315)]=_0x57085e,this[_0x278a4a(0x330)]=_0xbe7c1,this['_document']=_0x3e5e41,this['_render']());}set[_0x2ff5b3(0x308)](_0x3e12d7){const _0x46de6d=_0x2ff5b3;_0x3e12d7?(this[_0x46de6d(0x178)]&&this[_0x46de6d(0x178)][_0x46de6d(0x168)](),this[_0x46de6d(0xf1)]&&this[_0x46de6d(0xf1)][_0x46de6d(0x20e)]()):(this[_0x46de6d(0x178)]&&this['_anchorDot'][_0x46de6d(0x20e)](),this[_0x46de6d(0xf1)]&&this['_textBubble']['hide']());}['dispose'](){const _0x5a42ca=_0x2ff5b3;for(const _0x27247d of this[_0x5a42ca(0x36f)])_0x27247d['dispose']();this[_0x5a42ca(0xf1)]&&this[_0x5a42ca(0xf1)][_0x5a42ca(0x244)](),this[_0x5a42ca(0x178)]&&this[_0x5a42ca(0x178)][_0x5a42ca(0x244)](),this['_anchor']&&this['_anchor'][_0x5a42ca(0x244)](),this[_0x5a42ca(0x2f0)]&&this[_0x5a42ca(0x2f0)]();}[_0x2ff5b3(0x1f6)](){const _0xe1da91=_0x2ff5b3;var _0x55dcab;const {_docSkeleton:_0xc062e3,_document:_0x46d34e}=this,{color:_0x3173eb,name:_0x4d6449,ranges:_0x3e1eba}=this[_0xe1da91(0xd3)],_0x401323=_0x46d34e[_0xe1da91(0x2f4)](),{docsLeft:_0x4a3a79,docsTop:_0x24e351}=_0x401323,_0x2b630f=new p['NodePositionConvertToCursor'](_0x401323,_0xc062e3);for(const {startOffset:_0x328155,endOffset:_0x5ed3f1,rangeType:_0x25b011,segmentId:_0x16775f,segmentPage:_0x225e18,collapsed:_0x2c220a,isActive:_0x427bc5}of _0x3e1eba){const _0x497370=_0xc062e3[_0xe1da91(0x146)](_0x328155,!0x0,_0x16775f,_0x225e18);let _0x2bf19a=_0xc062e3['findNodePositionByCharIndex'](_0x5ed3f1,!0x0,_0x16775f,_0x225e18);if(_0x2bf19a==null&&(_0x2bf19a=_0xc062e3[_0xe1da91(0x146)](_0x5ed3f1-0x1,!0x1,_0x16775f,_0x225e18)),_0x427bc5){const {contentBoxPointGroup:_0x15990c}=_0x2b630f[_0xe1da91(0x372)](_0x2bf19a,_0x2bf19a);if(_0x15990c[_0xe1da91(0x17b)]===0x0)continue;this[_0xe1da91(0x350)](_0x3173eb,_0x15990c,_0x4a3a79,_0x24e351,_0x4d6449),this['_eventUnsubscribe']=this[_0xe1da91(0xed)]();}if(_0x497370&&_0x2bf19a){if(_0x25b011===a['DOC_RANGE_TYPE']['RECT']){const _0x25cc64=new p[(_0xe1da91(0x2e9))](_0x401323,_0xc062e3),{pointGroup:_0x12dfcc}=(_0x55dcab=_0x25cc64[_0xe1da91(0x372)](_0x497370,_0x2bf19a))!=null?_0x55dcab:{};if(_0x12dfcc==null||_0x12dfcc[_0xe1da91(0x17b)]===0x0)continue;this[_0xe1da91(0x1b4)](_0x3173eb,_0x12dfcc,_0x4a3a79,_0x24e351);}else{if(!_0x2c220a){const {borderBoxPointGroup:_0x29bc15}=_0x2b630f[_0xe1da91(0x372)](_0x497370,_0x2bf19a);if(_0x29bc15['length']===0x0)continue;this['_drawTextRange'](_0x3173eb,_0x29bc15,_0x4a3a79,_0x24e351);}}}}}[_0x2ff5b3(0x350)](_0x239b23,_0x4aa4e6,_0x6c91ae,_0x12ca3f,_0x3c39b7){const _0x1c9519=_0x2ff5b3,_0x4973b2=this[_0x1c9519(0x360)](_0x4aa4e6),{left:_0x427eb8,top:_0x587480,height:_0x26069a}=_0x4973b2,_0x5879f5=this['_getScale'](),_0xa06995=Nt/_0x5879f5,_0x2221f1=new C[(_0x1c9519(0x256))](_e+a[_0x1c9519(0x23b)](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f,'height':_0x26069a,'width':Dt,'fill':_0x239b23||C['getColor'](a[_0x1c9519(0x179)]['black'],0x0),'strokeWidth':_0xa06995,'stroke':Ut,'evented':!0x0});this[_0x1c9519(0x25c)]=_0x2221f1,this[_0x1c9519(0x315)][_0x1c9519(0x32a)](_0x2221f1,p[_0x1c9519(0x385)]);const _0x301c71=new C[(_0x1c9519(0x256))](_e+a['generateRandomId'](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f-he/0x2,'height':he,'width':he,'fill':_0x239b23||C[_0x1c9519(0x259)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x239b23||C[_0x1c9519(0x259)](a[_0x1c9519(0x179)][_0x1c9519(0x31a)],0x0),'evented':!0x1});this[_0x1c9519(0x178)]=_0x301c71,this[_0x1c9519(0x315)]['addObject'](_0x301c71,p[_0x1c9519(0x385)]);const _0x1b7a09=new re(_e+a[_0x1c9519(0x23b)](H),{'left':_0x427eb8+_0x6c91ae-_0xa06995,'top':_0x587480+_0x12ca3f-X,'text':_0x3c39b7,'color':_0x239b23});this['_textBubble']=_0x1b7a09,this[_0x1c9519(0x315)][_0x1c9519(0x32a)](_0x1b7a09,p[_0x1c9519(0x385)]),this[_0x1c9519(0x308)]=!0x1;}[_0x2ff5b3(0xed)](){const _0x56fb5b=_0x2ff5b3,_0x53f10d=this[_0x56fb5b(0x25c)]['onPointerEnter$'][_0x56fb5b(0x29f)](()=>{const _0x54d078=_0x56fb5b;this[_0x54d078(0x308)]=!0x0;}),_0x4260e0=this[_0x56fb5b(0x25c)][_0x56fb5b(0x121)][_0x56fb5b(0x29f)](()=>{const _0x2ce6d6=_0x56fb5b;this['_hideTimer']&&clearTimeout(this[_0x2ce6d6(0x375)]),this['_hideTimer']=setTimeout(()=>{const _0x49e0e6=_0x2ce6d6;this[_0x49e0e6(0x308)]=!0x1;},0x7d0);});return()=>{const _0xfbc895=_0x56fb5b;_0x53f10d[_0xfbc895(0x17f)](),_0x4260e0[_0xfbc895(0x17f)]();};}[_0x2ff5b3(0x147)](_0x57556b,_0x5be54d,_0x8adb80,_0x56608c){const _0x527807=_0x2ff5b3,_0x370e83=new a[(_0x527807(0x1fa))](_0x57556b)[_0x527807(0x102)](0.2)[_0x527807(0x26d)](),_0x5cd2d3=new C[(_0x527807(0x393))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x5be54d,'fill':_0x370e83||C['getColor'](a['COLORS'][_0x527807(0x31a)],0.2),'left':_0x8adb80,'top':_0x56608c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x527807(0x36f)][_0x527807(0x32d)](_0x5cd2d3),this[_0x527807(0x315)][_0x527807(0x32a)](_0x5cd2d3,p['TEXT_RANGE_LAYER_INDEX']);}[_0x2ff5b3(0x1b4)](_0x3fedd8,_0x16d38c,_0x265b41,_0x154202){const _0x356381=_0x2ff5b3,_0xbeba47=new a[(_0x356381(0x1fa))](_0x3fedd8)[_0x356381(0x102)](0.2)[_0x356381(0x26d)](),_0x18a056=new C[(_0x356381(0x393))](bt+a[_0x356381(0x23b)](H),{'pointsGroup':_0x16d38c,'fill':_0xbeba47||C[_0x356381(0x259)](a['COLORS'][_0x356381(0x31a)],0.2),'left':_0x265b41,'top':_0x154202,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x356381(0x36f)][_0x356381(0x32d)](_0x18a056),this[_0x356381(0x315)][_0x356381(0x32a)](_0x18a056,p[_0x356381(0x385)]);}['_getAnchorBounding'](_0x252b5f){const _0x22d439=_0x252b5f[0x0],_0x459e53=_0x22d439[0x0],_0x466f91=_0x22d439[0x2],{x:_0x3f8c0d,y:_0x3a0802}=_0x459e53,{x:_0x2f90c8,y:_0xb44f7d}=_0x466f91;return{'left':_0x3f8c0d,'top':_0x3a0802,'width':_0x2f90c8-_0x3f8c0d,'height':_0xb44f7d-_0x3a0802};}[_0x2ff5b3(0x218)](){const _0x2f012a=_0x2ff5b3,{scaleX:_0x149bc3,scaleY:_0x53cccc}=this[_0x2f012a(0x315)][_0x2f012a(0xef)]();return Math[_0x2f012a(0x100)](_0x149bc3,_0x53cccc);}}var Lt=Object[_0x2ff5b3(0x35c)],Mt=(_0x28a208,_0x3b2356,_0x53322b,_0x586dfe)=>{const _0x3fe942=_0x2ff5b3;for(var _0x121a0d=_0x586dfe>0x1?void 0x0:_0x586dfe?Lt(_0x3b2356,_0x53322b):_0x3b2356,_0x2453f9=_0x28a208[_0x3fe942(0x17b)]-0x1,_0x4ea1a1;_0x2453f9>=0x0;_0x2453f9--)(_0x4ea1a1=_0x28a208[_0x2453f9])&&(_0x121a0d=_0x4ea1a1(_0x121a0d)||_0x121a0d);return _0x121a0d;},q=(_0x37c5d5,_0x27f023)=>(_0x409153,_0x41d9ea)=>_0x27f023(_0x409153,_0x41d9ea,_0x37c5d5);let Ee=class extends a['RxDisposable']{constructor(_0x16fd71,_0xa1cc15,_0x28f194,_0x405e6a,_0x1a26c5){const _0x136a77=_0x2ff5b3;super(),_(this,'_cursorShapes',[]),_(this,_0x136a77(0x36e),[]),(this['_context']=_0x16fd71,this[_0x136a77(0x133)]=_0xa1cc15,this[_0x136a77(0x20b)]=_0x28f194,this[_0x136a77(0x1ce)]=_0x405e6a,this[_0x136a77(0x301)]=_0x1a26c5,this[_0x136a77(0x263)]());}[_0x2ff5b3(0x263)](){const _0x3b70a9=_0x2ff5b3,_0x280505=this[_0x3b70a9(0x318)][_0x3b70a9(0x331)],_0x3bab75=this['_docSkeletonManagerService'];this[_0x3b70a9(0x2bd)](I[_0x3b70a9(0x374)]([this[_0x3b70a9(0x20b)][_0x3b70a9(0x384)](_0x280505),this[_0x3b70a9(0x301)][_0x3b70a9(0x38c)]])[_0x3b70a9(0x2fe)]($[_0x3b70a9(0x26e)](([_0x2265f1,_0x14be1b])=>({'skeleton':_0x3bab75['getSkeleton'](),'cursors':[..._0x2265f1['values']()][_0x3b70a9(0x373)](_0x58b342=>({..._0x58b342,'color':this[_0x3b70a9(0x301)][_0x3b70a9(0x220)](_0x58b342[_0x3b70a9(0x2ee)])}))})))[_0x3b70a9(0x336)](_0x1d1b63=>{const _0x4e0822=_0x3b70a9;if(this[_0x4e0822(0x20c)](),_0x1d1b63){const {skeleton:_0x180ae1,cursors:_0x266800}=_0x1d1b63;this[_0x4e0822(0x390)](_0x180ae1,_0x266800);}})),this[_0x3b70a9(0x12e)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x2473eb,_0x223e69){const _0xd3e648=_0x2ff5b3,{scene:_0x38358a,mainComponent:_0x40a214}=this[_0xd3e648(0x318)],_0x3a5a93=_0x223e69[_0xd3e648(0x26e)](_0xea4e32=>new Le(_0xea4e32,_0x38358a,_0x2473eb,_0x40a214));this[_0xd3e648(0xfd)]=_0x3a5a93,this['_cursors']=_0x223e69;}[_0x2ff5b3(0x225)](){const _0x669645=_0x2ff5b3;this['_removeCollabCursors']();const {scene:_0x2bacec,mainComponent:_0x4de265}=this['_context'],_0x5731fe=this[_0x669645(0x133)]['getSkeleton'](),_0xd80331=this['_cursors']['map'](_0x47c63a=>new Le(_0x47c63a,_0x2bacec,_0x5731fe,_0x4de265));this[_0x669645(0xfd)]=_0xd80331;}[_0x2ff5b3(0x20c)](){const _0x5f48ec=_0x2ff5b3;this['_cursorShapes'][_0x5f48ec(0x1fc)](_0x4cb56c=>_0x4cb56c[_0x5f48ec(0x244)]()),this[_0x5f48ec(0xfd)]=[];}[_0x2ff5b3(0x335)](){const _0x592f2c=_0x2ff5b3,_0x520a92=[p[_0x592f2c(0x24d)]['id']];this['disposeWithMe'](this[_0x592f2c(0x1ce)][_0x592f2c(0x142)](_0x50177e=>{const _0x25224d=_0x592f2c;_0x520a92['includes'](_0x50177e['id'])&&_0x50177e[_0x25224d(0x210)][_0x25224d(0x331)]===this[_0x25224d(0x318)][_0x25224d(0x331)]&&this['_refreshCollabCursors']();}));}[_0x2ff5b3(0x12e)](){const _0x168ee1=_0x2ff5b3;this['disposeWithMe'](a[_0x168ee1(0x302)](this[_0x168ee1(0x318)][_0x168ee1(0x349)][_0x168ee1(0x2fa)])[_0x168ee1(0x2fe)]($['filter'](_0x347e49=>_0x347e49[_0x168ee1(0x38e)]===C[_0x168ee1(0x20f)][_0x168ee1(0x1a6)]),$[_0x168ee1(0x125)](0x10))[_0x168ee1(0x336)](()=>{const _0x4a091d=_0x168ee1;this[_0x4a091d(0x225)]();}));}};Ee=Mt([q(0x1,a[_0x2ff5b3(0x394)](V['DocSkeletonManagerService'])),q(0x2,a[_0x2ff5b3(0x394)](F)),q(0x3,a[_0x2ff5b3(0x209)]),q(0x4,a['Inject'](a[_0x2ff5b3(0xe1)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x2ff5b3(0x345)]{constructor(_0x3c7c51,_0x57a630){const _0x27312e=_0x2ff5b3;super(_0x3c7c51,_0x57a630),_(this,'_color'),_(this,_0x27312e(0x271),!0x1),_(this,_0x27312e(0x2c6)),_(this,'_name',''),_(this,_0x27312e(0x22e),'top'),_(this,_0x27312e(0x1b0)),(_0x57a630&&this[_0x27312e(0x35a)](_0x57a630),this[_0x27312e(0x190)][_0x27312e(0x29f)](()=>this[_0x27312e(0x35a)]({'hovered':!0x0})),this[_0x27312e(0x121)][_0x27312e(0x29f)](()=>this[_0x27312e(0x35a)]({'hovered':!0x1})));}[_0x2ff5b3(0x35a)](_0x35383c){const _0x334657=_0x2ff5b3;var _0x4f8182,_0x454e55,_0x368507,_0x2ef773,_0x4c70c5,_0x242bdc;this[_0x334657(0x101)]=(_0x4f8182=_0x35383c[_0x334657(0x2ee)])!=null?_0x4f8182:this[_0x334657(0x101)],this[_0x334657(0x271)]=(_0x454e55=_0x35383c['hovered'])!=null?_0x454e55:this[_0x334657(0x271)],this[_0x334657(0x2c6)]=(_0x368507=_0x35383c[_0x334657(0x175)])!=null?_0x368507:this['_range'],this[_0x334657(0x1a1)]=(_0x2ef773=_0x35383c[_0x334657(0x250)])!=null?_0x2ef773:this[_0x334657(0x1a1)],this[_0x334657(0x22e)]=(_0x4c70c5=_0x35383c[_0x334657(0x16e)])!=null?_0x4c70c5:this[_0x334657(0x22e)],this[_0x334657(0x1b0)]=(_0x242bdc=_0x35383c['backgroundColor'])!=null?_0x242bdc:this[_0x334657(0x1b0)],this[_0x334657(0x1c8)]({'width':_0x35383c[_0x334657(0x1cb)],'height':_0x35383c[_0x334657(0x33a)]});}[_0x2ff5b3(0x2f7)](_0x51aff7){const _0x219e3f=_0x2ff5b3,{row:_0x344916,column:_0x5c86a2}=_0x51aff7;if(_0x344916>=this[_0x219e3f(0x2c6)][_0x219e3f(0x13d)]&&_0x344916<=this[_0x219e3f(0x2c6)][_0x219e3f(0x11d)]&&_0x5c86a2>=this[_0x219e3f(0x2c6)]['startColumn']&&_0x5c86a2<=this['_range'][_0x219e3f(0x193)]){this[_0x219e3f(0x35a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2ff5b3(0x187)](_0x4aa181){return!0x1;}['_draw'](_0x1ddb4c){const _0x4374d8=_0x2ff5b3;C[_0x4374d8(0x256)][_0x4374d8(0x282)](_0x1ddb4c,{'width':this[_0x4374d8(0x1cb)],'height':this[_0x4374d8(0x33a)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4374d8(0x1b0)]}),this[_0x4374d8(0x271)]&&(_0x1ddb4c[_0x4374d8(0x14f)](),_0x1ddb4c[_0x4374d8(0x1c4)](0x1,0x0,0x0,0x1,this[_0x4374d8(0x1cb)],this[_0x4374d8(0x22e)]===_0x4374d8(0x1b8)?0x0:-X),re[_0x4374d8(0x282)](_0x1ddb4c,{'text':this[_0x4374d8(0x1a1)],'color':this['_color']}),_0x1ddb4c[_0x4374d8(0x2fb)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x4adf34,_0x695fde,_0x5e38a9,_0x216897)=>{const _0x57e583=_0x2ff5b3;for(var _0x22ca5b=_0x216897>0x1?void 0x0:_0x216897?wt(_0x695fde,_0x5e38a9):_0x695fde,_0x1a345a=_0x4adf34[_0x57e583(0x17b)]-0x1,_0x590e90;_0x1a345a>=0x0;_0x1a345a--)(_0x590e90=_0x4adf34[_0x1a345a])&&(_0x22ca5b=_0x590e90(_0x22ca5b)||_0x22ca5b);return _0x22ca5b;},ue=(_0x51495e,_0x59b027)=>(_0x40125a,_0x56a0b6)=>_0x59b027(_0x40125a,_0x56a0b6,_0x51495e);const $t=0x1389;let Ce=class extends a[_0x2ff5b3(0x131)]{constructor(_0x1e8b1d,_0x5f9169,_0x12742f,_0x247195){const _0x2bee26=_0x2ff5b3;super(),_(this,_0x2bee26(0x36e),new Set()),_(this,_0x2bee26(0x1b5),null),(this[_0x2bee26(0x318)]=_0x1e8b1d,this['_sheetSkeletonManagerService']=_0x5f9169,this[_0x2bee26(0x20b)]=_0x12742f,this[_0x2bee26(0x301)]=_0x247195,this['_init']());}[_0x2ff5b3(0x263)](){const _0x1c4bc0=_0x2ff5b3;this[_0x1c4bc0(0x29b)][_0x1c4bc0(0x329)]['pipe']($[_0x1c4bc0(0x106)](this[_0x1c4bc0(0x36c)]),$[_0x1c4bc0(0x359)](_0x48293c=>{const _0x392107=_0x1c4bc0;if(_0x48293c){const _0x54d2f4=_0x48293c[_0x392107(0xe4)];return I[_0x392107(0x374)](this[_0x392107(0x20b)][_0x392107(0x384)](this['_context'][_0x392107(0x331)]),this['_themeService'][_0x392107(0x38c)])['pipe']($[_0x392107(0x26e)](([_0x496a56,_0x2a3e2a])=>{const _0xc58508=_0x392107,_0x1906bc=new Map();return _0x496a56[_0xc58508(0x1fc)]((_0x2a6810,_0x415021)=>{const _0x3619e5=_0xc58508;if(_0x2a6810[_0x3619e5(0x25f)]===_0x54d2f4){const _0x2a15cc={..._0x2a6810};_0x2a15cc[_0x3619e5(0x2ee)]=this['_themeService'][_0x3619e5(0x220)](_0x2a6810[_0x3619e5(0x2ee)]),_0x1906bc[_0x3619e5(0x386)](_0x415021,_0x2a15cc);}}),{'skeleton':_0x48293c,'cursors':_0x1906bc};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x1c4bc0(0x336)](({skeleton:_0x3451a5,cursors:_0x13e04f})=>{this['_removeCollabCursors'](),_0x3451a5&&this['_updateCollabCursors'](_0x3451a5,_0x13e04f);}),this[_0x1c4bc0(0x29b)][_0x1c4bc0(0x329)][_0x1c4bc0(0x336)](_0x44b662=>{const _0x4cf846=_0x1c4bc0;if(_0x44b662==null)return;const {skeleton:_0x4d7b02}=_0x44b662,{scene:_0x563700}=this[_0x4cf846(0x318)];_0x563700[_0x4cf846(0x31f)][_0x4cf846(0x29f)](a[_0x4cf846(0x325)](_0x229ced=>{const _0x8e5d4f=_0x4cf846;var _0x3add84,_0x3d60d7;const {offsetX:_0xc8e784,offsetY:_0x44582b}=_0x229ced,{x:_0x52ec16,y:_0xd1df97}=_0x563700[_0x8e5d4f(0x18f)](C['Vector2'][_0x8e5d4f(0x15d)]([_0xc8e784,_0x44582b])),{scaleX:_0x46d208,scaleY:_0x52632d}=_0x563700[_0x8e5d4f(0xef)](),_0x15a7f2=_0x563700[_0x8e5d4f(0xd1)](C['SHEET_VIEWPORT_KEY'][_0x8e5d4f(0x17d)]),_0x14b43d=_0x563700[_0x8e5d4f(0x16a)](C[_0x8e5d4f(0x184)][_0x8e5d4f(0x15d)]([_0x52ec16,_0xd1df97]),_0x15a7f2),_0x58db95=_0x4d7b02['getCellPositionByOffset'](_0xc8e784,_0x44582b,_0x46d208,_0x52632d,_0x14b43d);((_0x3add84=this[_0x8e5d4f(0x1b5)])==null?void 0x0:_0x3add84['column'])===_0x58db95['column']&&((_0x3d60d7=this[_0x8e5d4f(0x1b5)])==null?void 0x0:_0x3d60d7[_0x8e5d4f(0x248)])===_0x58db95[_0x8e5d4f(0x248)]||this[_0x8e5d4f(0x36e)][_0x8e5d4f(0x1fc)](_0xcea048=>{const _0x2bb997=_0x8e5d4f;_0xcea048[_0x2bb997(0x2f7)](_0x58db95);});},0x64));});}[_0x2ff5b3(0x390)](_0x3c5201,_0x14da4a){const _0x1aabe7=_0x2ff5b3;var _0x1d5075;const _0x1451ca=(_0x1d5075=this[_0x1aabe7(0x29b)][_0x1aabe7(0x2cd)]())==null?void 0x0:_0x1d5075[_0x1aabe7(0x1f7)];if(!_0x1451ca)return;const _0x3db5f1=this['_getSheetObject']();if(!_0x3db5f1)return;this[_0x1aabe7(0x36e)]['forEach'](_0x46c255=>{const _0x29c499=_0x1aabe7;_0x46c255[_0x29c499(0x1a4)]();});const {scene:_0x50a6d0}=_0x3db5f1,_0x79c5ec=xt(Array[_0x1aabe7(0x19c)](_0x14da4a[_0x1aabe7(0x24e)]()))[_0x1aabe7(0x26e)](_0x59f68b=>{const _0x1cd5b0=_0x1aabe7,{color:_0x3fa505,range:_0x945983,name:_0x4b174e,selection:_0xc22f8e,sheetID:_0x51a23d}=_0x59f68b,{startColumn:_0x38a3ae,startRow:_0x5c7bef,endColumn:_0x34b766,endRow:_0x42a47d}=_0x945983,_0x20d2b5=J[_0x1cd5b0(0x203)](_0x5c7bef,_0x38a3ae,_0x50a6d0,_0x1451ca),_0x3d6f63=J[_0x1cd5b0(0x203)](_0x42a47d,_0x34b766,_0x50a6d0,_0x1451ca),{columnHeaderHeightAndMarginTop:_0x3b5007}=_0x1451ca,{startX:_0x1e9cdc,startY:_0x4e215b}=_0x20d2b5,{endX:_0x460a75,endY:_0x56dc56}=_0x3d6f63,_0x42e0ee=_0x460a75-_0x1e9cdc,_0x36e6e9=_0x56dc56-_0x4e215b,_0x2524f9={'labelPosition':_0x4e215b-_0x3b5007>=X?_0x1cd5b0(0x19a):'bottom','sheetID':_0x51a23d,'range':_0x945983,'color':_0x3fa505,'name':_0x4b174e,'selection':_0xc22f8e,'left':_0x1e9cdc,'top':_0x4e215b,'width':_0x42e0ee,'height':_0x36e6e9,'evented':!0x1,'zIndex':$t};return new je(_0x4b174e,_0x2524f9);});_0x50a6d0[_0x1aabe7(0x392)](_0x79c5ec,At),this[_0x1aabe7(0x36e)]=new Set(_0x79c5ec);}[_0x2ff5b3(0x20c)](){const _0x593368=_0x2ff5b3;var _0x589b39;(_0x589b39=this[_0x593368(0x36e)])==null||_0x589b39[_0x593368(0x1fc)](_0x220982=>_0x220982['dispose']());}[_0x2ff5b3(0x36b)](){const _0x51d9a3=_0x2ff5b3;return J[_0x51d9a3(0x152)](this['_context'][_0x51d9a3(0x376)],this[_0x51d9a3(0x318)]);}};Ce=yt([ue(0x1,a[_0x2ff5b3(0x394)](J[_0x2ff5b3(0x238)])),ue(0x2,a[_0x2ff5b3(0x394)](F)),ue(0x3,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0xe1)]))],Ce);function xt(_0x6bfea3){const _0xe97077=_0x2ff5b3,_0x197cbb=new Map();return _0x6bfea3[_0xe97077(0x1fc)](_0xeeb1ec=>{const _0x6f0278=_0xe97077;if(_0x197cbb[_0x6f0278(0xf3)](_0xeeb1ec[_0x6f0278(0x1ed)])){const _0x6639b1=_0x197cbb[_0x6f0278(0x1c9)](_0xeeb1ec['selection']);_0x6639b1['name']+=',\x20'+_0xeeb1ec[_0x6f0278(0x250)];}else _0x197cbb['set'](_0xeeb1ec[_0x6f0278(0x1ed)],_0xeeb1ec);}),Array[_0xe97077(0x19c)](_0x197cbb[_0xe97077(0x24e)]());}var Bt=Object[_0x2ff5b3(0x35c)],Ft=(_0x7678f4,_0x35a37a,_0xed5448,_0x1dde99)=>{for(var _0x416e45=_0x1dde99>0x1?void 0x0:_0x1dde99?Bt(_0x35a37a,_0xed5448):_0x35a37a,_0x126c6e=_0x7678f4['length']-0x1,_0xc6faaf;_0x126c6e>=0x0;_0x126c6e--)(_0xc6faaf=_0x7678f4[_0x126c6e])&&(_0x416e45=_0xc6faaf(_0x416e45)||_0x416e45);return _0x416e45;},y=(_0xa5f1d0,_0x457d5d)=>(_0x325fe4,_0x1d5f5b)=>_0x457d5d(_0x325fe4,_0x1d5f5b,_0xa5f1d0);let Z=class extends a[_0x2ff5b3(0x300)]{constructor(_0x28533c,_0x554a46,_0x59423d,_0x220d8b,_0x497b60,_0x170e95){const _0x27fcc8=_0x2ff5b3;super(),this[_0x27fcc8(0x13f)]=_0x28533c,this[_0x27fcc8(0x35f)]=_0x554a46,this[_0x27fcc8(0x32b)]=_0x59423d,this[_0x27fcc8(0x185)]=_0x220d8b,this['_notificationService']=_0x497b60,this['_localeService']=_0x170e95,this[_0x27fcc8(0x1e3)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x420ff5=_0x2ff5b3;this[_0x420ff5(0x2bd)](this[_0x420ff5(0x13f)][_0x420ff5(0x32e)](()=>{const _0x13ff7a=_0x420ff5;if(this[_0x13ff7a(0x35f)]['saveTaskMap'][_0x13ff7a(0x116)])return this['_localeService']['t'](_0x13ff7a(0x2e1));}));}[_0x2ff5b3(0x297)](){const _0x15aaa0=_0x2ff5b3;this[_0x15aaa0(0x2bd)](this['_collaborationUIEventService'][_0x15aaa0(0x21f)][_0x15aaa0(0x336)](_0x2fa848=>{const _0x139b75=_0x15aaa0;_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0xee)]&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x186))}),_0x2fa848['id']===u[_0x139b75(0x13e)]['CLOSE_ROOM']&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x254))}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x35d)]&&this['_notificationService'][_0x139b75(0x20e)]({'title':this[_0x139b75(0x135)]['t'](_0x139b75(0x2d0)),'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x368)),'type':_0x139b75(0x2a7),'duration':0x0}),_0x2fa848['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x23a)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x254))+'('+_0x2fa848[_0x139b75(0x34c)]+')'}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x1c1)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this['_localeService']['t'](_0x2fa848[_0x139b75(0x34c)]||'')}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x34b)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)][_0x139b75(0x2ac)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x382))}),_0x2fa848['id']===u[_0x139b75(0x13e)]['SOCKET_FAILED']&&this[_0x139b75(0x185)][_0x139b75(0x20e)]({'type':T[_0x139b75(0xdb)][_0x139b75(0x23a)],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x348))}),_0x2fa848['id']===u[_0x139b75(0x13e)][_0x139b75(0x387)]&&this[_0x139b75(0x185)]['show']({'type':T[_0x139b75(0xdb)]['Error'],'content':this[_0x139b75(0x135)]['t'](_0x139b75(0x280))});}));}};Z=Ft([y(0x0,O[_0x2ff5b3(0x1f3)]),y(0x1,u[_0x2ff5b3(0x14b)]),y(0x2,a[_0x2ff5b3(0x394)](u[_0x2ff5b3(0x2d7)])),y(0x3,O[_0x2ff5b3(0x28f)]),y(0x4,O[_0x2ff5b3(0x1b6)]),y(0x5,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x197)]))],Z);var jt=Object[_0x2ff5b3(0x35c)],kt=(_0x1dd8db,_0x3ae51f,_0x4574de,_0x4e7608)=>{const _0x4108fd=_0x2ff5b3;for(var _0x10de60=_0x4e7608>0x1?void 0x0:_0x4e7608?jt(_0x3ae51f,_0x4574de):_0x3ae51f,_0x7a7378=_0x1dd8db[_0x4108fd(0x17b)]-0x1,_0x4973a4;_0x7a7378>=0x0;_0x7a7378--)(_0x4973a4=_0x1dd8db[_0x7a7378])&&(_0x10de60=_0x4973a4(_0x10de60)||_0x10de60);return _0x10de60;},z=(_0x5edff9,_0x38f30b)=>(_0x3bd972,_0x5e116f)=>_0x38f30b(_0x3bd972,_0x5e116f,_0x5edff9);let Q=class extends a[_0x2ff5b3(0x300)]{constructor(_0x103454,_0x42c042,_0x57617b,_0x39bdb9){const _0x8c9b78=_0x2ff5b3;super(),_(this,'_memberID'),(this[_0x8c9b78(0x2ed)]=_0x103454,this[_0x8c9b78(0x241)]=_0x42c042,this[_0x8c9b78(0x15e)]=_0x57617b,this[_0x8c9b78(0x10d)]=_0x39bdb9,this[_0x8c9b78(0x263)]());}[_0x2ff5b3(0x263)](){const _0x1b740b=_0x2ff5b3;this[_0x1b740b(0x180)](),this[_0x1b740b(0x12d)](),this[_0x1b740b(0x396)](),this[_0x1b740b(0x117)]();}[_0x2ff5b3(0x117)](){const _0x4acf25=_0x2ff5b3;this['disposeWithMe'](this['_collaborationSessionService'][_0x4acf25(0x136)][_0x4acf25(0x336)](_0x283c8b=>{const _0x338b22=_0x4acf25;this[_0x338b22(0x2c9)]=_0x283c8b==null?void 0x0:_0x283c8b[_0x338b22(0x16b)];}));}[_0x2ff5b3(0x180)](){const _0x3c1f99=_0x2ff5b3,_0x3121b6=_0x1595be=>{const _0x141d3f=_0x140f;var _0x1eafb8;this['_uploadLog'](_0x141d3f(0x2a7),_0x141d3f(0x258)+_0x1595be['message']+_0x141d3f(0x182)+_0x1595be[_0x141d3f(0x236)]+':'+_0x1595be[_0x141d3f(0xd7)]+':'+_0x1595be[_0x141d3f(0x173)]+'\x0a'+(((_0x1eafb8=_0x1595be[_0x141d3f(0x2a7)])==null?void 0x0:_0x1eafb8[_0x141d3f(0x1a0)])||''));};window['addEventListener'](_0x3c1f99(0x2a7),_0x3121b6),this[_0x3c1f99(0x2bd)](()=>{const _0x473256=_0x3c1f99;window[_0x473256(0x15c)]('error',_0x3121b6);});}[_0x2ff5b3(0x12d)](){const _0x304964=_0x2ff5b3,_0x54dc3a=_0x3fcd38=>{const _0x4a3b71=_0x140f;this[_0x4a3b71(0x103)]('error',_0x4a3b71(0x1db)+_0x3fcd38['reason']);};window[_0x304964(0x2a8)](_0x304964(0x383),_0x54dc3a),this['disposeWithMe'](()=>{const _0x58b171=_0x304964;window[_0x58b171(0x15c)]('unhandledrejection',_0x54dc3a);});}['_monkeyPatchLogService'](){const _0x4f93bd=_0x2ff5b3,_0x5d8256=this[_0x4f93bd(0x15e)][_0x4f93bd(0x2a7)]['bind'](this[_0x4f93bd(0x15e)]);this[_0x4f93bd(0x15e)]['error']=(..._0x33d305)=>{const _0x469d6f=_0x4f93bd,_0x22e2d4=_0x33d305['map'](_0x5be001=>_0x5be001 instanceof Error?_0x5be001['message']+'\x0a'+_0x5be001[_0x469d6f(0x1a0)]:String(_0x5be001))['join']('\x20');this[_0x469d6f(0x103)](_0x469d6f(0x2a7),'[LogService\x20Error]:\x20'+_0x22e2d4),_0x5d8256(..._0x33d305);},this['disposeWithMe'](()=>{const _0x2f325e=_0x4f93bd;this[_0x2f325e(0x15e)][_0x2f325e(0x2a7)]=_0x5d8256;});}[_0x2ff5b3(0x103)](_0x5ad00b,_0x39fa8d){const _0x141f1e=_0x2ff5b3;try{const _0x1cc18e={'userId':this['_memberID'],'logLabel':_0x5ad00b,'content':_0x39fa8d};this[_0x141f1e(0x241)][_0x141f1e(0x279)](_0x141f1e(0x2d2),{'body':_0x1cc18e})[_0x141f1e(0xdf)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),z(0x1,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),z(0x2,a[_0x2ff5b3(0x123)]),z(0x3,a[_0x2ff5b3(0x394)](u['CollaborationSessionService']))],Q);const Yt=_0x2ff5b3(0xfc),Me={};var Ht=Object[_0x2ff5b3(0x35c)],Wt=(_0x1991b2,_0x286647,_0x1ca788,_0x22f298)=>{const _0x6d7815=_0x2ff5b3;for(var _0x1047f0=_0x22f298>0x1?void 0x0:_0x22f298?Ht(_0x286647,_0x1ca788):_0x286647,_0x3a0702=_0x1991b2[_0x6d7815(0x17b)]-0x1,_0x29336e;_0x3a0702>=0x0;_0x3a0702--)(_0x29336e=_0x1991b2[_0x3a0702])&&(_0x1047f0=_0x29336e(_0x1047f0)||_0x1047f0);return _0x1047f0;},Ae=(_0x10946d,_0x4713fd)=>(_0x431b5c,_0x8f2334)=>_0x4713fd(_0x431b5c,_0x8f2334,_0x10946d);let ee=class{constructor(_0x5d099c,_0x57c465){const _0x58440e=_0x2ff5b3;this['_transformService']=_0x5d099c,this[_0x58440e(0x13c)]=_0x57c465;}[_0x2ff5b3(0x126)](_0x201426){const _0x41a2d1=_0x2ff5b3;this[_0x41a2d1(0x12c)](_0x201426),this[_0x41a2d1(0x17a)](_0x201426);}[_0x2ff5b3(0x2ca)](_0x595c94){const _0x27fd7d=_0x2ff5b3,{unitID:_0xbb2225}=_0x595c94,_0xf4b039=this[_0x27fd7d(0x13c)][_0x27fd7d(0x323)](_0xbb2225)[_0x27fd7d(0x1c2)](p['DocIMEInputManagerService']),{redoCache:_0x4258ee}=_0xf4b039[_0x27fd7d(0x213)]();if(_0x4258ee[_0x27fd7d(0x17b)]===0x0)return _0x595c94;let _0x2ba53c=a[_0x27fd7d(0x13b)][_0x27fd7d(0x35e)](_0x595c94[_0x27fd7d(0x2f9)][0x0]);for(let _0x2d6caf=0x0;_0x2d6caf<_0x4258ee[_0x27fd7d(0x17b)];_0x2d6caf++){const _0x366cde={'id':_0x27fd7d(0x2de),'params':{..._0x4258ee[_0x2d6caf]}},_0x2b8e3e=this[_0x27fd7d(0x194)]['transformMutation'](_0x2ba53c,_0x366cde,!0x1);if(g[_0x27fd7d(0x381)](_0x2b8e3e))throw _0x2b8e3e[_0x27fd7d(0x2a7)];_0x2ba53c=_0x2b8e3e['m1Prime'];}return{...a[_0x27fd7d(0x13b)][_0x27fd7d(0x35e)](_0x595c94),'mutations':[_0x2ba53c]};}[_0x2ff5b3(0x12c)](_0x4c6b88){const _0x54a037=_0x2ff5b3,{unitID:_0x167abc}=_0x4c6b88,_0x3c8151=this['_renderManagerService'][_0x54a037(0x323)](_0x167abc)[_0x54a037(0x1c2)](p['DocIMEInputManagerService']),{undoCache:_0x5c28b9,redoCache:_0x1bd38e}=_0x3c8151[_0x54a037(0x213)]();if(_0x5c28b9[_0x54a037(0x17b)]===0x0||_0x1bd38e[_0x54a037(0x17b)]===0x0)return;const _0x2c4be0=[],_0xc7a96f=[];let _0x2f5bda=a[_0x54a037(0x13b)][_0x54a037(0x35e)](_0x4c6b88[_0x54a037(0x2f9)][0x0]),_0x5a8607=a[_0x54a037(0x13b)][_0x54a037(0x35e)](_0x4c6b88['mutations'][0x0]);for(let _0x41b490=_0x5c28b9[_0x54a037(0x17b)]-0x1;_0x41b490>=0x0;_0x41b490--){const _0x51cec5={'id':_0x54a037(0x2de),'params':{..._0x5c28b9[_0x41b490]}},_0xfdd5b8={'id':_0x54a037(0x2de),'params':{..._0x1bd38e[_0x41b490]}},_0x9f07c6=this[_0x54a037(0x194)][_0x54a037(0x354)](_0x2f5bda,_0x51cec5,!0x1),_0x29f786=this[_0x54a037(0x194)][_0x54a037(0x354)](_0x5a8607,_0xfdd5b8,!0x1);if(g[_0x54a037(0x381)](_0x9f07c6))throw _0x9f07c6[_0x54a037(0x2a7)];if(g[_0x54a037(0x381)](_0x29f786))throw _0x29f786[_0x54a037(0x2a7)];_0x2c4be0[_0x54a037(0x2ab)](_0x9f07c6[_0x54a037(0x37d)]['params']),_0xc7a96f[_0x54a037(0x2ab)](_0x29f786[_0x54a037(0x37d)][_0x54a037(0x210)]),_0x2f5bda=_0x9f07c6['m1Prime'],_0x5a8607=_0x29f786[_0x54a037(0x30d)];}_0x3c8151[_0x54a037(0x27f)]({'undoCache':_0x2c4be0,'redoCache':_0xc7a96f});}[_0x2ff5b3(0x17a)](_0x30fa40){const _0x57ebb1=_0x2ff5b3,{unitID:_0x489f20}=_0x30fa40,_0x4966f3=this['_renderManagerService']['getRenderById'](_0x489f20)[_0x57ebb1(0x1c2)](p['DocIMEInputManagerService']),_0x5477d1=_0x4966f3[_0x57ebb1(0x1ee)]();if(_0x5477d1==null)return;const _0x335753=[{'id':_0x57ebb1(0x2de),'params':{'unitId':_0x30fa40[_0x57ebb1(0x252)],'actions':null,'textRanges':[_0x5477d1]}}],_0x569167=this[_0x57ebb1(0x194)][_0x57ebb1(0x22a)](_0x30fa40,_0x335753);if(!g[_0x57ebb1(0x1d4)](_0x569167))throw _0x569167[_0x57ebb1(0x2a7)];const _0x15905d=_0x569167[_0x57ebb1(0x37d)][0x0][_0x57ebb1(0x210)]['textRanges'];Array[_0x57ebb1(0x19b)](_0x15905d)&&_0x15905d[_0x57ebb1(0x17b)]&&_0x4966f3[_0x57ebb1(0x2d1)](_0x15905d[0x0]);}};ee=Wt([Ae(0x0,g[_0x2ff5b3(0x289)]),Ae(0x1,C[_0x2ff5b3(0x201)])],ee);var Vt=Object[_0x2ff5b3(0x35c)],Gt=(_0x257c53,_0x4e6466,_0x33e3d4,_0x25a3e1)=>{for(var _0x1c7f08=_0x25a3e1>0x1?void 0x0:_0x25a3e1?Vt(_0x4e6466,_0x33e3d4):_0x4e6466,_0x540732=_0x257c53['length']-0x1,_0x273c33;_0x540732>=0x0;_0x540732--)(_0x273c33=_0x257c53[_0x540732])&&(_0x1c7f08=_0x273c33(_0x1c7f08)||_0x1c7f08);return _0x1c7f08;},Ie=(_0x2dcc92,_0x425552)=>(_0x33c281,_0x2e1ca0)=>_0x425552(_0x33c281,_0x2e1ca0,_0x2dcc92);let te=class{constructor(_0x39a9d3,_0x55bbd7,_0x4ea6cc){const _0x1ca047=_0x2ff5b3;this['_injector']=_0x39a9d3,this[_0x1ca047(0x194)]=_0x55bbd7,this['_docStateChangeManagerService']=_0x4ea6cc;}[_0x2ff5b3(0x12a)](_0x1a4740){const _0x141bbd=_0x2ff5b3;this[_0x141bbd(0x18a)](_0x1a4740);}[_0x2ff5b3(0x2ca)](_0x461927){const _0x5367ca=_0x2ff5b3,{unitID:_0x424383}=_0x461927,{collaboration:_0x5967cc}=this[_0x5367ca(0x15b)][_0x5367ca(0x351)](_0x424383);if(_0x5967cc[_0x5367ca(0x17b)]===0x0)return _0x461927;let _0x49d97e=a[_0x5367ca(0x13b)][_0x5367ca(0x35e)](_0x461927[_0x5367ca(0x2f9)][0x0]);for(let _0x4552c8=0x0;_0x4552c8<_0x5967cc[_0x5367ca(0x17b)];_0x4552c8++){const _0x362260={'id':_0x5367ca(0x2de),'params':{'unitId':_0x5967cc[_0x4552c8][_0x5367ca(0x331)],..._0x5967cc[_0x4552c8][_0x5367ca(0x1ff)]}},_0x1d62fd=this[_0x5367ca(0x194)]['transformMutation'](_0x49d97e,_0x362260,!0x1);if(g[_0x5367ca(0x381)](_0x1d62fd))throw _0x1d62fd[_0x5367ca(0x2a7)];_0x49d97e=_0x1d62fd[_0x5367ca(0x30d)];}return{...a[_0x5367ca(0x13b)]['deepClone'](_0x461927),'mutations':[_0x49d97e]};}[_0x2ff5b3(0x18a)](_0x59a34d){const _0x48d687=_0x2ff5b3,{unitID:_0x4bcef2}=_0x59a34d,{history:_0xc03de8,collaboration:_0x46c790}=this['_docStateChangeManagerService'][_0x48d687(0x351)](_0x4bcef2);if(_0xc03de8[_0x48d687(0x17b)]===0x0&&_0x46c790['length']===0x0)return;const _0x6efbf0=[],_0x21ec46=[];let _0x14858d=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]),_0x569477=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]);for(let _0x22454a=_0xc03de8[_0x48d687(0x17b)]-0x1;_0x22454a>=0x0;_0x22454a--){const _0x244467={'id':_0x48d687(0x2de),'params':{'unitId':_0xc03de8[_0x22454a][_0x48d687(0x331)],..._0xc03de8[_0x22454a][_0x48d687(0x310)]}},_0x4bea13={'id':_0x48d687(0x2de),'params':{'unitId':_0xc03de8[_0x22454a][_0x48d687(0x331)],..._0xc03de8[_0x22454a][_0x48d687(0x1ff)]}},_0x21e482=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x14858d,_0x244467,!0x1),_0x454b01=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x569477,_0x4bea13,!0x1);if(g['isTransformMutationFailure'](_0x21e482))throw _0x21e482[_0x48d687(0x2a7)];if(g[_0x48d687(0x381)](_0x454b01))throw _0x454b01[_0x48d687(0x2a7)];_0x6efbf0['unshift']({..._0xc03de8[_0x22454a],'undoState':_0x21e482[_0x48d687(0x37d)][_0x48d687(0x210)],'redoState':_0x454b01[_0x48d687(0x37d)][_0x48d687(0x210)]}),_0x14858d=_0x21e482[_0x48d687(0x30d)],_0x569477=_0x454b01[_0x48d687(0x30d)];}_0x14858d=a[_0x48d687(0x13b)]['deepClone'](_0x59a34d[_0x48d687(0x2f9)][0x0]),_0x569477=a[_0x48d687(0x13b)][_0x48d687(0x35e)](_0x59a34d['mutations'][0x0]);for(let _0x532b47=_0x46c790[_0x48d687(0x17b)]-0x1;_0x532b47>=0x0;_0x532b47--){const _0x56d1ee={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46c790[_0x532b47]['unitId'],..._0x46c790[_0x532b47][_0x48d687(0x310)]}},_0x47b387={'id':_0x48d687(0x2de),'params':{'unitId':_0x46c790[_0x532b47][_0x48d687(0x331)],..._0x46c790[_0x532b47][_0x48d687(0x1ff)]}},_0x2eeb45=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x14858d,_0x56d1ee,!0x1),_0x4a2e06=this[_0x48d687(0x194)][_0x48d687(0x354)](_0x569477,_0x47b387,!0x1);if(g[_0x48d687(0x381)](_0x2eeb45))throw _0x2eeb45[_0x48d687(0x2a7)];if(g['isTransformMutationFailure'](_0x4a2e06))throw _0x4a2e06['error'];_0x21ec46[_0x48d687(0x2ab)]({..._0x46c790[_0x532b47],'undoState':_0x2eeb45[_0x48d687(0x37d)][_0x48d687(0x210)],'redoState':_0x4a2e06[_0x48d687(0x37d)][_0x48d687(0x210)]}),_0x14858d=_0x2eeb45[_0x48d687(0x30d)],_0x569477=_0x4a2e06[_0x48d687(0x30d)];}this[_0x48d687(0x15b)]['setStateCache'](_0x4bcef2,{'history':_0x6efbf0,'collaboration':_0x21ec46});}};te=Gt([Ie(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x2ff5b3(0x394)](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x2ff5b3(0x35c)],Kt=(_0x32b9fe,_0x111558,_0x2e008a,_0x3fbc73)=>{const _0x26e6b3=_0x2ff5b3;for(var _0x3812d6=_0x3fbc73>0x1?void 0x0:_0x3fbc73?Xt(_0x111558,_0x2e008a):_0x111558,_0x1f18ab=_0x32b9fe[_0x26e6b3(0x17b)]-0x1,_0xf13363;_0x1f18ab>=0x0;_0x1f18ab--)(_0xf13363=_0x32b9fe[_0x1f18ab])&&(_0x3812d6=_0xf13363(_0x3812d6)||_0x3812d6);return _0x3812d6;},Pe=(_0xca7002,_0x9ab8dc)=>(_0x1984ac,_0x1b5d01)=>_0x9ab8dc(_0x1984ac,_0x1b5d01,_0xca7002);let se=class{constructor(_0xa681bc,_0x128a71){const _0x41d381=_0x2ff5b3;this[_0x41d381(0x2ed)]=_0xa681bc,this[_0x41d381(0x194)]=_0x128a71;}[_0x2ff5b3(0x343)](_0x50267a){const _0x58c93c=_0x2ff5b3;var _0x2f4d3e;const _0x88be2=this['_injector']['get'](V[_0x58c93c(0x2ba)]),_0x221904=(_0x2f4d3e=_0x88be2[_0x58c93c(0x1e1)]())!=null?_0x2f4d3e:[];if(_0x221904[_0x58c93c(0x17b)]===0x0)return;const _0xb9d5f0=_0x50267a[_0x58c93c(0x252)],_0x3619e7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb9d5f0,'actions':null,'textRanges':_0x221904}}],_0x2edc45=this[_0x58c93c(0x194)][_0x58c93c(0x22a)](_0x50267a,_0x3619e7);if(!g[_0x58c93c(0x1d4)](_0x2edc45))throw _0x2edc45[_0x58c93c(0x2a7)];const _0x5b1179=_0x2edc45[_0x58c93c(0x37d)][0x0]['params'][_0x58c93c(0x10c)];Array[_0x58c93c(0x19b)](_0x5b1179)&&_0x5b1179[_0x58c93c(0x17b)]&&_0x88be2['replaceDocRanges'](_0x5b1179,{'unitId':_0xb9d5f0,'subUnitId':_0xb9d5f0},!0x1);}};se=Kt([Pe(0x0,a[_0x2ff5b3(0x394)](a['Injector'])),Pe(0x1,g[_0x2ff5b3(0x289)])],se);var qt=Object[_0x2ff5b3(0x35c)],zt=(_0x56a433,_0xa9b3ef,_0x5d49ff,_0x55b3e4)=>{for(var _0x536180=_0x55b3e4>0x1?void 0x0:_0x55b3e4?qt(_0xa9b3ef,_0x5d49ff):_0xa9b3ef,_0xa9c590=_0x56a433['length']-0x1,_0xdf887b;_0xa9c590>=0x0;_0xa9c590--)(_0xdf887b=_0x56a433[_0xa9c590])&&(_0x536180=_0xdf887b(_0x536180)||_0x536180);return _0x536180;},N=(_0x3804db,_0xe7132d)=>(_0x4c1626,_0x273002)=>_0xe7132d(_0x4c1626,_0x273002,_0x3804db);let ie=class extends a[_0x2ff5b3(0x300)]{constructor(_0x4efd5b,_0x1af692,_0x390745,_0x4eaf54,_0x488fac,_0x5f74a,_0x16e767,_0x4c169f){const _0x11a6a1=_0x2ff5b3;super(),_(this,_0x11a6a1(0x14c),new I['BehaviorSubject'](u['CollaborationStatus'][_0x11a6a1(0x115)])),(this['_docStateChangeManagerService']=_0x4efd5b,this['_collaborationController']=_0x1af692,this[_0x11a6a1(0x364)]=_0x390745,this[_0x11a6a1(0x105)]=_0x4eaf54,this['_docTransformSelectionsService']=_0x488fac,this[_0x11a6a1(0x362)]=_0x5f74a,this[_0x11a6a1(0x185)]=_0x16e767,this[_0x11a6a1(0x135)]=_0x4c169f,this[_0x11a6a1(0x129)]());}[_0x2ff5b3(0x129)](){const _0x5964be=_0x2ff5b3;this[_0x5964be(0x2bd)](this[_0x5964be(0x107)][_0x5964be(0x204)][_0x5964be(0x336)](_0x434f93=>{const _0x110bb5=_0x5964be,_0x114363=this[_0x110bb5(0x15b)][_0x110bb5(0x326)][_0x110bb5(0x336)](_0x77b251=>{const _0x5a8de2=_0x110bb5;if(_0x77b251==null)return;const {unitId:_0x3438f5,redoState:_0x5856a3,commandId:_0x174127}=_0x77b251;if(_0x3438f5!==_0x434f93['unitID'])return;const _0xa65ccf={'id':_0x174127,'type':a[_0x5a8de2(0x150)][_0x5a8de2(0x337)],'params':{'unitId':_0x3438f5,'actions':_0x5856a3['actions'],'textRanges':null}};_0x434f93['onLocalMutation'](_0xa65ccf);});if(_0x434f93[_0x110bb5(0x2bd)](_0x114363),_0x434f93 instanceof u[_0x110bb5(0x377)]){const _0x34ddcf={'onTransformIME':_0x37aca1=>this[_0x110bb5(0x364)][_0x110bb5(0x126)](_0x37aca1),'onTransformState':_0x59c8bc=>this[_0x110bb5(0x105)][_0x110bb5(0x12a)](_0x59c8bc),'onTransformSelections':_0x58128f=>this[_0x110bb5(0x232)][_0x110bb5(0x343)](_0x58128f),'onSyncEditingCollabCursor':_0x40e5ac=>this[_0x110bb5(0x362)][_0x110bb5(0x24a)](_0x40e5ac),'onTransformRemoteChangesetByIMECache':_0x58568f=>this['_docTransformIMECacheService'][_0x110bb5(0x2ca)](_0x58568f),'onTransformRemoteChangesetByStateCache':_0x4ed0d5=>this[_0x110bb5(0x105)][_0x110bb5(0x2ca)](_0x4ed0d5)};_0x434f93['addHandlerCallback'](_0x34ddcf);}}));}};ie=zt([N(0x0,a[_0x2ff5b3(0x394)](p[_0x2ff5b3(0xf8)])),N(0x1,a['Inject'](u[_0x2ff5b3(0x1ad)])),N(0x2,a[_0x2ff5b3(0x394)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x2ff5b3(0x394)](se)),N(0x5,a[_0x2ff5b3(0x394)](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x197)]))],ie);var G=(_0x372f29=>(_0x372f29[_0x372f29[_0x2ff5b3(0x221)]=0x0]=_0x2ff5b3(0x221),_0x372f29[_0x372f29['OK']=0x1]='OK',_0x372f29[_0x372f29[_0x2ff5b3(0x1bf)]=0x2]=_0x2ff5b3(0x1bf),_0x372f29[_0x372f29[_0x2ff5b3(0x35d)]=0x3]='PERMISSION_DENIED',_0x372f29[_0x372f29[_0x2ff5b3(0x2d9)]=0x4]=_0x2ff5b3(0x2d9),_0x372f29[_0x372f29[_0x2ff5b3(0x112)]=0x5]=_0x2ff5b3(0x112),_0x372f29[_0x372f29[_0x2ff5b3(0x11e)]=0x6]=_0x2ff5b3(0x11e),_0x372f29[_0x372f29[_0x2ff5b3(0x2c8)]=0x7]=_0x2ff5b3(0x2c8),_0x372f29[_0x372f29[_0x2ff5b3(0x338)]=0x8]=_0x2ff5b3(0x338),_0x372f29[_0x372f29[_0x2ff5b3(0xfb)]=0x9]=_0x2ff5b3(0xfb),_0x372f29[_0x372f29['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x372f29[_0x372f29[_0x2ff5b3(0x1e7)]=0xb]=_0x2ff5b3(0x1e7),_0x372f29[_0x372f29[_0x2ff5b3(0x10a)]=0xc]=_0x2ff5b3(0x10a),_0x372f29[_0x372f29[_0x2ff5b3(0x1d8)]=0xd]=_0x2ff5b3(0x1d8),_0x372f29[_0x372f29[_0x2ff5b3(0x1da)]=0xe]=_0x2ff5b3(0x1da),_0x372f29[_0x372f29[_0x2ff5b3(0x27b)]=0xf]=_0x2ff5b3(0x27b),_0x372f29[_0x372f29[_0x2ff5b3(0x22f)]=0x10]=_0x2ff5b3(0x22f),_0x372f29[_0x372f29[_0x2ff5b3(0x1f0)]=0x64]=_0x2ff5b3(0x1f0),_0x372f29[_0x372f29['ERROR_AGAIN']=0x65]=_0x2ff5b3(0x342),_0x372f29[_0x372f29[_0x2ff5b3(0x118)]=0xc9]=_0x2ff5b3(0x118),_0x372f29[_0x372f29['USER_IS_ANONYMOUS']=0xca]=_0x2ff5b3(0x284),_0x372f29[_0x372f29['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x2ff5b3(0xe5),_0x372f29[_0x372f29[_0x2ff5b3(0x23e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x372f29[_0x372f29[_0x2ff5b3(0x2af)]=0x1772]=_0x2ff5b3(0x2af),_0x372f29[_0x372f29[_0x2ff5b3(0x189)]=0x1773]=_0x2ff5b3(0x189),_0x372f29[_0x372f29['APPLY_REJECT']=0x1b59]=_0x2ff5b3(0x2ec),_0x372f29[_0x372f29[_0x2ff5b3(0x199)]=0x1b5a]=_0x2ff5b3(0x199),_0x372f29[_0x372f29[_0x2ff5b3(0x37f)]=0x1b5b]=_0x2ff5b3(0x37f),_0x372f29[_0x372f29[_0x2ff5b3(0x2bb)]=0x1b5c]=_0x2ff5b3(0x2bb),_0x372f29[_0x372f29[_0x2ff5b3(0x261)]=0x1b5d]=_0x2ff5b3(0x261),_0x372f29[_0x372f29['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2ff5b3(0x26c),_0x372f29[_0x372f29[_0x2ff5b3(0x2aa)]=0x2329]=_0x2ff5b3(0x2aa),_0x372f29[_0x372f29['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x372f29[_0x372f29[_0x2ff5b3(0x196)]=0x232b]=_0x2ff5b3(0x196),_0x372f29[_0x372f29[_0x2ff5b3(0x272)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x372f29[_0x372f29[_0x2ff5b3(0x316)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x372f29[_0x372f29[_0x2ff5b3(0x388)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x372f29[_0x372f29[_0x2ff5b3(0x191)]=0x2712]=_0x2ff5b3(0x191),_0x372f29[_0x372f29[_0x2ff5b3(0x1fd)]=0x2713]=_0x2ff5b3(0x1fd),_0x372f29[_0x372f29[_0x2ff5b3(0x170)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x372f29[_0x372f29[_0x2ff5b3(0x257)]=0x271a]=_0x2ff5b3(0x257),_0x372f29[_0x372f29[_0x2ff5b3(0x205)]=0x271b]=_0x2ff5b3(0x205),_0x372f29[_0x372f29[_0x2ff5b3(0x266)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x372f29[_0x372f29[_0x2ff5b3(0x206)]=0x271d]=_0x2ff5b3(0x206),_0x372f29[_0x372f29[_0x2ff5b3(0x143)]=0x271e]=_0x2ff5b3(0x143),_0x372f29[_0x372f29['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x372f29[_0x372f29[_0x2ff5b3(0x145)]=0x2720]=_0x2ff5b3(0x145),_0x372f29[_0x372f29[_0x2ff5b3(0x37a)]=0x2af9]=_0x2ff5b3(0x37a),_0x372f29[_0x372f29[_0x2ff5b3(0x1af)]=0x2ee1]=_0x2ff5b3(0x1af),_0x372f29[_0x372f29[_0x2ff5b3(0x242)]=0x2ee2]=_0x2ff5b3(0x242),_0x372f29[_0x372f29[_0x2ff5b3(0x361)]=0x2ee3]=_0x2ff5b3(0x361),_0x372f29[_0x372f29[_0x2ff5b3(0x2c1)]=0x2ee4]=_0x2ff5b3(0x2c1),_0x372f29[_0x372f29[_0x2ff5b3(0x306)]=0x2ee5]=_0x2ff5b3(0x306),_0x372f29[_0x372f29[_0x2ff5b3(0x312)]=0x32c9]=_0x2ff5b3(0x312),_0x372f29[_0x372f29[_0x2ff5b3(0x2cc)]=0x32ca]=_0x2ff5b3(0x2cc),_0x372f29[_0x372f29[_0x2ff5b3(0x27e)]=0x32cb]=_0x2ff5b3(0x27e),_0x372f29[_0x372f29[_0x2ff5b3(0x1ba)]=0x36b1]=_0x2ff5b3(0x1ba),_0x372f29[_0x372f29[_0x2ff5b3(0x215)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x372f29[_0x372f29[_0x2ff5b3(0x2e3)]=0x36b3]=_0x2ff5b3(0x2e3),_0x372f29[_0x372f29[_0x2ff5b3(0xfe)]=0x36b4]=_0x2ff5b3(0xfe),_0x372f29[_0x372f29[_0x2ff5b3(0x1cd)]=0x3715]=_0x2ff5b3(0x1cd),_0x372f29[_0x372f29[_0x2ff5b3(0x164)]=0x3716]=_0x2ff5b3(0x164),_0x372f29[_0x372f29['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x2ff5b3(0x260),_0x372f29[_0x372f29[_0x2ff5b3(0x122)]=0x37dd]=_0x2ff5b3(0x122),_0x372f29[_0x372f29['REDEMPTION_INVALID_CODE']=0x3a99]=_0x2ff5b3(0x1bb),_0x372f29[_0x372f29[_0x2ff5b3(0x2dd)]=0x3a9a]=_0x2ff5b3(0x2dd),_0x372f29[_0x372f29[_0x2ff5b3(0x24c)]=0x3a9b]=_0x2ff5b3(0x24c),_0x372f29[_0x372f29['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2ff5b3(0x251),_0x372f29[_0x372f29['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x372f29[_0x372f29['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x2ff5b3(0x1b3),_0x372f29[_0x372f29[_0x2ff5b3(0x1c3)]=0x3a9f]=_0x2ff5b3(0x1c3),_0x372f29[_0x372f29[_0x2ff5b3(0x278)]=0x3e81]=_0x2ff5b3(0x278),_0x372f29[_0x372f29[_0x2ff5b3(0x2d6)]=-0x1]=_0x2ff5b3(0x2d6),_0x372f29))(G||{});function Jt(_0x45e1ec){const _0x1c28cc=_0x2ff5b3;var _0x2fae1c,_0x5078f1;const _0xb930e1=(_0x2fae1c=_0x45e1ec[_0x1c28cc(0x281)])==null?void 0x0:_0x2fae1c[_0x1c28cc(0x34a)],_0x18569a=((_0x5078f1=_0x45e1ec[_0x1c28cc(0x281)])==null?void 0x0:_0x5078f1[_0x1c28cc(0x2e0)])||0x0;return _0xb930e1===B[_0x1c28cc(0x23c)]['START_CALCULATION']&&_0x18569a>0x0;}function Zt(_0x4c859e){const _0x18d7d9=_0x2ff5b3;return _0x4c859e[_0x18d7d9(0x2b4)]===B['FormulaExecutedStateType']['SUCCESS'];}var Qt=Object[_0x2ff5b3(0x35c)],es=(_0x5ae148,_0x4bb9a8,_0xfe8ebd,_0x319cf1)=>{const _0x58f823=_0x2ff5b3;for(var _0x1c5a08=_0x319cf1>0x1?void 0x0:_0x319cf1?Qt(_0x4bb9a8,_0xfe8ebd):_0x4bb9a8,_0xc3da4=_0x5ae148[_0x58f823(0x17b)]-0x1,_0x29a206;_0xc3da4>=0x0;_0xc3da4--)(_0x29a206=_0x5ae148[_0xc3da4])&&(_0x1c5a08=_0x29a206(_0x1c5a08)||_0x1c5a08);return _0x1c5a08;},L=(_0x381e46,_0x30bf0a)=>(_0x583254,_0x4822ea)=>_0x30bf0a(_0x583254,_0x4822ea,_0x381e46);const ts=_0x2ff5b3(0x2a2),ss=_0x2ff5b3(0xda),is=_0x2ff5b3(0x277);let ne=class extends a[_0x2ff5b3(0x300)]{constructor(_0x24e682,_0x1fe9f8,_0x5037e0,_0x3a81a2,_0x34a055,_0x55cf54,_0x16a7c0){const _0x5029c8=_0x2ff5b3;super(),_(this,_0x5029c8(0x286),null),_(this,_0x5029c8(0x30b),0x0),_(this,_0x5029c8(0x28d),0x0),_(this,_0x5029c8(0x27a),[]),_(this,_0x5029c8(0x2da),0x0),(this['_messageService']=_0x24e682,this[_0x5029c8(0x1ce)]=_0x1fe9f8,this[_0x5029c8(0xd8)]=_0x5037e0,this[_0x5029c8(0x241)]=_0x3a81a2,this[_0x5029c8(0x22c)]=_0x34a055,this[_0x5029c8(0x15e)]=_0x55cf54,this[_0x5029c8(0x135)]=_0x16a7c0,this[_0x5029c8(0x33c)]());}['_initCommandInterceptor'](){const _0x591b44=_0x2ff5b3;this[_0x591b44(0x2bd)](this['_commandService'][_0x591b44(0x2fd)]((_0x2f2793,_0x58441b)=>{const _0x2bd374=_0x591b44;var _0x3bda2b;if(_0x2f2793['id']!==B[_0x2bd374(0x1eb)]['id'])return;const _0x1bfa09=_0x2f2793[_0x2bd374(0x210)];if(!this['_hasFormulaInDirtyRanges']((_0x3bda2b=_0x1bfa09[_0x2bd374(0x21e)])!=null?_0x3bda2b:[]))return;if(!this[_0x2bd374(0x2a1)]())throw this[_0x2bd374(0x1f2)](_0x2f2793,_0x58441b),this[_0x2bd374(0x267)](),new a['CanceledError']();})),this[_0x591b44(0x2bd)](this[_0x591b44(0x1ce)][_0x591b44(0x142)]((_0x28e0fc,_0x32de12)=>{const _0x5c7777=_0x591b44;if(_0x28e0fc['id']!==B[_0x5c7777(0x28b)]['id'])return;const _0x3f7f56=_0x28e0fc['params'];if(Jt(_0x3f7f56)){const _0x22f88d=a[_0x5c7777(0x23b)]();this[_0x5c7777(0x27a)][_0x5c7777(0x32d)](_0x22f88d),this[_0x5c7777(0x11a)](_0x22f88d);}else{if(Zt(_0x3f7f56)&&this[_0x5c7777(0x27a)][_0x5c7777(0x17b)]>0x0){const _0x4374c9=this[_0x5c7777(0x27a)]['shift']();this[_0x5c7777(0x291)](_0x4374c9);}}}));}[_0x2ff5b3(0x244)](){const _0x45c84f=_0x2ff5b3;super[_0x45c84f(0x244)](),this[_0x45c84f(0x2d4)](),this[_0x45c84f(0x27a)]=[],this[_0x45c84f(0x28d)]=0x0,this[_0x45c84f(0x30b)]=0x0,this[_0x45c84f(0x2da)]=0x0;}async[_0x2ff5b3(0x1f2)](_0x5c3285,_0x47538d){const _0x5d2bc1=_0x2ff5b3;for(let _0x5f4f5c=0x0;_0x5f4f5c<0x1e;_0x5f4f5c++)try{if(await this[_0x5d2bc1(0x16f)](),this[_0x5d2bc1(0x2a1)]()){this[_0x5d2bc1(0x24f)](_0x5c3285,_0x47538d),this['_messageService'][_0x5d2bc1(0x20e)]({'content':this[_0x5d2bc1(0x135)]['t'](_0x5d2bc1(0x15a)),'type':T[_0x5d2bc1(0xdb)]['Success']});return;}await new Promise(_0xba7968=>{const _0x2bfd27=_0x5d2bc1;this['_pollingInterval']=window[_0x2bfd27(0x113)](_0xba7968,0x3e8);});}catch(_0x2be08b){this[_0x5d2bc1(0x15e)][_0x5d2bc1(0x2a7)](_0x2be08b);}this['_messageService'][_0x5d2bc1(0x20e)]({'content':this['_localeService']['t'](_0x5d2bc1(0x231)),'type':T[_0x5d2bc1(0xdb)][_0x5d2bc1(0x23a)]});}['_applyCommand'](_0x4e94e1,_0x22df92){const _0x3dd2f3=_0x2ff5b3;try{this[_0x3dd2f3(0x1ce)][_0x3dd2f3(0x1d3)](_0x4e94e1['id'],_0x4e94e1['params'],_0x22df92);}catch(_0x48d79c){this[_0x3dd2f3(0x15e)][_0x3dd2f3(0x2a7)](_0x48d79c);}}[_0x2ff5b3(0xd6)](_0x2dd1ec,_0xafb870){const _0x455fdb=_0x2ff5b3;_0xafb870<this[_0x455fdb(0x2da)]||(this[_0x455fdb(0x2da)]=_0xafb870,this[_0x455fdb(0x30b)]=Number[_0x455fdb(0x2b2)](_0x2dd1ec['maxFormulaLimit']),this[_0x455fdb(0x28d)]=Number['parseInt'](_0x2dd1ec[_0x455fdb(0x140)]));}async[_0x2ff5b3(0x11a)](_0x5e5d89){const _0x366f14=_0x2ff5b3;var _0x8b0bbc,_0x5893a1;const _0x15bd1e=Date['now']();try{const _0x6e6049=((_0x8b0bbc=this[_0x366f14(0xd8)]['getConfig'](u[_0x366f14(0x1bc)]))==null?void 0x0:_0x8b0bbc[_0x366f14(0x13a)])||ss,_0x314252=(await this[_0x366f14(0x241)][_0x366f14(0x279)](_0x6e6049,{'body':JSON[_0x366f14(0x340)]({'taskId':_0x5e5d89})}))[_0x366f14(0x10f)];if(((_0x5893a1=_0x314252['error'])==null?void 0x0:_0x5893a1[_0x366f14(0x138)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x314252[_0x366f14(0x245)],_0x15bd1e);}catch(_0x5de47d){this[_0x366f14(0x15e)][_0x366f14(0x2a7)](_0x5de47d);}}async[_0x2ff5b3(0x16f)](_0x413041){const _0x5589d9=_0x2ff5b3;var _0xfac1fd,_0x16d106;const _0x326fb4=Date['now']();try{const _0x12620c=((_0xfac1fd=this['_configService'][_0x5589d9(0x333)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xfac1fd[_0x5589d9(0x2b6)])||ts,_0xc20a83=_0x413041?_0x12620c+'?taskId='+encodeURIComponent(_0x413041):_0x12620c,_0x50d664=(await this[_0x5589d9(0x241)][_0x5589d9(0x1c9)](_0xc20a83))[_0x5589d9(0x10f)];if(((_0x16d106=_0x50d664[_0x5589d9(0x2a7)])==null?void 0x0:_0x16d106[_0x5589d9(0x138)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x50d664[_0x5589d9(0x245)],_0x326fb4);}catch(_0x2cf660){this[_0x5589d9(0x15e)][_0x5589d9(0x2a7)](_0x2cf660);}}async[_0x2ff5b3(0x291)](_0x201d6c){const _0x450246=_0x2ff5b3;var _0x136913,_0x804b93;const _0x7b6dd5=Date[_0x450246(0x202)]();try{const _0x9f4cfb=((_0x136913=this[_0x450246(0xd8)][_0x450246(0x333)](u[_0x450246(0x1bc)]))==null?void 0x0:_0x136913[_0x450246(0x1e6)])||is,_0x1e71cf=(await this[_0x450246(0x241)]['post'](_0x9f4cfb,{'body':JSON[_0x450246(0x340)]({'taskId':_0x201d6c})}))['body'];if(((_0x804b93=_0x1e71cf['error'])==null?void 0x0:_0x804b93['code'])!==G['OK'])return;this[_0x450246(0xd6)](_0x1e71cf[_0x450246(0x245)],_0x7b6dd5);}catch(_0x3e78cb){this[_0x450246(0x15e)]['error'](_0x3e78cb);}}[_0x2ff5b3(0x2a1)](){const _0x1eb898=_0x2ff5b3;return this[_0x1eb898(0x30b)]===0x0?!0x0:this[_0x1eb898(0x30b)]-this['_currentUsage']>0x0;}[_0x2ff5b3(0x2d4)](){const _0x7745a5=_0x2ff5b3;this[_0x7745a5(0x286)]&&(clearTimeout(this['_pollingInterval']),this[_0x7745a5(0x286)]=null);}['_showGuardMessage'](){const _0xc72c90=_0x2ff5b3;this[_0xc72c90(0x185)]['show']({'content':this[_0xc72c90(0x135)]['t'](_0xc72c90(0x18e)),'type':T['MessageType']['Loading']});}['_hasFormulaInDirtyRanges'](_0x219cb1){const _0x3b4cb3=_0x2ff5b3;for(const _0x4ba566 of _0x219cb1){const {unitId:_0x4de7c5,sheetId:_0x271916,range:_0x3bb87b}=_0x4ba566,_0x28333b=this[_0x3b4cb3(0x22c)][_0x3b4cb3(0x192)](_0x4de7c5);if(!_0x28333b)continue;const _0x8fc113=_0x28333b[_0x3b4cb3(0x2f5)](_0x271916);if(!_0x8fc113)continue;const _0x347c31=_0x8fc113['getCellMatrix']();for(let _0x7e3365=_0x3bb87b[_0x3b4cb3(0x13d)];_0x7e3365<=_0x3bb87b[_0x3b4cb3(0x11d)];_0x7e3365++)for(let _0x32c73b=_0x3bb87b[_0x3b4cb3(0xd5)];_0x32c73b<=_0x3bb87b['endColumn'];_0x32c73b++){const _0x2e43df=_0x347c31[_0x3b4cb3(0x16c)](_0x7e3365,_0x32c73b);if(_0x2e43df&&(a[_0x3b4cb3(0x274)](_0x2e43df['f'])||a[_0x3b4cb3(0x1e8)](_0x2e43df['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x2ff5b3(0x28f)])),L(0x1,a[_0x2ff5b3(0x209)]),L(0x2,a[_0x2ff5b3(0x2e4)]),L(0x3,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),L(0x4,a['IUniverInstanceService']),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x2ff5b3(0x197)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0xd4fc73,_0x9114e2,_0x883260,_0x2fc5b1)=>{const _0x408dc9=_0x2ff5b3;for(var _0x683ea3=_0x2fc5b1>0x1?void 0x0:_0x2fc5b1?ns(_0x9114e2,_0x883260):_0x9114e2,_0x4cf298=_0xd4fc73[_0x408dc9(0x17b)]-0x1,_0x191cec;_0x4cf298>=0x0;_0x4cf298--)(_0x191cec=_0xd4fc73[_0x4cf298])&&(_0x683ea3=_0x191cec(_0x683ea3)||_0x683ea3);return _0x683ea3;},de=(_0xf34c,_0x5bdbb3)=>(_0x5b57c7,_0x48daa0)=>_0x5bdbb3(_0x5b57c7,_0x48daa0,_0xf34c);let pe=class extends a[_0x2ff5b3(0x300)]{constructor(_0x141376,_0x2f5f95,_0x243c92){const _0x5e7f20=_0x2ff5b3;super(),_(this,_0x5e7f20(0x294),new Map()),_(this,_0x5e7f20(0x2e8),new Map()),_(this,_0x5e7f20(0x109),!0x1),(this['_configService']=_0x141376,this[_0x5e7f20(0x389)]=_0x2f5f95,this[_0x5e7f20(0x352)]=_0x243c92);}[_0x2ff5b3(0x151)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x46eda8=_0x2ff5b3;this[_0x46eda8(0x109)]=!0x1;}get[_0x2ff5b3(0x11b)](){const _0x4eb67a=_0x2ff5b3;return this[_0x4eb67a(0x2e8)];}[_0x2ff5b3(0x244)](){const _0x73194b=_0x2ff5b3;this['exhaustSavingTask']()[_0x73194b(0x37c)](()=>super[_0x73194b(0x244)]());}async[_0x2ff5b3(0x328)](_0x59c6bb){const _0x336ce4=_0x2ff5b3;return this[_0x336ce4(0x109)]?null:this[_0x336ce4(0x389)]['getItem'](u[_0x336ce4(0x363)](_0x59c6bb));}async[_0x2ff5b3(0x2a4)](_0x5a821b,_0x3c593d){const _0x151473=_0x2ff5b3;return!!this[_0x151473(0x389)][_0x151473(0x27d)](_0x5a821b,_0x3c593d);}[_0x2ff5b3(0x1cc)](_0x1c274c,_0x248400,_0x548f25,_0x5c2feb){const _0x1b02a2=_0x2ff5b3,_0x173c45=this[_0x1b02a2(0x352)][_0x1b02a2(0x160)](_0x1c274c);this[_0x1b02a2(0x294)][_0x1b02a2(0x386)](_0x1c274c,{'unitID':_0x1c274c,'type':_0x248400,'awaitingChangeset':_0x548f25,'mutations':_0x5c2feb,'rev':_0x173c45}),this[_0x1b02a2(0x2e8)][_0x1b02a2(0xf3)](_0x1c274c)||this[_0x1b02a2(0x33e)](_0x1c274c);}['_scheduleSaving'](_0x37f5a5){const _0x18337a=_0x2ff5b3,_0x307044=this[_0x18337a(0x1d0)]();_0x307044===0x0?this[_0x18337a(0x295)](_0x37f5a5):this[_0x18337a(0x2e8)][_0x18337a(0x386)](_0x37f5a5,setTimeout(()=>this['_saveCache'](_0x37f5a5),_0x307044));}['_getSaveTimeout'](){const _0x5e29a8=_0x2ff5b3;var _0x38ec91;return(_0x38ec91=this[_0x5e29a8(0xd8)][_0x5e29a8(0x333)](u[_0x5e29a8(0x17c)]))!=null?_0x38ec91:u[_0x5e29a8(0x181)];}[_0x2ff5b3(0x295)](_0x30baa6){const _0x584c24=_0x2ff5b3,_0x587590=this[_0x584c24(0x2e8)][_0x584c24(0x1c9)](_0x30baa6);return _0x587590!==void 0x0&&window[_0x584c24(0x1be)](_0x587590),this[_0x584c24(0x389)][_0x584c24(0x27d)](u['getLocalCacheKey'](_0x30baa6),this['_cachedData']['get'](_0x30baa6))[_0x584c24(0x37c)](()=>this[_0x584c24(0x2e8)][_0x584c24(0x365)](_0x30baa6));}async[_0x2ff5b3(0x37b)](){const _0x218497=_0x2ff5b3,_0x1f9070=[];this[_0x218497(0x2e8)][_0x218497(0x1fc)]((_0x534aa3,_0x62f1c5)=>{const _0x474b6f=_0x218497;window[_0x474b6f(0x1be)](_0x534aa3),_0x1f9070[_0x474b6f(0x32d)](this[_0x474b6f(0x295)](_0x62f1c5)[_0x474b6f(0x37c)](()=>{const _0xe6be18=_0x474b6f;this['_saveTaskMap'][_0xe6be18(0x365)](_0x62f1c5);}));}),await Promise[_0x218497(0x273)](_0x1f9070);}};pe=rs([de(0x0,a[_0x2ff5b3(0x2e4)]),de(0x1,a[_0x2ff5b3(0x243)]),de(0x2,a['Inject'](g[_0x2ff5b3(0x155)]))],pe);class ke extends a[_0x2ff5b3(0x131)]{constructor(){const _0x310615=_0x2ff5b3;super(),_(this,_0x310615(0x2f1)),this[_0x310615(0x2f1)]=I[_0x310615(0x18b)](window,_0x310615(0x169))[_0x310615(0x2fe)](I[_0x310615(0x106)](this[_0x310615(0x36c)]),I['shareReplay'](0x1),I[_0x310615(0x379)](void 0x0));}[_0x2ff5b3(0x347)](_0x4565c5,_0x5c7458,_0x3454b7=!0x1){const _0x42da84=_0x2ff5b3,_0x18ceaf=new URL(window[_0x42da84(0x31e)][_0x42da84(0x2cf)]);_0x18ceaf['searchParams'][_0x42da84(0x386)](_0x4565c5,_0x5c7458),_0x3454b7?window[_0x42da84(0x358)][_0x42da84(0x141)]('','',_0x18ceaf[_0x42da84(0x1a3)]()):window[_0x42da84(0x358)][_0x42da84(0x322)]('','',_0x18ceaf['toString']());}[_0x2ff5b3(0x219)](_0x3335bf,_0x490265=!0x1){const _0x2fd679=_0x2ff5b3,_0x4e34b8=new URL(window[_0x2fd679(0x31e)][_0x2fd679(0x2cf)]);_0x4e34b8[_0x2fd679(0x36d)][_0x2fd679(0x365)](_0x3335bf),_0x490265?window[_0x2fd679(0x358)][_0x2fd679(0x141)]('','',_0x4e34b8[_0x2fd679(0x1a3)]()):window[_0x2fd679(0x358)][_0x2fd679(0x322)]('','',_0x4e34b8[_0x2fd679(0x1a3)]());}[_0x2ff5b3(0xdc)](_0x5bc081){const _0x278bfd=_0x2ff5b3;var _0x19ae63;return(_0x19ae63=new URL(window[_0x278bfd(0x31e)][_0x278bfd(0x2cf)])['searchParams'][_0x278bfd(0x1c9)](_0x5bc081))!=null?_0x19ae63:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2ff5b3(0x35c)],cs=(_0x35a427,_0x585f6c,_0x480d6f)=>_0x585f6c in _0x35a427?os(_0x35a427,_0x585f6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x480d6f}):_0x35a427[_0x585f6c]=_0x480d6f,ls=(_0x499370,_0x41cc53,_0x302cb2,_0x215ea7)=>{const _0x3a5d7d=_0x2ff5b3;for(var _0x2522db=_0x215ea7>0x1?void 0x0:_0x215ea7?as(_0x41cc53,_0x302cb2):_0x41cc53,_0x40c90c=_0x499370[_0x3a5d7d(0x17b)]-0x1,_0x538fd3;_0x40c90c>=0x0;_0x40c90c--)(_0x538fd3=_0x499370[_0x40c90c])&&(_0x2522db=_0x538fd3(_0x2522db)||_0x2522db);return _0x2522db;},Se=(_0x1fc814,_0x319fa4)=>(_0x1c2ac5,_0x343037)=>_0x319fa4(_0x1c2ac5,_0x343037,_0x1fc814),_s=(_0x888a7c,_0x6eea92,_0x220932)=>cs(_0x888a7c,_0x6eea92+'',_0x220932);const hs=_0x2ff5b3(0x395);exports[_0x2ff5b3(0xe7)]=class extends a[_0x2ff5b3(0x32f)]{constructor(_0x5f21d1=Me,_0x2b9ad7,_0x196257,_0x506128){const _0x2a2858=_0x2ff5b3;super(),this[_0x2a2858(0x19d)]=_0x5f21d1,this[_0x2a2858(0x13c)]=_0x2b9ad7,this['_injector']=_0x196257,this[_0x2a2858(0xd8)]=_0x506128;const {..._0x173874}=a[_0x2a2858(0x33f)]({},Me,this['_config']);this[_0x2a2858(0xd8)][_0x2a2858(0x1f4)](Yt,_0x173874);}[_0x2ff5b3(0x1a5)](){const _0x387a72=_0x2ff5b3;this[_0x387a72(0x2d8)](),this[_0x387a72(0x17e)]();}[_0x2ff5b3(0x36a)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x5d8e55=_0x2ff5b3;var _0x5bcd80;const _0x28370e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5d8e55(0x367)],{'useClass':x[_0x5d8e55(0xdd)]}],[u[_0x5d8e55(0x14b)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x5d8e55(0x25b)]]];this['_config'][_0x5d8e55(0x2b8)]&&_0x28370e[_0x5d8e55(0x32d)]([Q]),a[_0x5d8e55(0x2ad)](this[_0x5d8e55(0x2ed)],a['mergeOverrideWithDependencies'](_0x28370e,(_0x5bcd80=this['_config'])==null?void 0x0:_0x5bcd80[_0x5d8e55(0x2a0)]));}[_0x2ff5b3(0x229)](){const _0x263b6f=_0x2ff5b3;this[_0x263b6f(0x2bd)](this['_renderManagerService']['registerRenderModule'](a[_0x263b6f(0x25e)][_0x263b6f(0x2b0)],[Ee])),this[_0x263b6f(0x2bd)](this['_renderManagerService'][_0x263b6f(0x2e7)](a[_0x263b6f(0x25e)][_0x263b6f(0x1ea)],[Ce]));}['_initDependencies'](){const _0x5b5d62=_0x2ff5b3;a['touchDependencies'](this['_injector'],[[F],[exports[_0x5b5d62(0x188)]],[ie],[Z],[exports[_0x5b5d62(0x25b)]],[ne]]),this[_0x5b5d62(0x19d)][_0x5b5d62(0x2b8)]&&a[_0x5b5d62(0x253)](this[_0x5b5d62(0x2ed)],[[Q]]);}},_s(exports[_0x2ff5b3(0xe7)],'pluginName',hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x2ff5b3(0x21a)](u[_0x2ff5b3(0xf5)]),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),Se(0x3,a[_0x2ff5b3(0x2e4)])],exports[_0x2ff5b3(0xe7)]);var us=Object[_0x2ff5b3(0x35c)],Is=(_0x2c101b,_0x41c9da,_0x147582,_0x4d0a9d)=>{const _0x30d84e=_0x2ff5b3;for(var _0x267e82=_0x4d0a9d>0x1?void 0x0:_0x4d0a9d?us(_0x41c9da,_0x147582):_0x41c9da,_0x2042ad=_0x2c101b[_0x30d84e(0x17b)]-0x1,_0x198c55;_0x2042ad>=0x0;_0x2042ad--)(_0x198c55=_0x2c101b[_0x2042ad])&&(_0x267e82=_0x198c55(_0x267e82)||_0x267e82);return _0x267e82;},W=(_0x260113,_0x491305)=>(_0x374355,_0x28c780)=>_0x491305(_0x374355,_0x28c780,_0x260113);exports[_0x2ff5b3(0x34e)]=class extends u[_0x2ff5b3(0x31b)]{constructor(_0x2b87a4,_0x274a7d,_0x1cfaa5,_0x46d811,_0x27b74b){super(_0x2b87a4,_0x274a7d,_0x1cfaa5,_0x46d811,_0x27b74b);}async[_0x2ff5b3(0x166)](_0x5a9516){const _0x42dafa=_0x2ff5b3,_0x1f2276=await this[_0x42dafa(0x1dd)](),_0x509870=this[_0x42dafa(0x319)](_0x5a9516,_0x1f2276);return this[_0x42dafa(0x24b)](_0x509870);}[_0x2ff5b3(0x319)](_0xcacc7d,_0x451be0){const _0x19ef0f=_0x2ff5b3,_0xc19a1f=typeof window>'u'?new URL(_0xcacc7d):new URL(_0xcacc7d,window[_0x19ef0f(0x31e)][_0x19ef0f(0x208)]);_0xc19a1f[_0x19ef0f(0x36d)]['set'](_0x19ef0f(0x307),_0x451be0);const _0x3a893d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19ef0f(0x31e)][_0x19ef0f(0x18c)]);return _0x3a893d['get'](_0x19ef0f(0x288))&&_0xc19a1f[_0x19ef0f(0x36d)][_0x19ef0f(0x386)](_0x19ef0f(0x288),_0x3a893d['get']('runId')),_0xc19a1f[_0x19ef0f(0x1a3)]();}async['_getSessionTicket'](){const _0x469b63=_0x2ff5b3;var _0x49824f,_0x1f36bf,_0x112ebe;const _0x577c4f=this[_0x469b63(0xd8)]['getConfig'](u[_0x469b63(0x1bc)]),_0x19be19=(_0x49824f=_0x577c4f==null?void 0x0:_0x577c4f['wsSessionTicketUrl'])!=null?_0x49824f:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x112ebe=(_0x1f36bf=(await this[_0x469b63(0x241)][_0x469b63(0x1c9)](_0x19be19,{'headers':{'Content-Type':_0x469b63(0x2dc)}}))[_0x469b63(0x10f)])==null?void 0x0:_0x1f36bf['ticket'])!=null?_0x112ebe:'';}},exports[_0x2ff5b3(0x34e)]=Is([W(0x0,a[_0x2ff5b3(0x394)](a[_0x2ff5b3(0x2ea)])),W(0x1,a[_0x2ff5b3(0x394)](x['HTTPService'])),W(0x2,a['IConfigService']),W(0x3,a[_0x2ff5b3(0x123)]),W(0x4,g['ISnapshotServerService'])],exports[_0x2ff5b3(0x34e)]);var ds=Object[_0x2ff5b3(0x35c)],Ss=(_0x6ef207,_0x819a7d,_0x1a56e9,_0xa31aa6)=>{const _0x1041e0=_0x2ff5b3;for(var _0x40a22=_0xa31aa6>0x1?void 0x0:_0xa31aa6?ds(_0x819a7d,_0x1a56e9):_0x819a7d,_0x1857f6=_0x6ef207[_0x1041e0(0x17b)]-0x1,_0x4b7b06;_0x1857f6>=0x0;_0x1857f6--)(_0x4b7b06=_0x6ef207[_0x1857f6])&&(_0x40a22=_0x4b7b06(_0x40a22)||_0x40a22);return _0x40a22;},fe=(_0x2631b7,_0x1bf7d3)=>(_0x2a0195,_0x548e26)=>_0x1bf7d3(_0x2a0195,_0x548e26,_0x2631b7);exports[_0x2ff5b3(0xf4)]=class extends a[_0x2ff5b3(0x300)]{constructor(_0x5ee01c,_0x24aa61,_0x9a8a1b){const _0x31d114=_0x2ff5b3;super(),this[_0x31d114(0x16d)]=_0x5ee01c,this[_0x31d114(0x241)]=_0x24aa61,this[_0x31d114(0xd8)]=_0x9a8a1b;}async['runOnServer'](_0x1908cc,_0x1c3535,_0x1ba9a8,..._0x35b0a8){const _0x23ef98=_0x2ff5b3;var _0x27f217,_0x39261c,_0x409f5e,_0xcbe4f1;const _0x24352f=this[_0x23ef98(0x16d)]['getFocusedUnit']();if(!_0x24352f)throw new Error(_0x23ef98(0x34f));const _0x896a2b=((_0x27f217=this[_0x23ef98(0xd8)][_0x23ef98(0x333)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x27f217:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1908cc+_0x23ef98(0x171)+_0x1c3535,_0x11e0d2=new URL(window[_0x23ef98(0x31e)][_0x23ef98(0x2cf)]),_0x380301={'scriptId':_0x1908cc,'runId':(_0x39261c=_0x11e0d2[_0x23ef98(0x36d)][_0x23ef98(0x1c9)]('runId'))!=null?_0x39261c:'','function':_0x1c3535,'unitId':_0x24352f[_0x23ef98(0x237)](),'argsOfFunction':JSON['stringify'](_0x35b0a8),'invokeId':(_0x409f5e=_0x1ba9a8['invokeId'])!=null?_0x409f5e:'','executionId':(_0xcbe4f1=_0x1ba9a8[_0x23ef98(0x161)])!=null?_0xcbe4f1:''};try{const _0x309048=await this[_0x23ef98(0x241)][_0x23ef98(0x279)](_0x896a2b,{'body':_0x380301});return _0x309048['body']['error']&&_0x309048['body']['error'][_0x23ef98(0x138)]!==G['OK']?_0x23ef98(0x108):_0x309048[_0x23ef98(0x10f)]['result'];}catch{return _0x23ef98(0x108);}}},exports[_0x2ff5b3(0xf4)]=Ss([fe(0x0,a[_0x2ff5b3(0x21b)]),fe(0x1,a[_0x2ff5b3(0x394)](x[_0x2ff5b3(0x247)])),fe(0x2,a[_0x2ff5b3(0x2e4)])],exports[_0x2ff5b3(0xf4)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x2ff5b3(0x300)]{constructor(){const _0x1251d1=_0x2ff5b3;super(),_(this,_0x1251d1(0x235),a[_0x1251d1(0x23b)]()),_(this,_0x1251d1(0x371),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x1251d1(0x240),new Map()),_(this,_0x1251d1(0x127),new Map()),this['_init']();}['dispose'](){const _0x133c32=_0x2ff5b3;super[_0x133c32(0x244)](),this[_0x133c32(0x240)][_0x133c32(0x1fc)]((_0x46e6ec,_0x4ed7e1)=>this[_0x133c32(0x12b)](_0x4ed7e1)),this[_0x133c32(0x317)]&&window[_0x133c32(0x1e2)](this[_0x133c32(0x317)]);}['getUnitStatus$'](_0x3ce16f){const _0x14d831=_0x2ff5b3;return this[_0x14d831(0x176)](_0x3ce16f)[_0x14d831(0x2fe)](I[_0x14d831(0x1c5)]());}[_0x2ff5b3(0x1d2)](_0xc98d63){const _0x333da5=_0x2ff5b3;this[_0x333da5(0x371)][_0x333da5(0x116)]===0x0&&this['_scheduleHeartbeat'](),this[_0x333da5(0x371)][_0x333da5(0x1ac)](_0xc98d63),this[_0x333da5(0x265)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xc98d63],'isForwarded':!0x1});}[_0x2ff5b3(0x153)](_0x410228){const _0x4528f9=_0x2ff5b3;this['_selfUnitIDs'][_0x4528f9(0x365)](_0x410228),this[_0x4528f9(0x371)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x4528f9(0x1e2)](this['_heartbeatTimer']);}[_0x2ff5b3(0x263)](){const _0x1f9bfa=_0x2ff5b3;this['disposeWithMe'](a[_0x1f9bfa(0x223)](I[_0x1f9bfa(0x18b)](window,'storage')[_0x1f9bfa(0x336)](_0x1efa8a=>{const _0x21050d=_0x1f9bfa;if(_0x1efa8a[_0x21050d(0x111)]!==ye||!_0x1efa8a[_0x21050d(0x293)])return;const _0x4c209a=JSON[_0x21050d(0x2bc)](_0x1efa8a['newValue']);this[_0x21050d(0x2f6)](_0x4c209a);}))),window['addEventListener'](_0x1f9bfa(0x23f),()=>this[_0x1f9bfa(0x265)]({'type':0x1,'memberID':this[_0x1f9bfa(0x235)],'unitIDs':Array[_0x1f9bfa(0x19c)](this[_0x1f9bfa(0x371)])}));}[_0x2ff5b3(0x2f6)](_0x2015b3){const _0x43a690=_0x2ff5b3;switch(_0x2015b3[_0x43a690(0x38e)]){case 0x0:this[_0x43a690(0x12f)](_0x2015b3);break;case 0x1:this[_0x43a690(0x380)](_0x2015b3);break;case 0x2:this['_handleHeartbeatEvent'](_0x2015b3);break;}}[_0x2ff5b3(0x12f)](_0x186bd6){const _0x491236=_0x2ff5b3,{unitIDs:_0x3be47e,memberID:_0x54b337,isForwarded:_0x4b2a50}=_0x186bd6;_0x3be47e[_0x491236(0x1fc)](_0x2a62cd=>{const _0x524b88=_0x491236;if(!_0x4b2a50&&this[_0x524b88(0x29e)][_0x524b88(0xf3)](_0x2a62cd)&&this[_0x524b88(0x176)](_0x2a62cd)[_0x524b88(0x14d)](u[_0x524b88(0x283)][_0x524b88(0x1aa)]),!this['_unitOnClients'][_0x524b88(0xf3)](_0x2a62cd)||!this['_unitOnClients'][_0x524b88(0x1c9)](_0x2a62cd)[_0x524b88(0xf3)](_0x54b337)){const _0x3e2333=this[_0x524b88(0x29e)]['get'](_0x2a62cd)||new Set();_0x3e2333[_0x524b88(0x1ac)](_0x54b337),this[_0x524b88(0x29e)][_0x524b88(0x386)](_0x2a62cd,_0x3e2333),this[_0x524b88(0xff)](_0x54b337);}}),_0x4b2a50||this[_0x491236(0x265)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x491236(0x371)]],'isForwarded':!0x0});}[_0x2ff5b3(0xff)](_0x2c5526){const _0x266bc4=_0x2ff5b3;this[_0x266bc4(0x12b)](_0x2c5526);const _0x41ada6=window[_0x266bc4(0x113)](()=>{const _0x5d363c=_0x266bc4;this[_0x5d363c(0x29e)]['forEach'](_0x2c54e4=>{const _0x1b1deb=_0x5d363c;_0x2c54e4[_0x1b1deb(0x365)](_0x2c5526);});},we*0x2);this[_0x266bc4(0x240)][_0x266bc4(0x386)](_0x2c5526,_0x41ada6);}[_0x2ff5b3(0x12b)](_0x515401){const _0x1edb4b=_0x2ff5b3;if(this[_0x1edb4b(0x240)][_0x1edb4b(0xf3)](_0x515401)){const _0x37fc81=this[_0x1edb4b(0x240)][_0x1edb4b(0x1c9)](_0x515401);_0x37fc81&&window[_0x1edb4b(0x1be)](_0x37fc81),this[_0x1edb4b(0x240)][_0x1edb4b(0x386)](_0x515401,null);}}[_0x2ff5b3(0x380)](_0x1570ce){const _0x4b533a=_0x2ff5b3,{memberID:_0x11f5fd,unitIDs:_0x53b73e}=_0x1570ce;_0x53b73e[_0x4b533a(0x1fc)](_0x21de70=>{const _0x3683f7=_0x4b533a;var _0x5b680a;const _0x23c95e=this['_unitOnClients'][_0x3683f7(0x1c9)](_0x21de70);_0x23c95e&&(_0x23c95e['delete'](_0x11f5fd),(_0x5b680a=this[_0x3683f7(0x176)](_0x21de70))==null||_0x5b680a['next'](_0x23c95e[_0x3683f7(0x116)]===0x0?u[_0x3683f7(0x283)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x11f5fd);}[_0x2ff5b3(0x311)](_0x2d95b4){const _0x225411=_0x2ff5b3;this[_0x225411(0xff)](_0x2d95b4[_0x225411(0x16b)]);}[_0x2ff5b3(0x265)](_0x544f4b){const _0x1208e5=_0x2ff5b3;localStorage[_0x1208e5(0x27d)](ye,JSON[_0x1208e5(0x340)](_0x544f4b));}[_0x2ff5b3(0x1f8)](){const _0xa1e7db=_0x2ff5b3;this[_0xa1e7db(0x317)]=window['setInterval'](()=>{const _0x3ca4b1=_0xa1e7db;this['_send']({'type':0x2,'memberID':this[_0x3ca4b1(0x235)]});},we);}['_ensureSubject'](_0x2d78dc){const _0x96535e=_0x2ff5b3;return this[_0x96535e(0x127)][_0x96535e(0xf3)](_0x2d78dc)||this[_0x96535e(0x127)][_0x96535e(0x386)](_0x2d78dc,new I['BehaviorSubject'](u[_0x96535e(0x283)][_0x96535e(0x183)])),this['_unitStatus']['get'](_0x2d78dc);}}exports[_0x2ff5b3(0x28a)]=Oe,exports[_0x2ff5b3(0x369)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x2ff5b3(0x1de)]=ke;
1
+ 'use strict';const _0x2466c1=_0xdc31;(function(_0x52c971,_0x5ac38b){const _0x4ad420=_0xdc31,_0x1781d8=_0x52c971();while(!![]){try{const _0x540def=-parseInt(_0x4ad420(0x30d))/0x1+parseInt(_0x4ad420(0x135))/0x2*(-parseInt(_0x4ad420(0x332))/0x3)+parseInt(_0x4ad420(0x1b5))/0x4+parseInt(_0x4ad420(0x20a))/0x5*(-parseInt(_0x4ad420(0x321))/0x6)+parseInt(_0x4ad420(0x185))/0x7+parseInt(_0x4ad420(0x179))/0x8*(parseInt(_0x4ad420(0x2a4))/0x9)+parseInt(_0x4ad420(0x294))/0xa;if(_0x540def===_0x5ac38b)break;else _0x1781d8['push'](_0x1781d8['shift']());}catch(_0x2882f9){_0x1781d8['push'](_0x1781d8['shift']());}}}(_0x1744,0x23e35));var Xe=Object[_0x2466c1(0x14a)],Ke=(_0x155cbb,_0x27a716,_0x428d4b)=>_0x27a716 in _0x155cbb?Xe(_0x155cbb,_0x27a716,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x428d4b}):_0x155cbb[_0x27a716]=_0x428d4b,_=(_0xc6bda5,_0x588c50,_0x3ad4fe)=>Ke(_0xc6bda5,typeof _0x588c50!=_0x2466c1(0x198)?_0x588c50+'':_0x588c50,_0x3ad4fe);Object['defineProperty'](exports,Symbol[_0x2466c1(0x35c)],{'value':_0x2466c1(0x213)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x109b44,..._0x4f2854}){const _0x5fa14d=_0x2466c1,{icon:_0x3eae2e,id:_0x1ba97a,className:_0x1972e0,extend:_0x361e37,..._0x26028e}=_0x4f2854,_0x55e2f0=(_0x5fa14d(0x12a)+_0x1ba97a+'\x20'+(_0x1972e0||''))[_0x5fa14d(0x2e2)](),_0x48926c=A[_0x5fa14d(0x3ae)]('_'+Qe());return $e(_0x3eae2e,''+_0x1ba97a,{'defIds':_0x3eae2e[_0x5fa14d(0x13b)],'idSuffix':_0x48926c[_0x5fa14d(0x37a)]},{'ref':_0x109b44,'className':_0x55e2f0,..._0x26028e},_0x361e37);}function $e(_0x4908df,_0x3da57f,_0x180414,_0x17abfc,_0x340ea0){const _0x333879=_0x2466c1;return A[_0x333879(0x17c)](_0x4908df['tag'],{'key':_0x3da57f,...Je(_0x4908df,_0x180414,_0x340ea0),..._0x17abfc},(Ze(_0x4908df,_0x180414)[_0x333879(0x38d)]||[])['map']((_0x29e333,_0x390814)=>$e(_0x29e333,_0x3da57f+'-'+_0x4908df['tag']+'-'+_0x390814,_0x180414,void 0x0,_0x340ea0)));}function Je(_0x211025,_0x1c16bf,_0x556cf4){const _0x1f1c8c=_0x2466c1,_0x3c26be={..._0x211025[_0x1f1c8c(0x2aa)]};_0x556cf4!=null&&_0x556cf4[_0x1f1c8c(0x21c)]&&_0x3c26be[_0x1f1c8c(0x2e9)]===_0x1f1c8c(0x21c)&&(_0x3c26be['fill']=_0x556cf4[_0x1f1c8c(0x21c)]),_0x211025[_0x1f1c8c(0x2be)]===_0x1f1c8c(0x1c1)&&_0x3c26be['id']&&(_0x3c26be['id']=_0x3c26be['id']+_0x1c16bf['idSuffix']),Object[_0x1f1c8c(0x2c0)](_0x3c26be)[_0x1f1c8c(0x21f)](([_0x20d133,_0x4b5d6a])=>{const _0x176bbb=_0x1f1c8c;_0x20d133===_0x176bbb(0x1c1)&&typeof _0x4b5d6a==_0x176bbb(0x165)&&(_0x3c26be[_0x20d133]=_0x4b5d6a[_0x176bbb(0x2cd)](/url\(#(.*)\)/,_0x176bbb(0x20e)+_0x1c16bf[_0x176bbb(0x277)]+')'));});const {defIds:_0x364f67}=_0x1c16bf;return!_0x364f67||_0x364f67[_0x1f1c8c(0x29e)]===0x0||(_0x211025[_0x1f1c8c(0x2be)]===_0x1f1c8c(0x360)&&_0x3c26be[_0x1f1c8c(0x130)]&&(_0x3c26be['xlink:href']=_0x3c26be[_0x1f1c8c(0x130)]+_0x1c16bf[_0x1f1c8c(0x277)]),Object[_0x1f1c8c(0x2c0)](_0x3c26be)[_0x1f1c8c(0x21f)](([_0x4f19ab,_0x485d2a])=>{const _0x18b821=_0x1f1c8c;typeof _0x485d2a==_0x18b821(0x165)&&(_0x3c26be[_0x4f19ab]=_0x485d2a[_0x18b821(0x2cd)](/url\(#(.*)\)/,_0x18b821(0x20e)+_0x1c16bf[_0x18b821(0x277)]+')'));})),_0x3c26be;}function Ze(_0xb95a2b,_0xc5c2a4){const _0x29798e=_0x2466c1;var _0x4c4ab8;const {defIds:_0x535728}=_0xc5c2a4;return!_0x535728||_0x535728[_0x29798e(0x29e)]===0x0?_0xb95a2b:_0xb95a2b[_0x29798e(0x2be)]===_0x29798e(0x346)&&((_0x4c4ab8=_0xb95a2b[_0x29798e(0x38d)])!=null&&_0x4c4ab8[_0x29798e(0x29e)])?{..._0xb95a2b,'children':_0xb95a2b[_0x29798e(0x38d)][_0x29798e(0x220)](_0x210cb0=>typeof _0x210cb0[_0x29798e(0x2aa)]['id']==_0x29798e(0x165)&&_0x535728&&_0x535728[_0x29798e(0x12f)](_0x210cb0['attrs']['id'])?{..._0x210cb0,'attrs':{..._0x210cb0[_0x29798e(0x2aa)],'id':_0x210cb0[_0x29798e(0x2aa)]['id']+_0xc5c2a4[_0x29798e(0x277)]}}:_0x210cb0)}:_0xb95a2b;}function Qe(){const _0x23a85f=_0x2466c1;return Math['random']()[_0x23a85f(0x37d)](0x24)[_0x23a85f(0x258)](0x2,0x8);}Te['displayName']=_0x2466c1(0x143);const et={'tag':_0x2466c1(0x396),'attrs':{'xmlns':_0x2466c1(0x1fd),'fill':_0x2466c1(0x351),'viewBox':_0x2466c1(0x3a5),'width':_0x2466c1(0x333),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2466c1(0x307)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x2466c1(0x3a2),'strokeLinecap':'round','strokeLinejoin':_0x2466c1(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2466c1(0x346),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2466c1(0x364),'d':_0x2466c1(0x2ea)}}]}]}],'defIds':[_0x2466c1(0x241)]},xe=A['forwardRef'](function(_0x1ef6e9,_0x1de67e){const _0x4dc11b=_0x2466c1;return A[_0x4dc11b(0x17c)](Te,Object[_0x4dc11b(0x2ce)]({},_0x1ef6e9,{'id':_0x4dc11b(0x1b3),'ref':_0x1de67e,'icon':et}));});xe['displayName']='OffLineIcon';const tt={'tag':_0x2466c1(0x396),'attrs':{'xmlns':_0x2466c1(0x1fd),'fill':'none','viewBox':_0x2466c1(0x140),'width':_0x2466c1(0x333),'height':_0x2466c1(0x333)},'children':[{'tag':'g','attrs':{'clipPath':_0x2466c1(0x36b)},'children':[{'tag':_0x2466c1(0x152),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2466c1(0x19d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2466c1(0x1f6),'attrs':{'id':_0x2466c1(0x2bc)},'children':[{'tag':_0x2466c1(0x152),'attrs':{'fill':_0x2466c1(0x364),'d':_0x2466c1(0x2ea),'transform':_0x2466c1(0x103)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x2466c1(0x39a)](function(_0x48c5bb,_0x46c834){const _0x24584f=_0x2466c1;return A[_0x24584f(0x17c)](Te,Object[_0x24584f(0x2ce)]({},_0x48c5bb,{'id':_0x24584f(0x350),'ref':_0x46c834,'icon':tt}));});Be[_0x2466c1(0x2a0)]=_0x2466c1(0x28b);function st(_0x52cbc0){const _0x1b885b=_0x2466c1;switch(_0x52cbc0){case u[_0x1b885b(0x17d)][_0x1b885b(0x2ac)]:return _0x1b885b(0x1ac);case u[_0x1b885b(0x17d)][_0x1b885b(0x376)]:return'collabStatus.conflict';case u[_0x1b885b(0x17d)][_0x1b885b(0x28e)]:return'collabStatus.fetchMiss';case u[_0x1b885b(0x17d)][_0x1b885b(0x164)]:return'collabStatus.notCollab';case u[_0x1b885b(0x17d)]['AWAITING']:case u[_0x1b885b(0x17d)][_0x1b885b(0x25f)]:return _0x1b885b(0x21d);case u['CollaborationStatus'][_0x1b885b(0x25c)]:case u[_0x1b885b(0x17d)][_0x1b885b(0x17b)]:return _0x1b885b(0x22f);}}function it(_0x3a3002){const _0xee09ab=_0x2466c1,{status$:_0x550fb6}=_0x3a3002,_0x2891ae=O[_0xee09ab(0x1cf)](_0x550fb6,u['CollaborationStatus'][_0xee09ab(0x164)]),_0x1bec3a=O['useDependency'](a['LocaleService']),_0x504565=O[_0xee09ab(0x2dd)](u[_0xee09ab(0x3c9)]),_0x481636=_0x2891ae!==u[_0xee09ab(0x17d)][_0xee09ab(0x2ac)],_0x2cf6ac=_0x1bec3a['t'](st(_0x2891ae)),_0x5d7dc1=_0x481636?M['jsx'](Be,{}):M[_0xee09ab(0x204)](xe,{}),_0x3095e9=A[_0xee09ab(0x151)](()=>{const _0xcac002=_0xee09ab;_0x481636||_0x504565[_0xcac002(0x16b)]();},[_0x481636,_0x504565]);function _0x5e5595(){const _0xc3f76d=_0xee09ab;return M[_0xc3f76d(0x190)](_0xc3f76d(0x1e2),{'className':_0xc3f76d(0x1e5),'onClick':_0x3095e9,'children':[M[_0xc3f76d(0x204)]('div',{'className':T['clsx'](_0xc3f76d(0x30b),{'univer-text-green-500':_0x481636,'univer-text-red-500':!_0x481636}),'children':_0x5d7dc1}),M[_0xc3f76d(0x204)](_0xc3f76d(0x1e2),{'className':_0xc3f76d(0x265),'children':_0x2cf6ac})]});}return _0x481636?_0x5e5595():M[_0xee09ab(0x204)](T[_0xee09ab(0x2b7)],{'title':_0x1bec3a['t'](_0xee09ab(0x11d)),'children':_0x5e5595()});}var nt=Object[_0x2466c1(0x229)],rt=(_0x3964a6,_0x34999c,_0x176e87,_0x573980)=>{const _0x31b0e1=_0x2466c1;for(var _0x2315f1=_0x573980>0x1?void 0x0:_0x573980?nt(_0x34999c,_0x176e87):_0x34999c,_0x1c4c32=_0x3964a6[_0x31b0e1(0x29e)]-0x1,_0x1cefc9;_0x1c4c32>=0x0;_0x1c4c32--)(_0x1cefc9=_0x3964a6[_0x1c4c32])&&(_0x2315f1=_0x1cefc9(_0x2315f1)||_0x2315f1);return _0x2315f1;},K=(_0xb39035,_0x969a25)=>(_0x4cc6a6,_0x3aa449)=>_0x969a25(_0x4cc6a6,_0x3aa449,_0xb39035);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x37a036,_0x4a1a5e,_0x31b102,_0x3bd868){const _0x58c77c=_0x2466c1;super(),_(this,_0x58c77c(0x29c),new I[(_0x58c77c(0x398))](u['CollaborationStatus'][_0x58c77c(0x164)])),(this[_0x58c77c(0x23e)]=_0x37a036,this[_0x58c77c(0x32b)]=_0x4a1a5e,this[_0x58c77c(0x32f)]=_0x31b102,this[_0x58c77c(0x3ab)]=_0x3bd868,this['_initStatusComponent'](),this[_0x58c77c(0x18b)]());}[_0x2466c1(0x18b)](){const _0x28b38c=_0x2466c1;this['disposeWithMe'](this[_0x28b38c(0x23e)][_0x28b38c(0x28c)][_0x28b38c(0x2b9)](I[_0x28b38c(0x271)](()=>{const _0x409b32=_0x28b38c,_0xc04f05=this[_0x409b32(0x23e)][_0x409b32(0x163)]();return _0xc04f05?this[_0x409b32(0x32f)]['getCollabEntity$'](_0xc04f05[_0x409b32(0xfb)]()):I['of'](null);}),I[_0x28b38c(0x271)](_0x114f3f=>_0x114f3f?_0x114f3f['status$']:I['of'](u['CollaborationStatus'][_0x28b38c(0x164)])))[_0x28b38c(0x34b)](_0x27a55d=>{const _0x54e49b=_0x28b38c;this[_0x54e49b(0x29c)][_0x54e49b(0x37f)](_0x27a55d);}));}[_0x2466c1(0x292)](){const _0xc05381=_0x2466c1;this[_0xc05381(0x347)](this[_0xc05381(0x3ab)][_0xc05381(0x2b1)](O[_0xc05381(0x113)]['HEADER_MENU'],()=>O[_0xc05381(0x255)](ot({'status$':this[_0xc05381(0x29c)][_0xc05381(0x161)]()}),this[_0xc05381(0x32b)])));}},exports[_0x2466c1(0xf9)]=rt([K(0x0,a[_0x2466c1(0x39f)]),K(0x1,a['Inject'](a[_0x2466c1(0x2d5)])),K(0x2,a[_0x2466c1(0x3d3)](u[_0x2466c1(0x3a8)])),K(0x3,O[_0x2466c1(0x201)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x5caa56){const {status$:_0x3faaa0}=_0x5caa56;return function(){const _0xeb26d6=_0xdc31;return M[_0xeb26d6(0x204)](it,{'status$':_0x3faaa0});};}const Oe=a[_0x2466c1(0x123)](_0x2466c1(0x24e));var at=Object[_0x2466c1(0x229)],ct=(_0x161158,_0x14528b,_0x1c3354,_0x2708e9)=>{const _0x3c26c6=_0x2466c1;for(var _0x57b411=_0x2708e9>0x1?void 0x0:_0x2708e9?at(_0x14528b,_0x1c3354):_0x14528b,_0x1ac130=_0x161158[_0x3c26c6(0x29e)]-0x1,_0x80160d;_0x1ac130>=0x0;_0x1ac130--)(_0x80160d=_0x161158[_0x1ac130])&&(_0x57b411=_0x80160d(_0x57b411)||_0x57b411);return _0x57b411;},Y=(_0x3d8a84,_0x3b71a4)=>(_0x479435,_0x450b7c)=>_0x3b71a4(_0x479435,_0x450b7c,_0x3d8a84);exports['CollaborationDataLoaderController']=class extends a[_0x2466c1(0x18f)]{constructor(_0x15219c,_0x269f7a,_0x2a3832,_0x41688b,_0x178af4){const _0x520819=_0x2466c1;super(),this[_0x520819(0x136)]=_0x15219c,this[_0x520819(0x196)]=_0x269f7a,this['_commandService']=_0x2a3832,this[_0x520819(0x1c7)]=_0x41688b,_0x178af4?_0x178af4==null||_0x178af4[_0x520819(0x22b)]()[_0x520819(0x2d9)](()=>this[_0x520819(0x1dd)]()):(this['_logService']['debug'](_0x520819(0x35b),_0x520819(0xff)),this[_0x520819(0x1dd)]());}async[_0x2466c1(0x1dd)](){const _0x2627f9=_0x2466c1,_0x19982b=this['_urlService'][_0x2627f9(0x322)]('unit'),_0x56450a=this[_0x2627f9(0x136)][_0x2627f9(0x322)]('type'),_0x10baf6=this['_urlService'][_0x2627f9(0x322)](_0x2627f9(0x1a3));if(!_0x19982b||!_0x56450a){this[_0x2627f9(0x196)][_0x2627f9(0x33f)](_0x2627f9(0x35b),_0x2627f9(0x2e7));return;}const _0x996b0e=await this['_dataLoaderService'][_0x2627f9(0x3bb)](_0x19982b,Number(_0x56450a),_0x10baf6);_0x996b0e&&_0x996b0e instanceof a[_0x2627f9(0x39c)]&&this['_setupSubUnitSync'](_0x996b0e);}async[_0x2466c1(0x10c)](_0x36458f){const _0x5dac2e=_0x2466c1;await this['_updateSubUnitFromURLParams'](_0x36458f),_0x36458f[_0x5dac2e(0x175)][_0x5dac2e(0x2b9)](I[_0x5dac2e(0x194)](this[_0x5dac2e(0x222)]))[_0x5dac2e(0x34b)](_0x43f80e=>{const _0x57de67=_0x5dac2e;_0x43f80e&&this[_0x57de67(0x2d8)](_0x43f80e);}),this[_0x5dac2e(0x136)][_0x5dac2e(0x3b9)][_0x5dac2e(0x2b9)](I['takeUntil'](this[_0x5dac2e(0x222)]))['subscribe'](()=>this[_0x5dac2e(0x24d)](_0x36458f));}[_0x2466c1(0x2d8)](_0x55e1b6,_0x4d017d=!0x1){const _0x17cded=_0x2466c1,_0x22730e=this['_urlService'][_0x17cded(0x322)](_0x17cded(0x1a3));_0x55e1b6['getSheetId']()!==_0x22730e&&this['_urlService'][_0x17cded(0x370)](_0x17cded(0x1a3),_0x55e1b6[_0x17cded(0x390)](),_0x4d017d);}async[_0x2466c1(0x24d)](_0x46953b){const _0x48cbf4=_0x2466c1;var _0x19bfe0;const _0x4e54c1=this['_urlService'][_0x48cbf4(0x322)](_0x48cbf4(0x1a3));if(!_0x4e54c1||!_0x46953b['getSheetBySheetId'](_0x4e54c1)){const _0xb993ff=_0x46953b['getUnhiddenWorksheets']()[0x0],_0x3c1c9f=_0x46953b[_0x48cbf4(0x281)](_0xb993ff);if(!_0x3c1c9f)return;this[_0x48cbf4(0x2d8)](_0x3c1c9f,!0x0),await this[_0x48cbf4(0x391)][_0x48cbf4(0x3b5)](v[_0x48cbf4(0x25d)]['id'],{'unitId':_0x46953b['getUnitId'](),'subUnitId':_0xb993ff});return;}((_0x19bfe0=_0x46953b[_0x48cbf4(0x11b)]())==null?void 0x0:_0x19bfe0[_0x48cbf4(0x390)]())!==_0x4e54c1&&await this[_0x48cbf4(0x391)][_0x48cbf4(0x3b5)](v[_0x48cbf4(0x25d)]['id'],{'unitId':_0x46953b[_0x48cbf4(0xfb)](),'subUnitId':_0x4e54c1});}},exports[_0x2466c1(0x126)]=ct([Y(0x0,Oe),Y(0x1,a[_0x2466c1(0xfe)]),Y(0x2,a[_0x2466c1(0x1f8)]),Y(0x3,a['Inject'](u[_0x2466c1(0x382)])),Y(0x4,a[_0x2466c1(0x1a9)](qe[_0x2466c1(0x235)]))],exports[_0x2466c1(0x126)]);var lt=Object[_0x2466c1(0x229)],_t=(_0x4cb8f7,_0x5285a1,_0x3dddcc,_0x11ac16)=>{const _0x40c8af=_0x2466c1;for(var _0x4a7622=_0x11ac16>0x1?void 0x0:_0x11ac16?lt(_0x5285a1,_0x3dddcc):_0x5285a1,_0x45a8ee=_0x4cb8f7[_0x40c8af(0x29e)]-0x1,_0x141c46;_0x45a8ee>=0x0;_0x45a8ee--)(_0x141c46=_0x4cb8f7[_0x45a8ee])&&(_0x4a7622=_0x141c46(_0x4a7622)||_0x4a7622);return _0x4a7622;},De=(_0x34285d,_0x39aac2)=>(_0x55f2a2,_0x401b74)=>_0x39aac2(_0x55f2a2,_0x401b74,_0x34285d);let me=class extends a['RxDisposable']{constructor(_0x18bab6,_0x30057d){const _0xf855b0=_0x2466c1;super(),this[_0xf855b0(0x22c)]=_0x18bab6,this['_imageIoService']=_0x30057d,this[_0xf855b0(0x1dd)]();}['_init'](){const _0x1235f9=_0x2466c1,_0x18ddd3=this;this[_0x1235f9(0x347)](this['_docClipboardService'][_0x1235f9(0x1fa)]({'onBeforePasteImage':async _0x5c519e=>{const _0xdb60a7=_0x1235f9,_0x354ce3=await _0x18ddd3[_0xdb60a7(0x3c6)][_0xdb60a7(0x1ba)](_0x5c519e);return _0x354ce3?{'source':_0x354ce3['source'],'imageSourceType':_0x354ce3[_0xdb60a7(0x3a1)]}:null;}}));}};me=_t([De(0x0,p[_0x2466c1(0x237)]),De(0x1,ze[_0x2466c1(0x2fd)])],me);const Ne=[_0x2466c1(0x11a),_0x2466c1(0x31b),'green.600','red.300',_0x2466c1(0x105),_0x2466c1(0x293)];class Re extends a[_0x2466c1(0x28d)]{constructor(){const _0x2cdfa0=_0x2466c1;super(...arguments),_(this,_0x2cdfa0(0x264),new Map()),_(this,_0x2cdfa0(0x1cc),0x0);}[_0x2466c1(0x187)](_0x176bf7){const _0x1f83f0=_0x2466c1;if(this['_assignedColors'][_0x1f83f0(0x155)](_0x176bf7))return this[_0x1f83f0(0x264)][_0x1f83f0(0x1e6)](_0x176bf7);const _0x4b47bf=Ne[this['_colorIndex']];return this[_0x1f83f0(0x1cc)]=(this[_0x1f83f0(0x1cc)]+0x1)%Ne[_0x1f83f0(0x29e)],this['_assignedColors'][_0x1f83f0(0x2b6)](_0x176bf7,_0x4b47bf),_0x4b47bf;}}function Fe(_0x400135){const _0x3ae491=_0x2466c1;let _0x446f0d='';for(const _0x585750 of _0x400135){const {startOffset:_0x2938fa,endOffset:_0x16f5f2,isActive:_0x59bf8b,rangeType:_0x33c811,segmentId:_0x54c091,segmentPage:_0x1234dd}=_0x585750;_0x446f0d[_0x3ae491(0x29e)]&&(_0x446f0d+=','),_0x446f0d+=_0x2938fa+':'+_0x16f5f2+':'+(_0x59bf8b?'1':'0')+':'+_0x33c811+':'+_0x54c091+':'+_0x1234dd;}return _0x446f0d;}function ht(_0x14410b){const _0x346b1b=_0x2466c1,_0x3ea675=_0x14410b[_0x346b1b(0x112)](','),_0x2f54e7=[];for(const _0x2a1254 of _0x3ea675){const [_0x40c760,_0x2edc6a,_0x4a3a12,_0x44ede3,_0x546f27,_0x5c3fb7]=_0x2a1254['split'](':');_0x2f54e7[_0x346b1b(0x193)]({'startOffset':Number(_0x40c760),'endOffset':Number(_0x2edc6a),'collapsed':_0x40c760===_0x2edc6a,'isActive':_0x4a3a12==='1','rangeType':_0x44ede3===a[_0x346b1b(0x340)][_0x346b1b(0x131)]?a[_0x346b1b(0x340)][_0x346b1b(0x131)]:a[_0x346b1b(0x340)][_0x346b1b(0x276)],'segmentId':typeof _0x546f27==_0x346b1b(0x165)?String(_0x546f27):'','segmentPage':Number(_0x5c3fb7!=null?_0x5c3fb7:-0x1)});}return _0x2f54e7[_0x346b1b(0x3ad)](_0x499435=>_0x499435[_0x346b1b(0x2ca)])||(_0x2f54e7[0x0][_0x346b1b(0x2ca)]=!0x0),_0x2f54e7;}class be extends a[_0x2466c1(0x18f)]{constructor(){const _0x589fcb=_0x2466c1;super(...arguments),_(this,_0x589fcb(0x225),new I[(_0x589fcb(0x398))](null)),_(this,_0x589fcb(0x203),this[_0x589fcb(0x225)]['asObservable']());}[_0x2466c1(0x197)](_0x3a099a){const _0x17373b=_0x2466c1,{unitID:_0x42e2fc,memberID:_0x26ba94,textRanges:_0x221527}=_0x3a099a,_0x2c200b=Fe(_0x221527);if(_0x2c200b==='')return;const _0xed8478={'unitID':_0x42e2fc,'memberID':_0x26ba94,'selection':_0x2c200b};this['_collabCursorState$'][_0x17373b(0x37f)](_0xed8478);}}var ut=Object[_0x2466c1(0x229)],It=(_0x332868,_0xe23b6d,_0x2e3ae6,_0x12bdc9)=>{const _0x3221e1=_0x2466c1;for(var _0x94ad26=_0x12bdc9>0x1?void 0x0:_0x12bdc9?ut(_0xe23b6d,_0x2e3ae6):_0xe23b6d,_0x565362=_0x332868[_0x3221e1(0x29e)]-0x1,_0xee78da;_0x565362>=0x0;_0x565362--)(_0xee78da=_0x332868[_0x565362])&&(_0x94ad26=_0xee78da(_0x94ad26)||_0x94ad26);return _0x94ad26;},U=(_0xb28581,_0x32b353)=>(_0x182dec,_0x5710a4)=>_0x32b353(_0x182dec,_0x5710a4,_0xb28581);const dt=0x12c,St=0x64;let ve=class extends a[_0x2466c1(0x18f)]{constructor(_0x1e607e,_0x46c746,_0x576cb4,_0x1a4ec9,_0x2fcdae,_0x2b6821,_0x106e34,_0x4f5c0a,_0x4c09fd){const _0x111c08=_0x2466c1;super(),_(this,_0x111c08(0x3af),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x111c08(0x3ce),this['_cursorInfo$'][_0x111c08(0x161)]()),_(this,_0x111c08(0x1e1),new I[(_0x111c08(0x398))]([])),_(this,_0x111c08(0x397),this[_0x111c08(0x1e1)][_0x111c08(0x2b9)](I[_0x111c08(0x174)](dt))),_(this,_0x111c08(0x156),a[_0x111c08(0x1bb)](_0x10ce6c=>{const _0x1fd2d8=_0x111c08,_0x24cddf={'eventID':g['CollaborationEvent'][_0x1fd2d8(0x2af)],'data':{'unitID':this['unitID'],'memberID':this[_0x1fd2d8(0x215)][_0x1fd2d8(0x38a)](),'selection':Fe(_0x10ce6c)}};this['_session']['send'](_0x24cddf,this[_0x1fd2d8(0x157)]);},St)),(this['unitID']=_0x1e607e,this[_0x111c08(0x215)]=_0x46c746,this[_0x111c08(0x32b)]=_0x576cb4,this[_0x111c08(0x125)]=_0x1a4ec9,this[_0x111c08(0x362)]=_0x2fcdae,this[_0x111c08(0x16a)]=_0x2b6821,this[_0x111c08(0x358)]=_0x106e34,this[_0x111c08(0x23e)]=_0x4f5c0a,this[_0x111c08(0x391)]=_0x4c09fd);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x2466c1(0x2b4)](){const _0xbea1fa=_0x2466c1;return this['_roomMembers$'][_0xbea1fa(0x1a6)]();}[_0x2466c1(0x19a)](){const _0x4f60e0=_0x2466c1;super[_0x4f60e0(0x19a)](),this[_0x4f60e0(0x2c8)]['next'](new Map()),this[_0x4f60e0(0x2c8)]['complete'](),this[_0x4f60e0(0x1e1)][_0x4f60e0(0x37f)]([]),this[_0x4f60e0(0x1e1)][_0x4f60e0(0x374)]();}['init'](){const _0x14b340=_0x2466c1;this[_0x14b340(0x1dd)]||(this[_0x14b340(0x1dd)]=!0x0,this[_0x14b340(0x215)][_0x14b340(0x231)][_0x14b340(0x2b9)](I[_0x14b340(0x194)](this[_0x14b340(0x222)]))[_0x14b340(0x34b)](_0x566295=>{const _0x3ca8d1=_0x14b340;_0x566295===u[_0x3ca8d1(0x37b)][_0x3ca8d1(0x256)]?this[_0x3ca8d1(0x24f)]():this[_0x3ca8d1(0x286)]();}),this[_0x14b340(0x215)][_0x14b340(0x388)][_0x14b340(0x2b9)](I['takeUntil'](this[_0x14b340(0x222)]))[_0x14b340(0x34b)](_0x569dd0=>{const _0x1f8436=_0x14b340,_0x7ed676=_0x569dd0[_0x1f8436(0x173)];_0x7ed676===g['CollaborationEvent'][_0x1f8436(0x2af)]&&this['_onCursorUpdate'](_0x569dd0),_0x7ed676===g[_0x1f8436(0x100)][_0x1f8436(0x266)]&&this[_0x1f8436(0x120)](_0x569dd0);}),this[_0x14b340(0x347)](this['_commandService']['onCommandExecuted'](_0x56531b=>{const _0x1e06c6=_0x14b340,_0x35f925=_0x56531b[_0x1e06c6(0x1ed)];_0x35f925!=null&&this['_online']&&_0x56531b['id']===V['SetTextSelectionsOperation']['id']&&_0x35f925[_0x1e06c6(0x254)]===this[_0x1e06c6(0x157)]&&_0x35f925[_0x1e06c6(0x1b2)]===!0x1&&_0x35f925['ranges'][_0x1e06c6(0x29e)]>0x0&&this[_0x1e06c6(0x156)](_0x35f925[_0x1e06c6(0x38b)]);})),this[_0x14b340(0x16a)]['collabCursorState$'][_0x14b340(0x2b9)](I[_0x14b340(0x194)](this[_0x14b340(0x222)]))[_0x14b340(0x34b)](_0x26f423=>{const _0x4f12ef=_0x14b340;if((_0x26f423==null?void 0x0:_0x26f423[_0x4f12ef(0x157)])!==this['unitID'])return;const _0x313adc={'eventID':g[_0x4f12ef(0x100)][_0x4f12ef(0x2af)],'data':_0x26f423};this['_onCursorUpdate'](_0x313adc);}),this[_0x14b340(0x347)](this[_0x14b340(0x391)]['onCommandExecuted'](_0x29458e=>{const _0x239188=_0x14b340;if(_0x29458e[_0x239188(0x1ed)]==null)return;const _0x391a21=_0x29458e[_0x239188(0x1ed)];if(_0x29458e['id']!==V[_0x239188(0x1d6)]['id']||_0x391a21['unitId']!==this[_0x239188(0x157)])return;const _0x9e6ce4={'id':_0x239188(0x1e4),'params':_0x391a21},_0x574bc5=this['cursorInfo'];for(const [_0x15d897,_0x196ec3]of _0x574bc5){const _0x3b14c8={'id':_0x239188(0x1e4),'params':{'unitId':this[_0x239188(0x157)],'actions':null,'textRanges':_0x196ec3[_0x239188(0x38b)]}},_0x3a569c=this['_transformService']['transformMutation'](_0x9e6ce4,_0x3b14c8,!0x1);if(g['isTransformMutationFailure'](_0x3a569c))throw _0x3a569c[_0x239188(0x15a)];_0x574bc5[_0x239188(0x2b6)](_0x15d897,{..._0x196ec3,'ranges':_0x3a569c['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x4f6dbf=_0x239188;this[_0x4f6dbf(0x2c8)][_0x4f6dbf(0x37f)](_0x574bc5);});})));}['_onCursorUpdate'](_0x4e3014){const _0x51f396=_0x2466c1;var _0x3ccfe7,_0x40f7da;const {memberID:_0x5bc5f2,selection:_0x29caee}=_0x4e3014['data'],_0x1f403b=ht(_0x29caee),_0x573570=(_0x40f7da=(_0x3ccfe7=this['_memberService'][_0x51f396(0x2c1)](this[_0x51f396(0x157)],_0x5bc5f2))==null?void 0x0:_0x3ccfe7['name'])!=null?_0x40f7da:_0x51f396(0x36a),_0x1c38cc={'color':this[_0x51f396(0x125)][_0x51f396(0x187)](_0x5bc5f2),'name':_0x573570,'ranges':_0x1f403b},_0x1a1d7c=this[_0x51f396(0x366)];_0x1a1d7c[_0x51f396(0x2b6)](_0x5bc5f2,_0x1c38cc),this['_cursorInfo$'][_0x51f396(0x37f)](_0x1a1d7c);}[_0x2466c1(0x120)](_0x3b366e){const _0x5c2405=_0x2466c1,{memberID:_0x428d57}=_0x3b366e['data'],_0x1ec598=this[_0x5c2405(0x366)];_0x1ec598[_0x5c2405(0x327)](_0x428d57),this[_0x5c2405(0x2c8)][_0x5c2405(0x37f)](_0x1ec598);}[_0x2466c1(0x24f)](){const _0x34001a=_0x2466c1;var _0x1579b4;if(this[_0x34001a(0x3af)]=!0x0,((_0x1579b4=this[_0x34001a(0x23e)][_0x34001a(0x163)]())==null?void 0x0:_0x1579b4[_0x34001a(0xfb)]())!==this[_0x34001a(0x157)])return;const _0x279ab3=this[_0x34001a(0x32b)][_0x34001a(0x1e6)](V[_0x34001a(0x3b2)])[_0x34001a(0x111)]();Array[_0x34001a(0x33a)](_0x279ab3)&&_0x279ab3[_0x34001a(0x29e)]>0x0&&this[_0x34001a(0x156)](_0x279ab3);}[_0x2466c1(0x286)](){const _0x4fa8e7=_0x2466c1;this[_0x4fa8e7(0x3af)]=!0x1;}};ve=It([U(0x2,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),U(0x3,a[_0x2466c1(0x3d3)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x2466c1(0x39f)]),U(0x8,a['ICommandService'])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x213750,_0xc507d4,_0x697ad5,_0x676ae)=>{const _0x205884=_0x2466c1;for(var _0x2e1dc0=_0x676ae>0x1?void 0x0:_0x676ae?ft(_0xc507d4,_0x697ad5):_0xc507d4,_0x5bd5bb=_0x213750[_0x205884(0x29e)]-0x1,_0x2b6360;_0x5bd5bb>=0x0;_0x5bd5bb--)(_0x2b6360=_0x213750[_0x5bd5bb])&&(_0x2e1dc0=_0x2b6360(_0x2e1dc0)||_0x2e1dc0);return _0x2e1dc0;},w=(_0x3e4cc4,_0x35b5a0)=>(_0x409a1f,_0x5ce71)=>_0x35b5a0(_0x409a1f,_0x5ce71,_0x3e4cc4);const vt=0x12c,gt=0x64,Et=()=>{let _0x2191f4=[],_0x217471=!0x1;return _0x430feb=>{const _0x31b80b=_0xdc31;_0x2191f4[_0x31b80b(0x193)](_0x430feb),_0x217471||(_0x217471=!0x0,setTimeout(()=>{const _0x4d33b0=_0x31b80b;_0x2191f4[_0x4d33b0(0x21f)](_0x1f9c70=>_0x1f9c70()),_0x2191f4=[],_0x217471=!0x1;}));};};let ge=class extends a[_0x2466c1(0x18f)]{constructor(_0xdcd635,_0x11f598,_0x133b1d,_0x590979,_0x50bae7,_0x1e739f,_0x30bd87,_0x1c99b9){const _0x32d380=_0x2466c1;super(),_(this,_0x32d380(0x3af),!0x1),_(this,_0x32d380(0x1dd),!0x1),_(this,_0x32d380(0x2c8),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x32d380(0x2c8)][_0x32d380(0x161)]()),_(this,_0x32d380(0x1e1),new I[(_0x32d380(0x398))]([])),_(this,'roomMembers$',this[_0x32d380(0x1e1)]['pipe'](I[_0x32d380(0x174)](vt))),_(this,'_updateLocalCursor',a[_0x32d380(0x1bb)]((_0x2d1dbd,_0x8571a6)=>{const _0x712b7c=_0x32d380,_0x2348f2={'eventID':g[_0x712b7c(0x100)][_0x712b7c(0x2af)],'data':{'unitID':this[_0x712b7c(0x157)],'memberID':this['_session'][_0x712b7c(0x38a)](),'selection':B[_0x712b7c(0x27e)](_0x2d1dbd,_0x8571a6[_0x712b7c(0x240)])}};this[_0x712b7c(0x215)][_0x712b7c(0x320)](_0x2348f2,this['unitID']);},gt)),(this[_0x32d380(0x157)]=_0xdcd635,this['_session']=_0x11f598,this[_0x32d380(0x32b)]=_0x133b1d,this[_0x32d380(0x125)]=_0x590979,this[_0x32d380(0x362)]=_0x50bae7,this['_univerInstanceService']=_0x1e739f,this[_0x32d380(0x391)]=_0x30bd87,this[_0x32d380(0x23f)]=_0x1c99b9);}get[_0x2466c1(0x366)](){const _0x396057=_0x2466c1;return this[_0x396057(0x2c8)][_0x396057(0x1a6)]();}get[_0x2466c1(0x2b4)](){const _0x249d7f=_0x2466c1;return this[_0x249d7f(0x1e1)][_0x249d7f(0x1a6)]();}['dispose'](){const _0x17d7e2=_0x2466c1;super[_0x17d7e2(0x19a)](),this['_cursorInfo$']['next'](new Map()),this[_0x17d7e2(0x2c8)][_0x17d7e2(0x374)](),this[_0x17d7e2(0x1e1)][_0x17d7e2(0x37f)]([]),this[_0x17d7e2(0x1e1)][_0x17d7e2(0x374)]();}[_0x2466c1(0x269)](){const _0x152771=_0x2466c1;this[_0x152771(0x1dd)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x152771(0x2b9)](I[_0x152771(0x194)](this['dispose$']))[_0x152771(0x34b)](_0x1d5e91=>{const _0x266c49=_0x152771;_0x1d5e91===u[_0x266c49(0x37b)][_0x266c49(0x256)]?this[_0x266c49(0x24f)]():this[_0x266c49(0x286)]();}),this[_0x152771(0x215)][_0x152771(0x388)][_0x152771(0x2b9)](I[_0x152771(0x194)](this[_0x152771(0x222)]))['subscribe'](_0x5189e1=>{const _0x1f2ba3=_0x152771,_0x232048=_0x5189e1[_0x1f2ba3(0x173)];_0x232048===g[_0x1f2ba3(0x100)][_0x1f2ba3(0x2af)]&&this[_0x1f2ba3(0x144)](_0x5189e1),_0x232048===g[_0x1f2ba3(0x100)][_0x1f2ba3(0x266)]&&this[_0x1f2ba3(0x120)](_0x5189e1);}),this[_0x152771(0x234)](),this[_0x152771(0x347)](this['_commandService'][_0x152771(0x27d)](_0x6351d4=>{const _0x31754b=_0x152771;if(this[_0x31754b(0x3af)]&&_0x6351d4['id']===v[_0x31754b(0x121)]['id']&&_0x6351d4[_0x31754b(0x1ed)]['unitId']===this[_0x31754b(0x157)]){const _0x1c0647=_0x6351d4[_0x31754b(0x1ed)];this['_updateLocalCursor'](_0x1c0647[_0x31754b(0x3c8)],_0x1c0647['selections'][0x0]);}})));}[_0x2466c1(0x144)](_0x19a2ca){const _0x567999=_0x2466c1;var _0x3d4aea,_0x152d73;const {memberID:_0x373b13,selection:_0x10c1e3}=_0x19a2ca[_0x567999(0x2dc)],{sheetName:_0x140234,range:_0x8a73c5}=B[_0x567999(0x334)](_0x10c1e3),_0x41853e={'name':(_0x152d73=(_0x3d4aea=this[_0x567999(0x362)][_0x567999(0x2c1)](this['unitID'],_0x373b13))==null?void 0x0:_0x3d4aea[_0x567999(0x361)])!=null?_0x152d73:'Unknown\x20user','range':this['_getMergeRange'](_0x140234,_0x8a73c5),'sheetID':_0x140234,'color':this[_0x567999(0x125)][_0x567999(0x187)](_0x373b13),'selection':_0x10c1e3},_0x5074e3=this[_0x567999(0x366)];_0x5074e3['set'](_0x373b13,_0x41853e),this[_0x567999(0x2c8)][_0x567999(0x37f)](_0x5074e3);}[_0x2466c1(0x120)](_0x97dd55){const _0x43a9db=_0x2466c1,{memberID:_0x4709d3}=_0x97dd55[_0x43a9db(0x2dc)],_0x2554a0=this[_0x43a9db(0x366)];_0x2554a0[_0x43a9db(0x327)](_0x4709d3),this[_0x43a9db(0x2c8)][_0x43a9db(0x37f)](_0x2554a0);}['_getMergeRange'](_0x1ea65a,_0x48ff68){const _0x433707=_0x2466c1;var _0xd14a7f,_0x4e206f;const _0x3fe328=(_0x4e206f=(_0xd14a7f=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0xd14a7f[_0x433707(0x281)](_0x1ea65a))==null?void 0x0:_0x4e206f[_0x433707(0x377)]();return(_0x3fe328==null?void 0x0:_0x3fe328[_0x433707(0x27a)](_0x4d798d=>a[_0x433707(0x39b)][_0x433707(0x134)](_0x4d798d,_0x48ff68)))||_0x48ff68;}['_onRefRangeChange'](){const _0x2046f3=_0x2466c1,_0x56d266=new a[(_0x2046f3(0x24b))](),_0x1c3bf5=Et(),_0x5153c7=()=>{const _0x14fee6=_0x2046f3;_0x56d266[_0x14fee6(0x19a)]();const _0x11be8a=(_0xdaa9eb,_0x2b8b6f,_0x4b76a9,_0x5c35a5)=>{const _0x2bb2c2=_0x14fee6;let _0x164490=[];switch(_0xdaa9eb['id']){case v[_0x2bb2c2(0x1de)]['DeleteRangeMoveLeftCommandId']:{_0x164490=v[_0x2bb2c2(0x2b2)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)][_0x2bb2c2(0x39e)]:{_0x164490=v[_0x2bb2c2(0x311)](_0xdaa9eb,_0x5c35a5);break;}case v['EffectRefRangId'][_0x2bb2c2(0x285)]:{_0x164490=v[_0x2bb2c2(0x335)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)]['InsertRangeMoveDownCommandId']:{_0x164490=v[_0x2bb2c2(0x158)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)][_0x2bb2c2(0x188)]:{_0x164490=v[_0x2bb2c2(0x306)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)][_0x2bb2c2(0x3b1)]:{_0x164490=v[_0x2bb2c2(0x119)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)][_0x2bb2c2(0x16f)]:{_0x164490=v[_0x2bb2c2(0x309)](_0xdaa9eb,_0x5c35a5);break;}case v['EffectRefRangId'][_0x2bb2c2(0x2da)]:{_0x164490=v[_0x2bb2c2(0x176)](_0xdaa9eb,_0x5c35a5);break;}case v[_0x2bb2c2(0x1de)][_0x2bb2c2(0x1e7)]:{_0x164490=v[_0x2bb2c2(0x1df)](_0xdaa9eb,_0x5c35a5);break;}}const _0x2143c8=v[_0x2bb2c2(0x2f3)](_0x164490,_0x5c35a5),_0x3e51d4=this[_0x2bb2c2(0x366)][_0x2bb2c2(0x1e6)](_0x2b8b6f);if(_0x3e51d4&&_0x2143c8){const _0x2a40c9={..._0x3e51d4,'range':_0x2143c8};this['cursorInfo'][_0x2bb2c2(0x2b6)](_0x2b8b6f,_0x2a40c9),_0x1c3bf5(()=>{const _0x253dc1=_0x2bb2c2,_0x1142f5=this[_0x253dc1(0x23f)][_0x253dc1(0x26c)](_0x2143c8,_0x4407d9=>(_0x1142f5[_0x253dc1(0x19a)](),_0x11be8a(_0x4407d9,_0x2b8b6f,_0x4b76a9,_0x2143c8)));_0x56d266['add'](_0x1142f5);});}return{'redos':[],'undos':[]};};this[_0x14fee6(0x366)]['forEach']((_0x1aeaa3,_0x26f6be)=>{const _0x2a2725=_0x14fee6,{range:_0x42a2fe,sheetID:_0x31b482}=_0x1aeaa3,_0x33e29a=this[_0x2a2725(0x23f)]['registerRefRange'](_0x42a2fe,_0x377e96=>(_0x33e29a[_0x2a2725(0x19a)](),_0x11be8a(_0x377e96,_0x26f6be,_0x31b482,_0x42a2fe)));_0x56d266[_0x2a2725(0xfa)](_0x33e29a);});};this[_0x2046f3(0x347)](a['toDisposable'](this[_0x2046f3(0x2c8)]['subscribe'](()=>{_0x5153c7();})));}[_0x2466c1(0x24f)](){const _0x4ed987=_0x2466c1;var _0x479a16,_0x36a2a4;if(this[_0x4ed987(0x3af)]=!0x0,((_0x479a16=this['_univerInstanceService'][_0x4ed987(0x163)]())==null?void 0x0:_0x479a16['getUnitId']())!==this['unitID'])return;const _0x121cd7=(_0x36a2a4=this[_0x4ed987(0x32b)]['get'](v[_0x4ed987(0x36f)])[_0x4ed987(0x274)]())==null?void 0x0:_0x36a2a4[0x0],_0x3a5d08=this[_0x4ed987(0x23e)][_0x4ed987(0x1a2)](a[_0x4ed987(0x2ef)][_0x4ed987(0x1be)])[_0x4ed987(0x11b)]();_0x121cd7&&_0x3a5d08&&this['_updateLocalCursor'](_0x3a5d08['getSheetId'](),_0x121cd7);}[_0x2466c1(0x286)](){const _0x23fc18=_0x2466c1;this[_0x23fc18(0x3af)]=!0x1;}};ge=mt([w(0x2,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x2466c1(0x3d3)](u[_0x2466c1(0x177)])),w(0x5,a[_0x2466c1(0x39f)]),w(0x6,a[_0x2466c1(0x1f8)]),w(0x7,a[_0x2466c1(0x3d3)](v[_0x2466c1(0x23c)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x201805,_0x4b1c5f,_0x44aaba,_0x5e7c25)=>{const _0x159373=_0x2466c1;for(var _0xd8483c=_0x5e7c25>0x1?void 0x0:_0x5e7c25?Ct(_0x4b1c5f,_0x44aaba):_0x4b1c5f,_0x3e31a3=_0x201805[_0x159373(0x29e)]-0x1,_0x2986ef;_0x3e31a3>=0x0;_0x3e31a3--)(_0x2986ef=_0x201805[_0x3e31a3])&&(_0xd8483c=_0x2986ef(_0xd8483c)||_0xd8483c);return _0xd8483c;},ce=(_0x87fe48,_0x241fa6)=>(_0x3b755e,_0x149a26)=>_0x241fa6(_0x3b755e,_0x149a26,_0x87fe48);let F=class extends a[_0x2466c1(0x18f)]{constructor(_0x4ec985,_0x5529df,_0x48c967){const _0x59c855=_0x2466c1;super(),_(this,'_entities',new Map()),_(this,_0x59c855(0x30c),new I[(_0x59c855(0x2fc))]()),(this[_0x59c855(0x23e)]=_0x4ec985,this[_0x59c855(0x32b)]=_0x5529df,this[_0x59c855(0x133)]=_0x48c967,this[_0x59c855(0x1dd)]());}[_0x2466c1(0x19a)](){const _0x6a880c=_0x2466c1;super['dispose'](),this[_0x6a880c(0x30c)][_0x6a880c(0x374)](),this[_0x6a880c(0x30f)]['forEach'](_0x51de28=>_0x51de28['dispose']());}[_0x2466c1(0x208)](_0x1609a7){const _0x2d620f=_0x2466c1;return this['_entities'][_0x2d620f(0x155)](_0x1609a7)?this['_entities']['get'](_0x1609a7)[_0x2d620f(0x3ce)]:this['_entityInit$']['pipe'](I[_0x2d620f(0x393)](_0x389083=>_0x389083[_0x2d620f(0x157)]===_0x1609a7),I[_0x2d620f(0x271)](_0x419057=>_0x419057[_0x2d620f(0x3ce)]));}['_init'](){const _0x2c5ae8=_0x2466c1;this['_univerInstanceService'][_0x2c5ae8(0x16d)](a[_0x2c5ae8(0x2ef)][_0x2c5ae8(0x1be)])[_0x2c5ae8(0x2b9)](I[_0x2c5ae8(0x194)](this['dispose$']))[_0x2c5ae8(0x34b)](async _0x5979ea=>{const _0x44733d=_0x2c5ae8,_0x39afd9=_0x5979ea['getUnitId'](),_0x17ea6f=await this['_startSheetCollabCursor'](_0x39afd9);this['_entityInit$'][_0x44733d(0x37f)](_0x17ea6f),this[_0x44733d(0x30f)][_0x44733d(0x2b6)](_0x39afd9,_0x17ea6f);}),this[_0x2c5ae8(0x23e)][_0x2c5ae8(0x16d)](a['UniverInstanceType'][_0x2c5ae8(0x2d6)])[_0x2c5ae8(0x2b9)](I['takeUntil'](this[_0x2c5ae8(0x222)]))[_0x2c5ae8(0x2b9)](I[_0x2c5ae8(0x393)](_0x17c9bf=>!_0x17c9bf[_0x2c5ae8(0xfb)]()['startsWith']('__')))[_0x2c5ae8(0x34b)](async _0x578f16=>{const _0x51030e=_0x2c5ae8,_0x11b08=_0x578f16[_0x51030e(0xfb)](),_0x37c6f2=await this[_0x51030e(0xf6)](_0x11b08);this[_0x51030e(0x30c)][_0x51030e(0x37f)](_0x37c6f2),this[_0x51030e(0x30f)][_0x51030e(0x2b6)](_0x11b08,_0x37c6f2);}),I[_0x2c5ae8(0x1fb)](this['_univerInstanceService'][_0x2c5ae8(0x2b0)](a[_0x2c5ae8(0x2ef)]['UNIVER_DOC']),this[_0x2c5ae8(0x23e)][_0x2c5ae8(0x2b0)](a[_0x2c5ae8(0x2ef)][_0x2c5ae8(0x1be)]))['pipe'](I['takeUntil'](this[_0x2c5ae8(0x222)]))[_0x2c5ae8(0x34b)](_0x197d68=>{const _0xb78cbf=_0x2c5ae8,_0x5776f6=_0x197d68['getUnitId'](),_0x3b9012=this[_0xb78cbf(0x30f)]['get'](_0x5776f6);_0x3b9012&&(_0x3b9012['dispose'](),this[_0xb78cbf(0x30f)][_0xb78cbf(0x327)](_0x5776f6));});}async['_startSheetCollabCursor'](_0x26bb42){const _0x1c1bb9=_0x2466c1,_0x273a95=await this['_collabSessionService']['requireSession'](_0x26bb42),_0x58dcf4=this[_0x1c1bb9(0x32b)][_0x1c1bb9(0x2f1)](ge,_0x26bb42,_0x273a95);return _0x58dcf4[_0x1c1bb9(0x269)](),_0x58dcf4;}async['_startDocCollabCursor'](_0x1a82b6){const _0x58c88c=_0x2466c1,_0x1534cc=await this['_collabSessionService']['requireSession'](_0x1a82b6),_0x2b2e4b=this['_injector'][_0x58c88c(0x2f1)](ve,_0x1a82b6,_0x1534cc);return _0x2b2e4b['init'](),_0x2b2e4b;}};F=pt([ce(0x0,a[_0x2466c1(0x39f)]),ce(0x1,a[_0x2466c1(0x3d3)](a['Injector'])),ce(0x2,a[_0x2466c1(0x3d3)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x588224,_0x1b49ff){const _0x4fc9e6=_0x2466c1;let {radius:_0x1ca0f0,width:_0x2eb698,height:_0x4a1d41}=_0x1b49ff;_0x1ca0f0=_0x1ca0f0!=null?_0x1ca0f0:0x0,_0x2eb698=_0x2eb698!=null?_0x2eb698:0x1e,_0x4a1d41=_0x4a1d41!=null?_0x4a1d41:0x1e;let _0xd5f45b=0x0,_0x2af08f=0x0,_0x281276=0x0;_0xd5f45b=_0x2af08f=_0x281276=Math['min'](_0x1ca0f0,_0x2eb698/0x2,_0x4a1d41/0x2),_0x588224[_0x4fc9e6(0x2ad)](),_0x588224[_0x4fc9e6(0x1f0)](_0xd5f45b,0x0),_0x588224['lineTo'](_0x2eb698-_0x2af08f,0x0),_0x588224['arc'](_0x2eb698-_0x2af08f,_0x2af08f,_0x2af08f,Math['PI']*0x3/0x2,0x0,!0x1),_0x588224['lineTo'](_0x2eb698,_0x4a1d41-_0x281276),_0x588224[_0x4fc9e6(0x199)](_0x2eb698-_0x281276,_0x4a1d41-_0x281276,_0x281276,0x0,Math['PI']/0x2,!0x1),_0x588224[_0x4fc9e6(0x13f)](0x0,_0x4a1d41),_0x588224[_0x4fc9e6(0x13f)](0x0,_0xd5f45b),_0x588224['arc'](_0xd5f45b,_0xd5f45b,_0xd5f45b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x588224[_0x4fc9e6(0x38c)](),_0x1b49ff[_0x4fc9e6(0x2e9)]&&(_0x588224[_0x4fc9e6(0x116)](),_0x588224[_0x4fc9e6(0x2cf)]=_0x1b49ff[_0x4fc9e6(0x2e9)],_0x1b49ff[_0x4fc9e6(0x17e)]==='evenodd'?_0x588224[_0x4fc9e6(0x2e9)](_0x4fc9e6(0x1eb)):_0x588224['fill'](),_0x588224['restore']());}class re extends C[_0x2466c1(0x330)]{constructor(_0x36a993,_0x1ce90b){const _0x2f7bbc=_0x2466c1;super(_0x36a993,_0x1ce90b),_(this,_0x2f7bbc(0x359)),_(this,_0x2f7bbc(0x3b8)),(this[_0x2f7bbc(0x359)]=_0x1ce90b==null?void 0x0:_0x1ce90b[_0x2f7bbc(0x359)],this[_0x2f7bbc(0x3b8)]=_0x1ce90b==null?void 0x0:_0x1ce90b[_0x2f7bbc(0x3b8)]);}static[_0x2466c1(0x160)](_0x17f466,_0x8aa63c){const _0x296fbd=_0x2466c1,{text:_0x561db9,color:_0x5203e7}=_0x8aa63c;_0x17f466[_0x296fbd(0x116)](),_0x17f466[_0x296fbd(0x1af)]=_0x296fbd(0x248);const _0xf138d7=_0x17f466[_0x296fbd(0x1f7)](_0x561db9)['width'],_0x489586=Math[_0x296fbd(0x12d)](_0xf138d7+0x2*le,Ue);Ot(_0x17f466,{'height':X,'radius':0x4,'width':_0x489586,'fill':_0x5203e7}),_0x17f466[_0x296fbd(0x2cf)]=_0x296fbd(0x159);const _0x384f03=le,_0x1a376b=X-Tt,_0x4bffd3=Ue-0x2*le;if(_0xf138d7>_0x4bffd3){let _0x5edb2d='',_0x315070=0x0;for(const _0x245752 of _0x561db9){const _0x21168f=_0x17f466[_0x296fbd(0x1f7)](_0x245752)[_0x296fbd(0x2cb)];if(_0x315070+_0x21168f<=_0x4bffd3-_0x17f466[_0x296fbd(0x1f7)](_0x296fbd(0x2df))[_0x296fbd(0x2cb)])_0x5edb2d+=_0x245752,_0x315070+=_0x21168f;else{_0x5edb2d+=_0x296fbd(0x2df);break;}}_0x17f466[_0x296fbd(0x2c6)](_0x5edb2d,_0x384f03,_0x1a376b);}else _0x17f466[_0x296fbd(0x2c6)](_0x561db9,_0x384f03,_0x1a376b);_0x17f466[_0x296fbd(0x3a6)]();}[_0x2466c1(0x371)](_0x29cdb5){const _0x1c9c05=_0x2466c1;re[_0x1c9c05(0x160)](_0x29cdb5,this);}}const _e=_0x2466c1(0xfc),Rt=_0x2466c1(0x316),bt=_0x2466c1(0x2d7),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2466c1(0x1a0);class Le{constructor(_0x1ba48e,_0x258410,_0x561350,_0x3f50ff){const _0x5f2558=_0x2466c1;_(this,_0x5f2558(0x216),[]),_(this,_0x5f2558(0x1b9),null),_(this,_0x5f2558(0x2d0),null),_(this,'_anchorDot',null),_(this,_0x5f2558(0x300),null),_(this,_0x5f2558(0x1f1),null),(this[_0x5f2558(0x343)]=_0x1ba48e,this[_0x5f2558(0x1ad)]=_0x258410,this['_docSkeleton']=_0x561350,this[_0x5f2558(0x104)]=_0x3f50ff,this['_render']());}set[_0x2466c1(0x2f4)](_0xb180cc){const _0x5d9b1a=_0x2466c1;_0xb180cc?(this[_0x5d9b1a(0x12b)]&&this[_0x5d9b1a(0x12b)][_0x5d9b1a(0x168)](),this[_0x5d9b1a(0x2d0)]&&this['_textBubble'][_0x5d9b1a(0x29b)]()):(this[_0x5d9b1a(0x12b)]&&this[_0x5d9b1a(0x12b)][_0x5d9b1a(0x29b)](),this[_0x5d9b1a(0x2d0)]&&this['_textBubble'][_0x5d9b1a(0x168)]());}[_0x2466c1(0x19a)](){const _0x3e34b6=_0x2466c1;for(const _0x4e5860 of this['_shapes'])_0x4e5860['dispose']();this['_textBubble']&&this[_0x3e34b6(0x2d0)][_0x3e34b6(0x19a)](),this['_anchorDot']&&this['_anchorDot'][_0x3e34b6(0x19a)](),this[_0x3e34b6(0x1b9)]&&this[_0x3e34b6(0x1b9)][_0x3e34b6(0x19a)](),this[_0x3e34b6(0x1f1)]&&this[_0x3e34b6(0x1f1)]();}['_render'](){const _0x1d4b00=_0x2466c1;var _0x2cd8ea;const {_docSkeleton:_0x5a5501,_document:_0x36d6c7}=this,{color:_0x3626b9,name:_0x569a90,ranges:_0x120c1a}=this['_cursor'],_0x1a54b1=_0x36d6c7[_0x1d4b00(0x344)](),{docsLeft:_0x1fe7e7,docsTop:_0x4d0279}=_0x1a54b1,_0x419628=new p['NodePositionConvertToCursor'](_0x1a54b1,_0x5a5501);for(const {startOffset:_0x3432e3,endOffset:_0x26a6f3,rangeType:_0x1b7c68,segmentId:_0x1a15eb,segmentPage:_0x1650fa,collapsed:_0x46b666,isActive:_0x6f4352}of _0x120c1a){const _0x5f2bb0=_0x5a5501['findNodePositionByCharIndex'](_0x3432e3,!0x0,_0x1a15eb,_0x1650fa);let _0xf52235=_0x5a5501[_0x1d4b00(0x1d7)](_0x26a6f3,!0x0,_0x1a15eb,_0x1650fa);if(_0xf52235==null&&(_0xf52235=_0x5a5501[_0x1d4b00(0x1d7)](_0x26a6f3-0x1,!0x1,_0x1a15eb,_0x1650fa)),_0x6f4352){const {contentBoxPointGroup:_0x1ef98c}=_0x419628[_0x1d4b00(0x26f)](_0xf52235,_0xf52235);if(_0x1ef98c[_0x1d4b00(0x29e)]===0x0)continue;this[_0x1d4b00(0x303)](_0x3626b9,_0x1ef98c,_0x1fe7e7,_0x4d0279,_0x569a90),this['_eventUnsubscribe']=this[_0x1d4b00(0x331)]();}if(_0x5f2bb0&&_0xf52235){if(_0x1b7c68===a['DOC_RANGE_TYPE'][_0x1d4b00(0x276)]){const _0xbcb298=new p[(_0x1d4b00(0x1d0))](_0x1a54b1,_0x5a5501),{pointGroup:_0x5c74d4}=(_0x2cd8ea=_0xbcb298[_0x1d4b00(0x26f)](_0x5f2bb0,_0xf52235))!=null?_0x2cd8ea:{};if(_0x5c74d4==null||_0x5c74d4['length']===0x0)continue;this['_drawRectRange'](_0x3626b9,_0x5c74d4,_0x1fe7e7,_0x4d0279);}else{if(!_0x46b666){const {borderBoxPointGroup:_0x149a95}=_0x419628[_0x1d4b00(0x26f)](_0x5f2bb0,_0xf52235);if(_0x149a95[_0x1d4b00(0x29e)]===0x0)continue;this[_0x1d4b00(0x11c)](_0x3626b9,_0x149a95,_0x1fe7e7,_0x4d0279);}}}}}[_0x2466c1(0x303)](_0x2c3ee8,_0xdd4b58,_0x1da3c4,_0x3ff038,_0x118f74){const _0x1380f4=_0x2466c1,_0x5da18a=this[_0x1380f4(0x1cd)](_0xdd4b58),{left:_0x102b5f,top:_0xd82cad,height:_0xb6b3c3}=_0x5da18a,_0x5337cb=this[_0x1380f4(0x3ac)](),_0x1e15bf=Nt/_0x5337cb,_0x5ed3b3=new C[(_0x1380f4(0x3c5))](_e+a[_0x1380f4(0x349)](H),{'left':_0x102b5f+_0x1da3c4-_0x1e15bf,'top':_0xd82cad+_0x3ff038,'height':_0xb6b3c3,'width':Dt,'fill':_0x2c3ee8||C[_0x1380f4(0x379)](a[_0x1380f4(0x1c0)][_0x1380f4(0x2e0)],0x0),'strokeWidth':_0x1e15bf,'stroke':Ut,'evented':!0x0});this[_0x1380f4(0x1b9)]=_0x5ed3b3,this[_0x1380f4(0x1ad)][_0x1380f4(0x1c5)](_0x5ed3b3,p[_0x1380f4(0x1dc)]);const _0x3611b6=new C[(_0x1380f4(0x3c5))](_e+a[_0x1380f4(0x349)](H),{'left':_0x102b5f+_0x1da3c4-_0x1e15bf,'top':_0xd82cad+_0x3ff038-he/0x2,'height':he,'width':he,'fill':_0x2c3ee8||C[_0x1380f4(0x379)](a[_0x1380f4(0x1c0)][_0x1380f4(0x2e0)],0x0),'strokeWidth':0x0,'stroke':_0x2c3ee8||C[_0x1380f4(0x379)](a[_0x1380f4(0x1c0)][_0x1380f4(0x2e0)],0x0),'evented':!0x1});this[_0x1380f4(0x12b)]=_0x3611b6,this[_0x1380f4(0x1ad)][_0x1380f4(0x1c5)](_0x3611b6,p[_0x1380f4(0x1dc)]);const _0x48c7fa=new re(_e+a[_0x1380f4(0x349)](H),{'left':_0x102b5f+_0x1da3c4-_0x1e15bf,'top':_0xd82cad+_0x3ff038-X,'text':_0x118f74,'color':_0x2c3ee8});this[_0x1380f4(0x2d0)]=_0x48c7fa,this['_scene'][_0x1380f4(0x1c5)](_0x48c7fa,p[_0x1380f4(0x1dc)]),this[_0x1380f4(0x2f4)]=!0x1;}[_0x2466c1(0x331)](){const _0x4b636b=_0x2466c1,_0x4deb70=this[_0x4b636b(0x1b9)][_0x4b636b(0x373)]['subscribeEvent'](()=>{const _0x2dfcb8=_0x4b636b;this[_0x2dfcb8(0x2f4)]=!0x0;}),_0x4bc466=this[_0x4b636b(0x1b9)][_0x4b636b(0x1bc)][_0x4b636b(0x389)](()=>{const _0x4d2b59=_0x4b636b;this[_0x4d2b59(0x300)]&&clearTimeout(this[_0x4d2b59(0x300)]),this[_0x4d2b59(0x300)]=setTimeout(()=>{const _0x5b3a37=_0x4d2b59;this[_0x5b3a37(0x2f4)]=!0x1;},0x7d0);});return()=>{const _0x5479dc=_0x4b636b;_0x4deb70[_0x5479dc(0x10d)](),_0x4bc466[_0x5479dc(0x10d)]();};}['_drawTextRange'](_0x3e63e7,_0x30bdc9,_0x5bdf2b,_0x7ad61){const _0x4610b7=_0x2466c1,_0x3598f5=new a[(_0x4610b7(0x352))](_0x3e63e7)['setAlpha'](0.2)[_0x4610b7(0x27f)](),_0x589f71=new C[(_0x4610b7(0x363))](Rt+a[_0x4610b7(0x349)](H),{'pointsGroup':_0x30bdc9,'fill':_0x3598f5||C[_0x4610b7(0x379)](a[_0x4610b7(0x1c0)][_0x4610b7(0x2e0)],0.2),'left':_0x5bdf2b,'top':_0x7ad61,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4610b7(0x216)][_0x4610b7(0x193)](_0x589f71),this[_0x4610b7(0x1ad)][_0x4610b7(0x1c5)](_0x589f71,p[_0x4610b7(0x1dc)]);}[_0x2466c1(0x3cd)](_0x13552c,_0x5a380e,_0x5268dd,_0x428b56){const _0x29dadb=_0x2466c1,_0x36da12=new a[(_0x29dadb(0x352))](_0x13552c)[_0x29dadb(0x399)](0.2)[_0x29dadb(0x27f)](),_0x9576cb=new C[(_0x29dadb(0x363))](bt+a['generateRandomId'](H),{'pointsGroup':_0x5a380e,'fill':_0x36da12||C[_0x29dadb(0x379)](a[_0x29dadb(0x1c0)]['black'],0.2),'left':_0x5268dd,'top':_0x428b56,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x29dadb(0x193)](_0x9576cb),this[_0x29dadb(0x1ad)]['addObject'](_0x9576cb,p['TEXT_RANGE_LAYER_INDEX']);}[_0x2466c1(0x1cd)](_0x56dd85){const _0x53bc21=_0x56dd85[0x0],_0x42c13b=_0x53bc21[0x0],_0x21935a=_0x53bc21[0x2],{x:_0x121592,y:_0xd4e52}=_0x42c13b,{x:_0x4471d4,y:_0x366735}=_0x21935a;return{'left':_0x121592,'top':_0xd4e52,'width':_0x4471d4-_0x121592,'height':_0x366735-_0xd4e52};}['_getScale'](){const _0x3b2a46=_0x2466c1,{scaleX:_0x3878e2,scaleY:_0x5f501e}=this['_scene'][_0x3b2a46(0x1da)]();return Math[_0x3b2a46(0xf8)](_0x3878e2,_0x5f501e);}}var Lt=Object[_0x2466c1(0x229)],Mt=(_0x28f15b,_0x3cdbb6,_0x1490f2,_0x567eb7)=>{const _0x22d4da=_0x2466c1;for(var _0x32f502=_0x567eb7>0x1?void 0x0:_0x567eb7?Lt(_0x3cdbb6,_0x1490f2):_0x3cdbb6,_0x3d544a=_0x28f15b[_0x22d4da(0x29e)]-0x1,_0x17a769;_0x3d544a>=0x0;_0x3d544a--)(_0x17a769=_0x28f15b[_0x3d544a])&&(_0x32f502=_0x17a769(_0x32f502)||_0x32f502);return _0x32f502;},q=(_0xa8dc20,_0x341d47)=>(_0x3ff4f9,_0x41b35d)=>_0x341d47(_0x3ff4f9,_0x41b35d,_0xa8dc20);let Ee=class extends a['RxDisposable']{constructor(_0x50c3c5,_0x2b109e,_0x332f02,_0x45c2de,_0xd43c3){const _0xb9aa05=_0x2466c1;super(),_(this,_0xb9aa05(0x13d),[]),_(this,_0xb9aa05(0x365),[]),(this['_context']=_0x50c3c5,this[_0xb9aa05(0x233)]=_0x2b109e,this[_0xb9aa05(0x18c)]=_0x332f02,this[_0xb9aa05(0x391)]=_0x45c2de,this['_themeService']=_0xd43c3,this['_init']());}[_0x2466c1(0x1dd)](){const _0x56bb46=_0x2466c1,_0x3cd7e9=this['_context'][_0x56bb46(0x254)],_0x3d7bce=this[_0x56bb46(0x233)];this[_0x56bb46(0x347)](I['combineLatest']([this[_0x56bb46(0x18c)][_0x56bb46(0x208)](_0x3cd7e9),this[_0x56bb46(0x243)][_0x56bb46(0x2e5)]])['pipe']($['map'](([_0x214857,_0x3b6f0c])=>({'skeleton':_0x3d7bce[_0x56bb46(0x32c)](),'cursors':[..._0x214857['values']()][_0x56bb46(0x1c8)](_0x25e337=>({..._0x25e337,'color':this[_0x56bb46(0x243)][_0x56bb46(0x224)](_0x25e337[_0x56bb46(0x359)])}))})))[_0x56bb46(0x34b)](_0x382ee8=>{const _0x312d8b=_0x56bb46;if(this['_removeCollabCursors'](),_0x382ee8){const {skeleton:_0x3fe475,cursors:_0x5df7fb}=_0x382ee8;this[_0x312d8b(0xf7)](_0x3fe475,_0x5df7fb);}})),this[_0x56bb46(0x19f)](),this[_0x56bb46(0x33e)]();}[_0x2466c1(0xf7)](_0x5880ce,_0x2ab61f){const _0x2b975d=_0x2466c1,{scene:_0x345645,mainComponent:_0x15264f}=this[_0x2b975d(0x221)],_0x5e95bc=_0x2ab61f[_0x2b975d(0x220)](_0x25620a=>new Le(_0x25620a,_0x345645,_0x5880ce,_0x15264f));this[_0x2b975d(0x13d)]=_0x5e95bc,this[_0x2b975d(0x365)]=_0x2ab61f;}[_0x2466c1(0x2ee)](){const _0x2c7f0d=_0x2466c1;this[_0x2c7f0d(0x28f)]();const {scene:_0x196293,mainComponent:_0x260e3f}=this[_0x2c7f0d(0x221)],_0x34f692=this[_0x2c7f0d(0x233)][_0x2c7f0d(0x32c)](),_0x1e781c=this[_0x2c7f0d(0x365)][_0x2c7f0d(0x220)](_0x1d931e=>new Le(_0x1d931e,_0x196293,_0x34f692,_0x260e3f));this[_0x2c7f0d(0x13d)]=_0x1e781c;}[_0x2466c1(0x28f)](){const _0x1e8b8f=_0x2466c1;this[_0x1e8b8f(0x13d)]['forEach'](_0x4ac1e4=>_0x4ac1e4['dispose']()),this['_cursorShapes']=[];}[_0x2466c1(0x33e)](){const _0x34d0cf=_0x2466c1,_0x52f6e8=[p[_0x34d0cf(0x1a7)]['id']];this[_0x34d0cf(0x347)](this[_0x34d0cf(0x391)]['onCommandExecuted'](_0x49565b=>{const _0xff3189=_0x34d0cf;_0x52f6e8[_0xff3189(0x12f)](_0x49565b['id'])&&_0x49565b['params']['unitId']===this[_0xff3189(0x221)][_0xff3189(0x254)]&&this[_0xff3189(0x2ee)]();}));}['_initResize'](){const _0x70bd42=_0x2466c1;this[_0x70bd42(0x347)](a[_0x70bd42(0x1d4)](this[_0x70bd42(0x221)][_0x70bd42(0x3bc)][_0x70bd42(0x10e)])[_0x70bd42(0x2b9)]($['filter'](_0x2b0544=>_0x2b0544[_0x70bd42(0x14f)]===C[_0x70bd42(0xfd)][_0x70bd42(0x298)]),$[_0x70bd42(0x3a9)](0x10))[_0x70bd42(0x34b)](()=>{const _0x9623d5=_0x70bd42;this[_0x9623d5(0x2ee)]();}));}};Ee=Mt([q(0x1,a[_0x2466c1(0x3d3)](V[_0x2466c1(0x289)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x2466c1(0x1f8)]),q(0x4,a['Inject'](a[_0x2466c1(0x167)]))],Ee);const At=0x1,Pt=1.5;function _0x1744(){const _0x305da3=['limitInfo','RemoteUniscriptService','DocSkeletonManagerService','now','OnLineIcon','focused$','Disposable','FETCH_MISS','_removeCollabCursors','UnitStatus','actions','_initStatusComponent','yellow.400','1352610FDxllb','formula.calculation.waiting','isFormulaString','INTERNAL_ERROR','resize','Error','UNRECOGNIZED','show','_status$','_checkCalculationAvailable','length','REDEMPTION_CODE_INACTIVE','displayName','WebURLService','_docSyncEditingCollabCursorService','YUUMI_CONNECTOR_URL_NOT_FOUND','1557sMNxCh','INVALID_ARGUMENT','catch','_applyCommand','ENSURE_SNAPSHOT_EXECUTION','stringify','attrs','unshift','OFFLINE','beginPath','_scheduleHeartbeat','UPDATE_CURSOR','getTypeOfUnitDisposed$','registerComponent','handleDeleteRangeMoveLeft','skeleton','roomMembers','WebBrowserSingleActiveUnitService','set','Tooltip','stage','pipe','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ENTITLE_CHAT_LIMIT_EXCEED','on-line-icon_clip0_910_349','transformByState','tag','_removeClearOtherTimer','entries','getMember','SOCKET_FAILED_RETRY','transformMutationsWithChangeset','values','RevisionService','fillText','setItem','_cursorInfo$','saveTaskMap','isActive','width','REDEMPTION_USER_REDEEM_TIMES_EXCEED','replace','assign','fillStyle','_textBubble','ILocalCacheService','docStateChange$','_handleEvent','_configService','Injector','UNIVER_DOC','collab-rect-range-','_updateURLWithCurrentState','then','RemoveColCommandId','PERMISSION_DENIED','data','useDependency','_setFormulaLimitStatus','...','black','getCurrent','trim','ENTITLE_DUP_SUBSCRIPTION','_notificationService','currentTheme$','USER_NOT_FOUND','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','reason','fill','M0\x200H16V16H0z','ENTITLE_NEED_BILLING_ADDRESS','INotificationService','size','_refreshCollabCursors','UniverInstanceType','_clearOtherTimers','createInstance','_labelPosition','runRefRangeMutations','_hover','_currentUsage','CHANGESET_REVISION_CONFILICT','_handleLeaveEvent','_initWindowErrorListener','START_CALCULATION','permission.title','_sheetSkeletonManagerService','Subject','IImageIoService','INVALID_INVITE_CODE','SOCKET_FAILED','_hideTimer','YUUMI_ASYNCIO_CANCELLED','hovered','_drawAnchor','UNAUTHENTICATED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','handleInsertRangeMoveRight','url(#off-line-icon_clip0_910_343)','_initEntityListener','handleMoveRange','INVITE_CODE_HAS_BEEN_UES','univer-mr-2\x20univer-flex\x20univer-text-xl','_entityInit$','188165scFKsC','_ensureSubject','_entities','transformMutation','handleDeleteRangeMoveUp','OTHER_CLIENT_EDITING','setStateCache','_saveCache','_hovered','collab-text-range-','getItem','MOBILE_VERIFY_CODE_MISMATCH','ISnapshotServerService','APPLY_REJECT','jiqing.500','with','/universer-api/frontend/logs','setActiveRange','newValue','send','1686qGPRqw','getParam','CLOSE_ROOM','mapTo','LICENSE_DISTRO_REJECTED','ITransformService','delete','_localStorageService','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_injector','getSkeleton','_getSheetObject','row','_collaborationController','Shape','_handleHover','45417AepvOW','1em','deserializeRangeWithSheet','handleInsertCol','BrowserCollaborationSocketService','enableFrontendLog','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_showGuardMessage','isArray','ISocketService','[Unhandled\x20Rejection]:\x20','UniverCollaborationClientUIPlugin','_initCommandExecutedListener','debug','DOC_RANGE_TYPE','ENTITLE_INSUFFICIENT_QUOTA','setInterval','_cursor','getOffsetConfig','startRow','defs','disposeWithMe','collaboration.single-unit.warning','generateRandomId','YUUMI_UNABLE_LOAD_URL','subscribe','currentSkeleton$','clearTimeout','_name','Vector2','on-line-icon','none','ColorKit','bottom','collaboration-client-ui.config','post','_initUserListener','ENTITLE_REPORT_LIMIT_EXCEED','_transformService','color','stack','[CollaborationDataLoaderController]','toStringTag','currentUsage','_uploadLog','searchParams','use','name','_memberService','RegularPolygon','white','_cursors','cursorInfo','setTimeout','_startCalculationLimit','functionsExecutedState','Unknown\x20user','url(#on-line-icon_clip0_910_349)','removeEventListener','_range','_monkeyPatchLogService','SheetsSelectionsService','setParam','_draw','_localeService','onPointerEnter$','complete','collaboration-client.offline-data-not-saved','CONFLICT','getMergeData','NOT_FOUND','getColor','current','SessionStatus','beforeCommandExecuted','toString','all','next','SetFormulaCalculationNotificationMutation','DEFAULT_WS_SESSION_TICKET_URL','DataLoaderService','_releaseCalculationLimit','Plugin','isFormulaId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transformSelections','event$','subscribeEvent','getMemberID','ranges','closePath','children','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_RATE_OVER_LIMIT','getSheetId','_commandService','override','filter','TOO_MANY_REQUESTS','_hasFormulaInDirtyRanges','svg','roomMembers$','BehaviorSubject','setAlpha','forwardRef','Rectangle','Workbook','USER_IS_ANONYMOUS','DeleteRangeMoveUpCommandId','IUniverInstanceService','onRendered','imageSourceType','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','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_instanceService','0\x200\x2016\x2016','restore','backgroundColor','CollaborationController','throttleTime','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_uiPartsService','_getScale','some','useRef','_online','AUTHORIZE_CODE_ILLEGAL','InsertRowCommandId','DocSelectionManagerService','_getSessionTicket','SetFormulaCalculationStartMutation','executeCommand','_registerRenderDependencies','unit','text','urlChange$','_unitStatus','loadUnit','engine','onMouseMove','ACTIVE_UNIT_EVENT_CHANNEL','_registerDependencies','memberID','parse','WECHAT_HAS_BEEN_BOUND','_initCommandInterceptor','m1Prime','Rect','_imageIoService','Warning','subUnitId','CollaborationSessionService','Failed','replaceDocRanges','/universer-api/license/formula/limit/done','_drawRectRange','cursorInfo$','permission.content','_handleHeartbeatEvent','m2Prime','key','Inject','href','Tools','_startDocCollabCursor','_updateCollabCursors','max','DesktopCollaborationStatusDisplayController','add','getUnitId','collab-text-anchor-','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ILogService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','CollaborationEvent','invokeId','_send','translate(.97)','_document','blue.400','getCellMatrix','_getSaveTimeout','JOIN_ROOM_FAILED','body','LOGIN_TOKEN_PROCESSING_FAILED','message','_setupSubUnitSync','unsubscribe','onTransformChange$','APPLY_DUPLICATED','NO_OTHER_CLIENTS_EDITING','getDocRanges','split','BuiltInUIPart','isTransformMutationsWithChangesetSuccess','collaboration.closeRoom','save','disableLocalCache','_messageService','handleInsertRow','purple.300','getActiveSheet','_drawTextRange','collab-client.tooltip.reconnect','replaceState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_onCursorDelete','SetSelectionsOperation','_localCacheService','createIdentifier','Success','_colorAssignService','CollaborationDataLoaderController','UNDEFINED','LOCAL_CACHE_INTERVAL_KEY','IRenderManagerService','univerjs-icon\x20univerjs-icon-','_anchorDot','formula.calculation.unable','min','transformStateCache','includes','xlink:href','TEXT','SUCCESS','_collabSessionService','contains','34fHhXbt','_urlService','_docStateChangeManagerService','_backgroundColor','ERROR_AGAIN','mergeOverrideWithDependencies','defIds','unhandledrejection','_cursorShapes','EMAIL_VERIFY_CODE_MISMATCH','lineTo','0\x200\x2017\x2016','_saveTaskMap','mutations','UniverIcon','_onCursorUpdate','pushState','colno','selection','MessageType','entityInit$','defineProperty','bind','addHandlerCallback','shift','getActiveRange','type','INVITE_CODE_REQUIRED','useCallback','path','DocIMEInputManagerService','distinctUntilChanged','has','_updateLocalCursor','unitID','handleInsertRangeMoveDown','#FFF','error','height','clearInterval','textRanges','session.will-retry','combineLatest','drawWith','asObservable','_config','getFocusedUnit','NOT_COLLAB','string','addObjects','ThemeService','hide','ILocalStorageService','_syncEditingCollabCursorService','reconnect','endColumn','getTypeOfUnitAdded$','VIEW_MAIN','MoveRangeCommandId','OTHER_CLIENTS_EDITING','enableLocalCache','CURRENT_STATUS_CANNOT_OPERATE','eventID','debounceTime','activeSheet$','handleIRemoveCol','MemberService','executionId','9448GhSDAr','MOBILE_HAS_BEEN_BOUND','PENDING','createElement','CollaborationStatus','fillRule','stageInfo','USER_NOT_INVITED_CODE','_setupBeforeClosingHandler','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','toDisposable','_initEvent','1869469lICMFL','registerBeforeClose','assignAColorForMemberID','InsertRangeMoveRightCommandId','registerDependencies','CONNECTOR_DATA_TOO_LARGE','_initStatusListener','_collabCursorController','deepClone','join','RxDisposable','jsxs','labelPosition','_beforeCloseService','push','takeUntil','result','_logService','syncEditingCollabCursor','symbol','arc','dispose','LICENSE_MAX_UNITS_EXCEEDED','_createSocketURL','round','application/json','_initResize','rgba(255,\x20255,\x20255,\x200.01)','pluginName','getCurrentUnitForType','subunit','YUUMI_ALL_TABLES_IS_INVALID','redoState','getValue','SetDocZoomRatioOperation','top','Optional','/run/','sheetId','collabStatus.offline','_scene','_lastPointer','font','origin','YUUMI_URL_COL_OUT_OF_RANGE','isEditing','off-line-icon','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','892192zzeQgW','popstate','_renderManagerService','getConfig','_anchor','saveImage','debounce','onPointerLeave$','_pollingInterval','UNIVER_SHEET','DATA_SOURCE_TOO_LARGE','COLORS','mask','_transformHistoryAndStateStack','_color','location','addObject','startColumn','_dataLoaderService','flatMap','getLocalCacheKey','getUndoRedoMutationParamsCache','_memberID','_colorIndex','_getAnchorBounding','FromArray','useObservable','NodePositionConvertToRectRange','addEventListener','_selfUnitIDs','CollaborationUIEventService','fromEventSubject','makeDirty','RichTextEditingMutation','findNodePositionByCharIndex','totalFormulasToCalculate','setShapeProps','getAncestorScale','_initUnhandledRejectionListener','TEXT_RANGE_LAYER_INDEX','_init','EffectRefRangId','handleIRemoveRow','SNAPSHOT_HAS_BEEN_REMOVED','_roomMembers$','div','IURLService','doc.mutation.rich-text-editing','univer-flex\x20univer-items-center','get','RemoveRowCommandId','transformIMECache','COMPLETION_FINISHED','sessionTicket','evenodd','getUnit','params','PAYMENT_CHANNEL_NOT_SUPPORT','dirtyRanges','moveTo','_eventUnsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','REDEMPTION_CODE_HAS_BEEN_CREATED','transformRemoteChangeset','parseInt','clipPath','measureText','ICommandService','getRenderById','addClipboardHook','merge','LICENSE_IMPORT_SIZE_EXCEEDED','http://www.w3.org/2000/svg','_maxFormulaLimit','search','ALREADY_EXISTS','IUIPartsService','endRow','collabCursorState$','jsx','CollaborationUIEventId','storage','YUUMI_SUBSCRIPTION_NOT_FOUND','getCollabCursors$','_id','4220zraVGC','[LogService\x20Error]:\x20','_docTransformIMECacheService','column','url(#$1','YUUMI_NO_CUBOID_FOR_QUESTION','registerRenderModule','WebSocketService','_taskIds','Module','LOGIN_FAILED','_session','_shapes','getCellPositionByOffset','MUTATION','_collaborationSessionService','_lastResponseTimestamp','_transformUndoRedoStack','colorChannel1','collabStatus.syncing','IMessageService','forEach','map','_context','dispose$','_docTransformSelectionsService','getColorFromTheme','_collabCursorState$','getCoordByCell','session.connection-failed','_heartbeatTimer','getOwnPropertyDescriptor','runId','whenReady','_docClipboardService','DocStateChangeManagerService','\x20at\x20','collabStatus.synced','_getFormulaLimitStatus','sessionStatus$','IBeforeCloseService','_docSkeletonManagerService','_onRefRangeChange','IRemoteInstanceService','_disabled','IDocClipboardService','from','REDEMPTION_CODE_NOT_STARTED','code','filename','RefRangeService','history','_univerInstanceService','_refRangeService','range','off-line-icon_clip0_910_343','isTransformMutationFailure','_themeService','IConfigService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','REDEMPTION_USER_NOT_ELIGIBLE','_revisionService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformPreviousActiveRange','ticket','DisposableCollection','getViewport','_updateSubUnitFromURLParams','uni.network.url-service','_toggleOnline','EMAIL_HAS_BEEN_BOUND','_unitOnClients','removeParam','SUBMIT_CHANGESET_TIMEOUT','unitId','connectInjector','ONLINE','onStarting','substring','_cachedData','_handleJoinEvent','getVpScrollXYInfoByPosToVp','SYNCED','SetWorksheetActivateCommand','shareReplay','AWAITING_WITH_PENDING','LOCAL_CACHE_INTERVAL','socket$','_httpService','REDEMPTION_INVALID_CODE','_assignedColors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','lineno','_collaborationUIEventService','init','DependentOn','_scheduleClearOtherTimer','registerRefRange','updateOfflineData','YUUMI_AI_RUN_FAILED','getRangePointData','_checkAndWaitForCalculationPermission','switchMap','CollaborationSocketService','Loading','getCurrentSelections','_clearPolling','RECT','idSuffix','APPLY_NON_SEQUENTIAL_REVISION','getStateCache','find','INVITE_CODE_ALREADY_BOUND','getSheetObject','onCommandExecuted','serializeRangeWithSheet','toRgbString','HTTPService','getSheetBySheetId','onLocalMutation','LocaleService','_scheduleSaving','InsertColCommandId','_toggleOffline'];_0x1744=function(){return _0x305da3;};return _0x1744();}class je extends C['Shape']{constructor(_0x104213,_0x2a9620){const _0x4d10d3=_0x2466c1;super(_0x104213,_0x2a9620),_(this,_0x4d10d3(0x1c3)),_(this,_0x4d10d3(0x315),!0x1),_(this,_0x4d10d3(0x36d)),_(this,_0x4d10d3(0x34e),''),_(this,_0x4d10d3(0x2f2),_0x4d10d3(0x1a8)),_(this,_0x4d10d3(0x138)),(_0x2a9620&&this['setShapeProps'](_0x2a9620),this['onPointerEnter$'][_0x4d10d3(0x389)](()=>this[_0x4d10d3(0x1d9)]({'hovered':!0x0})),this[_0x4d10d3(0x1bc)][_0x4d10d3(0x389)](()=>this[_0x4d10d3(0x1d9)]({'hovered':!0x1})));}['setShapeProps'](_0x455ae6){const _0x17440d=_0x2466c1;var _0x12ef9f,_0x45ee63,_0x5b6f53,_0x2c749c,_0x2e0ea3,_0x5205fa;this[_0x17440d(0x1c3)]=(_0x12ef9f=_0x455ae6[_0x17440d(0x359)])!=null?_0x12ef9f:this[_0x17440d(0x1c3)],this[_0x17440d(0x315)]=(_0x45ee63=_0x455ae6[_0x17440d(0x302)])!=null?_0x45ee63:this[_0x17440d(0x315)],this[_0x17440d(0x36d)]=(_0x5b6f53=_0x455ae6['range'])!=null?_0x5b6f53:this[_0x17440d(0x36d)],this[_0x17440d(0x34e)]=(_0x2c749c=_0x455ae6[_0x17440d(0x361)])!=null?_0x2c749c:this[_0x17440d(0x34e)],this[_0x17440d(0x2f2)]=(_0x2e0ea3=_0x455ae6[_0x17440d(0x191)])!=null?_0x2e0ea3:this[_0x17440d(0x2f2)],this['_backgroundColor']=(_0x5205fa=_0x455ae6[_0x17440d(0x3a7)])!=null?_0x5205fa:this['_backgroundColor'],this[_0x17440d(0x2bd)]({'width':_0x455ae6[_0x17440d(0x2cb)],'height':_0x455ae6[_0x17440d(0x15b)]});}['onMouseMove'](_0x4415dd){const _0x484848=_0x2466c1,{row:_0x55a1cd,column:_0x526407}=_0x4415dd;if(_0x55a1cd>=this['_range'][_0x484848(0x345)]&&_0x55a1cd<=this[_0x484848(0x36d)][_0x484848(0x202)]&&_0x526407>=this[_0x484848(0x36d)][_0x484848(0x1c6)]&&_0x526407<=this[_0x484848(0x36d)]['endColumn']){this[_0x484848(0x1d9)]({'hovered':!0x0});return;}this[_0x484848(0x1d9)]({'hovered':!0x1});}['triggerDblclick'](_0x221ff9){return!0x1;}['_draw'](_0x96c563){const _0x20d2c4=_0x2466c1;C[_0x20d2c4(0x3c5)]['drawWith'](_0x96c563,{'width':this[_0x20d2c4(0x2cb)],'height':this[_0x20d2c4(0x15b)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x20d2c4(0x138)]}),this[_0x20d2c4(0x315)]&&(_0x96c563[_0x20d2c4(0x116)](),_0x96c563['transform'](0x1,0x0,0x0,0x1,this[_0x20d2c4(0x2cb)],this[_0x20d2c4(0x2f2)]===_0x20d2c4(0x353)?0x0:-X),re[_0x20d2c4(0x160)](_0x96c563,{'text':this[_0x20d2c4(0x34e)],'color':this[_0x20d2c4(0x1c3)]}),_0x96c563['restore']());}}var wt=Object[_0x2466c1(0x229)],yt=(_0x28604c,_0x445cde,_0xcfbee5,_0x2eb96c)=>{const _0x17c106=_0x2466c1;for(var _0x4945ca=_0x2eb96c>0x1?void 0x0:_0x2eb96c?wt(_0x445cde,_0xcfbee5):_0x445cde,_0x25781b=_0x28604c[_0x17c106(0x29e)]-0x1,_0x41592c;_0x25781b>=0x0;_0x25781b--)(_0x41592c=_0x28604c[_0x25781b])&&(_0x4945ca=_0x41592c(_0x4945ca)||_0x4945ca);return _0x4945ca;},ue=(_0x71af43,_0x412037)=>(_0x484880,_0x458375)=>_0x412037(_0x484880,_0x458375,_0x71af43);const $t=0x1389;let Ce=class extends a[_0x2466c1(0x18f)]{constructor(_0x2fb922,_0x2c86dc,_0x25ad4c,_0xe13b3e){const _0x5a474e=_0x2466c1;super(),_(this,_0x5a474e(0x365),new Set()),_(this,_0x5a474e(0x1ae),null),(this[_0x5a474e(0x221)]=_0x2fb922,this[_0x5a474e(0x2fb)]=_0x2c86dc,this[_0x5a474e(0x18c)]=_0x25ad4c,this[_0x5a474e(0x243)]=_0xe13b3e,this[_0x5a474e(0x1dd)]());}[_0x2466c1(0x1dd)](){const _0x359780=_0x2466c1;this[_0x359780(0x2fb)][_0x359780(0x34c)]['pipe']($['takeUntil'](this[_0x359780(0x222)]),$[_0x359780(0x271)](_0xc8017a=>{const _0x2f9550=_0x359780;if(_0xc8017a){const _0x2cc786=_0xc8017a[_0x2f9550(0x1ab)];return I[_0x2f9550(0x15f)](this[_0x2f9550(0x18c)]['getCollabCursors$'](this[_0x2f9550(0x221)][_0x2f9550(0x254)]),this[_0x2f9550(0x243)]['currentTheme$'])[_0x2f9550(0x2b9)]($[_0x2f9550(0x220)](([_0x344a9f,_0x31b358])=>{const _0x51f8e4=_0x2f9550,_0x4173ae=new Map();return _0x344a9f[_0x51f8e4(0x21f)]((_0x2a42b4,_0x17c7b1)=>{const _0x328b57=_0x51f8e4;if(_0x2a42b4['sheetID']===_0x2cc786){const _0xd4a6f0={..._0x2a42b4};_0xd4a6f0['color']=this[_0x328b57(0x243)][_0x328b57(0x224)](_0x2a42b4[_0x328b57(0x359)]),_0x4173ae[_0x328b57(0x2b6)](_0x17c7b1,_0xd4a6f0);}}),{'skeleton':_0xc8017a,'cursors':_0x4173ae};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x359780(0x34b)](({skeleton:_0x3b3a4a,cursors:_0xbc7b17})=>{const _0x2c137b=_0x359780;this[_0x2c137b(0x28f)](),_0x3b3a4a&&this[_0x2c137b(0xf7)](_0x3b3a4a,_0xbc7b17);}),this['_sheetSkeletonManagerService'][_0x359780(0x34c)][_0x359780(0x34b)](_0x26efd7=>{const _0x161999=_0x359780;if(_0x26efd7==null)return;const {skeleton:_0x1ab7fd}=_0x26efd7,{scene:_0x5168cc}=this['_context'];_0x5168cc['onPointerMove$'][_0x161999(0x389)](a['debounce'](_0x2901d0=>{const _0x51eeff=_0x161999;var _0xa5594,_0x34cf88;const {offsetX:_0x123a08,offsetY:_0x111555}=_0x2901d0,{x:_0x511210,y:_0x574f68}=_0x5168cc['getRelativeToViewportCoord'](C[_0x51eeff(0x34f)][_0x51eeff(0x1ce)]([_0x123a08,_0x111555])),{scaleX:_0x25e171,scaleY:_0x48e100}=_0x5168cc[_0x51eeff(0x1da)](),_0x18f4b8=_0x5168cc[_0x51eeff(0x24c)](C['SHEET_VIEWPORT_KEY'][_0x51eeff(0x16e)]),_0x5800a1=_0x5168cc[_0x51eeff(0x25b)](C[_0x51eeff(0x34f)][_0x51eeff(0x1ce)]([_0x511210,_0x574f68]),_0x18f4b8),_0xbd9283=_0x1ab7fd[_0x51eeff(0x217)](_0x123a08,_0x111555,_0x25e171,_0x48e100,_0x5800a1);((_0xa5594=this[_0x51eeff(0x1ae)])==null?void 0x0:_0xa5594[_0x51eeff(0x20d)])===_0xbd9283[_0x51eeff(0x20d)]&&((_0x34cf88=this[_0x51eeff(0x1ae)])==null?void 0x0:_0x34cf88[_0x51eeff(0x32e)])===_0xbd9283[_0x51eeff(0x32e)]||this[_0x51eeff(0x365)][_0x51eeff(0x21f)](_0x9fd1e1=>{const _0x3edc19=_0x51eeff;_0x9fd1e1[_0x3edc19(0x3bd)](_0xbd9283);});},0x64));});}[_0x2466c1(0xf7)](_0x46785d,_0x7e6a04){const _0x1cc5fd=_0x2466c1;var _0x47b033;const _0x5f0576=(_0x47b033=this[_0x1cc5fd(0x2fb)][_0x1cc5fd(0x2e1)]())==null?void 0x0:_0x47b033[_0x1cc5fd(0x2b3)];if(!_0x5f0576)return;const _0x44107b=this[_0x1cc5fd(0x32d)]();if(!_0x44107b)return;this[_0x1cc5fd(0x365)]['forEach'](_0xfc48=>{const _0x5b9893=_0x1cc5fd;_0xfc48[_0x5b9893(0x1d5)]();});const {scene:_0x2af6bc}=_0x44107b,_0x4c1882=xt(Array['from'](_0x7e6a04[_0x1cc5fd(0x2c4)]()))['map'](_0x549fa2=>{const _0x127857=_0x1cc5fd,{color:_0x36a56a,range:_0x1c90b2,name:_0xc924bf,selection:_0x2b0415,sheetID:_0x5dea7e}=_0x549fa2,{startColumn:_0x205ba7,startRow:_0x14d361,endColumn:_0x3ceb29,endRow:_0x3da3b5}=_0x1c90b2,_0x2c675a=J[_0x127857(0x226)](_0x14d361,_0x205ba7,_0x2af6bc,_0x5f0576),_0x2aefae=J[_0x127857(0x226)](_0x3da3b5,_0x3ceb29,_0x2af6bc,_0x5f0576),{columnHeaderHeightAndMarginTop:_0x5f03c7}=_0x5f0576,{startX:_0x5be8fc,startY:_0x2e1f42}=_0x2c675a,{endX:_0x744028,endY:_0x412604}=_0x2aefae,_0x20f288=_0x744028-_0x5be8fc,_0x513c76=_0x412604-_0x2e1f42,_0x12d541={'labelPosition':_0x2e1f42-_0x5f03c7>=X?_0x127857(0x1a8):'bottom','sheetID':_0x5dea7e,'range':_0x1c90b2,'color':_0x36a56a,'name':_0xc924bf,'selection':_0x2b0415,'left':_0x5be8fc,'top':_0x2e1f42,'width':_0x20f288,'height':_0x513c76,'evented':!0x1,'zIndex':$t};return new je(_0xc924bf,_0x12d541);});_0x2af6bc[_0x1cc5fd(0x166)](_0x4c1882,At),this[_0x1cc5fd(0x365)]=new Set(_0x4c1882);}[_0x2466c1(0x28f)](){const _0x1573bd=_0x2466c1;var _0x486bd8;(_0x486bd8=this[_0x1573bd(0x365)])==null||_0x486bd8[_0x1573bd(0x21f)](_0x103f2f=>_0x103f2f[_0x1573bd(0x19a)]());}[_0x2466c1(0x32d)](){const _0x7aa307=_0x2466c1;return J[_0x7aa307(0x27c)](this['_context'][_0x7aa307(0x3b7)],this[_0x7aa307(0x221)]);}};Ce=yt([ue(0x1,a[_0x2466c1(0x3d3)](J['SheetSkeletonManagerService'])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x167)]))],Ce);function xt(_0x26e806){const _0x4ef244=_0x2466c1,_0x1ed5ea=new Map();return _0x26e806[_0x4ef244(0x21f)](_0x5e1359=>{const _0x2af465=_0x4ef244;if(_0x1ed5ea[_0x2af465(0x155)](_0x5e1359['selection'])){const _0x32e4b8=_0x1ed5ea[_0x2af465(0x1e6)](_0x5e1359[_0x2af465(0x147)]);_0x32e4b8[_0x2af465(0x361)]+=',\x20'+_0x5e1359[_0x2af465(0x361)];}else _0x1ed5ea['set'](_0x5e1359['selection'],_0x5e1359);}),Array['from'](_0x1ed5ea[_0x4ef244(0x2c4)]());}var Bt=Object[_0x2466c1(0x229)],Ft=(_0x8b3234,_0x3b2d6f,_0x125c3c,_0x503ea8)=>{const _0x24f3ff=_0x2466c1;for(var _0x1cb1dc=_0x503ea8>0x1?void 0x0:_0x503ea8?Bt(_0x3b2d6f,_0x125c3c):_0x3b2d6f,_0x26cb5c=_0x8b3234[_0x24f3ff(0x29e)]-0x1,_0x4e8afb;_0x26cb5c>=0x0;_0x26cb5c--)(_0x4e8afb=_0x8b3234[_0x26cb5c])&&(_0x1cb1dc=_0x4e8afb(_0x1cb1dc)||_0x1cb1dc);return _0x1cb1dc;},y=(_0x24a134,_0xb89d8)=>(_0x1f1eea,_0x7a1e32)=>_0xb89d8(_0x1f1eea,_0x7a1e32,_0x24a134);let Z=class extends a[_0x2466c1(0x28d)]{constructor(_0x184218,_0x2f1893,_0x7b3dcf,_0x1d3b59,_0x4ec4c0,_0x5f45e0){const _0x1ea91d=_0x2466c1;super(),this[_0x1ea91d(0x192)]=_0x184218,this['_localCacheService']=_0x2f1893,this['_collaborationUIEventService']=_0x7b3dcf,this[_0x1ea91d(0x118)]=_0x1d3b59,this[_0x1ea91d(0x2e4)]=_0x4ec4c0,this[_0x1ea91d(0x372)]=_0x5f45e0,this[_0x1ea91d(0x181)](),this[_0x1ea91d(0x184)]();}[_0x2466c1(0x181)](){const _0x2900b5=_0x2466c1;this[_0x2900b5(0x347)](this['_beforeCloseService'][_0x2900b5(0x186)](()=>{const _0x5a40d8=_0x2900b5;if(this[_0x5a40d8(0x122)][_0x5a40d8(0x2c9)]['size'])return this[_0x5a40d8(0x372)]['t'](_0x5a40d8(0x375));}));}['_initEvent'](){const _0x38c2e2=_0x2466c1;this['disposeWithMe'](this[_0x38c2e2(0x268)][_0x38c2e2(0x388)][_0x38c2e2(0x34b)](_0x573ffa=>{const _0x43de29=_0x38c2e2;_0x573ffa['id']===u[_0x43de29(0x205)][_0x43de29(0x312)]&&this[_0x43de29(0x118)][_0x43de29(0x29b)]({'type':T['MessageType'][_0x43de29(0x3c7)],'content':this[_0x43de29(0x372)]['t'](_0x43de29(0x348))}),_0x573ffa['id']===u[_0x43de29(0x205)][_0x43de29(0x323)]&&this[_0x43de29(0x118)]['show']({'type':T[_0x43de29(0x148)][_0x43de29(0x3c7)],'content':this[_0x43de29(0x372)]['t'](_0x43de29(0x115))}),_0x573ffa['id']===u[_0x43de29(0x205)]['PERMISSION_DENIED']&&this[_0x43de29(0x2e4)][_0x43de29(0x29b)]({'title':this[_0x43de29(0x372)]['t'](_0x43de29(0x2fa)),'content':this[_0x43de29(0x372)]['t'](_0x43de29(0x3cf)),'type':_0x43de29(0x15a),'duration':0x0}),_0x573ffa['id']===u[_0x43de29(0x205)][_0x43de29(0x376)]&&this[_0x43de29(0x118)]['show']({'type':T['MessageType'][_0x43de29(0x299)],'content':this[_0x43de29(0x372)]['t'](_0x43de29(0x115))+'('+_0x573ffa['data']+')'}),_0x573ffa['id']===u['CollaborationUIEventId'][_0x43de29(0x108)]&&this[_0x43de29(0x118)][_0x43de29(0x29b)]({'type':T[_0x43de29(0x148)][_0x43de29(0x3c7)],'content':this[_0x43de29(0x372)]['t'](_0x573ffa[_0x43de29(0x2dc)]||'')}),_0x573ffa['id']===u[_0x43de29(0x205)][_0x43de29(0x2c2)]&&this[_0x43de29(0x118)][_0x43de29(0x29b)]({'type':T[_0x43de29(0x148)]['Warning'],'content':this[_0x43de29(0x372)]['t'](_0x43de29(0x15e))}),_0x573ffa['id']===u['CollaborationUIEventId'][_0x43de29(0x2ff)]&&this[_0x43de29(0x118)][_0x43de29(0x29b)]({'type':T[_0x43de29(0x148)][_0x43de29(0x299)],'content':this['_localeService']['t'](_0x43de29(0x227))}),_0x573ffa['id']===u['CollaborationUIEventId'][_0x43de29(0x253)]&&this['_messageService'][_0x43de29(0x29b)]({'type':T[_0x43de29(0x148)][_0x43de29(0x299)],'content':this[_0x43de29(0x372)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2466c1(0x232)]),y(0x1,u[_0x2466c1(0x2d1)]),y(0x2,a[_0x2466c1(0x3d3)](u[_0x2466c1(0x1d3)])),y(0x3,O[_0x2466c1(0x21e)]),y(0x4,O[_0x2466c1(0x2ec)]),y(0x5,a['Inject'](a[_0x2466c1(0x283)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x21bda4,_0x428faf,_0x16a819,_0x9115d8)=>{const _0x94671b=_0x2466c1;for(var _0x5d9bca=_0x9115d8>0x1?void 0x0:_0x9115d8?jt(_0x428faf,_0x16a819):_0x428faf,_0x4ea286=_0x21bda4[_0x94671b(0x29e)]-0x1,_0x4e0265;_0x4ea286>=0x0;_0x4ea286--)(_0x4e0265=_0x21bda4[_0x4ea286])&&(_0x5d9bca=_0x4e0265(_0x5d9bca)||_0x5d9bca);return _0x5d9bca;},z=(_0x3931ca,_0x120213)=>(_0x3a6d26,_0x409aab)=>_0x120213(_0x3a6d26,_0x409aab,_0x3931ca);let Q=class extends a['Disposable']{constructor(_0x6d0383,_0x2903e4,_0x46e3ba,_0x113271){const _0x35820d=_0x2466c1;super(),_(this,_0x35820d(0x1cb)),(this[_0x35820d(0x32b)]=_0x6d0383,this[_0x35820d(0x262)]=_0x2903e4,this[_0x35820d(0x196)]=_0x46e3ba,this[_0x35820d(0x219)]=_0x113271,this[_0x35820d(0x1dd)]());}[_0x2466c1(0x1dd)](){const _0x1331a2=_0x2466c1;this[_0x1331a2(0x2f8)](),this['_initUnhandledRejectionListener'](),this[_0x1331a2(0x36e)](),this[_0x1331a2(0x356)]();}[_0x2466c1(0x356)](){const _0x2d84fc=_0x2466c1;this[_0x2d84fc(0x347)](this[_0x2d84fc(0x219)][_0x2d84fc(0x261)][_0x2d84fc(0x34b)](_0x17f7ee=>{const _0x47d13c=_0x2d84fc;this['_memberID']=_0x17f7ee==null?void 0x0:_0x17f7ee[_0x47d13c(0x3c0)];}));}[_0x2466c1(0x2f8)](){const _0x1d655c=_0x2466c1,_0x141de4=_0x13fd80=>{const _0xf869c7=_0xdc31;var _0x57e90d;this['_uploadLog'](_0xf869c7(0x15a),'[Window\x20Error]:\x20'+_0x13fd80[_0xf869c7(0x10b)]+_0xf869c7(0x22e)+_0x13fd80[_0xf869c7(0x23b)]+':'+_0x13fd80[_0xf869c7(0x267)]+':'+_0x13fd80[_0xf869c7(0x146)]+'\x0a'+(((_0x57e90d=_0x13fd80[_0xf869c7(0x15a)])==null?void 0x0:_0x57e90d[_0xf869c7(0x35a)])||''));};window[_0x1d655c(0x1d1)]('error',_0x141de4),this[_0x1d655c(0x347)](()=>{const _0x48bc52=_0x1d655c;window[_0x48bc52(0x36c)](_0x48bc52(0x15a),_0x141de4);});}[_0x2466c1(0x1db)](){const _0x1dc707=_0x2466c1,_0x35f3da=_0x5cc193=>{const _0x3c425f=_0xdc31;this[_0x3c425f(0x35e)](_0x3c425f(0x15a),_0x3c425f(0x33c)+_0x5cc193[_0x3c425f(0x2e8)]);};window[_0x1dc707(0x1d1)]('unhandledrejection',_0x35f3da),this['disposeWithMe'](()=>{const _0x4fab72=_0x1dc707;window[_0x4fab72(0x36c)](_0x4fab72(0x13c),_0x35f3da);});}[_0x2466c1(0x36e)](){const _0x538478=_0x2466c1,_0x171025=this[_0x538478(0x196)][_0x538478(0x15a)][_0x538478(0x14b)](this[_0x538478(0x196)]);this[_0x538478(0x196)][_0x538478(0x15a)]=(..._0x504b38)=>{const _0x5491d4=_0x538478,_0x52a2f4=_0x504b38[_0x5491d4(0x220)](_0x12f149=>_0x12f149 instanceof Error?_0x12f149[_0x5491d4(0x10b)]+'\x0a'+_0x12f149['stack']:String(_0x12f149))[_0x5491d4(0x18e)]('\x20');this['_uploadLog'](_0x5491d4(0x15a),_0x5491d4(0x20b)+_0x52a2f4),_0x171025(..._0x504b38);},this['disposeWithMe'](()=>{const _0x24750a=_0x538478;this[_0x24750a(0x196)][_0x24750a(0x15a)]=_0x171025;});}[_0x2466c1(0x35e)](_0x4554da,_0x25408a){const _0x3a95d9=_0x2466c1;try{const _0x5a5648={'userId':this['_memberID'],'logLabel':_0x4554da,'content':_0x25408a};this[_0x3a95d9(0x262)]['post'](_0x3a95d9(0x31d),{'body':_0x5a5648})[_0x3a95d9(0x2a6)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),z(0x1,a['Inject'](x['HTTPService'])),z(0x2,a[_0x2466c1(0xfe)]),z(0x3,a['Inject'](u[_0x2466c1(0x3c9)]))],Q);const Yt=_0x2466c1(0x354),Me={};var Ht=Object[_0x2466c1(0x229)],Wt=(_0x4335d6,_0x16729f,_0x487c1e,_0x66a23c)=>{const _0x187627=_0x2466c1;for(var _0x30b654=_0x66a23c>0x1?void 0x0:_0x66a23c?Ht(_0x16729f,_0x487c1e):_0x16729f,_0x51568a=_0x4335d6[_0x187627(0x29e)]-0x1,_0x5d8253;_0x51568a>=0x0;_0x51568a--)(_0x5d8253=_0x4335d6[_0x51568a])&&(_0x30b654=_0x5d8253(_0x30b654)||_0x30b654);return _0x30b654;},Ae=(_0x1971ea,_0xcf875)=>(_0x1231ab,_0x154dc6)=>_0xcf875(_0x1231ab,_0x154dc6,_0x1971ea);let ee=class{constructor(_0x4f5272,_0x4d077c){const _0x1c9f18=_0x2466c1;this[_0x1c9f18(0x358)]=_0x4f5272,this[_0x1c9f18(0x1b7)]=_0x4d077c;}[_0x2466c1(0x1e8)](_0x5449b7){const _0x3a160b=_0x2466c1;this[_0x3a160b(0x21b)](_0x5449b7),this[_0x3a160b(0x249)](_0x5449b7);}['transformRemoteChangeset'](_0x13a6b8){const _0x2ed503=_0x2466c1,{unitID:_0x87d76}=_0x13a6b8,_0x38e32b=this[_0x2ed503(0x1b7)][_0x2ed503(0x1f9)](_0x87d76)['with'](p[_0x2ed503(0x153)]),{redoCache:_0x76d39f}=_0x38e32b[_0x2ed503(0x1ca)]();if(_0x76d39f[_0x2ed503(0x29e)]===0x0)return _0x13a6b8;let _0x339293=a['Tools'][_0x2ed503(0x18d)](_0x13a6b8[_0x2ed503(0x142)][0x0]);for(let _0x33cd0f=0x0;_0x33cd0f<_0x76d39f[_0x2ed503(0x29e)];_0x33cd0f++){const _0x258902={'id':'doc.mutation.rich-text-editing','params':{..._0x76d39f[_0x33cd0f]}},_0x42bef7=this[_0x2ed503(0x358)][_0x2ed503(0x310)](_0x339293,_0x258902,!0x1);if(g['isTransformMutationFailure'](_0x42bef7))throw _0x42bef7[_0x2ed503(0x15a)];_0x339293=_0x42bef7[_0x2ed503(0x3c4)];}return{...a['Tools'][_0x2ed503(0x18d)](_0x13a6b8),'mutations':[_0x339293]};}['_transformUndoRedoStack'](_0x129626){const _0x20fe69=_0x2466c1,{unitID:_0x2b4d2e}=_0x129626,_0xc9ef0c=this['_renderManagerService'][_0x20fe69(0x1f9)](_0x2b4d2e)['with'](p[_0x20fe69(0x153)]),{undoCache:_0x3a9cca,redoCache:_0x1f137a}=_0xc9ef0c['getUndoRedoMutationParamsCache']();if(_0x3a9cca['length']===0x0||_0x1f137a[_0x20fe69(0x29e)]===0x0)return;const _0x30d0fd=[],_0x2e1052=[];let _0x139fc5=a[_0x20fe69(0xf5)][_0x20fe69(0x18d)](_0x129626[_0x20fe69(0x142)][0x0]),_0x11db19=a['Tools'][_0x20fe69(0x18d)](_0x129626['mutations'][0x0]);for(let _0x4760b1=_0x3a9cca[_0x20fe69(0x29e)]-0x1;_0x4760b1>=0x0;_0x4760b1--){const _0x15efde={'id':_0x20fe69(0x1e4),'params':{..._0x3a9cca[_0x4760b1]}},_0x3b61c1={'id':_0x20fe69(0x1e4),'params':{..._0x1f137a[_0x4760b1]}},_0xba13b2=this[_0x20fe69(0x358)][_0x20fe69(0x310)](_0x139fc5,_0x15efde,!0x1),_0x16aa0b=this[_0x20fe69(0x358)][_0x20fe69(0x310)](_0x11db19,_0x3b61c1,!0x1);if(g[_0x20fe69(0x242)](_0xba13b2))throw _0xba13b2[_0x20fe69(0x15a)];if(g[_0x20fe69(0x242)](_0x16aa0b))throw _0x16aa0b['error'];_0x30d0fd[_0x20fe69(0x2ab)](_0xba13b2[_0x20fe69(0x3d1)][_0x20fe69(0x1ed)]),_0x2e1052[_0x20fe69(0x2ab)](_0x16aa0b[_0x20fe69(0x3d1)][_0x20fe69(0x1ed)]),_0x139fc5=_0xba13b2['m1Prime'],_0x11db19=_0x16aa0b[_0x20fe69(0x3c4)];}_0xc9ef0c['setUndoRedoMutationParamsCache']({'undoCache':_0x30d0fd,'redoCache':_0x2e1052});}[_0x2466c1(0x249)](_0x388536){const _0x46713b=_0x2466c1,{unitID:_0x2701e1}=_0x388536,_0x519774=this[_0x46713b(0x1b7)][_0x46713b(0x1f9)](_0x2701e1)[_0x46713b(0x31c)](p[_0x46713b(0x153)]),_0x272823=_0x519774[_0x46713b(0x14e)]();if(_0x272823==null)return;const _0xb5d4b8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x388536[_0x46713b(0x157)],'actions':null,'textRanges':[_0x272823]}}],_0x4beda2=this[_0x46713b(0x358)][_0x46713b(0x2c3)](_0x388536,_0xb5d4b8);if(!g[_0x46713b(0x114)](_0x4beda2))throw _0x4beda2['error'];const _0x4d2804=_0x4beda2[_0x46713b(0x3d1)][0x0][_0x46713b(0x1ed)][_0x46713b(0x15d)];Array[_0x46713b(0x33a)](_0x4d2804)&&_0x4d2804[_0x46713b(0x29e)]&&_0x519774[_0x46713b(0x31e)](_0x4d2804[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x2466c1(0x129)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0xbe933f,_0x2bfcf7,_0x1dd8d4,_0x173ff1)=>{for(var _0xcc4524=_0x173ff1>0x1?void 0x0:_0x173ff1?Vt(_0x2bfcf7,_0x1dd8d4):_0x2bfcf7,_0x32643c=_0xbe933f['length']-0x1,_0x322be5;_0x32643c>=0x0;_0x32643c--)(_0x322be5=_0xbe933f[_0x32643c])&&(_0xcc4524=_0x322be5(_0xcc4524)||_0xcc4524);return _0xcc4524;},Ie=(_0x57726b,_0x538f19)=>(_0xa77b9f,_0x1a6e99)=>_0x538f19(_0xa77b9f,_0x1a6e99,_0x57726b);let te=class{constructor(_0x32905a,_0x465eb2,_0x5fe792){const _0x168e1e=_0x2466c1;this['_injector']=_0x32905a,this['_transformService']=_0x465eb2,this[_0x168e1e(0x137)]=_0x5fe792;}[_0x2466c1(0x12e)](_0xf4f759){const _0x3cfc5b=_0x2466c1;this[_0x3cfc5b(0x1c2)](_0xf4f759);}[_0x2466c1(0x1f4)](_0x302e97){const _0x4f7f90=_0x2466c1,{unitID:_0x47d288}=_0x302e97,{collaboration:_0x240a7f}=this['_docStateChangeManagerService'][_0x4f7f90(0x279)](_0x47d288);if(_0x240a7f[_0x4f7f90(0x29e)]===0x0)return _0x302e97;let _0x51555f=a['Tools']['deepClone'](_0x302e97[_0x4f7f90(0x142)][0x0]);for(let _0x3facaf=0x0;_0x3facaf<_0x240a7f['length'];_0x3facaf++){const _0x19984e={'id':_0x4f7f90(0x1e4),'params':{'unitId':_0x240a7f[_0x3facaf][_0x4f7f90(0x254)],..._0x240a7f[_0x3facaf][_0x4f7f90(0x1a5)]}},_0x1a22c6=this[_0x4f7f90(0x358)][_0x4f7f90(0x310)](_0x51555f,_0x19984e,!0x1);if(g[_0x4f7f90(0x242)](_0x1a22c6))throw _0x1a22c6['error'];_0x51555f=_0x1a22c6[_0x4f7f90(0x3c4)];}return{...a['Tools'][_0x4f7f90(0x18d)](_0x302e97),'mutations':[_0x51555f]};}[_0x2466c1(0x1c2)](_0x4f44c7){const _0xa7550c=_0x2466c1,{unitID:_0x48f59a}=_0x4f44c7,{history:_0x12990d,collaboration:_0x411a70}=this[_0xa7550c(0x137)][_0xa7550c(0x279)](_0x48f59a);if(_0x12990d[_0xa7550c(0x29e)]===0x0&&_0x411a70[_0xa7550c(0x29e)]===0x0)return;const _0x2f5c34=[],_0x11d9b3=[];let _0x3fed5d=a['Tools']['deepClone'](_0x4f44c7[_0xa7550c(0x142)][0x0]),_0x9dcaa5=a['Tools']['deepClone'](_0x4f44c7[_0xa7550c(0x142)][0x0]);for(let _0xc3daaf=_0x12990d['length']-0x1;_0xc3daaf>=0x0;_0xc3daaf--){const _0x1176fd={'id':_0xa7550c(0x1e4),'params':{'unitId':_0x12990d[_0xc3daaf][_0xa7550c(0x254)],..._0x12990d[_0xc3daaf]['undoState']}},_0x18fe3a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12990d[_0xc3daaf][_0xa7550c(0x254)],..._0x12990d[_0xc3daaf]['redoState']}},_0x26d766=this[_0xa7550c(0x358)]['transformMutation'](_0x3fed5d,_0x1176fd,!0x1),_0x4c1c13=this[_0xa7550c(0x358)][_0xa7550c(0x310)](_0x9dcaa5,_0x18fe3a,!0x1);if(g[_0xa7550c(0x242)](_0x26d766))throw _0x26d766[_0xa7550c(0x15a)];if(g['isTransformMutationFailure'](_0x4c1c13))throw _0x4c1c13[_0xa7550c(0x15a)];_0x2f5c34[_0xa7550c(0x2ab)]({..._0x12990d[_0xc3daaf],'undoState':_0x26d766[_0xa7550c(0x3d1)][_0xa7550c(0x1ed)],'redoState':_0x4c1c13[_0xa7550c(0x3d1)][_0xa7550c(0x1ed)]}),_0x3fed5d=_0x26d766[_0xa7550c(0x3c4)],_0x9dcaa5=_0x4c1c13[_0xa7550c(0x3c4)];}_0x3fed5d=a[_0xa7550c(0xf5)][_0xa7550c(0x18d)](_0x4f44c7[_0xa7550c(0x142)][0x0]),_0x9dcaa5=a['Tools'][_0xa7550c(0x18d)](_0x4f44c7[_0xa7550c(0x142)][0x0]);for(let _0x2421b0=_0x411a70['length']-0x1;_0x2421b0>=0x0;_0x2421b0--){const _0x1407e0={'id':_0xa7550c(0x1e4),'params':{'unitId':_0x411a70[_0x2421b0][_0xa7550c(0x254)],..._0x411a70[_0x2421b0]['undoState']}},_0x269286={'id':_0xa7550c(0x1e4),'params':{'unitId':_0x411a70[_0x2421b0]['unitId'],..._0x411a70[_0x2421b0][_0xa7550c(0x1a5)]}},_0xddaf8d=this[_0xa7550c(0x358)]['transformMutation'](_0x3fed5d,_0x1407e0,!0x1),_0x4a29d2=this[_0xa7550c(0x358)][_0xa7550c(0x310)](_0x9dcaa5,_0x269286,!0x1);if(g['isTransformMutationFailure'](_0xddaf8d))throw _0xddaf8d[_0xa7550c(0x15a)];if(g[_0xa7550c(0x242)](_0x4a29d2))throw _0x4a29d2[_0xa7550c(0x15a)];_0x11d9b3[_0xa7550c(0x2ab)]({..._0x411a70[_0x2421b0],'undoState':_0xddaf8d[_0xa7550c(0x3d1)][_0xa7550c(0x1ed)],'redoState':_0x4a29d2['m2Prime'][_0xa7550c(0x1ed)]}),_0x3fed5d=_0xddaf8d['m1Prime'],_0x9dcaa5=_0x4a29d2[_0xa7550c(0x3c4)];}this[_0xa7550c(0x137)][_0xa7550c(0x313)](_0x48f59a,{'history':_0x2f5c34,'collaboration':_0x11d9b3});}};te=Gt([Ie(0x0,a[_0x2466c1(0x3d3)](a['Injector'])),Ie(0x1,g[_0x2466c1(0x326)]),Ie(0x2,a[_0x2466c1(0x3d3)](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x2466c1(0x229)],Kt=(_0x41fdd2,_0x370139,_0x4b6a34,_0x4960b7)=>{const _0x22f95b=_0x2466c1;for(var _0x2f3a49=_0x4960b7>0x1?void 0x0:_0x4960b7?Xt(_0x370139,_0x4b6a34):_0x370139,_0x3c65a1=_0x41fdd2[_0x22f95b(0x29e)]-0x1,_0x4a7a13;_0x3c65a1>=0x0;_0x3c65a1--)(_0x4a7a13=_0x41fdd2[_0x3c65a1])&&(_0x2f3a49=_0x4a7a13(_0x2f3a49)||_0x2f3a49);return _0x2f3a49;},Pe=(_0x27214e,_0x4d35b5)=>(_0x4fa5fb,_0x34dbe7)=>_0x4d35b5(_0x4fa5fb,_0x34dbe7,_0x27214e);let se=class{constructor(_0x5ab4ad,_0x597a1c){const _0x1a3dc8=_0x2466c1;this[_0x1a3dc8(0x32b)]=_0x5ab4ad,this[_0x1a3dc8(0x358)]=_0x597a1c;}[_0x2466c1(0x387)](_0x1785a3){const _0x2fc19b=_0x2466c1;var _0xce661d;const _0x8141ab=this[_0x2fc19b(0x32b)][_0x2fc19b(0x1e6)](V[_0x2fc19b(0x3b2)]),_0x1d129e=(_0xce661d=_0x8141ab[_0x2fc19b(0x111)]())!=null?_0xce661d:[];if(_0x1d129e['length']===0x0)return;const _0xb89059=_0x1785a3['unitID'],_0x7dde90=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb89059,'actions':null,'textRanges':_0x1d129e}}],_0x37f148=this[_0x2fc19b(0x358)][_0x2fc19b(0x2c3)](_0x1785a3,_0x7dde90);if(!g[_0x2fc19b(0x114)](_0x37f148))throw _0x37f148[_0x2fc19b(0x15a)];const _0x29f790=_0x37f148[_0x2fc19b(0x3d1)][0x0][_0x2fc19b(0x1ed)][_0x2fc19b(0x15d)];Array['isArray'](_0x29f790)&&_0x29f790['length']&&_0x8141ab[_0x2fc19b(0x3cb)](_0x29f790,{'unitId':_0xb89059,'subUnitId':_0xb89059},!0x1);}};se=Kt([Pe(0x0,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),Pe(0x1,g[_0x2466c1(0x326)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x3c8a84,_0x385c22,_0x39b33f,_0x229fb5)=>{const _0xe3aae5=_0x2466c1;for(var _0xe93caf=_0x229fb5>0x1?void 0x0:_0x229fb5?qt(_0x385c22,_0x39b33f):_0x385c22,_0x2a211e=_0x3c8a84[_0xe3aae5(0x29e)]-0x1,_0x1f247f;_0x2a211e>=0x0;_0x2a211e--)(_0x1f247f=_0x3c8a84[_0x2a211e])&&(_0xe93caf=_0x1f247f(_0xe93caf)||_0xe93caf);return _0xe93caf;},N=(_0x4c4977,_0xafc3d8)=>(_0x388649,_0x3596fa)=>_0xafc3d8(_0x388649,_0x3596fa,_0x4c4977);let ie=class extends a[_0x2466c1(0x28d)]{constructor(_0x16dba3,_0x5344cf,_0x132c37,_0x34c979,_0x3fd2a1,_0xfd6e9a,_0x9e74b8,_0xbb845c){const _0x1809ca=_0x2466c1;super(),_(this,_0x1809ca(0x29c),new I['BehaviorSubject'](u['CollaborationStatus'][_0x1809ca(0x164)])),(this[_0x1809ca(0x137)]=_0x16dba3,this['_collaborationController']=_0x5344cf,this[_0x1809ca(0x20c)]=_0x132c37,this['_docTransformStateCacheService']=_0x34c979,this[_0x1809ca(0x223)]=_0x3fd2a1,this[_0x1809ca(0x2a2)]=_0xfd6e9a,this[_0x1809ca(0x118)]=_0x9e74b8,this[_0x1809ca(0x372)]=_0xbb845c,this['_initEntityListener']());}[_0x2466c1(0x308)](){const _0x4913af=_0x2466c1;this[_0x4913af(0x347)](this[_0x4913af(0x32f)][_0x4913af(0x149)][_0x4913af(0x34b)](_0x5413ca=>{const _0x8d1d6e=_0x4913af,_0x561e2c=this[_0x8d1d6e(0x137)][_0x8d1d6e(0x2d2)][_0x8d1d6e(0x34b)](_0x13098d=>{const _0x56bf75=_0x8d1d6e;if(_0x13098d==null)return;const {unitId:_0x5985de,redoState:_0x22bd40,commandId:_0x396129}=_0x13098d;if(_0x5985de!==_0x5413ca['unitID'])return;const _0x23ffaf={'id':_0x396129,'type':a['CommandType'][_0x56bf75(0x218)],'params':{'unitId':_0x5985de,'actions':_0x22bd40[_0x56bf75(0x291)],'textRanges':null}};_0x5413ca[_0x56bf75(0x282)](_0x23ffaf);});if(_0x5413ca[_0x8d1d6e(0x347)](_0x561e2c),_0x5413ca instanceof u['DocCollaborationEntity']){const _0xa1f707={'onTransformIME':_0x1c5c86=>this[_0x8d1d6e(0x20c)][_0x8d1d6e(0x1e8)](_0x1c5c86),'onTransformState':_0x327f62=>this['_docTransformStateCacheService']['transformStateCache'](_0x327f62),'onTransformSelections':_0x7b8263=>this[_0x8d1d6e(0x223)][_0x8d1d6e(0x387)](_0x7b8263),'onSyncEditingCollabCursor':_0x470117=>this[_0x8d1d6e(0x2a2)][_0x8d1d6e(0x197)](_0x470117),'onTransformRemoteChangesetByIMECache':_0xd46c8=>this[_0x8d1d6e(0x20c)][_0x8d1d6e(0x1f4)](_0xd46c8),'onTransformRemoteChangesetByStateCache':_0x34cecc=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x34cecc)};_0x5413ca[_0x8d1d6e(0x14c)](_0xa1f707);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x2466c1(0x22d)])),N(0x1,a[_0x2466c1(0x3d3)](u[_0x2466c1(0x3a8)])),N(0x2,a[_0x2466c1(0x3d3)](ee)),N(0x3,a[_0x2466c1(0x3d3)](te)),N(0x4,a[_0x2466c1(0x3d3)](se)),N(0x5,a[_0x2466c1(0x3d3)](be)),N(0x6,O[_0x2466c1(0x21e)]),N(0x7,a[_0x2466c1(0x3d3)](a['LocaleService']))],ie);var G=(_0x2424b3=>(_0x2424b3[_0x2424b3[_0x2466c1(0x127)]=0x0]='UNDEFINED',_0x2424b3[_0x2424b3['OK']=0x1]='OK',_0x2424b3[_0x2424b3[_0x2466c1(0x297)]=0x2]=_0x2466c1(0x297),_0x2424b3[_0x2424b3[_0x2466c1(0x2db)]=0x3]='PERMISSION_DENIED',_0x2424b3[_0x2424b3['NOT_FOUND']=0x4]=_0x2466c1(0x378),_0x2424b3[_0x2424b3[_0x2466c1(0x304)]=0x5]=_0x2466c1(0x304),_0x2424b3[_0x2424b3[_0x2466c1(0x200)]=0x6]=_0x2466c1(0x200),_0x2424b3[_0x2424b3[_0x2466c1(0x2a5)]=0x7]=_0x2466c1(0x2a5),_0x2424b3[_0x2424b3[_0x2466c1(0x394)]=0x8]=_0x2466c1(0x394),_0x2424b3[_0x2424b3['COMPLETION_FINISHED']=0x9]=_0x2466c1(0x1e9),_0x2424b3[_0x2424b3[_0x2466c1(0x214)]=0xa]=_0x2466c1(0x214),_0x2424b3[_0x2424b3[_0x2466c1(0x318)]=0xb]=_0x2466c1(0x318),_0x2424b3[_0x2424b3[_0x2466c1(0x2ba)]=0xc]=_0x2466c1(0x2ba),_0x2424b3[_0x2424b3[_0x2466c1(0x13e)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2424b3[_0x2424b3[_0x2466c1(0x182)]=0xe]=_0x2466c1(0x182),_0x2424b3[_0x2424b3[_0x2466c1(0x3b0)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2424b3[_0x2424b3[_0x2466c1(0x10a)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2424b3[_0x2424b3[_0x2466c1(0x172)]=0x64]=_0x2466c1(0x172),_0x2424b3[_0x2424b3['ERROR_AGAIN']=0x65]=_0x2466c1(0x139),_0x2424b3[_0x2424b3[_0x2466c1(0x2e6)]=0xc9]=_0x2466c1(0x2e6),_0x2424b3[_0x2424b3[_0x2466c1(0x39d)]=0xca]=_0x2466c1(0x39d),_0x2424b3[_0x2424b3[_0x2466c1(0x2f6)]=0x1389]=_0x2466c1(0x2f6),_0x2424b3[_0x2424b3['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2424b3[_0x2424b3[_0x2466c1(0x1e0)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2424b3[_0x2424b3[_0x2466c1(0x2a8)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2424b3[_0x2424b3[_0x2466c1(0x31a)]=0x1b59]=_0x2466c1(0x31a),_0x2424b3[_0x2424b3[_0x2466c1(0x278)]=0x1b5a]=_0x2466c1(0x278),_0x2424b3[_0x2424b3['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2424b3[_0x2424b3['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2424b3[_0x2424b3[_0x2466c1(0x10f)]=0x1b5d]=_0x2466c1(0x10f),_0x2424b3[_0x2424b3[_0x2466c1(0x18a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2424b3[_0x2424b3[_0x2466c1(0x19b)]=0x2329]=_0x2466c1(0x19b),_0x2424b3[_0x2424b3[_0x2466c1(0x3a3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2424b3[_0x2424b3[_0x2466c1(0x1fc)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2424b3[_0x2424b3[_0x2466c1(0x1f2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2424b3[_0x2424b3[_0x2466c1(0x325)]=0x232d]=_0x2466c1(0x325),_0x2424b3[_0x2424b3[_0x2466c1(0x34a)]=0x2711]=_0x2466c1(0x34a),_0x2424b3[_0x2424b3[_0x2466c1(0x1b1)]=0x2712]=_0x2466c1(0x1b1),_0x2424b3[_0x2424b3[_0x2466c1(0x38f)]=0x2713]=_0x2466c1(0x38f),_0x2424b3[_0x2424b3[_0x2466c1(0x207)]=0x2714]=_0x2466c1(0x207),_0x2424b3[_0x2424b3[_0x2466c1(0x20f)]=0x271a]=_0x2466c1(0x20f),_0x2424b3[_0x2424b3[_0x2466c1(0x301)]=0x271b]=_0x2466c1(0x301),_0x2424b3[_0x2424b3['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2466c1(0x338),_0x2424b3[_0x2424b3[_0x2466c1(0x1a4)]=0x271d]=_0x2466c1(0x1a4),_0x2424b3[_0x2424b3[_0x2466c1(0x3aa)]=0x271e]=_0x2466c1(0x3aa),_0x2424b3[_0x2424b3['YUUMI_AI_RUN_FAILED']=0x271f]=_0x2466c1(0x26e),_0x2424b3[_0x2424b3[_0x2466c1(0x2a3)]=0x2720]=_0x2466c1(0x2a3),_0x2424b3[_0x2424b3[_0x2466c1(0x329)]=0x2af9]=_0x2466c1(0x329),_0x2424b3[_0x2424b3[_0x2466c1(0x30a)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2424b3[_0x2424b3[_0x2466c1(0x2fe)]=0x2ee2]=_0x2466c1(0x2fe),_0x2424b3[_0x2424b3['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2466c1(0x150),_0x2424b3[_0x2424b3[_0x2466c1(0x180)]=0x2ee4]=_0x2466c1(0x180),_0x2424b3[_0x2424b3[_0x2466c1(0x27b)]=0x2ee5]=_0x2466c1(0x27b),_0x2424b3[_0x2424b3[_0x2466c1(0x3c2)]=0x32c9]=_0x2466c1(0x3c2),_0x2424b3[_0x2424b3[_0x2466c1(0x17a)]=0x32ca]=_0x2466c1(0x17a),_0x2424b3[_0x2424b3['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x2466c1(0x250),_0x2424b3[_0x2424b3[_0x2466c1(0x38e)]=0x36b1]=_0x2466c1(0x38e),_0x2424b3[_0x2424b3[_0x2466c1(0x1b4)]=0x36b2]=_0x2466c1(0x1b4),_0x2424b3[_0x2424b3[_0x2466c1(0x2e3)]=0x36b3]=_0x2466c1(0x2e3),_0x2424b3[_0x2424b3[_0x2466c1(0x1ee)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2424b3[_0x2424b3[_0x2466c1(0x2bb)]=0x3715]=_0x2466c1(0x2bb),_0x2424b3[_0x2424b3[_0x2466c1(0x357)]=0x3716]=_0x2466c1(0x357),_0x2424b3[_0x2424b3[_0x2466c1(0x341)]=0x3717]=_0x2466c1(0x341),_0x2424b3[_0x2424b3[_0x2466c1(0x2eb)]=0x37dd]=_0x2466c1(0x2eb),_0x2424b3[_0x2424b3[_0x2466c1(0x263)]=0x3a99]=_0x2466c1(0x263),_0x2424b3[_0x2424b3[_0x2466c1(0x29f)]=0x3a9a]=_0x2466c1(0x29f),_0x2424b3[_0x2424b3['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2424b3[_0x2424b3['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2466c1(0x239),_0x2424b3[_0x2424b3['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x2466c1(0x246),_0x2424b3[_0x2424b3[_0x2466c1(0x2cc)]=0x3a9e]=_0x2466c1(0x2cc),_0x2424b3[_0x2424b3[_0x2466c1(0x1f3)]=0x3a9f]=_0x2466c1(0x1f3),_0x2424b3[_0x2424b3[_0x2466c1(0x1bf)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2424b3[_0x2424b3[_0x2466c1(0x29a)]=-0x1]=_0x2466c1(0x29a),_0x2424b3))(G||{});function Jt(_0x36f6dc){const _0x14fac6=_0x2466c1;var _0x5d3ef7,_0xd3b834;const _0x148a2a=(_0x5d3ef7=_0x36f6dc['stageInfo'])==null?void 0x0:_0x5d3ef7[_0x14fac6(0x2b8)],_0x54711a=((_0xd3b834=_0x36f6dc[_0x14fac6(0x17f)])==null?void 0x0:_0xd3b834[_0x14fac6(0x1d8)])||0x0;return _0x148a2a===B['FormulaExecuteStageType'][_0x14fac6(0x2f9)]&&_0x54711a>0x0;}function Zt(_0x1a11f0){const _0x427eec=_0x2466c1;return _0x1a11f0[_0x427eec(0x369)]===B['FormulaExecutedStateType'][_0x427eec(0x132)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0xbfe098,_0x17ef1c,_0x3d989e,_0x13c6c0)=>{const _0x303c7d=_0x2466c1;for(var _0x27aa56=_0x13c6c0>0x1?void 0x0:_0x13c6c0?Qt(_0x17ef1c,_0x3d989e):_0x17ef1c,_0x13e573=_0xbfe098[_0x303c7d(0x29e)]-0x1,_0x16f57f;_0x13e573>=0x0;_0x13e573--)(_0x16f57f=_0xbfe098[_0x13e573])&&(_0x27aa56=_0x16f57f(_0x27aa56)||_0x27aa56);return _0x27aa56;},L=(_0x659088,_0x487de5)=>(_0x155304,_0x5ced31)=>_0x487de5(_0x155304,_0x5ced31,_0x659088);const ts='/universer-api/license/formula/limit/status',ss='/universer-api/license/formula/limit/start',is=_0x2466c1(0x3cc);let ne=class extends a[_0x2466c1(0x28d)]{constructor(_0x2477d7,_0xe1c384,_0x11c0cd,_0x2e5d21,_0x1aaa29,_0x2090e9,_0x42a487){const _0x33c00c=_0x2466c1;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x33c00c(0x212),[]),_(this,_0x33c00c(0x21a),0x0),(this[_0x33c00c(0x118)]=_0x2477d7,this[_0x33c00c(0x391)]=_0xe1c384,this['_configService']=_0x11c0cd,this[_0x33c00c(0x262)]=_0x2e5d21,this['_univerInstanceService']=_0x1aaa29,this['_logService']=_0x2090e9,this[_0x33c00c(0x372)]=_0x42a487,this[_0x33c00c(0x3c3)]());}['_initCommandInterceptor'](){const _0x15dbeb=_0x2466c1;this[_0x15dbeb(0x347)](this[_0x15dbeb(0x391)][_0x15dbeb(0x37c)]((_0x48b577,_0x253bff)=>{const _0x453457=_0x15dbeb;var _0x1419de;if(_0x48b577['id']!==B[_0x453457(0x3b4)]['id'])return;const _0x55f521=_0x48b577[_0x453457(0x1ed)];if(!this[_0x453457(0x395)]((_0x1419de=_0x55f521[_0x453457(0x1ef)])!=null?_0x1419de:[]))return;if(!this[_0x453457(0x29d)]())throw this[_0x453457(0x270)](_0x48b577,_0x253bff),this[_0x453457(0x339)](),new a['CanceledError']();})),this[_0x15dbeb(0x347)](this[_0x15dbeb(0x391)][_0x15dbeb(0x27d)]((_0x257450,_0x2c51de)=>{const _0x285924=_0x15dbeb;if(_0x257450['id']!==B[_0x285924(0x380)]['id'])return;const _0x35beb0=_0x257450[_0x285924(0x1ed)];if(Jt(_0x35beb0)){const _0x33aca8=a[_0x285924(0x349)]();this[_0x285924(0x212)][_0x285924(0x193)](_0x33aca8),this[_0x285924(0x368)](_0x33aca8);}else{if(Zt(_0x35beb0)&&this['_taskIds'][_0x285924(0x29e)]>0x0){const _0x2ab335=this[_0x285924(0x212)][_0x285924(0x14d)]();this['_releaseCalculationLimit'](_0x2ab335);}}}));}[_0x2466c1(0x19a)](){const _0x21b4a6=_0x2466c1;super[_0x21b4a6(0x19a)](),this[_0x21b4a6(0x275)](),this[_0x21b4a6(0x212)]=[],this[_0x21b4a6(0x2f5)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x220d28,_0x5a65dc){const _0x20c45b=_0x2466c1;for(let _0x36f72a=0x0;_0x36f72a<0x1e;_0x36f72a++)try{if(await this[_0x20c45b(0x230)](),this[_0x20c45b(0x29d)]()){this[_0x20c45b(0x2a7)](_0x220d28,_0x5a65dc),this['_messageService']['show']({'content':this['_localeService']['t']('formula.calculation.started'),'type':T[_0x20c45b(0x148)][_0x20c45b(0x124)]});return;}await new Promise(_0x367a86=>{const _0x1dbc67=_0x20c45b;this[_0x1dbc67(0x1bd)]=window[_0x1dbc67(0x367)](_0x367a86,0x3e8);});}catch(_0x496804){this[_0x20c45b(0x196)]['error'](_0x496804);}this['_messageService'][_0x20c45b(0x29b)]({'content':this['_localeService']['t'](_0x20c45b(0x12c)),'type':T['MessageType'][_0x20c45b(0x299)]});}[_0x2466c1(0x2a7)](_0x1082ef,_0x471219){const _0x33047b=_0x2466c1;try{this[_0x33047b(0x391)][_0x33047b(0x3b5)](_0x1082ef['id'],_0x1082ef[_0x33047b(0x1ed)],_0x471219);}catch(_0xc26013){this['_logService'][_0x33047b(0x15a)](_0xc26013);}}[_0x2466c1(0x2de)](_0x2cc4d7,_0x5f5d8c){const _0x1c8828=_0x2466c1;_0x5f5d8c<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x5f5d8c,this[_0x1c8828(0x1fe)]=Number[_0x1c8828(0x1f5)](_0x2cc4d7['maxFormulaLimit']),this[_0x1c8828(0x2f5)]=Number[_0x1c8828(0x1f5)](_0x2cc4d7[_0x1c8828(0x35d)]));}async['_startCalculationLimit'](_0x17b2ac){const _0x3eeb0c=_0x2466c1;var _0x4031a0,_0x32236a;const _0x17bce5=Date[_0x3eeb0c(0x28a)]();try{const _0x11fb77=((_0x4031a0=this[_0x3eeb0c(0x2d4)]['getConfig'](u[_0x3eeb0c(0x305)]))==null?void 0x0:_0x4031a0['startFormulaLimitUrl'])||ss,_0x1260f2=(await this[_0x3eeb0c(0x262)][_0x3eeb0c(0x355)](_0x11fb77,{'body':JSON['stringify']({'taskId':_0x17b2ac})}))['body'];if(((_0x32236a=_0x1260f2['error'])==null?void 0x0:_0x32236a['code'])!==G['OK'])return;this[_0x3eeb0c(0x2de)](_0x1260f2['limitInfo'],_0x17bce5);}catch(_0x4a3662){this['_logService'][_0x3eeb0c(0x15a)](_0x4a3662);}}async['_getFormulaLimitStatus'](_0x5a582f){const _0x2e280d=_0x2466c1;var _0x4de910,_0x4d10b7;const _0x4ebc46=Date[_0x2e280d(0x28a)]();try{const _0x4304ed=((_0x4de910=this['_configService'][_0x2e280d(0x1b8)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x4de910['getformulaLimitStatusUrl'])||ts,_0x5f13e3=_0x5a582f?_0x4304ed+'?taskId='+encodeURIComponent(_0x5a582f):_0x4304ed,_0x5aee05=(await this[_0x2e280d(0x262)][_0x2e280d(0x1e6)](_0x5f13e3))[_0x2e280d(0x109)];if(((_0x4d10b7=_0x5aee05[_0x2e280d(0x15a)])==null?void 0x0:_0x4d10b7[_0x2e280d(0x23a)])!==G['OK'])return;this[_0x2e280d(0x2de)](_0x5aee05[_0x2e280d(0x287)],_0x4ebc46);}catch(_0x197225){this['_logService'][_0x2e280d(0x15a)](_0x197225);}}async[_0x2466c1(0x383)](_0xcc8f05){const _0x1725f3=_0x2466c1;var _0x5c3206,_0x2fa625;const _0xddf46b=Date[_0x1725f3(0x28a)]();try{const _0x58761a=((_0x5c3206=this['_configService']['getConfig'](u[_0x1725f3(0x305)]))==null?void 0x0:_0x5c3206['releaseFormulaLimitUrl'])||is,_0x2162b7=(await this['_httpService'][_0x1725f3(0x355)](_0x58761a,{'body':JSON[_0x1725f3(0x2a9)]({'taskId':_0xcc8f05})}))['body'];if(((_0x2fa625=_0x2162b7[_0x1725f3(0x15a)])==null?void 0x0:_0x2fa625[_0x1725f3(0x23a)])!==G['OK'])return;this[_0x1725f3(0x2de)](_0x2162b7[_0x1725f3(0x287)],_0xddf46b);}catch(_0x4be8d7){this['_logService'][_0x1725f3(0x15a)](_0x4be8d7);}}[_0x2466c1(0x29d)](){const _0xa999e0=_0x2466c1;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0xa999e0(0x2f5)]>0x0;}['_clearPolling'](){const _0x2d6fec=_0x2466c1;this[_0x2d6fec(0x1bd)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x2466c1(0x339)](){const _0x176dd0=_0x2466c1;this[_0x176dd0(0x118)][_0x176dd0(0x29b)]({'content':this[_0x176dd0(0x372)]['t'](_0x176dd0(0x295)),'type':T[_0x176dd0(0x148)][_0x176dd0(0x273)]});}[_0x2466c1(0x395)](_0x68bdd5){const _0x480225=_0x2466c1;for(const _0x4d2c82 of _0x68bdd5){const {unitId:_0x4b6262,sheetId:_0x3c72a9,range:_0x1dda2b}=_0x4d2c82,_0xcf4921=this[_0x480225(0x23e)][_0x480225(0x1ec)](_0x4b6262);if(!_0xcf4921)continue;const _0x47a532=_0xcf4921['getSheetBySheetId'](_0x3c72a9);if(!_0x47a532)continue;const _0x1bd9a7=_0x47a532[_0x480225(0x106)]();for(let _0xf6eccd=_0x1dda2b[_0x480225(0x345)];_0xf6eccd<=_0x1dda2b[_0x480225(0x202)];_0xf6eccd++)for(let _0xa0d8df=_0x1dda2b['startColumn'];_0xa0d8df<=_0x1dda2b[_0x480225(0x16c)];_0xa0d8df++){const _0x2f24f1=_0x1bd9a7[_0x480225(0x1a6)](_0xf6eccd,_0xa0d8df);if(_0x2f24f1&&(a[_0x480225(0x296)](_0x2f24f1['f'])||a[_0x480225(0x385)](_0x2f24f1['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2466c1(0x3d3)](O[_0x2466c1(0x21e)])),L(0x1,a[_0x2466c1(0x1f8)]),L(0x2,a[_0x2466c1(0x244)]),L(0x3,a[_0x2466c1(0x3d3)](x[_0x2466c1(0x280)])),L(0x4,a[_0x2466c1(0x39f)]),L(0x5,a[_0x2466c1(0xfe)]),L(0x6,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x283)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x27c255,_0x47c415,_0x29bf87,_0x2b4767)=>{for(var _0x42445e=_0x2b4767>0x1?void 0x0:_0x2b4767?ns(_0x47c415,_0x29bf87):_0x47c415,_0x3fd54b=_0x27c255['length']-0x1,_0x37b3b9;_0x3fd54b>=0x0;_0x3fd54b--)(_0x37b3b9=_0x27c255[_0x3fd54b])&&(_0x42445e=_0x37b3b9(_0x42445e)||_0x42445e);return _0x42445e;},de=(_0x372edd,_0x33dc38)=>(_0x5754bb,_0x3ffeff)=>_0x33dc38(_0x5754bb,_0x3ffeff,_0x372edd);let pe=class extends a[_0x2466c1(0x28d)]{constructor(_0x231d1b,_0x463f80,_0x82b271){const _0x40e763=_0x2466c1;super(),_(this,'_cachedData',new Map()),_(this,_0x40e763(0x141),new Map()),_(this,'_disabled',!0x1),(this[_0x40e763(0x2d4)]=_0x231d1b,this[_0x40e763(0x328)]=_0x463f80,this[_0x40e763(0x247)]=_0x82b271);}[_0x2466c1(0x117)](){const _0x3615b2=_0x2466c1;this[_0x3615b2(0x236)]=!0x0;}[_0x2466c1(0x171)](){const _0x45501b=_0x2466c1;this[_0x45501b(0x236)]=!0x1;}get[_0x2466c1(0x2c9)](){const _0x586ce3=_0x2466c1;return this[_0x586ce3(0x141)];}[_0x2466c1(0x19a)](){const _0xced886=_0x2466c1;this['exhaustSavingTask']()[_0xced886(0x2d9)](()=>super[_0xced886(0x19a)]());}async['loadOfflineData'](_0x363fdf){const _0x5b51e8=_0x2466c1;return this[_0x5b51e8(0x236)]?null:this[_0x5b51e8(0x328)][_0x5b51e8(0x317)](u[_0x5b51e8(0x1c9)](_0x363fdf));}async['saveOfflineData'](_0x144bb7,_0x58310b){const _0x369533=_0x2466c1;return!!this[_0x369533(0x328)][_0x369533(0x2c7)](_0x144bb7,_0x58310b);}[_0x2466c1(0x26d)](_0x14a32a,_0x5d9524,_0x1e5743,_0x4da349){const _0xb75bf9=_0x2466c1,_0x2203ab=this[_0xb75bf9(0x247)]['getCurrentRevOfUnit'](_0x14a32a);this[_0xb75bf9(0x259)][_0xb75bf9(0x2b6)](_0x14a32a,{'unitID':_0x14a32a,'type':_0x5d9524,'awaitingChangeset':_0x1e5743,'mutations':_0x4da349,'rev':_0x2203ab}),this[_0xb75bf9(0x141)][_0xb75bf9(0x155)](_0x14a32a)||this[_0xb75bf9(0x284)](_0x14a32a);}['_scheduleSaving'](_0x20630a){const _0x1ec056=_0x2466c1,_0x147464=this['_getSaveTimeout']();_0x147464===0x0?this['_saveCache'](_0x20630a):this[_0x1ec056(0x141)][_0x1ec056(0x2b6)](_0x20630a,setTimeout(()=>this['_saveCache'](_0x20630a),_0x147464));}[_0x2466c1(0x107)](){const _0x4dc396=_0x2466c1;var _0x1d5f02;return(_0x1d5f02=this[_0x4dc396(0x2d4)]['getConfig'](u[_0x4dc396(0x128)]))!=null?_0x1d5f02:u[_0x4dc396(0x260)];}[_0x2466c1(0x314)](_0x2e60ce){const _0x5443d5=_0x2466c1,_0x13e2ad=this[_0x5443d5(0x141)][_0x5443d5(0x1e6)](_0x2e60ce);return _0x13e2ad!==void 0x0&&window[_0x5443d5(0x34d)](_0x13e2ad),this['_localStorageService'][_0x5443d5(0x2c7)](u[_0x5443d5(0x1c9)](_0x2e60ce),this[_0x5443d5(0x259)][_0x5443d5(0x1e6)](_0x2e60ce))['then'](()=>this[_0x5443d5(0x141)][_0x5443d5(0x327)](_0x2e60ce));}async['exhaustSavingTask'](){const _0x17763f=_0x2466c1,_0x5c4edc=[];this[_0x17763f(0x141)][_0x17763f(0x21f)]((_0x3093c8,_0x22bcee)=>{const _0x156d14=_0x17763f;window['clearTimeout'](_0x3093c8),_0x5c4edc[_0x156d14(0x193)](this[_0x156d14(0x314)](_0x22bcee)[_0x156d14(0x2d9)](()=>{const _0x39df1a=_0x156d14;this[_0x39df1a(0x141)][_0x39df1a(0x327)](_0x22bcee);}));}),await Promise[_0x17763f(0x37e)](_0x5c4edc);}};pe=rs([de(0x0,a[_0x2466c1(0x244)]),de(0x1,a[_0x2466c1(0x169)]),de(0x2,a['Inject'](g[_0x2466c1(0x2c5)]))],pe);class ke extends a[_0x2466c1(0x18f)]{constructor(){const _0x1dd2cd=_0x2466c1;super(),_(this,'urlChange$'),this[_0x1dd2cd(0x3b9)]=I['fromEvent'](window,_0x1dd2cd(0x1b6))[_0x1dd2cd(0x2b9)](I['takeUntil'](this[_0x1dd2cd(0x222)]),I[_0x1dd2cd(0x25e)](0x1),I[_0x1dd2cd(0x324)](void 0x0));}[_0x2466c1(0x370)](_0x327721,_0x4b2480,_0x28e1fd=!0x1){const _0x5a6ecb=_0x2466c1,_0x59baaf=new URL(window['location'][_0x5a6ecb(0xf4)]);_0x59baaf[_0x5a6ecb(0x35f)][_0x5a6ecb(0x2b6)](_0x327721,_0x4b2480),_0x28e1fd?window[_0x5a6ecb(0x23d)][_0x5a6ecb(0x11e)]('','',_0x59baaf['toString']()):window[_0x5a6ecb(0x23d)][_0x5a6ecb(0x145)]('','',_0x59baaf['toString']());}[_0x2466c1(0x252)](_0x31b09b,_0x320162=!0x1){const _0x590e0c=_0x2466c1,_0x29f991=new URL(window[_0x590e0c(0x1c4)]['href']);_0x29f991[_0x590e0c(0x35f)][_0x590e0c(0x327)](_0x31b09b),_0x320162?window[_0x590e0c(0x23d)][_0x590e0c(0x11e)]('','',_0x29f991[_0x590e0c(0x37d)]()):window[_0x590e0c(0x23d)][_0x590e0c(0x145)]('','',_0x29f991[_0x590e0c(0x37d)]());}[_0x2466c1(0x322)](_0x441306){const _0x378239=_0x2466c1;var _0x4db033;return(_0x4db033=new URL(window[_0x378239(0x1c4)][_0x378239(0xf4)])[_0x378239(0x35f)][_0x378239(0x1e6)](_0x441306))!=null?_0x4db033:void 0x0;}}var os=Object[_0x2466c1(0x14a)],as=Object[_0x2466c1(0x229)],cs=(_0x151b6d,_0x54f4dc,_0x4ffd27)=>_0x54f4dc in _0x151b6d?os(_0x151b6d,_0x54f4dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ffd27}):_0x151b6d[_0x54f4dc]=_0x4ffd27,ls=(_0x33b002,_0x2ce020,_0x499d12,_0x2ef1de)=>{const _0x9534d=_0x2466c1;for(var _0x11f624=_0x2ef1de>0x1?void 0x0:_0x2ef1de?as(_0x2ce020,_0x499d12):_0x2ce020,_0x34c112=_0x33b002[_0x9534d(0x29e)]-0x1,_0x11235a;_0x34c112>=0x0;_0x34c112--)(_0x11235a=_0x33b002[_0x34c112])&&(_0x11f624=_0x11235a(_0x11f624)||_0x11f624);return _0x11f624;},Se=(_0x856000,_0x4c42a2)=>(_0x575dcc,_0x498c5a)=>_0x4c42a2(_0x575dcc,_0x498c5a,_0x856000),_s=(_0x226e63,_0x1e65f3,_0x351f7e)=>cs(_0x226e63,_0x1e65f3+'',_0x351f7e);const hs=_0x2466c1(0x245);exports[_0x2466c1(0x33d)]=class extends a[_0x2466c1(0x384)]{constructor(_0x1df667=Me,_0x582e18,_0x269588,_0x173f79){const _0x6a8c39=_0x2466c1;super(),this[_0x6a8c39(0x162)]=_0x1df667,this['_renderManagerService']=_0x582e18,this[_0x6a8c39(0x32b)]=_0x269588,this[_0x6a8c39(0x2d4)]=_0x173f79;const {..._0x4a33cc}=a[_0x6a8c39(0x1fb)]({},Me,this[_0x6a8c39(0x162)]);this[_0x6a8c39(0x2d4)]['setConfig'](Yt,_0x4a33cc);}[_0x2466c1(0x257)](){const _0xc120c2=_0x2466c1;this[_0xc120c2(0x3bf)](),this['_initDependencies']();}[_0x2466c1(0x3a0)](){const _0x31241c=_0x2466c1;this[_0x31241c(0x3b6)]();}['_registerDependencies'](){const _0x34c68a=_0x2466c1;var _0x9a678f;const _0x20f690=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x34c68a(0x33b)],{'useClass':x[_0x34c68a(0x211)]}],[u[_0x34c68a(0x2d1)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x34c68a(0x162)]['enableFrontendLog']&&_0x20f690['push']([Q]),a[_0x34c68a(0x189)](this[_0x34c68a(0x32b)],a[_0x34c68a(0x13a)](_0x20f690,(_0x9a678f=this[_0x34c68a(0x162)])==null?void 0x0:_0x9a678f[_0x34c68a(0x392)]));}[_0x2466c1(0x3b6)](){const _0x1a744e=_0x2466c1;this[_0x1a744e(0x347)](this[_0x1a744e(0x1b7)][_0x1a744e(0x210)](a[_0x1a744e(0x2ef)][_0x1a744e(0x2d6)],[Ee])),this['disposeWithMe'](this[_0x1a744e(0x1b7)]['registerRenderModule'](a[_0x1a744e(0x2ef)]['UNIVER_SHEET'],[Ce]));}['_initDependencies'](){const _0x342afd=_0x2466c1;a['touchDependencies'](this[_0x342afd(0x32b)],[[F],[exports[_0x342afd(0xf9)]],[ie],[Z],[exports[_0x342afd(0x126)]],[ne]]),this[_0x342afd(0x162)][_0x342afd(0x337)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x2466c1(0x1a1),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x2466c1(0x26a)](u['UniverCollaborationClientPlugin']),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),Se(0x3,a[_0x2466c1(0x244)])],exports[_0x2466c1(0x33d)]);var us=Object[_0x2466c1(0x229)],Is=(_0x29e594,_0x71b2af,_0x196c91,_0x463ba5)=>{const _0x19eb68=_0x2466c1;for(var _0x17c8b9=_0x463ba5>0x1?void 0x0:_0x463ba5?us(_0x71b2af,_0x196c91):_0x71b2af,_0x315919=_0x29e594[_0x19eb68(0x29e)]-0x1,_0x3209f1;_0x315919>=0x0;_0x315919--)(_0x3209f1=_0x29e594[_0x315919])&&(_0x17c8b9=_0x3209f1(_0x17c8b9)||_0x17c8b9);return _0x17c8b9;},W=(_0x69c342,_0x39a7cc)=>(_0x4e311b,_0x3fa54f)=>_0x39a7cc(_0x4e311b,_0x3fa54f,_0x69c342);exports['BrowserCollaborationSocketService']=class extends u[_0x2466c1(0x272)]{constructor(_0x48cd1e,_0x48ab86,_0x3f3987,_0xd3bd66,_0x377f9c){super(_0x48cd1e,_0x48ab86,_0x3f3987,_0xd3bd66,_0x377f9c);}async['createSocket'](_0x532f72){const _0x2be314=_0x2466c1,_0x549ca0=await this[_0x2be314(0x3b3)](),_0x5ec6f3=this['_createSocketURL'](_0x532f72,_0x549ca0);return this['_doCreateSocket'](_0x5ec6f3);}[_0x2466c1(0x19c)](_0x48d16d,_0x422acd){const _0x568b4a=_0x2466c1,_0xe58447=typeof window>'u'?new URL(_0x48d16d):new URL(_0x48d16d,window[_0x568b4a(0x1c4)][_0x568b4a(0x1b0)]);_0xe58447[_0x568b4a(0x35f)][_0x568b4a(0x2b6)](_0x568b4a(0x1ea),_0x422acd);const _0x49b78f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x568b4a(0x1c4)][_0x568b4a(0x1ff)]);return _0x49b78f[_0x568b4a(0x1e6)](_0x568b4a(0x22a))&&_0xe58447[_0x568b4a(0x35f)]['set'](_0x568b4a(0x22a),_0x49b78f[_0x568b4a(0x1e6)](_0x568b4a(0x22a))),_0xe58447[_0x568b4a(0x37d)]();}async[_0x2466c1(0x3b3)](){const _0x32f3c4=_0x2466c1;var _0x2b893b,_0x5f22bf,_0x400b18;const _0x9645d9=this[_0x32f3c4(0x2d4)][_0x32f3c4(0x1b8)](u[_0x32f3c4(0x305)]),_0x513b03=(_0x2b893b=_0x9645d9==null?void 0x0:_0x9645d9['wsSessionTicketUrl'])!=null?_0x2b893b:u[_0x32f3c4(0x381)];return(_0x400b18=(_0x5f22bf=(await this[_0x32f3c4(0x262)][_0x32f3c4(0x1e6)](_0x513b03,{'headers':{'Content-Type':_0x32f3c4(0x19e)}}))['body'])==null?void 0x0:_0x5f22bf[_0x32f3c4(0x24a)])!=null?_0x400b18:'';}},exports[_0x2466c1(0x336)]=Is([W(0x0,a[_0x2466c1(0x3d3)](a[_0x2466c1(0x2d5)])),W(0x1,a['Inject'](x[_0x2466c1(0x280)])),W(0x2,a['IConfigService']),W(0x3,a['ILogService']),W(0x4,g[_0x2466c1(0x319)])],exports[_0x2466c1(0x336)]);var ds=Object[_0x2466c1(0x229)],Ss=(_0x36703d,_0x37bf56,_0x1107c5,_0x51b174)=>{for(var _0x2deac9=_0x51b174>0x1?void 0x0:_0x51b174?ds(_0x37bf56,_0x1107c5):_0x37bf56,_0x39b1c2=_0x36703d['length']-0x1,_0x550906;_0x39b1c2>=0x0;_0x39b1c2--)(_0x550906=_0x36703d[_0x39b1c2])&&(_0x2deac9=_0x550906(_0x2deac9)||_0x2deac9);return _0x2deac9;},fe=(_0xc87b9b,_0x57e08f)=>(_0x25c360,_0x45d662)=>_0x57e08f(_0x25c360,_0x45d662,_0xc87b9b);exports[_0x2466c1(0x288)]=class extends a[_0x2466c1(0x28d)]{constructor(_0x3e4375,_0x2a77bc,_0x5d1b14){const _0x1c23d1=_0x2466c1;super(),this[_0x1c23d1(0x3a4)]=_0x3e4375,this[_0x1c23d1(0x262)]=_0x2a77bc,this[_0x1c23d1(0x2d4)]=_0x5d1b14;}async['runOnServer'](_0xb21a5e,_0x319ef3,_0x3c7399,..._0x2e1b58){const _0x29152a=_0x2466c1;var _0x1f53d4,_0x11e6b5,_0x2919fd,_0x40ef4c;const _0x1f78a9=this['_instanceService']['getFocusedUnit']();if(!_0x1f78a9)throw new Error(_0x29152a(0x386));const _0x5c8abe=((_0x1f53d4=this[_0x29152a(0x2d4)][_0x29152a(0x1b8)](u[_0x29152a(0x11f)]))!=null?_0x1f53d4:u[_0x29152a(0x32a)])+'/'+_0xb21a5e+_0x29152a(0x1aa)+_0x319ef3,_0x593d1c=new URL(window[_0x29152a(0x1c4)][_0x29152a(0xf4)]),_0x4b04d0={'scriptId':_0xb21a5e,'runId':(_0x11e6b5=_0x593d1c[_0x29152a(0x35f)][_0x29152a(0x1e6)](_0x29152a(0x22a)))!=null?_0x11e6b5:'','function':_0x319ef3,'unitId':_0x1f78a9[_0x29152a(0xfb)](),'argsOfFunction':JSON[_0x29152a(0x2a9)](_0x2e1b58),'invokeId':(_0x2919fd=_0x3c7399[_0x29152a(0x101)])!=null?_0x2919fd:'','executionId':(_0x40ef4c=_0x3c7399[_0x29152a(0x178)])!=null?_0x40ef4c:''};try{const _0x6a4d5b=await this[_0x29152a(0x262)][_0x29152a(0x355)](_0x5c8abe,{'body':_0x4b04d0});return _0x6a4d5b[_0x29152a(0x109)][_0x29152a(0x15a)]&&_0x6a4d5b[_0x29152a(0x109)][_0x29152a(0x15a)]['code']!==G['OK']?_0x29152a(0x3ca):_0x6a4d5b[_0x29152a(0x109)][_0x29152a(0x195)];}catch{return'Failed';}}},exports[_0x2466c1(0x288)]=Ss([fe(0x0,a[_0x2466c1(0x39f)]),fe(0x1,a[_0x2466c1(0x3d3)](x['HTTPService'])),fe(0x2,a[_0x2466c1(0x244)])],exports[_0x2466c1(0x288)]);const we=0x7530,ye=_0x2466c1(0x3be);class fs extends a[_0x2466c1(0x28d)]{constructor(){const _0x2b6cef=_0x2466c1;super(),_(this,_0x2b6cef(0x209),a[_0x2b6cef(0x349)]()),_(this,_0x2b6cef(0x1d2),new Set()),_(this,_0x2b6cef(0x251),new Map()),_(this,_0x2b6cef(0x228),null),_(this,_0x2b6cef(0x2f0),new Map()),_(this,_0x2b6cef(0x3ba),new Map()),this[_0x2b6cef(0x1dd)]();}['dispose'](){const _0x5628a3=_0x2466c1;super['dispose'](),this[_0x5628a3(0x2f0)][_0x5628a3(0x21f)]((_0x31115d,_0x4cfc92)=>this[_0x5628a3(0x2bf)](_0x4cfc92)),this[_0x5628a3(0x228)]&&window[_0x5628a3(0x15c)](this[_0x5628a3(0x228)]);}['getUnitStatus$'](_0x100fca){const _0x1bfc83=_0x2466c1;return this[_0x1bfc83(0x30e)](_0x100fca)[_0x1bfc83(0x2b9)](I[_0x1bfc83(0x154)]());}['editingUnit'](_0xe1b8d4){const _0x1ebf94=_0x2466c1;this[_0x1ebf94(0x1d2)]['size']===0x0&&this[_0x1ebf94(0x2ae)](),this[_0x1ebf94(0x1d2)][_0x1ebf94(0xfa)](_0xe1b8d4),this[_0x1ebf94(0x102)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xe1b8d4],'isForwarded':!0x1});}['disposeUnit'](_0x12cd37){const _0x10d1c3=_0x2466c1;this[_0x10d1c3(0x1d2)][_0x10d1c3(0x327)](_0x12cd37),this[_0x10d1c3(0x1d2)]['size']===0x0&&this[_0x10d1c3(0x228)]&&window[_0x10d1c3(0x15c)](this[_0x10d1c3(0x228)]);}['_init'](){const _0xd1654f=_0x2466c1;this[_0xd1654f(0x347)](a[_0xd1654f(0x183)](I['fromEvent'](window,_0xd1654f(0x206))['subscribe'](_0x5d8273=>{const _0xd85b79=_0xd1654f;if(_0x5d8273[_0xd85b79(0x3d2)]!==ye||!_0x5d8273[_0xd85b79(0x31f)])return;const _0x4cad54=JSON[_0xd85b79(0x3c1)](_0x5d8273[_0xd85b79(0x31f)]);this[_0xd85b79(0x2d3)](_0x4cad54);}))),window['addEventListener']('unload',()=>this[_0xd1654f(0x102)]({'type':0x1,'memberID':this[_0xd1654f(0x209)],'unitIDs':Array[_0xd1654f(0x238)](this['_selfUnitIDs'])}));}[_0x2466c1(0x2d3)](_0x1dd4f6){const _0x26e832=_0x2466c1;switch(_0x1dd4f6[_0x26e832(0x14f)]){case 0x0:this[_0x26e832(0x25a)](_0x1dd4f6);break;case 0x1:this[_0x26e832(0x2f7)](_0x1dd4f6);break;case 0x2:this[_0x26e832(0x3d0)](_0x1dd4f6);break;}}[_0x2466c1(0x25a)](_0xae6c66){const _0x252817=_0x2466c1,{unitIDs:_0x2bc715,memberID:_0x4e41e2,isForwarded:_0x326fe3}=_0xae6c66;_0x2bc715[_0x252817(0x21f)](_0x432034=>{const _0x3a016a=_0x252817;if(!_0x326fe3&&this['_unitOnClients'][_0x3a016a(0x155)](_0x432034)&&this[_0x3a016a(0x30e)](_0x432034)[_0x3a016a(0x37f)](u[_0x3a016a(0x290)]['OTHER_CLIENTS_EDITING']),!this[_0x3a016a(0x251)]['has'](_0x432034)||!this[_0x3a016a(0x251)][_0x3a016a(0x1e6)](_0x432034)[_0x3a016a(0x155)](_0x4e41e2)){const _0x12922c=this[_0x3a016a(0x251)][_0x3a016a(0x1e6)](_0x432034)||new Set();_0x12922c[_0x3a016a(0xfa)](_0x4e41e2),this[_0x3a016a(0x251)][_0x3a016a(0x2b6)](_0x432034,_0x12922c),this['_scheduleClearOtherTimer'](_0x4e41e2);}}),_0x326fe3||this[_0x252817(0x102)]({'type':0x0,'memberID':this[_0x252817(0x209)],'unitIDs':[...this[_0x252817(0x1d2)]],'isForwarded':!0x0});}[_0x2466c1(0x26b)](_0x114a67){const _0x3ae04e=_0x2466c1;this[_0x3ae04e(0x2bf)](_0x114a67);const _0x197da4=window['setTimeout'](()=>{const _0x2c5e6e=_0x3ae04e;this[_0x2c5e6e(0x251)][_0x2c5e6e(0x21f)](_0x431fe0=>{const _0x2c6a1e=_0x2c5e6e;_0x431fe0[_0x2c6a1e(0x327)](_0x114a67);});},we*0x2);this[_0x3ae04e(0x2f0)][_0x3ae04e(0x2b6)](_0x114a67,_0x197da4);}['_removeClearOtherTimer'](_0x55f15c){const _0x527ce4=_0x2466c1;if(this[_0x527ce4(0x2f0)][_0x527ce4(0x155)](_0x55f15c)){const _0xabd2cd=this[_0x527ce4(0x2f0)][_0x527ce4(0x1e6)](_0x55f15c);_0xabd2cd&&window[_0x527ce4(0x34d)](_0xabd2cd),this[_0x527ce4(0x2f0)][_0x527ce4(0x2b6)](_0x55f15c,null);}}[_0x2466c1(0x2f7)](_0x4b8610){const _0x3b1127=_0x2466c1,{memberID:_0x5c4996,unitIDs:_0x9b21f2}=_0x4b8610;_0x9b21f2[_0x3b1127(0x21f)](_0x2794a0=>{const _0x5351b1=_0x3b1127;var _0x392b79;const _0x59f4b1=this[_0x5351b1(0x251)][_0x5351b1(0x1e6)](_0x2794a0);_0x59f4b1&&(_0x59f4b1[_0x5351b1(0x327)](_0x5c4996),(_0x392b79=this[_0x5351b1(0x30e)](_0x2794a0))==null||_0x392b79[_0x5351b1(0x37f)](_0x59f4b1[_0x5351b1(0x2ed)]===0x0?u[_0x5351b1(0x290)][_0x5351b1(0x110)]:u[_0x5351b1(0x290)][_0x5351b1(0x170)]));}),this['_removeClearOtherTimer'](_0x5c4996);}['_handleHeartbeatEvent'](_0x481b9a){const _0x2d63e5=_0x2466c1;this[_0x2d63e5(0x26b)](_0x481b9a[_0x2d63e5(0x3c0)]);}['_send'](_0x5f3d23){const _0x2450ac=_0x2466c1;localStorage[_0x2450ac(0x2c7)](ye,JSON['stringify'](_0x5f3d23));}['_scheduleHeartbeat'](){const _0x19f837=_0x2466c1;this[_0x19f837(0x228)]=window[_0x19f837(0x342)](()=>{const _0x120472=_0x19f837;this[_0x120472(0x102)]({'type':0x2,'memberID':this[_0x120472(0x209)]});},we);}['_ensureSubject'](_0x4ee9b4){const _0x194643=_0x2466c1;return this[_0x194643(0x3ba)][_0x194643(0x155)](_0x4ee9b4)||this[_0x194643(0x3ba)]['set'](_0x4ee9b4,new I[(_0x194643(0x398))](u['UnitStatus'][_0x194643(0x110)])),this[_0x194643(0x3ba)][_0x194643(0x1e6)](_0x4ee9b4);}}function _0xdc31(_0x4b6a48,_0x34c4db){const _0x17446e=_0x1744();return _0xdc31=function(_0xdc31e3,_0x1a73e1){_0xdc31e3=_0xdc31e3-0xf4;let _0x4f0e2b=_0x17446e[_0xdc31e3];return _0x4f0e2b;},_0xdc31(_0x4b6a48,_0x34c4db);}exports[_0x2466c1(0x1e3)]=Oe,exports['SheetCollabCursorShape']=je,exports[_0x2466c1(0x2b5)]=fs,exports[_0x2466c1(0x2a1)]=ke;