@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260106-79b11f9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25a5b5=_0x2f8b;(function(_0x1ded9f,_0x454721){const _0x446391=_0x2f8b,_0xc6ba54=_0x1ded9f();while(!![]){try{const _0x540fc9=parseInt(_0x446391(0x356))/0x1*(parseInt(_0x446391(0x34f))/0x2)+-parseInt(_0x446391(0x2ad))/0x3+parseInt(_0x446391(0x320))/0x4+-parseInt(_0x446391(0x2f2))/0x5*(-parseInt(_0x446391(0x211))/0x6)+parseInt(_0x446391(0x186))/0x7*(-parseInt(_0x446391(0x351))/0x8)+parseInt(_0x446391(0x157))/0x9*(-parseInt(_0x446391(0x1c2))/0xa)+parseInt(_0x446391(0x31d))/0xb;if(_0x540fc9===_0x454721)break;else _0xc6ba54['push'](_0xc6ba54['shift']());}catch(_0x3041d6){_0xc6ba54['push'](_0xc6ba54['shift']());}}}(_0x5813,0x91e45));var Yt=Object['defineProperty'],Wt=(_0x25f223,_0x2daf39,_0x2ac5c7)=>_0x2daf39 in _0x25f223?Yt(_0x25f223,_0x2daf39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ac5c7}):_0x25f223[_0x2daf39]=_0x2ac5c7,_=(_0x354a90,_0x2eb00b,_0x2d4700)=>Wt(_0x354a90,typeof _0x2eb00b!='symbol'?_0x2eb00b+'':_0x2eb00b,_0x2d4700);import{jsx as _0x3ae543,jsxs as _0x5acf7e}from'react/jsx-runtime';import{CollaborationStatus as _0x24d6ad,CollaborationSessionService as _0x4b9a97,CollaborationController as _0x355e8d,DataLoaderService as _0x55c557,MemberService as _0x5cb11a,SessionStatus as _0x3ab3ab,ILocalCacheService as _0x7afea0,CollaborationUIEventService as _0x1f6473,CollaborationUIEventId as _0x52d382,DocCollaborationEntity as _0x26ab93,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x68d8d7,getLocalCacheKey as _0x116936,LOCAL_CACHE_INTERVAL as _0x572c2e,LOCAL_CACHE_INTERVAL_KEY as _0x38bd7d,UniverCollaborationClientPlugin as _0x11ed61,CollaborationSocketService as _0x199650,DEFAULT_WS_SESSION_TICKET_URL as _0xc1b096,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2c324f,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x230a1a,UnitStatus as _0x34ca89}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x54f2ff,IUniverInstanceService as _0x1c130e,Inject as _0x3b20a6,Injector as _0x11efa0,Disposable as _0x55a5c6,createIdentifier as _0x2b94aa,ILogService as _0x21a2cc,ICommandService as _0x4d6a66,Optional as _0x16947a,RxDisposable as _0x11e081,Workbook as _0x17f0ac,DOC_RANGE_TYPE as _0x6018fd,debounce as _0x1ce8dc,Rectangle as _0xe6db7,DisposableCollection as _0xc3c001,toDisposable as _0x4ec60f,UniverInstanceType as _0x14055f,generateRandomId as _0x515f8f,COLORS as _0x5163dd,ColorKit as _0x82e54c,ThemeService as _0x42b0e9,fromEventSubject as _0x317407,Tools as _0x558854,CommandType as _0x39c673,IConfigService as _0x29a96f,CanceledError as _0x506a54,isFormulaString as _0x32331c,isFormulaId as _0x48bb68,ILocalStorageService as _0x2fd1ca,DependentOn as _0x415867,Plugin as _0x2d892e,merge as _0x54b042,registerDependencies as _0x532347,mergeOverrideWithDependencies as _0x4d0157,touchDependencies as _0x176697}from'@univerjs/core';import{useObservable as _0x1c053b,useDependency as _0x5bb8a3,IUIPartsService as _0x335bf7,BuiltInUIPart as _0x4c00b8,connectInjector as _0x3dc4dc,IBeforeCloseService as _0x3d7fb9,IMessageService as _0x3f63df,INotificationService as _0x39767e}from'@univerjs/ui';import{BehaviorSubject as _0x5c2484,switchMap as _0x205b22,of as _0x4dbe8c,takeUntil as _0x5b88aa,debounceTime as _0x6d9d7b,Subject as _0x581a0f,filter as _0x5dd133,merge as _0x4ed569,combineLatest as _0x1b05a9,fromEvent as _0xde9537,shareReplay as _0x141bd8,mapTo as _0x2af3d3,distinctUntilChanged as _0x52166b}from'rxjs';import{Tooltip as _0x36b452,clsx as _0x188c3e,MessageType as _0x216228}from'@univerjs/design';import{useRef as _0x43a60b,createElement as _0x95d3d8,forwardRef as _0x52effb,useCallback as _0x631560}from'react';import{IRemoteInstanceService as _0x2ad0c8}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x19f0ec,RefRangeService as _0x5a8617,SetSelectionsOperation as _0x2ef2bb,SheetsSelectionsService as _0x31d6b1,EffectRefRangId as _0x4f0ab7,handleIRemoveRow as _0x31dd17,handleIRemoveCol as _0x58183f,handleMoveRange as _0x277101,handleInsertRow as _0x1aefad,handleInsertRangeMoveRight as _0x5ec068,handleInsertRangeMoveDown as _0x35d697,handleInsertCol as _0x4efdb7,handleDeleteRangeMoveUp as _0xfedcca,handleDeleteRangeMoveLeft as _0x5b14e1,runRefRangeMutations as _0x3e91a7}from'@univerjs/sheets';import{Shape as _0x4eda9c,Rect as _0x51b191,getColor as _0x24fc6e,RegularPolygon as _0xa342d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xd12b7f,Vector2 as _0x16183f,SHEET_VIEWPORT_KEY as _0x537df4,IRenderManagerService as _0x129792}from'@univerjs/engine-render';import{HTTPService as _0x188c95,ISocketService as _0x5776a2,WebSocketService as _0x3b6717}from'@univerjs/network';import{IDocClipboardService as _0x501a3,NodePositionConvertToCursor as _0x30529c,NodePositionConvertToRectRange as _0x4ce43a,TEXT_RANGE_LAYER_INDEX as _0x34717c,SetDocZoomRatioOperation as _0xf42b60,DocIMEInputManagerService as _0x444144,DocStateChangeManagerService as _0x53a296}from'@univerjs/docs-ui';import{IImageIoService as _0x59daa3}from'@univerjs/drawing';import{ITransformService as _0x5055a5,CollaborationEvent as _0x13d77b,isTransformMutationFailure as _0x891290,isTransformMutationsWithChangesetSuccess as _0x17f204,RevisionService as _0x2d5a6f,ISnapshotServerService as _0x58a0b2}from'@univerjs-pro/collaboration';function _0x5813(){const _0x57741f=['REDEMPTION_CODE_INACTIVE','isArray','evenodd','unhandledrejection','assignAColorForMemberID','_updateCollabCursors','_logService','OTHER_CLIENTS_EDITING','YUUMI_ALL_TABLES_IS_INVALID','_showGuardMessage','_transformHistoryAndStateStack','NOT_COLLAB','_getAnchorBounding','REDEMPTION_INVALID_CODE','InsertRangeMoveRightCommandId','event$','disposeWithMe','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','color','getRangePointData','_hideTimer','getCellPositionByOffset','setUndoRedoMutationParamsCache','_onCursorUpdate','_registerDependencies','ranges','univer-mr-2\x20univer-flex\x20univer-text-xl','_cursorInfo$','USERS_LEAVE','_ensureSubject','2670NkVLpR','filename','message','formula.calculation.unable','mask','replaceState','transformMutation','defineProperty','CHANGESET_REVISION_CONFILICT','_dataLoaderService','memberID','post','_localCacheService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','fillStyle','_cursor','complete','registerBeforeClose','onPointerLeave$','endColumn','addClipboardHook','getItem','blue.400','debug','top','error','REDEMPTION_CODE_HAS_BEEN_CREATED','_maxFormulaLimit','SUBMIT_CHANGESET_TIMEOUT','_cursors','registerComponent','_pollingInterval','_getSaveTimeout','children','_messageService','currentTheme$','_monkeyPatchLogService','all','LICENSE_DISTRO_REJECTED','ticket','fillRule','_drawAnchor','_createSocketURL','_cachedData','_shapes','entries','_clearPolling','_name','addObjects','getDocRanges','name','_configService','socket$','clearInterval','createInstance','getRenderById','_collabSessionService','Failed','_getSessionTicket','m1Prime','unit','tag','contains','_registerRenderDependencies','_lastResponseTimestamp','ENTITLE_INSUFFICIENT_QUOTA','ENTITLE_REPORT_LIMIT_EXCEED','replaceDocRanges','_hover','APPLY_PERMISSION_DENIED','executionId','YUUMI_ASYNCIO_CANCELLED','lineTo','arc','_transformService','_releaseCalculationLimit','createSocket','with','imageSourceType','getActiveSheet','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/run/','EMAIL_HAS_BEEN_BOUND','_unitOnClients','collab-text-anchor-','url(#on-line-icon_clip0_910_349)','getformulaLimitStatusUrl','_collaborationController','_roomMembers$','getAncestorScale','syncEditingCollabCursor','unshift','isEditing','_lastPointer','beforeCommandExecuted','_instanceService','subUnitId','_startDocCollabCursor','application/json','Unknown\x20user','on-line-icon_clip0_910_349','UNAUTHENTICATED','NO_OTHER_CLIENTS_EDITING','AUTHORIZE_CODE_ILLEGAL','white','USER_NOT_INVITED_CODE','CURRENT_STATUS_CANNOT_OPERATE','green.600','ENTITLE_INVALID_COUPON_CODE','PY_RUNTIME_SCRIPT_ERROR','getColorFromTheme','roomMembers$','round','startsWith','uni.network.url-service','fillText','colorChannel1','_removeCollabCursors','_initDependencies','path','executeCommand','map','WECHAT_HAS_BEEN_BOUND','transform','loadOfflineData','CONFLICT','ENTITLE_COUPON_EXPIRED','has','cursorInfo','_setupSubUnitSync','session.connection-failed','InsertRangeMoveDownCommandId','onPointerMove$','then','UNIVER_DOC','hide','size','_id','url(#$1','YUUMI_UNABLE_LOAD_URL','collabStatus.conflict','_handleEvent','YUUMI_RATE_OVER_LIMIT','getCurrentRevOfUnit','transformByState','setConfig','isActive','_render','getMemberID','_refreshCollabCursors','UNRECOGNIZED','pushState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_labelPosition','RECT','369672KAAbny','popstate','/universer-api/license/formula/limit/status','_unitStatus','requireSession','getValue','InsertRowCommandId','urlChange$','_transformPreviousActiveRange','now','ALREADY_EXISTS','_checkAndWaitForCalculationPermission','focused$','newValue','http://www.w3.org/2000/svg','column','formula.calculation.waiting','HEADER_MENU','getUnitId','xlink:href','ENTITLE_CHAT_LIMIT_EXCEED','data','Success','_docSyncEditingCollabCursorService','_checkCalculationAvailable','href','_colorAssignService','addObject','getCurrentUnitForType','location','_univerInstanceService','getCollabCursors$','_scheduleSaving','on-line-icon','triggerDblclick','unitID','exhaustSavingTask','addEventListener','drawWith','YUUMI_CONNECTOR_URL_NOT_FOUND','UNDEFINED','_disabled','_uiPartsService','clearTimeout','subunit','_updateLocalCursor','sheetID','_context','APPLY_DUPLICATED','_color','collaboration.single-unit.warning','translate(.97)','engine','dispose','unitId','DeleteRangeMoveUpCommandId','_syncEditingCollabCursorService','_getFormulaLimitStatus','closePath','_initResize','_backgroundColor','setAlpha','defs','includes','onCommandExecuted','off-line-icon_clip0_910_343','random','CONNECTOR_DATA_TOO_LARGE','_getSheetObject','10055LLGazH','subscribe','text','USER_NOT_FOUND','_anchorDot','_scheduleClearOtherTimer','_range','red.300','none','pluginName','[LogService\x20Error]:\x20','getCurrent','LICENSE_IMPORT_SIZE_EXCEEDED','_cursorShapes','collabStatus.syncing','undoState','_entities','ENTITLE_USE_COUPON_NOT_1ST_TRADE','[CollaborationDataLoaderController]','height','doc.mutation.rich-text-editing','OTHER_CLIENT_EDITING','REDEMPTION_USER_NOT_ELIGIBLE','_doCreateSocket','SNAPSHOT_INVALID_SNAPSHOT','_initCommandExecutedListener','div','_setupBeforeClosingHandler','RemoveRowCommandId','jiqing.500','min','collab-rect-range-','collabCursorState$','removeParam','PERMISSION_DENIED','setParam','findNodePositionByCharIndex','onLocalMutation','defIds','NOT_FOUND','ENTITLE_COUPON_USED_UP','saveTaskMap','[Unhandled\x20Rejection]:\x20','5103736samRTR','row','source','3707232RcqRup','SNAPSHOT_HAS_BEEN_REMOVED','0\x200\x2016\x2016','_colorIndex','add','from','_docTransformIMECacheService','skeleton','getUnit','stack','getRelativeToViewportCoord','MUTATION','bind','_initCommandInterceptor','_status$','unsubscribe','length','USER_IS_ANONYMOUS','_eventUnsubscribe','shift','transformStateCache','_scheduleHeartbeat','join','ERROR_AGAIN','disposeUnit','getCollabEntity$','APPLY_REJECT','getParam','onRendered','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','VIEW_MAIN','_drawRectRange','_docClipboardService','YUUMI_SUBSCRIPTION_NOT_FOUND','show','REDEMPTION_CODE_NOT_STARTED','getSkeleton','_memberID','_hovered','TOO_MANY_REQUESTS','UPDATE_CURSOR','_refRangeService','\x20at\x20','setItem','fill','onPointerEnter$','getActiveRange','115066UpStSY','_docTransformSelectionsService','1480UDxROO','REDEMPTION_USER_REDEEM_TIMES_EXCEED','dispose$','key','_localeService','1wSIIkn','dirtyRanges','saveOfflineData','_revisionService','colno','_uploadLog','releaseFormulaLimitUrl','replace','history','entityInit$','YUUMI_URL_COL_OUT_OF_RANGE','ENTITLE_NEED_BILLING_ADDRESS','onTransformChange$','...','_entityInit$','_send','_config','sessionStatus$','session.will-retry','type','currentColor','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitDisposed$','_onRefRangeChange','_scene','restore','actions','getOffsetConfig','currentSkeleton$','UNIVER_SHEET','bottom','_hasFormulaInDirtyRanges','getVpScrollXYInfoByPosToVp','getStateCache','SYNCED','_initEvent','_applyCommand','startRow','_textBubble','INVITE_CODE_REQUIRED','_startCalculationLimit','_themeService','ENSURE_SNAPSHOT_EXECUTION','maxFormulaLimit','values','[Window\x20Error]:\x20','_saveCache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_heartbeatTimer','find','startFormulaLimitUrl','INTERNAL_ERROR','selections','current','hovered','_collabCursorController','Loading','registerRenderModule','_memberService','reason','?taskId=','OFFLINE','toRgbString','_urlService','_toggleOffline','_taskIds','_initStatusComponent','set','lineno','_initWindowErrorListener','stageInfo','beginPath','activeSheet$','univerjs-icon\x20univerjs-icon-','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','roomMembers','_setFormulaLimitStatus','transformSelections','FromArray','_docSkeletonManagerService','split','_handleHover','RemoveColCommandId','collabStatus.fetchMiss','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','2097hiwmwc','clipPath','subscribeEvent','_sheetSkeletonManagerService','InsertColCommandId','_docTransformStateCacheService','YUUMI_NO_CUBOID_FOR_QUESTION','_startSheetCollabCursor','transformRemoteChangeset','collabStatus.synced','delete','result','M0\x200H16V16H0z','_imageIoService','stringify','_renderManagerService','getUniverSheetInstance','Warning','_handleHeartbeatEvent','_injector','_collaborationUIEventService','redoState','collaboration-client-ui.config','getConfig','_handleJoinEvent','assign','send','/universer-api/license/formula/limit/start','loadUnit','MOBILE_VERIFY_CODE_MISMATCH','collab-text-range-','idSuffix','INVALID_ARGUMENT','_init','_online','_currentUsage','use','collabStatus.offline','selection','MOBILE_HAS_BEEN_BOUND','m2Prime','_initUnhandledRejectionListener','getTypeOfUnitAdded$','_collaborationSessionService','_session','_removeClearOtherTimer','AWAITING_WITH_PENDING','33838jYPWtu','getOwnPropertyDescriptor','APPLY_REVISION_CONFILICT','unload','string','_updateURLWithCurrentState','INVALID_INVITE_CODE','eventID','endRow','sheetId','deepClone','REDEMPTION_CODE_FULLY_REDEEMED','getCellMatrix','get','EMAIL_VERIFY_CODE_MISMATCH','next','UniverIcon','toString','range','_docStateChangeManagerService','OnLineIcon','measureText','_anchor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformMutationsWithChangeset','_assignedColors','registerRefRange','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','limitInfo','parseInt','removeEventListener','code','enableFrontendLog','_transformUndoRedoStack','setShapeProps','runId','save','session.collaboration-timeout','resize','_updateSubUnitFromURLParams','#FFF','forEach','_getMergeRange','_onCursorDelete','runOnServer','COMPLETION_FINISHED','FETCH_MISS','_localStorageService','YUUMI_AI_RUN_FAILED','searchParams','1em','status$','_collabCursorState$','init','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','DATA_SOURCE_TOO_LARGE','ENTITLE_DUP_SUBSCRIPTION','width','cursorInfo$','setActiveRange','31250ytjcnh','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_selfUnitIDs','svg','black','_getScale','font','TEXT','_draw','_saveTaskMap','displayName','_toggleOnline','transformIMECache','getFocusedUnit','params','getMember','JOIN_ROOM_FAILED','substring','startColumn','_initStatusListener','_initEntityListener','_handleLeaveEvent','collaboration.closeRoom','_clearOtherTimers','asObservable','AWAITING','body','INVITE_CODE_ALREADY_BOUND','getSheetId','currentUsage','attrs','ONLINE','pipe','INVITE_CODE_HAS_BEEN_UES','setInterval','textRanges','push','ACTIVE_UNIT_EVENT_CHANNEL','mutations','_drawTextRange','LICENSE_EXPORT_SIZE_EXCEEDED','LOGIN_FAILED','Error','some','_beforeCloseService','invokeId','_httpService','_commandService'];_0x5813=function(){return _0x57741f;};return _0x5813();}import{SetTextSelectionsOperation as _0x3e6b9e,RichTextEditingMutation as _0x5f8fa4,DocSelectionManagerService as _0x697c53,DocSkeletonManagerService as _0x32ee5a}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x232aec,serializeRangeWithSheet as _0x16cb8d,FormulaExecuteStageType as _0x5fc814,FormulaExecutedStateType as _0x322c94,SetFormulaCalculationStartMutation as _0x3ca4e9,SetFormulaCalculationNotificationMutation as _0x5376a4}from'@univerjs/engine-formula';import{map as _0x9d038d,filter as _0x26dfe6,throttleTime as _0x3e44e8,takeUntil as _0x5d8c44,switchMap as _0x3266f6}from'rxjs/operators';function _0x2f8b(_0x421380,_0x483e2f){_0x421380=_0x421380-0x13c;const _0x58137b=_0x5813();let _0x2f8bb1=_0x58137b[_0x421380];return _0x2f8bb1;}import{SheetSkeletonManagerService as _0x2e6edd,getCoordByCell as _0x19cfdc,getSheetObject as _0x231157}from'@univerjs/sheets-ui';function Ge({ref:_0x117cc3,..._0x79327f}){const _0x3fd7c9=_0x2f8b,{icon:_0x23fd96,id:_0x29b71d,className:_0x374885,extend:_0x592d57,..._0x39b77f}=_0x79327f,_0x32dc22=(_0x3fd7c9(0x14b)+_0x29b71d+'\x20'+(_0x374885||''))['trim'](),_0x2dfac1=_0x43a60b('_'+vi());return At(_0x23fd96,''+_0x29b71d,{'defIds':_0x23fd96[_0x3fd7c9(0x318)],'idSuffix':_0x2dfac1[_0x3fd7c9(0x38b)]},{'ref':_0x117cc3,'className':_0x32dc22,..._0x39b77f},_0x592d57);}function At(_0x34b4de,_0x3816c3,_0x5145e2,_0x2703c7,_0x17e8f2){const _0xd6ac03=_0x2f8b;return _0x95d3d8(_0x34b4de[_0xd6ac03(0x24e)],{'key':_0x3816c3,...gi(_0x34b4de,_0x5145e2,_0x17e8f2),..._0x2703c7},(Ei(_0x34b4de,_0x5145e2)[_0xd6ac03(0x232)]||[])[_0xd6ac03(0x28b)]((_0x32b743,_0x122212)=>At(_0x32b743,_0x3816c3+'-'+_0x34b4de[_0xd6ac03(0x24e)]+'-'+_0x122212,_0x5145e2,void 0x0,_0x17e8f2)));}function gi(_0x46e0fc,_0x1765c9,_0x20d78d){const _0x46e0c4=_0x2f8b,_0x251a06={..._0x46e0fc[_0x46e0c4(0x1e0)]};_0x20d78d!=null&&_0x20d78d[_0x46e0c4(0x286)]&&_0x251a06[_0x46e0c4(0x34c)]===_0x46e0c4(0x286)&&(_0x251a06['fill']=_0x20d78d[_0x46e0c4(0x286)]),_0x46e0fc[_0x46e0c4(0x24e)]==='mask'&&_0x251a06['id']&&(_0x251a06['id']=_0x251a06['id']+_0x1765c9[_0x46e0c4(0x176)]),Object[_0x46e0c4(0x23e)](_0x251a06)[_0x46e0c4(0x1af)](([_0x1821e5,_0x270cb9])=>{const _0x1c70ef=_0x46e0c4;_0x1821e5===_0x1c70ef(0x215)&&typeof _0x270cb9==_0x1c70ef(0x18a)&&(_0x251a06[_0x1821e5]=_0x270cb9[_0x1c70ef(0x35d)](/url\(#(.*)\)/,_0x1c70ef(0x29c)+_0x1765c9['idSuffix']+')'));});const {defIds:_0x3b4cf8}=_0x1765c9;return!_0x3b4cf8||_0x3b4cf8[_0x46e0c4(0x330)]===0x0||(_0x46e0fc['tag']===_0x46e0c4(0x17b)&&_0x251a06['xlink:href']&&(_0x251a06[_0x46e0c4(0x2c0)]=_0x251a06[_0x46e0c4(0x2c0)]+_0x1765c9['idSuffix']),Object['entries'](_0x251a06)[_0x46e0c4(0x1af)](([_0xe263f2,_0x485b42])=>{const _0x1d9bfb=_0x46e0c4;typeof _0x485b42==_0x1d9bfb(0x18a)&&(_0x251a06[_0xe263f2]=_0x485b42['replace'](/url\(#(.*)\)/,_0x1d9bfb(0x29c)+_0x1765c9[_0x1d9bfb(0x176)]+')'));})),_0x251a06;}function Ei(_0x246d98,_0x123e52){const _0x3232c8=_0x2f8b;var _0x615b92;const {defIds:_0x53844b}=_0x123e52;return!_0x53844b||_0x53844b['length']===0x0?_0x246d98:_0x246d98[_0x3232c8(0x24e)]===_0x3232c8(0x2eb)&&((_0x615b92=_0x246d98[_0x3232c8(0x232)])!=null&&_0x615b92['length'])?{..._0x246d98,'children':_0x246d98[_0x3232c8(0x232)][_0x3232c8(0x28b)](_0x355f54=>typeof _0x355f54[_0x3232c8(0x1e0)]['id']==_0x3232c8(0x18a)&&_0x53844b&&_0x53844b[_0x3232c8(0x2ec)](_0x355f54[_0x3232c8(0x1e0)]['id'])?{..._0x355f54,'attrs':{..._0x355f54[_0x3232c8(0x1e0)],'id':_0x355f54['attrs']['id']+_0x123e52[_0x3232c8(0x176)]}}:_0x355f54)}:_0x246d98;}function vi(){const _0x5a30a6=_0x2f8b;return Math[_0x5a30a6(0x2ef)]()[_0x5a30a6(0x197)](0x24)[_0x5a30a6(0x1d3)](0x2,0x8);}Ge['displayName']=_0x25a5b5(0x196);const pi={'tag':_0x25a5b5(0x1c5),'attrs':{'xmlns':_0x25a5b5(0x2bb),'fill':_0x25a5b5(0x2fa),'viewBox':_0x25a5b5(0x322),'width':'1em','height':_0x25a5b5(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','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':_0x25a5b5(0x282),'strokeLinejoin':_0x25a5b5(0x282),'strokeWidth':1.2}}]},{'tag':_0x25a5b5(0x2eb),'attrs':{},'children':[{'tag':_0x25a5b5(0x158),'attrs':{'id':_0x25a5b5(0x2ee)},'children':[{'tag':_0x25a5b5(0x289),'attrs':{'fill':_0x25a5b5(0x27a),'d':_0x25a5b5(0x163)}}]}]}],'defIds':[_0x25a5b5(0x2ee)]},Pt=_0x52effb(function(_0x4c2034,_0x2626a7){return _0x95d3d8(Ge,Object['assign']({},_0x4c2034,{'id':'off-line-icon','ref':_0x2626a7,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':_0x25a5b5(0x1c5),'attrs':{'xmlns':_0x25a5b5(0x2bb),'fill':_0x25a5b5(0x2fa),'viewBox':'0\x200\x2017\x2016','width':_0x25a5b5(0x1b8),'height':_0x25a5b5(0x1b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x25a5b5(0x267)},'children':[{'tag':_0x25a5b5(0x289),'attrs':{'stroke':_0x25a5b5(0x36a),'d':_0x25a5b5(0x1a1),'strokeLinecap':_0x25a5b5(0x282),'strokeLinejoin':_0x25a5b5(0x282),'strokeWidth':1.2}}]},{'tag':_0x25a5b5(0x2eb),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x25a5b5(0x276)},'children':[{'tag':_0x25a5b5(0x289),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x25a5b5(0x2e0)}}]}]}],'defIds':[_0x25a5b5(0x276)]},wt=_0x52effb(function(_0x357bf9,_0x5d47f4){const _0x55108b=_0x25a5b5;return _0x95d3d8(Ge,Object[_0x55108b(0x170)]({},_0x357bf9,{'id':_0x55108b(0x2ce),'ref':_0x5d47f4,'icon':Oi}));});wt[_0x25a5b5(0x1cc)]=_0x25a5b5(0x19a);function Ti(_0x5deca5){const _0x233b08=_0x25a5b5;switch(_0x5deca5){case _0x24d6ad[_0x233b08(0x13f)]:return _0x233b08(0x17c);case _0x24d6ad[_0x233b08(0x28f)]:return _0x233b08(0x29e);case _0x24d6ad[_0x233b08(0x1b4)]:return _0x233b08(0x155);case _0x24d6ad[_0x233b08(0x1fd)]:return'collabStatus.notCollab';case _0x24d6ad[_0x233b08(0x1db)]:case _0x24d6ad[_0x233b08(0x185)]:return _0x233b08(0x300);case _0x24d6ad[_0x233b08(0x378)]:case _0x24d6ad['PENDING']:return _0x233b08(0x160);}}function Ci(_0x49d106){const _0x27417e=_0x25a5b5,{status$:_0x237ea8}=_0x49d106,_0x2a58d8=_0x1c053b(_0x237ea8,_0x24d6ad[_0x27417e(0x1fd)]),_0x2ecb8a=_0x5bb8a3(_0x54f2ff),_0x5e3e23=_0x5bb8a3(_0x4b9a97),_0x1b69a8=_0x2a58d8!==_0x24d6ad[_0x27417e(0x13f)],_0x1fd342=_0x2ecb8a['t'](Ti(_0x2a58d8)),_0x321324=_0x1b69a8?_0x3ae543(wt,{}):_0x3ae543(Pt,{}),_0x2675ce=_0x631560(()=>{_0x1b69a8||_0x5e3e23['reconnect']();},[_0x1b69a8,_0x5e3e23]);function _0x5941af(){const _0x7dd273=_0x27417e;return _0x5acf7e(_0x7dd273(0x30c),{'className':'univer-flex\x20univer-items-center','onClick':_0x2675ce,'children':[_0x3ae543(_0x7dd273(0x30c),{'className':_0x188c3e(_0x7dd273(0x20d),{'univer-text-green-500':_0x1b69a8,'univer-text-red-500':!_0x1b69a8}),'children':_0x321324}),_0x3ae543(_0x7dd273(0x30c),{'className':_0x7dd273(0x33d),'children':_0x1fd342})]});}return _0x1b69a8?_0x5941af():_0x3ae543(_0x36b452,{'title':_0x2ecb8a['t']('collab-client.tooltip.reconnect'),'children':_0x5941af()});}var Ri=Object[_0x25a5b5(0x187)],Di=(_0x195445,_0x3758f9,_0x1a7171,_0x919d9b)=>{const _0xc6874=_0x25a5b5;for(var _0x46147d=_0x919d9b>0x1?void 0x0:_0x919d9b?Ri(_0x3758f9,_0x1a7171):_0x3758f9,_0x191491=_0x195445[_0xc6874(0x330)]-0x1,_0x4b8f82;_0x191491>=0x0;_0x191491--)(_0x4b8f82=_0x195445[_0x191491])&&(_0x46147d=_0x4b8f82(_0x46147d)||_0x46147d);return _0x46147d;},se=(_0x5b2f2e,_0x1b8288)=>(_0x228b17,_0x3723ff)=>_0x1b8288(_0x228b17,_0x3723ff,_0x5b2f2e);let ae=class extends _0x55a5c6{constructor(_0x48a1a1,_0x903730,_0x2474e6,_0x22727b){const _0x416ace=_0x25a5b5;super(),_(this,_0x416ace(0x32e),new _0x5c2484(_0x24d6ad['NOT_COLLAB'])),(this['_univerInstanceService']=_0x48a1a1,this[_0x416ace(0x16a)]=_0x903730,this['_collaborationController']=_0x2474e6,this[_0x416ace(0x2d7)]=_0x22727b,this['_initStatusComponent'](),this[_0x416ace(0x1d5)]());}['_initStatusListener'](){const _0x18980c=_0x25a5b5;this[_0x18980c(0x202)](this[_0x18980c(0x2cb)][_0x18980c(0x2b9)][_0x18980c(0x1e2)](_0x205b22(()=>{const _0x16f9bd=_0x18980c,_0x116670=this[_0x16f9bd(0x2cb)][_0x16f9bd(0x1cf)]();return _0x116670?this[_0x16f9bd(0x269)][_0x16f9bd(0x339)](_0x116670[_0x16f9bd(0x2bf)]()):_0x4dbe8c(null);}),_0x205b22(_0x5ea934=>_0x5ea934?_0x5ea934[_0x18980c(0x1b9)]:_0x4dbe8c(_0x24d6ad[_0x18980c(0x1fd)])))[_0x18980c(0x2f3)](_0x2896f7=>{this['_status$']['next'](_0x2896f7);}));}[_0x25a5b5(0x144)](){const _0x1c1f59=_0x25a5b5;this[_0x1c1f59(0x202)](this[_0x1c1f59(0x2d7)][_0x1c1f59(0x22f)](_0x4c00b8[_0x1c1f59(0x2be)],()=>_0x3dc4dc(Ni({'status$':this[_0x1c1f59(0x32e)][_0x1c1f59(0x1da)]()}),this[_0x1c1f59(0x16a)])));}};ae=Di([se(0x0,_0x1c130e),se(0x1,_0x3b20a6(_0x11efa0)),se(0x2,_0x3b20a6(_0x355e8d)),se(0x3,_0x335bf7)],ae);function Ni(_0x2520b1){const {status$:_0x304133}=_0x2520b1;return function(){return _0x3ae543(Ci,{'status$':_0x304133});};}const yt=_0x2b94aa(_0x25a5b5(0x284));var bi=Object[_0x25a5b5(0x187)],Li=(_0x3e2119,_0x79337c,_0x1e18d1,_0x283e4b)=>{const _0x58f75a=_0x25a5b5;for(var _0x37861d=_0x283e4b>0x1?void 0x0:_0x283e4b?bi(_0x79337c,_0x1e18d1):_0x79337c,_0x32818f=_0x3e2119[_0x58f75a(0x330)]-0x1,_0x401895;_0x32818f>=0x0;_0x32818f--)(_0x401895=_0x3e2119[_0x32818f])&&(_0x37861d=_0x401895(_0x37861d)||_0x37861d);return _0x37861d;},K=(_0x5d5a34,_0x104906)=>(_0xb33061,_0x20cb6f)=>_0x104906(_0xb33061,_0x20cb6f,_0x5d5a34);let ce=class extends _0x11e081{constructor(_0x51ace5,_0x4996fc,_0x185d54,_0x150419,_0x702f67){const _0x83986=_0x25a5b5;super(),this[_0x83986(0x141)]=_0x51ace5,this[_0x83986(0x1f8)]=_0x4996fc,this[_0x83986(0x1f1)]=_0x185d54,this['_dataLoaderService']=_0x150419,_0x702f67?_0x702f67==null||_0x702f67['whenReady']()[_0x83986(0x297)](()=>this[_0x83986(0x178)]()):(this[_0x83986(0x1f8)][_0x83986(0x228)](_0x83986(0x304),_0x83986(0x156)),this[_0x83986(0x178)]());}async[_0x25a5b5(0x178)](){const _0x457ac4=_0x25a5b5,_0x208ce4=this['_urlService'][_0x457ac4(0x33b)]('unit'),_0x10740a=this[_0x457ac4(0x141)][_0x457ac4(0x33b)](_0x457ac4(0x369)),_0x25bfb1=this[_0x457ac4(0x141)][_0x457ac4(0x33b)](_0x457ac4(0x2d9));if(!_0x208ce4||!_0x10740a){this[_0x457ac4(0x1f8)][_0x457ac4(0x228)](_0x457ac4(0x304),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1f2c33=await this[_0x457ac4(0x21a)][_0x457ac4(0x173)](_0x208ce4,Number(_0x10740a),_0x25bfb1);_0x1f2c33&&_0x1f2c33 instanceof _0x17f0ac&&this[_0x457ac4(0x293)](_0x1f2c33);}async[_0x25a5b5(0x293)](_0x3c2c3d){const _0x8dd66d=_0x25a5b5;await this['_updateSubUnitFromURLParams'](_0x3c2c3d),_0x3c2c3d[_0x8dd66d(0x14a)][_0x8dd66d(0x1e2)](_0x5b88aa(this[_0x8dd66d(0x353)]))[_0x8dd66d(0x2f3)](_0x52d4db=>{const _0x5cb604=_0x8dd66d;_0x52d4db&&this[_0x5cb604(0x18b)](_0x52d4db);}),this[_0x8dd66d(0x141)][_0x8dd66d(0x2b4)]['pipe'](_0x5b88aa(this['dispose$']))[_0x8dd66d(0x2f3)](()=>this[_0x8dd66d(0x1ad)](_0x3c2c3d));}['_updateURLWithCurrentState'](_0x1fcfc0,_0x59800d=!0x1){const _0x31070e=_0x25a5b5,_0x32f850=this[_0x31070e(0x141)][_0x31070e(0x33b)]('subunit');_0x1fcfc0[_0x31070e(0x1de)]()!==_0x32f850&&this[_0x31070e(0x141)][_0x31070e(0x315)](_0x31070e(0x2d9),_0x1fcfc0[_0x31070e(0x1de)](),_0x59800d);}async['_updateSubUnitFromURLParams'](_0x7b4f2c){const _0x507d32=_0x25a5b5;var _0x406d11;const _0x48fc04=this[_0x507d32(0x141)][_0x507d32(0x33b)]('subunit');if(!_0x48fc04||!_0x7b4f2c['getSheetBySheetId'](_0x48fc04)){const _0x36c881=_0x7b4f2c['getUnhiddenWorksheets']()[0x0],_0x3942ab=_0x7b4f2c['getSheetBySheetId'](_0x36c881);if(!_0x3942ab)return;this[_0x507d32(0x18b)](_0x3942ab,!0x0),await this[_0x507d32(0x1f1)]['executeCommand'](_0x19f0ec['id'],{'unitId':_0x7b4f2c[_0x507d32(0x2bf)](),'subUnitId':_0x36c881});return;}((_0x406d11=_0x7b4f2c[_0x507d32(0x260)]())==null?void 0x0:_0x406d11[_0x507d32(0x1de)]())!==_0x48fc04&&await this['_commandService']['executeCommand'](_0x19f0ec['id'],{'unitId':_0x7b4f2c[_0x507d32(0x2bf)](),'subUnitId':_0x48fc04});}};ce=Li([K(0x0,yt),K(0x1,_0x21a2cc),K(0x2,_0x4d6a66),K(0x3,_0x3b20a6(_0x55c557)),K(0x4,_0x16947a(_0x2ad0c8))],ce);var Ui=Object[_0x25a5b5(0x187)],Mi=(_0x31ffdd,_0x5df8fe,_0xd850a8,_0xd5de2)=>{const _0x155fd7=_0x25a5b5;for(var _0xf99459=_0xd5de2>0x1?void 0x0:_0xd5de2?Ui(_0x5df8fe,_0xd850a8):_0x5df8fe,_0x348f24=_0x31ffdd[_0x155fd7(0x330)]-0x1,_0x906a4b;_0x348f24>=0x0;_0x348f24--)(_0x906a4b=_0x31ffdd[_0x348f24])&&(_0xf99459=_0x906a4b(_0xf99459)||_0xf99459);return _0xf99459;},rt=(_0x51812c,_0x7420f2)=>(_0x2c58f2,_0x9ad265)=>_0x7420f2(_0x2c58f2,_0x9ad265,_0x51812c);let $e=class extends _0x11e081{constructor(_0xab778b,_0x15acab){const _0x1f3d9c=_0x25a5b5;super(),this[_0x1f3d9c(0x340)]=_0xab778b,this[_0x1f3d9c(0x164)]=_0x15acab,this[_0x1f3d9c(0x178)]();}[_0x25a5b5(0x178)](){const _0x4374cd=_0x25a5b5,_0x486af1=this;this[_0x4374cd(0x202)](this['_docClipboardService'][_0x4374cd(0x225)]({'onBeforePasteImage':async _0x21d1b2=>{const _0x5c0413=_0x4374cd,_0x22d166=await _0x486af1[_0x5c0413(0x164)]['saveImage'](_0x21d1b2);return _0x22d166?{'source':_0x22d166[_0x5c0413(0x31f)],'imageSourceType':_0x22d166[_0x5c0413(0x25f)]}:null;}}));}};$e=Mi([rt(0x0,_0x501a3),rt(0x1,_0x59daa3)],$e);const ot=['purple.300',_0x25a5b5(0x30f),_0x25a5b5(0x27d),_0x25a5b5(0x2f9),_0x25a5b5(0x227),'yellow.400'];class Ke extends _0x55a5c6{constructor(){const _0x2d9bdb=_0x25a5b5;super(...arguments),_(this,_0x2d9bdb(0x19f),new Map()),_(this,'_colorIndex',0x0);}[_0x25a5b5(0x1f6)](_0x177e32){const _0x25b378=_0x25a5b5;if(this[_0x25b378(0x19f)]['has'](_0x177e32))return this['_assignedColors'][_0x25b378(0x193)](_0x177e32);const _0x56b161=ot[this[_0x25b378(0x323)]];return this[_0x25b378(0x323)]=(this[_0x25b378(0x323)]+0x1)%ot[_0x25b378(0x330)],this[_0x25b378(0x19f)]['set'](_0x177e32,_0x56b161),_0x56b161;}}function $t(_0x42b05a){const _0x7c68dd=_0x25a5b5;let _0x2510b4='';for(const _0x21aaba of _0x42b05a){const {startOffset:_0x4ffb5f,endOffset:_0x1ed00c,isActive:_0x35e661,rangeType:_0x45dcda,segmentId:_0xb0ae5f,segmentPage:_0x31d624}=_0x21aaba;_0x2510b4[_0x7c68dd(0x330)]&&(_0x2510b4+=','),_0x2510b4+=_0x4ffb5f+':'+_0x1ed00c+':'+(_0x35e661?'1':'0')+':'+_0x45dcda+':'+_0xb0ae5f+':'+_0x31d624;}return _0x2510b4;}function Ai(_0x4d39d7){const _0x5d3fc7=_0x25a5b5,_0x39eade=_0x4d39d7[_0x5d3fc7(0x152)](','),_0x4997ee=[];for(const _0x3efe19 of _0x39eade){const [_0x42c375,_0x5788ed,_0x189eb6,_0x18b10c,_0x1cb3f2,_0x2f1be0]=_0x3efe19[_0x5d3fc7(0x152)](':');_0x4997ee[_0x5d3fc7(0x1e6)]({'startOffset':Number(_0x42c375),'endOffset':Number(_0x5788ed),'collapsed':_0x42c375===_0x5788ed,'isActive':_0x189eb6==='1','rangeType':_0x18b10c===_0x6018fd[_0x5d3fc7(0x1c9)]?_0x6018fd[_0x5d3fc7(0x1c9)]:_0x6018fd['RECT'],'segmentId':typeof _0x1cb3f2==_0x5d3fc7(0x18a)?String(_0x1cb3f2):'','segmentPage':Number(_0x2f1be0!=null?_0x2f1be0:-0x1)});}return _0x4997ee[_0x5d3fc7(0x1ed)](_0x5efd02=>_0x5efd02[_0x5d3fc7(0x2a4)])||(_0x4997ee[0x0][_0x5d3fc7(0x2a4)]=!0x0),_0x4997ee;}class ze extends _0x11e081{constructor(){const _0x3480de=_0x25a5b5;super(...arguments),_(this,'_collabCursorState$',new _0x5c2484(null)),_(this,_0x3480de(0x312),this['_collabCursorState$'][_0x3480de(0x1da)]());}[_0x25a5b5(0x26c)](_0x4cd16f){const _0x570327=_0x25a5b5,{unitID:_0x1deeed,memberID:_0x46267a,textRanges:_0x4921b6}=_0x4cd16f,_0x28656f=$t(_0x4921b6);if(_0x28656f==='')return;const _0x17b93e={'unitID':_0x1deeed,'memberID':_0x46267a,'selection':_0x28656f};this[_0x570327(0x1ba)]['next'](_0x17b93e);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x4b38a9,_0x5b2479,_0x41817c,_0x3c22dd)=>{const _0x4b57c4=_0x25a5b5;for(var _0x31d1c7=_0x3c22dd>0x1?void 0x0:_0x3c22dd?Pi(_0x5b2479,_0x41817c):_0x5b2479,_0x5a82db=_0x4b38a9[_0x4b57c4(0x330)]-0x1,_0x5a161a;_0x5a82db>=0x0;_0x5a82db--)(_0x5a161a=_0x4b38a9[_0x5a82db])&&(_0x31d1c7=_0x5a161a(_0x31d1c7)||_0x31d1c7);return _0x31d1c7;},A=(_0x4fc0b6,_0x191aa1)=>(_0x29f847,_0x2b5985)=>_0x191aa1(_0x29f847,_0x2b5985,_0x4fc0b6);const yi=0x12c,$i=0x64;let xe=class extends _0x11e081{constructor(_0x2d2991,_0x4e6873,_0x295c15,_0x437a64,_0xff8bf9,_0x3e5e42,_0x126366,_0x8570a5,_0x54d445){const _0x7b9e4a=_0x25a5b5;super(),_(this,_0x7b9e4a(0x179),!0x1),_(this,_0x7b9e4a(0x178),!0x1),_(this,'_cursorInfo$',new _0x5c2484(new Map())),_(this,_0x7b9e4a(0x1c0),this[_0x7b9e4a(0x20e)]['asObservable']()),_(this,_0x7b9e4a(0x26a),new _0x5c2484([])),_(this,_0x7b9e4a(0x281),this['_roomMembers$']['pipe'](_0x6d9d7b(yi))),_(this,_0x7b9e4a(0x2da),_0x1ce8dc(_0x2fb4d6=>{const _0x9ecce=_0x7b9e4a,_0x13cb38={'eventID':_0x13d77b[_0x9ecce(0x348)],'data':{'unitID':this[_0x9ecce(0x2d0)],'memberID':this[_0x9ecce(0x183)]['getMemberID'](),'selection':$t(_0x2fb4d6)}};this[_0x9ecce(0x183)][_0x9ecce(0x171)](_0x13cb38,this['unitID']);},$i)),(this['unitID']=_0x2d2991,this[_0x7b9e4a(0x183)]=_0x4e6873,this[_0x7b9e4a(0x16a)]=_0x295c15,this['_colorAssignService']=_0x437a64,this[_0x7b9e4a(0x13c)]=_0xff8bf9,this['_syncEditingCollabCursorService']=_0x3e5e42,this[_0x7b9e4a(0x25b)]=_0x126366,this[_0x7b9e4a(0x2cb)]=_0x8570a5,this['_commandService']=_0x54d445);}get[_0x25a5b5(0x292)](){const _0x134f2a=_0x25a5b5;return this[_0x134f2a(0x20e)][_0x134f2a(0x2b2)]();}get[_0x25a5b5(0x14d)](){const _0x3fcd6b=_0x25a5b5;return this[_0x3fcd6b(0x26a)][_0x3fcd6b(0x2b2)]();}[_0x25a5b5(0x2e2)](){const _0x5c24cb=_0x25a5b5;super['dispose'](),this[_0x5c24cb(0x20e)][_0x5c24cb(0x195)](new Map()),this['_cursorInfo$'][_0x5c24cb(0x221)](),this[_0x5c24cb(0x26a)][_0x5c24cb(0x195)]([]),this[_0x5c24cb(0x26a)][_0x5c24cb(0x221)]();}[_0x25a5b5(0x1bb)](){const _0x2fa105=_0x25a5b5;this[_0x2fa105(0x178)]||(this[_0x2fa105(0x178)]=!0x0,this[_0x2fa105(0x183)]['sessionStatus$'][_0x2fa105(0x1e2)](_0x5b88aa(this[_0x2fa105(0x353)]))['subscribe'](_0x51f607=>{const _0x3d8553=_0x2fa105;_0x51f607===_0x3ab3ab[_0x3d8553(0x1e1)]?this['_toggleOnline']():this[_0x3d8553(0x142)]();}),this[_0x2fa105(0x183)][_0x2fa105(0x201)][_0x2fa105(0x1e2)](_0x5b88aa(this[_0x2fa105(0x353)]))[_0x2fa105(0x2f3)](_0xb246d0=>{const _0x28f401=_0x2fa105,_0x877acc=_0xb246d0[_0x28f401(0x18d)];_0x877acc===_0x13d77b[_0x28f401(0x348)]&&this[_0x28f401(0x20a)](_0xb246d0),_0x877acc===_0x13d77b[_0x28f401(0x20f)]&&this[_0x28f401(0x1b1)](_0xb246d0);}),this[_0x2fa105(0x202)](this[_0x2fa105(0x1f1)][_0x2fa105(0x2ed)](_0x539f6d=>{const _0x80dde7=_0x2fa105,_0x20d8fa=_0x539f6d[_0x80dde7(0x1d0)];_0x20d8fa!=null&&this[_0x80dde7(0x179)]&&_0x539f6d['id']===_0x3e6b9e['id']&&_0x20d8fa[_0x80dde7(0x2e3)]===this[_0x80dde7(0x2d0)]&&_0x20d8fa[_0x80dde7(0x26e)]===!0x1&&_0x20d8fa[_0x80dde7(0x20c)][_0x80dde7(0x330)]>0x0&&this[_0x80dde7(0x2da)](_0x20d8fa[_0x80dde7(0x20c)]);})),this[_0x2fa105(0x2e5)][_0x2fa105(0x312)]['pipe'](_0x5b88aa(this['dispose$']))[_0x2fa105(0x2f3)](_0x2046dc=>{const _0x58bed3=_0x2fa105;if((_0x2046dc==null?void 0x0:_0x2046dc[_0x58bed3(0x2d0)])!==this['unitID'])return;const _0x8f0b14={'eventID':_0x13d77b[_0x58bed3(0x348)],'data':_0x2046dc};this['_onCursorUpdate'](_0x8f0b14);}),this['disposeWithMe'](this[_0x2fa105(0x1f1)][_0x2fa105(0x2ed)](_0x1319f0=>{const _0x149496=_0x2fa105;if(_0x1319f0[_0x149496(0x1d0)]==null)return;const _0xd98ee0=_0x1319f0['params'];if(_0x1319f0['id']!==_0x5f8fa4['id']||_0xd98ee0[_0x149496(0x2e3)]!==this[_0x149496(0x2d0)])return;const _0x4aaad0={'id':_0x149496(0x306),'params':_0xd98ee0},_0x51c708=this[_0x149496(0x292)];for(const [_0x2e3a3e,_0x1b6670]of _0x51c708){const _0x4cff74={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1b6670['ranges']}},_0x3f160b=this[_0x149496(0x25b)][_0x149496(0x217)](_0x4aaad0,_0x4cff74,!0x1);if(_0x891290(_0x3f160b))throw _0x3f160b['error'];_0x51c708[_0x149496(0x145)](_0x2e3a3e,{..._0x1b6670,'ranges':_0x3f160b[_0x149496(0x17f)][_0x149496(0x1d0)][_0x149496(0x1e5)]});}queueMicrotask(()=>{const _0x3612bc=_0x149496;this['_cursorInfo$'][_0x3612bc(0x195)](_0x51c708);});})));}[_0x25a5b5(0x20a)](_0x1c58d6){const _0x753b53=_0x25a5b5;var _0x19c8b7,_0x45d998;const {memberID:_0x5bb4d9,selection:_0x42b12a}=_0x1c58d6[_0x753b53(0x2c2)],_0x569842=Ai(_0x42b12a),_0x464e2c=(_0x45d998=(_0x19c8b7=this[_0x753b53(0x13c)][_0x753b53(0x1d1)](this['unitID'],_0x5bb4d9))==null?void 0x0:_0x19c8b7[_0x753b53(0x243)])!=null?_0x45d998:_0x753b53(0x275),_0x2a6e05={'color':this[_0x753b53(0x2c7)][_0x753b53(0x1f6)](_0x5bb4d9),'name':_0x464e2c,'ranges':_0x569842},_0x1faf9d=this['cursorInfo'];_0x1faf9d['set'](_0x5bb4d9,_0x2a6e05),this[_0x753b53(0x20e)][_0x753b53(0x195)](_0x1faf9d);}['_onCursorDelete'](_0x5dfdd0){const _0x4995da=_0x25a5b5,{memberID:_0x4e55c8}=_0x5dfdd0[_0x4995da(0x2c2)],_0x35384f=this[_0x4995da(0x292)];_0x35384f['delete'](_0x4e55c8),this[_0x4995da(0x20e)][_0x4995da(0x195)](_0x35384f);}['_toggleOnline'](){const _0x4ed097=_0x25a5b5;var _0x22bb46;if(this[_0x4ed097(0x179)]=!0x0,((_0x22bb46=this[_0x4ed097(0x2cb)][_0x4ed097(0x1cf)]())==null?void 0x0:_0x22bb46['getUnitId']())!==this[_0x4ed097(0x2d0)])return;const _0x34fdfb=this[_0x4ed097(0x16a)][_0x4ed097(0x193)](_0x697c53)[_0x4ed097(0x242)]();Array['isArray'](_0x34fdfb)&&_0x34fdfb[_0x4ed097(0x330)]>0x0&&this[_0x4ed097(0x2da)](_0x34fdfb);}[_0x25a5b5(0x142)](){const _0x38a1bf=_0x25a5b5;this[_0x38a1bf(0x179)]=!0x1;}};xe=wi([A(0x2,_0x3b20a6(_0x11efa0)),A(0x3,_0x3b20a6(Ke)),A(0x4,_0x3b20a6(_0x5cb11a)),A(0x5,_0x3b20a6(ze)),A(0x6,_0x5055a5),A(0x7,_0x1c130e),A(0x8,_0x4d6a66)],xe);var xi=Object[_0x25a5b5(0x187)],Bi=(_0x5343e3,_0x390616,_0x28cf6b,_0xa7c281)=>{for(var _0x20ec04=_0xa7c281>0x1?void 0x0:_0xa7c281?xi(_0x390616,_0x28cf6b):_0x390616,_0x27895f=_0x5343e3['length']-0x1,_0x4f7c08;_0x27895f>=0x0;_0x27895f--)(_0x4f7c08=_0x5343e3[_0x27895f])&&(_0x20ec04=_0x4f7c08(_0x20ec04)||_0x20ec04);return _0x20ec04;},B=(_0x45b920,_0x164c2a)=>(_0x542b43,_0x27f0e6)=>_0x164c2a(_0x542b43,_0x27f0e6,_0x45b920);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xf834f2=[],_0x404241=!0x1;return _0x7c4070=>{const _0x3b3d1a=_0x2f8b;_0xf834f2[_0x3b3d1a(0x1e6)](_0x7c4070),_0x404241||(_0x404241=!0x0,setTimeout(()=>{const _0x59a283=_0x3b3d1a;_0xf834f2[_0x59a283(0x1af)](_0x501414=>_0x501414()),_0xf834f2=[],_0x404241=!0x1;}));};};let Be=class extends _0x11e081{constructor(_0x1df053,_0x33009c,_0xf18079,_0x462493,_0x1e2c8b,_0x53f4df,_0x4ce3ae,_0x102903){const _0x5a0993=_0x25a5b5;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5c2484(new Map())),_(this,_0x5a0993(0x1c0),this['_cursorInfo$'][_0x5a0993(0x1da)]()),_(this,'_roomMembers$',new _0x5c2484([])),_(this,_0x5a0993(0x281),this['_roomMembers$'][_0x5a0993(0x1e2)](_0x6d9d7b(Fi))),_(this,_0x5a0993(0x2da),_0x1ce8dc((_0x4eb048,_0x45bcdd)=>{const _0xdfa507=_0x5a0993,_0x41e335={'eventID':_0x13d77b['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xdfa507(0x183)][_0xdfa507(0x2a6)](),'selection':_0x16cb8d(_0x4eb048,_0x45bcdd[_0xdfa507(0x198)])}};this[_0xdfa507(0x183)][_0xdfa507(0x171)](_0x41e335,this[_0xdfa507(0x2d0)]);},ki)),(this['unitID']=_0x1df053,this[_0x5a0993(0x183)]=_0x33009c,this[_0x5a0993(0x16a)]=_0xf18079,this[_0x5a0993(0x2c7)]=_0x462493,this[_0x5a0993(0x13c)]=_0x1e2c8b,this[_0x5a0993(0x2cb)]=_0x53f4df,this['_commandService']=_0x4ce3ae,this['_refRangeService']=_0x102903);}get[_0x25a5b5(0x292)](){const _0x2b5f14=_0x25a5b5;return this[_0x2b5f14(0x20e)][_0x2b5f14(0x2b2)]();}get[_0x25a5b5(0x14d)](){const _0x561cf2=_0x25a5b5;return this[_0x561cf2(0x26a)][_0x561cf2(0x2b2)]();}[_0x25a5b5(0x2e2)](){const _0x196b83=_0x25a5b5;super[_0x196b83(0x2e2)](),this['_cursorInfo$']['next'](new Map()),this[_0x196b83(0x20e)][_0x196b83(0x221)](),this['_roomMembers$'][_0x196b83(0x195)]([]),this[_0x196b83(0x26a)]['complete']();}[_0x25a5b5(0x1bb)](){const _0x57bf98=_0x25a5b5;this[_0x57bf98(0x178)]||(this[_0x57bf98(0x178)]=!0x0,this[_0x57bf98(0x183)][_0x57bf98(0x367)][_0x57bf98(0x1e2)](_0x5b88aa(this[_0x57bf98(0x353)]))['subscribe'](_0x450e81=>{const _0x1afc3b=_0x57bf98;_0x450e81===_0x3ab3ab[_0x1afc3b(0x1e1)]?this[_0x1afc3b(0x1cd)]():this[_0x1afc3b(0x142)]();}),this[_0x57bf98(0x183)]['event$']['pipe'](_0x5b88aa(this[_0x57bf98(0x353)]))[_0x57bf98(0x2f3)](_0x3cec05=>{const _0x304505=_0x57bf98,_0x3fd86a=_0x3cec05[_0x304505(0x18d)];_0x3fd86a===_0x13d77b['UPDATE_CURSOR']&&this[_0x304505(0x20a)](_0x3cec05),_0x3fd86a===_0x13d77b[_0x304505(0x20f)]&&this[_0x304505(0x1b1)](_0x3cec05);}),this[_0x57bf98(0x36d)](),this[_0x57bf98(0x202)](this['_commandService']['onCommandExecuted'](_0x575a75=>{const _0x320cc3=_0x57bf98;if(this['_online']&&_0x575a75['id']===_0x2ef2bb['id']&&_0x575a75[_0x320cc3(0x1d0)][_0x320cc3(0x2e3)]===this[_0x320cc3(0x2d0)]){const _0x130e25=_0x575a75['params'];this[_0x320cc3(0x2da)](_0x130e25[_0x320cc3(0x272)],_0x130e25[_0x320cc3(0x38a)][0x0]);}})));}[_0x25a5b5(0x20a)](_0x4c494c){const _0x22fd11=_0x25a5b5;var _0x5d5676,_0x3a392b;const {memberID:_0x307959,selection:_0x36fbd3}=_0x4c494c['data'],{sheetName:_0x396111,range:_0x220d63}=_0x232aec(_0x36fbd3),_0x5ecf21={'name':(_0x3a392b=(_0x5d5676=this[_0x22fd11(0x13c)][_0x22fd11(0x1d1)](this[_0x22fd11(0x2d0)],_0x307959))==null?void 0x0:_0x5d5676[_0x22fd11(0x243)])!=null?_0x3a392b:_0x22fd11(0x275),'range':this['_getMergeRange'](_0x396111,_0x220d63),'sheetID':_0x396111,'color':this['_colorAssignService'][_0x22fd11(0x1f6)](_0x307959),'selection':_0x36fbd3},_0x49b77b=this[_0x22fd11(0x292)];_0x49b77b[_0x22fd11(0x145)](_0x307959,_0x5ecf21),this['_cursorInfo$'][_0x22fd11(0x195)](_0x49b77b);}[_0x25a5b5(0x1b1)](_0x48851a){const _0x144c4e=_0x25a5b5,{memberID:_0x3a4d4c}=_0x48851a[_0x144c4e(0x2c2)],_0x416172=this[_0x144c4e(0x292)];_0x416172[_0x144c4e(0x161)](_0x3a4d4c),this[_0x144c4e(0x20e)][_0x144c4e(0x195)](_0x416172);}[_0x25a5b5(0x1b0)](_0x74ec79,_0x1ea9ce){const _0x22805a=_0x25a5b5;var _0x67a991,_0x19994b;const _0x1884d3=(_0x19994b=(_0x67a991=this[_0x22805a(0x2cb)][_0x22805a(0x167)](this[_0x22805a(0x2d0)]))==null?void 0x0:_0x67a991['getSheetBySheetId'](_0x74ec79))==null?void 0x0:_0x19994b['getMergeData']();return(_0x1884d3==null?void 0x0:_0x1884d3[_0x22805a(0x387)](_0x5e4ea8=>_0xe6db7[_0x22805a(0x24f)](_0x5e4ea8,_0x1ea9ce)))||_0x1ea9ce;}[_0x25a5b5(0x36d)](){const _0x268728=_0x25a5b5,_0x282acf=new _0xc3c001(),_0x5df137=Hi(),_0x24f1c7=()=>{const _0x37ba69=_0x2f8b;_0x282acf['dispose']();const _0x1804ab=(_0x571257,_0x28c7e7,_0x270e52,_0x21c558)=>{const _0x5e4c44=_0x2f8b;let _0x126d84=[];switch(_0x571257['id']){case _0x4f0ab7['DeleteRangeMoveLeftCommandId']:{_0x126d84=_0x5b14e1(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x2e4)]:{_0x126d84=_0xfedcca(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x15b)]:{_0x126d84=_0x4efdb7(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x295)]:{_0x126d84=_0x35d697(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x200)]:{_0x126d84=_0x5ec068(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x2b3)]:{_0x126d84=_0x1aefad(_0x571257,_0x21c558);break;}case _0x4f0ab7['MoveRangeCommandId']:{_0x126d84=_0x277101(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x154)]:{_0x126d84=_0x58183f(_0x571257,_0x21c558);break;}case _0x4f0ab7[_0x5e4c44(0x30e)]:{_0x126d84=_0x31dd17(_0x571257,_0x21c558);break;}}const _0x37e0b6=_0x3e91a7(_0x126d84,_0x21c558),_0x2f11cc=this[_0x5e4c44(0x292)]['get'](_0x28c7e7);if(_0x2f11cc&&_0x37e0b6){const _0x5c4c64={..._0x2f11cc,'range':_0x37e0b6};this[_0x5e4c44(0x292)]['set'](_0x28c7e7,_0x5c4c64),_0x5df137(()=>{const _0x4b0961=_0x5e4c44,_0x4b292e=this['_refRangeService'][_0x4b0961(0x1a0)](_0x37e0b6,_0x5b5245=>(_0x4b292e[_0x4b0961(0x2e2)](),_0x1804ab(_0x5b5245,_0x28c7e7,_0x270e52,_0x37e0b6)));_0x282acf[_0x4b0961(0x324)](_0x4b292e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x37ba69(0x1af)]((_0x1ad4d8,_0x31c252)=>{const _0x5f210b=_0x37ba69,{range:_0x4265a3,sheetID:_0x5b14ba}=_0x1ad4d8,_0x171168=this[_0x5f210b(0x349)]['registerRefRange'](_0x4265a3,_0x44a52c=>(_0x171168[_0x5f210b(0x2e2)](),_0x1804ab(_0x44a52c,_0x31c252,_0x5b14ba,_0x4265a3)));_0x282acf['add'](_0x171168);});};this['disposeWithMe'](_0x4ec60f(this[_0x268728(0x20e)][_0x268728(0x2f3)](()=>{_0x24f1c7();})));}[_0x25a5b5(0x1cd)](){const _0x5495ba=_0x25a5b5;var _0xafa464,_0x38a12a;if(this[_0x5495ba(0x179)]=!0x0,((_0xafa464=this[_0x5495ba(0x2cb)][_0x5495ba(0x1cf)]())==null?void 0x0:_0xafa464[_0x5495ba(0x2bf)]())!==this[_0x5495ba(0x2d0)])return;const _0x4739e2=(_0x38a12a=this[_0x5495ba(0x16a)][_0x5495ba(0x193)](_0x31d6b1)['getCurrentSelections']())==null?void 0x0:_0x38a12a[0x0],_0x406eaf=this[_0x5495ba(0x2cb)][_0x5495ba(0x2c9)](_0x14055f[_0x5495ba(0x373)])[_0x5495ba(0x260)]();_0x4739e2&&_0x406eaf&&this['_updateLocalCursor'](_0x406eaf[_0x5495ba(0x1de)](),_0x4739e2);}[_0x25a5b5(0x142)](){const _0x1eec8e=_0x25a5b5;this[_0x1eec8e(0x179)]=!0x1;}};Be=Bi([B(0x2,_0x3b20a6(_0x11efa0)),B(0x3,_0x3b20a6(Ke)),B(0x4,_0x3b20a6(_0x5cb11a)),B(0x5,_0x1c130e),B(0x6,_0x4d6a66),B(0x7,_0x3b20a6(_0x5a8617))],Be);var Yi=Object[_0x25a5b5(0x187)],Wi=(_0x3e216a,_0x4a9180,_0x456c88,_0x430183)=>{for(var _0x238df0=_0x430183>0x1?void 0x0:_0x430183?Yi(_0x4a9180,_0x456c88):_0x4a9180,_0x2bd180=_0x3e216a['length']-0x1,_0x41f456;_0x2bd180>=0x0;_0x2bd180--)(_0x41f456=_0x3e216a[_0x2bd180])&&(_0x238df0=_0x41f456(_0x238df0)||_0x238df0);return _0x238df0;},Ce=(_0x3337a5,_0x24c086)=>(_0x5c997a,_0x1e2455)=>_0x24c086(_0x5c997a,_0x1e2455,_0x3337a5);let H=class extends _0x11e081{constructor(_0x5970b3,_0x226fbf,_0x5e1ff4){const _0x96d78c=_0x25a5b5;super(),_(this,'_entities',new Map()),_(this,_0x96d78c(0x364),new _0x581a0f()),(this[_0x96d78c(0x2cb)]=_0x5970b3,this[_0x96d78c(0x16a)]=_0x226fbf,this[_0x96d78c(0x249)]=_0x5e1ff4,this[_0x96d78c(0x178)]());}['dispose'](){const _0x240690=_0x25a5b5;super[_0x240690(0x2e2)](),this['_entityInit$']['complete'](),this['_entities'][_0x240690(0x1af)](_0x56588a=>_0x56588a['dispose']());}[_0x25a5b5(0x2cc)](_0x368885){const _0x1b7991=_0x25a5b5;return this[_0x1b7991(0x302)]['has'](_0x368885)?this[_0x1b7991(0x302)][_0x1b7991(0x193)](_0x368885)['cursorInfo$']:this[_0x1b7991(0x364)][_0x1b7991(0x1e2)](_0x5dd133(_0x5e0c55=>_0x5e0c55[_0x1b7991(0x2d0)]===_0x368885),_0x205b22(_0x220a19=>_0x220a19[_0x1b7991(0x1c0)]));}['_init'](){const _0x5c840c=_0x25a5b5;this[_0x5c840c(0x2cb)][_0x5c840c(0x181)](_0x14055f[_0x5c840c(0x373)])[_0x5c840c(0x1e2)](_0x5b88aa(this['dispose$']))[_0x5c840c(0x2f3)](async _0x540815=>{const _0x488843=_0x5c840c,_0x1bcbfd=_0x540815[_0x488843(0x2bf)](),_0x7b808b=await this[_0x488843(0x15e)](_0x1bcbfd);this['_entityInit$'][_0x488843(0x195)](_0x7b808b),this[_0x488843(0x302)][_0x488843(0x145)](_0x1bcbfd,_0x7b808b);}),this[_0x5c840c(0x2cb)][_0x5c840c(0x181)](_0x14055f[_0x5c840c(0x298)])[_0x5c840c(0x1e2)](_0x5b88aa(this['dispose$']))[_0x5c840c(0x1e2)](_0x5dd133(_0x4a50b2=>!_0x4a50b2['getUnitId']()[_0x5c840c(0x283)]('__')))[_0x5c840c(0x2f3)](async _0x38bd35=>{const _0x20911b=_0x5c840c,_0x241704=_0x38bd35[_0x20911b(0x2bf)](),_0x266d97=await this[_0x20911b(0x273)](_0x241704);this[_0x20911b(0x364)][_0x20911b(0x195)](_0x266d97),this['_entities']['set'](_0x241704,_0x266d97);}),_0x4ed569(this[_0x5c840c(0x2cb)][_0x5c840c(0x36c)](_0x14055f[_0x5c840c(0x298)]),this['_univerInstanceService'][_0x5c840c(0x36c)](_0x14055f[_0x5c840c(0x373)]))[_0x5c840c(0x1e2)](_0x5b88aa(this[_0x5c840c(0x353)]))[_0x5c840c(0x2f3)](_0x501a35=>{const _0x120315=_0x5c840c,_0x3cf684=_0x501a35[_0x120315(0x2bf)](),_0x166112=this[_0x120315(0x302)]['get'](_0x3cf684);_0x166112&&(_0x166112[_0x120315(0x2e2)](),this['_entities'][_0x120315(0x161)](_0x3cf684));});}async[_0x25a5b5(0x15e)](_0x456968){const _0xeac9f7=_0x25a5b5,_0x5293b0=await this[_0xeac9f7(0x249)][_0xeac9f7(0x2b1)](_0x456968),_0x2d1861=this[_0xeac9f7(0x16a)][_0xeac9f7(0x247)](Be,_0x456968,_0x5293b0);return _0x2d1861['init'](),_0x2d1861;}async[_0x25a5b5(0x273)](_0x133d62){const _0x78ed89=_0x25a5b5,_0xde6bb0=await this[_0x78ed89(0x249)]['requireSession'](_0x133d62),_0x5a8084=this[_0x78ed89(0x16a)][_0x78ed89(0x247)](xe,_0x133d62,_0xde6bb0);return _0x5a8084['init'](),_0x5a8084;}};H=Wi([Ce(0x0,_0x1c130e),Ce(0x1,_0x3b20a6(_0x11efa0)),Ce(0x2,_0x3b20a6(_0x4b9a97))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x152539,_0x4aabdf){const _0x2ce91b=_0x25a5b5;let {radius:_0x29f7b4,width:_0x4e8c26,height:_0x5e37a3}=_0x4aabdf;_0x29f7b4=_0x29f7b4!=null?_0x29f7b4:0x0,_0x4e8c26=_0x4e8c26!=null?_0x4e8c26:0x1e,_0x5e37a3=_0x5e37a3!=null?_0x5e37a3:0x1e;let _0x1d3033=0x0,_0xa41915=0x0,_0xa80b7f=0x0;_0x1d3033=_0xa41915=_0xa80b7f=Math[_0x2ce91b(0x310)](_0x29f7b4,_0x4e8c26/0x2,_0x5e37a3/0x2),_0x152539[_0x2ce91b(0x149)](),_0x152539['moveTo'](_0x1d3033,0x0),_0x152539['lineTo'](_0x4e8c26-_0xa41915,0x0),_0x152539[_0x2ce91b(0x25a)](_0x4e8c26-_0xa41915,_0xa41915,_0xa41915,Math['PI']*0x3/0x2,0x0,!0x1),_0x152539[_0x2ce91b(0x259)](_0x4e8c26,_0x5e37a3-_0xa80b7f),_0x152539[_0x2ce91b(0x25a)](_0x4e8c26-_0xa80b7f,_0x5e37a3-_0xa80b7f,_0xa80b7f,0x0,Math['PI']/0x2,!0x1),_0x152539[_0x2ce91b(0x259)](0x0,_0x5e37a3),_0x152539[_0x2ce91b(0x259)](0x0,_0x1d3033),_0x152539[_0x2ce91b(0x25a)](_0x1d3033,_0x1d3033,_0x1d3033,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x152539[_0x2ce91b(0x2e7)](),_0x4aabdf[_0x2ce91b(0x34c)]&&(_0x152539[_0x2ce91b(0x1aa)](),_0x152539[_0x2ce91b(0x21f)]=_0x4aabdf[_0x2ce91b(0x34c)],_0x4aabdf[_0x2ce91b(0x239)]==='evenodd'?_0x152539['fill'](_0x2ce91b(0x1f4)):_0x152539[_0x2ce91b(0x34c)](),_0x152539[_0x2ce91b(0x36f)]());}class ve extends _0x4eda9c{constructor(_0x22c594,_0x3045ae){const _0x4dec2c=_0x25a5b5;super(_0x22c594,_0x3045ae),_(this,_0x4dec2c(0x205)),_(this,_0x4dec2c(0x2f4)),(this[_0x4dec2c(0x205)]=_0x3045ae==null?void 0x0:_0x3045ae[_0x4dec2c(0x205)],this[_0x4dec2c(0x2f4)]=_0x3045ae==null?void 0x0:_0x3045ae['text']);}static[_0x25a5b5(0x2d3)](_0x45556c,_0x491c6d){const _0x56379d=_0x25a5b5,{text:_0x5c92a2,color:_0x909415}=_0x491c6d;_0x45556c[_0x56379d(0x1aa)](),_0x45556c[_0x56379d(0x1c8)]=_0x56379d(0x19d);const _0x6b6263=_0x45556c[_0x56379d(0x19b)](_0x5c92a2)[_0x56379d(0x1bf)],_0x45cf15=Math[_0x56379d(0x310)](_0x6b6263+0x2*Re,at);ji(_0x45556c,{'height':Q,'radius':0x4,'width':_0x45cf15,'fill':_0x909415}),_0x45556c[_0x56379d(0x21f)]=_0x56379d(0x1ae);const _0x3d4b3a=Re,_0x16f8c0=Q-Vi,_0xf8245b=at-0x2*Re;if(_0x6b6263>_0xf8245b){let _0x54b20c='',_0x5bd6d7=0x0;for(const _0x490ea0 of _0x5c92a2){const _0x29ef4c=_0x45556c[_0x56379d(0x19b)](_0x490ea0)[_0x56379d(0x1bf)];if(_0x5bd6d7+_0x29ef4c<=_0xf8245b-_0x45556c['measureText'](_0x56379d(0x363))['width'])_0x54b20c+=_0x490ea0,_0x5bd6d7+=_0x29ef4c;else{_0x54b20c+=_0x56379d(0x363);break;}}_0x45556c['fillText'](_0x54b20c,_0x3d4b3a,_0x16f8c0);}else _0x45556c[_0x56379d(0x285)](_0x5c92a2,_0x3d4b3a,_0x16f8c0);_0x45556c[_0x56379d(0x36f)]();}[_0x25a5b5(0x1ca)](_0x498b8b){const _0x241afd=_0x25a5b5;ve[_0x241afd(0x2d3)](_0x498b8b,this);}}const De=_0x25a5b5(0x266),Xi=_0x25a5b5(0x175),Gi=_0x25a5b5(0x311),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x25a5b5(0x204);class ct{constructor(_0x358c6e,_0x439f27,_0x58075a,_0x4123c8){const _0x1c8049=_0x25a5b5;_(this,_0x1c8049(0x23d),[]),_(this,_0x1c8049(0x19c),null),_(this,'_textBubble',null),_(this,_0x1c8049(0x2f6),null),_(this,_0x1c8049(0x207),null),_(this,_0x1c8049(0x332),null),(this[_0x1c8049(0x220)]=_0x358c6e,this[_0x1c8049(0x36e)]=_0x439f27,this['_docSkeleton']=_0x58075a,this['_document']=_0x4123c8,this['_render']());}set['_hover'](_0x40e5fa){const _0x14a998=_0x25a5b5;_0x40e5fa?(this['_anchorDot']&&this['_anchorDot'][_0x14a998(0x299)](),this[_0x14a998(0x37c)]&&this[_0x14a998(0x37c)][_0x14a998(0x342)]()):(this['_anchorDot']&&this[_0x14a998(0x2f6)][_0x14a998(0x342)](),this[_0x14a998(0x37c)]&&this[_0x14a998(0x37c)][_0x14a998(0x299)]());}[_0x25a5b5(0x2e2)](){const _0xc54b60=_0x25a5b5;for(const _0x5089d3 of this[_0xc54b60(0x23d)])_0x5089d3[_0xc54b60(0x2e2)]();this[_0xc54b60(0x37c)]&&this[_0xc54b60(0x37c)][_0xc54b60(0x2e2)](),this[_0xc54b60(0x2f6)]&&this['_anchorDot'][_0xc54b60(0x2e2)](),this[_0xc54b60(0x19c)]&&this['_anchor']['dispose'](),this[_0xc54b60(0x332)]&&this[_0xc54b60(0x332)]();}[_0x25a5b5(0x2a5)](){const _0x37cc7e=_0x25a5b5;var _0x255766;const {_docSkeleton:_0x28b583,_document:_0x408a87}=this,{color:_0xb0e5cb,name:_0x3118d7,ranges:_0x571695}=this[_0x37cc7e(0x220)],_0x4be166=_0x408a87[_0x37cc7e(0x371)](),{docsLeft:_0x266353,docsTop:_0x40e935}=_0x4be166,_0x537e14=new _0x30529c(_0x4be166,_0x28b583);for(const {startOffset:_0x754b9d,endOffset:_0x5bf672,rangeType:_0x5617cf,segmentId:_0x16ccd1,segmentPage:_0x1d421e,collapsed:_0x33be61,isActive:_0x55b9b9}of _0x571695){const _0x2a3b5c=_0x28b583['findNodePositionByCharIndex'](_0x754b9d,!0x0,_0x16ccd1,_0x1d421e);let _0x3640cf=_0x28b583[_0x37cc7e(0x316)](_0x5bf672,!0x0,_0x16ccd1,_0x1d421e);if(_0x3640cf==null&&(_0x3640cf=_0x28b583['findNodePositionByCharIndex'](_0x5bf672-0x1,!0x1,_0x16ccd1,_0x1d421e)),_0x55b9b9){const {contentBoxPointGroup:_0x1649e8}=_0x537e14['getRangePointData'](_0x3640cf,_0x3640cf);if(_0x1649e8[_0x37cc7e(0x330)]===0x0)continue;this[_0x37cc7e(0x23a)](_0xb0e5cb,_0x1649e8,_0x266353,_0x40e935,_0x3118d7),this[_0x37cc7e(0x332)]=this[_0x37cc7e(0x153)]();}if(_0x2a3b5c&&_0x3640cf){if(_0x5617cf===_0x6018fd[_0x37cc7e(0x2ac)]){const _0xe71fea=new _0x4ce43a(_0x4be166,_0x28b583),{pointGroup:_0x297c19}=(_0x255766=_0xe71fea[_0x37cc7e(0x206)](_0x2a3b5c,_0x3640cf))!=null?_0x255766:{};if(_0x297c19==null||_0x297c19[_0x37cc7e(0x330)]===0x0)continue;this['_drawRectRange'](_0xb0e5cb,_0x297c19,_0x266353,_0x40e935);}else{if(!_0x33be61){const {borderBoxPointGroup:_0x5e9ab4}=_0x537e14[_0x37cc7e(0x206)](_0x2a3b5c,_0x3640cf);if(_0x5e9ab4[_0x37cc7e(0x330)]===0x0)continue;this['_drawTextRange'](_0xb0e5cb,_0x5e9ab4,_0x266353,_0x40e935);}}}}}['_drawAnchor'](_0x34fa23,_0x219133,_0x54efd9,_0x33d98a,_0x30ee98){const _0x17a9ac=_0x25a5b5,_0xd98b37=this[_0x17a9ac(0x1fe)](_0x219133),{left:_0xdfabf0,top:_0x20c244,height:_0x5d09ed}=_0xd98b37,_0x26a260=this[_0x17a9ac(0x1c7)](),_0x24c374=zi/_0x26a260,_0x1efec3=new _0x51b191(De+_0x515f8f(z),{'left':_0xdfabf0+_0x54efd9-_0x24c374,'top':_0x20c244+_0x33d98a,'height':_0x5d09ed,'width':Ki,'fill':_0x34fa23||_0x24fc6e(_0x5163dd[_0x17a9ac(0x1c6)],0x0),'strokeWidth':_0x24c374,'stroke':Ji,'evented':!0x0});this[_0x17a9ac(0x19c)]=_0x1efec3,this[_0x17a9ac(0x36e)][_0x17a9ac(0x2c8)](_0x1efec3,_0x34717c);const _0x5781da=new _0x51b191(De+_0x515f8f(z),{'left':_0xdfabf0+_0x54efd9-_0x24c374,'top':_0x20c244+_0x33d98a-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x34fa23||_0x24fc6e(_0x5163dd[_0x17a9ac(0x1c6)],0x0),'strokeWidth':0x0,'stroke':_0x34fa23||_0x24fc6e(_0x5163dd[_0x17a9ac(0x1c6)],0x0),'evented':!0x1});this[_0x17a9ac(0x2f6)]=_0x5781da,this[_0x17a9ac(0x36e)]['addObject'](_0x5781da,_0x34717c);const _0x41f10f=new ve(De+_0x515f8f(z),{'left':_0xdfabf0+_0x54efd9-_0x24c374,'top':_0x20c244+_0x33d98a-Q,'text':_0x30ee98,'color':_0x34fa23});this[_0x17a9ac(0x37c)]=_0x41f10f,this[_0x17a9ac(0x36e)][_0x17a9ac(0x2c8)](_0x41f10f,_0x34717c),this[_0x17a9ac(0x255)]=!0x1;}[_0x25a5b5(0x153)](){const _0x2dc002=_0x25a5b5,_0x599fae=this[_0x2dc002(0x19c)][_0x2dc002(0x34d)]['subscribeEvent'](()=>{const _0x3ac020=_0x2dc002;this[_0x3ac020(0x255)]=!0x0;}),_0x3ccc40=this[_0x2dc002(0x19c)]['onPointerLeave$'][_0x2dc002(0x159)](()=>{const _0x520092=_0x2dc002;this[_0x520092(0x207)]&&clearTimeout(this[_0x520092(0x207)]),this[_0x520092(0x207)]=setTimeout(()=>{const _0x1774cd=_0x520092;this[_0x1774cd(0x255)]=!0x1;},0x7d0);});return()=>{const _0x27ec4c=_0x2dc002;_0x599fae[_0x27ec4c(0x32f)](),_0x3ccc40['unsubscribe']();};}[_0x25a5b5(0x1e9)](_0x4d11ff,_0xb74774,_0xf67e6e,_0x17169b){const _0x5d532b=_0x25a5b5,_0x56ea41=new _0x82e54c(_0x4d11ff)[_0x5d532b(0x2ea)](0.2)[_0x5d532b(0x140)](),_0x1ebc11=new _0xa342d(Xi+_0x515f8f(z),{'pointsGroup':_0xb74774,'fill':_0x56ea41||_0x24fc6e(_0x5163dd[_0x5d532b(0x1c6)],0.2),'left':_0xf67e6e,'top':_0x17169b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5d532b(0x23d)]['push'](_0x1ebc11),this[_0x5d532b(0x36e)][_0x5d532b(0x2c8)](_0x1ebc11,_0x34717c);}[_0x25a5b5(0x33f)](_0x50ad88,_0x5f0a9a,_0x3c9040,_0x3c6c4a){const _0x13df3c=_0x25a5b5,_0x42b7b6=new _0x82e54c(_0x50ad88)[_0x13df3c(0x2ea)](0.2)[_0x13df3c(0x140)](),_0x37fd4f=new _0xa342d(Gi+_0x515f8f(z),{'pointsGroup':_0x5f0a9a,'fill':_0x42b7b6||_0x24fc6e(_0x5163dd[_0x13df3c(0x1c6)],0.2),'left':_0x3c9040,'top':_0x3c6c4a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13df3c(0x23d)][_0x13df3c(0x1e6)](_0x37fd4f),this[_0x13df3c(0x36e)][_0x13df3c(0x2c8)](_0x37fd4f,_0x34717c);}[_0x25a5b5(0x1fe)](_0x52baa4){const _0x8575a3=_0x52baa4[0x0],_0xfa2b67=_0x8575a3[0x0],_0xddcae5=_0x8575a3[0x2],{x:_0x3ddc95,y:_0x3342d4}=_0xfa2b67,{x:_0x569221,y:_0x32ac7d}=_0xddcae5;return{'left':_0x3ddc95,'top':_0x3342d4,'width':_0x569221-_0x3ddc95,'height':_0x32ac7d-_0x3342d4};}[_0x25a5b5(0x1c7)](){const _0x502bba=_0x25a5b5,{scaleX:_0x138780,scaleY:_0x46ac14}=this[_0x502bba(0x36e)][_0x502bba(0x26b)]();return Math['max'](_0x138780,_0x46ac14);}}var Zi=Object[_0x25a5b5(0x187)],Qi=(_0x2faa3d,_0x1e91ac,_0x45c5f5,_0x44ce9f)=>{const _0x404fdc=_0x25a5b5;for(var _0x4316b4=_0x44ce9f>0x1?void 0x0:_0x44ce9f?Zi(_0x1e91ac,_0x45c5f5):_0x1e91ac,_0x3fba8c=_0x2faa3d[_0x404fdc(0x330)]-0x1,_0x5315a5;_0x3fba8c>=0x0;_0x3fba8c--)(_0x5315a5=_0x2faa3d[_0x3fba8c])&&(_0x4316b4=_0x5315a5(_0x4316b4)||_0x4316b4);return _0x4316b4;},ie=(_0xf8b9de,_0x764544)=>(_0xa38f7,_0x589836)=>_0x764544(_0xa38f7,_0x589836,_0xf8b9de);let Fe=class extends _0x11e081{constructor(_0x332896,_0x4e81e0,_0x1e23c0,_0x4b45da,_0x54f04c){const _0x17e688=_0x25a5b5;super(),_(this,_0x17e688(0x2ff),[]),_(this,_0x17e688(0x22e),[]),(this[_0x17e688(0x2dc)]=_0x332896,this[_0x17e688(0x151)]=_0x4e81e0,this['_collabCursorController']=_0x1e23c0,this[_0x17e688(0x1f1)]=_0x4b45da,this[_0x17e688(0x37f)]=_0x54f04c,this[_0x17e688(0x178)]());}['_init'](){const _0x3ac1a7=_0x25a5b5,_0xa3b95=this[_0x3ac1a7(0x2dc)][_0x3ac1a7(0x2e3)],_0x32886b=this[_0x3ac1a7(0x151)];this[_0x3ac1a7(0x202)](_0x1b05a9([this[_0x3ac1a7(0x38d)][_0x3ac1a7(0x2cc)](_0xa3b95),this[_0x3ac1a7(0x37f)][_0x3ac1a7(0x234)]])['pipe'](_0x9d038d(([_0x197e27,_0x5ab376])=>({'skeleton':_0x32886b['getSkeleton'](),'cursors':[..._0x197e27[_0x3ac1a7(0x382)]()]['flatMap'](_0x2d6479=>({..._0x2d6479,'color':this[_0x3ac1a7(0x37f)]['getColorFromTheme'](_0x2d6479[_0x3ac1a7(0x205)])}))})))['subscribe'](_0x5871a5=>{const _0x156375=_0x3ac1a7;if(this[_0x156375(0x287)](),_0x5871a5){const {skeleton:_0x581d33,cursors:_0x45e21f}=_0x5871a5;this[_0x156375(0x1f7)](_0x581d33,_0x45e21f);}})),this[_0x3ac1a7(0x2e8)](),this[_0x3ac1a7(0x30b)]();}[_0x25a5b5(0x1f7)](_0x2f773f,_0x154dc8){const _0x317b73=_0x25a5b5,{scene:_0x552722,mainComponent:_0x1eae88}=this[_0x317b73(0x2dc)],_0x4b78a0=_0x154dc8[_0x317b73(0x28b)](_0x132eab=>new ct(_0x132eab,_0x552722,_0x2f773f,_0x1eae88));this[_0x317b73(0x2ff)]=_0x4b78a0,this['_cursors']=_0x154dc8;}[_0x25a5b5(0x2a7)](){const _0x3484f4=_0x25a5b5;this['_removeCollabCursors']();const {scene:_0x30f084,mainComponent:_0x401d3d}=this['_context'],_0x14cfd1=this[_0x3484f4(0x151)][_0x3484f4(0x344)](),_0xd62196=this['_cursors'][_0x3484f4(0x28b)](_0x1fa072=>new ct(_0x1fa072,_0x30f084,_0x14cfd1,_0x401d3d));this[_0x3484f4(0x2ff)]=_0xd62196;}[_0x25a5b5(0x287)](){const _0x20bc2e=_0x25a5b5;this['_cursorShapes'][_0x20bc2e(0x1af)](_0x146518=>_0x146518[_0x20bc2e(0x2e2)]()),this[_0x20bc2e(0x2ff)]=[];}[_0x25a5b5(0x30b)](){const _0x39b329=_0x25a5b5,_0x3509da=[_0xf42b60['id']];this[_0x39b329(0x202)](this['_commandService']['onCommandExecuted'](_0x534534=>{const _0x2f73b9=_0x39b329;_0x3509da[_0x2f73b9(0x2ec)](_0x534534['id'])&&_0x534534[_0x2f73b9(0x1d0)][_0x2f73b9(0x2e3)]===this['_context'][_0x2f73b9(0x2e3)]&&this[_0x2f73b9(0x2a7)]();}));}['_initResize'](){const _0x7fde27=_0x25a5b5;this['disposeWithMe'](_0x317407(this[_0x7fde27(0x2dc)][_0x7fde27(0x2e1)][_0x7fde27(0x362)])['pipe'](_0x26dfe6(_0x2789bb=>_0x2789bb[_0x7fde27(0x369)]===_0xd12b7f[_0x7fde27(0x1ac)]),_0x3e44e8(0x10))[_0x7fde27(0x2f3)](()=>{const _0x4b0d8f=_0x7fde27;this[_0x4b0d8f(0x2a7)]();}));}};Fe=Qi([ie(0x1,_0x3b20a6(_0x32ee5a)),ie(0x2,_0x3b20a6(H)),ie(0x3,_0x4d6a66),ie(0x4,_0x3b20a6(_0x42b0e9))],Fe);const qi=0x1,en=1.5;class tn extends _0x4eda9c{constructor(_0xc329d9,_0x32493b){const _0x45a8f7=_0x25a5b5;super(_0xc329d9,_0x32493b),_(this,_0x45a8f7(0x2de)),_(this,_0x45a8f7(0x346),!0x1),_(this,_0x45a8f7(0x2f8)),_(this,_0x45a8f7(0x240),''),_(this,'_labelPosition',_0x45a8f7(0x229)),_(this,'_backgroundColor'),(_0x32493b&&this['setShapeProps'](_0x32493b),this[_0x45a8f7(0x34d)][_0x45a8f7(0x159)](()=>this[_0x45a8f7(0x1a8)]({'hovered':!0x0})),this[_0x45a8f7(0x223)][_0x45a8f7(0x159)](()=>this[_0x45a8f7(0x1a8)]({'hovered':!0x1})));}[_0x25a5b5(0x1a8)](_0xdce747){const _0x51b49b=_0x25a5b5;var _0x5525a6,_0x5c3c97,_0x5be476,_0x104ab8,_0x271c09,_0x187197;this[_0x51b49b(0x2de)]=(_0x5525a6=_0xdce747[_0x51b49b(0x205)])!=null?_0x5525a6:this[_0x51b49b(0x2de)],this['_hovered']=(_0x5c3c97=_0xdce747[_0x51b49b(0x38c)])!=null?_0x5c3c97:this['_hovered'],this[_0x51b49b(0x2f8)]=(_0x5be476=_0xdce747[_0x51b49b(0x198)])!=null?_0x5be476:this[_0x51b49b(0x2f8)],this[_0x51b49b(0x240)]=(_0x104ab8=_0xdce747[_0x51b49b(0x243)])!=null?_0x104ab8:this[_0x51b49b(0x240)],this[_0x51b49b(0x2ab)]=(_0x271c09=_0xdce747['labelPosition'])!=null?_0x271c09:this[_0x51b49b(0x2ab)],this['_backgroundColor']=(_0x187197=_0xdce747['backgroundColor'])!=null?_0x187197:this['_backgroundColor'],this[_0x51b49b(0x2a2)]({'width':_0xdce747[_0x51b49b(0x1bf)],'height':_0xdce747[_0x51b49b(0x305)]});}['onMouseMove'](_0xbfad7e){const _0xde6951=_0x25a5b5,{row:_0x40065e,column:_0x4acfbb}=_0xbfad7e;if(_0x40065e>=this[_0xde6951(0x2f8)][_0xde6951(0x37b)]&&_0x40065e<=this[_0xde6951(0x2f8)][_0xde6951(0x18e)]&&_0x4acfbb>=this[_0xde6951(0x2f8)][_0xde6951(0x1d4)]&&_0x4acfbb<=this[_0xde6951(0x2f8)][_0xde6951(0x224)]){this[_0xde6951(0x1a8)]({'hovered':!0x0});return;}this[_0xde6951(0x1a8)]({'hovered':!0x1});}[_0x25a5b5(0x2cf)](_0x23eabb){return!0x1;}['_draw'](_0x414757){const _0x32ba19=_0x25a5b5;_0x51b191[_0x32ba19(0x2d3)](_0x414757,{'width':this[_0x32ba19(0x1bf)],'height':this[_0x32ba19(0x305)],'strokeWidth':en,'stroke':this[_0x32ba19(0x2de)],'evented':!0x1,'fill':this[_0x32ba19(0x2e9)]}),this[_0x32ba19(0x346)]&&(_0x414757[_0x32ba19(0x1aa)](),_0x414757[_0x32ba19(0x28d)](0x1,0x0,0x0,0x1,this[_0x32ba19(0x1bf)],this[_0x32ba19(0x2ab)]==='bottom'?0x0:-Q),ve[_0x32ba19(0x2d3)](_0x414757,{'text':this[_0x32ba19(0x240)],'color':this[_0x32ba19(0x2de)]}),_0x414757[_0x32ba19(0x36f)]());}}var sn=Object[_0x25a5b5(0x187)],nn=(_0x45bb17,_0x377cf9,_0xfdbaff,_0x45c981)=>{const _0x336a42=_0x25a5b5;for(var _0x25fc96=_0x45c981>0x1?void 0x0:_0x45c981?sn(_0x377cf9,_0xfdbaff):_0x377cf9,_0x56df7c=_0x45bb17[_0x336a42(0x330)]-0x1,_0x23580b;_0x56df7c>=0x0;_0x56df7c--)(_0x23580b=_0x45bb17[_0x56df7c])&&(_0x25fc96=_0x23580b(_0x25fc96)||_0x25fc96);return _0x25fc96;},be=(_0x5c3127,_0x43064d)=>(_0x49da91,_0x516c02)=>_0x43064d(_0x49da91,_0x516c02,_0x5c3127);const rn=0x1389;let ke=class extends _0x11e081{constructor(_0x42dd82,_0x2f3d8f,_0x5ededd,_0x5385b6){const _0x21b3e4=_0x25a5b5;super(),_(this,_0x21b3e4(0x22e),new Set()),_(this,_0x21b3e4(0x26f),null),(this[_0x21b3e4(0x2dc)]=_0x42dd82,this[_0x21b3e4(0x15a)]=_0x2f3d8f,this[_0x21b3e4(0x38d)]=_0x5ededd,this[_0x21b3e4(0x37f)]=_0x5385b6,this[_0x21b3e4(0x178)]());}[_0x25a5b5(0x178)](){const _0x367897=_0x25a5b5;this[_0x367897(0x15a)][_0x367897(0x372)][_0x367897(0x1e2)](_0x5d8c44(this[_0x367897(0x353)]),_0x3266f6(_0x36de97=>{const _0x3c9aa5=_0x367897;if(_0x36de97){const _0x35579c=_0x36de97[_0x3c9aa5(0x18f)];return _0x1b05a9(this[_0x3c9aa5(0x38d)][_0x3c9aa5(0x2cc)](this[_0x3c9aa5(0x2dc)]['unitId']),this['_themeService'][_0x3c9aa5(0x234)])[_0x3c9aa5(0x1e2)](_0x9d038d(([_0x23ed38,_0x144898])=>{const _0x1621d0=_0x3c9aa5,_0x56e0d8=new Map();return _0x23ed38[_0x1621d0(0x1af)]((_0x267842,_0x420733)=>{const _0x31761b=_0x1621d0;if(_0x267842[_0x31761b(0x2db)]===_0x35579c){const _0x377811={..._0x267842};_0x377811[_0x31761b(0x205)]=this[_0x31761b(0x37f)][_0x31761b(0x280)](_0x267842[_0x31761b(0x205)]),_0x56e0d8[_0x31761b(0x145)](_0x420733,_0x377811);}}),{'skeleton':_0x36de97,'cursors':_0x56e0d8};}));}return _0x4dbe8c({'skeleton':null,'cursors':new Map()});}))[_0x367897(0x2f3)](({skeleton:_0x48e1cd,cursors:_0x263c85})=>{const _0x3f0db7=_0x367897;this['_removeCollabCursors'](),_0x48e1cd&&this[_0x3f0db7(0x1f7)](_0x48e1cd,_0x263c85);}),this['_sheetSkeletonManagerService'][_0x367897(0x372)]['subscribe'](_0x54df93=>{const _0x12aa1f=_0x367897;if(_0x54df93==null)return;const {skeleton:_0x4ead7a}=_0x54df93,{scene:_0x4322f8}=this['_context'];_0x4322f8[_0x12aa1f(0x296)][_0x12aa1f(0x159)](_0x1ce8dc(_0x266469=>{const _0x4618a5=_0x12aa1f;var _0x2a23ee,_0x525630;const {offsetX:_0x1f43da,offsetY:_0x552df3}=_0x266469,{x:_0x219aba,y:_0x4a9d89}=_0x4322f8[_0x4618a5(0x32a)](_0x16183f[_0x4618a5(0x150)]([_0x1f43da,_0x552df3])),{scaleX:_0x2e4f9e,scaleY:_0x30810f}=_0x4322f8[_0x4618a5(0x26b)](),_0x246d63=_0x4322f8['getViewport'](_0x537df4[_0x4618a5(0x33e)]),_0x637980=_0x4322f8[_0x4618a5(0x376)](_0x16183f['FromArray']([_0x219aba,_0x4a9d89]),_0x246d63),_0x55970a=_0x4ead7a[_0x4618a5(0x208)](_0x1f43da,_0x552df3,_0x2e4f9e,_0x30810f,_0x637980);((_0x2a23ee=this['_lastPointer'])==null?void 0x0:_0x2a23ee[_0x4618a5(0x2bc)])===_0x55970a[_0x4618a5(0x2bc)]&&((_0x525630=this[_0x4618a5(0x26f)])==null?void 0x0:_0x525630[_0x4618a5(0x31e)])===_0x55970a[_0x4618a5(0x31e)]||this[_0x4618a5(0x22e)][_0x4618a5(0x1af)](_0x3c7a4c=>{_0x3c7a4c['onMouseMove'](_0x55970a);});},0x64));});}[_0x25a5b5(0x1f7)](_0x37c2e2,_0x185351){const _0x2bb5aa=_0x25a5b5;var _0x1966ea;const _0x5772bf=(_0x1966ea=this[_0x2bb5aa(0x15a)][_0x2bb5aa(0x2fd)]())==null?void 0x0:_0x1966ea[_0x2bb5aa(0x327)];if(!_0x5772bf)return;const _0x29f932=this[_0x2bb5aa(0x2f1)]();if(!_0x29f932)return;this[_0x2bb5aa(0x22e)][_0x2bb5aa(0x1af)](_0x42ce8f=>{_0x42ce8f['makeDirty']();});const {scene:_0x19fcd7}=_0x29f932,_0x23c814=on(Array[_0x2bb5aa(0x325)](_0x185351[_0x2bb5aa(0x382)]()))[_0x2bb5aa(0x28b)](_0x43b133=>{const _0x15b5d9=_0x2bb5aa,{color:_0x52cb63,range:_0x350255,name:_0x410b88,selection:_0x595d8f,sheetID:_0x1080ac}=_0x43b133,{startColumn:_0x398085,startRow:_0x51e1e0,endColumn:_0x1e1496,endRow:_0xff85d6}=_0x350255,_0x354c7c=_0x19cfdc(_0x51e1e0,_0x398085,_0x19fcd7,_0x5772bf),_0x457141=_0x19cfdc(_0xff85d6,_0x1e1496,_0x19fcd7,_0x5772bf),{columnHeaderHeightAndMarginTop:_0x54037e}=_0x5772bf,{startX:_0x18d2f7,startY:_0x3f6a65}=_0x354c7c,{endX:_0x3b02c4,endY:_0x1736f8}=_0x457141,_0x1e9f22=_0x3b02c4-_0x18d2f7,_0x8f2840=_0x1736f8-_0x3f6a65,_0x13fdb8={'labelPosition':_0x3f6a65-_0x54037e>=Q?'top':_0x15b5d9(0x374),'sheetID':_0x1080ac,'range':_0x350255,'color':_0x52cb63,'name':_0x410b88,'selection':_0x595d8f,'left':_0x18d2f7,'top':_0x3f6a65,'width':_0x1e9f22,'height':_0x8f2840,'evented':!0x1,'zIndex':rn};return new tn(_0x410b88,_0x13fdb8);});_0x19fcd7[_0x2bb5aa(0x241)](_0x23c814,qi),this[_0x2bb5aa(0x22e)]=new Set(_0x23c814);}[_0x25a5b5(0x287)](){const _0x5cd8c8=_0x25a5b5;var _0x4716e2;(_0x4716e2=this[_0x5cd8c8(0x22e)])==null||_0x4716e2['forEach'](_0x5660e8=>_0x5660e8['dispose']());}[_0x25a5b5(0x2f1)](){const _0x523202=_0x25a5b5;return _0x231157(this['_context'][_0x523202(0x24d)],this[_0x523202(0x2dc)]);}};ke=nn([be(0x1,_0x3b20a6(_0x2e6edd)),be(0x2,_0x3b20a6(H)),be(0x3,_0x3b20a6(_0x42b0e9))],ke);function on(_0x2d68c7){const _0x4f4d64=_0x25a5b5,_0x28e887=new Map();return _0x2d68c7[_0x4f4d64(0x1af)](_0x536860=>{const _0x2124c5=_0x4f4d64;if(_0x28e887[_0x2124c5(0x291)](_0x536860[_0x2124c5(0x17d)])){const _0x388b0f=_0x28e887[_0x2124c5(0x193)](_0x536860[_0x2124c5(0x17d)]);_0x388b0f[_0x2124c5(0x243)]+=',\x20'+_0x536860['name'];}else _0x28e887[_0x2124c5(0x145)](_0x536860[_0x2124c5(0x17d)],_0x536860);}),Array[_0x4f4d64(0x325)](_0x28e887[_0x4f4d64(0x382)]());}var an=Object[_0x25a5b5(0x187)],cn=(_0x300c49,_0x3cec68,_0x592233,_0x162383)=>{const _0x3b65c0=_0x25a5b5;for(var _0x1baa77=_0x162383>0x1?void 0x0:_0x162383?an(_0x3cec68,_0x592233):_0x3cec68,_0xe36215=_0x300c49[_0x3b65c0(0x330)]-0x1,_0x157a51;_0xe36215>=0x0;_0xe36215--)(_0x157a51=_0x300c49[_0xe36215])&&(_0x1baa77=_0x157a51(_0x1baa77)||_0x1baa77);return _0x1baa77;},F=(_0x2b7131,_0x48b080)=>(_0x273622,_0x17d5e1)=>_0x48b080(_0x273622,_0x17d5e1,_0x2b7131);let _e=class extends _0x55a5c6{constructor(_0x43a183,_0xceac38,_0x2964f3,_0x29d1f9,_0x2aa539,_0x5c3db1){const _0x512e28=_0x25a5b5;super(),this['_beforeCloseService']=_0x43a183,this[_0x512e28(0x21d)]=_0xceac38,this[_0x512e28(0x16b)]=_0x2964f3,this['_messageService']=_0x29d1f9,this[_0x512e28(0x203)]=_0x2aa539,this['_localeService']=_0x5c3db1,this[_0x512e28(0x30d)](),this[_0x512e28(0x379)]();}[_0x25a5b5(0x30d)](){const _0x30aaca=_0x25a5b5;this[_0x30aaca(0x202)](this[_0x30aaca(0x1ee)][_0x30aaca(0x222)](()=>{const _0x5712a3=_0x30aaca;if(this[_0x5712a3(0x21d)][_0x5712a3(0x31b)][_0x5712a3(0x29a)])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}[_0x25a5b5(0x379)](){const _0x815bc5=_0x25a5b5;this[_0x815bc5(0x202)](this[_0x815bc5(0x16b)][_0x815bc5(0x201)][_0x815bc5(0x2f3)](_0x4f51a6=>{const _0x543a78=_0x815bc5;_0x4f51a6['id']===_0x52d382[_0x543a78(0x307)]&&this[_0x543a78(0x233)]['show']({'type':_0x216228[_0x543a78(0x168)],'content':this[_0x543a78(0x355)]['t'](_0x543a78(0x2df))}),_0x4f51a6['id']===_0x52d382['CLOSE_ROOM']&&this[_0x543a78(0x233)][_0x543a78(0x342)]({'type':_0x216228[_0x543a78(0x168)],'content':this[_0x543a78(0x355)]['t'](_0x543a78(0x1d8))}),_0x4f51a6['id']===_0x52d382[_0x543a78(0x314)]&&this[_0x543a78(0x203)][_0x543a78(0x342)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x543a78(0x355)]['t']('permission.content'),'type':_0x543a78(0x22a),'duration':0x0}),_0x4f51a6['id']===_0x52d382[_0x543a78(0x28f)]&&this[_0x543a78(0x233)][_0x543a78(0x342)]({'type':_0x216228['Error'],'content':this[_0x543a78(0x355)]['t'](_0x543a78(0x1d8))+'('+_0x4f51a6[_0x543a78(0x2c2)]+')'}),_0x4f51a6['id']===_0x52d382[_0x543a78(0x1d2)]&&this[_0x543a78(0x233)]['show']({'type':_0x216228[_0x543a78(0x168)],'content':this[_0x543a78(0x355)]['t'](_0x4f51a6['data']||'')}),_0x4f51a6['id']===_0x52d382['SOCKET_FAILED_RETRY']&&this[_0x543a78(0x233)][_0x543a78(0x342)]({'type':_0x216228[_0x543a78(0x168)],'content':this['_localeService']['t'](_0x543a78(0x368))}),_0x4f51a6['id']===_0x52d382['SOCKET_FAILED']&&this['_messageService'][_0x543a78(0x342)]({'type':_0x216228[_0x543a78(0x1ec)],'content':this[_0x543a78(0x355)]['t'](_0x543a78(0x294))}),_0x4f51a6['id']===_0x52d382[_0x543a78(0x22d)]&&this[_0x543a78(0x233)][_0x543a78(0x342)]({'type':_0x216228[_0x543a78(0x1ec)],'content':this[_0x543a78(0x355)]['t'](_0x543a78(0x1ab))});}));}};_e=cn([F(0x0,_0x3d7fb9),F(0x1,_0x7afea0),F(0x2,_0x3b20a6(_0x1f6473)),F(0x3,_0x3f63df),F(0x4,_0x39767e),F(0x5,_0x3b20a6(_0x54f2ff))],_e);var _n=Object[_0x25a5b5(0x187)],ln=(_0x34fcb4,_0x369e16,_0x56ac5b,_0x1614db)=>{const _0x4ea9af=_0x25a5b5;for(var _0x4327ff=_0x1614db>0x1?void 0x0:_0x1614db?_n(_0x369e16,_0x56ac5b):_0x369e16,_0x25429a=_0x34fcb4[_0x4ea9af(0x330)]-0x1,_0x2e20f6;_0x25429a>=0x0;_0x25429a--)(_0x2e20f6=_0x34fcb4[_0x25429a])&&(_0x4327ff=_0x2e20f6(_0x4327ff)||_0x4327ff);return _0x4327ff;},ne=(_0x553453,_0x4c28d0)=>(_0x192f9c,_0x201a73)=>_0x4c28d0(_0x192f9c,_0x201a73,_0x553453);let le=class extends _0x55a5c6{constructor(_0x349ebd,_0x5cee2e,_0x3aebae,_0x27ca0d){const _0x23ba02=_0x25a5b5;super(),_(this,_0x23ba02(0x345)),(this[_0x23ba02(0x16a)]=_0x349ebd,this[_0x23ba02(0x1f0)]=_0x5cee2e,this[_0x23ba02(0x1f8)]=_0x3aebae,this[_0x23ba02(0x182)]=_0x27ca0d,this[_0x23ba02(0x178)]());}[_0x25a5b5(0x178)](){const _0x1a5ed4=_0x25a5b5;this[_0x1a5ed4(0x147)](),this[_0x1a5ed4(0x180)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}['_initUserListener'](){const _0x4dd0db=_0x25a5b5;this[_0x4dd0db(0x202)](this[_0x4dd0db(0x182)][_0x4dd0db(0x245)][_0x4dd0db(0x2f3)](_0x3031d7=>{const _0xdd9182=_0x4dd0db;this[_0xdd9182(0x345)]=_0x3031d7==null?void 0x0:_0x3031d7[_0xdd9182(0x21b)];}));}['_initWindowErrorListener'](){const _0x27fc63=_0x25a5b5,_0x5c946b=_0x14fd06=>{const _0x44afb0=_0x2f8b;var _0x1f41ed;this[_0x44afb0(0x35b)](_0x44afb0(0x22a),_0x44afb0(0x383)+_0x14fd06[_0x44afb0(0x213)]+_0x44afb0(0x34a)+_0x14fd06[_0x44afb0(0x212)]+':'+_0x14fd06[_0x44afb0(0x146)]+':'+_0x14fd06[_0x44afb0(0x35a)]+'\x0a'+(((_0x1f41ed=_0x14fd06[_0x44afb0(0x22a)])==null?void 0x0:_0x1f41ed[_0x44afb0(0x329)])||''));};window[_0x27fc63(0x2d2)](_0x27fc63(0x22a),_0x5c946b),this[_0x27fc63(0x202)](()=>{const _0x321442=_0x27fc63;window[_0x321442(0x1a4)](_0x321442(0x22a),_0x5c946b);});}[_0x25a5b5(0x180)](){const _0x443ae9=_0x25a5b5,_0x4ec394=_0xebe608=>{const _0x5887af=_0x2f8b;this[_0x5887af(0x35b)](_0x5887af(0x22a),_0x5887af(0x31c)+_0xebe608[_0x5887af(0x13d)]);};window[_0x443ae9(0x2d2)](_0x443ae9(0x1f5),_0x4ec394),this[_0x443ae9(0x202)](()=>{window['removeEventListener']('unhandledrejection',_0x4ec394);});}[_0x25a5b5(0x235)](){const _0x4f8288=_0x25a5b5,_0x9a6084=this[_0x4f8288(0x1f8)][_0x4f8288(0x22a)][_0x4f8288(0x32c)](this[_0x4f8288(0x1f8)]);this['_logService'][_0x4f8288(0x22a)]=(..._0x291b16)=>{const _0x4902c2=_0x4f8288,_0x5d0d6e=_0x291b16['map'](_0x3a9c76=>_0x3a9c76 instanceof Error?_0x3a9c76[_0x4902c2(0x213)]+'\x0a'+_0x3a9c76[_0x4902c2(0x329)]:String(_0x3a9c76))[_0x4902c2(0x336)]('\x20');this[_0x4902c2(0x35b)](_0x4902c2(0x22a),_0x4902c2(0x2fc)+_0x5d0d6e),_0x9a6084(..._0x291b16);},this[_0x4f8288(0x202)](()=>{const _0x245caa=_0x4f8288;this[_0x245caa(0x1f8)][_0x245caa(0x22a)]=_0x9a6084;});}['_uploadLog'](_0x3c02c4,_0x3c413b){const _0x2f6f95=_0x25a5b5;try{const _0x49c796={'userId':this[_0x2f6f95(0x345)],'logLabel':_0x3c02c4,'content':_0x3c413b};this[_0x2f6f95(0x1f0)][_0x2f6f95(0x21c)]('/universer-api/frontend/logs',{'body':_0x49c796})['catch'](()=>{});}catch{}}};le=ln([ne(0x0,_0x3b20a6(_0x11efa0)),ne(0x1,_0x3b20a6(_0x188c95)),ne(0x2,_0x21a2cc),ne(0x3,_0x3b20a6(_0x4b9a97))],le);const hn=_0x25a5b5(0x16d),_t={};var un=Object[_0x25a5b5(0x187)],dn=(_0x550724,_0x16869b,_0x4b8bee,_0x5cfffa)=>{const _0x5367e1=_0x25a5b5;for(var _0x1f7c91=_0x5cfffa>0x1?void 0x0:_0x5cfffa?un(_0x16869b,_0x4b8bee):_0x16869b,_0x2745f2=_0x550724[_0x5367e1(0x330)]-0x1,_0xee8b85;_0x2745f2>=0x0;_0x2745f2--)(_0xee8b85=_0x550724[_0x2745f2])&&(_0x1f7c91=_0xee8b85(_0x1f7c91)||_0x1f7c91);return _0x1f7c91;},lt=(_0x56ac90,_0x17a445)=>(_0x49bef0,_0x5e9f9d)=>_0x17a445(_0x49bef0,_0x5e9f9d,_0x56ac90);let he=class{constructor(_0x59aaed,_0x29d3b7){const _0x498257=_0x25a5b5;this['_transformService']=_0x59aaed,this[_0x498257(0x166)]=_0x29d3b7;}[_0x25a5b5(0x1ce)](_0xdfd87a){const _0x35bd29=_0x25a5b5;this[_0x35bd29(0x1a7)](_0xdfd87a),this[_0x35bd29(0x2b5)](_0xdfd87a);}[_0x25a5b5(0x15f)](_0x5265a5){const _0x5440ba=_0x25a5b5,{unitID:_0xc6be2b}=_0x5265a5,_0xb1d657=this[_0x5440ba(0x166)][_0x5440ba(0x248)](_0xc6be2b)[_0x5440ba(0x25e)](_0x444144),{redoCache:_0x514bea}=_0xb1d657['getUndoRedoMutationParamsCache']();if(_0x514bea[_0x5440ba(0x330)]===0x0)return _0x5265a5;let _0x29ed1c=_0x558854[_0x5440ba(0x190)](_0x5265a5[_0x5440ba(0x1e8)][0x0]);for(let _0x3746d7=0x0;_0x3746d7<_0x514bea[_0x5440ba(0x330)];_0x3746d7++){const _0x181cea={'id':_0x5440ba(0x306),'params':{..._0x514bea[_0x3746d7]}},_0x616122=this['_transformService']['transformMutation'](_0x29ed1c,_0x181cea,!0x1);if(_0x891290(_0x616122))throw _0x616122[_0x5440ba(0x22a)];_0x29ed1c=_0x616122[_0x5440ba(0x24c)];}return{..._0x558854[_0x5440ba(0x190)](_0x5265a5),'mutations':[_0x29ed1c]};}[_0x25a5b5(0x1a7)](_0x36cd3a){const _0x5e41ba=_0x25a5b5,{unitID:_0x48f900}=_0x36cd3a,_0x510b2f=this[_0x5e41ba(0x166)][_0x5e41ba(0x248)](_0x48f900)[_0x5e41ba(0x25e)](_0x444144),{undoCache:_0x2733db,redoCache:_0x7d8638}=_0x510b2f['getUndoRedoMutationParamsCache']();if(_0x2733db[_0x5e41ba(0x330)]===0x0||_0x7d8638[_0x5e41ba(0x330)]===0x0)return;const _0x2c24d1=[],_0x20ca2f=[];let _0x2ff9f9=_0x558854[_0x5e41ba(0x190)](_0x36cd3a[_0x5e41ba(0x1e8)][0x0]),_0x29f0fc=_0x558854[_0x5e41ba(0x190)](_0x36cd3a[_0x5e41ba(0x1e8)][0x0]);for(let _0xaa3d4d=_0x2733db[_0x5e41ba(0x330)]-0x1;_0xaa3d4d>=0x0;_0xaa3d4d--){const _0x4ace1d={'id':_0x5e41ba(0x306),'params':{..._0x2733db[_0xaa3d4d]}},_0x1c9bd7={'id':_0x5e41ba(0x306),'params':{..._0x7d8638[_0xaa3d4d]}},_0x3b51fd=this[_0x5e41ba(0x25b)][_0x5e41ba(0x217)](_0x2ff9f9,_0x4ace1d,!0x1),_0x19405c=this[_0x5e41ba(0x25b)][_0x5e41ba(0x217)](_0x29f0fc,_0x1c9bd7,!0x1);if(_0x891290(_0x3b51fd))throw _0x3b51fd[_0x5e41ba(0x22a)];if(_0x891290(_0x19405c))throw _0x19405c['error'];_0x2c24d1['unshift'](_0x3b51fd[_0x5e41ba(0x17f)][_0x5e41ba(0x1d0)]),_0x20ca2f[_0x5e41ba(0x26d)](_0x19405c['m2Prime']['params']),_0x2ff9f9=_0x3b51fd[_0x5e41ba(0x24c)],_0x29f0fc=_0x19405c[_0x5e41ba(0x24c)];}_0x510b2f[_0x5e41ba(0x209)]({'undoCache':_0x2c24d1,'redoCache':_0x20ca2f});}[_0x25a5b5(0x2b5)](_0x48ccde){const _0x1523cc=_0x25a5b5,{unitID:_0x1c76f2}=_0x48ccde,_0x840fbf=this[_0x1523cc(0x166)][_0x1523cc(0x248)](_0x1c76f2)[_0x1523cc(0x25e)](_0x444144),_0x3a2369=_0x840fbf[_0x1523cc(0x34e)]();if(_0x3a2369==null)return;const _0x15b23f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48ccde[_0x1523cc(0x2d0)],'actions':null,'textRanges':[_0x3a2369]}}],_0x4d92c7=this[_0x1523cc(0x25b)][_0x1523cc(0x19e)](_0x48ccde,_0x15b23f);if(!_0x17f204(_0x4d92c7))throw _0x4d92c7[_0x1523cc(0x22a)];const _0x498d51=_0x4d92c7[_0x1523cc(0x17f)][0x0][_0x1523cc(0x1d0)][_0x1523cc(0x1e5)];Array[_0x1523cc(0x1f3)](_0x498d51)&&_0x498d51['length']&&_0x840fbf[_0x1523cc(0x1c1)](_0x498d51[0x0]);}};he=dn([lt(0x0,_0x5055a5),lt(0x1,_0x129792)],he);var Sn=Object[_0x25a5b5(0x187)],In=(_0x46709c,_0x326468,_0x4790ae,_0xdaba87)=>{const _0x4dbfa3=_0x25a5b5;for(var _0x40d5e0=_0xdaba87>0x1?void 0x0:_0xdaba87?Sn(_0x326468,_0x4790ae):_0x326468,_0x85833d=_0x46709c[_0x4dbfa3(0x330)]-0x1,_0x43cb64;_0x85833d>=0x0;_0x85833d--)(_0x43cb64=_0x46709c[_0x85833d])&&(_0x40d5e0=_0x43cb64(_0x40d5e0)||_0x40d5e0);return _0x40d5e0;},Le=(_0x56e26d,_0x1ce403)=>(_0x102600,_0x256075)=>_0x1ce403(_0x102600,_0x256075,_0x56e26d);let ue=class{constructor(_0x41bd4e,_0x2184ee,_0x2d492b){const _0x184048=_0x25a5b5;this[_0x184048(0x16a)]=_0x41bd4e,this[_0x184048(0x25b)]=_0x2184ee,this[_0x184048(0x199)]=_0x2d492b;}[_0x25a5b5(0x334)](_0x3aa135){const _0x39dca8=_0x25a5b5;this[_0x39dca8(0x1fc)](_0x3aa135);}[_0x25a5b5(0x15f)](_0x59e25d){const _0x1631b4=_0x25a5b5,{unitID:_0x1bbd3e}=_0x59e25d,{collaboration:_0x16609e}=this[_0x1631b4(0x199)][_0x1631b4(0x377)](_0x1bbd3e);if(_0x16609e['length']===0x0)return _0x59e25d;let _0x4c3386=_0x558854[_0x1631b4(0x190)](_0x59e25d[_0x1631b4(0x1e8)][0x0]);for(let _0x1453da=0x0;_0x1453da<_0x16609e['length'];_0x1453da++){const _0x1a3f86={'id':_0x1631b4(0x306),'params':{'unitId':_0x16609e[_0x1453da]['unitId'],..._0x16609e[_0x1453da][_0x1631b4(0x16c)]}},_0x8d3d67=this[_0x1631b4(0x25b)][_0x1631b4(0x217)](_0x4c3386,_0x1a3f86,!0x1);if(_0x891290(_0x8d3d67))throw _0x8d3d67['error'];_0x4c3386=_0x8d3d67[_0x1631b4(0x24c)];}return{..._0x558854[_0x1631b4(0x190)](_0x59e25d),'mutations':[_0x4c3386]};}[_0x25a5b5(0x1fc)](_0x2e3a52){const _0x3fc3a7=_0x25a5b5,{unitID:_0x18a954}=_0x2e3a52,{history:_0x3f134b,collaboration:_0x512b60}=this[_0x3fc3a7(0x199)]['getStateCache'](_0x18a954);if(_0x3f134b[_0x3fc3a7(0x330)]===0x0&&_0x512b60['length']===0x0)return;const _0x6976c8=[],_0x47d29b=[];let _0xbc4ca2=_0x558854[_0x3fc3a7(0x190)](_0x2e3a52[_0x3fc3a7(0x1e8)][0x0]),_0x6559a7=_0x558854[_0x3fc3a7(0x190)](_0x2e3a52['mutations'][0x0]);for(let _0x236cef=_0x3f134b[_0x3fc3a7(0x330)]-0x1;_0x236cef>=0x0;_0x236cef--){const _0x2754d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f134b[_0x236cef][_0x3fc3a7(0x2e3)],..._0x3f134b[_0x236cef]['undoState']}},_0x1af1e1={'id':_0x3fc3a7(0x306),'params':{'unitId':_0x3f134b[_0x236cef]['unitId'],..._0x3f134b[_0x236cef]['redoState']}},_0x35add0=this[_0x3fc3a7(0x25b)][_0x3fc3a7(0x217)](_0xbc4ca2,_0x2754d9,!0x1),_0x22457a=this[_0x3fc3a7(0x25b)]['transformMutation'](_0x6559a7,_0x1af1e1,!0x1);if(_0x891290(_0x35add0))throw _0x35add0[_0x3fc3a7(0x22a)];if(_0x891290(_0x22457a))throw _0x22457a[_0x3fc3a7(0x22a)];_0x6976c8[_0x3fc3a7(0x26d)]({..._0x3f134b[_0x236cef],'undoState':_0x35add0['m2Prime']['params'],'redoState':_0x22457a[_0x3fc3a7(0x17f)][_0x3fc3a7(0x1d0)]}),_0xbc4ca2=_0x35add0[_0x3fc3a7(0x24c)],_0x6559a7=_0x22457a[_0x3fc3a7(0x24c)];}_0xbc4ca2=_0x558854[_0x3fc3a7(0x190)](_0x2e3a52[_0x3fc3a7(0x1e8)][0x0]),_0x6559a7=_0x558854[_0x3fc3a7(0x190)](_0x2e3a52['mutations'][0x0]);for(let _0x51dbcd=_0x512b60[_0x3fc3a7(0x330)]-0x1;_0x51dbcd>=0x0;_0x51dbcd--){const _0x169721={'id':_0x3fc3a7(0x306),'params':{'unitId':_0x512b60[_0x51dbcd]['unitId'],..._0x512b60[_0x51dbcd][_0x3fc3a7(0x301)]}},_0x52afa2={'id':_0x3fc3a7(0x306),'params':{'unitId':_0x512b60[_0x51dbcd]['unitId'],..._0x512b60[_0x51dbcd][_0x3fc3a7(0x16c)]}},_0x149be4=this[_0x3fc3a7(0x25b)][_0x3fc3a7(0x217)](_0xbc4ca2,_0x169721,!0x1),_0x4f6203=this[_0x3fc3a7(0x25b)][_0x3fc3a7(0x217)](_0x6559a7,_0x52afa2,!0x1);if(_0x891290(_0x149be4))throw _0x149be4[_0x3fc3a7(0x22a)];if(_0x891290(_0x4f6203))throw _0x4f6203[_0x3fc3a7(0x22a)];_0x47d29b['unshift']({..._0x512b60[_0x51dbcd],'undoState':_0x149be4[_0x3fc3a7(0x17f)][_0x3fc3a7(0x1d0)],'redoState':_0x4f6203[_0x3fc3a7(0x17f)][_0x3fc3a7(0x1d0)]}),_0xbc4ca2=_0x149be4[_0x3fc3a7(0x24c)],_0x6559a7=_0x4f6203[_0x3fc3a7(0x24c)];}this[_0x3fc3a7(0x199)]['setStateCache'](_0x18a954,{'history':_0x6976c8,'collaboration':_0x47d29b});}};ue=In([Le(0x0,_0x3b20a6(_0x11efa0)),Le(0x1,_0x5055a5),Le(0x2,_0x3b20a6(_0x53a296))],ue);var mn=Object[_0x25a5b5(0x187)],fn=(_0x1c3361,_0x27bdca,_0x17ea5a,_0x15763b)=>{const _0xc4c331=_0x25a5b5;for(var _0x486800=_0x15763b>0x1?void 0x0:_0x15763b?mn(_0x27bdca,_0x17ea5a):_0x27bdca,_0x4023db=_0x1c3361[_0xc4c331(0x330)]-0x1,_0x935be2;_0x4023db>=0x0;_0x4023db--)(_0x935be2=_0x1c3361[_0x4023db])&&(_0x486800=_0x935be2(_0x486800)||_0x486800);return _0x486800;},ht=(_0x1cfe31,_0x509fb3)=>(_0x1a2bff,_0x3aeb93)=>_0x509fb3(_0x1a2bff,_0x3aeb93,_0x1cfe31);let de=class{constructor(_0x25991d,_0x32bddd){const _0x3a4939=_0x25a5b5;this[_0x3a4939(0x16a)]=_0x25991d,this[_0x3a4939(0x25b)]=_0x32bddd;}[_0x25a5b5(0x14f)](_0x58ef0d){const _0x218ada=_0x25a5b5;var _0x5f51eb;const _0x3b1865=this['_injector'][_0x218ada(0x193)](_0x697c53),_0xbbedc4=(_0x5f51eb=_0x3b1865[_0x218ada(0x242)]())!=null?_0x5f51eb:[];if(_0xbbedc4[_0x218ada(0x330)]===0x0)return;const _0xffac91=_0x58ef0d[_0x218ada(0x2d0)],_0x2c07b1=[{'id':_0x218ada(0x306),'params':{'unitId':_0xffac91,'actions':null,'textRanges':_0xbbedc4}}],_0x42f77e=this[_0x218ada(0x25b)][_0x218ada(0x19e)](_0x58ef0d,_0x2c07b1);if(!_0x17f204(_0x42f77e))throw _0x42f77e[_0x218ada(0x22a)];const _0x819b61=_0x42f77e[_0x218ada(0x17f)][0x0]['params'][_0x218ada(0x1e5)];Array[_0x218ada(0x1f3)](_0x819b61)&&_0x819b61[_0x218ada(0x330)]&&_0x3b1865[_0x218ada(0x254)](_0x819b61,{'unitId':_0xffac91,'subUnitId':_0xffac91},!0x1);}};de=fn([ht(0x0,_0x3b20a6(_0x11efa0)),ht(0x1,_0x5055a5)],de);var gn=Object[_0x25a5b5(0x187)],En=(_0x1d76cc,_0x34adcd,_0x2a5606,_0x22c709)=>{const _0x4436da=_0x25a5b5;for(var _0xde7675=_0x22c709>0x1?void 0x0:_0x22c709?gn(_0x34adcd,_0x2a5606):_0x34adcd,_0x1b62d1=_0x1d76cc[_0x4436da(0x330)]-0x1,_0x572351;_0x1b62d1>=0x0;_0x1b62d1--)(_0x572351=_0x1d76cc[_0x1b62d1])&&(_0xde7675=_0x572351(_0xde7675)||_0xde7675);return _0xde7675;},U=(_0x5dd1b6,_0x37ca71)=>(_0x59882e,_0x5c2627)=>_0x37ca71(_0x59882e,_0x5c2627,_0x5dd1b6);let Se=class extends _0x55a5c6{constructor(_0x70ade3,_0x430f37,_0x5c9801,_0x348459,_0x58d515,_0x5b4668,_0x251cce,_0x330592){const _0x360047=_0x25a5b5;super(),_(this,_0x360047(0x32e),new _0x5c2484(_0x24d6ad['NOT_COLLAB'])),(this[_0x360047(0x199)]=_0x70ade3,this[_0x360047(0x269)]=_0x430f37,this['_docTransformIMECacheService']=_0x5c9801,this['_docTransformStateCacheService']=_0x348459,this[_0x360047(0x350)]=_0x58d515,this['_docSyncEditingCollabCursorService']=_0x5b4668,this[_0x360047(0x233)]=_0x251cce,this[_0x360047(0x355)]=_0x330592,this[_0x360047(0x1d6)]());}[_0x25a5b5(0x1d6)](){const _0x263975=_0x25a5b5;this['disposeWithMe'](this[_0x263975(0x269)][_0x263975(0x35f)][_0x263975(0x2f3)](_0x3f7ce1=>{const _0x1d6bd7=_0x263975,_0x504325=this[_0x1d6bd7(0x199)]['docStateChange$'][_0x1d6bd7(0x2f3)](_0x30c66f=>{const _0x35523a=_0x1d6bd7;if(_0x30c66f==null)return;const {unitId:_0x99b5b6,redoState:_0x5bd711,commandId:_0x243975}=_0x30c66f;if(_0x99b5b6!==_0x3f7ce1[_0x35523a(0x2d0)])return;const _0x32a282={'id':_0x243975,'type':_0x39c673[_0x35523a(0x32b)],'params':{'unitId':_0x99b5b6,'actions':_0x5bd711[_0x35523a(0x370)],'textRanges':null}};_0x3f7ce1[_0x35523a(0x317)](_0x32a282);});if(_0x3f7ce1[_0x1d6bd7(0x202)](_0x504325),_0x3f7ce1 instanceof _0x26ab93){const _0x482a76={'onTransformIME':_0x238313=>this[_0x1d6bd7(0x326)][_0x1d6bd7(0x1ce)](_0x238313),'onTransformState':_0x2f16be=>this[_0x1d6bd7(0x15c)]['transformStateCache'](_0x2f16be),'onTransformSelections':_0x31e756=>this[_0x1d6bd7(0x350)]['transformSelections'](_0x31e756),'onSyncEditingCollabCursor':_0x5f53f3=>this[_0x1d6bd7(0x2c4)][_0x1d6bd7(0x26c)](_0x5f53f3),'onTransformRemoteChangesetByIMECache':_0x423f50=>this[_0x1d6bd7(0x326)][_0x1d6bd7(0x15f)](_0x423f50),'onTransformRemoteChangesetByStateCache':_0x372bbe=>this[_0x1d6bd7(0x15c)]['transformRemoteChangeset'](_0x372bbe)};_0x3f7ce1['addHandlerCallback'](_0x482a76);}}));}};Se=En([U(0x0,_0x3b20a6(_0x53a296)),U(0x1,_0x3b20a6(_0x355e8d)),U(0x2,_0x3b20a6(he)),U(0x3,_0x3b20a6(ue)),U(0x4,_0x3b20a6(de)),U(0x5,_0x3b20a6(ze)),U(0x6,_0x3f63df),U(0x7,_0x3b20a6(_0x54f2ff))],Se);var Z=(_0x370c44=>(_0x370c44[_0x370c44[_0x25a5b5(0x2d5)]=0x0]=_0x25a5b5(0x2d5),_0x370c44[_0x370c44['OK']=0x1]='OK',_0x370c44[_0x370c44[_0x25a5b5(0x389)]=0x2]=_0x25a5b5(0x389),_0x370c44[_0x370c44[_0x25a5b5(0x314)]=0x3]=_0x25a5b5(0x314),_0x370c44[_0x370c44[_0x25a5b5(0x319)]=0x4]=_0x25a5b5(0x319),_0x370c44[_0x370c44['UNAUTHENTICATED']=0x5]=_0x25a5b5(0x277),_0x370c44[_0x370c44[_0x25a5b5(0x2b7)]=0x6]=_0x25a5b5(0x2b7),_0x370c44[_0x370c44[_0x25a5b5(0x177)]=0x7]=_0x25a5b5(0x177),_0x370c44[_0x370c44[_0x25a5b5(0x347)]=0x8]=_0x25a5b5(0x347),_0x370c44[_0x370c44[_0x25a5b5(0x1b3)]=0x9]=_0x25a5b5(0x1b3),_0x370c44[_0x370c44[_0x25a5b5(0x1eb)]=0xa]=_0x25a5b5(0x1eb),_0x370c44[_0x370c44[_0x25a5b5(0x174)]=0xb]=_0x25a5b5(0x174),_0x370c44[_0x370c44[_0x25a5b5(0x1c3)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x370c44[_0x370c44[_0x25a5b5(0x194)]=0xd]=_0x25a5b5(0x194),_0x370c44[_0x370c44[_0x25a5b5(0x2aa)]=0xe]=_0x25a5b5(0x2aa),_0x370c44[_0x370c44[_0x25a5b5(0x279)]=0xf]=_0x25a5b5(0x279),_0x370c44[_0x370c44['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x370c44[_0x370c44[_0x25a5b5(0x27c)]=0x64]=_0x25a5b5(0x27c),_0x370c44[_0x370c44['ERROR_AGAIN']=0x65]=_0x25a5b5(0x337),_0x370c44[_0x370c44[_0x25a5b5(0x2f5)]=0xc9]=_0x25a5b5(0x2f5),_0x370c44[_0x370c44[_0x25a5b5(0x331)]=0xca]=_0x25a5b5(0x331),_0x370c44[_0x370c44[_0x25a5b5(0x219)]=0x1389]=_0x25a5b5(0x219),_0x370c44[_0x370c44[_0x25a5b5(0x30a)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x370c44[_0x370c44[_0x25a5b5(0x321)]=0x1772]=_0x25a5b5(0x321),_0x370c44[_0x370c44[_0x25a5b5(0x380)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x370c44[_0x370c44['APPLY_REJECT']=0x1b59]=_0x25a5b5(0x33a),_0x370c44[_0x370c44[_0x25a5b5(0x36b)]=0x1b5a]=_0x25a5b5(0x36b),_0x370c44[_0x370c44[_0x25a5b5(0x188)]=0x1b5b]=_0x25a5b5(0x188),_0x370c44[_0x370c44[_0x25a5b5(0x256)]=0x1b5c]=_0x25a5b5(0x256),_0x370c44[_0x370c44[_0x25a5b5(0x2dd)]=0x1b5d]=_0x25a5b5(0x2dd),_0x370c44[_0x370c44[_0x25a5b5(0x2f0)]=0x1f41]=_0x25a5b5(0x2f0),_0x370c44[_0x370c44['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x370c44[_0x370c44[_0x25a5b5(0x262)]=0x232a]=_0x25a5b5(0x262),_0x370c44[_0x370c44[_0x25a5b5(0x2fe)]=0x232b]=_0x25a5b5(0x2fe),_0x370c44[_0x370c44[_0x25a5b5(0x1ea)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x370c44[_0x370c44[_0x25a5b5(0x237)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x370c44[_0x370c44[_0x25a5b5(0x29d)]=0x2711]=_0x25a5b5(0x29d),_0x370c44[_0x370c44[_0x25a5b5(0x360)]=0x2712]=_0x25a5b5(0x360),_0x370c44[_0x370c44[_0x25a5b5(0x2a0)]=0x2713]=_0x25a5b5(0x2a0),_0x370c44[_0x370c44[_0x25a5b5(0x341)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x370c44[_0x370c44['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x25a5b5(0x15d),_0x370c44[_0x370c44[_0x25a5b5(0x258)]=0x271b]=_0x25a5b5(0x258),_0x370c44[_0x370c44[_0x25a5b5(0x261)]=0x271c]=_0x25a5b5(0x261),_0x370c44[_0x370c44[_0x25a5b5(0x1fa)]=0x271d]=_0x25a5b5(0x1fa),_0x370c44[_0x370c44[_0x25a5b5(0x1bc)]=0x271e]=_0x25a5b5(0x1bc),_0x370c44[_0x370c44['YUUMI_AI_RUN_FAILED']=0x271f]=_0x25a5b5(0x1b6),_0x370c44[_0x370c44[_0x25a5b5(0x2d4)]=0x2720]=_0x25a5b5(0x2d4),_0x370c44[_0x370c44[_0x25a5b5(0x27f)]=0x2af9]=_0x25a5b5(0x27f),_0x370c44[_0x370c44[_0x25a5b5(0x1e3)]=0x2ee1]=_0x25a5b5(0x1e3),_0x370c44[_0x370c44[_0x25a5b5(0x18c)]=0x2ee2]='INVALID_INVITE_CODE',_0x370c44[_0x370c44[_0x25a5b5(0x37d)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x370c44[_0x370c44['USER_NOT_INVITED_CODE']=0x2ee4]=_0x25a5b5(0x27b),_0x370c44[_0x370c44[_0x25a5b5(0x1dd)]=0x2ee5]=_0x25a5b5(0x1dd),_0x370c44[_0x370c44[_0x25a5b5(0x28c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x370c44[_0x370c44[_0x25a5b5(0x17e)]=0x32ca]=_0x25a5b5(0x17e),_0x370c44[_0x370c44[_0x25a5b5(0x264)]=0x32cb]=_0x25a5b5(0x264),_0x370c44[_0x370c44[_0x25a5b5(0x21e)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x370c44[_0x370c44['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x25a5b5(0x14c),_0x370c44[_0x370c44[_0x25a5b5(0x1be)]=0x36b3]=_0x25a5b5(0x1be),_0x370c44[_0x370c44['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x370c44[_0x370c44[_0x25a5b5(0x27e)]=0x36b5]=_0x25a5b5(0x27e),_0x370c44[_0x370c44[_0x25a5b5(0x290)]=0x36b6]=_0x25a5b5(0x290),_0x370c44[_0x370c44['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x25a5b5(0x31a),_0x370c44[_0x370c44[_0x25a5b5(0x303)]=0x36b8]=_0x25a5b5(0x303),_0x370c44[_0x370c44[_0x25a5b5(0x2c1)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x370c44[_0x370c44[_0x25a5b5(0x253)]=0x3716]=_0x25a5b5(0x253),_0x370c44[_0x370c44['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x25a5b5(0x252),_0x370c44[_0x370c44[_0x25a5b5(0x361)]=0x37dd]=_0x25a5b5(0x361),_0x370c44[_0x370c44['REDEMPTION_INVALID_CODE']=0x3a99]=_0x25a5b5(0x1ff),_0x370c44[_0x370c44[_0x25a5b5(0x1f2)]=0x3a9a]=_0x25a5b5(0x1f2),_0x370c44[_0x370c44[_0x25a5b5(0x191)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x370c44[_0x370c44[_0x25a5b5(0x343)]=0x3a9c]=_0x25a5b5(0x343),_0x370c44[_0x370c44[_0x25a5b5(0x308)]=0x3a9d]=_0x25a5b5(0x308),_0x370c44[_0x370c44['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x25a5b5(0x352),_0x370c44[_0x370c44['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x25a5b5(0x22b),_0x370c44[_0x370c44['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x25a5b5(0x1bd),_0x370c44[_0x370c44[_0x25a5b5(0x2a8)]=-0x1]=_0x25a5b5(0x2a8),_0x370c44))(Z||{});function vn(_0x5c084e){const _0x4f19fa=_0x25a5b5;var _0x2659ba,_0x130c91;const _0x124612=(_0x2659ba=_0x5c084e[_0x4f19fa(0x148)])==null?void 0x0:_0x2659ba['stage'],_0x3187bc=((_0x130c91=_0x5c084e[_0x4f19fa(0x148)])==null?void 0x0:_0x130c91['totalFormulasToCalculate'])||0x0;return _0x124612===_0x5fc814['START_CALCULATION']&&_0x3187bc>0x0;}function pn(_0x45d100){return _0x45d100['functionsExecutedState']===_0x322c94['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x1f24df,_0x12bd62,_0x67c958,_0x2f647c)=>{const _0x5fb207=_0x25a5b5;for(var _0xb7b9d3=_0x2f647c>0x1?void 0x0:_0x2f647c?On(_0x12bd62,_0x67c958):_0x12bd62,_0x4b47f3=_0x1f24df[_0x5fb207(0x330)]-0x1,_0x5ae3a8;_0x4b47f3>=0x0;_0x4b47f3--)(_0x5ae3a8=_0x1f24df[_0x4b47f3])&&(_0xb7b9d3=_0x5ae3a8(_0xb7b9d3)||_0xb7b9d3);return _0xb7b9d3;},P=(_0x580d36,_0x46349a)=>(_0x3f633c,_0x33342c)=>_0x46349a(_0x3f633c,_0x33342c,_0x580d36);const Cn=_0x25a5b5(0x2af),Rn=_0x25a5b5(0x172),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x55a5c6{constructor(_0x219af3,_0x149ee8,_0x1b4b85,_0x51b9e6,_0x5b158e,_0x37a893,_0x4851c9){const _0x5dcf70=_0x25a5b5;super(),_(this,_0x5dcf70(0x230),null),_(this,_0x5dcf70(0x22c),0x0),_(this,_0x5dcf70(0x17a),0x0),_(this,_0x5dcf70(0x143),[]),_(this,_0x5dcf70(0x251),0x0),(this[_0x5dcf70(0x233)]=_0x219af3,this[_0x5dcf70(0x1f1)]=_0x149ee8,this[_0x5dcf70(0x244)]=_0x1b4b85,this['_httpService']=_0x51b9e6,this[_0x5dcf70(0x2cb)]=_0x5b158e,this[_0x5dcf70(0x1f8)]=_0x37a893,this['_localeService']=_0x4851c9,this['_initCommandInterceptor']());}[_0x25a5b5(0x32d)](){const _0x383266=_0x25a5b5;this[_0x383266(0x202)](this['_commandService'][_0x383266(0x270)]((_0x2d34af,_0x308a3c)=>{const _0x879a94=_0x383266;var _0x119c09;if(_0x2d34af['id']!==_0x3ca4e9['id'])return;const _0x698d45=_0x2d34af[_0x879a94(0x1d0)];if(!this[_0x879a94(0x375)]((_0x119c09=_0x698d45[_0x879a94(0x357)])!=null?_0x119c09:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x879a94(0x2b8)](_0x2d34af,_0x308a3c),this[_0x879a94(0x1fb)](),new _0x506a54();})),this['disposeWithMe'](this[_0x383266(0x1f1)]['onCommandExecuted']((_0x1d4b74,_0xf8771)=>{const _0x205435=_0x383266;if(_0x1d4b74['id']!==_0x5376a4['id'])return;const _0x5c0746=_0x1d4b74[_0x205435(0x1d0)];if(vn(_0x5c0746)){const _0x39e246=_0x515f8f();this['_taskIds'][_0x205435(0x1e6)](_0x39e246),this[_0x205435(0x37e)](_0x39e246);}else{if(pn(_0x5c0746)&&this['_taskIds'][_0x205435(0x330)]>0x0){const _0x53b012=this[_0x205435(0x143)][_0x205435(0x333)]();this[_0x205435(0x25c)](_0x53b012);}}}));}['dispose'](){const _0x4f17da=_0x25a5b5;super[_0x4f17da(0x2e2)](),this[_0x4f17da(0x23f)](),this[_0x4f17da(0x143)]=[],this[_0x4f17da(0x17a)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x4f17da(0x251)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x3a44af,_0x3a340b){const _0x59db36=_0x25a5b5;for(let _0x5ecdc0=0x0;_0x5ecdc0<0x1e;_0x5ecdc0++)try{if(await this[_0x59db36(0x2e6)](),this[_0x59db36(0x2c5)]()){this[_0x59db36(0x37a)](_0x3a44af,_0x3a340b),this[_0x59db36(0x233)][_0x59db36(0x342)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x216228[_0x59db36(0x2c3)]});return;}await new Promise(_0x373cd6=>{const _0x1181ba=_0x59db36;this[_0x1181ba(0x230)]=window['setTimeout'](_0x373cd6,0x3e8);});}catch(_0x204d8e){this[_0x59db36(0x1f8)]['error'](_0x204d8e);}this[_0x59db36(0x233)][_0x59db36(0x342)]({'content':this[_0x59db36(0x355)]['t'](_0x59db36(0x214)),'type':_0x216228[_0x59db36(0x1ec)]});}['_applyCommand'](_0x15f471,_0x4cfe4d){const _0x2f1535=_0x25a5b5;try{this[_0x2f1535(0x1f1)][_0x2f1535(0x28a)](_0x15f471['id'],_0x15f471[_0x2f1535(0x1d0)],_0x4cfe4d);}catch(_0xaaf5da){this[_0x2f1535(0x1f8)][_0x2f1535(0x22a)](_0xaaf5da);}}[_0x25a5b5(0x14e)](_0x29462a,_0x3e4faf){const _0x146051=_0x25a5b5;_0x3e4faf<this[_0x146051(0x251)]||(this[_0x146051(0x251)]=_0x3e4faf,this[_0x146051(0x22c)]=Number[_0x146051(0x1a3)](_0x29462a[_0x146051(0x381)]),this[_0x146051(0x17a)]=Number[_0x146051(0x1a3)](_0x29462a[_0x146051(0x1df)]));}async[_0x25a5b5(0x37e)](_0x38a5a0){const _0x561828=_0x25a5b5;var _0x2b5ea5,_0x3928c5;const _0x414e33=Date['now']();try{const _0x59b40c=((_0x2b5ea5=this[_0x561828(0x244)][_0x561828(0x16e)](_0x68d8d7))==null?void 0x0:_0x2b5ea5[_0x561828(0x388)])||Rn,_0x561b33=(await this[_0x561828(0x1f0)][_0x561828(0x21c)](_0x59b40c,{'body':JSON[_0x561828(0x165)]({'taskId':_0x38a5a0})}))[_0x561828(0x1dc)];if(((_0x3928c5=_0x561b33[_0x561828(0x22a)])==null?void 0x0:_0x3928c5[_0x561828(0x1a5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x561b33[_0x561828(0x1a2)],_0x414e33);}catch(_0xb9d68){this[_0x561828(0x1f8)][_0x561828(0x22a)](_0xb9d68);}}async[_0x25a5b5(0x2e6)](_0x5693ec){const _0x377bed=_0x25a5b5;var _0xd6aa01,_0x1103bf;const _0x1f6d97=Date[_0x377bed(0x2b6)]();try{const _0x1d2e10=((_0xd6aa01=this[_0x377bed(0x244)][_0x377bed(0x16e)](_0x68d8d7))==null?void 0x0:_0xd6aa01[_0x377bed(0x268)])||Cn,_0x51142a=_0x5693ec?_0x1d2e10+_0x377bed(0x13e)+encodeURIComponent(_0x5693ec):_0x1d2e10,_0x34ccaa=(await this[_0x377bed(0x1f0)][_0x377bed(0x193)](_0x51142a))[_0x377bed(0x1dc)];if(((_0x1103bf=_0x34ccaa[_0x377bed(0x22a)])==null?void 0x0:_0x1103bf[_0x377bed(0x1a5)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x34ccaa[_0x377bed(0x1a2)],_0x1f6d97);}catch(_0x23fa90){this[_0x377bed(0x1f8)][_0x377bed(0x22a)](_0x23fa90);}}async['_releaseCalculationLimit'](_0x512d54){const _0x351fe6=_0x25a5b5;var _0x5c2cdd,_0x50837c;const _0x176edf=Date[_0x351fe6(0x2b6)]();try{const _0x4c87c3=((_0x5c2cdd=this[_0x351fe6(0x244)][_0x351fe6(0x16e)](_0x68d8d7))==null?void 0x0:_0x5c2cdd[_0x351fe6(0x35c)])||Dn,_0x599225=(await this['_httpService'][_0x351fe6(0x21c)](_0x4c87c3,{'body':JSON[_0x351fe6(0x165)]({'taskId':_0x512d54})}))[_0x351fe6(0x1dc)];if(((_0x50837c=_0x599225[_0x351fe6(0x22a)])==null?void 0x0:_0x50837c['code'])!==Z['OK'])return;this[_0x351fe6(0x14e)](_0x599225[_0x351fe6(0x1a2)],_0x176edf);}catch(_0x236ac1){this[_0x351fe6(0x1f8)][_0x351fe6(0x22a)](_0x236ac1);}}[_0x25a5b5(0x2c5)](){const _0x24f725=_0x25a5b5;return this[_0x24f725(0x22c)]===0x0?!0x0:this[_0x24f725(0x22c)]-this[_0x24f725(0x17a)]>0x0;}[_0x25a5b5(0x23f)](){const _0x370a49=_0x25a5b5;this[_0x370a49(0x230)]&&(clearTimeout(this[_0x370a49(0x230)]),this['_pollingInterval']=null);}[_0x25a5b5(0x1fb)](){const _0x2bb9ab=_0x25a5b5;this[_0x2bb9ab(0x233)][_0x2bb9ab(0x342)]({'content':this[_0x2bb9ab(0x355)]['t'](_0x2bb9ab(0x2bd)),'type':_0x216228[_0x2bb9ab(0x38e)]});}[_0x25a5b5(0x375)](_0x11de5c){const _0x5e2885=_0x25a5b5;for(const _0x453407 of _0x11de5c){const {unitId:_0x19ed18,sheetId:_0x3038ce,range:_0x217a66}=_0x453407,_0x328c7f=this[_0x5e2885(0x2cb)][_0x5e2885(0x328)](_0x19ed18);if(!_0x328c7f)continue;const _0x3058e5=_0x328c7f['getSheetBySheetId'](_0x3038ce);if(!_0x3058e5)continue;const _0x23e9aa=_0x3058e5[_0x5e2885(0x192)]();for(let _0x4c49b9=_0x217a66[_0x5e2885(0x37b)];_0x4c49b9<=_0x217a66[_0x5e2885(0x18e)];_0x4c49b9++)for(let _0x4d0b89=_0x217a66[_0x5e2885(0x1d4)];_0x4d0b89<=_0x217a66[_0x5e2885(0x224)];_0x4d0b89++){const _0x593a41=_0x23e9aa['getValue'](_0x4c49b9,_0x4d0b89);if(_0x593a41&&(_0x32331c(_0x593a41['f'])||_0x48bb68(_0x593a41['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x3b20a6(_0x3f63df)),P(0x1,_0x4d6a66),P(0x2,_0x29a96f),P(0x3,_0x3b20a6(_0x188c95)),P(0x4,_0x1c130e),P(0x5,_0x21a2cc),P(0x6,_0x3b20a6(_0x54f2ff))],Ie);var Nn=Object[_0x25a5b5(0x187)],bn=(_0x191b3b,_0x283464,_0x5335a0,_0x45ffc6)=>{const _0x2f17df=_0x25a5b5;for(var _0x265541=_0x45ffc6>0x1?void 0x0:_0x45ffc6?Nn(_0x283464,_0x5335a0):_0x283464,_0x30f18e=_0x191b3b[_0x2f17df(0x330)]-0x1,_0x1e3ffc;_0x30f18e>=0x0;_0x30f18e--)(_0x1e3ffc=_0x191b3b[_0x30f18e])&&(_0x265541=_0x1e3ffc(_0x265541)||_0x265541);return _0x265541;},Ue=(_0x4402a0,_0x1004ee)=>(_0x1f338a,_0x5a9cac)=>_0x1004ee(_0x1f338a,_0x5a9cac,_0x4402a0);let He=class extends _0x55a5c6{constructor(_0x3d8328,_0xef5f38,_0x12655c){const _0x23c0dd=_0x25a5b5;super(),_(this,_0x23c0dd(0x23c),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x23c0dd(0x2d6),!0x1),(this['_configService']=_0x3d8328,this[_0x23c0dd(0x1b5)]=_0xef5f38,this[_0x23c0dd(0x359)]=_0x12655c);}['disableLocalCache'](){const _0xae836b=_0x25a5b5;this[_0xae836b(0x2d6)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x25a5b5(0x31b)](){const _0x282810=_0x25a5b5;return this[_0x282810(0x1cb)];}[_0x25a5b5(0x2e2)](){const _0x116e48=_0x25a5b5;this[_0x116e48(0x2d1)]()[_0x116e48(0x297)](()=>super['dispose']());}async[_0x25a5b5(0x28e)](_0x3524ca){const _0x3886e0=_0x25a5b5;return this[_0x3886e0(0x2d6)]?null:this['_localStorageService'][_0x3886e0(0x226)](_0x116936(_0x3524ca));}async[_0x25a5b5(0x358)](_0x176ea9,_0x1a7f81){const _0x4f28a3=_0x25a5b5;return!!this[_0x4f28a3(0x1b5)][_0x4f28a3(0x34b)](_0x176ea9,_0x1a7f81);}['updateOfflineData'](_0x5d040e,_0xae9213,_0x7dc37,_0x379211){const _0x56103e=_0x25a5b5,_0x498673=this['_revisionService'][_0x56103e(0x2a1)](_0x5d040e);this['_cachedData'][_0x56103e(0x145)](_0x5d040e,{'unitID':_0x5d040e,'type':_0xae9213,'awaitingChangeset':_0x7dc37,'mutations':_0x379211,'rev':_0x498673}),this[_0x56103e(0x1cb)]['has'](_0x5d040e)||this[_0x56103e(0x2cd)](_0x5d040e);}[_0x25a5b5(0x2cd)](_0x2af289){const _0x38d0ef=_0x25a5b5,_0x4c2d28=this[_0x38d0ef(0x231)]();_0x4c2d28===0x0?this[_0x38d0ef(0x384)](_0x2af289):this[_0x38d0ef(0x1cb)][_0x38d0ef(0x145)](_0x2af289,setTimeout(()=>this[_0x38d0ef(0x384)](_0x2af289),_0x4c2d28));}['_getSaveTimeout'](){const _0x3878ea=_0x25a5b5;var _0x4f47fc;return(_0x4f47fc=this[_0x3878ea(0x244)][_0x3878ea(0x16e)](_0x38bd7d))!=null?_0x4f47fc:_0x572c2e;}[_0x25a5b5(0x384)](_0x2aeb38){const _0x4f8837=_0x25a5b5,_0x141530=this[_0x4f8837(0x1cb)][_0x4f8837(0x193)](_0x2aeb38);return _0x141530!==void 0x0&&window[_0x4f8837(0x2d8)](_0x141530),this[_0x4f8837(0x1b5)][_0x4f8837(0x34b)](_0x116936(_0x2aeb38),this[_0x4f8837(0x23c)]['get'](_0x2aeb38))[_0x4f8837(0x297)](()=>this[_0x4f8837(0x1cb)][_0x4f8837(0x161)](_0x2aeb38));}async[_0x25a5b5(0x2d1)](){const _0x59f421=_0x25a5b5,_0x2086ac=[];this[_0x59f421(0x1cb)][_0x59f421(0x1af)]((_0x4450f4,_0x269d33)=>{const _0x14a1b6=_0x59f421;window[_0x14a1b6(0x2d8)](_0x4450f4),_0x2086ac[_0x14a1b6(0x1e6)](this[_0x14a1b6(0x384)](_0x269d33)[_0x14a1b6(0x297)](()=>{const _0x19f101=_0x14a1b6;this[_0x19f101(0x1cb)]['delete'](_0x269d33);}));}),await Promise[_0x59f421(0x236)](_0x2086ac);}};He=bn([Ue(0x0,_0x29a96f),Ue(0x1,_0x2fd1ca),Ue(0x2,_0x3b20a6(_0x2d5a6f))],He);class Ln extends _0x11e081{constructor(){const _0x8e8d4f=_0x25a5b5;super(),_(this,_0x8e8d4f(0x2b4)),this[_0x8e8d4f(0x2b4)]=_0xde9537(window,_0x8e8d4f(0x2ae))['pipe'](_0x5b88aa(this[_0x8e8d4f(0x353)]),_0x141bd8(0x1),_0x2af3d3(void 0x0));}[_0x25a5b5(0x315)](_0x3018bc,_0x33e59e,_0x2cefee=!0x1){const _0x1b29cd=_0x25a5b5,_0x33c195=new URL(window[_0x1b29cd(0x2ca)][_0x1b29cd(0x2c6)]);_0x33c195[_0x1b29cd(0x1b7)][_0x1b29cd(0x145)](_0x3018bc,_0x33e59e),_0x2cefee?window[_0x1b29cd(0x35e)][_0x1b29cd(0x216)]('','',_0x33c195[_0x1b29cd(0x197)]()):window[_0x1b29cd(0x35e)][_0x1b29cd(0x2a9)]('','',_0x33c195['toString']());}[_0x25a5b5(0x313)](_0x56d079,_0x45cd06=!0x1){const _0x40108f=_0x25a5b5,_0x5a5498=new URL(window['location']['href']);_0x5a5498[_0x40108f(0x1b7)][_0x40108f(0x161)](_0x56d079),_0x45cd06?window[_0x40108f(0x35e)][_0x40108f(0x216)]('','',_0x5a5498[_0x40108f(0x197)]()):window[_0x40108f(0x35e)][_0x40108f(0x2a9)]('','',_0x5a5498[_0x40108f(0x197)]());}[_0x25a5b5(0x33b)](_0x539850){const _0x4a8743=_0x25a5b5;var _0x436b7c;return(_0x436b7c=new URL(window[_0x4a8743(0x2ca)][_0x4a8743(0x2c6)])[_0x4a8743(0x1b7)][_0x4a8743(0x193)](_0x539850))!=null?_0x436b7c:void 0x0;}}var Un=Object[_0x25a5b5(0x218)],Mn=Object[_0x25a5b5(0x187)],An=(_0x1447c7,_0xb7a14a,_0x22ae86)=>_0xb7a14a in _0x1447c7?Un(_0x1447c7,_0xb7a14a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22ae86}):_0x1447c7[_0xb7a14a]=_0x22ae86,Pn=(_0x19edd0,_0x4a5be6,_0x55c7a8,_0x1fdc4b)=>{const _0x3ed1f5=_0x25a5b5;for(var _0x32b947=_0x1fdc4b>0x1?void 0x0:_0x1fdc4b?Mn(_0x4a5be6,_0x55c7a8):_0x4a5be6,_0x4d73b8=_0x19edd0[_0x3ed1f5(0x330)]-0x1,_0x48a0fc;_0x4d73b8>=0x0;_0x4d73b8--)(_0x48a0fc=_0x19edd0[_0x4d73b8])&&(_0x32b947=_0x48a0fc(_0x32b947)||_0x32b947);return _0x32b947;},Me=(_0x1f5893,_0x281138)=>(_0x31fc2c,_0x39939b)=>_0x281138(_0x31fc2c,_0x39939b,_0x1f5893),wn=(_0x27b92d,_0x20feb7,_0x24e77f)=>An(_0x27b92d,_0x20feb7+'',_0x24e77f);const yn=_0x25a5b5(0x385);let Ye=class extends _0x2d892e{constructor(_0x24cab8=_t,_0x481a8d,_0x21eee8,_0x542d8f){const _0x29230b=_0x25a5b5;super(),this[_0x29230b(0x366)]=_0x24cab8,this[_0x29230b(0x166)]=_0x481a8d,this[_0x29230b(0x16a)]=_0x21eee8,this[_0x29230b(0x244)]=_0x542d8f;const {..._0x51c74e}=_0x54b042({},_t,this[_0x29230b(0x366)]);this[_0x29230b(0x244)][_0x29230b(0x2a3)](hn,_0x51c74e);}['onStarting'](){const _0x37cdc6=_0x25a5b5;this[_0x37cdc6(0x20b)](),this['_initDependencies']();}[_0x25a5b5(0x33c)](){const _0x536f18=_0x25a5b5;this[_0x536f18(0x250)]();}['_registerDependencies'](){const _0x40f09f=_0x25a5b5;var _0x2368d0;const _0xadfb73=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x5776a2,{'useClass':_0x3b6717}],[_0x7afea0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x40f09f(0x366)][_0x40f09f(0x1a6)]&&_0xadfb73[_0x40f09f(0x1e6)]([le]),_0x532347(this['_injector'],_0x4d0157(_0xadfb73,(_0x2368d0=this[_0x40f09f(0x366)])==null?void 0x0:_0x2368d0['override']));}[_0x25a5b5(0x250)](){const _0x4ff5b9=_0x25a5b5;this[_0x4ff5b9(0x202)](this[_0x4ff5b9(0x166)]['registerRenderModule'](_0x14055f['UNIVER_DOC'],[Fe])),this[_0x4ff5b9(0x202)](this[_0x4ff5b9(0x166)][_0x4ff5b9(0x38f)](_0x14055f['UNIVER_SHEET'],[ke]));}[_0x25a5b5(0x288)](){const _0x4be0cb=_0x25a5b5;_0x176697(this[_0x4be0cb(0x16a)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x4be0cb(0x1a6)]&&_0x176697(this[_0x4be0cb(0x16a)],[[le]]);}};wn(Ye,_0x25a5b5(0x2fb),yn),Ye=Pn([_0x415867(_0x11ed61),Me(0x1,_0x129792),Me(0x2,_0x3b20a6(_0x11efa0)),Me(0x3,_0x29a96f)],Ye);var $n=Object[_0x25a5b5(0x187)],xn=(_0x2f290c,_0x2175ef,_0x2503b8,_0x3cf197)=>{const _0x5ed80b=_0x25a5b5;for(var _0x13453c=_0x3cf197>0x1?void 0x0:_0x3cf197?$n(_0x2175ef,_0x2503b8):_0x2175ef,_0x551320=_0x2f290c[_0x5ed80b(0x330)]-0x1,_0x33e0e1;_0x551320>=0x0;_0x551320--)(_0x33e0e1=_0x2f290c[_0x551320])&&(_0x13453c=_0x33e0e1(_0x13453c)||_0x13453c);return _0x13453c;},J=(_0x5dbd57,_0x354e4a)=>(_0x28c2a3,_0x5b4b5b)=>_0x354e4a(_0x28c2a3,_0x5b4b5b,_0x5dbd57);let ut=class extends _0x199650{constructor(_0x166ece,_0x5eb14a,_0x32bca8,_0x44b1fd,_0x484751){super(_0x166ece,_0x5eb14a,_0x32bca8,_0x44b1fd,_0x484751);}async[_0x25a5b5(0x25d)](_0xb8a5ef){const _0x3b0b02=_0x25a5b5,_0x30ade5=await this[_0x3b0b02(0x24b)](),_0x225a54=this[_0x3b0b02(0x23b)](_0xb8a5ef,_0x30ade5);return this[_0x3b0b02(0x309)](_0x225a54);}['_createSocketURL'](_0x14072d,_0xf2b5c6){const _0x31e5b8=_0x25a5b5,_0xe0778f=typeof window>'u'?new URL(_0x14072d):new URL(_0x14072d,window[_0x31e5b8(0x2ca)]['origin']);_0xe0778f[_0x31e5b8(0x1b7)][_0x31e5b8(0x145)]('sessionTicket',_0xf2b5c6);const _0x34a701=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x31e5b8(0x2ca)]['search']);return _0x34a701[_0x31e5b8(0x193)](_0x31e5b8(0x1a9))&&_0xe0778f['searchParams'][_0x31e5b8(0x145)](_0x31e5b8(0x1a9),_0x34a701[_0x31e5b8(0x193)](_0x31e5b8(0x1a9))),_0xe0778f['toString']();}async[_0x25a5b5(0x24b)](){const _0x3def1f=_0x25a5b5;var _0x3f1919,_0x1ba5af,_0x390cff;const _0x2319ed=this['_configService'][_0x3def1f(0x16e)](_0x68d8d7),_0x4bd0d1=(_0x3f1919=_0x2319ed==null?void 0x0:_0x2319ed['wsSessionTicketUrl'])!=null?_0x3f1919:_0xc1b096;return(_0x390cff=(_0x1ba5af=(await this[_0x3def1f(0x1f0)][_0x3def1f(0x193)](_0x4bd0d1,{'headers':{'Content-Type':_0x3def1f(0x274)}}))[_0x3def1f(0x1dc)])==null?void 0x0:_0x1ba5af[_0x3def1f(0x238)])!=null?_0x390cff:'';}};ut=xn([J(0x0,_0x3b20a6(_0x11efa0)),J(0x1,_0x3b20a6(_0x188c95)),J(0x2,_0x29a96f),J(0x3,_0x21a2cc),J(0x4,_0x58a0b2)],ut);var Bn=Object[_0x25a5b5(0x187)],Fn=(_0x235be7,_0x439ff6,_0x5eef28,_0xf50628)=>{for(var _0x5df67b=_0xf50628>0x1?void 0x0:_0xf50628?Bn(_0x439ff6,_0x5eef28):_0x439ff6,_0x36cbd2=_0x235be7['length']-0x1,_0x1f5c79;_0x36cbd2>=0x0;_0x36cbd2--)(_0x1f5c79=_0x235be7[_0x36cbd2])&&(_0x5df67b=_0x1f5c79(_0x5df67b)||_0x5df67b);return _0x5df67b;},Ae=(_0x584382,_0x32ee29)=>(_0x4ffdc3,_0x2dd298)=>_0x32ee29(_0x4ffdc3,_0x2dd298,_0x584382);let dt=class extends _0x55a5c6{constructor(_0x2fc487,_0x38bfe5,_0x436eda){const _0x3765fe=_0x25a5b5;super(),this[_0x3765fe(0x271)]=_0x2fc487,this[_0x3765fe(0x1f0)]=_0x38bfe5,this[_0x3765fe(0x244)]=_0x436eda;}async[_0x25a5b5(0x1b2)](_0x856663,_0x24f46a,_0x29535d,..._0x306f9b){const _0x543015=_0x25a5b5;var _0x546e58,_0x335124,_0x29564,_0x5e4172;const _0x1f08a9=this[_0x543015(0x271)]['getFocusedUnit']();if(!_0x1f08a9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5dd371=((_0x546e58=this[_0x543015(0x244)]['getConfig'](_0x2c324f))!=null?_0x546e58:_0x230a1a)+'/'+_0x856663+_0x543015(0x263)+_0x24f46a,_0x312da1=new URL(window[_0x543015(0x2ca)]['href']),_0x135381={'scriptId':_0x856663,'runId':(_0x335124=_0x312da1[_0x543015(0x1b7)]['get'](_0x543015(0x1a9)))!=null?_0x335124:'','function':_0x24f46a,'unitId':_0x1f08a9['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x306f9b),'invokeId':(_0x29564=_0x29535d[_0x543015(0x1ef)])!=null?_0x29564:'','executionId':(_0x5e4172=_0x29535d[_0x543015(0x257)])!=null?_0x5e4172:''};try{const _0x1c4b25=await this['_httpService'][_0x543015(0x21c)](_0x5dd371,{'body':_0x135381});return _0x1c4b25[_0x543015(0x1dc)][_0x543015(0x22a)]&&_0x1c4b25[_0x543015(0x1dc)]['error']['code']!==Z['OK']?_0x543015(0x24a):_0x1c4b25['body'][_0x543015(0x162)];}catch{return _0x543015(0x24a);}}};dt=Fn([Ae(0x0,_0x1c130e),Ae(0x1,_0x3b20a6(_0x188c95)),Ae(0x2,_0x29a96f)],dt);const St=0x7530,It=_0x25a5b5(0x1e7);class rr extends _0x55a5c6{constructor(){const _0x821cd2=_0x25a5b5;super(),_(this,_0x821cd2(0x29b),_0x515f8f()),_(this,_0x821cd2(0x1c4),new Set()),_(this,_0x821cd2(0x265),new Map()),_(this,_0x821cd2(0x386),null),_(this,_0x821cd2(0x1d9),new Map()),_(this,_0x821cd2(0x2b0),new Map()),this[_0x821cd2(0x178)]();}[_0x25a5b5(0x2e2)](){const _0xb5c56e=_0x25a5b5;super[_0xb5c56e(0x2e2)](),this[_0xb5c56e(0x1d9)][_0xb5c56e(0x1af)]((_0x4a4fa2,_0x965331)=>this[_0xb5c56e(0x184)](_0x965331)),this[_0xb5c56e(0x386)]&&window['clearInterval'](this[_0xb5c56e(0x386)]);}['getUnitStatus$'](_0x561ab7){const _0x461e39=_0x25a5b5;return this['_ensureSubject'](_0x561ab7)[_0x461e39(0x1e2)](_0x52166b());}['editingUnit'](_0x3baa29){const _0x26389e=_0x25a5b5;this[_0x26389e(0x1c4)][_0x26389e(0x29a)]===0x0&&this['_scheduleHeartbeat'](),this[_0x26389e(0x1c4)]['add'](_0x3baa29),this[_0x26389e(0x365)]({'type':0x0,'memberID':this[_0x26389e(0x29b)],'unitIDs':[_0x3baa29],'isForwarded':!0x1});}[_0x25a5b5(0x338)](_0x9c0dd9){const _0x4bf29e=_0x25a5b5;this['_selfUnitIDs'][_0x4bf29e(0x161)](_0x9c0dd9),this[_0x4bf29e(0x1c4)][_0x4bf29e(0x29a)]===0x0&&this['_heartbeatTimer']&&window[_0x4bf29e(0x246)](this['_heartbeatTimer']);}[_0x25a5b5(0x178)](){const _0x18b17a=_0x25a5b5;this['disposeWithMe'](_0x4ec60f(_0xde9537(window,'storage')[_0x18b17a(0x2f3)](_0x357297=>{const _0x16394d=_0x18b17a;if(_0x357297[_0x16394d(0x354)]!==It||!_0x357297[_0x16394d(0x2ba)])return;const _0x32e2ae=JSON['parse'](_0x357297[_0x16394d(0x2ba)]);this[_0x16394d(0x29f)](_0x32e2ae);}))),window[_0x18b17a(0x2d2)](_0x18b17a(0x189),()=>this[_0x18b17a(0x365)]({'type':0x1,'memberID':this[_0x18b17a(0x29b)],'unitIDs':Array[_0x18b17a(0x325)](this[_0x18b17a(0x1c4)])}));}[_0x25a5b5(0x29f)](_0x27037f){const _0x524846=_0x25a5b5;switch(_0x27037f['type']){case 0x0:this[_0x524846(0x16f)](_0x27037f);break;case 0x1:this[_0x524846(0x1d7)](_0x27037f);break;case 0x2:this['_handleHeartbeatEvent'](_0x27037f);break;}}['_handleJoinEvent'](_0x1fe0a8){const _0x4aa4ae=_0x25a5b5,{unitIDs:_0x1df49e,memberID:_0x289522,isForwarded:_0x34b900}=_0x1fe0a8;_0x1df49e['forEach'](_0x48ac1f=>{const _0x4af0d5=_0x2f8b;if(!_0x34b900&&this[_0x4af0d5(0x265)][_0x4af0d5(0x291)](_0x48ac1f)&&this[_0x4af0d5(0x210)](_0x48ac1f)[_0x4af0d5(0x195)](_0x34ca89[_0x4af0d5(0x1f9)]),!this[_0x4af0d5(0x265)][_0x4af0d5(0x291)](_0x48ac1f)||!this[_0x4af0d5(0x265)][_0x4af0d5(0x193)](_0x48ac1f)[_0x4af0d5(0x291)](_0x289522)){const _0x2a197d=this['_unitOnClients'][_0x4af0d5(0x193)](_0x48ac1f)||new Set();_0x2a197d[_0x4af0d5(0x324)](_0x289522),this[_0x4af0d5(0x265)][_0x4af0d5(0x145)](_0x48ac1f,_0x2a197d),this['_scheduleClearOtherTimer'](_0x289522);}}),_0x34b900||this[_0x4aa4ae(0x365)]({'type':0x0,'memberID':this[_0x4aa4ae(0x29b)],'unitIDs':[...this[_0x4aa4ae(0x1c4)]],'isForwarded':!0x0});}[_0x25a5b5(0x2f7)](_0x232e7f){const _0x428559=_0x25a5b5;this[_0x428559(0x184)](_0x232e7f);const _0x3ac390=window['setTimeout'](()=>{const _0x57bbad=_0x428559;this[_0x57bbad(0x265)][_0x57bbad(0x1af)](_0x3b411d=>{const _0x293103=_0x57bbad;_0x3b411d[_0x293103(0x161)](_0x232e7f);});},St*0x2);this[_0x428559(0x1d9)][_0x428559(0x145)](_0x232e7f,_0x3ac390);}[_0x25a5b5(0x184)](_0xdd8b0e){const _0x558459=_0x25a5b5;if(this['_clearOtherTimers']['has'](_0xdd8b0e)){const _0x53d2ab=this[_0x558459(0x1d9)][_0x558459(0x193)](_0xdd8b0e);_0x53d2ab&&window[_0x558459(0x2d8)](_0x53d2ab),this[_0x558459(0x1d9)]['set'](_0xdd8b0e,null);}}[_0x25a5b5(0x1d7)](_0x4c49c5){const {memberID:_0x6463de,unitIDs:_0x402f44}=_0x4c49c5;_0x402f44['forEach'](_0x531d8f=>{const _0x98184e=_0x2f8b;var _0x240f63;const _0x31cbc3=this['_unitOnClients'][_0x98184e(0x193)](_0x531d8f);_0x31cbc3&&(_0x31cbc3['delete'](_0x6463de),(_0x240f63=this[_0x98184e(0x210)](_0x531d8f))==null||_0x240f63[_0x98184e(0x195)](_0x31cbc3[_0x98184e(0x29a)]===0x0?_0x34ca89['NO_OTHER_CLIENTS_EDITING']:_0x34ca89[_0x98184e(0x1f9)]));}),this['_removeClearOtherTimer'](_0x6463de);}[_0x25a5b5(0x169)](_0x33a515){const _0x2a9345=_0x25a5b5;this[_0x2a9345(0x2f7)](_0x33a515[_0x2a9345(0x21b)]);}[_0x25a5b5(0x365)](_0xd03f75){const _0x15aea0=_0x25a5b5;localStorage[_0x15aea0(0x34b)](It,JSON[_0x15aea0(0x165)](_0xd03f75));}[_0x25a5b5(0x335)](){const _0x4e5206=_0x25a5b5;this[_0x4e5206(0x386)]=window[_0x4e5206(0x1e4)](()=>{const _0x3544e8=_0x4e5206;this[_0x3544e8(0x365)]({'type':0x2,'memberID':this['_id']});},St);}[_0x25a5b5(0x210)](_0x26ad7f){const _0x48d2af=_0x25a5b5;return this[_0x48d2af(0x2b0)][_0x48d2af(0x291)](_0x26ad7f)||this[_0x48d2af(0x2b0)][_0x48d2af(0x145)](_0x26ad7f,new _0x5c2484(_0x34ca89[_0x48d2af(0x278)])),this[_0x48d2af(0x2b0)]['get'](_0x26ad7f);}}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 _0x32c856=_0x403b;(function(_0x57ab48,_0x2be76f){const _0x441005=_0x403b,_0x44fc92=_0x57ab48();while(!![]){try{const _0x43ca00=parseInt(_0x441005(0x11f))/0x1*(parseInt(_0x441005(0x324))/0x2)+-parseInt(_0x441005(0x360))/0x3*(parseInt(_0x441005(0x230))/0x4)+parseInt(_0x441005(0x1e5))/0x5+-parseInt(_0x441005(0x11b))/0x6+-parseInt(_0x441005(0x1fc))/0x7+parseInt(_0x441005(0x124))/0x8*(-parseInt(_0x441005(0x31a))/0x9)+parseInt(_0x441005(0x2b6))/0xa*(parseInt(_0x441005(0x14f))/0xb);if(_0x43ca00===_0x2be76f)break;else _0x44fc92['push'](_0x44fc92['shift']());}catch(_0xd4adac){_0x44fc92['push'](_0x44fc92['shift']());}}}(_0x1b0a,0x2534f));var Yt=Object[_0x32c856(0x17f)],Wt=(_0xa073bf,_0x381c20,_0x487f89)=>_0x381c20 in _0xa073bf?Yt(_0xa073bf,_0x381c20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x487f89}):_0xa073bf[_0x381c20]=_0x487f89,_=(_0x1b0391,_0x4f7923,_0x28e290)=>Wt(_0x1b0391,typeof _0x4f7923!=_0x32c856(0x27d)?_0x4f7923+'':_0x4f7923,_0x28e290);import{jsx as _0x5493cd,jsxs as _0x1af67e}from'react/jsx-runtime';import{CollaborationStatus as _0x4c2ad5,CollaborationSessionService as _0x587ed6,CollaborationController as _0x5c5058,DataLoaderService as _0x273a2e,MemberService as _0x522824,SessionStatus as _0x575fec,ILocalCacheService as _0x58c896,CollaborationUIEventService as _0x168d8a,CollaborationUIEventId as _0xa2113b,DocCollaborationEntity as _0x4e3ede,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3fe88d,getLocalCacheKey as _0x229de6,LOCAL_CACHE_INTERVAL as _0x5a6993,LOCAL_CACHE_INTERVAL_KEY as _0x2bfc4e,UniverCollaborationClientPlugin as _0x1804b3,CollaborationSocketService as _0x15cd37,DEFAULT_WS_SESSION_TICKET_URL as _0x48cac4,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5f3381,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3c751e,UnitStatus as _0x52dba4}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x19887b,IUniverInstanceService as _0x5ca55f,Inject as _0xb67117,Injector as _0x2d24f1,Disposable as _0x4ca9c1,createIdentifier as _0x4e5cb2,ILogService as _0x3f6a9a,ICommandService as _0x156a6d,Optional as _0x5aa7d3,RxDisposable as _0x2ed217,Workbook as _0x4f2df7,DOC_RANGE_TYPE as _0x5c4026,debounce as _0x5afc05,Rectangle as _0x396a74,DisposableCollection as _0x25c632,toDisposable as _0x1b8af1,UniverInstanceType as _0x4f09e5,generateRandomId as _0x3baa1f,COLORS as _0x588a4b,ColorKit as _0x1dccbf,ThemeService as _0x56a243,fromEventSubject as _0x402d62,Tools as _0x5065b3,CommandType as _0xd457e7,IConfigService as _0x11135c,CanceledError as _0xc86ab2,isFormulaString as _0x45b7f1,isFormulaId as _0x89f427,ILocalStorageService as _0x15516c,DependentOn as _0x11a274,Plugin as _0xe8b968,merge as _0x8e76ea,registerDependencies as _0x5dea0c,mergeOverrideWithDependencies as _0x586813,touchDependencies as _0x310bec}from'@univerjs/core';import{useObservable as _0x1c33a8,useDependency as _0x460196,IUIPartsService as _0x2f68b9,BuiltInUIPart as _0x258084,connectInjector as _0x228f0a,IBeforeCloseService as _0x1cd947,IMessageService as _0x2f7eba,INotificationService as _0x5e175a}from'@univerjs/ui';import{BehaviorSubject as _0x41d101,switchMap as _0x56c1e8,of as _0x5ee058,takeUntil as _0x67f666,debounceTime as _0x46df12,Subject as _0x5efb66,filter as _0x46c4a8,merge as _0x486cdc,combineLatest as _0x2119f1,fromEvent as _0x3ec5c6,shareReplay as _0x4ece6c,mapTo as _0x51e742,distinctUntilChanged as _0x1c16f5}from'rxjs';import{Tooltip as _0x3b870b,clsx as _0x378f5c,MessageType as _0x4659ab}from'@univerjs/design';import{useRef as _0x222106,createElement as _0x3f9b2e,forwardRef as _0x1fac2f,useCallback as _0x48bd4d}from'react';import{IRemoteInstanceService as _0x431e00}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x593f00,RefRangeService as _0x14fcb5,SetSelectionsOperation as _0x540687,SheetsSelectionsService as _0xd7d38a,EffectRefRangId as _0x2b9ce8,handleIRemoveRow as _0x42945e,handleIRemoveCol as _0x365800,handleMoveRange as _0x540c44,handleInsertRow as _0x20f1d3,handleInsertRangeMoveRight as _0x502556,handleInsertRangeMoveDown as _0x5405c9,handleInsertCol as _0x202d24,handleDeleteRangeMoveUp as _0x21f53c,handleDeleteRangeMoveLeft as _0x2d748d,runRefRangeMutations as _0x25e741}from'@univerjs/sheets';import{Shape as _0xd21fe3,Rect as _0x1310d2,getColor as _0x13fecd,RegularPolygon as _0x320ae7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3ee913,Vector2 as _0x9ebff6,SHEET_VIEWPORT_KEY as _0x2099da,IRenderManagerService as _0xd3a36}from'@univerjs/engine-render';import{HTTPService as _0x2841df,ISocketService as _0x40d85f,WebSocketService as _0x372265}from'@univerjs/network';function _0x1b0a(){const _0x4a8fc6=['svg','displayName','[RemoteUniscriptService]:\x20no\x20focused\x20unit','runOnServer','_setFormulaLimitStatus','symbol','replace','key','REDEMPTION_USER_NOT_ELIGIBLE','ALREADY_EXISTS','blue.400','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','forEach','_updateCollabCursors','http://www.w3.org/2000/svg','_applyCommand','_drawRectRange','ENTITLE_REPORT_LIMIT_EXCEED','?taskId=','whenReady','SUCCESS','substring','pipe','color','m2Prime','INVALID_ARGUMENT','_taskIds','ENTITLE_INSUFFICIENT_QUOTA','attrs','type','_drawAnchor','onCommandExecuted','getCurrentSelections','url(#on-line-icon_clip0_910_349)','getCollabCursors$','...','_refreshCollabCursors','selections','permission.title','includes','hovered','sessionTicket','REDEMPTION_CODE_HAS_BEEN_CREATED','ENTITLE_INVALID_COUPON_CODE','on-line-icon','post','replaceState','fill','_backgroundColor','UNDEFINED','_hasFormulaInDirtyRanges','clipPath','_initStatusComponent','_ensureSubject','MoveRangeCommandId','UniverIcon','OTHER_CLIENTS_EDITING','_docClipboardService','APPLY_DUPLICATED','get','reason','saveImage','16990MNfbuc','stringify','doc.mutation.rich-text-editing','_clearOtherTimers','USERS_LEAVE','with','getCellPositionByOffset','actions','addClipboardHook','subscribe','getViewport','getMemberID','isActive','size','_docTransformSelectionsService','catch','on-line-icon_clip0_910_349','shift','SUBMIT_CHANGESET_TIMEOUT','memberID','_initResize','makeDirty','EMAIL_VERIFY_CODE_MISMATCH','_handleHeartbeatEvent','collabStatus.synced','_scheduleClearOtherTimer','collaboration.closeRoom','getCollabEntity$','currentTheme$','_colorIndex','_collaborationUIEventService','_shapes','_unitOnClients','origin','_range','[Unhandled\x20Rejection]:\x20','syncEditingCollabCursor','complete','transformByState','parse','join','startsWith','addObject','PENDING','_pollingInterval','getValue','filename','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','TOO_MANY_REQUESTS','_collabCursorState$','restore','isEditing','_clearPolling','_render','YUUMI_AI_RUN_FAILED','add','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_showGuardMessage','href','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_RATE_OVER_LIMIT','urlChange$','_initDependencies','getVpScrollXYInfoByPosToVp','send','engine','getCellMatrix','code','NO_OTHER_CLIENTS_EDITING','collabStatus.notCollab','collab-client.tooltip.reconnect','CHANGESET_REVISION_CONFILICT','evenodd','_saveCache','univer-flex\x20univer-items-center','endRow','push','USER_IS_ANONYMOUS','_initEvent','getUnhiddenWorksheets','data','mask','InsertRowCommandId','Success','setParam','_handleJoinEvent','_onCursorUpdate','_getSheetObject','addObjects','SOCKET_FAILED','use','getStateCache','ERROR_AGAIN','url(#off-line-icon_clip0_910_343)','sheetID','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_UNITS_EXCEEDED','_docSkeletonManagerService','findNodePositionByCharIndex','currentColor','333NnDzgC','top','m1Prime','_instanceService','YUUMI_SUBSCRIPTION_NOT_FOUND','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getSheetId','INVITE_CODE_ALREADY_BOUND','startColumn','_initUserListener','60JYfZYh','_removeClearOtherTimer','_drawTextRange','maxFormulaLimit','removeEventListener','_selfUnitIDs','_startCalculationLimit','executionId','transformStateCache','session.connection-failed','assignAColorForMemberID','clearInterval','NOT_FOUND','disposeWithMe','width','collabCursorState$','deepClone','_initUnhandledRejectionListener','registerRefRange','bottom','_localeService','getUniverSheetInstance','YUUMI_ASYNCIO_CANCELLED','_sheetSkeletonManagerService','getRelativeToViewportCoord','MOBILE_HAS_BEEN_BOUND','OnLineIcon','_transformService','_docSkeleton','_refRangeService','getRenderById','find','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchorDot','getCurrent','unshift','_cursors','UPDATE_CURSOR','formula.calculation.unable','[LogService\x20Error]:\x20','VIEW_MAIN','PAYMENT_CHANNEL_NOT_SUPPORT','_renderManagerService','LICENSE_DISTRO_REJECTED','getformulaLimitStatusUrl','getActiveSheet','_init','unit','limitInfo','status$','_colorAssignService','redoState','flatMap','0\x200\x2017\x2016','_scheduleHeartbeat','OffLineIcon','searchParams','_startSheetCollabCursor','_handleEvent','3BpkNNV','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onStarting','beforeCommandExecuted','column','getRangePointData','getColorFromTheme','ENTITLE_COUPON_EXPIRED','_initWindowErrorListener','onPointerEnter$','609348nLIiEv','getTypeOfUnitDisposed$','ENSURE_SNAPSHOT_EXECUTION','getCurrentRevOfUnit','103HYwZXC','ACTIVE_UNIT_EVENT_CHANNEL','LICENSE_IMPORT_SIZE_EXCEEDED','children','unhandledrejection','54904MhHmWJ','setTimeout','YUUMI_UNABLE_LOAD_URL','_toggleOffline','params','_messageService','triggerDblclick','_localCacheService','saveTaskMap','_transformHistoryAndStateStack','error','idSuffix','registerComponent','formula.calculation.waiting','\x20at\x20','string','current','_initCommandExecutedListener','removeParam','[CollaborationDataLoaderController]','setUndoRedoMutationParamsCache','collaboration.single-unit.warning','subscribeEvent','JOIN_ROOM_FAILED','off-line-icon','collabStatus.offline','getAncestorScale','REDEMPTION_INVALID_CODE','enableLocalCache','getItem','_unitStatus','REDEMPTION_CODE_NOT_STARTED','_cursorShapes','focused$','_lastResponseTimestamp','HEADER_MENU','collab-text-range-','APPLY_REVISION_CONFILICT','REDEMPTION_CODE_FULLY_REDEEMED','range','translate(.97)','entries','defs','3663WSgHTo','Error','_cursor','history','ranges','startRow','length','SYNCED','setItem','_initEntityListener','drawWith','_getSessionTicket','_commandService','arc','getUnitId','transformSelections','clearTimeout','functionsExecutedState','body','_anchor','height','Warning','subunit','APPLY_REJECT','_memberService','_entityInit$','getOwnPropertyDescriptor','pushState','_labelPosition','row','lineno','INVALID_INVITE_CODE','text','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerMove$','_maxFormulaLimit','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_currentUsage','newValue','CONFLICT','tag','defIds','values','setShapeProps','_docStateChangeManagerService','location','_docTransformIMECacheService','toString','defineProperty','AWAITING_WITH_PENDING','_session','/universer-api/license/formula/limit/status','_updateURLWithCurrentState','_collaborationController','/universer-api/frontend/logs','_memberID','_updateLocalCursor','onPointerLeave$','transformIMECache','_checkCalculationAvailable','_imageIoService','dispose','transformMutation','_localStorageService','stack','eventID','set','roomMembers','_hovered','_handleLeaveEvent','_checkAndWaitForCalculationPermission','unitId','storage','FETCH_MISS','YUUMI_URL_COL_OUT_OF_RANGE','name','colorChannel1','UNAUTHENTICATED','sessionStatus$','wsSessionTicketUrl','_univerInstanceService','ticket','_initCommandInterceptor','/run/','getConfig','currentUsage','ENTITLE_NEED_BILLING_ADDRESS','xlink:href','NOT_COLLAB','permission.content','CURRENT_STATUS_CANNOT_OPERATE','textRanges','debug','_transformPreviousActiveRange','FromArray','APPLY_PERMISSION_DENIED','_color','_scene','addHandlerCallback','/universer-api/license/formula/limit/done','YUUMI_CONNECTOR_URL_NOT_FOUND','_logService','transformMutationsWithChangeset','_entities','next','isArray','some','onMouseMove','onRendered','green.600','sheetId','EMAIL_HAS_BEEN_BOUND','_setupBeforeClosingHandler','_initStatusListener','path','UNIVER_SHEET','RemoveRowCommandId','getMergeData','_lastPointer','backgroundColor','unsubscribe','socket$','hide','setInterval','lineTo','assign','beginPath','yellow.400','bind','_uiPartsService','_themeService','roomMembers$','registerRenderModule','_draw','_onRefRangeChange','TEXT','event$','getDocRanges','_setupSubUnitSync','_collabSessionService','_scheduleSaving','_textBubble','[Window\x20Error]:\x20','_transformUndoRedoStack','getSkeleton','_cachedData','_document','setStateCache','unitID','imageSourceType','623165aoufZL','jiqing.500','map','exhaustSavingTask','show','div','DATA_SOURCE_TOO_LARGE','_beforeCloseService','_heartbeatTimer','_onCursorDelete','addEventListener','setActiveRange','requireSession','_urlService','_revisionService','_disabled','_injector','getMember','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','AWAITING','createInstance','_updateSubUnitFromURLParams','916664czUkqm','_context','_uploadLog','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','asObservable','_getFormulaLimitStatus','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','selection','enableFrontendLog','START_CALCULATION','_getSaveTimeout','getParam','CLOSE_ROOM','all','now','uni.network.url-service','labelPosition','INVITE_CODE_HAS_BEEN_UES','SNAPSHOT_HAS_BEEN_REMOVED','invokeId','fillText','min','rgba(255,\x20255,\x20255,\x200.01)','_config','replaceDocRanges','_assignedColors','_send','entityInit$','Unknown\x20user','contains','currentSkeleton$','undoState','fillRule','application/json','1em','ENTITLE_CHAT_LIMIT_EXCEED','_online','_httpService','off-line-icon_clip0_910_343','UNIVER_DOC','override','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OFFLINE','MOBILE_VERIFY_CODE_MISMATCH','WECHAT_HAS_BEEN_BOUND','_saveTaskMap','from','stage','unload','LOGIN_FAILED','endColumn','218600LVjJJI','YUUMI_ALL_TABLES_IS_INVALID','onTransformChange$','getTypeOfUnitAdded$','ENTITLE_COUPON_USED_UP','mutations','dispose$','saveOfflineData','collaboration.offline-data-not-saved','session.collaboration-timeout','_hover','fillStyle','has','PY_RUNTIME_SCRIPT_ERROR','_configService','round','_roomMembers$','_registerDependencies','black','_createSocketURL','_syncEditingCollabCursorService','measureText','_handleHover','CONNECTOR_DATA_TOO_LARGE','_releaseCalculationLimit','_status$','_toggleOnline','_getAnchorBounding','PERMISSION_DENIED','RECT','reconnect','delete','_cursorInfo$','disposeUnit','_registerRenderDependencies','split','startFormulaLimitUrl','INTERNAL_ERROR','APPLY_NON_SEQUENTIAL_REVISION','_getScale','_docSyncEditingCollabCursorService','runId','then','_hideTimer','REDEMPTION_CODE_INACTIVE','trim','ONLINE','DeleteRangeMoveLeftCommandId','getSheetBySheetId','toRgbString','formula.calculation.started','_notificationService','cursorInfo','transformRemoteChangeset','getFocusedUnit','popstate','cursorInfo$','INVITE_CODE_REQUIRED','collabStatus.syncing','_eventUnsubscribe','_id','init','executeCommand','totalFormulasToCalculate','_startDocCollabCursor','UNRECOGNIZED','Failed','M0\x200H16V16H0z','setConfig','save','getUnit','_removeCollabCursors'];_0x1b0a=function(){return _0x4a8fc6;};return _0x1b0a();}import{IDocClipboardService as _0x57fc3a,NodePositionConvertToCursor as _0x5d71a8,NodePositionConvertToRectRange as _0x2247c5,TEXT_RANGE_LAYER_INDEX as _0x473fb7,SetDocZoomRatioOperation as _0x43466a,DocIMEInputManagerService as _0x31d69b,DocStateChangeManagerService as _0x228351}from'@univerjs/docs-ui';import{IImageIoService as _0x535bd8}from'@univerjs/drawing';import{ITransformService as _0x55d9fe,CollaborationEvent as _0x37a19e,isTransformMutationFailure as _0x28a617,isTransformMutationsWithChangesetSuccess as _0x483523,RevisionService as _0x363489,ISnapshotServerService as _0x4d6ee2}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x285f06,RichTextEditingMutation as _0x33706b,DocSelectionManagerService as _0x3fd45e,DocSkeletonManagerService as _0x72d0b4}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2adee1,serializeRangeWithSheet as _0x29f909,FormulaExecuteStageType as _0x418364,FormulaExecutedStateType as _0x1d1fe7,SetFormulaCalculationStartMutation as _0xc0ef9d,SetFormulaCalculationNotificationMutation as _0x22ae1d}from'@univerjs/engine-formula';import{map as _0x33188f,filter as _0x88e841,throttleTime as _0x570b9f,takeUntil as _0xcdf3c0,switchMap as _0x320766}from'rxjs/operators';import{SheetSkeletonManagerService as _0x150f98,getCoordByCell as _0x245eeb,getSheetObject as _0x477d6e}from'@univerjs/sheets-ui';function Ge({ref:_0x54c60e,..._0x5bdeb0}){const _0x8edb3c=_0x32c856,{icon:_0x4a14cc,id:_0x5f141a,className:_0x73d44,extend:_0x3f8a43,..._0x1eaad5}=_0x5bdeb0,_0x4e47b0=('univerjs-icon\x20univerjs-icon-'+_0x5f141a+'\x20'+(_0x73d44||''))[_0x8edb3c(0x25d)](),_0x41bf42=_0x222106('_'+vi());return At(_0x4a14cc,''+_0x5f141a,{'defIds':_0x4a14cc[_0x8edb3c(0x178)],'idSuffix':_0x41bf42[_0x8edb3c(0x134)]},{'ref':_0x54c60e,'className':_0x4e47b0,..._0x1eaad5},_0x3f8a43);}function At(_0x1d2f26,_0x4f49b7,_0xb52c92,_0x285b81,_0x2c2563){const _0x4c31b3=_0x32c856;return _0x3f9b2e(_0x1d2f26[_0x4c31b3(0x177)],{'key':_0x4f49b7,...gi(_0x1d2f26,_0xb52c92,_0x2c2563),..._0x285b81},(Ei(_0x1d2f26,_0xb52c92)[_0x4c31b3(0x122)]||[])['map']((_0x1a9ff2,_0x186b92)=>At(_0x1a9ff2,_0x4f49b7+'-'+_0x1d2f26[_0x4c31b3(0x177)]+'-'+_0x186b92,_0xb52c92,void 0x0,_0x2c2563)));}function gi(_0x974c2,_0x239015,_0x364fae){const _0x3922b2=_0x32c856,_0x592961={..._0x974c2[_0x3922b2(0x294)]};_0x364fae!=null&&_0x364fae[_0x3922b2(0x19b)]&&_0x592961[_0x3922b2(0x2a7)]==='colorChannel1'&&(_0x592961[_0x3922b2(0x2a7)]=_0x364fae[_0x3922b2(0x19b)]),_0x974c2['tag']===_0x3922b2(0x307)&&_0x592961['id']&&(_0x592961['id']=_0x592961['id']+_0x239015[_0x3922b2(0x12f)]),Object[_0x3922b2(0x14d)](_0x592961)[_0x3922b2(0x284)](([_0x4ae00e,_0x33559f])=>{const _0x2a1358=_0x3922b2;_0x4ae00e===_0x2a1358(0x307)&&typeof _0x33559f==_0x2a1358(0x133)&&(_0x592961[_0x4ae00e]=_0x33559f[_0x2a1358(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x239015[_0x2a1358(0x12f)]+')'));});const {defIds:_0x2707b0}=_0x239015;return!_0x2707b0||_0x2707b0[_0x3922b2(0x155)]===0x0||(_0x974c2[_0x3922b2(0x177)]===_0x3922b2(0x310)&&_0x592961['xlink:href']&&(_0x592961[_0x3922b2(0x1a6)]=_0x592961['xlink:href']+_0x239015['idSuffix']),Object[_0x3922b2(0x14d)](_0x592961)[_0x3922b2(0x284)](([_0x20710c,_0x163c48])=>{const _0x4b0872=_0x3922b2;typeof _0x163c48==_0x4b0872(0x133)&&(_0x592961[_0x20710c]=_0x163c48[_0x4b0872(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x239015[_0x4b0872(0x12f)]+')'));})),_0x592961;}function Ei(_0xea1c2f,_0x589218){const _0x2a3c89=_0x32c856;var _0x1e2f3a;const {defIds:_0x34b163}=_0x589218;return!_0x34b163||_0x34b163[_0x2a3c89(0x155)]===0x0?_0xea1c2f:_0xea1c2f[_0x2a3c89(0x177)]===_0x2a3c89(0x14e)&&((_0x1e2f3a=_0xea1c2f[_0x2a3c89(0x122)])!=null&&_0x1e2f3a[_0x2a3c89(0x155)])?{..._0xea1c2f,'children':_0xea1c2f[_0x2a3c89(0x122)][_0x2a3c89(0x1e7)](_0x23ae45=>typeof _0x23ae45['attrs']['id']==_0x2a3c89(0x133)&&_0x34b163&&_0x34b163['includes'](_0x23ae45[_0x2a3c89(0x294)]['id'])?{..._0x23ae45,'attrs':{..._0x23ae45[_0x2a3c89(0x294)],'id':_0x23ae45['attrs']['id']+_0x589218[_0x2a3c89(0x12f)]}}:_0x23ae45)}:_0xea1c2f;}function vi(){const _0xce018c=_0x32c856;return Math['random']()[_0xce018c(0x17e)](0x24)[_0xce018c(0x28d)](0x2,0x8);}Ge['displayName']=_0x32c856(0x2af);const pi={'tag':_0x32c856(0x278),'attrs':{'xmlns':_0x32c856(0x286),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x32c856(0x21f),'height':_0x32c856(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x32c856(0x313)},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'stroke':_0x32c856(0x319),'d':_0x32c856(0x2e5),'strokeLinecap':_0x32c856(0x23f),'strokeLinejoin':_0x32c856(0x23f),'strokeWidth':1.2}}]},{'tag':_0x32c856(0x14e),'attrs':{},'children':[{'tag':_0x32c856(0x2ab),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'fill':'white','d':_0x32c856(0x273)}}]}]}],'defIds':[_0x32c856(0x223)]},Pt=_0x1fac2f(function(_0x34f01c,_0x69c7f){const _0x191e93=_0x32c856;return _0x3f9b2e(Ge,Object[_0x191e93(0x1cc)]({},_0x34f01c,{'id':_0x191e93(0x13c),'ref':_0x69c7f,'icon':pi}));});Pt[_0x32c856(0x279)]=_0x32c856(0x35c);const Oi={'tag':'svg','attrs':{'xmlns':_0x32c856(0x286),'fill':'none','viewBox':_0x32c856(0x35a),'width':'1em','height':_0x32c856(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x32c856(0x299)},'children':[{'tag':'path','attrs':{'stroke':_0x32c856(0x319),'d':_0x32c856(0x283),'strokeLinecap':'round','strokeLinejoin':_0x32c856(0x23f),'strokeWidth':1.2}}]},{'tag':_0x32c856(0x14e),'attrs':{},'children':[{'tag':_0x32c856(0x2ab),'attrs':{'id':_0x32c856(0x2c6)},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x32c856(0x14c)}}]}]}],'defIds':[_0x32c856(0x2c6)]},wt=_0x1fac2f(function(_0x19ef91,_0x4de1cf){const _0x372205=_0x32c856;return _0x3f9b2e(Ge,Object[_0x372205(0x1cc)]({},_0x19ef91,{'id':_0x372205(0x2a4),'ref':_0x4de1cf,'icon':Oi}));});wt[_0x32c856(0x279)]=_0x32c856(0x33e);function Ti(_0x18e615){const _0x3d2bd8=_0x32c856;switch(_0x18e615){case _0x4c2ad5[_0x3d2bd8(0x227)]:return _0x3d2bd8(0x13d);case _0x4c2ad5['CONFLICT']:return'collabStatus.conflict';case _0x4c2ad5[_0x3d2bd8(0x198)]:return'collabStatus.fetchMiss';case _0x4c2ad5['NOT_COLLAB']:return _0x3d2bd8(0x2fb);case _0x4c2ad5[_0x3d2bd8(0x1f9)]:case _0x4c2ad5[_0x3d2bd8(0x180)]:return _0x3d2bd8(0x26a);case _0x4c2ad5[_0x3d2bd8(0x156)]:case _0x4c2ad5[_0x3d2bd8(0x2e1)]:return _0x3d2bd8(0x2ce);}}function Ci(_0x386856){const _0x3083f9=_0x32c856,{status$:_0x3333a3}=_0x386856,_0x32eea9=_0x1c33a8(_0x3333a3,_0x4c2ad5[_0x3083f9(0x1a7)]),_0x2ff44a=_0x460196(_0x19887b),_0x2ad893=_0x460196(_0x587ed6),_0x4b9c42=_0x32eea9!==_0x4c2ad5[_0x3083f9(0x227)],_0x40bd66=_0x2ff44a['t'](Ti(_0x32eea9)),_0x13f777=_0x4b9c42?_0x5493cd(wt,{}):_0x5493cd(Pt,{}),_0x42fb51=_0x48bd4d(()=>{const _0x491535=_0x3083f9;_0x4b9c42||_0x2ad893[_0x491535(0x24e)]();},[_0x4b9c42,_0x2ad893]);function _0x59af15(){const _0x43a749=_0x3083f9;return _0x1af67e(_0x43a749(0x1ea),{'className':_0x43a749(0x300),'onClick':_0x42fb51,'children':[_0x5493cd(_0x43a749(0x1ea),{'className':_0x378f5c('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x4b9c42,'univer-text-red-500':!_0x4b9c42}),'children':_0x13f777}),_0x5493cd(_0x43a749(0x1ea),{'className':_0x43a749(0x203),'children':_0x40bd66})]});}return _0x4b9c42?_0x59af15():_0x5493cd(_0x3b870b,{'title':_0x2ff44a['t'](_0x3083f9(0x2fc)),'children':_0x59af15()});}var Ri=Object[_0x32c856(0x169)],Di=(_0xc02c04,_0x13bad5,_0x1c46d3,_0x48176b)=>{for(var _0x5a2e03=_0x48176b>0x1?void 0x0:_0x48176b?Ri(_0x13bad5,_0x1c46d3):_0x13bad5,_0x20120c=_0xc02c04['length']-0x1,_0x24851b;_0x20120c>=0x0;_0x20120c--)(_0x24851b=_0xc02c04[_0x20120c])&&(_0x5a2e03=_0x24851b(_0x5a2e03)||_0x5a2e03);return _0x5a2e03;},se=(_0x56430d,_0x133a90)=>(_0x158fec,_0x37307a)=>_0x133a90(_0x158fec,_0x37307a,_0x56430d);let ae=class extends _0x4ca9c1{constructor(_0x336631,_0x2cdd03,_0x1a8d9c,_0xd79ad2){const _0x196c50=_0x32c856;super(),_(this,'_status$',new _0x41d101(_0x4c2ad5[_0x196c50(0x1a7)])),(this['_univerInstanceService']=_0x336631,this['_injector']=_0x2cdd03,this[_0x196c50(0x184)]=_0x1a8d9c,this['_uiPartsService']=_0xd79ad2,this[_0x196c50(0x2ac)](),this[_0x196c50(0x1c0)]());}[_0x32c856(0x1c0)](){const _0x1c5cb3=_0x32c856;this['disposeWithMe'](this[_0x1c5cb3(0x19f)][_0x1c5cb3(0x145)]['pipe'](_0x56c1e8(()=>{const _0x208221=_0x1c5cb3,_0x8018e4=this[_0x208221(0x19f)][_0x208221(0x266)]();return _0x8018e4?this[_0x208221(0x184)][_0x208221(0x2d1)](_0x8018e4[_0x208221(0x15d)]()):_0x5ee058(null);}),_0x56c1e8(_0x31fc07=>_0x31fc07?_0x31fc07[_0x1c5cb3(0x356)]:_0x5ee058(_0x4c2ad5['NOT_COLLAB'])))[_0x1c5cb3(0x2bf)](_0x537acd=>{const _0x297808=_0x1c5cb3;this[_0x297808(0x249)][_0x297808(0x1b7)](_0x537acd);}));}[_0x32c856(0x2ac)](){const _0x562373=_0x32c856;this[_0x562373(0x331)](this[_0x562373(0x1d0)][_0x562373(0x130)](_0x258084[_0x562373(0x147)],()=>_0x228f0a(Ni({'status$':this['_status$'][_0x562373(0x200)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ca55f),se(0x1,_0xb67117(_0x2d24f1)),se(0x2,_0xb67117(_0x5c5058)),se(0x3,_0x2f68b9)],ae);function Ni(_0x46ccf1){const {status$:_0x58d2b7}=_0x46ccf1;return function(){return _0x5493cd(Ci,{'status$':_0x58d2b7});};}const yt=_0x4e5cb2(_0x32c856(0x20c));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x327aea,_0x3bcb63,_0x3e0927,_0x9c2a3)=>{const _0x56090a=_0x32c856;for(var _0x41a198=_0x9c2a3>0x1?void 0x0:_0x9c2a3?bi(_0x3bcb63,_0x3e0927):_0x3bcb63,_0x4e1642=_0x327aea[_0x56090a(0x155)]-0x1,_0x2c5cee;_0x4e1642>=0x0;_0x4e1642--)(_0x2c5cee=_0x327aea[_0x4e1642])&&(_0x41a198=_0x2c5cee(_0x41a198)||_0x41a198);return _0x41a198;},K=(_0x4b1418,_0x25b84e)=>(_0x37ff05,_0x59787d)=>_0x25b84e(_0x37ff05,_0x59787d,_0x4b1418);let ce=class extends _0x2ed217{constructor(_0x392137,_0x1cefb4,_0x2e6db6,_0x993a24,_0x9a1e9f){const _0xb3e806=_0x32c856;super(),this['_urlService']=_0x392137,this[_0xb3e806(0x1b4)]=_0x1cefb4,this[_0xb3e806(0x15b)]=_0x2e6db6,this['_dataLoaderService']=_0x993a24,_0x9a1e9f?_0x9a1e9f==null||_0x9a1e9f[_0xb3e806(0x28b)]()[_0xb3e806(0x25a)](()=>this[_0xb3e806(0x353)]()):(this[_0xb3e806(0x1b4)][_0xb3e806(0x1ab)]('[CollaborationDataLoaderController]',_0xb3e806(0x345)),this[_0xb3e806(0x353)]());}async[_0x32c856(0x353)](){const _0x1729de=_0x32c856,_0x1bfbd4=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x354)),_0x35229c=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x295)),_0x31232d=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x165));if(!_0x1bfbd4||!_0x35229c){this['_logService'][_0x1729de(0x1ab)](_0x1729de(0x137),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x3c6ef5=await this['_dataLoaderService']['loadUnit'](_0x1bfbd4,Number(_0x35229c),_0x31232d);_0x3c6ef5&&_0x3c6ef5 instanceof _0x4f2df7&&this[_0x1729de(0x1d9)](_0x3c6ef5);}async[_0x32c856(0x1d9)](_0x8d380c){const _0x24b6c9=_0x32c856;await this['_updateSubUnitFromURLParams'](_0x8d380c),_0x8d380c['activeSheet$'][_0x24b6c9(0x28e)](_0x67f666(this[_0x24b6c9(0x236)]))[_0x24b6c9(0x2bf)](_0x25c156=>{const _0x34a7d2=_0x24b6c9;_0x25c156&&this[_0x34a7d2(0x183)](_0x25c156);}),this[_0x24b6c9(0x1f2)][_0x24b6c9(0x2f3)][_0x24b6c9(0x28e)](_0x67f666(this[_0x24b6c9(0x236)]))['subscribe'](()=>this[_0x24b6c9(0x1fb)](_0x8d380c));}[_0x32c856(0x183)](_0x58c43f,_0x6cc57a=!0x1){const _0xd31bc9=_0x32c856,_0x5ee9fa=this[_0xd31bc9(0x1f2)][_0xd31bc9(0x208)](_0xd31bc9(0x165));_0x58c43f[_0xd31bc9(0x320)]()!==_0x5ee9fa&&this['_urlService'][_0xd31bc9(0x30a)]('subunit',_0x58c43f[_0xd31bc9(0x320)](),_0x6cc57a);}async[_0x32c856(0x1fb)](_0x2b46a4){const _0x3dd9ae=_0x32c856;var _0x4de2be;const _0x194a9f=this[_0x3dd9ae(0x1f2)]['getParam'](_0x3dd9ae(0x165));if(!_0x194a9f||!_0x2b46a4[_0x3dd9ae(0x260)](_0x194a9f)){const _0x513d81=_0x2b46a4[_0x3dd9ae(0x305)]()[0x0],_0x1950f8=_0x2b46a4['getSheetBySheetId'](_0x513d81);if(!_0x1950f8)return;this[_0x3dd9ae(0x183)](_0x1950f8,!0x0),await this[_0x3dd9ae(0x15b)][_0x3dd9ae(0x26e)](_0x593f00['id'],{'unitId':_0x2b46a4[_0x3dd9ae(0x15d)](),'subUnitId':_0x513d81});return;}((_0x4de2be=_0x2b46a4[_0x3dd9ae(0x352)]())==null?void 0x0:_0x4de2be[_0x3dd9ae(0x320)]())!==_0x194a9f&&await this[_0x3dd9ae(0x15b)]['executeCommand'](_0x593f00['id'],{'unitId':_0x2b46a4[_0x3dd9ae(0x15d)](),'subUnitId':_0x194a9f});}};ce=Li([K(0x0,yt),K(0x1,_0x3f6a9a),K(0x2,_0x156a6d),K(0x3,_0xb67117(_0x273a2e)),K(0x4,_0x5aa7d3(_0x431e00))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x17089c,_0x4a444e,_0x3513a9,_0x4afa12)=>{const _0x23bddf=_0x32c856;for(var _0x339a53=_0x4afa12>0x1?void 0x0:_0x4afa12?Ui(_0x4a444e,_0x3513a9):_0x4a444e,_0x379a0f=_0x17089c[_0x23bddf(0x155)]-0x1,_0x286b6d;_0x379a0f>=0x0;_0x379a0f--)(_0x286b6d=_0x17089c[_0x379a0f])&&(_0x339a53=_0x286b6d(_0x339a53)||_0x339a53);return _0x339a53;},rt=(_0xdbcf74,_0x56f1da)=>(_0x33b6b9,_0x8d5e85)=>_0x56f1da(_0x33b6b9,_0x8d5e85,_0xdbcf74);let $e=class extends _0x2ed217{constructor(_0x4a5119,_0x368ff1){const _0x1a5246=_0x32c856;super(),this[_0x1a5246(0x2b1)]=_0x4a5119,this[_0x1a5246(0x18b)]=_0x368ff1,this[_0x1a5246(0x353)]();}[_0x32c856(0x353)](){const _0x2927aa=_0x32c856,_0x25eb05=this;this[_0x2927aa(0x331)](this[_0x2927aa(0x2b1)][_0x2927aa(0x2be)]({'onBeforePasteImage':async _0x5d4c63=>{const _0x7feb5c=_0x2927aa,_0x44383e=await _0x25eb05['_imageIoService'][_0x7feb5c(0x2b5)](_0x5d4c63);return _0x44383e?{'source':_0x44383e['source'],'imageSourceType':_0x44383e[_0x7feb5c(0x1e4)]}:null;}}));}};$e=Mi([rt(0x0,_0x57fc3a),rt(0x1,_0x535bd8)],$e);const ot=['purple.300',_0x32c856(0x1e6),_0x32c856(0x1bc),'red.300',_0x32c856(0x282),_0x32c856(0x1ce)];class Ke extends _0x4ca9c1{constructor(){const _0x416f01=_0x32c856;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x416f01(0x2d3),0x0);}[_0x32c856(0x32e)](_0x502894){const _0x46131d=_0x32c856;if(this['_assignedColors'][_0x46131d(0x23c)](_0x502894))return this[_0x46131d(0x216)][_0x46131d(0x2b3)](_0x502894);const _0x4603ff=ot[this[_0x46131d(0x2d3)]];return this[_0x46131d(0x2d3)]=(this[_0x46131d(0x2d3)]+0x1)%ot[_0x46131d(0x155)],this[_0x46131d(0x216)]['set'](_0x502894,_0x4603ff),_0x4603ff;}}function $t(_0x25d67e){const _0x3a6363=_0x32c856;let _0x3a6458='';for(const _0x198dd1 of _0x25d67e){const {startOffset:_0x4c51b3,endOffset:_0x3afe92,isActive:_0x62e66d,rangeType:_0xb86c4b,segmentId:_0x42bf71,segmentPage:_0x429e17}=_0x198dd1;_0x3a6458[_0x3a6363(0x155)]&&(_0x3a6458+=','),_0x3a6458+=_0x4c51b3+':'+_0x3afe92+':'+(_0x62e66d?'1':'0')+':'+_0xb86c4b+':'+_0x42bf71+':'+_0x429e17;}return _0x3a6458;}function Ai(_0x529e0e){const _0x1866bc=_0x32c856,_0x16df8b=_0x529e0e[_0x1866bc(0x253)](','),_0x37e525=[];for(const _0x3d40f9 of _0x16df8b){const [_0x2fddc3,_0x1ad7d1,_0x3ce03e,_0x24a94,_0x1d0526,_0x108a6e]=_0x3d40f9[_0x1866bc(0x253)](':');_0x37e525[_0x1866bc(0x302)]({'startOffset':Number(_0x2fddc3),'endOffset':Number(_0x1ad7d1),'collapsed':_0x2fddc3===_0x1ad7d1,'isActive':_0x3ce03e==='1','rangeType':_0x24a94===_0x5c4026['TEXT']?_0x5c4026[_0x1866bc(0x1d6)]:_0x5c4026[_0x1866bc(0x24d)],'segmentId':typeof _0x1d0526==_0x1866bc(0x133)?String(_0x1d0526):'','segmentPage':Number(_0x108a6e!=null?_0x108a6e:-0x1)});}return _0x37e525[_0x1866bc(0x1b9)](_0x105b08=>_0x105b08['isActive'])||(_0x37e525[0x0][_0x1866bc(0x2c2)]=!0x0),_0x37e525;}class ze extends _0x2ed217{constructor(){const _0x45880c=_0x32c856;super(...arguments),_(this,'_collabCursorState$',new _0x41d101(null)),_(this,_0x45880c(0x333),this[_0x45880c(0x2e7)][_0x45880c(0x200)]());}[_0x32c856(0x2da)](_0x217b4b){const _0x2ad8f1=_0x32c856,{unitID:_0x1a606d,memberID:_0x11d475,textRanges:_0x3ec009}=_0x217b4b,_0x14b32c=$t(_0x3ec009);if(_0x14b32c==='')return;const _0x1b08f7={'unitID':_0x1a606d,'memberID':_0x11d475,'selection':_0x14b32c};this[_0x2ad8f1(0x2e7)][_0x2ad8f1(0x1b7)](_0x1b08f7);}}var Pi=Object[_0x32c856(0x169)],wi=(_0x428894,_0x3bf122,_0x33d502,_0x22ef18)=>{const _0xf93e39=_0x32c856;for(var _0x467563=_0x22ef18>0x1?void 0x0:_0x22ef18?Pi(_0x3bf122,_0x33d502):_0x3bf122,_0x2fe366=_0x428894[_0xf93e39(0x155)]-0x1,_0x21b60c;_0x2fe366>=0x0;_0x2fe366--)(_0x21b60c=_0x428894[_0x2fe366])&&(_0x467563=_0x21b60c(_0x467563)||_0x467563);return _0x467563;},A=(_0x388520,_0x458bd6)=>(_0x4204ad,_0x5aae57)=>_0x458bd6(_0x4204ad,_0x5aae57,_0x388520);const yi=0x12c,$i=0x64;let xe=class extends _0x2ed217{constructor(_0x4138d2,_0x3ca086,_0x1a44db,_0x4aeb74,_0x360051,_0x2eaa1d,_0xe1aba6,_0x5747b8,_0x1bd27c){const _0x12af88=_0x32c856;super(),_(this,_0x12af88(0x221),!0x1),_(this,_0x12af88(0x353),!0x1),_(this,_0x12af88(0x250),new _0x41d101(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x12af88(0x200)]()),_(this,'_roomMembers$',new _0x41d101([])),_(this,_0x12af88(0x1d2),this[_0x12af88(0x240)][_0x12af88(0x28e)](_0x46df12(yi))),_(this,'_updateLocalCursor',_0x5afc05(_0x29993f=>{const _0x3c7c38=_0x12af88,_0x545a88={'eventID':_0x37a19e[_0x3c7c38(0x34a)],'data':{'unitID':this[_0x3c7c38(0x1e3)],'memberID':this['_session'][_0x3c7c38(0x2c1)](),'selection':$t(_0x29993f)}};this[_0x3c7c38(0x181)]['send'](_0x545a88,this[_0x3c7c38(0x1e3)]);},$i)),(this[_0x12af88(0x1e3)]=_0x4138d2,this['_session']=_0x3ca086,this[_0x12af88(0x1f5)]=_0x1a44db,this[_0x12af88(0x357)]=_0x4aeb74,this['_memberService']=_0x360051,this[_0x12af88(0x244)]=_0x2eaa1d,this[_0x12af88(0x33f)]=_0xe1aba6,this['_univerInstanceService']=_0x5747b8,this['_commandService']=_0x1bd27c);}get[_0x32c856(0x264)](){const _0x514ade=_0x32c856;return this[_0x514ade(0x250)][_0x514ade(0x2e3)]();}get['roomMembers'](){const _0x47b387=_0x32c856;return this['_roomMembers$'][_0x47b387(0x2e3)]();}['dispose'](){const _0x5972cd=_0x32c856;super[_0x5972cd(0x18c)](),this[_0x5972cd(0x250)]['next'](new Map()),this[_0x5972cd(0x250)]['complete'](),this[_0x5972cd(0x240)][_0x5972cd(0x1b7)]([]),this[_0x5972cd(0x240)][_0x5972cd(0x2db)]();}['init'](){const _0x10ce64=_0x32c856;this[_0x10ce64(0x353)]||(this[_0x10ce64(0x353)]=!0x0,this[_0x10ce64(0x181)][_0x10ce64(0x19d)][_0x10ce64(0x28e)](_0x67f666(this['dispose$']))['subscribe'](_0x18daee=>{const _0x50da47=_0x10ce64;_0x18daee===_0x575fec[_0x50da47(0x25e)]?this[_0x50da47(0x24a)]():this[_0x50da47(0x127)]();}),this[_0x10ce64(0x181)][_0x10ce64(0x1d7)][_0x10ce64(0x28e)](_0x67f666(this['dispose$']))[_0x10ce64(0x2bf)](_0x159677=>{const _0x4c050d=_0x10ce64,_0x6f4d92=_0x159677[_0x4c050d(0x190)];_0x6f4d92===_0x37a19e[_0x4c050d(0x34a)]&&this[_0x4c050d(0x30c)](_0x159677),_0x6f4d92===_0x37a19e[_0x4c050d(0x2ba)]&&this['_onCursorDelete'](_0x159677);}),this[_0x10ce64(0x331)](this[_0x10ce64(0x15b)][_0x10ce64(0x297)](_0x30feed=>{const _0x289e00=_0x10ce64,_0x5140d4=_0x30feed[_0x289e00(0x128)];_0x5140d4!=null&&this[_0x289e00(0x221)]&&_0x30feed['id']===_0x285f06['id']&&_0x5140d4[_0x289e00(0x196)]===this[_0x289e00(0x1e3)]&&_0x5140d4[_0x289e00(0x2e9)]===!0x1&&_0x5140d4['ranges'][_0x289e00(0x155)]>0x0&&this['_updateLocalCursor'](_0x5140d4['ranges']);})),this[_0x10ce64(0x244)][_0x10ce64(0x333)][_0x10ce64(0x28e)](_0x67f666(this[_0x10ce64(0x236)]))[_0x10ce64(0x2bf)](_0x1dae50=>{const _0x1bd644=_0x10ce64;if((_0x1dae50==null?void 0x0:_0x1dae50[_0x1bd644(0x1e3)])!==this[_0x1bd644(0x1e3)])return;const _0x10086d={'eventID':_0x37a19e[_0x1bd644(0x34a)],'data':_0x1dae50};this['_onCursorUpdate'](_0x10086d);}),this['disposeWithMe'](this['_commandService'][_0x10ce64(0x297)](_0x2a47a1=>{const _0x4c25bd=_0x10ce64;if(_0x2a47a1[_0x4c25bd(0x128)]==null)return;const _0x4c2e4d=_0x2a47a1['params'];if(_0x2a47a1['id']!==_0x33706b['id']||_0x4c2e4d['unitId']!==this[_0x4c25bd(0x1e3)])return;const _0x203910={'id':_0x4c25bd(0x2b8),'params':_0x4c2e4d},_0x1fab88=this['cursorInfo'];for(const [_0x501064,_0x36d23c]of _0x1fab88){const _0x2614eb={'id':_0x4c25bd(0x2b8),'params':{'unitId':this[_0x4c25bd(0x1e3)],'actions':null,'textRanges':_0x36d23c[_0x4c25bd(0x153)]}},_0x378fbd=this[_0x4c25bd(0x33f)]['transformMutation'](_0x203910,_0x2614eb,!0x1);if(_0x28a617(_0x378fbd))throw _0x378fbd[_0x4c25bd(0x12e)];_0x1fab88[_0x4c25bd(0x191)](_0x501064,{..._0x36d23c,'ranges':_0x378fbd[_0x4c25bd(0x290)][_0x4c25bd(0x128)][_0x4c25bd(0x1aa)]});}queueMicrotask(()=>{const _0x1dcfdf=_0x4c25bd;this[_0x1dcfdf(0x250)]['next'](_0x1fab88);});})));}[_0x32c856(0x30c)](_0x41fa76){const _0x2409ad=_0x32c856;var _0x37f7bd,_0x2abbf3;const {memberID:_0x3cc858,selection:_0x1ade10}=_0x41fa76['data'],_0x5b536c=Ai(_0x1ade10),_0x2dbece=(_0x2abbf3=(_0x37f7bd=this[_0x2409ad(0x167)][_0x2409ad(0x1f6)](this[_0x2409ad(0x1e3)],_0x3cc858))==null?void 0x0:_0x37f7bd[_0x2409ad(0x19a)])!=null?_0x2abbf3:_0x2409ad(0x219),_0x2509b9={'color':this[_0x2409ad(0x357)][_0x2409ad(0x32e)](_0x3cc858),'name':_0x2dbece,'ranges':_0x5b536c},_0x2a7b66=this[_0x2409ad(0x264)];_0x2a7b66[_0x2409ad(0x191)](_0x3cc858,_0x2509b9),this[_0x2409ad(0x250)][_0x2409ad(0x1b7)](_0x2a7b66);}[_0x32c856(0x1ee)](_0x5adbdd){const _0x11f0fc=_0x32c856,{memberID:_0x158f2f}=_0x5adbdd[_0x11f0fc(0x306)],_0x422866=this['cursorInfo'];_0x422866[_0x11f0fc(0x24f)](_0x158f2f),this[_0x11f0fc(0x250)][_0x11f0fc(0x1b7)](_0x422866);}[_0x32c856(0x24a)](){const _0xa16261=_0x32c856;var _0x16630f;if(this['_online']=!0x0,((_0x16630f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x16630f[_0xa16261(0x15d)]())!==this['unitID'])return;const _0x14a438=this[_0xa16261(0x1f5)][_0xa16261(0x2b3)](_0x3fd45e)[_0xa16261(0x1d8)]();Array['isArray'](_0x14a438)&&_0x14a438[_0xa16261(0x155)]>0x0&&this[_0xa16261(0x187)](_0x14a438);}[_0x32c856(0x127)](){const _0x2362c6=_0x32c856;this[_0x2362c6(0x221)]=!0x1;}};xe=wi([A(0x2,_0xb67117(_0x2d24f1)),A(0x3,_0xb67117(Ke)),A(0x4,_0xb67117(_0x522824)),A(0x5,_0xb67117(ze)),A(0x6,_0x55d9fe),A(0x7,_0x5ca55f),A(0x8,_0x156a6d)],xe);var xi=Object[_0x32c856(0x169)],Bi=(_0x30e6e4,_0x2fe9f7,_0x1cc413,_0x1553b9)=>{const _0x16e050=_0x32c856;for(var _0x59d1d9=_0x1553b9>0x1?void 0x0:_0x1553b9?xi(_0x2fe9f7,_0x1cc413):_0x2fe9f7,_0x23e332=_0x30e6e4[_0x16e050(0x155)]-0x1,_0x594e60;_0x23e332>=0x0;_0x23e332--)(_0x594e60=_0x30e6e4[_0x23e332])&&(_0x59d1d9=_0x594e60(_0x59d1d9)||_0x59d1d9);return _0x59d1d9;},B=(_0x24faf9,_0x21e138)=>(_0x2a750d,_0x476080)=>_0x21e138(_0x2a750d,_0x476080,_0x24faf9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x59232e=[],_0x4a4abb=!0x1;return _0x4d048a=>{const _0x1438b0=_0x403b;_0x59232e[_0x1438b0(0x302)](_0x4d048a),_0x4a4abb||(_0x4a4abb=!0x0,setTimeout(()=>{const _0x4f3a43=_0x1438b0;_0x59232e[_0x4f3a43(0x284)](_0x4ac4ef=>_0x4ac4ef()),_0x59232e=[],_0x4a4abb=!0x1;}));};};let Be=class extends _0x2ed217{constructor(_0x4b42fb,_0x2b4910,_0x347f65,_0x45c30d,_0x596f6e,_0x5d676b,_0x4305cd,_0x40fe31){const _0x28ea85=_0x32c856;super(),_(this,_0x28ea85(0x221),!0x1),_(this,_0x28ea85(0x353),!0x1),_(this,_0x28ea85(0x250),new _0x41d101(new Map())),_(this,_0x28ea85(0x268),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new _0x41d101([])),_(this,'roomMembers$',this[_0x28ea85(0x240)][_0x28ea85(0x28e)](_0x46df12(Fi))),_(this,_0x28ea85(0x187),_0x5afc05((_0x1749cb,_0x801fb9)=>{const _0x171306=_0x28ea85,_0x13185c={'eventID':_0x37a19e['UPDATE_CURSOR'],'data':{'unitID':this[_0x171306(0x1e3)],'memberID':this[_0x171306(0x181)][_0x171306(0x2c1)](),'selection':_0x29f909(_0x1749cb,_0x801fb9[_0x171306(0x14b)])}};this['_session'][_0x171306(0x2f6)](_0x13185c,this[_0x171306(0x1e3)]);},ki)),(this[_0x28ea85(0x1e3)]=_0x4b42fb,this[_0x28ea85(0x181)]=_0x2b4910,this[_0x28ea85(0x1f5)]=_0x347f65,this[_0x28ea85(0x357)]=_0x45c30d,this['_memberService']=_0x596f6e,this[_0x28ea85(0x19f)]=_0x5d676b,this[_0x28ea85(0x15b)]=_0x4305cd,this['_refRangeService']=_0x40fe31);}get['cursorInfo'](){const _0x1ca4dd=_0x32c856;return this[_0x1ca4dd(0x250)][_0x1ca4dd(0x2e3)]();}get[_0x32c856(0x192)](){const _0xbc1bae=_0x32c856;return this[_0xbc1bae(0x240)]['getValue']();}[_0x32c856(0x18c)](){const _0x14325c=_0x32c856;super[_0x14325c(0x18c)](),this[_0x14325c(0x250)]['next'](new Map()),this[_0x14325c(0x250)][_0x14325c(0x2db)](),this[_0x14325c(0x240)][_0x14325c(0x1b7)]([]),this[_0x14325c(0x240)][_0x14325c(0x2db)]();}['init'](){const _0x38df08=_0x32c856;this[_0x38df08(0x353)]||(this[_0x38df08(0x353)]=!0x0,this[_0x38df08(0x181)][_0x38df08(0x19d)]['pipe'](_0x67f666(this[_0x38df08(0x236)]))[_0x38df08(0x2bf)](_0x5494db=>{const _0xce39c0=_0x38df08;_0x5494db===_0x575fec[_0xce39c0(0x25e)]?this[_0xce39c0(0x24a)]():this[_0xce39c0(0x127)]();}),this[_0x38df08(0x181)][_0x38df08(0x1d7)][_0x38df08(0x28e)](_0x67f666(this[_0x38df08(0x236)]))[_0x38df08(0x2bf)](_0x179c14=>{const _0x1b911c=_0x38df08,_0x68e12a=_0x179c14[_0x1b911c(0x190)];_0x68e12a===_0x37a19e[_0x1b911c(0x34a)]&&this[_0x1b911c(0x30c)](_0x179c14),_0x68e12a===_0x37a19e['USERS_LEAVE']&&this[_0x1b911c(0x1ee)](_0x179c14);}),this[_0x38df08(0x1d5)](),this['disposeWithMe'](this['_commandService'][_0x38df08(0x297)](_0x4171ff=>{const _0x352cf8=_0x38df08;if(this[_0x352cf8(0x221)]&&_0x4171ff['id']===_0x540687['id']&&_0x4171ff[_0x352cf8(0x128)][_0x352cf8(0x196)]===this['unitID']){const _0x356c3e=_0x4171ff['params'];this[_0x352cf8(0x187)](_0x356c3e['subUnitId'],_0x356c3e[_0x352cf8(0x29d)][0x0]);}})));}[_0x32c856(0x30c)](_0x59e125){const _0x2d0895=_0x32c856;var _0x1da656,_0x695d42;const {memberID:_0x54972b,selection:_0x808b43}=_0x59e125[_0x2d0895(0x306)],{sheetName:_0x11e90d,range:_0x2e9c12}=_0x2adee1(_0x808b43),_0x34704c={'name':(_0x695d42=(_0x1da656=this[_0x2d0895(0x167)][_0x2d0895(0x1f6)](this[_0x2d0895(0x1e3)],_0x54972b))==null?void 0x0:_0x1da656[_0x2d0895(0x19a)])!=null?_0x695d42:_0x2d0895(0x219),'range':this['_getMergeRange'](_0x11e90d,_0x2e9c12),'sheetID':_0x11e90d,'color':this[_0x2d0895(0x357)]['assignAColorForMemberID'](_0x54972b),'selection':_0x808b43},_0x382e29=this['cursorInfo'];_0x382e29[_0x2d0895(0x191)](_0x54972b,_0x34704c),this[_0x2d0895(0x250)][_0x2d0895(0x1b7)](_0x382e29);}[_0x32c856(0x1ee)](_0x3a5ec4){const _0x45fd37=_0x32c856,{memberID:_0x5dbae7}=_0x3a5ec4[_0x45fd37(0x306)],_0x4e49d3=this[_0x45fd37(0x264)];_0x4e49d3[_0x45fd37(0x24f)](_0x5dbae7),this[_0x45fd37(0x250)][_0x45fd37(0x1b7)](_0x4e49d3);}['_getMergeRange'](_0x3ec63d,_0x37b92d){const _0x39f9a1=_0x32c856;var _0x6eb8c5,_0x19fa32;const _0x407933=(_0x19fa32=(_0x6eb8c5=this[_0x39f9a1(0x19f)][_0x39f9a1(0x339)](this['unitID']))==null?void 0x0:_0x6eb8c5[_0x39f9a1(0x260)](_0x3ec63d))==null?void 0x0:_0x19fa32[_0x39f9a1(0x1c4)]();return(_0x407933==null?void 0x0:_0x407933[_0x39f9a1(0x343)](_0x2cb18b=>_0x396a74[_0x39f9a1(0x21a)](_0x2cb18b,_0x37b92d)))||_0x37b92d;}['_onRefRangeChange'](){const _0x4abca0=_0x32c856,_0xaae17c=new _0x25c632(),_0x4d910c=Hi(),_0x48f5ca=()=>{const _0x4678e6=_0x403b;_0xaae17c[_0x4678e6(0x18c)]();const _0x40e1df=(_0x37b5e1,_0xc1b0f4,_0x137724,_0x3aa5ca)=>{const _0x4ecd4f=_0x4678e6;let _0x372c3e=[];switch(_0x37b5e1['id']){case _0x2b9ce8[_0x4ecd4f(0x25f)]:{_0x372c3e=_0x2d748d(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['DeleteRangeMoveUpCommandId']:{_0x372c3e=_0x21f53c(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertColCommandId']:{_0x372c3e=_0x202d24(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertRangeMoveDownCommandId']:{_0x372c3e=_0x5405c9(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertRangeMoveRightCommandId']:{_0x372c3e=_0x502556(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x308)]:{_0x372c3e=_0x20f1d3(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x2ae)]:{_0x372c3e=_0x540c44(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['RemoveColCommandId']:{_0x372c3e=_0x365800(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x1c3)]:{_0x372c3e=_0x42945e(_0x37b5e1,_0x3aa5ca);break;}}const _0x1b9e82=_0x25e741(_0x372c3e,_0x3aa5ca),_0x480ec7=this[_0x4ecd4f(0x264)][_0x4ecd4f(0x2b3)](_0xc1b0f4);if(_0x480ec7&&_0x1b9e82){const _0x3ff692={..._0x480ec7,'range':_0x1b9e82};this[_0x4ecd4f(0x264)][_0x4ecd4f(0x191)](_0xc1b0f4,_0x3ff692),_0x4d910c(()=>{const _0x417713=_0x4ecd4f,_0x3429af=this[_0x417713(0x341)][_0x417713(0x336)](_0x1b9e82,_0x47c3ca=>(_0x3429af[_0x417713(0x18c)](),_0x40e1df(_0x47c3ca,_0xc1b0f4,_0x137724,_0x1b9e82)));_0xaae17c[_0x417713(0x2ed)](_0x3429af);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4678e6(0x284)]((_0x4f9fbe,_0x2090f0)=>{const _0x230a94=_0x4678e6,{range:_0x5e9e2e,sheetID:_0x400113}=_0x4f9fbe,_0x363429=this['_refRangeService'][_0x230a94(0x336)](_0x5e9e2e,_0x68efa4=>(_0x363429[_0x230a94(0x18c)](),_0x40e1df(_0x68efa4,_0x2090f0,_0x400113,_0x5e9e2e)));_0xaae17c[_0x230a94(0x2ed)](_0x363429);});};this[_0x4abca0(0x331)](_0x1b8af1(this[_0x4abca0(0x250)]['subscribe'](()=>{_0x48f5ca();})));}['_toggleOnline'](){const _0x5d19d7=_0x32c856;var _0x40d448,_0x8eb8a7;if(this['_online']=!0x0,((_0x40d448=this['_univerInstanceService'][_0x5d19d7(0x266)]())==null?void 0x0:_0x40d448[_0x5d19d7(0x15d)]())!==this['unitID'])return;const _0x254b20=(_0x8eb8a7=this[_0x5d19d7(0x1f5)]['get'](_0xd7d38a)[_0x5d19d7(0x298)]())==null?void 0x0:_0x8eb8a7[0x0],_0x4084a0=this[_0x5d19d7(0x19f)]['getCurrentUnitForType'](_0x4f09e5[_0x5d19d7(0x1c2)])['getActiveSheet']();_0x254b20&&_0x4084a0&&this[_0x5d19d7(0x187)](_0x4084a0[_0x5d19d7(0x320)](),_0x254b20);}[_0x32c856(0x127)](){const _0x18e6a9=_0x32c856;this[_0x18e6a9(0x221)]=!0x1;}};Be=Bi([B(0x2,_0xb67117(_0x2d24f1)),B(0x3,_0xb67117(Ke)),B(0x4,_0xb67117(_0x522824)),B(0x5,_0x5ca55f),B(0x6,_0x156a6d),B(0x7,_0xb67117(_0x14fcb5))],Be);var Yi=Object[_0x32c856(0x169)],Wi=(_0x382dca,_0x1fbc6b,_0x447ccb,_0x13c721)=>{for(var _0x210668=_0x13c721>0x1?void 0x0:_0x13c721?Yi(_0x1fbc6b,_0x447ccb):_0x1fbc6b,_0x4ff321=_0x382dca['length']-0x1,_0x1eba03;_0x4ff321>=0x0;_0x4ff321--)(_0x1eba03=_0x382dca[_0x4ff321])&&(_0x210668=_0x1eba03(_0x210668)||_0x210668);return _0x210668;},Ce=(_0x2d6eb9,_0x1022f3)=>(_0x423832,_0x55ff5c)=>_0x1022f3(_0x423832,_0x55ff5c,_0x2d6eb9);let H=class extends _0x2ed217{constructor(_0x518ea1,_0x300f4,_0x1414ca){const _0x56f5fe=_0x32c856;super(),_(this,_0x56f5fe(0x1b6),new Map()),_(this,_0x56f5fe(0x168),new _0x5efb66()),(this['_univerInstanceService']=_0x518ea1,this[_0x56f5fe(0x1f5)]=_0x300f4,this[_0x56f5fe(0x1da)]=_0x1414ca,this[_0x56f5fe(0x353)]());}[_0x32c856(0x18c)](){const _0x33c4a5=_0x32c856;super['dispose'](),this[_0x33c4a5(0x168)][_0x33c4a5(0x2db)](),this[_0x33c4a5(0x1b6)][_0x33c4a5(0x284)](_0x206208=>_0x206208[_0x33c4a5(0x18c)]());}[_0x32c856(0x29a)](_0x22ec0d){const _0xf437a7=_0x32c856;return this[_0xf437a7(0x1b6)]['has'](_0x22ec0d)?this['_entities'][_0xf437a7(0x2b3)](_0x22ec0d)[_0xf437a7(0x268)]:this[_0xf437a7(0x168)][_0xf437a7(0x28e)](_0x46c4a8(_0x9896c8=>_0x9896c8[_0xf437a7(0x1e3)]===_0x22ec0d),_0x56c1e8(_0x357418=>_0x357418[_0xf437a7(0x268)]));}[_0x32c856(0x353)](){const _0x22c3d1=_0x32c856;this[_0x22c3d1(0x19f)][_0x22c3d1(0x233)](_0x4f09e5[_0x22c3d1(0x1c2)])[_0x22c3d1(0x28e)](_0x67f666(this['dispose$']))[_0x22c3d1(0x2bf)](async _0x3ced28=>{const _0x2eebde=_0x22c3d1,_0x44ff4b=_0x3ced28[_0x2eebde(0x15d)](),_0x4db0e7=await this[_0x2eebde(0x35e)](_0x44ff4b);this[_0x2eebde(0x168)][_0x2eebde(0x1b7)](_0x4db0e7),this[_0x2eebde(0x1b6)]['set'](_0x44ff4b,_0x4db0e7);}),this[_0x22c3d1(0x19f)][_0x22c3d1(0x233)](_0x4f09e5[_0x22c3d1(0x224)])[_0x22c3d1(0x28e)](_0x67f666(this[_0x22c3d1(0x236)]))[_0x22c3d1(0x28e)](_0x46c4a8(_0x10891b=>!_0x10891b[_0x22c3d1(0x15d)]()[_0x22c3d1(0x2df)]('__')))[_0x22c3d1(0x2bf)](async _0x233b03=>{const _0x3fd241=_0x22c3d1,_0x310d6e=_0x233b03[_0x3fd241(0x15d)](),_0x24885a=await this[_0x3fd241(0x270)](_0x310d6e);this['_entityInit$'][_0x3fd241(0x1b7)](_0x24885a),this['_entities'][_0x3fd241(0x191)](_0x310d6e,_0x24885a);}),_0x486cdc(this[_0x22c3d1(0x19f)][_0x22c3d1(0x11c)](_0x4f09e5[_0x22c3d1(0x224)]),this[_0x22c3d1(0x19f)][_0x22c3d1(0x11c)](_0x4f09e5[_0x22c3d1(0x1c2)]))['pipe'](_0x67f666(this[_0x22c3d1(0x236)]))['subscribe'](_0x47f340=>{const _0x381566=_0x22c3d1,_0x4dacc4=_0x47f340[_0x381566(0x15d)](),_0xe3d2eb=this['_entities'][_0x381566(0x2b3)](_0x4dacc4);_0xe3d2eb&&(_0xe3d2eb[_0x381566(0x18c)](),this['_entities'][_0x381566(0x24f)](_0x4dacc4));});}async['_startSheetCollabCursor'](_0x4faf2a){const _0x3b0dda=_0x32c856,_0x17c277=await this['_collabSessionService']['requireSession'](_0x4faf2a),_0x50843b=this[_0x3b0dda(0x1f5)][_0x3b0dda(0x1fa)](Be,_0x4faf2a,_0x17c277);return _0x50843b[_0x3b0dda(0x26d)](),_0x50843b;}async['_startDocCollabCursor'](_0x5be14c){const _0x29a50b=_0x32c856,_0x410713=await this[_0x29a50b(0x1da)][_0x29a50b(0x1f1)](_0x5be14c),_0x505e2f=this[_0x29a50b(0x1f5)][_0x29a50b(0x1fa)](xe,_0x5be14c,_0x410713);return _0x505e2f[_0x29a50b(0x26d)](),_0x505e2f;}};H=Wi([Ce(0x0,_0x5ca55f),Ce(0x1,_0xb67117(_0x2d24f1)),Ce(0x2,_0xb67117(_0x587ed6))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x551537,_0x4310ef){const _0xa003b6=_0x32c856;let {radius:_0x315f29,width:_0x1f7c85,height:_0x42195b}=_0x4310ef;_0x315f29=_0x315f29!=null?_0x315f29:0x0,_0x1f7c85=_0x1f7c85!=null?_0x1f7c85:0x1e,_0x42195b=_0x42195b!=null?_0x42195b:0x1e;let _0x28859d=0x0,_0x287634=0x0,_0x7e38e6=0x0;_0x28859d=_0x287634=_0x7e38e6=Math[_0xa003b6(0x212)](_0x315f29,_0x1f7c85/0x2,_0x42195b/0x2),_0x551537[_0xa003b6(0x1cd)](),_0x551537['moveTo'](_0x28859d,0x0),_0x551537[_0xa003b6(0x1cb)](_0x1f7c85-_0x287634,0x0),_0x551537[_0xa003b6(0x15c)](_0x1f7c85-_0x287634,_0x287634,_0x287634,Math['PI']*0x3/0x2,0x0,!0x1),_0x551537['lineTo'](_0x1f7c85,_0x42195b-_0x7e38e6),_0x551537[_0xa003b6(0x15c)](_0x1f7c85-_0x7e38e6,_0x42195b-_0x7e38e6,_0x7e38e6,0x0,Math['PI']/0x2,!0x1),_0x551537[_0xa003b6(0x1cb)](0x0,_0x42195b),_0x551537[_0xa003b6(0x1cb)](0x0,_0x28859d),_0x551537['arc'](_0x28859d,_0x28859d,_0x28859d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x551537['closePath'](),_0x4310ef[_0xa003b6(0x2a7)]&&(_0x551537[_0xa003b6(0x275)](),_0x551537['fillStyle']=_0x4310ef[_0xa003b6(0x2a7)],_0x4310ef[_0xa003b6(0x21d)]==='evenodd'?_0x551537[_0xa003b6(0x2a7)](_0xa003b6(0x2fe)):_0x551537['fill'](),_0x551537['restore']());}class ve extends _0xd21fe3{constructor(_0x26727a,_0x2a529b){const _0x2151e2=_0x32c856;super(_0x26727a,_0x2a529b),_(this,'color'),_(this,_0x2151e2(0x16f)),(this[_0x2151e2(0x28f)]=_0x2a529b==null?void 0x0:_0x2a529b[_0x2151e2(0x28f)],this[_0x2151e2(0x16f)]=_0x2a529b==null?void 0x0:_0x2a529b['text']);}static[_0x32c856(0x159)](_0x28e8e3,_0x19168a){const _0x77a90b=_0x32c856,{text:_0xa49f1,color:_0x4a37be}=_0x19168a;_0x28e8e3['save'](),_0x28e8e3['font']=_0x77a90b(0x202);const _0x466778=_0x28e8e3[_0x77a90b(0x245)](_0xa49f1)[_0x77a90b(0x332)],_0x22a30a=Math[_0x77a90b(0x212)](_0x466778+0x2*Re,at);ji(_0x28e8e3,{'height':Q,'radius':0x4,'width':_0x22a30a,'fill':_0x4a37be}),_0x28e8e3[_0x77a90b(0x23b)]='#FFF';const _0x31e7ac=Re,_0x1ef66e=Q-Vi,_0x22476e=at-0x2*Re;if(_0x466778>_0x22476e){let _0x2c4295='',_0x35164d=0x0;for(const _0x4a9d8f of _0xa49f1){const _0x122edb=_0x28e8e3[_0x77a90b(0x245)](_0x4a9d8f)[_0x77a90b(0x332)];if(_0x35164d+_0x122edb<=_0x22476e-_0x28e8e3[_0x77a90b(0x245)](_0x77a90b(0x29b))[_0x77a90b(0x332)])_0x2c4295+=_0x4a9d8f,_0x35164d+=_0x122edb;else{_0x2c4295+='...';break;}}_0x28e8e3[_0x77a90b(0x211)](_0x2c4295,_0x31e7ac,_0x1ef66e);}else _0x28e8e3['fillText'](_0xa49f1,_0x31e7ac,_0x1ef66e);_0x28e8e3[_0x77a90b(0x2e8)]();}[_0x32c856(0x1d4)](_0x31098a){const _0x3543a4=_0x32c856;ve[_0x3543a4(0x159)](_0x31098a,this);}}const De='collab-text-anchor-',Xi=_0x32c856(0x148),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x32c856(0x213);class ct{constructor(_0x273099,_0xb3711d,_0x37bddd,_0x12d134){const _0x1a154c=_0x32c856;_(this,_0x1a154c(0x2d5),[]),_(this,_0x1a154c(0x162),null),_(this,_0x1a154c(0x1dc),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x1a154c(0x151)]=_0x273099,this[_0x1a154c(0x1b0)]=_0xb3711d,this[_0x1a154c(0x340)]=_0x37bddd,this[_0x1a154c(0x1e1)]=_0x12d134,this[_0x1a154c(0x2eb)]());}set['_hover'](_0x16c9d9){const _0x4bdcb3=_0x32c856;_0x16c9d9?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x4bdcb3(0x1dc)]&&this[_0x4bdcb3(0x1dc)][_0x4bdcb3(0x1e9)]()):(this[_0x4bdcb3(0x346)]&&this[_0x4bdcb3(0x346)][_0x4bdcb3(0x1e9)](),this[_0x4bdcb3(0x1dc)]&&this[_0x4bdcb3(0x1dc)][_0x4bdcb3(0x1c9)]());}['dispose'](){const _0x57578f=_0x32c856;for(const _0x152684 of this[_0x57578f(0x2d5)])_0x152684['dispose']();this['_textBubble']&&this[_0x57578f(0x1dc)]['dispose'](),this[_0x57578f(0x346)]&&this[_0x57578f(0x346)]['dispose'](),this[_0x57578f(0x162)]&&this[_0x57578f(0x162)][_0x57578f(0x18c)](),this[_0x57578f(0x26b)]&&this[_0x57578f(0x26b)]();}['_render'](){const _0x29c760=_0x32c856;var _0x5cf381;const {_docSkeleton:_0x3ced4e,_document:_0x28a08b}=this,{color:_0x4b07d4,name:_0x4bad50,ranges:_0x22a41f}=this[_0x29c760(0x151)],_0x1c090a=_0x28a08b[_0x29c760(0x1f7)](),{docsLeft:_0x2e554e,docsTop:_0x2db194}=_0x1c090a,_0x1eeeca=new _0x5d71a8(_0x1c090a,_0x3ced4e);for(const {startOffset:_0x2e1a2d,endOffset:_0x42e553,rangeType:_0x4baeeb,segmentId:_0x5502af,segmentPage:_0x1b4828,collapsed:_0x31e88a,isActive:_0x3b6c04}of _0x22a41f){const _0x44bf13=_0x3ced4e[_0x29c760(0x318)](_0x2e1a2d,!0x0,_0x5502af,_0x1b4828);let _0x2ecd80=_0x3ced4e[_0x29c760(0x318)](_0x42e553,!0x0,_0x5502af,_0x1b4828);if(_0x2ecd80==null&&(_0x2ecd80=_0x3ced4e[_0x29c760(0x318)](_0x42e553-0x1,!0x1,_0x5502af,_0x1b4828)),_0x3b6c04){const {contentBoxPointGroup:_0x136790}=_0x1eeeca[_0x29c760(0x116)](_0x2ecd80,_0x2ecd80);if(_0x136790[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x296)](_0x4b07d4,_0x136790,_0x2e554e,_0x2db194,_0x4bad50),this[_0x29c760(0x26b)]=this[_0x29c760(0x246)]();}if(_0x44bf13&&_0x2ecd80){if(_0x4baeeb===_0x5c4026['RECT']){const _0x52ce0e=new _0x2247c5(_0x1c090a,_0x3ced4e),{pointGroup:_0x30fc10}=(_0x5cf381=_0x52ce0e[_0x29c760(0x116)](_0x44bf13,_0x2ecd80))!=null?_0x5cf381:{};if(_0x30fc10==null||_0x30fc10[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x288)](_0x4b07d4,_0x30fc10,_0x2e554e,_0x2db194);}else{if(!_0x31e88a){const {borderBoxPointGroup:_0x5c5f47}=_0x1eeeca['getRangePointData'](_0x44bf13,_0x2ecd80);if(_0x5c5f47[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x326)](_0x4b07d4,_0x5c5f47,_0x2e554e,_0x2db194);}}}}}['_drawAnchor'](_0x4cd239,_0x1f603c,_0x3a3264,_0x329065,_0x571cc4){const _0x5c8eb5=_0x32c856,_0x5a636d=this[_0x5c8eb5(0x24b)](_0x1f603c),{left:_0x3945d3,top:_0x122516,height:_0xfc5ada}=_0x5a636d,_0xe63931=this['_getScale'](),_0xdc3bee=zi/_0xe63931,_0x533505=new _0x1310d2(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065,'height':_0xfc5ada,'width':Ki,'fill':_0x4cd239||_0x13fecd(_0x588a4b[_0x5c8eb5(0x242)],0x0),'strokeWidth':_0xdc3bee,'stroke':Ji,'evented':!0x0});this[_0x5c8eb5(0x162)]=_0x533505,this[_0x5c8eb5(0x1b0)]['addObject'](_0x533505,_0x473fb7);const _0x30d3d1=new _0x1310d2(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x4cd239||_0x13fecd(_0x588a4b[_0x5c8eb5(0x242)],0x0),'strokeWidth':0x0,'stroke':_0x4cd239||_0x13fecd(_0x588a4b['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x30d3d1,this['_scene']['addObject'](_0x30d3d1,_0x473fb7);const _0x5599f5=new ve(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065-Q,'text':_0x571cc4,'color':_0x4cd239});this[_0x5c8eb5(0x1dc)]=_0x5599f5,this[_0x5c8eb5(0x1b0)][_0x5c8eb5(0x2e0)](_0x5599f5,_0x473fb7),this[_0x5c8eb5(0x23a)]=!0x1;}[_0x32c856(0x246)](){const _0xadebd3=_0x32c856,_0x49130b=this[_0xadebd3(0x162)][_0xadebd3(0x11a)]['subscribeEvent'](()=>{const _0x161ddc=_0xadebd3;this[_0x161ddc(0x23a)]=!0x0;}),_0x43abab=this[_0xadebd3(0x162)][_0xadebd3(0x188)][_0xadebd3(0x13a)](()=>{const _0x1772fe=_0xadebd3;this[_0x1772fe(0x25b)]&&clearTimeout(this[_0x1772fe(0x25b)]),this[_0x1772fe(0x25b)]=setTimeout(()=>{const _0x17ee2c=_0x1772fe;this[_0x17ee2c(0x23a)]=!0x1;},0x7d0);});return()=>{const _0x512478=_0xadebd3;_0x49130b['unsubscribe'](),_0x43abab[_0x512478(0x1c7)]();};}[_0x32c856(0x326)](_0x408c5c,_0x441aa6,_0x1770e4,_0x531111){const _0xa64d2a=_0x32c856,_0x59e1c3=new _0x1dccbf(_0x408c5c)['setAlpha'](0.2)[_0xa64d2a(0x261)](),_0x43a3be=new _0x320ae7(Xi+_0x3baa1f(z),{'pointsGroup':_0x441aa6,'fill':_0x59e1c3||_0x13fecd(_0x588a4b[_0xa64d2a(0x242)],0.2),'left':_0x1770e4,'top':_0x531111,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xa64d2a(0x2d5)][_0xa64d2a(0x302)](_0x43a3be),this[_0xa64d2a(0x1b0)][_0xa64d2a(0x2e0)](_0x43a3be,_0x473fb7);}[_0x32c856(0x288)](_0x1ac803,_0x54141e,_0x5f4dca,_0x1e871b){const _0x192c3c=_0x32c856,_0x35fca5=new _0x1dccbf(_0x1ac803)['setAlpha'](0.2)[_0x192c3c(0x261)](),_0x509b92=new _0x320ae7(Gi+_0x3baa1f(z),{'pointsGroup':_0x54141e,'fill':_0x35fca5||_0x13fecd(_0x588a4b[_0x192c3c(0x242)],0.2),'left':_0x5f4dca,'top':_0x1e871b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x192c3c(0x302)](_0x509b92),this[_0x192c3c(0x1b0)][_0x192c3c(0x2e0)](_0x509b92,_0x473fb7);}[_0x32c856(0x24b)](_0x6f499c){const _0x123d95=_0x6f499c[0x0],_0x7326de=_0x123d95[0x0],_0x3373bd=_0x123d95[0x2],{x:_0x5a413f,y:_0x53efaf}=_0x7326de,{x:_0x40ff83,y:_0xd0ffd4}=_0x3373bd;return{'left':_0x5a413f,'top':_0x53efaf,'width':_0x40ff83-_0x5a413f,'height':_0xd0ffd4-_0x53efaf};}[_0x32c856(0x257)](){const _0x5cf39b=_0x32c856,{scaleX:_0x136264,scaleY:_0x3b1a89}=this[_0x5cf39b(0x1b0)][_0x5cf39b(0x13e)]();return Math['max'](_0x136264,_0x3b1a89);}}var Zi=Object[_0x32c856(0x169)],Qi=(_0x44602c,_0x45bdb6,_0x16cf53,_0x1058f8)=>{const _0x112eef=_0x32c856;for(var _0x21cbee=_0x1058f8>0x1?void 0x0:_0x1058f8?Zi(_0x45bdb6,_0x16cf53):_0x45bdb6,_0x1209d6=_0x44602c[_0x112eef(0x155)]-0x1,_0x4e2c60;_0x1209d6>=0x0;_0x1209d6--)(_0x4e2c60=_0x44602c[_0x1209d6])&&(_0x21cbee=_0x4e2c60(_0x21cbee)||_0x21cbee);return _0x21cbee;},ie=(_0x5ea0cf,_0x25832c)=>(_0x52afc9,_0x2d8b38)=>_0x25832c(_0x52afc9,_0x2d8b38,_0x5ea0cf);let Fe=class extends _0x2ed217{constructor(_0x4a30e1,_0x418540,_0x458fea,_0x481d58,_0x564ba7){const _0x26f24c=_0x32c856;super(),_(this,_0x26f24c(0x144),[]),_(this,_0x26f24c(0x349),[]),(this[_0x26f24c(0x1fd)]=_0x4a30e1,this[_0x26f24c(0x317)]=_0x418540,this['_collabCursorController']=_0x458fea,this[_0x26f24c(0x15b)]=_0x481d58,this[_0x26f24c(0x1d1)]=_0x564ba7,this[_0x26f24c(0x353)]());}['_init'](){const _0x245ef2=_0x32c856,_0x3838fc=this[_0x245ef2(0x1fd)][_0x245ef2(0x196)],_0x56c4d7=this[_0x245ef2(0x317)];this[_0x245ef2(0x331)](_0x2119f1([this[_0x245ef2(0x344)][_0x245ef2(0x29a)](_0x3838fc),this[_0x245ef2(0x1d1)]['currentTheme$']])['pipe'](_0x33188f(([_0x548b2b,_0x49b511])=>({'skeleton':_0x56c4d7[_0x245ef2(0x1df)](),'cursors':[..._0x548b2b[_0x245ef2(0x179)]()][_0x245ef2(0x359)](_0x2d68f0=>({..._0x2d68f0,'color':this['_themeService'][_0x245ef2(0x117)](_0x2d68f0[_0x245ef2(0x28f)])}))})))['subscribe'](_0x311659=>{const _0x51f12f=_0x245ef2;if(this[_0x51f12f(0x277)](),_0x311659){const {skeleton:_0x5d0081,cursors:_0x3e504e}=_0x311659;this[_0x51f12f(0x285)](_0x5d0081,_0x3e504e);}})),this[_0x245ef2(0x2ca)](),this[_0x245ef2(0x135)]();}[_0x32c856(0x285)](_0x2388bb,_0x4ab27c){const _0x2d80fd=_0x32c856,{scene:_0x5e057c,mainComponent:_0x2ad3e5}=this[_0x2d80fd(0x1fd)],_0x2a18de=_0x4ab27c[_0x2d80fd(0x1e7)](_0x5a7f10=>new ct(_0x5a7f10,_0x5e057c,_0x2388bb,_0x2ad3e5));this['_cursorShapes']=_0x2a18de,this[_0x2d80fd(0x349)]=_0x4ab27c;}[_0x32c856(0x29c)](){const _0x386f0b=_0x32c856;this[_0x386f0b(0x277)]();const {scene:_0x37a122,mainComponent:_0x55f048}=this['_context'],_0xc9cf72=this[_0x386f0b(0x317)][_0x386f0b(0x1df)](),_0x570eba=this['_cursors']['map'](_0x5bf064=>new ct(_0x5bf064,_0x37a122,_0xc9cf72,_0x55f048));this[_0x386f0b(0x144)]=_0x570eba;}[_0x32c856(0x277)](){const _0x279fb4=_0x32c856;this[_0x279fb4(0x144)][_0x279fb4(0x284)](_0x2f7458=>_0x2f7458[_0x279fb4(0x18c)]()),this['_cursorShapes']=[];}[_0x32c856(0x135)](){const _0x3fc5c2=_0x32c856,_0x33f334=[_0x43466a['id']];this[_0x3fc5c2(0x331)](this['_commandService'][_0x3fc5c2(0x297)](_0x12d2f8=>{const _0x2965fc=_0x3fc5c2;_0x33f334[_0x2965fc(0x29f)](_0x12d2f8['id'])&&_0x12d2f8[_0x2965fc(0x128)]['unitId']===this[_0x2965fc(0x1fd)][_0x2965fc(0x196)]&&this['_refreshCollabCursors']();}));}[_0x32c856(0x2ca)](){const _0x5695c3=_0x32c856;this[_0x5695c3(0x331)](_0x402d62(this[_0x5695c3(0x1fd)][_0x5695c3(0x2f7)][_0x5695c3(0x232)])[_0x5695c3(0x28e)](_0x88e841(_0x2e21f7=>_0x2e21f7['type']===_0x3ee913['resize']),_0x570b9f(0x10))['subscribe'](()=>{const _0x5a5316=_0x5695c3;this[_0x5a5316(0x29c)]();}));}};Fe=Qi([ie(0x1,_0xb67117(_0x72d0b4)),ie(0x2,_0xb67117(H)),ie(0x3,_0x156a6d),ie(0x4,_0xb67117(_0x56a243))],Fe);const qi=0x1,en=1.5;class tn extends _0xd21fe3{constructor(_0x4afe53,_0x1e2f57){const _0x2c4044=_0x32c856;super(_0x4afe53,_0x1e2f57),_(this,_0x2c4044(0x1af)),_(this,_0x2c4044(0x193),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x2c4044(0x16b),_0x2c4044(0x31b)),_(this,_0x2c4044(0x2a8)),(_0x1e2f57&&this[_0x2c4044(0x17a)](_0x1e2f57),this[_0x2c4044(0x11a)][_0x2c4044(0x13a)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2c4044(0x188)][_0x2c4044(0x13a)](()=>this[_0x2c4044(0x17a)]({'hovered':!0x1})));}[_0x32c856(0x17a)](_0x5e8857){const _0x523616=_0x32c856;var _0x20ce40,_0x2f91fd,_0x1d7973,_0xa880cf,_0x2ace4d,_0x557634;this[_0x523616(0x1af)]=(_0x20ce40=_0x5e8857[_0x523616(0x28f)])!=null?_0x20ce40:this[_0x523616(0x1af)],this[_0x523616(0x193)]=(_0x2f91fd=_0x5e8857[_0x523616(0x2a0)])!=null?_0x2f91fd:this[_0x523616(0x193)],this[_0x523616(0x2d8)]=(_0x1d7973=_0x5e8857[_0x523616(0x14b)])!=null?_0x1d7973:this['_range'],this['_name']=(_0xa880cf=_0x5e8857[_0x523616(0x19a)])!=null?_0xa880cf:this['_name'],this[_0x523616(0x16b)]=(_0x2ace4d=_0x5e8857[_0x523616(0x20d)])!=null?_0x2ace4d:this[_0x523616(0x16b)],this[_0x523616(0x2a8)]=(_0x557634=_0x5e8857[_0x523616(0x1c6)])!=null?_0x557634:this[_0x523616(0x2a8)],this[_0x523616(0x2dc)]({'width':_0x5e8857[_0x523616(0x332)],'height':_0x5e8857[_0x523616(0x163)]});}[_0x32c856(0x1ba)](_0x32d5ae){const _0x29156c=_0x32c856,{row:_0x2881fa,column:_0x4a158f}=_0x32d5ae;if(_0x2881fa>=this[_0x29156c(0x2d8)][_0x29156c(0x154)]&&_0x2881fa<=this[_0x29156c(0x2d8)][_0x29156c(0x301)]&&_0x4a158f>=this[_0x29156c(0x2d8)][_0x29156c(0x322)]&&_0x4a158f<=this[_0x29156c(0x2d8)][_0x29156c(0x22f)]){this[_0x29156c(0x17a)]({'hovered':!0x0});return;}this[_0x29156c(0x17a)]({'hovered':!0x1});}[_0x32c856(0x12a)](_0x10d417){return!0x1;}[_0x32c856(0x1d4)](_0x113f4e){const _0x136fc7=_0x32c856;_0x1310d2[_0x136fc7(0x159)](_0x113f4e,{'width':this[_0x136fc7(0x332)],'height':this[_0x136fc7(0x163)],'strokeWidth':en,'stroke':this[_0x136fc7(0x1af)],'evented':!0x1,'fill':this[_0x136fc7(0x2a8)]}),this[_0x136fc7(0x193)]&&(_0x113f4e[_0x136fc7(0x275)](),_0x113f4e['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x136fc7(0x16b)]==='bottom'?0x0:-Q),ve[_0x136fc7(0x159)](_0x113f4e,{'text':this['_name'],'color':this['_color']}),_0x113f4e[_0x136fc7(0x2e8)]());}}var sn=Object[_0x32c856(0x169)],nn=(_0x5120d8,_0x13335f,_0x46b178,_0x540bc6)=>{const _0x237109=_0x32c856;for(var _0x1974c6=_0x540bc6>0x1?void 0x0:_0x540bc6?sn(_0x13335f,_0x46b178):_0x13335f,_0x3df548=_0x5120d8[_0x237109(0x155)]-0x1,_0x59d382;_0x3df548>=0x0;_0x3df548--)(_0x59d382=_0x5120d8[_0x3df548])&&(_0x1974c6=_0x59d382(_0x1974c6)||_0x1974c6);return _0x1974c6;},be=(_0x4b514a,_0x42f144)=>(_0x49d818,_0x35b38b)=>_0x42f144(_0x49d818,_0x35b38b,_0x4b514a);const rn=0x1389;let ke=class extends _0x2ed217{constructor(_0x378203,_0x81e3bd,_0xffb2a5,_0x332837){const _0x5406f9=_0x32c856;super(),_(this,_0x5406f9(0x349),new Set()),_(this,_0x5406f9(0x1c5),null),(this['_context']=_0x378203,this[_0x5406f9(0x33b)]=_0x81e3bd,this[_0x5406f9(0x344)]=_0xffb2a5,this['_themeService']=_0x332837,this[_0x5406f9(0x353)]());}['_init'](){const _0x559fed=_0x32c856;this[_0x559fed(0x33b)]['currentSkeleton$']['pipe'](_0xcdf3c0(this[_0x559fed(0x236)]),_0x320766(_0x9f9e4b=>{const _0x288c60=_0x559fed;if(_0x9f9e4b){const _0x4012b7=_0x9f9e4b[_0x288c60(0x1bd)];return _0x2119f1(this[_0x288c60(0x344)]['getCollabCursors$'](this[_0x288c60(0x1fd)]['unitId']),this[_0x288c60(0x1d1)][_0x288c60(0x2d2)])[_0x288c60(0x28e)](_0x33188f(([_0x5cb552,_0x3c737f])=>{const _0x700823=new Map();return _0x5cb552['forEach']((_0x3d25dc,_0x4d1d62)=>{const _0x5cfbcc=_0x403b;if(_0x3d25dc[_0x5cfbcc(0x314)]===_0x4012b7){const _0x50e3dd={..._0x3d25dc};_0x50e3dd['color']=this[_0x5cfbcc(0x1d1)][_0x5cfbcc(0x117)](_0x3d25dc[_0x5cfbcc(0x28f)]),_0x700823[_0x5cfbcc(0x191)](_0x4d1d62,_0x50e3dd);}}),{'skeleton':_0x9f9e4b,'cursors':_0x700823};}));}return _0x5ee058({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x22a257,cursors:_0x2781ce})=>{const _0x93d403=_0x559fed;this[_0x93d403(0x277)](),_0x22a257&&this[_0x93d403(0x285)](_0x22a257,_0x2781ce);}),this[_0x559fed(0x33b)][_0x559fed(0x21b)]['subscribe'](_0x191bdf=>{const _0x480958=_0x559fed;if(_0x191bdf==null)return;const {skeleton:_0x23d8dd}=_0x191bdf,{scene:_0x5090f3}=this[_0x480958(0x1fd)];_0x5090f3[_0x480958(0x171)]['subscribeEvent'](_0x5afc05(_0x1c0fea=>{const _0x40980f=_0x480958;var _0x5248a1,_0x1872ba;const {offsetX:_0x1c84bd,offsetY:_0x383fe1}=_0x1c0fea,{x:_0xf82485,y:_0x19eb5e}=_0x5090f3[_0x40980f(0x33c)](_0x9ebff6['FromArray']([_0x1c84bd,_0x383fe1])),{scaleX:_0x485bfa,scaleY:_0x2922d8}=_0x5090f3['getAncestorScale'](),_0x5ed45c=_0x5090f3[_0x40980f(0x2c0)](_0x2099da[_0x40980f(0x34d)]),_0x272508=_0x5090f3[_0x40980f(0x2f5)](_0x9ebff6[_0x40980f(0x1ad)]([_0xf82485,_0x19eb5e]),_0x5ed45c),_0x1d9bb8=_0x23d8dd[_0x40980f(0x2bc)](_0x1c84bd,_0x383fe1,_0x485bfa,_0x2922d8,_0x272508);((_0x5248a1=this['_lastPointer'])==null?void 0x0:_0x5248a1[_0x40980f(0x115)])===_0x1d9bb8[_0x40980f(0x115)]&&((_0x1872ba=this[_0x40980f(0x1c5)])==null?void 0x0:_0x1872ba[_0x40980f(0x16c)])===_0x1d9bb8[_0x40980f(0x16c)]||this[_0x40980f(0x349)][_0x40980f(0x284)](_0x5a10d2=>{_0x5a10d2['onMouseMove'](_0x1d9bb8);});},0x64));});}['_updateCollabCursors'](_0x195fef,_0x1ce0c2){const _0x10335a=_0x32c856;var _0x3c525e;const _0x7233a2=(_0x3c525e=this[_0x10335a(0x33b)][_0x10335a(0x347)]())==null?void 0x0:_0x3c525e['skeleton'];if(!_0x7233a2)return;const _0x58485b=this[_0x10335a(0x30d)]();if(!_0x58485b)return;this[_0x10335a(0x349)][_0x10335a(0x284)](_0x25a920=>{const _0x3ba465=_0x10335a;_0x25a920[_0x3ba465(0x2cb)]();});const {scene:_0x5bd54a}=_0x58485b,_0x265886=on(Array[_0x10335a(0x22b)](_0x1ce0c2[_0x10335a(0x179)]()))[_0x10335a(0x1e7)](_0x2904e6=>{const _0x5c8ed2=_0x10335a,{color:_0x14651c,range:_0x4d7899,name:_0x23aeb1,selection:_0x5871dd,sheetID:_0x23c470}=_0x2904e6,{startColumn:_0x4204b6,startRow:_0xc4f61e,endColumn:_0x538bcd,endRow:_0x10b9e9}=_0x4d7899,_0x3e12e7=_0x245eeb(_0xc4f61e,_0x4204b6,_0x5bd54a,_0x7233a2),_0x14ccb8=_0x245eeb(_0x10b9e9,_0x538bcd,_0x5bd54a,_0x7233a2),{columnHeaderHeightAndMarginTop:_0x52b7d4}=_0x7233a2,{startX:_0x4fdcf1,startY:_0x413e2a}=_0x3e12e7,{endX:_0x507c3b,endY:_0x74c880}=_0x14ccb8,_0x5063d6=_0x507c3b-_0x4fdcf1,_0x580ae4=_0x74c880-_0x413e2a,_0x4ccac5={'labelPosition':_0x413e2a-_0x52b7d4>=Q?'top':_0x5c8ed2(0x337),'sheetID':_0x23c470,'range':_0x4d7899,'color':_0x14651c,'name':_0x23aeb1,'selection':_0x5871dd,'left':_0x4fdcf1,'top':_0x413e2a,'width':_0x5063d6,'height':_0x580ae4,'evented':!0x1,'zIndex':rn};return new tn(_0x23aeb1,_0x4ccac5);});_0x5bd54a[_0x10335a(0x30e)](_0x265886,qi),this[_0x10335a(0x349)]=new Set(_0x265886);}['_removeCollabCursors'](){const _0x30676c=_0x32c856;var _0x1d35a1;(_0x1d35a1=this['_cursors'])==null||_0x1d35a1['forEach'](_0xafccac=>_0xafccac[_0x30676c(0x18c)]());}['_getSheetObject'](){const _0x3fd486=_0x32c856;return _0x477d6e(this[_0x3fd486(0x1fd)][_0x3fd486(0x354)],this[_0x3fd486(0x1fd)]);}};ke=nn([be(0x1,_0xb67117(_0x150f98)),be(0x2,_0xb67117(H)),be(0x3,_0xb67117(_0x56a243))],ke);function on(_0xd2d6f){const _0x352220=_0x32c856,_0x2af855=new Map();return _0xd2d6f[_0x352220(0x284)](_0x23d81a=>{const _0xda06e2=_0x352220;if(_0x2af855[_0xda06e2(0x23c)](_0x23d81a[_0xda06e2(0x204)])){const _0x29a3d1=_0x2af855[_0xda06e2(0x2b3)](_0x23d81a[_0xda06e2(0x204)]);_0x29a3d1[_0xda06e2(0x19a)]+=',\x20'+_0x23d81a[_0xda06e2(0x19a)];}else _0x2af855[_0xda06e2(0x191)](_0x23d81a[_0xda06e2(0x204)],_0x23d81a);}),Array['from'](_0x2af855[_0x352220(0x179)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x573966,_0x516f88,_0x1403c7,_0x4168f4)=>{const _0x315e6b=_0x32c856;for(var _0x3ed4ce=_0x4168f4>0x1?void 0x0:_0x4168f4?an(_0x516f88,_0x1403c7):_0x516f88,_0x5d3683=_0x573966[_0x315e6b(0x155)]-0x1,_0x196358;_0x5d3683>=0x0;_0x5d3683--)(_0x196358=_0x573966[_0x5d3683])&&(_0x3ed4ce=_0x196358(_0x3ed4ce)||_0x3ed4ce);return _0x3ed4ce;},F=(_0x488c2e,_0x4eb952)=>(_0x2a1e42,_0x3a06d8)=>_0x4eb952(_0x2a1e42,_0x3a06d8,_0x488c2e);let _e=class extends _0x4ca9c1{constructor(_0xae3148,_0x1010ea,_0x1ef87a,_0x43331d,_0x1139f1,_0x2bad18){const _0x8f74b1=_0x32c856;super(),this[_0x8f74b1(0x1ec)]=_0xae3148,this[_0x8f74b1(0x12b)]=_0x1010ea,this[_0x8f74b1(0x2d4)]=_0x1ef87a,this[_0x8f74b1(0x129)]=_0x43331d,this[_0x8f74b1(0x263)]=_0x1139f1,this[_0x8f74b1(0x338)]=_0x2bad18,this[_0x8f74b1(0x1bf)](),this[_0x8f74b1(0x304)]();}[_0x32c856(0x1bf)](){const _0xc6d75b=_0x32c856;this['disposeWithMe'](this[_0xc6d75b(0x1ec)]['registerBeforeClose'](()=>{const _0x3ab9b6=_0xc6d75b;if(this[_0x3ab9b6(0x12b)][_0x3ab9b6(0x12c)][_0x3ab9b6(0x2c3)])return this[_0x3ab9b6(0x338)]['t'](_0x3ab9b6(0x238));}));}[_0x32c856(0x304)](){const _0x2bda4b=_0x32c856;this['disposeWithMe'](this[_0x2bda4b(0x2d4)][_0x2bda4b(0x1d7)][_0x2bda4b(0x2bf)](_0x34a5ff=>{const _0x1efdfe=_0x2bda4b;_0x34a5ff['id']===_0xa2113b['OTHER_CLIENT_EDITING']&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Warning'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x139))}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x209)]&&this['_messageService'][_0x1efdfe(0x1e9)]({'type':_0x4659ab[_0x1efdfe(0x164)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x24c)]&&this[_0x1efdfe(0x263)][_0x1efdfe(0x1e9)]({'title':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x29e)),'content':this['_localeService']['t'](_0x1efdfe(0x1a8)),'type':'error','duration':0x0}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x176)]&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab['Error'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x2d0))+'('+_0x34a5ff[_0x1efdfe(0x306)]+')'}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x13b)]&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab['Warning'],'content':this[_0x1efdfe(0x338)]['t'](_0x34a5ff[_0x1efdfe(0x306)]||'')}),_0x34a5ff['id']===_0xa2113b['SOCKET_FAILED_RETRY']&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab[_0x1efdfe(0x164)],'content':this[_0x1efdfe(0x338)]['t']('session.will-retry')}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x30f)]&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Error'],'content':this['_localeService']['t'](_0x1efdfe(0x32d))}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x2c8)]&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Error'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x239))});}));}};_e=cn([F(0x0,_0x1cd947),F(0x1,_0x58c896),F(0x2,_0xb67117(_0x168d8a)),F(0x3,_0x2f7eba),F(0x4,_0x5e175a),F(0x5,_0xb67117(_0x19887b))],_e);var _n=Object[_0x32c856(0x169)],ln=(_0xc0c05b,_0x10db27,_0xfd1595,_0x2e4d11)=>{for(var _0x57ef57=_0x2e4d11>0x1?void 0x0:_0x2e4d11?_n(_0x10db27,_0xfd1595):_0x10db27,_0x4f3032=_0xc0c05b['length']-0x1,_0x41d809;_0x4f3032>=0x0;_0x4f3032--)(_0x41d809=_0xc0c05b[_0x4f3032])&&(_0x57ef57=_0x41d809(_0x57ef57)||_0x57ef57);return _0x57ef57;},ne=(_0x49ecc5,_0x211681)=>(_0x1f0047,_0x6f9c45)=>_0x211681(_0x1f0047,_0x6f9c45,_0x49ecc5);let le=class extends _0x4ca9c1{constructor(_0x50de26,_0x44890e,_0x25045d,_0x3bd2c2){const _0x493a89=_0x32c856;super(),_(this,_0x493a89(0x186)),(this[_0x493a89(0x1f5)]=_0x50de26,this[_0x493a89(0x222)]=_0x44890e,this[_0x493a89(0x1b4)]=_0x25045d,this['_collaborationSessionService']=_0x3bd2c2,this[_0x493a89(0x353)]());}[_0x32c856(0x353)](){const _0x128f34=_0x32c856;this['_initWindowErrorListener'](),this[_0x128f34(0x335)](),this['_monkeyPatchLogService'](),this[_0x128f34(0x323)]();}[_0x32c856(0x323)](){const _0x2f3812=_0x32c856;this[_0x2f3812(0x331)](this['_collaborationSessionService'][_0x2f3812(0x1c8)][_0x2f3812(0x2bf)](_0x556a63=>{const _0x31d5c1=_0x2f3812;this[_0x31d5c1(0x186)]=_0x556a63==null?void 0x0:_0x556a63[_0x31d5c1(0x2c9)];}));}[_0x32c856(0x119)](){const _0x3a6811=_0x32c856,_0x4490ce=_0xc9496c=>{const _0x15e565=_0x403b;var _0x46f3fd;this[_0x15e565(0x1fe)](_0x15e565(0x12e),_0x15e565(0x1dd)+_0xc9496c['message']+_0x15e565(0x132)+_0xc9496c[_0x15e565(0x2e4)]+':'+_0xc9496c[_0x15e565(0x16d)]+':'+_0xc9496c['colno']+'\x0a'+(((_0x46f3fd=_0xc9496c[_0x15e565(0x12e)])==null?void 0x0:_0x46f3fd[_0x15e565(0x18f)])||''));};window[_0x3a6811(0x1ef)](_0x3a6811(0x12e),_0x4490ce),this[_0x3a6811(0x331)](()=>{const _0x357e36=_0x3a6811;window[_0x357e36(0x328)](_0x357e36(0x12e),_0x4490ce);});}[_0x32c856(0x335)](){const _0x1dff91=_0x32c856,_0x52b132=_0x486e10=>{const _0x5a88c3=_0x403b;this[_0x5a88c3(0x1fe)](_0x5a88c3(0x12e),_0x5a88c3(0x2d9)+_0x486e10[_0x5a88c3(0x2b4)]);};window[_0x1dff91(0x1ef)](_0x1dff91(0x123),_0x52b132),this[_0x1dff91(0x331)](()=>{const _0x5a5a85=_0x1dff91;window[_0x5a5a85(0x328)]('unhandledrejection',_0x52b132);});}['_monkeyPatchLogService'](){const _0xfc1a87=_0x32c856,_0x2c40dd=this[_0xfc1a87(0x1b4)][_0xfc1a87(0x12e)][_0xfc1a87(0x1cf)](this[_0xfc1a87(0x1b4)]);this[_0xfc1a87(0x1b4)][_0xfc1a87(0x12e)]=(..._0x387f25)=>{const _0x51b0db=_0xfc1a87,_0x19e8cc=_0x387f25[_0x51b0db(0x1e7)](_0x4482f0=>_0x4482f0 instanceof Error?_0x4482f0['message']+'\x0a'+_0x4482f0['stack']:String(_0x4482f0))[_0x51b0db(0x2de)]('\x20');this[_0x51b0db(0x1fe)](_0x51b0db(0x12e),_0x51b0db(0x34c)+_0x19e8cc),_0x2c40dd(..._0x387f25);},this[_0xfc1a87(0x331)](()=>{const _0xfdad17=_0xfc1a87;this['_logService'][_0xfdad17(0x12e)]=_0x2c40dd;});}[_0x32c856(0x1fe)](_0x217037,_0x4577b0){const _0x378e1d=_0x32c856;try{const _0x3201db={'userId':this[_0x378e1d(0x186)],'logLabel':_0x217037,'content':_0x4577b0};this[_0x378e1d(0x222)][_0x378e1d(0x2a5)](_0x378e1d(0x185),{'body':_0x3201db})[_0x378e1d(0x2c5)](()=>{});}catch{}}};le=ln([ne(0x0,_0xb67117(_0x2d24f1)),ne(0x1,_0xb67117(_0x2841df)),ne(0x2,_0x3f6a9a),ne(0x3,_0xb67117(_0x587ed6))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x32c856(0x169)],dn=(_0x288088,_0x2039fd,_0x228e54,_0x3d8794)=>{const _0x412fe1=_0x32c856;for(var _0xfb88eb=_0x3d8794>0x1?void 0x0:_0x3d8794?un(_0x2039fd,_0x228e54):_0x2039fd,_0xd0a62b=_0x288088[_0x412fe1(0x155)]-0x1,_0x29fdc8;_0xd0a62b>=0x0;_0xd0a62b--)(_0x29fdc8=_0x288088[_0xd0a62b])&&(_0xfb88eb=_0x29fdc8(_0xfb88eb)||_0xfb88eb);return _0xfb88eb;},lt=(_0x1a64f8,_0x5a4414)=>(_0x58e28e,_0x1713ca)=>_0x5a4414(_0x58e28e,_0x1713ca,_0x1a64f8);let he=class{constructor(_0x5abc6e,_0x15636f){const _0x391daf=_0x32c856;this[_0x391daf(0x33f)]=_0x5abc6e,this[_0x391daf(0x34f)]=_0x15636f;}['transformIMECache'](_0x1a9189){const _0xa18c42=_0x32c856;this[_0xa18c42(0x1de)](_0x1a9189),this['_transformPreviousActiveRange'](_0x1a9189);}['transformRemoteChangeset'](_0x3bd2c3){const _0x571493=_0x32c856,{unitID:_0x26d4b4}=_0x3bd2c3,_0x6cc51c=this[_0x571493(0x34f)][_0x571493(0x342)](_0x26d4b4)[_0x571493(0x2bb)](_0x31d69b),{redoCache:_0x28c52b}=_0x6cc51c['getUndoRedoMutationParamsCache']();if(_0x28c52b[_0x571493(0x155)]===0x0)return _0x3bd2c3;let _0x3f3a87=_0x5065b3['deepClone'](_0x3bd2c3['mutations'][0x0]);for(let _0x2c8de0=0x0;_0x2c8de0<_0x28c52b[_0x571493(0x155)];_0x2c8de0++){const _0xe1eea8={'id':_0x571493(0x2b8),'params':{..._0x28c52b[_0x2c8de0]}},_0x282579=this[_0x571493(0x33f)][_0x571493(0x18d)](_0x3f3a87,_0xe1eea8,!0x1);if(_0x28a617(_0x282579))throw _0x282579[_0x571493(0x12e)];_0x3f3a87=_0x282579[_0x571493(0x31c)];}return{..._0x5065b3[_0x571493(0x334)](_0x3bd2c3),'mutations':[_0x3f3a87]};}[_0x32c856(0x1de)](_0x22c60f){const _0x209c73=_0x32c856,{unitID:_0x366d3b}=_0x22c60f,_0x5d7b8e=this[_0x209c73(0x34f)][_0x209c73(0x342)](_0x366d3b)['with'](_0x31d69b),{undoCache:_0x48a797,redoCache:_0x4e80c1}=_0x5d7b8e['getUndoRedoMutationParamsCache']();if(_0x48a797[_0x209c73(0x155)]===0x0||_0x4e80c1['length']===0x0)return;const _0x22c9ce=[],_0x4c9126=[];let _0x3be817=_0x5065b3[_0x209c73(0x334)](_0x22c60f[_0x209c73(0x235)][0x0]),_0x4422d6=_0x5065b3[_0x209c73(0x334)](_0x22c60f['mutations'][0x0]);for(let _0x203723=_0x48a797[_0x209c73(0x155)]-0x1;_0x203723>=0x0;_0x203723--){const _0x24d962={'id':_0x209c73(0x2b8),'params':{..._0x48a797[_0x203723]}},_0x347cab={'id':_0x209c73(0x2b8),'params':{..._0x4e80c1[_0x203723]}},_0x110e72=this['_transformService'][_0x209c73(0x18d)](_0x3be817,_0x24d962,!0x1),_0x21c28f=this['_transformService'][_0x209c73(0x18d)](_0x4422d6,_0x347cab,!0x1);if(_0x28a617(_0x110e72))throw _0x110e72[_0x209c73(0x12e)];if(_0x28a617(_0x21c28f))throw _0x21c28f[_0x209c73(0x12e)];_0x22c9ce[_0x209c73(0x348)](_0x110e72[_0x209c73(0x290)][_0x209c73(0x128)]),_0x4c9126[_0x209c73(0x348)](_0x21c28f['m2Prime'][_0x209c73(0x128)]),_0x3be817=_0x110e72[_0x209c73(0x31c)],_0x4422d6=_0x21c28f[_0x209c73(0x31c)];}_0x5d7b8e[_0x209c73(0x138)]({'undoCache':_0x22c9ce,'redoCache':_0x4c9126});}[_0x32c856(0x1ac)](_0x4f585f){const _0x3fc8be=_0x32c856,{unitID:_0x2753ae}=_0x4f585f,_0xd5d8a=this['_renderManagerService'][_0x3fc8be(0x342)](_0x2753ae)[_0x3fc8be(0x2bb)](_0x31d69b),_0x3d1eb7=_0xd5d8a['getActiveRange']();if(_0x3d1eb7==null)return;const _0x3e56d8=[{'id':_0x3fc8be(0x2b8),'params':{'unitId':_0x4f585f[_0x3fc8be(0x1e3)],'actions':null,'textRanges':[_0x3d1eb7]}}],_0x497963=this[_0x3fc8be(0x33f)][_0x3fc8be(0x1b5)](_0x4f585f,_0x3e56d8);if(!_0x483523(_0x497963))throw _0x497963[_0x3fc8be(0x12e)];const _0x31715c=_0x497963[_0x3fc8be(0x290)][0x0][_0x3fc8be(0x128)][_0x3fc8be(0x1aa)];Array[_0x3fc8be(0x1b8)](_0x31715c)&&_0x31715c['length']&&_0xd5d8a[_0x3fc8be(0x1f0)](_0x31715c[0x0]);}};he=dn([lt(0x0,_0x55d9fe),lt(0x1,_0xd3a36)],he);var Sn=Object[_0x32c856(0x169)],In=(_0x51fd04,_0x3cc2f4,_0x19f4d7,_0x10080e)=>{for(var _0x4e259a=_0x10080e>0x1?void 0x0:_0x10080e?Sn(_0x3cc2f4,_0x19f4d7):_0x3cc2f4,_0x4a1ee1=_0x51fd04['length']-0x1,_0x1354e3;_0x4a1ee1>=0x0;_0x4a1ee1--)(_0x1354e3=_0x51fd04[_0x4a1ee1])&&(_0x4e259a=_0x1354e3(_0x4e259a)||_0x4e259a);return _0x4e259a;},Le=(_0x4b4abf,_0x32caaf)=>(_0x9f0780,_0x396bf9)=>_0x32caaf(_0x9f0780,_0x396bf9,_0x4b4abf);let ue=class{constructor(_0x1c7311,_0x5debd5,_0x2e8dac){const _0x22002f=_0x32c856;this['_injector']=_0x1c7311,this[_0x22002f(0x33f)]=_0x5debd5,this[_0x22002f(0x17b)]=_0x2e8dac;}[_0x32c856(0x32c)](_0x137878){this['_transformHistoryAndStateStack'](_0x137878);}[_0x32c856(0x265)](_0x58f2bf){const _0x3b6357=_0x32c856,{unitID:_0x57ebab}=_0x58f2bf,{collaboration:_0xb88e52}=this[_0x3b6357(0x17b)][_0x3b6357(0x311)](_0x57ebab);if(_0xb88e52['length']===0x0)return _0x58f2bf;let _0x3d823a=_0x5065b3[_0x3b6357(0x334)](_0x58f2bf[_0x3b6357(0x235)][0x0]);for(let _0x2b9388=0x0;_0x2b9388<_0xb88e52[_0x3b6357(0x155)];_0x2b9388++){const _0xfd2f23={'id':_0x3b6357(0x2b8),'params':{'unitId':_0xb88e52[_0x2b9388]['unitId'],..._0xb88e52[_0x2b9388][_0x3b6357(0x358)]}},_0x496152=this['_transformService'][_0x3b6357(0x18d)](_0x3d823a,_0xfd2f23,!0x1);if(_0x28a617(_0x496152))throw _0x496152[_0x3b6357(0x12e)];_0x3d823a=_0x496152[_0x3b6357(0x31c)];}return{..._0x5065b3[_0x3b6357(0x334)](_0x58f2bf),'mutations':[_0x3d823a]};}[_0x32c856(0x12d)](_0x4f040d){const _0x52d5ed=_0x32c856,{unitID:_0x54462a}=_0x4f040d,{history:_0x598528,collaboration:_0x1986e3}=this[_0x52d5ed(0x17b)][_0x52d5ed(0x311)](_0x54462a);if(_0x598528[_0x52d5ed(0x155)]===0x0&&_0x1986e3['length']===0x0)return;const _0x333f71=[],_0x2b471e=[];let _0x597e4d=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d['mutations'][0x0]),_0x523ed6=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]);for(let _0x2bd7fa=_0x598528[_0x52d5ed(0x155)]-0x1;_0x2bd7fa>=0x0;_0x2bd7fa--){const _0x20bf2f={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x598528[_0x2bd7fa][_0x52d5ed(0x196)],..._0x598528[_0x2bd7fa][_0x52d5ed(0x21c)]}},_0x330c58={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x598528[_0x2bd7fa]['unitId'],..._0x598528[_0x2bd7fa][_0x52d5ed(0x358)]}},_0x4b1e26=this['_transformService'][_0x52d5ed(0x18d)](_0x597e4d,_0x20bf2f,!0x1),_0x5eaf14=this[_0x52d5ed(0x33f)][_0x52d5ed(0x18d)](_0x523ed6,_0x330c58,!0x1);if(_0x28a617(_0x4b1e26))throw _0x4b1e26[_0x52d5ed(0x12e)];if(_0x28a617(_0x5eaf14))throw _0x5eaf14['error'];_0x333f71['unshift']({..._0x598528[_0x2bd7fa],'undoState':_0x4b1e26['m2Prime'][_0x52d5ed(0x128)],'redoState':_0x5eaf14[_0x52d5ed(0x290)]['params']}),_0x597e4d=_0x4b1e26[_0x52d5ed(0x31c)],_0x523ed6=_0x5eaf14['m1Prime'];}_0x597e4d=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]),_0x523ed6=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]);for(let _0x465450=_0x1986e3[_0x52d5ed(0x155)]-0x1;_0x465450>=0x0;_0x465450--){const _0x257c2f={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x1986e3[_0x465450]['unitId'],..._0x1986e3[_0x465450][_0x52d5ed(0x21c)]}},_0x4321d7={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x1986e3[_0x465450][_0x52d5ed(0x196)],..._0x1986e3[_0x465450][_0x52d5ed(0x358)]}},_0x583908=this['_transformService']['transformMutation'](_0x597e4d,_0x257c2f,!0x1),_0x3d8038=this[_0x52d5ed(0x33f)]['transformMutation'](_0x523ed6,_0x4321d7,!0x1);if(_0x28a617(_0x583908))throw _0x583908[_0x52d5ed(0x12e)];if(_0x28a617(_0x3d8038))throw _0x3d8038[_0x52d5ed(0x12e)];_0x2b471e['unshift']({..._0x1986e3[_0x465450],'undoState':_0x583908['m2Prime'][_0x52d5ed(0x128)],'redoState':_0x3d8038[_0x52d5ed(0x290)][_0x52d5ed(0x128)]}),_0x597e4d=_0x583908[_0x52d5ed(0x31c)],_0x523ed6=_0x3d8038[_0x52d5ed(0x31c)];}this[_0x52d5ed(0x17b)][_0x52d5ed(0x1e2)](_0x54462a,{'history':_0x333f71,'collaboration':_0x2b471e});}};ue=In([Le(0x0,_0xb67117(_0x2d24f1)),Le(0x1,_0x55d9fe),Le(0x2,_0xb67117(_0x228351))],ue);var mn=Object[_0x32c856(0x169)],fn=(_0x17a927,_0x3e96a4,_0x277a8a,_0xc5ee9a)=>{const _0x35f95b=_0x32c856;for(var _0x2b5e48=_0xc5ee9a>0x1?void 0x0:_0xc5ee9a?mn(_0x3e96a4,_0x277a8a):_0x3e96a4,_0x5a2f5c=_0x17a927[_0x35f95b(0x155)]-0x1,_0x5d38b7;_0x5a2f5c>=0x0;_0x5a2f5c--)(_0x5d38b7=_0x17a927[_0x5a2f5c])&&(_0x2b5e48=_0x5d38b7(_0x2b5e48)||_0x2b5e48);return _0x2b5e48;},ht=(_0x37e9ed,_0x90a892)=>(_0x116571,_0x5b6499)=>_0x90a892(_0x116571,_0x5b6499,_0x37e9ed);let de=class{constructor(_0x4ac52c,_0x12cbb8){const _0x56b463=_0x32c856;this[_0x56b463(0x1f5)]=_0x4ac52c,this[_0x56b463(0x33f)]=_0x12cbb8;}[_0x32c856(0x15e)](_0x1a8164){const _0xa79684=_0x32c856;var _0x4b6f75;const _0x4954d8=this[_0xa79684(0x1f5)][_0xa79684(0x2b3)](_0x3fd45e),_0x44f19f=(_0x4b6f75=_0x4954d8[_0xa79684(0x1d8)]())!=null?_0x4b6f75:[];if(_0x44f19f[_0xa79684(0x155)]===0x0)return;const _0x21903e=_0x1a8164[_0xa79684(0x1e3)],_0x31bc3b=[{'id':_0xa79684(0x2b8),'params':{'unitId':_0x21903e,'actions':null,'textRanges':_0x44f19f}}],_0x454ec6=this['_transformService'][_0xa79684(0x1b5)](_0x1a8164,_0x31bc3b);if(!_0x483523(_0x454ec6))throw _0x454ec6['error'];const _0x4090b4=_0x454ec6['m2Prime'][0x0][_0xa79684(0x128)][_0xa79684(0x1aa)];Array[_0xa79684(0x1b8)](_0x4090b4)&&_0x4090b4[_0xa79684(0x155)]&&_0x4954d8[_0xa79684(0x215)](_0x4090b4,{'unitId':_0x21903e,'subUnitId':_0x21903e},!0x1);}};de=fn([ht(0x0,_0xb67117(_0x2d24f1)),ht(0x1,_0x55d9fe)],de);var gn=Object[_0x32c856(0x169)],En=(_0xcb9f5,_0x579c75,_0xa1faea,_0x2dd1e6)=>{const _0x4496c4=_0x32c856;for(var _0x4c1efc=_0x2dd1e6>0x1?void 0x0:_0x2dd1e6?gn(_0x579c75,_0xa1faea):_0x579c75,_0x51e865=_0xcb9f5[_0x4496c4(0x155)]-0x1,_0x107c54;_0x51e865>=0x0;_0x51e865--)(_0x107c54=_0xcb9f5[_0x51e865])&&(_0x4c1efc=_0x107c54(_0x4c1efc)||_0x4c1efc);return _0x4c1efc;},U=(_0x369e24,_0x1c2977)=>(_0x5af294,_0x3c0335)=>_0x1c2977(_0x5af294,_0x3c0335,_0x369e24);let Se=class extends _0x4ca9c1{constructor(_0x259dbb,_0x1cc4c4,_0x50592a,_0x587cee,_0x13a880,_0xd9c678,_0x5da36a,_0x13ed1b){const _0x3ad1c9=_0x32c856;super(),_(this,_0x3ad1c9(0x249),new _0x41d101(_0x4c2ad5[_0x3ad1c9(0x1a7)])),(this[_0x3ad1c9(0x17b)]=_0x259dbb,this[_0x3ad1c9(0x184)]=_0x1cc4c4,this['_docTransformIMECacheService']=_0x50592a,this['_docTransformStateCacheService']=_0x587cee,this['_docTransformSelectionsService']=_0x13a880,this[_0x3ad1c9(0x258)]=_0xd9c678,this[_0x3ad1c9(0x129)]=_0x5da36a,this[_0x3ad1c9(0x338)]=_0x13ed1b,this['_initEntityListener']());}[_0x32c856(0x158)](){const _0x2021f0=_0x32c856;this['disposeWithMe'](this[_0x2021f0(0x184)][_0x2021f0(0x218)][_0x2021f0(0x2bf)](_0x114d3d=>{const _0x14cc53=_0x2021f0,_0x5012a6=this[_0x14cc53(0x17b)]['docStateChange$'][_0x14cc53(0x2bf)](_0x5cc5c6=>{const _0x14f41a=_0x14cc53;if(_0x5cc5c6==null)return;const {unitId:_0x504649,redoState:_0x488e00,commandId:_0x35a5eb}=_0x5cc5c6;if(_0x504649!==_0x114d3d[_0x14f41a(0x1e3)])return;const _0x1d8581={'id':_0x35a5eb,'type':_0xd457e7['MUTATION'],'params':{'unitId':_0x504649,'actions':_0x488e00[_0x14f41a(0x2bd)],'textRanges':null}};_0x114d3d['onLocalMutation'](_0x1d8581);});if(_0x114d3d[_0x14cc53(0x331)](_0x5012a6),_0x114d3d instanceof _0x4e3ede){const _0x3a9b9a={'onTransformIME':_0x236207=>this[_0x14cc53(0x17d)][_0x14cc53(0x189)](_0x236207),'onTransformState':_0x123a2b=>this['_docTransformStateCacheService']['transformStateCache'](_0x123a2b),'onTransformSelections':_0x530683=>this[_0x14cc53(0x2c4)]['transformSelections'](_0x530683),'onSyncEditingCollabCursor':_0x144fc5=>this[_0x14cc53(0x258)]['syncEditingCollabCursor'](_0x144fc5),'onTransformRemoteChangesetByIMECache':_0x27e424=>this[_0x14cc53(0x17d)][_0x14cc53(0x265)](_0x27e424),'onTransformRemoteChangesetByStateCache':_0x2dfff2=>this['_docTransformStateCacheService'][_0x14cc53(0x265)](_0x2dfff2)};_0x114d3d[_0x14cc53(0x1b1)](_0x3a9b9a);}}));}};Se=En([U(0x0,_0xb67117(_0x228351)),U(0x1,_0xb67117(_0x5c5058)),U(0x2,_0xb67117(he)),U(0x3,_0xb67117(ue)),U(0x4,_0xb67117(de)),U(0x5,_0xb67117(ze)),U(0x6,_0x2f7eba),U(0x7,_0xb67117(_0x19887b))],Se);var Z=(_0x5d40a4=>(_0x5d40a4[_0x5d40a4[_0x32c856(0x2a9)]=0x0]=_0x32c856(0x2a9),_0x5d40a4[_0x5d40a4['OK']=0x1]='OK',_0x5d40a4[_0x5d40a4['INTERNAL_ERROR']=0x2]=_0x32c856(0x255),_0x5d40a4[_0x5d40a4[_0x32c856(0x24c)]=0x3]=_0x32c856(0x24c),_0x5d40a4[_0x5d40a4[_0x32c856(0x330)]=0x4]=_0x32c856(0x330),_0x5d40a4[_0x5d40a4['UNAUTHENTICATED']=0x5]=_0x32c856(0x19c),_0x5d40a4[_0x5d40a4[_0x32c856(0x281)]=0x6]=_0x32c856(0x281),_0x5d40a4[_0x5d40a4[_0x32c856(0x291)]=0x7]=_0x32c856(0x291),_0x5d40a4[_0x5d40a4[_0x32c856(0x2e6)]=0x8]=_0x32c856(0x2e6),_0x5d40a4[_0x5d40a4['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5d40a4[_0x5d40a4['LOGIN_FAILED']=0xa]=_0x32c856(0x22e),_0x5d40a4[_0x5d40a4['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x32c856(0x228),_0x5d40a4[_0x5d40a4['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2cc)]=0xd]=_0x32c856(0x2cc),_0x5d40a4[_0x5d40a4[_0x32c856(0x1ff)]=0xe]=_0x32c856(0x1ff),_0x5d40a4[_0x5d40a4['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5d40a4[_0x5d40a4['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5d40a4[_0x5d40a4[_0x32c856(0x1a9)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5d40a4[_0x5d40a4['ERROR_AGAIN']=0x65]=_0x32c856(0x312),_0x5d40a4[_0x5d40a4['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0x5d40a4[_0x5d40a4[_0x32c856(0x303)]=0xca]=_0x32c856(0x303),_0x5d40a4[_0x5d40a4[_0x32c856(0x2fd)]=0x1389]=_0x32c856(0x2fd),_0x5d40a4[_0x5d40a4[_0x32c856(0x315)]=0x1771]=_0x32c856(0x315),_0x5d40a4[_0x5d40a4[_0x32c856(0x20f)]=0x1772]=_0x32c856(0x20f),_0x5d40a4[_0x5d40a4['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x32c856(0x11d),_0x5d40a4[_0x5d40a4[_0x32c856(0x166)]=0x1b59]=_0x32c856(0x166),_0x5d40a4[_0x5d40a4[_0x32c856(0x256)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5d40a4[_0x5d40a4[_0x32c856(0x149)]=0x1b5b]=_0x32c856(0x149),_0x5d40a4[_0x5d40a4['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x32c856(0x1ae),_0x5d40a4[_0x5d40a4['APPLY_DUPLICATED']=0x1b5d]=_0x32c856(0x2b2),_0x5d40a4[_0x5d40a4[_0x32c856(0x247)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5d40a4[_0x5d40a4[_0x32c856(0x316)]=0x2329]=_0x32c856(0x316),_0x5d40a4[_0x5d40a4[_0x32c856(0x170)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5d40a4[_0x5d40a4[_0x32c856(0x121)]=0x232b]=_0x32c856(0x121),_0x5d40a4[_0x5d40a4[_0x32c856(0x1f8)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5d40a4[_0x5d40a4['LICENSE_DISTRO_REJECTED']=0x232d]=_0x32c856(0x350),_0x5d40a4[_0x5d40a4[_0x32c856(0x126)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5d40a4[_0x5d40a4[_0x32c856(0x199)]=0x2712]=_0x32c856(0x199),_0x5d40a4[_0x5d40a4['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x32c856(0x2f2),_0x5d40a4[_0x5d40a4['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x32c856(0x31e),_0x5d40a4[_0x5d40a4[_0x32c856(0x2f1)]=0x271a]=_0x32c856(0x2f1),_0x5d40a4[_0x5d40a4[_0x32c856(0x33a)]=0x271b]=_0x32c856(0x33a),_0x5d40a4[_0x5d40a4[_0x32c856(0x361)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5d40a4[_0x5d40a4['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x32c856(0x231),_0x5d40a4[_0x5d40a4['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2ec)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x5d40a4[_0x5d40a4[_0x32c856(0x1b3)]=0x2720]=_0x32c856(0x1b3),_0x5d40a4[_0x5d40a4[_0x32c856(0x23d)]=0x2af9]=_0x32c856(0x23d),_0x5d40a4[_0x5d40a4[_0x32c856(0x20e)]=0x2ee1]=_0x32c856(0x20e),_0x5d40a4[_0x5d40a4[_0x32c856(0x16e)]=0x2ee2]=_0x32c856(0x16e),_0x5d40a4[_0x5d40a4['INVITE_CODE_REQUIRED']=0x2ee3]=_0x32c856(0x269),_0x5d40a4[_0x5d40a4['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x5d40a4[_0x5d40a4[_0x32c856(0x321)]=0x2ee5]=_0x32c856(0x321),_0x5d40a4[_0x5d40a4['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x32c856(0x229),_0x5d40a4[_0x5d40a4[_0x32c856(0x33d)]=0x32ca]=_0x32c856(0x33d),_0x5d40a4[_0x5d40a4[_0x32c856(0x1be)]=0x32cb]=_0x32c856(0x1be),_0x5d40a4[_0x5d40a4['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x32c856(0x31f),_0x5d40a4[_0x5d40a4['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x32c856(0x226),_0x5d40a4[_0x5d40a4['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5d40a4[_0x5d40a4[_0x32c856(0x34e)]=0x36b4]=_0x32c856(0x34e),_0x5d40a4[_0x5d40a4[_0x32c856(0x2a3)]=0x36b5]=_0x32c856(0x2a3),_0x5d40a4[_0x5d40a4['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x32c856(0x118),_0x5d40a4[_0x5d40a4['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x32c856(0x234),_0x5d40a4[_0x5d40a4[_0x32c856(0x2ee)]=0x36b8]=_0x32c856(0x2ee),_0x5d40a4[_0x5d40a4['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x32c856(0x220),_0x5d40a4[_0x5d40a4[_0x32c856(0x289)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5d40a4[_0x5d40a4[_0x32c856(0x293)]=0x3717]=_0x32c856(0x293),_0x5d40a4[_0x5d40a4[_0x32c856(0x1a5)]=0x37dd]=_0x32c856(0x1a5),_0x5d40a4[_0x5d40a4[_0x32c856(0x13f)]=0x3a99]=_0x32c856(0x13f),_0x5d40a4[_0x5d40a4[_0x32c856(0x25c)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5d40a4[_0x5d40a4[_0x32c856(0x14a)]=0x3a9b]=_0x32c856(0x14a),_0x5d40a4[_0x5d40a4[_0x32c856(0x143)]=0x3a9c]=_0x32c856(0x143),_0x5d40a4[_0x5d40a4['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x32c856(0x280),_0x5d40a4[_0x5d40a4['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2a2)]=0x3a9f]=_0x32c856(0x2a2),_0x5d40a4[_0x5d40a4[_0x32c856(0x1eb)]=0x3e81]=_0x32c856(0x1eb),_0x5d40a4[_0x5d40a4[_0x32c856(0x271)]=-0x1]=_0x32c856(0x271),_0x5d40a4))(Z||{});function vn(_0x4cc6c2){const _0x4f4b1e=_0x32c856;var _0x3a796e,_0x53513b;const _0x22fe32=(_0x3a796e=_0x4cc6c2['stageInfo'])==null?void 0x0:_0x3a796e[_0x4f4b1e(0x22c)],_0x51143f=((_0x53513b=_0x4cc6c2['stageInfo'])==null?void 0x0:_0x53513b[_0x4f4b1e(0x26f)])||0x0;return _0x22fe32===_0x418364[_0x4f4b1e(0x206)]&&_0x51143f>0x0;}function pn(_0x3a3063){const _0x1eae0e=_0x32c856;return _0x3a3063[_0x1eae0e(0x160)]===_0x1d1fe7[_0x1eae0e(0x28c)];}var On=Object[_0x32c856(0x169)],Tn=(_0x27295d,_0x505fcb,_0x4e964f,_0x19509f)=>{const _0x39d020=_0x32c856;for(var _0x189925=_0x19509f>0x1?void 0x0:_0x19509f?On(_0x505fcb,_0x4e964f):_0x505fcb,_0x305a6c=_0x27295d[_0x39d020(0x155)]-0x1,_0x2fcd8a;_0x305a6c>=0x0;_0x305a6c--)(_0x2fcd8a=_0x27295d[_0x305a6c])&&(_0x189925=_0x2fcd8a(_0x189925)||_0x189925);return _0x189925;},P=(_0x1d119d,_0x5e318f)=>(_0x4c8d0c,_0xe79d3f)=>_0x5e318f(_0x4c8d0c,_0xe79d3f,_0x1d119d);const Cn=_0x32c856(0x182),Rn='/universer-api/license/formula/limit/start',Dn=_0x32c856(0x1b2);let Ie=class extends _0x4ca9c1{constructor(_0x15603f,_0x115214,_0x276e13,_0x292c35,_0x2f2ca7,_0x5b731d,_0x1d623a){const _0x375b69=_0x32c856;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x375b69(0x292),[]),_(this,_0x375b69(0x146),0x0),(this[_0x375b69(0x129)]=_0x15603f,this['_commandService']=_0x115214,this[_0x375b69(0x23e)]=_0x276e13,this[_0x375b69(0x222)]=_0x292c35,this['_univerInstanceService']=_0x2f2ca7,this['_logService']=_0x5b731d,this[_0x375b69(0x338)]=_0x1d623a,this[_0x375b69(0x1a1)]());}[_0x32c856(0x1a1)](){const _0x588128=_0x32c856;this[_0x588128(0x331)](this[_0x588128(0x15b)][_0x588128(0x363)]((_0x1156e8,_0x49c2aa)=>{const _0x1c37ad=_0x588128;var _0xe8a009;if(_0x1156e8['id']!==_0xc0ef9d['id'])return;const _0x397cf7=_0x1156e8[_0x1c37ad(0x128)];if(!this['_hasFormulaInDirtyRanges']((_0xe8a009=_0x397cf7['dirtyRanges'])!=null?_0xe8a009:[]))return;if(!this[_0x1c37ad(0x18a)]())throw this['_checkAndWaitForCalculationPermission'](_0x1156e8,_0x49c2aa),this[_0x1c37ad(0x2ef)](),new _0xc86ab2();})),this['disposeWithMe'](this[_0x588128(0x15b)][_0x588128(0x297)]((_0x1a8a12,_0x1b8681)=>{const _0x4d379a=_0x588128;if(_0x1a8a12['id']!==_0x22ae1d['id'])return;const _0x305437=_0x1a8a12[_0x4d379a(0x128)];if(vn(_0x305437)){const _0xfd75f3=_0x3baa1f();this[_0x4d379a(0x292)][_0x4d379a(0x302)](_0xfd75f3),this[_0x4d379a(0x32a)](_0xfd75f3);}else{if(pn(_0x305437)&&this[_0x4d379a(0x292)][_0x4d379a(0x155)]>0x0){const _0x5c037c=this[_0x4d379a(0x292)][_0x4d379a(0x2c7)]();this[_0x4d379a(0x248)](_0x5c037c);}}}));}[_0x32c856(0x18c)](){const _0x37e7fe=_0x32c856;super['dispose'](),this[_0x37e7fe(0x2ea)](),this[_0x37e7fe(0x292)]=[],this[_0x37e7fe(0x174)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x37e7fe(0x146)]=0x0;}async[_0x32c856(0x195)](_0x3aae53,_0x2e9269){const _0xe67009=_0x32c856;for(let _0x27a93e=0x0;_0x27a93e<0x1e;_0x27a93e++)try{if(await this['_getFormulaLimitStatus'](),this[_0xe67009(0x18a)]()){this['_applyCommand'](_0x3aae53,_0x2e9269),this[_0xe67009(0x129)][_0xe67009(0x1e9)]({'content':this[_0xe67009(0x338)]['t'](_0xe67009(0x262)),'type':_0x4659ab[_0xe67009(0x309)]});return;}await new Promise(_0x47e449=>{const _0x588a25=_0xe67009;this['_pollingInterval']=window[_0x588a25(0x125)](_0x47e449,0x3e8);});}catch(_0x17b9a0){this[_0xe67009(0x1b4)][_0xe67009(0x12e)](_0x17b9a0);}this[_0xe67009(0x129)][_0xe67009(0x1e9)]({'content':this['_localeService']['t'](_0xe67009(0x34b)),'type':_0x4659ab[_0xe67009(0x150)]});}[_0x32c856(0x287)](_0x11b70c,_0x1f8e64){const _0x4f555c=_0x32c856;try{this[_0x4f555c(0x15b)][_0x4f555c(0x26e)](_0x11b70c['id'],_0x11b70c[_0x4f555c(0x128)],_0x1f8e64);}catch(_0xc2b01f){this[_0x4f555c(0x1b4)][_0x4f555c(0x12e)](_0xc2b01f);}}[_0x32c856(0x27c)](_0x32ab97,_0x2e4438){const _0x11cbb0=_0x32c856;_0x2e4438<this[_0x11cbb0(0x146)]||(this[_0x11cbb0(0x146)]=_0x2e4438,this[_0x11cbb0(0x172)]=Number['parseInt'](_0x32ab97[_0x11cbb0(0x327)]),this[_0x11cbb0(0x174)]=Number['parseInt'](_0x32ab97[_0x11cbb0(0x1a4)]));}async[_0x32c856(0x32a)](_0x1786bb){const _0x5421a5=_0x32c856;var _0x4ebf29,_0x38baad;const _0x5c0a74=Date[_0x5421a5(0x20b)]();try{const _0x183750=((_0x4ebf29=this[_0x5421a5(0x23e)]['getConfig'](_0x3fe88d))==null?void 0x0:_0x4ebf29[_0x5421a5(0x254)])||Rn,_0x2ce311=(await this[_0x5421a5(0x222)][_0x5421a5(0x2a5)](_0x183750,{'body':JSON['stringify']({'taskId':_0x1786bb})}))[_0x5421a5(0x161)];if(((_0x38baad=_0x2ce311[_0x5421a5(0x12e)])==null?void 0x0:_0x38baad[_0x5421a5(0x2f9)])!==Z['OK'])return;this[_0x5421a5(0x27c)](_0x2ce311[_0x5421a5(0x355)],_0x5c0a74);}catch(_0x2973c9){this[_0x5421a5(0x1b4)]['error'](_0x2973c9);}}async[_0x32c856(0x201)](_0x5983e2){const _0xabfa3=_0x32c856;var _0x298566,_0x4aa5c1;const _0x575f54=Date[_0xabfa3(0x20b)]();try{const _0x5c4c1a=((_0x298566=this['_configService'][_0xabfa3(0x1a3)](_0x3fe88d))==null?void 0x0:_0x298566[_0xabfa3(0x351)])||Cn,_0x1e950d=_0x5983e2?_0x5c4c1a+_0xabfa3(0x28a)+encodeURIComponent(_0x5983e2):_0x5c4c1a,_0x1fe069=(await this[_0xabfa3(0x222)][_0xabfa3(0x2b3)](_0x1e950d))[_0xabfa3(0x161)];if(((_0x4aa5c1=_0x1fe069[_0xabfa3(0x12e)])==null?void 0x0:_0x4aa5c1[_0xabfa3(0x2f9)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x1fe069[_0xabfa3(0x355)],_0x575f54);}catch(_0x4f6821){this[_0xabfa3(0x1b4)]['error'](_0x4f6821);}}async[_0x32c856(0x248)](_0x3b5ff1){const _0x22dbf8=_0x32c856;var _0x2af98b,_0x217b0f;const _0x2931bf=Date['now']();try{const _0xb5478b=((_0x2af98b=this[_0x22dbf8(0x23e)][_0x22dbf8(0x1a3)](_0x3fe88d))==null?void 0x0:_0x2af98b['releaseFormulaLimitUrl'])||Dn,_0x5d7761=(await this[_0x22dbf8(0x222)][_0x22dbf8(0x2a5)](_0xb5478b,{'body':JSON['stringify']({'taskId':_0x3b5ff1})}))[_0x22dbf8(0x161)];if(((_0x217b0f=_0x5d7761[_0x22dbf8(0x12e)])==null?void 0x0:_0x217b0f[_0x22dbf8(0x2f9)])!==Z['OK'])return;this[_0x22dbf8(0x27c)](_0x5d7761['limitInfo'],_0x2931bf);}catch(_0x189d0f){this[_0x22dbf8(0x1b4)]['error'](_0x189d0f);}}[_0x32c856(0x18a)](){const _0x1c61d7=_0x32c856;return this[_0x1c61d7(0x172)]===0x0?!0x0:this[_0x1c61d7(0x172)]-this[_0x1c61d7(0x174)]>0x0;}['_clearPolling'](){const _0xfe5979=_0x32c856;this[_0xfe5979(0x2e2)]&&(clearTimeout(this[_0xfe5979(0x2e2)]),this[_0xfe5979(0x2e2)]=null);}['_showGuardMessage'](){const _0x2377a6=_0x32c856;this[_0x2377a6(0x129)]['show']({'content':this[_0x2377a6(0x338)]['t'](_0x2377a6(0x131)),'type':_0x4659ab['Loading']});}[_0x32c856(0x2aa)](_0x2f9812){const _0x57b6d0=_0x32c856;for(const _0x1c0ed1 of _0x2f9812){const {unitId:_0x1c0fac,sheetId:_0x30dc16,range:_0x1dc78d}=_0x1c0ed1,_0x253b2b=this[_0x57b6d0(0x19f)][_0x57b6d0(0x276)](_0x1c0fac);if(!_0x253b2b)continue;const _0x478c6f=_0x253b2b[_0x57b6d0(0x260)](_0x30dc16);if(!_0x478c6f)continue;const _0x52e7e2=_0x478c6f[_0x57b6d0(0x2f8)]();for(let _0x45179a=_0x1dc78d[_0x57b6d0(0x154)];_0x45179a<=_0x1dc78d[_0x57b6d0(0x301)];_0x45179a++)for(let _0x42b8d1=_0x1dc78d[_0x57b6d0(0x322)];_0x42b8d1<=_0x1dc78d[_0x57b6d0(0x22f)];_0x42b8d1++){const _0x3594c1=_0x52e7e2[_0x57b6d0(0x2e3)](_0x45179a,_0x42b8d1);if(_0x3594c1&&(_0x45b7f1(_0x3594c1['f'])||_0x89f427(_0x3594c1['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xb67117(_0x2f7eba)),P(0x1,_0x156a6d),P(0x2,_0x11135c),P(0x3,_0xb67117(_0x2841df)),P(0x4,_0x5ca55f),P(0x5,_0x3f6a9a),P(0x6,_0xb67117(_0x19887b))],Ie);var Nn=Object[_0x32c856(0x169)],bn=(_0x49e443,_0x3d0475,_0x5a0908,_0x46829d)=>{const _0x2d46f4=_0x32c856;for(var _0x4987b3=_0x46829d>0x1?void 0x0:_0x46829d?Nn(_0x3d0475,_0x5a0908):_0x3d0475,_0x39671c=_0x49e443[_0x2d46f4(0x155)]-0x1,_0x53b788;_0x39671c>=0x0;_0x39671c--)(_0x53b788=_0x49e443[_0x39671c])&&(_0x4987b3=_0x53b788(_0x4987b3)||_0x4987b3);return _0x4987b3;},Ue=(_0x3911f8,_0x1201bd)=>(_0x55c22e,_0x2766bf)=>_0x1201bd(_0x55c22e,_0x2766bf,_0x3911f8);function _0x403b(_0x335609,_0x2e0e1f){_0x335609=_0x335609-0x115;const _0x1b0a17=_0x1b0a();let _0x403bde=_0x1b0a17[_0x335609];return _0x403bde;}let He=class extends _0x4ca9c1{constructor(_0x31142c,_0x2418bf,_0x16c289){const _0x28156c=_0x32c856;super(),_(this,_0x28156c(0x1e0),new Map()),_(this,_0x28156c(0x22a),new Map()),_(this,_0x28156c(0x1f4),!0x1),(this[_0x28156c(0x23e)]=_0x31142c,this[_0x28156c(0x18e)]=_0x2418bf,this[_0x28156c(0x1f3)]=_0x16c289);}['disableLocalCache'](){const _0x328b1b=_0x32c856;this[_0x328b1b(0x1f4)]=!0x0;}[_0x32c856(0x140)](){const _0x175672=_0x32c856;this[_0x175672(0x1f4)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x32c856(0x18c)](){const _0x17690f=_0x32c856;this['exhaustSavingTask']()[_0x17690f(0x25a)](()=>super['dispose']());}async['loadOfflineData'](_0x261179){const _0x1b7ed1=_0x32c856;return this[_0x1b7ed1(0x1f4)]?null:this[_0x1b7ed1(0x18e)][_0x1b7ed1(0x141)](_0x229de6(_0x261179));}async[_0x32c856(0x237)](_0x578f09,_0x4a3745){const _0x495247=_0x32c856;return!!this[_0x495247(0x18e)][_0x495247(0x157)](_0x578f09,_0x4a3745);}['updateOfflineData'](_0x4770d1,_0xa2d24d,_0xacc1bd,_0x4c9440){const _0x1c4c5a=_0x32c856,_0x1035dc=this[_0x1c4c5a(0x1f3)][_0x1c4c5a(0x11e)](_0x4770d1);this[_0x1c4c5a(0x1e0)][_0x1c4c5a(0x191)](_0x4770d1,{'unitID':_0x4770d1,'type':_0xa2d24d,'awaitingChangeset':_0xacc1bd,'mutations':_0x4c9440,'rev':_0x1035dc}),this[_0x1c4c5a(0x22a)][_0x1c4c5a(0x23c)](_0x4770d1)||this[_0x1c4c5a(0x1db)](_0x4770d1);}[_0x32c856(0x1db)](_0x323eae){const _0x3f5773=_0x32c856,_0x4a37fa=this[_0x3f5773(0x207)]();_0x4a37fa===0x0?this[_0x3f5773(0x2ff)](_0x323eae):this[_0x3f5773(0x22a)]['set'](_0x323eae,setTimeout(()=>this[_0x3f5773(0x2ff)](_0x323eae),_0x4a37fa));}[_0x32c856(0x207)](){const _0x4a2ecf=_0x32c856;var _0x2ed3fb;return(_0x2ed3fb=this[_0x4a2ecf(0x23e)]['getConfig'](_0x2bfc4e))!=null?_0x2ed3fb:_0x5a6993;}[_0x32c856(0x2ff)](_0x47a24b){const _0x293e0b=_0x32c856,_0x1ef589=this[_0x293e0b(0x22a)][_0x293e0b(0x2b3)](_0x47a24b);return _0x1ef589!==void 0x0&&window[_0x293e0b(0x15f)](_0x1ef589),this[_0x293e0b(0x18e)][_0x293e0b(0x157)](_0x229de6(_0x47a24b),this['_cachedData'][_0x293e0b(0x2b3)](_0x47a24b))[_0x293e0b(0x25a)](()=>this[_0x293e0b(0x22a)][_0x293e0b(0x24f)](_0x47a24b));}async[_0x32c856(0x1e8)](){const _0x434aa9=_0x32c856,_0x370147=[];this[_0x434aa9(0x22a)][_0x434aa9(0x284)]((_0x1498e1,_0x436d23)=>{const _0x5cdc06=_0x434aa9;window[_0x5cdc06(0x15f)](_0x1498e1),_0x370147[_0x5cdc06(0x302)](this[_0x5cdc06(0x2ff)](_0x436d23)['then'](()=>{const _0x1e1a2e=_0x5cdc06;this[_0x1e1a2e(0x22a)][_0x1e1a2e(0x24f)](_0x436d23);}));}),await Promise[_0x434aa9(0x20a)](_0x370147);}};He=bn([Ue(0x0,_0x11135c),Ue(0x1,_0x15516c),Ue(0x2,_0xb67117(_0x363489))],He);class Ln extends _0x2ed217{constructor(){const _0x576750=_0x32c856;super(),_(this,_0x576750(0x2f3)),this[_0x576750(0x2f3)]=_0x3ec5c6(window,_0x576750(0x267))[_0x576750(0x28e)](_0x67f666(this['dispose$']),_0x4ece6c(0x1),_0x51e742(void 0x0));}['setParam'](_0x542feb,_0x593e13,_0x5bf9b0=!0x1){const _0x2c1d53=_0x32c856,_0x5c29b4=new URL(window['location']['href']);_0x5c29b4[_0x2c1d53(0x35d)][_0x2c1d53(0x191)](_0x542feb,_0x593e13),_0x5bf9b0?window[_0x2c1d53(0x152)][_0x2c1d53(0x2a6)]('','',_0x5c29b4[_0x2c1d53(0x17e)]()):window['history'][_0x2c1d53(0x16a)]('','',_0x5c29b4[_0x2c1d53(0x17e)]());}[_0x32c856(0x136)](_0x11dd4f,_0x14053a=!0x1){const _0x11ed79=_0x32c856,_0x3f1ead=new URL(window[_0x11ed79(0x17c)][_0x11ed79(0x2f0)]);_0x3f1ead[_0x11ed79(0x35d)][_0x11ed79(0x24f)](_0x11dd4f),_0x14053a?window[_0x11ed79(0x152)][_0x11ed79(0x2a6)]('','',_0x3f1ead['toString']()):window[_0x11ed79(0x152)]['pushState']('','',_0x3f1ead['toString']());}[_0x32c856(0x208)](_0x52cfaa){const _0x3f661b=_0x32c856;var _0x4dd71a;return(_0x4dd71a=new URL(window[_0x3f661b(0x17c)][_0x3f661b(0x2f0)])[_0x3f661b(0x35d)]['get'](_0x52cfaa))!=null?_0x4dd71a:void 0x0;}}var Un=Object[_0x32c856(0x17f)],Mn=Object[_0x32c856(0x169)],An=(_0x6bcd22,_0x55fb5f,_0x712596)=>_0x55fb5f in _0x6bcd22?Un(_0x6bcd22,_0x55fb5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x712596}):_0x6bcd22[_0x55fb5f]=_0x712596,Pn=(_0x33bc1c,_0xffa649,_0x5682c9,_0x510ce5)=>{const _0x52a024=_0x32c856;for(var _0x49eb80=_0x510ce5>0x1?void 0x0:_0x510ce5?Mn(_0xffa649,_0x5682c9):_0xffa649,_0x345b58=_0x33bc1c[_0x52a024(0x155)]-0x1,_0x4d9498;_0x345b58>=0x0;_0x345b58--)(_0x4d9498=_0x33bc1c[_0x345b58])&&(_0x49eb80=_0x4d9498(_0x49eb80)||_0x49eb80);return _0x49eb80;},Me=(_0x55b61e,_0x3c27b2)=>(_0x3d9f86,_0x3cab2e)=>_0x3c27b2(_0x3d9f86,_0x3cab2e,_0x55b61e),wn=(_0x1343f1,_0x2306e9,_0x16a667)=>An(_0x1343f1,_0x2306e9+'',_0x16a667);const yn=_0x32c856(0x173);let Ye=class extends _0xe8b968{constructor(_0x26f70c=_t,_0x2ed935,_0x221c0e,_0x1fbc67){const _0x3cfbe6=_0x32c856;super(),this['_config']=_0x26f70c,this[_0x3cfbe6(0x34f)]=_0x2ed935,this[_0x3cfbe6(0x1f5)]=_0x221c0e,this[_0x3cfbe6(0x23e)]=_0x1fbc67;const {..._0x159e45}=_0x8e76ea({},_t,this[_0x3cfbe6(0x214)]);this[_0x3cfbe6(0x23e)][_0x3cfbe6(0x274)](hn,_0x159e45);}[_0x32c856(0x362)](){const _0x212c7a=_0x32c856;this[_0x212c7a(0x241)](),this[_0x212c7a(0x2f4)]();}[_0x32c856(0x1bb)](){this['_registerRenderDependencies']();}[_0x32c856(0x241)](){const _0x5f2e39=_0x32c856;var _0x1df9d1;const _0x3dbc86=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x40d85f,{'useClass':_0x372265}],[_0x58c896,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5f2e39(0x214)]['enableFrontendLog']&&_0x3dbc86[_0x5f2e39(0x302)]([le]),_0x5dea0c(this[_0x5f2e39(0x1f5)],_0x586813(_0x3dbc86,(_0x1df9d1=this['_config'])==null?void 0x0:_0x1df9d1[_0x5f2e39(0x225)]));}[_0x32c856(0x252)](){const _0x3fc9c1=_0x32c856;this['disposeWithMe'](this[_0x3fc9c1(0x34f)][_0x3fc9c1(0x1d3)](_0x4f09e5[_0x3fc9c1(0x224)],[Fe])),this[_0x3fc9c1(0x331)](this[_0x3fc9c1(0x34f)][_0x3fc9c1(0x1d3)](_0x4f09e5[_0x3fc9c1(0x1c2)],[ke]));}[_0x32c856(0x2f4)](){const _0x2bdde1=_0x32c856;_0x310bec(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x2bdde1(0x214)][_0x2bdde1(0x205)]&&_0x310bec(this[_0x2bdde1(0x1f5)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x11a274(_0x1804b3),Me(0x1,_0xd3a36),Me(0x2,_0xb67117(_0x2d24f1)),Me(0x3,_0x11135c)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x1e46bb,_0x3306a5,_0x144f51,_0x1edd88)=>{const _0x1c95fd=_0x32c856;for(var _0x3e88d0=_0x1edd88>0x1?void 0x0:_0x1edd88?$n(_0x3306a5,_0x144f51):_0x3306a5,_0x2fda79=_0x1e46bb[_0x1c95fd(0x155)]-0x1,_0x1dd3fd;_0x2fda79>=0x0;_0x2fda79--)(_0x1dd3fd=_0x1e46bb[_0x2fda79])&&(_0x3e88d0=_0x1dd3fd(_0x3e88d0)||_0x3e88d0);return _0x3e88d0;},J=(_0x2a3b32,_0x35669f)=>(_0x221ba0,_0x3f32cd)=>_0x35669f(_0x221ba0,_0x3f32cd,_0x2a3b32);let ut=class extends _0x15cd37{constructor(_0x394da5,_0x2f21d4,_0xf6fcee,_0x3ef79d,_0x47f751){super(_0x394da5,_0x2f21d4,_0xf6fcee,_0x3ef79d,_0x47f751);}async['createSocket'](_0x5f1033){const _0xc1f112=_0x32c856,_0x20d06f=await this[_0xc1f112(0x15a)](),_0x1d5aea=this[_0xc1f112(0x243)](_0x5f1033,_0x20d06f);return this['_doCreateSocket'](_0x1d5aea);}[_0x32c856(0x243)](_0x3950dc,_0x154138){const _0x27d3f9=_0x32c856,_0x535c63=typeof window>'u'?new URL(_0x3950dc):new URL(_0x3950dc,window[_0x27d3f9(0x17c)][_0x27d3f9(0x2d7)]);_0x535c63[_0x27d3f9(0x35d)][_0x27d3f9(0x191)](_0x27d3f9(0x2a1),_0x154138);const _0x5c04b7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x27d3f9(0x17c)]['search']);return _0x5c04b7[_0x27d3f9(0x2b3)](_0x27d3f9(0x259))&&_0x535c63['searchParams'][_0x27d3f9(0x191)](_0x27d3f9(0x259),_0x5c04b7[_0x27d3f9(0x2b3)](_0x27d3f9(0x259))),_0x535c63[_0x27d3f9(0x17e)]();}async[_0x32c856(0x15a)](){const _0x59d941=_0x32c856;var _0x132789,_0x66729f,_0x1332f0;const _0x25f9f3=this['_configService'][_0x59d941(0x1a3)](_0x3fe88d),_0x1e2bcd=(_0x132789=_0x25f9f3==null?void 0x0:_0x25f9f3[_0x59d941(0x19e)])!=null?_0x132789:_0x48cac4;return(_0x1332f0=(_0x66729f=(await this[_0x59d941(0x222)][_0x59d941(0x2b3)](_0x1e2bcd,{'headers':{'Content-Type':_0x59d941(0x21e)}}))[_0x59d941(0x161)])==null?void 0x0:_0x66729f[_0x59d941(0x1a0)])!=null?_0x1332f0:'';}};ut=xn([J(0x0,_0xb67117(_0x2d24f1)),J(0x1,_0xb67117(_0x2841df)),J(0x2,_0x11135c),J(0x3,_0x3f6a9a),J(0x4,_0x4d6ee2)],ut);var Bn=Object[_0x32c856(0x169)],Fn=(_0x45359e,_0x516289,_0x4dccf7,_0x4b7b6b)=>{const _0x20f86c=_0x32c856;for(var _0x5e7d94=_0x4b7b6b>0x1?void 0x0:_0x4b7b6b?Bn(_0x516289,_0x4dccf7):_0x516289,_0x3262e8=_0x45359e[_0x20f86c(0x155)]-0x1,_0x3322de;_0x3262e8>=0x0;_0x3262e8--)(_0x3322de=_0x45359e[_0x3262e8])&&(_0x5e7d94=_0x3322de(_0x5e7d94)||_0x5e7d94);return _0x5e7d94;},Ae=(_0x4d68b3,_0x12edb0)=>(_0x2b98e4,_0x3b4380)=>_0x12edb0(_0x2b98e4,_0x3b4380,_0x4d68b3);let dt=class extends _0x4ca9c1{constructor(_0x16e24a,_0x1945b8,_0x139063){const _0x3370b7=_0x32c856;super(),this[_0x3370b7(0x31d)]=_0x16e24a,this[_0x3370b7(0x222)]=_0x1945b8,this[_0x3370b7(0x23e)]=_0x139063;}async[_0x32c856(0x27b)](_0x1697b8,_0x1f77d6,_0x2e7ab2,..._0x4d750b){const _0x3ebe08=_0x32c856;var _0x38dfce,_0x5c89a5,_0x24164d,_0x228b84;const _0x2b0f8f=this[_0x3ebe08(0x31d)][_0x3ebe08(0x266)]();if(!_0x2b0f8f)throw new Error(_0x3ebe08(0x27a));const _0x318bc0=((_0x38dfce=this[_0x3ebe08(0x23e)][_0x3ebe08(0x1a3)](_0x5f3381))!=null?_0x38dfce:_0x3c751e)+'/'+_0x1697b8+_0x3ebe08(0x1a2)+_0x1f77d6,_0x30addc=new URL(window['location']['href']),_0x1af6dc={'scriptId':_0x1697b8,'runId':(_0x5c89a5=_0x30addc[_0x3ebe08(0x35d)]['get'](_0x3ebe08(0x259)))!=null?_0x5c89a5:'','function':_0x1f77d6,'unitId':_0x2b0f8f['getUnitId'](),'argsOfFunction':JSON[_0x3ebe08(0x2b7)](_0x4d750b),'invokeId':(_0x24164d=_0x2e7ab2[_0x3ebe08(0x210)])!=null?_0x24164d:'','executionId':(_0x228b84=_0x2e7ab2[_0x3ebe08(0x32b)])!=null?_0x228b84:''};try{const _0x4ad013=await this[_0x3ebe08(0x222)][_0x3ebe08(0x2a5)](_0x318bc0,{'body':_0x1af6dc});return _0x4ad013[_0x3ebe08(0x161)][_0x3ebe08(0x12e)]&&_0x4ad013[_0x3ebe08(0x161)]['error'][_0x3ebe08(0x2f9)]!==Z['OK']?'Failed':_0x4ad013[_0x3ebe08(0x161)]['result'];}catch{return _0x3ebe08(0x272);}}};dt=Fn([Ae(0x0,_0x5ca55f),Ae(0x1,_0xb67117(_0x2841df)),Ae(0x2,_0x11135c)],dt);const St=0x7530,It=_0x32c856(0x120);class rr extends _0x4ca9c1{constructor(){const _0x346903=_0x32c856;super(),_(this,_0x346903(0x26c),_0x3baa1f()),_(this,_0x346903(0x329),new Set()),_(this,_0x346903(0x2d6),new Map()),_(this,_0x346903(0x1ed),null),_(this,_0x346903(0x2b9),new Map()),_(this,_0x346903(0x142),new Map()),this[_0x346903(0x353)]();}[_0x32c856(0x18c)](){const _0x100026=_0x32c856;super['dispose'](),this['_clearOtherTimers'][_0x100026(0x284)]((_0x2d52bd,_0x36ac52)=>this[_0x100026(0x325)](_0x36ac52)),this[_0x100026(0x1ed)]&&window['clearInterval'](this[_0x100026(0x1ed)]);}['getUnitStatus$'](_0x55d608){const _0x2bf4f5=_0x32c856;return this[_0x2bf4f5(0x2ad)](_0x55d608)[_0x2bf4f5(0x28e)](_0x1c16f5());}['editingUnit'](_0x417fb5){const _0x1817e0=_0x32c856;this['_selfUnitIDs'][_0x1817e0(0x2c3)]===0x0&&this[_0x1817e0(0x35b)](),this['_selfUnitIDs'][_0x1817e0(0x2ed)](_0x417fb5),this[_0x1817e0(0x217)]({'type':0x0,'memberID':this[_0x1817e0(0x26c)],'unitIDs':[_0x417fb5],'isForwarded':!0x1});}[_0x32c856(0x251)](_0x291450){const _0xb59e6=_0x32c856;this[_0xb59e6(0x329)][_0xb59e6(0x24f)](_0x291450),this[_0xb59e6(0x329)][_0xb59e6(0x2c3)]===0x0&&this[_0xb59e6(0x1ed)]&&window[_0xb59e6(0x32f)](this[_0xb59e6(0x1ed)]);}[_0x32c856(0x353)](){const _0x4141be=_0x32c856;this[_0x4141be(0x331)](_0x1b8af1(_0x3ec5c6(window,_0x4141be(0x197))[_0x4141be(0x2bf)](_0x41eb6e=>{const _0x5dc149=_0x4141be;if(_0x41eb6e[_0x5dc149(0x27f)]!==It||!_0x41eb6e[_0x5dc149(0x175)])return;const _0x467aa1=JSON[_0x5dc149(0x2dd)](_0x41eb6e[_0x5dc149(0x175)]);this['_handleEvent'](_0x467aa1);}))),window['addEventListener'](_0x4141be(0x22d),()=>this[_0x4141be(0x217)]({'type':0x1,'memberID':this[_0x4141be(0x26c)],'unitIDs':Array[_0x4141be(0x22b)](this[_0x4141be(0x329)])}));}[_0x32c856(0x35f)](_0x4fb458){const _0x1f80b4=_0x32c856;switch(_0x4fb458[_0x1f80b4(0x295)]){case 0x0:this['_handleJoinEvent'](_0x4fb458);break;case 0x1:this[_0x1f80b4(0x194)](_0x4fb458);break;case 0x2:this[_0x1f80b4(0x2cd)](_0x4fb458);break;}}[_0x32c856(0x30b)](_0x43b214){const _0x13bf32=_0x32c856,{unitIDs:_0x21b593,memberID:_0x4a64d7,isForwarded:_0x401dd4}=_0x43b214;_0x21b593[_0x13bf32(0x284)](_0x288717=>{const _0x15e000=_0x13bf32;if(!_0x401dd4&&this[_0x15e000(0x2d6)][_0x15e000(0x23c)](_0x288717)&&this['_ensureSubject'](_0x288717)[_0x15e000(0x1b7)](_0x52dba4[_0x15e000(0x2b0)]),!this['_unitOnClients'][_0x15e000(0x23c)](_0x288717)||!this[_0x15e000(0x2d6)]['get'](_0x288717)[_0x15e000(0x23c)](_0x4a64d7)){const _0x286cbb=this[_0x15e000(0x2d6)][_0x15e000(0x2b3)](_0x288717)||new Set();_0x286cbb['add'](_0x4a64d7),this[_0x15e000(0x2d6)]['set'](_0x288717,_0x286cbb),this['_scheduleClearOtherTimer'](_0x4a64d7);}}),_0x401dd4||this['_send']({'type':0x0,'memberID':this[_0x13bf32(0x26c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x32c856(0x2cf)](_0x341fc5){const _0x6843e4=_0x32c856;this['_removeClearOtherTimer'](_0x341fc5);const _0x1daad1=window[_0x6843e4(0x125)](()=>{const _0x3f5659=_0x6843e4;this[_0x3f5659(0x2d6)]['forEach'](_0x2916e0=>{const _0x216a3c=_0x3f5659;_0x2916e0[_0x216a3c(0x24f)](_0x341fc5);});},St*0x2);this['_clearOtherTimers'][_0x6843e4(0x191)](_0x341fc5,_0x1daad1);}[_0x32c856(0x325)](_0x231378){const _0x20efd5=_0x32c856;if(this['_clearOtherTimers']['has'](_0x231378)){const _0x4bc081=this[_0x20efd5(0x2b9)]['get'](_0x231378);_0x4bc081&&window[_0x20efd5(0x15f)](_0x4bc081),this[_0x20efd5(0x2b9)]['set'](_0x231378,null);}}['_handleLeaveEvent'](_0x52f3f0){const _0x13a810=_0x32c856,{memberID:_0x293129,unitIDs:_0x5c1624}=_0x52f3f0;_0x5c1624[_0x13a810(0x284)](_0x14a0e9=>{const _0xc6fb59=_0x13a810;var _0xf5287;const _0x321279=this['_unitOnClients'][_0xc6fb59(0x2b3)](_0x14a0e9);_0x321279&&(_0x321279[_0xc6fb59(0x24f)](_0x293129),(_0xf5287=this['_ensureSubject'](_0x14a0e9))==null||_0xf5287['next'](_0x321279[_0xc6fb59(0x2c3)]===0x0?_0x52dba4[_0xc6fb59(0x2fa)]:_0x52dba4[_0xc6fb59(0x2b0)]));}),this[_0x13a810(0x325)](_0x293129);}[_0x32c856(0x2cd)](_0x5e7689){const _0x53849d=_0x32c856;this[_0x53849d(0x2cf)](_0x5e7689[_0x53849d(0x2c9)]);}[_0x32c856(0x217)](_0x16d55e){const _0xb3fedb=_0x32c856;localStorage[_0xb3fedb(0x157)](It,JSON[_0xb3fedb(0x2b7)](_0x16d55e));}[_0x32c856(0x35b)](){const _0x5170c5=_0x32c856;this[_0x5170c5(0x1ed)]=window[_0x5170c5(0x1ca)](()=>{const _0x2a6f2a=_0x5170c5;this[_0x2a6f2a(0x217)]({'type':0x2,'memberID':this[_0x2a6f2a(0x26c)]});},St);}['_ensureSubject'](_0xd5b8c7){const _0x3b2d11=_0x32c856;return this[_0x3b2d11(0x142)][_0x3b2d11(0x23c)](_0xd5b8c7)||this[_0x3b2d11(0x142)][_0x3b2d11(0x191)](_0xd5b8c7,new _0x41d101(_0x52dba4[_0x3b2d11(0x2fa)])),this['_unitStatus']['get'](_0xd5b8c7);}}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};