@univerjs-pro/collaboration-client-ui 0.15.1-insiders.20260117-8ce4a01 → 0.15.2-insiders.20260119-edc718c

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 +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x336b69=_0x1218;(function(_0x17c306,_0x25eccc){const _0x41b06c=_0x1218,_0x173e45=_0x17c306();while(!![]){try{const _0x45349c=parseInt(_0x41b06c(0x20f))/0x1*(parseInt(_0x41b06c(0x23d))/0x2)+parseInt(_0x41b06c(0x1c0))/0x3+-parseInt(_0x41b06c(0x304))/0x4*(-parseInt(_0x41b06c(0x3b8))/0x5)+-parseInt(_0x41b06c(0x2c2))/0x6*(-parseInt(_0x41b06c(0x1ae))/0x7)+parseInt(_0x41b06c(0x2d6))/0x8+parseInt(_0x41b06c(0x205))/0x9*(-parseInt(_0x41b06c(0x2d4))/0xa)+-parseInt(_0x41b06c(0x2d1))/0xb*(parseInt(_0x41b06c(0x22b))/0xc);if(_0x45349c===_0x25eccc)break;else _0x173e45['push'](_0x173e45['shift']());}catch(_0x631b71){_0x173e45['push'](_0x173e45['shift']());}}}(_0x4ae8,0xed9e2));var Yt=Object[_0x336b69(0x374)],Wt=(_0x36bb20,_0x5b8ef4,_0x342cf7)=>_0x5b8ef4 in _0x36bb20?Yt(_0x36bb20,_0x5b8ef4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342cf7}):_0x36bb20[_0x5b8ef4]=_0x342cf7,_=(_0x5d0c13,_0x40d0d9,_0x170735)=>Wt(_0x5d0c13,typeof _0x40d0d9!='symbol'?_0x40d0d9+'':_0x40d0d9,_0x170735);import{jsx as _0x20ffbc,jsxs as _0x5ba8d4}from'react/jsx-runtime';import{CollaborationStatus as _0x25c0b2,CollaborationSessionService as _0x27b9ee,CollaborationController as _0x3064e9,DataLoaderService as _0xdc040f,MemberService as _0x5e87a1,SessionStatus as _0x20543d,ILocalCacheService as _0x3e0fc1,CollaborationUIEventService as _0xa5e1f8,CollaborationUIEventId as _0xa1351b,DocCollaborationEntity as _0x337689,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x41e428,getLocalCacheKey as _0xb6c497,LOCAL_CACHE_INTERVAL as _0x442912,LOCAL_CACHE_INTERVAL_KEY as _0x4324cd,UniverCollaborationClientPlugin as _0x54bfce,CollaborationSocketService as _0x28ce85,DEFAULT_WS_SESSION_TICKET_URL as _0x3de23a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3a4421,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1dee24,UnitStatus as _0x2fce61}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xa807ff,IUniverInstanceService as _0x2f0580,Inject as _0x1f3b74,Injector as _0x55778f,Disposable as _0x47faf0,createIdentifier as _0x23c17d,ILogService as _0x46a5d6,ICommandService as _0x357354,Optional as _0x36ee56,RxDisposable as _0x3740ac,Workbook as _0x44de5a,DOC_RANGE_TYPE as _0x1244aa,debounce as _0x17280b,Rectangle as _0x14473f,DisposableCollection as _0x32499b,toDisposable as _0x2e6fe6,UniverInstanceType as _0x17d204,generateRandomId as _0x20f381,COLORS as _0x2db046,ColorKit as _0x1530d2,ThemeService as _0x2d8190,fromEventSubject as _0x3f4092,Tools as _0x2e1b8b,CommandType as _0x772392,IConfigService as _0x5535b0,CanceledError as _0x5a3906,isFormulaString as _0x5a048f,isFormulaId as _0x36a326,ILocalStorageService as _0x57b3cd,DependentOn as _0x2dfe5c,Plugin as _0x3a70dd,merge as _0x4338d3,registerDependencies as _0x4bba14,mergeOverrideWithDependencies as _0x2f9ba7,touchDependencies as _0xdb9170}from'@univerjs/core';import{useObservable as _0x41e882,useDependency as _0x45cec5,IUIPartsService as _0x30d18e,BuiltInUIPart as _0x1683bb,connectInjector as _0x1809e3,IBeforeCloseService as _0x18cfb9,IMessageService as _0x44f301,INotificationService as _0x465975}from'@univerjs/ui';import{BehaviorSubject as _0x2b7d7c,switchMap as _0x37e715,of as _0x146fb2,takeUntil as _0xa786ea,debounceTime as _0x308d02,Subject as _0x28089e,filter as _0x4289d3,merge as _0xd15dc1,combineLatest as _0x76606a,fromEvent as _0x528a9c,shareReplay as _0x57c9ba,mapTo as _0x4d0f5f,distinctUntilChanged as _0x3bd83f}from'rxjs';import{Tooltip as _0x5f4841,clsx as _0x5e878b,MessageType as _0x1e0dd6}from'@univerjs/design';import{useRef as _0x54ce02,createElement as _0x49b531,forwardRef as _0x8be1fc,useCallback as _0x7863db}from'react';import{IRemoteInstanceService as _0x19f63}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x54f668,RefRangeService as _0x2ad149,SetSelectionsOperation as _0xafce45,SheetsSelectionsService as _0x14a79e,EffectRefRangId as _0x1ae548,handleIRemoveRow as _0x3ab4a6,handleIRemoveCol as _0x4551c6,handleMoveRange as _0x452071,handleInsertRow as _0x328033,handleInsertRangeMoveRight as _0x17d92e,handleInsertRangeMoveDown as _0x1fa1a8,handleInsertCol as _0xb8b10b,handleDeleteRangeMoveUp as _0x4214be,handleDeleteRangeMoveLeft as _0x301ab8,runRefRangeMutations as _0x1b59de}from'@univerjs/sheets';import{Shape as _0x3fbe23,Rect as _0x4c96b3,getColor as _0x31f559,RegularPolygon as _0x422925,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x48b565,Vector2 as _0x44dd9b,SHEET_VIEWPORT_KEY as _0x3e6743,IRenderManagerService as _0x4b34f5}from'@univerjs/engine-render';import{HTTPService as _0x348fb4,ISocketService as _0x4c05fd,WebSocketService as _0x3cc20b}from'@univerjs/network';import{IDocClipboardService as _0x48b5f8,NodePositionConvertToCursor as _0x294d8d,NodePositionConvertToRectRange as _0x32b79b,TEXT_RANGE_LAYER_INDEX as _0xf0767,SetDocZoomRatioOperation as _0x5a5e2d,DocIMEInputManagerService as _0x260945,DocStateChangeManagerService as _0x3c247d}from'@univerjs/docs-ui';import{IImageIoService as _0x2bd3cf}from'@univerjs/drawing';import{ITransformService as _0x16b512,CollaborationEvent as _0x211eaa,isTransformMutationFailure as _0x3715d3,isTransformMutationsWithChangesetSuccess as _0x5aa1a3,RevisionService as _0x41ca19,ISnapshotServerService as _0x1b188b}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x562414,RichTextEditingMutation as _0x1c2f72,DocSelectionManagerService as _0x2babfd,DocSkeletonManagerService as _0x2b11b8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x9ae94d,serializeRangeWithSheet as _0x40bb83,FormulaExecuteStageType as _0x5c6274,FormulaExecutedStateType as _0x51f4d5,SetFormulaCalculationStartMutation as _0x8ebdf5,SetFormulaCalculationNotificationMutation as _0x4826e4}from'@univerjs/engine-formula';function _0x4ae8(){const _0x297c1f=['APPLY_REJECT','_colorIndex','#FFF','ALREADY_EXISTS','_docStateChangeManagerService','reconnect','_transformHistoryAndStateStack','/run/','map','\x20at\x20','getVpScrollXYInfoByPosToVp','round','transformByState','findNodePositionByCharIndex','unload','_toggleOffline','fillRule','url(#$1','SOCKET_FAILED_RETRY','unsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','with','sessionStatus$','data','collabCursorState$','add','ENTITLE_COUPON_EXPIRED','saveTaskMap','cursorInfo','_initUserListener','registerRefRange','_unitStatus','_colorAssignService','lineno','_refreshCollabCursors','_initStatusComponent','getStateCache','YUUMI_CONNECTOR_URL_NOT_FOUND','startsWith','addEventListener','_collaborationSessionService','_hasFormulaInDirtyRanges','InsertRowCommandId','_getFormulaLimitStatus','COMPLETION_FINISHED','unitId','getCollabCursors$','beginPath','getUnhiddenWorksheets','setItem','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_localCacheService','getCurrent','text','startFormulaLimitUrl','getformulaLimitStatusUrl','UNIVER_SHEET','pluginName','replaceState','saveOfflineData','startRow','formula.calculation.unable','_range','doc.mutation.rich-text-editing','getUnitStatus$','_heartbeatTimer','YUUMI_UNABLE_LOAD_URL','_applyCommand','_taskIds','save','_memberID','_notificationService','sessionTicket','color','set','collabStatus.notCollab','_localeService','_handleJoinEvent','UNIVER_DOC','message','ENTITLE_NEED_BILLING_ADDRESS','1em','2382voorFA','YUUMI_URL_COL_OUT_OF_RANGE','CONFLICT','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','memberID','subscribeEvent','setShapeProps','NOT_COLLAB','getOffsetConfig','range','registerRenderModule','addObjects','_renderManagerService','find','filename','2540527fXVxdk','session.collaboration-timeout','top','27870ZJzzWC','_config','10106328owzFWa','collab-text-range-','_eventUnsubscribe','endColumn','_messageService','AWAITING_WITH_PENDING','CHANGESET_REVISION_CONFILICT','clearTimeout','getUndoRedoMutationParamsCache','_getScale','_initDependencies','attrs','Failed','_document','_injector','_initStatusListener','storage','getValue','FromArray','debug','popstate','0\x200\x2016\x2016','[LogService\x20Error]:\x20','_configService','undoState','mutations','InsertRangeMoveRightCommandId','_handleEvent','status$','UNRECOGNIZED','fillText','syncEditingCollabCursor','div','getItem','_setupBeforeClosingHandler','parse','use','getTypeOfUnitAdded$','_initEntityListener','path','_disabled','all','loadOfflineData','stringify','ACTIVE_UNIT_EVENT_CHANNEL','selections','80zJisxx','getAncestorScale','_collabCursorController','_setupSubUnitSync','collab-text-anchor-','onCommandExecuted','UPDATE_CURSOR','height','transformStateCache','univer-flex\x20univer-items-center','PERMISSION_DENIED','getTypeOfUnitDisposed$','black','_send','_uiPartsService','asObservable','roomMembers','evenodd','_unitOnClients','arc','getConfig','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','clearInterval','setActiveRange','getActiveSheet','collabStatus.offline','_name','setTimeout','getCurrentUnitForType','_docClipboardService','_initUnhandledRejectionListener','_scheduleHeartbeat','Loading','_initCommandInterceptor','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','YUUMI_ASYNCIO_CANCELLED','resize','defs','getCollabEntity$','name','width','ENTITLE_USE_COUPON_NOT_1ST_TRADE','dispose$','?taskId=','_beforeCloseService','sheetID','_docSyncEditingCollabCursorService','some','JOIN_ROOM_FAILED','/universer-api/license/formula/limit/done','requireSession','functionsExecutedState','_backgroundColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','beforeCommandExecuted','jiqing.500','Warning','ERROR_AGAIN','createInstance','INVALID_INVITE_CODE','_showGuardMessage','collabStatus.synced','getMemberID','_httpService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_checkCalculationAvailable','_updateLocalCursor','_render','urlChange$','_doCreateSocket','shift','_getSaveTimeout','saveImage','_collaborationUIEventService','isArray','_assignedColors','getUnitId','CURRENT_STATUS_CANNOT_OPERATE','APPLY_NON_SEQUENTIAL_REVISION','_removeCollabCursors','loadUnit','init','isEditing','svg','column','INVALID_ARGUMENT','getMergeData','getViewport','collabStatus.fetchMiss','_anchorDot','onLocalMutation','collaboration.offline-data-not-saved','setAlpha','imageSourceType','join','uni.network.url-service','row','values','NOT_FOUND','bind','_labelPosition','toString','bottom','getSkeleton','setParam','UniverIcon','fill','_currentUsage','push','RECT','focused$','m1Prime','defineProperty','show','body','split','disposeUnit','runOnServer','ONLINE','getMember','REDEMPTION_USER_REDEEM_TIMES_EXCEED','source','subUnitId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','drawWith','defIds','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_clearPolling','_cursorShapes','ENTITLE_COUPON_USED_UP','dispose','limitInfo','transformMutationsWithChangeset','purple.300','_getSheetObject','onTransformChange$','getOwnPropertyDescriptor','setInterval','getUniverSheetInstance','_getMergeRange','_toggleOnline','translate(.97)','ENTITLE_INSUFFICIENT_QUOTA','getDocRanges','socket$','_registerDependencies','_logService','code','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_updateCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','_docSkeletonManagerService','LOGIN_TOKEN_PROCESSING_FAILED','_collabCursorState$','exhaustSavingTask','string','params','PENDING','key','selection','_pollingInterval','_commandService','error','deepClone','_selfUnitIDs','location','REDEMPTION_INVALID_CODE','m2Prime','xlink:href','idSuffix','_handleHover','_imageIoService','_createSocketURL','_initResize','LICENSE_DISTRO_REJECTED','_docSkeleton','_ensureSubject','_getSessionTicket','hovered','APPLY_REVISION_CONFILICT','27815NNTJZF','_updateSubUnitFromURLParams','length','disposeWithMe','forEach','SUBMIT_CHANGESET_TIMEOUT','INVITE_CODE_HAS_BEEN_UES','_initEvent','formula.calculation.started','get','_urlService','ticket','getSheetBySheetId','_id','history','off-line-icon','PY_RUNTIME_SCRIPT_ERROR','univerjs-icon\x20univerjs-icon-','getFocusedUnit','_monkeyPatchLogService','delete','ENTITLE_CHAT_LIMIT_EXCEED','ranges','newValue','onPointerLeave$','collab-rect-range-','_registerRenderDependencies','on-line-icon_clip0_910_349','transformSelections','substring','OFFLINE','backgroundColor','currentTheme$','registerComponent','_saveTaskMap','collabStatus.syncing','LICENSE_IMPORT_SIZE_EXCEEDED','DATA_SOURCE_TOO_LARGE','CLOSE_ROOM','_draw','_startSheetCollabCursor','enableLocalCache','send','_refRangeService','_drawAnchor','isActive','_status$','getActiveRange','_docTransformStateCacheService','displayName','_drawRectRange','setStateCache','entries','REDEMPTION_CODE_HAS_BEEN_CREATED','AWAITING','PAYMENT_CHANNEL_NOT_SUPPORT','blue.400','random','_startCalculationLimit','has','CONNECTOR_DATA_TOO_LARGE','executeCommand','LOGIN_FAILED','url(#on-line-icon_clip0_910_349)','[RemoteUniscriptService]:\x20no\x20focused\x20unit','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_DUPLICATED','getUnit','measureText','stageInfo','_handleHeartbeatEvent','lineTo','disableLocalCache','OTHER_CLIENTS_EDITING','currentSkeleton$','/universer-api/license/formula/limit/start','registerBeforeClose','_dataLoaderService','assignAColorForMemberID','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_textBubble','11956KRZUCf','whenReady','_onCursorDelete','_setFormulaLimitStatus','pushState','actions','_collabSessionService','EMAIL_VERIFY_CODE_MISMATCH','TEXT','YUUMI_SUBSCRIPTION_NOT_FOUND','now','subscribe','mask','_revisionService','redoState','INVITE_CODE_REQUIRED','getSheetId','makeDirty','3768222sQQcsF','_cursors','restore','_init','_initWindowErrorListener','_scheduleClearOtherTimer','M0\x200H16V16H0z','WECHAT_HAS_BEEN_BOUND','setConfig','roomMembers$','dirtyRanges','toRgbString','moveTo','min','fillStyle','/universer-api/frontend/logs','_docTransformSelectionsService','_removeClearOtherTimer','_onCursorUpdate','_roomMembers$','onMouseMove','USER_IS_ANONYMOUS','USER_NOT_INVITED_CODE','includes','getRenderById','_maxFormulaLimit','MOBILE_HAS_BEEN_BOUND','formula.calculation.waiting','_localStorageService','INVITE_CODE_ALREADY_BOUND','_online','removeParam','_lastResponseTimestamp','unshift','_collaborationController','transform','LICENSE_MAX_UNITS_EXCEEDED','getCellMatrix','AUTHORIZE_CODE_ILLEGAL','enableFrontendLog','parseInt','releaseFormulaLimitUrl','YUUMI_NO_CUBOID_FOR_QUESTION','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_AI_RUN_FAILED','stage','textRanges','_univerInstanceService','skeleton','getColorFromTheme','getParam','red.300','docStateChange$','_sheetSkeletonManagerService','OffLineIcon','_hovered','_themeService','then','getRelativeToViewportCoord','pipe','flatMap','removeEventListener','endRow','_clearOtherTimers','runId','/universer-api/license/formula/limit/status','unitID','off-line-icon_clip0_910_343','_scene','2070EcygUp','ENTITLE_DUP_SUBSCRIPTION','_instanceService','_color','UNAUTHENTICATED','currentColor','unit','Error','activeSheet$','_shapes','1omZrBj','invokeId','current','subunit','collaboration.single-unit.warning','addHandlerCallback','_hover','_docTransformIMECacheService','OTHER_CLIENT_EDITING','href','clipPath','transformMutation','onPointerMove$','REDEMPTION_CODE_FULLY_REDEEMED','_releaseCalculationLimit','url(#off-line-icon_clip0_910_343)','white','from','Unknown\x20user','_session','catch','onStarting','START_CALCULATION','tag','_drawTextRange','_uploadLog','next','colno','96wmjIse','univer-mr-2\x20univer-flex\x20univer-text-xl','_entities','USER_NOT_FOUND','APPLY_PERMISSION_DENIED','_updateURLWithCurrentState','post','[CollaborationDataLoaderController]','ENTITLE_REPORT_LIMIT_EXCEED','assign','size','REDEMPTION_USER_NOT_ELIGIBLE','_handleLeaveEvent','on-line-icon','YUUMI_ALL_TABLES_IS_INVALID','UNDEFINED','InsertRangeMoveDownCommandId','getCurrentSelections','306494NIYinO','_initCommandExecutedListener','_transformPreviousActiveRange','getRangePointData','_memberService','override','INTERNAL_ERROR','stack','collab-client.tooltip.reconnect','_hideTimer','_context','_saveCache','transformRemoteChangeset','colorChannel1','_entityInit$','getCellPositionByOffset','max','_syncEditingCollabCursorService','wsSessionTicketUrl','addObject','session.will-retry','unhandledrejection','transformIMECache','_getAnchorBounding','startColumn','onPointerEnter$','font','collaboration.closeRoom','hide','replaceDocRanges','_anchor','REDEMPTION_CODE_INACTIVE','cursorInfo$','event$','...','application/json','searchParams','complete','type','executionId','entityInit$','[Unhandled\x20Rejection]:\x20','ENTITLE_INVALID_COUPON_CODE','EMAIL_HAS_BEEN_BOUND','[Window\x20Error]:\x20','_startDocCollabCursor','updateOfflineData','YUUMI_TABLE_NOT_FOUND_IN_UNIT','http://www.w3.org/2000/svg','_cursorInfo$','_transformService'];_0x4ae8=function(){return _0x297c1f;};return _0x4ae8();}import{map as _0x12b32b,filter as _0x416b1a,throttleTime as _0x568e9b,takeUntil as _0xf486d3,switchMap as _0x3920b9}from'rxjs/operators';import{SheetSkeletonManagerService as _0x35db75,getCoordByCell as _0x1a92b1,getSheetObject as _0x21d26c}from'@univerjs/sheets-ui';function Ge({ref:_0x8304d1,..._0x3b53a9}){const _0x46756f=_0x336b69,{icon:_0x57bd56,id:_0x3291c6,className:_0x289f47,extend:_0x4c4ec2,..._0x2b7d1b}=_0x3b53a9,_0x316b04=(_0x46756f(0x3c9)+_0x3291c6+'\x20'+(_0x289f47||''))['trim'](),_0x312384=_0x54ce02('_'+vi());return At(_0x57bd56,''+_0x3291c6,{'defIds':_0x57bd56[_0x46756f(0x381)],'idSuffix':_0x312384[_0x46756f(0x211)]},{'ref':_0x8304d1,'className':_0x316b04,..._0x2b7d1b},_0x4c4ec2);}function At(_0x4709b3,_0x5c7d58,_0x378f28,_0x394040,_0xc27bed){const _0x118856=_0x336b69;return _0x49b531(_0x4709b3['tag'],{'key':_0x5c7d58,...gi(_0x4709b3,_0x378f28,_0xc27bed),..._0x394040},(Ei(_0x4709b3,_0x378f28)['children']||[])[_0x118856(0x278)]((_0x394924,_0x309e30)=>At(_0x394924,_0x5c7d58+'-'+_0x4709b3[_0x118856(0x226)]+'-'+_0x309e30,_0x378f28,void 0x0,_0xc27bed)));}function gi(_0x25388b,_0x168c46,_0x30fc4b){const _0x3541a9=_0x336b69,_0x135a6f={..._0x25388b[_0x3541a9(0x2e1)]};_0x30fc4b!=null&&_0x30fc4b[_0x3541a9(0x24a)]&&_0x135a6f[_0x3541a9(0x36e)]===_0x3541a9(0x24a)&&(_0x135a6f[_0x3541a9(0x36e)]=_0x30fc4b[_0x3541a9(0x24a)]),_0x25388b[_0x3541a9(0x226)]===_0x3541a9(0x1ba)&&_0x135a6f['id']&&(_0x135a6f['id']=_0x135a6f['id']+_0x168c46[_0x3541a9(0x3ad)]),Object[_0x3541a9(0x3ec)](_0x135a6f)[_0x3541a9(0x3bc)](([_0x560e83,_0xda56c7])=>{const _0x3ab4e2=_0x3541a9;_0x560e83==='mask'&&typeof _0xda56c7=='string'&&(_0x135a6f[_0x560e83]=_0xda56c7['replace'](/url\(#(.*)\)/,_0x3ab4e2(0x281)+_0x168c46[_0x3ab4e2(0x3ad)]+')'));});const {defIds:_0x47587f}=_0x168c46;return!_0x47587f||_0x47587f[_0x3541a9(0x3ba)]===0x0||(_0x25388b[_0x3541a9(0x226)]===_0x3541a9(0x2fa)&&_0x135a6f['xlink:href']&&(_0x135a6f[_0x3541a9(0x3ac)]=_0x135a6f[_0x3541a9(0x3ac)]+_0x168c46['idSuffix']),Object[_0x3541a9(0x3ec)](_0x135a6f)[_0x3541a9(0x3bc)](([_0x5018b7,_0x506198])=>{const _0x1b67af=_0x3541a9;typeof _0x506198==_0x1b67af(0x39f)&&(_0x135a6f[_0x5018b7]=_0x506198['replace'](/url\(#(.*)\)/,'url(#$1'+_0x168c46[_0x1b67af(0x3ad)]+')'));})),_0x135a6f;}function Ei(_0x1fb03d,_0x48f45b){const _0x46f9e5=_0x336b69;var _0x19d088;const {defIds:_0x387003}=_0x48f45b;return!_0x387003||_0x387003['length']===0x0?_0x1fb03d:_0x1fb03d[_0x46f9e5(0x226)]===_0x46f9e5(0x329)&&((_0x19d088=_0x1fb03d['children'])!=null&&_0x19d088[_0x46f9e5(0x3ba)])?{..._0x1fb03d,'children':_0x1fb03d['children'][_0x46f9e5(0x278)](_0x440c8f=>typeof _0x440c8f[_0x46f9e5(0x2e1)]['id']=='string'&&_0x387003&&_0x387003[_0x46f9e5(0x1d7)](_0x440c8f['attrs']['id'])?{..._0x440c8f,'attrs':{..._0x440c8f[_0x46f9e5(0x2e1)],'id':_0x440c8f[_0x46f9e5(0x2e1)]['id']+_0x48f45b[_0x46f9e5(0x3ad)]}}:_0x440c8f)}:_0x1fb03d;}function vi(){const _0x27266a=_0x336b69;return Math[_0x27266a(0x3f1)]()[_0x27266a(0x369)](0x24)[_0x27266a(0x3d5)](0x2,0x8);}Ge[_0x336b69(0x3e9)]=_0x336b69(0x36d);const pi={'tag':_0x336b69(0x357),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x336b69(0x2eb),'width':_0x336b69(0x2c1),'height':_0x336b69(0x2c1)},'children':[{'tag':'g','attrs':{'clipPath':_0x336b69(0x21e)},'children':[{'tag':_0x336b69(0x2fd),'attrs':{'stroke':_0x336b69(0x20a),'d':_0x336b69(0x326),'strokeLinecap':'round','strokeLinejoin':_0x336b69(0x27b),'strokeWidth':1.2}}]},{'tag':_0x336b69(0x329),'attrs':{},'children':[{'tag':_0x336b69(0x219),'attrs':{'id':_0x336b69(0x203)},'children':[{'tag':_0x336b69(0x2fd),'attrs':{'fill':_0x336b69(0x21f),'d':_0x336b69(0x1c6)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x8be1fc(function(_0xe9bec2,_0x450b4f){const _0x56e0ee=_0x336b69;return _0x49b531(Ge,Object[_0x56e0ee(0x234)]({},_0xe9bec2,{'id':_0x56e0ee(0x3c7),'ref':_0x450b4f,'icon':pi}));});Pt[_0x336b69(0x3e9)]=_0x336b69(0x1f6);const Oi={'tag':_0x336b69(0x357),'attrs':{'xmlns':_0x336b69(0x26d),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x336b69(0x2c1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x336b69(0x3f7)},'children':[{'tag':_0x336b69(0x2fd),'attrs':{'stroke':'currentColor','d':_0x336b69(0x2c5),'strokeLinecap':'round','strokeLinejoin':_0x336b69(0x27b),'strokeWidth':1.2}}]},{'tag':_0x336b69(0x329),'attrs':{},'children':[{'tag':_0x336b69(0x219),'attrs':{'id':_0x336b69(0x3d3)},'children':[{'tag':'path','attrs':{'fill':_0x336b69(0x21f),'d':_0x336b69(0x1c6),'transform':_0x336b69(0x391)}}]}]}],'defIds':[_0x336b69(0x3d3)]},wt=_0x8be1fc(function(_0x1019c2,_0x3b52c2){const _0x2dcc31=_0x336b69;return _0x49b531(Ge,Object['assign']({},_0x1019c2,{'id':_0x2dcc31(0x238),'ref':_0x3b52c2,'icon':Oi}));});wt[_0x336b69(0x3e9)]='OnLineIcon';function Ti(_0x2daed1){const _0x1b9d87=_0x336b69;switch(_0x2daed1){case _0x25c0b2[_0x1b9d87(0x3d6)]:return _0x1b9d87(0x31d);case _0x25c0b2[_0x1b9d87(0x2c4)]:return'collabStatus.conflict';case _0x25c0b2['FETCH_MISS']:return _0x1b9d87(0x35c);case _0x25c0b2['NOT_COLLAB']:return _0x1b9d87(0x2bb);case _0x25c0b2[_0x1b9d87(0x3ee)]:case _0x25c0b2[_0x1b9d87(0x2db)]:return _0x1b9d87(0x3db);case _0x25c0b2['SYNCED']:case _0x25c0b2[_0x1b9d87(0x3a1)]:return _0x1b9d87(0x341);}}function Ci(_0x3c4aa7){const _0x5f276d=_0x336b69,{status$:_0x462767}=_0x3c4aa7,_0x4e529e=_0x41e882(_0x462767,_0x25c0b2['NOT_COLLAB']),_0x254ac3=_0x45cec5(_0xa807ff),_0x38b9bf=_0x45cec5(_0x27b9ee),_0x153c29=_0x4e529e!==_0x25c0b2[_0x5f276d(0x3d6)],_0x34b18e=_0x254ac3['t'](Ti(_0x4e529e)),_0x4d755b=_0x153c29?_0x20ffbc(wt,{}):_0x20ffbc(Pt,{}),_0x35c31b=_0x7863db(()=>{const _0x392c1d=_0x5f276d;_0x153c29||_0x38b9bf[_0x392c1d(0x275)]();},[_0x153c29,_0x38b9bf]);function _0x603b6(){const _0x12179a=_0x5f276d;return _0x5ba8d4(_0x12179a(0x2f6),{'className':_0x12179a(0x30d),'onClick':_0x35c31b,'children':[_0x20ffbc(_0x12179a(0x2f6),{'className':_0x5e878b(_0x12179a(0x22c),{'univer-text-green-500':_0x153c29,'univer-text-red-500':!_0x153c29}),'children':_0x4d755b}),_0x20ffbc(_0x12179a(0x2f6),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x34b18e})]});}return _0x153c29?_0x603b6():_0x20ffbc(_0x5f4841,{'title':_0x254ac3['t'](_0x5f276d(0x245)),'children':_0x603b6()});}var Ri=Object[_0x336b69(0x38c)],Di=(_0x3fe91c,_0x557dbc,_0x144dc3,_0x3a80f3)=>{const _0x144f7c=_0x336b69;for(var _0x2d25ec=_0x3a80f3>0x1?void 0x0:_0x3a80f3?Ri(_0x557dbc,_0x144dc3):_0x557dbc,_0x39d7a3=_0x3fe91c[_0x144f7c(0x3ba)]-0x1,_0x1f9ebd;_0x39d7a3>=0x0;_0x39d7a3--)(_0x1f9ebd=_0x3fe91c[_0x39d7a3])&&(_0x2d25ec=_0x1f9ebd(_0x2d25ec)||_0x2d25ec);return _0x2d25ec;},se=(_0x12b4d6,_0x10829e)=>(_0x4239fa,_0xaedc69)=>_0x10829e(_0x4239fa,_0xaedc69,_0x12b4d6);let ae=class extends _0x47faf0{constructor(_0x5accfe,_0x345c4e,_0x2d083b,_0x2c6953){const _0x584a1f=_0x336b69;super(),_(this,_0x584a1f(0x3e6),new _0x2b7d7c(_0x25c0b2[_0x584a1f(0x2c9)])),(this[_0x584a1f(0x1ef)]=_0x5accfe,this[_0x584a1f(0x2e4)]=_0x345c4e,this[_0x584a1f(0x1e2)]=_0x2d083b,this[_0x584a1f(0x312)]=_0x2c6953,this[_0x584a1f(0x293)](),this[_0x584a1f(0x2e5)]());}['_initStatusListener'](){const _0x52f28b=_0x336b69;this[_0x52f28b(0x3bb)](this[_0x52f28b(0x1ef)][_0x52f28b(0x372)]['pipe'](_0x37e715(()=>{const _0x517705=_0x52f28b,_0x5ad0e2=this[_0x517705(0x1ef)][_0x517705(0x3ca)]();return _0x5ad0e2?this['_collaborationController'][_0x517705(0x32a)](_0x5ad0e2['getUnitId']()):_0x146fb2(null);}),_0x37e715(_0x1a3495=>_0x1a3495?_0x1a3495[_0x52f28b(0x2f2)]:_0x146fb2(_0x25c0b2[_0x52f28b(0x2c9)])))[_0x52f28b(0x1b9)](_0x20d040=>{const _0x5bb907=_0x52f28b;this[_0x5bb907(0x3e6)][_0x5bb907(0x229)](_0x20d040);}));}[_0x336b69(0x293)](){const _0x2fd2ce=_0x336b69;this[_0x2fd2ce(0x3bb)](this['_uiPartsService'][_0x2fd2ce(0x3d9)](_0x1683bb['HEADER_MENU'],()=>_0x1809e3(Ni({'status$':this['_status$'][_0x2fd2ce(0x313)]()}),this[_0x2fd2ce(0x2e4)])));}};ae=Di([se(0x0,_0x2f0580),se(0x1,_0x1f3b74(_0x55778f)),se(0x2,_0x1f3b74(_0x3064e9)),se(0x3,_0x30d18e)],ae);function Ni(_0x5cbc1a){const {status$:_0xe78135}=_0x5cbc1a;return function(){return _0x20ffbc(Ci,{'status$':_0xe78135});};}const yt=_0x23c17d(_0x336b69(0x363));var bi=Object[_0x336b69(0x38c)],Li=(_0x4cb302,_0x3389eb,_0x3b0edb,_0x353137)=>{for(var _0x43ac05=_0x353137>0x1?void 0x0:_0x353137?bi(_0x3389eb,_0x3b0edb):_0x3389eb,_0x26159b=_0x4cb302['length']-0x1,_0x2329ef;_0x26159b>=0x0;_0x26159b--)(_0x2329ef=_0x4cb302[_0x26159b])&&(_0x43ac05=_0x2329ef(_0x43ac05)||_0x43ac05);return _0x43ac05;},K=(_0x563611,_0x138898)=>(_0x1928f0,_0x3b71aa)=>_0x138898(_0x1928f0,_0x3b71aa,_0x563611);let ce=class extends _0x3740ac{constructor(_0x352ddb,_0x4fa12c,_0xc2e622,_0x34553e,_0x1b46eb){const _0x4ec2f2=_0x336b69;super(),this[_0x4ec2f2(0x3c2)]=_0x352ddb,this[_0x4ec2f2(0x396)]=_0x4fa12c,this[_0x4ec2f2(0x3a5)]=_0xc2e622,this[_0x4ec2f2(0x1aa)]=_0x34553e,_0x1b46eb?_0x1b46eb==null||_0x1b46eb[_0x4ec2f2(0x1af)]()[_0x4ec2f2(0x1f9)](()=>this['_init']()):(this[_0x4ec2f2(0x396)][_0x4ec2f2(0x2e9)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x336b69(0x1c3)](){const _0x139de7=_0x336b69,_0x13a289=this[_0x139de7(0x3c2)][_0x139de7(0x1f2)](_0x139de7(0x20b)),_0x54fca8=this[_0x139de7(0x3c2)][_0x139de7(0x1f2)](_0x139de7(0x263)),_0x26b3ed=this[_0x139de7(0x3c2)][_0x139de7(0x1f2)]('subunit');if(!_0x13a289||!_0x54fca8){this['_logService'][_0x139de7(0x2e9)](_0x139de7(0x232),_0x139de7(0x319));return;}const _0x33f6a4=await this['_dataLoaderService'][_0x139de7(0x354)](_0x13a289,Number(_0x54fca8),_0x26b3ed);_0x33f6a4&&_0x33f6a4 instanceof _0x44de5a&&this['_setupSubUnitSync'](_0x33f6a4);}async[_0x336b69(0x307)](_0xa7117a){const _0x52a0e5=_0x336b69;await this['_updateSubUnitFromURLParams'](_0xa7117a),_0xa7117a[_0x52a0e5(0x20d)][_0x52a0e5(0x1fb)](_0xa786ea(this[_0x52a0e5(0x32e)]))[_0x52a0e5(0x1b9)](_0x57c2e7=>{const _0x6b8706=_0x52a0e5;_0x57c2e7&&this[_0x6b8706(0x230)](_0x57c2e7);}),this[_0x52a0e5(0x3c2)]['urlChange$'][_0x52a0e5(0x1fb)](_0xa786ea(this[_0x52a0e5(0x32e)]))[_0x52a0e5(0x1b9)](()=>this[_0x52a0e5(0x3b9)](_0xa7117a));}[_0x336b69(0x230)](_0xc2235b,_0x15a38e=!0x1){const _0x45d0cd=_0x336b69,_0x47b220=this[_0x45d0cd(0x3c2)][_0x45d0cd(0x1f2)](_0x45d0cd(0x212));_0xc2235b[_0x45d0cd(0x1be)]()!==_0x47b220&&this[_0x45d0cd(0x3c2)][_0x45d0cd(0x36c)](_0x45d0cd(0x212),_0xc2235b[_0x45d0cd(0x1be)](),_0x15a38e);}async[_0x336b69(0x3b9)](_0x49365c){const _0x4a6559=_0x336b69;var _0x3cfa10;const _0x294c67=this[_0x4a6559(0x3c2)][_0x4a6559(0x1f2)]('subunit');if(!_0x294c67||!_0x49365c['getSheetBySheetId'](_0x294c67)){const _0x3eda3b=_0x49365c[_0x4a6559(0x2a0)]()[0x0],_0x3910f7=_0x49365c[_0x4a6559(0x3c4)](_0x3eda3b);if(!_0x3910f7)return;this[_0x4a6559(0x230)](_0x3910f7,!0x0),await this[_0x4a6559(0x3a5)]['executeCommand'](_0x54f668['id'],{'unitId':_0x49365c[_0x4a6559(0x350)](),'subUnitId':_0x3eda3b});return;}((_0x3cfa10=_0x49365c[_0x4a6559(0x31c)]())==null?void 0x0:_0x3cfa10['getSheetId']())!==_0x294c67&&await this[_0x4a6559(0x3a5)]['executeCommand'](_0x54f668['id'],{'unitId':_0x49365c[_0x4a6559(0x350)](),'subUnitId':_0x294c67});}};ce=Li([K(0x0,yt),K(0x1,_0x46a5d6),K(0x2,_0x357354),K(0x3,_0x1f3b74(_0xdc040f)),K(0x4,_0x36ee56(_0x19f63))],ce);var Ui=Object[_0x336b69(0x38c)],Mi=(_0x365ce5,_0x106a45,_0x27d284,_0x2b0114)=>{const _0x1821a3=_0x336b69;for(var _0x5b9e17=_0x2b0114>0x1?void 0x0:_0x2b0114?Ui(_0x106a45,_0x27d284):_0x106a45,_0x36f657=_0x365ce5[_0x1821a3(0x3ba)]-0x1,_0x372601;_0x36f657>=0x0;_0x36f657--)(_0x372601=_0x365ce5[_0x36f657])&&(_0x5b9e17=_0x372601(_0x5b9e17)||_0x5b9e17);return _0x5b9e17;},rt=(_0x4f3007,_0x451861)=>(_0x3e6686,_0x3a6580)=>_0x451861(_0x3e6686,_0x3a6580,_0x4f3007);let $e=class extends _0x3740ac{constructor(_0x4a5904,_0x27ac1f){const _0x1a9f05=_0x336b69;super(),this[_0x1a9f05(0x321)]=_0x4a5904,this['_imageIoService']=_0x27ac1f,this[_0x1a9f05(0x1c3)]();}[_0x336b69(0x1c3)](){const _0x12d56f=_0x336b69,_0x373fba=this;this[_0x12d56f(0x3bb)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x2f13ed=>{const _0x54a3da=_0x12d56f,_0x1ba6c4=await _0x373fba[_0x54a3da(0x3af)][_0x54a3da(0x34c)](_0x2f13ed);return _0x1ba6c4?{'source':_0x1ba6c4[_0x54a3da(0x37d)],'imageSourceType':_0x1ba6c4[_0x54a3da(0x361)]}:null;}}));}};$e=Mi([rt(0x0,_0x48b5f8),rt(0x1,_0x2bd3cf)],$e);const ot=[_0x336b69(0x389),_0x336b69(0x33b),'green.600',_0x336b69(0x1f3),_0x336b69(0x3f0),'yellow.400'];class Ke extends _0x47faf0{constructor(){const _0x29a2c4=_0x336b69;super(...arguments),_(this,_0x29a2c4(0x34f),new Map()),_(this,_0x29a2c4(0x271),0x0);}['assignAColorForMemberID'](_0x20eb49){const _0x14d1cc=_0x336b69;if(this[_0x14d1cc(0x34f)][_0x14d1cc(0x3f3)](_0x20eb49))return this[_0x14d1cc(0x34f)][_0x14d1cc(0x3c1)](_0x20eb49);const _0x367f83=ot[this['_colorIndex']];return this[_0x14d1cc(0x271)]=(this[_0x14d1cc(0x271)]+0x1)%ot[_0x14d1cc(0x3ba)],this[_0x14d1cc(0x34f)][_0x14d1cc(0x2ba)](_0x20eb49,_0x367f83),_0x367f83;}}function $t(_0x487501){const _0x126d08=_0x336b69;let _0x5c7f76='';for(const _0x3f854f of _0x487501){const {startOffset:_0x185da9,endOffset:_0x63c0bf,isActive:_0x9f8a7,rangeType:_0x3a8928,segmentId:_0x4d9eaa,segmentPage:_0x2d2cc5}=_0x3f854f;_0x5c7f76[_0x126d08(0x3ba)]&&(_0x5c7f76+=','),_0x5c7f76+=_0x185da9+':'+_0x63c0bf+':'+(_0x9f8a7?'1':'0')+':'+_0x3a8928+':'+_0x4d9eaa+':'+_0x2d2cc5;}return _0x5c7f76;}function Ai(_0x43b3c0){const _0x1a600f=_0x336b69,_0x25c1b8=_0x43b3c0[_0x1a600f(0x377)](','),_0x4e2fe0=[];for(const _0x2c752f of _0x25c1b8){const [_0x2d204f,_0x1df300,_0x521f2a,_0x1e05df,_0x514aff,_0x41e2fb]=_0x2c752f['split'](':');_0x4e2fe0[_0x1a600f(0x370)]({'startOffset':Number(_0x2d204f),'endOffset':Number(_0x1df300),'collapsed':_0x2d204f===_0x1df300,'isActive':_0x521f2a==='1','rangeType':_0x1e05df===_0x1244aa[_0x1a600f(0x1b6)]?_0x1244aa['TEXT']:_0x1244aa[_0x1a600f(0x371)],'segmentId':typeof _0x514aff=='string'?String(_0x514aff):'','segmentPage':Number(_0x41e2fb!=null?_0x41e2fb:-0x1)});}return _0x4e2fe0[_0x1a600f(0x333)](_0x2adc86=>_0x2adc86['isActive'])||(_0x4e2fe0[0x0][_0x1a600f(0x3e5)]=!0x0),_0x4e2fe0;}class ze extends _0x3740ac{constructor(){const _0x28ad0b=_0x336b69;super(...arguments),_(this,_0x28ad0b(0x39d),new _0x2b7d7c(null)),_(this,_0x28ad0b(0x288),this[_0x28ad0b(0x39d)][_0x28ad0b(0x313)]());}[_0x336b69(0x2f5)](_0x229739){const {unitID:_0xee255f,memberID:_0x5c4fad,textRanges:_0x439b46}=_0x229739,_0x2ce8ba=$t(_0x439b46);if(_0x2ce8ba==='')return;const _0x6e5d2b={'unitID':_0xee255f,'memberID':_0x5c4fad,'selection':_0x2ce8ba};this['_collabCursorState$']['next'](_0x6e5d2b);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3a59b5,_0x579afc,_0x3554a3,_0x2e6cce)=>{for(var _0x431b6f=_0x2e6cce>0x1?void 0x0:_0x2e6cce?Pi(_0x579afc,_0x3554a3):_0x579afc,_0x4787af=_0x3a59b5['length']-0x1,_0x5138a7;_0x4787af>=0x0;_0x4787af--)(_0x5138a7=_0x3a59b5[_0x4787af])&&(_0x431b6f=_0x5138a7(_0x431b6f)||_0x431b6f);return _0x431b6f;},A=(_0x31b081,_0x143f1e)=>(_0x17af91,_0x2df61d)=>_0x143f1e(_0x17af91,_0x2df61d,_0x31b081);const yi=0x12c,$i=0x64;let xe=class extends _0x3740ac{constructor(_0x98f446,_0x1d0678,_0x3270c8,_0x5e091e,_0x2fa53f,_0x23191a,_0x4ca6af,_0xeeeab8,_0x22bdde){const _0x4fbce0=_0x336b69;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x4fbce0(0x26e),new _0x2b7d7c(new Map())),_(this,_0x4fbce0(0x25d),this[_0x4fbce0(0x26e)][_0x4fbce0(0x313)]()),_(this,_0x4fbce0(0x1d3),new _0x2b7d7c([])),_(this,'roomMembers$',this[_0x4fbce0(0x1d3)]['pipe'](_0x308d02(yi))),_(this,_0x4fbce0(0x346),_0x17280b(_0x24ed97=>{const _0x41b301=_0x4fbce0,_0x38473d={'eventID':_0x211eaa[_0x41b301(0x30a)],'data':{'unitID':this[_0x41b301(0x202)],'memberID':this[_0x41b301(0x222)]['getMemberID'](),'selection':$t(_0x24ed97)}};this[_0x41b301(0x222)][_0x41b301(0x3e2)](_0x38473d,this[_0x41b301(0x202)]);},$i)),(this[_0x4fbce0(0x202)]=_0x98f446,this[_0x4fbce0(0x222)]=_0x1d0678,this[_0x4fbce0(0x2e4)]=_0x3270c8,this[_0x4fbce0(0x290)]=_0x5e091e,this[_0x4fbce0(0x241)]=_0x2fa53f,this[_0x4fbce0(0x24e)]=_0x23191a,this[_0x4fbce0(0x26f)]=_0x4ca6af,this['_univerInstanceService']=_0xeeeab8,this[_0x4fbce0(0x3a5)]=_0x22bdde);}get[_0x336b69(0x28c)](){const _0x5cca29=_0x336b69;return this[_0x5cca29(0x26e)]['getValue']();}get[_0x336b69(0x314)](){const _0x1ed6a5=_0x336b69;return this['_roomMembers$'][_0x1ed6a5(0x2e7)]();}[_0x336b69(0x386)](){const _0x8d64f1=_0x336b69;super[_0x8d64f1(0x386)](),this['_cursorInfo$'][_0x8d64f1(0x229)](new Map()),this[_0x8d64f1(0x26e)][_0x8d64f1(0x262)](),this['_roomMembers$'][_0x8d64f1(0x229)]([]),this[_0x8d64f1(0x1d3)]['complete']();}[_0x336b69(0x355)](){const _0x1e988b=_0x336b69;this[_0x1e988b(0x1c3)]||(this[_0x1e988b(0x1c3)]=!0x0,this[_0x1e988b(0x222)][_0x1e988b(0x286)][_0x1e988b(0x1fb)](_0xa786ea(this[_0x1e988b(0x32e)]))[_0x1e988b(0x1b9)](_0x549552=>{const _0x4d2359=_0x1e988b;_0x549552===_0x20543d[_0x4d2359(0x37a)]?this[_0x4d2359(0x390)]():this['_toggleOffline']();}),this[_0x1e988b(0x222)]['event$']['pipe'](_0xa786ea(this['dispose$']))['subscribe'](_0x396d8e=>{const _0x4a40c3=_0x1e988b,_0x2b68d5=_0x396d8e['eventID'];_0x2b68d5===_0x211eaa[_0x4a40c3(0x30a)]&&this[_0x4a40c3(0x1d2)](_0x396d8e),_0x2b68d5===_0x211eaa['USERS_LEAVE']&&this[_0x4a40c3(0x1b0)](_0x396d8e);}),this[_0x1e988b(0x3bb)](this['_commandService'][_0x1e988b(0x309)](_0x5ae820=>{const _0x19d2e5=_0x1e988b,_0x14ca3f=_0x5ae820[_0x19d2e5(0x3a0)];_0x14ca3f!=null&&this[_0x19d2e5(0x1de)]&&_0x5ae820['id']===_0x562414['id']&&_0x14ca3f[_0x19d2e5(0x29d)]===this[_0x19d2e5(0x202)]&&_0x14ca3f[_0x19d2e5(0x356)]===!0x1&&_0x14ca3f['ranges'][_0x19d2e5(0x3ba)]>0x0&&this[_0x19d2e5(0x346)](_0x14ca3f[_0x19d2e5(0x3ce)]);})),this['_syncEditingCollabCursorService'][_0x1e988b(0x288)]['pipe'](_0xa786ea(this['dispose$']))[_0x1e988b(0x1b9)](_0x2123d3=>{const _0x3671a7=_0x1e988b;if((_0x2123d3==null?void 0x0:_0x2123d3[_0x3671a7(0x202)])!==this[_0x3671a7(0x202)])return;const _0x236361={'eventID':_0x211eaa[_0x3671a7(0x30a)],'data':_0x2123d3};this[_0x3671a7(0x1d2)](_0x236361);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2b9830=>{const _0x4eb543=_0x1e988b;if(_0x2b9830[_0x4eb543(0x3a0)]==null)return;const _0x3b90d6=_0x2b9830[_0x4eb543(0x3a0)];if(_0x2b9830['id']!==_0x1c2f72['id']||_0x3b90d6[_0x4eb543(0x29d)]!==this[_0x4eb543(0x202)])return;const _0x486c17={'id':_0x4eb543(0x2af),'params':_0x3b90d6},_0x49520e=this[_0x4eb543(0x28c)];for(const [_0x3ab3d8,_0xb913]of _0x49520e){const _0x3cca5a={'id':_0x4eb543(0x2af),'params':{'unitId':this[_0x4eb543(0x202)],'actions':null,'textRanges':_0xb913[_0x4eb543(0x3ce)]}},_0x1290df=this[_0x4eb543(0x26f)]['transformMutation'](_0x486c17,_0x3cca5a,!0x1);if(_0x3715d3(_0x1290df))throw _0x1290df[_0x4eb543(0x3a6)];_0x49520e[_0x4eb543(0x2ba)](_0x3ab3d8,{..._0xb913,'ranges':_0x1290df[_0x4eb543(0x3ab)]['params'][_0x4eb543(0x1ee)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x49520e);});})));}['_onCursorUpdate'](_0x1f45d0){const _0x1e6778=_0x336b69;var _0xcf4c95,_0x5cc7a4;const {memberID:_0x325ffa,selection:_0x5b80a7}=_0x1f45d0[_0x1e6778(0x287)],_0x3c32df=Ai(_0x5b80a7),_0x192da2=(_0x5cc7a4=(_0xcf4c95=this[_0x1e6778(0x241)][_0x1e6778(0x37b)](this['unitID'],_0x325ffa))==null?void 0x0:_0xcf4c95['name'])!=null?_0x5cc7a4:'Unknown\x20user',_0x3ed616={'color':this['_colorAssignService'][_0x1e6778(0x1ab)](_0x325ffa),'name':_0x192da2,'ranges':_0x3c32df},_0x1082b9=this['cursorInfo'];_0x1082b9[_0x1e6778(0x2ba)](_0x325ffa,_0x3ed616),this[_0x1e6778(0x26e)][_0x1e6778(0x229)](_0x1082b9);}[_0x336b69(0x1b0)](_0x54d07b){const _0x5cb560=_0x336b69,{memberID:_0x425dad}=_0x54d07b[_0x5cb560(0x287)],_0x5d3a96=this[_0x5cb560(0x28c)];_0x5d3a96['delete'](_0x425dad),this[_0x5cb560(0x26e)][_0x5cb560(0x229)](_0x5d3a96);}[_0x336b69(0x390)](){const _0x6129=_0x336b69;var _0x3262ae;if(this[_0x6129(0x1de)]=!0x0,((_0x3262ae=this[_0x6129(0x1ef)][_0x6129(0x3ca)]())==null?void 0x0:_0x3262ae[_0x6129(0x350)]())!==this[_0x6129(0x202)])return;const _0x3f670a=this['_injector'][_0x6129(0x3c1)](_0x2babfd)[_0x6129(0x393)]();Array['isArray'](_0x3f670a)&&_0x3f670a['length']>0x0&&this[_0x6129(0x346)](_0x3f670a);}['_toggleOffline'](){const _0x454a2f=_0x336b69;this[_0x454a2f(0x1de)]=!0x1;}};xe=wi([A(0x2,_0x1f3b74(_0x55778f)),A(0x3,_0x1f3b74(Ke)),A(0x4,_0x1f3b74(_0x5e87a1)),A(0x5,_0x1f3b74(ze)),A(0x6,_0x16b512),A(0x7,_0x2f0580),A(0x8,_0x357354)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x56259f,_0x3c49df,_0x4cf911,_0x2e5921)=>{const _0x451380=_0x336b69;for(var _0x51e9d5=_0x2e5921>0x1?void 0x0:_0x2e5921?xi(_0x3c49df,_0x4cf911):_0x3c49df,_0x570a9d=_0x56259f[_0x451380(0x3ba)]-0x1,_0xbc2e31;_0x570a9d>=0x0;_0x570a9d--)(_0xbc2e31=_0x56259f[_0x570a9d])&&(_0x51e9d5=_0xbc2e31(_0x51e9d5)||_0x51e9d5);return _0x51e9d5;},B=(_0x11563c,_0x55fdab)=>(_0x5cbd9e,_0x4526c8)=>_0x55fdab(_0x5cbd9e,_0x4526c8,_0x11563c);function _0x1218(_0x5979bf,_0x250e4b){_0x5979bf=_0x5979bf-0x1a4;const _0x4ae861=_0x4ae8();let _0x12183d=_0x4ae861[_0x5979bf];return _0x12183d;}const Fi=0x12c,ki=0x64,Hi=()=>{let _0xfca55e=[],_0x143deb=!0x1;return _0x1e416c=>{_0xfca55e['push'](_0x1e416c),_0x143deb||(_0x143deb=!0x0,setTimeout(()=>{const _0x33d16d=_0x1218;_0xfca55e[_0x33d16d(0x3bc)](_0x3da052=>_0x3da052()),_0xfca55e=[],_0x143deb=!0x1;}));};};let Be=class extends _0x3740ac{constructor(_0x5df7cf,_0x2255a7,_0x5e5733,_0xd3edb0,_0x1e6fd0,_0x4797b2,_0x502de0,_0x152393){const _0x113162=_0x336b69;super(),_(this,_0x113162(0x1de),!0x1),_(this,_0x113162(0x1c3),!0x1),_(this,_0x113162(0x26e),new _0x2b7d7c(new Map())),_(this,_0x113162(0x25d),this['_cursorInfo$'][_0x113162(0x313)]()),_(this,_0x113162(0x1d3),new _0x2b7d7c([])),_(this,_0x113162(0x1c9),this[_0x113162(0x1d3)][_0x113162(0x1fb)](_0x308d02(Fi))),_(this,_0x113162(0x346),_0x17280b((_0xb4e895,_0x59bbbe)=>{const _0x274d30=_0x113162,_0x3f1555={'eventID':_0x211eaa[_0x274d30(0x30a)],'data':{'unitID':this[_0x274d30(0x202)],'memberID':this[_0x274d30(0x222)][_0x274d30(0x342)](),'selection':_0x40bb83(_0xb4e895,_0x59bbbe[_0x274d30(0x2cb)])}};this[_0x274d30(0x222)][_0x274d30(0x3e2)](_0x3f1555,this['unitID']);},ki)),(this[_0x113162(0x202)]=_0x5df7cf,this[_0x113162(0x222)]=_0x2255a7,this[_0x113162(0x2e4)]=_0x5e5733,this[_0x113162(0x290)]=_0xd3edb0,this[_0x113162(0x241)]=_0x1e6fd0,this[_0x113162(0x1ef)]=_0x4797b2,this[_0x113162(0x3a5)]=_0x502de0,this[_0x113162(0x3e3)]=_0x152393);}get[_0x336b69(0x28c)](){const _0x363b71=_0x336b69;return this[_0x363b71(0x26e)][_0x363b71(0x2e7)]();}get[_0x336b69(0x314)](){const _0x41687d=_0x336b69;return this[_0x41687d(0x1d3)][_0x41687d(0x2e7)]();}[_0x336b69(0x386)](){const _0x9b738=_0x336b69;super['dispose'](),this[_0x9b738(0x26e)][_0x9b738(0x229)](new Map()),this[_0x9b738(0x26e)]['complete'](),this[_0x9b738(0x1d3)][_0x9b738(0x229)]([]),this[_0x9b738(0x1d3)][_0x9b738(0x262)]();}[_0x336b69(0x355)](){const _0x5740b7=_0x336b69;this[_0x5740b7(0x1c3)]||(this[_0x5740b7(0x1c3)]=!0x0,this['_session'][_0x5740b7(0x286)][_0x5740b7(0x1fb)](_0xa786ea(this[_0x5740b7(0x32e)]))[_0x5740b7(0x1b9)](_0x2be595=>{const _0x5a6aa0=_0x5740b7;_0x2be595===_0x20543d[_0x5a6aa0(0x37a)]?this[_0x5a6aa0(0x390)]():this[_0x5a6aa0(0x27f)]();}),this[_0x5740b7(0x222)]['event$']['pipe'](_0xa786ea(this['dispose$']))[_0x5740b7(0x1b9)](_0xb696cb=>{const _0x5e623b=_0x5740b7,_0x3a1227=_0xb696cb['eventID'];_0x3a1227===_0x211eaa[_0x5e623b(0x30a)]&&this[_0x5e623b(0x1d2)](_0xb696cb),_0x3a1227===_0x211eaa['USERS_LEAVE']&&this['_onCursorDelete'](_0xb696cb);}),this['_onRefRangeChange'](),this[_0x5740b7(0x3bb)](this[_0x5740b7(0x3a5)][_0x5740b7(0x309)](_0x36f46a=>{const _0x5ab567=_0x5740b7;if(this['_online']&&_0x36f46a['id']===_0xafce45['id']&&_0x36f46a[_0x5ab567(0x3a0)][_0x5ab567(0x29d)]===this['unitID']){const _0x173d5f=_0x36f46a[_0x5ab567(0x3a0)];this[_0x5ab567(0x346)](_0x173d5f[_0x5ab567(0x37e)],_0x173d5f[_0x5ab567(0x303)][0x0]);}})));}[_0x336b69(0x1d2)](_0xd15395){const _0xf6b0f8=_0x336b69;var _0x5a6be7,_0x7de061;const {memberID:_0x5da9dd,selection:_0x36b147}=_0xd15395['data'],{sheetName:_0x2eeadc,range:_0x5dfaa6}=_0x9ae94d(_0x36b147),_0x280c00={'name':(_0x7de061=(_0x5a6be7=this[_0xf6b0f8(0x241)]['getMember'](this[_0xf6b0f8(0x202)],_0x5da9dd))==null?void 0x0:_0x5a6be7[_0xf6b0f8(0x32b)])!=null?_0x7de061:_0xf6b0f8(0x221),'range':this[_0xf6b0f8(0x38f)](_0x2eeadc,_0x5dfaa6),'sheetID':_0x2eeadc,'color':this[_0xf6b0f8(0x290)][_0xf6b0f8(0x1ab)](_0x5da9dd),'selection':_0x36b147},_0x59074f=this[_0xf6b0f8(0x28c)];_0x59074f['set'](_0x5da9dd,_0x280c00),this[_0xf6b0f8(0x26e)][_0xf6b0f8(0x229)](_0x59074f);}[_0x336b69(0x1b0)](_0x2a8fbd){const _0x4f4a83=_0x336b69,{memberID:_0x5f1b81}=_0x2a8fbd[_0x4f4a83(0x287)],_0xc3f92b=this[_0x4f4a83(0x28c)];_0xc3f92b[_0x4f4a83(0x3cc)](_0x5f1b81),this[_0x4f4a83(0x26e)][_0x4f4a83(0x229)](_0xc3f92b);}['_getMergeRange'](_0x5d1494,_0x80e36a){const _0x587cfd=_0x336b69;var _0x4e4f10,_0x4e4764;const _0x11388e=(_0x4e4764=(_0x4e4f10=this[_0x587cfd(0x1ef)][_0x587cfd(0x38e)](this['unitID']))==null?void 0x0:_0x4e4f10['getSheetBySheetId'](_0x5d1494))==null?void 0x0:_0x4e4764[_0x587cfd(0x35a)]();return(_0x11388e==null?void 0x0:_0x11388e[_0x587cfd(0x2cf)](_0x3f2be4=>_0x14473f['contains'](_0x3f2be4,_0x80e36a)))||_0x80e36a;}['_onRefRangeChange'](){const _0x15b309=_0x336b69,_0x1abc53=new _0x32499b(),_0x16ac26=Hi(),_0x4f5cc1=()=>{const _0x15dbe6=_0x1218;_0x1abc53[_0x15dbe6(0x386)]();const _0x2f800a=(_0x35ac6b,_0x1f1eab,_0x29a5b7,_0x6d6492)=>{const _0x3fe7f7=_0x15dbe6;let _0x3f7073=[];switch(_0x35ac6b['id']){case _0x1ae548['DeleteRangeMoveLeftCommandId']:{_0x3f7073=_0x301ab8(_0x35ac6b,_0x6d6492);break;}case _0x1ae548['DeleteRangeMoveUpCommandId']:{_0x3f7073=_0x4214be(_0x35ac6b,_0x6d6492);break;}case _0x1ae548['InsertColCommandId']:{_0x3f7073=_0xb8b10b(_0x35ac6b,_0x6d6492);break;}case _0x1ae548[_0x3fe7f7(0x23b)]:{_0x3f7073=_0x1fa1a8(_0x35ac6b,_0x6d6492);break;}case _0x1ae548[_0x3fe7f7(0x2f0)]:{_0x3f7073=_0x17d92e(_0x35ac6b,_0x6d6492);break;}case _0x1ae548[_0x3fe7f7(0x29a)]:{_0x3f7073=_0x328033(_0x35ac6b,_0x6d6492);break;}case _0x1ae548['MoveRangeCommandId']:{_0x3f7073=_0x452071(_0x35ac6b,_0x6d6492);break;}case _0x1ae548['RemoveColCommandId']:{_0x3f7073=_0x4551c6(_0x35ac6b,_0x6d6492);break;}case _0x1ae548['RemoveRowCommandId']:{_0x3f7073=_0x3ab4a6(_0x35ac6b,_0x6d6492);break;}}const _0x3291cb=_0x1b59de(_0x3f7073,_0x6d6492),_0x23fe92=this[_0x3fe7f7(0x28c)]['get'](_0x1f1eab);if(_0x23fe92&&_0x3291cb){const _0x4df635={..._0x23fe92,'range':_0x3291cb};this['cursorInfo'][_0x3fe7f7(0x2ba)](_0x1f1eab,_0x4df635),_0x16ac26(()=>{const _0x4731fb=_0x3fe7f7,_0x5d8a38=this[_0x4731fb(0x3e3)][_0x4731fb(0x28e)](_0x3291cb,_0x9a75ab=>(_0x5d8a38['dispose'](),_0x2f800a(_0x9a75ab,_0x1f1eab,_0x29a5b7,_0x3291cb)));_0x1abc53[_0x4731fb(0x289)](_0x5d8a38);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x15dbe6(0x3bc)]((_0x789e89,_0x307d5d)=>{const _0x5140f2=_0x15dbe6,{range:_0x4ab5dd,sheetID:_0x1b8fd0}=_0x789e89,_0x42932a=this['_refRangeService'][_0x5140f2(0x28e)](_0x4ab5dd,_0x5744b9=>(_0x42932a[_0x5140f2(0x386)](),_0x2f800a(_0x5744b9,_0x307d5d,_0x1b8fd0,_0x4ab5dd)));_0x1abc53[_0x5140f2(0x289)](_0x42932a);});};this[_0x15b309(0x3bb)](_0x2e6fe6(this[_0x15b309(0x26e)][_0x15b309(0x1b9)](()=>{_0x4f5cc1();})));}[_0x336b69(0x390)](){const _0x5a2117=_0x336b69;var _0x430149,_0x52a199;if(this[_0x5a2117(0x1de)]=!0x0,((_0x430149=this[_0x5a2117(0x1ef)][_0x5a2117(0x3ca)]())==null?void 0x0:_0x430149[_0x5a2117(0x350)]())!==this[_0x5a2117(0x202)])return;const _0x3f2414=(_0x52a199=this['_injector'][_0x5a2117(0x3c1)](_0x14a79e)[_0x5a2117(0x23c)]())==null?void 0x0:_0x52a199[0x0],_0x4bd223=this[_0x5a2117(0x1ef)][_0x5a2117(0x320)](_0x17d204[_0x5a2117(0x2a8)])[_0x5a2117(0x31c)]();_0x3f2414&&_0x4bd223&&this[_0x5a2117(0x346)](_0x4bd223[_0x5a2117(0x1be)](),_0x3f2414);}[_0x336b69(0x27f)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x1f3b74(_0x55778f)),B(0x3,_0x1f3b74(Ke)),B(0x4,_0x1f3b74(_0x5e87a1)),B(0x5,_0x2f0580),B(0x6,_0x357354),B(0x7,_0x1f3b74(_0x2ad149))],Be);var Yi=Object[_0x336b69(0x38c)],Wi=(_0x4f49c3,_0x30e92a,_0x135ae9,_0x5019c5)=>{for(var _0x16d0ae=_0x5019c5>0x1?void 0x0:_0x5019c5?Yi(_0x30e92a,_0x135ae9):_0x30e92a,_0x4236f1=_0x4f49c3['length']-0x1,_0x501cf0;_0x4236f1>=0x0;_0x4236f1--)(_0x501cf0=_0x4f49c3[_0x4236f1])&&(_0x16d0ae=_0x501cf0(_0x16d0ae)||_0x16d0ae);return _0x16d0ae;},Ce=(_0xf9e121,_0x485cf9)=>(_0x11b8db,_0x4b4721)=>_0x485cf9(_0x11b8db,_0x4b4721,_0xf9e121);let H=class extends _0x3740ac{constructor(_0xc7a8e7,_0x11a6ba,_0x33271e){const _0x4bb83f=_0x336b69;super(),_(this,_0x4bb83f(0x22d),new Map()),_(this,_0x4bb83f(0x24b),new _0x28089e()),(this['_univerInstanceService']=_0xc7a8e7,this['_injector']=_0x11a6ba,this['_collabSessionService']=_0x33271e,this[_0x4bb83f(0x1c3)]());}[_0x336b69(0x386)](){const _0x2f6b6f=_0x336b69;super[_0x2f6b6f(0x386)](),this[_0x2f6b6f(0x24b)][_0x2f6b6f(0x262)](),this[_0x2f6b6f(0x22d)]['forEach'](_0x3adef8=>_0x3adef8['dispose']());}['getCollabCursors$'](_0x14eb2b){const _0x2555f8=_0x336b69;return this['_entities'][_0x2555f8(0x3f3)](_0x14eb2b)?this[_0x2555f8(0x22d)][_0x2555f8(0x3c1)](_0x14eb2b)[_0x2555f8(0x25d)]:this['_entityInit$'][_0x2555f8(0x1fb)](_0x4289d3(_0x3c766d=>_0x3c766d[_0x2555f8(0x202)]===_0x14eb2b),_0x37e715(_0x46feb9=>_0x46feb9[_0x2555f8(0x25d)]));}[_0x336b69(0x1c3)](){const _0x4d7ad8=_0x336b69;this[_0x4d7ad8(0x1ef)][_0x4d7ad8(0x2fb)](_0x17d204['UNIVER_SHEET'])[_0x4d7ad8(0x1fb)](_0xa786ea(this['dispose$']))['subscribe'](async _0x5ed103=>{const _0xf0ff62=_0x4d7ad8,_0x41a6be=_0x5ed103[_0xf0ff62(0x350)](),_0x381451=await this[_0xf0ff62(0x3e0)](_0x41a6be);this[_0xf0ff62(0x24b)]['next'](_0x381451),this[_0xf0ff62(0x22d)][_0xf0ff62(0x2ba)](_0x41a6be,_0x381451);}),this['_univerInstanceService'][_0x4d7ad8(0x2fb)](_0x17d204[_0x4d7ad8(0x2be)])[_0x4d7ad8(0x1fb)](_0xa786ea(this['dispose$']))[_0x4d7ad8(0x1fb)](_0x4289d3(_0x4fd2bb=>!_0x4fd2bb[_0x4d7ad8(0x350)]()[_0x4d7ad8(0x296)]('__')))[_0x4d7ad8(0x1b9)](async _0x3bc7b0=>{const _0x312174=_0x4d7ad8,_0x45e0c0=_0x3bc7b0[_0x312174(0x350)](),_0x3449c0=await this[_0x312174(0x26a)](_0x45e0c0);this[_0x312174(0x24b)]['next'](_0x3449c0),this['_entities'][_0x312174(0x2ba)](_0x45e0c0,_0x3449c0);}),_0xd15dc1(this[_0x4d7ad8(0x1ef)][_0x4d7ad8(0x30f)](_0x17d204['UNIVER_DOC']),this[_0x4d7ad8(0x1ef)][_0x4d7ad8(0x30f)](_0x17d204['UNIVER_SHEET']))['pipe'](_0xa786ea(this[_0x4d7ad8(0x32e)]))[_0x4d7ad8(0x1b9)](_0x384527=>{const _0x8cbf4=_0x4d7ad8,_0x48cc47=_0x384527[_0x8cbf4(0x350)](),_0x3b8858=this['_entities'][_0x8cbf4(0x3c1)](_0x48cc47);_0x3b8858&&(_0x3b8858[_0x8cbf4(0x386)](),this[_0x8cbf4(0x22d)]['delete'](_0x48cc47));});}async[_0x336b69(0x3e0)](_0x3b4718){const _0x1b295b=_0x336b69,_0x1bea71=await this['_collabSessionService'][_0x1b295b(0x336)](_0x3b4718),_0x2ab257=this['_injector'][_0x1b295b(0x33e)](Be,_0x3b4718,_0x1bea71);return _0x2ab257[_0x1b295b(0x355)](),_0x2ab257;}async['_startDocCollabCursor'](_0x5ecce2){const _0x4f66df=_0x336b69,_0xce39cb=await this[_0x4f66df(0x1b4)][_0x4f66df(0x336)](_0x5ecce2),_0x46ac9c=this[_0x4f66df(0x2e4)][_0x4f66df(0x33e)](xe,_0x5ecce2,_0xce39cb);return _0x46ac9c[_0x4f66df(0x355)](),_0x46ac9c;}};H=Wi([Ce(0x0,_0x2f0580),Ce(0x1,_0x1f3b74(_0x55778f)),Ce(0x2,_0x1f3b74(_0x27b9ee))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x33dd32,_0x149239){const _0xdd2559=_0x336b69;let {radius:_0x4494d8,width:_0x3f7d17,height:_0x3ad034}=_0x149239;_0x4494d8=_0x4494d8!=null?_0x4494d8:0x0,_0x3f7d17=_0x3f7d17!=null?_0x3f7d17:0x1e,_0x3ad034=_0x3ad034!=null?_0x3ad034:0x1e;let _0x2a6dc7=0x0,_0x590fd7=0x0,_0x3f8bbe=0x0;_0x2a6dc7=_0x590fd7=_0x3f8bbe=Math[_0xdd2559(0x1cd)](_0x4494d8,_0x3f7d17/0x2,_0x3ad034/0x2),_0x33dd32[_0xdd2559(0x29f)](),_0x33dd32[_0xdd2559(0x1cc)](_0x2a6dc7,0x0),_0x33dd32[_0xdd2559(0x1a4)](_0x3f7d17-_0x590fd7,0x0),_0x33dd32[_0xdd2559(0x317)](_0x3f7d17-_0x590fd7,_0x590fd7,_0x590fd7,Math['PI']*0x3/0x2,0x0,!0x1),_0x33dd32[_0xdd2559(0x1a4)](_0x3f7d17,_0x3ad034-_0x3f8bbe),_0x33dd32['arc'](_0x3f7d17-_0x3f8bbe,_0x3ad034-_0x3f8bbe,_0x3f8bbe,0x0,Math['PI']/0x2,!0x1),_0x33dd32[_0xdd2559(0x1a4)](0x0,_0x3ad034),_0x33dd32[_0xdd2559(0x1a4)](0x0,_0x2a6dc7),_0x33dd32['arc'](_0x2a6dc7,_0x2a6dc7,_0x2a6dc7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x33dd32['closePath'](),_0x149239[_0xdd2559(0x36e)]&&(_0x33dd32[_0xdd2559(0x2b5)](),_0x33dd32[_0xdd2559(0x1ce)]=_0x149239[_0xdd2559(0x36e)],_0x149239[_0xdd2559(0x280)]==='evenodd'?_0x33dd32[_0xdd2559(0x36e)](_0xdd2559(0x315)):_0x33dd32['fill'](),_0x33dd32[_0xdd2559(0x1c2)]());}class ve extends _0x3fbe23{constructor(_0x459c89,_0x434670){const _0x4ef3e4=_0x336b69;super(_0x459c89,_0x434670),_(this,_0x4ef3e4(0x2b9)),_(this,_0x4ef3e4(0x2a5)),(this['color']=_0x434670==null?void 0x0:_0x434670[_0x4ef3e4(0x2b9)],this[_0x4ef3e4(0x2a5)]=_0x434670==null?void 0x0:_0x434670[_0x4ef3e4(0x2a5)]);}static[_0x336b69(0x380)](_0x253cb0,_0xda912e){const _0x33ad5f=_0x336b69,{text:_0x494c00,color:_0x967909}=_0xda912e;_0x253cb0['save'](),_0x253cb0[_0x33ad5f(0x257)]=_0x33ad5f(0x344);const _0x57e9a5=_0x253cb0[_0x33ad5f(0x3fc)](_0x494c00)[_0x33ad5f(0x32c)],_0x2cd4da=Math[_0x33ad5f(0x1cd)](_0x57e9a5+0x2*Re,at);ji(_0x253cb0,{'height':Q,'radius':0x4,'width':_0x2cd4da,'fill':_0x967909}),_0x253cb0['fillStyle']=_0x33ad5f(0x272);const _0x13872c=Re,_0x283cf4=Q-Vi,_0x145ffe=at-0x2*Re;if(_0x57e9a5>_0x145ffe){let _0x4e5718='',_0x3592f3=0x0;for(const _0x4d2fd2 of _0x494c00){const _0x462ecf=_0x253cb0[_0x33ad5f(0x3fc)](_0x4d2fd2)['width'];if(_0x3592f3+_0x462ecf<=_0x145ffe-_0x253cb0[_0x33ad5f(0x3fc)](_0x33ad5f(0x25f))[_0x33ad5f(0x32c)])_0x4e5718+=_0x4d2fd2,_0x3592f3+=_0x462ecf;else{_0x4e5718+='...';break;}}_0x253cb0['fillText'](_0x4e5718,_0x13872c,_0x283cf4);}else _0x253cb0[_0x33ad5f(0x2f4)](_0x494c00,_0x13872c,_0x283cf4);_0x253cb0[_0x33ad5f(0x1c2)]();}[_0x336b69(0x3df)](_0x3f3d0b){const _0x396535=_0x336b69;ve[_0x396535(0x380)](_0x3f3d0b,this);}}const De=_0x336b69(0x308),Xi=_0x336b69(0x2d7),Gi=_0x336b69(0x3d1),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x497296,_0x344d65,_0xb61e00,_0x774151){const _0x2a175a=_0x336b69;_(this,_0x2a175a(0x20e),[]),_(this,_0x2a175a(0x25b),null),_(this,'_textBubble',null),_(this,_0x2a175a(0x35d),null),_(this,_0x2a175a(0x246),null),_(this,_0x2a175a(0x2d8),null),(this['_cursor']=_0x497296,this[_0x2a175a(0x204)]=_0x344d65,this[_0x2a175a(0x3b3)]=_0xb61e00,this[_0x2a175a(0x2e3)]=_0x774151,this[_0x2a175a(0x347)]());}set[_0x336b69(0x215)](_0x3e54fd){const _0x38630e=_0x336b69;_0x3e54fd?(this[_0x38630e(0x35d)]&&this[_0x38630e(0x35d)][_0x38630e(0x259)](),this['_textBubble']&&this['_textBubble'][_0x38630e(0x375)]()):(this[_0x38630e(0x35d)]&&this[_0x38630e(0x35d)][_0x38630e(0x375)](),this[_0x38630e(0x1ad)]&&this[_0x38630e(0x1ad)][_0x38630e(0x259)]());}[_0x336b69(0x386)](){const _0x488ae0=_0x336b69;for(const _0x2bfefa of this['_shapes'])_0x2bfefa[_0x488ae0(0x386)]();this[_0x488ae0(0x1ad)]&&this['_textBubble'][_0x488ae0(0x386)](),this[_0x488ae0(0x35d)]&&this[_0x488ae0(0x35d)][_0x488ae0(0x386)](),this[_0x488ae0(0x25b)]&&this[_0x488ae0(0x25b)][_0x488ae0(0x386)](),this[_0x488ae0(0x2d8)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3446d9=_0x336b69;var _0x2b05ff;const {_docSkeleton:_0x416318,_document:_0x420482}=this,{color:_0x5231c5,name:_0x3f97d8,ranges:_0x464e96}=this['_cursor'],_0x332018=_0x420482[_0x3446d9(0x2ca)](),{docsLeft:_0x2438cf,docsTop:_0xa2cb07}=_0x332018,_0x4cd345=new _0x294d8d(_0x332018,_0x416318);for(const {startOffset:_0x15a485,endOffset:_0x4c4c72,rangeType:_0x387da3,segmentId:_0x498c4e,segmentPage:_0x3a4286,collapsed:_0x4805cc,isActive:_0x4cb94d}of _0x464e96){const _0x6f9954=_0x416318['findNodePositionByCharIndex'](_0x15a485,!0x0,_0x498c4e,_0x3a4286);let _0x1f5337=_0x416318['findNodePositionByCharIndex'](_0x4c4c72,!0x0,_0x498c4e,_0x3a4286);if(_0x1f5337==null&&(_0x1f5337=_0x416318[_0x3446d9(0x27d)](_0x4c4c72-0x1,!0x1,_0x498c4e,_0x3a4286)),_0x4cb94d){const {contentBoxPointGroup:_0x1b427d}=_0x4cd345['getRangePointData'](_0x1f5337,_0x1f5337);if(_0x1b427d[_0x3446d9(0x3ba)]===0x0)continue;this[_0x3446d9(0x3e4)](_0x5231c5,_0x1b427d,_0x2438cf,_0xa2cb07,_0x3f97d8),this[_0x3446d9(0x2d8)]=this[_0x3446d9(0x3ae)]();}if(_0x6f9954&&_0x1f5337){if(_0x387da3===_0x1244aa['RECT']){const _0x2eb530=new _0x32b79b(_0x332018,_0x416318),{pointGroup:_0x30a458}=(_0x2b05ff=_0x2eb530['getRangePointData'](_0x6f9954,_0x1f5337))!=null?_0x2b05ff:{};if(_0x30a458==null||_0x30a458['length']===0x0)continue;this['_drawRectRange'](_0x5231c5,_0x30a458,_0x2438cf,_0xa2cb07);}else{if(!_0x4805cc){const {borderBoxPointGroup:_0xafe245}=_0x4cd345[_0x3446d9(0x240)](_0x6f9954,_0x1f5337);if(_0xafe245[_0x3446d9(0x3ba)]===0x0)continue;this[_0x3446d9(0x227)](_0x5231c5,_0xafe245,_0x2438cf,_0xa2cb07);}}}}}['_drawAnchor'](_0x39092f,_0x48abb9,_0xdb24bd,_0x36f930,_0xa046db){const _0x582415=_0x336b69,_0x2e0e5c=this[_0x582415(0x254)](_0x48abb9),{left:_0x27b094,top:_0x13bdc1,height:_0x59ac37}=_0x2e0e5c,_0x3072d4=this[_0x582415(0x2df)](),_0x5f5a30=zi/_0x3072d4,_0x2a1dd0=new _0x4c96b3(De+_0x20f381(z),{'left':_0x27b094+_0xdb24bd-_0x5f5a30,'top':_0x13bdc1+_0x36f930,'height':_0x59ac37,'width':Ki,'fill':_0x39092f||_0x31f559(_0x2db046['black'],0x0),'strokeWidth':_0x5f5a30,'stroke':Ji,'evented':!0x0});this[_0x582415(0x25b)]=_0x2a1dd0,this[_0x582415(0x204)][_0x582415(0x250)](_0x2a1dd0,_0xf0767);const _0x2501b8=new _0x4c96b3(De+_0x20f381(z),{'left':_0x27b094+_0xdb24bd-_0x5f5a30,'top':_0x13bdc1+_0x36f930-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x39092f||_0x31f559(_0x2db046[_0x582415(0x310)],0x0),'strokeWidth':0x0,'stroke':_0x39092f||_0x31f559(_0x2db046['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x2501b8,this[_0x582415(0x204)]['addObject'](_0x2501b8,_0xf0767);const _0x59d215=new ve(De+_0x20f381(z),{'left':_0x27b094+_0xdb24bd-_0x5f5a30,'top':_0x13bdc1+_0x36f930-Q,'text':_0xa046db,'color':_0x39092f});this['_textBubble']=_0x59d215,this['_scene']['addObject'](_0x59d215,_0xf0767),this[_0x582415(0x215)]=!0x1;}[_0x336b69(0x3ae)](){const _0x30db51=_0x336b69,_0x44071f=this['_anchor'][_0x30db51(0x256)][_0x30db51(0x2c7)](()=>{const _0x41d9e0=_0x30db51;this[_0x41d9e0(0x215)]=!0x0;}),_0xc08c72=this[_0x30db51(0x25b)][_0x30db51(0x3d0)]['subscribeEvent'](()=>{const _0x2167eb=_0x30db51;this[_0x2167eb(0x246)]&&clearTimeout(this[_0x2167eb(0x246)]),this['_hideTimer']=setTimeout(()=>{const _0x2d4e87=_0x2167eb;this[_0x2d4e87(0x215)]=!0x1;},0x7d0);});return()=>{const _0x392866=_0x30db51;_0x44071f[_0x392866(0x283)](),_0xc08c72[_0x392866(0x283)]();};}['_drawTextRange'](_0x1925c3,_0x116ebe,_0x34af70,_0x2ca707){const _0x46df15=_0x336b69,_0x8080fc=new _0x1530d2(_0x1925c3)['setAlpha'](0.2)[_0x46df15(0x1cb)](),_0xa389df=new _0x422925(Xi+_0x20f381(z),{'pointsGroup':_0x116ebe,'fill':_0x8080fc||_0x31f559(_0x2db046[_0x46df15(0x310)],0.2),'left':_0x34af70,'top':_0x2ca707,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x46df15(0x20e)][_0x46df15(0x370)](_0xa389df),this[_0x46df15(0x204)][_0x46df15(0x250)](_0xa389df,_0xf0767);}[_0x336b69(0x3ea)](_0x40bf3e,_0x5a727a,_0x17c153,_0x53d5ce){const _0x2e0a8b=_0x336b69,_0x592c60=new _0x1530d2(_0x40bf3e)[_0x2e0a8b(0x360)](0.2)['toRgbString'](),_0x36ae68=new _0x422925(Gi+_0x20f381(z),{'pointsGroup':_0x5a727a,'fill':_0x592c60||_0x31f559(_0x2db046['black'],0.2),'left':_0x17c153,'top':_0x53d5ce,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e0a8b(0x20e)]['push'](_0x36ae68),this[_0x2e0a8b(0x204)][_0x2e0a8b(0x250)](_0x36ae68,_0xf0767);}['_getAnchorBounding'](_0x2d3f99){const _0x21bab9=_0x2d3f99[0x0],_0x10e09d=_0x21bab9[0x0],_0xffe204=_0x21bab9[0x2],{x:_0x24ef90,y:_0x201d68}=_0x10e09d,{x:_0x1a9587,y:_0x3afdde}=_0xffe204;return{'left':_0x24ef90,'top':_0x201d68,'width':_0x1a9587-_0x24ef90,'height':_0x3afdde-_0x201d68};}[_0x336b69(0x2df)](){const _0xccf38=_0x336b69,{scaleX:_0x9bb87d,scaleY:_0x5b7b34}=this['_scene'][_0xccf38(0x305)]();return Math[_0xccf38(0x24d)](_0x9bb87d,_0x5b7b34);}}var Zi=Object[_0x336b69(0x38c)],Qi=(_0x269975,_0xae0cac,_0x563585,_0xf62a34)=>{const _0x18ac7d=_0x336b69;for(var _0x39c08b=_0xf62a34>0x1?void 0x0:_0xf62a34?Zi(_0xae0cac,_0x563585):_0xae0cac,_0x43b501=_0x269975[_0x18ac7d(0x3ba)]-0x1,_0x1f87d0;_0x43b501>=0x0;_0x43b501--)(_0x1f87d0=_0x269975[_0x43b501])&&(_0x39c08b=_0x1f87d0(_0x39c08b)||_0x39c08b);return _0x39c08b;},ie=(_0x9d6677,_0x2f04c9)=>(_0x19c150,_0x579eab)=>_0x2f04c9(_0x19c150,_0x579eab,_0x9d6677);let Fe=class extends _0x3740ac{constructor(_0x59f7c6,_0x30bf57,_0x5c1648,_0x41cf0a,_0x8b4538){const _0x576e7d=_0x336b69;super(),_(this,'_cursorShapes',[]),_(this,_0x576e7d(0x1c1),[]),(this[_0x576e7d(0x247)]=_0x59f7c6,this[_0x576e7d(0x39b)]=_0x30bf57,this[_0x576e7d(0x306)]=_0x5c1648,this[_0x576e7d(0x3a5)]=_0x41cf0a,this['_themeService']=_0x8b4538,this[_0x576e7d(0x1c3)]());}['_init'](){const _0x45f802=_0x336b69,_0x133100=this[_0x45f802(0x247)][_0x45f802(0x29d)],_0x4c6b53=this['_docSkeletonManagerService'];this[_0x45f802(0x3bb)](_0x76606a([this[_0x45f802(0x306)]['getCollabCursors$'](_0x133100),this[_0x45f802(0x1f8)][_0x45f802(0x3d8)]])[_0x45f802(0x1fb)](_0x12b32b(([_0xdfb9ee,_0x53778d])=>({'skeleton':_0x4c6b53['getSkeleton'](),'cursors':[..._0xdfb9ee[_0x45f802(0x365)]()][_0x45f802(0x1fc)](_0xfa9cee=>({..._0xfa9cee,'color':this[_0x45f802(0x1f8)][_0x45f802(0x1f1)](_0xfa9cee[_0x45f802(0x2b9)])}))})))[_0x45f802(0x1b9)](_0x50ab94=>{const _0x911ec2=_0x45f802;if(this[_0x911ec2(0x353)](),_0x50ab94){const {skeleton:_0x2f6f41,cursors:_0x184228}=_0x50ab94;this[_0x911ec2(0x399)](_0x2f6f41,_0x184228);}})),this[_0x45f802(0x3b1)](),this[_0x45f802(0x23e)]();}[_0x336b69(0x399)](_0x291bef,_0x56d56f){const _0x4369b1=_0x336b69,{scene:_0x446a9a,mainComponent:_0x4ddd81}=this[_0x4369b1(0x247)],_0x2cde5b=_0x56d56f['map'](_0x2ab58a=>new ct(_0x2ab58a,_0x446a9a,_0x291bef,_0x4ddd81));this[_0x4369b1(0x384)]=_0x2cde5b,this[_0x4369b1(0x1c1)]=_0x56d56f;}[_0x336b69(0x292)](){const _0x4366ce=_0x336b69;this['_removeCollabCursors']();const {scene:_0x3d1866,mainComponent:_0xdbe68a}=this['_context'],_0x34e0ec=this['_docSkeletonManagerService'][_0x4366ce(0x36b)](),_0x5b070a=this[_0x4366ce(0x1c1)][_0x4366ce(0x278)](_0x17b71f=>new ct(_0x17b71f,_0x3d1866,_0x34e0ec,_0xdbe68a));this[_0x4366ce(0x384)]=_0x5b070a;}['_removeCollabCursors'](){const _0xe1094a=_0x336b69;this['_cursorShapes'][_0xe1094a(0x3bc)](_0xe444f6=>_0xe444f6[_0xe1094a(0x386)]()),this[_0xe1094a(0x384)]=[];}[_0x336b69(0x23e)](){const _0x52401c=_0x336b69,_0x2c4828=[_0x5a5e2d['id']];this[_0x52401c(0x3bb)](this[_0x52401c(0x3a5)][_0x52401c(0x309)](_0x225841=>{const _0x263b4b=_0x52401c;_0x2c4828['includes'](_0x225841['id'])&&_0x225841[_0x263b4b(0x3a0)][_0x263b4b(0x29d)]===this['_context'][_0x263b4b(0x29d)]&&this[_0x263b4b(0x292)]();}));}[_0x336b69(0x3b1)](){const _0x1d3052=_0x336b69;this[_0x1d3052(0x3bb)](_0x3f4092(this[_0x1d3052(0x247)]['engine'][_0x1d3052(0x38b)])[_0x1d3052(0x1fb)](_0x416b1a(_0x166615=>_0x166615['type']===_0x48b565[_0x1d3052(0x328)]),_0x568e9b(0x10))['subscribe'](()=>{const _0x366991=_0x1d3052;this[_0x366991(0x292)]();}));}};Fe=Qi([ie(0x1,_0x1f3b74(_0x2b11b8)),ie(0x2,_0x1f3b74(H)),ie(0x3,_0x357354),ie(0x4,_0x1f3b74(_0x2d8190))],Fe);const qi=0x1,en=1.5;class tn extends _0x3fbe23{constructor(_0x3569eb,_0x45b6c2){const _0x51ab5e=_0x336b69;super(_0x3569eb,_0x45b6c2),_(this,_0x51ab5e(0x208)),_(this,_0x51ab5e(0x1f7),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x51ab5e(0x368),_0x51ab5e(0x2d3)),_(this,_0x51ab5e(0x338)),(_0x45b6c2&&this[_0x51ab5e(0x2c8)](_0x45b6c2),this[_0x51ab5e(0x256)]['subscribeEvent'](()=>this[_0x51ab5e(0x2c8)]({'hovered':!0x0})),this['onPointerLeave$'][_0x51ab5e(0x2c7)](()=>this[_0x51ab5e(0x2c8)]({'hovered':!0x1})));}[_0x336b69(0x2c8)](_0x3900af){const _0x58c146=_0x336b69;var _0x20d1ef,_0x5d9af6,_0x25c67a,_0x40baed,_0x47f74f,_0x1b717c;this['_color']=(_0x20d1ef=_0x3900af[_0x58c146(0x2b9)])!=null?_0x20d1ef:this['_color'],this[_0x58c146(0x1f7)]=(_0x5d9af6=_0x3900af[_0x58c146(0x3b6)])!=null?_0x5d9af6:this[_0x58c146(0x1f7)],this[_0x58c146(0x2ae)]=(_0x25c67a=_0x3900af[_0x58c146(0x2cb)])!=null?_0x25c67a:this[_0x58c146(0x2ae)],this[_0x58c146(0x31e)]=(_0x40baed=_0x3900af['name'])!=null?_0x40baed:this[_0x58c146(0x31e)],this['_labelPosition']=(_0x47f74f=_0x3900af['labelPosition'])!=null?_0x47f74f:this[_0x58c146(0x368)],this[_0x58c146(0x338)]=(_0x1b717c=_0x3900af[_0x58c146(0x3d7)])!=null?_0x1b717c:this['_backgroundColor'],this[_0x58c146(0x27c)]({'width':_0x3900af['width'],'height':_0x3900af[_0x58c146(0x30b)]});}[_0x336b69(0x1d4)](_0x22bbe8){const _0x80189=_0x336b69,{row:_0x23875a,column:_0x2214bd}=_0x22bbe8;if(_0x23875a>=this[_0x80189(0x2ae)][_0x80189(0x2ac)]&&_0x23875a<=this[_0x80189(0x2ae)][_0x80189(0x1fe)]&&_0x2214bd>=this[_0x80189(0x2ae)][_0x80189(0x255)]&&_0x2214bd<=this[_0x80189(0x2ae)][_0x80189(0x2d9)]){this[_0x80189(0x2c8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x5cc49f){return!0x1;}[_0x336b69(0x3df)](_0x3b52d6){const _0x19d2db=_0x336b69;_0x4c96b3[_0x19d2db(0x380)](_0x3b52d6,{'width':this[_0x19d2db(0x32c)],'height':this[_0x19d2db(0x30b)],'strokeWidth':en,'stroke':this[_0x19d2db(0x208)],'evented':!0x1,'fill':this[_0x19d2db(0x338)]}),this['_hovered']&&(_0x3b52d6['save'](),_0x3b52d6[_0x19d2db(0x1e3)](0x1,0x0,0x0,0x1,this[_0x19d2db(0x32c)],this[_0x19d2db(0x368)]===_0x19d2db(0x36a)?0x0:-Q),ve[_0x19d2db(0x380)](_0x3b52d6,{'text':this[_0x19d2db(0x31e)],'color':this[_0x19d2db(0x208)]}),_0x3b52d6['restore']());}}var sn=Object[_0x336b69(0x38c)],nn=(_0x48d8d9,_0x423927,_0x13ad29,_0x1e9150)=>{const _0x4a12d1=_0x336b69;for(var _0x21dc5b=_0x1e9150>0x1?void 0x0:_0x1e9150?sn(_0x423927,_0x13ad29):_0x423927,_0xe31def=_0x48d8d9[_0x4a12d1(0x3ba)]-0x1,_0x34b38d;_0xe31def>=0x0;_0xe31def--)(_0x34b38d=_0x48d8d9[_0xe31def])&&(_0x21dc5b=_0x34b38d(_0x21dc5b)||_0x21dc5b);return _0x21dc5b;},be=(_0x452395,_0x1025fd)=>(_0x2439ff,_0x50290b)=>_0x1025fd(_0x2439ff,_0x50290b,_0x452395);const rn=0x1389;let ke=class extends _0x3740ac{constructor(_0x31555c,_0x285ed7,_0x36b10d,_0x4d5ea1){const _0x48e60e=_0x336b69;super(),_(this,_0x48e60e(0x1c1),new Set()),_(this,'_lastPointer',null),(this[_0x48e60e(0x247)]=_0x31555c,this[_0x48e60e(0x1f5)]=_0x285ed7,this['_collabCursorController']=_0x36b10d,this[_0x48e60e(0x1f8)]=_0x4d5ea1,this[_0x48e60e(0x1c3)]());}['_init'](){const _0x419d40=_0x336b69;this['_sheetSkeletonManagerService'][_0x419d40(0x1a7)][_0x419d40(0x1fb)](_0xf486d3(this[_0x419d40(0x32e)]),_0x3920b9(_0x15849b=>{const _0x3f683f=_0x419d40;if(_0x15849b){const _0x4817d2=_0x15849b['sheetId'];return _0x76606a(this[_0x3f683f(0x306)][_0x3f683f(0x29e)](this[_0x3f683f(0x247)]['unitId']),this[_0x3f683f(0x1f8)][_0x3f683f(0x3d8)])['pipe'](_0x12b32b(([_0x360598,_0x1cdfa2])=>{const _0x3daabd=_0x3f683f,_0x24a0f0=new Map();return _0x360598[_0x3daabd(0x3bc)]((_0x5d0631,_0x542862)=>{const _0x254e64=_0x3daabd;if(_0x5d0631[_0x254e64(0x331)]===_0x4817d2){const _0x97b721={..._0x5d0631};_0x97b721['color']=this[_0x254e64(0x1f8)][_0x254e64(0x1f1)](_0x5d0631[_0x254e64(0x2b9)]),_0x24a0f0[_0x254e64(0x2ba)](_0x542862,_0x97b721);}}),{'skeleton':_0x15849b,'cursors':_0x24a0f0};}));}return _0x146fb2({'skeleton':null,'cursors':new Map()});}))[_0x419d40(0x1b9)](({skeleton:_0x24e89b,cursors:_0x4fd9cf})=>{const _0x5a268a=_0x419d40;this['_removeCollabCursors'](),_0x24e89b&&this[_0x5a268a(0x399)](_0x24e89b,_0x4fd9cf);}),this[_0x419d40(0x1f5)][_0x419d40(0x1a7)][_0x419d40(0x1b9)](_0x5b35e3=>{const _0x5a921a=_0x419d40;if(_0x5b35e3==null)return;const {skeleton:_0x4f0cc6}=_0x5b35e3,{scene:_0x19f674}=this['_context'];_0x19f674[_0x5a921a(0x21b)][_0x5a921a(0x2c7)](_0x17280b(_0xbf3c18=>{const _0x20e661=_0x5a921a;var _0xeb8e29,_0x494b94;const {offsetX:_0x285171,offsetY:_0x358bb9}=_0xbf3c18,{x:_0x3f66bd,y:_0x50b14f}=_0x19f674[_0x20e661(0x1fa)](_0x44dd9b['FromArray']([_0x285171,_0x358bb9])),{scaleX:_0x38dd59,scaleY:_0x4b96cc}=_0x19f674[_0x20e661(0x305)](),_0x1232be=_0x19f674[_0x20e661(0x35b)](_0x3e6743['VIEW_MAIN']),_0x450323=_0x19f674[_0x20e661(0x27a)](_0x44dd9b[_0x20e661(0x2e8)]([_0x3f66bd,_0x50b14f]),_0x1232be),_0x5e1123=_0x4f0cc6[_0x20e661(0x24c)](_0x285171,_0x358bb9,_0x38dd59,_0x4b96cc,_0x450323);((_0xeb8e29=this['_lastPointer'])==null?void 0x0:_0xeb8e29[_0x20e661(0x358)])===_0x5e1123[_0x20e661(0x358)]&&((_0x494b94=this['_lastPointer'])==null?void 0x0:_0x494b94[_0x20e661(0x364)])===_0x5e1123['row']||this[_0x20e661(0x1c1)]['forEach'](_0x1580e2=>{const _0x3153a1=_0x20e661;_0x1580e2[_0x3153a1(0x1d4)](_0x5e1123);});},0x64));});}[_0x336b69(0x399)](_0xd1945f,_0x492b7b){const _0x1ac5c0=_0x336b69;var _0x446673;const _0x411376=(_0x446673=this[_0x1ac5c0(0x1f5)][_0x1ac5c0(0x2a4)]())==null?void 0x0:_0x446673[_0x1ac5c0(0x1f0)];if(!_0x411376)return;const _0x2a0dc9=this[_0x1ac5c0(0x38a)]();if(!_0x2a0dc9)return;this[_0x1ac5c0(0x1c1)][_0x1ac5c0(0x3bc)](_0x3744ec=>{const _0x1577fa=_0x1ac5c0;_0x3744ec[_0x1577fa(0x1bf)]();});const {scene:_0x2ac7ef}=_0x2a0dc9,_0x57d828=on(Array[_0x1ac5c0(0x220)](_0x492b7b[_0x1ac5c0(0x365)]()))['map'](_0x4186c8=>{const _0x21a3c4=_0x1ac5c0,{color:_0x5b7e61,range:_0x57c7a3,name:_0x23c0e3,selection:_0x2a846,sheetID:_0x549abd}=_0x4186c8,{startColumn:_0x5ef8e0,startRow:_0x13a8c7,endColumn:_0x4900e1,endRow:_0x517fc2}=_0x57c7a3,_0x133709=_0x1a92b1(_0x13a8c7,_0x5ef8e0,_0x2ac7ef,_0x411376),_0x2fb241=_0x1a92b1(_0x517fc2,_0x4900e1,_0x2ac7ef,_0x411376),{columnHeaderHeightAndMarginTop:_0x2e7622}=_0x411376,{startX:_0x5bd91f,startY:_0xcfcd09}=_0x133709,{endX:_0x49c4f6,endY:_0x29ae04}=_0x2fb241,_0x120530=_0x49c4f6-_0x5bd91f,_0x3ad8d6=_0x29ae04-_0xcfcd09,_0x6d3eb0={'labelPosition':_0xcfcd09-_0x2e7622>=Q?_0x21a3c4(0x2d3):'bottom','sheetID':_0x549abd,'range':_0x57c7a3,'color':_0x5b7e61,'name':_0x23c0e3,'selection':_0x2a846,'left':_0x5bd91f,'top':_0xcfcd09,'width':_0x120530,'height':_0x3ad8d6,'evented':!0x1,'zIndex':rn};return new tn(_0x23c0e3,_0x6d3eb0);});_0x2ac7ef[_0x1ac5c0(0x2cd)](_0x57d828,qi),this['_cursors']=new Set(_0x57d828);}[_0x336b69(0x353)](){const _0x4053f8=_0x336b69;var _0x2c7f02;(_0x2c7f02=this[_0x4053f8(0x1c1)])==null||_0x2c7f02['forEach'](_0x5f4b34=>_0x5f4b34[_0x4053f8(0x386)]());}[_0x336b69(0x38a)](){const _0x5a2ced=_0x336b69;return _0x21d26c(this[_0x5a2ced(0x247)]['unit'],this[_0x5a2ced(0x247)]);}};ke=nn([be(0x1,_0x1f3b74(_0x35db75)),be(0x2,_0x1f3b74(H)),be(0x3,_0x1f3b74(_0x2d8190))],ke);function on(_0x545063){const _0xb7d87=_0x336b69,_0x9ff363=new Map();return _0x545063['forEach'](_0x36a4cf=>{const _0x2bb1d3=_0x1218;if(_0x9ff363[_0x2bb1d3(0x3f3)](_0x36a4cf[_0x2bb1d3(0x3a3)])){const _0x1efc45=_0x9ff363['get'](_0x36a4cf[_0x2bb1d3(0x3a3)]);_0x1efc45[_0x2bb1d3(0x32b)]+=',\x20'+_0x36a4cf[_0x2bb1d3(0x32b)];}else _0x9ff363[_0x2bb1d3(0x2ba)](_0x36a4cf[_0x2bb1d3(0x3a3)],_0x36a4cf);}),Array[_0xb7d87(0x220)](_0x9ff363[_0xb7d87(0x365)]());}var an=Object[_0x336b69(0x38c)],cn=(_0x5d12e4,_0x326ece,_0x2ef3a3,_0x16839a)=>{for(var _0x4c406a=_0x16839a>0x1?void 0x0:_0x16839a?an(_0x326ece,_0x2ef3a3):_0x326ece,_0x5c952f=_0x5d12e4['length']-0x1,_0x5130b9;_0x5c952f>=0x0;_0x5c952f--)(_0x5130b9=_0x5d12e4[_0x5c952f])&&(_0x4c406a=_0x5130b9(_0x4c406a)||_0x4c406a);return _0x4c406a;},F=(_0x214cf6,_0x58a50c)=>(_0x3ce65e,_0x5956ea)=>_0x58a50c(_0x3ce65e,_0x5956ea,_0x214cf6);let _e=class extends _0x47faf0{constructor(_0x255e1a,_0xd801aa,_0x4db82e,_0x4c38ff,_0x2d2997,_0x437d57){const _0x360017=_0x336b69;super(),this['_beforeCloseService']=_0x255e1a,this[_0x360017(0x2a3)]=_0xd801aa,this[_0x360017(0x34d)]=_0x4db82e,this['_messageService']=_0x4c38ff,this[_0x360017(0x2b7)]=_0x2d2997,this[_0x360017(0x2bc)]=_0x437d57,this[_0x360017(0x2f8)](),this[_0x360017(0x3bf)]();}[_0x336b69(0x2f8)](){const _0x4c7b4f=_0x336b69;this['disposeWithMe'](this[_0x4c7b4f(0x330)][_0x4c7b4f(0x1a9)](()=>{const _0x4589a6=_0x4c7b4f;if(this['_localCacheService'][_0x4589a6(0x28b)][_0x4589a6(0x235)])return this[_0x4589a6(0x2bc)]['t'](_0x4589a6(0x35f));}));}['_initEvent'](){const _0x452c8a=_0x336b69;this['disposeWithMe'](this['_collaborationUIEventService'][_0x452c8a(0x25e)][_0x452c8a(0x1b9)](_0x27c1b7=>{const _0x108297=_0x452c8a;_0x27c1b7['id']===_0xa1351b[_0x108297(0x217)]&&this['_messageService']['show']({'type':_0x1e0dd6[_0x108297(0x33c)],'content':this[_0x108297(0x2bc)]['t'](_0x108297(0x213))}),_0x27c1b7['id']===_0xa1351b[_0x108297(0x3de)]&&this[_0x108297(0x2da)][_0x108297(0x375)]({'type':_0x1e0dd6['Warning'],'content':this[_0x108297(0x2bc)]['t'](_0x108297(0x258))}),_0x27c1b7['id']===_0xa1351b[_0x108297(0x30e)]&&this[_0x108297(0x2b7)]['show']({'title':this[_0x108297(0x2bc)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}),_0x27c1b7['id']===_0xa1351b['CONFLICT']&&this[_0x108297(0x2da)][_0x108297(0x375)]({'type':_0x1e0dd6['Error'],'content':this['_localeService']['t'](_0x108297(0x258))+'('+_0x27c1b7[_0x108297(0x287)]+')'}),_0x27c1b7['id']===_0xa1351b[_0x108297(0x334)]&&this[_0x108297(0x2da)][_0x108297(0x375)]({'type':_0x1e0dd6[_0x108297(0x33c)],'content':this['_localeService']['t'](_0x27c1b7['data']||'')}),_0x27c1b7['id']===_0xa1351b[_0x108297(0x282)]&&this[_0x108297(0x2da)][_0x108297(0x375)]({'type':_0x1e0dd6[_0x108297(0x33c)],'content':this[_0x108297(0x2bc)]['t'](_0x108297(0x251))}),_0x27c1b7['id']===_0xa1351b['SOCKET_FAILED']&&this['_messageService'][_0x108297(0x375)]({'type':_0x1e0dd6[_0x108297(0x20c)],'content':this[_0x108297(0x2bc)]['t']('session.connection-failed')}),_0x27c1b7['id']===_0xa1351b[_0x108297(0x3bd)]&&this[_0x108297(0x2da)][_0x108297(0x375)]({'type':_0x1e0dd6[_0x108297(0x20c)],'content':this['_localeService']['t'](_0x108297(0x2d2))});}));}};_e=cn([F(0x0,_0x18cfb9),F(0x1,_0x3e0fc1),F(0x2,_0x1f3b74(_0xa5e1f8)),F(0x3,_0x44f301),F(0x4,_0x465975),F(0x5,_0x1f3b74(_0xa807ff))],_e);var _n=Object[_0x336b69(0x38c)],ln=(_0x2c8728,_0x46bc9b,_0x2eca16,_0x35b26f)=>{const _0x315c4e=_0x336b69;for(var _0x47ad15=_0x35b26f>0x1?void 0x0:_0x35b26f?_n(_0x46bc9b,_0x2eca16):_0x46bc9b,_0x4ae734=_0x2c8728[_0x315c4e(0x3ba)]-0x1,_0x54c190;_0x4ae734>=0x0;_0x4ae734--)(_0x54c190=_0x2c8728[_0x4ae734])&&(_0x47ad15=_0x54c190(_0x47ad15)||_0x47ad15);return _0x47ad15;},ne=(_0x1418c0,_0x5cda37)=>(_0x4c7a11,_0xb4f1be)=>_0x5cda37(_0x4c7a11,_0xb4f1be,_0x1418c0);let le=class extends _0x47faf0{constructor(_0x349a3f,_0x60a567,_0x3bcfbb,_0x5bc06e){const _0xfee7f7=_0x336b69;super(),_(this,_0xfee7f7(0x2b6)),(this[_0xfee7f7(0x2e4)]=_0x349a3f,this['_httpService']=_0x60a567,this['_logService']=_0x3bcfbb,this['_collaborationSessionService']=_0x5bc06e,this[_0xfee7f7(0x1c3)]());}[_0x336b69(0x1c3)](){const _0xc525ef=_0x336b69;this[_0xc525ef(0x1c4)](),this[_0xc525ef(0x322)](),this[_0xc525ef(0x3cb)](),this['_initUserListener']();}[_0x336b69(0x28d)](){const _0x1a1a7f=_0x336b69;this[_0x1a1a7f(0x3bb)](this[_0x1a1a7f(0x298)][_0x1a1a7f(0x394)][_0x1a1a7f(0x1b9)](_0x5cf9a2=>{const _0x425d75=_0x1a1a7f;this['_memberID']=_0x5cf9a2==null?void 0x0:_0x5cf9a2[_0x425d75(0x2c6)];}));}[_0x336b69(0x1c4)](){const _0x3a8afd=_0x336b69,_0x285078=_0x3fb764=>{const _0x3abbed=_0x1218;var _0x2a487a;this[_0x3abbed(0x228)]('error',_0x3abbed(0x269)+_0x3fb764[_0x3abbed(0x2bf)]+_0x3abbed(0x279)+_0x3fb764[_0x3abbed(0x2d0)]+':'+_0x3fb764[_0x3abbed(0x291)]+':'+_0x3fb764[_0x3abbed(0x22a)]+'\x0a'+(((_0x2a487a=_0x3fb764['error'])==null?void 0x0:_0x2a487a[_0x3abbed(0x244)])||''));};window[_0x3a8afd(0x297)]('error',_0x285078),this[_0x3a8afd(0x3bb)](()=>{window['removeEventListener']('error',_0x285078);});}['_initUnhandledRejectionListener'](){const _0x5a96f1=_0x336b69,_0x168266=_0x366259=>{const _0x463485=_0x1218;this[_0x463485(0x228)](_0x463485(0x3a6),_0x463485(0x266)+_0x366259['reason']);};window[_0x5a96f1(0x297)](_0x5a96f1(0x252),_0x168266),this[_0x5a96f1(0x3bb)](()=>{const _0x2c3dd7=_0x5a96f1;window[_0x2c3dd7(0x1fd)](_0x2c3dd7(0x252),_0x168266);});}[_0x336b69(0x3cb)](){const _0x2c5398=_0x336b69,_0x4a540a=this['_logService']['error'][_0x2c5398(0x367)](this[_0x2c5398(0x396)]);this['_logService'][_0x2c5398(0x3a6)]=(..._0x4e9de1)=>{const _0x196fe7=_0x2c5398,_0x5689db=_0x4e9de1[_0x196fe7(0x278)](_0x1d4595=>_0x1d4595 instanceof Error?_0x1d4595[_0x196fe7(0x2bf)]+'\x0a'+_0x1d4595[_0x196fe7(0x244)]:String(_0x1d4595))[_0x196fe7(0x362)]('\x20');this[_0x196fe7(0x228)](_0x196fe7(0x3a6),_0x196fe7(0x2ec)+_0x5689db),_0x4a540a(..._0x4e9de1);},this['disposeWithMe'](()=>{const _0x54b92c=_0x2c5398;this[_0x54b92c(0x396)][_0x54b92c(0x3a6)]=_0x4a540a;});}[_0x336b69(0x228)](_0x1d054b,_0x7cb8e2){const _0x2cfa63=_0x336b69;try{const _0x365435={'userId':this['_memberID'],'logLabel':_0x1d054b,'content':_0x7cb8e2};this[_0x2cfa63(0x343)][_0x2cfa63(0x231)](_0x2cfa63(0x1cf),{'body':_0x365435})[_0x2cfa63(0x223)](()=>{});}catch{}}};le=ln([ne(0x0,_0x1f3b74(_0x55778f)),ne(0x1,_0x1f3b74(_0x348fb4)),ne(0x2,_0x46a5d6),ne(0x3,_0x1f3b74(_0x27b9ee))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x336b69(0x38c)],dn=(_0x1b912b,_0xde11db,_0x3dd3ba,_0x32d15e)=>{const _0x1e0796=_0x336b69;for(var _0x375d60=_0x32d15e>0x1?void 0x0:_0x32d15e?un(_0xde11db,_0x3dd3ba):_0xde11db,_0x925c57=_0x1b912b[_0x1e0796(0x3ba)]-0x1,_0x4967ea;_0x925c57>=0x0;_0x925c57--)(_0x4967ea=_0x1b912b[_0x925c57])&&(_0x375d60=_0x4967ea(_0x375d60)||_0x375d60);return _0x375d60;},lt=(_0xc7d05a,_0x300416)=>(_0x33cc55,_0x55b16e)=>_0x300416(_0x33cc55,_0x55b16e,_0xc7d05a);let he=class{constructor(_0x235e20,_0x233aa4){const _0x145a07=_0x336b69;this[_0x145a07(0x26f)]=_0x235e20,this[_0x145a07(0x2ce)]=_0x233aa4;}[_0x336b69(0x253)](_0x4590d5){const _0x73a6a9=_0x336b69;this['_transformUndoRedoStack'](_0x4590d5),this[_0x73a6a9(0x23f)](_0x4590d5);}[_0x336b69(0x249)](_0x4ee74e){const _0x18b117=_0x336b69,{unitID:_0x1f6a35}=_0x4ee74e,_0x58e20c=this[_0x18b117(0x2ce)][_0x18b117(0x1d8)](_0x1f6a35)[_0x18b117(0x285)](_0x260945),{redoCache:_0x49fc68}=_0x58e20c[_0x18b117(0x2de)]();if(_0x49fc68['length']===0x0)return _0x4ee74e;let _0x37d317=_0x2e1b8b[_0x18b117(0x3a7)](_0x4ee74e['mutations'][0x0]);for(let _0x57cb06=0x0;_0x57cb06<_0x49fc68[_0x18b117(0x3ba)];_0x57cb06++){const _0x5c9808={'id':_0x18b117(0x2af),'params':{..._0x49fc68[_0x57cb06]}},_0x4d4967=this[_0x18b117(0x26f)][_0x18b117(0x21a)](_0x37d317,_0x5c9808,!0x1);if(_0x3715d3(_0x4d4967))throw _0x4d4967['error'];_0x37d317=_0x4d4967['m1Prime'];}return{..._0x2e1b8b[_0x18b117(0x3a7)](_0x4ee74e),'mutations':[_0x37d317]};}['_transformUndoRedoStack'](_0x1f120a){const _0x348018=_0x336b69,{unitID:_0x1c57c2}=_0x1f120a,_0x558d34=this[_0x348018(0x2ce)]['getRenderById'](_0x1c57c2)['with'](_0x260945),{undoCache:_0x2824a4,redoCache:_0x2f7645}=_0x558d34['getUndoRedoMutationParamsCache']();if(_0x2824a4['length']===0x0||_0x2f7645[_0x348018(0x3ba)]===0x0)return;const _0x26d9a8=[],_0x12d2a6=[];let _0x1e995b=_0x2e1b8b[_0x348018(0x3a7)](_0x1f120a[_0x348018(0x2ef)][0x0]),_0x3a535c=_0x2e1b8b[_0x348018(0x3a7)](_0x1f120a[_0x348018(0x2ef)][0x0]);for(let _0x5da59e=_0x2824a4[_0x348018(0x3ba)]-0x1;_0x5da59e>=0x0;_0x5da59e--){const _0x351d57={'id':_0x348018(0x2af),'params':{..._0x2824a4[_0x5da59e]}},_0x4abff7={'id':_0x348018(0x2af),'params':{..._0x2f7645[_0x5da59e]}},_0x3f5707=this[_0x348018(0x26f)][_0x348018(0x21a)](_0x1e995b,_0x351d57,!0x1),_0x525e0a=this[_0x348018(0x26f)][_0x348018(0x21a)](_0x3a535c,_0x4abff7,!0x1);if(_0x3715d3(_0x3f5707))throw _0x3f5707[_0x348018(0x3a6)];if(_0x3715d3(_0x525e0a))throw _0x525e0a[_0x348018(0x3a6)];_0x26d9a8['unshift'](_0x3f5707['m2Prime'][_0x348018(0x3a0)]),_0x12d2a6[_0x348018(0x1e1)](_0x525e0a['m2Prime'][_0x348018(0x3a0)]),_0x1e995b=_0x3f5707[_0x348018(0x373)],_0x3a535c=_0x525e0a[_0x348018(0x373)];}_0x558d34['setUndoRedoMutationParamsCache']({'undoCache':_0x26d9a8,'redoCache':_0x12d2a6});}[_0x336b69(0x23f)](_0x195981){const _0x5e2e64=_0x336b69,{unitID:_0x562e8e}=_0x195981,_0x242b4c=this[_0x5e2e64(0x2ce)][_0x5e2e64(0x1d8)](_0x562e8e)[_0x5e2e64(0x285)](_0x260945),_0x1862bc=_0x242b4c[_0x5e2e64(0x3e7)]();if(_0x1862bc==null)return;const _0x1b6a9b=[{'id':_0x5e2e64(0x2af),'params':{'unitId':_0x195981[_0x5e2e64(0x202)],'actions':null,'textRanges':[_0x1862bc]}}],_0x7754df=this[_0x5e2e64(0x26f)]['transformMutationsWithChangeset'](_0x195981,_0x1b6a9b);if(!_0x5aa1a3(_0x7754df))throw _0x7754df[_0x5e2e64(0x3a6)];const _0x26884b=_0x7754df[_0x5e2e64(0x3ab)][0x0][_0x5e2e64(0x3a0)][_0x5e2e64(0x1ee)];Array[_0x5e2e64(0x34e)](_0x26884b)&&_0x26884b[_0x5e2e64(0x3ba)]&&_0x242b4c[_0x5e2e64(0x31b)](_0x26884b[0x0]);}};he=dn([lt(0x0,_0x16b512),lt(0x1,_0x4b34f5)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x2fb163,_0x32ac3e,_0x512ca3,_0x466a72)=>{const _0x185d21=_0x336b69;for(var _0x9dd9e2=_0x466a72>0x1?void 0x0:_0x466a72?Sn(_0x32ac3e,_0x512ca3):_0x32ac3e,_0x5f4dbb=_0x2fb163[_0x185d21(0x3ba)]-0x1,_0x77a43b;_0x5f4dbb>=0x0;_0x5f4dbb--)(_0x77a43b=_0x2fb163[_0x5f4dbb])&&(_0x9dd9e2=_0x77a43b(_0x9dd9e2)||_0x9dd9e2);return _0x9dd9e2;},Le=(_0x4f9c5d,_0x233076)=>(_0xe83f5a,_0x382fee)=>_0x233076(_0xe83f5a,_0x382fee,_0x4f9c5d);let ue=class{constructor(_0x22023a,_0x29aa3d,_0x2c739b){const _0x31a435=_0x336b69;this[_0x31a435(0x2e4)]=_0x22023a,this[_0x31a435(0x26f)]=_0x29aa3d,this[_0x31a435(0x274)]=_0x2c739b;}[_0x336b69(0x30c)](_0x299c4b){const _0x58accc=_0x336b69;this[_0x58accc(0x276)](_0x299c4b);}['transformRemoteChangeset'](_0x15d707){const _0x5e4ac3=_0x336b69,{unitID:_0x1d8065}=_0x15d707,{collaboration:_0x17eb1e}=this['_docStateChangeManagerService'][_0x5e4ac3(0x294)](_0x1d8065);if(_0x17eb1e[_0x5e4ac3(0x3ba)]===0x0)return _0x15d707;let _0x27675f=_0x2e1b8b['deepClone'](_0x15d707[_0x5e4ac3(0x2ef)][0x0]);for(let _0xcc244f=0x0;_0xcc244f<_0x17eb1e['length'];_0xcc244f++){const _0xc1166c={'id':_0x5e4ac3(0x2af),'params':{'unitId':_0x17eb1e[_0xcc244f][_0x5e4ac3(0x29d)],..._0x17eb1e[_0xcc244f][_0x5e4ac3(0x1bc)]}},_0x352cc6=this[_0x5e4ac3(0x26f)]['transformMutation'](_0x27675f,_0xc1166c,!0x1);if(_0x3715d3(_0x352cc6))throw _0x352cc6['error'];_0x27675f=_0x352cc6[_0x5e4ac3(0x373)];}return{..._0x2e1b8b[_0x5e4ac3(0x3a7)](_0x15d707),'mutations':[_0x27675f]};}[_0x336b69(0x276)](_0x33d56b){const _0x202bd8=_0x336b69,{unitID:_0x414d52}=_0x33d56b,{history:_0x4b75da,collaboration:_0x4f8777}=this[_0x202bd8(0x274)][_0x202bd8(0x294)](_0x414d52);if(_0x4b75da['length']===0x0&&_0x4f8777[_0x202bd8(0x3ba)]===0x0)return;const _0x11cad5=[],_0x50db65=[];let _0xb28041=_0x2e1b8b[_0x202bd8(0x3a7)](_0x33d56b[_0x202bd8(0x2ef)][0x0]),_0x453c6d=_0x2e1b8b[_0x202bd8(0x3a7)](_0x33d56b['mutations'][0x0]);for(let _0x2d464e=_0x4b75da['length']-0x1;_0x2d464e>=0x0;_0x2d464e--){const _0x30a920={'id':_0x202bd8(0x2af),'params':{'unitId':_0x4b75da[_0x2d464e]['unitId'],..._0x4b75da[_0x2d464e][_0x202bd8(0x2ee)]}},_0x1440ab={'id':_0x202bd8(0x2af),'params':{'unitId':_0x4b75da[_0x2d464e][_0x202bd8(0x29d)],..._0x4b75da[_0x2d464e][_0x202bd8(0x1bc)]}},_0x419642=this[_0x202bd8(0x26f)]['transformMutation'](_0xb28041,_0x30a920,!0x1),_0x15e673=this[_0x202bd8(0x26f)][_0x202bd8(0x21a)](_0x453c6d,_0x1440ab,!0x1);if(_0x3715d3(_0x419642))throw _0x419642[_0x202bd8(0x3a6)];if(_0x3715d3(_0x15e673))throw _0x15e673[_0x202bd8(0x3a6)];_0x11cad5[_0x202bd8(0x1e1)]({..._0x4b75da[_0x2d464e],'undoState':_0x419642[_0x202bd8(0x3ab)][_0x202bd8(0x3a0)],'redoState':_0x15e673[_0x202bd8(0x3ab)][_0x202bd8(0x3a0)]}),_0xb28041=_0x419642['m1Prime'],_0x453c6d=_0x15e673[_0x202bd8(0x373)];}_0xb28041=_0x2e1b8b[_0x202bd8(0x3a7)](_0x33d56b[_0x202bd8(0x2ef)][0x0]),_0x453c6d=_0x2e1b8b['deepClone'](_0x33d56b['mutations'][0x0]);for(let _0x6fda86=_0x4f8777['length']-0x1;_0x6fda86>=0x0;_0x6fda86--){const _0x3ef7a0={'id':_0x202bd8(0x2af),'params':{'unitId':_0x4f8777[_0x6fda86][_0x202bd8(0x29d)],..._0x4f8777[_0x6fda86][_0x202bd8(0x2ee)]}},_0x5548f4={'id':_0x202bd8(0x2af),'params':{'unitId':_0x4f8777[_0x6fda86]['unitId'],..._0x4f8777[_0x6fda86]['redoState']}},_0x474f1f=this[_0x202bd8(0x26f)][_0x202bd8(0x21a)](_0xb28041,_0x3ef7a0,!0x1),_0x7139e7=this[_0x202bd8(0x26f)][_0x202bd8(0x21a)](_0x453c6d,_0x5548f4,!0x1);if(_0x3715d3(_0x474f1f))throw _0x474f1f['error'];if(_0x3715d3(_0x7139e7))throw _0x7139e7['error'];_0x50db65['unshift']({..._0x4f8777[_0x6fda86],'undoState':_0x474f1f['m2Prime'][_0x202bd8(0x3a0)],'redoState':_0x7139e7[_0x202bd8(0x3ab)]['params']}),_0xb28041=_0x474f1f['m1Prime'],_0x453c6d=_0x7139e7[_0x202bd8(0x373)];}this[_0x202bd8(0x274)][_0x202bd8(0x3eb)](_0x414d52,{'history':_0x11cad5,'collaboration':_0x50db65});}};ue=In([Le(0x0,_0x1f3b74(_0x55778f)),Le(0x1,_0x16b512),Le(0x2,_0x1f3b74(_0x3c247d))],ue);var mn=Object[_0x336b69(0x38c)],fn=(_0xadd117,_0x223333,_0x11f55a,_0x1112cd)=>{const _0x2fee9d=_0x336b69;for(var _0x5e4ae2=_0x1112cd>0x1?void 0x0:_0x1112cd?mn(_0x223333,_0x11f55a):_0x223333,_0x3b80d6=_0xadd117[_0x2fee9d(0x3ba)]-0x1,_0x2f4f69;_0x3b80d6>=0x0;_0x3b80d6--)(_0x2f4f69=_0xadd117[_0x3b80d6])&&(_0x5e4ae2=_0x2f4f69(_0x5e4ae2)||_0x5e4ae2);return _0x5e4ae2;},ht=(_0x494ca6,_0x4018dc)=>(_0x11b2db,_0x28ea88)=>_0x4018dc(_0x11b2db,_0x28ea88,_0x494ca6);let de=class{constructor(_0x326979,_0x4781a4){const _0x3c0b05=_0x336b69;this[_0x3c0b05(0x2e4)]=_0x326979,this[_0x3c0b05(0x26f)]=_0x4781a4;}[_0x336b69(0x3d4)](_0xb6735f){const _0x17a5d1=_0x336b69;var _0x52a6ae;const _0x30f8e3=this['_injector'][_0x17a5d1(0x3c1)](_0x2babfd),_0x5529f4=(_0x52a6ae=_0x30f8e3['getDocRanges']())!=null?_0x52a6ae:[];if(_0x5529f4[_0x17a5d1(0x3ba)]===0x0)return;const _0xda66b3=_0xb6735f['unitID'],_0xd3ea54=[{'id':_0x17a5d1(0x2af),'params':{'unitId':_0xda66b3,'actions':null,'textRanges':_0x5529f4}}],_0x238243=this[_0x17a5d1(0x26f)][_0x17a5d1(0x388)](_0xb6735f,_0xd3ea54);if(!_0x5aa1a3(_0x238243))throw _0x238243[_0x17a5d1(0x3a6)];const _0x5df50d=_0x238243['m2Prime'][0x0]['params'][_0x17a5d1(0x1ee)];Array[_0x17a5d1(0x34e)](_0x5df50d)&&_0x5df50d[_0x17a5d1(0x3ba)]&&_0x30f8e3[_0x17a5d1(0x25a)](_0x5df50d,{'unitId':_0xda66b3,'subUnitId':_0xda66b3},!0x1);}};de=fn([ht(0x0,_0x1f3b74(_0x55778f)),ht(0x1,_0x16b512)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x459af6,_0x22e161,_0x4a99b9,_0x5a7e0f)=>{const _0x598d67=_0x336b69;for(var _0x42380b=_0x5a7e0f>0x1?void 0x0:_0x5a7e0f?gn(_0x22e161,_0x4a99b9):_0x22e161,_0x2b6b81=_0x459af6[_0x598d67(0x3ba)]-0x1,_0x2fe89d;_0x2b6b81>=0x0;_0x2b6b81--)(_0x2fe89d=_0x459af6[_0x2b6b81])&&(_0x42380b=_0x2fe89d(_0x42380b)||_0x42380b);return _0x42380b;},U=(_0x34f386,_0x3b5e50)=>(_0x516721,_0x1bb94)=>_0x3b5e50(_0x516721,_0x1bb94,_0x34f386);let Se=class extends _0x47faf0{constructor(_0x193c50,_0x10d017,_0x45d26b,_0x43635a,_0xcbf356,_0x21a273,_0x16859a,_0x595460){const _0x1e347d=_0x336b69;super(),_(this,'_status$',new _0x2b7d7c(_0x25c0b2[_0x1e347d(0x2c9)])),(this[_0x1e347d(0x274)]=_0x193c50,this['_collaborationController']=_0x10d017,this[_0x1e347d(0x216)]=_0x45d26b,this[_0x1e347d(0x3e8)]=_0x43635a,this[_0x1e347d(0x1d0)]=_0xcbf356,this[_0x1e347d(0x332)]=_0x21a273,this[_0x1e347d(0x2da)]=_0x16859a,this[_0x1e347d(0x2bc)]=_0x595460,this[_0x1e347d(0x2fc)]());}[_0x336b69(0x2fc)](){const _0x5c13f0=_0x336b69;this[_0x5c13f0(0x3bb)](this[_0x5c13f0(0x1e2)][_0x5c13f0(0x265)][_0x5c13f0(0x1b9)](_0x52d361=>{const _0x3b1d47=_0x5c13f0,_0x76479e=this['_docStateChangeManagerService'][_0x3b1d47(0x1f4)][_0x3b1d47(0x1b9)](_0x1445e6=>{const _0x4562a7=_0x3b1d47;if(_0x1445e6==null)return;const {unitId:_0x5d84ce,redoState:_0x1666b5,commandId:_0x4e8ec5}=_0x1445e6;if(_0x5d84ce!==_0x52d361['unitID'])return;const _0x17dc9d={'id':_0x4e8ec5,'type':_0x772392['MUTATION'],'params':{'unitId':_0x5d84ce,'actions':_0x1666b5[_0x4562a7(0x1b3)],'textRanges':null}};_0x52d361[_0x4562a7(0x35e)](_0x17dc9d);});if(_0x52d361[_0x3b1d47(0x3bb)](_0x76479e),_0x52d361 instanceof _0x337689){const _0x485cb7={'onTransformIME':_0x59a8f3=>this[_0x3b1d47(0x216)]['transformIMECache'](_0x59a8f3),'onTransformState':_0x5dc8d6=>this['_docTransformStateCacheService'][_0x3b1d47(0x30c)](_0x5dc8d6),'onTransformSelections':_0x17dd09=>this[_0x3b1d47(0x1d0)][_0x3b1d47(0x3d4)](_0x17dd09),'onSyncEditingCollabCursor':_0x2159ff=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x2159ff),'onTransformRemoteChangesetByIMECache':_0x31af96=>this[_0x3b1d47(0x216)][_0x3b1d47(0x249)](_0x31af96),'onTransformRemoteChangesetByStateCache':_0x2cc854=>this['_docTransformStateCacheService'][_0x3b1d47(0x249)](_0x2cc854)};_0x52d361[_0x3b1d47(0x214)](_0x485cb7);}}));}};Se=En([U(0x0,_0x1f3b74(_0x3c247d)),U(0x1,_0x1f3b74(_0x3064e9)),U(0x2,_0x1f3b74(he)),U(0x3,_0x1f3b74(ue)),U(0x4,_0x1f3b74(de)),U(0x5,_0x1f3b74(ze)),U(0x6,_0x44f301),U(0x7,_0x1f3b74(_0xa807ff))],Se);var Z=(_0x49ea14=>(_0x49ea14[_0x49ea14[_0x336b69(0x23a)]=0x0]=_0x336b69(0x23a),_0x49ea14[_0x49ea14['OK']=0x1]='OK',_0x49ea14[_0x49ea14[_0x336b69(0x243)]=0x2]=_0x336b69(0x243),_0x49ea14[_0x49ea14[_0x336b69(0x30e)]=0x3]=_0x336b69(0x30e),_0x49ea14[_0x49ea14['NOT_FOUND']=0x4]=_0x336b69(0x366),_0x49ea14[_0x49ea14['UNAUTHENTICATED']=0x5]=_0x336b69(0x209),_0x49ea14[_0x49ea14[_0x336b69(0x273)]=0x6]=_0x336b69(0x273),_0x49ea14[_0x49ea14[_0x336b69(0x359)]=0x7]=_0x336b69(0x359),_0x49ea14[_0x49ea14['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x49ea14[_0x49ea14[_0x336b69(0x29c)]=0x9]=_0x336b69(0x29c),_0x49ea14[_0x49ea14[_0x336b69(0x3f6)]=0xa]=_0x336b69(0x3f6),_0x49ea14[_0x49ea14['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x49ea14[_0x49ea14['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x336b69(0x1eb),_0x49ea14[_0x49ea14['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x336b69(0x1b5),_0x49ea14[_0x49ea14[_0x336b69(0x1ac)]=0xe]=_0x336b69(0x1ac),_0x49ea14[_0x49ea14[_0x336b69(0x1e6)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x49ea14[_0x49ea14[_0x336b69(0x39c)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x49ea14[_0x49ea14[_0x336b69(0x351)]=0x64]=_0x336b69(0x351),_0x49ea14[_0x49ea14[_0x336b69(0x33d)]=0x65]=_0x336b69(0x33d),_0x49ea14[_0x49ea14[_0x336b69(0x22e)]=0xc9]=_0x336b69(0x22e),_0x49ea14[_0x49ea14['USER_IS_ANONYMOUS']=0xca]=_0x336b69(0x1d5),_0x49ea14[_0x49ea14[_0x336b69(0x2dc)]=0x1389]=_0x336b69(0x2dc),_0x49ea14[_0x49ea14[_0x336b69(0x39a)]=0x1771]=_0x336b69(0x39a),_0x49ea14[_0x49ea14[_0x336b69(0x3f9)]=0x1772]=_0x336b69(0x3f9),_0x49ea14[_0x49ea14['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x49ea14[_0x49ea14[_0x336b69(0x270)]=0x1b59]=_0x336b69(0x270),_0x49ea14[_0x49ea14['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x336b69(0x352),_0x49ea14[_0x49ea14[_0x336b69(0x3b7)]=0x1b5b]=_0x336b69(0x3b7),_0x49ea14[_0x49ea14[_0x336b69(0x22f)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x49ea14[_0x49ea14[_0x336b69(0x3fa)]=0x1b5d]=_0x336b69(0x3fa),_0x49ea14[_0x49ea14[_0x336b69(0x3f4)]=0x1f41]=_0x336b69(0x3f4),_0x49ea14[_0x49ea14[_0x336b69(0x1e4)]=0x2329]=_0x336b69(0x1e4),_0x49ea14[_0x49ea14['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x336b69(0x339),_0x49ea14[_0x49ea14['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x336b69(0x3dc),_0x49ea14[_0x49ea14['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x336b69(0x284),_0x49ea14[_0x49ea14[_0x336b69(0x3b2)]=0x232d]=_0x336b69(0x3b2),_0x49ea14[_0x49ea14[_0x336b69(0x2b2)]=0x2711]=_0x336b69(0x2b2),_0x49ea14[_0x49ea14[_0x336b69(0x2c3)]=0x2712]=_0x336b69(0x2c3),_0x49ea14[_0x49ea14['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x49ea14[_0x49ea14['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x336b69(0x1b7),_0x49ea14[_0x49ea14[_0x336b69(0x1ea)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x49ea14[_0x49ea14['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x336b69(0x327),_0x49ea14[_0x49ea14[_0x336b69(0x26c)]=0x271c]=_0x336b69(0x26c),_0x49ea14[_0x49ea14[_0x336b69(0x239)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x49ea14[_0x49ea14[_0x336b69(0x2a2)]=0x271e]=_0x336b69(0x2a2),_0x49ea14[_0x49ea14[_0x336b69(0x1ec)]=0x271f]=_0x336b69(0x1ec),_0x49ea14[_0x49ea14[_0x336b69(0x295)]=0x2720]=_0x336b69(0x295),_0x49ea14[_0x49ea14[_0x336b69(0x3c8)]=0x2af9]=_0x336b69(0x3c8),_0x49ea14[_0x49ea14[_0x336b69(0x3be)]=0x2ee1]=_0x336b69(0x3be),_0x49ea14[_0x49ea14[_0x336b69(0x33f)]=0x2ee2]=_0x336b69(0x33f),_0x49ea14[_0x49ea14[_0x336b69(0x1bd)]=0x2ee3]=_0x336b69(0x1bd),_0x49ea14[_0x49ea14[_0x336b69(0x1d6)]=0x2ee4]=_0x336b69(0x1d6),_0x49ea14[_0x49ea14[_0x336b69(0x1dd)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x49ea14[_0x49ea14[_0x336b69(0x1c7)]=0x32c9]=_0x336b69(0x1c7),_0x49ea14[_0x49ea14['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x336b69(0x1da),_0x49ea14[_0x49ea14[_0x336b69(0x268)]=0x32cb]=_0x336b69(0x268),_0x49ea14[_0x49ea14['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x336b69(0x398),_0x49ea14[_0x49ea14[_0x336b69(0x382)]=0x36b2]=_0x336b69(0x382),_0x49ea14[_0x49ea14[_0x336b69(0x206)]=0x36b3]=_0x336b69(0x206),_0x49ea14[_0x49ea14[_0x336b69(0x3ef)]=0x36b4]=_0x336b69(0x3ef),_0x49ea14[_0x49ea14[_0x336b69(0x267)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x49ea14[_0x49ea14[_0x336b69(0x28a)]=0x36b6]=_0x336b69(0x28a),_0x49ea14[_0x49ea14['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x336b69(0x385),_0x49ea14[_0x49ea14['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x336b69(0x32d),_0x49ea14[_0x49ea14[_0x336b69(0x3cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x49ea14[_0x49ea14[_0x336b69(0x233)]=0x3716]=_0x336b69(0x233),_0x49ea14[_0x49ea14['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x336b69(0x392),_0x49ea14[_0x49ea14['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x336b69(0x2c0),_0x49ea14[_0x49ea14[_0x336b69(0x3aa)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x49ea14[_0x49ea14[_0x336b69(0x25c)]=0x3a9a]=_0x336b69(0x25c),_0x49ea14[_0x49ea14[_0x336b69(0x21c)]=0x3a9b]=_0x336b69(0x21c),_0x49ea14[_0x49ea14['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x49ea14[_0x49ea14[_0x336b69(0x236)]=0x3a9d]=_0x336b69(0x236),_0x49ea14[_0x49ea14[_0x336b69(0x37c)]=0x3a9e]=_0x336b69(0x37c),_0x49ea14[_0x49ea14['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x336b69(0x3ed),_0x49ea14[_0x49ea14[_0x336b69(0x3dd)]=0x3e81]=_0x336b69(0x3dd),_0x49ea14[_0x49ea14[_0x336b69(0x2f3)]=-0x1]=_0x336b69(0x2f3),_0x49ea14))(Z||{});function vn(_0x506d3c){const _0x5cfee2=_0x336b69;var _0x55a79e,_0x46d294;const _0x2a3639=(_0x55a79e=_0x506d3c[_0x5cfee2(0x3fd)])==null?void 0x0:_0x55a79e[_0x5cfee2(0x1ed)],_0x3d7922=((_0x46d294=_0x506d3c[_0x5cfee2(0x3fd)])==null?void 0x0:_0x46d294['totalFormulasToCalculate'])||0x0;return _0x2a3639===_0x5c6274[_0x5cfee2(0x225)]&&_0x3d7922>0x0;}function pn(_0x12c2e5){const _0x1b1b6d=_0x336b69;return _0x12c2e5[_0x1b1b6d(0x337)]===_0x51f4d5['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x244d9a,_0xb60220,_0xc094e,_0x1d512a)=>{const _0x38895b=_0x336b69;for(var _0x40a3f8=_0x1d512a>0x1?void 0x0:_0x1d512a?On(_0xb60220,_0xc094e):_0xb60220,_0x1013f9=_0x244d9a[_0x38895b(0x3ba)]-0x1,_0x2a2b0e;_0x1013f9>=0x0;_0x1013f9--)(_0x2a2b0e=_0x244d9a[_0x1013f9])&&(_0x40a3f8=_0x2a2b0e(_0x40a3f8)||_0x40a3f8);return _0x40a3f8;},P=(_0x16d7c8,_0x2f1381)=>(_0x4038fe,_0x11cf1b)=>_0x2f1381(_0x4038fe,_0x11cf1b,_0x16d7c8);const Cn=_0x336b69(0x201),Rn=_0x336b69(0x1a8),Dn=_0x336b69(0x335);let Ie=class extends _0x47faf0{constructor(_0x13fabe,_0x32b3a3,_0x1372a5,_0x48550c,_0x1ca9cc,_0x2af95a,_0x5f1ca8){const _0x396fec=_0x336b69;super(),_(this,_0x396fec(0x3a4),null),_(this,_0x396fec(0x1d9),0x0),_(this,_0x396fec(0x36f),0x0),_(this,'_taskIds',[]),_(this,_0x396fec(0x1e0),0x0),(this['_messageService']=_0x13fabe,this[_0x396fec(0x3a5)]=_0x32b3a3,this['_configService']=_0x1372a5,this[_0x396fec(0x343)]=_0x48550c,this[_0x396fec(0x1ef)]=_0x1ca9cc,this[_0x396fec(0x396)]=_0x2af95a,this[_0x396fec(0x2bc)]=_0x5f1ca8,this['_initCommandInterceptor']());}[_0x336b69(0x325)](){const _0x536162=_0x336b69;this[_0x536162(0x3bb)](this[_0x536162(0x3a5)][_0x536162(0x33a)]((_0x54c7b3,_0x473ced)=>{const _0x1d34ca=_0x536162;var _0xb68478;if(_0x54c7b3['id']!==_0x8ebdf5['id'])return;const _0x545b19=_0x54c7b3['params'];if(!this[_0x1d34ca(0x299)]((_0xb68478=_0x545b19[_0x1d34ca(0x1ca)])!=null?_0xb68478:[]))return;if(!this[_0x1d34ca(0x345)]())throw this['_checkAndWaitForCalculationPermission'](_0x54c7b3,_0x473ced),this['_showGuardMessage'](),new _0x5a3906();})),this[_0x536162(0x3bb)](this[_0x536162(0x3a5)][_0x536162(0x309)]((_0x3f1a75,_0x4982f8)=>{const _0x4c7bc5=_0x536162;if(_0x3f1a75['id']!==_0x4826e4['id'])return;const _0x3233cb=_0x3f1a75['params'];if(vn(_0x3233cb)){const _0xad5a26=_0x20f381();this[_0x4c7bc5(0x2b4)]['push'](_0xad5a26),this[_0x4c7bc5(0x3f2)](_0xad5a26);}else{if(pn(_0x3233cb)&&this[_0x4c7bc5(0x2b4)][_0x4c7bc5(0x3ba)]>0x0){const _0xcf24=this[_0x4c7bc5(0x2b4)][_0x4c7bc5(0x34a)]();this[_0x4c7bc5(0x21d)](_0xcf24);}}}));}[_0x336b69(0x386)](){const _0x56b3dd=_0x336b69;super[_0x56b3dd(0x386)](),this['_clearPolling'](),this[_0x56b3dd(0x2b4)]=[],this[_0x56b3dd(0x36f)]=0x0,this[_0x56b3dd(0x1d9)]=0x0,this[_0x56b3dd(0x1e0)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x450326,_0x42a2da){const _0x17b68b=_0x336b69;for(let _0x1e8408=0x0;_0x1e8408<0x1e;_0x1e8408++)try{if(await this['_getFormulaLimitStatus'](),this[_0x17b68b(0x345)]()){this[_0x17b68b(0x2b3)](_0x450326,_0x42a2da),this['_messageService'][_0x17b68b(0x375)]({'content':this[_0x17b68b(0x2bc)]['t'](_0x17b68b(0x3c0)),'type':_0x1e0dd6['Success']});return;}await new Promise(_0x1e949b=>{this['_pollingInterval']=window['setTimeout'](_0x1e949b,0x3e8);});}catch(_0x2e6669){this[_0x17b68b(0x396)][_0x17b68b(0x3a6)](_0x2e6669);}this['_messageService'][_0x17b68b(0x375)]({'content':this['_localeService']['t'](_0x17b68b(0x2ad)),'type':_0x1e0dd6[_0x17b68b(0x20c)]});}['_applyCommand'](_0x4d5523,_0x5d959d){const _0x3a559a=_0x336b69;try{this[_0x3a559a(0x3a5)][_0x3a559a(0x3f5)](_0x4d5523['id'],_0x4d5523[_0x3a559a(0x3a0)],_0x5d959d);}catch(_0x2fa5e7){this[_0x3a559a(0x396)]['error'](_0x2fa5e7);}}[_0x336b69(0x1b1)](_0x252060,_0x34e5ec){const _0x588269=_0x336b69;_0x34e5ec<this[_0x588269(0x1e0)]||(this['_lastResponseTimestamp']=_0x34e5ec,this[_0x588269(0x1d9)]=Number[_0x588269(0x1e8)](_0x252060['maxFormulaLimit']),this[_0x588269(0x36f)]=Number[_0x588269(0x1e8)](_0x252060['currentUsage']));}async[_0x336b69(0x3f2)](_0x36ebd8){const _0x6a3cf1=_0x336b69;var _0x27d527,_0x2ed369;const _0x20a4b5=Date['now']();try{const _0x490303=((_0x27d527=this[_0x6a3cf1(0x2ed)]['getConfig'](_0x41e428))==null?void 0x0:_0x27d527[_0x6a3cf1(0x2a6)])||Rn,_0x2d3e29=(await this['_httpService'][_0x6a3cf1(0x231)](_0x490303,{'body':JSON[_0x6a3cf1(0x301)]({'taskId':_0x36ebd8})}))[_0x6a3cf1(0x376)];if(((_0x2ed369=_0x2d3e29[_0x6a3cf1(0x3a6)])==null?void 0x0:_0x2ed369[_0x6a3cf1(0x397)])!==Z['OK'])return;this[_0x6a3cf1(0x1b1)](_0x2d3e29[_0x6a3cf1(0x387)],_0x20a4b5);}catch(_0x55f473){this[_0x6a3cf1(0x396)][_0x6a3cf1(0x3a6)](_0x55f473);}}async[_0x336b69(0x29b)](_0x1f8679){const _0x17004e=_0x336b69;var _0x5adb9a,_0x406c69;const _0x16ee19=Date['now']();try{const _0x3a07e3=((_0x5adb9a=this['_configService']['getConfig'](_0x41e428))==null?void 0x0:_0x5adb9a[_0x17004e(0x2a7)])||Cn,_0x4a4edf=_0x1f8679?_0x3a07e3+_0x17004e(0x32f)+encodeURIComponent(_0x1f8679):_0x3a07e3,_0x1672a3=(await this[_0x17004e(0x343)][_0x17004e(0x3c1)](_0x4a4edf))[_0x17004e(0x376)];if(((_0x406c69=_0x1672a3[_0x17004e(0x3a6)])==null?void 0x0:_0x406c69[_0x17004e(0x397)])!==Z['OK'])return;this[_0x17004e(0x1b1)](_0x1672a3[_0x17004e(0x387)],_0x16ee19);}catch(_0x195fea){this[_0x17004e(0x396)]['error'](_0x195fea);}}async['_releaseCalculationLimit'](_0x25a750){const _0x26fcf7=_0x336b69;var _0x14ef6e,_0x2a8287;const _0x2ed087=Date[_0x26fcf7(0x1b8)]();try{const _0x2a373a=((_0x14ef6e=this['_configService'][_0x26fcf7(0x318)](_0x41e428))==null?void 0x0:_0x14ef6e[_0x26fcf7(0x1e9)])||Dn,_0x50f0b6=(await this[_0x26fcf7(0x343)][_0x26fcf7(0x231)](_0x2a373a,{'body':JSON['stringify']({'taskId':_0x25a750})}))[_0x26fcf7(0x376)];if(((_0x2a8287=_0x50f0b6[_0x26fcf7(0x3a6)])==null?void 0x0:_0x2a8287[_0x26fcf7(0x397)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x50f0b6[_0x26fcf7(0x387)],_0x2ed087);}catch(_0x526673){this[_0x26fcf7(0x396)]['error'](_0x526673);}}[_0x336b69(0x345)](){const _0x3f38a9=_0x336b69;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x3f38a9(0x36f)]>0x0;}[_0x336b69(0x383)](){const _0x5883d8=_0x336b69;this['_pollingInterval']&&(clearTimeout(this[_0x5883d8(0x3a4)]),this[_0x5883d8(0x3a4)]=null);}[_0x336b69(0x340)](){const _0x4dc9bf=_0x336b69;this[_0x4dc9bf(0x2da)][_0x4dc9bf(0x375)]({'content':this[_0x4dc9bf(0x2bc)]['t'](_0x4dc9bf(0x1db)),'type':_0x1e0dd6[_0x4dc9bf(0x324)]});}[_0x336b69(0x299)](_0x4d5e17){const _0x3fbf95=_0x336b69;for(const _0x505c91 of _0x4d5e17){const {unitId:_0x189d5c,sheetId:_0x25b6df,range:_0x445d8f}=_0x505c91,_0xebb57=this[_0x3fbf95(0x1ef)][_0x3fbf95(0x3fb)](_0x189d5c);if(!_0xebb57)continue;const _0x4ae7d3=_0xebb57[_0x3fbf95(0x3c4)](_0x25b6df);if(!_0x4ae7d3)continue;const _0x4dd680=_0x4ae7d3[_0x3fbf95(0x1e5)]();for(let _0x177abc=_0x445d8f['startRow'];_0x177abc<=_0x445d8f['endRow'];_0x177abc++)for(let _0x52c3c=_0x445d8f[_0x3fbf95(0x255)];_0x52c3c<=_0x445d8f['endColumn'];_0x52c3c++){const _0x26457f=_0x4dd680[_0x3fbf95(0x2e7)](_0x177abc,_0x52c3c);if(_0x26457f&&(_0x5a048f(_0x26457f['f'])||_0x36a326(_0x26457f['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x1f3b74(_0x44f301)),P(0x1,_0x357354),P(0x2,_0x5535b0),P(0x3,_0x1f3b74(_0x348fb4)),P(0x4,_0x2f0580),P(0x5,_0x46a5d6),P(0x6,_0x1f3b74(_0xa807ff))],Ie);var Nn=Object[_0x336b69(0x38c)],bn=(_0x7865d3,_0xc04095,_0xff29ad,_0x286c46)=>{const _0x1af789=_0x336b69;for(var _0x2a2e07=_0x286c46>0x1?void 0x0:_0x286c46?Nn(_0xc04095,_0xff29ad):_0xc04095,_0x430edd=_0x7865d3[_0x1af789(0x3ba)]-0x1,_0x212b68;_0x430edd>=0x0;_0x430edd--)(_0x212b68=_0x7865d3[_0x430edd])&&(_0x2a2e07=_0x212b68(_0x2a2e07)||_0x2a2e07);return _0x2a2e07;},Ue=(_0x5df593,_0x48d7f5)=>(_0x4b4931,_0x25207c)=>_0x48d7f5(_0x4b4931,_0x25207c,_0x5df593);let He=class extends _0x47faf0{constructor(_0x22b694,_0x11a937,_0x3f2a07){const _0x5c9523=_0x336b69;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x5c9523(0x2ed)]=_0x22b694,this[_0x5c9523(0x1dc)]=_0x11a937,this['_revisionService']=_0x3f2a07);}[_0x336b69(0x1a5)](){const _0x4688a3=_0x336b69;this[_0x4688a3(0x2fe)]=!0x0;}[_0x336b69(0x3e1)](){const _0x298b76=_0x336b69;this[_0x298b76(0x2fe)]=!0x1;}get[_0x336b69(0x28b)](){const _0x5787e4=_0x336b69;return this[_0x5787e4(0x3da)];}[_0x336b69(0x386)](){const _0x1b6cc1=_0x336b69;this[_0x1b6cc1(0x39e)]()['then'](()=>super['dispose']());}async[_0x336b69(0x300)](_0x3d291e){const _0x5d8a4b=_0x336b69;return this[_0x5d8a4b(0x2fe)]?null:this[_0x5d8a4b(0x1dc)][_0x5d8a4b(0x2f7)](_0xb6c497(_0x3d291e));}async[_0x336b69(0x2ab)](_0x1f2431,_0x2eb568){const _0x394513=_0x336b69;return!!this[_0x394513(0x1dc)][_0x394513(0x2a1)](_0x1f2431,_0x2eb568);}[_0x336b69(0x26b)](_0x5bf4ef,_0x38e685,_0x498339,_0x451420){const _0x406db0=_0x336b69,_0x4e1867=this[_0x406db0(0x1bb)]['getCurrentRevOfUnit'](_0x5bf4ef);this['_cachedData'][_0x406db0(0x2ba)](_0x5bf4ef,{'unitID':_0x5bf4ef,'type':_0x38e685,'awaitingChangeset':_0x498339,'mutations':_0x451420,'rev':_0x4e1867}),this[_0x406db0(0x3da)][_0x406db0(0x3f3)](_0x5bf4ef)||this['_scheduleSaving'](_0x5bf4ef);}['_scheduleSaving'](_0x20b8c3){const _0x5d6779=_0x336b69,_0x381b52=this['_getSaveTimeout']();_0x381b52===0x0?this[_0x5d6779(0x248)](_0x20b8c3):this['_saveTaskMap'][_0x5d6779(0x2ba)](_0x20b8c3,setTimeout(()=>this[_0x5d6779(0x248)](_0x20b8c3),_0x381b52));}[_0x336b69(0x34b)](){const _0x4f9354=_0x336b69;var _0x5a9171;return(_0x5a9171=this[_0x4f9354(0x2ed)][_0x4f9354(0x318)](_0x4324cd))!=null?_0x5a9171:_0x442912;}[_0x336b69(0x248)](_0x9a0e3){const _0x292fc4=_0x336b69,_0x75ee23=this[_0x292fc4(0x3da)][_0x292fc4(0x3c1)](_0x9a0e3);return _0x75ee23!==void 0x0&&window[_0x292fc4(0x2dd)](_0x75ee23),this[_0x292fc4(0x1dc)][_0x292fc4(0x2a1)](_0xb6c497(_0x9a0e3),this['_cachedData'][_0x292fc4(0x3c1)](_0x9a0e3))['then'](()=>this[_0x292fc4(0x3da)]['delete'](_0x9a0e3));}async[_0x336b69(0x39e)](){const _0x17e792=_0x336b69,_0x2758d9=[];this[_0x17e792(0x3da)][_0x17e792(0x3bc)]((_0x422061,_0x28744e)=>{const _0x4f65c6=_0x17e792;window[_0x4f65c6(0x2dd)](_0x422061),_0x2758d9[_0x4f65c6(0x370)](this[_0x4f65c6(0x248)](_0x28744e)['then'](()=>{const _0x3579ba=_0x4f65c6;this[_0x3579ba(0x3da)][_0x3579ba(0x3cc)](_0x28744e);}));}),await Promise[_0x17e792(0x2ff)](_0x2758d9);}};He=bn([Ue(0x0,_0x5535b0),Ue(0x1,_0x57b3cd),Ue(0x2,_0x1f3b74(_0x41ca19))],He);class Ln extends _0x3740ac{constructor(){const _0x3ad0ee=_0x336b69;super(),_(this,_0x3ad0ee(0x348)),this[_0x3ad0ee(0x348)]=_0x528a9c(window,_0x3ad0ee(0x2ea))['pipe'](_0xa786ea(this['dispose$']),_0x57c9ba(0x1),_0x4d0f5f(void 0x0));}['setParam'](_0x537c73,_0x1cecee,_0x19f9de=!0x1){const _0x19f751=_0x336b69,_0x113a3c=new URL(window[_0x19f751(0x3a9)][_0x19f751(0x218)]);_0x113a3c[_0x19f751(0x261)][_0x19f751(0x2ba)](_0x537c73,_0x1cecee),_0x19f9de?window[_0x19f751(0x3c6)]['replaceState']('','',_0x113a3c['toString']()):window[_0x19f751(0x3c6)][_0x19f751(0x1b2)]('','',_0x113a3c['toString']());}[_0x336b69(0x1df)](_0xb050f8,_0x1f58e7=!0x1){const _0x12405b=_0x336b69,_0xa68865=new URL(window[_0x12405b(0x3a9)][_0x12405b(0x218)]);_0xa68865[_0x12405b(0x261)]['delete'](_0xb050f8),_0x1f58e7?window['history'][_0x12405b(0x2aa)]('','',_0xa68865[_0x12405b(0x369)]()):window[_0x12405b(0x3c6)][_0x12405b(0x1b2)]('','',_0xa68865[_0x12405b(0x369)]());}[_0x336b69(0x1f2)](_0x499a79){const _0x349be0=_0x336b69;var _0x1ec533;return(_0x1ec533=new URL(window[_0x349be0(0x3a9)][_0x349be0(0x218)])[_0x349be0(0x261)]['get'](_0x499a79))!=null?_0x1ec533:void 0x0;}}var Un=Object[_0x336b69(0x374)],Mn=Object[_0x336b69(0x38c)],An=(_0x26333c,_0x27252a,_0x3195b9)=>_0x27252a in _0x26333c?Un(_0x26333c,_0x27252a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3195b9}):_0x26333c[_0x27252a]=_0x3195b9,Pn=(_0x311c65,_0x1c35d9,_0x4a7deb,_0x83c5d5)=>{const _0x42d76c=_0x336b69;for(var _0x575f0f=_0x83c5d5>0x1?void 0x0:_0x83c5d5?Mn(_0x1c35d9,_0x4a7deb):_0x1c35d9,_0x3c9919=_0x311c65[_0x42d76c(0x3ba)]-0x1,_0x31def4;_0x3c9919>=0x0;_0x3c9919--)(_0x31def4=_0x311c65[_0x3c9919])&&(_0x575f0f=_0x31def4(_0x575f0f)||_0x575f0f);return _0x575f0f;},Me=(_0xcfb82a,_0xa44ca5)=>(_0x3dff76,_0xa73e23)=>_0xa44ca5(_0x3dff76,_0xa73e23,_0xcfb82a),wn=(_0x2f6e42,_0x1ee6e9,_0x5ce97c)=>An(_0x2f6e42,_0x1ee6e9+'',_0x5ce97c);const yn=_0x336b69(0x37f);let Ye=class extends _0x3a70dd{constructor(_0x20077f=_t,_0x256ad8,_0x13dc87,_0x586f27){const _0x42e70a=_0x336b69;super(),this[_0x42e70a(0x2d5)]=_0x20077f,this[_0x42e70a(0x2ce)]=_0x256ad8,this[_0x42e70a(0x2e4)]=_0x13dc87,this[_0x42e70a(0x2ed)]=_0x586f27;const {..._0x29b6db}=_0x4338d3({},_t,this[_0x42e70a(0x2d5)]);this[_0x42e70a(0x2ed)][_0x42e70a(0x1c8)](hn,_0x29b6db);}[_0x336b69(0x224)](){const _0x17f2d5=_0x336b69;this[_0x17f2d5(0x395)](),this[_0x17f2d5(0x2e0)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4bb24e=_0x336b69;var _0x2daccc;const _0x52dec8=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x4c05fd,{'useClass':_0x3cc20b}],[_0x3e0fc1,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x4bb24e(0x1e7)]&&_0x52dec8['push']([le]),_0x4bba14(this[_0x4bb24e(0x2e4)],_0x2f9ba7(_0x52dec8,(_0x2daccc=this[_0x4bb24e(0x2d5)])==null?void 0x0:_0x2daccc[_0x4bb24e(0x242)]));}[_0x336b69(0x3d2)](){const _0x2b13e5=_0x336b69;this[_0x2b13e5(0x3bb)](this[_0x2b13e5(0x2ce)][_0x2b13e5(0x2cc)](_0x17d204['UNIVER_DOC'],[Fe])),this[_0x2b13e5(0x3bb)](this['_renderManagerService'][_0x2b13e5(0x2cc)](_0x17d204[_0x2b13e5(0x2a8)],[ke]));}[_0x336b69(0x2e0)](){const _0x5000e7=_0x336b69;_0xdb9170(this[_0x5000e7(0x2e4)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5000e7(0x2d5)]['enableFrontendLog']&&_0xdb9170(this[_0x5000e7(0x2e4)],[[le]]);}};wn(Ye,_0x336b69(0x2a9),yn),Ye=Pn([_0x2dfe5c(_0x54bfce),Me(0x1,_0x4b34f5),Me(0x2,_0x1f3b74(_0x55778f)),Me(0x3,_0x5535b0)],Ye);var $n=Object[_0x336b69(0x38c)],xn=(_0x5c2cac,_0xc7ba82,_0x5b0714,_0x1fe868)=>{const _0x209e67=_0x336b69;for(var _0x5c56fc=_0x1fe868>0x1?void 0x0:_0x1fe868?$n(_0xc7ba82,_0x5b0714):_0xc7ba82,_0x327298=_0x5c2cac[_0x209e67(0x3ba)]-0x1,_0x5a199f;_0x327298>=0x0;_0x327298--)(_0x5a199f=_0x5c2cac[_0x327298])&&(_0x5c56fc=_0x5a199f(_0x5c56fc)||_0x5c56fc);return _0x5c56fc;},J=(_0x181aef,_0x14555f)=>(_0x37d016,_0x65bba3)=>_0x14555f(_0x37d016,_0x65bba3,_0x181aef);let ut=class extends _0x28ce85{constructor(_0x3e2e79,_0x10541d,_0x1600cf,_0x519c03,_0x849115){super(_0x3e2e79,_0x10541d,_0x1600cf,_0x519c03,_0x849115);}async['createSocket'](_0x15025){const _0x217d58=_0x336b69,_0x89a15=await this[_0x217d58(0x3b5)](),_0x1840c4=this[_0x217d58(0x3b0)](_0x15025,_0x89a15);return this[_0x217d58(0x349)](_0x1840c4);}[_0x336b69(0x3b0)](_0x5e9a36,_0x58bb1d){const _0x20c743=_0x336b69,_0x1d6ed0=typeof window>'u'?new URL(_0x5e9a36):new URL(_0x5e9a36,window[_0x20c743(0x3a9)]['origin']);_0x1d6ed0['searchParams'][_0x20c743(0x2ba)](_0x20c743(0x2b8),_0x58bb1d);const _0x41bd93=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x41bd93[_0x20c743(0x3c1)]('runId')&&_0x1d6ed0[_0x20c743(0x261)][_0x20c743(0x2ba)]('runId',_0x41bd93[_0x20c743(0x3c1)]('runId')),_0x1d6ed0[_0x20c743(0x369)]();}async['_getSessionTicket'](){const _0x532293=_0x336b69;var _0x1efaac,_0x49dcd7,_0x4e7aac;const _0x5c5e1c=this[_0x532293(0x2ed)][_0x532293(0x318)](_0x41e428),_0x2c4aa1=(_0x1efaac=_0x5c5e1c==null?void 0x0:_0x5c5e1c[_0x532293(0x24f)])!=null?_0x1efaac:_0x3de23a;return(_0x4e7aac=(_0x49dcd7=(await this['_httpService'][_0x532293(0x3c1)](_0x2c4aa1,{'headers':{'Content-Type':_0x532293(0x260)}}))[_0x532293(0x376)])==null?void 0x0:_0x49dcd7[_0x532293(0x3c3)])!=null?_0x4e7aac:'';}};ut=xn([J(0x0,_0x1f3b74(_0x55778f)),J(0x1,_0x1f3b74(_0x348fb4)),J(0x2,_0x5535b0),J(0x3,_0x46a5d6),J(0x4,_0x1b188b)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x5b0b54,_0x304e00,_0x335959,_0x2365b1)=>{const _0x4ee86c=_0x336b69;for(var _0x148d8e=_0x2365b1>0x1?void 0x0:_0x2365b1?Bn(_0x304e00,_0x335959):_0x304e00,_0x2f1767=_0x5b0b54[_0x4ee86c(0x3ba)]-0x1,_0x2883b0;_0x2f1767>=0x0;_0x2f1767--)(_0x2883b0=_0x5b0b54[_0x2f1767])&&(_0x148d8e=_0x2883b0(_0x148d8e)||_0x148d8e);return _0x148d8e;},Ae=(_0x3401b8,_0x12198d)=>(_0x5716ff,_0x5668fb)=>_0x12198d(_0x5716ff,_0x5668fb,_0x3401b8);let dt=class extends _0x47faf0{constructor(_0x293ae0,_0x381454,_0x541267){const _0xff431b=_0x336b69;super(),this['_instanceService']=_0x293ae0,this[_0xff431b(0x343)]=_0x381454,this[_0xff431b(0x2ed)]=_0x541267;}async[_0x336b69(0x379)](_0x5bb007,_0x1195b7,_0x354867,..._0x3364d5){const _0x498797=_0x336b69;var _0x4af387,_0x18c7d9,_0x45e305,_0x3ad404;const _0x1bb167=this[_0x498797(0x207)][_0x498797(0x3ca)]();if(!_0x1bb167)throw new Error(_0x498797(0x3f8));const _0x25c82f=((_0x4af387=this[_0x498797(0x2ed)][_0x498797(0x318)](_0x3a4421))!=null?_0x4af387:_0x1dee24)+'/'+_0x5bb007+_0x498797(0x277)+_0x1195b7,_0x541685=new URL(window['location']['href']),_0x5640b4={'scriptId':_0x5bb007,'runId':(_0x18c7d9=_0x541685['searchParams'][_0x498797(0x3c1)](_0x498797(0x200)))!=null?_0x18c7d9:'','function':_0x1195b7,'unitId':_0x1bb167[_0x498797(0x350)](),'argsOfFunction':JSON[_0x498797(0x301)](_0x3364d5),'invokeId':(_0x45e305=_0x354867[_0x498797(0x210)])!=null?_0x45e305:'','executionId':(_0x3ad404=_0x354867[_0x498797(0x264)])!=null?_0x3ad404:''};try{const _0xda26fb=await this[_0x498797(0x343)][_0x498797(0x231)](_0x25c82f,{'body':_0x5640b4});return _0xda26fb['body'][_0x498797(0x3a6)]&&_0xda26fb[_0x498797(0x376)][_0x498797(0x3a6)]['code']!==Z['OK']?_0x498797(0x2e2):_0xda26fb[_0x498797(0x376)]['result'];}catch{return _0x498797(0x2e2);}}};dt=Fn([Ae(0x0,_0x2f0580),Ae(0x1,_0x1f3b74(_0x348fb4)),Ae(0x2,_0x5535b0)],dt);const St=0x7530,It=_0x336b69(0x302);class rr extends _0x47faf0{constructor(){const _0x5364f1=_0x336b69;super(),_(this,'_id',_0x20f381()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5364f1(0x316),new Map()),_(this,_0x5364f1(0x2b1),null),_(this,_0x5364f1(0x1ff),new Map()),_(this,_0x5364f1(0x28f),new Map()),this['_init']();}[_0x336b69(0x386)](){const _0x3c6486=_0x336b69;super[_0x3c6486(0x386)](),this[_0x3c6486(0x1ff)]['forEach']((_0x2ce7b5,_0x50cd27)=>this[_0x3c6486(0x1d1)](_0x50cd27)),this[_0x3c6486(0x2b1)]&&window[_0x3c6486(0x31a)](this['_heartbeatTimer']);}[_0x336b69(0x2b0)](_0x2b41a1){const _0x281471=_0x336b69;return this[_0x281471(0x3b4)](_0x2b41a1)[_0x281471(0x1fb)](_0x3bd83f());}['editingUnit'](_0x43da14){const _0x5d66e9=_0x336b69;this[_0x5d66e9(0x3a8)][_0x5d66e9(0x235)]===0x0&&this[_0x5d66e9(0x323)](),this['_selfUnitIDs'][_0x5d66e9(0x289)](_0x43da14),this['_send']({'type':0x0,'memberID':this[_0x5d66e9(0x3c5)],'unitIDs':[_0x43da14],'isForwarded':!0x1});}[_0x336b69(0x378)](_0x5d230f){const _0x3e65d9=_0x336b69;this[_0x3e65d9(0x3a8)]['delete'](_0x5d230f),this[_0x3e65d9(0x3a8)][_0x3e65d9(0x235)]===0x0&&this['_heartbeatTimer']&&window[_0x3e65d9(0x31a)](this['_heartbeatTimer']);}[_0x336b69(0x1c3)](){const _0x2ab40c=_0x336b69;this[_0x2ab40c(0x3bb)](_0x2e6fe6(_0x528a9c(window,_0x2ab40c(0x2e6))[_0x2ab40c(0x1b9)](_0x254226=>{const _0x4ef308=_0x2ab40c;if(_0x254226[_0x4ef308(0x3a2)]!==It||!_0x254226[_0x4ef308(0x3cf)])return;const _0x3a6a70=JSON[_0x4ef308(0x2f9)](_0x254226['newValue']);this[_0x4ef308(0x2f1)](_0x3a6a70);}))),window[_0x2ab40c(0x297)](_0x2ab40c(0x27e),()=>this[_0x2ab40c(0x311)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2ab40c(0x220)](this['_selfUnitIDs'])}));}[_0x336b69(0x2f1)](_0x2e37a8){const _0x357794=_0x336b69;switch(_0x2e37a8[_0x357794(0x263)]){case 0x0:this[_0x357794(0x2bd)](_0x2e37a8);break;case 0x1:this[_0x357794(0x237)](_0x2e37a8);break;case 0x2:this['_handleHeartbeatEvent'](_0x2e37a8);break;}}[_0x336b69(0x2bd)](_0x49a0e2){const _0xf15b5a=_0x336b69,{unitIDs:_0x39abc3,memberID:_0x32a6ac,isForwarded:_0x442bf5}=_0x49a0e2;_0x39abc3[_0xf15b5a(0x3bc)](_0x178259=>{const _0x230f0f=_0xf15b5a;if(!_0x442bf5&&this[_0x230f0f(0x316)][_0x230f0f(0x3f3)](_0x178259)&&this[_0x230f0f(0x3b4)](_0x178259)[_0x230f0f(0x229)](_0x2fce61[_0x230f0f(0x1a6)]),!this['_unitOnClients'][_0x230f0f(0x3f3)](_0x178259)||!this[_0x230f0f(0x316)][_0x230f0f(0x3c1)](_0x178259)['has'](_0x32a6ac)){const _0x4f05cf=this[_0x230f0f(0x316)]['get'](_0x178259)||new Set();_0x4f05cf['add'](_0x32a6ac),this[_0x230f0f(0x316)][_0x230f0f(0x2ba)](_0x178259,_0x4f05cf),this[_0x230f0f(0x1c5)](_0x32a6ac);}}),_0x442bf5||this[_0xf15b5a(0x311)]({'type':0x0,'memberID':this[_0xf15b5a(0x3c5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x336b69(0x1c5)](_0x124432){const _0x43f421=_0x336b69;this['_removeClearOtherTimer'](_0x124432);const _0x39f7df=window[_0x43f421(0x31f)](()=>{const _0x2f88d1=_0x43f421;this['_unitOnClients'][_0x2f88d1(0x3bc)](_0x59a19f=>{const _0x379e7f=_0x2f88d1;_0x59a19f[_0x379e7f(0x3cc)](_0x124432);});},St*0x2);this[_0x43f421(0x1ff)]['set'](_0x124432,_0x39f7df);}[_0x336b69(0x1d1)](_0x2ce760){const _0x1642df=_0x336b69;if(this[_0x1642df(0x1ff)][_0x1642df(0x3f3)](_0x2ce760)){const _0x3e9959=this['_clearOtherTimers'][_0x1642df(0x3c1)](_0x2ce760);_0x3e9959&&window['clearTimeout'](_0x3e9959),this[_0x1642df(0x1ff)][_0x1642df(0x2ba)](_0x2ce760,null);}}[_0x336b69(0x237)](_0x34d4e1){const _0x6f9087=_0x336b69,{memberID:_0x3a2374,unitIDs:_0x438187}=_0x34d4e1;_0x438187[_0x6f9087(0x3bc)](_0x1d7d41=>{const _0x31f026=_0x6f9087;var _0x4c7417;const _0x3f851b=this['_unitOnClients']['get'](_0x1d7d41);_0x3f851b&&(_0x3f851b[_0x31f026(0x3cc)](_0x3a2374),(_0x4c7417=this[_0x31f026(0x3b4)](_0x1d7d41))==null||_0x4c7417[_0x31f026(0x229)](_0x3f851b['size']===0x0?_0x2fce61['NO_OTHER_CLIENTS_EDITING']:_0x2fce61[_0x31f026(0x1a6)]));}),this[_0x6f9087(0x1d1)](_0x3a2374);}[_0x336b69(0x3fe)](_0x3d7ffa){const _0x4c6660=_0x336b69;this[_0x4c6660(0x1c5)](_0x3d7ffa[_0x4c6660(0x2c6)]);}[_0x336b69(0x311)](_0x1eea57){const _0x5743bd=_0x336b69;localStorage[_0x5743bd(0x2a1)](It,JSON[_0x5743bd(0x301)](_0x1eea57));}[_0x336b69(0x323)](){const _0x4f1246=_0x336b69;this[_0x4f1246(0x2b1)]=window[_0x4f1246(0x38d)](()=>{const _0x5edc87=_0x4f1246;this[_0x5edc87(0x311)]({'type':0x2,'memberID':this[_0x5edc87(0x3c5)]});},St);}['_ensureSubject'](_0x1bf1dc){const _0x1a9098=_0x336b69;return this[_0x1a9098(0x28f)][_0x1a9098(0x3f3)](_0x1bf1dc)||this[_0x1a9098(0x28f)]['set'](_0x1bf1dc,new _0x2b7d7c(_0x2fce61['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x1bf1dc);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x240916=_0x9124;(function(_0x14df41,_0x392860){const _0x3c8605=_0x9124,_0x5d3b27=_0x14df41();while(!![]){try{const _0x416a3e=parseInt(_0x3c8605(0x197))/0x1+parseInt(_0x3c8605(0x1b8))/0x2+parseInt(_0x3c8605(0x16f))/0x3+-parseInt(_0x3c8605(0x2cc))/0x4+parseInt(_0x3c8605(0xf5))/0x5+-parseInt(_0x3c8605(0x148))/0x6+-parseInt(_0x3c8605(0x17d))/0x7;if(_0x416a3e===_0x392860)break;else _0x5d3b27['push'](_0x5d3b27['shift']());}catch(_0xb31671){_0x5d3b27['push'](_0x5d3b27['shift']());}}}(_0xf9f6,0xbd63b));var Yt=Object[_0x240916(0x10c)],Wt=(_0x753bc5,_0x2f8d89,_0x16cc9d)=>_0x2f8d89 in _0x753bc5?Yt(_0x753bc5,_0x2f8d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc9d}):_0x753bc5[_0x2f8d89]=_0x16cc9d,_=(_0x3e7e3f,_0x388dd2,_0x182eec)=>Wt(_0x3e7e3f,typeof _0x388dd2!=_0x240916(0x290)?_0x388dd2+'':_0x388dd2,_0x182eec);function _0x9124(_0x4eef53,_0x4385c1){_0x4eef53=_0x4eef53-0xce;const _0xf9f668=_0xf9f6();let _0x912412=_0xf9f668[_0x4eef53];return _0x912412;}import{jsx as _0xc53f37,jsxs as _0x20f8a2}from'react/jsx-runtime';import{CollaborationStatus as _0x1cb4cc,CollaborationSessionService as _0x27d44b,CollaborationController as _0x4a10bf,DataLoaderService as _0x361d6f,MemberService as _0x11723a,SessionStatus as _0x83b48e,ILocalCacheService as _0x45d2d0,CollaborationUIEventService as _0x1be880,CollaborationUIEventId as _0x892b1e,DocCollaborationEntity as _0x320279,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2941e8,getLocalCacheKey as _0x373961,LOCAL_CACHE_INTERVAL as _0x197b86,LOCAL_CACHE_INTERVAL_KEY as _0x67fadd,UniverCollaborationClientPlugin as _0x3f596b,CollaborationSocketService as _0x5d1c82,DEFAULT_WS_SESSION_TICKET_URL as _0x67f602,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2b191a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50718d,UnitStatus as _0x58c8e7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x53f064,IUniverInstanceService as _0x81870d,Inject as _0x451de1,Injector as _0x30dac5,Disposable as _0xf771d3,createIdentifier as _0x3cc41a,ILogService as _0x48e521,ICommandService as _0x5e5675,Optional as _0x590a7d,RxDisposable as _0x3122c4,Workbook as _0x8b9ea7,DOC_RANGE_TYPE as _0x3c1574,debounce as _0x17e35b,Rectangle as _0x49f784,DisposableCollection as _0x113270,toDisposable as _0x13afa3,UniverInstanceType as _0x2e1b84,generateRandomId as _0x2664d4,COLORS as _0x2b8935,ColorKit as _0x19d4f9,ThemeService as _0x57f958,fromEventSubject as _0x63123d,Tools as _0x141325,CommandType as _0x445795,IConfigService as _0x1510c1,CanceledError as _0x100082,isFormulaString as _0x53c2f3,isFormulaId as _0x390515,ILocalStorageService as _0x3a4d59,DependentOn as _0x394ca8,Plugin as _0x18025e,merge as _0x3aa68c,registerDependencies as _0x4856aa,mergeOverrideWithDependencies as _0xc1ed92,touchDependencies as _0xa68686}from'@univerjs/core';import{useObservable as _0x2e10a2,useDependency as _0x3d0f09,IUIPartsService as _0x3cadbd,BuiltInUIPart as _0x5ab223,connectInjector as _0x3361c7,IBeforeCloseService as _0x159d32,IMessageService as _0x110574,INotificationService as _0xbbab2c}from'@univerjs/ui';import{BehaviorSubject as _0x37599d,switchMap as _0x38976a,of as _0x4cadb4,takeUntil as _0xb0eea8,debounceTime as _0x18bb22,Subject as _0x16d6c4,filter as _0xa9cd8e,merge as _0x4bce0e,combineLatest as _0x207d2b,fromEvent as _0x572af5,shareReplay as _0x5f297a,mapTo as _0x15fcb9,distinctUntilChanged as _0x57e7da}from'rxjs';import{Tooltip as _0x3726b7,clsx as _0x52ece7,MessageType as _0x24cf21}from'@univerjs/design';import{useRef as _0x4e3cf1,createElement as _0x21c330,forwardRef as _0x3805e3,useCallback as _0x5a6b05}from'react';import{IRemoteInstanceService as _0x6f5dda}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x103b32,RefRangeService as _0x44115d,SetSelectionsOperation as _0x12ebb5,SheetsSelectionsService as _0x368647,EffectRefRangId as _0xab8473,handleIRemoveRow as _0x3ad6e3,handleIRemoveCol as _0x4b51ea,handleMoveRange as _0x133eca,handleInsertRow as _0x209d65,handleInsertRangeMoveRight as _0x20f389,handleInsertRangeMoveDown as _0x3fc51e,handleInsertCol as _0x17c1bf,handleDeleteRangeMoveUp as _0x1d554c,handleDeleteRangeMoveLeft as _0x5940a0,runRefRangeMutations as _0x4fc651}from'@univerjs/sheets';import{Shape as _0xa92bc,Rect as _0x3d2ae1,getColor as _0x525b34,RegularPolygon as _0x542d56,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x97306c,Vector2 as _0x2e233c,SHEET_VIEWPORT_KEY as _0xf0062,IRenderManagerService as _0x4d689b}from'@univerjs/engine-render';import{HTTPService as _0x20e19d,ISocketService as _0x237440,WebSocketService as _0x276479}from'@univerjs/network';import{IDocClipboardService as _0x42c8e5,NodePositionConvertToCursor as _0x150b12,NodePositionConvertToRectRange as _0x19dc65,TEXT_RANGE_LAYER_INDEX as _0x15a21c,SetDocZoomRatioOperation as _0x1a7732,DocIMEInputManagerService as _0x193f11,DocStateChangeManagerService as _0x3199a5}from'@univerjs/docs-ui';import{IImageIoService as _0x152fb2}from'@univerjs/drawing';import{ITransformService as _0x10d68c,CollaborationEvent as _0x761ce2,isTransformMutationFailure as _0x699f6f,isTransformMutationsWithChangesetSuccess as _0x73df74,RevisionService as _0x5092a2,ISnapshotServerService as _0x295e6f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43bf97,RichTextEditingMutation as _0x87d6e4,DocSelectionManagerService as _0x5f3a65,DocSkeletonManagerService as _0x1102c9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ec9a4,serializeRangeWithSheet as _0x47dbec,FormulaExecuteStageType as _0x39b8f6,FormulaExecutedStateType as _0xb5c3c9,SetFormulaCalculationStartMutation as _0x1971b5,SetFormulaCalculationNotificationMutation as _0x446ee4}from'@univerjs/engine-formula';import{map as _0x58bc15,filter as _0x491785,throttleTime as _0x3118d0,takeUntil as _0x2b4e82,switchMap as _0x1fc78b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e7369,getCoordByCell as _0xdb9d86,getSheetObject as _0x453f91}from'@univerjs/sheets-ui';function Ge({ref:_0x30581c,..._0x5c497f}){const _0x409716=_0x240916,{icon:_0x39741f,id:_0x174781,className:_0x56f2b9,extend:_0x1fb941,..._0x5f46b1}=_0x5c497f,_0x8f1960=(_0x409716(0x2f4)+_0x174781+'\x20'+(_0x56f2b9||''))['trim'](),_0x4380c3=_0x4e3cf1('_'+vi());return At(_0x39741f,''+_0x174781,{'defIds':_0x39741f['defIds'],'idSuffix':_0x4380c3[_0x409716(0x131)]},{'ref':_0x30581c,'className':_0x8f1960,..._0x5f46b1},_0x1fb941);}function At(_0x1b83f3,_0x55b0cd,_0x1dd509,_0x2d3344,_0x2e70ff){const _0x471f3c=_0x240916;return _0x21c330(_0x1b83f3[_0x471f3c(0x2c8)],{'key':_0x55b0cd,...gi(_0x1b83f3,_0x1dd509,_0x2e70ff),..._0x2d3344},(Ei(_0x1b83f3,_0x1dd509)[_0x471f3c(0x1af)]||[])[_0x471f3c(0x281)]((_0x53b6b8,_0x29b22c)=>At(_0x53b6b8,_0x55b0cd+'-'+_0x1b83f3[_0x471f3c(0x2c8)]+'-'+_0x29b22c,_0x1dd509,void 0x0,_0x2e70ff)));}function gi(_0x31fca8,_0x1b969b,_0x271c04){const _0x1bc8e6=_0x240916,_0x30e3a2={..._0x31fca8[_0x1bc8e6(0x244)]};_0x271c04!=null&&_0x271c04[_0x1bc8e6(0x195)]&&_0x30e3a2['fill']===_0x1bc8e6(0x195)&&(_0x30e3a2[_0x1bc8e6(0x224)]=_0x271c04['colorChannel1']),_0x31fca8['tag']==='mask'&&_0x30e3a2['id']&&(_0x30e3a2['id']=_0x30e3a2['id']+_0x1b969b[_0x1bc8e6(0x27c)]),Object['entries'](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x1461f5,_0xf19524])=>{const _0x3bdbee=_0x1bc8e6;_0x1461f5===_0x3bdbee(0x249)&&typeof _0xf19524==_0x3bdbee(0x19c)&&(_0x30e3a2[_0x1461f5]=_0xf19524['replace'](/url\(#(.*)\)/,_0x3bdbee(0x297)+_0x1b969b['idSuffix']+')'));});const {defIds:_0x195eb6}=_0x1b969b;return!_0x195eb6||_0x195eb6[_0x1bc8e6(0xfb)]===0x0||(_0x31fca8['tag']==='use'&&_0x30e3a2[_0x1bc8e6(0x222)]&&(_0x30e3a2[_0x1bc8e6(0x222)]=_0x30e3a2[_0x1bc8e6(0x222)]+_0x1b969b[_0x1bc8e6(0x27c)]),Object[_0x1bc8e6(0xe9)](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x2ad8bf,_0x5a5442])=>{const _0x15e23a=_0x1bc8e6;typeof _0x5a5442==_0x15e23a(0x19c)&&(_0x30e3a2[_0x2ad8bf]=_0x5a5442[_0x15e23a(0x12a)](/url\(#(.*)\)/,'url(#$1'+_0x1b969b['idSuffix']+')'));})),_0x30e3a2;}function Ei(_0x561505,_0x42f9d1){const _0x178cb5=_0x240916;var _0x55f2da;const {defIds:_0x5e7036}=_0x42f9d1;return!_0x5e7036||_0x5e7036[_0x178cb5(0xfb)]===0x0?_0x561505:_0x561505['tag']==='defs'&&((_0x55f2da=_0x561505[_0x178cb5(0x1af)])!=null&&_0x55f2da[_0x178cb5(0xfb)])?{..._0x561505,'children':_0x561505[_0x178cb5(0x1af)][_0x178cb5(0x281)](_0x53a312=>typeof _0x53a312[_0x178cb5(0x244)]['id']=='string'&&_0x5e7036&&_0x5e7036['includes'](_0x53a312['attrs']['id'])?{..._0x53a312,'attrs':{..._0x53a312[_0x178cb5(0x244)],'id':_0x53a312[_0x178cb5(0x244)]['id']+_0x42f9d1['idSuffix']}}:_0x53a312)}:_0x561505;}function vi(){const _0x4a9e19=_0x240916;return Math[_0x4a9e19(0x21d)]()[_0x4a9e19(0x257)](0x24)[_0x4a9e19(0x1ce)](0x2,0x8);}Ge[_0x240916(0x18b)]=_0x240916(0x134);const pi={'tag':_0x240916(0x138),'attrs':{'xmlns':_0x240916(0x25f),'fill':_0x240916(0x319),'viewBox':'0\x200\x2016\x2016','width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x204)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x3805e3(function(_0x54d846,_0x4cefd5){const _0xdabca6=_0x240916;return _0x21c330(Ge,Object[_0xdabca6(0x23d)]({},_0x54d846,{'id':_0xdabca6(0x1a7),'ref':_0x4cefd5,'icon':pi}));});Pt['displayName']=_0x240916(0x137);const Oi={'tag':_0x240916(0x138),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x240916(0x319),'viewBox':_0x240916(0x1c6),'width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x16b)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':_0x240916(0x2ac),'d':_0x240916(0x140),'strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':_0x240916(0x13d)},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':_0x240916(0x135),'transform':_0x240916(0x2c6)}}]}]}],'defIds':[_0x240916(0x13d)]},wt=_0x3805e3(function(_0x108499,_0x4f1ba8){const _0x65eae=_0x240916;return _0x21c330(Ge,Object[_0x65eae(0x23d)]({},_0x108499,{'id':_0x65eae(0x261),'ref':_0x4f1ba8,'icon':Oi}));});wt[_0x240916(0x18b)]=_0x240916(0x252);function Ti(_0x1eee67){const _0x2f0ecb=_0x240916;switch(_0x1eee67){case _0x1cb4cc[_0x2f0ecb(0x147)]:return _0x2f0ecb(0x191);case _0x1cb4cc[_0x2f0ecb(0x279)]:return _0x2f0ecb(0x105);case _0x1cb4cc[_0x2f0ecb(0x1d5)]:return'collabStatus.fetchMiss';case _0x1cb4cc[_0x2f0ecb(0x23c)]:return _0x2f0ecb(0x1eb);case _0x1cb4cc[_0x2f0ecb(0x314)]:case _0x1cb4cc[_0x2f0ecb(0x1ac)]:return _0x2f0ecb(0x17f);case _0x1cb4cc[_0x2f0ecb(0xfd)]:case _0x1cb4cc[_0x2f0ecb(0x25d)]:return _0x2f0ecb(0x146);}}function Ci(_0x45a1c8){const _0x99e4d7=_0x240916,{status$:_0x2543ae}=_0x45a1c8,_0x5948ec=_0x2e10a2(_0x2543ae,_0x1cb4cc[_0x99e4d7(0x23c)]),_0x29514b=_0x3d0f09(_0x53f064),_0x131fcd=_0x3d0f09(_0x27d44b),_0x1a58ed=_0x5948ec!==_0x1cb4cc[_0x99e4d7(0x147)],_0x50d72c=_0x29514b['t'](Ti(_0x5948ec)),_0x21f88b=_0x1a58ed?_0xc53f37(wt,{}):_0xc53f37(Pt,{}),_0x22f74a=_0x5a6b05(()=>{_0x1a58ed||_0x131fcd['reconnect']();},[_0x1a58ed,_0x131fcd]);function _0x31b726(){const _0x1cbbec=_0x99e4d7;return _0x20f8a2(_0x1cbbec(0x17a),{'className':_0x1cbbec(0x287),'onClick':_0x22f74a,'children':[_0xc53f37(_0x1cbbec(0x17a),{'className':_0x52ece7('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1a58ed,'univer-text-red-500':!_0x1a58ed}),'children':_0x21f88b}),_0xc53f37('div',{'className':_0x1cbbec(0x15b),'children':_0x50d72c})]});}return _0x1a58ed?_0x31b726():_0xc53f37(_0x3726b7,{'title':_0x29514b['t'](_0x99e4d7(0x15f)),'children':_0x31b726()});}var Ri=Object[_0x240916(0x1f8)],Di=(_0x20ee02,_0x11739e,_0x57a343,_0x2e891b)=>{const _0x245bb2=_0x240916;for(var _0x118a0f=_0x2e891b>0x1?void 0x0:_0x2e891b?Ri(_0x11739e,_0x57a343):_0x11739e,_0x121e0f=_0x20ee02[_0x245bb2(0xfb)]-0x1,_0x47c329;_0x121e0f>=0x0;_0x121e0f--)(_0x47c329=_0x20ee02[_0x121e0f])&&(_0x118a0f=_0x47c329(_0x118a0f)||_0x118a0f);return _0x118a0f;},se=(_0x5ded3b,_0xa3023b)=>(_0x2b8802,_0x3b8c3c)=>_0xa3023b(_0x2b8802,_0x3b8c3c,_0x5ded3b);let ae=class extends _0xf771d3{constructor(_0x5b858c,_0x348391,_0x585164,_0x5ddb38){const _0xed6be6=_0x240916;super(),_(this,_0xed6be6(0x2a1),new _0x37599d(_0x1cb4cc[_0xed6be6(0x23c)])),(this['_univerInstanceService']=_0x5b858c,this[_0xed6be6(0x26e)]=_0x348391,this[_0xed6be6(0x114)]=_0x585164,this[_0xed6be6(0x2cd)]=_0x5ddb38,this[_0xed6be6(0x306)](),this['_initStatusListener']());}[_0x240916(0x21e)](){const _0x4272ed=_0x240916;this[_0x4272ed(0xe0)](this['_univerInstanceService'][_0x4272ed(0x1ca)][_0x4272ed(0x1e1)](_0x38976a(()=>{const _0x5a408f=_0x4272ed,_0x3ce369=this[_0x5a408f(0x1d7)]['getFocusedUnit']();return _0x3ce369?this['_collaborationController'][_0x5a408f(0x153)](_0x3ce369[_0x5a408f(0x2a6)]()):_0x4cadb4(null);}),_0x38976a(_0x3850ba=>_0x3850ba?_0x3850ba['status$']:_0x4cadb4(_0x1cb4cc['NOT_COLLAB'])))[_0x4272ed(0x111)](_0x246a8a=>{const _0x2eb6f0=_0x4272ed;this['_status$'][_0x2eb6f0(0x1cc)](_0x246a8a);}));}['_initStatusComponent'](){const _0x4f22f2=_0x240916;this[_0x4f22f2(0xe0)](this[_0x4f22f2(0x2cd)]['registerComponent'](_0x5ab223[_0x4f22f2(0x22f)],()=>_0x3361c7(Ni({'status$':this[_0x4f22f2(0x2a1)][_0x4f22f2(0x24c)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x81870d),se(0x1,_0x451de1(_0x30dac5)),se(0x2,_0x451de1(_0x4a10bf)),se(0x3,_0x3cadbd)],ae);function Ni(_0x1435a4){const {status$:_0xae89cd}=_0x1435a4;return function(){return _0xc53f37(Ci,{'status$':_0xae89cd});};}const yt=_0x3cc41a(_0x240916(0x292));var bi=Object[_0x240916(0x1f8)],Li=(_0x145187,_0x5d48c1,_0x3b4162,_0x4b3d64)=>{const _0x32d37c=_0x240916;for(var _0x3e0fda=_0x4b3d64>0x1?void 0x0:_0x4b3d64?bi(_0x5d48c1,_0x3b4162):_0x5d48c1,_0x395425=_0x145187[_0x32d37c(0xfb)]-0x1,_0x24cb5e;_0x395425>=0x0;_0x395425--)(_0x24cb5e=_0x145187[_0x395425])&&(_0x3e0fda=_0x24cb5e(_0x3e0fda)||_0x3e0fda);return _0x3e0fda;},K=(_0x58b31c,_0xd8e885)=>(_0x3d4475,_0x44ff36)=>_0xd8e885(_0x3d4475,_0x44ff36,_0x58b31c);let ce=class extends _0x3122c4{constructor(_0x42e56c,_0x5bb4bf,_0x2446dc,_0xcd04ee,_0x5e2a60){const _0x22f108=_0x240916;super(),this[_0x22f108(0x13f)]=_0x42e56c,this[_0x22f108(0x26f)]=_0x5bb4bf,this[_0x22f108(0x208)]=_0x2446dc,this[_0x22f108(0x130)]=_0xcd04ee,_0x5e2a60?_0x5e2a60==null||_0x5e2a60[_0x22f108(0x142)]()['then'](()=>this['_init']()):(this[_0x22f108(0x26f)][_0x22f108(0x28c)]('[CollaborationDataLoaderController]',_0x22f108(0x2ba)),this[_0x22f108(0x163)]());}async['_init'](){const _0x38ad3d=_0x240916,_0x10e190=this[_0x38ad3d(0x13f)][_0x38ad3d(0x2ec)](_0x38ad3d(0x262)),_0x19b4fc=this['_urlService'][_0x38ad3d(0x2ec)]('type'),_0x296a39=this['_urlService']['getParam'](_0x38ad3d(0x218));if(!_0x10e190||!_0x19b4fc){this[_0x38ad3d(0x26f)][_0x38ad3d(0x28c)](_0x38ad3d(0x26b),_0x38ad3d(0xee));return;}const _0x529284=await this[_0x38ad3d(0x130)]['loadUnit'](_0x10e190,Number(_0x19b4fc),_0x296a39);_0x529284&&_0x529284 instanceof _0x8b9ea7&&this[_0x38ad3d(0x2e4)](_0x529284);}async[_0x240916(0x2e4)](_0x1b97cf){const _0x41c6bd=_0x240916;await this[_0x41c6bd(0xf6)](_0x1b97cf),_0x1b97cf[_0x41c6bd(0x14f)]['pipe'](_0xb0eea8(this[_0x41c6bd(0x221)]))[_0x41c6bd(0x111)](_0xfb7095=>{_0xfb7095&&this['_updateURLWithCurrentState'](_0xfb7095);}),this[_0x41c6bd(0x13f)]['urlChange$'][_0x41c6bd(0x1e1)](_0xb0eea8(this[_0x41c6bd(0x221)]))['subscribe'](()=>this[_0x41c6bd(0xf6)](_0x1b97cf));}['_updateURLWithCurrentState'](_0x27556e,_0xd4c260=!0x1){const _0x243de2=_0x240916,_0x3f0eb3=this[_0x243de2(0x13f)][_0x243de2(0x2ec)](_0x243de2(0x218));_0x27556e[_0x243de2(0x2c5)]()!==_0x3f0eb3&&this[_0x243de2(0x13f)][_0x243de2(0x277)](_0x243de2(0x218),_0x27556e[_0x243de2(0x2c5)](),_0xd4c260);}async['_updateSubUnitFromURLParams'](_0x1b8671){const _0x2328fd=_0x240916;var _0x605756;const _0xf2d64b=this[_0x2328fd(0x13f)]['getParam'](_0x2328fd(0x218));if(!_0xf2d64b||!_0x1b8671[_0x2328fd(0x12b)](_0xf2d64b)){const _0x2a85df=_0x1b8671[_0x2328fd(0x139)]()[0x0],_0x413455=_0x1b8671[_0x2328fd(0x12b)](_0x2a85df);if(!_0x413455)return;this[_0x2328fd(0x124)](_0x413455,!0x0),await this[_0x2328fd(0x208)][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0x2a85df});return;}((_0x605756=_0x1b8671[_0x2328fd(0x178)]())==null?void 0x0:_0x605756['getSheetId']())!==_0xf2d64b&&await this['_commandService'][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0xf2d64b});}};ce=Li([K(0x0,yt),K(0x1,_0x48e521),K(0x2,_0x5e5675),K(0x3,_0x451de1(_0x361d6f)),K(0x4,_0x590a7d(_0x6f5dda))],ce);var Ui=Object[_0x240916(0x1f8)],Mi=(_0x556df4,_0x3ecdc1,_0x4345ac,_0x1ad4a7)=>{const _0x72320e=_0x240916;for(var _0x338144=_0x1ad4a7>0x1?void 0x0:_0x1ad4a7?Ui(_0x3ecdc1,_0x4345ac):_0x3ecdc1,_0x4199ca=_0x556df4[_0x72320e(0xfb)]-0x1,_0x1acf0b;_0x4199ca>=0x0;_0x4199ca--)(_0x1acf0b=_0x556df4[_0x4199ca])&&(_0x338144=_0x1acf0b(_0x338144)||_0x338144);return _0x338144;},rt=(_0x2212d7,_0x242ba5)=>(_0x3ea308,_0x20cc81)=>_0x242ba5(_0x3ea308,_0x20cc81,_0x2212d7);let $e=class extends _0x3122c4{constructor(_0x4b98e4,_0x7e8656){const _0x25cdf7=_0x240916;super(),this[_0x25cdf7(0x2e7)]=_0x4b98e4,this[_0x25cdf7(0x1e7)]=_0x7e8656,this[_0x25cdf7(0x163)]();}[_0x240916(0x163)](){const _0x49b763=_0x240916,_0x292a22=this;this[_0x49b763(0xe0)](this[_0x49b763(0x2e7)][_0x49b763(0xd6)]({'onBeforePasteImage':async _0x4acd35=>{const _0x2f3850=_0x49b763,_0x194a8f=await _0x292a22[_0x2f3850(0x1e7)][_0x2f3850(0x2b2)](_0x4acd35);return _0x194a8f?{'source':_0x194a8f[_0x2f3850(0x234)],'imageSourceType':_0x194a8f[_0x2f3850(0x27a)]}:null;}}));}};$e=Mi([rt(0x0,_0x42c8e5),rt(0x1,_0x152fb2)],$e);const ot=[_0x240916(0x303),_0x240916(0x2eb),_0x240916(0x186),_0x240916(0x1ef),'blue.400',_0x240916(0x23f)];class Ke extends _0xf771d3{constructor(){const _0x565a37=_0x240916;super(...arguments),_(this,_0x565a37(0xf9),new Map()),_(this,_0x565a37(0x104),0x0);}[_0x240916(0x2e6)](_0x57d481){const _0x31274f=_0x240916;if(this['_assignedColors'][_0x31274f(0x298)](_0x57d481))return this['_assignedColors'][_0x31274f(0x1c7)](_0x57d481);const _0x4a7ff5=ot[this[_0x31274f(0x104)]];return this[_0x31274f(0x104)]=(this['_colorIndex']+0x1)%ot[_0x31274f(0xfb)],this[_0x31274f(0xf9)][_0x31274f(0x26a)](_0x57d481,_0x4a7ff5),_0x4a7ff5;}}function $t(_0x547dfb){const _0x3bf0f9=_0x240916;let _0x48aadc='';for(const _0x5663fd of _0x547dfb){const {startOffset:_0x3e9bcf,endOffset:_0x93db27,isActive:_0x539810,rangeType:_0x4bc5f2,segmentId:_0x2a96dc,segmentPage:_0x2563f1}=_0x5663fd;_0x48aadc[_0x3bf0f9(0xfb)]&&(_0x48aadc+=','),_0x48aadc+=_0x3e9bcf+':'+_0x93db27+':'+(_0x539810?'1':'0')+':'+_0x4bc5f2+':'+_0x2a96dc+':'+_0x2563f1;}return _0x48aadc;}function Ai(_0x28000b){const _0x4fde62=_0x240916,_0x3e2bc1=_0x28000b['split'](','),_0x255663=[];for(const _0x2ab7bc of _0x3e2bc1){const [_0x203358,_0x295579,_0x1599e4,_0x12e04f,_0x385541,_0x4a123a]=_0x2ab7bc['split'](':');_0x255663['push']({'startOffset':Number(_0x203358),'endOffset':Number(_0x295579),'collapsed':_0x203358===_0x295579,'isActive':_0x1599e4==='1','rangeType':_0x12e04f===_0x3c1574[_0x4fde62(0x1dd)]?_0x3c1574[_0x4fde62(0x1dd)]:_0x3c1574[_0x4fde62(0x241)],'segmentId':typeof _0x385541==_0x4fde62(0x19c)?String(_0x385541):'','segmentPage':Number(_0x4a123a!=null?_0x4a123a:-0x1)});}return _0x255663[_0x4fde62(0x2d7)](_0x1e0fce=>_0x1e0fce[_0x4fde62(0x173)])||(_0x255663[0x0][_0x4fde62(0x173)]=!0x0),_0x255663;}class ze extends _0x3122c4{constructor(){const _0x3b9ffd=_0x240916;super(...arguments),_(this,'_collabCursorState$',new _0x37599d(null)),_(this,_0x3b9ffd(0x19e),this[_0x3b9ffd(0x2b0)]['asObservable']());}[_0x240916(0x2f3)](_0x2b5243){const _0x2c0048=_0x240916,{unitID:_0x1ff308,memberID:_0x24f0a7,textRanges:_0x2c2f60}=_0x2b5243,_0x544278=$t(_0x2c2f60);if(_0x544278==='')return;const _0x79ff50={'unitID':_0x1ff308,'memberID':_0x24f0a7,'selection':_0x544278};this['_collabCursorState$'][_0x2c0048(0x1cc)](_0x79ff50);}}var Pi=Object[_0x240916(0x1f8)],wi=(_0x7cc092,_0x108c22,_0x117913,_0x5c82b2)=>{for(var _0x4c1c15=_0x5c82b2>0x1?void 0x0:_0x5c82b2?Pi(_0x108c22,_0x117913):_0x108c22,_0x5610d1=_0x7cc092['length']-0x1,_0x14e828;_0x5610d1>=0x0;_0x5610d1--)(_0x14e828=_0x7cc092[_0x5610d1])&&(_0x4c1c15=_0x14e828(_0x4c1c15)||_0x4c1c15);return _0x4c1c15;},A=(_0x5e9e66,_0xdd2f0d)=>(_0x5673e3,_0x2623b0)=>_0xdd2f0d(_0x5673e3,_0x2623b0,_0x5e9e66);function _0xf9f6(){const _0x183878=['PAYMENT_CHANNEL_NOT_SUPPORT','CONFLICT','imageSourceType','_ensureSubject','idSuffix','WECHAT_HAS_BEEN_BOUND','lineTo','_drawTextRange','moveTo','map','executeCommand','ticket','text','CONNECTOR_DATA_TOO_LARGE','stringify','univer-flex\x20univer-items-center','LICENSE_IMPORT_SIZE_EXCEEDED','_textBubble','cursorInfo','_docTransformSelectionsService','debug','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_selfUnitIDs','_removeClearOtherTimer','symbol','_refreshCollabCursors','uni.network.url-service','application/json','getStateCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pushState','url(#$1','has','_lastPointer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','USER_IS_ANONYMOUS','_heartbeatTimer','_cursorInfo$','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','UNIVER_DOC','_status$','column','_saveCache','_labelPosition','?taskId=','getUnitId','sessionStatus$','ENTITLE_INVALID_COUPON_CODE','ENSURE_SNAPSHOT_EXECUTION','_docSkeletonManagerService','getTypeOfUnitDisposed$','currentColor','code','_memberID','AUTHORIZE_CODE_ILLEGAL','_collabCursorState$','_render','saveImage','arc','_anchor','startsWith','MUTATION','getUnit','_clearOtherTimers','collaboration.single-unit.warning','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fillStyle','PY_RUNTIME_SCRIPT_ERROR','_doCreateSocket','_onRefRangeChange','_localStorageService','releaseFormulaLimitUrl','_docTransformStateCacheService','permission.title','endRow','getAncestorScale','getSheetId','translate(.97)','_hover','tag','engine','getCollabCursors$','_scheduleSaving','126044AdPoiH','_uiPartsService','ERROR_AGAIN','_beforeCloseService','removeParam','_uploadLog','UPDATE_CURSOR','_handleEvent','_docSkeleton','name','runId','some','lineno','onPointerLeave$','wsSessionTicketUrl','key','backgroundColor','RemoveColCommandId','_config','_draw','_showGuardMessage','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','toRgbString','_setupSubUnitSync','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','assignAColorForMemberID','_docClipboardService','forEach','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_COUPON_USED_UP','jiqing.500','getParam','getUndoRedoMutationParamsCache','InsertColCommandId','deepClone','type','_saveTaskMap','_onCursorDelete','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','SNAPSHOT_INVALID_SNAPSHOT','popstate','_maxFormulaLimit','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_sheetSkeletonManagerService','getTypeOfUnitAdded$','executionId','START_CALCULATION','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','_instanceService','REDEMPTION_USER_NOT_ELIGIBLE','startColumn','purple.300','stageInfo','_getSessionTicket','_initStatusComponent','_setFormulaLimitStatus','cursorInfo$','labelPosition','_docStateChangeManagerService','EMAIL_HAS_BEEN_BOUND','sessionTicket','complete','setInterval','LICENSE_DISTRO_REJECTED','with','_handleHeartbeatEvent','filename','_getSheetObject','AWAITING','InsertRangeMoveRightCommandId','endColumn','_collabCursorController','session.connection-failed','none','_cursors','override','_entities','urlChange$','_transformUndoRedoStack','_themeService','_online','restore','beforeCommandExecuted','addClipboardHook','USER_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Error','MOBILE_VERIFY_CODE_MISMATCH','clearTimeout','requireSession','flatMap','storage','LICENSE_MAX_UNITS_EXCEEDED','disposeWithMe','ENTITLE_REPORT_LIMIT_EXCEED','black','_updateCollabCursors','size','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','_clearPolling','_getMergeRange','entries','event$','_disabled','MoveRangeCommandId','_colorAssignService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/license/formula/limit/done','beginPath','getRenderById','ENTITLE_CAN_NOT_BUY_LOWER_OTP','replaceState','Loading','3612635kxkGxK','_updateSubUnitFromURLParams','ONLINE','getFocusedUnit','_assignedColors','setTimeout','length','_session','SYNCED','#FFF','_initCommandExecutedListener','unshift','getDocRanges','top','m2Prime','_colorIndex','collabStatus.conflict','max','onStarting','createInstance','hide','path','transformMutationsWithChangeset','defineProperty','dirtyRanges','session.collaboration-timeout','href','registerRefRange','subscribe','_getScale','m1Prime','_collaborationController','currentUsage','onPointerMove$','_docSyncEditingCollabCursorService','getValue','min','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','drawWith','loadOfflineData','_initCommandInterceptor','_removeCollabCursors','YUUMI_RATE_OVER_LIMIT','clearInterval','_monkeyPatchLogService','catch','addObject','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','collab-text-range-','result','_transformHistoryAndStateStack','getColorFromTheme','replace','getSheetBySheetId','Unknown\x20user','enableLocalCache','totalFormulasToCalculate','setItem','_dataLoaderService','current','getRangePointData','updateOfflineData','UniverIcon','M0\x200H16V16H0z','_handleJoinEvent','OffLineIcon','svg','getUnhiddenWorksheets','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_collaborationSessionService','on-line-icon_clip0_910_349','shift','_urlService','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','redoState','whenReady','memberID','ENTITLE_DUP_SUBSCRIPTION','_lastResponseTimestamp','collabStatus.synced','OFFLINE','4616250iJrskm','REDEMPTION_INVALID_CODE','from','YUUMI_AI_RUN_FAILED','getOffsetConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','activeSheet$','Success','entityInit$','NO_OTHER_CLIENTS_EDITING','getCollabEntity$','ALREADY_EXISTS','getCellMatrix','transformSelections','bottom','_startDocCollabCursor','includes','_cursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_DUPLICATED','PERMISSION_DENIED','_name','collab-client.tooltip.reconnect','transform','FromArray','exhaustSavingTask','_init','then','_unitOnClients','transformIMECache','_unitStatus','findNodePositionByCharIndex','onLocalMutation','_checkCalculationAvailable','url(#on-line-icon_clip0_910_349)','textRanges','collaboration-client-ui.config','message','2845146ZXnmoF','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','mutations','isActive','_color','location','formula.calculation.unable','clipPath','getActiveSheet','_drawAnchor','div','transformRemoteChangeset','limitInfo','10707529NtcHBt','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collabStatus.syncing','APPLY_REJECT','/universer-api/license/formula/limit/status','onRendered','transformMutation','registerRenderModule','dispose','green.600','OTHER_CLIENTS_EDITING','_cursorShapes','onTransformChange$','history','displayName','_initUserListener','1em','UNDEFINED','subscribeEvent','_messageService','collabStatus.offline','REDEMPTION_CODE_INACTIVE','currentTheme$','removeEventListener','colorChannel1','defs','143075WOZyfe','_scene','/universer-api/license/formula/limit/start','add','Failed','string','_httpService','collabCursorState$','_backgroundColor','getCurrent','RemoveRowCommandId','_revisionService','_startSheetCollabCursor','SOCKET_FAILED','_docTransformIMECacheService','setActiveRange','off-line-icon','triggerDblclick','createSocket','isEditing','...','AWAITING_WITH_PENDING','_releaseCalculationLimit','getVpScrollXYInfoByPosToVp','children','_toggleOffline','_roomMembers$','_startCalculationLimit','unsubscribe','USERS_LEAVE','doc.mutation.rich-text-editing','send','_shapes','2584576yePTuy','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','EMAIL_VERIFY_CODE_MISMATCH','_drawRectRange','_getSaveTimeout','origin','_transformService','setConfig','_applyCommand','evenodd','[LogService\x20Error]:\x20','_context','startRow','0\x200\x2017\x2016','get','setUndoRedoMutationParamsCache','measureText','focused$','_taskIds','next','getViewport','substring','getMemberID','_initEvent','getCurrentRevOfUnit','post','YUUMI_CONNECTOR_URL_NOT_FOUND','\x20at\x20','FETCH_MISS','_collabSessionService','_univerInstanceService','params','APPLY_REVISION_CONFILICT','_initDependencies','actions','delete','TEXT','eventID','SOCKET_FAILED_RETRY','push','pipe','getUnitStatus$','_hideTimer','body','_registerRenderDependencies','REDEMPTION_CODE_HAS_BEEN_CREATED','_imageIoService','/universer-api/frontend/logs','row','YUUMI_UNABLE_LOAD_URL','collabStatus.notCollab','_pollingInterval','getCellPositionByOffset','getSkeleton','red.300','_handleHover','parse','_id','CLOSE_ROOM','save','init','setShapeProps','session.will-retry','getOwnPropertyDescriptor','isArray','values','onPointerEnter$','unitId','DATA_SOURCE_TOO_LARGE','_handleLeaveEvent','_transformPreviousActiveRange','transformStateCache','_initResize','functionsExecutedState','YUUMI_URL_COL_OUT_OF_RANGE','url(#off-line-icon_clip0_910_343)','DeleteRangeMoveUpCommandId','APPLY_NON_SEQUENTIAL_REVISION','ENTITLE_COUPON_EXPIRED','_commandService','YUUMI_NO_CUBOID_FOR_QUESTION','error','white','APPLY_PERMISSION_DENIED','disposeUnit','parseInt','_initUnhandledRejectionListener','newValue','searchParams','_renderManagerService','data','getMember','unhandledrejection','addEventListener','runOnServer','subunit','_onCursorUpdate','_cachedData','CURRENT_STATUS_CANNOT_OPERATE','roomMembers','random','_initStatusListener','collaboration.closeRoom','range','dispose$','xlink:href','width','fill','LICENSE_EXPORT_SIZE_EXCEEDED','_hasFormulaInDirtyRanges','_syncEditingCollabCursorService','_anchorDot','round','_initEntityListener','all','unitID','LOGIN_TOKEN_PROCESSING_FAILED','onMouseMove','HEADER_MENU','INVALID_INVITE_CODE','enableFrontendLog','INVALID_ARGUMENT','_registerDependencies','source','INVITE_CODE_REQUIRED','maxFormulaLimit','USER_NOT_INVITED_CODE','_range','_localeService','formula.calculation.started','selections','NOT_COLLAB','assign','_refRangeService','yellow.400','REDEMPTION_CODE_NOT_STARTED','RECT','NOT_FOUND','INTERNAL_ERROR','attrs','_memberService','Warning','setStateCache','search','mask','_scheduleClearOtherTimer','fillText','asObservable','_hovered','UNAUTHENTICATED','_send','color','COMPLETION_FINISHED','OnLineIcon','selection','undoState','TOO_MANY_REQUESTS','transformByState','toString','_collaborationUIEventService','_initWindowErrorListener','[Unhandled\x20Rejection]:\x20','saveTaskMap','UNRECOGNIZED','PENDING','ENTITLE_CHAT_LIMIT_EXCEED','http://www.w3.org/2000/svg','_eventUnsubscribe','on-line-icon','unit','_configService','INVITE_CODE_HAS_BEEN_UES','_getAnchorBounding','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','show','subUnitId','ENTITLE_INSUFFICIENT_QUOTA','set','[CollaborationDataLoaderController]','ranges','_currentUsage','_injector','_logService','LOGIN_FAILED','getConfig','_updateLocalCursor','stage','font','_createSocketURL','UNIVER_SHEET','setParam'];_0xf9f6=function(){return _0x183878;};return _0xf9f6();}const yi=0x12c,$i=0x64;let xe=class extends _0x3122c4{constructor(_0x1efaa2,_0x10bb26,_0x325e5e,_0x2b11f3,_0x426809,_0xfce1f7,_0x4921f2,_0x330c02,_0x1e5e6d){const _0x10e326=_0x240916;super(),_(this,'_online',!0x1),_(this,_0x10e326(0x163),!0x1),_(this,_0x10e326(0x29d),new _0x37599d(new Map())),_(this,_0x10e326(0x308),this[_0x10e326(0x29d)][_0x10e326(0x24c)]()),_(this,_0x10e326(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this[_0x10e326(0x1b1)][_0x10e326(0x1e1)](_0x18bb22(yi))),_(this,_0x10e326(0x272),_0x17e35b(_0x21d156=>{const _0x90fde4=_0x10e326,_0x24db4d={'eventID':_0x761ce2[_0x90fde4(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x90fde4(0x1cf)](),'selection':$t(_0x21d156)}};this[_0x90fde4(0xfc)][_0x90fde4(0x1b6)](_0x24db4d,this[_0x90fde4(0x22c)]);},$i)),(this['unitID']=_0x1efaa2,this['_session']=_0x10bb26,this[_0x10e326(0x26e)]=_0x325e5e,this[_0x10e326(0xed)]=_0x2b11f3,this[_0x10e326(0x245)]=_0x426809,this['_syncEditingCollabCursorService']=_0xfce1f7,this[_0x10e326(0x1bf)]=_0x4921f2,this['_univerInstanceService']=_0x330c02,this[_0x10e326(0x208)]=_0x1e5e6d);}get['cursorInfo'](){const _0x5ef626=_0x240916;return this[_0x5ef626(0x29d)]['getValue']();}get[_0x240916(0x21c)](){const _0x40f811=_0x240916;return this[_0x40f811(0x1b1)][_0x40f811(0x118)]();}['dispose'](){const _0x37c79f=_0x240916;super[_0x37c79f(0x185)](),this[_0x37c79f(0x29d)]['next'](new Map()),this['_cursorInfo$'][_0x37c79f(0x30d)](),this[_0x37c79f(0x1b1)]['next']([]),this[_0x37c79f(0x1b1)][_0x37c79f(0x30d)]();}[_0x240916(0x1f5)](){const _0x391383=_0x240916;this[_0x391383(0x163)]||(this[_0x391383(0x163)]=!0x0,this[_0x391383(0xfc)][_0x391383(0x2a7)][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))[_0x391383(0x111)](_0x2c3e44=>{const _0x568dcb=_0x391383;_0x2c3e44===_0x83b48e[_0x568dcb(0xf7)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x391383(0xfc)]['event$'][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))['subscribe'](_0x2a7a4a=>{const _0x42457e=_0x391383,_0xa0b97c=_0x2a7a4a[_0x42457e(0x1de)];_0xa0b97c===_0x761ce2[_0x42457e(0x2d2)]&&this[_0x42457e(0x219)](_0x2a7a4a),_0xa0b97c===_0x761ce2[_0x42457e(0x1b4)]&&this[_0x42457e(0x2f2)](_0x2a7a4a);}),this[_0x391383(0xe0)](this[_0x391383(0x208)][_0x391383(0x171)](_0x2307d3=>{const _0x3ea790=_0x391383,_0x339d0=_0x2307d3[_0x3ea790(0x1d8)];_0x339d0!=null&&this['_online']&&_0x2307d3['id']===_0x43bf97['id']&&_0x339d0[_0x3ea790(0x1fc)]===this[_0x3ea790(0x22c)]&&_0x339d0[_0x3ea790(0x1aa)]===!0x1&&_0x339d0[_0x3ea790(0x26c)]['length']>0x0&&this[_0x3ea790(0x272)](_0x339d0['ranges']);})),this[_0x391383(0x227)][_0x391383(0x19e)][_0x391383(0x1e1)](_0xb0eea8(this[_0x391383(0x221)]))[_0x391383(0x111)](_0x198d77=>{const _0x2c1486=_0x391383;if((_0x198d77==null?void 0x0:_0x198d77['unitID'])!==this[_0x2c1486(0x22c)])return;const _0x417152={'eventID':_0x761ce2[_0x2c1486(0x2d2)],'data':_0x198d77};this['_onCursorUpdate'](_0x417152);}),this['disposeWithMe'](this[_0x391383(0x208)][_0x391383(0x171)](_0x260aca=>{const _0x22a09e=_0x391383;if(_0x260aca[_0x22a09e(0x1d8)]==null)return;const _0x8b8665=_0x260aca['params'];if(_0x260aca['id']!==_0x87d6e4['id']||_0x8b8665[_0x22a09e(0x1fc)]!==this[_0x22a09e(0x22c)])return;const _0x52618f={'id':_0x22a09e(0x1b5),'params':_0x8b8665},_0x328f01=this[_0x22a09e(0x28a)];for(const [_0x4fa251,_0x3ef16b]of _0x328f01){const _0x5421fe={'id':_0x22a09e(0x1b5),'params':{'unitId':this[_0x22a09e(0x22c)],'actions':null,'textRanges':_0x3ef16b[_0x22a09e(0x26c)]}},_0x205a6c=this['_transformService'][_0x22a09e(0x183)](_0x52618f,_0x5421fe,!0x1);if(_0x699f6f(_0x205a6c))throw _0x205a6c[_0x22a09e(0x20a)];_0x328f01[_0x22a09e(0x26a)](_0x4fa251,{..._0x3ef16b,'ranges':_0x205a6c[_0x22a09e(0x103)][_0x22a09e(0x1d8)][_0x22a09e(0x16c)]});}queueMicrotask(()=>{const _0x4745f4=_0x22a09e;this[_0x4745f4(0x29d)][_0x4745f4(0x1cc)](_0x328f01);});})));}[_0x240916(0x219)](_0x3de89a){const _0x1fbdd2=_0x240916;var _0x25e19d,_0x5f0f79;const {memberID:_0x45e83d,selection:_0x55ca5a}=_0x3de89a['data'],_0x2027b8=Ai(_0x55ca5a),_0x55b120=(_0x5f0f79=(_0x25e19d=this[_0x1fbdd2(0x245)][_0x1fbdd2(0x214)](this['unitID'],_0x45e83d))==null?void 0x0:_0x25e19d[_0x1fbdd2(0x2d5)])!=null?_0x5f0f79:_0x1fbdd2(0x12c),_0x42a13d={'color':this[_0x1fbdd2(0xed)][_0x1fbdd2(0x2e6)](_0x45e83d),'name':_0x55b120,'ranges':_0x2027b8},_0x906f52=this[_0x1fbdd2(0x28a)];_0x906f52['set'](_0x45e83d,_0x42a13d),this[_0x1fbdd2(0x29d)][_0x1fbdd2(0x1cc)](_0x906f52);}[_0x240916(0x2f2)](_0x51367b){const _0x12cc3b=_0x240916,{memberID:_0x231da4}=_0x51367b[_0x12cc3b(0x213)],_0x37dcd0=this[_0x12cc3b(0x28a)];_0x37dcd0[_0x12cc3b(0x1dc)](_0x231da4),this[_0x12cc3b(0x29d)][_0x12cc3b(0x1cc)](_0x37dcd0);}[_0x240916(0x1ba)](){const _0x1a66cf=_0x240916;var _0x3a8260;if(this['_online']=!0x0,((_0x3a8260=this[_0x1a66cf(0x1d7)][_0x1a66cf(0xf8)]())==null?void 0x0:_0x3a8260['getUnitId']())!==this[_0x1a66cf(0x22c)])return;const _0x42d303=this[_0x1a66cf(0x26e)][_0x1a66cf(0x1c7)](_0x5f3a65)[_0x1a66cf(0x101)]();Array[_0x1a66cf(0x1f9)](_0x42d303)&&_0x42d303[_0x1a66cf(0xfb)]>0x0&&this[_0x1a66cf(0x272)](_0x42d303);}[_0x240916(0x1b0)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x451de1(_0x30dac5)),A(0x3,_0x451de1(Ke)),A(0x4,_0x451de1(_0x11723a)),A(0x5,_0x451de1(ze)),A(0x6,_0x10d68c),A(0x7,_0x81870d),A(0x8,_0x5e5675)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1a7520,_0xa7a775,_0x4f4331,_0x25f438)=>{const _0x20f221=_0x240916;for(var _0x51fee=_0x25f438>0x1?void 0x0:_0x25f438?xi(_0xa7a775,_0x4f4331):_0xa7a775,_0x55d6f7=_0x1a7520[_0x20f221(0xfb)]-0x1,_0x1bb836;_0x55d6f7>=0x0;_0x55d6f7--)(_0x1bb836=_0x1a7520[_0x55d6f7])&&(_0x51fee=_0x1bb836(_0x51fee)||_0x51fee);return _0x51fee;},B=(_0x2642a9,_0x5551c9)=>(_0x3d992d,_0x205527)=>_0x5551c9(_0x3d992d,_0x205527,_0x2642a9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x462ad1=[],_0x1a7b8e=!0x1;return _0x501418=>{const _0x5a474c=_0x9124;_0x462ad1[_0x5a474c(0x1e0)](_0x501418),_0x1a7b8e||(_0x1a7b8e=!0x0,setTimeout(()=>{_0x462ad1['forEach'](_0x3f8117=>_0x3f8117()),_0x462ad1=[],_0x1a7b8e=!0x1;}));};};let Be=class extends _0x3122c4{constructor(_0x43a487,_0x47d308,_0x5ceabd,_0x117fcf,_0x4b6a2d,_0x11a3aa,_0x4e23ae,_0x93ae84){const _0x1b05cd=_0x240916;super(),_(this,_0x1b05cd(0xd3),!0x1),_(this,_0x1b05cd(0x163),!0x1),_(this,_0x1b05cd(0x29d),new _0x37599d(new Map())),_(this,_0x1b05cd(0x308),this['_cursorInfo$'][_0x1b05cd(0x24c)]()),_(this,_0x1b05cd(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x18bb22(Fi))),_(this,_0x1b05cd(0x272),_0x17e35b((_0x442360,_0x589a82)=>{const _0x4824d9=_0x1b05cd,_0x8c7e3a={'eventID':_0x761ce2['UPDATE_CURSOR'],'data':{'unitID':this[_0x4824d9(0x22c)],'memberID':this[_0x4824d9(0xfc)][_0x4824d9(0x1cf)](),'selection':_0x47dbec(_0x442360,_0x589a82[_0x4824d9(0x220)])}};this[_0x4824d9(0xfc)][_0x4824d9(0x1b6)](_0x8c7e3a,this['unitID']);},ki)),(this[_0x1b05cd(0x22c)]=_0x43a487,this[_0x1b05cd(0xfc)]=_0x47d308,this[_0x1b05cd(0x26e)]=_0x5ceabd,this[_0x1b05cd(0xed)]=_0x117fcf,this[_0x1b05cd(0x245)]=_0x4b6a2d,this[_0x1b05cd(0x1d7)]=_0x11a3aa,this[_0x1b05cd(0x208)]=_0x4e23ae,this[_0x1b05cd(0x23e)]=_0x93ae84);}get['cursorInfo'](){const _0x451c0a=_0x240916;return this[_0x451c0a(0x29d)]['getValue']();}get['roomMembers'](){const _0x14ee5f=_0x240916;return this[_0x14ee5f(0x1b1)][_0x14ee5f(0x118)]();}[_0x240916(0x185)](){const _0x491a83=_0x240916;super['dispose'](),this[_0x491a83(0x29d)][_0x491a83(0x1cc)](new Map()),this[_0x491a83(0x29d)][_0x491a83(0x30d)](),this['_roomMembers$']['next']([]),this[_0x491a83(0x1b1)][_0x491a83(0x30d)]();}[_0x240916(0x1f5)](){const _0x5bd4d5=_0x240916;this[_0x5bd4d5(0x163)]||(this['_init']=!0x0,this[_0x5bd4d5(0xfc)][_0x5bd4d5(0x2a7)][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x1e10db=>{const _0x5a2dcd=_0x5bd4d5;_0x1e10db===_0x83b48e['ONLINE']?this[_0x5a2dcd(0x1ba)]():this[_0x5a2dcd(0x1b0)]();}),this[_0x5bd4d5(0xfc)]['event$'][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x30dbc6=>{const _0x3ecc30=_0x5bd4d5,_0x3c2991=_0x30dbc6[_0x3ecc30(0x1de)];_0x3c2991===_0x761ce2[_0x3ecc30(0x2d2)]&&this[_0x3ecc30(0x219)](_0x30dbc6),_0x3c2991===_0x761ce2[_0x3ecc30(0x1b4)]&&this[_0x3ecc30(0x2f2)](_0x30dbc6);}),this[_0x5bd4d5(0x2be)](),this[_0x5bd4d5(0xe0)](this[_0x5bd4d5(0x208)][_0x5bd4d5(0x171)](_0xd7d660=>{const _0x2ade57=_0x5bd4d5;if(this[_0x2ade57(0xd3)]&&_0xd7d660['id']===_0x12ebb5['id']&&_0xd7d660['params'][_0x2ade57(0x1fc)]===this[_0x2ade57(0x22c)]){const _0x4f0e4c=_0xd7d660['params'];this[_0x2ade57(0x272)](_0x4f0e4c[_0x2ade57(0x268)],_0x4f0e4c[_0x2ade57(0x23b)][0x0]);}})));}['_onCursorUpdate'](_0x55879f){const _0x2a18e7=_0x240916;var _0xa283bb,_0xd9b079;const {memberID:_0xc0a7b7,selection:_0x308f25}=_0x55879f[_0x2a18e7(0x213)],{sheetName:_0x10b014,range:_0x5f0330}=_0x1ec9a4(_0x308f25),_0x4ff4a8={'name':(_0xd9b079=(_0xa283bb=this[_0x2a18e7(0x245)][_0x2a18e7(0x214)](this['unitID'],_0xc0a7b7))==null?void 0x0:_0xa283bb[_0x2a18e7(0x2d5)])!=null?_0xd9b079:'Unknown\x20user','range':this[_0x2a18e7(0xe8)](_0x10b014,_0x5f0330),'sheetID':_0x10b014,'color':this[_0x2a18e7(0xed)][_0x2a18e7(0x2e6)](_0xc0a7b7),'selection':_0x308f25},_0x415345=this[_0x2a18e7(0x28a)];_0x415345[_0x2a18e7(0x26a)](_0xc0a7b7,_0x4ff4a8),this[_0x2a18e7(0x29d)]['next'](_0x415345);}[_0x240916(0x2f2)](_0x4589d1){const _0x20fd33=_0x240916,{memberID:_0x91c7dd}=_0x4589d1['data'],_0x5b1d18=this[_0x20fd33(0x28a)];_0x5b1d18[_0x20fd33(0x1dc)](_0x91c7dd),this['_cursorInfo$'][_0x20fd33(0x1cc)](_0x5b1d18);}[_0x240916(0xe8)](_0x131ad2,_0x561f4c){const _0x1a6760=_0x240916;var _0x426d5b,_0x772c7c;const _0x3fd833=(_0x772c7c=(_0x426d5b=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x1a6760(0x22c)]))==null?void 0x0:_0x426d5b[_0x1a6760(0x12b)](_0x131ad2))==null?void 0x0:_0x772c7c['getMergeData']();return(_0x3fd833==null?void 0x0:_0x3fd833['find'](_0x36cbc2=>_0x49f784['contains'](_0x36cbc2,_0x561f4c)))||_0x561f4c;}[_0x240916(0x2be)](){const _0xec64db=_0x240916,_0x146283=new _0x113270(),_0x59b2f7=Hi(),_0x4f4ac0=()=>{const _0x48ae34=_0x9124;_0x146283['dispose']();const _0x2e8395=(_0x4a11b8,_0xf8af1e,_0x6a1e90,_0x45e915)=>{const _0x49ddb4=_0x9124;let _0x5a3c68=[];switch(_0x4a11b8['id']){case _0xab8473['DeleteRangeMoveLeftCommandId']:{_0x5a3c68=_0x5940a0(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x205)]:{_0x5a3c68=_0x1d554c(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2ee)]:{_0x5a3c68=_0x17c1bf(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRangeMoveDownCommandId']:{_0x5a3c68=_0x3fc51e(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x315)]:{_0x5a3c68=_0x20f389(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRowCommandId']:{_0x5a3c68=_0x209d65(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0xec)]:{_0x5a3c68=_0x133eca(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2dd)]:{_0x5a3c68=_0x4b51ea(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x1a1)]:{_0x5a3c68=_0x3ad6e3(_0x4a11b8,_0x45e915);break;}}const _0x351284=_0x4fc651(_0x5a3c68,_0x45e915),_0x19e380=this[_0x49ddb4(0x28a)][_0x49ddb4(0x1c7)](_0xf8af1e);if(_0x19e380&&_0x351284){const _0x54ca2a={..._0x19e380,'range':_0x351284};this['cursorInfo'][_0x49ddb4(0x26a)](_0xf8af1e,_0x54ca2a),_0x59b2f7(()=>{const _0x4f3a94=_0x49ddb4,_0x164114=this[_0x4f3a94(0x23e)][_0x4f3a94(0x110)](_0x351284,_0xad40eb=>(_0x164114[_0x4f3a94(0x185)](),_0x2e8395(_0xad40eb,_0xf8af1e,_0x6a1e90,_0x351284)));_0x146283[_0x4f3a94(0x19a)](_0x164114);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x48ae34(0x2e8)]((_0x184739,_0x2a6914)=>{const _0x353a01=_0x48ae34,{range:_0x499966,sheetID:_0x575cf6}=_0x184739,_0x26d3fb=this['_refRangeService'][_0x353a01(0x110)](_0x499966,_0x2d12d1=>(_0x26d3fb[_0x353a01(0x185)](),_0x2e8395(_0x2d12d1,_0x2a6914,_0x575cf6,_0x499966)));_0x146283[_0x353a01(0x19a)](_0x26d3fb);});};this[_0xec64db(0xe0)](_0x13afa3(this[_0xec64db(0x29d)]['subscribe'](()=>{_0x4f4ac0();})));}[_0x240916(0x1ba)](){const _0x483673=_0x240916;var _0x3a4a8b,_0x8bb734;if(this[_0x483673(0xd3)]=!0x0,((_0x3a4a8b=this['_univerInstanceService'][_0x483673(0xf8)]())==null?void 0x0:_0x3a4a8b[_0x483673(0x2a6)]())!==this[_0x483673(0x22c)])return;const _0x332edc=(_0x8bb734=this[_0x483673(0x26e)][_0x483673(0x1c7)](_0x368647)['getCurrentSelections']())==null?void 0x0:_0x8bb734[0x0],_0x2841dc=this[_0x483673(0x1d7)]['getCurrentUnitForType'](_0x2e1b84[_0x483673(0x276)])[_0x483673(0x178)]();_0x332edc&&_0x2841dc&&this[_0x483673(0x272)](_0x2841dc['getSheetId'](),_0x332edc);}[_0x240916(0x1b0)](){const _0x1c07ef=_0x240916;this[_0x1c07ef(0xd3)]=!0x1;}};Be=Bi([B(0x2,_0x451de1(_0x30dac5)),B(0x3,_0x451de1(Ke)),B(0x4,_0x451de1(_0x11723a)),B(0x5,_0x81870d),B(0x6,_0x5e5675),B(0x7,_0x451de1(_0x44115d))],Be);var Yi=Object[_0x240916(0x1f8)],Wi=(_0x5ce3a9,_0x577de3,_0x254a40,_0x15b56f)=>{const _0x5844b2=_0x240916;for(var _0xee980d=_0x15b56f>0x1?void 0x0:_0x15b56f?Yi(_0x577de3,_0x254a40):_0x577de3,_0x2f9109=_0x5ce3a9[_0x5844b2(0xfb)]-0x1,_0x203099;_0x2f9109>=0x0;_0x2f9109--)(_0x203099=_0x5ce3a9[_0x2f9109])&&(_0xee980d=_0x203099(_0xee980d)||_0xee980d);return _0xee980d;},Ce=(_0x523b4c,_0x2902ea)=>(_0x5a32eb,_0x5a6ff5)=>_0x2902ea(_0x5a32eb,_0x5a6ff5,_0x523b4c);let H=class extends _0x3122c4{constructor(_0x5a32cf,_0x32ff47,_0x1d062c){const _0x415a72=_0x240916;super(),_(this,_0x415a72(0xcf),new Map()),_(this,_0x415a72(0x2ff),new _0x16d6c4()),(this[_0x415a72(0x1d7)]=_0x5a32cf,this[_0x415a72(0x26e)]=_0x32ff47,this[_0x415a72(0x1d6)]=_0x1d062c,this[_0x415a72(0x163)]());}[_0x240916(0x185)](){const _0x2be10f=_0x240916;super['dispose'](),this['_entityInit$'][_0x2be10f(0x30d)](),this[_0x2be10f(0xcf)][_0x2be10f(0x2e8)](_0x4b0486=>_0x4b0486[_0x2be10f(0x185)]());}[_0x240916(0x2ca)](_0x5eff66){const _0x2c5f43=_0x240916;return this[_0x2c5f43(0xcf)][_0x2c5f43(0x298)](_0x5eff66)?this[_0x2c5f43(0xcf)][_0x2c5f43(0x1c7)](_0x5eff66)[_0x2c5f43(0x308)]:this['_entityInit$'][_0x2c5f43(0x1e1)](_0xa9cd8e(_0x2af836=>_0x2af836[_0x2c5f43(0x22c)]===_0x5eff66),_0x38976a(_0x20de04=>_0x20de04[_0x2c5f43(0x308)]));}[_0x240916(0x163)](){const _0x158362=_0x240916;this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x276)])[_0x158362(0x1e1)](_0xb0eea8(this[_0x158362(0x221)]))['subscribe'](async _0x59cc7d=>{const _0x43c730=_0x158362,_0x19cc9b=_0x59cc7d['getUnitId'](),_0x454588=await this[_0x43c730(0x1a3)](_0x19cc9b);this[_0x43c730(0x2ff)][_0x43c730(0x1cc)](_0x454588),this[_0x43c730(0xcf)][_0x43c730(0x26a)](_0x19cc9b,_0x454588);}),this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x2a0)])[_0x158362(0x1e1)](_0xb0eea8(this['dispose$']))['pipe'](_0xa9cd8e(_0x563204=>!_0x563204[_0x158362(0x2a6)]()[_0x158362(0x2b5)]('__')))['subscribe'](async _0x1d944a=>{const _0x3da00c=_0x158362,_0x3ffcde=_0x1d944a[_0x3da00c(0x2a6)](),_0x1ce568=await this['_startDocCollabCursor'](_0x3ffcde);this[_0x3da00c(0x2ff)][_0x3da00c(0x1cc)](_0x1ce568),this['_entities'][_0x3da00c(0x26a)](_0x3ffcde,_0x1ce568);}),_0x4bce0e(this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x2a0)]),this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x276)]))['pipe'](_0xb0eea8(this[_0x158362(0x221)]))[_0x158362(0x111)](_0x55fde1=>{const _0x5c4c33=_0x158362,_0x3356fc=_0x55fde1[_0x5c4c33(0x2a6)](),_0x1b762d=this['_entities']['get'](_0x3356fc);_0x1b762d&&(_0x1b762d['dispose'](),this[_0x5c4c33(0xcf)][_0x5c4c33(0x1dc)](_0x3356fc));});}async[_0x240916(0x1a3)](_0x200023){const _0x3d1575=_0x240916,_0x356445=await this[_0x3d1575(0x1d6)][_0x3d1575(0xdc)](_0x200023),_0x47a165=this[_0x3d1575(0x26e)][_0x3d1575(0x108)](Be,_0x200023,_0x356445);return _0x47a165[_0x3d1575(0x1f5)](),_0x47a165;}async[_0x240916(0x158)](_0x2fc74b){const _0x5793d8=_0x240916,_0x3e9e25=await this['_collabSessionService'][_0x5793d8(0xdc)](_0x2fc74b),_0x55a0a9=this[_0x5793d8(0x26e)][_0x5793d8(0x108)](xe,_0x2fc74b,_0x3e9e25);return _0x55a0a9[_0x5793d8(0x1f5)](),_0x55a0a9;}};H=Wi([Ce(0x0,_0x81870d),Ce(0x1,_0x451de1(_0x30dac5)),Ce(0x2,_0x451de1(_0x27d44b))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x1407c4,_0x22cad5){const _0x2fc4ac=_0x240916;let {radius:_0x4cc706,width:_0x1983a4,height:_0x1829bd}=_0x22cad5;_0x4cc706=_0x4cc706!=null?_0x4cc706:0x0,_0x1983a4=_0x1983a4!=null?_0x1983a4:0x1e,_0x1829bd=_0x1829bd!=null?_0x1829bd:0x1e;let _0x290748=0x0,_0x439ec5=0x0,_0x25a6c0=0x0;_0x290748=_0x439ec5=_0x25a6c0=Math['min'](_0x4cc706,_0x1983a4/0x2,_0x1829bd/0x2),_0x1407c4[_0x2fc4ac(0xf0)](),_0x1407c4[_0x2fc4ac(0x280)](_0x290748,0x0),_0x1407c4[_0x2fc4ac(0x27e)](_0x1983a4-_0x439ec5,0x0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x439ec5,_0x439ec5,_0x439ec5,Math['PI']*0x3/0x2,0x0,!0x1),_0x1407c4['lineTo'](_0x1983a4,_0x1829bd-_0x25a6c0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x25a6c0,_0x1829bd-_0x25a6c0,_0x25a6c0,0x0,Math['PI']/0x2,!0x1),_0x1407c4['lineTo'](0x0,_0x1829bd),_0x1407c4[_0x2fc4ac(0x27e)](0x0,_0x290748),_0x1407c4[_0x2fc4ac(0x2b3)](_0x290748,_0x290748,_0x290748,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1407c4['closePath'](),_0x22cad5['fill']&&(_0x1407c4['save'](),_0x1407c4[_0x2fc4ac(0x2bb)]=_0x22cad5[_0x2fc4ac(0x224)],_0x22cad5['fillRule']==='evenodd'?_0x1407c4[_0x2fc4ac(0x224)](_0x2fc4ac(0x1c2)):_0x1407c4['fill'](),_0x1407c4['restore']());}class ve extends _0xa92bc{constructor(_0x56b328,_0x41f904){const _0x34922e=_0x240916;super(_0x56b328,_0x41f904),_(this,_0x34922e(0x250)),_(this,_0x34922e(0x284)),(this[_0x34922e(0x250)]=_0x41f904==null?void 0x0:_0x41f904['color'],this[_0x34922e(0x284)]=_0x41f904==null?void 0x0:_0x41f904['text']);}static[_0x240916(0x11b)](_0x36647a,_0x26513e){const _0x473dd2=_0x240916,{text:_0x1e7275,color:_0x9bd810}=_0x26513e;_0x36647a[_0x473dd2(0x1f4)](),_0x36647a[_0x473dd2(0x274)]=_0x473dd2(0x295);const _0x59d75b=_0x36647a[_0x473dd2(0x1c9)](_0x1e7275)[_0x473dd2(0x223)],_0x548824=Math[_0x473dd2(0x119)](_0x59d75b+0x2*Re,at);ji(_0x36647a,{'height':Q,'radius':0x4,'width':_0x548824,'fill':_0x9bd810}),_0x36647a[_0x473dd2(0x2bb)]=_0x473dd2(0xfe);const _0x38bffa=Re,_0x13f69b=Q-Vi,_0x58e1cf=at-0x2*Re;if(_0x59d75b>_0x58e1cf){let _0x331a39='',_0x354bde=0x0;for(const _0x40a2de of _0x1e7275){const _0x366066=_0x36647a[_0x473dd2(0x1c9)](_0x40a2de)[_0x473dd2(0x223)];if(_0x354bde+_0x366066<=_0x58e1cf-_0x36647a[_0x473dd2(0x1c9)]('...')[_0x473dd2(0x223)])_0x331a39+=_0x40a2de,_0x354bde+=_0x366066;else{_0x331a39+=_0x473dd2(0x1ab);break;}}_0x36647a[_0x473dd2(0x24b)](_0x331a39,_0x38bffa,_0x13f69b);}else _0x36647a[_0x473dd2(0x24b)](_0x1e7275,_0x38bffa,_0x13f69b);_0x36647a[_0x473dd2(0xd4)]();}[_0x240916(0x2df)](_0xf77f03){const _0x4728a7=_0x240916;ve[_0x4728a7(0x11b)](_0xf77f03,this);}}const De='collab-text-anchor-',Xi=_0x240916(0x126),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x240916(0x2f9);class ct{constructor(_0x1adc6e,_0x41598c,_0x5b2eb4,_0x20a1c9){const _0x1be779=_0x240916;_(this,'_shapes',[]),_(this,_0x1be779(0x2b4),null),_(this,_0x1be779(0x289),null),_(this,'_anchorDot',null),_(this,_0x1be779(0x1e3),null),_(this,_0x1be779(0x260),null),(this['_cursor']=_0x1adc6e,this['_scene']=_0x41598c,this[_0x1be779(0x2d4)]=_0x5b2eb4,this['_document']=_0x20a1c9,this[_0x1be779(0x2b1)]());}set[_0x240916(0x2c7)](_0x2d2ad1){const _0x23a8d7=_0x240916;_0x2d2ad1?(this[_0x23a8d7(0x228)]&&this['_anchorDot'][_0x23a8d7(0x109)](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)]['show']()):(this[_0x23a8d7(0x228)]&&this[_0x23a8d7(0x228)]['show'](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)][_0x23a8d7(0x109)]());}[_0x240916(0x185)](){const _0x4d5b17=_0x240916;for(const _0x43c05a of this[_0x4d5b17(0x1b7)])_0x43c05a[_0x4d5b17(0x185)]();this[_0x4d5b17(0x289)]&&this[_0x4d5b17(0x289)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x228)]&&this[_0x4d5b17(0x228)]['dispose'](),this['_anchor']&&this[_0x4d5b17(0x2b4)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x260)]&&this[_0x4d5b17(0x260)]();}[_0x240916(0x2b1)](){const _0x5c1a62=_0x240916;var _0x9fec7;const {_docSkeleton:_0xb9c9b7,_document:_0x1e9064}=this,{color:_0xbba92f,name:_0x35e066,ranges:_0x4c4e68}=this[_0x5c1a62(0x15a)],_0xc42e99=_0x1e9064[_0x5c1a62(0x14c)](),{docsLeft:_0x37ab5b,docsTop:_0x34d10f}=_0xc42e99,_0x4404eb=new _0x150b12(_0xc42e99,_0xb9c9b7);for(const {startOffset:_0x583238,endOffset:_0x55b73c,rangeType:_0x50aac1,segmentId:_0x1a5200,segmentPage:_0x8a29f5,collapsed:_0x1dcb92,isActive:_0x2f13ee}of _0x4c4e68){const _0x26d6c5=_0xb9c9b7[_0x5c1a62(0x168)](_0x583238,!0x0,_0x1a5200,_0x8a29f5);let _0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c,!0x0,_0x1a5200,_0x8a29f5);if(_0x13f582==null&&(_0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c-0x1,!0x1,_0x1a5200,_0x8a29f5)),_0x2f13ee){const {contentBoxPointGroup:_0x2787d5}=_0x4404eb[_0x5c1a62(0x132)](_0x13f582,_0x13f582);if(_0x2787d5[_0x5c1a62(0xfb)]===0x0)continue;this['_drawAnchor'](_0xbba92f,_0x2787d5,_0x37ab5b,_0x34d10f,_0x35e066),this[_0x5c1a62(0x260)]=this['_handleHover']();}if(_0x26d6c5&&_0x13f582){if(_0x50aac1===_0x3c1574[_0x5c1a62(0x241)]){const _0x1f32b8=new _0x19dc65(_0xc42e99,_0xb9c9b7),{pointGroup:_0x2a566f}=(_0x9fec7=_0x1f32b8[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582))!=null?_0x9fec7:{};if(_0x2a566f==null||_0x2a566f['length']===0x0)continue;this[_0x5c1a62(0x1bc)](_0xbba92f,_0x2a566f,_0x37ab5b,_0x34d10f);}else{if(!_0x1dcb92){const {borderBoxPointGroup:_0x276745}=_0x4404eb[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582);if(_0x276745[_0x5c1a62(0xfb)]===0x0)continue;this['_drawTextRange'](_0xbba92f,_0x276745,_0x37ab5b,_0x34d10f);}}}}}[_0x240916(0x179)](_0x2200f2,_0xd6150b,_0x17131e,_0x38c76d,_0x257b5f){const _0x138dc7=_0x240916,_0x521691=this[_0x138dc7(0x265)](_0xd6150b),{left:_0x32254e,top:_0x32982a,height:_0x5c09fd}=_0x521691,_0x5cde07=this[_0x138dc7(0x112)](),_0x4d168a=zi/_0x5cde07,_0x1520c1=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d,'height':_0x5c09fd,'width':Ki,'fill':_0x2200f2||_0x525b34(_0x2b8935['black'],0x0),'strokeWidth':_0x4d168a,'stroke':Ji,'evented':!0x0});this[_0x138dc7(0x2b4)]=_0x1520c1,this['_scene'][_0x138dc7(0x123)](_0x1520c1,_0x15a21c);const _0x76203=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'strokeWidth':0x0,'stroke':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'evented':!0x1});this[_0x138dc7(0x228)]=_0x76203,this[_0x138dc7(0x198)][_0x138dc7(0x123)](_0x76203,_0x15a21c);const _0x5f2163=new ve(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Q,'text':_0x257b5f,'color':_0x2200f2});this[_0x138dc7(0x289)]=_0x5f2163,this[_0x138dc7(0x198)]['addObject'](_0x5f2163,_0x15a21c),this[_0x138dc7(0x2c7)]=!0x1;}[_0x240916(0x1f0)](){const _0x350a87=_0x240916,_0x4796f8=this['_anchor'][_0x350a87(0x1fb)][_0x350a87(0x18f)](()=>{const _0x32d309=_0x350a87;this[_0x32d309(0x2c7)]=!0x0;}),_0x2461cf=this['_anchor'][_0x350a87(0x2d9)][_0x350a87(0x18f)](()=>{const _0x2678fb=_0x350a87;this[_0x2678fb(0x1e3)]&&clearTimeout(this[_0x2678fb(0x1e3)]),this[_0x2678fb(0x1e3)]=setTimeout(()=>{const _0xb87003=_0x2678fb;this[_0xb87003(0x2c7)]=!0x1;},0x7d0);});return()=>{const _0x1de2f1=_0x350a87;_0x4796f8[_0x1de2f1(0x1b3)](),_0x2461cf['unsubscribe']();};}[_0x240916(0x27f)](_0x4e10b8,_0x2c7eac,_0x4662a6,_0xf8dad1){const _0x4ea9f6=_0x240916,_0x5526e5=new _0x19d4f9(_0x4e10b8)[_0x4ea9f6(0x2e1)](0.2)['toRgbString'](),_0x25e0f1=new _0x542d56(Xi+_0x2664d4(z),{'pointsGroup':_0x2c7eac,'fill':_0x5526e5||_0x525b34(_0x2b8935[_0x4ea9f6(0xe2)],0.2),'left':_0x4662a6,'top':_0xf8dad1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ea9f6(0x1b7)][_0x4ea9f6(0x1e0)](_0x25e0f1),this[_0x4ea9f6(0x198)][_0x4ea9f6(0x123)](_0x25e0f1,_0x15a21c);}[_0x240916(0x1bc)](_0x248566,_0x199f12,_0x4945e0,_0x3e40fe){const _0x346399=_0x240916,_0x4254c2=new _0x19d4f9(_0x248566)[_0x346399(0x2e1)](0.2)[_0x346399(0x2e3)](),_0x255b9d=new _0x542d56(Gi+_0x2664d4(z),{'pointsGroup':_0x199f12,'fill':_0x4254c2||_0x525b34(_0x2b8935[_0x346399(0xe2)],0.2),'left':_0x4945e0,'top':_0x3e40fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x346399(0x1b7)][_0x346399(0x1e0)](_0x255b9d),this[_0x346399(0x198)][_0x346399(0x123)](_0x255b9d,_0x15a21c);}[_0x240916(0x265)](_0x85498){const _0x4b9e70=_0x85498[0x0],_0xe280f9=_0x4b9e70[0x0],_0x525513=_0x4b9e70[0x2],{x:_0x5c923f,y:_0x41c112}=_0xe280f9,{x:_0x99ef93,y:_0xd94ad7}=_0x525513;return{'left':_0x5c923f,'top':_0x41c112,'width':_0x99ef93-_0x5c923f,'height':_0xd94ad7-_0x41c112};}['_getScale'](){const _0x40e63b=_0x240916,{scaleX:_0x14ed33,scaleY:_0x7c9859}=this[_0x40e63b(0x198)][_0x40e63b(0x2c4)]();return Math[_0x40e63b(0x106)](_0x14ed33,_0x7c9859);}}var Zi=Object[_0x240916(0x1f8)],Qi=(_0x5af806,_0x5acde5,_0x477e59,_0xc79394)=>{const _0x3df1cc=_0x240916;for(var _0x5f06fc=_0xc79394>0x1?void 0x0:_0xc79394?Zi(_0x5acde5,_0x477e59):_0x5acde5,_0x1115f8=_0x5af806[_0x3df1cc(0xfb)]-0x1,_0xaadfe9;_0x1115f8>=0x0;_0x1115f8--)(_0xaadfe9=_0x5af806[_0x1115f8])&&(_0x5f06fc=_0xaadfe9(_0x5f06fc)||_0x5f06fc);return _0x5f06fc;},ie=(_0x1ae933,_0x507a14)=>(_0x7c1f0f,_0x3196f6)=>_0x507a14(_0x7c1f0f,_0x3196f6,_0x1ae933);let Fe=class extends _0x3122c4{constructor(_0x34a0ee,_0x58cbdc,_0x19bc6a,_0x58ec77,_0x437617){const _0x69d3ab=_0x240916;super(),_(this,'_cursorShapes',[]),_(this,_0x69d3ab(0x31a),[]),(this[_0x69d3ab(0x1c4)]=_0x34a0ee,this[_0x69d3ab(0x2aa)]=_0x58cbdc,this[_0x69d3ab(0x317)]=_0x19bc6a,this[_0x69d3ab(0x208)]=_0x58ec77,this[_0x69d3ab(0xd2)]=_0x437617,this[_0x69d3ab(0x163)]());}[_0x240916(0x163)](){const _0x362ee5=_0x240916,_0x312ab5=this[_0x362ee5(0x1c4)]['unitId'],_0x225a74=this['_docSkeletonManagerService'];this[_0x362ee5(0xe0)](_0x207d2b([this[_0x362ee5(0x317)][_0x362ee5(0x2ca)](_0x312ab5),this[_0x362ee5(0xd2)][_0x362ee5(0x193)]])[_0x362ee5(0x1e1)](_0x58bc15(([_0x591725,_0x49074c])=>({'skeleton':_0x225a74[_0x362ee5(0x1ee)](),'cursors':[..._0x591725['values']()][_0x362ee5(0xdd)](_0x1a23e7=>({..._0x1a23e7,'color':this[_0x362ee5(0xd2)][_0x362ee5(0x129)](_0x1a23e7[_0x362ee5(0x250)])}))})))[_0x362ee5(0x111)](_0x3412e3=>{const _0x543ae7=_0x362ee5;if(this['_removeCollabCursors'](),_0x3412e3){const {skeleton:_0x1cd68e,cursors:_0xf28519}=_0x3412e3;this[_0x543ae7(0xe3)](_0x1cd68e,_0xf28519);}})),this[_0x362ee5(0x201)](),this[_0x362ee5(0xff)]();}[_0x240916(0xe3)](_0x22d342,_0x55859e){const _0x1553d3=_0x240916,{scene:_0x3af709,mainComponent:_0x367c8e}=this['_context'],_0x415975=_0x55859e['map'](_0x889472=>new ct(_0x889472,_0x3af709,_0x22d342,_0x367c8e));this[_0x1553d3(0x188)]=_0x415975,this[_0x1553d3(0x31a)]=_0x55859e;}[_0x240916(0x291)](){const _0x18e24a=_0x240916;this[_0x18e24a(0x11e)]();const {scene:_0x3b78da,mainComponent:_0x3262fb}=this[_0x18e24a(0x1c4)],_0x2e1e69=this[_0x18e24a(0x2aa)][_0x18e24a(0x1ee)](),_0x5982bc=this['_cursors'][_0x18e24a(0x281)](_0x490385=>new ct(_0x490385,_0x3b78da,_0x2e1e69,_0x3262fb));this[_0x18e24a(0x188)]=_0x5982bc;}[_0x240916(0x11e)](){const _0x578f5b=_0x240916;this[_0x578f5b(0x188)][_0x578f5b(0x2e8)](_0x54b7d4=>_0x54b7d4[_0x578f5b(0x185)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1f88b1=_0x240916,_0x3dc3f1=[_0x1a7732['id']];this['disposeWithMe'](this[_0x1f88b1(0x208)][_0x1f88b1(0x171)](_0x4683ea=>{const _0x15fa73=_0x1f88b1;_0x3dc3f1[_0x15fa73(0x159)](_0x4683ea['id'])&&_0x4683ea[_0x15fa73(0x1d8)]['unitId']===this[_0x15fa73(0x1c4)]['unitId']&&this[_0x15fa73(0x291)]();}));}['_initResize'](){const _0x1bf695=_0x240916;this['disposeWithMe'](_0x63123d(this[_0x1bf695(0x1c4)][_0x1bf695(0x2c9)][_0x1bf695(0x189)])['pipe'](_0x491785(_0x3cb363=>_0x3cb363[_0x1bf695(0x2f0)]===_0x97306c['resize']),_0x3118d0(0x10))[_0x1bf695(0x111)](()=>{const _0x149d28=_0x1bf695;this[_0x149d28(0x291)]();}));}};Fe=Qi([ie(0x1,_0x451de1(_0x1102c9)),ie(0x2,_0x451de1(H)),ie(0x3,_0x5e5675),ie(0x4,_0x451de1(_0x57f958))],Fe);const qi=0x1,en=1.5;class tn extends _0xa92bc{constructor(_0x2c4507,_0x1ae1c8){const _0x2ead75=_0x240916;super(_0x2c4507,_0x1ae1c8),_(this,_0x2ead75(0x174)),_(this,_0x2ead75(0x24d),!0x1),_(this,_0x2ead75(0x238)),_(this,_0x2ead75(0x15e),''),_(this,'_labelPosition',_0x2ead75(0x102)),_(this,_0x2ead75(0x19f)),(_0x1ae1c8&&this[_0x2ead75(0x1f6)](_0x1ae1c8),this[_0x2ead75(0x1fb)][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x1})));}[_0x240916(0x1f6)](_0x41095b){const _0x877484=_0x240916;var _0x4326e8,_0x571185,_0x17f9be,_0xf25d83,_0x40fc50,_0x239688;this[_0x877484(0x174)]=(_0x4326e8=_0x41095b['color'])!=null?_0x4326e8:this[_0x877484(0x174)],this[_0x877484(0x24d)]=(_0x571185=_0x41095b['hovered'])!=null?_0x571185:this[_0x877484(0x24d)],this[_0x877484(0x238)]=(_0x17f9be=_0x41095b[_0x877484(0x220)])!=null?_0x17f9be:this[_0x877484(0x238)],this[_0x877484(0x15e)]=(_0xf25d83=_0x41095b[_0x877484(0x2d5)])!=null?_0xf25d83:this['_name'],this[_0x877484(0x2a4)]=(_0x40fc50=_0x41095b[_0x877484(0x309)])!=null?_0x40fc50:this[_0x877484(0x2a4)],this[_0x877484(0x19f)]=(_0x239688=_0x41095b[_0x877484(0x2dc)])!=null?_0x239688:this[_0x877484(0x19f)],this[_0x877484(0x256)]({'width':_0x41095b[_0x877484(0x223)],'height':_0x41095b['height']});}[_0x240916(0x22e)](_0x5043e3){const _0x9acdbf=_0x240916,{row:_0x1f9d59,column:_0x2e5728}=_0x5043e3;if(_0x1f9d59>=this[_0x9acdbf(0x238)][_0x9acdbf(0x1c5)]&&_0x1f9d59<=this[_0x9acdbf(0x238)][_0x9acdbf(0x2c3)]&&_0x2e5728>=this['_range'][_0x9acdbf(0x302)]&&_0x2e5728<=this[_0x9acdbf(0x238)][_0x9acdbf(0x316)]){this[_0x9acdbf(0x1f6)]({'hovered':!0x0});return;}this[_0x9acdbf(0x1f6)]({'hovered':!0x1});}[_0x240916(0x1a8)](_0x391472){return!0x1;}['_draw'](_0x310986){const _0x4daceb=_0x240916;_0x3d2ae1['drawWith'](_0x310986,{'width':this[_0x4daceb(0x223)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x4daceb(0x174)],'evented':!0x1,'fill':this[_0x4daceb(0x19f)]}),this[_0x4daceb(0x24d)]&&(_0x310986[_0x4daceb(0x1f4)](),_0x310986[_0x4daceb(0x160)](0x1,0x0,0x0,0x1,this[_0x4daceb(0x223)],this[_0x4daceb(0x2a4)]===_0x4daceb(0x157)?0x0:-Q),ve['drawWith'](_0x310986,{'text':this[_0x4daceb(0x15e)],'color':this[_0x4daceb(0x174)]}),_0x310986[_0x4daceb(0xd4)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0xc60d0b,_0x5d73b2,_0x156f9a,_0x253061)=>{const _0x1a2fe1=_0x240916;for(var _0x204ab6=_0x253061>0x1?void 0x0:_0x253061?sn(_0x5d73b2,_0x156f9a):_0x5d73b2,_0x126e9e=_0xc60d0b[_0x1a2fe1(0xfb)]-0x1,_0x30c75c;_0x126e9e>=0x0;_0x126e9e--)(_0x30c75c=_0xc60d0b[_0x126e9e])&&(_0x204ab6=_0x30c75c(_0x204ab6)||_0x204ab6);return _0x204ab6;},be=(_0x445e58,_0x444142)=>(_0x316f39,_0x4b0c0a)=>_0x444142(_0x316f39,_0x4b0c0a,_0x445e58);const rn=0x1389;let ke=class extends _0x3122c4{constructor(_0x27075f,_0x2cea59,_0x2ca89b,_0x59d74f){const _0x14c91e=_0x240916;super(),_(this,_0x14c91e(0x31a),new Set()),_(this,'_lastPointer',null),(this[_0x14c91e(0x1c4)]=_0x27075f,this[_0x14c91e(0x2fa)]=_0x2cea59,this[_0x14c91e(0x317)]=_0x2ca89b,this[_0x14c91e(0xd2)]=_0x59d74f,this[_0x14c91e(0x163)]());}[_0x240916(0x163)](){const _0x37055e=_0x240916;this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x1e1)](_0x2b4e82(this[_0x37055e(0x221)]),_0x1fc78b(_0x107b5a=>{const _0xeced1e=_0x37055e;if(_0x107b5a){const _0x6da28b=_0x107b5a['sheetId'];return _0x207d2b(this['_collabCursorController'][_0xeced1e(0x2ca)](this[_0xeced1e(0x1c4)][_0xeced1e(0x1fc)]),this[_0xeced1e(0xd2)][_0xeced1e(0x193)])[_0xeced1e(0x1e1)](_0x58bc15(([_0x50294a,_0x5cf57f])=>{const _0x5f0e0c=_0xeced1e,_0x3b5121=new Map();return _0x50294a[_0x5f0e0c(0x2e8)]((_0x26eff3,_0x1729c8)=>{const _0x95f225=_0x5f0e0c;if(_0x26eff3['sheetID']===_0x6da28b){const _0x2a0c79={..._0x26eff3};_0x2a0c79[_0x95f225(0x250)]=this[_0x95f225(0xd2)][_0x95f225(0x129)](_0x26eff3[_0x95f225(0x250)]),_0x3b5121[_0x95f225(0x26a)](_0x1729c8,_0x2a0c79);}}),{'skeleton':_0x107b5a,'cursors':_0x3b5121};}));}return _0x4cadb4({'skeleton':null,'cursors':new Map()});}))[_0x37055e(0x111)](({skeleton:_0xdfcc3c,cursors:_0x3516c2})=>{const _0x2c87ed=_0x37055e;this[_0x2c87ed(0x11e)](),_0xdfcc3c&&this['_updateCollabCursors'](_0xdfcc3c,_0x3516c2);}),this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x111)](_0x5301ce=>{const _0x24ff51=_0x37055e;if(_0x5301ce==null)return;const {skeleton:_0x3e2b44}=_0x5301ce,{scene:_0x1dc65b}=this[_0x24ff51(0x1c4)];_0x1dc65b[_0x24ff51(0x116)][_0x24ff51(0x18f)](_0x17e35b(_0x4bf2f6=>{const _0x47e836=_0x24ff51;var _0x98366d,_0x33ce0a;const {offsetX:_0x5a5c54,offsetY:_0x98567}=_0x4bf2f6,{x:_0x2df475,y:_0x2d1197}=_0x1dc65b['getRelativeToViewportCoord'](_0x2e233c[_0x47e836(0x161)]([_0x5a5c54,_0x98567])),{scaleX:_0x1a1b8c,scaleY:_0x4f0f66}=_0x1dc65b[_0x47e836(0x2c4)](),_0xbca479=_0x1dc65b[_0x47e836(0x1cd)](_0xf0062['VIEW_MAIN']),_0x1ad4a1=_0x1dc65b[_0x47e836(0x1ae)](_0x2e233c[_0x47e836(0x161)]([_0x2df475,_0x2d1197]),_0xbca479),_0x343601=_0x3e2b44[_0x47e836(0x1ed)](_0x5a5c54,_0x98567,_0x1a1b8c,_0x4f0f66,_0x1ad4a1);((_0x98366d=this[_0x47e836(0x299)])==null?void 0x0:_0x98366d[_0x47e836(0x2a2)])===_0x343601[_0x47e836(0x2a2)]&&((_0x33ce0a=this[_0x47e836(0x299)])==null?void 0x0:_0x33ce0a[_0x47e836(0x1e9)])===_0x343601['row']||this['_cursors'][_0x47e836(0x2e8)](_0x327db7=>{_0x327db7['onMouseMove'](_0x343601);});},0x64));});}['_updateCollabCursors'](_0x39738b,_0x79e0e9){const _0x5b8edf=_0x240916;var _0x234d60;const _0x20bc7e=(_0x234d60=this[_0x5b8edf(0x2fa)][_0x5b8edf(0x1a0)]())==null?void 0x0:_0x234d60['skeleton'];if(!_0x20bc7e)return;const _0x411c03=this[_0x5b8edf(0x313)]();if(!_0x411c03)return;this[_0x5b8edf(0x31a)]['forEach'](_0x30476c=>{_0x30476c['makeDirty']();});const {scene:_0xc1a21}=_0x411c03,_0x3815a3=on(Array[_0x5b8edf(0x14a)](_0x79e0e9[_0x5b8edf(0x1fa)]()))[_0x5b8edf(0x281)](_0x669538=>{const _0x160377=_0x5b8edf,{color:_0x1d467b,range:_0x53746c,name:_0x25f8e1,selection:_0x382c3b,sheetID:_0x2ca7ab}=_0x669538,{startColumn:_0x3a9ad8,startRow:_0x4a775b,endColumn:_0x52662e,endRow:_0x233fe2}=_0x53746c,_0x22222f=_0xdb9d86(_0x4a775b,_0x3a9ad8,_0xc1a21,_0x20bc7e),_0x3b3000=_0xdb9d86(_0x233fe2,_0x52662e,_0xc1a21,_0x20bc7e),{columnHeaderHeightAndMarginTop:_0x223705}=_0x20bc7e,{startX:_0xe064a0,startY:_0x23abbc}=_0x22222f,{endX:_0x32c999,endY:_0x50ea6e}=_0x3b3000,_0x1159a6=_0x32c999-_0xe064a0,_0x52748a=_0x50ea6e-_0x23abbc,_0x26f350={'labelPosition':_0x23abbc-_0x223705>=Q?_0x160377(0x102):_0x160377(0x157),'sheetID':_0x2ca7ab,'range':_0x53746c,'color':_0x1d467b,'name':_0x25f8e1,'selection':_0x382c3b,'left':_0xe064a0,'top':_0x23abbc,'width':_0x1159a6,'height':_0x52748a,'evented':!0x1,'zIndex':rn};return new tn(_0x25f8e1,_0x26f350);});_0xc1a21['addObjects'](_0x3815a3,qi),this[_0x5b8edf(0x31a)]=new Set(_0x3815a3);}[_0x240916(0x11e)](){const _0x3a4afc=_0x240916;var _0x2f143a;(_0x2f143a=this[_0x3a4afc(0x31a)])==null||_0x2f143a['forEach'](_0x27770e=>_0x27770e[_0x3a4afc(0x185)]());}[_0x240916(0x313)](){const _0x12ee01=_0x240916;return _0x453f91(this[_0x12ee01(0x1c4)][_0x12ee01(0x262)],this[_0x12ee01(0x1c4)]);}};ke=nn([be(0x1,_0x451de1(_0x3e7369)),be(0x2,_0x451de1(H)),be(0x3,_0x451de1(_0x57f958))],ke);function on(_0x554328){const _0x3bae7f=_0x240916,_0x837398=new Map();return _0x554328[_0x3bae7f(0x2e8)](_0x314472=>{const _0x5cbb6f=_0x3bae7f;if(_0x837398[_0x5cbb6f(0x298)](_0x314472[_0x5cbb6f(0x253)])){const _0xcd1a9=_0x837398[_0x5cbb6f(0x1c7)](_0x314472[_0x5cbb6f(0x253)]);_0xcd1a9['name']+=',\x20'+_0x314472[_0x5cbb6f(0x2d5)];}else _0x837398[_0x5cbb6f(0x26a)](_0x314472[_0x5cbb6f(0x253)],_0x314472);}),Array[_0x3bae7f(0x14a)](_0x837398[_0x3bae7f(0x1fa)]());}var an=Object[_0x240916(0x1f8)],cn=(_0x2154a7,_0x5b01c7,_0x49dda8,_0x562ada)=>{const _0x1cbc41=_0x240916;for(var _0x461b50=_0x562ada>0x1?void 0x0:_0x562ada?an(_0x5b01c7,_0x49dda8):_0x5b01c7,_0x47db7b=_0x2154a7[_0x1cbc41(0xfb)]-0x1,_0x5419d2;_0x47db7b>=0x0;_0x47db7b--)(_0x5419d2=_0x2154a7[_0x47db7b])&&(_0x461b50=_0x5419d2(_0x461b50)||_0x461b50);return _0x461b50;},F=(_0xd93924,_0x44cf31)=>(_0x518b4b,_0x529b66)=>_0x44cf31(_0x518b4b,_0x529b66,_0xd93924);let _e=class extends _0xf771d3{constructor(_0x448560,_0x5e2d3f,_0x309f0f,_0x86188a,_0x307336,_0x5b866d){const _0x4c29f7=_0x240916;super(),this[_0x4c29f7(0x2cf)]=_0x448560,this['_localCacheService']=_0x5e2d3f,this[_0x4c29f7(0x258)]=_0x309f0f,this[_0x4c29f7(0x190)]=_0x86188a,this['_notificationService']=_0x307336,this[_0x4c29f7(0x239)]=_0x5b866d,this[_0x4c29f7(0x13a)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xfea1ed=_0x240916;this[_0xfea1ed(0xe0)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xe88136=_0xfea1ed;if(this['_localCacheService'][_0xe88136(0x25b)][_0xe88136(0xe4)])return this[_0xe88136(0x239)]['t']('collaboration.offline-data-not-saved');}));}[_0x240916(0x1d0)](){const _0x3515ab=_0x240916;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3515ab(0xea)][_0x3515ab(0x111)](_0x273cf8=>{const _0x1736ff=_0x3515ab;_0x273cf8['id']===_0x892b1e['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2b9))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1f3)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x21f))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x15d)]&&this[_0x1736ff(0x2f8)][_0x1736ff(0x267)]({'title':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2c2)),'content':this[_0x1736ff(0x239)]['t']('permission.content'),'type':'error','duration':0x0}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x279)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this['_localeService']['t'](_0x1736ff(0x21f))+'('+_0x273cf8[_0x1736ff(0x213)]+')'}),_0x273cf8['id']===_0x892b1e['JOIN_ROOM_FAILED']&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21['Warning'],'content':this[_0x1736ff(0x239)]['t'](_0x273cf8['data']||'')}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1df)]&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x1f7))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1a4)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x318))}),_0x273cf8['id']===_0x892b1e['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x10e))});}));}};_e=cn([F(0x0,_0x159d32),F(0x1,_0x45d2d0),F(0x2,_0x451de1(_0x1be880)),F(0x3,_0x110574),F(0x4,_0xbbab2c),F(0x5,_0x451de1(_0x53f064))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x475ba5,_0x25a603,_0xefe9c0,_0x25f98f)=>{const _0x3c0700=_0x240916;for(var _0xcdcc4a=_0x25f98f>0x1?void 0x0:_0x25f98f?_n(_0x25a603,_0xefe9c0):_0x25a603,_0x45c755=_0x475ba5[_0x3c0700(0xfb)]-0x1,_0x1c5df0;_0x45c755>=0x0;_0x45c755--)(_0x1c5df0=_0x475ba5[_0x45c755])&&(_0xcdcc4a=_0x1c5df0(_0xcdcc4a)||_0xcdcc4a);return _0xcdcc4a;},ne=(_0x38d91e,_0x504be8)=>(_0x511dc1,_0x269d64)=>_0x504be8(_0x511dc1,_0x269d64,_0x38d91e);let le=class extends _0xf771d3{constructor(_0x5061a5,_0x269c5e,_0x3fe83a,_0x1271a2){const _0x5ee44d=_0x240916;super(),_(this,_0x5ee44d(0x2ae)),(this['_injector']=_0x5061a5,this[_0x5ee44d(0x19d)]=_0x269c5e,this['_logService']=_0x3fe83a,this[_0x5ee44d(0x13c)]=_0x1271a2,this[_0x5ee44d(0x163)]());}[_0x240916(0x163)](){const _0x6aa67=_0x240916;this[_0x6aa67(0x259)](),this[_0x6aa67(0x20f)](),this[_0x6aa67(0x121)](),this[_0x6aa67(0x18c)]();}[_0x240916(0x18c)](){const _0x16f95b=_0x240916;this[_0x16f95b(0xe0)](this[_0x16f95b(0x13c)]['socket$']['subscribe'](_0x3b89b3=>{const _0x3962e6=_0x16f95b;this[_0x3962e6(0x2ae)]=_0x3b89b3==null?void 0x0:_0x3b89b3[_0x3962e6(0x143)];}));}[_0x240916(0x259)](){const _0x2079c3=_0x240916,_0x2fdfd5=_0x27d535=>{const _0x3dabc6=_0x9124;var _0x289fb7;this['_uploadLog'](_0x3dabc6(0x20a),'[Window\x20Error]:\x20'+_0x27d535[_0x3dabc6(0x16e)]+_0x3dabc6(0x1d4)+_0x27d535[_0x3dabc6(0x312)]+':'+_0x27d535[_0x3dabc6(0x2d8)]+':'+_0x27d535['colno']+'\x0a'+(((_0x289fb7=_0x27d535['error'])==null?void 0x0:_0x289fb7['stack'])||''));};window['addEventListener'](_0x2079c3(0x20a),_0x2fdfd5),this[_0x2079c3(0xe0)](()=>{const _0x5adfc8=_0x2079c3;window[_0x5adfc8(0x194)](_0x5adfc8(0x20a),_0x2fdfd5);});}['_initUnhandledRejectionListener'](){const _0x5e5628=_0x240916,_0x56b26a=_0x4ff2b9=>{const _0x10925f=_0x9124;this[_0x10925f(0x2d1)](_0x10925f(0x20a),_0x10925f(0x25a)+_0x4ff2b9['reason']);};window[_0x5e5628(0x216)](_0x5e5628(0x215),_0x56b26a),this['disposeWithMe'](()=>{const _0x275464=_0x5e5628;window[_0x275464(0x194)](_0x275464(0x215),_0x56b26a);});}['_monkeyPatchLogService'](){const _0x7adff5=_0x240916,_0x1e5e5f=this[_0x7adff5(0x26f)]['error']['bind'](this[_0x7adff5(0x26f)]);this[_0x7adff5(0x26f)][_0x7adff5(0x20a)]=(..._0x25766d)=>{const _0x26e898=_0x7adff5,_0x281665=_0x25766d[_0x26e898(0x281)](_0x532519=>_0x532519 instanceof Error?_0x532519[_0x26e898(0x16e)]+'\x0a'+_0x532519['stack']:String(_0x532519))['join']('\x20');this['_uploadLog'](_0x26e898(0x20a),_0x26e898(0x1c3)+_0x281665),_0x1e5e5f(..._0x25766d);},this[_0x7adff5(0xe0)](()=>{const _0x2b9a72=_0x7adff5;this['_logService'][_0x2b9a72(0x20a)]=_0x1e5e5f;});}['_uploadLog'](_0x9daf5f,_0x2285c5){const _0x3aa0fb=_0x240916;try{const _0x4eded={'userId':this[_0x3aa0fb(0x2ae)],'logLabel':_0x9daf5f,'content':_0x2285c5};this[_0x3aa0fb(0x19d)]['post'](_0x3aa0fb(0x1e8),{'body':_0x4eded})[_0x3aa0fb(0x122)](()=>{});}catch{}}};le=ln([ne(0x0,_0x451de1(_0x30dac5)),ne(0x1,_0x451de1(_0x20e19d)),ne(0x2,_0x48e521),ne(0x3,_0x451de1(_0x27d44b))],le);const hn=_0x240916(0x16d),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xa9579d,_0x4e6c4b,_0x4026fa,_0x329d51)=>{const _0x40e8c7=_0x240916;for(var _0x1980ac=_0x329d51>0x1?void 0x0:_0x329d51?un(_0x4e6c4b,_0x4026fa):_0x4e6c4b,_0x3c37c4=_0xa9579d[_0x40e8c7(0xfb)]-0x1,_0x484d01;_0x3c37c4>=0x0;_0x3c37c4--)(_0x484d01=_0xa9579d[_0x3c37c4])&&(_0x1980ac=_0x484d01(_0x1980ac)||_0x1980ac);return _0x1980ac;},lt=(_0x23b242,_0x4bfa64)=>(_0x5f3a67,_0x5e5d8e)=>_0x4bfa64(_0x5f3a67,_0x5e5d8e,_0x23b242);let he=class{constructor(_0x5963dc,_0x4cc7bd){const _0x20a291=_0x240916;this[_0x20a291(0x1bf)]=_0x5963dc,this[_0x20a291(0x212)]=_0x4cc7bd;}[_0x240916(0x166)](_0x11654a){const _0x137600=_0x240916;this[_0x137600(0xd1)](_0x11654a),this[_0x137600(0x1ff)](_0x11654a);}[_0x240916(0x17b)](_0x1c91e9){const _0x347e93=_0x240916,{unitID:_0x3b620c}=_0x1c91e9,_0x3ae244=this['_renderManagerService']['getRenderById'](_0x3b620c)['with'](_0x193f11),{redoCache:_0x405741}=_0x3ae244[_0x347e93(0x2ed)]();if(_0x405741[_0x347e93(0xfb)]===0x0)return _0x1c91e9;let _0x4b287c=_0x141325[_0x347e93(0x2ef)](_0x1c91e9[_0x347e93(0x172)][0x0]);for(let _0x54b9a2=0x0;_0x54b9a2<_0x405741[_0x347e93(0xfb)];_0x54b9a2++){const _0x56f263={'id':_0x347e93(0x1b5),'params':{..._0x405741[_0x54b9a2]}},_0x34528d=this['_transformService']['transformMutation'](_0x4b287c,_0x56f263,!0x1);if(_0x699f6f(_0x34528d))throw _0x34528d['error'];_0x4b287c=_0x34528d['m1Prime'];}return{..._0x141325[_0x347e93(0x2ef)](_0x1c91e9),'mutations':[_0x4b287c]};}[_0x240916(0xd1)](_0x3e6132){const _0x33219c=_0x240916,{unitID:_0x56ba71}=_0x3e6132,_0x112bf8=this[_0x33219c(0x212)][_0x33219c(0xf1)](_0x56ba71)[_0x33219c(0x310)](_0x193f11),{undoCache:_0x4e34e9,redoCache:_0x42fac4}=_0x112bf8[_0x33219c(0x2ed)]();if(_0x4e34e9[_0x33219c(0xfb)]===0x0||_0x42fac4[_0x33219c(0xfb)]===0x0)return;const _0x1e42d7=[],_0x45a661=[];let _0x174b6d=_0x141325[_0x33219c(0x2ef)](_0x3e6132[_0x33219c(0x172)][0x0]),_0x4401bd=_0x141325[_0x33219c(0x2ef)](_0x3e6132['mutations'][0x0]);for(let _0x355469=_0x4e34e9[_0x33219c(0xfb)]-0x1;_0x355469>=0x0;_0x355469--){const _0x6ee3a5={'id':_0x33219c(0x1b5),'params':{..._0x4e34e9[_0x355469]}},_0x43e4b4={'id':_0x33219c(0x1b5),'params':{..._0x42fac4[_0x355469]}},_0x5bac09=this['_transformService'][_0x33219c(0x183)](_0x174b6d,_0x6ee3a5,!0x1),_0x1fed99=this['_transformService']['transformMutation'](_0x4401bd,_0x43e4b4,!0x1);if(_0x699f6f(_0x5bac09))throw _0x5bac09[_0x33219c(0x20a)];if(_0x699f6f(_0x1fed99))throw _0x1fed99['error'];_0x1e42d7[_0x33219c(0x100)](_0x5bac09[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x45a661[_0x33219c(0x100)](_0x1fed99[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x174b6d=_0x5bac09[_0x33219c(0x113)],_0x4401bd=_0x1fed99['m1Prime'];}_0x112bf8[_0x33219c(0x1c8)]({'undoCache':_0x1e42d7,'redoCache':_0x45a661});}[_0x240916(0x1ff)](_0xbacaa){const _0x3314f2=_0x240916,{unitID:_0x17e38d}=_0xbacaa,_0x150b78=this[_0x3314f2(0x212)]['getRenderById'](_0x17e38d)['with'](_0x193f11),_0x5124d2=_0x150b78['getActiveRange']();if(_0x5124d2==null)return;const _0x1c1d5c=[{'id':_0x3314f2(0x1b5),'params':{'unitId':_0xbacaa['unitID'],'actions':null,'textRanges':[_0x5124d2]}}],_0x402d0e=this['_transformService'][_0x3314f2(0x10b)](_0xbacaa,_0x1c1d5c);if(!_0x73df74(_0x402d0e))throw _0x402d0e[_0x3314f2(0x20a)];const _0x24e6a5=_0x402d0e['m2Prime'][0x0][_0x3314f2(0x1d8)][_0x3314f2(0x16c)];Array[_0x3314f2(0x1f9)](_0x24e6a5)&&_0x24e6a5['length']&&_0x150b78[_0x3314f2(0x1a6)](_0x24e6a5[0x0]);}};he=dn([lt(0x0,_0x10d68c),lt(0x1,_0x4d689b)],he);var Sn=Object[_0x240916(0x1f8)],In=(_0x2fd0c8,_0x54f199,_0x8e7ac0,_0x11a80e)=>{const _0xb3f604=_0x240916;for(var _0x478dbf=_0x11a80e>0x1?void 0x0:_0x11a80e?Sn(_0x54f199,_0x8e7ac0):_0x54f199,_0x49d542=_0x2fd0c8[_0xb3f604(0xfb)]-0x1,_0x70484b;_0x49d542>=0x0;_0x49d542--)(_0x70484b=_0x2fd0c8[_0x49d542])&&(_0x478dbf=_0x70484b(_0x478dbf)||_0x478dbf);return _0x478dbf;},Le=(_0x148580,_0x1556ba)=>(_0x170a0d,_0x19d7db)=>_0x1556ba(_0x170a0d,_0x19d7db,_0x148580);let ue=class{constructor(_0x412af1,_0x5997f0,_0x855e8){const _0x3bd9aa=_0x240916;this['_injector']=_0x412af1,this[_0x3bd9aa(0x1bf)]=_0x5997f0,this[_0x3bd9aa(0x30a)]=_0x855e8;}[_0x240916(0x200)](_0xa8d2b1){this['_transformHistoryAndStateStack'](_0xa8d2b1);}[_0x240916(0x17b)](_0x3b211e){const _0x29de05=_0x240916,{unitID:_0x5148e5}=_0x3b211e,{collaboration:_0x195a6e}=this['_docStateChangeManagerService'][_0x29de05(0x294)](_0x5148e5);if(_0x195a6e['length']===0x0)return _0x3b211e;let _0x5e573e=_0x141325[_0x29de05(0x2ef)](_0x3b211e[_0x29de05(0x172)][0x0]);for(let _0x5f53e2=0x0;_0x5f53e2<_0x195a6e[_0x29de05(0xfb)];_0x5f53e2++){const _0x41e6e5={'id':_0x29de05(0x1b5),'params':{'unitId':_0x195a6e[_0x5f53e2][_0x29de05(0x1fc)],..._0x195a6e[_0x5f53e2]['redoState']}},_0x1d98bc=this[_0x29de05(0x1bf)][_0x29de05(0x183)](_0x5e573e,_0x41e6e5,!0x1);if(_0x699f6f(_0x1d98bc))throw _0x1d98bc['error'];_0x5e573e=_0x1d98bc['m1Prime'];}return{..._0x141325[_0x29de05(0x2ef)](_0x3b211e),'mutations':[_0x5e573e]};}[_0x240916(0x128)](_0x3e0482){const _0x210226=_0x240916,{unitID:_0x333570}=_0x3e0482,{history:_0x4ab5f3,collaboration:_0x599183}=this['_docStateChangeManagerService']['getStateCache'](_0x333570);if(_0x4ab5f3[_0x210226(0xfb)]===0x0&&_0x599183[_0x210226(0xfb)]===0x0)return;const _0x2b0283=[],_0x4592a3=[];let _0x1c2d92=_0x141325['deepClone'](_0x3e0482['mutations'][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x551ad0=_0x4ab5f3[_0x210226(0xfb)]-0x1;_0x551ad0>=0x0;_0x551ad0--){const _0x30f862={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0]['unitId'],..._0x4ab5f3[_0x551ad0]['undoState']}},_0x178ac4={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0][_0x210226(0x1fc)],..._0x4ab5f3[_0x551ad0][_0x210226(0x141)]}},_0x721352=this[_0x210226(0x1bf)]['transformMutation'](_0x1c2d92,_0x30f862,!0x1),_0x47e73a=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x40761a,_0x178ac4,!0x1);if(_0x699f6f(_0x721352))throw _0x721352[_0x210226(0x20a)];if(_0x699f6f(_0x47e73a))throw _0x47e73a[_0x210226(0x20a)];_0x2b0283[_0x210226(0x100)]({..._0x4ab5f3[_0x551ad0],'undoState':_0x721352['m2Prime']['params'],'redoState':_0x47e73a[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x721352[_0x210226(0x113)],_0x40761a=_0x47e73a['m1Prime'];}_0x1c2d92=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x2d9762=_0x599183['length']-0x1;_0x2d9762>=0x0;_0x2d9762--){const _0x596e7c={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x254)]}},_0x2e60bf={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x141)]}},_0x53455b=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x1c2d92,_0x596e7c,!0x1),_0x4c26b8=this[_0x210226(0x1bf)]['transformMutation'](_0x40761a,_0x2e60bf,!0x1);if(_0x699f6f(_0x53455b))throw _0x53455b[_0x210226(0x20a)];if(_0x699f6f(_0x4c26b8))throw _0x4c26b8[_0x210226(0x20a)];_0x4592a3['unshift']({..._0x599183[_0x2d9762],'undoState':_0x53455b[_0x210226(0x103)][_0x210226(0x1d8)],'redoState':_0x4c26b8[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x53455b[_0x210226(0x113)],_0x40761a=_0x4c26b8[_0x210226(0x113)];}this[_0x210226(0x30a)][_0x210226(0x247)](_0x333570,{'history':_0x2b0283,'collaboration':_0x4592a3});}};ue=In([Le(0x0,_0x451de1(_0x30dac5)),Le(0x1,_0x10d68c),Le(0x2,_0x451de1(_0x3199a5))],ue);var mn=Object[_0x240916(0x1f8)],fn=(_0x257f35,_0x413c7f,_0x48ac66,_0x55e374)=>{const _0x3b8607=_0x240916;for(var _0x47a7b3=_0x55e374>0x1?void 0x0:_0x55e374?mn(_0x413c7f,_0x48ac66):_0x413c7f,_0x20f760=_0x257f35[_0x3b8607(0xfb)]-0x1,_0x546a66;_0x20f760>=0x0;_0x20f760--)(_0x546a66=_0x257f35[_0x20f760])&&(_0x47a7b3=_0x546a66(_0x47a7b3)||_0x47a7b3);return _0x47a7b3;},ht=(_0x12f40e,_0x820533)=>(_0x2f4cb8,_0x1018b0)=>_0x820533(_0x2f4cb8,_0x1018b0,_0x12f40e);let de=class{constructor(_0x3a0aa0,_0xdb1591){const _0x38b822=_0x240916;this[_0x38b822(0x26e)]=_0x3a0aa0,this[_0x38b822(0x1bf)]=_0xdb1591;}[_0x240916(0x156)](_0x47bf24){const _0x5ce377=_0x240916;var _0x2fb8c8;const _0x589126=this[_0x5ce377(0x26e)][_0x5ce377(0x1c7)](_0x5f3a65),_0x6d4b76=(_0x2fb8c8=_0x589126['getDocRanges']())!=null?_0x2fb8c8:[];if(_0x6d4b76[_0x5ce377(0xfb)]===0x0)return;const _0xc6bc96=_0x47bf24[_0x5ce377(0x22c)],_0x41ba8a=[{'id':_0x5ce377(0x1b5),'params':{'unitId':_0xc6bc96,'actions':null,'textRanges':_0x6d4b76}}],_0xcdcdcf=this[_0x5ce377(0x1bf)][_0x5ce377(0x10b)](_0x47bf24,_0x41ba8a);if(!_0x73df74(_0xcdcdcf))throw _0xcdcdcf[_0x5ce377(0x20a)];const _0x2313e5=_0xcdcdcf[_0x5ce377(0x103)][0x0][_0x5ce377(0x1d8)][_0x5ce377(0x16c)];Array[_0x5ce377(0x1f9)](_0x2313e5)&&_0x2313e5[_0x5ce377(0xfb)]&&_0x589126['replaceDocRanges'](_0x2313e5,{'unitId':_0xc6bc96,'subUnitId':_0xc6bc96},!0x1);}};de=fn([ht(0x0,_0x451de1(_0x30dac5)),ht(0x1,_0x10d68c)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x159454,_0x415069,_0x2c3b96,_0x231e67)=>{const _0x3af46b=_0x240916;for(var _0x4051f4=_0x231e67>0x1?void 0x0:_0x231e67?gn(_0x415069,_0x2c3b96):_0x415069,_0x5b5621=_0x159454[_0x3af46b(0xfb)]-0x1,_0x47c248;_0x5b5621>=0x0;_0x5b5621--)(_0x47c248=_0x159454[_0x5b5621])&&(_0x4051f4=_0x47c248(_0x4051f4)||_0x4051f4);return _0x4051f4;},U=(_0xacc485,_0x150f58)=>(_0x3ed17a,_0x2d125d)=>_0x150f58(_0x3ed17a,_0x2d125d,_0xacc485);let Se=class extends _0xf771d3{constructor(_0x4533f5,_0x469d56,_0x250d28,_0x14cd8d,_0x40bda4,_0x297283,_0x906908,_0x4b95f6){const _0x33e55c=_0x240916;super(),_(this,_0x33e55c(0x2a1),new _0x37599d(_0x1cb4cc[_0x33e55c(0x23c)])),(this['_docStateChangeManagerService']=_0x4533f5,this[_0x33e55c(0x114)]=_0x469d56,this[_0x33e55c(0x1a5)]=_0x250d28,this[_0x33e55c(0x2c1)]=_0x14cd8d,this[_0x33e55c(0x28b)]=_0x40bda4,this[_0x33e55c(0x117)]=_0x297283,this[_0x33e55c(0x190)]=_0x906908,this[_0x33e55c(0x239)]=_0x4b95f6,this[_0x33e55c(0x22a)]());}[_0x240916(0x22a)](){const _0x3d46a4=_0x240916;this['disposeWithMe'](this[_0x3d46a4(0x114)][_0x3d46a4(0x151)]['subscribe'](_0xefe530=>{const _0x1e389b=_0x3d46a4,_0x383c73=this['_docStateChangeManagerService']['docStateChange$'][_0x1e389b(0x111)](_0x2a2332=>{const _0xd1d0cf=_0x1e389b;if(_0x2a2332==null)return;const {unitId:_0x3281db,redoState:_0x91822f,commandId:_0x18dd0c}=_0x2a2332;if(_0x3281db!==_0xefe530[_0xd1d0cf(0x22c)])return;const _0x4543cd={'id':_0x18dd0c,'type':_0x445795[_0xd1d0cf(0x2b6)],'params':{'unitId':_0x3281db,'actions':_0x91822f[_0xd1d0cf(0x1db)],'textRanges':null}};_0xefe530[_0xd1d0cf(0x169)](_0x4543cd);});if(_0xefe530['disposeWithMe'](_0x383c73),_0xefe530 instanceof _0x320279){const _0x3d1798={'onTransformIME':_0x54361b=>this['_docTransformIMECacheService']['transformIMECache'](_0x54361b),'onTransformState':_0x509e2f=>this['_docTransformStateCacheService']['transformStateCache'](_0x509e2f),'onTransformSelections':_0x58b394=>this[_0x1e389b(0x28b)][_0x1e389b(0x156)](_0x58b394),'onSyncEditingCollabCursor':_0x1ace80=>this[_0x1e389b(0x117)][_0x1e389b(0x2f3)](_0x1ace80),'onTransformRemoteChangesetByIMECache':_0x5e334b=>this[_0x1e389b(0x1a5)][_0x1e389b(0x17b)](_0x5e334b),'onTransformRemoteChangesetByStateCache':_0x70dc82=>this[_0x1e389b(0x2c1)][_0x1e389b(0x17b)](_0x70dc82)};_0xefe530['addHandlerCallback'](_0x3d1798);}}));}};Se=En([U(0x0,_0x451de1(_0x3199a5)),U(0x1,_0x451de1(_0x4a10bf)),U(0x2,_0x451de1(he)),U(0x3,_0x451de1(ue)),U(0x4,_0x451de1(de)),U(0x5,_0x451de1(ze)),U(0x6,_0x110574),U(0x7,_0x451de1(_0x53f064))],Se);var Z=(_0x1d891c=>(_0x1d891c[_0x1d891c[_0x240916(0x18e)]=0x0]='UNDEFINED',_0x1d891c[_0x1d891c['OK']=0x1]='OK',_0x1d891c[_0x1d891c[_0x240916(0x243)]=0x2]=_0x240916(0x243),_0x1d891c[_0x1d891c[_0x240916(0x15d)]=0x3]=_0x240916(0x15d),_0x1d891c[_0x1d891c['NOT_FOUND']=0x4]=_0x240916(0x242),_0x1d891c[_0x1d891c[_0x240916(0x24e)]=0x5]=_0x240916(0x24e),_0x1d891c[_0x1d891c[_0x240916(0x154)]=0x6]=_0x240916(0x154),_0x1d891c[_0x1d891c[_0x240916(0x232)]=0x7]='INVALID_ARGUMENT',_0x1d891c[_0x1d891c[_0x240916(0x255)]=0x8]=_0x240916(0x255),_0x1d891c[_0x1d891c[_0x240916(0x251)]=0x9]='COMPLETION_FINISHED',_0x1d891c[_0x1d891c['LOGIN_FAILED']=0xa]=_0x240916(0x270),_0x1d891c[_0x1d891c[_0x240916(0xda)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x1d891c[_0x1d891c[_0x240916(0x1b9)]=0xc]=_0x240916(0x1b9),_0x1d891c[_0x1d891c[_0x240916(0x1bb)]=0xd]=_0x240916(0x1bb),_0x1d891c[_0x1d891c[_0x240916(0x11a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1d891c[_0x1d891c[_0x240916(0x2af)]=0xf]=_0x240916(0x2af),_0x1d891c[_0x1d891c[_0x240916(0x22d)]=0x10]=_0x240916(0x22d),_0x1d891c[_0x1d891c[_0x240916(0x21b)]=0x64]=_0x240916(0x21b),_0x1d891c[_0x1d891c['ERROR_AGAIN']=0x65]=_0x240916(0x2ce),_0x1d891c[_0x1d891c[_0x240916(0xd7)]=0xc9]='USER_NOT_FOUND',_0x1d891c[_0x1d891c[_0x240916(0x29b)]=0xca]=_0x240916(0x29b),_0x1d891c[_0x1d891c[_0x240916(0x13b)]=0x1389]=_0x240916(0x13b),_0x1d891c[_0x1d891c[_0x240916(0x2f5)]=0x1771]=_0x240916(0x2f5),_0x1d891c[_0x1d891c[_0x240916(0xe5)]=0x1772]=_0x240916(0xe5),_0x1d891c[_0x1d891c[_0x240916(0x2a9)]=0x1773]=_0x240916(0x2a9),_0x1d891c[_0x1d891c[_0x240916(0x180)]=0x1b59]=_0x240916(0x180),_0x1d891c[_0x1d891c[_0x240916(0x206)]=0x1b5a]=_0x240916(0x206),_0x1d891c[_0x1d891c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x240916(0x1d9),_0x1d891c[_0x1d891c[_0x240916(0x20c)]=0x1b5c]=_0x240916(0x20c),_0x1d891c[_0x1d891c[_0x240916(0x15c)]=0x1b5d]=_0x240916(0x15c),_0x1d891c[_0x1d891c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x240916(0x285),_0x1d891c[_0x1d891c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x240916(0xdf),_0x1d891c[_0x1d891c[_0x240916(0x2e5)]=0x232a]=_0x240916(0x2e5),_0x1d891c[_0x1d891c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x240916(0x288),_0x1d891c[_0x1d891c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x240916(0x225),_0x1d891c[_0x1d891c[_0x240916(0x30f)]=0x232d]=_0x240916(0x30f),_0x1d891c[_0x1d891c[_0x240916(0x1ea)]=0x2711]=_0x240916(0x1ea),_0x1d891c[_0x1d891c[_0x240916(0x203)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1d891c[_0x1d891c[_0x240916(0x11f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1d891c[_0x1d891c[_0x240916(0x2e2)]=0x2714]=_0x240916(0x2e2),_0x1d891c[_0x1d891c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x240916(0x209),_0x1d891c[_0x1d891c['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1d891c[_0x1d891c[_0x240916(0x29a)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1d891c[_0x1d891c[_0x240916(0xe6)]=0x271d]=_0x240916(0xe6),_0x1d891c[_0x1d891c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x240916(0xd8),_0x1d891c[_0x1d891c[_0x240916(0x14b)]=0x271f]=_0x240916(0x14b),_0x1d891c[_0x1d891c[_0x240916(0x1d3)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x1d891c[_0x1d891c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x240916(0x2bc),_0x1d891c[_0x1d891c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x240916(0x264),_0x1d891c[_0x1d891c[_0x240916(0x230)]=0x2ee2]=_0x240916(0x230),_0x1d891c[_0x1d891c[_0x240916(0x235)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1d891c[_0x1d891c[_0x240916(0x237)]=0x2ee4]=_0x240916(0x237),_0x1d891c[_0x1d891c[_0x240916(0x125)]=0x2ee5]=_0x240916(0x125),_0x1d891c[_0x1d891c[_0x240916(0x27d)]=0x32c9]=_0x240916(0x27d),_0x1d891c[_0x1d891c[_0x240916(0x170)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1d891c[_0x1d891c[_0x240916(0x30b)]=0x32cb]=_0x240916(0x30b),_0x1d891c[_0x1d891c[_0x240916(0xf2)]=0x36b1]=_0x240916(0xf2),_0x1d891c[_0x1d891c[_0x240916(0x14d)]=0x36b2]=_0x240916(0x14d),_0x1d891c[_0x1d891c[_0x240916(0x144)]=0x36b3]=_0x240916(0x144),_0x1d891c[_0x1d891c[_0x240916(0x278)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x1d891c[_0x1d891c[_0x240916(0x2a8)]=0x36b5]=_0x240916(0x2a8),_0x1d891c[_0x1d891c[_0x240916(0x207)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1d891c[_0x1d891c['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x240916(0x2ea),_0x1d891c[_0x1d891c['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x1d891c[_0x1d891c[_0x240916(0x25e)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x1d891c[_0x1d891c[_0x240916(0xe1)]=0x3716]=_0x240916(0xe1),_0x1d891c[_0x1d891c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x240916(0x269),_0x1d891c[_0x1d891c[_0x240916(0x2fe)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x1d891c[_0x1d891c[_0x240916(0x149)]=0x3a99]=_0x240916(0x149),_0x1d891c[_0x1d891c[_0x240916(0x192)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x1d891c[_0x1d891c[_0x240916(0x2e9)]=0x3a9b]=_0x240916(0x2e9),_0x1d891c[_0x1d891c[_0x240916(0x240)]=0x3a9c]=_0x240916(0x240),_0x1d891c[_0x1d891c['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x240916(0x301),_0x1d891c[_0x1d891c[_0x240916(0x17e)]=0x3a9e]=_0x240916(0x17e),_0x1d891c[_0x1d891c[_0x240916(0x1e6)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1d891c[_0x1d891c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x240916(0x1fd),_0x1d891c[_0x1d891c[_0x240916(0x25c)]=-0x1]=_0x240916(0x25c),_0x1d891c))(Z||{});function vn(_0x27be7c){const _0x59e115=_0x240916;var _0xe5c215,_0x2c58d2;const _0x5cbf99=(_0xe5c215=_0x27be7c['stageInfo'])==null?void 0x0:_0xe5c215[_0x59e115(0x273)],_0x3e885f=((_0x2c58d2=_0x27be7c[_0x59e115(0x304)])==null?void 0x0:_0x2c58d2[_0x59e115(0x12e)])||0x0;return _0x5cbf99===_0x39b8f6[_0x59e115(0x2fd)]&&_0x3e885f>0x0;}function pn(_0x1f3723){const _0x511ea0=_0x240916;return _0x1f3723[_0x511ea0(0x202)]===_0xb5c3c9['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4f1396,_0x5f4675,_0x5b892a,_0x43ca21)=>{const _0x1d076b=_0x240916;for(var _0x571ac4=_0x43ca21>0x1?void 0x0:_0x43ca21?On(_0x5f4675,_0x5b892a):_0x5f4675,_0x9a4528=_0x4f1396[_0x1d076b(0xfb)]-0x1,_0x4f4cd6;_0x9a4528>=0x0;_0x9a4528--)(_0x4f4cd6=_0x4f1396[_0x9a4528])&&(_0x571ac4=_0x4f4cd6(_0x571ac4)||_0x571ac4);return _0x571ac4;},P=(_0x4a1d68,_0x2c060f)=>(_0x35ea79,_0x2af949)=>_0x2c060f(_0x35ea79,_0x2af949,_0x4a1d68);const Cn=_0x240916(0x181),Rn=_0x240916(0x199),Dn=_0x240916(0xef);let Ie=class extends _0xf771d3{constructor(_0x52c29b,_0x5830b3,_0x518cef,_0x5c75c2,_0x196f90,_0x1e8213,_0x38c548){const _0x31a21f=_0x240916;super(),_(this,_0x31a21f(0x1ec),null),_(this,_0x31a21f(0x2f7),0x0),_(this,'_currentUsage',0x0),_(this,_0x31a21f(0x1cb),[]),_(this,_0x31a21f(0x145),0x0),(this[_0x31a21f(0x190)]=_0x52c29b,this['_commandService']=_0x5830b3,this[_0x31a21f(0x263)]=_0x518cef,this[_0x31a21f(0x19d)]=_0x5c75c2,this[_0x31a21f(0x1d7)]=_0x196f90,this[_0x31a21f(0x26f)]=_0x1e8213,this[_0x31a21f(0x239)]=_0x38c548,this[_0x31a21f(0x11d)]());}[_0x240916(0x11d)](){const _0x34cd14=_0x240916;this[_0x34cd14(0xe0)](this[_0x34cd14(0x208)][_0x34cd14(0xd5)]((_0x34c5cf,_0x283704)=>{const _0x1a3747=_0x34cd14;var _0x2d303a;if(_0x34c5cf['id']!==_0x1971b5['id'])return;const _0x293bd7=_0x34c5cf[_0x1a3747(0x1d8)];if(!this['_hasFormulaInDirtyRanges']((_0x2d303a=_0x293bd7[_0x1a3747(0x10d)])!=null?_0x2d303a:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x1a3747(0x29f)](_0x34c5cf,_0x283704),this[_0x1a3747(0x2e0)](),new _0x100082();})),this[_0x34cd14(0xe0)](this['_commandService'][_0x34cd14(0x171)]((_0x25668d,_0x3102a4)=>{const _0x11c68f=_0x34cd14;if(_0x25668d['id']!==_0x446ee4['id'])return;const _0x2f0dee=_0x25668d[_0x11c68f(0x1d8)];if(vn(_0x2f0dee)){const _0x777358=_0x2664d4();this[_0x11c68f(0x1cb)][_0x11c68f(0x1e0)](_0x777358),this['_startCalculationLimit'](_0x777358);}else{if(pn(_0x2f0dee)&&this[_0x11c68f(0x1cb)][_0x11c68f(0xfb)]>0x0){const _0x21fabb=this['_taskIds'][_0x11c68f(0x13e)]();this['_releaseCalculationLimit'](_0x21fabb);}}}));}[_0x240916(0x185)](){const _0x37d1a7=_0x240916;super[_0x37d1a7(0x185)](),this[_0x37d1a7(0xe7)](),this[_0x37d1a7(0x1cb)]=[],this[_0x37d1a7(0x26d)]=0x0,this[_0x37d1a7(0x2f7)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x240916(0x29f)](_0x4d3fd5,_0x5e2b30){const _0x5525bb=_0x240916;for(let _0x5785be=0x0;_0x5785be<0x1e;_0x5785be++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5525bb(0x16a)]()){this[_0x5525bb(0x1c1)](_0x4d3fd5,_0x5e2b30),this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x23a)),'type':_0x24cf21[_0x5525bb(0x150)]});return;}await new Promise(_0x2b004b=>{const _0x171f13=_0x5525bb;this[_0x171f13(0x1ec)]=window[_0x171f13(0xfa)](_0x2b004b,0x3e8);});}catch(_0x127fd8){this['_logService']['error'](_0x127fd8);}this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x176)),'type':_0x24cf21[_0x5525bb(0xd9)]});}[_0x240916(0x1c1)](_0x1e9bc4,_0x5be3ad){const _0x25a098=_0x240916;try{this[_0x25a098(0x208)][_0x25a098(0x282)](_0x1e9bc4['id'],_0x1e9bc4[_0x25a098(0x1d8)],_0x5be3ad);}catch(_0x4631d3){this[_0x25a098(0x26f)][_0x25a098(0x20a)](_0x4631d3);}}[_0x240916(0x307)](_0x38023b,_0x1e8983){const _0x140e8f=_0x240916;_0x1e8983<this[_0x140e8f(0x145)]||(this[_0x140e8f(0x145)]=_0x1e8983,this[_0x140e8f(0x2f7)]=Number[_0x140e8f(0x20e)](_0x38023b[_0x140e8f(0x236)]),this['_currentUsage']=Number['parseInt'](_0x38023b[_0x140e8f(0x115)]));}async[_0x240916(0x1b2)](_0x37965c){const _0x5e9974=_0x240916;var _0x4a3bf1,_0xfee2c6;const _0x57467c=Date[_0x5e9974(0x14e)]();try{const _0x385450=((_0x4a3bf1=this[_0x5e9974(0x263)]['getConfig'](_0x2941e8))==null?void 0x0:_0x4a3bf1['startFormulaLimitUrl'])||Rn,_0x1ea0bb=(await this[_0x5e9974(0x19d)][_0x5e9974(0x1d2)](_0x385450,{'body':JSON['stringify']({'taskId':_0x37965c})}))[_0x5e9974(0x1e4)];if(((_0xfee2c6=_0x1ea0bb[_0x5e9974(0x20a)])==null?void 0x0:_0xfee2c6[_0x5e9974(0x2ad)])!==Z['OK'])return;this[_0x5e9974(0x307)](_0x1ea0bb[_0x5e9974(0x17c)],_0x57467c);}catch(_0x20d104){this[_0x5e9974(0x26f)][_0x5e9974(0x20a)](_0x20d104);}}async['_getFormulaLimitStatus'](_0x1b64a6){const _0x15cc86=_0x240916;var _0x24eb51,_0x3d5b2d;const _0x111b65=Date[_0x15cc86(0x14e)]();try{const _0x3e8b81=((_0x24eb51=this[_0x15cc86(0x263)][_0x15cc86(0x271)](_0x2941e8))==null?void 0x0:_0x24eb51['getformulaLimitStatusUrl'])||Cn,_0x2c8418=_0x1b64a6?_0x3e8b81+_0x15cc86(0x2a5)+encodeURIComponent(_0x1b64a6):_0x3e8b81,_0x433cd2=(await this[_0x15cc86(0x19d)][_0x15cc86(0x1c7)](_0x2c8418))[_0x15cc86(0x1e4)];if(((_0x3d5b2d=_0x433cd2[_0x15cc86(0x20a)])==null?void 0x0:_0x3d5b2d[_0x15cc86(0x2ad)])!==Z['OK'])return;this[_0x15cc86(0x307)](_0x433cd2[_0x15cc86(0x17c)],_0x111b65);}catch(_0x58ea3d){this[_0x15cc86(0x26f)][_0x15cc86(0x20a)](_0x58ea3d);}}async[_0x240916(0x1ad)](_0x5d4a04){const _0x35049f=_0x240916;var _0x33a9a8,_0x12d97a;const _0x61482f=Date[_0x35049f(0x14e)]();try{const _0x41cc6d=((_0x33a9a8=this[_0x35049f(0x263)][_0x35049f(0x271)](_0x2941e8))==null?void 0x0:_0x33a9a8[_0x35049f(0x2c0)])||Dn,_0x1ccc45=(await this[_0x35049f(0x19d)][_0x35049f(0x1d2)](_0x41cc6d,{'body':JSON[_0x35049f(0x286)]({'taskId':_0x5d4a04})}))['body'];if(((_0x12d97a=_0x1ccc45[_0x35049f(0x20a)])==null?void 0x0:_0x12d97a['code'])!==Z['OK'])return;this[_0x35049f(0x307)](_0x1ccc45[_0x35049f(0x17c)],_0x61482f);}catch(_0x1eae34){this['_logService'][_0x35049f(0x20a)](_0x1eae34);}}[_0x240916(0x16a)](){const _0x1efa3e=_0x240916;return this[_0x1efa3e(0x2f7)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1efa3e(0x26d)]>0x0;}[_0x240916(0xe7)](){const _0x20b54c=_0x240916;this['_pollingInterval']&&(clearTimeout(this[_0x20b54c(0x1ec)]),this[_0x20b54c(0x1ec)]=null);}[_0x240916(0x2e0)](){const _0x5edadb=_0x240916;this['_messageService'][_0x5edadb(0x267)]({'content':this[_0x5edadb(0x239)]['t']('formula.calculation.waiting'),'type':_0x24cf21[_0x5edadb(0xf4)]});}[_0x240916(0x226)](_0x30b86f){const _0x3a097e=_0x240916;for(const _0x28efaf of _0x30b86f){const {unitId:_0x4b0a4f,sheetId:_0x1de772,range:_0x4bc7cf}=_0x28efaf,_0x13760f=this['_univerInstanceService'][_0x3a097e(0x2b7)](_0x4b0a4f);if(!_0x13760f)continue;const _0x417ceb=_0x13760f[_0x3a097e(0x12b)](_0x1de772);if(!_0x417ceb)continue;const _0x28dff1=_0x417ceb[_0x3a097e(0x155)]();for(let _0xdbc18d=_0x4bc7cf['startRow'];_0xdbc18d<=_0x4bc7cf[_0x3a097e(0x2c3)];_0xdbc18d++)for(let _0x22ad76=_0x4bc7cf[_0x3a097e(0x302)];_0x22ad76<=_0x4bc7cf[_0x3a097e(0x316)];_0x22ad76++){const _0x109408=_0x28dff1['getValue'](_0xdbc18d,_0x22ad76);if(_0x109408&&(_0x53c2f3(_0x109408['f'])||_0x390515(_0x109408['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x451de1(_0x110574)),P(0x1,_0x5e5675),P(0x2,_0x1510c1),P(0x3,_0x451de1(_0x20e19d)),P(0x4,_0x81870d),P(0x5,_0x48e521),P(0x6,_0x451de1(_0x53f064))],Ie);var Nn=Object[_0x240916(0x1f8)],bn=(_0x16caaa,_0x27fecd,_0x2f6a2b,_0xa07a3f)=>{const _0x270f42=_0x240916;for(var _0x5d19f0=_0xa07a3f>0x1?void 0x0:_0xa07a3f?Nn(_0x27fecd,_0x2f6a2b):_0x27fecd,_0x2feb93=_0x16caaa[_0x270f42(0xfb)]-0x1,_0x593ff2;_0x2feb93>=0x0;_0x2feb93--)(_0x593ff2=_0x16caaa[_0x2feb93])&&(_0x5d19f0=_0x593ff2(_0x5d19f0)||_0x5d19f0);return _0x5d19f0;},Ue=(_0x16eebe,_0x43e2b7)=>(_0x57a900,_0x3a42d9)=>_0x43e2b7(_0x57a900,_0x3a42d9,_0x16eebe);let He=class extends _0xf771d3{constructor(_0xf17147,_0x15b5b8,_0x2cd838){const _0x15e221=_0x240916;super(),_(this,_0x15e221(0x21a),new Map()),_(this,_0x15e221(0x2f1),new Map()),_(this,_0x15e221(0xeb),!0x1),(this[_0x15e221(0x263)]=_0xf17147,this[_0x15e221(0x2bf)]=_0x15b5b8,this[_0x15e221(0x1a2)]=_0x2cd838);}['disableLocalCache'](){const _0x1795c9=_0x240916;this[_0x1795c9(0xeb)]=!0x0;}[_0x240916(0x12d)](){const _0x5b5564=_0x240916;this[_0x5b5564(0xeb)]=!0x1;}get[_0x240916(0x25b)](){const _0x34be35=_0x240916;return this[_0x34be35(0x2f1)];}[_0x240916(0x185)](){const _0x5a4247=_0x240916;this[_0x5a4247(0x162)]()[_0x5a4247(0x164)](()=>super[_0x5a4247(0x185)]());}async[_0x240916(0x11c)](_0x56c2a8){const _0xc62a80=_0x240916;return this[_0xc62a80(0xeb)]?null:this[_0xc62a80(0x2bf)]['getItem'](_0x373961(_0x56c2a8));}async['saveOfflineData'](_0xbd0006,_0x1e3614){const _0xa6cb1a=_0x240916;return!!this[_0xa6cb1a(0x2bf)]['setItem'](_0xbd0006,_0x1e3614);}[_0x240916(0x133)](_0x4fcd71,_0x24a0cd,_0x2fcdf9,_0x4e8872){const _0x114609=_0x240916,_0x579992=this[_0x114609(0x1a2)][_0x114609(0x1d1)](_0x4fcd71);this['_cachedData']['set'](_0x4fcd71,{'unitID':_0x4fcd71,'type':_0x24a0cd,'awaitingChangeset':_0x2fcdf9,'mutations':_0x4e8872,'rev':_0x579992}),this[_0x114609(0x2f1)][_0x114609(0x298)](_0x4fcd71)||this[_0x114609(0x2cb)](_0x4fcd71);}[_0x240916(0x2cb)](_0x50ec32){const _0x17f6bc=_0x240916,_0x5a566d=this[_0x17f6bc(0x1bd)]();_0x5a566d===0x0?this[_0x17f6bc(0x2a3)](_0x50ec32):this['_saveTaskMap'][_0x17f6bc(0x26a)](_0x50ec32,setTimeout(()=>this[_0x17f6bc(0x2a3)](_0x50ec32),_0x5a566d));}[_0x240916(0x1bd)](){const _0x394b5f=_0x240916;var _0x454119;return(_0x454119=this['_configService'][_0x394b5f(0x271)](_0x67fadd))!=null?_0x454119:_0x197b86;}[_0x240916(0x2a3)](_0xdd3727){const _0x1805ab=_0x240916,_0x1f8f00=this[_0x1805ab(0x2f1)][_0x1805ab(0x1c7)](_0xdd3727);return _0x1f8f00!==void 0x0&&window[_0x1805ab(0xdb)](_0x1f8f00),this[_0x1805ab(0x2bf)][_0x1805ab(0x12f)](_0x373961(_0xdd3727),this[_0x1805ab(0x21a)]['get'](_0xdd3727))[_0x1805ab(0x164)](()=>this[_0x1805ab(0x2f1)]['delete'](_0xdd3727));}async[_0x240916(0x162)](){const _0x5e8620=_0x240916,_0x360b50=[];this[_0x5e8620(0x2f1)][_0x5e8620(0x2e8)]((_0x44e107,_0x3a6ed4)=>{const _0x426479=_0x5e8620;window[_0x426479(0xdb)](_0x44e107),_0x360b50[_0x426479(0x1e0)](this[_0x426479(0x2a3)](_0x3a6ed4)[_0x426479(0x164)](()=>{const _0x2c421d=_0x426479;this[_0x2c421d(0x2f1)]['delete'](_0x3a6ed4);}));}),await Promise[_0x5e8620(0x22b)](_0x360b50);}};He=bn([Ue(0x0,_0x1510c1),Ue(0x1,_0x3a4d59),Ue(0x2,_0x451de1(_0x5092a2))],He);class Ln extends _0x3122c4{constructor(){const _0x47ae80=_0x240916;super(),_(this,'urlChange$'),this[_0x47ae80(0xd0)]=_0x572af5(window,_0x47ae80(0x2f6))['pipe'](_0xb0eea8(this[_0x47ae80(0x221)]),_0x5f297a(0x1),_0x15fcb9(void 0x0));}[_0x240916(0x277)](_0x15ed13,_0x2cb787,_0x4a13f2=!0x1){const _0x233b2f=_0x240916,_0xed3890=new URL(window[_0x233b2f(0x175)]['href']);_0xed3890[_0x233b2f(0x211)][_0x233b2f(0x26a)](_0x15ed13,_0x2cb787),_0x4a13f2?window[_0x233b2f(0x18a)][_0x233b2f(0xf3)]('','',_0xed3890[_0x233b2f(0x257)]()):window['history']['pushState']('','',_0xed3890['toString']());}[_0x240916(0x2d0)](_0x5500cd,_0x325cf2=!0x1){const _0xaa7c31=_0x240916,_0x528d70=new URL(window[_0xaa7c31(0x175)][_0xaa7c31(0x10f)]);_0x528d70[_0xaa7c31(0x211)][_0xaa7c31(0x1dc)](_0x5500cd),_0x325cf2?window[_0xaa7c31(0x18a)][_0xaa7c31(0xf3)]('','',_0x528d70[_0xaa7c31(0x257)]()):window[_0xaa7c31(0x18a)][_0xaa7c31(0x296)]('','',_0x528d70['toString']());}[_0x240916(0x2ec)](_0x38ada4){const _0x2805ab=_0x240916;var _0x12d76a;return(_0x12d76a=new URL(window[_0x2805ab(0x175)][_0x2805ab(0x10f)])[_0x2805ab(0x211)]['get'](_0x38ada4))!=null?_0x12d76a:void 0x0;}}var Un=Object[_0x240916(0x10c)],Mn=Object[_0x240916(0x1f8)],An=(_0x2cee78,_0x2a53b7,_0x2b0ab8)=>_0x2a53b7 in _0x2cee78?Un(_0x2cee78,_0x2a53b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b0ab8}):_0x2cee78[_0x2a53b7]=_0x2b0ab8,Pn=(_0x4bf775,_0x17fc95,_0x5e975f,_0x27601b)=>{const _0x30eb13=_0x240916;for(var _0x3f9399=_0x27601b>0x1?void 0x0:_0x27601b?Mn(_0x17fc95,_0x5e975f):_0x17fc95,_0x96b569=_0x4bf775[_0x30eb13(0xfb)]-0x1,_0x232d18;_0x96b569>=0x0;_0x96b569--)(_0x232d18=_0x4bf775[_0x96b569])&&(_0x3f9399=_0x232d18(_0x3f9399)||_0x3f9399);return _0x3f9399;},Me=(_0x31604e,_0x5ee5a7)=>(_0x34cb48,_0x43a1e4)=>_0x5ee5a7(_0x34cb48,_0x43a1e4,_0x31604e),wn=(_0x227e0f,_0x2b437f,_0x3d4d20)=>An(_0x227e0f,_0x2b437f+'',_0x3d4d20);const yn=_0x240916(0x266);let Ye=class extends _0x18025e{constructor(_0xffe9cd=_t,_0x51f6fc,_0x1f39af,_0x3f7991){const _0x11d9df=_0x240916;super(),this[_0x11d9df(0x2de)]=_0xffe9cd,this[_0x11d9df(0x212)]=_0x51f6fc,this[_0x11d9df(0x26e)]=_0x1f39af,this['_configService']=_0x3f7991;const {..._0x5331df}=_0x3aa68c({},_t,this['_config']);this['_configService'][_0x11d9df(0x1c0)](hn,_0x5331df);}[_0x240916(0x107)](){const _0x2c71fc=_0x240916;this[_0x2c71fc(0x233)](),this[_0x2c71fc(0x1da)]();}[_0x240916(0x182)](){const _0x123ae8=_0x240916;this[_0x123ae8(0x1e5)]();}[_0x240916(0x233)](){const _0x28c10b=_0x240916;var _0x3deb17;const _0x249448=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x237440,{'useClass':_0x276479}],[_0x45d2d0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x28c10b(0x2de)][_0x28c10b(0x231)]&&_0x249448['push']([le]),_0x4856aa(this[_0x28c10b(0x26e)],_0xc1ed92(_0x249448,(_0x3deb17=this[_0x28c10b(0x2de)])==null?void 0x0:_0x3deb17[_0x28c10b(0xce)]));}[_0x240916(0x1e5)](){const _0x337cd2=_0x240916;this[_0x337cd2(0xe0)](this[_0x337cd2(0x212)][_0x337cd2(0x184)](_0x2e1b84['UNIVER_DOC'],[Fe])),this['disposeWithMe'](this[_0x337cd2(0x212)]['registerRenderModule'](_0x2e1b84['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x232c67=_0x240916;_0xa68686(this[_0x232c67(0x26e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x232c67(0x231)]&&_0xa68686(this[_0x232c67(0x26e)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x394ca8(_0x3f596b),Me(0x1,_0x4d689b),Me(0x2,_0x451de1(_0x30dac5)),Me(0x3,_0x1510c1)],Ye);var $n=Object[_0x240916(0x1f8)],xn=(_0x112283,_0x3381be,_0x19b01f,_0x20bc41)=>{const _0x185cbe=_0x240916;for(var _0x2e91fb=_0x20bc41>0x1?void 0x0:_0x20bc41?$n(_0x3381be,_0x19b01f):_0x3381be,_0x493aa5=_0x112283[_0x185cbe(0xfb)]-0x1,_0x923c34;_0x493aa5>=0x0;_0x493aa5--)(_0x923c34=_0x112283[_0x493aa5])&&(_0x2e91fb=_0x923c34(_0x2e91fb)||_0x2e91fb);return _0x2e91fb;},J=(_0x4cdfb6,_0x24b803)=>(_0x139953,_0x2e1004)=>_0x24b803(_0x139953,_0x2e1004,_0x4cdfb6);let ut=class extends _0x5d1c82{constructor(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695){super(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695);}async[_0x240916(0x1a9)](_0x3b1abe){const _0x4ae41f=_0x240916,_0xad87d0=await this[_0x4ae41f(0x305)](),_0x44190b=this[_0x4ae41f(0x275)](_0x3b1abe,_0xad87d0);return this[_0x4ae41f(0x2bd)](_0x44190b);}[_0x240916(0x275)](_0x282c27,_0x1b8bb6){const _0x1cf8d6=_0x240916,_0x3438f6=typeof window>'u'?new URL(_0x282c27):new URL(_0x282c27,window[_0x1cf8d6(0x175)][_0x1cf8d6(0x1be)]);_0x3438f6[_0x1cf8d6(0x211)]['set'](_0x1cf8d6(0x30c),_0x1b8bb6);const _0x4ae457=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1cf8d6(0x248)]);return _0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))&&_0x3438f6[_0x1cf8d6(0x211)][_0x1cf8d6(0x26a)]('runId',_0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))),_0x3438f6['toString']();}async[_0x240916(0x305)](){const _0x562d57=_0x240916;var _0x4f3bee,_0xfe27ae,_0x3c3093;const _0x3fb753=this[_0x562d57(0x263)]['getConfig'](_0x2941e8),_0x1c74d0=(_0x4f3bee=_0x3fb753==null?void 0x0:_0x3fb753[_0x562d57(0x2da)])!=null?_0x4f3bee:_0x67f602;return(_0x3c3093=(_0xfe27ae=(await this[_0x562d57(0x19d)]['get'](_0x1c74d0,{'headers':{'Content-Type':_0x562d57(0x293)}}))[_0x562d57(0x1e4)])==null?void 0x0:_0xfe27ae[_0x562d57(0x283)])!=null?_0x3c3093:'';}};ut=xn([J(0x0,_0x451de1(_0x30dac5)),J(0x1,_0x451de1(_0x20e19d)),J(0x2,_0x1510c1),J(0x3,_0x48e521),J(0x4,_0x295e6f)],ut);var Bn=Object[_0x240916(0x1f8)],Fn=(_0x2f3657,_0x596011,_0x5b4065,_0x2f9016)=>{const _0x55de58=_0x240916;for(var _0x5d4022=_0x2f9016>0x1?void 0x0:_0x2f9016?Bn(_0x596011,_0x5b4065):_0x596011,_0x41d0f6=_0x2f3657[_0x55de58(0xfb)]-0x1,_0x537bce;_0x41d0f6>=0x0;_0x41d0f6--)(_0x537bce=_0x2f3657[_0x41d0f6])&&(_0x5d4022=_0x537bce(_0x5d4022)||_0x5d4022);return _0x5d4022;},Ae=(_0x23685a,_0x57233c)=>(_0x5df0aa,_0x560a3c)=>_0x57233c(_0x5df0aa,_0x560a3c,_0x23685a);let dt=class extends _0xf771d3{constructor(_0x51ccea,_0x4a758b,_0x33982a){const _0x6efc03=_0x240916;super(),this[_0x6efc03(0x300)]=_0x51ccea,this[_0x6efc03(0x19d)]=_0x4a758b,this[_0x6efc03(0x263)]=_0x33982a;}async[_0x240916(0x217)](_0x26f5cf,_0x3e742f,_0x3b9d1f,..._0x13932e){const _0x142301=_0x240916;var _0x14873a,_0x26c791,_0x442d30,_0x54e31e;const _0x344cc0=this[_0x142301(0x300)][_0x142301(0xf8)]();if(!_0x344cc0)throw new Error(_0x142301(0x28d));const _0x2e099c=((_0x14873a=this['_configService']['getConfig'](_0x2b191a))!=null?_0x14873a:_0x50718d)+'/'+_0x26f5cf+'/run/'+_0x3e742f,_0x286e05=new URL(window[_0x142301(0x175)]['href']),_0x48a2f9={'scriptId':_0x26f5cf,'runId':(_0x26c791=_0x286e05[_0x142301(0x211)][_0x142301(0x1c7)](_0x142301(0x2d6)))!=null?_0x26c791:'','function':_0x3e742f,'unitId':_0x344cc0[_0x142301(0x2a6)](),'argsOfFunction':JSON[_0x142301(0x286)](_0x13932e),'invokeId':(_0x442d30=_0x3b9d1f['invokeId'])!=null?_0x442d30:'','executionId':(_0x54e31e=_0x3b9d1f[_0x142301(0x2fc)])!=null?_0x54e31e:''};try{const _0x1223d1=await this[_0x142301(0x19d)][_0x142301(0x1d2)](_0x2e099c,{'body':_0x48a2f9});return _0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)]&&_0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)][_0x142301(0x2ad)]!==Z['OK']?_0x142301(0x19b):_0x1223d1['body'][_0x142301(0x127)];}catch{return _0x142301(0x19b);}}};dt=Fn([Ae(0x0,_0x81870d),Ae(0x1,_0x451de1(_0x20e19d)),Ae(0x2,_0x1510c1)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xf771d3{constructor(){const _0x439150=_0x240916;super(),_(this,_0x439150(0x1f2),_0x2664d4()),_(this,'_selfUnitIDs',new Set()),_(this,_0x439150(0x165),new Map()),_(this,_0x439150(0x29c),null),_(this,_0x439150(0x2b8),new Map()),_(this,_0x439150(0x167),new Map()),this[_0x439150(0x163)]();}[_0x240916(0x185)](){const _0xf728fd=_0x240916;super[_0xf728fd(0x185)](),this['_clearOtherTimers'][_0xf728fd(0x2e8)]((_0x4843dc,_0x11fdee)=>this[_0xf728fd(0x28f)](_0x11fdee)),this['_heartbeatTimer']&&window['clearInterval'](this[_0xf728fd(0x29c)]);}[_0x240916(0x1e2)](_0x1ffb8c){const _0x29b232=_0x240916;return this['_ensureSubject'](_0x1ffb8c)[_0x29b232(0x1e1)](_0x57e7da());}['editingUnit'](_0x14fdb1){const _0x1c2439=_0x240916;this[_0x1c2439(0x28e)]['size']===0x0&&this[_0x1c2439(0x29e)](),this[_0x1c2439(0x28e)][_0x1c2439(0x19a)](_0x14fdb1),this[_0x1c2439(0x24f)]({'type':0x0,'memberID':this[_0x1c2439(0x1f2)],'unitIDs':[_0x14fdb1],'isForwarded':!0x1});}[_0x240916(0x20d)](_0x84ea9f){const _0x410cda=_0x240916;this[_0x410cda(0x28e)][_0x410cda(0x1dc)](_0x84ea9f),this[_0x410cda(0x28e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x410cda(0x120)](this['_heartbeatTimer']);}[_0x240916(0x163)](){const _0x22378f=_0x240916;this[_0x22378f(0xe0)](_0x13afa3(_0x572af5(window,_0x22378f(0xde))[_0x22378f(0x111)](_0x2b7893=>{const _0x1283ab=_0x22378f;if(_0x2b7893[_0x1283ab(0x2db)]!==It||!_0x2b7893[_0x1283ab(0x210)])return;const _0x358698=JSON[_0x1283ab(0x1f1)](_0x2b7893[_0x1283ab(0x210)]);this[_0x1283ab(0x2d3)](_0x358698);}))),window[_0x22378f(0x216)]('unload',()=>this[_0x22378f(0x24f)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x22378f(0x14a)](this[_0x22378f(0x28e)])}));}['_handleEvent'](_0x1e68b5){const _0x116719=_0x240916;switch(_0x1e68b5[_0x116719(0x2f0)]){case 0x0:this[_0x116719(0x136)](_0x1e68b5);break;case 0x1:this[_0x116719(0x1fe)](_0x1e68b5);break;case 0x2:this[_0x116719(0x311)](_0x1e68b5);break;}}['_handleJoinEvent'](_0x25b7f7){const _0x301b67=_0x240916,{unitIDs:_0x2f0a5c,memberID:_0x7afb04,isForwarded:_0x2314bb}=_0x25b7f7;_0x2f0a5c[_0x301b67(0x2e8)](_0x258139=>{const _0x20a8d0=_0x301b67;if(!_0x2314bb&&this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)&&this[_0x20a8d0(0x27b)](_0x258139)[_0x20a8d0(0x1cc)](_0x58c8e7[_0x20a8d0(0x187)]),!this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)||!this[_0x20a8d0(0x165)][_0x20a8d0(0x1c7)](_0x258139)[_0x20a8d0(0x298)](_0x7afb04)){const _0x29690f=this['_unitOnClients'][_0x20a8d0(0x1c7)](_0x258139)||new Set();_0x29690f[_0x20a8d0(0x19a)](_0x7afb04),this[_0x20a8d0(0x165)][_0x20a8d0(0x26a)](_0x258139,_0x29690f),this[_0x20a8d0(0x24a)](_0x7afb04);}}),_0x2314bb||this[_0x301b67(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x301b67(0x28e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7ad1b){const _0x5bff4e=_0x240916;this['_removeClearOtherTimer'](_0xd7ad1b);const _0x53689c=window[_0x5bff4e(0xfa)](()=>{const _0x13319c=_0x5bff4e;this[_0x13319c(0x165)][_0x13319c(0x2e8)](_0x1cbbb8=>{const _0x554a39=_0x13319c;_0x1cbbb8[_0x554a39(0x1dc)](_0xd7ad1b);});},St*0x2);this[_0x5bff4e(0x2b8)][_0x5bff4e(0x26a)](_0xd7ad1b,_0x53689c);}[_0x240916(0x28f)](_0x182db1){const _0x1a6d25=_0x240916;if(this[_0x1a6d25(0x2b8)][_0x1a6d25(0x298)](_0x182db1)){const _0x4e9097=this[_0x1a6d25(0x2b8)][_0x1a6d25(0x1c7)](_0x182db1);_0x4e9097&&window['clearTimeout'](_0x4e9097),this[_0x1a6d25(0x2b8)][_0x1a6d25(0x26a)](_0x182db1,null);}}[_0x240916(0x1fe)](_0x513160){const _0x429984=_0x240916,{memberID:_0x55b070,unitIDs:_0x59290a}=_0x513160;_0x59290a[_0x429984(0x2e8)](_0xfe526a=>{const _0x36a53b=_0x429984;var _0x423bd9;const _0x11bb43=this[_0x36a53b(0x165)][_0x36a53b(0x1c7)](_0xfe526a);_0x11bb43&&(_0x11bb43[_0x36a53b(0x1dc)](_0x55b070),(_0x423bd9=this[_0x36a53b(0x27b)](_0xfe526a))==null||_0x423bd9[_0x36a53b(0x1cc)](_0x11bb43[_0x36a53b(0xe4)]===0x0?_0x58c8e7[_0x36a53b(0x152)]:_0x58c8e7[_0x36a53b(0x187)]));}),this[_0x429984(0x28f)](_0x55b070);}[_0x240916(0x311)](_0x15425d){this['_scheduleClearOtherTimer'](_0x15425d['memberID']);}[_0x240916(0x24f)](_0x574c47){const _0x2a8c80=_0x240916;localStorage['setItem'](It,JSON[_0x2a8c80(0x286)](_0x574c47));}[_0x240916(0x29e)](){const _0x6b6044=_0x240916;this[_0x6b6044(0x29c)]=window[_0x6b6044(0x30e)](()=>{const _0x3b1eab=_0x6b6044;this[_0x3b1eab(0x24f)]({'type':0x2,'memberID':this[_0x3b1eab(0x1f2)]});},St);}[_0x240916(0x27b)](_0x43d6ce){const _0x3f939e=_0x240916;return this['_unitStatus'][_0x3f939e(0x298)](_0x43d6ce)||this[_0x3f939e(0x167)][_0x3f939e(0x26a)](_0x43d6ce,new _0x37599d(_0x58c8e7['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x3f939e(0x1c7)](_0x43d6ce);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};