@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3fd5ef=_0x3680;(function(_0x56e791,_0x4f42f7){const _0xb07d77=_0x3680,_0x433119=_0x56e791();while(!![]){try{const _0x3cfe0f=parseInt(_0xb07d77(0x32e))/0x1*(parseInt(_0xb07d77(0x258))/0x2)+-parseInt(_0xb07d77(0x145))/0x3+-parseInt(_0xb07d77(0x2c7))/0x4+parseInt(_0xb07d77(0x14f))/0x5*(-parseInt(_0xb07d77(0x1b0))/0x6)+parseInt(_0xb07d77(0x305))/0x7*(-parseInt(_0xb07d77(0x2ad))/0x8)+-parseInt(_0xb07d77(0x116))/0x9*(parseInt(_0xb07d77(0x275))/0xa)+parseInt(_0xb07d77(0x130))/0xb;if(_0x3cfe0f===_0x4f42f7)break;else _0x433119['push'](_0x433119['shift']());}catch(_0x3437bf){_0x433119['push'](_0x433119['shift']());}}}(_0x11c5,0xd2028));var Yt=Object['defineProperty'],Wt=(_0x2cf54a,_0x238243,_0x537bfb)=>_0x238243 in _0x2cf54a?Yt(_0x2cf54a,_0x238243,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x537bfb}):_0x2cf54a[_0x238243]=_0x537bfb,_=(_0x3bf5e3,_0x429641,_0x1c303e)=>Wt(_0x3bf5e3,typeof _0x429641!=_0x3fd5ef(0x2dd)?_0x429641+'':_0x429641,_0x1c303e);import{jsx as _0x483ff2,jsxs as _0x5153a5}from'react/jsx-runtime';import{CollaborationStatus as _0x1c9331,CollaborationSessionService as _0x4b2370,CollaborationController as _0x2d6c5e,DataLoaderService as _0x46419b,MemberService as _0x21ac54,SessionStatus as _0x2c6b0c,ILocalCacheService as _0x2d1fcf,CollaborationUIEventService as _0x18654a,CollaborationUIEventId as _0x334803,DocCollaborationEntity as _0x1609bb,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3b3566,getLocalCacheKey as _0x41c94c,LOCAL_CACHE_INTERVAL as _0x222c32,LOCAL_CACHE_INTERVAL_KEY as _0x3bfdc4,UniverCollaborationClientPlugin as _0x45f3f2,CollaborationSocketService as _0x108e7d,DEFAULT_WS_SESSION_TICKET_URL as _0xbe5095,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3dc8dc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x39e636,UnitStatus as _0x608ac7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xf97bb8,IUniverInstanceService as _0x2ad077,Inject as _0x5be279,Injector as _0x4442ad,Disposable as _0x4f00b7,createIdentifier as _0x3a372c,ILogService as _0x25626e,ICommandService as _0x52fbf7,Optional as _0x17d6fa,RxDisposable as _0x54976c,Workbook as _0x36a522,DOC_RANGE_TYPE as _0x4944de,debounce as _0x23fefb,Rectangle as _0x23054e,DisposableCollection as _0xe7f0b,toDisposable as _0x2e8f72,UniverInstanceType as _0x1d3b10,generateRandomId as _0xba23d8,COLORS as _0x3b0bff,ColorKit as _0x4ee345,ThemeService as _0x27077f,fromEventSubject as _0xe44c5,Tools as _0x2b2135,CommandType as _0x5419f7,IConfigService as _0x35b32a,CanceledError as _0x42ff66,isFormulaString as _0x535a76,isFormulaId as _0x415212,ILocalStorageService as _0x494af5,DependentOn as _0x4fbb73,Plugin as _0x28d2ed,merge as _0x3e7f1c,registerDependencies as _0x28bcb4,mergeOverrideWithDependencies as _0x4720d5,touchDependencies as _0x4626f1}from'@univerjs/core';import{useObservable as _0x3b6c37,useDependency as _0x3e5812,IUIPartsService as _0x1f3df8,BuiltInUIPart as _0x5e93fc,connectInjector as _0x27af71,IBeforeCloseService as _0x420154,IMessageService as _0x968e7c,INotificationService as _0x27058d}from'@univerjs/ui';import{BehaviorSubject as _0x35a309,switchMap as _0x4773fc,of as _0x35ec2a,takeUntil as _0x5e42cd,debounceTime as _0x2b68b5,Subject as _0x227c19,filter as _0x3935fb,merge as _0xa1f736,combineLatest as _0x41494d,fromEvent as _0x22a663,shareReplay as _0x1d7304,mapTo as _0x1d3877,distinctUntilChanged as _0x2ed732}from'rxjs';import{Tooltip as _0xa6af63,clsx as _0x3a332a,MessageType as _0x5db869}from'@univerjs/design';import{useRef as _0x438dba,createElement as _0x1df529,forwardRef as _0x1d8c0b,useCallback as _0x399c7b}from'react';import{IRemoteInstanceService as _0x45dee2}from'@univerjs/rpc';function _0x3680(_0x591f56,_0x54452d){_0x591f56=_0x591f56-0xf9;const _0x11c516=_0x11c5();let _0x36800d=_0x11c516[_0x591f56];return _0x36800d;}import{SetWorksheetActivateCommand as _0x46f4df,RefRangeService as _0x185a02,SetSelectionsOperation as _0x49a9fc,SheetsSelectionsService as _0x3b49f0,EffectRefRangId as _0x1b53c3,handleIRemoveRow as _0x309a40,handleIRemoveCol as _0x237126,handleMoveRange as _0x33eaa9,handleInsertRow as _0x1af6cf,handleInsertRangeMoveRight as _0x86c9c9,handleInsertRangeMoveDown as _0x4bffa8,handleInsertCol as _0xf25669,handleDeleteRangeMoveUp as _0x4292a9,handleDeleteRangeMoveLeft as _0x883b5a,runRefRangeMutations as _0x3b1589}from'@univerjs/sheets';import{Shape as _0x112b79,Rect as _0x4403cb,getColor as _0x444fcb,RegularPolygon as _0x138f58,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x723e00,Vector2 as _0x1244fe,SHEET_VIEWPORT_KEY as _0x2ecadb,IRenderManagerService as _0x19555c}from'@univerjs/engine-render';import{HTTPService as _0x35064f,ISocketService as _0x2737a6,WebSocketService as _0x1e7bcc}from'@univerjs/network';import{IDocClipboardService as _0x87c54e,NodePositionConvertToCursor as _0x5e5b38,NodePositionConvertToRectRange as _0x1fc4d2,TEXT_RANGE_LAYER_INDEX as _0x95aa8b,SetDocZoomRatioOperation as _0xf95019,DocIMEInputManagerService as _0x5c8d42,DocStateChangeManagerService as _0x580a14}from'@univerjs/docs-ui';import{IImageIoService as _0x1cec28}from'@univerjs/drawing';import{ITransformService as _0x4be4b1,CollaborationEvent as _0x3c97cb,isTransformMutationFailure as _0x3758a8,isTransformMutationsWithChangesetSuccess as _0x463bb2,RevisionService as _0x3c1008,ISnapshotServerService as _0x20bd4a}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x13360e,RichTextEditingMutation as _0x4d93a5,DocSelectionManagerService as _0x2d3f04,DocSkeletonManagerService as _0x168684}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xfaeb74,serializeRangeWithSheet as _0xb57860,FormulaExecuteStageType as _0x533e75,FormulaExecutedStateType as _0x16f1fc,SetFormulaCalculationStartMutation as _0x2753de,SetFormulaCalculationNotificationMutation as _0x58be3c}from'@univerjs/engine-formula';import{map as _0x3ecce4,filter as _0x254313,throttleTime as _0x6ae5f3,takeUntil as _0x51cdc5,switchMap as _0x5769c7}from'rxjs/operators';function _0x11c5(){const _0x14de88=['SUCCESS','loadUnit','some','getCurrent','univer-flex\x20univer-items-center','stack','Loading','getConfig','22384QNWeQH','InsertRangeMoveRightCommandId','_getSheetObject','LOGIN_TOKEN_PROCESSING_FAILED','setParam','_docSyncEditingCollabCursorService','fillRule','urlChange$','post','getCurrentRevOfUnit','_color','isArray','path','getAncestorScale','DATA_SOURCE_TOO_LARGE','_cursors','red.300','_transformPreviousActiveRange','registerComponent','flatMap','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_getFormulaLimitStatus','docStateChange$','NO_OTHER_CLIENTS_EDITING','ENTITLE_CAN_NOT_BUY_LOWER_OTP','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','_initCommandExecutedListener','labelPosition','_uploadLog','1564010SCdNKx','_currentUsage','USERS_LEAVE','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','send','_registerRenderDependencies','executionId','entries','UNIVER_SHEET','_configService','override','_toggleOffline','url(#$1','COMPLETION_FINISHED','_config','_anchorDot','_memberService','getActiveSheet','map','?taskId=','_getMergeRange','onPointerLeave$','MoveRangeCommandId','setUndoRedoMutationParamsCache','imageSourceType','_cursor','newValue','getOwnPropertyDescriptor','setConfig','_handleLeaveEvent','DeleteRangeMoveUpCommandId','get','getMemberID','_dataLoaderService','AWAITING','bottom','_hasFormulaInDirtyRanges','setAlpha','getTypeOfUnitAdded$','_refreshCollabCursors','defs','on-line-icon_clip0_910_349','_docTransformStateCacheService','editingUnit','collabStatus.conflict','setTimeout','getVpScrollXYInfoByPosToVp','roomMembers$','_sheetSkeletonManagerService','...','transformIMECache','_initDependencies','off-line-icon_clip0_910_343','onStarting','DeleteRangeMoveLeftCommandId','1313168csvtDb','INVITE_CODE_REQUIRED','selection','APPLY_DUPLICATED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','actions','_drawTextRange','_ensureSubject','INVALID_INVITE_CODE','ENTITLE_REPORT_LIMIT_EXCEED','shift','clipPath','unshift','mutations','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','_hideTimer','collaboration.offline-data-not-saved','getCellMatrix','OffLineIcon','_pollingInterval','_showGuardMessage','_updateCollabCursors','complete','engine','FromArray','APPLY_REJECT','4155240pmklyA','_roomMembers$','APPLY_REVISION_CONFILICT','getMergeData','SOCKET_FAILED_RETRY','_localStorageService','_name','_onRefRangeChange','debug','tag','Success','_lastResponseTimestamp','_initStatusListener','_transformService','UPDATE_CURSOR','disposeUnit','0\x200\x2016\x2016','none','popstate','asObservable','createInstance','forEach','symbol','_collaborationSessionService','_hover','YUUMI_ASYNCIO_CANCELLED','AUTHORIZE_CODE_ILLEGAL','_uiPartsService','onTransformChange$','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','_docClipboardService','PENDING','lineTo','_syncEditingCollabCursorService','collabCursorState$','contains','_eventUnsubscribe','M0\x200H16V16H0z','MUTATION','YUUMI_ALL_TABLES_IS_INVALID','_context','currentTheme$','_renderManagerService','cursorInfo','SNAPSHOT_INVALID_SNAPSHOT','[LogService\x20Error]:\x20','OFFLINE','_urlService','unit','session.connection-failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformByState','_drawRectRange','CURRENT_STATUS_CANNOT_OPERATE','moveTo','_handleJoinEvent','_id','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','code','Error','REDEMPTION_CODE_INACTIVE','7nhGWZc','_selfUnitIDs','onPointerEnter$','_initEntityListener','_injector','disableLocalCache','TOO_MANY_REQUESTS','replaceState','catch','_collaborationController','endColumn','backgroundColor','getFocusedUnit','_cursorShapes','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','doc.mutation.rich-text-editing','_removeClearOtherTimer','_docSkeletonManagerService','_startSheetCollabCursor','getUndoRedoMutationParamsCache','_document','_registerDependencies','removeEventListener','toString','_labelPosition','color','_docTransformSelectionsService','_scene','max','memberID','[Unhandled\x20Rejection]:\x20','ENTITLE_CHAT_LIMIT_EXCEED','_textBubble','reason','syncEditingCollabCursor','getValue','INVITE_CODE_ALREADY_BOUND','collab-client.tooltip.reconnect','children','column','getStateCache','8euSjhe','getTypeOfUnitDisposed$','_localeService','unload','_createSocketURL','_init','UNDEFINED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LOGIN_FAILED','getCurrentSelections','assign','_saveTaskMap','_cachedData','LICENSE_DISTRO_REJECTED','_removeCollabCursors','saveOfflineData','saveTaskMap','Warning','RemoveRowCommandId','history','_releaseCalculationLimit','save','onCommandExecuted','REDEMPTION_CODE_NOT_STARTED','disposeWithMe','registerRefRange','_getSessionTicket','collab-text-range-','_draw','_range','LICENSE_EXPORT_SIZE_EXCEEDED','message','height','_collabCursorState$','green.600','PY_RUNTIME_SCRIPT_ERROR','currentUsage','addHandlerCallback','_send','_backgroundColor','YUUMI_URL_COL_OUT_OF_RANGE','CONFLICT','MOBILE_HAS_BEEN_BOUND','assignAColorForMemberID','subscribe','transform','ALREADY_EXISTS','REDEMPTION_CODE_FULLY_REDEEMED','status$','body','SNAPSHOT_HAS_BEEN_REMOVED','string','_session','registerRenderModule','rgba(255,\x20255,\x20255,\x200.01)','ENTITLE_DUP_SUBSCRIPTION','OnLineIcon','InsertColCommandId','_memberID','startFormulaLimitUrl','setStateCache','searchParams','_colorAssignService','length','getSheetId','origin','restore','INVALID_ARGUMENT','APPLY_PERMISSION_DENIED','USER_IS_ANONYMOUS','_setupBeforeClosingHandler','_maxFormulaLimit','_handleEvent','9nIjzEa','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','REDEMPTION_USER_NOT_ELIGIBLE','transformSelections','[Window\x20Error]:\x20','runOnServer','trim','exhaustSavingTask','subscribeEvent','LICENSE_MAX_UNITS_EXCEEDED','getformulaLimitStatusUrl','ERROR_AGAIN','getOffsetConfig','/universer-api/license/formula/limit/status','permission.title','_getAnchorBounding','YUUMI_RATE_OVER_LIMIT','NOT_COLLAB','now','key','unhandledrejection','lineno','arc','translate(.97)','_scheduleClearOtherTimer','38896154qdcDUA','selections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_unitOnClients','div','url(#off-line-icon_clip0_910_343)','from','getParam','_doCreateSocket','includes','split','type','_transformUndoRedoStack','_messageService','filename','RECT','onLocalMutation','runId','REDEMPTION_INVALID_CODE','has','_setupSubUnitSync','814242abvxZr','focused$','collabStatus.synced','_startDocCollabCursor','/universer-api/frontend/logs','session.will-retry','collab-rect-range-','REDEMPTION_CODE_HAS_BEEN_CREATED','_heartbeatTimer','setInterval','5yUDRFy','stage','getUnitId','getCollabEntity$','_scheduleHeartbeat','then','roomMembers','_onCursorDelete','href','/universer-api/license/formula/limit/done','enableLocalCache','getRelativeToViewportCoord','EMAIL_HAS_BEEN_BOUND','0\x200\x2017\x2016','transformRemoteChangeset','setItem','_colorIndex','unitId','fillStyle','idSuffix','source','_initCommandInterceptor','ENSURE_SNAPSHOT_EXECUTION','add','_clearPolling','_online','defIds','SYNCED','measureText','YUUMI_SUBSCRIPTION_NOT_FOUND','onMouseMove','_applyCommand','pipe','formula.calculation.started','registerBeforeClose','data','random','collabStatus.offline','SUBMIT_CHANGESET_TIMEOUT','subunit','activeSheet$','isEditing','loadOfflineData','_entities','cursorInfo$','getDocRanges','colorChannel1','_taskIds','USER_NOT_FOUND','dirtyRanges','getRangePointData','INVITE_CODE_HAS_BEEN_UES','OTHER_CLIENTS_EDITING','addEventListener','executeCommand','endRow','Failed','_clearOtherTimers','_cursorInfo$','displayName','getItem','addClipboardHook','enableFrontendLog','TEXT','storage','set','getCellPositionByOffset','next','white','ENTITLE_COUPON_USED_UP','PERMISSION_DENIED','_docStateChangeManagerService','/run/','getActiveRange','getCurrentUnitForType','ticket','subUnitId','_setFormulaLimitStatus','find','UNIVER_DOC','RemoveColCommandId','stageInfo','currentColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','skeleton','_collaborationUIEventService','_univerInstanceService','NOT_FOUND','substring','params','row','_initEvent','event$','beginPath','1em','maxFormulaLimit','attrs','6807474LciQJv','textRanges','search','width','ONLINE','isActive','top','sessionStatus$','_initUnhandledRejectionListener','_commandService','_refRangeService','getRenderById','_handleHover','m1Prime','fill','collabStatus.fetchMiss','collabStatus.notCollab','clearInterval','round','_lastPointer','ENTITLE_INSUFFICIENT_QUOTA','_saveCache','parseInt','_onCursorUpdate','_imageIoService','_revisionService','hovered','drawWith','_notificationService','wsSessionTicketUrl','replace','OTHER_CLIENT_EDITING','YUUMI_UNABLE_LOAD_URL','_checkAndWaitForCalculationPermission','bind','jiqing.500','getCollabCursors$','getColorFromTheme','sessionTicket','totalFormulasToCalculate','_disabled','startColumn','ENTITLE_INVALID_COUPON_CODE','_updateSubUnitFromURLParams','on-line-icon','transformStateCache','unsubscribe','_handleHeartbeatEvent','ENTITLE_COUPON_EXPIRED','getSheetBySheetId','socket$','evenodd','YUUMI_AI_RUN_FAILED','_collabCursorController','makeDirty','_docTransformIMECacheService','_logService','_shapes','getViewport','collaboration.single-unit.warning','\x20at\x20','UNRECOGNIZED','_beforeCloseService','reconnect','_instanceService','Unknown\x20user','dispose','_initStatusComponent','_render','findNodePositionByCharIndex','ENTITLE_NEED_BILLING_ADDRESS','startRow','url(#on-line-icon_clip0_910_349)','_updateLocalCursor','toRgbString','_collabSessionService','EMAIL_VERIFY_CODE_MISMATCH','releaseFormulaLimitUrl','CHANGESET_REVISION_CONFILICT','beforeCommandExecuted','SOCKET_FAILED','mask','uni.network.url-service','dispose$','FETCH_MISS','unitID','getUniverSheetInstance','with','_entityInit$','_localCacheService','_toggleOnline','_assignedColors','off-line-icon','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_updateURLWithCurrentState','show','_monkeyPatchLogService','WECHAT_HAS_BEEN_BOUND','_drawAnchor','_checkCalculationAvailable','xlink:href','YUUMI_CONNECTOR_URL_NOT_FOUND','startsWith','stringify','eventID','closePath','updateOfflineData','ACTIVE_UNIT_EVENT_CHANNEL','name','collaboration-client-ui.config','UNAUTHENTICATED','_initWindowErrorListener','http://www.w3.org/2000/svg','push','requireSession','black','formula.calculation.unable','entityInit$','_initUserListener','getSkeleton','_themeService','_status$','size','AWAITING_WITH_PENDING','colno','sheetId','svg','_unitStatus','_getSaveTimeout','transformMutationsWithChangeset','error','deepClone','limitInfo','pushState','delete','InsertRowCommandId','fillText','ranges','getMember','hide','setShapeProps','values','_hovered','current','USER_NOT_INVITED_CODE','_getScale','transformMutation','init','_startCalculationLimit','_anchor','_docSkeleton','CONNECTOR_DATA_TOO_LARGE','m2Prime','addObject','location','redoState','text','INTERNAL_ERROR','undoState','START_CALCULATION'];_0x11c5=function(){return _0x14de88;};return _0x11c5();}import{SheetSkeletonManagerService as _0x103263,getCoordByCell as _0x3294e3,getSheetObject as _0x59fce6}from'@univerjs/sheets-ui';function Ge({ref:_0x86f595,..._0x43e13e}){const _0x54290f=_0x3fd5ef,{icon:_0x13eb18,id:_0x17fd6c,className:_0x28f08e,extend:_0x334875,..._0x3989f2}=_0x43e13e,_0x2d43bd=('univerjs-icon\x20univerjs-icon-'+_0x17fd6c+'\x20'+(_0x28f08e||''))[_0x54290f(0x11d)](),_0x3f5728=_0x438dba('_'+vi());return At(_0x13eb18,''+_0x17fd6c,{'defIds':_0x13eb18[_0x54290f(0x169)],'idSuffix':_0x3f5728[_0x54290f(0x23f)]},{'ref':_0x86f595,'className':_0x2d43bd,..._0x3989f2},_0x334875);}function At(_0x3296d0,_0x30c765,_0x326bee,_0x83d4d7,_0x17bb04){const _0x27b907=_0x3fd5ef;return _0x1df529(_0x3296d0[_0x27b907(0x2d0)],{'key':_0x30c765,...gi(_0x3296d0,_0x326bee,_0x17bb04),..._0x83d4d7},(Ei(_0x3296d0,_0x326bee)[_0x27b907(0x32b)]||[])[_0x27b907(0x288)]((_0x4cbc35,_0x2ac765)=>At(_0x4cbc35,_0x30c765+'-'+_0x3296d0[_0x27b907(0x2d0)]+'-'+_0x2ac765,_0x326bee,void 0x0,_0x17bb04)));}function gi(_0x2bd2ae,_0xfae266,_0xe6fd7b){const _0x2a9d45=_0x3fd5ef,_0x148adb={..._0x2bd2ae[_0x2a9d45(0x1af)]};_0xe6fd7b!=null&&_0xe6fd7b[_0x2a9d45(0x17d)]&&_0x148adb[_0x2a9d45(0x1be)]===_0x2a9d45(0x17d)&&(_0x148adb[_0x2a9d45(0x1be)]=_0xe6fd7b[_0x2a9d45(0x17d)]),_0x2bd2ae['tag']===_0x2a9d45(0x201)&&_0x148adb['id']&&(_0x148adb['id']=_0x148adb['id']+_0xfae266['idSuffix']),Object[_0x2a9d45(0x27d)](_0x148adb)[_0x2a9d45(0x2dc)](([_0x372771,_0x42ac39])=>{const _0x6986f=_0x2a9d45;_0x372771===_0x6986f(0x201)&&typeof _0x42ac39==_0x6986f(0x100)&&(_0x148adb[_0x372771]=_0x42ac39[_0x6986f(0x1ce)](/url\(#(.*)\)/,_0x6986f(0x282)+_0xfae266[_0x6986f(0x162)]+')'));});const {defIds:_0x4e56b6}=_0xfae266;return!_0x4e56b6||_0x4e56b6[_0x2a9d45(0x10c)]===0x0||(_0x2bd2ae[_0x2a9d45(0x2d0)]==='use'&&_0x148adb['xlink:href']&&(_0x148adb[_0x2a9d45(0x214)]=_0x148adb['xlink:href']+_0xfae266[_0x2a9d45(0x162)]),Object['entries'](_0x148adb)[_0x2a9d45(0x2dc)](([_0x3ef5d5,_0xb3fac7])=>{const _0x1283e9=_0x2a9d45;typeof _0xb3fac7==_0x1283e9(0x100)&&(_0x148adb[_0x3ef5d5]=_0xb3fac7[_0x1283e9(0x1ce)](/url\(#(.*)\)/,_0x1283e9(0x282)+_0xfae266[_0x1283e9(0x162)]+')'));})),_0x148adb;}function Ei(_0x4c14fa,_0x28fa47){const _0x5f3784=_0x3fd5ef;var _0x2c8e32;const {defIds:_0x325bfa}=_0x28fa47;return!_0x325bfa||_0x325bfa[_0x5f3784(0x10c)]===0x0?_0x4c14fa:_0x4c14fa['tag']===_0x5f3784(0x29e)&&((_0x2c8e32=_0x4c14fa['children'])!=null&&_0x2c8e32[_0x5f3784(0x10c)])?{..._0x4c14fa,'children':_0x4c14fa[_0x5f3784(0x32b)][_0x5f3784(0x288)](_0x42bc1c=>typeof _0x42bc1c['attrs']['id']=='string'&&_0x325bfa&&_0x325bfa[_0x5f3784(0x139)](_0x42bc1c[_0x5f3784(0x1af)]['id'])?{..._0x42bc1c,'attrs':{..._0x42bc1c[_0x5f3784(0x1af)],'id':_0x42bc1c['attrs']['id']+_0x28fa47['idSuffix']}}:_0x42bc1c)}:_0x4c14fa;}function vi(){const _0x27f713=_0x3fd5ef;return Math[_0x27f713(0x173)]()[_0x27f713(0x31c)](0x24)[_0x27f713(0x1a7)](0x2,0x8);}Ge[_0x3fd5ef(0x18a)]='UniverIcon';const pi={'tag':_0x3fd5ef(0x22e),'attrs':{'xmlns':_0x3fd5ef(0x220),'fill':_0x3fd5ef(0x2d8),'viewBox':_0x3fd5ef(0x2d7),'width':_0x3fd5ef(0x1ad),'height':_0x3fd5ef(0x1ad)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fd5ef(0x135)},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'stroke':_0x3fd5ef(0x1a1),'d':_0x3fd5ef(0x271),'strokeLinecap':_0x3fd5ef(0x1c2),'strokeLinejoin':_0x3fd5ef(0x1c2),'strokeWidth':1.2}}]},{'tag':_0x3fd5ef(0x29e),'attrs':{},'children':[{'tag':_0x3fd5ef(0x2b8),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3fd5ef(0x193),'d':_0x3fd5ef(0x2ed)}}]}]}],'defIds':[_0x3fd5ef(0x2aa)]},Pt=_0x1d8c0b(function(_0x484aff,_0x5c43b4){const _0x219ce4=_0x3fd5ef;return _0x1df529(Ge,Object[_0x219ce4(0x338)]({},_0x484aff,{'id':_0x219ce4(0x20c),'ref':_0x5c43b4,'icon':pi}));});Pt[_0x3fd5ef(0x18a)]=_0x3fd5ef(0x2bf);const Oi={'tag':_0x3fd5ef(0x22e),'attrs':{'xmlns':_0x3fd5ef(0x220),'fill':'none','viewBox':_0x3fd5ef(0x15c),'width':_0x3fd5ef(0x1ad),'height':_0x3fd5ef(0x1ad)},'children':[{'tag':'g','attrs':{'clipPath':_0x3fd5ef(0x1f8)},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'stroke':_0x3fd5ef(0x1a1),'d':_0x3fd5ef(0x2bb),'strokeLinecap':_0x3fd5ef(0x1c2),'strokeLinejoin':_0x3fd5ef(0x1c2),'strokeWidth':1.2}}]},{'tag':_0x3fd5ef(0x29e),'attrs':{},'children':[{'tag':_0x3fd5ef(0x2b8),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3fd5ef(0x264),'attrs':{'fill':_0x3fd5ef(0x193),'d':_0x3fd5ef(0x2ed),'transform':_0x3fd5ef(0x12e)}}]}]}],'defIds':[_0x3fd5ef(0x29f)]},wt=_0x1d8c0b(function(_0x580db5,_0x5b513b){const _0x99472e=_0x3fd5ef;return _0x1df529(Ge,Object[_0x99472e(0x338)]({},_0x580db5,{'id':_0x99472e(0x1dc),'ref':_0x5b513b,'icon':Oi}));});wt['displayName']=_0x3fd5ef(0x105);function Ti(_0x126a0a){const _0x5b6539=_0x3fd5ef;switch(_0x126a0a){case _0x1c9331[_0x5b6539(0x2f6)]:return _0x5b6539(0x174);case _0x1c9331[_0x5b6539(0x357)]:return _0x5b6539(0x2a2);case _0x1c9331[_0x5b6539(0x204)]:return _0x5b6539(0x1bf);case _0x1c9331[_0x5b6539(0x128)]:return _0x5b6539(0x1c0);case _0x1c9331[_0x5b6539(0x298)]:case _0x1c9331[_0x5b6539(0x22b)]:return'collabStatus.syncing';case _0x1c9331[_0x5b6539(0x16a)]:case _0x1c9331[_0x5b6539(0x2e7)]:return _0x5b6539(0x147);}}function Ci(_0x53eb24){const _0xfff541=_0x3fd5ef,{status$:_0x2ae42e}=_0x53eb24,_0x1c7161=_0x3b6c37(_0x2ae42e,_0x1c9331[_0xfff541(0x128)]),_0x247da8=_0x3e5812(_0xf97bb8),_0x6aff8a=_0x3e5812(_0x4b2370),_0x1c0b7a=_0x1c7161!==_0x1c9331['OFFLINE'],_0x4456f2=_0x247da8['t'](Ti(_0x1c7161)),_0x1e73a9=_0x1c0b7a?_0x483ff2(wt,{}):_0x483ff2(Pt,{}),_0x13dd8d=_0x399c7b(()=>{const _0x572045=_0xfff541;_0x1c0b7a||_0x6aff8a[_0x572045(0x1ef)]();},[_0x1c0b7a,_0x6aff8a]);function _0x3bd6a0(){const _0x222712=_0xfff541;return _0x5153a5(_0x222712(0x134),{'className':_0x222712(0x254),'onClick':_0x13dd8d,'children':[_0x483ff2(_0x222712(0x134),{'className':_0x3a332a(_0x222712(0x2e4),{'univer-text-green-500':_0x1c0b7a,'univer-text-red-500':!_0x1c0b7a}),'children':_0x1e73a9}),_0x483ff2(_0x222712(0x134),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4456f2})]});}return _0x1c0b7a?_0x3bd6a0():_0x483ff2(_0xa6af63,{'title':_0x247da8['t'](_0xfff541(0x32a)),'children':_0x3bd6a0()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x5b1278,_0x8c5b7d,_0x2c61f3,_0x599af7)=>{const _0x44b6c3=_0x3fd5ef;for(var _0x1d5c92=_0x599af7>0x1?void 0x0:_0x599af7?Ri(_0x8c5b7d,_0x2c61f3):_0x8c5b7d,_0x3712b4=_0x5b1278[_0x44b6c3(0x10c)]-0x1,_0x37a264;_0x3712b4>=0x0;_0x3712b4--)(_0x37a264=_0x5b1278[_0x3712b4])&&(_0x1d5c92=_0x37a264(_0x1d5c92)||_0x1d5c92);return _0x1d5c92;},se=(_0x1ce305,_0x114786)=>(_0x586456,_0x319c2e)=>_0x114786(_0x586456,_0x319c2e,_0x1ce305);let ae=class extends _0x4f00b7{constructor(_0x3b0a9f,_0x51201d,_0x18d5d6,_0x3fe0bd){const _0x45dd26=_0x3fd5ef;super(),_(this,_0x45dd26(0x229),new _0x35a309(_0x1c9331[_0x45dd26(0x128)])),(this['_univerInstanceService']=_0x3b0a9f,this[_0x45dd26(0x309)]=_0x51201d,this[_0x45dd26(0x30e)]=_0x18d5d6,this[_0x45dd26(0x2e2)]=_0x3fe0bd,this[_0x45dd26(0x1f3)](),this['_initStatusListener']());}[_0x3fd5ef(0x2d3)](){const _0x3a7838=_0x3fd5ef;this['disposeWithMe'](this[_0x3a7838(0x1a5)][_0x3a7838(0x146)][_0x3a7838(0x16f)](_0x4773fc(()=>{const _0x185998=_0x3a7838,_0x26eb73=this[_0x185998(0x1a5)][_0x185998(0x311)]();return _0x26eb73?this[_0x185998(0x30e)][_0x185998(0x152)](_0x26eb73[_0x185998(0x151)]()):_0x35ec2a(null);}),_0x4773fc(_0x540928=>_0x540928?_0x540928[_0x3a7838(0xfd)]:_0x35ec2a(_0x1c9331[_0x3a7838(0x128)])))[_0x3a7838(0xf9)](_0xee58c7=>{const _0x4133ec=_0x3a7838;this[_0x4133ec(0x229)][_0x4133ec(0x192)](_0xee58c7);}));}['_initStatusComponent'](){const _0x5d5ed2=_0x3fd5ef;this[_0x5d5ed2(0x346)](this['_uiPartsService'][_0x5d5ed2(0x26a)](_0x5e93fc['HEADER_MENU'],()=>_0x27af71(Ni({'status$':this[_0x5d5ed2(0x229)][_0x5d5ed2(0x2da)]()}),this[_0x5d5ed2(0x309)])));}};ae=Di([se(0x0,_0x2ad077),se(0x1,_0x5be279(_0x4442ad)),se(0x2,_0x5be279(_0x2d6c5e)),se(0x3,_0x1f3df8)],ae);function Ni(_0x35bc1d){const {status$:_0x378dcd}=_0x35bc1d;return function(){return _0x483ff2(Ci,{'status$':_0x378dcd});};}const yt=_0x3a372c(_0x3fd5ef(0x202));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x54948e,_0x5f4b17,_0x53dc25,_0x4223b3)=>{const _0x15ee98=_0x3fd5ef;for(var _0x4c6f60=_0x4223b3>0x1?void 0x0:_0x4223b3?bi(_0x5f4b17,_0x53dc25):_0x5f4b17,_0x13e45c=_0x54948e[_0x15ee98(0x10c)]-0x1,_0x233495;_0x13e45c>=0x0;_0x13e45c--)(_0x233495=_0x54948e[_0x13e45c])&&(_0x4c6f60=_0x233495(_0x4c6f60)||_0x4c6f60);return _0x4c6f60;},K=(_0x4dbba2,_0x5cad9b)=>(_0x318eb4,_0x274365)=>_0x5cad9b(_0x318eb4,_0x274365,_0x4dbba2);let ce=class extends _0x54976c{constructor(_0x2a8b1e,_0xf0042f,_0x1e0faf,_0x763352,_0x24686a){const _0x566a61=_0x3fd5ef;super(),this[_0x566a61(0x2f7)]=_0x2a8b1e,this['_logService']=_0xf0042f,this[_0x566a61(0x1b9)]=_0x1e0faf,this[_0x566a61(0x297)]=_0x763352,_0x24686a?_0x24686a==null||_0x24686a['whenReady']()[_0x566a61(0x154)](()=>this[_0x566a61(0x333)]()):(this[_0x566a61(0x1e8)][_0x566a61(0x2cf)]('[CollaborationDataLoaderController]',_0x566a61(0x132)),this[_0x566a61(0x333)]());}async[_0x3fd5ef(0x333)](){const _0x3273a8=_0x3fd5ef,_0x546db8=this[_0x3273a8(0x2f7)][_0x3273a8(0x137)](_0x3273a8(0x2f8)),_0x346d29=this[_0x3273a8(0x2f7)]['getParam'](_0x3273a8(0x13b)),_0x49091d=this[_0x3273a8(0x2f7)]['getParam'](_0x3273a8(0x176));if(!_0x546db8||!_0x346d29){this[_0x3273a8(0x1e8)]['debug']('[CollaborationDataLoaderController]',_0x3273a8(0x20d));return;}const _0x1fe2f5=await this[_0x3273a8(0x297)][_0x3273a8(0x251)](_0x546db8,Number(_0x346d29),_0x49091d);_0x1fe2f5&&_0x1fe2f5 instanceof _0x36a522&&this[_0x3273a8(0x144)](_0x1fe2f5);}async[_0x3fd5ef(0x144)](_0x41a9e4){const _0x56c2f4=_0x3fd5ef;await this[_0x56c2f4(0x1db)](_0x41a9e4),_0x41a9e4[_0x56c2f4(0x177)]['pipe'](_0x5e42cd(this[_0x56c2f4(0x203)]))[_0x56c2f4(0xf9)](_0x478495=>{const _0x5b4a86=_0x56c2f4;_0x478495&&this[_0x5b4a86(0x20e)](_0x478495);}),this[_0x56c2f4(0x2f7)]['urlChange$'][_0x56c2f4(0x16f)](_0x5e42cd(this[_0x56c2f4(0x203)]))[_0x56c2f4(0xf9)](()=>this['_updateSubUnitFromURLParams'](_0x41a9e4));}[_0x3fd5ef(0x20e)](_0x504a56,_0x38db87=!0x1){const _0x1633dc=_0x3fd5ef,_0x1f56c3=this['_urlService'][_0x1633dc(0x137)](_0x1633dc(0x176));_0x504a56[_0x1633dc(0x10d)]()!==_0x1f56c3&&this[_0x1633dc(0x2f7)][_0x1633dc(0x25c)](_0x1633dc(0x176),_0x504a56[_0x1633dc(0x10d)](),_0x38db87);}async[_0x3fd5ef(0x1db)](_0x44c8ab){const _0x3acc5c=_0x3fd5ef;var _0x485893;const _0xb4270e=this[_0x3acc5c(0x2f7)][_0x3acc5c(0x137)]('subunit');if(!_0xb4270e||!_0x44c8ab['getSheetBySheetId'](_0xb4270e)){const _0xe1dc07=_0x44c8ab['getUnhiddenWorksheets']()[0x0],_0x7d2a1b=_0x44c8ab[_0x3acc5c(0x1e1)](_0xe1dc07);if(!_0x7d2a1b)return;this['_updateURLWithCurrentState'](_0x7d2a1b,!0x0),await this[_0x3acc5c(0x1b9)][_0x3acc5c(0x185)](_0x46f4df['id'],{'unitId':_0x44c8ab[_0x3acc5c(0x151)](),'subUnitId':_0xe1dc07});return;}((_0x485893=_0x44c8ab[_0x3acc5c(0x287)]())==null?void 0x0:_0x485893[_0x3acc5c(0x10d)]())!==_0xb4270e&&await this[_0x3acc5c(0x1b9)][_0x3acc5c(0x185)](_0x46f4df['id'],{'unitId':_0x44c8ab['getUnitId'](),'subUnitId':_0xb4270e});}};ce=Li([K(0x0,yt),K(0x1,_0x25626e),K(0x2,_0x52fbf7),K(0x3,_0x5be279(_0x46419b)),K(0x4,_0x17d6fa(_0x45dee2))],ce);var Ui=Object[_0x3fd5ef(0x291)],Mi=(_0x58bd3d,_0x58cdb3,_0x269dc8,_0x43e18e)=>{const _0x3a5209=_0x3fd5ef;for(var _0x130044=_0x43e18e>0x1?void 0x0:_0x43e18e?Ui(_0x58cdb3,_0x269dc8):_0x58cdb3,_0x8d005c=_0x58bd3d[_0x3a5209(0x10c)]-0x1,_0x3fd5be;_0x8d005c>=0x0;_0x8d005c--)(_0x3fd5be=_0x58bd3d[_0x8d005c])&&(_0x130044=_0x3fd5be(_0x130044)||_0x130044);return _0x130044;},rt=(_0x68e218,_0x4f53df)=>(_0x77d139,_0x15c35b)=>_0x4f53df(_0x77d139,_0x15c35b,_0x68e218);let $e=class extends _0x54976c{constructor(_0x13d4e3,_0x1ab985){const _0x1ed2bc=_0x3fd5ef;super(),this[_0x1ed2bc(0x2e6)]=_0x13d4e3,this[_0x1ed2bc(0x1c8)]=_0x1ab985,this['_init']();}['_init'](){const _0x3dfc84=_0x3fd5ef,_0x1d80cc=this;this[_0x3dfc84(0x346)](this[_0x3dfc84(0x2e6)][_0x3dfc84(0x18c)]({'onBeforePasteImage':async _0x155949=>{const _0x18777c=_0x3dfc84,_0x1d581f=await _0x1d80cc[_0x18777c(0x1c8)]['saveImage'](_0x155949);return _0x1d581f?{'source':_0x1d581f[_0x18777c(0x163)],'imageSourceType':_0x1d581f[_0x18777c(0x28e)]}:null;}}));}};$e=Mi([rt(0x0,_0x87c54e),rt(0x1,_0x1cec28)],$e);const ot=['purple.300',_0x3fd5ef(0x1d3),_0x3fd5ef(0x350),_0x3fd5ef(0x268),'blue.400','yellow.400'];class Ke extends _0x4f00b7{constructor(){const _0x5b27cc=_0x3fd5ef;super(...arguments),_(this,_0x5b27cc(0x20b),new Map()),_(this,'_colorIndex',0x0);}[_0x3fd5ef(0x359)](_0x110801){const _0x8df7df=_0x3fd5ef;if(this[_0x8df7df(0x20b)][_0x8df7df(0x143)](_0x110801))return this['_assignedColors']['get'](_0x110801);const _0x3b8a35=ot[this[_0x8df7df(0x15f)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ot[_0x8df7df(0x10c)],this[_0x8df7df(0x20b)][_0x8df7df(0x190)](_0x110801,_0x3b8a35),_0x3b8a35;}}function $t(_0x18f357){let _0x3de91c='';for(const _0x45e21d of _0x18f357){const {startOffset:_0x5f4bca,endOffset:_0x121099,isActive:_0x2eb448,rangeType:_0x2755cd,segmentId:_0xd919c4,segmentPage:_0x564cc}=_0x45e21d;_0x3de91c['length']&&(_0x3de91c+=','),_0x3de91c+=_0x5f4bca+':'+_0x121099+':'+(_0x2eb448?'1':'0')+':'+_0x2755cd+':'+_0xd919c4+':'+_0x564cc;}return _0x3de91c;}function Ai(_0x5709fc){const _0x3d2830=_0x3fd5ef,_0x3d47bf=_0x5709fc[_0x3d2830(0x13a)](','),_0x58e0e8=[];for(const _0x1b7422 of _0x3d47bf){const [_0x3b6f6e,_0x21edd8,_0x360e7c,_0x186c47,_0x35a291,_0x46927c]=_0x1b7422[_0x3d2830(0x13a)](':');_0x58e0e8[_0x3d2830(0x221)]({'startOffset':Number(_0x3b6f6e),'endOffset':Number(_0x21edd8),'collapsed':_0x3b6f6e===_0x21edd8,'isActive':_0x360e7c==='1','rangeType':_0x186c47===_0x4944de[_0x3d2830(0x18e)]?_0x4944de[_0x3d2830(0x18e)]:_0x4944de[_0x3d2830(0x13f)],'segmentId':typeof _0x35a291==_0x3d2830(0x100)?String(_0x35a291):'','segmentPage':Number(_0x46927c!=null?_0x46927c:-0x1)});}return _0x58e0e8[_0x3d2830(0x252)](_0x3be3f7=>_0x3be3f7[_0x3d2830(0x1b5)])||(_0x58e0e8[0x0][_0x3d2830(0x1b5)]=!0x0),_0x58e0e8;}class ze extends _0x54976c{constructor(){const _0xb09b06=_0x3fd5ef;super(...arguments),_(this,_0xb09b06(0x34f),new _0x35a309(null)),_(this,'collabCursorState$',this[_0xb09b06(0x34f)][_0xb09b06(0x2da)]());}[_0x3fd5ef(0x327)](_0x475380){const _0x45ab52=_0x3fd5ef,{unitID:_0x59c384,memberID:_0x469c19,textRanges:_0x2b0b65}=_0x475380,_0x223021=$t(_0x2b0b65);if(_0x223021==='')return;const _0x2dd059={'unitID':_0x59c384,'memberID':_0x469c19,'selection':_0x223021};this['_collabCursorState$'][_0x45ab52(0x192)](_0x2dd059);}}var Pi=Object[_0x3fd5ef(0x291)],wi=(_0x55d91d,_0x55e47f,_0x5d7ce4,_0x5e0e0c)=>{const _0x518a29=_0x3fd5ef;for(var _0x144125=_0x5e0e0c>0x1?void 0x0:_0x5e0e0c?Pi(_0x55e47f,_0x5d7ce4):_0x55e47f,_0x306ce7=_0x55d91d[_0x518a29(0x10c)]-0x1,_0x577286;_0x306ce7>=0x0;_0x306ce7--)(_0x577286=_0x55d91d[_0x306ce7])&&(_0x144125=_0x577286(_0x144125)||_0x144125);return _0x144125;},A=(_0x24e6ee,_0x4e843d)=>(_0xed2bae,_0x136fc2)=>_0x4e843d(_0xed2bae,_0x136fc2,_0x24e6ee);const yi=0x12c,$i=0x64;let xe=class extends _0x54976c{constructor(_0x58c24f,_0x384927,_0x1dd750,_0x54e35b,_0x1bb591,_0x55f521,_0x243e48,_0x5d09db,_0x177cd0){const _0x12539b=_0x3fd5ef;super(),_(this,_0x12539b(0x168),!0x1),_(this,_0x12539b(0x333),!0x1),_(this,'_cursorInfo$',new _0x35a309(new Map())),_(this,_0x12539b(0x17b),this[_0x12539b(0x189)]['asObservable']()),_(this,_0x12539b(0x2c8),new _0x35a309([])),_(this,_0x12539b(0x2a5),this[_0x12539b(0x2c8)][_0x12539b(0x16f)](_0x2b68b5(yi))),_(this,_0x12539b(0x1f9),_0x23fefb(_0x81deab=>{const _0x21f9a1=_0x12539b,_0x5d3f89={'eventID':_0x3c97cb[_0x21f9a1(0x2d5)],'data':{'unitID':this[_0x21f9a1(0x205)],'memberID':this[_0x21f9a1(0x101)][_0x21f9a1(0x296)](),'selection':$t(_0x81deab)}};this['_session'][_0x21f9a1(0x27a)](_0x5d3f89,this[_0x21f9a1(0x205)]);},$i)),(this['unitID']=_0x58c24f,this['_session']=_0x384927,this['_injector']=_0x1dd750,this[_0x12539b(0x10b)]=_0x54e35b,this['_memberService']=_0x1bb591,this[_0x12539b(0x2e9)]=_0x55f521,this['_transformService']=_0x243e48,this[_0x12539b(0x1a5)]=_0x5d09db,this['_commandService']=_0x177cd0);}get['cursorInfo'](){const _0x3bf632=_0x3fd5ef;return this[_0x3bf632(0x189)][_0x3bf632(0x328)]();}get[_0x3fd5ef(0x155)](){const _0x2ae22f=_0x3fd5ef;return this[_0x2ae22f(0x2c8)][_0x2ae22f(0x328)]();}[_0x3fd5ef(0x1f2)](){const _0x35d242=_0x3fd5ef;super[_0x35d242(0x1f2)](),this[_0x35d242(0x189)][_0x35d242(0x192)](new Map()),this['_cursorInfo$'][_0x35d242(0x2c3)](),this['_roomMembers$'][_0x35d242(0x192)]([]),this['_roomMembers$'][_0x35d242(0x2c3)]();}[_0x3fd5ef(0x243)](){const _0x5b92c3=_0x3fd5ef;this[_0x5b92c3(0x333)]||(this['_init']=!0x0,this[_0x5b92c3(0x101)][_0x5b92c3(0x1b7)][_0x5b92c3(0x16f)](_0x5e42cd(this[_0x5b92c3(0x203)]))[_0x5b92c3(0xf9)](_0xc4ad02=>{const _0xf96dfb=_0x5b92c3;_0xc4ad02===_0x2c6b0c[_0xf96dfb(0x1b4)]?this[_0xf96dfb(0x20a)]():this[_0xf96dfb(0x281)]();}),this['_session'][_0x5b92c3(0x1ab)]['pipe'](_0x5e42cd(this[_0x5b92c3(0x203)]))['subscribe'](_0xf47dd4=>{const _0x534d86=_0x5b92c3,_0x555192=_0xf47dd4[_0x534d86(0x218)];_0x555192===_0x3c97cb['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xf47dd4),_0x555192===_0x3c97cb[_0x534d86(0x277)]&&this[_0x534d86(0x156)](_0xf47dd4);}),this[_0x5b92c3(0x346)](this[_0x5b92c3(0x1b9)][_0x5b92c3(0x344)](_0x19c546=>{const _0x43d47e=_0x5b92c3,_0x50033a=_0x19c546[_0x43d47e(0x1a8)];_0x50033a!=null&&this['_online']&&_0x19c546['id']===_0x13360e['id']&&_0x50033a['unitId']===this[_0x43d47e(0x205)]&&_0x50033a[_0x43d47e(0x178)]===!0x1&&_0x50033a['ranges'][_0x43d47e(0x10c)]>0x0&&this['_updateLocalCursor'](_0x50033a['ranges']);})),this[_0x5b92c3(0x2e9)][_0x5b92c3(0x2ea)]['pipe'](_0x5e42cd(this['dispose$']))['subscribe'](_0xf7b7c2=>{const _0x15796c=_0x5b92c3;if((_0xf7b7c2==null?void 0x0:_0xf7b7c2['unitID'])!==this['unitID'])return;const _0x22b2bc={'eventID':_0x3c97cb['UPDATE_CURSOR'],'data':_0xf7b7c2};this[_0x15796c(0x1c7)](_0x22b2bc);}),this[_0x5b92c3(0x346)](this[_0x5b92c3(0x1b9)][_0x5b92c3(0x344)](_0xddbe46=>{const _0x4f6e94=_0x5b92c3;if(_0xddbe46['params']==null)return;const _0x5778dc=_0xddbe46[_0x4f6e94(0x1a8)];if(_0xddbe46['id']!==_0x4d93a5['id']||_0x5778dc['unitId']!==this[_0x4f6e94(0x205)])return;const _0xa335bf={'id':_0x4f6e94(0x314),'params':_0x5778dc},_0x1a1679=this[_0x4f6e94(0x2f3)];for(const [_0x22a35a,_0x292f93]of _0x1a1679){const _0x115b2e={'id':_0x4f6e94(0x314),'params':{'unitId':this[_0x4f6e94(0x205)],'actions':null,'textRanges':_0x292f93[_0x4f6e94(0x239)]}},_0x53aa1f=this[_0x4f6e94(0x2d4)][_0x4f6e94(0x242)](_0xa335bf,_0x115b2e,!0x1);if(_0x3758a8(_0x53aa1f))throw _0x53aa1f['error'];_0x1a1679[_0x4f6e94(0x190)](_0x22a35a,{..._0x292f93,'ranges':_0x53aa1f[_0x4f6e94(0x248)]['params']['textRanges']});}queueMicrotask(()=>{const _0x444ee6=_0x4f6e94;this['_cursorInfo$'][_0x444ee6(0x192)](_0x1a1679);});})));}[_0x3fd5ef(0x1c7)](_0x2fafd2){const _0x3e4708=_0x3fd5ef;var _0x47e666,_0x550882;const {memberID:_0xf2b15c,selection:_0x5dcfc4}=_0x2fafd2[_0x3e4708(0x172)],_0x3fa161=Ai(_0x5dcfc4),_0x3bd98c=(_0x550882=(_0x47e666=this['_memberService']['getMember'](this[_0x3e4708(0x205)],_0xf2b15c))==null?void 0x0:_0x47e666[_0x3e4708(0x21c)])!=null?_0x550882:_0x3e4708(0x1f1),_0x4ef845={'color':this['_colorAssignService']['assignAColorForMemberID'](_0xf2b15c),'name':_0x3bd98c,'ranges':_0x3fa161},_0x2a48f8=this[_0x3e4708(0x2f3)];_0x2a48f8['set'](_0xf2b15c,_0x4ef845),this[_0x3e4708(0x189)][_0x3e4708(0x192)](_0x2a48f8);}[_0x3fd5ef(0x156)](_0x1b5a0f){const _0xbb72e0=_0x3fd5ef,{memberID:_0x4b3f9c}=_0x1b5a0f[_0xbb72e0(0x172)],_0xa91edc=this['cursorInfo'];_0xa91edc[_0xbb72e0(0x236)](_0x4b3f9c),this[_0xbb72e0(0x189)][_0xbb72e0(0x192)](_0xa91edc);}[_0x3fd5ef(0x20a)](){const _0x428084=_0x3fd5ef;var _0x372859;if(this[_0x428084(0x168)]=!0x0,((_0x372859=this[_0x428084(0x1a5)]['getFocusedUnit']())==null?void 0x0:_0x372859['getUnitId']())!==this[_0x428084(0x205)])return;const _0x5dcc34=this[_0x428084(0x309)][_0x428084(0x295)](_0x2d3f04)[_0x428084(0x17c)]();Array['isArray'](_0x5dcc34)&&_0x5dcc34[_0x428084(0x10c)]>0x0&&this[_0x428084(0x1f9)](_0x5dcc34);}['_toggleOffline'](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x5be279(_0x4442ad)),A(0x3,_0x5be279(Ke)),A(0x4,_0x5be279(_0x21ac54)),A(0x5,_0x5be279(ze)),A(0x6,_0x4be4b1),A(0x7,_0x2ad077),A(0x8,_0x52fbf7)],xe);var xi=Object[_0x3fd5ef(0x291)],Bi=(_0x5e815a,_0x16c29f,_0x54aa8d,_0x3f10c7)=>{const _0x540420=_0x3fd5ef;for(var _0x563144=_0x3f10c7>0x1?void 0x0:_0x3f10c7?xi(_0x16c29f,_0x54aa8d):_0x16c29f,_0x30d882=_0x5e815a[_0x540420(0x10c)]-0x1,_0x30dc2d;_0x30d882>=0x0;_0x30d882--)(_0x30dc2d=_0x5e815a[_0x30d882])&&(_0x563144=_0x30dc2d(_0x563144)||_0x563144);return _0x563144;},B=(_0x414595,_0xb53762)=>(_0x404a0e,_0x20812d)=>_0xb53762(_0x404a0e,_0x20812d,_0x414595);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x266263=[],_0x25ded7=!0x1;return _0xc460ef=>{const _0x1a3692=_0x3680;_0x266263[_0x1a3692(0x221)](_0xc460ef),_0x25ded7||(_0x25ded7=!0x0,setTimeout(()=>{const _0x156ac7=_0x1a3692;_0x266263[_0x156ac7(0x2dc)](_0x2be879=>_0x2be879()),_0x266263=[],_0x25ded7=!0x1;}));};};let Be=class extends _0x54976c{constructor(_0x2bcf2d,_0x217dd8,_0x48d814,_0x1d29a9,_0x417e31,_0x230093,_0x28262f,_0x1cf6d8){const _0x4fe897=_0x3fd5ef;super(),_(this,_0x4fe897(0x168),!0x1),_(this,_0x4fe897(0x333),!0x1),_(this,'_cursorInfo$',new _0x35a309(new Map())),_(this,_0x4fe897(0x17b),this[_0x4fe897(0x189)][_0x4fe897(0x2da)]()),_(this,_0x4fe897(0x2c8),new _0x35a309([])),_(this,_0x4fe897(0x2a5),this['_roomMembers$'][_0x4fe897(0x16f)](_0x2b68b5(Fi))),_(this,'_updateLocalCursor',_0x23fefb((_0x580b34,_0x51772f)=>{const _0x43eebd=_0x4fe897,_0x28eae4={'eventID':_0x3c97cb['UPDATE_CURSOR'],'data':{'unitID':this[_0x43eebd(0x205)],'memberID':this[_0x43eebd(0x101)]['getMemberID'](),'selection':_0xb57860(_0x580b34,_0x51772f['range'])}};this[_0x43eebd(0x101)][_0x43eebd(0x27a)](_0x28eae4,this[_0x43eebd(0x205)]);},ki)),(this['unitID']=_0x2bcf2d,this['_session']=_0x217dd8,this[_0x4fe897(0x309)]=_0x48d814,this['_colorAssignService']=_0x1d29a9,this[_0x4fe897(0x286)]=_0x417e31,this[_0x4fe897(0x1a5)]=_0x230093,this[_0x4fe897(0x1b9)]=_0x28262f,this[_0x4fe897(0x1ba)]=_0x1cf6d8);}get[_0x3fd5ef(0x2f3)](){const _0x1e0025=_0x3fd5ef;return this[_0x1e0025(0x189)][_0x1e0025(0x328)]();}get[_0x3fd5ef(0x155)](){const _0x16f315=_0x3fd5ef;return this['_roomMembers$'][_0x16f315(0x328)]();}['dispose'](){const _0x5624be=_0x3fd5ef;super[_0x5624be(0x1f2)](),this[_0x5624be(0x189)][_0x5624be(0x192)](new Map()),this[_0x5624be(0x189)][_0x5624be(0x2c3)](),this[_0x5624be(0x2c8)][_0x5624be(0x192)]([]),this[_0x5624be(0x2c8)][_0x5624be(0x2c3)]();}[_0x3fd5ef(0x243)](){const _0x2ac1df=_0x3fd5ef;this[_0x2ac1df(0x333)]||(this[_0x2ac1df(0x333)]=!0x0,this[_0x2ac1df(0x101)][_0x2ac1df(0x1b7)][_0x2ac1df(0x16f)](_0x5e42cd(this[_0x2ac1df(0x203)]))['subscribe'](_0x3ffe3e=>{const _0x4a5525=_0x2ac1df;_0x3ffe3e===_0x2c6b0c[_0x4a5525(0x1b4)]?this[_0x4a5525(0x20a)]():this[_0x4a5525(0x281)]();}),this[_0x2ac1df(0x101)][_0x2ac1df(0x1ab)][_0x2ac1df(0x16f)](_0x5e42cd(this[_0x2ac1df(0x203)]))['subscribe'](_0x28a82d=>{const _0x33625a=_0x2ac1df,_0x4f1b73=_0x28a82d[_0x33625a(0x218)];_0x4f1b73===_0x3c97cb['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x28a82d),_0x4f1b73===_0x3c97cb['USERS_LEAVE']&&this[_0x33625a(0x156)](_0x28a82d);}),this[_0x2ac1df(0x2ce)](),this[_0x2ac1df(0x346)](this[_0x2ac1df(0x1b9)][_0x2ac1df(0x344)](_0x20a3ae=>{const _0x1b464e=_0x2ac1df;if(this['_online']&&_0x20a3ae['id']===_0x49a9fc['id']&&_0x20a3ae['params'][_0x1b464e(0x160)]===this[_0x1b464e(0x205)]){const _0x1805d9=_0x20a3ae[_0x1b464e(0x1a8)];this[_0x1b464e(0x1f9)](_0x1805d9[_0x1b464e(0x19b)],_0x1805d9[_0x1b464e(0x131)][0x0]);}})));}['_onCursorUpdate'](_0x3c434b){const _0x2da5f7=_0x3fd5ef;var _0x43f158,_0x2cb6f6;const {memberID:_0x4626e3,selection:_0x3be5b9}=_0x3c434b[_0x2da5f7(0x172)],{sheetName:_0x275d9b,range:_0x52eb0c}=_0xfaeb74(_0x3be5b9),_0x41344f={'name':(_0x2cb6f6=(_0x43f158=this[_0x2da5f7(0x286)][_0x2da5f7(0x23a)](this['unitID'],_0x4626e3))==null?void 0x0:_0x43f158[_0x2da5f7(0x21c)])!=null?_0x2cb6f6:_0x2da5f7(0x1f1),'range':this[_0x2da5f7(0x28a)](_0x275d9b,_0x52eb0c),'sheetID':_0x275d9b,'color':this[_0x2da5f7(0x10b)][_0x2da5f7(0x359)](_0x4626e3),'selection':_0x3be5b9},_0x237e35=this[_0x2da5f7(0x2f3)];_0x237e35[_0x2da5f7(0x190)](_0x4626e3,_0x41344f),this[_0x2da5f7(0x189)][_0x2da5f7(0x192)](_0x237e35);}[_0x3fd5ef(0x156)](_0x114f77){const _0x4ae805=_0x3fd5ef,{memberID:_0x2af474}=_0x114f77[_0x4ae805(0x172)],_0x3b80da=this['cursorInfo'];_0x3b80da[_0x4ae805(0x236)](_0x2af474),this[_0x4ae805(0x189)]['next'](_0x3b80da);}[_0x3fd5ef(0x28a)](_0x402a98,_0x5307f4){const _0x461755=_0x3fd5ef;var _0x3be476,_0x5c96cb;const _0x3b975d=(_0x5c96cb=(_0x3be476=this['_univerInstanceService'][_0x461755(0x206)](this[_0x461755(0x205)]))==null?void 0x0:_0x3be476[_0x461755(0x1e1)](_0x402a98))==null?void 0x0:_0x5c96cb[_0x461755(0x2ca)]();return(_0x3b975d==null?void 0x0:_0x3b975d[_0x461755(0x19d)](_0x14afa1=>_0x23054e[_0x461755(0x2eb)](_0x14afa1,_0x5307f4)))||_0x5307f4;}[_0x3fd5ef(0x2ce)](){const _0x3c467d=_0x3fd5ef,_0x3517b5=new _0xe7f0b(),_0x469dfe=Hi(),_0x45e0a2=()=>{const _0x278744=_0x3680;_0x3517b5[_0x278744(0x1f2)]();const _0x3b88ba=(_0x559703,_0x511d2e,_0x53325c,_0x3db840)=>{const _0x4885bf=_0x278744;let _0x4d1d9d=[];switch(_0x559703['id']){case _0x1b53c3[_0x4885bf(0x2ac)]:{_0x4d1d9d=_0x883b5a(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x294)]:{_0x4d1d9d=_0x4292a9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x106)]:{_0x4d1d9d=_0xf25669(_0x559703,_0x3db840);break;}case _0x1b53c3['InsertRangeMoveDownCommandId']:{_0x4d1d9d=_0x4bffa8(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x259)]:{_0x4d1d9d=_0x86c9c9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x237)]:{_0x4d1d9d=_0x1af6cf(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x28c)]:{_0x4d1d9d=_0x33eaa9(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x19f)]:{_0x4d1d9d=_0x237126(_0x559703,_0x3db840);break;}case _0x1b53c3[_0x4885bf(0x340)]:{_0x4d1d9d=_0x309a40(_0x559703,_0x3db840);break;}}const _0x435e98=_0x3b1589(_0x4d1d9d,_0x3db840),_0x1ef527=this[_0x4885bf(0x2f3)][_0x4885bf(0x295)](_0x511d2e);if(_0x1ef527&&_0x435e98){const _0x57026e={..._0x1ef527,'range':_0x435e98};this[_0x4885bf(0x2f3)][_0x4885bf(0x190)](_0x511d2e,_0x57026e),_0x469dfe(()=>{const _0x155415=_0x4885bf,_0x4adcc7=this[_0x155415(0x1ba)]['registerRefRange'](_0x435e98,_0x222e7f=>(_0x4adcc7[_0x155415(0x1f2)](),_0x3b88ba(_0x222e7f,_0x511d2e,_0x53325c,_0x435e98)));_0x3517b5[_0x155415(0x166)](_0x4adcc7);});}return{'redos':[],'undos':[]};};this[_0x278744(0x2f3)][_0x278744(0x2dc)]((_0x33e9f1,_0x856093)=>{const _0x3f1dfb=_0x278744,{range:_0x5aa036,sheetID:_0x3634b3}=_0x33e9f1,_0x55b334=this[_0x3f1dfb(0x1ba)][_0x3f1dfb(0x347)](_0x5aa036,_0x522fb8=>(_0x55b334[_0x3f1dfb(0x1f2)](),_0x3b88ba(_0x522fb8,_0x856093,_0x3634b3,_0x5aa036)));_0x3517b5[_0x3f1dfb(0x166)](_0x55b334);});};this[_0x3c467d(0x346)](_0x2e8f72(this[_0x3c467d(0x189)][_0x3c467d(0xf9)](()=>{_0x45e0a2();})));}[_0x3fd5ef(0x20a)](){const _0x597960=_0x3fd5ef;var _0x502f4c,_0x1cab9e;if(this[_0x597960(0x168)]=!0x0,((_0x502f4c=this[_0x597960(0x1a5)]['getFocusedUnit']())==null?void 0x0:_0x502f4c[_0x597960(0x151)]())!==this[_0x597960(0x205)])return;const _0x3309df=(_0x1cab9e=this['_injector']['get'](_0x3b49f0)[_0x597960(0x337)]())==null?void 0x0:_0x1cab9e[0x0],_0x338f10=this[_0x597960(0x1a5)][_0x597960(0x199)](_0x1d3b10[_0x597960(0x27e)])[_0x597960(0x287)]();_0x3309df&&_0x338f10&&this[_0x597960(0x1f9)](_0x338f10[_0x597960(0x10d)](),_0x3309df);}[_0x3fd5ef(0x281)](){const _0x5d95fd=_0x3fd5ef;this[_0x5d95fd(0x168)]=!0x1;}};Be=Bi([B(0x2,_0x5be279(_0x4442ad)),B(0x3,_0x5be279(Ke)),B(0x4,_0x5be279(_0x21ac54)),B(0x5,_0x2ad077),B(0x6,_0x52fbf7),B(0x7,_0x5be279(_0x185a02))],Be);var Yi=Object[_0x3fd5ef(0x291)],Wi=(_0x57b96e,_0x4d7357,_0x2c2a40,_0x49842b)=>{for(var _0x327b6d=_0x49842b>0x1?void 0x0:_0x49842b?Yi(_0x4d7357,_0x2c2a40):_0x4d7357,_0x169c11=_0x57b96e['length']-0x1,_0x2835b3;_0x169c11>=0x0;_0x169c11--)(_0x2835b3=_0x57b96e[_0x169c11])&&(_0x327b6d=_0x2835b3(_0x327b6d)||_0x327b6d);return _0x327b6d;},Ce=(_0x4f0212,_0x5753)=>(_0x58e127,_0x494d1e)=>_0x5753(_0x58e127,_0x494d1e,_0x4f0212);let H=class extends _0x54976c{constructor(_0x1d385b,_0x1e7cb7,_0x32a01c){const _0xf4dfda=_0x3fd5ef;super(),_(this,_0xf4dfda(0x17a),new Map()),_(this,'_entityInit$',new _0x227c19()),(this[_0xf4dfda(0x1a5)]=_0x1d385b,this[_0xf4dfda(0x309)]=_0x1e7cb7,this[_0xf4dfda(0x1fb)]=_0x32a01c,this[_0xf4dfda(0x333)]());}[_0x3fd5ef(0x1f2)](){const _0x4dd907=_0x3fd5ef;super[_0x4dd907(0x1f2)](),this[_0x4dd907(0x208)][_0x4dd907(0x2c3)](),this['_entities']['forEach'](_0x1229ac=>_0x1229ac[_0x4dd907(0x1f2)]());}[_0x3fd5ef(0x1d4)](_0x1a6fa2){const _0x3bfb9d=_0x3fd5ef;return this[_0x3bfb9d(0x17a)][_0x3bfb9d(0x143)](_0x1a6fa2)?this['_entities']['get'](_0x1a6fa2)[_0x3bfb9d(0x17b)]:this[_0x3bfb9d(0x208)]['pipe'](_0x3935fb(_0x5701ab=>_0x5701ab[_0x3bfb9d(0x205)]===_0x1a6fa2),_0x4773fc(_0x1c941c=>_0x1c941c[_0x3bfb9d(0x17b)]));}[_0x3fd5ef(0x333)](){const _0x9e34e2=_0x3fd5ef;this['_univerInstanceService'][_0x9e34e2(0x29c)](_0x1d3b10[_0x9e34e2(0x27e)])[_0x9e34e2(0x16f)](_0x5e42cd(this['dispose$']))[_0x9e34e2(0xf9)](async _0x4a6997=>{const _0x3b05e5=_0x9e34e2,_0x572459=_0x4a6997[_0x3b05e5(0x151)](),_0x3acf08=await this[_0x3b05e5(0x317)](_0x572459);this[_0x3b05e5(0x208)]['next'](_0x3acf08),this[_0x3b05e5(0x17a)][_0x3b05e5(0x190)](_0x572459,_0x3acf08);}),this[_0x9e34e2(0x1a5)][_0x9e34e2(0x29c)](_0x1d3b10[_0x9e34e2(0x19e)])[_0x9e34e2(0x16f)](_0x5e42cd(this[_0x9e34e2(0x203)]))[_0x9e34e2(0x16f)](_0x3935fb(_0x4954cb=>!_0x4954cb['getUnitId']()[_0x9e34e2(0x216)]('__')))[_0x9e34e2(0xf9)](async _0x54ffb7=>{const _0x57e4f3=_0x9e34e2,_0x26112d=_0x54ffb7['getUnitId'](),_0x5cdf91=await this[_0x57e4f3(0x148)](_0x26112d);this[_0x57e4f3(0x208)][_0x57e4f3(0x192)](_0x5cdf91),this[_0x57e4f3(0x17a)]['set'](_0x26112d,_0x5cdf91);}),_0xa1f736(this[_0x9e34e2(0x1a5)][_0x9e34e2(0x32f)](_0x1d3b10[_0x9e34e2(0x19e)]),this[_0x9e34e2(0x1a5)]['getTypeOfUnitDisposed$'](_0x1d3b10['UNIVER_SHEET']))[_0x9e34e2(0x16f)](_0x5e42cd(this['dispose$']))['subscribe'](_0x2c7296=>{const _0x89f8b=_0x9e34e2,_0x393ff4=_0x2c7296['getUnitId'](),_0x55aae7=this['_entities']['get'](_0x393ff4);_0x55aae7&&(_0x55aae7['dispose'](),this[_0x89f8b(0x17a)][_0x89f8b(0x236)](_0x393ff4));});}async[_0x3fd5ef(0x317)](_0x304cbf){const _0x1286af=_0x3fd5ef,_0x29ab94=await this[_0x1286af(0x1fb)][_0x1286af(0x222)](_0x304cbf),_0x4258fe=this['_injector'][_0x1286af(0x2db)](Be,_0x304cbf,_0x29ab94);return _0x4258fe[_0x1286af(0x243)](),_0x4258fe;}async['_startDocCollabCursor'](_0x3f6baf){const _0x1e87ea=_0x3fd5ef,_0x2a7fb9=await this[_0x1e87ea(0x1fb)][_0x1e87ea(0x222)](_0x3f6baf),_0x251c7b=this['_injector'][_0x1e87ea(0x2db)](xe,_0x3f6baf,_0x2a7fb9);return _0x251c7b[_0x1e87ea(0x243)](),_0x251c7b;}};H=Wi([Ce(0x0,_0x2ad077),Ce(0x1,_0x5be279(_0x4442ad)),Ce(0x2,_0x5be279(_0x4b2370))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x12d7ff,_0x308f01){const _0x5773d2=_0x3fd5ef;let {radius:_0xf4e4ca,width:_0x431aae,height:_0x5c0c8b}=_0x308f01;_0xf4e4ca=_0xf4e4ca!=null?_0xf4e4ca:0x0,_0x431aae=_0x431aae!=null?_0x431aae:0x1e,_0x5c0c8b=_0x5c0c8b!=null?_0x5c0c8b:0x1e;let _0x4923b3=0x0,_0x2cc227=0x0,_0xea909=0x0;_0x4923b3=_0x2cc227=_0xea909=Math['min'](_0xf4e4ca,_0x431aae/0x2,_0x5c0c8b/0x2),_0x12d7ff[_0x5773d2(0x1ac)](),_0x12d7ff[_0x5773d2(0x2fe)](_0x4923b3,0x0),_0x12d7ff['lineTo'](_0x431aae-_0x2cc227,0x0),_0x12d7ff[_0x5773d2(0x12d)](_0x431aae-_0x2cc227,_0x2cc227,_0x2cc227,Math['PI']*0x3/0x2,0x0,!0x1),_0x12d7ff[_0x5773d2(0x2e8)](_0x431aae,_0x5c0c8b-_0xea909),_0x12d7ff[_0x5773d2(0x12d)](_0x431aae-_0xea909,_0x5c0c8b-_0xea909,_0xea909,0x0,Math['PI']/0x2,!0x1),_0x12d7ff['lineTo'](0x0,_0x5c0c8b),_0x12d7ff['lineTo'](0x0,_0x4923b3),_0x12d7ff['arc'](_0x4923b3,_0x4923b3,_0x4923b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x12d7ff[_0x5773d2(0x219)](),_0x308f01[_0x5773d2(0x1be)]&&(_0x12d7ff[_0x5773d2(0x343)](),_0x12d7ff[_0x5773d2(0x161)]=_0x308f01['fill'],_0x308f01[_0x5773d2(0x25e)]===_0x5773d2(0x1e3)?_0x12d7ff[_0x5773d2(0x1be)]('evenodd'):_0x12d7ff[_0x5773d2(0x1be)](),_0x12d7ff['restore']());}class ve extends _0x112b79{constructor(_0x515a39,_0x46977e){const _0x124241=_0x3fd5ef;super(_0x515a39,_0x46977e),_(this,_0x124241(0x31e)),_(this,'text'),(this['color']=_0x46977e==null?void 0x0:_0x46977e[_0x124241(0x31e)],this[_0x124241(0x24c)]=_0x46977e==null?void 0x0:_0x46977e[_0x124241(0x24c)]);}static[_0x3fd5ef(0x1cb)](_0x59d9af,_0x558ebf){const _0x444a1a=_0x3fd5ef,{text:_0x4e9907,color:_0x1ccbab}=_0x558ebf;_0x59d9af[_0x444a1a(0x343)](),_0x59d9af['font']=_0x444a1a(0x1a2);const _0x135457=_0x59d9af[_0x444a1a(0x16b)](_0x4e9907)[_0x444a1a(0x1b3)],_0x3ad710=Math['min'](_0x135457+0x2*Re,at);ji(_0x59d9af,{'height':Q,'radius':0x4,'width':_0x3ad710,'fill':_0x1ccbab}),_0x59d9af[_0x444a1a(0x161)]='#FFF';const _0x219ae1=Re,_0x4c2e6f=Q-Vi,_0x5e40bf=at-0x2*Re;if(_0x135457>_0x5e40bf){let _0x206c82='',_0x5382a8=0x0;for(const _0x2e7e6a of _0x4e9907){const _0x33bac6=_0x59d9af[_0x444a1a(0x16b)](_0x2e7e6a)['width'];if(_0x5382a8+_0x33bac6<=_0x5e40bf-_0x59d9af[_0x444a1a(0x16b)](_0x444a1a(0x2a7))['width'])_0x206c82+=_0x2e7e6a,_0x5382a8+=_0x33bac6;else{_0x206c82+='...';break;}}_0x59d9af[_0x444a1a(0x238)](_0x206c82,_0x219ae1,_0x4c2e6f);}else _0x59d9af[_0x444a1a(0x238)](_0x4e9907,_0x219ae1,_0x4c2e6f);_0x59d9af['restore']();}[_0x3fd5ef(0x34a)](_0x119130){const _0x39e613=_0x3fd5ef;ve[_0x39e613(0x1cb)](_0x119130,this);}}const De='collab-text-anchor-',Xi=_0x3fd5ef(0x349),Gi=_0x3fd5ef(0x14b),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3fd5ef(0x103);class ct{constructor(_0x49dc6b,_0x3bcd80,_0x54cdbe,_0x7003ba){const _0x4b38ad=_0x3fd5ef;_(this,_0x4b38ad(0x1e9),[]),_(this,_0x4b38ad(0x245),null),_(this,_0x4b38ad(0x325),null),_(this,_0x4b38ad(0x285),null),_(this,_0x4b38ad(0x2bc),null),_(this,_0x4b38ad(0x2ec),null),(this[_0x4b38ad(0x28f)]=_0x49dc6b,this[_0x4b38ad(0x320)]=_0x3bcd80,this[_0x4b38ad(0x246)]=_0x54cdbe,this[_0x4b38ad(0x319)]=_0x7003ba,this[_0x4b38ad(0x1f4)]());}set['_hover'](_0x37ce89){const _0x11bed3=_0x3fd5ef;_0x37ce89?(this[_0x11bed3(0x285)]&&this[_0x11bed3(0x285)][_0x11bed3(0x23b)](),this[_0x11bed3(0x325)]&&this[_0x11bed3(0x325)][_0x11bed3(0x20f)]()):(this[_0x11bed3(0x285)]&&this[_0x11bed3(0x285)][_0x11bed3(0x20f)](),this['_textBubble']&&this[_0x11bed3(0x325)][_0x11bed3(0x23b)]());}[_0x3fd5ef(0x1f2)](){const _0x5bd1b5=_0x3fd5ef;for(const _0x4b83af of this[_0x5bd1b5(0x1e9)])_0x4b83af[_0x5bd1b5(0x1f2)]();this[_0x5bd1b5(0x325)]&&this[_0x5bd1b5(0x325)][_0x5bd1b5(0x1f2)](),this[_0x5bd1b5(0x285)]&&this['_anchorDot'][_0x5bd1b5(0x1f2)](),this['_anchor']&&this[_0x5bd1b5(0x245)][_0x5bd1b5(0x1f2)](),this[_0x5bd1b5(0x2ec)]&&this[_0x5bd1b5(0x2ec)]();}[_0x3fd5ef(0x1f4)](){const _0x58f36d=_0x3fd5ef;var _0x2896af;const {_docSkeleton:_0x457c0f,_document:_0x434d7e}=this,{color:_0x2f92ee,name:_0x215493,ranges:_0x36f07c}=this[_0x58f36d(0x28f)],_0x3c5f52=_0x434d7e[_0x58f36d(0x123)](),{docsLeft:_0x37f149,docsTop:_0x18a6b9}=_0x3c5f52,_0xc4510d=new _0x5e5b38(_0x3c5f52,_0x457c0f);for(const {startOffset:_0x48ad60,endOffset:_0x1d949b,rangeType:_0x2fdc3e,segmentId:_0x1a72f5,segmentPage:_0x4fc6b9,collapsed:_0x1900eb,isActive:_0x5ed2af}of _0x36f07c){const _0x2bb1a6=_0x457c0f[_0x58f36d(0x1f5)](_0x48ad60,!0x0,_0x1a72f5,_0x4fc6b9);let _0x98a09f=_0x457c0f[_0x58f36d(0x1f5)](_0x1d949b,!0x0,_0x1a72f5,_0x4fc6b9);if(_0x98a09f==null&&(_0x98a09f=_0x457c0f['findNodePositionByCharIndex'](_0x1d949b-0x1,!0x1,_0x1a72f5,_0x4fc6b9)),_0x5ed2af){const {contentBoxPointGroup:_0x2fa14b}=_0xc4510d[_0x58f36d(0x181)](_0x98a09f,_0x98a09f);if(_0x2fa14b['length']===0x0)continue;this[_0x58f36d(0x212)](_0x2f92ee,_0x2fa14b,_0x37f149,_0x18a6b9,_0x215493),this[_0x58f36d(0x2ec)]=this[_0x58f36d(0x1bc)]();}if(_0x2bb1a6&&_0x98a09f){if(_0x2fdc3e===_0x4944de['RECT']){const _0x48ad0c=new _0x1fc4d2(_0x3c5f52,_0x457c0f),{pointGroup:_0x5aefaa}=(_0x2896af=_0x48ad0c[_0x58f36d(0x181)](_0x2bb1a6,_0x98a09f))!=null?_0x2896af:{};if(_0x5aefaa==null||_0x5aefaa['length']===0x0)continue;this[_0x58f36d(0x2fc)](_0x2f92ee,_0x5aefaa,_0x37f149,_0x18a6b9);}else{if(!_0x1900eb){const {borderBoxPointGroup:_0x35ef42}=_0xc4510d[_0x58f36d(0x181)](_0x2bb1a6,_0x98a09f);if(_0x35ef42['length']===0x0)continue;this[_0x58f36d(0x2b3)](_0x2f92ee,_0x35ef42,_0x37f149,_0x18a6b9);}}}}}[_0x3fd5ef(0x212)](_0x5af18b,_0x1da5fa,_0x407f48,_0x56f3ff,_0x6d4c5){const _0x29a1bf=_0x3fd5ef,_0x9afd87=this[_0x29a1bf(0x126)](_0x1da5fa),{left:_0x249b74,top:_0x2dced1,height:_0x589fb9}=_0x9afd87,_0x1bf6e0=this[_0x29a1bf(0x241)](),_0x2f63aa=zi/_0x1bf6e0,_0x366007=new _0x4403cb(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff,'height':_0x589fb9,'width':Ki,'fill':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'strokeWidth':_0x2f63aa,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x366007,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x366007,_0x95aa8b);const _0x416d28=new _0x4403cb(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'strokeWidth':0x0,'stroke':_0x5af18b||_0x444fcb(_0x3b0bff[_0x29a1bf(0x223)],0x0),'evented':!0x1});this['_anchorDot']=_0x416d28,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x416d28,_0x95aa8b);const _0x401ad8=new ve(De+_0xba23d8(z),{'left':_0x249b74+_0x407f48-_0x2f63aa,'top':_0x2dced1+_0x56f3ff-Q,'text':_0x6d4c5,'color':_0x5af18b});this[_0x29a1bf(0x325)]=_0x401ad8,this[_0x29a1bf(0x320)][_0x29a1bf(0x249)](_0x401ad8,_0x95aa8b),this[_0x29a1bf(0x2df)]=!0x1;}[_0x3fd5ef(0x1bc)](){const _0x52300d=_0x3fd5ef,_0x124c3d=this['_anchor'][_0x52300d(0x307)][_0x52300d(0x11f)](()=>{const _0xbe7f37=_0x52300d;this[_0xbe7f37(0x2df)]=!0x0;}),_0x1e9b07=this[_0x52300d(0x245)][_0x52300d(0x28b)][_0x52300d(0x11f)](()=>{const _0x4c43cb=_0x52300d;this[_0x4c43cb(0x2bc)]&&clearTimeout(this[_0x4c43cb(0x2bc)]),this[_0x4c43cb(0x2bc)]=setTimeout(()=>{const _0x20490e=_0x4c43cb;this[_0x20490e(0x2df)]=!0x1;},0x7d0);});return()=>{const _0x1148dd=_0x52300d;_0x124c3d[_0x1148dd(0x1de)](),_0x1e9b07[_0x1148dd(0x1de)]();};}['_drawTextRange'](_0x419b72,_0x344579,_0x11d5b4,_0x22cf7d){const _0x303e71=_0x3fd5ef,_0x4e552a=new _0x4ee345(_0x419b72)[_0x303e71(0x29b)](0.2)['toRgbString'](),_0x9fac1a=new _0x138f58(Xi+_0xba23d8(z),{'pointsGroup':_0x344579,'fill':_0x4e552a||_0x444fcb(_0x3b0bff[_0x303e71(0x223)],0.2),'left':_0x11d5b4,'top':_0x22cf7d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x303e71(0x221)](_0x9fac1a),this[_0x303e71(0x320)][_0x303e71(0x249)](_0x9fac1a,_0x95aa8b);}[_0x3fd5ef(0x2fc)](_0x2aa4ce,_0xe4e8ce,_0x444d4a,_0x5da4fb){const _0x196ab4=_0x3fd5ef,_0xc03481=new _0x4ee345(_0x2aa4ce)[_0x196ab4(0x29b)](0.2)[_0x196ab4(0x1fa)](),_0x3952de=new _0x138f58(Gi+_0xba23d8(z),{'pointsGroup':_0xe4e8ce,'fill':_0xc03481||_0x444fcb(_0x3b0bff[_0x196ab4(0x223)],0.2),'left':_0x444d4a,'top':_0x5da4fb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x196ab4(0x1e9)][_0x196ab4(0x221)](_0x3952de),this[_0x196ab4(0x320)][_0x196ab4(0x249)](_0x3952de,_0x95aa8b);}[_0x3fd5ef(0x126)](_0x2f2404){const _0x223c50=_0x2f2404[0x0],_0x10987a=_0x223c50[0x0],_0x30fa66=_0x223c50[0x2],{x:_0x268b4f,y:_0x2d0730}=_0x10987a,{x:_0x25bc4b,y:_0x3e878b}=_0x30fa66;return{'left':_0x268b4f,'top':_0x2d0730,'width':_0x25bc4b-_0x268b4f,'height':_0x3e878b-_0x2d0730};}[_0x3fd5ef(0x241)](){const _0x3b0d56=_0x3fd5ef,{scaleX:_0x53234b,scaleY:_0x359709}=this[_0x3b0d56(0x320)][_0x3b0d56(0x265)]();return Math[_0x3b0d56(0x321)](_0x53234b,_0x359709);}}var Zi=Object[_0x3fd5ef(0x291)],Qi=(_0x28367e,_0x1875c5,_0x4f5085,_0x7e178b)=>{const _0x3ec2e4=_0x3fd5ef;for(var _0x5b3443=_0x7e178b>0x1?void 0x0:_0x7e178b?Zi(_0x1875c5,_0x4f5085):_0x1875c5,_0x24b4a5=_0x28367e[_0x3ec2e4(0x10c)]-0x1,_0x4f4be9;_0x24b4a5>=0x0;_0x24b4a5--)(_0x4f4be9=_0x28367e[_0x24b4a5])&&(_0x5b3443=_0x4f4be9(_0x5b3443)||_0x5b3443);return _0x5b3443;},ie=(_0x17a992,_0x55e5fe)=>(_0x3c0e1c,_0xec51bf)=>_0x55e5fe(_0x3c0e1c,_0xec51bf,_0x17a992);let Fe=class extends _0x54976c{constructor(_0x58bdf4,_0x3e36c6,_0x90f470,_0x4ebe01,_0x4f1796){const _0x814174=_0x3fd5ef;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x814174(0x2f0)]=_0x58bdf4,this[_0x814174(0x316)]=_0x3e36c6,this[_0x814174(0x1e5)]=_0x90f470,this[_0x814174(0x1b9)]=_0x4ebe01,this[_0x814174(0x228)]=_0x4f1796,this[_0x814174(0x333)]());}['_init'](){const _0x375328=_0x3fd5ef,_0x5b762c=this[_0x375328(0x2f0)]['unitId'],_0x44eb38=this[_0x375328(0x316)];this[_0x375328(0x346)](_0x41494d([this[_0x375328(0x1e5)][_0x375328(0x1d4)](_0x5b762c),this[_0x375328(0x228)][_0x375328(0x2f1)]])[_0x375328(0x16f)](_0x3ecce4(([_0x4b2b85,_0xdf2b12])=>({'skeleton':_0x44eb38[_0x375328(0x227)](),'cursors':[..._0x4b2b85[_0x375328(0x23d)]()][_0x375328(0x26b)](_0x25ec59=>({..._0x25ec59,'color':this['_themeService'][_0x375328(0x1d5)](_0x25ec59[_0x375328(0x31e)])}))})))[_0x375328(0xf9)](_0x18c05a=>{const _0xb21d49=_0x375328;if(this[_0xb21d49(0x33c)](),_0x18c05a){const {skeleton:_0x5d8766,cursors:_0x4598d6}=_0x18c05a;this[_0xb21d49(0x2c2)](_0x5d8766,_0x4598d6);}})),this[_0x375328(0x118)](),this[_0x375328(0x272)]();}[_0x3fd5ef(0x2c2)](_0x148853,_0x34d654){const _0x1b2b81=_0x3fd5ef,{scene:_0x56fb5c,mainComponent:_0x202815}=this[_0x1b2b81(0x2f0)],_0x23c98e=_0x34d654['map'](_0x508ed2=>new ct(_0x508ed2,_0x56fb5c,_0x148853,_0x202815));this[_0x1b2b81(0x312)]=_0x23c98e,this[_0x1b2b81(0x267)]=_0x34d654;}[_0x3fd5ef(0x29d)](){const _0x287812=_0x3fd5ef;this[_0x287812(0x33c)]();const {scene:_0x1a399f,mainComponent:_0x5b4402}=this[_0x287812(0x2f0)],_0x201859=this[_0x287812(0x316)][_0x287812(0x227)](),_0x13d62f=this[_0x287812(0x267)][_0x287812(0x288)](_0x27192f=>new ct(_0x27192f,_0x1a399f,_0x201859,_0x5b4402));this['_cursorShapes']=_0x13d62f;}[_0x3fd5ef(0x33c)](){const _0x2c85e1=_0x3fd5ef;this[_0x2c85e1(0x312)][_0x2c85e1(0x2dc)](_0x84f7b8=>_0x84f7b8['dispose']()),this[_0x2c85e1(0x312)]=[];}[_0x3fd5ef(0x272)](){const _0x475761=_0x3fd5ef,_0x50c962=[_0xf95019['id']];this[_0x475761(0x346)](this[_0x475761(0x1b9)][_0x475761(0x344)](_0x2c31f6=>{const _0x20119d=_0x475761;_0x50c962[_0x20119d(0x139)](_0x2c31f6['id'])&&_0x2c31f6['params'][_0x20119d(0x160)]===this[_0x20119d(0x2f0)][_0x20119d(0x160)]&&this[_0x20119d(0x29d)]();}));}['_initResize'](){const _0x4ae668=_0x3fd5ef;this[_0x4ae668(0x346)](_0xe44c5(this['_context'][_0x4ae668(0x2c4)][_0x4ae668(0x2e3)])[_0x4ae668(0x16f)](_0x254313(_0x332b28=>_0x332b28['type']===_0x723e00['resize']),_0x6ae5f3(0x10))['subscribe'](()=>{const _0x4082b9=_0x4ae668;this[_0x4082b9(0x29d)]();}));}};Fe=Qi([ie(0x1,_0x5be279(_0x168684)),ie(0x2,_0x5be279(H)),ie(0x3,_0x52fbf7),ie(0x4,_0x5be279(_0x27077f))],Fe);const qi=0x1,en=1.5;class tn extends _0x112b79{constructor(_0x4667a4,_0x4e5c29){const _0x375452=_0x3fd5ef;super(_0x4667a4,_0x4e5c29),_(this,'_color'),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition',_0x375452(0x1b6)),_(this,_0x375452(0x355)),(_0x4e5c29&&this['setShapeProps'](_0x4e5c29),this[_0x375452(0x307)][_0x375452(0x11f)](()=>this[_0x375452(0x23c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x375452(0x11f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3fd5ef(0x23c)](_0x3ad60e){const _0x16fabf=_0x3fd5ef;var _0x4cc861,_0x2978c5,_0x502576,_0x2ff8d8,_0x430721,_0x477f99;this[_0x16fabf(0x262)]=(_0x4cc861=_0x3ad60e['color'])!=null?_0x4cc861:this[_0x16fabf(0x262)],this[_0x16fabf(0x23e)]=(_0x2978c5=_0x3ad60e[_0x16fabf(0x1ca)])!=null?_0x2978c5:this[_0x16fabf(0x23e)],this['_range']=(_0x502576=_0x3ad60e['range'])!=null?_0x502576:this[_0x16fabf(0x34b)],this['_name']=(_0x2ff8d8=_0x3ad60e['name'])!=null?_0x2ff8d8:this[_0x16fabf(0x2cd)],this[_0x16fabf(0x31d)]=(_0x430721=_0x3ad60e[_0x16fabf(0x273)])!=null?_0x430721:this[_0x16fabf(0x31d)],this[_0x16fabf(0x355)]=(_0x477f99=_0x3ad60e[_0x16fabf(0x310)])!=null?_0x477f99:this[_0x16fabf(0x355)],this[_0x16fabf(0x2fb)]({'width':_0x3ad60e[_0x16fabf(0x1b3)],'height':_0x3ad60e[_0x16fabf(0x34e)]});}[_0x3fd5ef(0x16d)](_0x5e4f9c){const _0x326b18=_0x3fd5ef,{row:_0x3efb93,column:_0x5f2954}=_0x5e4f9c;if(_0x3efb93>=this['_range'][_0x326b18(0x1f7)]&&_0x3efb93<=this['_range']['endRow']&&_0x5f2954>=this[_0x326b18(0x34b)][_0x326b18(0x1d9)]&&_0x5f2954<=this[_0x326b18(0x34b)][_0x326b18(0x30f)]){this[_0x326b18(0x23c)]({'hovered':!0x0});return;}this[_0x326b18(0x23c)]({'hovered':!0x1});}['triggerDblclick'](_0xf96ed3){return!0x1;}[_0x3fd5ef(0x34a)](_0x49b5f5){const _0x19a090=_0x3fd5ef;_0x4403cb[_0x19a090(0x1cb)](_0x49b5f5,{'width':this[_0x19a090(0x1b3)],'height':this[_0x19a090(0x34e)],'strokeWidth':en,'stroke':this[_0x19a090(0x262)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x49b5f5[_0x19a090(0x343)](),_0x49b5f5[_0x19a090(0xfa)](0x1,0x0,0x0,0x1,this[_0x19a090(0x1b3)],this[_0x19a090(0x31d)]===_0x19a090(0x299)?0x0:-Q),ve['drawWith'](_0x49b5f5,{'text':this[_0x19a090(0x2cd)],'color':this['_color']}),_0x49b5f5[_0x19a090(0x10f)]());}}var sn=Object[_0x3fd5ef(0x291)],nn=(_0x4c982b,_0x153115,_0xf2aab1,_0x26660e)=>{for(var _0x5e878d=_0x26660e>0x1?void 0x0:_0x26660e?sn(_0x153115,_0xf2aab1):_0x153115,_0x4ec001=_0x4c982b['length']-0x1,_0x146e0a;_0x4ec001>=0x0;_0x4ec001--)(_0x146e0a=_0x4c982b[_0x4ec001])&&(_0x5e878d=_0x146e0a(_0x5e878d)||_0x5e878d);return _0x5e878d;},be=(_0x28f49e,_0x1f4982)=>(_0x124323,_0x54f19b)=>_0x1f4982(_0x124323,_0x54f19b,_0x28f49e);const rn=0x1389;let ke=class extends _0x54976c{constructor(_0x31bbb3,_0x57d414,_0x4970d6,_0x5d29a4){const _0x13edf6=_0x3fd5ef;super(),_(this,_0x13edf6(0x267),new Set()),_(this,_0x13edf6(0x1c3),null),(this[_0x13edf6(0x2f0)]=_0x31bbb3,this['_sheetSkeletonManagerService']=_0x57d414,this[_0x13edf6(0x1e5)]=_0x4970d6,this[_0x13edf6(0x228)]=_0x5d29a4,this[_0x13edf6(0x333)]());}[_0x3fd5ef(0x333)](){const _0x3fa556=_0x3fd5ef;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3fa556(0x16f)](_0x51cdc5(this[_0x3fa556(0x203)]),_0x5769c7(_0x489c9d=>{const _0x3c9061=_0x3fa556;if(_0x489c9d){const _0x49e137=_0x489c9d[_0x3c9061(0x22d)];return _0x41494d(this[_0x3c9061(0x1e5)][_0x3c9061(0x1d4)](this[_0x3c9061(0x2f0)]['unitId']),this[_0x3c9061(0x228)]['currentTheme$'])[_0x3c9061(0x16f)](_0x3ecce4(([_0x2ab1fa,_0x2da5c4])=>{const _0x1f2781=_0x3c9061,_0x302f64=new Map();return _0x2ab1fa[_0x1f2781(0x2dc)]((_0x9eb466,_0x23f34d)=>{const _0xa8752=_0x1f2781;if(_0x9eb466['sheetID']===_0x49e137){const _0x13f514={..._0x9eb466};_0x13f514['color']=this[_0xa8752(0x228)][_0xa8752(0x1d5)](_0x9eb466[_0xa8752(0x31e)]),_0x302f64['set'](_0x23f34d,_0x13f514);}}),{'skeleton':_0x489c9d,'cursors':_0x302f64};}));}return _0x35ec2a({'skeleton':null,'cursors':new Map()});}))[_0x3fa556(0xf9)](({skeleton:_0x362623,cursors:_0x58f6ce})=>{const _0x30d44c=_0x3fa556;this[_0x30d44c(0x33c)](),_0x362623&&this[_0x30d44c(0x2c2)](_0x362623,_0x58f6ce);}),this[_0x3fa556(0x2a6)]['currentSkeleton$'][_0x3fa556(0xf9)](_0x8ff5ad=>{const _0x4e3440=_0x3fa556;if(_0x8ff5ad==null)return;const {skeleton:_0x3bd776}=_0x8ff5ad,{scene:_0x387a30}=this[_0x4e3440(0x2f0)];_0x387a30['onPointerMove$'][_0x4e3440(0x11f)](_0x23fefb(_0x87826d=>{const _0x6a33d5=_0x4e3440;var _0x519f16,_0x4b82ce;const {offsetX:_0x275c1d,offsetY:_0x11ccba}=_0x87826d,{x:_0x50b1f8,y:_0x133f2c}=_0x387a30[_0x6a33d5(0x15a)](_0x1244fe[_0x6a33d5(0x2c5)]([_0x275c1d,_0x11ccba])),{scaleX:_0x2ed3b4,scaleY:_0x923999}=_0x387a30['getAncestorScale'](),_0x4c4df1=_0x387a30[_0x6a33d5(0x1ea)](_0x2ecadb['VIEW_MAIN']),_0x4b788f=_0x387a30[_0x6a33d5(0x2a4)](_0x1244fe[_0x6a33d5(0x2c5)]([_0x50b1f8,_0x133f2c]),_0x4c4df1),_0x4abd13=_0x3bd776[_0x6a33d5(0x191)](_0x275c1d,_0x11ccba,_0x2ed3b4,_0x923999,_0x4b788f);((_0x519f16=this[_0x6a33d5(0x1c3)])==null?void 0x0:_0x519f16[_0x6a33d5(0x32c)])===_0x4abd13[_0x6a33d5(0x32c)]&&((_0x4b82ce=this['_lastPointer'])==null?void 0x0:_0x4b82ce['row'])===_0x4abd13[_0x6a33d5(0x1a9)]||this[_0x6a33d5(0x267)][_0x6a33d5(0x2dc)](_0x2c2742=>{const _0x5aea4e=_0x6a33d5;_0x2c2742[_0x5aea4e(0x16d)](_0x4abd13);});},0x64));});}[_0x3fd5ef(0x2c2)](_0x5025a8,_0x4e5435){const _0x545094=_0x3fd5ef;var _0x4014da;const _0x1196fd=(_0x4014da=this[_0x545094(0x2a6)][_0x545094(0x253)]())==null?void 0x0:_0x4014da[_0x545094(0x1a3)];if(!_0x1196fd)return;const _0x4f166c=this['_getSheetObject']();if(!_0x4f166c)return;this[_0x545094(0x267)][_0x545094(0x2dc)](_0x57d210=>{const _0x3de79a=_0x545094;_0x57d210[_0x3de79a(0x1e6)]();});const {scene:_0xee2e25}=_0x4f166c,_0x45fd4c=on(Array[_0x545094(0x136)](_0x4e5435['values']()))[_0x545094(0x288)](_0x2d9a1e=>{const _0x4641b6=_0x545094,{color:_0x28aebc,range:_0x431536,name:_0x4190c3,selection:_0xbf3500,sheetID:_0x452483}=_0x2d9a1e,{startColumn:_0x58b31e,startRow:_0x3856c2,endColumn:_0x68cff2,endRow:_0x1e2377}=_0x431536,_0x545428=_0x3294e3(_0x3856c2,_0x58b31e,_0xee2e25,_0x1196fd),_0x2b89a9=_0x3294e3(_0x1e2377,_0x68cff2,_0xee2e25,_0x1196fd),{columnHeaderHeightAndMarginTop:_0x121f6c}=_0x1196fd,{startX:_0x1174cc,startY:_0x3773f1}=_0x545428,{endX:_0x3209e5,endY:_0x306a55}=_0x2b89a9,_0x1a267e=_0x3209e5-_0x1174cc,_0x16da17=_0x306a55-_0x3773f1,_0x22d61d={'labelPosition':_0x3773f1-_0x121f6c>=Q?_0x4641b6(0x1b6):_0x4641b6(0x299),'sheetID':_0x452483,'range':_0x431536,'color':_0x28aebc,'name':_0x4190c3,'selection':_0xbf3500,'left':_0x1174cc,'top':_0x3773f1,'width':_0x1a267e,'height':_0x16da17,'evented':!0x1,'zIndex':rn};return new tn(_0x4190c3,_0x22d61d);});_0xee2e25['addObjects'](_0x45fd4c,qi),this[_0x545094(0x267)]=new Set(_0x45fd4c);}[_0x3fd5ef(0x33c)](){const _0x71048c=_0x3fd5ef;var _0x2b0f4c;(_0x2b0f4c=this[_0x71048c(0x267)])==null||_0x2b0f4c[_0x71048c(0x2dc)](_0x519d0e=>_0x519d0e[_0x71048c(0x1f2)]());}[_0x3fd5ef(0x25a)](){const _0x4b7081=_0x3fd5ef;return _0x59fce6(this[_0x4b7081(0x2f0)]['unit'],this[_0x4b7081(0x2f0)]);}};ke=nn([be(0x1,_0x5be279(_0x103263)),be(0x2,_0x5be279(H)),be(0x3,_0x5be279(_0x27077f))],ke);function on(_0x1d4bfe){const _0x1ddd05=_0x3fd5ef,_0x37b73b=new Map();return _0x1d4bfe['forEach'](_0x4bb2aa=>{const _0x270d5a=_0x3680;if(_0x37b73b['has'](_0x4bb2aa[_0x270d5a(0x2af)])){const _0xfbf8ba=_0x37b73b[_0x270d5a(0x295)](_0x4bb2aa['selection']);_0xfbf8ba[_0x270d5a(0x21c)]+=',\x20'+_0x4bb2aa[_0x270d5a(0x21c)];}else _0x37b73b[_0x270d5a(0x190)](_0x4bb2aa[_0x270d5a(0x2af)],_0x4bb2aa);}),Array[_0x1ddd05(0x136)](_0x37b73b['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x403cc3,_0x202d4d,_0x541a43,_0x3d2bdd)=>{const _0x5c735d=_0x3fd5ef;for(var _0x1485d3=_0x3d2bdd>0x1?void 0x0:_0x3d2bdd?an(_0x202d4d,_0x541a43):_0x202d4d,_0x43ed89=_0x403cc3[_0x5c735d(0x10c)]-0x1,_0x177ca6;_0x43ed89>=0x0;_0x43ed89--)(_0x177ca6=_0x403cc3[_0x43ed89])&&(_0x1485d3=_0x177ca6(_0x1485d3)||_0x1485d3);return _0x1485d3;},F=(_0x11ac83,_0x5bbaff)=>(_0x462a2d,_0x4dc489)=>_0x5bbaff(_0x462a2d,_0x4dc489,_0x11ac83);let _e=class extends _0x4f00b7{constructor(_0x51ff37,_0x46e624,_0x50755b,_0x4fdd76,_0x55c44a,_0x28b20b){const _0x3b671a=_0x3fd5ef;super(),this['_beforeCloseService']=_0x51ff37,this[_0x3b671a(0x209)]=_0x46e624,this[_0x3b671a(0x1a4)]=_0x50755b,this[_0x3b671a(0x13d)]=_0x4fdd76,this[_0x3b671a(0x1cc)]=_0x55c44a,this[_0x3b671a(0x330)]=_0x28b20b,this['_setupBeforeClosingHandler'](),this[_0x3b671a(0x1aa)]();}[_0x3fd5ef(0x113)](){const _0x3fa6a0=_0x3fd5ef;this['disposeWithMe'](this[_0x3fa6a0(0x1ee)][_0x3fa6a0(0x171)](()=>{const _0x49073d=_0x3fa6a0;if(this[_0x49073d(0x209)][_0x49073d(0x33e)][_0x49073d(0x22a)])return this[_0x49073d(0x330)]['t'](_0x49073d(0x2bd));}));}[_0x3fd5ef(0x1aa)](){const _0xaf0d32=_0x3fd5ef;this[_0xaf0d32(0x346)](this[_0xaf0d32(0x1a4)][_0xaf0d32(0x1ab)][_0xaf0d32(0xf9)](_0x51e94d=>{const _0x377254=_0xaf0d32;_0x51e94d['id']===_0x334803[_0x377254(0x1cf)]&&this[_0x377254(0x13d)][_0x377254(0x20f)]({'type':_0x5db869[_0x377254(0x33f)],'content':this[_0x377254(0x330)]['t'](_0x377254(0x1eb))}),_0x51e94d['id']===_0x334803['CLOSE_ROOM']&&this[_0x377254(0x13d)]['show']({'type':_0x5db869['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x51e94d['id']===_0x334803[_0x377254(0x195)]&&this[_0x377254(0x1cc)][_0x377254(0x20f)]({'title':this[_0x377254(0x330)]['t'](_0x377254(0x125)),'content':this[_0x377254(0x330)]['t']('permission.content'),'type':_0x377254(0x232),'duration':0x0}),_0x51e94d['id']===_0x334803['CONFLICT']&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869[_0x377254(0x303)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x51e94d[_0x377254(0x172)]+')'}),_0x51e94d['id']===_0x334803['JOIN_ROOM_FAILED']&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869['Warning'],'content':this[_0x377254(0x330)]['t'](_0x51e94d['data']||'')}),_0x51e94d['id']===_0x334803[_0x377254(0x2cb)]&&this['_messageService']['show']({'type':_0x5db869[_0x377254(0x33f)],'content':this['_localeService']['t'](_0x377254(0x14a))}),_0x51e94d['id']===_0x334803[_0x377254(0x200)]&&this[_0x377254(0x13d)][_0x377254(0x20f)]({'type':_0x5db869['Error'],'content':this[_0x377254(0x330)]['t'](_0x377254(0x2f9))}),_0x51e94d['id']===_0x334803[_0x377254(0x175)]&&this['_messageService'][_0x377254(0x20f)]({'type':_0x5db869['Error'],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x420154),F(0x1,_0x2d1fcf),F(0x2,_0x5be279(_0x18654a)),F(0x3,_0x968e7c),F(0x4,_0x27058d),F(0x5,_0x5be279(_0xf97bb8))],_e);var _n=Object[_0x3fd5ef(0x291)],ln=(_0x3bc833,_0x4aedda,_0x67a199,_0x1ca166)=>{const _0x2d464f=_0x3fd5ef;for(var _0x102eab=_0x1ca166>0x1?void 0x0:_0x1ca166?_n(_0x4aedda,_0x67a199):_0x4aedda,_0x4a022d=_0x3bc833[_0x2d464f(0x10c)]-0x1,_0x1d984e;_0x4a022d>=0x0;_0x4a022d--)(_0x1d984e=_0x3bc833[_0x4a022d])&&(_0x102eab=_0x1d984e(_0x102eab)||_0x102eab);return _0x102eab;},ne=(_0x2e7728,_0x7d90c6)=>(_0x2cdbb6,_0x24977e)=>_0x7d90c6(_0x2cdbb6,_0x24977e,_0x2e7728);let le=class extends _0x4f00b7{constructor(_0x25857a,_0x4bf358,_0x925b53,_0x17b59a){const _0x1fb072=_0x3fd5ef;super(),_(this,_0x1fb072(0x107)),(this[_0x1fb072(0x309)]=_0x25857a,this[_0x1fb072(0x2e5)]=_0x4bf358,this[_0x1fb072(0x1e8)]=_0x925b53,this[_0x1fb072(0x2de)]=_0x17b59a,this[_0x1fb072(0x333)]());}['_init'](){const _0x30dd8d=_0x3fd5ef;this[_0x30dd8d(0x21f)](),this[_0x30dd8d(0x1b8)](),this[_0x30dd8d(0x210)](),this['_initUserListener']();}[_0x3fd5ef(0x226)](){const _0x5e2cbd=_0x3fd5ef;this[_0x5e2cbd(0x346)](this[_0x5e2cbd(0x2de)][_0x5e2cbd(0x1e2)]['subscribe'](_0x1f9162=>{const _0x5af78b=_0x5e2cbd;this[_0x5af78b(0x107)]=_0x1f9162==null?void 0x0:_0x1f9162[_0x5af78b(0x322)];}));}['_initWindowErrorListener'](){const _0x462929=_0x3fd5ef,_0x4c10b2=_0x3f69c6=>{const _0x46a3ff=_0x3680;var _0x3796d3;this[_0x46a3ff(0x274)]('error',_0x46a3ff(0x11b)+_0x3f69c6['message']+_0x46a3ff(0x1ec)+_0x3f69c6[_0x46a3ff(0x13e)]+':'+_0x3f69c6[_0x46a3ff(0x12c)]+':'+_0x3f69c6[_0x46a3ff(0x22c)]+'\x0a'+(((_0x3796d3=_0x3f69c6['error'])==null?void 0x0:_0x3796d3[_0x46a3ff(0x255)])||''));};window[_0x462929(0x184)]('error',_0x4c10b2),this['disposeWithMe'](()=>{const _0x222504=_0x462929;window['removeEventListener'](_0x222504(0x232),_0x4c10b2);});}[_0x3fd5ef(0x1b8)](){const _0x311cfb=_0x3fd5ef,_0x1c0b96=_0x22b161=>{const _0x5a2dc0=_0x3680;this[_0x5a2dc0(0x274)](_0x5a2dc0(0x232),_0x5a2dc0(0x323)+_0x22b161[_0x5a2dc0(0x326)]);};window[_0x311cfb(0x184)](_0x311cfb(0x12b),_0x1c0b96),this[_0x311cfb(0x346)](()=>{const _0x43a277=_0x311cfb;window[_0x43a277(0x31b)]('unhandledrejection',_0x1c0b96);});}['_monkeyPatchLogService'](){const _0x3c10c1=_0x3fd5ef,_0x6edb29=this[_0x3c10c1(0x1e8)]['error'][_0x3c10c1(0x1d2)](this[_0x3c10c1(0x1e8)]);this[_0x3c10c1(0x1e8)][_0x3c10c1(0x232)]=(..._0x68d0b6)=>{const _0x2bdc7c=_0x3c10c1,_0x2d9100=_0x68d0b6[_0x2bdc7c(0x288)](_0x3d5588=>_0x3d5588 instanceof Error?_0x3d5588[_0x2bdc7c(0x34d)]+'\x0a'+_0x3d5588[_0x2bdc7c(0x255)]:String(_0x3d5588))['join']('\x20');this[_0x2bdc7c(0x274)]('error',_0x2bdc7c(0x2f5)+_0x2d9100),_0x6edb29(..._0x68d0b6);},this['disposeWithMe'](()=>{this['_logService']['error']=_0x6edb29;});}[_0x3fd5ef(0x274)](_0xc81a9e,_0x18383a){const _0x1ea0be=_0x3fd5ef;try{const _0x4b6922={'userId':this[_0x1ea0be(0x107)],'logLabel':_0xc81a9e,'content':_0x18383a};this['_httpService']['post'](_0x1ea0be(0x149),{'body':_0x4b6922})[_0x1ea0be(0x30d)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5be279(_0x4442ad)),ne(0x1,_0x5be279(_0x35064f)),ne(0x2,_0x25626e),ne(0x3,_0x5be279(_0x4b2370))],le);const hn=_0x3fd5ef(0x21d),_t={};var un=Object[_0x3fd5ef(0x291)],dn=(_0x5f09bb,_0x3cf045,_0xafc153,_0x2278b4)=>{const _0x3f39b0=_0x3fd5ef;for(var _0x2edec1=_0x2278b4>0x1?void 0x0:_0x2278b4?un(_0x3cf045,_0xafc153):_0x3cf045,_0x18445b=_0x5f09bb[_0x3f39b0(0x10c)]-0x1,_0x5b3cf5;_0x18445b>=0x0;_0x18445b--)(_0x5b3cf5=_0x5f09bb[_0x18445b])&&(_0x2edec1=_0x5b3cf5(_0x2edec1)||_0x2edec1);return _0x2edec1;},lt=(_0x22a93c,_0x5ec35d)=>(_0x3126dd,_0x247891)=>_0x5ec35d(_0x3126dd,_0x247891,_0x22a93c);let he=class{constructor(_0x36c5a5,_0x3ef72c){const _0x37b122=_0x3fd5ef;this[_0x37b122(0x2d4)]=_0x36c5a5,this[_0x37b122(0x2f2)]=_0x3ef72c;}[_0x3fd5ef(0x2a8)](_0x798b47){const _0xd2f296=_0x3fd5ef;this['_transformUndoRedoStack'](_0x798b47),this[_0xd2f296(0x269)](_0x798b47);}[_0x3fd5ef(0x15d)](_0x3bd12b){const _0xb86616=_0x3fd5ef,{unitID:_0x1d462d}=_0x3bd12b,_0x21ce7e=this[_0xb86616(0x2f2)][_0xb86616(0x1bb)](_0x1d462d)['with'](_0x5c8d42),{redoCache:_0x5b7da4}=_0x21ce7e[_0xb86616(0x318)]();if(_0x5b7da4[_0xb86616(0x10c)]===0x0)return _0x3bd12b;let _0x411edc=_0x2b2135[_0xb86616(0x233)](_0x3bd12b[_0xb86616(0x2ba)][0x0]);for(let _0x13cc15=0x0;_0x13cc15<_0x5b7da4['length'];_0x13cc15++){const _0x350b2b={'id':_0xb86616(0x314),'params':{..._0x5b7da4[_0x13cc15]}},_0x1f6c54=this[_0xb86616(0x2d4)][_0xb86616(0x242)](_0x411edc,_0x350b2b,!0x1);if(_0x3758a8(_0x1f6c54))throw _0x1f6c54[_0xb86616(0x232)];_0x411edc=_0x1f6c54['m1Prime'];}return{..._0x2b2135[_0xb86616(0x233)](_0x3bd12b),'mutations':[_0x411edc]};}[_0x3fd5ef(0x13c)](_0x3695fc){const _0xd8b1ac=_0x3fd5ef,{unitID:_0xd7889d}=_0x3695fc,_0x2a6c92=this[_0xd8b1ac(0x2f2)][_0xd8b1ac(0x1bb)](_0xd7889d)[_0xd8b1ac(0x207)](_0x5c8d42),{undoCache:_0x426010,redoCache:_0x39c5ec}=_0x2a6c92['getUndoRedoMutationParamsCache']();if(_0x426010[_0xd8b1ac(0x10c)]===0x0||_0x39c5ec[_0xd8b1ac(0x10c)]===0x0)return;const _0x1b786c=[],_0x12210c=[];let _0x2bd816=_0x2b2135[_0xd8b1ac(0x233)](_0x3695fc[_0xd8b1ac(0x2ba)][0x0]),_0x202231=_0x2b2135[_0xd8b1ac(0x233)](_0x3695fc[_0xd8b1ac(0x2ba)][0x0]);for(let _0x195d9f=_0x426010[_0xd8b1ac(0x10c)]-0x1;_0x195d9f>=0x0;_0x195d9f--){const _0x123b04={'id':_0xd8b1ac(0x314),'params':{..._0x426010[_0x195d9f]}},_0xae8756={'id':_0xd8b1ac(0x314),'params':{..._0x39c5ec[_0x195d9f]}},_0x35ca79=this['_transformService'][_0xd8b1ac(0x242)](_0x2bd816,_0x123b04,!0x1),_0x347e0c=this[_0xd8b1ac(0x2d4)]['transformMutation'](_0x202231,_0xae8756,!0x1);if(_0x3758a8(_0x35ca79))throw _0x35ca79['error'];if(_0x3758a8(_0x347e0c))throw _0x347e0c['error'];_0x1b786c[_0xd8b1ac(0x2b9)](_0x35ca79[_0xd8b1ac(0x248)][_0xd8b1ac(0x1a8)]),_0x12210c[_0xd8b1ac(0x2b9)](_0x347e0c[_0xd8b1ac(0x248)][_0xd8b1ac(0x1a8)]),_0x2bd816=_0x35ca79[_0xd8b1ac(0x1bd)],_0x202231=_0x347e0c[_0xd8b1ac(0x1bd)];}_0x2a6c92[_0xd8b1ac(0x28d)]({'undoCache':_0x1b786c,'redoCache':_0x12210c});}[_0x3fd5ef(0x269)](_0x277456){const _0xa7ba7e=_0x3fd5ef,{unitID:_0x2ab50a}=_0x277456,_0x44fe8a=this['_renderManagerService']['getRenderById'](_0x2ab50a)[_0xa7ba7e(0x207)](_0x5c8d42),_0xbc39a0=_0x44fe8a[_0xa7ba7e(0x198)]();if(_0xbc39a0==null)return;const _0x3986be=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x277456[_0xa7ba7e(0x205)],'actions':null,'textRanges':[_0xbc39a0]}}],_0x5b5a89=this['_transformService'][_0xa7ba7e(0x231)](_0x277456,_0x3986be);if(!_0x463bb2(_0x5b5a89))throw _0x5b5a89[_0xa7ba7e(0x232)];const _0x218368=_0x5b5a89['m2Prime'][0x0][_0xa7ba7e(0x1a8)][_0xa7ba7e(0x1b1)];Array[_0xa7ba7e(0x263)](_0x218368)&&_0x218368['length']&&_0x44fe8a['setActiveRange'](_0x218368[0x0]);}};he=dn([lt(0x0,_0x4be4b1),lt(0x1,_0x19555c)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x2f0165,_0x6defc2,_0x1679f7,_0x12eccf)=>{const _0x4b30e8=_0x3fd5ef;for(var _0x4760d1=_0x12eccf>0x1?void 0x0:_0x12eccf?Sn(_0x6defc2,_0x1679f7):_0x6defc2,_0x1f5cd2=_0x2f0165[_0x4b30e8(0x10c)]-0x1,_0x34aeec;_0x1f5cd2>=0x0;_0x1f5cd2--)(_0x34aeec=_0x2f0165[_0x1f5cd2])&&(_0x4760d1=_0x34aeec(_0x4760d1)||_0x4760d1);return _0x4760d1;},Le=(_0x5bae71,_0x4b81ac)=>(_0x545749,_0x1328e8)=>_0x4b81ac(_0x545749,_0x1328e8,_0x5bae71);let ue=class{constructor(_0x31531d,_0x4b62f9,_0x38658b){const _0x49c029=_0x3fd5ef;this[_0x49c029(0x309)]=_0x31531d,this['_transformService']=_0x4b62f9,this['_docStateChangeManagerService']=_0x38658b;}[_0x3fd5ef(0x1dd)](_0x1eeccd){this['_transformHistoryAndStateStack'](_0x1eeccd);}[_0x3fd5ef(0x15d)](_0x3fdb59){const _0x1d16cf=_0x3fd5ef,{unitID:_0x3bd23b}=_0x3fdb59,{collaboration:_0x124c68}=this['_docStateChangeManagerService'][_0x1d16cf(0x32d)](_0x3bd23b);if(_0x124c68[_0x1d16cf(0x10c)]===0x0)return _0x3fdb59;let _0x31dcfe=_0x2b2135[_0x1d16cf(0x233)](_0x3fdb59['mutations'][0x0]);for(let _0x264387=0x0;_0x264387<_0x124c68[_0x1d16cf(0x10c)];_0x264387++){const _0x4f8708={'id':_0x1d16cf(0x314),'params':{'unitId':_0x124c68[_0x264387]['unitId'],..._0x124c68[_0x264387][_0x1d16cf(0x24b)]}},_0x5c0b87=this[_0x1d16cf(0x2d4)][_0x1d16cf(0x242)](_0x31dcfe,_0x4f8708,!0x1);if(_0x3758a8(_0x5c0b87))throw _0x5c0b87['error'];_0x31dcfe=_0x5c0b87['m1Prime'];}return{..._0x2b2135[_0x1d16cf(0x233)](_0x3fdb59),'mutations':[_0x31dcfe]};}['_transformHistoryAndStateStack'](_0x28b045){const _0x16e9c9=_0x3fd5ef,{unitID:_0x411748}=_0x28b045,{history:_0x41f5b5,collaboration:_0xc4ef87}=this[_0x16e9c9(0x196)][_0x16e9c9(0x32d)](_0x411748);if(_0x41f5b5['length']===0x0&&_0xc4ef87[_0x16e9c9(0x10c)]===0x0)return;const _0x3adcb9=[],_0x237da7=[];let _0x39eb50=_0x2b2135[_0x16e9c9(0x233)](_0x28b045['mutations'][0x0]),_0x49d604=_0x2b2135[_0x16e9c9(0x233)](_0x28b045[_0x16e9c9(0x2ba)][0x0]);for(let _0x142089=_0x41f5b5[_0x16e9c9(0x10c)]-0x1;_0x142089>=0x0;_0x142089--){const _0x5352de={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41f5b5[_0x142089][_0x16e9c9(0x160)],..._0x41f5b5[_0x142089]['undoState']}},_0x5a73b3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41f5b5[_0x142089]['unitId'],..._0x41f5b5[_0x142089][_0x16e9c9(0x24b)]}},_0x40beb9=this[_0x16e9c9(0x2d4)]['transformMutation'](_0x39eb50,_0x5352de,!0x1),_0x53bace=this[_0x16e9c9(0x2d4)]['transformMutation'](_0x49d604,_0x5a73b3,!0x1);if(_0x3758a8(_0x40beb9))throw _0x40beb9[_0x16e9c9(0x232)];if(_0x3758a8(_0x53bace))throw _0x53bace[_0x16e9c9(0x232)];_0x3adcb9[_0x16e9c9(0x2b9)]({..._0x41f5b5[_0x142089],'undoState':_0x40beb9[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)],'redoState':_0x53bace[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)]}),_0x39eb50=_0x40beb9[_0x16e9c9(0x1bd)],_0x49d604=_0x53bace[_0x16e9c9(0x1bd)];}_0x39eb50=_0x2b2135[_0x16e9c9(0x233)](_0x28b045[_0x16e9c9(0x2ba)][0x0]),_0x49d604=_0x2b2135['deepClone'](_0x28b045[_0x16e9c9(0x2ba)][0x0]);for(let _0x57642e=_0xc4ef87[_0x16e9c9(0x10c)]-0x1;_0x57642e>=0x0;_0x57642e--){const _0x582c3c={'id':_0x16e9c9(0x314),'params':{'unitId':_0xc4ef87[_0x57642e][_0x16e9c9(0x160)],..._0xc4ef87[_0x57642e][_0x16e9c9(0x24e)]}},_0x479ef7={'id':_0x16e9c9(0x314),'params':{'unitId':_0xc4ef87[_0x57642e][_0x16e9c9(0x160)],..._0xc4ef87[_0x57642e][_0x16e9c9(0x24b)]}},_0x422060=this[_0x16e9c9(0x2d4)][_0x16e9c9(0x242)](_0x39eb50,_0x582c3c,!0x1),_0x56594b=this[_0x16e9c9(0x2d4)][_0x16e9c9(0x242)](_0x49d604,_0x479ef7,!0x1);if(_0x3758a8(_0x422060))throw _0x422060[_0x16e9c9(0x232)];if(_0x3758a8(_0x56594b))throw _0x56594b[_0x16e9c9(0x232)];_0x237da7['unshift']({..._0xc4ef87[_0x57642e],'undoState':_0x422060[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)],'redoState':_0x56594b[_0x16e9c9(0x248)][_0x16e9c9(0x1a8)]}),_0x39eb50=_0x422060['m1Prime'],_0x49d604=_0x56594b[_0x16e9c9(0x1bd)];}this['_docStateChangeManagerService'][_0x16e9c9(0x109)](_0x411748,{'history':_0x3adcb9,'collaboration':_0x237da7});}};ue=In([Le(0x0,_0x5be279(_0x4442ad)),Le(0x1,_0x4be4b1),Le(0x2,_0x5be279(_0x580a14))],ue);var mn=Object[_0x3fd5ef(0x291)],fn=(_0x23fa7f,_0xff3c18,_0x37e0ef,_0x48f4f2)=>{const _0x543b15=_0x3fd5ef;for(var _0x31219a=_0x48f4f2>0x1?void 0x0:_0x48f4f2?mn(_0xff3c18,_0x37e0ef):_0xff3c18,_0x147050=_0x23fa7f[_0x543b15(0x10c)]-0x1,_0x9ae051;_0x147050>=0x0;_0x147050--)(_0x9ae051=_0x23fa7f[_0x147050])&&(_0x31219a=_0x9ae051(_0x31219a)||_0x31219a);return _0x31219a;},ht=(_0x5363b9,_0x234f13)=>(_0x56478b,_0xcc2271)=>_0x234f13(_0x56478b,_0xcc2271,_0x5363b9);let de=class{constructor(_0x577fdd,_0x160259){const _0xddf828=_0x3fd5ef;this[_0xddf828(0x309)]=_0x577fdd,this[_0xddf828(0x2d4)]=_0x160259;}[_0x3fd5ef(0x11a)](_0xb9c2e1){const _0x138a8c=_0x3fd5ef;var _0x4bfdbc;const _0x1b47e1=this[_0x138a8c(0x309)][_0x138a8c(0x295)](_0x2d3f04),_0x3b2e61=(_0x4bfdbc=_0x1b47e1['getDocRanges']())!=null?_0x4bfdbc:[];if(_0x3b2e61['length']===0x0)return;const _0x4f2a33=_0xb9c2e1[_0x138a8c(0x205)],_0x17bc96=[{'id':_0x138a8c(0x314),'params':{'unitId':_0x4f2a33,'actions':null,'textRanges':_0x3b2e61}}],_0x236dd7=this['_transformService'][_0x138a8c(0x231)](_0xb9c2e1,_0x17bc96);if(!_0x463bb2(_0x236dd7))throw _0x236dd7[_0x138a8c(0x232)];const _0x1e33b2=_0x236dd7[_0x138a8c(0x248)][0x0][_0x138a8c(0x1a8)]['textRanges'];Array[_0x138a8c(0x263)](_0x1e33b2)&&_0x1e33b2[_0x138a8c(0x10c)]&&_0x1b47e1['replaceDocRanges'](_0x1e33b2,{'unitId':_0x4f2a33,'subUnitId':_0x4f2a33},!0x1);}};de=fn([ht(0x0,_0x5be279(_0x4442ad)),ht(0x1,_0x4be4b1)],de);var gn=Object[_0x3fd5ef(0x291)],En=(_0x14696b,_0x5f5bc2,_0x2dbe87,_0x23a790)=>{const _0x3fe6a7=_0x3fd5ef;for(var _0x45c3ff=_0x23a790>0x1?void 0x0:_0x23a790?gn(_0x5f5bc2,_0x2dbe87):_0x5f5bc2,_0x1e2d7a=_0x14696b[_0x3fe6a7(0x10c)]-0x1,_0xe9b200;_0x1e2d7a>=0x0;_0x1e2d7a--)(_0xe9b200=_0x14696b[_0x1e2d7a])&&(_0x45c3ff=_0xe9b200(_0x45c3ff)||_0x45c3ff);return _0x45c3ff;},U=(_0x5afb91,_0x310559)=>(_0x45aba5,_0x3dcd62)=>_0x310559(_0x45aba5,_0x3dcd62,_0x5afb91);let Se=class extends _0x4f00b7{constructor(_0x4da126,_0x565333,_0x1a4ca0,_0xcef059,_0x5aa9ec,_0x2a24ec,_0xec8bab,_0x585098){const _0x178d31=_0x3fd5ef;super(),_(this,_0x178d31(0x229),new _0x35a309(_0x1c9331[_0x178d31(0x128)])),(this['_docStateChangeManagerService']=_0x4da126,this[_0x178d31(0x30e)]=_0x565333,this[_0x178d31(0x1e7)]=_0x1a4ca0,this[_0x178d31(0x2a0)]=_0xcef059,this[_0x178d31(0x31f)]=_0x5aa9ec,this[_0x178d31(0x25d)]=_0x2a24ec,this[_0x178d31(0x13d)]=_0xec8bab,this[_0x178d31(0x330)]=_0x585098,this['_initEntityListener']());}[_0x3fd5ef(0x308)](){const _0x48fcd7=_0x3fd5ef;this[_0x48fcd7(0x346)](this[_0x48fcd7(0x30e)][_0x48fcd7(0x225)][_0x48fcd7(0xf9)](_0x5bd395=>{const _0x2fd2e3=_0x48fcd7,_0x55b904=this[_0x2fd2e3(0x196)][_0x2fd2e3(0x26e)][_0x2fd2e3(0xf9)](_0x55967b=>{const _0x1361a8=_0x2fd2e3;if(_0x55967b==null)return;const {unitId:_0x3ca0ea,redoState:_0x36ab44,commandId:_0x10bb05}=_0x55967b;if(_0x3ca0ea!==_0x5bd395[_0x1361a8(0x205)])return;const _0x3ef177={'id':_0x10bb05,'type':_0x5419f7[_0x1361a8(0x2ee)],'params':{'unitId':_0x3ca0ea,'actions':_0x36ab44[_0x1361a8(0x2b2)],'textRanges':null}};_0x5bd395[_0x1361a8(0x140)](_0x3ef177);});if(_0x5bd395[_0x2fd2e3(0x346)](_0x55b904),_0x5bd395 instanceof _0x1609bb){const _0x4d0f39={'onTransformIME':_0x4a826f=>this[_0x2fd2e3(0x1e7)][_0x2fd2e3(0x2a8)](_0x4a826f),'onTransformState':_0x51a9c8=>this[_0x2fd2e3(0x2a0)][_0x2fd2e3(0x1dd)](_0x51a9c8),'onTransformSelections':_0x154999=>this[_0x2fd2e3(0x31f)][_0x2fd2e3(0x11a)](_0x154999),'onSyncEditingCollabCursor':_0x6d1944=>this[_0x2fd2e3(0x25d)][_0x2fd2e3(0x327)](_0x6d1944),'onTransformRemoteChangesetByIMECache':_0x2412e0=>this['_docTransformIMECacheService'][_0x2fd2e3(0x15d)](_0x2412e0),'onTransformRemoteChangesetByStateCache':_0x471d6d=>this[_0x2fd2e3(0x2a0)][_0x2fd2e3(0x15d)](_0x471d6d)};_0x5bd395[_0x2fd2e3(0x353)](_0x4d0f39);}}));}};Se=En([U(0x0,_0x5be279(_0x580a14)),U(0x1,_0x5be279(_0x2d6c5e)),U(0x2,_0x5be279(he)),U(0x3,_0x5be279(ue)),U(0x4,_0x5be279(de)),U(0x5,_0x5be279(ze)),U(0x6,_0x968e7c),U(0x7,_0x5be279(_0xf97bb8))],Se);var Z=(_0xd878a8=>(_0xd878a8[_0xd878a8[_0x3fd5ef(0x334)]=0x0]=_0x3fd5ef(0x334),_0xd878a8[_0xd878a8['OK']=0x1]='OK',_0xd878a8[_0xd878a8[_0x3fd5ef(0x24d)]=0x2]=_0x3fd5ef(0x24d),_0xd878a8[_0xd878a8[_0x3fd5ef(0x195)]=0x3]=_0x3fd5ef(0x195),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1a6)]=0x4]=_0x3fd5ef(0x1a6),_0xd878a8[_0xd878a8[_0x3fd5ef(0x21e)]=0x5]=_0x3fd5ef(0x21e),_0xd878a8[_0xd878a8[_0x3fd5ef(0xfb)]=0x6]=_0x3fd5ef(0xfb),_0xd878a8[_0xd878a8[_0x3fd5ef(0x110)]=0x7]=_0x3fd5ef(0x110),_0xd878a8[_0xd878a8['TOO_MANY_REQUESTS']=0x8]=_0x3fd5ef(0x30b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x283)]=0x9]=_0x3fd5ef(0x283),_0xd878a8[_0xd878a8['LOGIN_FAILED']=0xa]=_0x3fd5ef(0x336),_0xd878a8[_0xd878a8['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2fa)]=0xc]=_0x3fd5ef(0x2fa),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1fc)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xd878a8[_0xd878a8['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xd878a8[_0xd878a8['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x3fd5ef(0x2e1),_0xd878a8[_0xd878a8[_0x3fd5ef(0x25b)]=0x10]=_0x3fd5ef(0x25b),_0xd878a8[_0xd878a8['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x3fd5ef(0x2fd),_0xd878a8[_0xd878a8[_0x3fd5ef(0x122)]=0x65]=_0x3fd5ef(0x122),_0xd878a8[_0xd878a8[_0x3fd5ef(0x17f)]=0xc9]=_0x3fd5ef(0x17f),_0xd878a8[_0xd878a8['USER_IS_ANONYMOUS']=0xca]=_0x3fd5ef(0x112),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1fe)]=0x1389]=_0x3fd5ef(0x1fe),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2f4)]=0x1771]=_0x3fd5ef(0x2f4),_0xd878a8[_0xd878a8[_0x3fd5ef(0xff)]=0x1772]=_0x3fd5ef(0xff),_0xd878a8[_0xd878a8[_0x3fd5ef(0x165)]=0x1773]=_0x3fd5ef(0x165),_0xd878a8[_0xd878a8['APPLY_REJECT']=0x1b59]=_0x3fd5ef(0x2c6),_0xd878a8[_0xd878a8['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2c9)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x111)]=0x1b5c]=_0x3fd5ef(0x111),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b0)]=0x1b5d]=_0x3fd5ef(0x2b0),_0xd878a8[_0xd878a8[_0x3fd5ef(0x247)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xd878a8[_0xd878a8[_0x3fd5ef(0x120)]=0x2329]=_0x3fd5ef(0x120),_0xd878a8[_0xd878a8['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3fd5ef(0x301),_0xd878a8[_0xd878a8[_0x3fd5ef(0x117)]=0x232b]=_0x3fd5ef(0x117),_0xd878a8[_0xd878a8[_0x3fd5ef(0x34c)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xd878a8[_0xd878a8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3fd5ef(0x33b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1d0)]=0x2711]=_0x3fd5ef(0x1d0),_0xd878a8[_0xd878a8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3fd5ef(0x356),_0xd878a8[_0xd878a8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3fd5ef(0x127),_0xd878a8[_0xd878a8[_0x3fd5ef(0x16c)]=0x2714]=_0x3fd5ef(0x16c),_0xd878a8[_0xd878a8['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xd878a8[_0xd878a8[_0x3fd5ef(0x2e0)]=0x271b]=_0x3fd5ef(0x2e0),_0xd878a8[_0xd878a8['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3fd5ef(0x335),_0xd878a8[_0xd878a8['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3fd5ef(0x2ef),_0xd878a8[_0xd878a8[_0x3fd5ef(0x313)]=0x271e]=_0x3fd5ef(0x313),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1e4)]=0x271f]=_0x3fd5ef(0x1e4),_0xd878a8[_0xd878a8['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x3fd5ef(0x215),_0xd878a8[_0xd878a8[_0x3fd5ef(0x351)]=0x2af9]=_0x3fd5ef(0x351),_0xd878a8[_0xd878a8['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3fd5ef(0x182),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b5)]=0x2ee2]=_0x3fd5ef(0x2b5),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2ae)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xd878a8[_0xd878a8['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3fd5ef(0x240),_0xd878a8[_0xd878a8[_0x3fd5ef(0x329)]=0x2ee5]=_0x3fd5ef(0x329),_0xd878a8[_0xd878a8[_0x3fd5ef(0x211)]=0x32c9]=_0x3fd5ef(0x211),_0xd878a8[_0xd878a8[_0x3fd5ef(0x358)]=0x32ca]=_0x3fd5ef(0x358),_0xd878a8[_0xd878a8[_0x3fd5ef(0x15b)]=0x32cb]=_0x3fd5ef(0x15b),_0xd878a8[_0xd878a8[_0x3fd5ef(0x270)]=0x36b1]=_0x3fd5ef(0x270),_0xd878a8[_0xd878a8[_0x3fd5ef(0x2b1)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x104)]=0x36b3]=_0x3fd5ef(0x104),_0xd878a8[_0xd878a8['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xd878a8[_0xd878a8[_0x3fd5ef(0x1da)]=0x36b5]=_0x3fd5ef(0x1da),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1e0)]=0x36b6]=_0x3fd5ef(0x1e0),_0xd878a8[_0xd878a8['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x3fd5ef(0x194),_0xd878a8[_0xd878a8[_0x3fd5ef(0x26c)]=0x36b8]=_0x3fd5ef(0x26c),_0xd878a8[_0xd878a8['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x3fd5ef(0x324),_0xd878a8[_0xd878a8['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3fd5ef(0x2b6),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1c4)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xd878a8[_0xd878a8[_0x3fd5ef(0x1f6)]=0x37dd]=_0x3fd5ef(0x1f6),_0xd878a8[_0xd878a8['REDEMPTION_INVALID_CODE']=0x3a99]=_0x3fd5ef(0x142),_0xd878a8[_0xd878a8['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3fd5ef(0x304),_0xd878a8[_0xd878a8[_0x3fd5ef(0xfc)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x345)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x119)]=0x3a9d]=_0x3fd5ef(0x119),_0xd878a8[_0xd878a8[_0x3fd5ef(0x279)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xd878a8[_0xd878a8[_0x3fd5ef(0x14c)]=0x3a9f]=_0x3fd5ef(0x14c),_0xd878a8[_0xd878a8[_0x3fd5ef(0x266)]=0x3e81]=_0x3fd5ef(0x266),_0xd878a8[_0xd878a8[_0x3fd5ef(0x1ed)]=-0x1]=_0x3fd5ef(0x1ed),_0xd878a8))(Z||{});function vn(_0x1925b9){const _0x13a026=_0x3fd5ef;var _0x1ba6bf,_0x1516df;const _0x43d840=(_0x1ba6bf=_0x1925b9['stageInfo'])==null?void 0x0:_0x1ba6bf[_0x13a026(0x150)],_0x131295=((_0x1516df=_0x1925b9[_0x13a026(0x1a0)])==null?void 0x0:_0x1516df[_0x13a026(0x1d7)])||0x0;return _0x43d840===_0x533e75[_0x13a026(0x24f)]&&_0x131295>0x0;}function pn(_0x2c5aa8){const _0x408abb=_0x3fd5ef;return _0x2c5aa8['functionsExecutedState']===_0x16f1fc[_0x408abb(0x250)];}var On=Object[_0x3fd5ef(0x291)],Tn=(_0x570bcd,_0x1d9be6,_0xe49c1a,_0x58a363)=>{const _0x1f36d3=_0x3fd5ef;for(var _0x50f8cc=_0x58a363>0x1?void 0x0:_0x58a363?On(_0x1d9be6,_0xe49c1a):_0x1d9be6,_0x4a35a6=_0x570bcd[_0x1f36d3(0x10c)]-0x1,_0x5c230b;_0x4a35a6>=0x0;_0x4a35a6--)(_0x5c230b=_0x570bcd[_0x4a35a6])&&(_0x50f8cc=_0x5c230b(_0x50f8cc)||_0x50f8cc);return _0x50f8cc;},P=(_0x3b5a1b,_0x12841b)=>(_0xaf753e,_0x2fdb2b)=>_0x12841b(_0xaf753e,_0x2fdb2b,_0x3b5a1b);const Cn=_0x3fd5ef(0x124),Rn='/universer-api/license/formula/limit/start',Dn=_0x3fd5ef(0x158);let Ie=class extends _0x4f00b7{constructor(_0x27e69d,_0x9472c2,_0x168cee,_0x521c87,_0x53eb08,_0x1b5dc5,_0x5605fb){const _0x2f9fd9=_0x3fd5ef;super(),_(this,_0x2f9fd9(0x2c0),null),_(this,_0x2f9fd9(0x114),0x0),_(this,_0x2f9fd9(0x276),0x0),_(this,_0x2f9fd9(0x17e),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x27e69d,this[_0x2f9fd9(0x1b9)]=_0x9472c2,this[_0x2f9fd9(0x27f)]=_0x168cee,this[_0x2f9fd9(0x2e5)]=_0x521c87,this[_0x2f9fd9(0x1a5)]=_0x53eb08,this[_0x2f9fd9(0x1e8)]=_0x1b5dc5,this[_0x2f9fd9(0x330)]=_0x5605fb,this[_0x2f9fd9(0x164)]());}['_initCommandInterceptor'](){const _0x5bf062=_0x3fd5ef;this['disposeWithMe'](this['_commandService'][_0x5bf062(0x1ff)]((_0x3d2378,_0x3f84a7)=>{const _0xe2ffd0=_0x5bf062;var _0x35cb09;if(_0x3d2378['id']!==_0x2753de['id'])return;const _0x5963ee=_0x3d2378['params'];if(!this[_0xe2ffd0(0x29a)]((_0x35cb09=_0x5963ee[_0xe2ffd0(0x180)])!=null?_0x35cb09:[]))return;if(!this[_0xe2ffd0(0x213)]())throw this[_0xe2ffd0(0x1d1)](_0x3d2378,_0x3f84a7),this[_0xe2ffd0(0x2c1)](),new _0x42ff66();})),this[_0x5bf062(0x346)](this[_0x5bf062(0x1b9)][_0x5bf062(0x344)]((_0x2e3086,_0x1335d7)=>{const _0x5181e7=_0x5bf062;if(_0x2e3086['id']!==_0x58be3c['id'])return;const _0x41e5d9=_0x2e3086['params'];if(vn(_0x41e5d9)){const _0x3e8116=_0xba23d8();this['_taskIds']['push'](_0x3e8116),this[_0x5181e7(0x244)](_0x3e8116);}else{if(pn(_0x41e5d9)&&this[_0x5181e7(0x17e)][_0x5181e7(0x10c)]>0x0){const _0x453303=this['_taskIds'][_0x5181e7(0x2b7)]();this[_0x5181e7(0x342)](_0x453303);}}}));}[_0x3fd5ef(0x1f2)](){const _0x420e2b=_0x3fd5ef;super[_0x420e2b(0x1f2)](),this[_0x420e2b(0x167)](),this[_0x420e2b(0x17e)]=[],this[_0x420e2b(0x276)]=0x0,this[_0x420e2b(0x114)]=0x0,this[_0x420e2b(0x2d2)]=0x0;}async[_0x3fd5ef(0x1d1)](_0x21a798,_0x3b546d){const _0x13664a=_0x3fd5ef;for(let _0x127223=0x0;_0x127223<0x1e;_0x127223++)try{if(await this[_0x13664a(0x26d)](),this[_0x13664a(0x213)]()){this[_0x13664a(0x16e)](_0x21a798,_0x3b546d),this[_0x13664a(0x13d)]['show']({'content':this[_0x13664a(0x330)]['t'](_0x13664a(0x170)),'type':_0x5db869[_0x13664a(0x2d1)]});return;}await new Promise(_0x4ba601=>{const _0xe4fa3c=_0x13664a;this[_0xe4fa3c(0x2c0)]=window[_0xe4fa3c(0x2a3)](_0x4ba601,0x3e8);});}catch(_0x446bfb){this[_0x13664a(0x1e8)][_0x13664a(0x232)](_0x446bfb);}this['_messageService'][_0x13664a(0x20f)]({'content':this[_0x13664a(0x330)]['t'](_0x13664a(0x224)),'type':_0x5db869[_0x13664a(0x303)]});}[_0x3fd5ef(0x16e)](_0x358665,_0x45a7e6){const _0x6b51dc=_0x3fd5ef;try{this['_commandService']['executeCommand'](_0x358665['id'],_0x358665['params'],_0x45a7e6);}catch(_0x17aed0){this[_0x6b51dc(0x1e8)][_0x6b51dc(0x232)](_0x17aed0);}}[_0x3fd5ef(0x19c)](_0x4a73b5,_0x1daa14){const _0x4fd93f=_0x3fd5ef;_0x1daa14<this[_0x4fd93f(0x2d2)]||(this['_lastResponseTimestamp']=_0x1daa14,this[_0x4fd93f(0x114)]=Number['parseInt'](_0x4a73b5[_0x4fd93f(0x1ae)]),this[_0x4fd93f(0x276)]=Number[_0x4fd93f(0x1c6)](_0x4a73b5[_0x4fd93f(0x352)]));}async[_0x3fd5ef(0x244)](_0x6d028a){const _0x1e0bd7=_0x3fd5ef;var _0x588460,_0x39c6c7;const _0x1f1eb9=Date[_0x1e0bd7(0x129)]();try{const _0xaec0b2=((_0x588460=this['_configService'][_0x1e0bd7(0x257)](_0x3b3566))==null?void 0x0:_0x588460[_0x1e0bd7(0x108)])||Rn,_0x1c8a00=(await this[_0x1e0bd7(0x2e5)][_0x1e0bd7(0x260)](_0xaec0b2,{'body':JSON['stringify']({'taskId':_0x6d028a})}))['body'];if(((_0x39c6c7=_0x1c8a00[_0x1e0bd7(0x232)])==null?void 0x0:_0x39c6c7[_0x1e0bd7(0x302)])!==Z['OK'])return;this[_0x1e0bd7(0x19c)](_0x1c8a00[_0x1e0bd7(0x234)],_0x1f1eb9);}catch(_0x2ec7ad){this[_0x1e0bd7(0x1e8)][_0x1e0bd7(0x232)](_0x2ec7ad);}}async['_getFormulaLimitStatus'](_0x536675){const _0x5b7e39=_0x3fd5ef;var _0x12912f,_0x1c6a9c;const _0x2ef4f5=Date[_0x5b7e39(0x129)]();try{const _0x42d58d=((_0x12912f=this[_0x5b7e39(0x27f)][_0x5b7e39(0x257)](_0x3b3566))==null?void 0x0:_0x12912f[_0x5b7e39(0x121)])||Cn,_0x320685=_0x536675?_0x42d58d+_0x5b7e39(0x289)+encodeURIComponent(_0x536675):_0x42d58d,_0x2ac7ca=(await this['_httpService'][_0x5b7e39(0x295)](_0x320685))['body'];if(((_0x1c6a9c=_0x2ac7ca[_0x5b7e39(0x232)])==null?void 0x0:_0x1c6a9c['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x2ac7ca[_0x5b7e39(0x234)],_0x2ef4f5);}catch(_0x3e7381){this[_0x5b7e39(0x1e8)]['error'](_0x3e7381);}}async[_0x3fd5ef(0x342)](_0x383cf3){const _0x205020=_0x3fd5ef;var _0x257f8c,_0x769b26;const _0x2f5d54=Date[_0x205020(0x129)]();try{const _0xb725eb=((_0x257f8c=this[_0x205020(0x27f)][_0x205020(0x257)](_0x3b3566))==null?void 0x0:_0x257f8c[_0x205020(0x1fd)])||Dn,_0x56a699=(await this['_httpService'][_0x205020(0x260)](_0xb725eb,{'body':JSON[_0x205020(0x217)]({'taskId':_0x383cf3})}))[_0x205020(0xfe)];if(((_0x769b26=_0x56a699[_0x205020(0x232)])==null?void 0x0:_0x769b26['code'])!==Z['OK'])return;this[_0x205020(0x19c)](_0x56a699[_0x205020(0x234)],_0x2f5d54);}catch(_0x9c9854){this[_0x205020(0x1e8)]['error'](_0x9c9854);}}['_checkCalculationAvailable'](){const _0x43de05=_0x3fd5ef;return this[_0x43de05(0x114)]===0x0?!0x0:this[_0x43de05(0x114)]-this['_currentUsage']>0x0;}[_0x3fd5ef(0x167)](){const _0x1a0450=_0x3fd5ef;this[_0x1a0450(0x2c0)]&&(clearTimeout(this['_pollingInterval']),this[_0x1a0450(0x2c0)]=null);}[_0x3fd5ef(0x2c1)](){const _0x42f1c5=_0x3fd5ef;this[_0x42f1c5(0x13d)][_0x42f1c5(0x20f)]({'content':this[_0x42f1c5(0x330)]['t']('formula.calculation.waiting'),'type':_0x5db869[_0x42f1c5(0x256)]});}[_0x3fd5ef(0x29a)](_0x239477){const _0x40ef34=_0x3fd5ef;for(const _0x24dee5 of _0x239477){const {unitId:_0x43cdff,sheetId:_0x3df06b,range:_0x1f9956}=_0x24dee5,_0x41b449=this[_0x40ef34(0x1a5)]['getUnit'](_0x43cdff);if(!_0x41b449)continue;const _0x196d83=_0x41b449[_0x40ef34(0x1e1)](_0x3df06b);if(!_0x196d83)continue;const _0xa2fd3f=_0x196d83[_0x40ef34(0x2be)]();for(let _0x1270ed=_0x1f9956[_0x40ef34(0x1f7)];_0x1270ed<=_0x1f9956[_0x40ef34(0x186)];_0x1270ed++)for(let _0x5782cb=_0x1f9956[_0x40ef34(0x1d9)];_0x5782cb<=_0x1f9956[_0x40ef34(0x30f)];_0x5782cb++){const _0x4ac4f1=_0xa2fd3f[_0x40ef34(0x328)](_0x1270ed,_0x5782cb);if(_0x4ac4f1&&(_0x535a76(_0x4ac4f1['f'])||_0x415212(_0x4ac4f1['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x5be279(_0x968e7c)),P(0x1,_0x52fbf7),P(0x2,_0x35b32a),P(0x3,_0x5be279(_0x35064f)),P(0x4,_0x2ad077),P(0x5,_0x25626e),P(0x6,_0x5be279(_0xf97bb8))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0xaf41e,_0x3d468d,_0x478d6c,_0x346376)=>{for(var _0x388bd2=_0x346376>0x1?void 0x0:_0x346376?Nn(_0x3d468d,_0x478d6c):_0x3d468d,_0x367e23=_0xaf41e['length']-0x1,_0xe7f90f;_0x367e23>=0x0;_0x367e23--)(_0xe7f90f=_0xaf41e[_0x367e23])&&(_0x388bd2=_0xe7f90f(_0x388bd2)||_0x388bd2);return _0x388bd2;},Ue=(_0x2e1259,_0x39010d)=>(_0xd0061,_0x39a0b7)=>_0x39010d(_0xd0061,_0x39a0b7,_0x2e1259);let He=class extends _0x4f00b7{constructor(_0x53b2dd,_0x30b472,_0x10381a){const _0x39473c=_0x3fd5ef;super(),_(this,_0x39473c(0x33a),new Map()),_(this,_0x39473c(0x339),new Map()),_(this,_0x39473c(0x1d8),!0x1),(this[_0x39473c(0x27f)]=_0x53b2dd,this['_localStorageService']=_0x30b472,this[_0x39473c(0x1c9)]=_0x10381a);}[_0x3fd5ef(0x30a)](){const _0x2c75fe=_0x3fd5ef;this[_0x2c75fe(0x1d8)]=!0x0;}[_0x3fd5ef(0x159)](){const _0x1a5658=_0x3fd5ef;this[_0x1a5658(0x1d8)]=!0x1;}get['saveTaskMap'](){const _0x3c85bc=_0x3fd5ef;return this[_0x3c85bc(0x339)];}[_0x3fd5ef(0x1f2)](){const _0x2168b9=_0x3fd5ef;this['exhaustSavingTask']()[_0x2168b9(0x154)](()=>super[_0x2168b9(0x1f2)]());}async[_0x3fd5ef(0x179)](_0x5d13fb){const _0x40ece2=_0x3fd5ef;return this[_0x40ece2(0x1d8)]?null:this[_0x40ece2(0x2cc)][_0x40ece2(0x18b)](_0x41c94c(_0x5d13fb));}async[_0x3fd5ef(0x33d)](_0x4435b3,_0x10d837){const _0x14f357=_0x3fd5ef;return!!this[_0x14f357(0x2cc)][_0x14f357(0x15e)](_0x4435b3,_0x10d837);}[_0x3fd5ef(0x21a)](_0x255caa,_0x5cd506,_0x3310e8,_0x1f30d6){const _0x1d47df=_0x3fd5ef,_0x381806=this[_0x1d47df(0x1c9)][_0x1d47df(0x261)](_0x255caa);this['_cachedData'][_0x1d47df(0x190)](_0x255caa,{'unitID':_0x255caa,'type':_0x5cd506,'awaitingChangeset':_0x3310e8,'mutations':_0x1f30d6,'rev':_0x381806}),this[_0x1d47df(0x339)][_0x1d47df(0x143)](_0x255caa)||this['_scheduleSaving'](_0x255caa);}['_scheduleSaving'](_0x551f37){const _0x57477b=_0x3fd5ef,_0xec0bf5=this[_0x57477b(0x230)]();_0xec0bf5===0x0?this[_0x57477b(0x1c5)](_0x551f37):this['_saveTaskMap'][_0x57477b(0x190)](_0x551f37,setTimeout(()=>this['_saveCache'](_0x551f37),_0xec0bf5));}[_0x3fd5ef(0x230)](){const _0x3611a3=_0x3fd5ef;var _0x12ff1a;return(_0x12ff1a=this[_0x3611a3(0x27f)][_0x3611a3(0x257)](_0x3bfdc4))!=null?_0x12ff1a:_0x222c32;}['_saveCache'](_0x687f74){const _0x38923b=_0x3fd5ef,_0x28c747=this[_0x38923b(0x339)][_0x38923b(0x295)](_0x687f74);return _0x28c747!==void 0x0&&window['clearTimeout'](_0x28c747),this[_0x38923b(0x2cc)][_0x38923b(0x15e)](_0x41c94c(_0x687f74),this[_0x38923b(0x33a)][_0x38923b(0x295)](_0x687f74))[_0x38923b(0x154)](()=>this[_0x38923b(0x339)][_0x38923b(0x236)](_0x687f74));}async[_0x3fd5ef(0x11e)](){const _0x2aac36=_0x3fd5ef,_0x4ea163=[];this[_0x2aac36(0x339)]['forEach']((_0x196eb5,_0x563a81)=>{const _0x3a6fab=_0x2aac36;window['clearTimeout'](_0x196eb5),_0x4ea163['push'](this[_0x3a6fab(0x1c5)](_0x563a81)[_0x3a6fab(0x154)](()=>{const _0x2ac147=_0x3a6fab;this['_saveTaskMap'][_0x2ac147(0x236)](_0x563a81);}));}),await Promise['all'](_0x4ea163);}};He=bn([Ue(0x0,_0x35b32a),Ue(0x1,_0x494af5),Ue(0x2,_0x5be279(_0x3c1008))],He);class Ln extends _0x54976c{constructor(){const _0x49d824=_0x3fd5ef;super(),_(this,_0x49d824(0x25f)),this['urlChange$']=_0x22a663(window,_0x49d824(0x2d9))['pipe'](_0x5e42cd(this[_0x49d824(0x203)]),_0x1d7304(0x1),_0x1d3877(void 0x0));}[_0x3fd5ef(0x25c)](_0x3082e2,_0x3649a9,_0x354757=!0x1){const _0x211dab=_0x3fd5ef,_0x4bb908=new URL(window[_0x211dab(0x24a)][_0x211dab(0x157)]);_0x4bb908['searchParams'][_0x211dab(0x190)](_0x3082e2,_0x3649a9),_0x354757?window[_0x211dab(0x341)][_0x211dab(0x30c)]('','',_0x4bb908[_0x211dab(0x31c)]()):window[_0x211dab(0x341)][_0x211dab(0x235)]('','',_0x4bb908[_0x211dab(0x31c)]());}['removeParam'](_0x2a3742,_0x26ec69=!0x1){const _0x3c918d=_0x3fd5ef,_0x124151=new URL(window['location'][_0x3c918d(0x157)]);_0x124151[_0x3c918d(0x10a)][_0x3c918d(0x236)](_0x2a3742),_0x26ec69?window[_0x3c918d(0x341)][_0x3c918d(0x30c)]('','',_0x124151['toString']()):window[_0x3c918d(0x341)][_0x3c918d(0x235)]('','',_0x124151[_0x3c918d(0x31c)]());}['getParam'](_0x4c6990){const _0x7ee2c7=_0x3fd5ef;var _0x45f58c;return(_0x45f58c=new URL(window[_0x7ee2c7(0x24a)][_0x7ee2c7(0x157)])[_0x7ee2c7(0x10a)][_0x7ee2c7(0x295)](_0x4c6990))!=null?_0x45f58c:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x3fd5ef(0x291)],An=(_0x1e605f,_0x1629cd,_0x51fa2d)=>_0x1629cd in _0x1e605f?Un(_0x1e605f,_0x1629cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51fa2d}):_0x1e605f[_0x1629cd]=_0x51fa2d,Pn=(_0x37fa6a,_0x1f486c,_0xc13c20,_0x2afd58)=>{const _0x2559dc=_0x3fd5ef;for(var _0x483b7f=_0x2afd58>0x1?void 0x0:_0x2afd58?Mn(_0x1f486c,_0xc13c20):_0x1f486c,_0x1f3682=_0x37fa6a[_0x2559dc(0x10c)]-0x1,_0x733c18;_0x1f3682>=0x0;_0x1f3682--)(_0x733c18=_0x37fa6a[_0x1f3682])&&(_0x483b7f=_0x733c18(_0x483b7f)||_0x483b7f);return _0x483b7f;},Me=(_0x1fb239,_0x1b4abb)=>(_0x14a0ff,_0x3971c4)=>_0x1b4abb(_0x14a0ff,_0x3971c4,_0x1fb239),wn=(_0x396e19,_0x248286,_0x3fad6b)=>An(_0x396e19,_0x248286+'',_0x3fad6b);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x28d2ed{constructor(_0x12f65f=_t,_0x3aa4af,_0x2008ff,_0x388726){const _0x1b2f5b=_0x3fd5ef;super(),this[_0x1b2f5b(0x284)]=_0x12f65f,this[_0x1b2f5b(0x2f2)]=_0x3aa4af,this[_0x1b2f5b(0x309)]=_0x2008ff,this[_0x1b2f5b(0x27f)]=_0x388726;const {..._0x4c7248}=_0x3e7f1c({},_t,this[_0x1b2f5b(0x284)]);this[_0x1b2f5b(0x27f)][_0x1b2f5b(0x292)](hn,_0x4c7248);}[_0x3fd5ef(0x2ab)](){const _0x45acd4=_0x3fd5ef;this[_0x45acd4(0x31a)](),this[_0x45acd4(0x2a9)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x495773=_0x3fd5ef;var _0x13e213;const _0x59a8d7=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2737a6,{'useClass':_0x1e7bcc}],[_0x2d1fcf,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x495773(0x284)][_0x495773(0x18d)]&&_0x59a8d7[_0x495773(0x221)]([le]),_0x28bcb4(this[_0x495773(0x309)],_0x4720d5(_0x59a8d7,(_0x13e213=this[_0x495773(0x284)])==null?void 0x0:_0x13e213[_0x495773(0x280)]));}[_0x3fd5ef(0x27b)](){const _0x5d5582=_0x3fd5ef;this[_0x5d5582(0x346)](this[_0x5d5582(0x2f2)]['registerRenderModule'](_0x1d3b10[_0x5d5582(0x19e)],[Fe])),this['disposeWithMe'](this[_0x5d5582(0x2f2)][_0x5d5582(0x102)](_0x1d3b10[_0x5d5582(0x27e)],[ke]));}[_0x3fd5ef(0x2a9)](){const _0x5536a4=_0x3fd5ef;_0x4626f1(this[_0x5536a4(0x309)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5536a4(0x284)]['enableFrontendLog']&&_0x4626f1(this[_0x5536a4(0x309)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x4fbb73(_0x45f3f2),Me(0x1,_0x19555c),Me(0x2,_0x5be279(_0x4442ad)),Me(0x3,_0x35b32a)],Ye);var $n=Object[_0x3fd5ef(0x291)],xn=(_0x241ce3,_0x14130d,_0x3700c7,_0x233bb0)=>{const _0x2b199b=_0x3fd5ef;for(var _0x26276b=_0x233bb0>0x1?void 0x0:_0x233bb0?$n(_0x14130d,_0x3700c7):_0x14130d,_0x4be451=_0x241ce3[_0x2b199b(0x10c)]-0x1,_0x577a20;_0x4be451>=0x0;_0x4be451--)(_0x577a20=_0x241ce3[_0x4be451])&&(_0x26276b=_0x577a20(_0x26276b)||_0x26276b);return _0x26276b;},J=(_0xf3541e,_0xa5936c)=>(_0x539319,_0x50169f)=>_0xa5936c(_0x539319,_0x50169f,_0xf3541e);let ut=class extends _0x108e7d{constructor(_0x222d3d,_0x313cac,_0x28075d,_0x1fda28,_0xe44236){super(_0x222d3d,_0x313cac,_0x28075d,_0x1fda28,_0xe44236);}async['createSocket'](_0x2c054b){const _0x234702=_0x3fd5ef,_0x238583=await this[_0x234702(0x348)](),_0x5ba396=this[_0x234702(0x332)](_0x2c054b,_0x238583);return this[_0x234702(0x138)](_0x5ba396);}[_0x3fd5ef(0x332)](_0x477010,_0x21c398){const _0x121a8b=_0x3fd5ef,_0x469fef=typeof window>'u'?new URL(_0x477010):new URL(_0x477010,window[_0x121a8b(0x24a)][_0x121a8b(0x10e)]);_0x469fef['searchParams'][_0x121a8b(0x190)](_0x121a8b(0x1d6),_0x21c398);const _0x2f1875=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x121a8b(0x24a)][_0x121a8b(0x1b2)]);return _0x2f1875['get'](_0x121a8b(0x141))&&_0x469fef['searchParams']['set'](_0x121a8b(0x141),_0x2f1875[_0x121a8b(0x295)]('runId')),_0x469fef[_0x121a8b(0x31c)]();}async[_0x3fd5ef(0x348)](){const _0x28d217=_0x3fd5ef;var _0x1a8053,_0x43f404,_0x281035;const _0x4c00c9=this['_configService'][_0x28d217(0x257)](_0x3b3566),_0x48699c=(_0x1a8053=_0x4c00c9==null?void 0x0:_0x4c00c9[_0x28d217(0x1cd)])!=null?_0x1a8053:_0xbe5095;return(_0x281035=(_0x43f404=(await this[_0x28d217(0x2e5)][_0x28d217(0x295)](_0x48699c,{'headers':{'Content-Type':'application/json'}}))[_0x28d217(0xfe)])==null?void 0x0:_0x43f404[_0x28d217(0x19a)])!=null?_0x281035:'';}};ut=xn([J(0x0,_0x5be279(_0x4442ad)),J(0x1,_0x5be279(_0x35064f)),J(0x2,_0x35b32a),J(0x3,_0x25626e),J(0x4,_0x20bd4a)],ut);var Bn=Object[_0x3fd5ef(0x291)],Fn=(_0x5d7fb4,_0x4d4a4e,_0x33c39e,_0xcdf7a2)=>{const _0x4603ee=_0x3fd5ef;for(var _0x57a063=_0xcdf7a2>0x1?void 0x0:_0xcdf7a2?Bn(_0x4d4a4e,_0x33c39e):_0x4d4a4e,_0x510e22=_0x5d7fb4[_0x4603ee(0x10c)]-0x1,_0x2cdf17;_0x510e22>=0x0;_0x510e22--)(_0x2cdf17=_0x5d7fb4[_0x510e22])&&(_0x57a063=_0x2cdf17(_0x57a063)||_0x57a063);return _0x57a063;},Ae=(_0x267621,_0x3dbb8b)=>(_0x5f1b9c,_0x463220)=>_0x3dbb8b(_0x5f1b9c,_0x463220,_0x267621);let dt=class extends _0x4f00b7{constructor(_0x2fb3ac,_0x2b8853,_0x31cb9e){const _0x54c03f=_0x3fd5ef;super(),this[_0x54c03f(0x1f0)]=_0x2fb3ac,this[_0x54c03f(0x2e5)]=_0x2b8853,this[_0x54c03f(0x27f)]=_0x31cb9e;}async[_0x3fd5ef(0x11c)](_0x3a98e4,_0x2d5190,_0x12c35e,..._0x2d107d){const _0x518d25=_0x3fd5ef;var _0xbd33ca,_0x147bba,_0x2a2adb,_0x1bbe19;const _0x5ac90d=this[_0x518d25(0x1f0)][_0x518d25(0x311)]();if(!_0x5ac90d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1b0ca2=((_0xbd33ca=this[_0x518d25(0x27f)][_0x518d25(0x257)](_0x3dc8dc))!=null?_0xbd33ca:_0x39e636)+'/'+_0x3a98e4+_0x518d25(0x197)+_0x2d5190,_0x5e62a4=new URL(window[_0x518d25(0x24a)][_0x518d25(0x157)]),_0x117dd0={'scriptId':_0x3a98e4,'runId':(_0x147bba=_0x5e62a4[_0x518d25(0x10a)][_0x518d25(0x295)](_0x518d25(0x141)))!=null?_0x147bba:'','function':_0x2d5190,'unitId':_0x5ac90d['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x2d107d),'invokeId':(_0x2a2adb=_0x12c35e['invokeId'])!=null?_0x2a2adb:'','executionId':(_0x1bbe19=_0x12c35e[_0x518d25(0x27c)])!=null?_0x1bbe19:''};try{const _0x1b8e01=await this[_0x518d25(0x2e5)][_0x518d25(0x260)](_0x1b0ca2,{'body':_0x117dd0});return _0x1b8e01[_0x518d25(0xfe)][_0x518d25(0x232)]&&_0x1b8e01[_0x518d25(0xfe)][_0x518d25(0x232)][_0x518d25(0x302)]!==Z['OK']?_0x518d25(0x187):_0x1b8e01['body']['result'];}catch{return _0x518d25(0x187);}}};dt=Fn([Ae(0x0,_0x2ad077),Ae(0x1,_0x5be279(_0x35064f)),Ae(0x2,_0x35b32a)],dt);const St=0x7530,It=_0x3fd5ef(0x21b);class rr extends _0x4f00b7{constructor(){const _0x4ad7a5=_0x3fd5ef;super(),_(this,_0x4ad7a5(0x300),_0xba23d8()),_(this,_0x4ad7a5(0x306),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x4ad7a5(0x188),new Map()),_(this,_0x4ad7a5(0x22f),new Map()),this[_0x4ad7a5(0x333)]();}[_0x3fd5ef(0x1f2)](){const _0x45a5c7=_0x3fd5ef;super['dispose'](),this['_clearOtherTimers'][_0x45a5c7(0x2dc)]((_0x38ddca,_0x579dac)=>this[_0x45a5c7(0x315)](_0x579dac)),this[_0x45a5c7(0x14d)]&&window['clearInterval'](this[_0x45a5c7(0x14d)]);}[_0x3fd5ef(0x278)](_0x55147f){return this['_ensureSubject'](_0x55147f)['pipe'](_0x2ed732());}[_0x3fd5ef(0x2a1)](_0x124ce1){const _0x46a150=_0x3fd5ef;this['_selfUnitIDs'][_0x46a150(0x22a)]===0x0&&this[_0x46a150(0x153)](),this[_0x46a150(0x306)][_0x46a150(0x166)](_0x124ce1),this[_0x46a150(0x354)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x124ce1],'isForwarded':!0x1});}[_0x3fd5ef(0x2d6)](_0x216d2a){const _0x475a19=_0x3fd5ef;this[_0x475a19(0x306)][_0x475a19(0x236)](_0x216d2a),this[_0x475a19(0x306)]['size']===0x0&&this[_0x475a19(0x14d)]&&window[_0x475a19(0x1c1)](this[_0x475a19(0x14d)]);}[_0x3fd5ef(0x333)](){const _0x420497=_0x3fd5ef;this[_0x420497(0x346)](_0x2e8f72(_0x22a663(window,_0x420497(0x18f))[_0x420497(0xf9)](_0x4fd073=>{const _0xda49c2=_0x420497;if(_0x4fd073[_0xda49c2(0x12a)]!==It||!_0x4fd073['newValue'])return;const _0x3f81df=JSON['parse'](_0x4fd073[_0xda49c2(0x290)]);this[_0xda49c2(0x115)](_0x3f81df);}))),window[_0x420497(0x184)](_0x420497(0x331),()=>this[_0x420497(0x354)]({'type':0x1,'memberID':this[_0x420497(0x300)],'unitIDs':Array[_0x420497(0x136)](this[_0x420497(0x306)])}));}[_0x3fd5ef(0x115)](_0xd44c04){const _0x41a93f=_0x3fd5ef;switch(_0xd44c04['type']){case 0x0:this[_0x41a93f(0x2ff)](_0xd44c04);break;case 0x1:this[_0x41a93f(0x293)](_0xd44c04);break;case 0x2:this[_0x41a93f(0x1df)](_0xd44c04);break;}}[_0x3fd5ef(0x2ff)](_0x4f5448){const _0x4a7cd5=_0x3fd5ef,{unitIDs:_0x497d36,memberID:_0x5529c6,isForwarded:_0x2d1cdc}=_0x4f5448;_0x497d36[_0x4a7cd5(0x2dc)](_0x188dce=>{const _0x1ace6d=_0x4a7cd5;if(!_0x2d1cdc&&this[_0x1ace6d(0x133)][_0x1ace6d(0x143)](_0x188dce)&&this['_ensureSubject'](_0x188dce)[_0x1ace6d(0x192)](_0x608ac7[_0x1ace6d(0x183)]),!this[_0x1ace6d(0x133)][_0x1ace6d(0x143)](_0x188dce)||!this[_0x1ace6d(0x133)]['get'](_0x188dce)['has'](_0x5529c6)){const _0x5851f4=this[_0x1ace6d(0x133)][_0x1ace6d(0x295)](_0x188dce)||new Set();_0x5851f4[_0x1ace6d(0x166)](_0x5529c6),this[_0x1ace6d(0x133)][_0x1ace6d(0x190)](_0x188dce,_0x5851f4),this[_0x1ace6d(0x12f)](_0x5529c6);}}),_0x2d1cdc||this['_send']({'type':0x0,'memberID':this[_0x4a7cd5(0x300)],'unitIDs':[...this[_0x4a7cd5(0x306)]],'isForwarded':!0x0});}[_0x3fd5ef(0x12f)](_0x4dc07d){const _0x4e334b=_0x3fd5ef;this[_0x4e334b(0x315)](_0x4dc07d);const _0x29e47c=window['setTimeout'](()=>{const _0x554eec=_0x4e334b;this['_unitOnClients'][_0x554eec(0x2dc)](_0x4a097a=>{const _0x3849b5=_0x554eec;_0x4a097a[_0x3849b5(0x236)](_0x4dc07d);});},St*0x2);this['_clearOtherTimers'][_0x4e334b(0x190)](_0x4dc07d,_0x29e47c);}['_removeClearOtherTimer'](_0x387e05){const _0x662c61=_0x3fd5ef;if(this['_clearOtherTimers'][_0x662c61(0x143)](_0x387e05)){const _0x41bd54=this[_0x662c61(0x188)][_0x662c61(0x295)](_0x387e05);_0x41bd54&&window['clearTimeout'](_0x41bd54),this[_0x662c61(0x188)][_0x662c61(0x190)](_0x387e05,null);}}[_0x3fd5ef(0x293)](_0x46a8f4){const _0x2e41da=_0x3fd5ef,{memberID:_0x454005,unitIDs:_0x88eb50}=_0x46a8f4;_0x88eb50[_0x2e41da(0x2dc)](_0x8fc30d=>{const _0x126d5f=_0x2e41da;var _0x1194bb;const _0x4eb1c3=this['_unitOnClients'][_0x126d5f(0x295)](_0x8fc30d);_0x4eb1c3&&(_0x4eb1c3[_0x126d5f(0x236)](_0x454005),(_0x1194bb=this[_0x126d5f(0x2b4)](_0x8fc30d))==null||_0x1194bb[_0x126d5f(0x192)](_0x4eb1c3['size']===0x0?_0x608ac7[_0x126d5f(0x26f)]:_0x608ac7[_0x126d5f(0x183)]));}),this[_0x2e41da(0x315)](_0x454005);}['_handleHeartbeatEvent'](_0x426edb){const _0x3c3cf3=_0x3fd5ef;this[_0x3c3cf3(0x12f)](_0x426edb[_0x3c3cf3(0x322)]);}['_send'](_0x3e75cd){localStorage['setItem'](It,JSON['stringify'](_0x3e75cd));}['_scheduleHeartbeat'](){const _0x580191=_0x3fd5ef;this['_heartbeatTimer']=window[_0x580191(0x14e)](()=>{const _0x54416b=_0x580191;this[_0x54416b(0x354)]({'type':0x2,'memberID':this['_id']});},St);}[_0x3fd5ef(0x2b4)](_0x269165){const _0x18cd43=_0x3fd5ef;return this[_0x18cd43(0x22f)][_0x18cd43(0x143)](_0x269165)||this['_unitStatus'][_0x18cd43(0x190)](_0x269165,new _0x35a309(_0x608ac7[_0x18cd43(0x26f)])),this['_unitStatus']['get'](_0x269165);}}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 _0x3a7433=_0x474c;(function(_0x31ecc5,_0x29a4e1){const _0x5c2927=_0x474c,_0x30c1ec=_0x31ecc5();while(!![]){try{const _0x3efce8=-parseInt(_0x5c2927(0x21d))/0x1+parseInt(_0x5c2927(0x1d1))/0x2*(parseInt(_0x5c2927(0x40a))/0x3)+-parseInt(_0x5c2927(0x33f))/0x4+parseInt(_0x5c2927(0x310))/0x5+-parseInt(_0x5c2927(0x312))/0x6*(-parseInt(_0x5c2927(0x367))/0x7)+parseInt(_0x5c2927(0x3ae))/0x8*(-parseInt(_0x5c2927(0x3ee))/0x9)+-parseInt(_0x5c2927(0x20a))/0xa*(-parseInt(_0x5c2927(0x263))/0xb);if(_0x3efce8===_0x29a4e1)break;else _0x30c1ec['push'](_0x30c1ec['shift']());}catch(_0x2bc07a){_0x30c1ec['push'](_0x30c1ec['shift']());}}}(_0x4974,0x978d4));var Yt=Object[_0x3a7433(0x286)],Wt=(_0x351edb,_0x336963,_0x20b96d)=>_0x336963 in _0x351edb?Yt(_0x351edb,_0x336963,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20b96d}):_0x351edb[_0x336963]=_0x20b96d,_=(_0x423b39,_0x194b1f,_0x498383)=>Wt(_0x423b39,typeof _0x194b1f!=_0x3a7433(0x1c2)?_0x194b1f+'':_0x194b1f,_0x498383);import{jsx as _0x6d53f8,jsxs as _0x1a4fef}from'react/jsx-runtime';import{CollaborationStatus as _0x578bc7,CollaborationSessionService as _0x33dafd,CollaborationController as _0x4c101c,DataLoaderService as _0x26e739,MemberService as _0xba6281,SessionStatus as _0xa37934,ILocalCacheService as _0x3d14fc,CollaborationUIEventService as _0x5d3b6b,CollaborationUIEventId as _0xb775dc,DocCollaborationEntity as _0x30a98e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3f2cb9,getLocalCacheKey as _0x1f06b2,LOCAL_CACHE_INTERVAL as _0x3051c8,LOCAL_CACHE_INTERVAL_KEY as _0x4f98ba,UniverCollaborationClientPlugin as _0x3d7acc,CollaborationSocketService as _0x33b5a6,DEFAULT_WS_SESSION_TICKET_URL as _0x151348,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4d0e9a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x26483f,UnitStatus as _0x218817}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5875ca,IUniverInstanceService as _0x1cf763,Inject as _0x27384c,Injector as _0x546954,Disposable as _0x1c0642,createIdentifier as _0x408afa,ILogService as _0x2e91cd,ICommandService as _0x23b771,Optional as _0x122559,RxDisposable as _0x572f10,Workbook as _0x500951,DOC_RANGE_TYPE as _0x1de649,debounce as _0x44a666,Rectangle as _0x385ece,DisposableCollection as _0x57736b,toDisposable as _0x157525,UniverInstanceType as _0x36653e,generateRandomId as _0x3f0ee8,COLORS as _0x164b29,ColorKit as _0x3be8fa,ThemeService as _0x54d291,fromEventSubject as _0x58d8c3,Tools as _0x144735,CommandType as _0x5ab7c5,IConfigService as _0x574df3,CanceledError as _0x853b6b,isFormulaString as _0x5b7c7b,isFormulaId as _0x433ef4,ILocalStorageService as _0x32ff2a,DependentOn as _0x11ccda,Plugin as _0x50392c,merge as _0x266c93,registerDependencies as _0x1de876,mergeOverrideWithDependencies as _0x2fb84b,touchDependencies as _0x1fe50a}from'@univerjs/core';import{useObservable as _0x1f71ea,useDependency as _0x10b267,IUIPartsService as _0x2f02ad,BuiltInUIPart as _0x21ee09,connectInjector as _0x25edc7,IBeforeCloseService as _0x18dba0,IMessageService as _0x52022d,INotificationService as _0x7f620d}from'@univerjs/ui';import{BehaviorSubject as _0x29de4b,switchMap as _0x232519,of as _0x44fc3f,takeUntil as _0x7b7810,debounceTime as _0x1d53b6,Subject as _0x4b5f78,filter as _0x3c21b3,merge as _0x26d8bd,combineLatest as _0x3f4d03,fromEvent as _0x57cde1,shareReplay as _0xe65cb8,mapTo as _0x2a23d6,distinctUntilChanged as _0x55e285}from'rxjs';import{Tooltip as _0x4ee450,clsx as _0x66ea2b,MessageType as _0x5e610d}from'@univerjs/design';import{useRef as _0x7e8e76,createElement as _0x531fb2,forwardRef as _0x46c57a,useCallback as _0x570daa}from'react';import{IRemoteInstanceService as _0x1d1879}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x22929c,RefRangeService as _0xc89b4,SetSelectionsOperation as _0x2bb3a5,SheetsSelectionsService as _0xd281b6,EffectRefRangId as _0x5bfdab,handleIRemoveRow as _0xdffde2,handleIRemoveCol as _0x5cb489,handleMoveRange as _0x158e95,handleInsertRow as _0x3599ed,handleInsertRangeMoveRight as _0x121378,handleInsertRangeMoveDown as _0x50e396,handleInsertCol as _0x1dc9ed,handleDeleteRangeMoveUp as _0x3406ca,handleDeleteRangeMoveLeft as _0x2ad0c0,runRefRangeMutations as _0x5b3708}from'@univerjs/sheets';import{Shape as _0x2a2a66,Rect as _0x4dfe17,getColor as _0x25acc8,RegularPolygon as _0x5b22a5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x309312,Vector2 as _0x4aee94,SHEET_VIEWPORT_KEY as _0x5d3294,IRenderManagerService as _0x47acbb}from'@univerjs/engine-render';function _0x474c(_0x1dc195,_0xd3c14){_0x1dc195=_0x1dc195-0x1b0;const _0x4974a6=_0x4974();let _0x474c6c=_0x4974a6[_0x1dc195];return _0x474c6c;}import{HTTPService as _0x37faeb,ISocketService as _0x2a889b,WebSocketService as _0x3f3140}from'@univerjs/network';import{IDocClipboardService as _0x2ce0c2,NodePositionConvertToCursor as _0x388172,NodePositionConvertToRectRange as _0x2166fb,TEXT_RANGE_LAYER_INDEX as _0x3e1dcd,SetDocZoomRatioOperation as _0x49f1f4,DocIMEInputManagerService as _0x12d831,DocStateChangeManagerService as _0x391aa1}from'@univerjs/docs-ui';import{IImageIoService as _0x3f9245}from'@univerjs/drawing';import{ITransformService as _0x3417ba,CollaborationEvent as _0x5b6d00,isTransformMutationFailure as _0x28a191,isTransformMutationsWithChangesetSuccess as _0x4d115f,RevisionService as _0x4a7a7a,ISnapshotServerService as _0x12f3e4}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x470c0a,RichTextEditingMutation as _0x8475e8,DocSelectionManagerService as _0x1ba78b,DocSkeletonManagerService as _0xf10ffb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x30bdea,serializeRangeWithSheet as _0x1473d8,FormulaExecuteStageType as _0x5ee1af,FormulaExecutedStateType as _0x3f1c63,SetFormulaCalculationStartMutation as _0x54c579,SetFormulaCalculationNotificationMutation as _0x8e2626}from'@univerjs/engine-formula';import{map as _0x4024aa,filter as _0x3c1d7f,throttleTime as _0x33ced3,takeUntil as _0x45dbd4,switchMap as _0x174e30}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e00d6,getCoordByCell as _0x3ba7ce,getSheetObject as _0xbc8dbe}from'@univerjs/sheets-ui';function Ge({ref:_0x40de29,..._0x270ccb}){const _0x1cb29e=_0x3a7433,{icon:_0x22c1fe,id:_0x502de2,className:_0x15db24,extend:_0x1d9023,..._0x3c860d}=_0x270ccb,_0x2631b5=(_0x1cb29e(0x2da)+_0x502de2+'\x20'+(_0x15db24||''))['trim'](),_0x29cbd0=_0x7e8e76('_'+vi());return At(_0x22c1fe,''+_0x502de2,{'defIds':_0x22c1fe[_0x1cb29e(0x309)],'idSuffix':_0x29cbd0[_0x1cb29e(0x1cc)]},{'ref':_0x40de29,'className':_0x2631b5,..._0x3c860d},_0x1d9023);}function At(_0x4dd798,_0x4038a2,_0x27933b,_0x2f7073,_0x2350f6){const _0x3b148d=_0x3a7433;return _0x531fb2(_0x4dd798[_0x3b148d(0x267)],{'key':_0x4038a2,...gi(_0x4dd798,_0x27933b,_0x2350f6),..._0x2f7073},(Ei(_0x4dd798,_0x27933b)[_0x3b148d(0x1db)]||[])[_0x3b148d(0x3d1)]((_0x41e642,_0x567391)=>At(_0x41e642,_0x4038a2+'-'+_0x4dd798[_0x3b148d(0x267)]+'-'+_0x567391,_0x27933b,void 0x0,_0x2350f6)));}function gi(_0x27f024,_0x1a2220,_0x4baf6c){const _0x42be27=_0x3a7433,_0x218318={..._0x27f024['attrs']};_0x4baf6c!=null&&_0x4baf6c[_0x42be27(0x35b)]&&_0x218318[_0x42be27(0x37b)]==='colorChannel1'&&(_0x218318[_0x42be27(0x37b)]=_0x4baf6c['colorChannel1']),_0x27f024[_0x42be27(0x267)]===_0x42be27(0x270)&&_0x218318['id']&&(_0x218318['id']=_0x218318['id']+_0x1a2220[_0x42be27(0x1e7)]),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x4f47d1,_0x5db70c])=>{const _0x2782a5=_0x42be27;_0x4f47d1==='mask'&&typeof _0x5db70c=='string'&&(_0x218318[_0x4f47d1]=_0x5db70c[_0x2782a5(0x3e0)](/url\(#(.*)\)/,_0x2782a5(0x29a)+_0x1a2220['idSuffix']+')'));});const {defIds:_0x490446}=_0x1a2220;return!_0x490446||_0x490446[_0x42be27(0x34d)]===0x0||(_0x27f024['tag']===_0x42be27(0x2f1)&&_0x218318[_0x42be27(0x277)]&&(_0x218318['xlink:href']=_0x218318[_0x42be27(0x277)]+_0x1a2220['idSuffix']),Object[_0x42be27(0x2d2)](_0x218318)[_0x42be27(0x2eb)](([_0x1d82e3,_0x446180])=>{const _0xe972d8=_0x42be27;typeof _0x446180==_0xe972d8(0x2cb)&&(_0x218318[_0x1d82e3]=_0x446180[_0xe972d8(0x3e0)](/url\(#(.*)\)/,_0xe972d8(0x29a)+_0x1a2220[_0xe972d8(0x1e7)]+')'));})),_0x218318;}function Ei(_0x155e7e,_0x2cbe14){const _0x29da84=_0x3a7433;var _0x484f67;const {defIds:_0x408109}=_0x2cbe14;return!_0x408109||_0x408109[_0x29da84(0x34d)]===0x0?_0x155e7e:_0x155e7e[_0x29da84(0x267)]==='defs'&&((_0x484f67=_0x155e7e[_0x29da84(0x1db)])!=null&&_0x484f67[_0x29da84(0x34d)])?{..._0x155e7e,'children':_0x155e7e[_0x29da84(0x1db)]['map'](_0x258ec2=>typeof _0x258ec2[_0x29da84(0x33e)]['id']==_0x29da84(0x2cb)&&_0x408109&&_0x408109[_0x29da84(0x2f2)](_0x258ec2[_0x29da84(0x33e)]['id'])?{..._0x258ec2,'attrs':{..._0x258ec2['attrs'],'id':_0x258ec2[_0x29da84(0x33e)]['id']+_0x2cbe14[_0x29da84(0x1e7)]}}:_0x258ec2)}:_0x155e7e;}function vi(){const _0x41fd42=_0x3a7433;return Math[_0x41fd42(0x1bd)]()[_0x41fd42(0x2ff)](0x24)['substring'](0x2,0x8);}Ge[_0x3a7433(0x35e)]=_0x3a7433(0x350);const pi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':'0\x200\x2016\x2016','width':_0x3a7433(0x1c3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'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':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x39a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7)}}]}]}],'defIds':[_0x3a7433(0x39a)]},Pt=_0x46c57a(function(_0x17f15e,_0x57db71){const _0x3468ff=_0x3a7433;return _0x531fb2(Ge,Object[_0x3468ff(0x3de)]({},_0x17f15e,{'id':_0x3468ff(0x34c),'ref':_0x57db71,'icon':pi}));});Pt[_0x3a7433(0x35e)]=_0x3a7433(0x2e0);const Oi={'tag':_0x3a7433(0x2b1),'attrs':{'xmlns':_0x3a7433(0x3f5),'fill':_0x3a7433(0x27f),'viewBox':_0x3a7433(0x29f),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a7433(0x35a)},'children':[{'tag':_0x3a7433(0x2f7),'attrs':{'stroke':_0x3a7433(0x3d8),'d':_0x3a7433(0x3dc),'strokeLinecap':_0x3a7433(0x220),'strokeLinejoin':_0x3a7433(0x220),'strokeWidth':1.2}}]},{'tag':_0x3a7433(0x208),'attrs':{},'children':[{'tag':_0x3a7433(0x256),'attrs':{'id':_0x3a7433(0x36c)},'children':[{'tag':'path','attrs':{'fill':_0x3a7433(0x31d),'d':_0x3a7433(0x2b7),'transform':_0x3a7433(0x329)}}]}]}],'defIds':[_0x3a7433(0x36c)]},wt=_0x46c57a(function(_0x853d28,_0x4556fa){const _0x46bbf0=_0x3a7433;return _0x531fb2(Ge,Object[_0x46bbf0(0x3de)]({},_0x853d28,{'id':_0x46bbf0(0x24e),'ref':_0x4556fa,'icon':Oi}));});wt[_0x3a7433(0x35e)]=_0x3a7433(0x3a4);function Ti(_0xc8bff5){const _0x5b8ff4=_0x3a7433;switch(_0xc8bff5){case _0x578bc7[_0x5b8ff4(0x33d)]:return _0x5b8ff4(0x1dc);case _0x578bc7[_0x5b8ff4(0x218)]:return _0x5b8ff4(0x3e1);case _0x578bc7[_0x5b8ff4(0x2a6)]:return'collabStatus.fetchMiss';case _0x578bc7['NOT_COLLAB']:return'collabStatus.notCollab';case _0x578bc7[_0x5b8ff4(0x1f1)]:case _0x578bc7[_0x5b8ff4(0x380)]:return _0x5b8ff4(0x28e);case _0x578bc7[_0x5b8ff4(0x32f)]:case _0x578bc7[_0x5b8ff4(0x23f)]:return _0x5b8ff4(0x3ea);}}function Ci(_0x3efdff){const _0x27b4df=_0x3a7433,{status$:_0x4caa7e}=_0x3efdff,_0x359093=_0x1f71ea(_0x4caa7e,_0x578bc7[_0x27b4df(0x402)]),_0x113f84=_0x10b267(_0x5875ca),_0x4be5cc=_0x10b267(_0x33dafd),_0x3b4f31=_0x359093!==_0x578bc7['OFFLINE'],_0x106361=_0x113f84['t'](Ti(_0x359093)),_0x4a7352=_0x3b4f31?_0x6d53f8(wt,{}):_0x6d53f8(Pt,{}),_0x4ca55a=_0x570daa(()=>{const _0x344568=_0x27b4df;_0x3b4f31||_0x4be5cc[_0x344568(0x2f9)]();},[_0x3b4f31,_0x4be5cc]);function _0x422991(){const _0x2c1686=_0x27b4df;return _0x1a4fef(_0x2c1686(0x31a),{'className':_0x2c1686(0x3bd),'onClick':_0x4ca55a,'children':[_0x6d53f8('div',{'className':_0x66ea2b(_0x2c1686(0x1e6),{'univer-text-green-500':_0x3b4f31,'univer-text-red-500':!_0x3b4f31}),'children':_0x4a7352}),_0x6d53f8(_0x2c1686(0x31a),{'className':_0x2c1686(0x3aa),'children':_0x106361})]});}return _0x3b4f31?_0x422991():_0x6d53f8(_0x4ee450,{'title':_0x113f84['t'](_0x27b4df(0x222)),'children':_0x422991()});}var Ri=Object[_0x3a7433(0x210)],Di=(_0x4c027a,_0x3f74ba,_0x368a5c,_0x2fbb78)=>{for(var _0x241233=_0x2fbb78>0x1?void 0x0:_0x2fbb78?Ri(_0x3f74ba,_0x368a5c):_0x3f74ba,_0x23edef=_0x4c027a['length']-0x1,_0x338fc5;_0x23edef>=0x0;_0x23edef--)(_0x338fc5=_0x4c027a[_0x23edef])&&(_0x241233=_0x338fc5(_0x241233)||_0x241233);return _0x241233;},se=(_0x3c5707,_0x22d4db)=>(_0x59402e,_0x34b3ac)=>_0x22d4db(_0x59402e,_0x34b3ac,_0x3c5707);let ae=class extends _0x1c0642{constructor(_0x1e18ab,_0x4a2026,_0x536dfd,_0x5bfad6){const _0x4567e3=_0x3a7433;super(),_(this,_0x4567e3(0x1b3),new _0x29de4b(_0x578bc7[_0x4567e3(0x402)])),(this[_0x4567e3(0x2a4)]=_0x1e18ab,this[_0x4567e3(0x1cb)]=_0x4a2026,this[_0x4567e3(0x3d6)]=_0x536dfd,this[_0x4567e3(0x360)]=_0x5bfad6,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3a7433(0x201)](){const _0x4dda16=_0x3a7433;this[_0x4dda16(0x3f9)](this['_univerInstanceService']['focused$']['pipe'](_0x232519(()=>{const _0x2cd7c3=_0x4dda16,_0x39f207=this[_0x2cd7c3(0x2a4)][_0x2cd7c3(0x381)]();return _0x39f207?this['_collaborationController'][_0x2cd7c3(0x39c)](_0x39f207['getUnitId']()):_0x44fc3f(null);}),_0x232519(_0x18a261=>_0x18a261?_0x18a261[_0x4dda16(0x1e3)]:_0x44fc3f(_0x578bc7[_0x4dda16(0x402)])))[_0x4dda16(0x395)](_0x3f38de=>{const _0x3bb4eb=_0x4dda16;this[_0x3bb4eb(0x1b3)][_0x3bb4eb(0x293)](_0x3f38de);}));}[_0x3a7433(0x2d9)](){const _0x2b2dfc=_0x3a7433;this[_0x2b2dfc(0x3f9)](this['_uiPartsService'][_0x2b2dfc(0x250)](_0x21ee09[_0x2b2dfc(0x203)],()=>_0x25edc7(Ni({'status$':this[_0x2b2dfc(0x1b3)][_0x2b2dfc(0x2b6)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x1cf763),se(0x1,_0x27384c(_0x546954)),se(0x2,_0x27384c(_0x4c101c)),se(0x3,_0x2f02ad)],ae);function Ni(_0x2aeee6){const {status$:_0x39b265}=_0x2aeee6;return function(){return _0x6d53f8(Ci,{'status$':_0x39b265});};}const yt=_0x408afa(_0x3a7433(0x3b9));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x3d1ef6,_0x374185,_0x3644a2,_0x3ebc91)=>{const _0x3ab024=_0x3a7433;for(var _0x852e99=_0x3ebc91>0x1?void 0x0:_0x3ebc91?bi(_0x374185,_0x3644a2):_0x374185,_0x2b3f6e=_0x3d1ef6[_0x3ab024(0x34d)]-0x1,_0x27650b;_0x2b3f6e>=0x0;_0x2b3f6e--)(_0x27650b=_0x3d1ef6[_0x2b3f6e])&&(_0x852e99=_0x27650b(_0x852e99)||_0x852e99);return _0x852e99;},K=(_0x3fee85,_0x117069)=>(_0x1df073,_0x220106)=>_0x117069(_0x1df073,_0x220106,_0x3fee85);let ce=class extends _0x572f10{constructor(_0x545fa0,_0x33eac9,_0x437cc7,_0xda0e21,_0x185b87){const _0x207803=_0x3a7433;super(),this['_urlService']=_0x545fa0,this[_0x207803(0x2ed)]=_0x33eac9,this[_0x207803(0x212)]=_0x437cc7,this[_0x207803(0x1f5)]=_0xda0e21,_0x185b87?_0x185b87==null||_0x185b87[_0x207803(0x2d3)]()[_0x207803(0x22f)](()=>this[_0x207803(0x20b)]()):(this[_0x207803(0x2ed)]['debug'](_0x207803(0x336),_0x207803(0x2df)),this[_0x207803(0x20b)]());}async[_0x3a7433(0x20b)](){const _0x1575d8=_0x3a7433,_0x4c5359=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x304)),_0x428307=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x409)),_0x278bbc=this[_0x1575d8(0x3c0)][_0x1575d8(0x2bd)](_0x1575d8(0x254));if(!_0x4c5359||!_0x428307){this[_0x1575d8(0x2ed)][_0x1575d8(0x230)]('[CollaborationDataLoaderController]',_0x1575d8(0x274));return;}const _0x1e9afb=await this[_0x1575d8(0x1f5)][_0x1575d8(0x3d9)](_0x4c5359,Number(_0x428307),_0x278bbc);_0x1e9afb&&_0x1e9afb instanceof _0x500951&&this[_0x1575d8(0x231)](_0x1e9afb);}async[_0x3a7433(0x231)](_0x5afa60){const _0x2f22e4=_0x3a7433;await this[_0x2f22e4(0x216)](_0x5afa60),_0x5afa60[_0x2f22e4(0x2fc)][_0x2f22e4(0x368)](_0x7b7810(this['dispose$']))[_0x2f22e4(0x395)](_0x49b36d=>{_0x49b36d&&this['_updateURLWithCurrentState'](_0x49b36d);}),this[_0x2f22e4(0x3c0)][_0x2f22e4(0x29b)]['pipe'](_0x7b7810(this[_0x2f22e4(0x34e)]))[_0x2f22e4(0x395)](()=>this['_updateSubUnitFromURLParams'](_0x5afa60));}[_0x3a7433(0x285)](_0x3a7bb8,_0x34d7b4=!0x1){const _0x4b1d9a=_0x3a7433,_0x18edfd=this[_0x4b1d9a(0x3c0)][_0x4b1d9a(0x2bd)]('subunit');_0x3a7bb8['getSheetId']()!==_0x18edfd&&this['_urlService'][_0x4b1d9a(0x3b8)]('subunit',_0x3a7bb8['getSheetId'](),_0x34d7b4);}async[_0x3a7433(0x216)](_0x1f923e){const _0x35dac8=_0x3a7433;var _0x2c9f00;const _0x197700=this[_0x35dac8(0x3c0)][_0x35dac8(0x2bd)](_0x35dac8(0x254));if(!_0x197700||!_0x1f923e['getSheetBySheetId'](_0x197700)){const _0x38ee1e=_0x1f923e[_0x35dac8(0x2c2)]()[0x0],_0x4feb09=_0x1f923e[_0x35dac8(0x202)](_0x38ee1e);if(!_0x4feb09)return;this[_0x35dac8(0x285)](_0x4feb09,!0x0),await this['_commandService'][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x38ee1e});return;}((_0x2c9f00=_0x1f923e[_0x35dac8(0x3e9)]())==null?void 0x0:_0x2c9f00['getSheetId']())!==_0x197700&&await this[_0x35dac8(0x212)][_0x35dac8(0x2e3)](_0x22929c['id'],{'unitId':_0x1f923e[_0x35dac8(0x385)](),'subUnitId':_0x197700});}};ce=Li([K(0x0,yt),K(0x1,_0x2e91cd),K(0x2,_0x23b771),K(0x3,_0x27384c(_0x26e739)),K(0x4,_0x122559(_0x1d1879))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x4909bd,_0x5db3d0,_0x263ca8,_0x204f1a)=>{for(var _0xa6ada5=_0x204f1a>0x1?void 0x0:_0x204f1a?Ui(_0x5db3d0,_0x263ca8):_0x5db3d0,_0x1196dc=_0x4909bd['length']-0x1,_0x40ed16;_0x1196dc>=0x0;_0x1196dc--)(_0x40ed16=_0x4909bd[_0x1196dc])&&(_0xa6ada5=_0x40ed16(_0xa6ada5)||_0xa6ada5);return _0xa6ada5;},rt=(_0x2de3df,_0x409783)=>(_0x299e7c,_0x578ab6)=>_0x409783(_0x299e7c,_0x578ab6,_0x2de3df);let $e=class extends _0x572f10{constructor(_0x50af5f,_0x4974d1){const _0x3ec9b1=_0x3a7433;super(),this['_docClipboardService']=_0x50af5f,this[_0x3ec9b1(0x3da)]=_0x4974d1,this[_0x3ec9b1(0x20b)]();}['_init'](){const _0x46a8e6=_0x3a7433,_0x418c18=this;this['disposeWithMe'](this['_docClipboardService'][_0x46a8e6(0x2d4)]({'onBeforePasteImage':async _0x57e9cf=>{const _0x23bc30=_0x46a8e6,_0x251919=await _0x418c18[_0x23bc30(0x3da)]['saveImage'](_0x57e9cf);return _0x251919?{'source':_0x251919['source'],'imageSourceType':_0x251919['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x2ce0c2),rt(0x1,_0x3f9245)],$e);const ot=[_0x3a7433(0x366),_0x3a7433(0x305),_0x3a7433(0x2e6),_0x3a7433(0x345),_0x3a7433(0x32a),_0x3a7433(0x1e2)];class Ke extends _0x1c0642{constructor(){const _0x1a1f92=_0x3a7433;super(...arguments),_(this,_0x1a1f92(0x2e4),new Map()),_(this,_0x1a1f92(0x1d7),0x0);}['assignAColorForMemberID'](_0x26f042){const _0x5a6d92=_0x3a7433;if(this['_assignedColors'][_0x5a6d92(0x35f)](_0x26f042))return this[_0x5a6d92(0x2e4)][_0x5a6d92(0x359)](_0x26f042);const _0x4b48d6=ot[this[_0x5a6d92(0x1d7)]];return this['_colorIndex']=(this[_0x5a6d92(0x1d7)]+0x1)%ot[_0x5a6d92(0x34d)],this[_0x5a6d92(0x2e4)][_0x5a6d92(0x1bf)](_0x26f042,_0x4b48d6),_0x4b48d6;}}function $t(_0x4b7926){const _0x4b31e5=_0x3a7433;let _0x39344b='';for(const _0xb35768 of _0x4b7926){const {startOffset:_0x3052c1,endOffset:_0x53836d,isActive:_0x20649f,rangeType:_0x4a0579,segmentId:_0x44c751,segmentPage:_0xb7df9e}=_0xb35768;_0x39344b[_0x4b31e5(0x34d)]&&(_0x39344b+=','),_0x39344b+=_0x3052c1+':'+_0x53836d+':'+(_0x20649f?'1':'0')+':'+_0x4a0579+':'+_0x44c751+':'+_0xb7df9e;}return _0x39344b;}function Ai(_0xc8e1e4){const _0x430ab5=_0x3a7433,_0x5defc3=_0xc8e1e4[_0x430ab5(0x27b)](','),_0x20d507=[];for(const _0x461b5e of _0x5defc3){const [_0x206cb7,_0x102ff0,_0x42ca84,_0x5a15ff,_0x54ba96,_0x3a3c77]=_0x461b5e[_0x430ab5(0x27b)](':');_0x20d507['push']({'startOffset':Number(_0x206cb7),'endOffset':Number(_0x102ff0),'collapsed':_0x206cb7===_0x102ff0,'isActive':_0x42ca84==='1','rangeType':_0x5a15ff===_0x1de649[_0x430ab5(0x398)]?_0x1de649[_0x430ab5(0x398)]:_0x1de649[_0x430ab5(0x1b7)],'segmentId':typeof _0x54ba96==_0x430ab5(0x2cb)?String(_0x54ba96):'','segmentPage':Number(_0x3a3c77!=null?_0x3a3c77:-0x1)});}return _0x20d507[_0x430ab5(0x33c)](_0x40299b=>_0x40299b[_0x430ab5(0x365)])||(_0x20d507[0x0]['isActive']=!0x0),_0x20d507;}class ze extends _0x572f10{constructor(){const _0x3b77ac=_0x3a7433;super(...arguments),_(this,_0x3b77ac(0x3ca),new _0x29de4b(null)),_(this,_0x3b77ac(0x353),this[_0x3b77ac(0x3ca)][_0x3b77ac(0x2b6)]());}['syncEditingCollabCursor'](_0x2b0c36){const _0x35ca2c=_0x3a7433,{unitID:_0x5451bb,memberID:_0x3722ec,textRanges:_0x115d76}=_0x2b0c36,_0x12bf22=$t(_0x115d76);if(_0x12bf22==='')return;const _0xee6a34={'unitID':_0x5451bb,'memberID':_0x3722ec,'selection':_0x12bf22};this[_0x35ca2c(0x3ca)][_0x35ca2c(0x293)](_0xee6a34);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x43af98,_0x42a9e2,_0x19c0a2,_0x5a3c83)=>{const _0x4fb565=_0x3a7433;for(var _0x218f21=_0x5a3c83>0x1?void 0x0:_0x5a3c83?Pi(_0x42a9e2,_0x19c0a2):_0x42a9e2,_0x290fb7=_0x43af98[_0x4fb565(0x34d)]-0x1,_0x48463f;_0x290fb7>=0x0;_0x290fb7--)(_0x48463f=_0x43af98[_0x290fb7])&&(_0x218f21=_0x48463f(_0x218f21)||_0x218f21);return _0x218f21;},A=(_0xb93ae8,_0x2de04f)=>(_0x3a3d2b,_0x416356)=>_0x2de04f(_0x3a3d2b,_0x416356,_0xb93ae8);const yi=0x12c,$i=0x64;let xe=class extends _0x572f10{constructor(_0x4805ba,_0x1375b3,_0x3fb96e,_0x4f71c6,_0x424a1e,_0x8f5bcb,_0x41b26f,_0x2bcc0a,_0x39fbec){const _0xa14ca7=_0x3a7433;super(),_(this,'_online',!0x1),_(this,_0xa14ca7(0x20b),!0x1),_(this,_0xa14ca7(0x3fd),new _0x29de4b(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0xa14ca7(0x2b6)]()),_(this,_0xa14ca7(0x204),new _0x29de4b([])),_(this,_0xa14ca7(0x39e),this['_roomMembers$'][_0xa14ca7(0x368)](_0x1d53b6(yi))),_(this,_0xa14ca7(0x404),_0x44a666(_0x1399e3=>{const _0x3e71a4=_0xa14ca7,_0xa0e062={'eventID':_0x5b6d00[_0x3e71a4(0x35d)],'data':{'unitID':this[_0x3e71a4(0x401)],'memberID':this[_0x3e71a4(0x339)][_0x3e71a4(0x3f1)](),'selection':$t(_0x1399e3)}};this[_0x3e71a4(0x339)][_0x3e71a4(0x1fd)](_0xa0e062,this[_0x3e71a4(0x401)]);},$i)),(this[_0xa14ca7(0x401)]=_0x4805ba,this['_session']=_0x1375b3,this[_0xa14ca7(0x1cb)]=_0x3fb96e,this[_0xa14ca7(0x1d9)]=_0x4f71c6,this[_0xa14ca7(0x291)]=_0x424a1e,this[_0xa14ca7(0x209)]=_0x8f5bcb,this[_0xa14ca7(0x28f)]=_0x41b26f,this[_0xa14ca7(0x2a4)]=_0x2bcc0a,this[_0xa14ca7(0x212)]=_0x39fbec);}get[_0x3a7433(0x2a2)](){const _0x23cbd3=_0x3a7433;return this[_0x23cbd3(0x3fd)][_0x23cbd3(0x37f)]();}get['roomMembers'](){const _0x3d9383=_0x3a7433;return this[_0x3d9383(0x204)][_0x3d9383(0x37f)]();}[_0x3a7433(0x2c4)](){const _0xdf52ce=_0x3a7433;super[_0xdf52ce(0x2c4)](),this[_0xdf52ce(0x3fd)]['next'](new Map()),this[_0xdf52ce(0x3fd)][_0xdf52ce(0x31e)](),this[_0xdf52ce(0x204)][_0xdf52ce(0x293)]([]),this[_0xdf52ce(0x204)][_0xdf52ce(0x31e)]();}[_0x3a7433(0x1ef)](){const _0x534023=_0x3a7433;this[_0x534023(0x20b)]||(this['_init']=!0x0,this[_0x534023(0x339)]['sessionStatus$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))['subscribe'](_0x62debf=>{const _0x4571d6=_0x534023;_0x62debf===_0xa37934[_0x4571d6(0x205)]?this[_0x4571d6(0x389)]():this[_0x4571d6(0x284)]();}),this[_0x534023(0x339)][_0x534023(0x2a5)][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0xad2a81=>{const _0x113929=_0x534023,_0x4c2a56=_0xad2a81[_0x113929(0x233)];_0x4c2a56===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xad2a81),_0x4c2a56===_0x5b6d00[_0x113929(0x3cf)]&&this['_onCursorDelete'](_0xad2a81);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x5c8464=>{const _0x4065d9=_0x534023,_0x2b9e69=_0x5c8464[_0x4065d9(0x219)];_0x2b9e69!=null&&this['_online']&&_0x5c8464['id']===_0x470c0a['id']&&_0x2b9e69[_0x4065d9(0x223)]===this[_0x4065d9(0x401)]&&_0x2b9e69[_0x4065d9(0x25f)]===!0x1&&_0x2b9e69[_0x4065d9(0x3a1)][_0x4065d9(0x34d)]>0x0&&this[_0x4065d9(0x404)](_0x2b9e69[_0x4065d9(0x3a1)]);})),this[_0x534023(0x209)]['collabCursorState$'][_0x534023(0x368)](_0x7b7810(this[_0x534023(0x34e)]))[_0x534023(0x395)](_0x35afed=>{const _0xdd538b=_0x534023;if((_0x35afed==null?void 0x0:_0x35afed[_0xdd538b(0x401)])!==this[_0xdd538b(0x401)])return;const _0x2f3ef0={'eventID':_0x5b6d00[_0xdd538b(0x35d)],'data':_0x35afed};this[_0xdd538b(0x1e9)](_0x2f3ef0);}),this[_0x534023(0x3f9)](this[_0x534023(0x212)][_0x534023(0x1f8)](_0x4067fd=>{const _0x124027=_0x534023;if(_0x4067fd[_0x124027(0x219)]==null)return;const _0x590ea1=_0x4067fd['params'];if(_0x4067fd['id']!==_0x8475e8['id']||_0x590ea1[_0x124027(0x223)]!==this['unitID'])return;const _0x3067f7={'id':_0x124027(0x37a),'params':_0x590ea1},_0x4fb6e2=this['cursorInfo'];for(const [_0x16b90c,_0x3a4fc6]of _0x4fb6e2){const _0x1e1193={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3a4fc6[_0x124027(0x3a1)]}},_0x4ad5d5=this[_0x124027(0x28f)][_0x124027(0x2dc)](_0x3067f7,_0x1e1193,!0x1);if(_0x28a191(_0x4ad5d5))throw _0x4ad5d5['error'];_0x4fb6e2['set'](_0x16b90c,{..._0x3a4fc6,'ranges':_0x4ad5d5['m2Prime'][_0x124027(0x219)]['textRanges']});}queueMicrotask(()=>{const _0x55bec3=_0x124027;this[_0x55bec3(0x3fd)]['next'](_0x4fb6e2);});})));}['_onCursorUpdate'](_0x20d5ed){const _0x532e29=_0x3a7433;var _0x4997b6,_0x5a8c8c;const {memberID:_0x23a38c,selection:_0x5adea3}=_0x20d5ed[_0x532e29(0x217)],_0xafa80a=Ai(_0x5adea3),_0x127010=(_0x5a8c8c=(_0x4997b6=this[_0x532e29(0x291)][_0x532e29(0x40e)](this['unitID'],_0x23a38c))==null?void 0x0:_0x4997b6[_0x532e29(0x386)])!=null?_0x5a8c8c:'Unknown\x20user',_0x5be419={'color':this[_0x532e29(0x1d9)][_0x532e29(0x301)](_0x23a38c),'name':_0x127010,'ranges':_0xafa80a},_0x1ebff2=this[_0x532e29(0x2a2)];_0x1ebff2[_0x532e29(0x1bf)](_0x23a38c,_0x5be419),this[_0x532e29(0x3fd)][_0x532e29(0x293)](_0x1ebff2);}['_onCursorDelete'](_0x3bbbe5){const _0x4459cf=_0x3a7433,{memberID:_0xf970d}=_0x3bbbe5[_0x4459cf(0x217)],_0x4d4fb9=this['cursorInfo'];_0x4d4fb9[_0x4459cf(0x236)](_0xf970d),this[_0x4459cf(0x3fd)][_0x4459cf(0x293)](_0x4d4fb9);}[_0x3a7433(0x389)](){const _0x5e30a3=_0x3a7433;var _0x1b2d6f;if(this[_0x5e30a3(0x324)]=!0x0,((_0x1b2d6f=this[_0x5e30a3(0x2a4)][_0x5e30a3(0x381)]())==null?void 0x0:_0x1b2d6f[_0x5e30a3(0x385)]())!==this[_0x5e30a3(0x401)])return;const _0x439f79=this[_0x5e30a3(0x1cb)][_0x5e30a3(0x359)](_0x1ba78b)[_0x5e30a3(0x34b)]();Array[_0x5e30a3(0x321)](_0x439f79)&&_0x439f79['length']>0x0&&this[_0x5e30a3(0x404)](_0x439f79);}['_toggleOffline'](){const _0x2256fe=_0x3a7433;this[_0x2256fe(0x324)]=!0x1;}};xe=wi([A(0x2,_0x27384c(_0x546954)),A(0x3,_0x27384c(Ke)),A(0x4,_0x27384c(_0xba6281)),A(0x5,_0x27384c(ze)),A(0x6,_0x3417ba),A(0x7,_0x1cf763),A(0x8,_0x23b771)],xe);var xi=Object[_0x3a7433(0x210)],Bi=(_0x169d29,_0x58fdbb,_0x5abc15,_0x1790eb)=>{const _0x57bd18=_0x3a7433;for(var _0x3aefe0=_0x1790eb>0x1?void 0x0:_0x1790eb?xi(_0x58fdbb,_0x5abc15):_0x58fdbb,_0x3811db=_0x169d29[_0x57bd18(0x34d)]-0x1,_0x1f1446;_0x3811db>=0x0;_0x3811db--)(_0x1f1446=_0x169d29[_0x3811db])&&(_0x3aefe0=_0x1f1446(_0x3aefe0)||_0x3aefe0);return _0x3aefe0;},B=(_0x34bdf9,_0x27f051)=>(_0x5d9d51,_0x24e435)=>_0x27f051(_0x5d9d51,_0x24e435,_0x34bdf9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x125751=[],_0x3dc542=!0x1;return _0x187090=>{const _0x1e40a4=_0x474c;_0x125751[_0x1e40a4(0x3b0)](_0x187090),_0x3dc542||(_0x3dc542=!0x0,setTimeout(()=>{const _0x57f776=_0x1e40a4;_0x125751[_0x57f776(0x2eb)](_0x48e94a=>_0x48e94a()),_0x125751=[],_0x3dc542=!0x1;}));};};let Be=class extends _0x572f10{constructor(_0x4141db,_0x4f2e6a,_0x5f5b3d,_0x523931,_0x262584,_0x2f358a,_0x5c3568,_0x28b93b){const _0x16a4c1=_0x3a7433;super(),_(this,_0x16a4c1(0x324),!0x1),_(this,_0x16a4c1(0x20b),!0x1),_(this,_0x16a4c1(0x3fd),new _0x29de4b(new Map())),_(this,_0x16a4c1(0x298),this[_0x16a4c1(0x3fd)]['asObservable']()),_(this,_0x16a4c1(0x204),new _0x29de4b([])),_(this,_0x16a4c1(0x39e),this[_0x16a4c1(0x204)][_0x16a4c1(0x368)](_0x1d53b6(Fi))),_(this,_0x16a4c1(0x404),_0x44a666((_0x59ee68,_0x1e69e8)=>{const _0xf88db8=_0x16a4c1,_0x335682={'eventID':_0x5b6d00[_0xf88db8(0x35d)],'data':{'unitID':this[_0xf88db8(0x401)],'memberID':this[_0xf88db8(0x339)][_0xf88db8(0x3f1)](),'selection':_0x1473d8(_0x59ee68,_0x1e69e8[_0xf88db8(0x3f2)])}};this['_session'][_0xf88db8(0x1fd)](_0x335682,this['unitID']);},ki)),(this[_0x16a4c1(0x401)]=_0x4141db,this[_0x16a4c1(0x339)]=_0x4f2e6a,this[_0x16a4c1(0x1cb)]=_0x5f5b3d,this[_0x16a4c1(0x1d9)]=_0x523931,this[_0x16a4c1(0x291)]=_0x262584,this['_univerInstanceService']=_0x2f358a,this[_0x16a4c1(0x212)]=_0x5c3568,this['_refRangeService']=_0x28b93b);}get[_0x3a7433(0x2a2)](){const _0x3b9dcd=_0x3a7433;return this[_0x3b9dcd(0x3fd)]['getValue']();}get[_0x3a7433(0x1b2)](){return this['_roomMembers$']['getValue']();}[_0x3a7433(0x2c4)](){const _0x529ba9=_0x3a7433;super[_0x529ba9(0x2c4)](),this[_0x529ba9(0x3fd)]['next'](new Map()),this['_cursorInfo$'][_0x529ba9(0x31e)](),this[_0x529ba9(0x204)]['next']([]),this['_roomMembers$'][_0x529ba9(0x31e)]();}[_0x3a7433(0x1ef)](){const _0xc66333=_0x3a7433;this[_0xc66333(0x20b)]||(this[_0xc66333(0x20b)]=!0x0,this['_session'][_0xc66333(0x2c0)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x215a81=>{const _0xc7c3af=_0xc66333;_0x215a81===_0xa37934[_0xc7c3af(0x205)]?this['_toggleOnline']():this[_0xc7c3af(0x284)]();}),this[_0xc66333(0x339)][_0xc66333(0x2a5)][_0xc66333(0x368)](_0x7b7810(this[_0xc66333(0x34e)]))[_0xc66333(0x395)](_0x5ca035=>{const _0x29f571=_0xc66333,_0x13214e=_0x5ca035[_0x29f571(0x233)];_0x13214e===_0x5b6d00['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5ca035),_0x13214e===_0x5b6d00[_0x29f571(0x3cf)]&&this[_0x29f571(0x280)](_0x5ca035);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xc66333(0x212)][_0xc66333(0x1f8)](_0x544ab5=>{const _0x2a2680=_0xc66333;if(this[_0x2a2680(0x324)]&&_0x544ab5['id']===_0x2bb3a5['id']&&_0x544ab5[_0x2a2680(0x219)]['unitId']===this[_0x2a2680(0x401)]){const _0x574355=_0x544ab5[_0x2a2680(0x219)];this[_0x2a2680(0x404)](_0x574355[_0x2a2680(0x266)],_0x574355['selections'][0x0]);}})));}[_0x3a7433(0x1e9)](_0xcd74f7){const _0x4c561b=_0x3a7433;var _0x15f0c9,_0x472ddb;const {memberID:_0x519b5d,selection:_0x28587c}=_0xcd74f7['data'],{sheetName:_0x2362cb,range:_0x144490}=_0x30bdea(_0x28587c),_0x2707fc={'name':(_0x472ddb=(_0x15f0c9=this[_0x4c561b(0x291)]['getMember'](this['unitID'],_0x519b5d))==null?void 0x0:_0x15f0c9[_0x4c561b(0x386)])!=null?_0x472ddb:_0x4c561b(0x3f7),'range':this[_0x4c561b(0x248)](_0x2362cb,_0x144490),'sheetID':_0x2362cb,'color':this[_0x4c561b(0x1d9)][_0x4c561b(0x301)](_0x519b5d),'selection':_0x28587c},_0xdc9560=this[_0x4c561b(0x2a2)];_0xdc9560['set'](_0x519b5d,_0x2707fc),this['_cursorInfo$']['next'](_0xdc9560);}['_onCursorDelete'](_0xe49120){const _0x13f2db=_0x3a7433,{memberID:_0x5a3140}=_0xe49120[_0x13f2db(0x217)],_0x5be73f=this[_0x13f2db(0x2a2)];_0x5be73f['delete'](_0x5a3140),this[_0x13f2db(0x3fd)][_0x13f2db(0x293)](_0x5be73f);}[_0x3a7433(0x248)](_0x288a79,_0x3d1381){const _0x47729e=_0x3a7433;var _0x1102f7,_0x4a7883;const _0x45d5ca=(_0x4a7883=(_0x1102f7=this[_0x47729e(0x2a4)]['getUniverSheetInstance'](this[_0x47729e(0x401)]))==null?void 0x0:_0x1102f7['getSheetBySheetId'](_0x288a79))==null?void 0x0:_0x4a7883[_0x47729e(0x246)]();return(_0x45d5ca==null?void 0x0:_0x45d5ca[_0x47729e(0x2b5)](_0x521267=>_0x385ece[_0x47729e(0x1b6)](_0x521267,_0x3d1381)))||_0x3d1381;}[_0x3a7433(0x3c4)](){const _0x5d5cd6=_0x3a7433,_0x5eb772=new _0x57736b(),_0xdb3118=Hi(),_0x594753=()=>{const _0x258132=_0x474c;_0x5eb772[_0x258132(0x2c4)]();const _0x1a967a=(_0x26fb90,_0x242de3,_0x44ee34,_0x4bc7ed)=>{const _0x287813=_0x258132;let _0x33762c=[];switch(_0x26fb90['id']){case _0x5bfdab['DeleteRangeMoveLeftCommandId']:{_0x33762c=_0x2ad0c0(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x3e7)]:{_0x33762c=_0x3406ca(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x315)]:{_0x33762c=_0x1dc9ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x294)]:{_0x33762c=_0x50e396(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab['InsertRangeMoveRightCommandId']:{_0x33762c=_0x121378(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x21e)]:{_0x33762c=_0x3599ed(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x282)]:{_0x33762c=_0x158e95(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x358)]:{_0x33762c=_0x5cb489(_0x26fb90,_0x4bc7ed);break;}case _0x5bfdab[_0x287813(0x2f3)]:{_0x33762c=_0xdffde2(_0x26fb90,_0x4bc7ed);break;}}const _0xee14d=_0x5b3708(_0x33762c,_0x4bc7ed),_0x513f34=this[_0x287813(0x2a2)][_0x287813(0x359)](_0x242de3);if(_0x513f34&&_0xee14d){const _0x5ee7e0={..._0x513f34,'range':_0xee14d};this[_0x287813(0x2a2)][_0x287813(0x1bf)](_0x242de3,_0x5ee7e0),_0xdb3118(()=>{const _0x2f48b5=_0x287813,_0x186c28=this[_0x2f48b5(0x325)]['registerRefRange'](_0xee14d,_0x40ca0d=>(_0x186c28[_0x2f48b5(0x2c4)](),_0x1a967a(_0x40ca0d,_0x242de3,_0x44ee34,_0xee14d)));_0x5eb772[_0x2f48b5(0x40b)](_0x186c28);});}return{'redos':[],'undos':[]};};this[_0x258132(0x2a2)][_0x258132(0x2eb)]((_0x244376,_0x1727db)=>{const _0x572217=_0x258132,{range:_0x479715,sheetID:_0x2801e5}=_0x244376,_0x1a5cf4=this[_0x572217(0x325)][_0x572217(0x323)](_0x479715,_0x3edf17=>(_0x1a5cf4[_0x572217(0x2c4)](),_0x1a967a(_0x3edf17,_0x1727db,_0x2801e5,_0x479715)));_0x5eb772[_0x572217(0x40b)](_0x1a5cf4);});};this['disposeWithMe'](_0x157525(this[_0x5d5cd6(0x3fd)]['subscribe'](()=>{_0x594753();})));}[_0x3a7433(0x389)](){const _0x654915=_0x3a7433;var _0x123c98,_0x4c0b65;if(this[_0x654915(0x324)]=!0x0,((_0x123c98=this[_0x654915(0x2a4)][_0x654915(0x381)]())==null?void 0x0:_0x123c98['getUnitId']())!==this[_0x654915(0x401)])return;const _0x169ecd=(_0x4c0b65=this[_0x654915(0x1cb)][_0x654915(0x359)](_0xd281b6)[_0x654915(0x23c)]())==null?void 0x0:_0x4c0b65[0x0],_0xb7b8a9=this[_0x654915(0x2a4)]['getCurrentUnitForType'](_0x36653e[_0x654915(0x2a9)])[_0x654915(0x3e9)]();_0x169ecd&&_0xb7b8a9&&this[_0x654915(0x404)](_0xb7b8a9[_0x654915(0x3d2)](),_0x169ecd);}[_0x3a7433(0x284)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x27384c(_0x546954)),B(0x3,_0x27384c(Ke)),B(0x4,_0x27384c(_0xba6281)),B(0x5,_0x1cf763),B(0x6,_0x23b771),B(0x7,_0x27384c(_0xc89b4))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x16edb8,_0x22d854,_0x527e52,_0x528d4c)=>{const _0x10b210=_0x3a7433;for(var _0x5c88da=_0x528d4c>0x1?void 0x0:_0x528d4c?Yi(_0x22d854,_0x527e52):_0x22d854,_0x574ef5=_0x16edb8[_0x10b210(0x34d)]-0x1,_0x1002b4;_0x574ef5>=0x0;_0x574ef5--)(_0x1002b4=_0x16edb8[_0x574ef5])&&(_0x5c88da=_0x1002b4(_0x5c88da)||_0x5c88da);return _0x5c88da;},Ce=(_0x374e66,_0x5b37b3)=>(_0x4874e0,_0x4c3091)=>_0x5b37b3(_0x4874e0,_0x4c3091,_0x374e66);let H=class extends _0x572f10{constructor(_0x5b0b3b,_0x2bd7d1,_0x222f4){const _0x4cad08=_0x3a7433;super(),_(this,_0x4cad08(0x3ba),new Map()),_(this,_0x4cad08(0x1eb),new _0x4b5f78()),(this['_univerInstanceService']=_0x5b0b3b,this['_injector']=_0x2bd7d1,this['_collabSessionService']=_0x222f4,this[_0x4cad08(0x20b)]());}['dispose'](){const _0x122452=_0x3a7433;super[_0x122452(0x2c4)](),this[_0x122452(0x1eb)][_0x122452(0x31e)](),this[_0x122452(0x3ba)]['forEach'](_0x30a653=>_0x30a653[_0x122452(0x2c4)]());}[_0x3a7433(0x26f)](_0x3dfa92){const _0xde6c9d=_0x3a7433;return this['_entities']['has'](_0x3dfa92)?this['_entities'][_0xde6c9d(0x359)](_0x3dfa92)[_0xde6c9d(0x298)]:this['_entityInit$'][_0xde6c9d(0x368)](_0x3c21b3(_0xddea22=>_0xddea22[_0xde6c9d(0x401)]===_0x3dfa92),_0x232519(_0x51a6fc=>_0x51a6fc[_0xde6c9d(0x298)]));}['_init'](){const _0x46d027=_0x3a7433;this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e[_0x46d027(0x2a9)])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](async _0x3d4621=>{const _0x809dec=_0x46d027,_0x1d5111=_0x3d4621['getUnitId'](),_0x2ea440=await this[_0x809dec(0x2be)](_0x1d5111);this[_0x809dec(0x1eb)]['next'](_0x2ea440),this[_0x809dec(0x3ba)][_0x809dec(0x1bf)](_0x1d5111,_0x2ea440);}),this[_0x46d027(0x2a4)][_0x46d027(0x271)](_0x36653e['UNIVER_DOC'])[_0x46d027(0x368)](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x368)](_0x3c21b3(_0x5b2196=>!_0x5b2196['getUnitId']()[_0x46d027(0x34a)]('__')))['subscribe'](async _0x282a49=>{const _0x10922c=_0x46d027,_0x373fc4=_0x282a49[_0x10922c(0x385)](),_0x2e9a48=await this['_startDocCollabCursor'](_0x373fc4);this[_0x10922c(0x1eb)][_0x10922c(0x293)](_0x2e9a48),this[_0x10922c(0x3ba)][_0x10922c(0x1bf)](_0x373fc4,_0x2e9a48);}),_0x26d8bd(this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2cc)]),this[_0x46d027(0x2a4)][_0x46d027(0x281)](_0x36653e[_0x46d027(0x2a9)]))['pipe'](_0x7b7810(this[_0x46d027(0x34e)]))[_0x46d027(0x395)](_0xed1e0d=>{const _0x5fd39f=_0x46d027,_0x48c3e2=_0xed1e0d[_0x5fd39f(0x385)](),_0x2c18c0=this[_0x5fd39f(0x3ba)]['get'](_0x48c3e2);_0x2c18c0&&(_0x2c18c0[_0x5fd39f(0x2c4)](),this[_0x5fd39f(0x3ba)]['delete'](_0x48c3e2));});}async[_0x3a7433(0x2be)](_0xf0f321){const _0x3f3381=_0x3a7433,_0x2f1069=await this['_collabSessionService']['requireSession'](_0xf0f321),_0x43fb80=this[_0x3f3381(0x1cb)]['createInstance'](Be,_0xf0f321,_0x2f1069);return _0x43fb80[_0x3f3381(0x1ef)](),_0x43fb80;}async[_0x3a7433(0x288)](_0x492974){const _0xb5408c=_0x3a7433,_0x1d28d6=await this[_0xb5408c(0x322)][_0xb5408c(0x262)](_0x492974),_0x1d4802=this[_0xb5408c(0x1cb)][_0xb5408c(0x28d)](xe,_0x492974,_0x1d28d6);return _0x1d4802['init'](),_0x1d4802;}};H=Wi([Ce(0x0,_0x1cf763),Ce(0x1,_0x27384c(_0x546954)),Ce(0x2,_0x27384c(_0x33dafd))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x36c14b,_0x185f0e){const _0x12c68c=_0x3a7433;let {radius:_0x5ad41a,width:_0x3e9d06,height:_0x4badde}=_0x185f0e;_0x5ad41a=_0x5ad41a!=null?_0x5ad41a:0x0,_0x3e9d06=_0x3e9d06!=null?_0x3e9d06:0x1e,_0x4badde=_0x4badde!=null?_0x4badde:0x1e;let _0x336f59=0x0,_0x10e095=0x0,_0x1ee187=0x0;_0x336f59=_0x10e095=_0x1ee187=Math[_0x12c68c(0x24a)](_0x5ad41a,_0x3e9d06/0x2,_0x4badde/0x2),_0x36c14b[_0x12c68c(0x387)](),_0x36c14b['moveTo'](_0x336f59,0x0),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06-_0x10e095,0x0),_0x36c14b['arc'](_0x3e9d06-_0x10e095,_0x10e095,_0x10e095,Math['PI']*0x3/0x2,0x0,!0x1),_0x36c14b[_0x12c68c(0x1d4)](_0x3e9d06,_0x4badde-_0x1ee187),_0x36c14b[_0x12c68c(0x27e)](_0x3e9d06-_0x1ee187,_0x4badde-_0x1ee187,_0x1ee187,0x0,Math['PI']/0x2,!0x1),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x4badde),_0x36c14b[_0x12c68c(0x1d4)](0x0,_0x336f59),_0x36c14b[_0x12c68c(0x27e)](_0x336f59,_0x336f59,_0x336f59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36c14b[_0x12c68c(0x330)](),_0x185f0e[_0x12c68c(0x37b)]&&(_0x36c14b[_0x12c68c(0x2b8)](),_0x36c14b[_0x12c68c(0x30e)]=_0x185f0e[_0x12c68c(0x37b)],_0x185f0e[_0x12c68c(0x393)]===_0x12c68c(0x243)?_0x36c14b['fill']('evenodd'):_0x36c14b[_0x12c68c(0x37b)](),_0x36c14b[_0x12c68c(0x3b4)]());}class ve extends _0x2a2a66{constructor(_0x47af25,_0x54ec2d){const _0x38a471=_0x3a7433;super(_0x47af25,_0x54ec2d),_(this,'color'),_(this,_0x38a471(0x3f6)),(this[_0x38a471(0x20f)]=_0x54ec2d==null?void 0x0:_0x54ec2d['color'],this['text']=_0x54ec2d==null?void 0x0:_0x54ec2d['text']);}static[_0x3a7433(0x2fb)](_0x29955c,_0x10db39){const _0x5b6547=_0x3a7433,{text:_0x15a676,color:_0x8fbbdb}=_0x10db39;_0x29955c[_0x5b6547(0x2b8)](),_0x29955c[_0x5b6547(0x33b)]=_0x5b6547(0x251);const _0xb94de9=_0x29955c[_0x5b6547(0x2ad)](_0x15a676)[_0x5b6547(0x227)],_0xd1c94e=Math[_0x5b6547(0x24a)](_0xb94de9+0x2*Re,at);ji(_0x29955c,{'height':Q,'radius':0x4,'width':_0xd1c94e,'fill':_0x8fbbdb}),_0x29955c[_0x5b6547(0x30e)]=_0x5b6547(0x37c);const _0x55d6a0=Re,_0x4b2c77=Q-Vi,_0x2c651e=at-0x2*Re;if(_0xb94de9>_0x2c651e){let _0x2a67c9='',_0x5688b5=0x0;for(const _0x21663c of _0x15a676){const _0x45b2ab=_0x29955c[_0x5b6547(0x2ad)](_0x21663c)[_0x5b6547(0x227)];if(_0x5688b5+_0x45b2ab<=_0x2c651e-_0x29955c[_0x5b6547(0x2ad)](_0x5b6547(0x2ab))[_0x5b6547(0x227)])_0x2a67c9+=_0x21663c,_0x5688b5+=_0x45b2ab;else{_0x2a67c9+=_0x5b6547(0x2ab);break;}}_0x29955c[_0x5b6547(0x1c4)](_0x2a67c9,_0x55d6a0,_0x4b2c77);}else _0x29955c['fillText'](_0x15a676,_0x55d6a0,_0x4b2c77);_0x29955c[_0x5b6547(0x3b4)]();}[_0x3a7433(0x237)](_0x3cc0ce){const _0x2d3002=_0x3a7433;ve[_0x2d3002(0x2fb)](_0x3cc0ce,this);}}const De=_0x3a7433(0x1c0),Xi='collab-text-range-',Gi=_0x3a7433(0x1b0),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3a7433(0x340);class ct{constructor(_0x3945ea,_0x4a92d0,_0x2829bc,_0x2005d3){const _0x3420e4=_0x3a7433;_(this,'_shapes',[]),_(this,_0x3420e4(0x338),null),_(this,'_textBubble',null),_(this,_0x3420e4(0x3a3),null),_(this,'_hideTimer',null),_(this,_0x3420e4(0x249),null),(this[_0x3420e4(0x1c7)]=_0x3945ea,this[_0x3420e4(0x3c5)]=_0x4a92d0,this['_docSkeleton']=_0x2829bc,this['_document']=_0x2005d3,this[_0x3420e4(0x226)]());}set[_0x3a7433(0x363)](_0x56ee6c){const _0xda9513=_0x3a7433;_0x56ee6c?(this[_0xda9513(0x3a3)]&&this[_0xda9513(0x3a3)][_0xda9513(0x36b)](),this[_0xda9513(0x326)]&&this['_textBubble'][_0xda9513(0x1bc)]()):(this['_anchorDot']&&this['_anchorDot'][_0xda9513(0x1bc)](),this[_0xda9513(0x326)]&&this[_0xda9513(0x326)][_0xda9513(0x36b)]());}[_0x3a7433(0x2c4)](){const _0x216ee8=_0x3a7433;for(const _0x3e4b7a of this[_0x216ee8(0x38b)])_0x3e4b7a[_0x216ee8(0x2c4)]();this['_textBubble']&&this[_0x216ee8(0x326)]['dispose'](),this[_0x216ee8(0x3a3)]&&this[_0x216ee8(0x3a3)][_0x216ee8(0x2c4)](),this[_0x216ee8(0x338)]&&this['_anchor']['dispose'](),this[_0x216ee8(0x249)]&&this[_0x216ee8(0x249)]();}[_0x3a7433(0x226)](){const _0x32e605=_0x3a7433;var _0x3f173b;const {_docSkeleton:_0x150b2e,_document:_0x2e3611}=this,{color:_0x2268c4,name:_0x2c15c5,ranges:_0x59e088}=this[_0x32e605(0x1c7)],_0x4c38b9=_0x2e3611[_0x32e605(0x2b2)](),{docsLeft:_0x1c4036,docsTop:_0xac3aa6}=_0x4c38b9,_0x25d925=new _0x388172(_0x4c38b9,_0x150b2e);for(const {startOffset:_0x4fbd9b,endOffset:_0x47dee9,rangeType:_0x359115,segmentId:_0x542a4b,segmentPage:_0x191a2b,collapsed:_0x3ca612,isActive:_0xadf3c5}of _0x59e088){const _0x34efc5=_0x150b2e[_0x32e605(0x1fb)](_0x4fbd9b,!0x0,_0x542a4b,_0x191a2b);let _0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9,!0x0,_0x542a4b,_0x191a2b);if(_0x164bc6==null&&(_0x164bc6=_0x150b2e[_0x32e605(0x1fb)](_0x47dee9-0x1,!0x1,_0x542a4b,_0x191a2b)),_0xadf3c5){const {contentBoxPointGroup:_0x1f8c6b}=_0x25d925[_0x32e605(0x255)](_0x164bc6,_0x164bc6);if(_0x1f8c6b[_0x32e605(0x34d)]===0x0)continue;this['_drawAnchor'](_0x2268c4,_0x1f8c6b,_0x1c4036,_0xac3aa6,_0x2c15c5),this[_0x32e605(0x249)]=this['_handleHover']();}if(_0x34efc5&&_0x164bc6){if(_0x359115===_0x1de649[_0x32e605(0x1b7)]){const _0x2eefcf=new _0x2166fb(_0x4c38b9,_0x150b2e),{pointGroup:_0x13c1a6}=(_0x3f173b=_0x2eefcf[_0x32e605(0x255)](_0x34efc5,_0x164bc6))!=null?_0x3f173b:{};if(_0x13c1a6==null||_0x13c1a6[_0x32e605(0x34d)]===0x0)continue;this[_0x32e605(0x241)](_0x2268c4,_0x13c1a6,_0x1c4036,_0xac3aa6);}else{if(!_0x3ca612){const {borderBoxPointGroup:_0x528cd2}=_0x25d925[_0x32e605(0x255)](_0x34efc5,_0x164bc6);if(_0x528cd2['length']===0x0)continue;this[_0x32e605(0x35c)](_0x2268c4,_0x528cd2,_0x1c4036,_0xac3aa6);}}}}}['_drawAnchor'](_0xb98222,_0x44ccd8,_0x28a136,_0x57d29e,_0x4355b0){const _0x20a9e0=_0x3a7433,_0x1091aa=this[_0x20a9e0(0x23e)](_0x44ccd8),{left:_0x3f9bfe,top:_0x27761e,height:_0xfc3f4a}=_0x1091aa,_0x8dbd90=this[_0x20a9e0(0x269)](),_0x381e24=zi/_0x8dbd90,_0x94382d=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e,'height':_0xfc3f4a,'width':Ki,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':_0x381e24,'stroke':Ji,'evented':!0x0});this[_0x20a9e0(0x338)]=_0x94382d,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x94382d,_0x3e1dcd);const _0x47a9d1=new _0x4dfe17(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Ne/0x2,'height':Ne,'width':Ne,'fill':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'strokeWidth':0x0,'stroke':_0xb98222||_0x25acc8(_0x164b29[_0x20a9e0(0x3e8)],0x0),'evented':!0x1});this[_0x20a9e0(0x3a3)]=_0x47a9d1,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x47a9d1,_0x3e1dcd);const _0x988b62=new ve(De+_0x3f0ee8(z),{'left':_0x3f9bfe+_0x28a136-_0x381e24,'top':_0x27761e+_0x57d29e-Q,'text':_0x4355b0,'color':_0xb98222});this[_0x20a9e0(0x326)]=_0x988b62,this[_0x20a9e0(0x3c5)][_0x20a9e0(0x21c)](_0x988b62,_0x3e1dcd),this[_0x20a9e0(0x363)]=!0x1;}[_0x3a7433(0x3be)](){const _0x188fa6=_0x3a7433,_0x1354b8=this[_0x188fa6(0x338)]['onPointerEnter$'][_0x188fa6(0x382)](()=>{const _0x583925=_0x188fa6;this[_0x583925(0x363)]=!0x0;}),_0x933964=this[_0x188fa6(0x338)][_0x188fa6(0x260)]['subscribeEvent'](()=>{const _0x418038=_0x188fa6;this[_0x418038(0x259)]&&clearTimeout(this[_0x418038(0x259)]),this[_0x418038(0x259)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5c0e24=_0x188fa6;_0x1354b8['unsubscribe'](),_0x933964[_0x5c0e24(0x38e)]();};}[_0x3a7433(0x35c)](_0x1c1691,_0x5ef632,_0x34e086,_0x2024ed){const _0x4f9b44=_0x3a7433,_0x4d2d64=new _0x3be8fa(_0x1c1691)['setAlpha'](0.2)['toRgbString'](),_0x37788d=new _0x5b22a5(Xi+_0x3f0ee8(z),{'pointsGroup':_0x5ef632,'fill':_0x4d2d64||_0x25acc8(_0x164b29[_0x4f9b44(0x3e8)],0.2),'left':_0x34e086,'top':_0x2024ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f9b44(0x38b)][_0x4f9b44(0x3b0)](_0x37788d),this['_scene'][_0x4f9b44(0x21c)](_0x37788d,_0x3e1dcd);}[_0x3a7433(0x241)](_0x3bea46,_0xac66e1,_0x2fc19f,_0x1f62f2){const _0x1e375c=_0x3a7433,_0x1761de=new _0x3be8fa(_0x3bea46)['setAlpha'](0.2)[_0x1e375c(0x3ab)](),_0x687bcc=new _0x5b22a5(Gi+_0x3f0ee8(z),{'pointsGroup':_0xac66e1,'fill':_0x1761de||_0x25acc8(_0x164b29[_0x1e375c(0x3e8)],0.2),'left':_0x2fc19f,'top':_0x1f62f2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1e375c(0x38b)][_0x1e375c(0x3b0)](_0x687bcc),this[_0x1e375c(0x3c5)]['addObject'](_0x687bcc,_0x3e1dcd);}['_getAnchorBounding'](_0x3e9627){const _0x48be00=_0x3e9627[0x0],_0x13eecd=_0x48be00[0x0],_0x506064=_0x48be00[0x2],{x:_0x3e5a02,y:_0x4a16a3}=_0x13eecd,{x:_0x88260f,y:_0x349b4d}=_0x506064;return{'left':_0x3e5a02,'top':_0x4a16a3,'width':_0x88260f-_0x3e5a02,'height':_0x349b4d-_0x4a16a3};}[_0x3a7433(0x269)](){const _0x1ae4af=_0x3a7433,{scaleX:_0x8b79e4,scaleY:_0x27a584}=this[_0x1ae4af(0x3c5)][_0x1ae4af(0x2b3)]();return Math[_0x1ae4af(0x346)](_0x8b79e4,_0x27a584);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x489000,_0x2d4852,_0x47bd21,_0x48192f)=>{const _0x933c3c=_0x3a7433;for(var _0x2ed006=_0x48192f>0x1?void 0x0:_0x48192f?Zi(_0x2d4852,_0x47bd21):_0x2d4852,_0xc2a0d6=_0x489000[_0x933c3c(0x34d)]-0x1,_0x5ed45b;_0xc2a0d6>=0x0;_0xc2a0d6--)(_0x5ed45b=_0x489000[_0xc2a0d6])&&(_0x2ed006=_0x5ed45b(_0x2ed006)||_0x2ed006);return _0x2ed006;},ie=(_0x6644ab,_0x2a43aa)=>(_0x392c1b,_0x5256cd)=>_0x2a43aa(_0x392c1b,_0x5256cd,_0x6644ab);let Fe=class extends _0x572f10{constructor(_0x2f80da,_0x154da9,_0x567679,_0x31a7d9,_0x2789d6){const _0x67f9c2=_0x3a7433;super(),_(this,'_cursorShapes',[]),_(this,_0x67f9c2(0x2ce),[]),(this[_0x67f9c2(0x374)]=_0x2f80da,this[_0x67f9c2(0x356)]=_0x154da9,this[_0x67f9c2(0x2a0)]=_0x567679,this[_0x67f9c2(0x212)]=_0x31a7d9,this[_0x67f9c2(0x377)]=_0x2789d6,this[_0x67f9c2(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2d78e8=_0x3a7433,_0x4bd5ce=this[_0x2d78e8(0x374)][_0x2d78e8(0x223)],_0x53b833=this['_docSkeletonManagerService'];this[_0x2d78e8(0x3f9)](_0x3f4d03([this[_0x2d78e8(0x2a0)][_0x2d78e8(0x26f)](_0x4bd5ce),this[_0x2d78e8(0x377)][_0x2d78e8(0x22c)]])[_0x2d78e8(0x368)](_0x4024aa(([_0x981416,_0x4040e7])=>({'skeleton':_0x53b833[_0x2d78e8(0x2cf)](),'cursors':[..._0x981416['values']()][_0x2d78e8(0x1d5)](_0x1248b2=>({..._0x1248b2,'color':this[_0x2d78e8(0x377)]['getColorFromTheme'](_0x1248b2[_0x2d78e8(0x20f)])}))})))[_0x2d78e8(0x395)](_0x2182ed=>{if(this['_removeCollabCursors'](),_0x2182ed){const {skeleton:_0x561c33,cursors:_0x4c0a07}=_0x2182ed;this['_updateCollabCursors'](_0x561c33,_0x4c0a07);}})),this[_0x2d78e8(0x2d7)](),this['_initCommandExecutedListener']();}[_0x3a7433(0x38f)](_0x1bc4c8,_0x2f753a){const _0x3922a1=_0x3a7433,{scene:_0x2fa54e,mainComponent:_0x53956}=this['_context'],_0x490e33=_0x2f753a[_0x3922a1(0x3d1)](_0x462661=>new ct(_0x462661,_0x2fa54e,_0x1bc4c8,_0x53956));this[_0x3922a1(0x245)]=_0x490e33,this[_0x3922a1(0x2ce)]=_0x2f753a;}[_0x3a7433(0x2ac)](){const _0xd1aa00=_0x3a7433;this['_removeCollabCursors']();const {scene:_0x14882a,mainComponent:_0x378032}=this[_0xd1aa00(0x374)],_0x15c157=this[_0xd1aa00(0x356)][_0xd1aa00(0x2cf)](),_0x49a24e=this['_cursors'][_0xd1aa00(0x3d1)](_0x5ce1d2=>new ct(_0x5ce1d2,_0x14882a,_0x15c157,_0x378032));this[_0xd1aa00(0x245)]=_0x49a24e;}[_0x3a7433(0x22b)](){const _0x23ac66=_0x3a7433;this[_0x23ac66(0x245)][_0x23ac66(0x2eb)](_0x2e972c=>_0x2e972c[_0x23ac66(0x2c4)]()),this['_cursorShapes']=[];}[_0x3a7433(0x275)](){const _0x3d3665=[_0x49f1f4['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x318394=>{const _0x1bc16e=_0x474c;_0x3d3665[_0x1bc16e(0x2f2)](_0x318394['id'])&&_0x318394['params']['unitId']===this['_context']['unitId']&&this[_0x1bc16e(0x2ac)]();}));}[_0x3a7433(0x2d7)](){const _0x577a64=_0x3a7433;this[_0x577a64(0x3f9)](_0x58d8c3(this['_context'][_0x577a64(0x2d6)][_0x577a64(0x279)])[_0x577a64(0x368)](_0x3c1d7f(_0x28ab03=>_0x28ab03[_0x577a64(0x409)]===_0x309312[_0x577a64(0x1b9)]),_0x33ced3(0x10))[_0x577a64(0x395)](()=>{const _0x2c8ce2=_0x577a64;this[_0x2c8ce2(0x2ac)]();}));}};Fe=Qi([ie(0x1,_0x27384c(_0xf10ffb)),ie(0x2,_0x27384c(H)),ie(0x3,_0x23b771),ie(0x4,_0x27384c(_0x54d291))],Fe);const qi=0x1,en=1.5;class tn extends _0x2a2a66{constructor(_0x4928b4,_0x576c16){const _0x13acbe=_0x3a7433;super(_0x4928b4,_0x576c16),_(this,_0x13acbe(0x38a)),_(this,'_hovered',!0x1),_(this,_0x13acbe(0x3fe)),_(this,'_name',''),_(this,_0x13acbe(0x3ac),_0x13acbe(0x1b4)),_(this,_0x13acbe(0x2fe)),(_0x576c16&&this[_0x13acbe(0x403)](_0x576c16),this[_0x13acbe(0x2a7)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x0})),this[_0x13acbe(0x260)][_0x13acbe(0x382)](()=>this[_0x13acbe(0x403)]({'hovered':!0x1})));}[_0x3a7433(0x403)](_0x2d7a29){const _0x17e91f=_0x3a7433;var _0x52df96,_0x5999f8,_0x321e99,_0x39c90d,_0x1dcfab,_0x3af465;this[_0x17e91f(0x38a)]=(_0x52df96=_0x2d7a29[_0x17e91f(0x20f)])!=null?_0x52df96:this[_0x17e91f(0x38a)],this['_hovered']=(_0x5999f8=_0x2d7a29[_0x17e91f(0x31f)])!=null?_0x5999f8:this[_0x17e91f(0x319)],this[_0x17e91f(0x3fe)]=(_0x321e99=_0x2d7a29[_0x17e91f(0x3f2)])!=null?_0x321e99:this[_0x17e91f(0x3fe)],this[_0x17e91f(0x2e8)]=(_0x39c90d=_0x2d7a29[_0x17e91f(0x386)])!=null?_0x39c90d:this['_name'],this['_labelPosition']=(_0x1dcfab=_0x2d7a29['labelPosition'])!=null?_0x1dcfab:this[_0x17e91f(0x3ac)],this[_0x17e91f(0x2fe)]=(_0x3af465=_0x2d7a29[_0x17e91f(0x1be)])!=null?_0x3af465:this[_0x17e91f(0x2fe)],this['transformByState']({'width':_0x2d7a29[_0x17e91f(0x227)],'height':_0x2d7a29[_0x17e91f(0x2af)]});}[_0x3a7433(0x3a7)](_0x214f14){const _0x46d942=_0x3a7433,{row:_0x41700e,column:_0x1c3850}=_0x214f14;if(_0x41700e>=this[_0x46d942(0x3fe)][_0x46d942(0x3c8)]&&_0x41700e<=this['_range']['endRow']&&_0x1c3850>=this[_0x46d942(0x3fe)][_0x46d942(0x2fd)]&&_0x1c3850<=this[_0x46d942(0x3fe)][_0x46d942(0x39f)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3a7433(0x391)](_0x5944b1){return!0x1;}[_0x3a7433(0x237)](_0x2cb7a0){const _0x56389a=_0x3a7433;_0x4dfe17[_0x56389a(0x2fb)](_0x2cb7a0,{'width':this['width'],'height':this[_0x56389a(0x2af)],'strokeWidth':en,'stroke':this[_0x56389a(0x38a)],'evented':!0x1,'fill':this[_0x56389a(0x2fe)]}),this[_0x56389a(0x319)]&&(_0x2cb7a0['save'](),_0x2cb7a0['transform'](0x1,0x0,0x0,0x1,this[_0x56389a(0x227)],this['_labelPosition']===_0x56389a(0x300)?0x0:-Q),ve[_0x56389a(0x2fb)](_0x2cb7a0,{'text':this[_0x56389a(0x2e8)],'color':this[_0x56389a(0x38a)]}),_0x2cb7a0[_0x56389a(0x3b4)]());}}var sn=Object[_0x3a7433(0x210)],nn=(_0x48e805,_0x3bbf22,_0x46ffc7,_0x3015ce)=>{const _0x3c4283=_0x3a7433;for(var _0x2dd8e6=_0x3015ce>0x1?void 0x0:_0x3015ce?sn(_0x3bbf22,_0x46ffc7):_0x3bbf22,_0xc11353=_0x48e805[_0x3c4283(0x34d)]-0x1,_0x35843a;_0xc11353>=0x0;_0xc11353--)(_0x35843a=_0x48e805[_0xc11353])&&(_0x2dd8e6=_0x35843a(_0x2dd8e6)||_0x2dd8e6);return _0x2dd8e6;},be=(_0x136beb,_0x2cfda9)=>(_0x5661e7,_0x2337b9)=>_0x2cfda9(_0x5661e7,_0x2337b9,_0x136beb);const rn=0x1389;let ke=class extends _0x572f10{constructor(_0x59124f,_0x537fa9,_0x3edef7,_0x38ee5){const _0x2ca67a=_0x3a7433;super(),_(this,_0x2ca67a(0x2ce),new Set()),_(this,_0x2ca67a(0x36d),null),(this[_0x2ca67a(0x374)]=_0x59124f,this[_0x2ca67a(0x24d)]=_0x537fa9,this[_0x2ca67a(0x2a0)]=_0x3edef7,this[_0x2ca67a(0x377)]=_0x38ee5,this[_0x2ca67a(0x20b)]());}[_0x3a7433(0x20b)](){const _0x2815fb=_0x3a7433;this[_0x2815fb(0x24d)]['currentSkeleton$'][_0x2815fb(0x368)](_0x45dbd4(this[_0x2815fb(0x34e)]),_0x174e30(_0x11e539=>{const _0x3a0b79=_0x2815fb;if(_0x11e539){const _0x489866=_0x11e539[_0x3a0b79(0x23a)];return _0x3f4d03(this[_0x3a0b79(0x2a0)][_0x3a0b79(0x26f)](this[_0x3a0b79(0x374)]['unitId']),this[_0x3a0b79(0x377)][_0x3a0b79(0x22c)])[_0x3a0b79(0x368)](_0x4024aa(([_0x5beef4,_0x47bec5])=>{const _0x4f05ff=_0x3a0b79,_0x225b6b=new Map();return _0x5beef4[_0x4f05ff(0x2eb)]((_0x265d4c,_0x29381b)=>{const _0x45b3a1=_0x4f05ff;if(_0x265d4c['sheetID']===_0x489866){const _0x43c0bb={..._0x265d4c};_0x43c0bb[_0x45b3a1(0x20f)]=this[_0x45b3a1(0x377)][_0x45b3a1(0x290)](_0x265d4c[_0x45b3a1(0x20f)]),_0x225b6b[_0x45b3a1(0x1bf)](_0x29381b,_0x43c0bb);}}),{'skeleton':_0x11e539,'cursors':_0x225b6b};}));}return _0x44fc3f({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x189ac1,cursors:_0x112b7a})=>{const _0x1bf499=_0x2815fb;this[_0x1bf499(0x22b)](),_0x189ac1&&this[_0x1bf499(0x38f)](_0x189ac1,_0x112b7a);}),this[_0x2815fb(0x24d)][_0x2815fb(0x299)][_0x2815fb(0x395)](_0xc98208=>{const _0x3af684=_0x2815fb;if(_0xc98208==null)return;const {skeleton:_0x331b90}=_0xc98208,{scene:_0x3a7677}=this[_0x3af684(0x374)];_0x3a7677['onPointerMove$'][_0x3af684(0x382)](_0x44a666(_0xc0a1e0=>{const _0x26bb5d=_0x3af684;var _0x28d417,_0x4f6b26;const {offsetX:_0x5a2dee,offsetY:_0x5bf726}=_0xc0a1e0,{x:_0x2808bc,y:_0x5783a9}=_0x3a7677['getRelativeToViewportCoord'](_0x4aee94[_0x26bb5d(0x22d)]([_0x5a2dee,_0x5bf726])),{scaleX:_0xf5c4e,scaleY:_0x41e5d4}=_0x3a7677[_0x26bb5d(0x2b3)](),_0x487e14=_0x3a7677['getViewport'](_0x5d3294[_0x26bb5d(0x1ee)]),_0x4b53ab=_0x3a7677[_0x26bb5d(0x38c)](_0x4aee94[_0x26bb5d(0x22d)]([_0x2808bc,_0x5783a9]),_0x487e14),_0x2d5246=_0x331b90[_0x26bb5d(0x2aa)](_0x5a2dee,_0x5bf726,_0xf5c4e,_0x41e5d4,_0x4b53ab);((_0x28d417=this['_lastPointer'])==null?void 0x0:_0x28d417['column'])===_0x2d5246['column']&&((_0x4f6b26=this[_0x26bb5d(0x36d)])==null?void 0x0:_0x4f6b26[_0x26bb5d(0x200)])===_0x2d5246[_0x26bb5d(0x200)]||this[_0x26bb5d(0x2ce)][_0x26bb5d(0x2eb)](_0xbde128=>{const _0x41a841=_0x26bb5d;_0xbde128[_0x41a841(0x3a7)](_0x2d5246);});},0x64));});}[_0x3a7433(0x38f)](_0x70fe8d,_0x27b59b){const _0x1cd022=_0x3a7433;var _0x198556;const _0x289442=(_0x198556=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x198556[_0x1cd022(0x373)];if(!_0x289442)return;const _0x1a26db=this['_getSheetObject']();if(!_0x1a26db)return;this[_0x1cd022(0x2ce)][_0x1cd022(0x2eb)](_0x10ec9d=>{const _0x4bbd8c=_0x1cd022;_0x10ec9d[_0x4bbd8c(0x1e1)]();});const {scene:_0x5943b1}=_0x1a26db,_0x2bddff=on(Array['from'](_0x27b59b[_0x1cd022(0x2ef)]()))[_0x1cd022(0x3d1)](_0x13113d=>{const _0x373e25=_0x1cd022,{color:_0x37c172,range:_0x137f02,name:_0x31ff95,selection:_0x1130f2,sheetID:_0x2d99a9}=_0x13113d,{startColumn:_0x19463a,startRow:_0x2a59aa,endColumn:_0xbce5b9,endRow:_0x17255f}=_0x137f02,_0x48d86b=_0x3ba7ce(_0x2a59aa,_0x19463a,_0x5943b1,_0x289442),_0x46ff06=_0x3ba7ce(_0x17255f,_0xbce5b9,_0x5943b1,_0x289442),{columnHeaderHeightAndMarginTop:_0x58eed1}=_0x289442,{startX:_0x1f1514,startY:_0x5bd0e8}=_0x48d86b,{endX:_0x1d56aa,endY:_0x1eae91}=_0x46ff06,_0x246584=_0x1d56aa-_0x1f1514,_0x1bba81=_0x1eae91-_0x5bd0e8,_0x261c8e={'labelPosition':_0x5bd0e8-_0x58eed1>=Q?_0x373e25(0x1b4):_0x373e25(0x300),'sheetID':_0x2d99a9,'range':_0x137f02,'color':_0x37c172,'name':_0x31ff95,'selection':_0x1130f2,'left':_0x1f1514,'top':_0x5bd0e8,'width':_0x246584,'height':_0x1bba81,'evented':!0x1,'zIndex':rn};return new tn(_0x31ff95,_0x261c8e);});_0x5943b1[_0x1cd022(0x406)](_0x2bddff,qi),this[_0x1cd022(0x2ce)]=new Set(_0x2bddff);}[_0x3a7433(0x22b)](){const _0x1a4f06=_0x3a7433;var _0xf1b4c3;(_0xf1b4c3=this['_cursors'])==null||_0xf1b4c3[_0x1a4f06(0x2eb)](_0x1ec03b=>_0x1ec03b[_0x1a4f06(0x2c4)]());}[_0x3a7433(0x1da)](){const _0x2b20d1=_0x3a7433;return _0xbc8dbe(this['_context']['unit'],this[_0x2b20d1(0x374)]);}};ke=nn([be(0x1,_0x27384c(_0x3e00d6)),be(0x2,_0x27384c(H)),be(0x3,_0x27384c(_0x54d291))],ke);function on(_0x3b61e9){const _0x5eab2d=_0x3a7433,_0x52283f=new Map();return _0x3b61e9[_0x5eab2d(0x2eb)](_0x20eea2=>{const _0x90d59f=_0x5eab2d;if(_0x52283f['has'](_0x20eea2[_0x90d59f(0x1c9)])){const _0x5880af=_0x52283f[_0x90d59f(0x359)](_0x20eea2[_0x90d59f(0x1c9)]);_0x5880af[_0x90d59f(0x386)]+=',\x20'+_0x20eea2['name'];}else _0x52283f[_0x90d59f(0x1bf)](_0x20eea2['selection'],_0x20eea2);}),Array[_0x5eab2d(0x27d)](_0x52283f[_0x5eab2d(0x2ef)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1778e1,_0xa9ad6d,_0x1c13cc,_0x4e71d6)=>{const _0x1ec3b7=_0x3a7433;for(var _0x383a9e=_0x4e71d6>0x1?void 0x0:_0x4e71d6?an(_0xa9ad6d,_0x1c13cc):_0xa9ad6d,_0x241d45=_0x1778e1[_0x1ec3b7(0x34d)]-0x1,_0x11b978;_0x241d45>=0x0;_0x241d45--)(_0x11b978=_0x1778e1[_0x241d45])&&(_0x383a9e=_0x11b978(_0x383a9e)||_0x383a9e);return _0x383a9e;},F=(_0x1e213d,_0x4cdafc)=>(_0xcd4c75,_0x43fdb0)=>_0x4cdafc(_0xcd4c75,_0x43fdb0,_0x1e213d);let _e=class extends _0x1c0642{constructor(_0x4dab2a,_0x2feb19,_0x5e81c0,_0x405e45,_0x36a8b7,_0x5ce15d){const _0x1fb441=_0x3a7433;super(),this[_0x1fb441(0x405)]=_0x4dab2a,this[_0x1fb441(0x332)]=_0x2feb19,this['_collaborationUIEventService']=_0x5e81c0,this[_0x1fb441(0x2a3)]=_0x405e45,this['_notificationService']=_0x36a8b7,this['_localeService']=_0x5ce15d,this['_setupBeforeClosingHandler'](),this[_0x1fb441(0x20c)]();}[_0x3a7433(0x2ea)](){const _0x2d846b=_0x3a7433;this['disposeWithMe'](this['_beforeCloseService'][_0x2d846b(0x3e4)](()=>{const _0x1b027a=_0x2d846b;if(this[_0x1b027a(0x332)]['saveTaskMap']['size'])return this[_0x1b027a(0x306)]['t'](_0x1b027a(0x407));}));}['_initEvent'](){const _0x3972b1=_0x3a7433;this[_0x3972b1(0x3f9)](this[_0x3972b1(0x292)][_0x3972b1(0x2a5)]['subscribe'](_0x351078=>{const _0x51f708=_0x3972b1;_0x351078['id']===_0xb775dc[_0x51f708(0x2bc)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t'](_0x51f708(0x24b))}),_0x351078['id']===_0xb775dc[_0x51f708(0x268)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t']('collaboration.closeRoom')}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e5)]&&this[_0x51f708(0x3eb)]['show']({'title':this[_0x51f708(0x306)]['t'](_0x51f708(0x1d6)),'content':this[_0x51f708(0x306)]['t']('permission.content'),'type':'error','duration':0x0}),_0x351078['id']===_0xb775dc[_0x51f708(0x218)]&&this['_messageService']['show']({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x342))+'('+_0x351078[_0x51f708(0x217)]+')'}),_0x351078['id']===_0xb775dc[_0x51f708(0x2e1)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x239)],'content':this[_0x51f708(0x306)]['t'](_0x351078['data']||'')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3fb)]&&this['_messageService'][_0x51f708(0x1bc)]({'type':_0x5e610d['Warning'],'content':this[_0x51f708(0x306)]['t']('session.will-retry')}),_0x351078['id']===_0xb775dc[_0x51f708(0x3e5)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this['_localeService']['t'](_0x51f708(0x257))}),_0x351078['id']===_0xb775dc[_0x51f708(0x28a)]&&this[_0x51f708(0x2a3)][_0x51f708(0x1bc)]({'type':_0x5e610d[_0x51f708(0x354)],'content':this[_0x51f708(0x306)]['t']('session.collaboration-timeout')});}));}};function _0x4974(){const _0x2f82af=['split','_maxFormulaLimit','from','arc','none','_onCursorDelete','getTypeOfUnitDisposed$','MoveRangeCommandId','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','_updateURLWithCurrentState','defineProperty','mutations','_startDocCollabCursor','_clearPolling','SUBMIT_CHANGESET_TIMEOUT','saveOfflineData','bind','createInstance','collabStatus.syncing','_transformService','getColorFromTheme','_memberService','_collaborationUIEventService','next','InsertRangeMoveDownCommandId','textRanges','origin','Failed','cursorInfo$','currentSkeleton$','url(#$1','urlChange$','_checkAndWaitForCalculationPermission','_scheduleHeartbeat','_instanceService','0\x200\x2017\x2016','_collabCursorController','stageInfo','cursorInfo','_messageService','_univerInstanceService','event$','FETCH_MISS','onPointerEnter$','_showGuardMessage','UNIVER_SHEET','getCellPositionByOffset','...','_refreshCollabCursors','measureText','wsSessionTicketUrl','height','REDEMPTION_USER_REDEEM_TIMES_EXCEED','svg','getOffsetConfig','getAncestorScale','newValue','find','asObservable','M0\x200H16V16H0z','save','_uploadLog','addHandlerCallback','getCurrentRevOfUnit','OTHER_CLIENT_EDITING','getParam','_startSheetCollabCursor','executionId','sessionStatus$','_getSessionTicket','getUnhiddenWorksheets','transformSelections','dispose','_scheduleSaving','code','entityInit$','ticket','_initUnhandledRejectionListener','getUndoRedoMutationParamsCache','string','UNIVER_DOC','_saveCache','_cursors','getSkeleton','_config','APPLY_PERMISSION_DENIED','entries','whenReady','addClipboardHook','DATA_SOURCE_TOO_LARGE','engine','_initResize','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_initStatusComponent','univerjs-icon\x20univerjs-icon-','_initCommandInterceptor','transformMutation','clearInterval','syncEditingCollabCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OffLineIcon','JOIN_ROOM_FAILED','_clearOtherTimers','executeCommand','_assignedColors','PERMISSION_DENIED','green.600','setConfig','_name','_initEntityListener','_setupBeforeClosingHandler','forEach','_docSyncEditingCollabCursorService','_logService','post','values','INTERNAL_ERROR','use','includes','RemoveRowCommandId','ENTITLE_DUP_SUBSCRIPTION','getRenderById','disposeUnit','path','_handleJoinEvent','reconnect','getStateCache','drawWith','activeSheet$','startColumn','_backgroundColor','toString','bottom','assignAColorForMemberID','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','unit','jiqing.500','_localeService','INVITE_CODE_HAS_BEEN_UES','SNAPSHOT_HAS_BEEN_REMOVED','defIds','START_CALCULATION','_send','limitInfo','currentUsage','fillStyle','createSocket','772005MXKUCP','reason','156lmfNLd','_cachedData','?taskId=','InsertColCommandId','invokeId','LICENSE_DISTRO_REJECTED','_transformPreviousActiveRange','_hovered','div','_selfUnitIDs','USER_IS_ANONYMOUS','white','complete','hovered','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isArray','_collabSessionService','registerRefRange','_online','_refRangeService','_textBubble','_monkeyPatchLogService','_initDependencies','translate(.97)','blue.400','_initUserListener','popstate','runId','APPLY_DUPLICATED','SYNCED','closePath','PAYMENT_CHANNEL_NOT_SUPPORT','_localCacheService','catch','_getFormulaLimitStatus','formula.calculation.unable','[CollaborationDataLoaderController]','_memberID','_anchor','_session','editingUnit','font','some','OFFLINE','attrs','429936xDRAQc','rgba(255,\x20255,\x20255,\x200.01)','now','collaboration.closeRoom','_configService','_registerRenderDependencies','red.300','max','m1Prime','/universer-api/license/formula/limit/status','addEventListener','startsWith','getDocRanges','off-line-icon','length','dispose$','maxFormulaLimit','UniverIcon','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','collabCursorState$','Error','REDEMPTION_CODE_NOT_STARTED','_docSkeletonManagerService','LICENSE_EXPORT_SIZE_EXCEEDED','RemoveColCommandId','get','url(#on-line-icon_clip0_910_349)','colorChannel1','_drawTextRange','UPDATE_CURSOR','displayName','has','_uiPartsService','ALREADY_EXISTS','OTHER_CLIENTS_EDITING','_hover','_hasFormulaInDirtyRanges','isActive','purple.300','130907EkeQZN','pipe','setActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','hide','on-line-icon_clip0_910_349','_lastPointer','searchParams','YUUMI_ALL_TABLES_IS_INVALID','ACTIVE_UNIT_EVENT_CHANNEL','YUUMI_AI_RUN_FAILED','stage','skeleton','_context','replaceDocRanges','removeEventListener','_themeService','YUUMI_SUBSCRIPTION_NOT_FOUND','_handleLeaveEvent','doc.mutation.rich-text-editing','fill','#FFF','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CONNECTOR_DATA_TOO_LARGE','getValue','AWAITING_WITH_PENDING','getFocusedUnit','subscribeEvent','_currentUsage','all','getUnitId','name','beginPath','ERROR_AGAIN','_toggleOnline','_color','_shapes','getVpScrollXYInfoByPosToVp','beforeCommandExecuted','unsubscribe','_updateCollabCursors','getConfig','triggerDblclick','_pollingInterval','fillRule','USER_NOT_FOUND','subscribe','REDEMPTION_CODE_HAS_BEEN_CREATED','colno','TEXT','_docTransformIMECacheService','off-line-icon_clip0_910_343','SNAPSHOT_INVALID_SNAPSHOT','getCollabEntity$','_renderManagerService','roomMembers$','endColumn','_scheduleClearOtherTimer','ranges','WECHAT_HAS_BEEN_BOUND','_anchorDot','OnLineIcon','error','/universer-api/frontend/logs','onMouseMove','YUUMI_UNABLE_LOAD_URL','replaceState','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toRgbString','_labelPosition','YUUMI_ASYNCIO_CANCELLED','2803880OlaJSl','totalFormulasToCalculate','push','[Unhandled\x20Rejection]:\x20','ENTITLE_COUPON_EXPIRED','_revisionService','restore','history','_saveTaskMap','setUndoRedoMutationParamsCache','setParam','uni.network.url-service','_entities','_getSaveTimeout','COMPLETION_FINISHED','univer-flex\x20univer-items-center','_handleHover','enableFrontendLog','_urlService','m2Prime','_handleEvent','USER_NOT_INVITED_CODE','_onRefRangeChange','_scene','message','APPLY_REJECT','startRow','with','_collabCursorState$','pluginName','EMAIL_VERIFY_CODE_MISMATCH','_docTransformStateCacheService','disableLocalCache','USERS_LEAVE','APPLY_REVISION_CONFILICT','map','getSheetId','transformMutationsWithChangeset','dirtyRanges','_lastResponseTimestamp','_collaborationController','_handleHeartbeatEvent','currentColor','loadUnit','_imageIoService','socket$','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','size','assign','getformulaLimitStatusUrl','replace','collabStatus.conflict','parseInt','getUnit','registerBeforeClose','SOCKET_FAILED','_unitStatus','DeleteRangeMoveUpCommandId','black','getActiveSheet','collabStatus.synced','_notificationService','onLocalMutation','application/json','9pVZYyn','ENTITLE_COUPON_USED_UP','search','getMemberID','range','_registerDependencies','_taskIds','http://www.w3.org/2000/svg','text','Unknown\x20user','_checkCalculationAvailable','disposeWithMe','_createSocketURL','SOCKET_FAILED_RETRY','functionsExecutedState','_cursorInfo$','_range','NOT_FOUND','MUTATION','unitID','NOT_COLLAB','setShapeProps','_updateLocalCursor','_beforeCloseService','addObjects','collaboration.offline-data-not-saved','/run/','type','3CIoAOY','add','storage','filename','getMember','collab-rect-range-','location','roomMembers','_status$','top','deepClone','contains','RECT','REDEMPTION_INVALID_CODE','resize','sessionTicket','YUUMI_URL_COL_OUT_OF_RANGE','show','random','backgroundColor','set','collab-text-anchor-','ENTITLE_REPORT_LIMIT_EXCEED','symbol','1em','fillText','_unitOnClients','_setFormulaLimitStatus','_cursor','unhandledrejection','selection','REDEMPTION_CODE_FULLY_REDEEMED','_injector','current','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','INVITE_CODE_REQUIRED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','1691942EnPhCh','collaboration-client-ui.config','exhaustSavingTask','lineTo','flatMap','permission.title','_colorIndex','_applyCommand','_colorAssignService','_getSheetObject','children','collabStatus.offline','_localStorageService','unload','_ensureSubject','[Window\x20Error]:\x20','makeDirty','yellow.400','status$','override','_heartbeatTimer','univer-mr-2\x20univer-flex\x20univer-text-xl','idSuffix','registerRenderModule','_onCursorUpdate','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','startFormulaLimitUrl','YUUMI_TABLE_NOT_FOUND_IN_UNIT','VIEW_MAIN','init','UNAUTHENTICATED','AWAITING','unshift','_disabled','_removeClearOtherTimer','_dataLoaderService','UNRECOGNIZED','setTimeout','onCommandExecuted','_collaborationSessionService','stack','findNodePositionByCharIndex','AUTHORIZE_CODE_ILLEGAL','send','clearTimeout','_initWindowErrorListener','row','_initStatusListener','getSheetBySheetId','HEADER_MENU','_roomMembers$','ONLINE','_transformHistoryAndStateStack','transformIMECache','defs','_syncEditingCollabCursorService','4404340FSojZj','_init','_initEvent','pushState','INVALID_ARGUMENT','color','getOwnPropertyDescriptor','result','_commandService','ENTITLE_INVALID_COUPON_CODE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformUndoRedoStack','_updateSubUnitFromURLParams','data','CONFLICT','params','_httpService','REDEMPTION_USER_NOT_ELIGIBLE','addObject','848307XelzTK','InsertRowCommandId','getActiveRange','round','setStateCache','collab-client.tooltip.reconnect','unitId','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.waiting','_render','width','YUUMI_RATE_OVER_LIMIT','TOO_MANY_REQUESTS','removeParam','_removeCollabCursors','currentTheme$','FromArray','MOBILE_VERIFY_CODE_MISMATCH','then','debug','_setupSubUnitSync','REDEMPTION_CODE_INACTIVE','eventID','transformStateCache','undoState','delete','_draw','getCellMatrix','Warning','sheetId','_id','getCurrentSelections','SUCCESS','_getAnchorBounding','PENDING','_docStateChangeManagerService','_drawRectRange','[LogService\x20Error]:\x20','evenodd','getUnitStatus$','_cursorShapes','getMergeData','YUUMI_CONNECTOR_URL_NOT_FOUND','_getMergeRange','_eventUnsubscribe','min','collaboration.single-unit.warning','href','_sheetSkeletonManagerService','on-line-icon','transformRemoteChangeset','registerComponent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','stringify','subunit','getRangePointData','clipPath','session.connection-failed','YUUMI_NO_CUBOID_FOR_QUESTION','_hideTimer','ENSURE_SNAPSHOT_EXECUTION','ENTITLE_CHAT_LIMIT_EXCEED','/universer-api/license/formula/limit/done','getItem','key','isEditing','onPointerLeave$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','requireSession','11cIeOOz','onRendered','INVALID_INVITE_CODE','subUnitId','tag','CLOSE_ROOM','_getScale','UNDEFINED','ENTITLE_INSUFFICIENT_QUOTA','body','LICENSE_MAX_UNITS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','getCollabCursors$','mask','getTypeOfUnitAdded$','memberID','_docTransformSelectionsService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initCommandExecutedListener','redoState','xlink:href','setItem','onTransformChange$','enableLocalCache'];_0x4974=function(){return _0x2f82af;};return _0x4974();}_e=cn([F(0x0,_0x18dba0),F(0x1,_0x3d14fc),F(0x2,_0x27384c(_0x5d3b6b)),F(0x3,_0x52022d),F(0x4,_0x7f620d),F(0x5,_0x27384c(_0x5875ca))],_e);var _n=Object[_0x3a7433(0x210)],ln=(_0x1d2d8b,_0x2ea932,_0x4f0edc,_0x29d204)=>{const _0xb60b78=_0x3a7433;for(var _0x1d8a46=_0x29d204>0x1?void 0x0:_0x29d204?_n(_0x2ea932,_0x4f0edc):_0x2ea932,_0x47bc54=_0x1d2d8b[_0xb60b78(0x34d)]-0x1,_0x355270;_0x47bc54>=0x0;_0x47bc54--)(_0x355270=_0x1d2d8b[_0x47bc54])&&(_0x1d8a46=_0x355270(_0x1d8a46)||_0x1d8a46);return _0x1d8a46;},ne=(_0xfad9d,_0x59b2e1)=>(_0x54f1f8,_0x265784)=>_0x59b2e1(_0x54f1f8,_0x265784,_0xfad9d);let le=class extends _0x1c0642{constructor(_0xf09980,_0x35fef4,_0x53e414,_0x568339){const _0x14570f=_0x3a7433;super(),_(this,_0x14570f(0x337)),(this[_0x14570f(0x1cb)]=_0xf09980,this[_0x14570f(0x21a)]=_0x35fef4,this[_0x14570f(0x2ed)]=_0x53e414,this[_0x14570f(0x1f9)]=_0x568339,this['_init']());}[_0x3a7433(0x20b)](){const _0x17ff9d=_0x3a7433;this[_0x17ff9d(0x1ff)](),this['_initUnhandledRejectionListener'](),this[_0x17ff9d(0x327)](),this[_0x17ff9d(0x32b)]();}[_0x3a7433(0x32b)](){const _0x447c6b=_0x3a7433;this[_0x447c6b(0x3f9)](this['_collaborationSessionService'][_0x447c6b(0x3db)][_0x447c6b(0x395)](_0x36a145=>{const _0xaed4f2=_0x447c6b;this[_0xaed4f2(0x337)]=_0x36a145==null?void 0x0:_0x36a145['memberID'];}));}[_0x3a7433(0x1ff)](){const _0x508d07=_0x3a7433,_0x1932f3=_0x1310eb=>{const _0x528da6=_0x474c;var _0x2e5eda;this[_0x528da6(0x2b9)](_0x528da6(0x3a5),_0x528da6(0x1e0)+_0x1310eb[_0x528da6(0x3c6)]+'\x20at\x20'+_0x1310eb[_0x528da6(0x40d)]+':'+_0x1310eb['lineno']+':'+_0x1310eb[_0x528da6(0x397)]+'\x0a'+(((_0x2e5eda=_0x1310eb['error'])==null?void 0x0:_0x2e5eda[_0x528da6(0x1fa)])||''));};window[_0x508d07(0x349)](_0x508d07(0x3a5),_0x1932f3),this[_0x508d07(0x3f9)](()=>{const _0x1c6b36=_0x508d07;window[_0x1c6b36(0x376)](_0x1c6b36(0x3a5),_0x1932f3);});}[_0x3a7433(0x2c9)](){const _0x5259f6=_0x3a7433,_0x55d574=_0x3de372=>{const _0x549985=_0x474c;this['_uploadLog'](_0x549985(0x3a5),_0x549985(0x3b1)+_0x3de372[_0x549985(0x311)]);};window[_0x5259f6(0x349)](_0x5259f6(0x1c8),_0x55d574),this['disposeWithMe'](()=>{const _0x1119b6=_0x5259f6;window[_0x1119b6(0x376)](_0x1119b6(0x1c8),_0x55d574);});}['_monkeyPatchLogService'](){const _0x468611=_0x3a7433,_0x14afd5=this['_logService'][_0x468611(0x3a5)][_0x468611(0x28c)](this[_0x468611(0x2ed)]);this[_0x468611(0x2ed)]['error']=(..._0x14fa80)=>{const _0x27ca51=_0x468611,_0x38336c=_0x14fa80[_0x27ca51(0x3d1)](_0x15fb34=>_0x15fb34 instanceof Error?_0x15fb34['message']+'\x0a'+_0x15fb34[_0x27ca51(0x1fa)]:String(_0x15fb34))['join']('\x20');this[_0x27ca51(0x2b9)](_0x27ca51(0x3a5),_0x27ca51(0x242)+_0x38336c),_0x14afd5(..._0x14fa80);},this[_0x468611(0x3f9)](()=>{this['_logService']['error']=_0x14afd5;});}[_0x3a7433(0x2b9)](_0x1c1c8f,_0x4b3b63){const _0x171f4e=_0x3a7433;try{const _0x403897={'userId':this[_0x171f4e(0x337)],'logLabel':_0x1c1c8f,'content':_0x4b3b63};this['_httpService'][_0x171f4e(0x2ee)](_0x171f4e(0x3a6),{'body':_0x403897})[_0x171f4e(0x333)](()=>{});}catch{}}};le=ln([ne(0x0,_0x27384c(_0x546954)),ne(0x1,_0x27384c(_0x37faeb)),ne(0x2,_0x2e91cd),ne(0x3,_0x27384c(_0x33dafd))],le);const hn=_0x3a7433(0x1d2),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xe1f34b,_0x211473,_0x43346a,_0x3c2c4f)=>{const _0x5e3623=_0x3a7433;for(var _0x52bb87=_0x3c2c4f>0x1?void 0x0:_0x3c2c4f?un(_0x211473,_0x43346a):_0x211473,_0x1d3a25=_0xe1f34b[_0x5e3623(0x34d)]-0x1,_0x4eadc0;_0x1d3a25>=0x0;_0x1d3a25--)(_0x4eadc0=_0xe1f34b[_0x1d3a25])&&(_0x52bb87=_0x4eadc0(_0x52bb87)||_0x52bb87);return _0x52bb87;},lt=(_0x4b6b7b,_0x723b16)=>(_0x1a9059,_0x4c79eb)=>_0x723b16(_0x1a9059,_0x4c79eb,_0x4b6b7b);let he=class{constructor(_0x5b889c,_0x398cc2){const _0x11348d=_0x3a7433;this[_0x11348d(0x28f)]=_0x5b889c,this[_0x11348d(0x39d)]=_0x398cc2;}[_0x3a7433(0x207)](_0x47688d){const _0x498fb6=_0x3a7433;this[_0x498fb6(0x215)](_0x47688d),this[_0x498fb6(0x318)](_0x47688d);}['transformRemoteChangeset'](_0x29c646){const _0x43bd3b=_0x3a7433,{unitID:_0x1cb9c5}=_0x29c646,_0x2968d5=this['_renderManagerService'][_0x43bd3b(0x2f5)](_0x1cb9c5)[_0x43bd3b(0x3c9)](_0x12d831),{redoCache:_0x279163}=_0x2968d5[_0x43bd3b(0x2ca)]();if(_0x279163[_0x43bd3b(0x34d)]===0x0)return _0x29c646;let _0x4fa4bb=_0x144735['deepClone'](_0x29c646[_0x43bd3b(0x287)][0x0]);for(let _0x381de2=0x0;_0x381de2<_0x279163[_0x43bd3b(0x34d)];_0x381de2++){const _0x1f4ae5={'id':_0x43bd3b(0x37a),'params':{..._0x279163[_0x381de2]}},_0xcf792d=this[_0x43bd3b(0x28f)][_0x43bd3b(0x2dc)](_0x4fa4bb,_0x1f4ae5,!0x1);if(_0x28a191(_0xcf792d))throw _0xcf792d[_0x43bd3b(0x3a5)];_0x4fa4bb=_0xcf792d['m1Prime'];}return{..._0x144735[_0x43bd3b(0x1b5)](_0x29c646),'mutations':[_0x4fa4bb]};}[_0x3a7433(0x215)](_0x42e2b6){const _0x195836=_0x3a7433,{unitID:_0x4faad9}=_0x42e2b6,_0x2477b8=this['_renderManagerService']['getRenderById'](_0x4faad9)[_0x195836(0x3c9)](_0x12d831),{undoCache:_0x4fb13c,redoCache:_0x7f5dfc}=_0x2477b8[_0x195836(0x2ca)]();if(_0x4fb13c['length']===0x0||_0x7f5dfc['length']===0x0)return;const _0x28d8d2=[],_0x39920a=[];let _0x1cafdc=_0x144735[_0x195836(0x1b5)](_0x42e2b6[_0x195836(0x287)][0x0]),_0xc62c36=_0x144735['deepClone'](_0x42e2b6['mutations'][0x0]);for(let _0x265342=_0x4fb13c[_0x195836(0x34d)]-0x1;_0x265342>=0x0;_0x265342--){const _0x26641f={'id':_0x195836(0x37a),'params':{..._0x4fb13c[_0x265342]}},_0x44f14c={'id':_0x195836(0x37a),'params':{..._0x7f5dfc[_0x265342]}},_0xf97b3d=this[_0x195836(0x28f)][_0x195836(0x2dc)](_0x1cafdc,_0x26641f,!0x1),_0x4b3f54=this['_transformService'][_0x195836(0x2dc)](_0xc62c36,_0x44f14c,!0x1);if(_0x28a191(_0xf97b3d))throw _0xf97b3d[_0x195836(0x3a5)];if(_0x28a191(_0x4b3f54))throw _0x4b3f54['error'];_0x28d8d2[_0x195836(0x1f2)](_0xf97b3d[_0x195836(0x3c1)][_0x195836(0x219)]),_0x39920a[_0x195836(0x1f2)](_0x4b3f54['m2Prime'][_0x195836(0x219)]),_0x1cafdc=_0xf97b3d[_0x195836(0x347)],_0xc62c36=_0x4b3f54['m1Prime'];}_0x2477b8[_0x195836(0x3b7)]({'undoCache':_0x28d8d2,'redoCache':_0x39920a});}[_0x3a7433(0x318)](_0x38e6fd){const _0x4ea42c=_0x3a7433,{unitID:_0x49dfd3}=_0x38e6fd,_0x4b5f6d=this[_0x4ea42c(0x39d)]['getRenderById'](_0x49dfd3)[_0x4ea42c(0x3c9)](_0x12d831),_0x25341d=_0x4b5f6d[_0x4ea42c(0x21f)]();if(_0x25341d==null)return;const _0x2cd0ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38e6fd[_0x4ea42c(0x401)],'actions':null,'textRanges':[_0x25341d]}}],_0x309112=this[_0x4ea42c(0x28f)][_0x4ea42c(0x3d3)](_0x38e6fd,_0x2cd0ec);if(!_0x4d115f(_0x309112))throw _0x309112[_0x4ea42c(0x3a5)];const _0x5d6e44=_0x309112[_0x4ea42c(0x3c1)][0x0][_0x4ea42c(0x219)][_0x4ea42c(0x295)];Array[_0x4ea42c(0x321)](_0x5d6e44)&&_0x5d6e44['length']&&_0x4b5f6d[_0x4ea42c(0x369)](_0x5d6e44[0x0]);}};he=dn([lt(0x0,_0x3417ba),lt(0x1,_0x47acbb)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x494049,_0x1b4fd5,_0x2e3c5e,_0x4f9dd2)=>{for(var _0x5bec39=_0x4f9dd2>0x1?void 0x0:_0x4f9dd2?Sn(_0x1b4fd5,_0x2e3c5e):_0x1b4fd5,_0x2a3684=_0x494049['length']-0x1,_0x174925;_0x2a3684>=0x0;_0x2a3684--)(_0x174925=_0x494049[_0x2a3684])&&(_0x5bec39=_0x174925(_0x5bec39)||_0x5bec39);return _0x5bec39;},Le=(_0x1557ca,_0x5680aa)=>(_0x570f15,_0x2b51fd)=>_0x5680aa(_0x570f15,_0x2b51fd,_0x1557ca);let ue=class{constructor(_0x3e99f6,_0x5ee8f2,_0x2610d4){const _0x3b7503=_0x3a7433;this[_0x3b7503(0x1cb)]=_0x3e99f6,this['_transformService']=_0x5ee8f2,this[_0x3b7503(0x240)]=_0x2610d4;}[_0x3a7433(0x234)](_0x199489){const _0x1c085d=_0x3a7433;this[_0x1c085d(0x206)](_0x199489);}[_0x3a7433(0x24f)](_0x311db4){const _0x232e52=_0x3a7433,{unitID:_0x111b31}=_0x311db4,{collaboration:_0x43b983}=this[_0x232e52(0x240)]['getStateCache'](_0x111b31);if(_0x43b983[_0x232e52(0x34d)]===0x0)return _0x311db4;let _0x4ef69c=_0x144735[_0x232e52(0x1b5)](_0x311db4['mutations'][0x0]);for(let _0x5ecbfa=0x0;_0x5ecbfa<_0x43b983[_0x232e52(0x34d)];_0x5ecbfa++){const _0x6cc46c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x43b983[_0x5ecbfa][_0x232e52(0x223)],..._0x43b983[_0x5ecbfa]['redoState']}},_0xdb2d78=this['_transformService'][_0x232e52(0x2dc)](_0x4ef69c,_0x6cc46c,!0x1);if(_0x28a191(_0xdb2d78))throw _0xdb2d78[_0x232e52(0x3a5)];_0x4ef69c=_0xdb2d78[_0x232e52(0x347)];}return{..._0x144735['deepClone'](_0x311db4),'mutations':[_0x4ef69c]};}[_0x3a7433(0x206)](_0x5522dc){const _0x3a2e28=_0x3a7433,{unitID:_0x565c18}=_0x5522dc,{history:_0x34b287,collaboration:_0x12ccf0}=this['_docStateChangeManagerService'][_0x3a2e28(0x2fa)](_0x565c18);if(_0x34b287[_0x3a2e28(0x34d)]===0x0&&_0x12ccf0[_0x3a2e28(0x34d)]===0x0)return;const _0x574f93=[],_0x5bf53c=[];let _0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc['mutations'][0x0]),_0x583e0b=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xe27962=_0x34b287[_0x3a2e28(0x34d)]-0x1;_0xe27962>=0x0;_0xe27962--){const _0x3399a6={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x235)]}},_0x46532c={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x34b287[_0xe27962][_0x3a2e28(0x223)],..._0x34b287[_0xe27962][_0x3a2e28(0x276)]}},_0x531f8e=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x76bd37,_0x3399a6,!0x1),_0x318284=this[_0x3a2e28(0x28f)][_0x3a2e28(0x2dc)](_0x583e0b,_0x46532c,!0x1);if(_0x28a191(_0x531f8e))throw _0x531f8e[_0x3a2e28(0x3a5)];if(_0x28a191(_0x318284))throw _0x318284[_0x3a2e28(0x3a5)];_0x574f93['unshift']({..._0x34b287[_0xe27962],'undoState':_0x531f8e[_0x3a2e28(0x3c1)]['params'],'redoState':_0x318284[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x531f8e[_0x3a2e28(0x347)],_0x583e0b=_0x318284[_0x3a2e28(0x347)];}_0x76bd37=_0x144735[_0x3a2e28(0x1b5)](_0x5522dc[_0x3a2e28(0x287)][0x0]),_0x583e0b=_0x144735['deepClone'](_0x5522dc[_0x3a2e28(0x287)][0x0]);for(let _0xd6894c=_0x12ccf0[_0x3a2e28(0x34d)]-0x1;_0xd6894c>=0x0;_0xd6894c--){const _0x10484d={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c]['unitId'],..._0x12ccf0[_0xd6894c][_0x3a2e28(0x235)]}},_0x1ab7f5={'id':_0x3a2e28(0x37a),'params':{'unitId':_0x12ccf0[_0xd6894c][_0x3a2e28(0x223)],..._0x12ccf0[_0xd6894c]['redoState']}},_0x3f91f9=this[_0x3a2e28(0x28f)]['transformMutation'](_0x76bd37,_0x10484d,!0x1),_0x587608=this[_0x3a2e28(0x28f)]['transformMutation'](_0x583e0b,_0x1ab7f5,!0x1);if(_0x28a191(_0x3f91f9))throw _0x3f91f9[_0x3a2e28(0x3a5)];if(_0x28a191(_0x587608))throw _0x587608[_0x3a2e28(0x3a5)];_0x5bf53c[_0x3a2e28(0x1f2)]({..._0x12ccf0[_0xd6894c],'undoState':_0x3f91f9[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)],'redoState':_0x587608[_0x3a2e28(0x3c1)][_0x3a2e28(0x219)]}),_0x76bd37=_0x3f91f9[_0x3a2e28(0x347)],_0x583e0b=_0x587608['m1Prime'];}this[_0x3a2e28(0x240)][_0x3a2e28(0x221)](_0x565c18,{'history':_0x574f93,'collaboration':_0x5bf53c});}};ue=In([Le(0x0,_0x27384c(_0x546954)),Le(0x1,_0x3417ba),Le(0x2,_0x27384c(_0x391aa1))],ue);var mn=Object[_0x3a7433(0x210)],fn=(_0x28ba19,_0x4cff4b,_0x2f26a0,_0x334dbf)=>{const _0x73df9c=_0x3a7433;for(var _0x1e439e=_0x334dbf>0x1?void 0x0:_0x334dbf?mn(_0x4cff4b,_0x2f26a0):_0x4cff4b,_0x368d20=_0x28ba19[_0x73df9c(0x34d)]-0x1,_0x569992;_0x368d20>=0x0;_0x368d20--)(_0x569992=_0x28ba19[_0x368d20])&&(_0x1e439e=_0x569992(_0x1e439e)||_0x1e439e);return _0x1e439e;},ht=(_0x317204,_0x527f66)=>(_0x70dbbe,_0x31ff0f)=>_0x527f66(_0x70dbbe,_0x31ff0f,_0x317204);let de=class{constructor(_0xd0acb2,_0x2bb0e0){const _0x58a8b0=_0x3a7433;this[_0x58a8b0(0x1cb)]=_0xd0acb2,this[_0x58a8b0(0x28f)]=_0x2bb0e0;}[_0x3a7433(0x2c3)](_0x4a6ecd){const _0x272b76=_0x3a7433;var _0x234636;const _0x8af7a4=this[_0x272b76(0x1cb)][_0x272b76(0x359)](_0x1ba78b),_0x3fb0ae=(_0x234636=_0x8af7a4[_0x272b76(0x34b)]())!=null?_0x234636:[];if(_0x3fb0ae['length']===0x0)return;const _0x4db1ac=_0x4a6ecd[_0x272b76(0x401)],_0x123941=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4db1ac,'actions':null,'textRanges':_0x3fb0ae}}],_0x3a3621=this[_0x272b76(0x28f)][_0x272b76(0x3d3)](_0x4a6ecd,_0x123941);if(!_0x4d115f(_0x3a3621))throw _0x3a3621[_0x272b76(0x3a5)];const _0x358864=_0x3a3621[_0x272b76(0x3c1)][0x0][_0x272b76(0x219)][_0x272b76(0x295)];Array[_0x272b76(0x321)](_0x358864)&&_0x358864[_0x272b76(0x34d)]&&_0x8af7a4[_0x272b76(0x375)](_0x358864,{'unitId':_0x4db1ac,'subUnitId':_0x4db1ac},!0x1);}};de=fn([ht(0x0,_0x27384c(_0x546954)),ht(0x1,_0x3417ba)],de);var gn=Object[_0x3a7433(0x210)],En=(_0x6eb969,_0x39f743,_0x5bd8c8,_0x5c554b)=>{const _0x35c15d=_0x3a7433;for(var _0x2c7ac0=_0x5c554b>0x1?void 0x0:_0x5c554b?gn(_0x39f743,_0x5bd8c8):_0x39f743,_0x40bef3=_0x6eb969[_0x35c15d(0x34d)]-0x1,_0x19886d;_0x40bef3>=0x0;_0x40bef3--)(_0x19886d=_0x6eb969[_0x40bef3])&&(_0x2c7ac0=_0x19886d(_0x2c7ac0)||_0x2c7ac0);return _0x2c7ac0;},U=(_0x45a1b2,_0x1f966b)=>(_0x22d5ff,_0x43f228)=>_0x1f966b(_0x22d5ff,_0x43f228,_0x45a1b2);let Se=class extends _0x1c0642{constructor(_0x333ffe,_0x5b3fb7,_0x2359b0,_0x35f2d4,_0x5392cd,_0x2229b2,_0x2b2729,_0x41f85f){const _0x51064d=_0x3a7433;super(),_(this,'_status$',new _0x29de4b(_0x578bc7[_0x51064d(0x402)])),(this[_0x51064d(0x240)]=_0x333ffe,this[_0x51064d(0x3d6)]=_0x5b3fb7,this[_0x51064d(0x399)]=_0x2359b0,this[_0x51064d(0x3cd)]=_0x35f2d4,this['_docTransformSelectionsService']=_0x5392cd,this['_docSyncEditingCollabCursorService']=_0x2229b2,this[_0x51064d(0x2a3)]=_0x2b2729,this[_0x51064d(0x306)]=_0x41f85f,this[_0x51064d(0x2e9)]());}[_0x3a7433(0x2e9)](){const _0x5513aa=_0x3a7433;this['disposeWithMe'](this[_0x5513aa(0x3d6)][_0x5513aa(0x2c7)]['subscribe'](_0x52267a=>{const _0x2bbab8=_0x5513aa,_0x1219d4=this['_docStateChangeManagerService']['docStateChange$'][_0x2bbab8(0x395)](_0x24a298=>{const _0x1cd826=_0x2bbab8;if(_0x24a298==null)return;const {unitId:_0x5035f8,redoState:_0x2a4e9f,commandId:_0x38bb4f}=_0x24a298;if(_0x5035f8!==_0x52267a[_0x1cd826(0x401)])return;const _0x33c610={'id':_0x38bb4f,'type':_0x5ab7c5[_0x1cd826(0x400)],'params':{'unitId':_0x5035f8,'actions':_0x2a4e9f['actions'],'textRanges':null}};_0x52267a[_0x1cd826(0x3ec)](_0x33c610);});if(_0x52267a[_0x2bbab8(0x3f9)](_0x1219d4),_0x52267a instanceof _0x30a98e){const _0x154325={'onTransformIME':_0x248c00=>this[_0x2bbab8(0x399)]['transformIMECache'](_0x248c00),'onTransformState':_0x2ddfd8=>this['_docTransformStateCacheService'][_0x2bbab8(0x234)](_0x2ddfd8),'onTransformSelections':_0x45a40b=>this[_0x2bbab8(0x273)][_0x2bbab8(0x2c3)](_0x45a40b),'onSyncEditingCollabCursor':_0x34700a=>this[_0x2bbab8(0x2ec)][_0x2bbab8(0x2de)](_0x34700a),'onTransformRemoteChangesetByIMECache':_0x8cc1e6=>this[_0x2bbab8(0x399)][_0x2bbab8(0x24f)](_0x8cc1e6),'onTransformRemoteChangesetByStateCache':_0x93d6f6=>this['_docTransformStateCacheService'][_0x2bbab8(0x24f)](_0x93d6f6)};_0x52267a[_0x2bbab8(0x2ba)](_0x154325);}}));}};Se=En([U(0x0,_0x27384c(_0x391aa1)),U(0x1,_0x27384c(_0x4c101c)),U(0x2,_0x27384c(he)),U(0x3,_0x27384c(ue)),U(0x4,_0x27384c(de)),U(0x5,_0x27384c(ze)),U(0x6,_0x52022d),U(0x7,_0x27384c(_0x5875ca))],Se);var Z=(_0x43879a=>(_0x43879a[_0x43879a[_0x3a7433(0x26a)]=0x0]=_0x3a7433(0x26a),_0x43879a[_0x43879a['OK']=0x1]='OK',_0x43879a[_0x43879a['INTERNAL_ERROR']=0x2]=_0x3a7433(0x2f0),_0x43879a[_0x43879a['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x43879a[_0x43879a[_0x3a7433(0x3ff)]=0x4]=_0x3a7433(0x3ff),_0x43879a[_0x43879a[_0x3a7433(0x1f0)]=0x5]=_0x3a7433(0x1f0),_0x43879a[_0x43879a[_0x3a7433(0x361)]=0x6]=_0x3a7433(0x361),_0x43879a[_0x43879a['INVALID_ARGUMENT']=0x7]=_0x3a7433(0x20e),_0x43879a[_0x43879a[_0x3a7433(0x229)]=0x8]=_0x3a7433(0x229),_0x43879a[_0x43879a[_0x3a7433(0x3bc)]=0x9]=_0x3a7433(0x3bc),_0x43879a[_0x43879a[_0x3a7433(0x352)]=0xa]=_0x3a7433(0x352),_0x43879a[_0x43879a[_0x3a7433(0x22e)]=0xb]=_0x3a7433(0x22e),_0x43879a[_0x43879a[_0x3a7433(0x37d)]=0xc]=_0x3a7433(0x37d),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3a7433(0x3cc),_0x43879a[_0x43879a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x43879a[_0x43879a[_0x3a7433(0x1fc)]=0xf]=_0x3a7433(0x1fc),_0x43879a[_0x43879a[_0x3a7433(0x252)]=0x10]=_0x3a7433(0x252),_0x43879a[_0x43879a[_0x3a7433(0x303)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x43879a[_0x43879a[_0x3a7433(0x388)]=0x65]='ERROR_AGAIN',_0x43879a[_0x43879a[_0x3a7433(0x394)]=0xc9]=_0x3a7433(0x394),_0x43879a[_0x43879a[_0x3a7433(0x31c)]=0xca]=_0x3a7433(0x31c),_0x43879a[_0x43879a['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x43879a[_0x43879a[_0x3a7433(0x39b)]=0x1771]=_0x3a7433(0x39b),_0x43879a[_0x43879a[_0x3a7433(0x308)]=0x1772]=_0x3a7433(0x308),_0x43879a[_0x43879a[_0x3a7433(0x25a)]=0x1773]=_0x3a7433(0x25a),_0x43879a[_0x43879a[_0x3a7433(0x3c7)]=0x1b59]=_0x3a7433(0x3c7),_0x43879a[_0x43879a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x43879a[_0x43879a[_0x3a7433(0x3d0)]=0x1b5b]=_0x3a7433(0x3d0),_0x43879a[_0x43879a[_0x3a7433(0x2d1)]=0x1b5c]=_0x3a7433(0x2d1),_0x43879a[_0x43879a['APPLY_DUPLICATED']=0x1b5d]=_0x3a7433(0x32e),_0x43879a[_0x43879a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3a7433(0x37e),_0x43879a[_0x43879a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3a7433(0x26d),_0x43879a[_0x43879a[_0x3a7433(0x1ce)]=0x232a]=_0x3a7433(0x1ce),_0x43879a[_0x43879a[_0x3a7433(0x36a)]=0x232b]=_0x3a7433(0x36a),_0x43879a[_0x43879a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3a7433(0x357),_0x43879a[_0x43879a[_0x3a7433(0x317)]=0x232d]=_0x3a7433(0x317),_0x43879a[_0x43879a[_0x3a7433(0x3a8)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x43879a[_0x43879a[_0x3a7433(0x1bb)]=0x2712]=_0x3a7433(0x1bb),_0x43879a[_0x43879a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3a7433(0x228),_0x43879a[_0x43879a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x3a7433(0x378),_0x43879a[_0x43879a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3a7433(0x258),_0x43879a[_0x43879a[_0x3a7433(0x3ad)]=0x271b]=_0x3a7433(0x3ad),_0x43879a[_0x43879a[_0x3a7433(0x1ed)]=0x271c]=_0x3a7433(0x1ed),_0x43879a[_0x43879a[_0x3a7433(0x36f)]=0x271d]=_0x3a7433(0x36f),_0x43879a[_0x43879a[_0x3a7433(0x214)]=0x271e]=_0x3a7433(0x214),_0x43879a[_0x43879a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3a7433(0x371),_0x43879a[_0x43879a[_0x3a7433(0x247)]=0x2720]=_0x3a7433(0x247),_0x43879a[_0x43879a[_0x3a7433(0x283)]=0x2af9]=_0x3a7433(0x283),_0x43879a[_0x43879a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3a7433(0x307),_0x43879a[_0x43879a[_0x3a7433(0x265)]=0x2ee2]=_0x3a7433(0x265),_0x43879a[_0x43879a[_0x3a7433(0x1cf)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x43879a[_0x43879a[_0x3a7433(0x3c3)]=0x2ee4]=_0x3a7433(0x3c3),_0x43879a[_0x43879a[_0x3a7433(0x351)]=0x2ee5]=_0x3a7433(0x351),_0x43879a[_0x43879a[_0x3a7433(0x3a2)]=0x32c9]=_0x3a7433(0x3a2),_0x43879a[_0x43879a['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x43879a[_0x43879a['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x43879a[_0x43879a[_0x3a7433(0x1d0)]=0x36b1]=_0x3a7433(0x1d0),_0x43879a[_0x43879a[_0x3a7433(0x2d8)]=0x36b2]=_0x3a7433(0x2d8),_0x43879a[_0x43879a[_0x3a7433(0x2f4)]=0x36b3]=_0x3a7433(0x2f4),_0x43879a[_0x43879a[_0x3a7433(0x331)]=0x36b4]=_0x3a7433(0x331),_0x43879a[_0x43879a[_0x3a7433(0x213)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x43879a[_0x43879a[_0x3a7433(0x3b2)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x43879a[_0x43879a['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x3a7433(0x3ef),_0x43879a[_0x43879a[_0x3a7433(0x224)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x43879a[_0x43879a[_0x3a7433(0x25b)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x1c1)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x43879a[_0x43879a[_0x3a7433(0x26b)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x43879a[_0x43879a[_0x3a7433(0x1ea)]=0x37dd]=_0x3a7433(0x1ea),_0x43879a[_0x43879a[_0x3a7433(0x1b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x43879a[_0x43879a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3a7433(0x232),_0x43879a[_0x43879a[_0x3a7433(0x1ca)]=0x3a9b]=_0x3a7433(0x1ca),_0x43879a[_0x43879a[_0x3a7433(0x355)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x43879a[_0x43879a[_0x3a7433(0x21b)]=0x3a9d]=_0x3a7433(0x21b),_0x43879a[_0x43879a[_0x3a7433(0x2b0)]=0x3a9e]=_0x3a7433(0x2b0),_0x43879a[_0x43879a['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x3a7433(0x396),_0x43879a[_0x43879a[_0x3a7433(0x2d5)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x43879a[_0x43879a[_0x3a7433(0x1f6)]=-0x1]=_0x3a7433(0x1f6),_0x43879a))(Z||{});function vn(_0x21af0b){const _0xe191fc=_0x3a7433;var _0x12927a,_0x59bb3a;const _0x464f64=(_0x12927a=_0x21af0b[_0xe191fc(0x2a1)])==null?void 0x0:_0x12927a[_0xe191fc(0x372)],_0x14e756=((_0x59bb3a=_0x21af0b['stageInfo'])==null?void 0x0:_0x59bb3a[_0xe191fc(0x3af)])||0x0;return _0x464f64===_0x5ee1af[_0xe191fc(0x30a)]&&_0x14e756>0x0;}function pn(_0x224435){const _0xde9338=_0x3a7433;return _0x224435[_0xde9338(0x3fc)]===_0x3f1c63[_0xde9338(0x23d)];}var On=Object[_0x3a7433(0x210)],Tn=(_0xefe3b5,_0x101ea1,_0x446b54,_0x3fa20c)=>{const _0x36d810=_0x3a7433;for(var _0x2959e7=_0x3fa20c>0x1?void 0x0:_0x3fa20c?On(_0x101ea1,_0x446b54):_0x101ea1,_0xcfdd5b=_0xefe3b5[_0x36d810(0x34d)]-0x1,_0x5f2f61;_0xcfdd5b>=0x0;_0xcfdd5b--)(_0x5f2f61=_0xefe3b5[_0xcfdd5b])&&(_0x2959e7=_0x5f2f61(_0x2959e7)||_0x2959e7);return _0x2959e7;},P=(_0x72694d,_0x3b6069)=>(_0x22287d,_0x1d40d6)=>_0x3b6069(_0x22287d,_0x1d40d6,_0x72694d);const Cn=_0x3a7433(0x348),Rn='/universer-api/license/formula/limit/start',Dn=_0x3a7433(0x25c);let Ie=class extends _0x1c0642{constructor(_0x5dbc79,_0x312b83,_0x5af08e,_0x5015eb,_0x5547f8,_0x2bda97,_0x19ef6f){const _0x7f8083=_0x3a7433;super(),_(this,_0x7f8083(0x392),null),_(this,_0x7f8083(0x27c),0x0),_(this,_0x7f8083(0x383),0x0),_(this,_0x7f8083(0x3f4),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x7f8083(0x2a3)]=_0x5dbc79,this[_0x7f8083(0x212)]=_0x312b83,this['_configService']=_0x5af08e,this[_0x7f8083(0x21a)]=_0x5015eb,this[_0x7f8083(0x2a4)]=_0x5547f8,this[_0x7f8083(0x2ed)]=_0x2bda97,this[_0x7f8083(0x306)]=_0x19ef6f,this['_initCommandInterceptor']());}[_0x3a7433(0x2db)](){const _0x474f2f=_0x3a7433;this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x38d)]((_0x3257ae,_0xce4d5d)=>{const _0x234501=_0x474f2f;var _0x3ae3f7;if(_0x3257ae['id']!==_0x54c579['id'])return;const _0x43a88d=_0x3257ae[_0x234501(0x219)];if(!this[_0x234501(0x364)]((_0x3ae3f7=_0x43a88d[_0x234501(0x3d4)])!=null?_0x3ae3f7:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x3257ae,_0xce4d5d),this[_0x234501(0x2a8)](),new _0x853b6b();})),this[_0x474f2f(0x3f9)](this[_0x474f2f(0x212)][_0x474f2f(0x1f8)]((_0x540d41,_0x51d432)=>{const _0x4a5140=_0x474f2f;if(_0x540d41['id']!==_0x8e2626['id'])return;const _0xa4838f=_0x540d41['params'];if(vn(_0xa4838f)){const _0x1bc149=_0x3f0ee8();this[_0x4a5140(0x3f4)][_0x4a5140(0x3b0)](_0x1bc149),this['_startCalculationLimit'](_0x1bc149);}else{if(pn(_0xa4838f)&&this['_taskIds'][_0x4a5140(0x34d)]>0x0){const _0x3fb949=this['_taskIds']['shift']();this['_releaseCalculationLimit'](_0x3fb949);}}}));}['dispose'](){const _0x3ddb55=_0x3a7433;super[_0x3ddb55(0x2c4)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x3ddb55(0x383)]=0x0,this[_0x3ddb55(0x27c)]=0x0,this[_0x3ddb55(0x3d5)]=0x0;}async[_0x3a7433(0x29c)](_0x4c193b,_0x21a3a0){const _0x37cfdd=_0x3a7433;for(let _0x169758=0x0;_0x169758<0x1e;_0x169758++)try{if(await this[_0x37cfdd(0x334)](),this[_0x37cfdd(0x3f8)]()){this[_0x37cfdd(0x1d8)](_0x4c193b,_0x21a3a0),this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x302)),'type':_0x5e610d['Success']});return;}await new Promise(_0x57209f=>{const _0x597dfe=_0x37cfdd;this['_pollingInterval']=window[_0x597dfe(0x1f7)](_0x57209f,0x3e8);});}catch(_0x8f579d){this[_0x37cfdd(0x2ed)][_0x37cfdd(0x3a5)](_0x8f579d);}this['_messageService'][_0x37cfdd(0x1bc)]({'content':this[_0x37cfdd(0x306)]['t'](_0x37cfdd(0x335)),'type':_0x5e610d[_0x37cfdd(0x354)]});}['_applyCommand'](_0x36963c,_0x322c0d){const _0x3edd4a=_0x3a7433;try{this[_0x3edd4a(0x212)][_0x3edd4a(0x2e3)](_0x36963c['id'],_0x36963c['params'],_0x322c0d);}catch(_0x6114db){this[_0x3edd4a(0x2ed)][_0x3edd4a(0x3a5)](_0x6114db);}}[_0x3a7433(0x1c6)](_0x3ed297,_0x5ad05a){const _0x336b88=_0x3a7433;_0x5ad05a<this[_0x336b88(0x3d5)]||(this[_0x336b88(0x3d5)]=_0x5ad05a,this[_0x336b88(0x27c)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x34f)]),this[_0x336b88(0x383)]=Number[_0x336b88(0x3e2)](_0x3ed297[_0x336b88(0x30d)]));}async['_startCalculationLimit'](_0x7406da){const _0x2bd37c=_0x3a7433;var _0x36d61e,_0x6d9757;const _0x552dcd=Date['now']();try{const _0x2a810f=((_0x36d61e=this[_0x2bd37c(0x343)]['getConfig'](_0x3f2cb9))==null?void 0x0:_0x36d61e[_0x2bd37c(0x1ec)])||Rn,_0x54ffb7=(await this[_0x2bd37c(0x21a)][_0x2bd37c(0x2ee)](_0x2a810f,{'body':JSON[_0x2bd37c(0x253)]({'taskId':_0x7406da})}))['body'];if(((_0x6d9757=_0x54ffb7[_0x2bd37c(0x3a5)])==null?void 0x0:_0x6d9757[_0x2bd37c(0x2c6)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x54ffb7[_0x2bd37c(0x30c)],_0x552dcd);}catch(_0x653a84){this['_logService'][_0x2bd37c(0x3a5)](_0x653a84);}}async[_0x3a7433(0x334)](_0x31ef61){const _0x3d3bb7=_0x3a7433;var _0x2513d8,_0x1f7ef8;const _0x2fddd8=Date['now']();try{const _0x568c39=((_0x2513d8=this[_0x3d3bb7(0x343)][_0x3d3bb7(0x390)](_0x3f2cb9))==null?void 0x0:_0x2513d8[_0x3d3bb7(0x3df)])||Cn,_0x27d3b9=_0x31ef61?_0x568c39+_0x3d3bb7(0x314)+encodeURIComponent(_0x31ef61):_0x568c39,_0x650025=(await this[_0x3d3bb7(0x21a)][_0x3d3bb7(0x359)](_0x27d3b9))[_0x3d3bb7(0x26c)];if(((_0x1f7ef8=_0x650025[_0x3d3bb7(0x3a5)])==null?void 0x0:_0x1f7ef8['code'])!==Z['OK'])return;this[_0x3d3bb7(0x1c6)](_0x650025['limitInfo'],_0x2fddd8);}catch(_0x1a9b80){this[_0x3d3bb7(0x2ed)][_0x3d3bb7(0x3a5)](_0x1a9b80);}}async['_releaseCalculationLimit'](_0x44de82){const _0x37a9ac=_0x3a7433;var _0x44228a,_0x3e831c;const _0x4aed1a=Date[_0x37a9ac(0x341)]();try{const _0x51044c=((_0x44228a=this['_configService'][_0x37a9ac(0x390)](_0x3f2cb9))==null?void 0x0:_0x44228a['releaseFormulaLimitUrl'])||Dn,_0x2806ba=(await this[_0x37a9ac(0x21a)]['post'](_0x51044c,{'body':JSON[_0x37a9ac(0x253)]({'taskId':_0x44de82})}))[_0x37a9ac(0x26c)];if(((_0x3e831c=_0x2806ba[_0x37a9ac(0x3a5)])==null?void 0x0:_0x3e831c[_0x37a9ac(0x2c6)])!==Z['OK'])return;this[_0x37a9ac(0x1c6)](_0x2806ba[_0x37a9ac(0x30c)],_0x4aed1a);}catch(_0x263890){this[_0x37a9ac(0x2ed)][_0x37a9ac(0x3a5)](_0x263890);}}[_0x3a7433(0x3f8)](){const _0x3e7b9c=_0x3a7433;return this[_0x3e7b9c(0x27c)]===0x0?!0x0:this[_0x3e7b9c(0x27c)]-this[_0x3e7b9c(0x383)]>0x0;}[_0x3a7433(0x289)](){const _0x3ccf6f=_0x3a7433;this[_0x3ccf6f(0x392)]&&(clearTimeout(this[_0x3ccf6f(0x392)]),this[_0x3ccf6f(0x392)]=null);}['_showGuardMessage'](){const _0x3f4e95=_0x3a7433;this['_messageService'][_0x3f4e95(0x1bc)]({'content':this['_localeService']['t'](_0x3f4e95(0x225)),'type':_0x5e610d['Loading']});}[_0x3a7433(0x364)](_0xcab34e){const _0x115884=_0x3a7433;for(const _0x513183 of _0xcab34e){const {unitId:_0x5ee88e,sheetId:_0x433179,range:_0x22af89}=_0x513183,_0xfe8f92=this[_0x115884(0x2a4)][_0x115884(0x3e3)](_0x5ee88e);if(!_0xfe8f92)continue;const _0x2e4f91=_0xfe8f92[_0x115884(0x202)](_0x433179);if(!_0x2e4f91)continue;const _0x275995=_0x2e4f91[_0x115884(0x238)]();for(let _0x3f699a=_0x22af89[_0x115884(0x3c8)];_0x3f699a<=_0x22af89['endRow'];_0x3f699a++)for(let _0x522859=_0x22af89[_0x115884(0x2fd)];_0x522859<=_0x22af89[_0x115884(0x39f)];_0x522859++){const _0x4b4fd0=_0x275995[_0x115884(0x37f)](_0x3f699a,_0x522859);if(_0x4b4fd0&&(_0x5b7c7b(_0x4b4fd0['f'])||_0x433ef4(_0x4b4fd0['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x27384c(_0x52022d)),P(0x1,_0x23b771),P(0x2,_0x574df3),P(0x3,_0x27384c(_0x37faeb)),P(0x4,_0x1cf763),P(0x5,_0x2e91cd),P(0x6,_0x27384c(_0x5875ca))],Ie);var Nn=Object[_0x3a7433(0x210)],bn=(_0x136011,_0x1180b0,_0x5786e0,_0x469239)=>{const _0x48a160=_0x3a7433;for(var _0x2fc4ea=_0x469239>0x1?void 0x0:_0x469239?Nn(_0x1180b0,_0x5786e0):_0x1180b0,_0x4b1f9d=_0x136011[_0x48a160(0x34d)]-0x1,_0x58a8bc;_0x4b1f9d>=0x0;_0x4b1f9d--)(_0x58a8bc=_0x136011[_0x4b1f9d])&&(_0x2fc4ea=_0x58a8bc(_0x2fc4ea)||_0x2fc4ea);return _0x2fc4ea;},Ue=(_0x224f3a,_0x531bd0)=>(_0x2ac27c,_0x2421d6)=>_0x531bd0(_0x2ac27c,_0x2421d6,_0x224f3a);let He=class extends _0x1c0642{constructor(_0x186b82,_0x35d8ad,_0x4cfec6){const _0x12267e=_0x3a7433;super(),_(this,_0x12267e(0x313),new Map()),_(this,_0x12267e(0x3b6),new Map()),_(this,_0x12267e(0x1f3),!0x1),(this['_configService']=_0x186b82,this[_0x12267e(0x1dd)]=_0x35d8ad,this[_0x12267e(0x3b3)]=_0x4cfec6);}[_0x3a7433(0x3ce)](){const _0x30d222=_0x3a7433;this[_0x30d222(0x1f3)]=!0x0;}[_0x3a7433(0x27a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x16e96a=_0x3a7433;return this[_0x16e96a(0x3b6)];}['dispose'](){const _0x285d56=_0x3a7433;this[_0x285d56(0x1d3)]()[_0x285d56(0x22f)](()=>super[_0x285d56(0x2c4)]());}async['loadOfflineData'](_0x275e26){const _0x473017=_0x3a7433;return this[_0x473017(0x1f3)]?null:this[_0x473017(0x1dd)][_0x473017(0x25d)](_0x1f06b2(_0x275e26));}async[_0x3a7433(0x28b)](_0x189fc3,_0x414d61){const _0x4b36d8=_0x3a7433;return!!this[_0x4b36d8(0x1dd)]['setItem'](_0x189fc3,_0x414d61);}[_0x3a7433(0x1cd)](_0x5830b9,_0x224b45,_0x3f1032,_0x2b3048){const _0x2852ff=_0x3a7433,_0x1c0aaf=this[_0x2852ff(0x3b3)][_0x2852ff(0x2bb)](_0x5830b9);this[_0x2852ff(0x313)][_0x2852ff(0x1bf)](_0x5830b9,{'unitID':_0x5830b9,'type':_0x224b45,'awaitingChangeset':_0x3f1032,'mutations':_0x2b3048,'rev':_0x1c0aaf}),this[_0x2852ff(0x3b6)][_0x2852ff(0x35f)](_0x5830b9)||this['_scheduleSaving'](_0x5830b9);}[_0x3a7433(0x2c5)](_0x1d289e){const _0x2453fa=_0x3a7433,_0xe8fb83=this[_0x2453fa(0x3bb)]();_0xe8fb83===0x0?this[_0x2453fa(0x2cd)](_0x1d289e):this['_saveTaskMap'][_0x2453fa(0x1bf)](_0x1d289e,setTimeout(()=>this[_0x2453fa(0x2cd)](_0x1d289e),_0xe8fb83));}[_0x3a7433(0x3bb)](){const _0x44a705=_0x3a7433;var _0x653ef7;return(_0x653ef7=this[_0x44a705(0x343)][_0x44a705(0x390)](_0x4f98ba))!=null?_0x653ef7:_0x3051c8;}[_0x3a7433(0x2cd)](_0x223ff3){const _0xcde4da=_0x3a7433,_0x688eab=this[_0xcde4da(0x3b6)][_0xcde4da(0x359)](_0x223ff3);return _0x688eab!==void 0x0&&window[_0xcde4da(0x1fe)](_0x688eab),this[_0xcde4da(0x1dd)]['setItem'](_0x1f06b2(_0x223ff3),this[_0xcde4da(0x313)][_0xcde4da(0x359)](_0x223ff3))[_0xcde4da(0x22f)](()=>this[_0xcde4da(0x3b6)]['delete'](_0x223ff3));}async['exhaustSavingTask'](){const _0x39db8c=_0x3a7433,_0x48d5a3=[];this[_0x39db8c(0x3b6)][_0x39db8c(0x2eb)]((_0x45f074,_0x59841e)=>{const _0x50d5c0=_0x39db8c;window['clearTimeout'](_0x45f074),_0x48d5a3[_0x50d5c0(0x3b0)](this['_saveCache'](_0x59841e)[_0x50d5c0(0x22f)](()=>{const _0x55e281=_0x50d5c0;this['_saveTaskMap'][_0x55e281(0x236)](_0x59841e);}));}),await Promise[_0x39db8c(0x384)](_0x48d5a3);}};He=bn([Ue(0x0,_0x574df3),Ue(0x1,_0x32ff2a),Ue(0x2,_0x27384c(_0x4a7a7a))],He);class Ln extends _0x572f10{constructor(){const _0x243511=_0x3a7433;super(),_(this,'urlChange$'),this[_0x243511(0x29b)]=_0x57cde1(window,_0x243511(0x32c))[_0x243511(0x368)](_0x7b7810(this[_0x243511(0x34e)]),_0xe65cb8(0x1),_0x2a23d6(void 0x0));}[_0x3a7433(0x3b8)](_0x2c3966,_0x5050a9,_0x1df6ae=!0x1){const _0x2aa796=_0x3a7433,_0x5a9519=new URL(window[_0x2aa796(0x1b1)][_0x2aa796(0x24c)]);_0x5a9519[_0x2aa796(0x36e)][_0x2aa796(0x1bf)](_0x2c3966,_0x5050a9),_0x1df6ae?window[_0x2aa796(0x3b5)][_0x2aa796(0x3a9)]('','',_0x5a9519[_0x2aa796(0x2ff)]()):window[_0x2aa796(0x3b5)]['pushState']('','',_0x5a9519[_0x2aa796(0x2ff)]());}[_0x3a7433(0x22a)](_0x5801a7,_0x203520=!0x1){const _0x70d990=_0x3a7433,_0x3569fd=new URL(window[_0x70d990(0x1b1)][_0x70d990(0x24c)]);_0x3569fd[_0x70d990(0x36e)]['delete'](_0x5801a7),_0x203520?window[_0x70d990(0x3b5)][_0x70d990(0x3a9)]('','',_0x3569fd[_0x70d990(0x2ff)]()):window[_0x70d990(0x3b5)][_0x70d990(0x20d)]('','',_0x3569fd[_0x70d990(0x2ff)]());}[_0x3a7433(0x2bd)](_0x3c9d9b){const _0x504ffd=_0x3a7433;var _0x27f854;return(_0x27f854=new URL(window[_0x504ffd(0x1b1)]['href'])['searchParams'][_0x504ffd(0x359)](_0x3c9d9b))!=null?_0x27f854:void 0x0;}}var Un=Object[_0x3a7433(0x286)],Mn=Object[_0x3a7433(0x210)],An=(_0x2f530a,_0x56df0d,_0x1776f9)=>_0x56df0d in _0x2f530a?Un(_0x2f530a,_0x56df0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1776f9}):_0x2f530a[_0x56df0d]=_0x1776f9,Pn=(_0x4769db,_0x15ade8,_0x413b26,_0x39d309)=>{const _0x223725=_0x3a7433;for(var _0xa66200=_0x39d309>0x1?void 0x0:_0x39d309?Mn(_0x15ade8,_0x413b26):_0x15ade8,_0x2eceed=_0x4769db[_0x223725(0x34d)]-0x1,_0x3a2f5c;_0x2eceed>=0x0;_0x2eceed--)(_0x3a2f5c=_0x4769db[_0x2eceed])&&(_0xa66200=_0x3a2f5c(_0xa66200)||_0xa66200);return _0xa66200;},Me=(_0xda6d8d,_0x396a36)=>(_0x138127,_0x6d9704)=>_0x396a36(_0x138127,_0x6d9704,_0xda6d8d),wn=(_0xbc41b7,_0x9ce293,_0x1cd494)=>An(_0xbc41b7,_0x9ce293+'',_0x1cd494);const yn=_0x3a7433(0x320);let Ye=class extends _0x50392c{constructor(_0x5aad4d=_t,_0x16c02f,_0x13c659,_0x3b0304){const _0x4f2e1b=_0x3a7433;super(),this[_0x4f2e1b(0x2d0)]=_0x5aad4d,this[_0x4f2e1b(0x39d)]=_0x16c02f,this['_injector']=_0x13c659,this[_0x4f2e1b(0x343)]=_0x3b0304;const {..._0x23ef16}=_0x266c93({},_t,this['_config']);this[_0x4f2e1b(0x343)][_0x4f2e1b(0x2e7)](hn,_0x23ef16);}['onStarting'](){const _0x19a15f=_0x3a7433;this[_0x19a15f(0x3f3)](),this[_0x19a15f(0x328)]();}[_0x3a7433(0x264)](){const _0x17b6eb=_0x3a7433;this[_0x17b6eb(0x344)]();}['_registerDependencies'](){const _0x1ca475=_0x3a7433;var _0x476223;const _0x21c9b1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2a889b,{'useClass':_0x3f3140}],[_0x3d14fc,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x1ca475(0x3bf)]&&_0x21c9b1[_0x1ca475(0x3b0)]([le]),_0x1de876(this[_0x1ca475(0x1cb)],_0x2fb84b(_0x21c9b1,(_0x476223=this[_0x1ca475(0x2d0)])==null?void 0x0:_0x476223[_0x1ca475(0x1e4)]));}['_registerRenderDependencies'](){const _0x2421ad=_0x3a7433;this['disposeWithMe'](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2cc)],[Fe])),this[_0x2421ad(0x3f9)](this[_0x2421ad(0x39d)][_0x2421ad(0x1e8)](_0x36653e[_0x2421ad(0x2a9)],[ke]));}[_0x3a7433(0x328)](){const _0x5ba26e=_0x3a7433;_0x1fe50a(this[_0x5ba26e(0x1cb)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5ba26e(0x2d0)][_0x5ba26e(0x3bf)]&&_0x1fe50a(this['_injector'],[[le]]);}};wn(Ye,_0x3a7433(0x3cb),yn),Ye=Pn([_0x11ccda(_0x3d7acc),Me(0x1,_0x47acbb),Me(0x2,_0x27384c(_0x546954)),Me(0x3,_0x574df3)],Ye);var $n=Object[_0x3a7433(0x210)],xn=(_0x54ebeb,_0x5b3ff6,_0x4d3c5f,_0x354865)=>{const _0x493a90=_0x3a7433;for(var _0x5b5062=_0x354865>0x1?void 0x0:_0x354865?$n(_0x5b3ff6,_0x4d3c5f):_0x5b3ff6,_0x35989d=_0x54ebeb[_0x493a90(0x34d)]-0x1,_0x47cf89;_0x35989d>=0x0;_0x35989d--)(_0x47cf89=_0x54ebeb[_0x35989d])&&(_0x5b5062=_0x47cf89(_0x5b5062)||_0x5b5062);return _0x5b5062;},J=(_0x1bdaf5,_0x296cd)=>(_0x560b48,_0x5d12b6)=>_0x296cd(_0x560b48,_0x5d12b6,_0x1bdaf5);let ut=class extends _0x33b5a6{constructor(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648){super(_0x592efc,_0x131228,_0x1e6a02,_0x24fa7f,_0x592648);}async[_0x3a7433(0x30f)](_0x252b23){const _0x32f232=_0x3a7433,_0x133321=await this[_0x32f232(0x2c1)](),_0x4640ed=this[_0x32f232(0x3fa)](_0x252b23,_0x133321);return this['_doCreateSocket'](_0x4640ed);}['_createSocketURL'](_0x406a2b,_0x539ef1){const _0x3a5d7d=_0x3a7433,_0x800c43=typeof window>'u'?new URL(_0x406a2b):new URL(_0x406a2b,window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x296)]);_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x1ba),_0x539ef1);const _0x2a83ca=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a5d7d(0x1b1)][_0x3a5d7d(0x3f0)]);return _0x2a83ca[_0x3a5d7d(0x359)](_0x3a5d7d(0x32d))&&_0x800c43[_0x3a5d7d(0x36e)][_0x3a5d7d(0x1bf)](_0x3a5d7d(0x32d),_0x2a83ca[_0x3a5d7d(0x359)]('runId')),_0x800c43[_0x3a5d7d(0x2ff)]();}async[_0x3a7433(0x2c1)](){const _0x462956=_0x3a7433;var _0x5993e4,_0x55fdd7,_0x272647;const _0x263197=this[_0x462956(0x343)][_0x462956(0x390)](_0x3f2cb9),_0x329e5b=(_0x5993e4=_0x263197==null?void 0x0:_0x263197[_0x462956(0x2ae)])!=null?_0x5993e4:_0x151348;return(_0x272647=(_0x55fdd7=(await this['_httpService'][_0x462956(0x359)](_0x329e5b,{'headers':{'Content-Type':_0x462956(0x3ed)}}))['body'])==null?void 0x0:_0x55fdd7[_0x462956(0x2c8)])!=null?_0x272647:'';}};ut=xn([J(0x0,_0x27384c(_0x546954)),J(0x1,_0x27384c(_0x37faeb)),J(0x2,_0x574df3),J(0x3,_0x2e91cd),J(0x4,_0x12f3e4)],ut);var Bn=Object[_0x3a7433(0x210)],Fn=(_0x3e5fec,_0x23c3a6,_0x4eee17,_0x163666)=>{for(var _0x3b37c7=_0x163666>0x1?void 0x0:_0x163666?Bn(_0x23c3a6,_0x4eee17):_0x23c3a6,_0x370c60=_0x3e5fec['length']-0x1,_0x11cf8c;_0x370c60>=0x0;_0x370c60--)(_0x11cf8c=_0x3e5fec[_0x370c60])&&(_0x3b37c7=_0x11cf8c(_0x3b37c7)||_0x3b37c7);return _0x3b37c7;},Ae=(_0x18467a,_0x2c60ac)=>(_0x15aac5,_0x396153)=>_0x2c60ac(_0x15aac5,_0x396153,_0x18467a);let dt=class extends _0x1c0642{constructor(_0x29026d,_0xf89761,_0x6bf2a3){const _0x463db2=_0x3a7433;super(),this[_0x463db2(0x29e)]=_0x29026d,this['_httpService']=_0xf89761,this['_configService']=_0x6bf2a3;}async['runOnServer'](_0x1068e0,_0x33177f,_0x1cefe7,..._0x1f754e){const _0x4fa76f=_0x3a7433;var _0x395f20,_0x16fddf,_0x31964b,_0x2924db;const _0x53b7f3=this['_instanceService'][_0x4fa76f(0x381)]();if(!_0x53b7f3)throw new Error(_0x4fa76f(0x261));const _0x542e5c=((_0x395f20=this['_configService'][_0x4fa76f(0x390)](_0x4d0e9a))!=null?_0x395f20:_0x26483f)+'/'+_0x1068e0+_0x4fa76f(0x408)+_0x33177f,_0x3d0636=new URL(window[_0x4fa76f(0x1b1)][_0x4fa76f(0x24c)]),_0x412ee2={'scriptId':_0x1068e0,'runId':(_0x16fddf=_0x3d0636[_0x4fa76f(0x36e)][_0x4fa76f(0x359)](_0x4fa76f(0x32d)))!=null?_0x16fddf:'','function':_0x33177f,'unitId':_0x53b7f3[_0x4fa76f(0x385)](),'argsOfFunction':JSON['stringify'](_0x1f754e),'invokeId':(_0x31964b=_0x1cefe7[_0x4fa76f(0x316)])!=null?_0x31964b:'','executionId':(_0x2924db=_0x1cefe7[_0x4fa76f(0x2bf)])!=null?_0x2924db:''};try{const _0x3b0d2d=await this[_0x4fa76f(0x21a)][_0x4fa76f(0x2ee)](_0x542e5c,{'body':_0x412ee2});return _0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x3a5)]&&_0x3b0d2d['body']['error'][_0x4fa76f(0x2c6)]!==Z['OK']?'Failed':_0x3b0d2d[_0x4fa76f(0x26c)][_0x4fa76f(0x211)];}catch{return _0x4fa76f(0x297);}}};dt=Fn([Ae(0x0,_0x1cf763),Ae(0x1,_0x27384c(_0x37faeb)),Ae(0x2,_0x574df3)],dt);const St=0x7530,It=_0x3a7433(0x370);class rr extends _0x1c0642{constructor(){const _0x16fe3f=_0x3a7433;super(),_(this,_0x16fe3f(0x23b),_0x3f0ee8()),_(this,_0x16fe3f(0x31b),new Set()),_(this,_0x16fe3f(0x1c5),new Map()),_(this,_0x16fe3f(0x1e5),null),_(this,_0x16fe3f(0x2e2),new Map()),_(this,_0x16fe3f(0x3e6),new Map()),this[_0x16fe3f(0x20b)]();}[_0x3a7433(0x2c4)](){const _0x1531b7=_0x3a7433;super[_0x1531b7(0x2c4)](),this[_0x1531b7(0x2e2)]['forEach']((_0x54944f,_0x5079c9)=>this[_0x1531b7(0x1f4)](_0x5079c9)),this['_heartbeatTimer']&&window[_0x1531b7(0x2dd)](this[_0x1531b7(0x1e5)]);}[_0x3a7433(0x244)](_0x3e8d4f){const _0x16b2ae=_0x3a7433;return this[_0x16b2ae(0x1df)](_0x3e8d4f)[_0x16b2ae(0x368)](_0x55e285());}[_0x3a7433(0x33a)](_0x1a2181){const _0x3e8113=_0x3a7433;this[_0x3e8113(0x31b)][_0x3e8113(0x3dd)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3e8113(0x31b)][_0x3e8113(0x40b)](_0x1a2181),this['_send']({'type':0x0,'memberID':this[_0x3e8113(0x23b)],'unitIDs':[_0x1a2181],'isForwarded':!0x1});}[_0x3a7433(0x2f6)](_0x50cc37){const _0x1a2b33=_0x3a7433;this['_selfUnitIDs']['delete'](_0x50cc37),this[_0x1a2b33(0x31b)][_0x1a2b33(0x3dd)]===0x0&&this[_0x1a2b33(0x1e5)]&&window[_0x1a2b33(0x2dd)](this['_heartbeatTimer']);}[_0x3a7433(0x20b)](){const _0x90878e=_0x3a7433;this[_0x90878e(0x3f9)](_0x157525(_0x57cde1(window,_0x90878e(0x40c))['subscribe'](_0xe05cb8=>{const _0x34ba73=_0x90878e;if(_0xe05cb8[_0x34ba73(0x25e)]!==It||!_0xe05cb8[_0x34ba73(0x2b4)])return;const _0x48419e=JSON['parse'](_0xe05cb8['newValue']);this[_0x34ba73(0x3c2)](_0x48419e);}))),window[_0x90878e(0x349)](_0x90878e(0x1de),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x3a7433(0x3c2)](_0x18bd6b){const _0x30f7ac=_0x3a7433;switch(_0x18bd6b['type']){case 0x0:this[_0x30f7ac(0x2f8)](_0x18bd6b);break;case 0x1:this['_handleLeaveEvent'](_0x18bd6b);break;case 0x2:this[_0x30f7ac(0x3d7)](_0x18bd6b);break;}}['_handleJoinEvent'](_0x6f084){const _0x3efcdf=_0x3a7433,{unitIDs:_0x4779ae,memberID:_0x41a831,isForwarded:_0x3a1ff1}=_0x6f084;_0x4779ae[_0x3efcdf(0x2eb)](_0xdccecf=>{const _0x20d0a9=_0x3efcdf;if(!_0x3a1ff1&&this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)&&this[_0x20d0a9(0x1df)](_0xdccecf)['next'](_0x218817[_0x20d0a9(0x362)]),!this[_0x20d0a9(0x1c5)]['has'](_0xdccecf)||!this['_unitOnClients'][_0x20d0a9(0x359)](_0xdccecf)[_0x20d0a9(0x35f)](_0x41a831)){const _0x4dec30=this[_0x20d0a9(0x1c5)][_0x20d0a9(0x359)](_0xdccecf)||new Set();_0x4dec30[_0x20d0a9(0x40b)](_0x41a831),this[_0x20d0a9(0x1c5)]['set'](_0xdccecf,_0x4dec30),this['_scheduleClearOtherTimer'](_0x41a831);}}),_0x3a1ff1||this[_0x3efcdf(0x30b)]({'type':0x0,'memberID':this[_0x3efcdf(0x23b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3a7433(0x3a0)](_0x2b9262){const _0x541b88=_0x3a7433;this[_0x541b88(0x1f4)](_0x2b9262);const _0x146100=window['setTimeout'](()=>{const _0x305f9a=_0x541b88;this[_0x305f9a(0x1c5)][_0x305f9a(0x2eb)](_0x450164=>{const _0x19c95c=_0x305f9a;_0x450164[_0x19c95c(0x236)](_0x2b9262);});},St*0x2);this[_0x541b88(0x2e2)][_0x541b88(0x1bf)](_0x2b9262,_0x146100);}[_0x3a7433(0x1f4)](_0x3514cf){const _0xe6b8fc=_0x3a7433;if(this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x35f)](_0x3514cf)){const _0xbd256b=this[_0xe6b8fc(0x2e2)]['get'](_0x3514cf);_0xbd256b&&window[_0xe6b8fc(0x1fe)](_0xbd256b),this[_0xe6b8fc(0x2e2)][_0xe6b8fc(0x1bf)](_0x3514cf,null);}}[_0x3a7433(0x379)](_0x3729d4){const _0x4a50b9=_0x3a7433,{memberID:_0x4a1c2a,unitIDs:_0x10b836}=_0x3729d4;_0x10b836[_0x4a50b9(0x2eb)](_0x7bba04=>{const _0x318612=_0x4a50b9;var _0xbf07f2;const _0x42356f=this['_unitOnClients'][_0x318612(0x359)](_0x7bba04);_0x42356f&&(_0x42356f['delete'](_0x4a1c2a),(_0xbf07f2=this[_0x318612(0x1df)](_0x7bba04))==null||_0xbf07f2[_0x318612(0x293)](_0x42356f[_0x318612(0x3dd)]===0x0?_0x218817[_0x318612(0x26e)]:_0x218817['OTHER_CLIENTS_EDITING']));}),this[_0x4a50b9(0x1f4)](_0x4a1c2a);}[_0x3a7433(0x3d7)](_0x4a0373){const _0x122d7f=_0x3a7433;this['_scheduleClearOtherTimer'](_0x4a0373[_0x122d7f(0x272)]);}[_0x3a7433(0x30b)](_0xc13559){const _0x422654=_0x3a7433;localStorage[_0x422654(0x278)](It,JSON['stringify'](_0xc13559));}[_0x3a7433(0x29d)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0xd783b5=_0x474c;this[_0xd783b5(0x30b)]({'type':0x2,'memberID':this[_0xd783b5(0x23b)]});},St);}['_ensureSubject'](_0x2e28fe){const _0x131579=_0x3a7433;return this[_0x131579(0x3e6)][_0x131579(0x35f)](_0x2e28fe)||this[_0x131579(0x3e6)][_0x131579(0x1bf)](_0x2e28fe,new _0x29de4b(_0x218817[_0x131579(0x26e)])),this['_unitStatus']['get'](_0x2e28fe);}}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};
|