@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8
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 +15 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x556c86=_0x19a6;(function(_0x585b3c,_0x34e1e7){const _0x543c29=_0x19a6,_0x3ca30a=_0x585b3c();while(!![]){try{const _0x52834b=parseInt(_0x543c29(0xef))/0x1*(parseInt(_0x543c29(0x132))/0x2)+parseInt(_0x543c29(0xcb))/0x3+-parseInt(_0x543c29(0x1e6))/0x4+parseInt(_0x543c29(0x274))/0x5+parseInt(_0x543c29(0x277))/0x6+-parseInt(_0x543c29(0x100))/0x7*(-parseInt(_0x543c29(0xea))/0x8)+parseInt(_0x543c29(0xd6))/0x9*(-parseInt(_0x543c29(0x109))/0xa);if(_0x52834b===_0x34e1e7)break;else _0x3ca30a['push'](_0x3ca30a['shift']());}catch(_0x5d8c14){_0x3ca30a['push'](_0x3ca30a['shift']());}}}(_0x5d94,0x847c7));var Yt=Object['defineProperty'],Wt=(_0x319fff,_0x3cfe29,_0x58ea0a)=>_0x3cfe29 in _0x319fff?Yt(_0x319fff,_0x3cfe29,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58ea0a}):_0x319fff[_0x3cfe29]=_0x58ea0a,_=(_0x42c602,_0x2d494f,_0x2321e5)=>Wt(_0x42c602,typeof _0x2d494f!=_0x556c86(0x286)?_0x2d494f+'':_0x2d494f,_0x2321e5);import{jsx as _0x255282,jsxs as _0x1d87b9}from'react/jsx-runtime';import{CollaborationStatus as _0x44d57a,CollaborationSessionService as _0x48577d,CollaborationController as _0x3d656d,DataLoaderService as _0x3567af,MemberService as _0x3eb0e8,SessionStatus as _0x12c0c1,ILocalCacheService as _0x4b4019,CollaborationUIEventService as _0x368d9b,CollaborationUIEventId as _0x175ad0,DocCollaborationEntity as _0x53545d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1bda1e,getLocalCacheKey as _0x48e2fe,LOCAL_CACHE_INTERVAL as _0x1afb57,LOCAL_CACHE_INTERVAL_KEY as _0x14dacf,UniverCollaborationClientPlugin as _0x5cf549,CollaborationSocketService as _0x3f15f0,DEFAULT_WS_SESSION_TICKET_URL as _0x32005d,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4f4ac7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x22031e,UnitStatus as _0x3d8217}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x541e55,IUniverInstanceService as _0x25c1b3,Inject as _0x5ba14a,Injector as _0x51e455,Disposable as _0x1a0691,createIdentifier as _0x55c821,ILogService as _0x96d098,ICommandService as _0x42c454,Optional as _0xba8e9e,RxDisposable as _0x56e8a9,Workbook as _0x5d95d9,DOC_RANGE_TYPE as _0x5e3c09,debounce as _0x2d4c20,Rectangle as _0x3de0b8,DisposableCollection as _0x171b4d,toDisposable as _0x1f9e88,UniverInstanceType as _0x2cb033,generateRandomId as _0x3eba8f,COLORS as _0x42715e,ColorKit as _0x4aeda6,ThemeService as _0x243cad,fromEventSubject as _0x2e5718,Tools as _0x49b56b,CommandType as _0x2b26f8,IConfigService as _0x43ce76,CanceledError as _0x3c5a31,isFormulaString as _0x528903,isFormulaId as _0x30545d,ILocalStorageService as _0x1df4c7,DependentOn as _0x3eb007,Plugin as _0x2fa95d,merge as _0x55936f,registerDependencies as _0x1852b6,mergeOverrideWithDependencies as _0x56d5e5,touchDependencies as _0x3a0b88}from'@univerjs/core';import{useObservable as _0x465f82,useDependency as _0x258c24,IUIPartsService as _0x3bfb64,BuiltInUIPart as _0x2a7019,connectInjector as _0x23ffa5,IBeforeCloseService as _0x2c4468,IMessageService as _0x31486d,INotificationService as _0x31de34}from'@univerjs/ui';import{BehaviorSubject as _0x27272c,switchMap as _0x5da6cd,of as _0x71f6d6,takeUntil as _0x7e2410,debounceTime as _0x1099c0,Subject as _0x347363,filter as _0x34a0ee,merge as _0x1d8cdb,combineLatest as _0x35d2ad,fromEvent as _0x28ff6c,shareReplay as _0x2e6a11,mapTo as _0x18291f,distinctUntilChanged as _0x1b7b13}from'rxjs';import{Tooltip as _0x27ce6a,clsx as _0x397e6e,MessageType as _0x2d4c29}from'@univerjs/design';import{useRef as _0x578b84,createElement as _0x480ba1,forwardRef as _0x3f51c4,useCallback as _0x28d9df}from'react';import{IRemoteInstanceService as _0x2d5556}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x349971,RefRangeService as _0x12028e,SetSelectionsOperation as _0x31dff8,SheetsSelectionsService as _0x7b3613,EffectRefRangId as _0x206dc7,handleIRemoveRow as _0x1f15a1,handleIRemoveCol as _0x2e1a37,handleMoveRange as _0x506f47,handleInsertRow as _0x4aca48,handleInsertRangeMoveRight as _0x48c330,handleInsertRangeMoveDown as _0x393a39,handleInsertCol as _0x24db57,handleDeleteRangeMoveUp as _0x1f7886,handleDeleteRangeMoveLeft as _0x5355af,runRefRangeMutations as _0x3ce48e}from'@univerjs/sheets';import{Shape as _0x522091,Rect as _0x31832a,getColor as _0x1d9557,RegularPolygon as _0x2295bb,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x324cf9,Vector2 as _0x440a88,SHEET_VIEWPORT_KEY as _0x3e9df3,IRenderManagerService as _0x334053}from'@univerjs/engine-render';import{HTTPService as _0x47eb61,ISocketService as _0x6f5a35,WebSocketService as _0x4d8344}from'@univerjs/network';import{IDocClipboardService as _0x47017c,NodePositionConvertToCursor as _0x38dc80,NodePositionConvertToRectRange as _0x3d8215,TEXT_RANGE_LAYER_INDEX as _0x402ffc,SetDocZoomRatioOperation as _0x2b67cc,DocIMEInputManagerService as _0x191451,DocStateChangeManagerService as _0x35f07e}from'@univerjs/docs-ui';import{IImageIoService as _0x1701bb}from'@univerjs/drawing';import{ITransformService as _0x89b066,CollaborationEvent as _0x242047,isTransformMutationFailure as _0x1e8234,isTransformMutationsWithChangesetSuccess as _0x2b2696,RevisionService as _0x4cac6d,ISnapshotServerService as _0x4e35b7}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2f2e01,RichTextEditingMutation as _0x10c040,DocSelectionManagerService as _0x2aa39f,DocSkeletonManagerService as _0x14a2a2}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2a63b2,serializeRangeWithSheet as _0x24f594,FormulaExecuteStageType as _0x5803fa,FormulaExecutedStateType as _0x4f770a,SetFormulaCalculationStartMutation as _0x387c35,SetFormulaCalculationNotificationMutation as _0x319c23}from'@univerjs/engine-formula';import{map as _0x271767,filter as _0x4625cb,throttleTime as _0x214be3,takeUntil as _0x575d5d,switchMap as _0x483243}from'rxjs/operators';function _0x5d94(){const _0x2e262b=['_initWindowErrorListener','substring','socket$','memberID','from','reason','getDocRanges','http://www.w3.org/2000/svg','getColorFromTheme','_cursorInfo$','drawWith','saveOfflineData','_collabSessionService','max','_updateLocalCursor','functionsExecutedState','/universer-api/license/formula/limit/done','getRenderById','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ENSURE_SNAPSHOT_EXECUTION','fill','_initDependencies','skeleton','catch','newValue','displayName','YUUMI_AI_RUN_FAILED','size','RECT','_urlService','engine','next','restore','/universer-api/license/formula/limit/start','uni.network.url-service','min','_color','now','limitInfo','triggerDblclick','_initUserListener','_toggleOnline','off-line-icon_clip0_910_343','roomMembers','ENTITLE_REPORT_LIMIT_EXCEED','registerComponent','bind','requireSession','history','set','transformMutation','_draw','height','message','_onRefRangeChange','labelPosition','colno','search','init','addObjects','getCollabCursors$','_currentUsage','collaboration.single-unit.warning','_anchor','_initResize','_ensureSubject','REDEMPTION_USER_NOT_ELIGIBLE','OnLineIcon','ENTITLE_INSUFFICIENT_QUOTA','cursorInfo$','hovered','permission.content','unhandledrejection','yellow.400','error','_cursorShapes','_collabCursorController','getParam','assign','JOIN_ROOM_FAILED','roomMembers$','sheetId','_drawAnchor','_getSessionTicket','activeSheet$','has','_handleJoinEvent','colorChannel1','collab-text-range-','fillStyle','_transformHistoryAndStateStack','getCurrentUnitForType','setItem','toRgbString','beforeCommandExecuted','_collaborationController','some','unitId','setTimeout','transformRemoteChangeset','921696BHMeRB','_getFormulaLimitStatus','_handleEvent','_checkAndWaitForCalculationPermission','isActive','editingUnit','YUUMI_UNABLE_LOAD_URL','REDEMPTION_INVALID_CODE','on-line-icon','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','SOCKET_FAILED_RETRY','defIds','startRow','name','InsertRowCommandId','onLocalMutation','getActiveSheet','post','string','_refreshCollabCursors','column','univer-mr-2\x20univer-flex\x20univer-text-xl','TEXT','off-line-icon','releaseFormulaLimitUrl','APPLY_PERMISSION_DENIED','_scheduleHeartbeat','_commandService','_removeClearOtherTimer','getformulaLimitStatusUrl','DATA_SOURCE_TOO_LARGE','INVITE_CODE_REQUIRED','getCellPositionByOffset','ALREADY_EXISTS','asObservable','session.will-retry','_document','_getSaveTimeout','YUUMI_ALL_TABLES_IS_INVALID','_range','_logService','UNIVER_DOC','_docTransformIMECacheService','lineTo','_entityInit$','collab-rect-range-','_eventUnsubscribe','_univerInstanceService','none','_textBubble','_localCacheService','selections','wsSessionTicketUrl','application/json','_httpService','_hover','[Unhandled\x20Rejection]:\x20','setStateCache','defineProperty','tag','_cursors','isArray','unload','_initStatusComponent','resize','popstate','actions','_id','#FFF','parse','AUTHORIZE_CODE_ILLEGAL','get','purple.300','_notificationService','path','_applyCommand','_unitOnClients','data','ONLINE','key','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','LICENSE_IMPORT_SIZE_EXCEEDED','storage','NOT_FOUND','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','YUUMI_CONNECTOR_URL_NOT_FOUND','send','transformSelections','onPointerMove$','getAncestorScale','saveImage','ERROR_AGAIN','createSocket','eventID','[Window\x20Error]:\x20','range','runId','mask','CHANGESET_REVISION_CONFILICT','_hovered','dispose','_taskIds','_shapes','_colorIndex','setParam','_dataLoaderService','find','_memberService','findNodePositionByCharIndex','_scene','registerBeforeClose','_doCreateSocket','enableFrontendLog','_getMergeRange','redoState','YUUMI_ASYNCIO_CANCELLED','INVITE_CODE_HAS_BEEN_UES','white','APPLY_REJECT','selection','currentColor','startsWith','getStateCache','_scheduleSaving','translate(.97)','bottom','_updateURLWithCurrentState','row','getRangePointData','href','COMPLETION_FINISHED','arc','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','textRanges','permission.title','replaceState','_entities','_setFormulaLimitStatus','_transformPreviousActiveRange','getCollabEntity$','_maxFormulaLimit','1074180aXIiyN','_releaseCalculationLimit','_revisionService','4598046SdOsiD','OTHER_CLIENTS_EDITING','defs','_renderManagerService','session.collaboration-timeout','result','LOGIN_FAILED','xlink:href','m2Prime','pluginName','0\x200\x2017\x2016','MOBILE_VERIFY_CODE_MISMATCH','onRendered','REDEMPTION_CODE_INACTIVE','random','symbol','OffLineIcon','url(#on-line-icon_clip0_910_349)','SOCKET_FAILED','PENDING','ENTITLE_COUPON_USED_UP','PERMISSION_DENIED','_setupSubUnitSync','collaboration.offline-data-not-saved','FromArray','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','sheetID','ENTITLE_DUP_SUBSCRIPTION','SUCCESS','idSuffix','DeleteRangeMoveUpCommandId','_initEvent','_lastResponseTimestamp','InsertColCommandId','PAYMENT_CHANNEL_NOT_SUPPORT','clearInterval','green.600','top','_hideTimer','_messageService','collabCursorState$','clearTimeout','mutations','_unitStatus','ENTITLE_CAN_NOT_BUY_LOWER_OTP','onPointerLeave$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','deepClone','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_localeService','onMouseMove','forEach','split','_beforeCloseService','_updateCollabCursors','_clearPolling','UNDEFINED','includes','getMergeData','collaboration.closeRoom','_initCommandExecutedListener','LICENSE_MAX_UNITS_EXCEEDED','getUniverSheetInstance','_removeCollabCursors','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','1em','with','dirtyRanges','_setupBeforeClosingHandler','_docStateChangeManagerService','assignAColorForMemberID','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','FETCH_MISS','collab-client.tooltip.reconnect','getOwnPropertyDescriptor','_registerDependencies','_online','setConfig','startColumn','onPointerEnter$','getCellMatrix','USER_NOT_INVITED_CODE','text','ranges','currentUsage','sessionStatus$','InsertRangeMoveRightCommandId','formula.calculation.waiting','getUnitId','...','_docSyncEditingCollabCursorService','show','_onCursorDelete','onStarting','status$','_config','_transformUndoRedoStack','_cachedData','type','currentSkeleton$','addObject','_refRangeService','transformByState','_handleHover','_handleHeartbeatEvent','AWAITING','Unknown\x20user','transformStateCache','values','CONFLICT','measureText','totalFormulasToCalculate','getOffsetConfig','_name','fillText','USER_IS_ANONYMOUS','_configService','_scheduleClearOtherTimer','_registerRenderDependencies','_collaborationUIEventService','RemoveColCommandId','USERS_LEAVE','_syncEditingCollabCursorService','syncEditingCollabCursor','getUnitStatus$','_render','APPLY_REVISION_CONFILICT','NO_OTHER_CLIENTS_EDITING','collabStatus.conflict','flatMap','getMember','getUnit','parseInt','getViewport','ENTITLE_INVALID_COUPON_CODE','INTERNAL_ERROR','delete','map','_startSheetCollabCursor','_getScale','YUUMI_RATE_OVER_LIMIT','_getSheetObject','transformIMECache','NOT_COLLAB','_onCursorUpdate','INVALID_ARGUMENT','undoState','setShapeProps','ticket','urlChange$','UniverIcon','_heartbeatTimer','_updateSubUnitFromURLParams','unsubscribe','backgroundColor','closePath','_context','_send','red.300','push','YUUMI_TABLE_NOT_FOUND_IN_UNIT','VIEW_MAIN','unitID','unshift','_toggleOffline','_sheetSkeletonManagerService','stageInfo','currentTheme$','collabStatus.notCollab','reconnect','_selfUnitIDs','REDEMPTION_CODE_FULLY_REDEEMED','round','1014504LROkvV','pipe','getMemberID','length','getActiveRange','HEADER_MENU','getVpScrollXYInfoByPosToVp','_docTransformStateCacheService','children','getSheetBySheetId','stage','9euDANJ','UNIVER_SHEET','formula.calculation.unable','dispose$','_labelPosition','YUUMI_URL_COL_OUT_OF_RANGE','current','_saveCache','_clearOtherTimers','doc.mutation.rich-text-editing','_instanceService','moveTo','LICENSE_EXPORT_SIZE_EXCEEDED','addHandlerCallback','onCommandExecuted','_session','_hasFormulaInDirtyRanges','RemoveRowCommandId','updateOfflineData','m1Prime','8eIVYwi','_pollingInterval','collaboration-client-ui.config','YUUMI_SUBSCRIPTION_NOT_FOUND','_status$','14619TlltBp','UNRECOGNIZED','EMAIL_VERIFY_CODE_MISMATCH','searchParams','_docSkeleton','INVITE_CODE_ALREADY_BOUND','SNAPSHOT_INVALID_SNAPSHOT','getTypeOfUnitAdded$','[CollaborationDataLoaderController]','exhaustSavingTask','docStateChange$','_collabCursorState$','collabStatus.synced','_checkCalculationAvailable','loadOfflineData','entries','PY_RUNTIME_SCRIPT_ERROR','758933eJZIUL','hide','replaceDocRanges','OFFLINE','_init','/universer-api/license/formula/limit/status','stringify','CONNECTOR_DATA_TOO_LARGE','on-line-icon_clip0_910_349','9178190WQhSpr','url(#$1','removeEventListener','_initEntityListener','_collaborationSessionService','LOGIN_TOKEN_PROCESSING_FAILED','_transformService','disposeWithMe','clipPath','MoveRangeCommandId','getSheetId','Error','getTypeOfUnitDisposed$','collab-text-anchor-','getCurrentSelections','getCurrent','beginPath','_handleLeaveEvent','YUUMI_NO_CUBOID_FOR_QUESTION','_uiPartsService','/universer-api/frontend/logs','LICENSE_DISTRO_REJECTED','SNAPSHOT_HAS_BEEN_REMOVED','subscribeEvent','jiqing.500','transformMutationsWithChangeset','endColumn','_colorAssignService','width','_drawRectRange','USER_NOT_FOUND','getFocusedUnit','_disabled','saveTaskMap','body','params','complete','url(#off-line-icon_clip0_910_343)','AWAITING_WITH_PENDING','collabStatus.offline','makeDirty','36doIcGH','_cursor','_localStorageService','save','_docTransformSelectionsService','[LogService\x20Error]:\x20','WECHAT_HAS_BEEN_BOUND','subscribe','disableLocalCache','div','addEventListener','cursorInfo','SYNCED','_getAnchorBounding','getSkeleton','Warning','use','_anchorDot','contains','focused$','_backgroundColor','enableLocalCache','add','_startCalculationLimit','_docClipboardService','M0\x200H16V16H0z','createInstance','UNAUTHENTICATED','_drawTextRange','getItem','/run/','black','\x20at\x20','_initUnhandledRejectionListener','unit','setUndoRedoMutationParamsCache','formula.calculation.started','UPDATE_CURSOR','imageSourceType','REDEMPTION_CODE_NOT_STARTED','OTHER_CLIENT_EDITING','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','subunit','attrs','_injector','stack','_saveTaskMap','entityInit$','pushState','_showGuardMessage','_themeService','_uploadLog','_initCommandInterceptor','registerRenderModule','evenodd','toString','?taskId=','location','_memberID','code','event$','ENTITLE_CHAT_LIMIT_EXCEED','getUndoRedoMutationParamsCache','_initStatusListener','getConfig','_lastPointer','transform','TOO_MANY_REQUESTS','_roomMembers$','color','then','_assignedColors','APPLY_NON_SEQUENTIAL_REVISION','endRow','fillRule','registerRefRange','univer-flex\x20univer-items-center','_startDocCollabCursor','setAlpha','debug'];_0x5d94=function(){return _0x2e262b;};return _0x5d94();}import{SheetSkeletonManagerService as _0x368b5d,getCoordByCell as _0x1012ad,getSheetObject as _0x19db47}from'@univerjs/sheets-ui';function Ge({ref:_0x4c2ff8,..._0x20a51c}){const _0xe4dc3f=_0x556c86,{icon:_0x722935,id:_0x3c4e83,className:_0x18b883,extend:_0x3d8b5e,..._0x1a2a74}=_0x20a51c,_0x480875=('univerjs-icon\x20univerjs-icon-'+_0x3c4e83+'\x20'+(_0x18b883||''))['trim'](),_0x27cae6=_0x578b84('_'+vi());return At(_0x722935,''+_0x3c4e83,{'defIds':_0x722935[_0xe4dc3f(0x1f2)],'idSuffix':_0x27cae6[_0xe4dc3f(0xdc)]},{'ref':_0x4c2ff8,'className':_0x480875,..._0x1a2a74},_0x3d8b5e);}function At(_0x2fb251,_0x16b782,_0x792c5c,_0x59d3d9,_0x24fa44){const _0x52df03=_0x556c86;return _0x480ba1(_0x2fb251[_0x52df03(0x222)],{'key':_0x16b782,...gi(_0x2fb251,_0x792c5c,_0x24fa44),..._0x59d3d9},(Ei(_0x2fb251,_0x792c5c)[_0x52df03(0xd3)]||[])[_0x52df03(0xa7)]((_0x41dbec,_0x377431)=>At(_0x41dbec,_0x16b782+'-'+_0x2fb251['tag']+'-'+_0x377431,_0x792c5c,void 0x0,_0x24fa44)));}function gi(_0x4bcd2d,_0xa10a15,_0x5dd0ae){const _0xf3b2dd=_0x556c86,_0x3c7b81={..._0x4bcd2d[_0xf3b2dd(0x15d)]};_0x5dd0ae!=null&&_0x5dd0ae[_0xf3b2dd(0x1d9)]&&_0x3c7b81[_0xf3b2dd(0x196)]===_0xf3b2dd(0x1d9)&&(_0x3c7b81[_0xf3b2dd(0x196)]=_0x5dd0ae['colorChannel1']),_0x4bcd2d['tag']===_0xf3b2dd(0x248)&&_0x3c7b81['id']&&(_0x3c7b81['id']=_0x3c7b81['id']+_0xa10a15[_0xf3b2dd(0x294)]),Object[_0xf3b2dd(0xfe)](_0x3c7b81)[_0xf3b2dd(0x2aa)](([_0x3f5f12,_0x1f5376])=>{const _0x4d1caa=_0xf3b2dd;_0x3f5f12==='mask'&&typeof _0x1f5376==_0x4d1caa(0x1f9)&&(_0x3c7b81[_0x3f5f12]=_0x1f5376['replace'](/url\(#(.*)\)/,_0x4d1caa(0x10a)+_0xa10a15[_0x4d1caa(0x294)]+')'));});const {defIds:_0x212fe1}=_0xa10a15;return!_0x212fe1||_0x212fe1[_0xf3b2dd(0xce)]===0x0||(_0x4bcd2d[_0xf3b2dd(0x222)]===_0xf3b2dd(0x142)&&_0x3c7b81[_0xf3b2dd(0x27e)]&&(_0x3c7b81[_0xf3b2dd(0x27e)]=_0x3c7b81['xlink:href']+_0xa10a15[_0xf3b2dd(0x294)]),Object[_0xf3b2dd(0xfe)](_0x3c7b81)[_0xf3b2dd(0x2aa)](([_0x27aacf,_0x21785b])=>{const _0x180966=_0xf3b2dd;typeof _0x21785b=='string'&&(_0x3c7b81[_0x27aacf]=_0x21785b['replace'](/url\(#(.*)\)/,_0x180966(0x10a)+_0xa10a15[_0x180966(0x294)]+')'));})),_0x3c7b81;}function Ei(_0x2ad64c,_0x4f10b6){const _0x11c491=_0x556c86;var _0x26e08c;const {defIds:_0x452a4c}=_0x4f10b6;return!_0x452a4c||_0x452a4c[_0x11c491(0xce)]===0x0?_0x2ad64c:_0x2ad64c[_0x11c491(0x222)]==='defs'&&((_0x26e08c=_0x2ad64c['children'])!=null&&_0x26e08c[_0x11c491(0xce)])?{..._0x2ad64c,'children':_0x2ad64c['children'][_0x11c491(0xa7)](_0x1a7f95=>typeof _0x1a7f95[_0x11c491(0x15d)]['id']==_0x11c491(0x1f9)&&_0x452a4c&&_0x452a4c[_0x11c491(0x2b0)](_0x1a7f95[_0x11c491(0x15d)]['id'])?{..._0x1a7f95,'attrs':{..._0x1a7f95['attrs'],'id':_0x1a7f95['attrs']['id']+_0x4f10b6[_0x11c491(0x294)]}}:_0x1a7f95)}:_0x2ad64c;}function vi(){const _0x2cf156=_0x556c86;return Math[_0x2cf156(0x285)]()[_0x2cf156(0x169)](0x24)[_0x2cf156(0x183)](0x2,0x8);}Ge[_0x556c86(0x19b)]=_0x556c86(0xb4);const pi={'tag':'svg','attrs':{'xmlns':_0x556c86(0x189),'fill':_0x556c86(0x217),'viewBox':'0\x200\x2016\x2016','width':_0x556c86(0x2b8),'height':_0x556c86(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x556c86(0x12e)},'children':[{'tag':_0x556c86(0x231),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x556c86(0xca),'strokeLinejoin':_0x556c86(0xca),'strokeWidth':1.2}}]},{'tag':_0x556c86(0x279),'attrs':{},'children':[{'tag':_0x556c86(0x111),'attrs':{'id':_0x556c86(0x1ac)},'children':[{'tag':_0x556c86(0x231),'attrs':{'fill':_0x556c86(0x25c),'d':_0x556c86(0x14b)}}]}]}],'defIds':[_0x556c86(0x1ac)]},Pt=_0x3f51c4(function(_0x242ce7,_0x42e0b1){const _0x341691=_0x556c86;return _0x480ba1(Ge,Object[_0x341691(0x1d0)]({},_0x242ce7,{'id':_0x341691(0x1fe),'ref':_0x42e0b1,'icon':pi}));});Pt[_0x556c86(0x19b)]=_0x556c86(0x287);const Oi={'tag':'svg','attrs':{'xmlns':_0x556c86(0x189),'fill':'none','viewBox':_0x556c86(0x281),'width':_0x556c86(0x2b8),'height':_0x556c86(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x556c86(0x288)},'children':[{'tag':'path','attrs':{'stroke':_0x556c86(0x25f),'d':_0x556c86(0x23b),'strokeLinecap':_0x556c86(0xca),'strokeLinejoin':_0x556c86(0xca),'strokeWidth':1.2}}]},{'tag':_0x556c86(0x279),'attrs':{},'children':[{'tag':_0x556c86(0x111),'attrs':{'id':_0x556c86(0x108)},'children':[{'tag':_0x556c86(0x231),'attrs':{'fill':_0x556c86(0x25c),'d':_0x556c86(0x14b),'transform':_0x556c86(0x263)}}]}]}],'defIds':[_0x556c86(0x108)]},wt=_0x3f51c4(function(_0x33c65b,_0x57bbe9){const _0x302e70=_0x556c86;return _0x480ba1(Ge,Object[_0x302e70(0x1d0)]({},_0x33c65b,{'id':_0x302e70(0x1ee),'ref':_0x57bbe9,'icon':Oi}));});wt[_0x556c86(0x19b)]=_0x556c86(0x1c5);function Ti(_0x45888f){const _0x4e182d=_0x556c86;switch(_0x45888f){case _0x44d57a[_0x4e182d(0x103)]:return _0x4e182d(0x130);case _0x44d57a['CONFLICT']:return _0x4e182d(0x2f7);case _0x44d57a[_0x4e182d(0x2bf)]:return'collabStatus.fetchMiss';case _0x44d57a['NOT_COLLAB']:return _0x4e182d(0xc6);case _0x44d57a[_0x4e182d(0x2e0)]:case _0x44d57a[_0x4e182d(0x12f)]:return'collabStatus.syncing';case _0x44d57a[_0x4e182d(0x13e)]:case _0x44d57a[_0x4e182d(0x28a)]:return _0x4e182d(0xfb);}}function Ci(_0x616546){const _0x3d5f6a=_0x556c86,{status$:_0x2581af}=_0x616546,_0x5a410e=_0x465f82(_0x2581af,_0x44d57a[_0x3d5f6a(0xad)]),_0x5d0cdd=_0x258c24(_0x541e55),_0x407893=_0x258c24(_0x48577d),_0x26f78b=_0x5a410e!==_0x44d57a[_0x3d5f6a(0x103)],_0x57cd66=_0x5d0cdd['t'](Ti(_0x5a410e)),_0x4bb008=_0x26f78b?_0x255282(wt,{}):_0x255282(Pt,{}),_0x1bd0eb=_0x28d9df(()=>{const _0x261fe4=_0x3d5f6a;_0x26f78b||_0x407893[_0x261fe4(0xc7)]();},[_0x26f78b,_0x407893]);function _0x477769(){const _0x2e4b30=_0x3d5f6a;return _0x1d87b9(_0x2e4b30(0x13b),{'className':_0x2e4b30(0x17e),'onClick':_0x1bd0eb,'children':[_0x255282(_0x2e4b30(0x13b),{'className':_0x397e6e(_0x2e4b30(0x1fc),{'univer-text-green-500':_0x26f78b,'univer-text-red-500':!_0x26f78b}),'children':_0x4bb008}),_0x255282(_0x2e4b30(0x13b),{'className':_0x2e4b30(0x2be),'children':_0x57cd66})]});}return _0x26f78b?_0x477769():_0x255282(_0x27ce6a,{'title':_0x5d0cdd['t'](_0x3d5f6a(0x2c0)),'children':_0x477769()});}var Ri=Object[_0x556c86(0x2c1)],Di=(_0x535379,_0x31c464,_0x3de9b6,_0x2a32b4)=>{const _0x484d84=_0x556c86;for(var _0x5b5011=_0x2a32b4>0x1?void 0x0:_0x2a32b4?Ri(_0x31c464,_0x3de9b6):_0x31c464,_0x1837ee=_0x535379[_0x484d84(0xce)]-0x1,_0x2a6445;_0x1837ee>=0x0;_0x1837ee--)(_0x2a6445=_0x535379[_0x1837ee])&&(_0x5b5011=_0x2a6445(_0x5b5011)||_0x5b5011);return _0x5b5011;},se=(_0x446b13,_0x27c965)=>(_0x5e7429,_0x1042c8)=>_0x27c965(_0x5e7429,_0x1042c8,_0x446b13);let ae=class extends _0x1a0691{constructor(_0x3c0c0b,_0xeb3d2f,_0x5b1e1c,_0x1b3b2a){const _0x14190d=_0x556c86;super(),_(this,_0x14190d(0xee),new _0x27272c(_0x44d57a[_0x14190d(0xad)])),(this[_0x14190d(0x216)]=_0x3c0c0b,this[_0x14190d(0x15e)]=_0xeb3d2f,this[_0x14190d(0x1e1)]=_0x5b1e1c,this[_0x14190d(0x11c)]=_0x1b3b2a,this['_initStatusComponent'](),this[_0x14190d(0x171)]());}[_0x556c86(0x171)](){const _0x51c247=_0x556c86;this[_0x51c247(0x110)](this[_0x51c247(0x216)][_0x51c247(0x145)][_0x51c247(0xcc)](_0x5da6cd(()=>{const _0xbc2373=_0x51c247,_0x179e54=this[_0xbc2373(0x216)][_0xbc2373(0x128)]();return _0x179e54?this[_0xbc2373(0x1e1)][_0xbc2373(0x272)](_0x179e54[_0xbc2373(0x2cf)]()):_0x71f6d6(null);}),_0x5da6cd(_0x502d92=>_0x502d92?_0x502d92[_0x51c247(0x2d5)]:_0x71f6d6(_0x44d57a[_0x51c247(0xad)])))[_0x51c247(0x139)](_0x1780bf=>{const _0xcb89dd=_0x51c247;this[_0xcb89dd(0xee)]['next'](_0x1780bf);}));}[_0x556c86(0x226)](){const _0x221e17=_0x556c86;this[_0x221e17(0x110)](this[_0x221e17(0x11c)][_0x221e17(0x1af)](_0x2a7019[_0x221e17(0xd0)],()=>_0x23ffa5(Ni({'status$':this['_status$'][_0x221e17(0x209)]()}),this[_0x221e17(0x15e)])));}};ae=Di([se(0x0,_0x25c1b3),se(0x1,_0x5ba14a(_0x51e455)),se(0x2,_0x5ba14a(_0x3d656d)),se(0x3,_0x3bfb64)],ae);function Ni(_0x25768f){const {status$:_0x1efa72}=_0x25768f;return function(){return _0x255282(Ci,{'status$':_0x1efa72});};}const yt=_0x55c821(_0x556c86(0x1a4));var bi=Object[_0x556c86(0x2c1)],Li=(_0x32d38d,_0x1d4ca5,_0x35cf65,_0x3e8999)=>{const _0x32bee3=_0x556c86;for(var _0x24f8a3=_0x3e8999>0x1?void 0x0:_0x3e8999?bi(_0x1d4ca5,_0x35cf65):_0x1d4ca5,_0x4408ab=_0x32d38d[_0x32bee3(0xce)]-0x1,_0x49c252;_0x4408ab>=0x0;_0x4408ab--)(_0x49c252=_0x32d38d[_0x4408ab])&&(_0x24f8a3=_0x49c252(_0x24f8a3)||_0x24f8a3);return _0x24f8a3;},K=(_0x6635de,_0x217493)=>(_0x259bb9,_0x25fa24)=>_0x217493(_0x259bb9,_0x25fa24,_0x6635de);let ce=class extends _0x56e8a9{constructor(_0x5dc2dc,_0x44548b,_0x2348ec,_0x1a0945,_0x3a8a78){const _0x570543=_0x556c86;super(),this['_urlService']=_0x5dc2dc,this[_0x570543(0x20f)]=_0x44548b,this['_commandService']=_0x2348ec,this['_dataLoaderService']=_0x1a0945,_0x3a8a78?_0x3a8a78==null||_0x3a8a78['whenReady']()[_0x570543(0x178)](()=>this[_0x570543(0x104)]()):(this[_0x570543(0x20f)][_0x570543(0x181)](_0x570543(0xf7),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x570543(0x104)]());}async[_0x556c86(0x104)](){const _0x200fc3=_0x556c86,_0x22b954=this[_0x200fc3(0x19f)][_0x200fc3(0x1cf)](_0x200fc3(0x154)),_0x407244=this[_0x200fc3(0x19f)][_0x200fc3(0x1cf)]('type'),_0xee291f=this[_0x200fc3(0x19f)][_0x200fc3(0x1cf)](_0x200fc3(0x15c));if(!_0x22b954||!_0x407244){this['_logService']['debug'](_0x200fc3(0xf7),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xbdd3f6=await this[_0x200fc3(0x250)]['loadUnit'](_0x22b954,Number(_0x407244),_0xee291f);_0xbdd3f6&&_0xbdd3f6 instanceof _0x5d95d9&&this[_0x200fc3(0x28d)](_0xbdd3f6);}async[_0x556c86(0x28d)](_0x21ec5b){const _0x1c2d34=_0x556c86;await this[_0x1c2d34(0xb6)](_0x21ec5b),_0x21ec5b[_0x1c2d34(0x1d6)][_0x1c2d34(0xcc)](_0x7e2410(this[_0x1c2d34(0xd9)]))[_0x1c2d34(0x139)](_0x1aa57a=>{const _0x40170f=_0x1c2d34;_0x1aa57a&&this[_0x40170f(0x265)](_0x1aa57a);}),this['_urlService'][_0x1c2d34(0xb3)][_0x1c2d34(0xcc)](_0x7e2410(this['dispose$']))[_0x1c2d34(0x139)](()=>this[_0x1c2d34(0xb6)](_0x21ec5b));}[_0x556c86(0x265)](_0x1dda16,_0x1f392f=!0x1){const _0x3e92ed=_0x556c86,_0x2186fe=this[_0x3e92ed(0x19f)][_0x3e92ed(0x1cf)]('subunit');_0x1dda16[_0x3e92ed(0x113)]()!==_0x2186fe&&this[_0x3e92ed(0x19f)]['setParam'](_0x3e92ed(0x15c),_0x1dda16['getSheetId'](),_0x1f392f);}async['_updateSubUnitFromURLParams'](_0x507829){const _0x511cce=_0x556c86;var _0x1ae295;const _0x170662=this['_urlService']['getParam']('subunit');if(!_0x170662||!_0x507829[_0x511cce(0xd4)](_0x170662)){const _0x2966c2=_0x507829['getUnhiddenWorksheets']()[0x0],_0x400449=_0x507829[_0x511cce(0xd4)](_0x2966c2);if(!_0x400449)return;this[_0x511cce(0x265)](_0x400449,!0x0),await this[_0x511cce(0x202)]['executeCommand'](_0x349971['id'],{'unitId':_0x507829[_0x511cce(0x2cf)](),'subUnitId':_0x2966c2});return;}((_0x1ae295=_0x507829[_0x511cce(0x1f7)]())==null?void 0x0:_0x1ae295[_0x511cce(0x113)]())!==_0x170662&&await this[_0x511cce(0x202)]['executeCommand'](_0x349971['id'],{'unitId':_0x507829[_0x511cce(0x2cf)](),'subUnitId':_0x170662});}};ce=Li([K(0x0,yt),K(0x1,_0x96d098),K(0x2,_0x42c454),K(0x3,_0x5ba14a(_0x3567af)),K(0x4,_0xba8e9e(_0x2d5556))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0xf44924,_0x310747,_0x17bdb7,_0x2a693f)=>{for(var _0x3066df=_0x2a693f>0x1?void 0x0:_0x2a693f?Ui(_0x310747,_0x17bdb7):_0x310747,_0x488f36=_0xf44924['length']-0x1,_0x3654e5;_0x488f36>=0x0;_0x488f36--)(_0x3654e5=_0xf44924[_0x488f36])&&(_0x3066df=_0x3654e5(_0x3066df)||_0x3066df);return _0x3066df;},rt=(_0x227167,_0x416a23)=>(_0x56c557,_0x13fbae)=>_0x416a23(_0x56c557,_0x13fbae,_0x227167);let $e=class extends _0x56e8a9{constructor(_0x5d7605,_0x23d029){const _0x21eeb5=_0x556c86;super(),this[_0x21eeb5(0x14a)]=_0x5d7605,this['_imageIoService']=_0x23d029,this[_0x21eeb5(0x104)]();}[_0x556c86(0x104)](){const _0x18493a=_0x556c86,_0x2cff62=this;this[_0x18493a(0x110)](this[_0x18493a(0x14a)]['addClipboardHook']({'onBeforePasteImage':async _0x5f44f7=>{const _0x470c48=_0x18493a,_0x40d996=await _0x2cff62['_imageIoService'][_0x470c48(0x241)](_0x5f44f7);return _0x40d996?{'source':_0x40d996['source'],'imageSourceType':_0x40d996[_0x470c48(0x158)]}:null;}}));}};$e=Mi([rt(0x0,_0x47017c),rt(0x1,_0x1701bb)],$e);const ot=[_0x556c86(0x22f),_0x556c86(0x121),_0x556c86(0x29b),_0x556c86(0xbc),'blue.400',_0x556c86(0x1cb)];class Ke extends _0x1a0691{constructor(){const _0xfeaffd=_0x556c86;super(...arguments),_(this,_0xfeaffd(0x179),new Map()),_(this,_0xfeaffd(0x24e),0x0);}['assignAColorForMemberID'](_0x4e3ecd){const _0x168e85=_0x556c86;if(this['_assignedColors'][_0x168e85(0x1d7)](_0x4e3ecd))return this[_0x168e85(0x179)][_0x168e85(0x22e)](_0x4e3ecd);const _0x24ed29=ot[this[_0x168e85(0x24e)]];return this[_0x168e85(0x24e)]=(this['_colorIndex']+0x1)%ot[_0x168e85(0xce)],this[_0x168e85(0x179)][_0x168e85(0x1b3)](_0x4e3ecd,_0x24ed29),_0x24ed29;}}function $t(_0x3c9b5c){const _0x1ddd80=_0x556c86;let _0x52c1ae='';for(const _0x4f9dde of _0x3c9b5c){const {startOffset:_0x261876,endOffset:_0x365972,isActive:_0x20444b,rangeType:_0x7afd75,segmentId:_0x3f42b0,segmentPage:_0x49e8ec}=_0x4f9dde;_0x52c1ae[_0x1ddd80(0xce)]&&(_0x52c1ae+=','),_0x52c1ae+=_0x261876+':'+_0x365972+':'+(_0x20444b?'1':'0')+':'+_0x7afd75+':'+_0x3f42b0+':'+_0x49e8ec;}return _0x52c1ae;}function Ai(_0x15d804){const _0x367baf=_0x556c86,_0x58627c=_0x15d804[_0x367baf(0x2ab)](','),_0x99edd4=[];for(const _0x599b65 of _0x58627c){const [_0x3502d7,_0x15d634,_0x3876e8,_0x454157,_0x269619,_0x5a3680]=_0x599b65['split'](':');_0x99edd4[_0x367baf(0xbd)]({'startOffset':Number(_0x3502d7),'endOffset':Number(_0x15d634),'collapsed':_0x3502d7===_0x15d634,'isActive':_0x3876e8==='1','rangeType':_0x454157===_0x5e3c09[_0x367baf(0x1fd)]?_0x5e3c09[_0x367baf(0x1fd)]:_0x5e3c09[_0x367baf(0x19e)],'segmentId':typeof _0x269619==_0x367baf(0x1f9)?String(_0x269619):'','segmentPage':Number(_0x5a3680!=null?_0x5a3680:-0x1)});}return _0x99edd4[_0x367baf(0x1e2)](_0x2bb72e=>_0x2bb72e[_0x367baf(0x1ea)])||(_0x99edd4[0x0]['isActive']=!0x0),_0x99edd4;}class ze extends _0x56e8a9{constructor(){const _0x33ac11=_0x556c86;super(...arguments),_(this,_0x33ac11(0xfa),new _0x27272c(null)),_(this,'collabCursorState$',this[_0x33ac11(0xfa)][_0x33ac11(0x209)]());}[_0x556c86(0x2f2)](_0x278179){const _0x4e26cd=_0x556c86,{unitID:_0x419456,memberID:_0x2d58fd,textRanges:_0x3f60fc}=_0x278179,_0xc91faa=$t(_0x3f60fc);if(_0xc91faa==='')return;const _0x7462be={'unitID':_0x419456,'memberID':_0x2d58fd,'selection':_0xc91faa};this[_0x4e26cd(0xfa)][_0x4e26cd(0x1a1)](_0x7462be);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x325a99,_0x3937cf,_0x83b21c,_0x5671b1)=>{const _0x1f3fdd=_0x556c86;for(var _0x2d9bab=_0x5671b1>0x1?void 0x0:_0x5671b1?Pi(_0x3937cf,_0x83b21c):_0x3937cf,_0x4106c1=_0x325a99[_0x1f3fdd(0xce)]-0x1,_0x52625b;_0x4106c1>=0x0;_0x4106c1--)(_0x52625b=_0x325a99[_0x4106c1])&&(_0x2d9bab=_0x52625b(_0x2d9bab)||_0x2d9bab);return _0x2d9bab;},A=(_0xb3ffec,_0xf1fb84)=>(_0x514be5,_0x56bd86)=>_0xf1fb84(_0x514be5,_0x56bd86,_0xb3ffec);const yi=0x12c,$i=0x64;let xe=class extends _0x56e8a9{constructor(_0x1d92a3,_0x48dadb,_0x3e9a69,_0x5724ef,_0x21680f,_0x5248ab,_0x5cfe22,_0x4ba0a1,_0xf7f138){const _0x4b99bc=_0x556c86;super(),_(this,_0x4b99bc(0x2c3),!0x1),_(this,_0x4b99bc(0x104),!0x1),_(this,_0x4b99bc(0x18b),new _0x27272c(new Map())),_(this,_0x4b99bc(0x1c7),this[_0x4b99bc(0x18b)][_0x4b99bc(0x209)]()),_(this,_0x4b99bc(0x176),new _0x27272c([])),_(this,_0x4b99bc(0x1d2),this[_0x4b99bc(0x176)][_0x4b99bc(0xcc)](_0x1099c0(yi))),_(this,'_updateLocalCursor',_0x2d4c20(_0x3b8018=>{const _0x5b8120=_0x4b99bc,_0x45c935={'eventID':_0x242047[_0x5b8120(0x157)],'data':{'unitID':this[_0x5b8120(0xc0)],'memberID':this['_session'][_0x5b8120(0xcd)](),'selection':$t(_0x3b8018)}};this['_session'][_0x5b8120(0x23d)](_0x45c935,this['unitID']);},$i)),(this[_0x4b99bc(0xc0)]=_0x1d92a3,this[_0x4b99bc(0xe5)]=_0x48dadb,this[_0x4b99bc(0x15e)]=_0x3e9a69,this['_colorAssignService']=_0x5724ef,this['_memberService']=_0x21680f,this[_0x4b99bc(0x2f1)]=_0x5248ab,this[_0x4b99bc(0x10f)]=_0x5cfe22,this['_univerInstanceService']=_0x4ba0a1,this['_commandService']=_0xf7f138);}get[_0x556c86(0x13d)](){const _0x31e9ab=_0x556c86;return this[_0x31e9ab(0x18b)]['getValue']();}get[_0x556c86(0x1ad)](){const _0x1f9bc2=_0x556c86;return this[_0x1f9bc2(0x176)]['getValue']();}['dispose'](){const _0x526bf6=_0x556c86;super[_0x526bf6(0x24b)](),this[_0x526bf6(0x18b)]['next'](new Map()),this[_0x526bf6(0x18b)]['complete'](),this[_0x526bf6(0x176)][_0x526bf6(0x1a1)]([]),this[_0x526bf6(0x176)][_0x526bf6(0x12d)]();}[_0x556c86(0x1bc)](){const _0x495d07=_0x556c86;this['_init']||(this[_0x495d07(0x104)]=!0x0,this[_0x495d07(0xe5)][_0x495d07(0x2cc)][_0x495d07(0xcc)](_0x7e2410(this[_0x495d07(0xd9)]))[_0x495d07(0x139)](_0x86caac=>{const _0x3c4971=_0x495d07;_0x86caac===_0x12c0c1['ONLINE']?this[_0x3c4971(0x1ab)]():this[_0x3c4971(0xc2)]();}),this['_session']['event$'][_0x495d07(0xcc)](_0x7e2410(this[_0x495d07(0xd9)]))[_0x495d07(0x139)](_0x85d350=>{const _0x5f20b1=_0x495d07,_0x2b1e2f=_0x85d350[_0x5f20b1(0x244)];_0x2b1e2f===_0x242047[_0x5f20b1(0x157)]&&this['_onCursorUpdate'](_0x85d350),_0x2b1e2f===_0x242047['USERS_LEAVE']&&this[_0x5f20b1(0x2d3)](_0x85d350);}),this[_0x495d07(0x110)](this[_0x495d07(0x202)][_0x495d07(0xe4)](_0x21a237=>{const _0x502dba=_0x495d07,_0x3f5e0e=_0x21a237[_0x502dba(0x12c)];_0x3f5e0e!=null&&this[_0x502dba(0x2c3)]&&_0x21a237['id']===_0x2f2e01['id']&&_0x3f5e0e[_0x502dba(0x1e3)]===this[_0x502dba(0xc0)]&&_0x3f5e0e['isEditing']===!0x1&&_0x3f5e0e[_0x502dba(0x2ca)]['length']>0x0&&this[_0x502dba(0x190)](_0x3f5e0e[_0x502dba(0x2ca)]);})),this['_syncEditingCollabCursorService'][_0x495d07(0x29f)][_0x495d07(0xcc)](_0x7e2410(this[_0x495d07(0xd9)]))[_0x495d07(0x139)](_0x1e9477=>{const _0x4da532=_0x495d07;if((_0x1e9477==null?void 0x0:_0x1e9477[_0x4da532(0xc0)])!==this[_0x4da532(0xc0)])return;const _0x589516={'eventID':_0x242047[_0x4da532(0x157)],'data':_0x1e9477};this[_0x4da532(0xae)](_0x589516);}),this[_0x495d07(0x110)](this[_0x495d07(0x202)]['onCommandExecuted'](_0x51d2f5=>{const _0x1b25ec=_0x495d07;if(_0x51d2f5[_0x1b25ec(0x12c)]==null)return;const _0x428d88=_0x51d2f5[_0x1b25ec(0x12c)];if(_0x51d2f5['id']!==_0x10c040['id']||_0x428d88[_0x1b25ec(0x1e3)]!==this[_0x1b25ec(0xc0)])return;const _0xca3d21={'id':_0x1b25ec(0xdf),'params':_0x428d88},_0x3ea053=this[_0x1b25ec(0x13d)];for(const [_0xf370df,_0x62a6a8]of _0x3ea053){const _0x33cc22={'id':_0x1b25ec(0xdf),'params':{'unitId':this[_0x1b25ec(0xc0)],'actions':null,'textRanges':_0x62a6a8[_0x1b25ec(0x2ca)]}},_0x11d185=this[_0x1b25ec(0x10f)][_0x1b25ec(0x1b4)](_0xca3d21,_0x33cc22,!0x1);if(_0x1e8234(_0x11d185))throw _0x11d185[_0x1b25ec(0x1cc)];_0x3ea053[_0x1b25ec(0x1b3)](_0xf370df,{..._0x62a6a8,'ranges':_0x11d185['m2Prime'][_0x1b25ec(0x12c)][_0x1b25ec(0x26c)]});}queueMicrotask(()=>{const _0x28ea3c=_0x1b25ec;this[_0x28ea3c(0x18b)][_0x28ea3c(0x1a1)](_0x3ea053);});})));}['_onCursorUpdate'](_0x384437){const _0x5eafc8=_0x556c86;var _0x250222,_0x34f89b;const {memberID:_0x240594,selection:_0x378fda}=_0x384437[_0x5eafc8(0x234)],_0x132d12=Ai(_0x378fda),_0x5f601d=(_0x34f89b=(_0x250222=this[_0x5eafc8(0x252)][_0x5eafc8(0x2f9)](this[_0x5eafc8(0xc0)],_0x240594))==null?void 0x0:_0x250222[_0x5eafc8(0x1f4)])!=null?_0x34f89b:'Unknown\x20user',_0x266232={'color':this[_0x5eafc8(0x124)][_0x5eafc8(0x2bd)](_0x240594),'name':_0x5f601d,'ranges':_0x132d12},_0x2d06ba=this[_0x5eafc8(0x13d)];_0x2d06ba['set'](_0x240594,_0x266232),this[_0x5eafc8(0x18b)]['next'](_0x2d06ba);}[_0x556c86(0x2d3)](_0x22bef9){const _0x49f880=_0x556c86,{memberID:_0x34f260}=_0x22bef9[_0x49f880(0x234)],_0x3e7024=this[_0x49f880(0x13d)];_0x3e7024[_0x49f880(0xa6)](_0x34f260),this[_0x49f880(0x18b)]['next'](_0x3e7024);}[_0x556c86(0x1ab)](){const _0x5cc104=_0x556c86;var _0x168c84;if(this[_0x5cc104(0x2c3)]=!0x0,((_0x168c84=this[_0x5cc104(0x216)]['getFocusedUnit']())==null?void 0x0:_0x168c84['getUnitId']())!==this['unitID'])return;const _0xf6d4dc=this[_0x5cc104(0x15e)][_0x5cc104(0x22e)](_0x2aa39f)[_0x5cc104(0x188)]();Array[_0x5cc104(0x224)](_0xf6d4dc)&&_0xf6d4dc[_0x5cc104(0xce)]>0x0&&this[_0x5cc104(0x190)](_0xf6d4dc);}[_0x556c86(0xc2)](){const _0x36f1f6=_0x556c86;this[_0x36f1f6(0x2c3)]=!0x1;}};xe=wi([A(0x2,_0x5ba14a(_0x51e455)),A(0x3,_0x5ba14a(Ke)),A(0x4,_0x5ba14a(_0x3eb0e8)),A(0x5,_0x5ba14a(ze)),A(0x6,_0x89b066),A(0x7,_0x25c1b3),A(0x8,_0x42c454)],xe);var xi=Object[_0x556c86(0x2c1)],Bi=(_0x4a8da9,_0x13d560,_0x3cd868,_0x2ab728)=>{const _0x1cfba8=_0x556c86;for(var _0x201b18=_0x2ab728>0x1?void 0x0:_0x2ab728?xi(_0x13d560,_0x3cd868):_0x13d560,_0x56650e=_0x4a8da9[_0x1cfba8(0xce)]-0x1,_0x5cc6ed;_0x56650e>=0x0;_0x56650e--)(_0x5cc6ed=_0x4a8da9[_0x56650e])&&(_0x201b18=_0x5cc6ed(_0x201b18)||_0x201b18);return _0x201b18;},B=(_0xdeccba,_0x49c2e9)=>(_0x42ba4d,_0x330fcf)=>_0x49c2e9(_0x42ba4d,_0x330fcf,_0xdeccba);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x56e274=[],_0x43ffd6=!0x1;return _0x2a102b=>{_0x56e274['push'](_0x2a102b),_0x43ffd6||(_0x43ffd6=!0x0,setTimeout(()=>{_0x56e274['forEach'](_0x1664d0=>_0x1664d0()),_0x56e274=[],_0x43ffd6=!0x1;}));};};let Be=class extends _0x56e8a9{constructor(_0x5957c2,_0x5d2344,_0xbfa799,_0x2ea36e,_0x3a7844,_0x4438d6,_0x5e5f83,_0x260c15){const _0x11ef74=_0x556c86;super(),_(this,_0x11ef74(0x2c3),!0x1),_(this,_0x11ef74(0x104),!0x1),_(this,_0x11ef74(0x18b),new _0x27272c(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x11ef74(0x209)]()),_(this,_0x11ef74(0x176),new _0x27272c([])),_(this,_0x11ef74(0x1d2),this[_0x11ef74(0x176)][_0x11ef74(0xcc)](_0x1099c0(Fi))),_(this,'_updateLocalCursor',_0x2d4c20((_0x190c40,_0x33ef4b)=>{const _0x2bade8=_0x11ef74,_0x48a22e={'eventID':_0x242047[_0x2bade8(0x157)],'data':{'unitID':this['unitID'],'memberID':this[_0x2bade8(0xe5)][_0x2bade8(0xcd)](),'selection':_0x24f594(_0x190c40,_0x33ef4b[_0x2bade8(0x246)])}};this[_0x2bade8(0xe5)]['send'](_0x48a22e,this['unitID']);},ki)),(this[_0x11ef74(0xc0)]=_0x5957c2,this[_0x11ef74(0xe5)]=_0x5d2344,this[_0x11ef74(0x15e)]=_0xbfa799,this['_colorAssignService']=_0x2ea36e,this[_0x11ef74(0x252)]=_0x3a7844,this['_univerInstanceService']=_0x4438d6,this['_commandService']=_0x5e5f83,this[_0x11ef74(0x2dc)]=_0x260c15);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x556c86(0x1ad)](){return this['_roomMembers$']['getValue']();}[_0x556c86(0x24b)](){const _0x30149f=_0x556c86;super[_0x30149f(0x24b)](),this[_0x30149f(0x18b)][_0x30149f(0x1a1)](new Map()),this[_0x30149f(0x18b)]['complete'](),this[_0x30149f(0x176)]['next']([]),this['_roomMembers$'][_0x30149f(0x12d)]();}['init'](){const _0x184f18=_0x556c86;this['_init']||(this['_init']=!0x0,this[_0x184f18(0xe5)][_0x184f18(0x2cc)][_0x184f18(0xcc)](_0x7e2410(this[_0x184f18(0xd9)]))[_0x184f18(0x139)](_0x4d541f=>{const _0x2fbe00=_0x184f18;_0x4d541f===_0x12c0c1[_0x2fbe00(0x235)]?this[_0x2fbe00(0x1ab)]():this[_0x2fbe00(0xc2)]();}),this[_0x184f18(0xe5)][_0x184f18(0x16e)]['pipe'](_0x7e2410(this[_0x184f18(0xd9)]))[_0x184f18(0x139)](_0x328360=>{const _0x42afcc=_0x184f18,_0x3de1a5=_0x328360[_0x42afcc(0x244)];_0x3de1a5===_0x242047[_0x42afcc(0x157)]&&this[_0x42afcc(0xae)](_0x328360),_0x3de1a5===_0x242047[_0x42afcc(0x2f0)]&&this['_onCursorDelete'](_0x328360);}),this[_0x184f18(0x1b8)](),this[_0x184f18(0x110)](this[_0x184f18(0x202)][_0x184f18(0xe4)](_0x333a8b=>{const _0x5844b5=_0x184f18;if(this[_0x5844b5(0x2c3)]&&_0x333a8b['id']===_0x31dff8['id']&&_0x333a8b[_0x5844b5(0x12c)][_0x5844b5(0x1e3)]===this[_0x5844b5(0xc0)]){const _0x2c56da=_0x333a8b[_0x5844b5(0x12c)];this[_0x5844b5(0x190)](_0x2c56da['subUnitId'],_0x2c56da[_0x5844b5(0x21a)][0x0]);}})));}[_0x556c86(0xae)](_0x501add){const _0x430bc4=_0x556c86;var _0x4c01ca,_0x3ef120;const {memberID:_0x134c81,selection:_0x1edd3f}=_0x501add['data'],{sheetName:_0x20c635,range:_0x16c4c2}=_0x2a63b2(_0x1edd3f),_0x5257f8={'name':(_0x3ef120=(_0x4c01ca=this[_0x430bc4(0x252)][_0x430bc4(0x2f9)](this[_0x430bc4(0xc0)],_0x134c81))==null?void 0x0:_0x4c01ca[_0x430bc4(0x1f4)])!=null?_0x3ef120:_0x430bc4(0x2e1),'range':this[_0x430bc4(0x258)](_0x20c635,_0x16c4c2),'sheetID':_0x20c635,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x134c81),'selection':_0x1edd3f},_0x30c4ac=this[_0x430bc4(0x13d)];_0x30c4ac[_0x430bc4(0x1b3)](_0x134c81,_0x5257f8),this[_0x430bc4(0x18b)][_0x430bc4(0x1a1)](_0x30c4ac);}[_0x556c86(0x2d3)](_0x4a159f){const _0x337dd1=_0x556c86,{memberID:_0x3c54fd}=_0x4a159f[_0x337dd1(0x234)],_0xc3d4b8=this['cursorInfo'];_0xc3d4b8['delete'](_0x3c54fd),this['_cursorInfo$'][_0x337dd1(0x1a1)](_0xc3d4b8);}[_0x556c86(0x258)](_0x1e6f91,_0x2e8e87){const _0x525019=_0x556c86;var _0x3753e5,_0x1c7ff2;const _0x974638=(_0x1c7ff2=(_0x3753e5=this[_0x525019(0x216)][_0x525019(0x2b5)](this['unitID']))==null?void 0x0:_0x3753e5['getSheetBySheetId'](_0x1e6f91))==null?void 0x0:_0x1c7ff2[_0x525019(0x2b1)]();return(_0x974638==null?void 0x0:_0x974638[_0x525019(0x251)](_0xa612c9=>_0x3de0b8[_0x525019(0x144)](_0xa612c9,_0x2e8e87)))||_0x2e8e87;}['_onRefRangeChange'](){const _0xe99636=_0x556c86,_0x491647=new _0x171b4d(),_0x2d9455=Hi(),_0x17756a=()=>{const _0x920fc5=_0x19a6;_0x491647[_0x920fc5(0x24b)]();const _0x43e8c9=(_0xce8d27,_0x3f2fc2,_0x3d8e56,_0x2622ee)=>{const _0x176526=_0x920fc5;let _0x40a0a5=[];switch(_0xce8d27['id']){case _0x206dc7['DeleteRangeMoveLeftCommandId']:{_0x40a0a5=_0x5355af(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x295)]:{_0x40a0a5=_0x1f7886(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x298)]:{_0x40a0a5=_0x24db57(_0xce8d27,_0x2622ee);break;}case _0x206dc7['InsertRangeMoveDownCommandId']:{_0x40a0a5=_0x393a39(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x2cd)]:{_0x40a0a5=_0x48c330(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x1f5)]:{_0x40a0a5=_0x4aca48(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x112)]:{_0x40a0a5=_0x506f47(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0x2ef)]:{_0x40a0a5=_0x2e1a37(_0xce8d27,_0x2622ee);break;}case _0x206dc7[_0x176526(0xe7)]:{_0x40a0a5=_0x1f15a1(_0xce8d27,_0x2622ee);break;}}const _0x469872=_0x3ce48e(_0x40a0a5,_0x2622ee),_0x26d6f5=this[_0x176526(0x13d)]['get'](_0x3f2fc2);if(_0x26d6f5&&_0x469872){const _0x21326c={..._0x26d6f5,'range':_0x469872};this[_0x176526(0x13d)]['set'](_0x3f2fc2,_0x21326c),_0x2d9455(()=>{const _0x5c5c8e=_0x176526,_0x39631f=this[_0x5c5c8e(0x2dc)][_0x5c5c8e(0x17d)](_0x469872,_0x6fa49f=>(_0x39631f[_0x5c5c8e(0x24b)](),_0x43e8c9(_0x6fa49f,_0x3f2fc2,_0x3d8e56,_0x469872)));_0x491647[_0x5c5c8e(0x148)](_0x39631f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x920fc5(0x2aa)]((_0x5aa8c5,_0x118e6b)=>{const {range:_0xa7c4d,sheetID:_0xec2ca6}=_0x5aa8c5,_0xec7d71=this['_refRangeService']['registerRefRange'](_0xa7c4d,_0x286734=>(_0xec7d71['dispose'](),_0x43e8c9(_0x286734,_0x118e6b,_0xec2ca6,_0xa7c4d)));_0x491647['add'](_0xec7d71);});};this[_0xe99636(0x110)](_0x1f9e88(this[_0xe99636(0x18b)]['subscribe'](()=>{_0x17756a();})));}[_0x556c86(0x1ab)](){const _0x964e42=_0x556c86;var _0x2b00dc,_0x4fda3c;if(this[_0x964e42(0x2c3)]=!0x0,((_0x2b00dc=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2b00dc['getUnitId']())!==this[_0x964e42(0xc0)])return;const _0x3ef6b5=(_0x4fda3c=this['_injector'][_0x964e42(0x22e)](_0x7b3613)[_0x964e42(0x117)]())==null?void 0x0:_0x4fda3c[0x0],_0x46abf3=this[_0x964e42(0x216)][_0x964e42(0x1dd)](_0x2cb033[_0x964e42(0xd7)])['getActiveSheet']();_0x3ef6b5&&_0x46abf3&&this[_0x964e42(0x190)](_0x46abf3[_0x964e42(0x113)](),_0x3ef6b5);}['_toggleOffline'](){const _0x3ef908=_0x556c86;this[_0x3ef908(0x2c3)]=!0x1;}};Be=Bi([B(0x2,_0x5ba14a(_0x51e455)),B(0x3,_0x5ba14a(Ke)),B(0x4,_0x5ba14a(_0x3eb0e8)),B(0x5,_0x25c1b3),B(0x6,_0x42c454),B(0x7,_0x5ba14a(_0x12028e))],Be);var Yi=Object[_0x556c86(0x2c1)],Wi=(_0x1152bc,_0xa1318,_0x4d8cba,_0x522a5e)=>{const _0x2a9723=_0x556c86;for(var _0x3a18be=_0x522a5e>0x1?void 0x0:_0x522a5e?Yi(_0xa1318,_0x4d8cba):_0xa1318,_0x129f70=_0x1152bc[_0x2a9723(0xce)]-0x1,_0x17d30a;_0x129f70>=0x0;_0x129f70--)(_0x17d30a=_0x1152bc[_0x129f70])&&(_0x3a18be=_0x17d30a(_0x3a18be)||_0x3a18be);return _0x3a18be;},Ce=(_0x4ca338,_0x10f4a9)=>(_0x5ea9fa,_0x5db849)=>_0x10f4a9(_0x5ea9fa,_0x5db849,_0x4ca338);let H=class extends _0x56e8a9{constructor(_0x16bd92,_0x61d867,_0x91c402){const _0x24acc5=_0x556c86;super(),_(this,_0x24acc5(0x26f),new Map()),_(this,'_entityInit$',new _0x347363()),(this[_0x24acc5(0x216)]=_0x16bd92,this[_0x24acc5(0x15e)]=_0x61d867,this['_collabSessionService']=_0x91c402,this[_0x24acc5(0x104)]());}['dispose'](){const _0x41e613=_0x556c86;super[_0x41e613(0x24b)](),this['_entityInit$'][_0x41e613(0x12d)](),this[_0x41e613(0x26f)]['forEach'](_0x2dbb11=>_0x2dbb11[_0x41e613(0x24b)]());}[_0x556c86(0x1be)](_0x584769){const _0x401c04=_0x556c86;return this[_0x401c04(0x26f)][_0x401c04(0x1d7)](_0x584769)?this['_entities']['get'](_0x584769)[_0x401c04(0x1c7)]:this['_entityInit$'][_0x401c04(0xcc)](_0x34a0ee(_0x206655=>_0x206655[_0x401c04(0xc0)]===_0x584769),_0x5da6cd(_0x39f10c=>_0x39f10c[_0x401c04(0x1c7)]));}[_0x556c86(0x104)](){const _0x297bae=_0x556c86;this[_0x297bae(0x216)][_0x297bae(0xf6)](_0x2cb033[_0x297bae(0xd7)])[_0x297bae(0xcc)](_0x7e2410(this['dispose$']))['subscribe'](async _0x15eead=>{const _0x3640b4=_0x297bae,_0x5551e8=_0x15eead['getUnitId'](),_0x1bbe68=await this['_startSheetCollabCursor'](_0x5551e8);this[_0x3640b4(0x213)][_0x3640b4(0x1a1)](_0x1bbe68),this['_entities']['set'](_0x5551e8,_0x1bbe68);}),this['_univerInstanceService'][_0x297bae(0xf6)](_0x2cb033[_0x297bae(0x210)])['pipe'](_0x7e2410(this['dispose$']))[_0x297bae(0xcc)](_0x34a0ee(_0x48bf9e=>!_0x48bf9e[_0x297bae(0x2cf)]()[_0x297bae(0x260)]('__')))[_0x297bae(0x139)](async _0x135725=>{const _0x25651a=_0x297bae,_0x152759=_0x135725[_0x25651a(0x2cf)](),_0x26ff02=await this[_0x25651a(0x17f)](_0x152759);this[_0x25651a(0x213)][_0x25651a(0x1a1)](_0x26ff02),this['_entities']['set'](_0x152759,_0x26ff02);}),_0x1d8cdb(this[_0x297bae(0x216)][_0x297bae(0x115)](_0x2cb033[_0x297bae(0x210)]),this[_0x297bae(0x216)]['getTypeOfUnitDisposed$'](_0x2cb033[_0x297bae(0xd7)]))[_0x297bae(0xcc)](_0x7e2410(this[_0x297bae(0xd9)]))[_0x297bae(0x139)](_0xafee84=>{const _0x58e606=_0x297bae,_0x266601=_0xafee84['getUnitId'](),_0x5734c0=this[_0x58e606(0x26f)][_0x58e606(0x22e)](_0x266601);_0x5734c0&&(_0x5734c0[_0x58e606(0x24b)](),this['_entities'][_0x58e606(0xa6)](_0x266601));});}async[_0x556c86(0xa8)](_0xf22644){const _0x2c6d9c=_0x556c86,_0x1fcbc4=await this[_0x2c6d9c(0x18e)][_0x2c6d9c(0x1b1)](_0xf22644),_0x6d551e=this[_0x2c6d9c(0x15e)][_0x2c6d9c(0x14c)](Be,_0xf22644,_0x1fcbc4);return _0x6d551e[_0x2c6d9c(0x1bc)](),_0x6d551e;}async[_0x556c86(0x17f)](_0x4ee7f9){const _0x342acf=_0x556c86,_0x5564f4=await this['_collabSessionService']['requireSession'](_0x4ee7f9),_0x43f931=this[_0x342acf(0x15e)][_0x342acf(0x14c)](xe,_0x4ee7f9,_0x5564f4);return _0x43f931[_0x342acf(0x1bc)](),_0x43f931;}};H=Wi([Ce(0x0,_0x25c1b3),Ce(0x1,_0x5ba14a(_0x51e455)),Ce(0x2,_0x5ba14a(_0x48577d))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x589180,_0x32a7c0){const _0x3a186d=_0x556c86;let {radius:_0x3ffd1a,width:_0x57095e,height:_0x2b1805}=_0x32a7c0;_0x3ffd1a=_0x3ffd1a!=null?_0x3ffd1a:0x0,_0x57095e=_0x57095e!=null?_0x57095e:0x1e,_0x2b1805=_0x2b1805!=null?_0x2b1805:0x1e;let _0x3da91f=0x0,_0x1985a7=0x0,_0x36077e=0x0;_0x3da91f=_0x1985a7=_0x36077e=Math[_0x3a186d(0x1a5)](_0x3ffd1a,_0x57095e/0x2,_0x2b1805/0x2),_0x589180[_0x3a186d(0x119)](),_0x589180[_0x3a186d(0xe1)](_0x3da91f,0x0),_0x589180[_0x3a186d(0x212)](_0x57095e-_0x1985a7,0x0),_0x589180[_0x3a186d(0x26a)](_0x57095e-_0x1985a7,_0x1985a7,_0x1985a7,Math['PI']*0x3/0x2,0x0,!0x1),_0x589180['lineTo'](_0x57095e,_0x2b1805-_0x36077e),_0x589180[_0x3a186d(0x26a)](_0x57095e-_0x36077e,_0x2b1805-_0x36077e,_0x36077e,0x0,Math['PI']/0x2,!0x1),_0x589180[_0x3a186d(0x212)](0x0,_0x2b1805),_0x589180[_0x3a186d(0x212)](0x0,_0x3da91f),_0x589180[_0x3a186d(0x26a)](_0x3da91f,_0x3da91f,_0x3da91f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x589180[_0x3a186d(0xb9)](),_0x32a7c0['fill']&&(_0x589180[_0x3a186d(0x135)](),_0x589180[_0x3a186d(0x1db)]=_0x32a7c0[_0x3a186d(0x196)],_0x32a7c0[_0x3a186d(0x17c)]===_0x3a186d(0x168)?_0x589180[_0x3a186d(0x196)](_0x3a186d(0x168)):_0x589180['fill'](),_0x589180[_0x3a186d(0x1a2)]());}class ve extends _0x522091{constructor(_0x1bb8f5,_0x43bd35){const _0x3ae0c9=_0x556c86;super(_0x1bb8f5,_0x43bd35),_(this,_0x3ae0c9(0x177)),_(this,_0x3ae0c9(0x2c9)),(this[_0x3ae0c9(0x177)]=_0x43bd35==null?void 0x0:_0x43bd35[_0x3ae0c9(0x177)],this[_0x3ae0c9(0x2c9)]=_0x43bd35==null?void 0x0:_0x43bd35[_0x3ae0c9(0x2c9)]);}static[_0x556c86(0x18c)](_0x1fab7e,_0x254bb5){const _0x216235=_0x556c86,{text:_0x1c3a0a,color:_0x1ef778}=_0x254bb5;_0x1fab7e['save'](),_0x1fab7e['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2aecaa=_0x1fab7e[_0x216235(0x2e5)](_0x1c3a0a)[_0x216235(0x125)],_0x4ce900=Math[_0x216235(0x1a5)](_0x2aecaa+0x2*Re,at);ji(_0x1fab7e,{'height':Q,'radius':0x4,'width':_0x4ce900,'fill':_0x1ef778}),_0x1fab7e['fillStyle']=_0x216235(0x22b);const _0x31e6ae=Re,_0x1b5dc6=Q-Vi,_0x5773d9=at-0x2*Re;if(_0x2aecaa>_0x5773d9){let _0x5722b6='',_0x4a5102=0x0;for(const _0x27aa29 of _0x1c3a0a){const _0x2a3902=_0x1fab7e[_0x216235(0x2e5)](_0x27aa29)[_0x216235(0x125)];if(_0x4a5102+_0x2a3902<=_0x5773d9-_0x1fab7e[_0x216235(0x2e5)](_0x216235(0x2d0))[_0x216235(0x125)])_0x5722b6+=_0x27aa29,_0x4a5102+=_0x2a3902;else{_0x5722b6+=_0x216235(0x2d0);break;}}_0x1fab7e[_0x216235(0x2e9)](_0x5722b6,_0x31e6ae,_0x1b5dc6);}else _0x1fab7e[_0x216235(0x2e9)](_0x1c3a0a,_0x31e6ae,_0x1b5dc6);_0x1fab7e[_0x216235(0x1a2)]();}['_draw'](_0x2c3dcf){const _0x3051d2=_0x556c86;ve[_0x3051d2(0x18c)](_0x2c3dcf,this);}}const De=_0x556c86(0x116),Xi=_0x556c86(0x1da),Gi=_0x556c86(0x214),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x13574c,_0x39efd1,_0x18d3a6,_0xf5dd79){const _0x52ba78=_0x556c86;_(this,'_shapes',[]),_(this,_0x52ba78(0x1c1),null),_(this,_0x52ba78(0x218),null),_(this,_0x52ba78(0x143),null),_(this,_0x52ba78(0x29d),null),_(this,_0x52ba78(0x215),null),(this[_0x52ba78(0x133)]=_0x13574c,this[_0x52ba78(0x254)]=_0x39efd1,this[_0x52ba78(0xf3)]=_0x18d3a6,this[_0x52ba78(0x20b)]=_0xf5dd79,this[_0x52ba78(0x2f4)]());}set[_0x556c86(0x21e)](_0xce9abe){const _0x5ba24a=_0x556c86;_0xce9abe?(this[_0x5ba24a(0x143)]&&this[_0x5ba24a(0x143)][_0x5ba24a(0x101)](),this['_textBubble']&&this[_0x5ba24a(0x218)][_0x5ba24a(0x2d2)]()):(this['_anchorDot']&&this[_0x5ba24a(0x143)]['show'](),this['_textBubble']&&this['_textBubble']['hide']());}['dispose'](){const _0x51b387=_0x556c86;for(const _0x36ea82 of this[_0x51b387(0x24d)])_0x36ea82[_0x51b387(0x24b)]();this[_0x51b387(0x218)]&&this[_0x51b387(0x218)][_0x51b387(0x24b)](),this[_0x51b387(0x143)]&&this['_anchorDot'][_0x51b387(0x24b)](),this[_0x51b387(0x1c1)]&&this['_anchor'][_0x51b387(0x24b)](),this['_eventUnsubscribe']&&this[_0x51b387(0x215)]();}[_0x556c86(0x2f4)](){const _0x508494=_0x556c86;var _0x4cf6ba;const {_docSkeleton:_0x54f872,_document:_0x1bc83e}=this,{color:_0x4df8aa,name:_0x5c2ef7,ranges:_0x38c680}=this[_0x508494(0x133)],_0x26ddc5=_0x1bc83e[_0x508494(0x2e7)](),{docsLeft:_0x183581,docsTop:_0x39e6a6}=_0x26ddc5,_0x3657ba=new _0x38dc80(_0x26ddc5,_0x54f872);for(const {startOffset:_0x204c52,endOffset:_0x53aa8e,rangeType:_0x955880,segmentId:_0x251d1c,segmentPage:_0x37de38,collapsed:_0x34d8ec,isActive:_0x3579dd}of _0x38c680){const _0x4bb3ff=_0x54f872[_0x508494(0x253)](_0x204c52,!0x0,_0x251d1c,_0x37de38);let _0xf76b0b=_0x54f872['findNodePositionByCharIndex'](_0x53aa8e,!0x0,_0x251d1c,_0x37de38);if(_0xf76b0b==null&&(_0xf76b0b=_0x54f872[_0x508494(0x253)](_0x53aa8e-0x1,!0x1,_0x251d1c,_0x37de38)),_0x3579dd){const {contentBoxPointGroup:_0x46224c}=_0x3657ba[_0x508494(0x267)](_0xf76b0b,_0xf76b0b);if(_0x46224c['length']===0x0)continue;this[_0x508494(0x1d4)](_0x4df8aa,_0x46224c,_0x183581,_0x39e6a6,_0x5c2ef7),this[_0x508494(0x215)]=this[_0x508494(0x2de)]();}if(_0x4bb3ff&&_0xf76b0b){if(_0x955880===_0x5e3c09[_0x508494(0x19e)]){const _0x2af00b=new _0x3d8215(_0x26ddc5,_0x54f872),{pointGroup:_0x57bdc4}=(_0x4cf6ba=_0x2af00b[_0x508494(0x267)](_0x4bb3ff,_0xf76b0b))!=null?_0x4cf6ba:{};if(_0x57bdc4==null||_0x57bdc4[_0x508494(0xce)]===0x0)continue;this['_drawRectRange'](_0x4df8aa,_0x57bdc4,_0x183581,_0x39e6a6);}else{if(!_0x34d8ec){const {borderBoxPointGroup:_0x341919}=_0x3657ba[_0x508494(0x267)](_0x4bb3ff,_0xf76b0b);if(_0x341919[_0x508494(0xce)]===0x0)continue;this[_0x508494(0x14e)](_0x4df8aa,_0x341919,_0x183581,_0x39e6a6);}}}}}[_0x556c86(0x1d4)](_0x2a3868,_0x598cf0,_0x3d296c,_0x5e057b,_0x42dece){const _0x344b9b=_0x556c86,_0x548156=this[_0x344b9b(0x13f)](_0x598cf0),{left:_0x10cc9d,top:_0x869e6c,height:_0x38e6a7}=_0x548156,_0x118c59=this[_0x344b9b(0xa9)](),_0x4d4e9b=zi/_0x118c59,_0x2bfd3c=new _0x31832a(De+_0x3eba8f(z),{'left':_0x10cc9d+_0x3d296c-_0x4d4e9b,'top':_0x869e6c+_0x5e057b,'height':_0x38e6a7,'width':Ki,'fill':_0x2a3868||_0x1d9557(_0x42715e[_0x344b9b(0x151)],0x0),'strokeWidth':_0x4d4e9b,'stroke':Ji,'evented':!0x0});this[_0x344b9b(0x1c1)]=_0x2bfd3c,this[_0x344b9b(0x254)]['addObject'](_0x2bfd3c,_0x402ffc);const _0x2f22c7=new _0x31832a(De+_0x3eba8f(z),{'left':_0x10cc9d+_0x3d296c-_0x4d4e9b,'top':_0x869e6c+_0x5e057b-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2a3868||_0x1d9557(_0x42715e[_0x344b9b(0x151)],0x0),'strokeWidth':0x0,'stroke':_0x2a3868||_0x1d9557(_0x42715e[_0x344b9b(0x151)],0x0),'evented':!0x1});this[_0x344b9b(0x143)]=_0x2f22c7,this[_0x344b9b(0x254)][_0x344b9b(0x2db)](_0x2f22c7,_0x402ffc);const _0x6fdaa3=new ve(De+_0x3eba8f(z),{'left':_0x10cc9d+_0x3d296c-_0x4d4e9b,'top':_0x869e6c+_0x5e057b-Q,'text':_0x42dece,'color':_0x2a3868});this[_0x344b9b(0x218)]=_0x6fdaa3,this[_0x344b9b(0x254)][_0x344b9b(0x2db)](_0x6fdaa3,_0x402ffc),this[_0x344b9b(0x21e)]=!0x1;}['_handleHover'](){const _0x15aa36=_0x556c86,_0x58176d=this['_anchor'][_0x15aa36(0x2c6)][_0x15aa36(0x120)](()=>{const _0x205d56=_0x15aa36;this[_0x205d56(0x21e)]=!0x0;}),_0x3b840b=this[_0x15aa36(0x1c1)][_0x15aa36(0x2a4)][_0x15aa36(0x120)](()=>{const _0x7cc94=_0x15aa36;this[_0x7cc94(0x29d)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xd9563a=_0x15aa36;_0x58176d['unsubscribe'](),_0x3b840b[_0xd9563a(0xb7)]();};}[_0x556c86(0x14e)](_0x231f44,_0x6cc8b3,_0x102153,_0x15f931){const _0x50ec9c=_0x556c86,_0x3c01ba=new _0x4aeda6(_0x231f44)[_0x50ec9c(0x180)](0.2)[_0x50ec9c(0x1df)](),_0x565fe0=new _0x2295bb(Xi+_0x3eba8f(z),{'pointsGroup':_0x6cc8b3,'fill':_0x3c01ba||_0x1d9557(_0x42715e[_0x50ec9c(0x151)],0.2),'left':_0x102153,'top':_0x15f931,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50ec9c(0x24d)][_0x50ec9c(0xbd)](_0x565fe0),this['_scene'][_0x50ec9c(0x2db)](_0x565fe0,_0x402ffc);}[_0x556c86(0x126)](_0x5b739f,_0x50b861,_0x49e739,_0x87ba8f){const _0x129282=_0x556c86,_0x1893f4=new _0x4aeda6(_0x5b739f)[_0x129282(0x180)](0.2)[_0x129282(0x1df)](),_0x559127=new _0x2295bb(Gi+_0x3eba8f(z),{'pointsGroup':_0x50b861,'fill':_0x1893f4||_0x1d9557(_0x42715e[_0x129282(0x151)],0.2),'left':_0x49e739,'top':_0x87ba8f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x559127),this[_0x129282(0x254)][_0x129282(0x2db)](_0x559127,_0x402ffc);}['_getAnchorBounding'](_0x5ba0b4){const _0x1a2d19=_0x5ba0b4[0x0],_0x477885=_0x1a2d19[0x0],_0x3732e8=_0x1a2d19[0x2],{x:_0x558d2c,y:_0x2cf633}=_0x477885,{x:_0xb3520d,y:_0x52a3f5}=_0x3732e8;return{'left':_0x558d2c,'top':_0x2cf633,'width':_0xb3520d-_0x558d2c,'height':_0x52a3f5-_0x2cf633};}[_0x556c86(0xa9)](){const _0x198dc7=_0x556c86,{scaleX:_0x27bba8,scaleY:_0x2e7a48}=this['_scene'][_0x198dc7(0x240)]();return Math[_0x198dc7(0x18f)](_0x27bba8,_0x2e7a48);}}var Zi=Object[_0x556c86(0x2c1)],Qi=(_0x26026b,_0x1f54ba,_0x2ac872,_0x7e1be1)=>{const _0x4963c4=_0x556c86;for(var _0x9984f0=_0x7e1be1>0x1?void 0x0:_0x7e1be1?Zi(_0x1f54ba,_0x2ac872):_0x1f54ba,_0xbe948b=_0x26026b[_0x4963c4(0xce)]-0x1,_0xb466be;_0xbe948b>=0x0;_0xbe948b--)(_0xb466be=_0x26026b[_0xbe948b])&&(_0x9984f0=_0xb466be(_0x9984f0)||_0x9984f0);return _0x9984f0;},ie=(_0x2b4f79,_0x2e45f4)=>(_0x5a9972,_0x2ec67a)=>_0x2e45f4(_0x5a9972,_0x2ec67a,_0x2b4f79);let Fe=class extends _0x56e8a9{constructor(_0x448e3f,_0x1697c0,_0x2521ce,_0x32a418,_0x8472d0){const _0x3fd0da=_0x556c86;super(),_(this,'_cursorShapes',[]),_(this,_0x3fd0da(0x223),[]),(this[_0x3fd0da(0xba)]=_0x448e3f,this['_docSkeletonManagerService']=_0x1697c0,this[_0x3fd0da(0x1ce)]=_0x2521ce,this[_0x3fd0da(0x202)]=_0x32a418,this['_themeService']=_0x8472d0,this['_init']());}[_0x556c86(0x104)](){const _0x198501=_0x556c86,_0x51c9e2=this['_context'][_0x198501(0x1e3)],_0xcd8d81=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x35d2ad([this[_0x198501(0x1ce)][_0x198501(0x1be)](_0x51c9e2),this[_0x198501(0x164)][_0x198501(0xc5)]])[_0x198501(0xcc)](_0x271767(([_0x437ab6,_0x14abd7])=>({'skeleton':_0xcd8d81[_0x198501(0x140)](),'cursors':[..._0x437ab6['values']()][_0x198501(0x2f8)](_0x458ebb=>({..._0x458ebb,'color':this[_0x198501(0x164)]['getColorFromTheme'](_0x458ebb['color'])}))})))[_0x198501(0x139)](_0x20f20e=>{const _0x51273b=_0x198501;if(this['_removeCollabCursors'](),_0x20f20e){const {skeleton:_0x26a8c6,cursors:_0x38fbbc}=_0x20f20e;this[_0x51273b(0x2ad)](_0x26a8c6,_0x38fbbc);}})),this[_0x198501(0x1c2)](),this[_0x198501(0x2b3)]();}['_updateCollabCursors'](_0x57acc2,_0x4426a2){const _0x1c67f9=_0x556c86,{scene:_0x4cbb52,mainComponent:_0x52ae26}=this[_0x1c67f9(0xba)],_0x3181e0=_0x4426a2[_0x1c67f9(0xa7)](_0xe0bc24=>new ct(_0xe0bc24,_0x4cbb52,_0x57acc2,_0x52ae26));this[_0x1c67f9(0x1cd)]=_0x3181e0,this[_0x1c67f9(0x223)]=_0x4426a2;}[_0x556c86(0x1fa)](){const _0x38f8fe=_0x556c86;this[_0x38f8fe(0x2b6)]();const {scene:_0x404352,mainComponent:_0x167acd}=this[_0x38f8fe(0xba)],_0x19dd25=this['_docSkeletonManagerService'][_0x38f8fe(0x140)](),_0x3b99a7=this[_0x38f8fe(0x223)][_0x38f8fe(0xa7)](_0x4d5e67=>new ct(_0x4d5e67,_0x404352,_0x19dd25,_0x167acd));this[_0x38f8fe(0x1cd)]=_0x3b99a7;}[_0x556c86(0x2b6)](){const _0x4be8c4=_0x556c86;this[_0x4be8c4(0x1cd)][_0x4be8c4(0x2aa)](_0x268060=>_0x268060[_0x4be8c4(0x24b)]()),this[_0x4be8c4(0x1cd)]=[];}[_0x556c86(0x2b3)](){const _0x3f73b7=_0x556c86,_0x2f4993=[_0x2b67cc['id']];this[_0x3f73b7(0x110)](this['_commandService'][_0x3f73b7(0xe4)](_0x5b7dd1=>{const _0x4471c8=_0x3f73b7;_0x2f4993[_0x4471c8(0x2b0)](_0x5b7dd1['id'])&&_0x5b7dd1[_0x4471c8(0x12c)][_0x4471c8(0x1e3)]===this[_0x4471c8(0xba)]['unitId']&&this[_0x4471c8(0x1fa)]();}));}[_0x556c86(0x1c2)](){const _0x1665a9=_0x556c86;this[_0x1665a9(0x110)](_0x2e5718(this[_0x1665a9(0xba)][_0x1665a9(0x1a0)]['onTransformChange$'])[_0x1665a9(0xcc)](_0x4625cb(_0x5898e2=>_0x5898e2[_0x1665a9(0x2d9)]===_0x324cf9[_0x1665a9(0x227)]),_0x214be3(0x10))['subscribe'](()=>{const _0xa34658=_0x1665a9;this[_0xa34658(0x1fa)]();}));}};Fe=Qi([ie(0x1,_0x5ba14a(_0x14a2a2)),ie(0x2,_0x5ba14a(H)),ie(0x3,_0x42c454),ie(0x4,_0x5ba14a(_0x243cad))],Fe);const qi=0x1,en=1.5;class tn extends _0x522091{constructor(_0x5191ec,_0xfdf0e8){const _0x4cc417=_0x556c86;super(_0x5191ec,_0xfdf0e8),_(this,_0x4cc417(0x1a6)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x4cc417(0x2e8),''),_(this,_0x4cc417(0xda),_0x4cc417(0x29c)),_(this,_0x4cc417(0x146)),(_0xfdf0e8&&this[_0x4cc417(0xb1)](_0xfdf0e8),this[_0x4cc417(0x2c6)]['subscribeEvent'](()=>this[_0x4cc417(0xb1)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4cc417(0x120)](()=>this[_0x4cc417(0xb1)]({'hovered':!0x1})));}[_0x556c86(0xb1)](_0x50e4ea){const _0x45ddcb=_0x556c86;var _0x2c6c98,_0x2d0705,_0x2a0c7e,_0xe7ed49,_0x1b8d26,_0x203cf1;this[_0x45ddcb(0x1a6)]=(_0x2c6c98=_0x50e4ea[_0x45ddcb(0x177)])!=null?_0x2c6c98:this[_0x45ddcb(0x1a6)],this['_hovered']=(_0x2d0705=_0x50e4ea[_0x45ddcb(0x1c8)])!=null?_0x2d0705:this[_0x45ddcb(0x24a)],this[_0x45ddcb(0x20e)]=(_0x2a0c7e=_0x50e4ea['range'])!=null?_0x2a0c7e:this['_range'],this['_name']=(_0xe7ed49=_0x50e4ea['name'])!=null?_0xe7ed49:this[_0x45ddcb(0x2e8)],this[_0x45ddcb(0xda)]=(_0x1b8d26=_0x50e4ea[_0x45ddcb(0x1b9)])!=null?_0x1b8d26:this[_0x45ddcb(0xda)],this[_0x45ddcb(0x146)]=(_0x203cf1=_0x50e4ea[_0x45ddcb(0xb8)])!=null?_0x203cf1:this[_0x45ddcb(0x146)],this[_0x45ddcb(0x2dd)]({'width':_0x50e4ea['width'],'height':_0x50e4ea[_0x45ddcb(0x1b6)]});}[_0x556c86(0x2a9)](_0x4ea8d6){const _0x210e5a=_0x556c86,{row:_0x225e70,column:_0x37a674}=_0x4ea8d6;if(_0x225e70>=this[_0x210e5a(0x20e)][_0x210e5a(0x1f3)]&&_0x225e70<=this[_0x210e5a(0x20e)][_0x210e5a(0x17b)]&&_0x37a674>=this[_0x210e5a(0x20e)][_0x210e5a(0x2c5)]&&_0x37a674<=this[_0x210e5a(0x20e)]['endColumn']){this[_0x210e5a(0xb1)]({'hovered':!0x0});return;}this[_0x210e5a(0xb1)]({'hovered':!0x1});}[_0x556c86(0x1a9)](_0x5ce49b){return!0x1;}[_0x556c86(0x1b5)](_0x2fdde4){const _0x37c228=_0x556c86;_0x31832a[_0x37c228(0x18c)](_0x2fdde4,{'width':this[_0x37c228(0x125)],'height':this[_0x37c228(0x1b6)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x37c228(0x24a)]&&(_0x2fdde4[_0x37c228(0x135)](),_0x2fdde4[_0x37c228(0x174)](0x1,0x0,0x0,0x1,this[_0x37c228(0x125)],this[_0x37c228(0xda)]==='bottom'?0x0:-Q),ve[_0x37c228(0x18c)](_0x2fdde4,{'text':this[_0x37c228(0x2e8)],'color':this[_0x37c228(0x1a6)]}),_0x2fdde4['restore']());}}function _0x19a6(_0x1c5230,_0x512a3a){_0x1c5230=_0x1c5230-0xa3;const _0x5d9424=_0x5d94();let _0x19a6cf=_0x5d9424[_0x1c5230];return _0x19a6cf;}var sn=Object[_0x556c86(0x2c1)],nn=(_0x2fd0b6,_0x16a17a,_0x172d43,_0x245cab)=>{for(var _0x29f8b6=_0x245cab>0x1?void 0x0:_0x245cab?sn(_0x16a17a,_0x172d43):_0x16a17a,_0x1c577c=_0x2fd0b6['length']-0x1,_0x599a92;_0x1c577c>=0x0;_0x1c577c--)(_0x599a92=_0x2fd0b6[_0x1c577c])&&(_0x29f8b6=_0x599a92(_0x29f8b6)||_0x29f8b6);return _0x29f8b6;},be=(_0x4d0ec3,_0xce277e)=>(_0x2049a6,_0x5a4ea9)=>_0xce277e(_0x2049a6,_0x5a4ea9,_0x4d0ec3);const rn=0x1389;let ke=class extends _0x56e8a9{constructor(_0x860fda,_0x35fe28,_0x358d09,_0x39d1eb){const _0x23b62c=_0x556c86;super(),_(this,_0x23b62c(0x223),new Set()),_(this,_0x23b62c(0x173),null),(this[_0x23b62c(0xba)]=_0x860fda,this[_0x23b62c(0xc3)]=_0x35fe28,this[_0x23b62c(0x1ce)]=_0x358d09,this[_0x23b62c(0x164)]=_0x39d1eb,this[_0x23b62c(0x104)]());}['_init'](){const _0x2f2f43=_0x556c86;this[_0x2f2f43(0xc3)][_0x2f2f43(0x2da)][_0x2f2f43(0xcc)](_0x575d5d(this[_0x2f2f43(0xd9)]),_0x483243(_0x5b97d0=>{const _0x3cc463=_0x2f2f43;if(_0x5b97d0){const _0x2c9574=_0x5b97d0[_0x3cc463(0x1d3)];return _0x35d2ad(this[_0x3cc463(0x1ce)][_0x3cc463(0x1be)](this['_context'][_0x3cc463(0x1e3)]),this['_themeService'][_0x3cc463(0xc5)])['pipe'](_0x271767(([_0x11aede,_0x52faef])=>{const _0x2e10d9=_0x3cc463,_0x1f5938=new Map();return _0x11aede[_0x2e10d9(0x2aa)]((_0x569d8e,_0x309cac)=>{const _0x3ff221=_0x2e10d9;if(_0x569d8e[_0x3ff221(0x291)]===_0x2c9574){const _0x5d60d={..._0x569d8e};_0x5d60d[_0x3ff221(0x177)]=this['_themeService'][_0x3ff221(0x18a)](_0x569d8e[_0x3ff221(0x177)]),_0x1f5938[_0x3ff221(0x1b3)](_0x309cac,_0x5d60d);}}),{'skeleton':_0x5b97d0,'cursors':_0x1f5938};}));}return _0x71f6d6({'skeleton':null,'cursors':new Map()});}))[_0x2f2f43(0x139)](({skeleton:_0x42fb5f,cursors:_0x3732d8})=>{const _0x8ba887=_0x2f2f43;this[_0x8ba887(0x2b6)](),_0x42fb5f&&this['_updateCollabCursors'](_0x42fb5f,_0x3732d8);}),this[_0x2f2f43(0xc3)][_0x2f2f43(0x2da)][_0x2f2f43(0x139)](_0x201d67=>{const _0x4c3392=_0x2f2f43;if(_0x201d67==null)return;const {skeleton:_0x5a9438}=_0x201d67,{scene:_0x4ad29f}=this[_0x4c3392(0xba)];_0x4ad29f[_0x4c3392(0x23f)]['subscribeEvent'](_0x2d4c20(_0x411b08=>{const _0x5a5a59=_0x4c3392;var _0x3eb840,_0x2dea85;const {offsetX:_0x13c795,offsetY:_0x718275}=_0x411b08,{x:_0x519d47,y:_0x3a2b70}=_0x4ad29f['getRelativeToViewportCoord'](_0x440a88[_0x5a5a59(0x28f)]([_0x13c795,_0x718275])),{scaleX:_0x102b53,scaleY:_0x3a35b8}=_0x4ad29f[_0x5a5a59(0x240)](),_0x4ec478=_0x4ad29f[_0x5a5a59(0xa3)](_0x3e9df3[_0x5a5a59(0xbf)]),_0xdd45c7=_0x4ad29f[_0x5a5a59(0xd1)](_0x440a88[_0x5a5a59(0x28f)]([_0x519d47,_0x3a2b70]),_0x4ec478),_0x5e5825=_0x5a9438[_0x5a5a59(0x207)](_0x13c795,_0x718275,_0x102b53,_0x3a35b8,_0xdd45c7);((_0x3eb840=this[_0x5a5a59(0x173)])==null?void 0x0:_0x3eb840[_0x5a5a59(0x1fb)])===_0x5e5825[_0x5a5a59(0x1fb)]&&((_0x2dea85=this[_0x5a5a59(0x173)])==null?void 0x0:_0x2dea85[_0x5a5a59(0x266)])===_0x5e5825[_0x5a5a59(0x266)]||this[_0x5a5a59(0x223)][_0x5a5a59(0x2aa)](_0x5d7e8f=>{_0x5d7e8f['onMouseMove'](_0x5e5825);});},0x64));});}['_updateCollabCursors'](_0x2fe4e8,_0x5ea64c){const _0x2a2725=_0x556c86;var _0x2f29af;const _0x40c846=(_0x2f29af=this['_sheetSkeletonManagerService'][_0x2a2725(0x118)]())==null?void 0x0:_0x2f29af[_0x2a2725(0x198)];if(!_0x40c846)return;const _0x2a3cfb=this[_0x2a2725(0xab)]();if(!_0x2a3cfb)return;this['_cursors'][_0x2a2725(0x2aa)](_0x217f63=>{const _0x12edaf=_0x2a2725;_0x217f63[_0x12edaf(0x131)]();});const {scene:_0x4effdc}=_0x2a3cfb,_0xd5ca7c=on(Array[_0x2a2725(0x186)](_0x5ea64c[_0x2a2725(0x2e3)]()))[_0x2a2725(0xa7)](_0x333148=>{const _0x5a5ea7=_0x2a2725,{color:_0x9aa385,range:_0x3f8fb1,name:_0x113a54,selection:_0x37a507,sheetID:_0x56e263}=_0x333148,{startColumn:_0x35cec9,startRow:_0x2e1b04,endColumn:_0x1aaf8a,endRow:_0x30dc43}=_0x3f8fb1,_0x5ebcf2=_0x1012ad(_0x2e1b04,_0x35cec9,_0x4effdc,_0x40c846),_0x1621cd=_0x1012ad(_0x30dc43,_0x1aaf8a,_0x4effdc,_0x40c846),{columnHeaderHeightAndMarginTop:_0x3a8071}=_0x40c846,{startX:_0xdcf67f,startY:_0x167845}=_0x5ebcf2,{endX:_0x35e2fb,endY:_0x11d3aa}=_0x1621cd,_0xa06514=_0x35e2fb-_0xdcf67f,_0x194edb=_0x11d3aa-_0x167845,_0x261833={'labelPosition':_0x167845-_0x3a8071>=Q?_0x5a5ea7(0x29c):_0x5a5ea7(0x264),'sheetID':_0x56e263,'range':_0x3f8fb1,'color':_0x9aa385,'name':_0x113a54,'selection':_0x37a507,'left':_0xdcf67f,'top':_0x167845,'width':_0xa06514,'height':_0x194edb,'evented':!0x1,'zIndex':rn};return new tn(_0x113a54,_0x261833);});_0x4effdc[_0x2a2725(0x1bd)](_0xd5ca7c,qi),this[_0x2a2725(0x223)]=new Set(_0xd5ca7c);}[_0x556c86(0x2b6)](){const _0x2e5eac=_0x556c86;var _0x23814c;(_0x23814c=this[_0x2e5eac(0x223)])==null||_0x23814c[_0x2e5eac(0x2aa)](_0x4ce5ab=>_0x4ce5ab['dispose']());}[_0x556c86(0xab)](){const _0x623842=_0x556c86;return _0x19db47(this[_0x623842(0xba)]['unit'],this[_0x623842(0xba)]);}};ke=nn([be(0x1,_0x5ba14a(_0x368b5d)),be(0x2,_0x5ba14a(H)),be(0x3,_0x5ba14a(_0x243cad))],ke);function on(_0x21aa16){const _0x1ee6b4=_0x556c86,_0x2205c9=new Map();return _0x21aa16[_0x1ee6b4(0x2aa)](_0x1bdf3c=>{const _0x3141dd=_0x1ee6b4;if(_0x2205c9['has'](_0x1bdf3c[_0x3141dd(0x25e)])){const _0x34c435=_0x2205c9[_0x3141dd(0x22e)](_0x1bdf3c[_0x3141dd(0x25e)]);_0x34c435[_0x3141dd(0x1f4)]+=',\x20'+_0x1bdf3c[_0x3141dd(0x1f4)];}else _0x2205c9[_0x3141dd(0x1b3)](_0x1bdf3c[_0x3141dd(0x25e)],_0x1bdf3c);}),Array[_0x1ee6b4(0x186)](_0x2205c9[_0x1ee6b4(0x2e3)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0xc4d7e1,_0x1e95cf,_0x25d4ea,_0x2b4649)=>{const _0x1f23b7=_0x556c86;for(var _0x117553=_0x2b4649>0x1?void 0x0:_0x2b4649?an(_0x1e95cf,_0x25d4ea):_0x1e95cf,_0x5637bf=_0xc4d7e1[_0x1f23b7(0xce)]-0x1,_0x4a0ca0;_0x5637bf>=0x0;_0x5637bf--)(_0x4a0ca0=_0xc4d7e1[_0x5637bf])&&(_0x117553=_0x4a0ca0(_0x117553)||_0x117553);return _0x117553;},F=(_0xbb2eed,_0x258572)=>(_0x3e6a10,_0x13dccc)=>_0x258572(_0x3e6a10,_0x13dccc,_0xbb2eed);let _e=class extends _0x1a0691{constructor(_0x520e9b,_0x2bc9d6,_0x404da7,_0x4d2512,_0xc5a41,_0x5ea229){const _0x372b45=_0x556c86;super(),this['_beforeCloseService']=_0x520e9b,this[_0x372b45(0x219)]=_0x2bc9d6,this[_0x372b45(0x2ee)]=_0x404da7,this['_messageService']=_0x4d2512,this[_0x372b45(0x230)]=_0xc5a41,this[_0x372b45(0x2a8)]=_0x5ea229,this[_0x372b45(0x2bb)](),this['_initEvent']();}[_0x556c86(0x2bb)](){const _0x56de96=_0x556c86;this[_0x56de96(0x110)](this[_0x56de96(0x2ac)][_0x56de96(0x255)](()=>{const _0x47dc2e=_0x56de96;if(this[_0x47dc2e(0x219)][_0x47dc2e(0x12a)]['size'])return this['_localeService']['t'](_0x47dc2e(0x28e));}));}[_0x556c86(0x296)](){const _0x174a13=_0x556c86;this[_0x174a13(0x110)](this[_0x174a13(0x2ee)]['event$'][_0x174a13(0x139)](_0x244337=>{const _0x4adb9d=_0x174a13;_0x244337['id']===_0x175ad0[_0x4adb9d(0x15a)]&&this[_0x4adb9d(0x29e)][_0x4adb9d(0x2d2)]({'type':_0x2d4c29[_0x4adb9d(0x141)],'content':this[_0x4adb9d(0x2a8)]['t'](_0x4adb9d(0x1c0))}),_0x244337['id']===_0x175ad0['CLOSE_ROOM']&&this[_0x4adb9d(0x29e)][_0x4adb9d(0x2d2)]({'type':_0x2d4c29[_0x4adb9d(0x141)],'content':this[_0x4adb9d(0x2a8)]['t'](_0x4adb9d(0x2b2))}),_0x244337['id']===_0x175ad0[_0x4adb9d(0x28c)]&&this['_notificationService']['show']({'title':this[_0x4adb9d(0x2a8)]['t'](_0x4adb9d(0x26d)),'content':this[_0x4adb9d(0x2a8)]['t'](_0x4adb9d(0x1c9)),'type':_0x4adb9d(0x1cc),'duration':0x0}),_0x244337['id']===_0x175ad0[_0x4adb9d(0x2e4)]&&this[_0x4adb9d(0x29e)]['show']({'type':_0x2d4c29[_0x4adb9d(0x114)],'content':this['_localeService']['t'](_0x4adb9d(0x2b2))+'('+_0x244337['data']+')'}),_0x244337['id']===_0x175ad0[_0x4adb9d(0x1d1)]&&this['_messageService'][_0x4adb9d(0x2d2)]({'type':_0x2d4c29[_0x4adb9d(0x141)],'content':this['_localeService']['t'](_0x244337[_0x4adb9d(0x234)]||'')}),_0x244337['id']===_0x175ad0[_0x4adb9d(0x1f1)]&&this['_messageService'][_0x4adb9d(0x2d2)]({'type':_0x2d4c29[_0x4adb9d(0x141)],'content':this['_localeService']['t'](_0x4adb9d(0x20a))}),_0x244337['id']===_0x175ad0[_0x4adb9d(0x289)]&&this[_0x4adb9d(0x29e)][_0x4adb9d(0x2d2)]({'type':_0x2d4c29['Error'],'content':this['_localeService']['t']('session.connection-failed')}),_0x244337['id']===_0x175ad0['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4adb9d(0x29e)]['show']({'type':_0x2d4c29[_0x4adb9d(0x114)],'content':this[_0x4adb9d(0x2a8)]['t'](_0x4adb9d(0x27b))});}));}};_e=cn([F(0x0,_0x2c4468),F(0x1,_0x4b4019),F(0x2,_0x5ba14a(_0x368d9b)),F(0x3,_0x31486d),F(0x4,_0x31de34),F(0x5,_0x5ba14a(_0x541e55))],_e);var _n=Object[_0x556c86(0x2c1)],ln=(_0x1e9c56,_0x4ccd1b,_0x1d0ed3,_0x1af547)=>{const _0x1e568a=_0x556c86;for(var _0xd72be7=_0x1af547>0x1?void 0x0:_0x1af547?_n(_0x4ccd1b,_0x1d0ed3):_0x4ccd1b,_0x9f4ca3=_0x1e9c56[_0x1e568a(0xce)]-0x1,_0x449c23;_0x9f4ca3>=0x0;_0x9f4ca3--)(_0x449c23=_0x1e9c56[_0x9f4ca3])&&(_0xd72be7=_0x449c23(_0xd72be7)||_0xd72be7);return _0xd72be7;},ne=(_0x2738a6,_0x4c6824)=>(_0x25fbad,_0x559934)=>_0x4c6824(_0x25fbad,_0x559934,_0x2738a6);let le=class extends _0x1a0691{constructor(_0x3130a9,_0x58d921,_0x3c24b5,_0x43aee7){const _0x153454=_0x556c86;super(),_(this,_0x153454(0x16c)),(this[_0x153454(0x15e)]=_0x3130a9,this[_0x153454(0x21d)]=_0x58d921,this[_0x153454(0x20f)]=_0x3c24b5,this[_0x153454(0x10d)]=_0x43aee7,this['_init']());}[_0x556c86(0x104)](){const _0x57aa96=_0x556c86;this[_0x57aa96(0x182)](),this[_0x57aa96(0x153)](),this['_monkeyPatchLogService'](),this[_0x57aa96(0x1aa)]();}[_0x556c86(0x1aa)](){const _0x52edd5=_0x556c86;this[_0x52edd5(0x110)](this[_0x52edd5(0x10d)][_0x52edd5(0x184)][_0x52edd5(0x139)](_0x33d937=>{this['_memberID']=_0x33d937==null?void 0x0:_0x33d937['memberID'];}));}[_0x556c86(0x182)](){const _0xbfabc7=_0x556c86,_0x252e94=_0x3c12d2=>{const _0xe9525c=_0x19a6;var _0x5d1611;this[_0xe9525c(0x165)](_0xe9525c(0x1cc),_0xe9525c(0x245)+_0x3c12d2[_0xe9525c(0x1b7)]+_0xe9525c(0x152)+_0x3c12d2['filename']+':'+_0x3c12d2['lineno']+':'+_0x3c12d2[_0xe9525c(0x1ba)]+'\x0a'+(((_0x5d1611=_0x3c12d2['error'])==null?void 0x0:_0x5d1611[_0xe9525c(0x15f)])||''));};window[_0xbfabc7(0x13c)](_0xbfabc7(0x1cc),_0x252e94),this[_0xbfabc7(0x110)](()=>{const _0xf85fc2=_0xbfabc7;window[_0xf85fc2(0x10b)](_0xf85fc2(0x1cc),_0x252e94);});}[_0x556c86(0x153)](){const _0x6d8bdd=_0x348d82=>{const _0xc68476=_0x19a6;this[_0xc68476(0x165)](_0xc68476(0x1cc),_0xc68476(0x21f)+_0x348d82[_0xc68476(0x187)]);};window['addEventListener']('unhandledrejection',_0x6d8bdd),this['disposeWithMe'](()=>{const _0x3623fb=_0x19a6;window[_0x3623fb(0x10b)](_0x3623fb(0x1ca),_0x6d8bdd);});}['_monkeyPatchLogService'](){const _0x5cce1e=_0x556c86,_0x3be9c3=this[_0x5cce1e(0x20f)][_0x5cce1e(0x1cc)][_0x5cce1e(0x1b0)](this['_logService']);this[_0x5cce1e(0x20f)][_0x5cce1e(0x1cc)]=(..._0x2cbbed)=>{const _0xbacb98=_0x5cce1e,_0x3200e2=_0x2cbbed[_0xbacb98(0xa7)](_0x58d447=>_0x58d447 instanceof Error?_0x58d447[_0xbacb98(0x1b7)]+'\x0a'+_0x58d447[_0xbacb98(0x15f)]:String(_0x58d447))['join']('\x20');this[_0xbacb98(0x165)](_0xbacb98(0x1cc),_0xbacb98(0x137)+_0x3200e2),_0x3be9c3(..._0x2cbbed);},this[_0x5cce1e(0x110)](()=>{this['_logService']['error']=_0x3be9c3;});}[_0x556c86(0x165)](_0x127120,_0x4d72d6){const _0x57a7e9=_0x556c86;try{const _0x8f466e={'userId':this[_0x57a7e9(0x16c)],'logLabel':_0x127120,'content':_0x4d72d6};this[_0x57a7e9(0x21d)][_0x57a7e9(0x1f8)](_0x57a7e9(0x11d),{'body':_0x8f466e})[_0x57a7e9(0x199)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5ba14a(_0x51e455)),ne(0x1,_0x5ba14a(_0x47eb61)),ne(0x2,_0x96d098),ne(0x3,_0x5ba14a(_0x48577d))],le);const hn=_0x556c86(0xec),_t={};var un=Object[_0x556c86(0x2c1)],dn=(_0x2be989,_0x2726f0,_0x5d07a7,_0x45047c)=>{const _0x3d8ef2=_0x556c86;for(var _0x124d24=_0x45047c>0x1?void 0x0:_0x45047c?un(_0x2726f0,_0x5d07a7):_0x2726f0,_0x5dbf66=_0x2be989[_0x3d8ef2(0xce)]-0x1,_0x1cfd22;_0x5dbf66>=0x0;_0x5dbf66--)(_0x1cfd22=_0x2be989[_0x5dbf66])&&(_0x124d24=_0x1cfd22(_0x124d24)||_0x124d24);return _0x124d24;},lt=(_0x1792d4,_0x187129)=>(_0x414cd0,_0x9001a2)=>_0x187129(_0x414cd0,_0x9001a2,_0x1792d4);let he=class{constructor(_0x16750a,_0x63cdec){const _0x883c73=_0x556c86;this[_0x883c73(0x10f)]=_0x16750a,this['_renderManagerService']=_0x63cdec;}[_0x556c86(0xac)](_0x2d6198){const _0x533d68=_0x556c86;this[_0x533d68(0x2d7)](_0x2d6198),this[_0x533d68(0x271)](_0x2d6198);}[_0x556c86(0x1e5)](_0x485077){const _0x2a5fea=_0x556c86,{unitID:_0x190d24}=_0x485077,_0x3f69bd=this[_0x2a5fea(0x27a)]['getRenderById'](_0x190d24)['with'](_0x191451),{redoCache:_0x5def21}=_0x3f69bd[_0x2a5fea(0x170)]();if(_0x5def21[_0x2a5fea(0xce)]===0x0)return _0x485077;let _0x406787=_0x49b56b[_0x2a5fea(0x2a6)](_0x485077[_0x2a5fea(0x2a1)][0x0]);for(let _0x1c5ac0=0x0;_0x1c5ac0<_0x5def21[_0x2a5fea(0xce)];_0x1c5ac0++){const _0x2be0fb={'id':'doc.mutation.rich-text-editing','params':{..._0x5def21[_0x1c5ac0]}},_0x35181e=this[_0x2a5fea(0x10f)][_0x2a5fea(0x1b4)](_0x406787,_0x2be0fb,!0x1);if(_0x1e8234(_0x35181e))throw _0x35181e['error'];_0x406787=_0x35181e[_0x2a5fea(0xe9)];}return{..._0x49b56b['deepClone'](_0x485077),'mutations':[_0x406787]};}['_transformUndoRedoStack'](_0x51e17e){const _0x31087d=_0x556c86,{unitID:_0x382e66}=_0x51e17e,_0x24a142=this[_0x31087d(0x27a)][_0x31087d(0x193)](_0x382e66)[_0x31087d(0x2b9)](_0x191451),{undoCache:_0x4b5955,redoCache:_0x3b9b1f}=_0x24a142[_0x31087d(0x170)]();if(_0x4b5955[_0x31087d(0xce)]===0x0||_0x3b9b1f[_0x31087d(0xce)]===0x0)return;const _0xe0f545=[],_0x547800=[];let _0xce4868=_0x49b56b['deepClone'](_0x51e17e[_0x31087d(0x2a1)][0x0]),_0x2f899a=_0x49b56b[_0x31087d(0x2a6)](_0x51e17e[_0x31087d(0x2a1)][0x0]);for(let _0x49c348=_0x4b5955[_0x31087d(0xce)]-0x1;_0x49c348>=0x0;_0x49c348--){const _0x1c4f74={'id':_0x31087d(0xdf),'params':{..._0x4b5955[_0x49c348]}},_0x400461={'id':_0x31087d(0xdf),'params':{..._0x3b9b1f[_0x49c348]}},_0x54dc65=this[_0x31087d(0x10f)][_0x31087d(0x1b4)](_0xce4868,_0x1c4f74,!0x1),_0x31e47c=this[_0x31087d(0x10f)][_0x31087d(0x1b4)](_0x2f899a,_0x400461,!0x1);if(_0x1e8234(_0x54dc65))throw _0x54dc65[_0x31087d(0x1cc)];if(_0x1e8234(_0x31e47c))throw _0x31e47c['error'];_0xe0f545['unshift'](_0x54dc65[_0x31087d(0x27f)]['params']),_0x547800[_0x31087d(0xc1)](_0x31e47c[_0x31087d(0x27f)]['params']),_0xce4868=_0x54dc65['m1Prime'],_0x2f899a=_0x31e47c[_0x31087d(0xe9)];}_0x24a142[_0x31087d(0x155)]({'undoCache':_0xe0f545,'redoCache':_0x547800});}[_0x556c86(0x271)](_0xafbeb9){const _0x1276b9=_0x556c86,{unitID:_0x63f21a}=_0xafbeb9,_0x85f12c=this[_0x1276b9(0x27a)][_0x1276b9(0x193)](_0x63f21a)[_0x1276b9(0x2b9)](_0x191451),_0x691670=_0x85f12c[_0x1276b9(0xcf)]();if(_0x691670==null)return;const _0x4f7340=[{'id':_0x1276b9(0xdf),'params':{'unitId':_0xafbeb9[_0x1276b9(0xc0)],'actions':null,'textRanges':[_0x691670]}}],_0xbccef8=this[_0x1276b9(0x10f)][_0x1276b9(0x122)](_0xafbeb9,_0x4f7340);if(!_0x2b2696(_0xbccef8))throw _0xbccef8['error'];const _0x58db77=_0xbccef8[_0x1276b9(0x27f)][0x0][_0x1276b9(0x12c)][_0x1276b9(0x26c)];Array[_0x1276b9(0x224)](_0x58db77)&&_0x58db77['length']&&_0x85f12c['setActiveRange'](_0x58db77[0x0]);}};he=dn([lt(0x0,_0x89b066),lt(0x1,_0x334053)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x55c446,_0x481062,_0x5c31d0,_0xa98d93)=>{const _0x13ff08=_0x556c86;for(var _0x3552a1=_0xa98d93>0x1?void 0x0:_0xa98d93?Sn(_0x481062,_0x5c31d0):_0x481062,_0x534748=_0x55c446[_0x13ff08(0xce)]-0x1,_0x1011af;_0x534748>=0x0;_0x534748--)(_0x1011af=_0x55c446[_0x534748])&&(_0x3552a1=_0x1011af(_0x3552a1)||_0x3552a1);return _0x3552a1;},Le=(_0x2a266c,_0x3e61a5)=>(_0xa1d851,_0x2363ec)=>_0x3e61a5(_0xa1d851,_0x2363ec,_0x2a266c);let ue=class{constructor(_0x451670,_0x2aa438,_0x3bf12c){const _0x48d58f=_0x556c86;this[_0x48d58f(0x15e)]=_0x451670,this[_0x48d58f(0x10f)]=_0x2aa438,this[_0x48d58f(0x2bc)]=_0x3bf12c;}[_0x556c86(0x2e2)](_0x1454e7){this['_transformHistoryAndStateStack'](_0x1454e7);}[_0x556c86(0x1e5)](_0x117f85){const _0x30ce87=_0x556c86,{unitID:_0x11486d}=_0x117f85,{collaboration:_0x3040a2}=this[_0x30ce87(0x2bc)][_0x30ce87(0x261)](_0x11486d);if(_0x3040a2[_0x30ce87(0xce)]===0x0)return _0x117f85;let _0x2e8003=_0x49b56b[_0x30ce87(0x2a6)](_0x117f85[_0x30ce87(0x2a1)][0x0]);for(let _0x5470e9=0x0;_0x5470e9<_0x3040a2[_0x30ce87(0xce)];_0x5470e9++){const _0x124467={'id':_0x30ce87(0xdf),'params':{'unitId':_0x3040a2[_0x5470e9][_0x30ce87(0x1e3)],..._0x3040a2[_0x5470e9][_0x30ce87(0x259)]}},_0x35c222=this[_0x30ce87(0x10f)][_0x30ce87(0x1b4)](_0x2e8003,_0x124467,!0x1);if(_0x1e8234(_0x35c222))throw _0x35c222['error'];_0x2e8003=_0x35c222[_0x30ce87(0xe9)];}return{..._0x49b56b[_0x30ce87(0x2a6)](_0x117f85),'mutations':[_0x2e8003]};}[_0x556c86(0x1dc)](_0x2836b3){const _0x2cb74d=_0x556c86,{unitID:_0x2020f1}=_0x2836b3,{history:_0x12c458,collaboration:_0x3b498d}=this['_docStateChangeManagerService'][_0x2cb74d(0x261)](_0x2020f1);if(_0x12c458[_0x2cb74d(0xce)]===0x0&&_0x3b498d[_0x2cb74d(0xce)]===0x0)return;const _0x4b4397=[],_0x4f0bf0=[];let _0x498c9a=_0x49b56b[_0x2cb74d(0x2a6)](_0x2836b3[_0x2cb74d(0x2a1)][0x0]),_0x584523=_0x49b56b[_0x2cb74d(0x2a6)](_0x2836b3['mutations'][0x0]);for(let _0x307f4a=_0x12c458['length']-0x1;_0x307f4a>=0x0;_0x307f4a--){const _0x1e49cf={'id':_0x2cb74d(0xdf),'params':{'unitId':_0x12c458[_0x307f4a][_0x2cb74d(0x1e3)],..._0x12c458[_0x307f4a][_0x2cb74d(0xb0)]}},_0x4fbafc={'id':_0x2cb74d(0xdf),'params':{'unitId':_0x12c458[_0x307f4a]['unitId'],..._0x12c458[_0x307f4a][_0x2cb74d(0x259)]}},_0x2a109a=this['_transformService'][_0x2cb74d(0x1b4)](_0x498c9a,_0x1e49cf,!0x1),_0x46e1e3=this[_0x2cb74d(0x10f)][_0x2cb74d(0x1b4)](_0x584523,_0x4fbafc,!0x1);if(_0x1e8234(_0x2a109a))throw _0x2a109a['error'];if(_0x1e8234(_0x46e1e3))throw _0x46e1e3[_0x2cb74d(0x1cc)];_0x4b4397['unshift']({..._0x12c458[_0x307f4a],'undoState':_0x2a109a[_0x2cb74d(0x27f)][_0x2cb74d(0x12c)],'redoState':_0x46e1e3[_0x2cb74d(0x27f)][_0x2cb74d(0x12c)]}),_0x498c9a=_0x2a109a[_0x2cb74d(0xe9)],_0x584523=_0x46e1e3[_0x2cb74d(0xe9)];}_0x498c9a=_0x49b56b[_0x2cb74d(0x2a6)](_0x2836b3[_0x2cb74d(0x2a1)][0x0]),_0x584523=_0x49b56b[_0x2cb74d(0x2a6)](_0x2836b3[_0x2cb74d(0x2a1)][0x0]);for(let _0x12024e=_0x3b498d['length']-0x1;_0x12024e>=0x0;_0x12024e--){const _0x538ee7={'id':_0x2cb74d(0xdf),'params':{'unitId':_0x3b498d[_0x12024e][_0x2cb74d(0x1e3)],..._0x3b498d[_0x12024e][_0x2cb74d(0xb0)]}},_0x24192e={'id':_0x2cb74d(0xdf),'params':{'unitId':_0x3b498d[_0x12024e][_0x2cb74d(0x1e3)],..._0x3b498d[_0x12024e][_0x2cb74d(0x259)]}},_0x4762c1=this['_transformService'][_0x2cb74d(0x1b4)](_0x498c9a,_0x538ee7,!0x1),_0x5b6565=this['_transformService'][_0x2cb74d(0x1b4)](_0x584523,_0x24192e,!0x1);if(_0x1e8234(_0x4762c1))throw _0x4762c1[_0x2cb74d(0x1cc)];if(_0x1e8234(_0x5b6565))throw _0x5b6565[_0x2cb74d(0x1cc)];_0x4f0bf0[_0x2cb74d(0xc1)]({..._0x3b498d[_0x12024e],'undoState':_0x4762c1[_0x2cb74d(0x27f)]['params'],'redoState':_0x5b6565[_0x2cb74d(0x27f)][_0x2cb74d(0x12c)]}),_0x498c9a=_0x4762c1[_0x2cb74d(0xe9)],_0x584523=_0x5b6565[_0x2cb74d(0xe9)];}this[_0x2cb74d(0x2bc)][_0x2cb74d(0x220)](_0x2020f1,{'history':_0x4b4397,'collaboration':_0x4f0bf0});}};ue=In([Le(0x0,_0x5ba14a(_0x51e455)),Le(0x1,_0x89b066),Le(0x2,_0x5ba14a(_0x35f07e))],ue);var mn=Object[_0x556c86(0x2c1)],fn=(_0x537fde,_0x2ba48c,_0x373ce7,_0x112d7e)=>{const _0x25fa39=_0x556c86;for(var _0x193d8a=_0x112d7e>0x1?void 0x0:_0x112d7e?mn(_0x2ba48c,_0x373ce7):_0x2ba48c,_0x1898f8=_0x537fde[_0x25fa39(0xce)]-0x1,_0x1c2be6;_0x1898f8>=0x0;_0x1898f8--)(_0x1c2be6=_0x537fde[_0x1898f8])&&(_0x193d8a=_0x1c2be6(_0x193d8a)||_0x193d8a);return _0x193d8a;},ht=(_0x1d434f,_0x2e9613)=>(_0x595b18,_0xe8daf1)=>_0x2e9613(_0x595b18,_0xe8daf1,_0x1d434f);let de=class{constructor(_0x5e2e0f,_0x5a79b6){const _0x447efb=_0x556c86;this[_0x447efb(0x15e)]=_0x5e2e0f,this[_0x447efb(0x10f)]=_0x5a79b6;}['transformSelections'](_0xb1a54e){const _0x1880b9=_0x556c86;var _0x95a6d;const _0xec1af0=this[_0x1880b9(0x15e)][_0x1880b9(0x22e)](_0x2aa39f),_0x27298f=(_0x95a6d=_0xec1af0[_0x1880b9(0x188)]())!=null?_0x95a6d:[];if(_0x27298f[_0x1880b9(0xce)]===0x0)return;const _0x3ac0dd=_0xb1a54e[_0x1880b9(0xc0)],_0x2ac72f=[{'id':_0x1880b9(0xdf),'params':{'unitId':_0x3ac0dd,'actions':null,'textRanges':_0x27298f}}],_0x400e49=this[_0x1880b9(0x10f)][_0x1880b9(0x122)](_0xb1a54e,_0x2ac72f);if(!_0x2b2696(_0x400e49))throw _0x400e49['error'];const _0x2b74b6=_0x400e49[_0x1880b9(0x27f)][0x0][_0x1880b9(0x12c)][_0x1880b9(0x26c)];Array[_0x1880b9(0x224)](_0x2b74b6)&&_0x2b74b6[_0x1880b9(0xce)]&&_0xec1af0[_0x1880b9(0x102)](_0x2b74b6,{'unitId':_0x3ac0dd,'subUnitId':_0x3ac0dd},!0x1);}};de=fn([ht(0x0,_0x5ba14a(_0x51e455)),ht(0x1,_0x89b066)],de);var gn=Object[_0x556c86(0x2c1)],En=(_0x39d772,_0x5ad2d4,_0x46dbb4,_0x3fe4bd)=>{const _0x165f8a=_0x556c86;for(var _0x1be8d4=_0x3fe4bd>0x1?void 0x0:_0x3fe4bd?gn(_0x5ad2d4,_0x46dbb4):_0x5ad2d4,_0x31814=_0x39d772[_0x165f8a(0xce)]-0x1,_0x2f3b21;_0x31814>=0x0;_0x31814--)(_0x2f3b21=_0x39d772[_0x31814])&&(_0x1be8d4=_0x2f3b21(_0x1be8d4)||_0x1be8d4);return _0x1be8d4;},U=(_0x2c1b48,_0xfe574d)=>(_0x533af9,_0x125c9e)=>_0xfe574d(_0x533af9,_0x125c9e,_0x2c1b48);let Se=class extends _0x1a0691{constructor(_0x15a5a4,_0x56b086,_0x582648,_0x3f9e86,_0x456a86,_0x4f8174,_0x25afc1,_0x195ea1){const _0x59bc95=_0x556c86;super(),_(this,_0x59bc95(0xee),new _0x27272c(_0x44d57a[_0x59bc95(0xad)])),(this['_docStateChangeManagerService']=_0x15a5a4,this[_0x59bc95(0x1e1)]=_0x56b086,this[_0x59bc95(0x211)]=_0x582648,this[_0x59bc95(0xd2)]=_0x3f9e86,this[_0x59bc95(0x136)]=_0x456a86,this[_0x59bc95(0x2d1)]=_0x4f8174,this['_messageService']=_0x25afc1,this[_0x59bc95(0x2a8)]=_0x195ea1,this[_0x59bc95(0x10c)]());}[_0x556c86(0x10c)](){const _0x561b5a=_0x556c86;this[_0x561b5a(0x110)](this[_0x561b5a(0x1e1)][_0x561b5a(0x161)][_0x561b5a(0x139)](_0x47a38a=>{const _0x323244=_0x561b5a,_0x89c89=this[_0x323244(0x2bc)][_0x323244(0xf9)][_0x323244(0x139)](_0x63d154=>{const _0x5afbf7=_0x323244;if(_0x63d154==null)return;const {unitId:_0x48c87e,redoState:_0x190045,commandId:_0x3c2a5d}=_0x63d154;if(_0x48c87e!==_0x47a38a[_0x5afbf7(0xc0)])return;const _0x3609ad={'id':_0x3c2a5d,'type':_0x2b26f8['MUTATION'],'params':{'unitId':_0x48c87e,'actions':_0x190045[_0x5afbf7(0x229)],'textRanges':null}};_0x47a38a[_0x5afbf7(0x1f6)](_0x3609ad);});if(_0x47a38a[_0x323244(0x110)](_0x89c89),_0x47a38a instanceof _0x53545d){const _0x3807c6={'onTransformIME':_0x3d4c7e=>this[_0x323244(0x211)][_0x323244(0xac)](_0x3d4c7e),'onTransformState':_0x4c3fc4=>this['_docTransformStateCacheService'][_0x323244(0x2e2)](_0x4c3fc4),'onTransformSelections':_0x25b45e=>this[_0x323244(0x136)][_0x323244(0x23e)](_0x25b45e),'onSyncEditingCollabCursor':_0x40a398=>this[_0x323244(0x2d1)][_0x323244(0x2f2)](_0x40a398),'onTransformRemoteChangesetByIMECache':_0x414fe2=>this[_0x323244(0x211)][_0x323244(0x1e5)](_0x414fe2),'onTransformRemoteChangesetByStateCache':_0xf9972f=>this[_0x323244(0xd2)]['transformRemoteChangeset'](_0xf9972f)};_0x47a38a[_0x323244(0xe3)](_0x3807c6);}}));}};Se=En([U(0x0,_0x5ba14a(_0x35f07e)),U(0x1,_0x5ba14a(_0x3d656d)),U(0x2,_0x5ba14a(he)),U(0x3,_0x5ba14a(ue)),U(0x4,_0x5ba14a(de)),U(0x5,_0x5ba14a(ze)),U(0x6,_0x31486d),U(0x7,_0x5ba14a(_0x541e55))],Se);var Z=(_0x28ed5b=>(_0x28ed5b[_0x28ed5b[_0x556c86(0x2af)]=0x0]=_0x556c86(0x2af),_0x28ed5b[_0x28ed5b['OK']=0x1]='OK',_0x28ed5b[_0x28ed5b[_0x556c86(0xa5)]=0x2]=_0x556c86(0xa5),_0x28ed5b[_0x28ed5b['PERMISSION_DENIED']=0x3]=_0x556c86(0x28c),_0x28ed5b[_0x28ed5b['NOT_FOUND']=0x4]=_0x556c86(0x23a),_0x28ed5b[_0x28ed5b[_0x556c86(0x14d)]=0x5]=_0x556c86(0x14d),_0x28ed5b[_0x28ed5b[_0x556c86(0x208)]=0x6]=_0x556c86(0x208),_0x28ed5b[_0x28ed5b[_0x556c86(0xaf)]=0x7]=_0x556c86(0xaf),_0x28ed5b[_0x28ed5b[_0x556c86(0x175)]=0x8]=_0x556c86(0x175),_0x28ed5b[_0x28ed5b[_0x556c86(0x269)]=0x9]=_0x556c86(0x269),_0x28ed5b[_0x28ed5b[_0x556c86(0x27d)]=0xa]=_0x556c86(0x27d),_0x28ed5b[_0x28ed5b[_0x556c86(0x282)]=0xb]=_0x556c86(0x282),_0x28ed5b[_0x28ed5b[_0x556c86(0x194)]=0xc]=_0x556c86(0x194),_0x28ed5b[_0x28ed5b[_0x556c86(0xf1)]=0xd]=_0x556c86(0xf1),_0x28ed5b[_0x28ed5b[_0x556c86(0x2b7)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x28ed5b[_0x28ed5b['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x556c86(0x22d),_0x28ed5b[_0x28ed5b[_0x556c86(0x10e)]=0x10]=_0x556c86(0x10e),_0x28ed5b[_0x28ed5b['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x28ed5b[_0x28ed5b['ERROR_AGAIN']=0x65]=_0x556c86(0x242),_0x28ed5b[_0x28ed5b[_0x556c86(0x127)]=0xc9]=_0x556c86(0x127),_0x28ed5b[_0x28ed5b[_0x556c86(0x2ea)]=0xca]=_0x556c86(0x2ea),_0x28ed5b[_0x28ed5b[_0x556c86(0x249)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x28ed5b[_0x28ed5b[_0x556c86(0xf5)]=0x1771]=_0x556c86(0xf5),_0x28ed5b[_0x28ed5b[_0x556c86(0x11f)]=0x1772]=_0x556c86(0x11f),_0x28ed5b[_0x28ed5b[_0x556c86(0x195)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x28ed5b[_0x28ed5b[_0x556c86(0x25d)]=0x1b59]=_0x556c86(0x25d),_0x28ed5b[_0x28ed5b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x556c86(0x17a),_0x28ed5b[_0x28ed5b[_0x556c86(0x2f5)]=0x1b5b]=_0x556c86(0x2f5),_0x28ed5b[_0x28ed5b[_0x556c86(0x200)]=0x1b5c]=_0x556c86(0x200),_0x28ed5b[_0x28ed5b['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x28ed5b[_0x28ed5b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x556c86(0x107),_0x28ed5b[_0x28ed5b[_0x556c86(0x2b4)]=0x2329]=_0x556c86(0x2b4),_0x28ed5b[_0x28ed5b[_0x556c86(0x15b)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x28ed5b[_0x28ed5b[_0x556c86(0x238)]=0x232b]=_0x556c86(0x238),_0x28ed5b[_0x28ed5b[_0x556c86(0xe2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x28ed5b[_0x28ed5b[_0x556c86(0x11e)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x28ed5b[_0x28ed5b[_0x556c86(0x1ec)]=0x2711]=_0x556c86(0x1ec),_0x28ed5b[_0x28ed5b[_0x556c86(0xdb)]=0x2712]=_0x556c86(0xdb),_0x28ed5b[_0x28ed5b[_0x556c86(0xaa)]=0x2713]=_0x556c86(0xaa),_0x28ed5b[_0x28ed5b[_0x556c86(0xed)]=0x2714]=_0x556c86(0xed),_0x28ed5b[_0x28ed5b[_0x556c86(0x11b)]=0x271a]=_0x556c86(0x11b),_0x28ed5b[_0x28ed5b[_0x556c86(0x25a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x28ed5b[_0x28ed5b[_0x556c86(0xbe)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x28ed5b[_0x28ed5b[_0x556c86(0x20d)]=0x271d]=_0x556c86(0x20d),_0x28ed5b[_0x28ed5b[_0x556c86(0x26b)]=0x271e]=_0x556c86(0x26b),_0x28ed5b[_0x28ed5b[_0x556c86(0x19c)]=0x271f]=_0x556c86(0x19c),_0x28ed5b[_0x28ed5b[_0x556c86(0x23c)]=0x2720]=_0x556c86(0x23c),_0x28ed5b[_0x28ed5b[_0x556c86(0xff)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x28ed5b[_0x28ed5b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x556c86(0x25b),_0x28ed5b[_0x28ed5b['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x28ed5b[_0x28ed5b[_0x556c86(0x206)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x28ed5b[_0x28ed5b[_0x556c86(0x2c8)]=0x2ee4]=_0x556c86(0x2c8),_0x28ed5b[_0x28ed5b[_0x556c86(0xf4)]=0x2ee5]=_0x556c86(0xf4),_0x28ed5b[_0x28ed5b[_0x556c86(0x138)]=0x32c9]=_0x556c86(0x138),_0x28ed5b[_0x28ed5b['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x28ed5b[_0x28ed5b['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x28ed5b[_0x28ed5b['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x556c86(0x2a3),_0x28ed5b[_0x28ed5b[_0x556c86(0x290)]=0x36b2]=_0x556c86(0x290),_0x28ed5b[_0x28ed5b['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x556c86(0x292),_0x28ed5b[_0x28ed5b['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x556c86(0x299),_0x28ed5b[_0x28ed5b[_0x556c86(0xa4)]=0x36b5]=_0x556c86(0xa4),_0x28ed5b[_0x28ed5b['ENTITLE_COUPON_EXPIRED']=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x28ed5b[_0x28ed5b['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x556c86(0x28b),_0x28ed5b[_0x28ed5b[_0x556c86(0x2a7)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x28ed5b[_0x28ed5b[_0x556c86(0x16f)]=0x3715]=_0x556c86(0x16f),_0x28ed5b[_0x28ed5b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x556c86(0x1ae),_0x28ed5b[_0x28ed5b[_0x556c86(0x1c6)]=0x3717]=_0x556c86(0x1c6),_0x28ed5b[_0x28ed5b[_0x556c86(0x1ef)]=0x37dd]=_0x556c86(0x1ef),_0x28ed5b[_0x28ed5b['REDEMPTION_INVALID_CODE']=0x3a99]=_0x556c86(0x1ed),_0x28ed5b[_0x28ed5b[_0x556c86(0x284)]=0x3a9a]=_0x556c86(0x284),_0x28ed5b[_0x28ed5b['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x556c86(0xc9),_0x28ed5b[_0x28ed5b[_0x556c86(0x159)]=0x3a9c]=_0x556c86(0x159),_0x28ed5b[_0x28ed5b['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x556c86(0x1c4),_0x28ed5b[_0x28ed5b[_0x556c86(0x2a5)]=0x3a9e]=_0x556c86(0x2a5),_0x28ed5b[_0x28ed5b['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x28ed5b[_0x28ed5b[_0x556c86(0x205)]=0x3e81]=_0x556c86(0x205),_0x28ed5b[_0x28ed5b[_0x556c86(0xf0)]=-0x1]=_0x556c86(0xf0),_0x28ed5b))(Z||{});function vn(_0x1b6384){const _0x550dbc=_0x556c86;var _0xa236e5,_0xa7dc68;const _0x278208=(_0xa236e5=_0x1b6384[_0x550dbc(0xc4)])==null?void 0x0:_0xa236e5[_0x550dbc(0xd5)],_0x29fe5e=((_0xa7dc68=_0x1b6384[_0x550dbc(0xc4)])==null?void 0x0:_0xa7dc68[_0x550dbc(0x2e6)])||0x0;return _0x278208===_0x5803fa['START_CALCULATION']&&_0x29fe5e>0x0;}function pn(_0x2f151d){const _0x499b57=_0x556c86;return _0x2f151d[_0x499b57(0x191)]===_0x4f770a[_0x499b57(0x293)];}var On=Object[_0x556c86(0x2c1)],Tn=(_0x4a0926,_0x21014d,_0x35b23c,_0x220782)=>{for(var _0x5cefb5=_0x220782>0x1?void 0x0:_0x220782?On(_0x21014d,_0x35b23c):_0x21014d,_0x34516c=_0x4a0926['length']-0x1,_0x993f41;_0x34516c>=0x0;_0x34516c--)(_0x993f41=_0x4a0926[_0x34516c])&&(_0x5cefb5=_0x993f41(_0x5cefb5)||_0x5cefb5);return _0x5cefb5;},P=(_0x223c44,_0x16c208)=>(_0x4eea83,_0x242ccd)=>_0x16c208(_0x4eea83,_0x242ccd,_0x223c44);const Cn=_0x556c86(0x105),Rn=_0x556c86(0x1a3),Dn=_0x556c86(0x192);let Ie=class extends _0x1a0691{constructor(_0x5ce607,_0x4df1d0,_0x51a514,_0x26a9cf,_0x542355,_0x251faf,_0x42209f){const _0x332d4a=_0x556c86;super(),_(this,_0x332d4a(0xeb),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x332d4a(0x1bf),0x0),_(this,_0x332d4a(0x24c),[]),_(this,_0x332d4a(0x297),0x0),(this[_0x332d4a(0x29e)]=_0x5ce607,this[_0x332d4a(0x202)]=_0x4df1d0,this[_0x332d4a(0x2eb)]=_0x51a514,this[_0x332d4a(0x21d)]=_0x26a9cf,this[_0x332d4a(0x216)]=_0x542355,this[_0x332d4a(0x20f)]=_0x251faf,this[_0x332d4a(0x2a8)]=_0x42209f,this[_0x332d4a(0x166)]());}[_0x556c86(0x166)](){const _0x1a2b61=_0x556c86;this[_0x1a2b61(0x110)](this[_0x1a2b61(0x202)][_0x1a2b61(0x1e0)]((_0x7eacfc,_0x4bcd3b)=>{const _0x573a76=_0x1a2b61;var _0x337eb9;if(_0x7eacfc['id']!==_0x387c35['id'])return;const _0x5e953d=_0x7eacfc[_0x573a76(0x12c)];if(!this[_0x573a76(0xe6)]((_0x337eb9=_0x5e953d[_0x573a76(0x2ba)])!=null?_0x337eb9:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x7eacfc,_0x4bcd3b),this[_0x573a76(0x163)](),new _0x3c5a31();})),this[_0x1a2b61(0x110)](this[_0x1a2b61(0x202)][_0x1a2b61(0xe4)]((_0x40c5f6,_0x2dab86)=>{const _0x31840b=_0x1a2b61;if(_0x40c5f6['id']!==_0x319c23['id'])return;const _0x28691d=_0x40c5f6[_0x31840b(0x12c)];if(vn(_0x28691d)){const _0x3e185e=_0x3eba8f();this[_0x31840b(0x24c)]['push'](_0x3e185e),this[_0x31840b(0x149)](_0x3e185e);}else{if(pn(_0x28691d)&&this[_0x31840b(0x24c)][_0x31840b(0xce)]>0x0){const _0x298d6b=this[_0x31840b(0x24c)]['shift']();this[_0x31840b(0x275)](_0x298d6b);}}}));}['dispose'](){const _0x2e15cf=_0x556c86;super['dispose'](),this[_0x2e15cf(0x2ae)](),this[_0x2e15cf(0x24c)]=[],this[_0x2e15cf(0x1bf)]=0x0,this[_0x2e15cf(0x273)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x556c86(0x1e9)](_0x1d7876,_0x464095){const _0x30ca6c=_0x556c86;for(let _0x76307a=0x0;_0x76307a<0x1e;_0x76307a++)try{if(await this[_0x30ca6c(0x1e7)](),this[_0x30ca6c(0xfc)]()){this['_applyCommand'](_0x1d7876,_0x464095),this[_0x30ca6c(0x29e)]['show']({'content':this[_0x30ca6c(0x2a8)]['t'](_0x30ca6c(0x156)),'type':_0x2d4c29['Success']});return;}await new Promise(_0x18b73b=>{const _0x62f04f=_0x30ca6c;this[_0x62f04f(0xeb)]=window['setTimeout'](_0x18b73b,0x3e8);});}catch(_0xb71b80){this[_0x30ca6c(0x20f)]['error'](_0xb71b80);}this['_messageService'][_0x30ca6c(0x2d2)]({'content':this[_0x30ca6c(0x2a8)]['t'](_0x30ca6c(0xd8)),'type':_0x2d4c29['Error']});}[_0x556c86(0x232)](_0x317c17,_0x1def55){const _0x95b8e7=_0x556c86;try{this[_0x95b8e7(0x202)]['executeCommand'](_0x317c17['id'],_0x317c17[_0x95b8e7(0x12c)],_0x1def55);}catch(_0x5b8e4e){this['_logService'][_0x95b8e7(0x1cc)](_0x5b8e4e);}}[_0x556c86(0x270)](_0x222bda,_0x2f0d88){const _0x14df97=_0x556c86;_0x2f0d88<this[_0x14df97(0x297)]||(this['_lastResponseTimestamp']=_0x2f0d88,this[_0x14df97(0x273)]=Number['parseInt'](_0x222bda['maxFormulaLimit']),this['_currentUsage']=Number[_0x14df97(0x2fb)](_0x222bda[_0x14df97(0x2cb)]));}async[_0x556c86(0x149)](_0x149a91){const _0xdd6520=_0x556c86;var _0x40c1c2,_0x5d49f6;const _0x387173=Date[_0xdd6520(0x1a7)]();try{const _0x4ab4e1=((_0x40c1c2=this[_0xdd6520(0x2eb)][_0xdd6520(0x172)](_0x1bda1e))==null?void 0x0:_0x40c1c2['startFormulaLimitUrl'])||Rn,_0x18b58c=(await this['_httpService'][_0xdd6520(0x1f8)](_0x4ab4e1,{'body':JSON['stringify']({'taskId':_0x149a91})}))[_0xdd6520(0x12b)];if(((_0x5d49f6=_0x18b58c['error'])==null?void 0x0:_0x5d49f6[_0xdd6520(0x16d)])!==Z['OK'])return;this[_0xdd6520(0x270)](_0x18b58c['limitInfo'],_0x387173);}catch(_0x1af199){this[_0xdd6520(0x20f)][_0xdd6520(0x1cc)](_0x1af199);}}async['_getFormulaLimitStatus'](_0x2a323d){const _0x494ce1=_0x556c86;var _0x1202a8,_0xb3b9fe;const _0x97d795=Date[_0x494ce1(0x1a7)]();try{const _0x1ac084=((_0x1202a8=this[_0x494ce1(0x2eb)][_0x494ce1(0x172)](_0x1bda1e))==null?void 0x0:_0x1202a8[_0x494ce1(0x204)])||Cn,_0x379791=_0x2a323d?_0x1ac084+_0x494ce1(0x16a)+encodeURIComponent(_0x2a323d):_0x1ac084,_0x5f1db2=(await this[_0x494ce1(0x21d)][_0x494ce1(0x22e)](_0x379791))[_0x494ce1(0x12b)];if(((_0xb3b9fe=_0x5f1db2[_0x494ce1(0x1cc)])==null?void 0x0:_0xb3b9fe['code'])!==Z['OK'])return;this[_0x494ce1(0x270)](_0x5f1db2[_0x494ce1(0x1a8)],_0x97d795);}catch(_0x31710e){this[_0x494ce1(0x20f)][_0x494ce1(0x1cc)](_0x31710e);}}async[_0x556c86(0x275)](_0x5ae950){const _0x3100d0=_0x556c86;var _0x10c412,_0x1d47fe;const _0x53d94e=Date[_0x3100d0(0x1a7)]();try{const _0x5e3fb4=((_0x10c412=this[_0x3100d0(0x2eb)]['getConfig'](_0x1bda1e))==null?void 0x0:_0x10c412[_0x3100d0(0x1ff)])||Dn,_0x2271fe=(await this['_httpService'][_0x3100d0(0x1f8)](_0x5e3fb4,{'body':JSON['stringify']({'taskId':_0x5ae950})}))[_0x3100d0(0x12b)];if(((_0x1d47fe=_0x2271fe[_0x3100d0(0x1cc)])==null?void 0x0:_0x1d47fe[_0x3100d0(0x16d)])!==Z['OK'])return;this[_0x3100d0(0x270)](_0x2271fe[_0x3100d0(0x1a8)],_0x53d94e);}catch(_0x31961c){this['_logService'][_0x3100d0(0x1cc)](_0x31961c);}}[_0x556c86(0xfc)](){const _0x325974=_0x556c86;return this[_0x325974(0x273)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x325974(0x1bf)]>0x0;}[_0x556c86(0x2ae)](){const _0xac0d89=_0x556c86;this[_0xac0d89(0xeb)]&&(clearTimeout(this[_0xac0d89(0xeb)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x4b8b9d=_0x556c86;this[_0x4b8b9d(0x29e)][_0x4b8b9d(0x2d2)]({'content':this[_0x4b8b9d(0x2a8)]['t'](_0x4b8b9d(0x2ce)),'type':_0x2d4c29['Loading']});}[_0x556c86(0xe6)](_0x4cd121){const _0x331f76=_0x556c86;for(const _0x4278b0 of _0x4cd121){const {unitId:_0x52d429,sheetId:_0x11107b,range:_0x2b82f0}=_0x4278b0,_0x1b4885=this[_0x331f76(0x216)][_0x331f76(0x2fa)](_0x52d429);if(!_0x1b4885)continue;const _0x187507=_0x1b4885[_0x331f76(0xd4)](_0x11107b);if(!_0x187507)continue;const _0x35a8=_0x187507[_0x331f76(0x2c7)]();for(let _0x2a8c77=_0x2b82f0[_0x331f76(0x1f3)];_0x2a8c77<=_0x2b82f0[_0x331f76(0x17b)];_0x2a8c77++)for(let _0x5564cd=_0x2b82f0['startColumn'];_0x5564cd<=_0x2b82f0[_0x331f76(0x123)];_0x5564cd++){const _0x41f6ce=_0x35a8['getValue'](_0x2a8c77,_0x5564cd);if(_0x41f6ce&&(_0x528903(_0x41f6ce['f'])||_0x30545d(_0x41f6ce['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x5ba14a(_0x31486d)),P(0x1,_0x42c454),P(0x2,_0x43ce76),P(0x3,_0x5ba14a(_0x47eb61)),P(0x4,_0x25c1b3),P(0x5,_0x96d098),P(0x6,_0x5ba14a(_0x541e55))],Ie);var Nn=Object[_0x556c86(0x2c1)],bn=(_0x314eb8,_0x5d1b54,_0x1dc1d4,_0xb9fd5)=>{const _0x233343=_0x556c86;for(var _0x223c93=_0xb9fd5>0x1?void 0x0:_0xb9fd5?Nn(_0x5d1b54,_0x1dc1d4):_0x5d1b54,_0x33b224=_0x314eb8[_0x233343(0xce)]-0x1,_0x2838fa;_0x33b224>=0x0;_0x33b224--)(_0x2838fa=_0x314eb8[_0x33b224])&&(_0x223c93=_0x2838fa(_0x223c93)||_0x223c93);return _0x223c93;},Ue=(_0x53941a,_0x4a4cb3)=>(_0x3bab18,_0x278ca1)=>_0x4a4cb3(_0x3bab18,_0x278ca1,_0x53941a);let He=class extends _0x1a0691{constructor(_0x5f5ddc,_0x47c459,_0x29cff3){const _0x345b11=_0x556c86;super(),_(this,_0x345b11(0x2d8),new Map()),_(this,_0x345b11(0x160),new Map()),_(this,'_disabled',!0x1),(this[_0x345b11(0x2eb)]=_0x5f5ddc,this[_0x345b11(0x134)]=_0x47c459,this[_0x345b11(0x276)]=_0x29cff3);}[_0x556c86(0x13a)](){const _0x496246=_0x556c86;this[_0x496246(0x129)]=!0x0;}[_0x556c86(0x147)](){this['_disabled']=!0x1;}get[_0x556c86(0x12a)](){return this['_saveTaskMap'];}[_0x556c86(0x24b)](){const _0x344887=_0x556c86;this['exhaustSavingTask']()['then'](()=>super[_0x344887(0x24b)]());}async[_0x556c86(0xfd)](_0x3012d7){const _0x23d6f8=_0x556c86;return this[_0x23d6f8(0x129)]?null:this['_localStorageService'][_0x23d6f8(0x14f)](_0x48e2fe(_0x3012d7));}async[_0x556c86(0x18d)](_0x2917ea,_0x421831){const _0x4fbfe2=_0x556c86;return!!this[_0x4fbfe2(0x134)][_0x4fbfe2(0x1de)](_0x2917ea,_0x421831);}[_0x556c86(0xe8)](_0x27fc91,_0x202c9a,_0x520e3d,_0x20a1e7){const _0x23ed16=_0x556c86,_0x1d3bea=this[_0x23ed16(0x276)]['getCurrentRevOfUnit'](_0x27fc91);this[_0x23ed16(0x2d8)][_0x23ed16(0x1b3)](_0x27fc91,{'unitID':_0x27fc91,'type':_0x202c9a,'awaitingChangeset':_0x520e3d,'mutations':_0x20a1e7,'rev':_0x1d3bea}),this['_saveTaskMap'][_0x23ed16(0x1d7)](_0x27fc91)||this[_0x23ed16(0x262)](_0x27fc91);}[_0x556c86(0x262)](_0x27f79c){const _0x48ec93=_0x556c86,_0x5f5ddb=this[_0x48ec93(0x20c)]();_0x5f5ddb===0x0?this[_0x48ec93(0xdd)](_0x27f79c):this['_saveTaskMap'][_0x48ec93(0x1b3)](_0x27f79c,setTimeout(()=>this[_0x48ec93(0xdd)](_0x27f79c),_0x5f5ddb));}[_0x556c86(0x20c)](){const _0x44df03=_0x556c86;var _0x5062f6;return(_0x5062f6=this[_0x44df03(0x2eb)][_0x44df03(0x172)](_0x14dacf))!=null?_0x5062f6:_0x1afb57;}[_0x556c86(0xdd)](_0x1e6a9b){const _0xe40346=_0x556c86,_0x339b8f=this[_0xe40346(0x160)][_0xe40346(0x22e)](_0x1e6a9b);return _0x339b8f!==void 0x0&&window[_0xe40346(0x2a0)](_0x339b8f),this[_0xe40346(0x134)]['setItem'](_0x48e2fe(_0x1e6a9b),this[_0xe40346(0x2d8)][_0xe40346(0x22e)](_0x1e6a9b))[_0xe40346(0x178)](()=>this['_saveTaskMap']['delete'](_0x1e6a9b));}async[_0x556c86(0xf8)](){const _0x594bec=_0x556c86,_0x4c541a=[];this[_0x594bec(0x160)]['forEach']((_0x484e0d,_0x505ed9)=>{const _0xd4ade3=_0x594bec;window[_0xd4ade3(0x2a0)](_0x484e0d),_0x4c541a[_0xd4ade3(0xbd)](this[_0xd4ade3(0xdd)](_0x505ed9)[_0xd4ade3(0x178)](()=>{const _0x88d5fd=_0xd4ade3;this[_0x88d5fd(0x160)]['delete'](_0x505ed9);}));}),await Promise['all'](_0x4c541a);}};He=bn([Ue(0x0,_0x43ce76),Ue(0x1,_0x1df4c7),Ue(0x2,_0x5ba14a(_0x4cac6d))],He);class Ln extends _0x56e8a9{constructor(){const _0x33fca0=_0x556c86;super(),_(this,_0x33fca0(0xb3)),this[_0x33fca0(0xb3)]=_0x28ff6c(window,_0x33fca0(0x228))['pipe'](_0x7e2410(this[_0x33fca0(0xd9)]),_0x2e6a11(0x1),_0x18291f(void 0x0));}[_0x556c86(0x24f)](_0x53a030,_0x3fe854,_0x525282=!0x1){const _0x184b97=_0x556c86,_0x37ae54=new URL(window['location'][_0x184b97(0x268)]);_0x37ae54['searchParams'][_0x184b97(0x1b3)](_0x53a030,_0x3fe854),_0x525282?window['history'][_0x184b97(0x26e)]('','',_0x37ae54['toString']()):window[_0x184b97(0x1b2)]['pushState']('','',_0x37ae54['toString']());}['removeParam'](_0x6b318b,_0x8fea30=!0x1){const _0x4e7a6c=_0x556c86,_0xbfba1c=new URL(window[_0x4e7a6c(0x16b)]['href']);_0xbfba1c['searchParams'][_0x4e7a6c(0xa6)](_0x6b318b),_0x8fea30?window[_0x4e7a6c(0x1b2)][_0x4e7a6c(0x26e)]('','',_0xbfba1c[_0x4e7a6c(0x169)]()):window[_0x4e7a6c(0x1b2)][_0x4e7a6c(0x162)]('','',_0xbfba1c['toString']());}['getParam'](_0x35fea9){const _0x16c573=_0x556c86;var _0x5c5a09;return(_0x5c5a09=new URL(window['location'][_0x16c573(0x268)])['searchParams'][_0x16c573(0x22e)](_0x35fea9))!=null?_0x5c5a09:void 0x0;}}var Un=Object[_0x556c86(0x221)],Mn=Object[_0x556c86(0x2c1)],An=(_0xdcf59e,_0x2b0a04,_0x18c05b)=>_0x2b0a04 in _0xdcf59e?Un(_0xdcf59e,_0x2b0a04,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c05b}):_0xdcf59e[_0x2b0a04]=_0x18c05b,Pn=(_0x374a76,_0x3b2ac6,_0x205d34,_0x2a660b)=>{const _0x32079e=_0x556c86;for(var _0x2ffa98=_0x2a660b>0x1?void 0x0:_0x2a660b?Mn(_0x3b2ac6,_0x205d34):_0x3b2ac6,_0x1a71e4=_0x374a76[_0x32079e(0xce)]-0x1,_0x5b8b18;_0x1a71e4>=0x0;_0x1a71e4--)(_0x5b8b18=_0x374a76[_0x1a71e4])&&(_0x2ffa98=_0x5b8b18(_0x2ffa98)||_0x2ffa98);return _0x2ffa98;},Me=(_0x41379a,_0x5e1258)=>(_0x47cdfb,_0x5f2a0f)=>_0x5e1258(_0x47cdfb,_0x5f2a0f,_0x41379a),wn=(_0x2b2a57,_0xfafec7,_0x337e1d)=>An(_0x2b2a57,_0xfafec7+'',_0x337e1d);const yn=_0x556c86(0x237);let Ye=class extends _0x2fa95d{constructor(_0x2a7a54=_t,_0xe26d7a,_0x2e8d73,_0x17b659){const _0x3398bf=_0x556c86;super(),this[_0x3398bf(0x2d6)]=_0x2a7a54,this[_0x3398bf(0x27a)]=_0xe26d7a,this[_0x3398bf(0x15e)]=_0x2e8d73,this['_configService']=_0x17b659;const {..._0xdf511b}=_0x55936f({},_t,this[_0x3398bf(0x2d6)]);this[_0x3398bf(0x2eb)][_0x3398bf(0x2c4)](hn,_0xdf511b);}[_0x556c86(0x2d4)](){const _0x56df9f=_0x556c86;this[_0x56df9f(0x2c2)](),this['_initDependencies']();}[_0x556c86(0x283)](){const _0x3fadf6=_0x556c86;this[_0x3fadf6(0x2ed)]();}[_0x556c86(0x2c2)](){const _0x9d9466=_0x556c86;var _0x202318;const _0x23aae7=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x6f5a35,{'useClass':_0x4d8344}],[_0x4b4019,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x9d9466(0x2d6)][_0x9d9466(0x257)]&&_0x23aae7[_0x9d9466(0xbd)]([le]),_0x1852b6(this['_injector'],_0x56d5e5(_0x23aae7,(_0x202318=this[_0x9d9466(0x2d6)])==null?void 0x0:_0x202318['override']));}[_0x556c86(0x2ed)](){const _0x58cc3c=_0x556c86;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0x2cb033[_0x58cc3c(0x210)],[Fe])),this['disposeWithMe'](this[_0x58cc3c(0x27a)][_0x58cc3c(0x167)](_0x2cb033[_0x58cc3c(0xd7)],[ke]));}[_0x556c86(0x197)](){const _0x319175=_0x556c86;_0x3a0b88(this[_0x319175(0x15e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x319175(0x257)]&&_0x3a0b88(this['_injector'],[[le]]);}};wn(Ye,_0x556c86(0x280),yn),Ye=Pn([_0x3eb007(_0x5cf549),Me(0x1,_0x334053),Me(0x2,_0x5ba14a(_0x51e455)),Me(0x3,_0x43ce76)],Ye);var $n=Object[_0x556c86(0x2c1)],xn=(_0x52498a,_0x5d223f,_0x15003b,_0x5d6db8)=>{const _0x218265=_0x556c86;for(var _0x2c132d=_0x5d6db8>0x1?void 0x0:_0x5d6db8?$n(_0x5d223f,_0x15003b):_0x5d223f,_0x46102d=_0x52498a[_0x218265(0xce)]-0x1,_0x521fc7;_0x46102d>=0x0;_0x46102d--)(_0x521fc7=_0x52498a[_0x46102d])&&(_0x2c132d=_0x521fc7(_0x2c132d)||_0x2c132d);return _0x2c132d;},J=(_0x5337e6,_0x2ce1b8)=>(_0x25422e,_0x4afb85)=>_0x2ce1b8(_0x25422e,_0x4afb85,_0x5337e6);let ut=class extends _0x3f15f0{constructor(_0x8abf1,_0xcd97e1,_0x5bca9f,_0x4120ac,_0x40c59b){super(_0x8abf1,_0xcd97e1,_0x5bca9f,_0x4120ac,_0x40c59b);}async[_0x556c86(0x243)](_0x4b8b04){const _0x363490=_0x556c86,_0x27ede2=await this['_getSessionTicket'](),_0x392d16=this[_0x363490(0x1f0)](_0x4b8b04,_0x27ede2);return this[_0x363490(0x256)](_0x392d16);}['_createSocketURL'](_0x3d8cc7,_0x88cd55){const _0x5bf314=_0x556c86,_0x238ae5=typeof window>'u'?new URL(_0x3d8cc7):new URL(_0x3d8cc7,window[_0x5bf314(0x16b)]['origin']);_0x238ae5[_0x5bf314(0xf2)][_0x5bf314(0x1b3)]('sessionTicket',_0x88cd55);const _0x5047e9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5bf314(0x1bb)]);return _0x5047e9['get'](_0x5bf314(0x247))&&_0x238ae5[_0x5bf314(0xf2)]['set']('runId',_0x5047e9['get'](_0x5bf314(0x247))),_0x238ae5['toString']();}async[_0x556c86(0x1d5)](){const _0x14137f=_0x556c86;var _0x2cbe1,_0x411973,_0x422110;const _0x164b68=this['_configService'][_0x14137f(0x172)](_0x1bda1e),_0x31fddf=(_0x2cbe1=_0x164b68==null?void 0x0:_0x164b68[_0x14137f(0x21b)])!=null?_0x2cbe1:_0x32005d;return(_0x422110=(_0x411973=(await this[_0x14137f(0x21d)][_0x14137f(0x22e)](_0x31fddf,{'headers':{'Content-Type':_0x14137f(0x21c)}}))[_0x14137f(0x12b)])==null?void 0x0:_0x411973[_0x14137f(0xb2)])!=null?_0x422110:'';}};ut=xn([J(0x0,_0x5ba14a(_0x51e455)),J(0x1,_0x5ba14a(_0x47eb61)),J(0x2,_0x43ce76),J(0x3,_0x96d098),J(0x4,_0x4e35b7)],ut);var Bn=Object[_0x556c86(0x2c1)],Fn=(_0x3d3026,_0x457d03,_0x11f963,_0x208a42)=>{for(var _0x15065e=_0x208a42>0x1?void 0x0:_0x208a42?Bn(_0x457d03,_0x11f963):_0x457d03,_0x205aeb=_0x3d3026['length']-0x1,_0x4d8c48;_0x205aeb>=0x0;_0x205aeb--)(_0x4d8c48=_0x3d3026[_0x205aeb])&&(_0x15065e=_0x4d8c48(_0x15065e)||_0x15065e);return _0x15065e;},Ae=(_0x28934a,_0x3015f1)=>(_0x54ac5d,_0x224d0)=>_0x3015f1(_0x54ac5d,_0x224d0,_0x28934a);let dt=class extends _0x1a0691{constructor(_0x30e4f7,_0x2e254a,_0x4c7408){const _0x3862b5=_0x556c86;super(),this[_0x3862b5(0xe0)]=_0x30e4f7,this['_httpService']=_0x2e254a,this[_0x3862b5(0x2eb)]=_0x4c7408;}async['runOnServer'](_0x1f63b4,_0x50b043,_0x17516a,..._0x42e10c){const _0x352e59=_0x556c86;var _0x308bcc,_0xe5ce0a,_0x344f91,_0x4c8156;const _0x24cae4=this['_instanceService'][_0x352e59(0x128)]();if(!_0x24cae4)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x14fabd=((_0x308bcc=this['_configService']['getConfig'](_0x4f4ac7))!=null?_0x308bcc:_0x22031e)+'/'+_0x1f63b4+_0x352e59(0x150)+_0x50b043,_0x3dd281=new URL(window[_0x352e59(0x16b)]['href']),_0x39d561={'scriptId':_0x1f63b4,'runId':(_0xe5ce0a=_0x3dd281[_0x352e59(0xf2)][_0x352e59(0x22e)]('runId'))!=null?_0xe5ce0a:'','function':_0x50b043,'unitId':_0x24cae4[_0x352e59(0x2cf)](),'argsOfFunction':JSON[_0x352e59(0x106)](_0x42e10c),'invokeId':(_0x344f91=_0x17516a['invokeId'])!=null?_0x344f91:'','executionId':(_0x4c8156=_0x17516a['executionId'])!=null?_0x4c8156:''};try{const _0x5f25e0=await this[_0x352e59(0x21d)][_0x352e59(0x1f8)](_0x14fabd,{'body':_0x39d561});return _0x5f25e0[_0x352e59(0x12b)][_0x352e59(0x1cc)]&&_0x5f25e0['body']['error']['code']!==Z['OK']?'Failed':_0x5f25e0[_0x352e59(0x12b)][_0x352e59(0x27c)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x25c1b3),Ae(0x1,_0x5ba14a(_0x47eb61)),Ae(0x2,_0x43ce76)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x1a0691{constructor(){const _0xa3e8ea=_0x556c86;super(),_(this,'_id',_0x3eba8f()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xa3e8ea(0xb5),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xa3e8ea(0x2a2),new Map()),this[_0xa3e8ea(0x104)]();}[_0x556c86(0x24b)](){const _0x24998a=_0x556c86;super[_0x24998a(0x24b)](),this[_0x24998a(0xde)][_0x24998a(0x2aa)]((_0x3d23c8,_0x2765e0)=>this[_0x24998a(0x203)](_0x2765e0)),this[_0x24998a(0xb5)]&&window[_0x24998a(0x29a)](this[_0x24998a(0xb5)]);}[_0x556c86(0x2f3)](_0xbec05e){const _0x22a176=_0x556c86;return this[_0x22a176(0x1c3)](_0xbec05e)[_0x22a176(0xcc)](_0x1b7b13());}[_0x556c86(0x1eb)](_0x39a042){const _0x2e1430=_0x556c86;this[_0x2e1430(0xc8)][_0x2e1430(0x19d)]===0x0&&this[_0x2e1430(0x201)](),this[_0x2e1430(0xc8)]['add'](_0x39a042),this[_0x2e1430(0xbb)]({'type':0x0,'memberID':this[_0x2e1430(0x22a)],'unitIDs':[_0x39a042],'isForwarded':!0x1});}['disposeUnit'](_0x191800){const _0x4ada6b=_0x556c86;this[_0x4ada6b(0xc8)][_0x4ada6b(0xa6)](_0x191800),this[_0x4ada6b(0xc8)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x4ada6b(0x29a)](this['_heartbeatTimer']);}[_0x556c86(0x104)](){const _0x5b7729=_0x556c86;this['disposeWithMe'](_0x1f9e88(_0x28ff6c(window,_0x5b7729(0x239))['subscribe'](_0x300f3e=>{const _0x1ec9d6=_0x5b7729;if(_0x300f3e[_0x1ec9d6(0x236)]!==It||!_0x300f3e[_0x1ec9d6(0x19a)])return;const _0x4818d4=JSON[_0x1ec9d6(0x22c)](_0x300f3e[_0x1ec9d6(0x19a)]);this[_0x1ec9d6(0x1e8)](_0x4818d4);}))),window[_0x5b7729(0x13c)](_0x5b7729(0x225),()=>this[_0x5b7729(0xbb)]({'type':0x1,'memberID':this[_0x5b7729(0x22a)],'unitIDs':Array['from'](this[_0x5b7729(0xc8)])}));}[_0x556c86(0x1e8)](_0xea8e94){const _0x866deb=_0x556c86;switch(_0xea8e94[_0x866deb(0x2d9)]){case 0x0:this['_handleJoinEvent'](_0xea8e94);break;case 0x1:this[_0x866deb(0x11a)](_0xea8e94);break;case 0x2:this[_0x866deb(0x2df)](_0xea8e94);break;}}[_0x556c86(0x1d8)](_0x3d3ade){const _0x4551e2=_0x556c86,{unitIDs:_0x595deb,memberID:_0x5889ef,isForwarded:_0x29f0fb}=_0x3d3ade;_0x595deb[_0x4551e2(0x2aa)](_0x45bb6f=>{const _0xb86081=_0x4551e2;if(!_0x29f0fb&&this[_0xb86081(0x233)][_0xb86081(0x1d7)](_0x45bb6f)&&this[_0xb86081(0x1c3)](_0x45bb6f)[_0xb86081(0x1a1)](_0x3d8217[_0xb86081(0x278)]),!this[_0xb86081(0x233)][_0xb86081(0x1d7)](_0x45bb6f)||!this['_unitOnClients'][_0xb86081(0x22e)](_0x45bb6f)['has'](_0x5889ef)){const _0x34e19f=this[_0xb86081(0x233)][_0xb86081(0x22e)](_0x45bb6f)||new Set();_0x34e19f[_0xb86081(0x148)](_0x5889ef),this[_0xb86081(0x233)][_0xb86081(0x1b3)](_0x45bb6f,_0x34e19f),this['_scheduleClearOtherTimer'](_0x5889ef);}}),_0x29f0fb||this[_0x4551e2(0xbb)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4551e2(0xc8)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x528f33){const _0x6a5cc7=_0x556c86;this[_0x6a5cc7(0x203)](_0x528f33);const _0x27331c=window[_0x6a5cc7(0x1e4)](()=>{this['_unitOnClients']['forEach'](_0x4d2ad4=>{const _0x1ab878=_0x19a6;_0x4d2ad4[_0x1ab878(0xa6)](_0x528f33);});},St*0x2);this[_0x6a5cc7(0xde)][_0x6a5cc7(0x1b3)](_0x528f33,_0x27331c);}['_removeClearOtherTimer'](_0x34559e){const _0x208fce=_0x556c86;if(this['_clearOtherTimers'][_0x208fce(0x1d7)](_0x34559e)){const _0x42c3d1=this['_clearOtherTimers']['get'](_0x34559e);_0x42c3d1&&window[_0x208fce(0x2a0)](_0x42c3d1),this[_0x208fce(0xde)][_0x208fce(0x1b3)](_0x34559e,null);}}['_handleLeaveEvent'](_0x27d0c8){const _0x304b13=_0x556c86,{memberID:_0x32ca96,unitIDs:_0x222ff6}=_0x27d0c8;_0x222ff6[_0x304b13(0x2aa)](_0x15fd77=>{const _0x136b90=_0x304b13;var _0x3ae7b2;const _0x225fc5=this[_0x136b90(0x233)][_0x136b90(0x22e)](_0x15fd77);_0x225fc5&&(_0x225fc5[_0x136b90(0xa6)](_0x32ca96),(_0x3ae7b2=this[_0x136b90(0x1c3)](_0x15fd77))==null||_0x3ae7b2[_0x136b90(0x1a1)](_0x225fc5[_0x136b90(0x19d)]===0x0?_0x3d8217['NO_OTHER_CLIENTS_EDITING']:_0x3d8217[_0x136b90(0x278)]));}),this[_0x304b13(0x203)](_0x32ca96);}[_0x556c86(0x2df)](_0x19e4f5){const _0x24b492=_0x556c86;this[_0x24b492(0x2ec)](_0x19e4f5[_0x24b492(0x185)]);}['_send'](_0x3dae8a){const _0x340d5a=_0x556c86;localStorage[_0x340d5a(0x1de)](It,JSON['stringify'](_0x3dae8a));}['_scheduleHeartbeat'](){const _0x2a5086=_0x556c86;this[_0x2a5086(0xb5)]=window['setInterval'](()=>{const _0x1272fa=_0x2a5086;this['_send']({'type':0x2,'memberID':this[_0x1272fa(0x22a)]});},St);}[_0x556c86(0x1c3)](_0x607ed4){const _0x5e423c=_0x556c86;return this[_0x5e423c(0x2a2)][_0x5e423c(0x1d7)](_0x607ed4)||this[_0x5e423c(0x2a2)][_0x5e423c(0x1b3)](_0x607ed4,new _0x27272c(_0x3d8217[_0x5e423c(0x2f6)])),this[_0x5e423c(0x2a2)]['get'](_0x607ed4);}}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 _0x4db2cd=_0x24e1;(function(_0x29917b,_0x54d684){const _0x5f19f5=_0x24e1,_0x6ab948=_0x29917b();while(!![]){try{const _0x9042e8=parseInt(_0x5f19f5(0x280))/0x1*(-parseInt(_0x5f19f5(0x21e))/0x2)+-parseInt(_0x5f19f5(0x235))/0x3*(-parseInt(_0x5f19f5(0x2f6))/0x4)+-parseInt(_0x5f19f5(0x22f))/0x5+-parseInt(_0x5f19f5(0x22b))/0x6+-parseInt(_0x5f19f5(0x1a5))/0x7+parseInt(_0x5f19f5(0x29e))/0x8*(parseInt(_0x5f19f5(0x21b))/0x9)+parseInt(_0x5f19f5(0x149))/0xa;if(_0x9042e8===_0x54d684)break;else _0x6ab948['push'](_0x6ab948['shift']());}catch(_0xe3446a){_0x6ab948['push'](_0x6ab948['shift']());}}}(_0x28b2,0x50689));var Yt=Object[_0x4db2cd(0x300)],Wt=(_0x454e61,_0x5df3a5,_0x3b7e49)=>_0x5df3a5 in _0x454e61?Yt(_0x454e61,_0x5df3a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b7e49}):_0x454e61[_0x5df3a5]=_0x3b7e49,_=(_0x2f5993,_0x345285,_0x194235)=>Wt(_0x2f5993,typeof _0x345285!=_0x4db2cd(0x1dd)?_0x345285+'':_0x345285,_0x194235);import{jsx as _0x564d60,jsxs as _0x5bae91}from'react/jsx-runtime';import{CollaborationStatus as _0x47cd4a,CollaborationSessionService as _0x1e0b19,CollaborationController as _0x17bb07,DataLoaderService as _0x26bc8d,MemberService as _0x271b80,SessionStatus as _0x51cbc0,ILocalCacheService as _0x50d5d8,CollaborationUIEventService as _0x387bf7,CollaborationUIEventId as _0x720ca7,DocCollaborationEntity as _0x5ec973,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3e0c86,getLocalCacheKey as _0x5a6170,LOCAL_CACHE_INTERVAL as _0x49b43e,LOCAL_CACHE_INTERVAL_KEY as _0x1752c6,UniverCollaborationClientPlugin as _0x57ce4b,CollaborationSocketService as _0x11765d,DEFAULT_WS_SESSION_TICKET_URL as _0x509bd3,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x11b96f,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5afe50,UnitStatus as _0x5c39db}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x1a5fa4,IUniverInstanceService as _0x26672b,Inject as _0x1769b1,Injector as _0x174327,Disposable as _0x3432ff,createIdentifier as _0x4e3d8d,ILogService as _0x5cccfe,ICommandService as _0x57c9c6,Optional as _0x3e15d3,RxDisposable as _0x505f3c,Workbook as _0x3fac70,DOC_RANGE_TYPE as _0xd2e4f7,debounce as _0x27071f,Rectangle as _0x51056e,DisposableCollection as _0x497f38,toDisposable as _0x53db76,UniverInstanceType as _0x29eb03,generateRandomId as _0x23023b,COLORS as _0x5cc002,ColorKit as _0x55375a,ThemeService as _0x3235b5,fromEventSubject as _0x1d6621,Tools as _0x45a645,CommandType as _0x485374,IConfigService as _0x1da30a,CanceledError as _0x396bd6,isFormulaString as _0x30d206,isFormulaId as _0x187138,ILocalStorageService as _0x32527d,DependentOn as _0x3591f2,Plugin as _0x553922,merge as _0x41fb94,registerDependencies as _0x104b2f,mergeOverrideWithDependencies as _0x3e996a,touchDependencies as _0x3a91ad}from'@univerjs/core';import{useObservable as _0x3ca9b0,useDependency as _0x3058d1,IUIPartsService as _0x57c499,BuiltInUIPart as _0x325bc8,connectInjector as _0x4c4c21,IBeforeCloseService as _0x381c74,IMessageService as _0x2671aa,INotificationService as _0x267698}from'@univerjs/ui';import{BehaviorSubject as _0x5b52bd,switchMap as _0x2ea7f3,of as _0x38b0d0,takeUntil as _0x3c083f,debounceTime as _0x1bef04,Subject as _0x2d8eb9,filter as _0xd4d104,merge as _0x14cb3a,combineLatest as _0x3238c1,fromEvent as _0x11377c,shareReplay as _0x2cad0c,mapTo as _0x26cfd0,distinctUntilChanged as _0x133c00}from'rxjs';import{Tooltip as _0x154e53,clsx as _0x17493e,MessageType as _0x17c4da}from'@univerjs/design';import{useRef as _0x534b57,createElement as _0x38d254,forwardRef as _0x2a6880,useCallback as _0x496471}from'react';import{IRemoteInstanceService as _0x3c8bb0}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x564351,RefRangeService as _0x3415de,SetSelectionsOperation as _0x2ba205,SheetsSelectionsService as _0x5de39c,EffectRefRangId as _0x5b8e14,handleIRemoveRow as _0x27495b,handleIRemoveCol as _0xaaaa60,handleMoveRange as _0xcfe1b6,handleInsertRow as _0x40d056,handleInsertRangeMoveRight as _0x6ce994,handleInsertRangeMoveDown as _0x1b8822,handleInsertCol as _0x5b3e6d,handleDeleteRangeMoveUp as _0x5d270d,handleDeleteRangeMoveLeft as _0x1402b9,runRefRangeMutations as _0x299c0a}from'@univerjs/sheets';import{Shape as _0x670fe9,Rect as _0x1b4bc0,getColor as _0x7b9f07,RegularPolygon as _0x440b30,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x45ce46,Vector2 as _0x103b90,SHEET_VIEWPORT_KEY as _0x5ee039,IRenderManagerService as _0x556bf2}from'@univerjs/engine-render';import{HTTPService as _0x45d6eb,ISocketService as _0x2288a6,WebSocketService as _0x42b98f}from'@univerjs/network';import{IDocClipboardService as _0x3162d6,NodePositionConvertToCursor as _0x2b4b61,NodePositionConvertToRectRange as _0x4389c5,TEXT_RANGE_LAYER_INDEX as _0x55cd92,SetDocZoomRatioOperation as _0x43b4fb,DocIMEInputManagerService as _0x498e9e,DocStateChangeManagerService as _0x53b4e2}from'@univerjs/docs-ui';import{IImageIoService as _0x2a1cce}from'@univerjs/drawing';import{ITransformService as _0x29c2d7,CollaborationEvent as _0x4b0752,isTransformMutationFailure as _0x1543e0,isTransformMutationsWithChangesetSuccess as _0x359420,RevisionService as _0x2b64b6,ISnapshotServerService as _0x57aba9}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1df9c4,RichTextEditingMutation as _0x39eac8,DocSelectionManagerService as _0x1b2212,DocSkeletonManagerService as _0x4a66d6}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x51ae56,serializeRangeWithSheet as _0x50c591,FormulaExecuteStageType as _0x1ec3a3,FormulaExecutedStateType as _0x2d6caa,SetFormulaCalculationStartMutation as _0x1b8d33,SetFormulaCalculationNotificationMutation as _0x491036}from'@univerjs/engine-formula';import{map as _0x392195,filter as _0x2699c8,throttleTime as _0x239387,takeUntil as _0x3710c5,switchMap as _0x51fb17}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1124fa,getCoordByCell as _0x5c0b12,getSheetObject as _0xd2d082}from'@univerjs/sheets-ui';function Ge({ref:_0xa3eecf,..._0x4eeb3a}){const _0x365063=_0x4db2cd,{icon:_0x52a061,id:_0x16add3,className:_0x1850e9,extend:_0x5c1d73,..._0x6d6c63}=_0x4eeb3a,_0x2eb187=(_0x365063(0x2e3)+_0x16add3+'\x20'+(_0x1850e9||''))[_0x365063(0x1a2)](),_0x51047f=_0x534b57('_'+vi());return At(_0x52a061,''+_0x16add3,{'defIds':_0x52a061[_0x365063(0x2be)],'idSuffix':_0x51047f['current']},{'ref':_0xa3eecf,'className':_0x2eb187,..._0x6d6c63},_0x5c1d73);}function At(_0x4a5e82,_0x2ad457,_0x262b9d,_0x3142dd,_0x518cc5){const _0x2111db=_0x4db2cd;return _0x38d254(_0x4a5e82[_0x2111db(0x209)],{'key':_0x2ad457,...gi(_0x4a5e82,_0x262b9d,_0x518cc5),..._0x3142dd},(Ei(_0x4a5e82,_0x262b9d)[_0x2111db(0x20c)]||[])['map']((_0x6df7bf,_0x28b1d2)=>At(_0x6df7bf,_0x2ad457+'-'+_0x4a5e82[_0x2111db(0x209)]+'-'+_0x28b1d2,_0x262b9d,void 0x0,_0x518cc5)));}function gi(_0x208ee4,_0x553ab9,_0x39988f){const _0x51f92e=_0x4db2cd,_0x3d6163={..._0x208ee4[_0x51f92e(0x2b8)]};_0x39988f!=null&&_0x39988f[_0x51f92e(0x199)]&&_0x3d6163[_0x51f92e(0x30b)]===_0x51f92e(0x199)&&(_0x3d6163['fill']=_0x39988f[_0x51f92e(0x199)]),_0x208ee4[_0x51f92e(0x209)]==='mask'&&_0x3d6163['id']&&(_0x3d6163['id']=_0x3d6163['id']+_0x553ab9[_0x51f92e(0x26a)]),Object[_0x51f92e(0x1ac)](_0x3d6163)[_0x51f92e(0x18c)](([_0x9b095f,_0x48d4ad])=>{const _0x1d91d9=_0x51f92e;_0x9b095f==='mask'&&typeof _0x48d4ad==_0x1d91d9(0x2a9)&&(_0x3d6163[_0x9b095f]=_0x48d4ad[_0x1d91d9(0x2d7)](/url\(#(.*)\)/,_0x1d91d9(0x1ba)+_0x553ab9[_0x1d91d9(0x26a)]+')'));});const {defIds:_0x489f04}=_0x553ab9;return!_0x489f04||_0x489f04[_0x51f92e(0x148)]===0x0||(_0x208ee4['tag']===_0x51f92e(0x1f4)&&_0x3d6163[_0x51f92e(0x353)]&&(_0x3d6163[_0x51f92e(0x353)]=_0x3d6163[_0x51f92e(0x353)]+_0x553ab9['idSuffix']),Object[_0x51f92e(0x1ac)](_0x3d6163)['forEach'](([_0x499ff1,_0x25b1a0])=>{const _0xabd73=_0x51f92e;typeof _0x25b1a0=='string'&&(_0x3d6163[_0x499ff1]=_0x25b1a0[_0xabd73(0x2d7)](/url\(#(.*)\)/,_0xabd73(0x1ba)+_0x553ab9[_0xabd73(0x26a)]+')'));})),_0x3d6163;}function Ei(_0x4c6deb,_0x263152){const _0xb20bb4=_0x4db2cd;var _0x4918d0;const {defIds:_0x4a95fb}=_0x263152;return!_0x4a95fb||_0x4a95fb[_0xb20bb4(0x148)]===0x0?_0x4c6deb:_0x4c6deb[_0xb20bb4(0x209)]===_0xb20bb4(0x2b3)&&((_0x4918d0=_0x4c6deb[_0xb20bb4(0x20c)])!=null&&_0x4918d0[_0xb20bb4(0x148)])?{..._0x4c6deb,'children':_0x4c6deb[_0xb20bb4(0x20c)][_0xb20bb4(0x197)](_0xf25d25=>typeof _0xf25d25[_0xb20bb4(0x2b8)]['id']=='string'&&_0x4a95fb&&_0x4a95fb[_0xb20bb4(0x338)](_0xf25d25[_0xb20bb4(0x2b8)]['id'])?{..._0xf25d25,'attrs':{..._0xf25d25[_0xb20bb4(0x2b8)],'id':_0xf25d25[_0xb20bb4(0x2b8)]['id']+_0x263152['idSuffix']}}:_0xf25d25)}:_0x4c6deb;}function vi(){const _0x10ed9b=_0x4db2cd;return Math[_0x10ed9b(0x23f)]()[_0x10ed9b(0x18b)](0x24)[_0x10ed9b(0x34e)](0x2,0x8);}Ge[_0x4db2cd(0x157)]=_0x4db2cd(0x2da);const pi={'tag':_0x4db2cd(0x230),'attrs':{'xmlns':_0x4db2cd(0x19c),'fill':_0x4db2cd(0x175),'viewBox':_0x4db2cd(0x36d),'width':_0x4db2cd(0x385),'height':_0x4db2cd(0x385)},'children':[{'tag':'g','attrs':{'clipPath':_0x4db2cd(0x24a)},'children':[{'tag':_0x4db2cd(0x27a),'attrs':{'stroke':_0x4db2cd(0x34a),'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':_0x4db2cd(0x2ea),'strokeLinejoin':_0x4db2cd(0x2ea),'strokeWidth':1.2}}]},{'tag':_0x4db2cd(0x2b3),'attrs':{},'children':[{'tag':_0x4db2cd(0x2de),'attrs':{'id':_0x4db2cd(0x2d9)},'children':[{'tag':_0x4db2cd(0x27a),'attrs':{'fill':_0x4db2cd(0x1d5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4db2cd(0x2d9)]},Pt=_0x2a6880(function(_0x489fc1,_0x2c3c48){const _0x1c1068=_0x4db2cd;return _0x38d254(Ge,Object[_0x1c1068(0x303)]({},_0x489fc1,{'id':'off-line-icon','ref':_0x2c3c48,'icon':pi}));});Pt[_0x4db2cd(0x157)]=_0x4db2cd(0x182);const Oi={'tag':_0x4db2cd(0x230),'attrs':{'xmlns':_0x4db2cd(0x19c),'fill':_0x4db2cd(0x175),'viewBox':_0x4db2cd(0x17a),'width':_0x4db2cd(0x385),'height':_0x4db2cd(0x385)},'children':[{'tag':'g','attrs':{'clipPath':_0x4db2cd(0x282)},'children':[{'tag':_0x4db2cd(0x27a),'attrs':{'stroke':_0x4db2cd(0x34a),'d':_0x4db2cd(0x2ca),'strokeLinecap':_0x4db2cd(0x2ea),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4db2cd(0x2b3),'attrs':{},'children':[{'tag':_0x4db2cd(0x2de),'attrs':{'id':_0x4db2cd(0x1f2)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x4db2cd(0x1f2)]},wt=_0x2a6880(function(_0x254466,_0x806a69){const _0x301387=_0x4db2cd;return _0x38d254(Ge,Object[_0x301387(0x303)]({},_0x254466,{'id':_0x301387(0x35b),'ref':_0x806a69,'icon':Oi}));});wt[_0x4db2cd(0x157)]=_0x4db2cd(0x348);function Ti(_0x31687e){const _0x137417=_0x4db2cd;switch(_0x31687e){case _0x47cd4a[_0x137417(0x38b)]:return _0x137417(0x340);case _0x47cd4a[_0x137417(0x274)]:return'collabStatus.conflict';case _0x47cd4a['FETCH_MISS']:return _0x137417(0x1c2);case _0x47cd4a[_0x137417(0x16c)]:return _0x137417(0x14e);case _0x47cd4a['AWAITING']:case _0x47cd4a['AWAITING_WITH_PENDING']:return _0x137417(0x146);case _0x47cd4a[_0x137417(0x37e)]:case _0x47cd4a['PENDING']:return _0x137417(0x33b);}}function Ci(_0x283040){const _0xa330e7=_0x4db2cd,{status$:_0x5a0312}=_0x283040,_0xd337eb=_0x3ca9b0(_0x5a0312,_0x47cd4a[_0xa330e7(0x16c)]),_0x1d39d7=_0x3058d1(_0x1a5fa4),_0x224091=_0x3058d1(_0x1e0b19),_0xdfa49d=_0xd337eb!==_0x47cd4a[_0xa330e7(0x38b)],_0x223df5=_0x1d39d7['t'](Ti(_0xd337eb)),_0x56f875=_0xdfa49d?_0x564d60(wt,{}):_0x564d60(Pt,{}),_0x8e7161=_0x496471(()=>{const _0x41c06e=_0xa330e7;_0xdfa49d||_0x224091[_0x41c06e(0x210)]();},[_0xdfa49d,_0x224091]);function _0x54847b(){const _0x4be643=_0xa330e7;return _0x5bae91(_0x4be643(0x309),{'className':_0x4be643(0x226),'onClick':_0x8e7161,'children':[_0x564d60(_0x4be643(0x309),{'className':_0x17493e('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xdfa49d,'univer-text-red-500':!_0xdfa49d}),'children':_0x56f875}),_0x564d60(_0x4be643(0x309),{'className':_0x4be643(0x15e),'children':_0x223df5})]});}return _0xdfa49d?_0x54847b():_0x564d60(_0x154e53,{'title':_0x1d39d7['t']('collab-client.tooltip.reconnect'),'children':_0x54847b()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x9af567,_0x2f044e,_0x18b607,_0x2e2031)=>{const _0x383833=_0x4db2cd;for(var _0x1f7b19=_0x2e2031>0x1?void 0x0:_0x2e2031?Ri(_0x2f044e,_0x18b607):_0x2f044e,_0x31d537=_0x9af567[_0x383833(0x148)]-0x1,_0x400db2;_0x31d537>=0x0;_0x31d537--)(_0x400db2=_0x9af567[_0x31d537])&&(_0x1f7b19=_0x400db2(_0x1f7b19)||_0x1f7b19);return _0x1f7b19;},se=(_0x17cee5,_0x5e1a10)=>(_0xf5eac2,_0x55686d)=>_0x5e1a10(_0xf5eac2,_0x55686d,_0x17cee5);let ae=class extends _0x3432ff{constructor(_0x52f89b,_0x2b8677,_0x5cd513,_0x2f3256){const _0x212da8=_0x4db2cd;super(),_(this,_0x212da8(0x17d),new _0x5b52bd(_0x47cd4a[_0x212da8(0x16c)])),(this[_0x212da8(0x168)]=_0x52f89b,this['_injector']=_0x2b8677,this['_collaborationController']=_0x5cd513,this[_0x212da8(0x342)]=_0x2f3256,this[_0x212da8(0x145)](),this[_0x212da8(0x17e)]());}[_0x4db2cd(0x17e)](){const _0x2ce1b5=_0x4db2cd;this['disposeWithMe'](this['_univerInstanceService'][_0x2ce1b5(0x246)]['pipe'](_0x2ea7f3(()=>{const _0x45d82b=_0x2ce1b5,_0x5dbb69=this['_univerInstanceService'][_0x45d82b(0x32d)]();return _0x5dbb69?this[_0x45d82b(0x1ca)][_0x45d82b(0x2a1)](_0x5dbb69['getUnitId']()):_0x38b0d0(null);}),_0x2ea7f3(_0x1b46b3=>_0x1b46b3?_0x1b46b3[_0x2ce1b5(0x295)]:_0x38b0d0(_0x47cd4a[_0x2ce1b5(0x16c)])))[_0x2ce1b5(0x278)](_0x40bf0c=>{const _0x21a73a=_0x2ce1b5;this['_status$'][_0x21a73a(0x2dc)](_0x40bf0c);}));}[_0x4db2cd(0x145)](){const _0x240805=_0x4db2cd;this[_0x240805(0x172)](this['_uiPartsService'][_0x240805(0x1fa)](_0x325bc8[_0x240805(0x2a8)],()=>_0x4c4c21(Ni({'status$':this[_0x240805(0x17d)][_0x240805(0x244)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x26672b),se(0x1,_0x1769b1(_0x174327)),se(0x2,_0x1769b1(_0x17bb07)),se(0x3,_0x57c499)],ae);function Ni(_0x13c360){const {status$:_0x12df7b}=_0x13c360;return function(){return _0x564d60(Ci,{'status$':_0x12df7b});};}const yt=_0x4e3d8d(_0x4db2cd(0x1bb));var bi=Object[_0x4db2cd(0x2ab)],Li=(_0x54fed9,_0x39c98a,_0x3a60ff,_0x44ca58)=>{for(var _0x51dd20=_0x44ca58>0x1?void 0x0:_0x44ca58?bi(_0x39c98a,_0x3a60ff):_0x39c98a,_0x32bfde=_0x54fed9['length']-0x1,_0x3c6e7a;_0x32bfde>=0x0;_0x32bfde--)(_0x3c6e7a=_0x54fed9[_0x32bfde])&&(_0x51dd20=_0x3c6e7a(_0x51dd20)||_0x51dd20);return _0x51dd20;},K=(_0x4dc521,_0xe55a4c)=>(_0x3f8f8e,_0x5af0a8)=>_0xe55a4c(_0x3f8f8e,_0x5af0a8,_0x4dc521);let ce=class extends _0x505f3c{constructor(_0x97a3a3,_0x1f4825,_0x8d4ccb,_0x20df57,_0x44cf9f){const _0x54a9d9=_0x4db2cd;super(),this[_0x54a9d9(0x2c6)]=_0x97a3a3,this[_0x54a9d9(0x140)]=_0x1f4825,this[_0x54a9d9(0x27d)]=_0x8d4ccb,this['_dataLoaderService']=_0x20df57,_0x44cf9f?_0x44cf9f==null||_0x44cf9f[_0x54a9d9(0x365)]()[_0x54a9d9(0x2e9)](()=>this['_init']()):(this[_0x54a9d9(0x140)][_0x54a9d9(0x252)](_0x54a9d9(0x2f9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x4db2cd(0x2c0)](){const _0x3dea09=_0x4db2cd,_0x20ec63=this['_urlService'][_0x3dea09(0x2f1)](_0x3dea09(0x2fc)),_0x10a785=this['_urlService'][_0x3dea09(0x2f1)](_0x3dea09(0x326)),_0x232671=this[_0x3dea09(0x2c6)][_0x3dea09(0x2f1)](_0x3dea09(0x325));if(!_0x20ec63||!_0x10a785){this[_0x3dea09(0x140)]['debug'](_0x3dea09(0x2f9),_0x3dea09(0x167));return;}const _0x55efe2=await this[_0x3dea09(0x151)][_0x3dea09(0x15f)](_0x20ec63,Number(_0x10a785),_0x232671);_0x55efe2&&_0x55efe2 instanceof _0x3fac70&&this['_setupSubUnitSync'](_0x55efe2);}async[_0x4db2cd(0x2c2)](_0x1375d5){const _0x2ffab1=_0x4db2cd;await this[_0x2ffab1(0x25c)](_0x1375d5),_0x1375d5[_0x2ffab1(0x191)]['pipe'](_0x3c083f(this[_0x2ffab1(0x250)]))[_0x2ffab1(0x278)](_0x20280e=>{const _0x7d71da=_0x2ffab1;_0x20280e&&this[_0x7d71da(0x28b)](_0x20280e);}),this[_0x2ffab1(0x2c6)][_0x2ffab1(0x36c)][_0x2ffab1(0x1c9)](_0x3c083f(this[_0x2ffab1(0x250)]))[_0x2ffab1(0x278)](()=>this[_0x2ffab1(0x25c)](_0x1375d5));}['_updateURLWithCurrentState'](_0x245a25,_0x5a342c=!0x1){const _0x4f5ee9=_0x4db2cd,_0x14f10d=this[_0x4f5ee9(0x2c6)][_0x4f5ee9(0x2f1)](_0x4f5ee9(0x325));_0x245a25[_0x4f5ee9(0x29b)]()!==_0x14f10d&&this[_0x4f5ee9(0x2c6)][_0x4f5ee9(0x2c5)](_0x4f5ee9(0x325),_0x245a25[_0x4f5ee9(0x29b)](),_0x5a342c);}async['_updateSubUnitFromURLParams'](_0x530474){const _0x14c573=_0x4db2cd;var _0x4b00c9;const _0x42550e=this[_0x14c573(0x2c6)]['getParam'](_0x14c573(0x325));if(!_0x42550e||!_0x530474['getSheetBySheetId'](_0x42550e)){const _0x144cc3=_0x530474[_0x14c573(0x2c4)]()[0x0],_0x3841c7=_0x530474[_0x14c573(0x319)](_0x144cc3);if(!_0x3841c7)return;this[_0x14c573(0x28b)](_0x3841c7,!0x0),await this['_commandService'][_0x14c573(0x286)](_0x564351['id'],{'unitId':_0x530474['getUnitId'](),'subUnitId':_0x144cc3});return;}((_0x4b00c9=_0x530474[_0x14c573(0x349)]())==null?void 0x0:_0x4b00c9[_0x14c573(0x29b)]())!==_0x42550e&&await this['_commandService'][_0x14c573(0x286)](_0x564351['id'],{'unitId':_0x530474[_0x14c573(0x1ee)](),'subUnitId':_0x42550e});}};ce=Li([K(0x0,yt),K(0x1,_0x5cccfe),K(0x2,_0x57c9c6),K(0x3,_0x1769b1(_0x26bc8d)),K(0x4,_0x3e15d3(_0x3c8bb0))],ce);var Ui=Object[_0x4db2cd(0x2ab)],Mi=(_0x5985ab,_0x4600fc,_0x42233e,_0x40308a)=>{const _0xb173d3=_0x4db2cd;for(var _0x928f6f=_0x40308a>0x1?void 0x0:_0x40308a?Ui(_0x4600fc,_0x42233e):_0x4600fc,_0x23899d=_0x5985ab[_0xb173d3(0x148)]-0x1,_0x1d687c;_0x23899d>=0x0;_0x23899d--)(_0x1d687c=_0x5985ab[_0x23899d])&&(_0x928f6f=_0x1d687c(_0x928f6f)||_0x928f6f);return _0x928f6f;},rt=(_0xfabf61,_0x24b885)=>(_0x22cea8,_0x3a3332)=>_0x24b885(_0x22cea8,_0x3a3332,_0xfabf61);let $e=class extends _0x505f3c{constructor(_0xfe660d,_0x2f4770){const _0x2b3511=_0x4db2cd;super(),this[_0x2b3511(0x169)]=_0xfe660d,this[_0x2b3511(0x33f)]=_0x2f4770,this['_init']();}[_0x4db2cd(0x2c0)](){const _0x524a26=_0x4db2cd,_0x3393c5=this;this[_0x524a26(0x172)](this[_0x524a26(0x169)][_0x524a26(0x1b1)]({'onBeforePasteImage':async _0x238585=>{const _0x3db36a=_0x524a26,_0x1730b8=await _0x3393c5['_imageIoService'][_0x3db36a(0x1aa)](_0x238585);return _0x1730b8?{'source':_0x1730b8[_0x3db36a(0x2fb)],'imageSourceType':_0x1730b8[_0x3db36a(0x1a9)]}:null;}}));}};$e=Mi([rt(0x0,_0x3162d6),rt(0x1,_0x2a1cce)],$e);const ot=[_0x4db2cd(0x268),_0x4db2cd(0x1b8),'green.600',_0x4db2cd(0x18a),'blue.400',_0x4db2cd(0x259)];class Ke extends _0x3432ff{constructor(){const _0x5dd874=_0x4db2cd;super(...arguments),_(this,_0x5dd874(0x360),new Map()),_(this,_0x5dd874(0x25d),0x0);}[_0x4db2cd(0x2e7)](_0x320dc3){const _0x43d12d=_0x4db2cd;if(this['_assignedColors'][_0x43d12d(0x22e)](_0x320dc3))return this['_assignedColors'][_0x43d12d(0x31a)](_0x320dc3);const _0x108ed5=ot[this[_0x43d12d(0x25d)]];return this[_0x43d12d(0x25d)]=(this[_0x43d12d(0x25d)]+0x1)%ot[_0x43d12d(0x148)],this[_0x43d12d(0x360)]['set'](_0x320dc3,_0x108ed5),_0x108ed5;}}function $t(_0x24fb94){const _0xb81cac=_0x4db2cd;let _0x106386='';for(const _0x5bce15 of _0x24fb94){const {startOffset:_0x4eb11a,endOffset:_0x1bc2b8,isActive:_0x453b6b,rangeType:_0x54c738,segmentId:_0x4e2dd0,segmentPage:_0x4c5b7c}=_0x5bce15;_0x106386[_0xb81cac(0x148)]&&(_0x106386+=','),_0x106386+=_0x4eb11a+':'+_0x1bc2b8+':'+(_0x453b6b?'1':'0')+':'+_0x54c738+':'+_0x4e2dd0+':'+_0x4c5b7c;}return _0x106386;}function Ai(_0xe5f1e1){const _0x2d4439=_0x4db2cd,_0x39d9a9=_0xe5f1e1['split'](','),_0x4739e5=[];for(const _0x69ba74 of _0x39d9a9){const [_0x5534cd,_0x3f7c70,_0x111a82,_0x4511ea,_0xce966c,_0x2fc850]=_0x69ba74[_0x2d4439(0x34d)](':');_0x4739e5[_0x2d4439(0x1b0)]({'startOffset':Number(_0x5534cd),'endOffset':Number(_0x3f7c70),'collapsed':_0x5534cd===_0x3f7c70,'isActive':_0x111a82==='1','rangeType':_0x4511ea===_0xd2e4f7['TEXT']?_0xd2e4f7[_0x2d4439(0x2e0)]:_0xd2e4f7[_0x2d4439(0x23d)],'segmentId':typeof _0xce966c==_0x2d4439(0x2a9)?String(_0xce966c):'','segmentPage':Number(_0x2fc850!=null?_0x2fc850:-0x1)});}return _0x4739e5['some'](_0x55932d=>_0x55932d[_0x2d4439(0x322)])||(_0x4739e5[0x0][_0x2d4439(0x322)]=!0x0),_0x4739e5;}class ze extends _0x505f3c{constructor(){const _0x500e6e=_0x4db2cd;super(...arguments),_(this,_0x500e6e(0x293),new _0x5b52bd(null)),_(this,_0x500e6e(0x2bc),this[_0x500e6e(0x293)][_0x500e6e(0x244)]());}['syncEditingCollabCursor'](_0x2bca11){const _0x15c250=_0x4db2cd,{unitID:_0x41164c,memberID:_0x284167,textRanges:_0x111c24}=_0x2bca11,_0x1d700a=$t(_0x111c24);if(_0x1d700a==='')return;const _0x4eb260={'unitID':_0x41164c,'memberID':_0x284167,'selection':_0x1d700a};this[_0x15c250(0x293)]['next'](_0x4eb260);}}var Pi=Object[_0x4db2cd(0x2ab)],wi=(_0x1faa28,_0x9694d6,_0x2e2754,_0x5f21f9)=>{const _0x598d42=_0x4db2cd;for(var _0x184734=_0x5f21f9>0x1?void 0x0:_0x5f21f9?Pi(_0x9694d6,_0x2e2754):_0x9694d6,_0x349bfe=_0x1faa28[_0x598d42(0x148)]-0x1,_0x2b7cbc;_0x349bfe>=0x0;_0x349bfe--)(_0x2b7cbc=_0x1faa28[_0x349bfe])&&(_0x184734=_0x2b7cbc(_0x184734)||_0x184734);return _0x184734;},A=(_0x185325,_0x5e85cf)=>(_0x1ef0e8,_0x5bdcf4)=>_0x5e85cf(_0x1ef0e8,_0x5bdcf4,_0x185325);const yi=0x12c,$i=0x64;let xe=class extends _0x505f3c{constructor(_0x4f2f4d,_0x38d17e,_0x37d722,_0x3eab22,_0x3f3cb2,_0x205db2,_0x436e3f,_0x131c2c,_0xe971a){const _0x57359d=_0x4db2cd;super(),_(this,_0x57359d(0x25f),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5b52bd(new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x57359d(0x223),new _0x5b52bd([])),_(this,_0x57359d(0x2b4),this['_roomMembers$'][_0x57359d(0x1c9)](_0x1bef04(yi))),_(this,_0x57359d(0x14a),_0x27071f(_0x366e63=>{const _0x314252=_0x57359d,_0x102659={'eventID':_0x4b0752[_0x314252(0x27b)],'data':{'unitID':this['unitID'],'memberID':this[_0x314252(0x28a)][_0x314252(0x248)](),'selection':$t(_0x366e63)}};this['_session'][_0x314252(0x152)](_0x102659,this[_0x314252(0x2d5)]);},$i)),(this[_0x57359d(0x2d5)]=_0x4f2f4d,this[_0x57359d(0x28a)]=_0x38d17e,this[_0x57359d(0x363)]=_0x37d722,this[_0x57359d(0x216)]=_0x3eab22,this[_0x57359d(0x302)]=_0x3f3cb2,this[_0x57359d(0x315)]=_0x205db2,this['_transformService']=_0x436e3f,this[_0x57359d(0x168)]=_0x131c2c,this['_commandService']=_0xe971a);}get[_0x4db2cd(0x25a)](){const _0x5b53b3=_0x4db2cd;return this[_0x5b53b3(0x33c)][_0x5b53b3(0x264)]();}get[_0x4db2cd(0x1df)](){const _0xc5b56d=_0x4db2cd;return this[_0xc5b56d(0x223)]['getValue']();}['dispose'](){const _0x4982c2=_0x4db2cd;super[_0x4982c2(0x183)](),this[_0x4982c2(0x33c)][_0x4982c2(0x2dc)](new Map()),this[_0x4982c2(0x33c)][_0x4982c2(0x30e)](),this[_0x4982c2(0x223)][_0x4982c2(0x2dc)]([]),this[_0x4982c2(0x223)][_0x4982c2(0x30e)]();}[_0x4db2cd(0x367)](){const _0x47bef8=_0x4db2cd;this[_0x47bef8(0x2c0)]||(this[_0x47bef8(0x2c0)]=!0x0,this[_0x47bef8(0x28a)]['sessionStatus$'][_0x47bef8(0x1c9)](_0x3c083f(this['dispose$']))['subscribe'](_0x2e14a2=>{const _0x4d0124=_0x47bef8;_0x2e14a2===_0x51cbc0[_0x4d0124(0x29d)]?this[_0x4d0124(0x1c5)]():this[_0x4d0124(0x313)]();}),this[_0x47bef8(0x28a)]['event$']['pipe'](_0x3c083f(this[_0x47bef8(0x250)]))['subscribe'](_0x20cc74=>{const _0x1b7489=_0x47bef8,_0x1edf7c=_0x20cc74[_0x1b7489(0x21a)];_0x1edf7c===_0x4b0752[_0x1b7489(0x27b)]&&this[_0x1b7489(0x1e7)](_0x20cc74),_0x1edf7c===_0x4b0752[_0x1b7489(0x2a5)]&&this[_0x1b7489(0x217)](_0x20cc74);}),this[_0x47bef8(0x172)](this[_0x47bef8(0x27d)][_0x47bef8(0x356)](_0x11002a=>{const _0x24b2df=_0x47bef8,_0x174944=_0x11002a[_0x24b2df(0x17c)];_0x174944!=null&&this[_0x24b2df(0x25f)]&&_0x11002a['id']===_0x1df9c4['id']&&_0x174944[_0x24b2df(0x239)]===this[_0x24b2df(0x2d5)]&&_0x174944['isEditing']===!0x1&&_0x174944['ranges'][_0x24b2df(0x148)]>0x0&&this[_0x24b2df(0x14a)](_0x174944['ranges']);})),this['_syncEditingCollabCursorService'][_0x47bef8(0x2bc)][_0x47bef8(0x1c9)](_0x3c083f(this[_0x47bef8(0x250)]))[_0x47bef8(0x278)](_0x2ecc27=>{const _0x266792=_0x47bef8;if((_0x2ecc27==null?void 0x0:_0x2ecc27[_0x266792(0x2d5)])!==this['unitID'])return;const _0xbd1cb3={'eventID':_0x4b0752[_0x266792(0x27b)],'data':_0x2ecc27};this[_0x266792(0x1e7)](_0xbd1cb3);}),this[_0x47bef8(0x172)](this[_0x47bef8(0x27d)][_0x47bef8(0x356)](_0x27aec9=>{const _0x10caed=_0x47bef8;if(_0x27aec9[_0x10caed(0x17c)]==null)return;const _0x777d1f=_0x27aec9[_0x10caed(0x17c)];if(_0x27aec9['id']!==_0x39eac8['id']||_0x777d1f[_0x10caed(0x239)]!==this[_0x10caed(0x2d5)])return;const _0x306ce4={'id':'doc.mutation.rich-text-editing','params':_0x777d1f},_0x33d8ef=this[_0x10caed(0x25a)];for(const [_0x1e602c,_0x5f20d5]of _0x33d8ef){const _0x33a079={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x10caed(0x2d5)],'actions':null,'textRanges':_0x5f20d5['ranges']}},_0x40969c=this['_transformService'][_0x10caed(0x2ac)](_0x306ce4,_0x33a079,!0x1);if(_0x1543e0(_0x40969c))throw _0x40969c['error'];_0x33d8ef[_0x10caed(0x225)](_0x1e602c,{..._0x5f20d5,'ranges':_0x40969c[_0x10caed(0x1ed)][_0x10caed(0x17c)]['textRanges']});}queueMicrotask(()=>{const _0xedd27c=_0x10caed;this[_0xedd27c(0x33c)][_0xedd27c(0x2dc)](_0x33d8ef);});})));}[_0x4db2cd(0x1e7)](_0x5e5e1c){const _0x859359=_0x4db2cd;var _0x4466ea,_0x5f3646;const {memberID:_0x2c1cae,selection:_0x16ab9a}=_0x5e5e1c[_0x859359(0x178)],_0x594226=Ai(_0x16ab9a),_0xf64374=(_0x5f3646=(_0x4466ea=this[_0x859359(0x302)][_0x859359(0x1de)](this[_0x859359(0x2d5)],_0x2c1cae))==null?void 0x0:_0x4466ea[_0x859359(0x220)])!=null?_0x5f3646:_0x859359(0x1af),_0xf4efab={'color':this['_colorAssignService'][_0x859359(0x2e7)](_0x2c1cae),'name':_0xf64374,'ranges':_0x594226},_0x4b05b7=this[_0x859359(0x25a)];_0x4b05b7[_0x859359(0x225)](_0x2c1cae,_0xf4efab),this[_0x859359(0x33c)]['next'](_0x4b05b7);}[_0x4db2cd(0x217)](_0x4326b0){const _0x1eea54=_0x4db2cd,{memberID:_0x428f82}=_0x4326b0[_0x1eea54(0x178)],_0x5340b0=this['cursorInfo'];_0x5340b0[_0x1eea54(0x358)](_0x428f82),this[_0x1eea54(0x33c)][_0x1eea54(0x2dc)](_0x5340b0);}[_0x4db2cd(0x1c5)](){const _0x5805e6=_0x4db2cd;var _0x3c1f36;if(this[_0x5805e6(0x25f)]=!0x0,((_0x3c1f36=this[_0x5805e6(0x168)]['getFocusedUnit']())==null?void 0x0:_0x3c1f36[_0x5805e6(0x1ee)]())!==this['unitID'])return;const _0x188734=this[_0x5805e6(0x363)][_0x5805e6(0x31a)](_0x1b2212)[_0x5805e6(0x255)]();Array[_0x5805e6(0x1e4)](_0x188734)&&_0x188734[_0x5805e6(0x148)]>0x0&&this[_0x5805e6(0x14a)](_0x188734);}[_0x4db2cd(0x313)](){const _0x2b4e5b=_0x4db2cd;this[_0x2b4e5b(0x25f)]=!0x1;}};xe=wi([A(0x2,_0x1769b1(_0x174327)),A(0x3,_0x1769b1(Ke)),A(0x4,_0x1769b1(_0x271b80)),A(0x5,_0x1769b1(ze)),A(0x6,_0x29c2d7),A(0x7,_0x26672b),A(0x8,_0x57c9c6)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1cada9,_0xad8907,_0xd281c4,_0x109b14)=>{const _0x465a7b=_0x4db2cd;for(var _0x6d876=_0x109b14>0x1?void 0x0:_0x109b14?xi(_0xad8907,_0xd281c4):_0xad8907,_0x339e9f=_0x1cada9[_0x465a7b(0x148)]-0x1,_0x47ab17;_0x339e9f>=0x0;_0x339e9f--)(_0x47ab17=_0x1cada9[_0x339e9f])&&(_0x6d876=_0x47ab17(_0x6d876)||_0x6d876);return _0x6d876;},B=(_0x4ba2e4,_0x4fe925)=>(_0x9c8175,_0x39add9)=>_0x4fe925(_0x9c8175,_0x39add9,_0x4ba2e4);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x84dcf4=[],_0x4e3d2c=!0x1;return _0x35d8a8=>{const _0x236429=_0x24e1;_0x84dcf4[_0x236429(0x1b0)](_0x35d8a8),_0x4e3d2c||(_0x4e3d2c=!0x0,setTimeout(()=>{_0x84dcf4['forEach'](_0x30abdf=>_0x30abdf()),_0x84dcf4=[],_0x4e3d2c=!0x1;}));};};function _0x28b2(){const _0x2fa7e7=['getActiveRange','_initEvent','_messageService','_handleHover','_beforeCloseService','getSheetId','transformMutationsWithChangeset','ONLINE','32fHAtpP','transformByState','getRelativeToViewportCoord','getCollabEntity$','startsWith','ENTITLE_DUP_SUBSCRIPTION','beforeCommandExecuted','USERS_LEAVE','selection','message','HEADER_MENU','string','onRendered','getOwnPropertyDescriptor','transformMutation','REDEMPTION_INVALID_CODE','getUniverSheetInstance','_initEntityListener','START_CALCULATION','transformStateCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','defs','roomMembers$','_backgroundColor','redoState','searchParams','attrs','transformRemoteChangeset','YUUMI_ALL_TABLES_IS_INVALID','INVITE_CODE_REQUIRED','collabCursorState$','beginPath','defIds','actions','_init','from','_setupSubUnitSync','LOGIN_TOKEN_PROCESSING_FAILED','getUnhiddenWorksheets','setParam','_urlService','...','application/json','maxFormulaLimit','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','_clearPolling','_setFormulaLimitStatus','?taskId=','_monkeyPatchLogService','setShapeProps','_unitStatus','USER_IS_ANONYMOUS','APPLY_DUPLICATED','YUUMI_CONNECTOR_URL_NOT_FOUND','_draw','unitID','_startCalculationLimit','replace','OTHER_CLIENT_EDITING','off-line-icon_clip0_910_343','UniverIcon','_applyCommand','next','_docTransformStateCacheService','clipPath','registerBeforeClose','TEXT','_lastResponseTimestamp','limitInfo','univerjs-icon\x20univerjs-icon-','deepClone','_cursors','error','assignAColorForMemberID','APPLY_NON_SEQUENTIAL_REVISION','then','round','getColorFromTheme','getUndoRedoMutationParamsCache','_collaborationUIEventService','disposeUnit','color','_initCommandExecutedListener','getParam','DeleteRangeMoveLeftCommandId','closePath','AUTHORIZE_CODE_ILLEGAL','_document','132GEzXXd','clearTimeout','LICENSE_EXPORT_SIZE_EXCEEDED','[CollaborationDataLoaderController]','saveOfflineData','source','unit','getformulaLimitStatusUrl','addObjects','_clearOtherTimers','defineProperty','registerRenderModule','_memberService','assign','SNAPSHOT_HAS_BEEN_REMOVED','_localeService','_heartbeatTimer','ENTITLE_COUPON_USED_UP','key','div','currentSkeleton$','fill','_collabSessionService','TOO_MANY_REQUESTS','complete','SNAPSHOT_INVALID_SNAPSHOT','_handleJoinEvent','ACTIVE_UNIT_EVENT_CHANNEL','reason','_toggleOffline','_cachedData','_syncEditingCollabCursorService','_anchor','transformSelections','ENTITLE_COUPON_EXPIRED','getSheetBySheetId','get','_labelPosition','size','stack','MoveRangeCommandId','_setupBeforeClosingHandler','_entityInit$','_getAnchorBounding','isActive','CURRENT_STATUS_CANNOT_OPERATE','_onRefRangeChange','subunit','type','_uploadLog','getRangePointData','storage','ENTITLE_CHAT_LIMIT_EXCEED','labelPosition','CHANGESET_REVISION_CONFILICT','getFocusedUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','_checkCalculationAvailable','ENTITLE_INVALID_COUPON_CODE','REDEMPTION_CODE_HAS_BEEN_CREATED','NO_OTHER_CLIENTS_EDITING','_drawRectRange','_hideTimer','_transformPreviousActiveRange','ENSURE_SNAPSHOT_EXECUTION','values','includes','newValue','parseInt','collabStatus.synced','_cursorInfo$','UNDEFINED','setAlpha','_imageIoService','collabStatus.offline','_memberID','_uiPartsService','stage','_selfUnitIDs','onPointerLeave$','permission.content','getCellMatrix','OnLineIcon','getActiveSheet','currentColor','\x20at\x20','_transformHistoryAndStateStack','split','substring','_renderManagerService','textRanges','socket$','OTHER_CLIENTS_EDITING','xlink:href','getUnitStatus$','ENTITLE_REPORT_LIMIT_EXCEED','onCommandExecuted','collaboration.offline-data-not-saved','delete','USER_NOT_FOUND','sessionTicket','on-line-icon','startFormulaLimitUrl','getCurrentUnitForType','startRow','USER_NOT_INVITED_CODE','_assignedColors','/universer-api/license/formula/limit/start','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_injector','arc','whenReady','transform','init','setTimeout','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_scheduleClearOtherTimer','/run/','urlChange$','0\x200\x2016\x2016','COMPLETION_FINISHED','_hover','height','YUUMI_UNABLE_LOAD_URL','max','loadOfflineData','endRow','getMergeData','clearInterval','_saveCache','moveTo','removeParam','currentUsage','_docSkeleton','InsertColCommandId','lineno','SYNCED','collaboration.closeRoom','_anchorDot','docStateChange$','Warning','setUndoRedoMutationParamsCache','rgba(255,\x20255,\x20255,\x200.01)','1em','_initWindowErrorListener','setConfig','formula.calculation.waiting','_handleHeartbeatEvent','findNodePositionByCharIndex','OFFLINE','m1Prime','_logService','_docSyncEditingCollabCursorService','subUnitId','mutations','session.will-retry','_initStatusComponent','collabStatus.syncing','getConfig','length','12080180KQVgYt','_updateLocalCursor','_transformUndoRedoStack','evenodd','/universer-api/license/formula/limit/status','collabStatus.notCollab','_removeCollabCursors','_releaseCalculationLimit','_dataLoaderService','send','find','LOGIN_FAILED','MOBILE_VERIFY_CODE_MISMATCH','catch','displayName','getCurrentSelections','currentTheme$','measureText','CONNECTOR_DATA_TOO_LARGE','_docSkeletonManagerService','origin','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','loadUnit','APPLY_REJECT','addHandlerCallback','_config','_hasFormulaInDirtyRanges','_docTransformIMECacheService','PAYMENT_CHANNEL_NOT_SUPPORT','memberID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_univerInstanceService','_docClipboardService','black','_name','NOT_COLLAB','addEventListener','history','replaceState','registerRefRange','getCurrentRevOfUnit','disposeWithMe','_startSheetCollabCursor','formula.calculation.started','none','[Window\x20Error]:\x20','_transformService','data','YUUMI_URL_COL_OUT_OF_RANGE','0\x200\x2017\x2016','UNIVER_SHEET','params','_status$','_initStatusListener','fillRule','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_ensureSubject','OffLineIcon','dispose','cursorInfo$','getCellPositionByOffset','_entities','_unitOnClients','getVpScrollXYInfoByPosToVp','Loading','red.300','toString','forEach','YUUMI_RATE_OVER_LIMIT','_cursorShapes','_scene','getTypeOfUnitDisposed$','activeSheet$','runOnServer','unsubscribe','onMouseMove','totalFormulasToCalculate','_handleLeaveEvent','map','sheetId','colorChannel1','ENTITLE_INSUFFICIENT_QUOTA','onLocalMutation','http://www.w3.org/2000/svg','removeEventListener','_configService','restore','_getMergeRange','/universer-api/license/formula/limit/done','trim','triggerDblclick','doc.mutation.rich-text-editing','2465897zrmbNB','_instanceService','_shapes','_docStateChangeManagerService','imageSourceType','saveImage','_showGuardMessage','entries','getSkeleton','getTypeOfUnitAdded$','Unknown\x20user','push','addClipboardHook','entityInit$','_lastPointer','REDEMPTION_CODE_NOT_STARTED','save','EMAIL_HAS_BEEN_BOUND','_send','jiqing.500','_getFormulaLimitStatus','url(#$1','uni.network.url-service','_localStorageService','show','LICENSE_IMPORT_SIZE_EXCEEDED','_taskIds','getAncestorScale','endColumn','collabStatus.fetchMiss','add','stringify','_toggleOnline','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','startColumn','_localCacheService','pipe','_collaborationController','functionsExecutedState','_httpService','runId','Error','pushState','_docTransformSelectionsService','_registerRenderDependencies','UNIVER_DOC','onTransformChange$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','white','resize','text','_maxFormulaLimit','contains','permission.title','_context','subscribeEvent','symbol','getMember','roomMembers','REDEMPTION_CODE_INACTIVE','_initResize','saveTaskMap','now','isArray','getCurrent','ticket','_onCursorUpdate','undoState','_revisionService','drawWith','_initDependencies','shift','m2Prime','getUnitId','collab-text-range-','_sheetSkeletonManagerService','_render','on-line-icon_clip0_910_349','UNAUTHENTICATED','use','REDEMPTION_CODE_FULLY_REDEEMED','MUTATION','RemoveRowCommandId','enableFrontendLog','unshift','registerComponent','min','onPointerMove$','MOBILE_HAS_BEEN_BOUND','DATA_SOURCE_TOO_LARGE','override','WECHAT_HAS_BEEN_BOUND','setItem','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_registerDependencies','JOIN_ROOM_FAILED','fillStyle','_id','collaboration-client-ui.config','_hovered','tag','code','_themeService','children','/universer-api/frontend/logs','getRenderById','INVALID_INVITE_CODE','reconnect','NOT_FOUND','ENTITLE_CAN_NOT_BUY_LOWER_OTP','stageInfo','INTERNAL_ERROR','LICENSE_MAX_UNITS_EXCEEDED','_colorAssignService','_onCursorDelete','PERMISSION_DENIED','_currentUsage','eventID','1094814PQMwWF','location','_notificationService','45190cmsubV','row','name','toRgbString','YUUMI_NO_CUBOID_FOR_QUESTION','_roomMembers$','transformIMECache','set','univer-flex\x20univer-items-center','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','editingUnit','getOffsetConfig','getStateCache','1558674EsdfcJ','_scheduleSaving','href','has','1746095PhxzNl','svg','updateOfflineData','hide','InsertRowCommandId','_pollingInterval','18735YkitIf','_doCreateSocket','invokeId','_saveTaskMap','unitId','fillText','addObject','_getScale','RECT','_refreshCollabCursors','random','_disabled','_color','exhaustSavingTask','_initUserListener','asObservable','SUCCESS','focused$','_collabCursorController','getMemberID','InsertRangeMoveDownCommandId','url(#off-line-icon_clip0_910_343)','body','makeDirty','_startDocCollabCursor','UNRECOGNIZED','width','dispose$','getCollabCursors$','debug','wsSessionTicketUrl','_cursor','getDocRanges','_collaborationSessionService','dirtyRanges','post','yellow.400','cursorInfo','font','_updateSubUnitFromURLParams','_colorIndex','EMAIL_VERIFY_CODE_MISMATCH','_online','_textBubble','_createSocketURL','_getSessionTicket','setInterval','getValue','INVALID_ARGUMENT','_scheduleHeartbeat','LICENSE_DISTRO_REJECTED','purple.300','YUUMI_ASYNCIO_CANCELLED','idSuffix','_getSheetObject','REDEMPTION_USER_NOT_ELIGIBLE','ENTITLE_NEED_BILLING_ADDRESS','top','_updateCollabCursors','event$','createInstance','RemoveColCommandId','_initCommandInterceptor','CONFLICT','with','flatMap','lineTo','subscribe','column','path','UPDATE_CURSOR','range','_commandService','_handleEvent','ERROR_AGAIN','27pUyoin','_refRangeService','url(#on-line-icon_clip0_910_349)','ALREADY_EXISTS','bottom','APPLY_REVISION_CONFILICT','executeCommand','onStarting','VIEW_MAIN','#FFF','_session','_updateURLWithCurrentState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','INVITE_CODE_HAS_BEEN_UES','_drawTextRange','_drawAnchor','_range','PY_RUNTIME_SCRIPT_ERROR','_eventUnsubscribe','_collabCursorState$','YUUMI_AI_RUN_FAILED','status$'];_0x28b2=function(){return _0x2fa7e7;};return _0x28b2();}let Be=class extends _0x505f3c{constructor(_0x56b99b,_0x2786e3,_0xf48b11,_0x48d1e6,_0x35880d,_0x24e287,_0x14c2ea,_0x599681){const _0x123c36=_0x4db2cd;super(),_(this,_0x123c36(0x25f),!0x1),_(this,'_init',!0x1),_(this,_0x123c36(0x33c),new _0x5b52bd(new Map())),_(this,_0x123c36(0x184),this['_cursorInfo$'][_0x123c36(0x244)]()),_(this,_0x123c36(0x223),new _0x5b52bd([])),_(this,'roomMembers$',this['_roomMembers$'][_0x123c36(0x1c9)](_0x1bef04(Fi))),_(this,_0x123c36(0x14a),_0x27071f((_0x97cf32,_0x4e658b)=>{const _0xe7f644=_0x123c36,_0x1b79f7={'eventID':_0x4b0752[_0xe7f644(0x27b)],'data':{'unitID':this['unitID'],'memberID':this[_0xe7f644(0x28a)][_0xe7f644(0x248)](),'selection':_0x50c591(_0x97cf32,_0x4e658b[_0xe7f644(0x27c)])}};this[_0xe7f644(0x28a)]['send'](_0x1b79f7,this['unitID']);},ki)),(this[_0x123c36(0x2d5)]=_0x56b99b,this[_0x123c36(0x28a)]=_0x2786e3,this['_injector']=_0xf48b11,this['_colorAssignService']=_0x48d1e6,this[_0x123c36(0x302)]=_0x35880d,this['_univerInstanceService']=_0x24e287,this[_0x123c36(0x27d)]=_0x14c2ea,this[_0x123c36(0x281)]=_0x599681);}get[_0x4db2cd(0x25a)](){const _0xfab561=_0x4db2cd;return this['_cursorInfo$'][_0xfab561(0x264)]();}get['roomMembers'](){const _0x4ecf01=_0x4db2cd;return this[_0x4ecf01(0x223)][_0x4ecf01(0x264)]();}['dispose'](){const _0x40f305=_0x4db2cd;super[_0x40f305(0x183)](),this[_0x40f305(0x33c)][_0x40f305(0x2dc)](new Map()),this[_0x40f305(0x33c)][_0x40f305(0x30e)](),this['_roomMembers$'][_0x40f305(0x2dc)]([]),this['_roomMembers$'][_0x40f305(0x30e)]();}['init'](){const _0xbf0e20=_0x4db2cd;this[_0xbf0e20(0x2c0)]||(this[_0xbf0e20(0x2c0)]=!0x0,this[_0xbf0e20(0x28a)]['sessionStatus$']['pipe'](_0x3c083f(this[_0xbf0e20(0x250)]))['subscribe'](_0x4baea6=>{const _0x34ad1c=_0xbf0e20;_0x4baea6===_0x51cbc0[_0x34ad1c(0x29d)]?this[_0x34ad1c(0x1c5)]():this[_0x34ad1c(0x313)]();}),this['_session']['event$']['pipe'](_0x3c083f(this[_0xbf0e20(0x250)]))[_0xbf0e20(0x278)](_0x3ed893=>{const _0x43f73e=_0xbf0e20,_0x51850a=_0x3ed893[_0x43f73e(0x21a)];_0x51850a===_0x4b0752[_0x43f73e(0x27b)]&&this['_onCursorUpdate'](_0x3ed893),_0x51850a===_0x4b0752[_0x43f73e(0x2a5)]&&this[_0x43f73e(0x217)](_0x3ed893);}),this[_0xbf0e20(0x324)](),this[_0xbf0e20(0x172)](this[_0xbf0e20(0x27d)][_0xbf0e20(0x356)](_0x591ed7=>{const _0x13167a=_0xbf0e20;if(this[_0x13167a(0x25f)]&&_0x591ed7['id']===_0x2ba205['id']&&_0x591ed7[_0x13167a(0x17c)][_0x13167a(0x239)]===this[_0x13167a(0x2d5)]){const _0x5a68ff=_0x591ed7[_0x13167a(0x17c)];this['_updateLocalCursor'](_0x5a68ff[_0x13167a(0x142)],_0x5a68ff['selections'][0x0]);}})));}[_0x4db2cd(0x1e7)](_0x2fde0f){const _0x2affac=_0x4db2cd;var _0x312016,_0x87b7cf;const {memberID:_0x2a67a4,selection:_0x135015}=_0x2fde0f[_0x2affac(0x178)],{sheetName:_0x23c19a,range:_0x3d2690}=_0x51ae56(_0x135015),_0x53cb8d={'name':(_0x87b7cf=(_0x312016=this[_0x2affac(0x302)]['getMember'](this[_0x2affac(0x2d5)],_0x2a67a4))==null?void 0x0:_0x312016[_0x2affac(0x220)])!=null?_0x87b7cf:_0x2affac(0x1af),'range':this[_0x2affac(0x1a0)](_0x23c19a,_0x3d2690),'sheetID':_0x23c19a,'color':this[_0x2affac(0x216)][_0x2affac(0x2e7)](_0x2a67a4),'selection':_0x135015},_0x38926b=this[_0x2affac(0x25a)];_0x38926b[_0x2affac(0x225)](_0x2a67a4,_0x53cb8d),this[_0x2affac(0x33c)][_0x2affac(0x2dc)](_0x38926b);}[_0x4db2cd(0x217)](_0x3332ea){const _0x13a4f0=_0x4db2cd,{memberID:_0x2ba457}=_0x3332ea['data'],_0x2e521d=this[_0x13a4f0(0x25a)];_0x2e521d[_0x13a4f0(0x358)](_0x2ba457),this['_cursorInfo$'][_0x13a4f0(0x2dc)](_0x2e521d);}['_getMergeRange'](_0x1abf8b,_0x356095){const _0xcf681=_0x4db2cd;var _0x1dfb8d,_0x39b172;const _0x1055f8=(_0x39b172=(_0x1dfb8d=this['_univerInstanceService'][_0xcf681(0x2ae)](this[_0xcf681(0x2d5)]))==null?void 0x0:_0x1dfb8d[_0xcf681(0x319)](_0x1abf8b))==null?void 0x0:_0x39b172[_0xcf681(0x375)]();return(_0x1055f8==null?void 0x0:_0x1055f8[_0xcf681(0x153)](_0x296d4d=>_0x51056e[_0xcf681(0x1d9)](_0x296d4d,_0x356095)))||_0x356095;}[_0x4db2cd(0x324)](){const _0x5db534=_0x4db2cd,_0xad285e=new _0x497f38(),_0x26e3e4=Hi(),_0xb9e02d=()=>{const _0x2377a8=_0x24e1;_0xad285e['dispose']();const _0x34d043=(_0x335c0c,_0x204c8e,_0xcc2ec8,_0x4af77f)=>{const _0x480da5=_0x24e1;let _0xffeb1c=[];switch(_0x335c0c['id']){case _0x5b8e14[_0x480da5(0x2f2)]:{_0xffeb1c=_0x1402b9(_0x335c0c,_0x4af77f);break;}case _0x5b8e14['DeleteRangeMoveUpCommandId']:{_0xffeb1c=_0x5d270d(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x37c)]:{_0xffeb1c=_0x5b3e6d(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x249)]:{_0xffeb1c=_0x1b8822(_0x335c0c,_0x4af77f);break;}case _0x5b8e14['InsertRangeMoveRightCommandId']:{_0xffeb1c=_0x6ce994(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x233)]:{_0xffeb1c=_0x40d056(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x31e)]:{_0xffeb1c=_0xcfe1b6(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x272)]:{_0xffeb1c=_0xaaaa60(_0x335c0c,_0x4af77f);break;}case _0x5b8e14[_0x480da5(0x1f7)]:{_0xffeb1c=_0x27495b(_0x335c0c,_0x4af77f);break;}}const _0x5c99a4=_0x299c0a(_0xffeb1c,_0x4af77f),_0x8fd037=this[_0x480da5(0x25a)]['get'](_0x204c8e);if(_0x8fd037&&_0x5c99a4){const _0x475e12={..._0x8fd037,'range':_0x5c99a4};this['cursorInfo'][_0x480da5(0x225)](_0x204c8e,_0x475e12),_0x26e3e4(()=>{const _0x1829d8=_0x480da5,_0x4947f0=this[_0x1829d8(0x281)]['registerRefRange'](_0x5c99a4,_0x4c92b9=>(_0x4947f0['dispose'](),_0x34d043(_0x4c92b9,_0x204c8e,_0xcc2ec8,_0x5c99a4)));_0xad285e[_0x1829d8(0x1c3)](_0x4947f0);});}return{'redos':[],'undos':[]};};this[_0x2377a8(0x25a)][_0x2377a8(0x18c)]((_0x56b335,_0x2f7f73)=>{const _0x32a90d=_0x2377a8,{range:_0x1b9b6b,sheetID:_0x4fdc2a}=_0x56b335,_0x2522b6=this[_0x32a90d(0x281)][_0x32a90d(0x170)](_0x1b9b6b,_0x4899e9=>(_0x2522b6[_0x32a90d(0x183)](),_0x34d043(_0x4899e9,_0x2f7f73,_0x4fdc2a,_0x1b9b6b)));_0xad285e[_0x32a90d(0x1c3)](_0x2522b6);});};this['disposeWithMe'](_0x53db76(this['_cursorInfo$'][_0x5db534(0x278)](()=>{_0xb9e02d();})));}[_0x4db2cd(0x1c5)](){const _0x1903f3=_0x4db2cd;var _0x1a0ebe,_0x3bd81f;if(this['_online']=!0x0,((_0x1a0ebe=this[_0x1903f3(0x168)][_0x1903f3(0x32d)]())==null?void 0x0:_0x1a0ebe[_0x1903f3(0x1ee)]())!==this[_0x1903f3(0x2d5)])return;const _0x29d506=(_0x3bd81f=this[_0x1903f3(0x363)][_0x1903f3(0x31a)](_0x5de39c)[_0x1903f3(0x158)]())==null?void 0x0:_0x3bd81f[0x0],_0x1fb2e9=this[_0x1903f3(0x168)][_0x1903f3(0x35d)](_0x29eb03[_0x1903f3(0x17b)])[_0x1903f3(0x349)]();_0x29d506&&_0x1fb2e9&&this['_updateLocalCursor'](_0x1fb2e9['getSheetId'](),_0x29d506);}[_0x4db2cd(0x313)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x1769b1(_0x174327)),B(0x3,_0x1769b1(Ke)),B(0x4,_0x1769b1(_0x271b80)),B(0x5,_0x26672b),B(0x6,_0x57c9c6),B(0x7,_0x1769b1(_0x3415de))],Be);var Yi=Object[_0x4db2cd(0x2ab)],Wi=(_0x2738a3,_0x1573f2,_0x2e565c,_0xdbf9c9)=>{for(var _0x472249=_0xdbf9c9>0x1?void 0x0:_0xdbf9c9?Yi(_0x1573f2,_0x2e565c):_0x1573f2,_0xbcbac6=_0x2738a3['length']-0x1,_0xe982a1;_0xbcbac6>=0x0;_0xbcbac6--)(_0xe982a1=_0x2738a3[_0xbcbac6])&&(_0x472249=_0xe982a1(_0x472249)||_0x472249);return _0x472249;},Ce=(_0xcbb0a5,_0x524112)=>(_0x2e7e25,_0x3e4be9)=>_0x524112(_0x2e7e25,_0x3e4be9,_0xcbb0a5);let H=class extends _0x505f3c{constructor(_0x22aec3,_0x28e405,_0x127cc7){const _0x288cd4=_0x4db2cd;super(),_(this,'_entities',new Map()),_(this,_0x288cd4(0x320),new _0x2d8eb9()),(this[_0x288cd4(0x168)]=_0x22aec3,this[_0x288cd4(0x363)]=_0x28e405,this[_0x288cd4(0x30c)]=_0x127cc7,this[_0x288cd4(0x2c0)]());}[_0x4db2cd(0x183)](){const _0x20add8=_0x4db2cd;super[_0x20add8(0x183)](),this[_0x20add8(0x320)]['complete'](),this[_0x20add8(0x186)][_0x20add8(0x18c)](_0x2e1155=>_0x2e1155[_0x20add8(0x183)]());}[_0x4db2cd(0x251)](_0x4c2107){const _0x10d924=_0x4db2cd;return this[_0x10d924(0x186)]['has'](_0x4c2107)?this[_0x10d924(0x186)][_0x10d924(0x31a)](_0x4c2107)['cursorInfo$']:this[_0x10d924(0x320)][_0x10d924(0x1c9)](_0xd4d104(_0x31ec67=>_0x31ec67[_0x10d924(0x2d5)]===_0x4c2107),_0x2ea7f3(_0xefaf22=>_0xefaf22[_0x10d924(0x184)]));}[_0x4db2cd(0x2c0)](){const _0x25c192=_0x4db2cd;this['_univerInstanceService'][_0x25c192(0x1ae)](_0x29eb03[_0x25c192(0x17b)])[_0x25c192(0x1c9)](_0x3c083f(this[_0x25c192(0x250)]))[_0x25c192(0x278)](async _0x47e76f=>{const _0x1d01d7=_0x25c192,_0x939430=_0x47e76f[_0x1d01d7(0x1ee)](),_0x4cc3e3=await this[_0x1d01d7(0x173)](_0x939430);this[_0x1d01d7(0x320)][_0x1d01d7(0x2dc)](_0x4cc3e3),this[_0x1d01d7(0x186)][_0x1d01d7(0x225)](_0x939430,_0x4cc3e3);}),this[_0x25c192(0x168)][_0x25c192(0x1ae)](_0x29eb03[_0x25c192(0x1d2)])[_0x25c192(0x1c9)](_0x3c083f(this[_0x25c192(0x250)]))[_0x25c192(0x1c9)](_0xd4d104(_0x255aab=>!_0x255aab[_0x25c192(0x1ee)]()[_0x25c192(0x2a2)]('__')))[_0x25c192(0x278)](async _0x1c19b4=>{const _0x4376cf=_0x25c192,_0x22f70b=_0x1c19b4[_0x4376cf(0x1ee)](),_0x433279=await this[_0x4376cf(0x24d)](_0x22f70b);this['_entityInit$'][_0x4376cf(0x2dc)](_0x433279),this['_entities'][_0x4376cf(0x225)](_0x22f70b,_0x433279);}),_0x14cb3a(this['_univerInstanceService'][_0x25c192(0x190)](_0x29eb03['UNIVER_DOC']),this[_0x25c192(0x168)][_0x25c192(0x190)](_0x29eb03['UNIVER_SHEET']))[_0x25c192(0x1c9)](_0x3c083f(this['dispose$']))[_0x25c192(0x278)](_0x292a81=>{const _0x2d2b9e=_0x25c192,_0x21b022=_0x292a81[_0x2d2b9e(0x1ee)](),_0x4bb179=this[_0x2d2b9e(0x186)][_0x2d2b9e(0x31a)](_0x21b022);_0x4bb179&&(_0x4bb179['dispose'](),this[_0x2d2b9e(0x186)][_0x2d2b9e(0x358)](_0x21b022));});}async[_0x4db2cd(0x173)](_0x1f1b89){const _0x228988=_0x4db2cd,_0xab113f=await this[_0x228988(0x30c)]['requireSession'](_0x1f1b89),_0x2dabc7=this['_injector'][_0x228988(0x271)](Be,_0x1f1b89,_0xab113f);return _0x2dabc7[_0x228988(0x367)](),_0x2dabc7;}async[_0x4db2cd(0x24d)](_0x3e977a){const _0x190dea=await this['_collabSessionService']['requireSession'](_0x3e977a),_0x544d7e=this['_injector']['createInstance'](xe,_0x3e977a,_0x190dea);return _0x544d7e['init'](),_0x544d7e;}};H=Wi([Ce(0x0,_0x26672b),Ce(0x1,_0x1769b1(_0x174327)),Ce(0x2,_0x1769b1(_0x1e0b19))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x46ed99,_0xe5a2a7){const _0x745716=_0x4db2cd;let {radius:_0xbc038c,width:_0x4e06d2,height:_0x13f9b2}=_0xe5a2a7;_0xbc038c=_0xbc038c!=null?_0xbc038c:0x0,_0x4e06d2=_0x4e06d2!=null?_0x4e06d2:0x1e,_0x13f9b2=_0x13f9b2!=null?_0x13f9b2:0x1e;let _0x3e3887=0x0,_0x3129ea=0x0,_0x2ce212=0x0;_0x3e3887=_0x3129ea=_0x2ce212=Math[_0x745716(0x1fb)](_0xbc038c,_0x4e06d2/0x2,_0x13f9b2/0x2),_0x46ed99[_0x745716(0x2bd)](),_0x46ed99[_0x745716(0x378)](_0x3e3887,0x0),_0x46ed99[_0x745716(0x277)](_0x4e06d2-_0x3129ea,0x0),_0x46ed99[_0x745716(0x364)](_0x4e06d2-_0x3129ea,_0x3129ea,_0x3129ea,Math['PI']*0x3/0x2,0x0,!0x1),_0x46ed99['lineTo'](_0x4e06d2,_0x13f9b2-_0x2ce212),_0x46ed99[_0x745716(0x364)](_0x4e06d2-_0x2ce212,_0x13f9b2-_0x2ce212,_0x2ce212,0x0,Math['PI']/0x2,!0x1),_0x46ed99['lineTo'](0x0,_0x13f9b2),_0x46ed99['lineTo'](0x0,_0x3e3887),_0x46ed99[_0x745716(0x364)](_0x3e3887,_0x3e3887,_0x3e3887,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x46ed99[_0x745716(0x2f3)](),_0xe5a2a7[_0x745716(0x30b)]&&(_0x46ed99[_0x745716(0x1b5)](),_0x46ed99[_0x745716(0x205)]=_0xe5a2a7['fill'],_0xe5a2a7[_0x745716(0x17f)]==='evenodd'?_0x46ed99[_0x745716(0x30b)](_0x745716(0x14c)):_0x46ed99[_0x745716(0x30b)](),_0x46ed99['restore']());}class ve extends _0x670fe9{constructor(_0x3b227c,_0x3ca064){const _0x3a0832=_0x4db2cd;super(_0x3b227c,_0x3ca064),_(this,_0x3a0832(0x2ef)),_(this,_0x3a0832(0x1d7)),(this[_0x3a0832(0x2ef)]=_0x3ca064==null?void 0x0:_0x3ca064[_0x3a0832(0x2ef)],this[_0x3a0832(0x1d7)]=_0x3ca064==null?void 0x0:_0x3ca064['text']);}static[_0x4db2cd(0x1ea)](_0x1b4519,_0x116fb4){const _0x33566e=_0x4db2cd,{text:_0x1ff891,color:_0x8f6d02}=_0x116fb4;_0x1b4519[_0x33566e(0x1b5)](),_0x1b4519[_0x33566e(0x25b)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3a0220=_0x1b4519[_0x33566e(0x15a)](_0x1ff891)[_0x33566e(0x24f)],_0x19f963=Math[_0x33566e(0x1fb)](_0x3a0220+0x2*Re,at);ji(_0x1b4519,{'height':Q,'radius':0x4,'width':_0x19f963,'fill':_0x8f6d02}),_0x1b4519[_0x33566e(0x205)]=_0x33566e(0x289);const _0x5324d7=Re,_0x4de220=Q-Vi,_0x229ae0=at-0x2*Re;if(_0x3a0220>_0x229ae0){let _0x140ec2='',_0x42d656=0x0;for(const _0x4ac1ed of _0x1ff891){const _0x275c36=_0x1b4519[_0x33566e(0x15a)](_0x4ac1ed)[_0x33566e(0x24f)];if(_0x42d656+_0x275c36<=_0x229ae0-_0x1b4519[_0x33566e(0x15a)](_0x33566e(0x2c7))[_0x33566e(0x24f)])_0x140ec2+=_0x4ac1ed,_0x42d656+=_0x275c36;else{_0x140ec2+='...';break;}}_0x1b4519[_0x33566e(0x23a)](_0x140ec2,_0x5324d7,_0x4de220);}else _0x1b4519[_0x33566e(0x23a)](_0x1ff891,_0x5324d7,_0x4de220);_0x1b4519[_0x33566e(0x19f)]();}[_0x4db2cd(0x2d4)](_0x177932){const _0x41d181=_0x4db2cd;ve[_0x41d181(0x1ea)](_0x177932,this);}}const De='collab-text-anchor-',Xi=_0x4db2cd(0x1ef),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x4db2cd(0x384);class ct{constructor(_0x158ed0,_0x274664,_0x24edf8,_0x5895fa){const _0x227453=_0x4db2cd;_(this,_0x227453(0x1a7),[]),_(this,'_anchor',null),_(this,_0x227453(0x260),null),_(this,_0x227453(0x380),null),_(this,'_hideTimer',null),_(this,_0x227453(0x292),null),(this['_cursor']=_0x158ed0,this[_0x227453(0x18f)]=_0x274664,this[_0x227453(0x37b)]=_0x24edf8,this[_0x227453(0x2f5)]=_0x5895fa,this[_0x227453(0x1f1)]());}set[_0x4db2cd(0x36f)](_0xff172d){const _0x2961e7=_0x4db2cd;_0xff172d?(this[_0x2961e7(0x380)]&&this[_0x2961e7(0x380)][_0x2961e7(0x232)](),this[_0x2961e7(0x260)]&&this[_0x2961e7(0x260)][_0x2961e7(0x1bd)]()):(this[_0x2961e7(0x380)]&&this['_anchorDot'][_0x2961e7(0x1bd)](),this['_textBubble']&&this[_0x2961e7(0x260)]['hide']());}[_0x4db2cd(0x183)](){const _0x1f271d=_0x4db2cd;for(const _0x397189 of this[_0x1f271d(0x1a7)])_0x397189['dispose']();this[_0x1f271d(0x260)]&&this[_0x1f271d(0x260)][_0x1f271d(0x183)](),this[_0x1f271d(0x380)]&&this['_anchorDot'][_0x1f271d(0x183)](),this[_0x1f271d(0x316)]&&this['_anchor'][_0x1f271d(0x183)](),this[_0x1f271d(0x292)]&&this['_eventUnsubscribe']();}[_0x4db2cd(0x1f1)](){const _0xa0f6c0=_0x4db2cd;var _0x56f52a;const {_docSkeleton:_0x57a2de,_document:_0x56ef2e}=this,{color:_0x5d45de,name:_0x55021e,ranges:_0xb26c8a}=this[_0xa0f6c0(0x254)],_0x7d43f8=_0x56ef2e[_0xa0f6c0(0x229)](),{docsLeft:_0x57a018,docsTop:_0x55136c}=_0x7d43f8,_0x2824f3=new _0x2b4b61(_0x7d43f8,_0x57a2de);for(const {startOffset:_0x44cd08,endOffset:_0x335de6,rangeType:_0x3ed848,segmentId:_0x2eefd6,segmentPage:_0xf64d72,collapsed:_0x11daf8,isActive:_0x4ad254}of _0xb26c8a){const _0x3c12d7=_0x57a2de['findNodePositionByCharIndex'](_0x44cd08,!0x0,_0x2eefd6,_0xf64d72);let _0x4de962=_0x57a2de[_0xa0f6c0(0x38a)](_0x335de6,!0x0,_0x2eefd6,_0xf64d72);if(_0x4de962==null&&(_0x4de962=_0x57a2de['findNodePositionByCharIndex'](_0x335de6-0x1,!0x1,_0x2eefd6,_0xf64d72)),_0x4ad254){const {contentBoxPointGroup:_0x4be559}=_0x2824f3[_0xa0f6c0(0x328)](_0x4de962,_0x4de962);if(_0x4be559[_0xa0f6c0(0x148)]===0x0)continue;this[_0xa0f6c0(0x28f)](_0x5d45de,_0x4be559,_0x57a018,_0x55136c,_0x55021e),this[_0xa0f6c0(0x292)]=this['_handleHover']();}if(_0x3c12d7&&_0x4de962){if(_0x3ed848===_0xd2e4f7[_0xa0f6c0(0x23d)]){const _0x2bd900=new _0x4389c5(_0x7d43f8,_0x57a2de),{pointGroup:_0x1b1109}=(_0x56f52a=_0x2bd900[_0xa0f6c0(0x328)](_0x3c12d7,_0x4de962))!=null?_0x56f52a:{};if(_0x1b1109==null||_0x1b1109[_0xa0f6c0(0x148)]===0x0)continue;this[_0xa0f6c0(0x333)](_0x5d45de,_0x1b1109,_0x57a018,_0x55136c);}else{if(!_0x11daf8){const {borderBoxPointGroup:_0x1f0fd6}=_0x2824f3[_0xa0f6c0(0x328)](_0x3c12d7,_0x4de962);if(_0x1f0fd6['length']===0x0)continue;this['_drawTextRange'](_0x5d45de,_0x1f0fd6,_0x57a018,_0x55136c);}}}}}[_0x4db2cd(0x28f)](_0x5008b0,_0x2fb969,_0x5eb4e1,_0x433294,_0x430c35){const _0x36d630=_0x4db2cd,_0x1a0d67=this['_getAnchorBounding'](_0x2fb969),{left:_0x321069,top:_0x39d0f4,height:_0x16f337}=_0x1a0d67,_0x259d8b=this[_0x36d630(0x23c)](),_0x58bae4=zi/_0x259d8b,_0x30a0eb=new _0x1b4bc0(De+_0x23023b(z),{'left':_0x321069+_0x5eb4e1-_0x58bae4,'top':_0x39d0f4+_0x433294,'height':_0x16f337,'width':Ki,'fill':_0x5008b0||_0x7b9f07(_0x5cc002[_0x36d630(0x16a)],0x0),'strokeWidth':_0x58bae4,'stroke':Ji,'evented':!0x0});this[_0x36d630(0x316)]=_0x30a0eb,this['_scene'][_0x36d630(0x23b)](_0x30a0eb,_0x55cd92);const _0x347571=new _0x1b4bc0(De+_0x23023b(z),{'left':_0x321069+_0x5eb4e1-_0x58bae4,'top':_0x39d0f4+_0x433294-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x5008b0||_0x7b9f07(_0x5cc002[_0x36d630(0x16a)],0x0),'strokeWidth':0x0,'stroke':_0x5008b0||_0x7b9f07(_0x5cc002[_0x36d630(0x16a)],0x0),'evented':!0x1});this[_0x36d630(0x380)]=_0x347571,this[_0x36d630(0x18f)][_0x36d630(0x23b)](_0x347571,_0x55cd92);const _0x429d41=new ve(De+_0x23023b(z),{'left':_0x321069+_0x5eb4e1-_0x58bae4,'top':_0x39d0f4+_0x433294-Q,'text':_0x430c35,'color':_0x5008b0});this['_textBubble']=_0x429d41,this[_0x36d630(0x18f)][_0x36d630(0x23b)](_0x429d41,_0x55cd92),this[_0x36d630(0x36f)]=!0x1;}[_0x4db2cd(0x299)](){const _0x36fb0a=_0x4db2cd,_0x4f5d35=this[_0x36fb0a(0x316)]['onPointerEnter$'][_0x36fb0a(0x1dc)](()=>{const _0x1448fa=_0x36fb0a;this[_0x1448fa(0x36f)]=!0x0;}),_0x2c84a1=this[_0x36fb0a(0x316)][_0x36fb0a(0x345)][_0x36fb0a(0x1dc)](()=>{const _0x29de1b=_0x36fb0a;this[_0x29de1b(0x334)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x4db7a2=_0x29de1b;this[_0x4db7a2(0x36f)]=!0x1;},0x7d0);});return()=>{const _0x5a7c00=_0x36fb0a;_0x4f5d35[_0x5a7c00(0x193)](),_0x2c84a1[_0x5a7c00(0x193)]();};}[_0x4db2cd(0x28e)](_0x158fc9,_0x472490,_0x438e69,_0x1f357c){const _0x4de6bd=_0x4db2cd,_0x1889f4=new _0x55375a(_0x158fc9)[_0x4de6bd(0x33e)](0.2)[_0x4de6bd(0x221)](),_0x5a4c2e=new _0x440b30(Xi+_0x23023b(z),{'pointsGroup':_0x472490,'fill':_0x1889f4||_0x7b9f07(_0x5cc002[_0x4de6bd(0x16a)],0.2),'left':_0x438e69,'top':_0x1f357c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4de6bd(0x1a7)][_0x4de6bd(0x1b0)](_0x5a4c2e),this[_0x4de6bd(0x18f)][_0x4de6bd(0x23b)](_0x5a4c2e,_0x55cd92);}[_0x4db2cd(0x333)](_0x5c9cc5,_0x22b21f,_0x2fa62b,_0x3ee70b){const _0x16d9fb=_0x4db2cd,_0x773248=new _0x55375a(_0x5c9cc5)[_0x16d9fb(0x33e)](0.2)[_0x16d9fb(0x221)](),_0x1b58dc=new _0x440b30(Gi+_0x23023b(z),{'pointsGroup':_0x22b21f,'fill':_0x773248||_0x7b9f07(_0x5cc002['black'],0.2),'left':_0x2fa62b,'top':_0x3ee70b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x16d9fb(0x1a7)][_0x16d9fb(0x1b0)](_0x1b58dc),this['_scene'][_0x16d9fb(0x23b)](_0x1b58dc,_0x55cd92);}[_0x4db2cd(0x321)](_0x34c926){const _0x2be7c0=_0x34c926[0x0],_0x267e72=_0x2be7c0[0x0],_0x395172=_0x2be7c0[0x2],{x:_0x172182,y:_0x386a66}=_0x267e72,{x:_0x165d5d,y:_0x17dded}=_0x395172;return{'left':_0x172182,'top':_0x386a66,'width':_0x165d5d-_0x172182,'height':_0x17dded-_0x386a66};}[_0x4db2cd(0x23c)](){const _0x37089a=_0x4db2cd,{scaleX:_0x9ff034,scaleY:_0x3ca41a}=this[_0x37089a(0x18f)][_0x37089a(0x1c0)]();return Math[_0x37089a(0x372)](_0x9ff034,_0x3ca41a);}}var Zi=Object[_0x4db2cd(0x2ab)],Qi=(_0x42e424,_0x5b4443,_0x58d12f,_0x3829c9)=>{const _0x1e2c81=_0x4db2cd;for(var _0x295ad8=_0x3829c9>0x1?void 0x0:_0x3829c9?Zi(_0x5b4443,_0x58d12f):_0x5b4443,_0x54edd1=_0x42e424[_0x1e2c81(0x148)]-0x1,_0x53504b;_0x54edd1>=0x0;_0x54edd1--)(_0x53504b=_0x42e424[_0x54edd1])&&(_0x295ad8=_0x53504b(_0x295ad8)||_0x295ad8);return _0x295ad8;},ie=(_0x5203e9,_0x245f75)=>(_0x29f86b,_0x587414)=>_0x245f75(_0x29f86b,_0x587414,_0x5203e9);let Fe=class extends _0x505f3c{constructor(_0x4b76b6,_0x5541be,_0x4dbe84,_0x37f8db,_0x512e81){const _0x180c89=_0x4db2cd;super(),_(this,_0x180c89(0x18e),[]),_(this,'_cursors',[]),(this[_0x180c89(0x1db)]=_0x4b76b6,this[_0x180c89(0x15c)]=_0x5541be,this[_0x180c89(0x247)]=_0x4dbe84,this[_0x180c89(0x27d)]=_0x37f8db,this[_0x180c89(0x20b)]=_0x512e81,this['_init']());}['_init'](){const _0x53bc56=_0x4db2cd,_0x1836ab=this[_0x53bc56(0x1db)]['unitId'],_0x54126b=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x3238c1([this[_0x53bc56(0x247)][_0x53bc56(0x251)](_0x1836ab),this[_0x53bc56(0x20b)]['currentTheme$']])[_0x53bc56(0x1c9)](_0x392195(([_0x5c5794,_0x4f4d8b])=>({'skeleton':_0x54126b['getSkeleton'](),'cursors':[..._0x5c5794[_0x53bc56(0x337)]()][_0x53bc56(0x276)](_0x3628fe=>({..._0x3628fe,'color':this[_0x53bc56(0x20b)][_0x53bc56(0x2eb)](_0x3628fe[_0x53bc56(0x2ef)])}))})))[_0x53bc56(0x278)](_0x56c453=>{const _0x4a8036=_0x53bc56;if(this[_0x4a8036(0x14f)](),_0x56c453){const {skeleton:_0x30f280,cursors:_0x3337ff}=_0x56c453;this[_0x4a8036(0x26f)](_0x30f280,_0x3337ff);}})),this['_initResize'](),this[_0x53bc56(0x2f0)]();}[_0x4db2cd(0x26f)](_0x5df4e8,_0x206582){const _0x22c48e=_0x4db2cd,{scene:_0x177340,mainComponent:_0x306585}=this[_0x22c48e(0x1db)],_0x1f8ea7=_0x206582[_0x22c48e(0x197)](_0x3cf2e6=>new ct(_0x3cf2e6,_0x177340,_0x5df4e8,_0x306585));this[_0x22c48e(0x18e)]=_0x1f8ea7,this[_0x22c48e(0x2e5)]=_0x206582;}['_refreshCollabCursors'](){const _0x50c224=_0x4db2cd;this[_0x50c224(0x14f)]();const {scene:_0x3fc72b,mainComponent:_0x302c2e}=this[_0x50c224(0x1db)],_0x5667c3=this[_0x50c224(0x15c)][_0x50c224(0x1ad)](),_0x3b614c=this['_cursors'][_0x50c224(0x197)](_0x10c78f=>new ct(_0x10c78f,_0x3fc72b,_0x5667c3,_0x302c2e));this[_0x50c224(0x18e)]=_0x3b614c;}[_0x4db2cd(0x14f)](){const _0x425e84=_0x4db2cd;this[_0x425e84(0x18e)]['forEach'](_0x5b3757=>_0x5b3757[_0x425e84(0x183)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x3f7099=_0x4db2cd,_0x59b959=[_0x43b4fb['id']];this[_0x3f7099(0x172)](this['_commandService'][_0x3f7099(0x356)](_0x414e9=>{const _0x20cf8b=_0x3f7099;_0x59b959['includes'](_0x414e9['id'])&&_0x414e9[_0x20cf8b(0x17c)][_0x20cf8b(0x239)]===this['_context']['unitId']&&this[_0x20cf8b(0x23e)]();}));}[_0x4db2cd(0x1e1)](){const _0x2973c4=_0x4db2cd;this[_0x2973c4(0x172)](_0x1d6621(this[_0x2973c4(0x1db)]['engine'][_0x2973c4(0x1d3)])[_0x2973c4(0x1c9)](_0x2699c8(_0x50bbae=>_0x50bbae[_0x2973c4(0x326)]===_0x45ce46[_0x2973c4(0x1d6)]),_0x239387(0x10))[_0x2973c4(0x278)](()=>{const _0x1e83e5=_0x2973c4;this[_0x1e83e5(0x23e)]();}));}};Fe=Qi([ie(0x1,_0x1769b1(_0x4a66d6)),ie(0x2,_0x1769b1(H)),ie(0x3,_0x57c9c6),ie(0x4,_0x1769b1(_0x3235b5))],Fe);const qi=0x1,en=1.5;class tn extends _0x670fe9{constructor(_0x4a055f,_0x306df8){const _0x344b2d=_0x4db2cd;super(_0x4a055f,_0x306df8),_(this,_0x344b2d(0x241)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x344b2d(0x16b),''),_(this,_0x344b2d(0x31b),_0x344b2d(0x26e)),_(this,'_backgroundColor'),(_0x306df8&&this[_0x344b2d(0x2cf)](_0x306df8),this['onPointerEnter$'][_0x344b2d(0x1dc)](()=>this[_0x344b2d(0x2cf)]({'hovered':!0x0})),this[_0x344b2d(0x345)][_0x344b2d(0x1dc)](()=>this[_0x344b2d(0x2cf)]({'hovered':!0x1})));}[_0x4db2cd(0x2cf)](_0x387a55){const _0x5b896e=_0x4db2cd;var _0x4a0a0d,_0x245a6d,_0x3d626b,_0x1fece1,_0x4fa8a1,_0x1b2943;this[_0x5b896e(0x241)]=(_0x4a0a0d=_0x387a55['color'])!=null?_0x4a0a0d:this['_color'],this[_0x5b896e(0x208)]=(_0x245a6d=_0x387a55['hovered'])!=null?_0x245a6d:this[_0x5b896e(0x208)],this[_0x5b896e(0x290)]=(_0x3d626b=_0x387a55['range'])!=null?_0x3d626b:this['_range'],this[_0x5b896e(0x16b)]=(_0x1fece1=_0x387a55[_0x5b896e(0x220)])!=null?_0x1fece1:this['_name'],this[_0x5b896e(0x31b)]=(_0x4fa8a1=_0x387a55[_0x5b896e(0x32b)])!=null?_0x4fa8a1:this[_0x5b896e(0x31b)],this[_0x5b896e(0x2b5)]=(_0x1b2943=_0x387a55['backgroundColor'])!=null?_0x1b2943:this['_backgroundColor'],this[_0x5b896e(0x29f)]({'width':_0x387a55[_0x5b896e(0x24f)],'height':_0x387a55[_0x5b896e(0x370)]});}[_0x4db2cd(0x194)](_0x6153d){const _0x5b0ff1=_0x4db2cd,{row:_0x293d76,column:_0x3ac75c}=_0x6153d;if(_0x293d76>=this['_range'][_0x5b0ff1(0x35e)]&&_0x293d76<=this['_range'][_0x5b0ff1(0x374)]&&_0x3ac75c>=this[_0x5b0ff1(0x290)][_0x5b0ff1(0x1c7)]&&_0x3ac75c<=this[_0x5b0ff1(0x290)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4db2cd(0x1a3)](_0x4c90d9){return!0x1;}[_0x4db2cd(0x2d4)](_0xd07002){const _0x5b28fa=_0x4db2cd;_0x1b4bc0[_0x5b28fa(0x1ea)](_0xd07002,{'width':this[_0x5b28fa(0x24f)],'height':this[_0x5b28fa(0x370)],'strokeWidth':en,'stroke':this[_0x5b28fa(0x241)],'evented':!0x1,'fill':this[_0x5b28fa(0x2b5)]}),this['_hovered']&&(_0xd07002[_0x5b28fa(0x1b5)](),_0xd07002[_0x5b28fa(0x366)](0x1,0x0,0x0,0x1,this[_0x5b28fa(0x24f)],this[_0x5b28fa(0x31b)]===_0x5b28fa(0x284)?0x0:-Q),ve[_0x5b28fa(0x1ea)](_0xd07002,{'text':this[_0x5b28fa(0x16b)],'color':this[_0x5b28fa(0x241)]}),_0xd07002[_0x5b28fa(0x19f)]());}}var sn=Object[_0x4db2cd(0x2ab)],nn=(_0x3d4fb7,_0x4ecb14,_0x2f2599,_0x369fd0)=>{const _0x116095=_0x4db2cd;for(var _0x24d9d1=_0x369fd0>0x1?void 0x0:_0x369fd0?sn(_0x4ecb14,_0x2f2599):_0x4ecb14,_0x5793d2=_0x3d4fb7[_0x116095(0x148)]-0x1,_0x960b4d;_0x5793d2>=0x0;_0x5793d2--)(_0x960b4d=_0x3d4fb7[_0x5793d2])&&(_0x24d9d1=_0x960b4d(_0x24d9d1)||_0x24d9d1);return _0x24d9d1;},be=(_0x506078,_0x48a862)=>(_0x36565f,_0x25a195)=>_0x48a862(_0x36565f,_0x25a195,_0x506078);const rn=0x1389;let ke=class extends _0x505f3c{constructor(_0x189c87,_0x4214c6,_0x256a78,_0x3b2913){const _0x5ec81b=_0x4db2cd;super(),_(this,_0x5ec81b(0x2e5),new Set()),_(this,_0x5ec81b(0x1b3),null),(this[_0x5ec81b(0x1db)]=_0x189c87,this[_0x5ec81b(0x1f0)]=_0x4214c6,this[_0x5ec81b(0x247)]=_0x256a78,this[_0x5ec81b(0x20b)]=_0x3b2913,this[_0x5ec81b(0x2c0)]());}[_0x4db2cd(0x2c0)](){const _0x11268e=_0x4db2cd;this[_0x11268e(0x1f0)][_0x11268e(0x30a)][_0x11268e(0x1c9)](_0x3710c5(this[_0x11268e(0x250)]),_0x51fb17(_0x4eed29=>{const _0x965eb8=_0x11268e;if(_0x4eed29){const _0x2f892a=_0x4eed29[_0x965eb8(0x198)];return _0x3238c1(this[_0x965eb8(0x247)]['getCollabCursors$'](this[_0x965eb8(0x1db)][_0x965eb8(0x239)]),this[_0x965eb8(0x20b)][_0x965eb8(0x159)])['pipe'](_0x392195(([_0x127a26,_0x13af91])=>{const _0x46b4b3=new Map();return _0x127a26['forEach']((_0x41fec5,_0x4e735a)=>{const _0x55597f=_0x24e1;if(_0x41fec5['sheetID']===_0x2f892a){const _0x647961={..._0x41fec5};_0x647961[_0x55597f(0x2ef)]=this[_0x55597f(0x20b)][_0x55597f(0x2eb)](_0x41fec5['color']),_0x46b4b3['set'](_0x4e735a,_0x647961);}}),{'skeleton':_0x4eed29,'cursors':_0x46b4b3};}));}return _0x38b0d0({'skeleton':null,'cursors':new Map()});}))[_0x11268e(0x278)](({skeleton:_0x43757b,cursors:_0x319ef9})=>{const _0x303bd5=_0x11268e;this[_0x303bd5(0x14f)](),_0x43757b&&this[_0x303bd5(0x26f)](_0x43757b,_0x319ef9);}),this[_0x11268e(0x1f0)][_0x11268e(0x30a)][_0x11268e(0x278)](_0x5ebe5a=>{const _0x549bc8=_0x11268e;if(_0x5ebe5a==null)return;const {skeleton:_0x3877dd}=_0x5ebe5a,{scene:_0x38d835}=this[_0x549bc8(0x1db)];_0x38d835[_0x549bc8(0x1fc)][_0x549bc8(0x1dc)](_0x27071f(_0x5b0883=>{const _0x17d544=_0x549bc8;var _0x552086,_0x523485;const {offsetX:_0xb9466c,offsetY:_0x4dd288}=_0x5b0883,{x:_0x167292,y:_0x28a3a4}=_0x38d835[_0x17d544(0x2a0)](_0x103b90['FromArray']([_0xb9466c,_0x4dd288])),{scaleX:_0x5aeb88,scaleY:_0x89fabe}=_0x38d835[_0x17d544(0x1c0)](),_0x48223c=_0x38d835['getViewport'](_0x5ee039[_0x17d544(0x288)]),_0x55eb4e=_0x38d835[_0x17d544(0x188)](_0x103b90['FromArray']([_0x167292,_0x28a3a4]),_0x48223c),_0x5420ca=_0x3877dd[_0x17d544(0x185)](_0xb9466c,_0x4dd288,_0x5aeb88,_0x89fabe,_0x55eb4e);((_0x552086=this[_0x17d544(0x1b3)])==null?void 0x0:_0x552086[_0x17d544(0x279)])===_0x5420ca[_0x17d544(0x279)]&&((_0x523485=this[_0x17d544(0x1b3)])==null?void 0x0:_0x523485[_0x17d544(0x21f)])===_0x5420ca[_0x17d544(0x21f)]||this[_0x17d544(0x2e5)][_0x17d544(0x18c)](_0x498eab=>{const _0x420378=_0x17d544;_0x498eab[_0x420378(0x194)](_0x5420ca);});},0x64));});}[_0x4db2cd(0x26f)](_0x26ea67,_0x4e90ad){const _0xe5198e=_0x4db2cd;var _0x9f1662;const _0x18197d=(_0x9f1662=this['_sheetSkeletonManagerService'][_0xe5198e(0x1e5)]())==null?void 0x0:_0x9f1662['skeleton'];if(!_0x18197d)return;const _0x319207=this[_0xe5198e(0x26b)]();if(!_0x319207)return;this[_0xe5198e(0x2e5)][_0xe5198e(0x18c)](_0x2a0def=>{const _0x376e6b=_0xe5198e;_0x2a0def[_0x376e6b(0x24c)]();});const {scene:_0x1f8e19}=_0x319207,_0x606e3d=on(Array[_0xe5198e(0x2c1)](_0x4e90ad[_0xe5198e(0x337)]()))[_0xe5198e(0x197)](_0x171e12=>{const {color:_0x33cfc7,range:_0x4c0b1d,name:_0x55e68e,selection:_0x1c600f,sheetID:_0x7a9220}=_0x171e12,{startColumn:_0x158102,startRow:_0x8cf0d5,endColumn:_0x63fbc1,endRow:_0x4db36b}=_0x4c0b1d,_0x836efe=_0x5c0b12(_0x8cf0d5,_0x158102,_0x1f8e19,_0x18197d),_0xe5a58e=_0x5c0b12(_0x4db36b,_0x63fbc1,_0x1f8e19,_0x18197d),{columnHeaderHeightAndMarginTop:_0x28f9e7}=_0x18197d,{startX:_0x4af31d,startY:_0x10b6c5}=_0x836efe,{endX:_0x470591,endY:_0x2fef38}=_0xe5a58e,_0x201461=_0x470591-_0x4af31d,_0x4b4281=_0x2fef38-_0x10b6c5,_0x4eceb0={'labelPosition':_0x10b6c5-_0x28f9e7>=Q?'top':'bottom','sheetID':_0x7a9220,'range':_0x4c0b1d,'color':_0x33cfc7,'name':_0x55e68e,'selection':_0x1c600f,'left':_0x4af31d,'top':_0x10b6c5,'width':_0x201461,'height':_0x4b4281,'evented':!0x1,'zIndex':rn};return new tn(_0x55e68e,_0x4eceb0);});_0x1f8e19[_0xe5198e(0x2fe)](_0x606e3d,qi),this[_0xe5198e(0x2e5)]=new Set(_0x606e3d);}[_0x4db2cd(0x14f)](){const _0x252867=_0x4db2cd;var _0x6b48b;(_0x6b48b=this[_0x252867(0x2e5)])==null||_0x6b48b['forEach'](_0x362eb7=>_0x362eb7[_0x252867(0x183)]());}[_0x4db2cd(0x26b)](){const _0x3a2d71=_0x4db2cd;return _0xd2d082(this[_0x3a2d71(0x1db)][_0x3a2d71(0x2fc)],this[_0x3a2d71(0x1db)]);}};ke=nn([be(0x1,_0x1769b1(_0x1124fa)),be(0x2,_0x1769b1(H)),be(0x3,_0x1769b1(_0x3235b5))],ke);function on(_0x3648e8){const _0x2a1bb1=_0x4db2cd,_0x1cd3aa=new Map();return _0x3648e8[_0x2a1bb1(0x18c)](_0x6a15e6=>{const _0x1d2bde=_0x2a1bb1;if(_0x1cd3aa[_0x1d2bde(0x22e)](_0x6a15e6[_0x1d2bde(0x2a6)])){const _0x321047=_0x1cd3aa['get'](_0x6a15e6['selection']);_0x321047['name']+=',\x20'+_0x6a15e6[_0x1d2bde(0x220)];}else _0x1cd3aa[_0x1d2bde(0x225)](_0x6a15e6['selection'],_0x6a15e6);}),Array['from'](_0x1cd3aa[_0x2a1bb1(0x337)]());}var an=Object[_0x4db2cd(0x2ab)],cn=(_0x141376,_0x17f847,_0x25120c,_0x39ef25)=>{const _0x39fb21=_0x4db2cd;for(var _0x597739=_0x39ef25>0x1?void 0x0:_0x39ef25?an(_0x17f847,_0x25120c):_0x17f847,_0x3964e6=_0x141376[_0x39fb21(0x148)]-0x1,_0x4c4371;_0x3964e6>=0x0;_0x3964e6--)(_0x4c4371=_0x141376[_0x3964e6])&&(_0x597739=_0x4c4371(_0x597739)||_0x597739);return _0x597739;},F=(_0x411043,_0x1efe2a)=>(_0x8b97a1,_0x51c7f8)=>_0x1efe2a(_0x8b97a1,_0x51c7f8,_0x411043);let _e=class extends _0x3432ff{constructor(_0x5dbeac,_0x5de106,_0x2b9a40,_0x397dc3,_0x3d5d26,_0x4d9bef){const _0x31f718=_0x4db2cd;super(),this[_0x31f718(0x29a)]=_0x5dbeac,this[_0x31f718(0x1c8)]=_0x5de106,this[_0x31f718(0x2ed)]=_0x2b9a40,this[_0x31f718(0x298)]=_0x397dc3,this[_0x31f718(0x21d)]=_0x3d5d26,this[_0x31f718(0x305)]=_0x4d9bef,this[_0x31f718(0x31f)](),this['_initEvent']();}[_0x4db2cd(0x31f)](){const _0x28907f=_0x4db2cd;this[_0x28907f(0x172)](this['_beforeCloseService'][_0x28907f(0x2df)](()=>{const _0x292389=_0x28907f;if(this[_0x292389(0x1c8)][_0x292389(0x1e2)][_0x292389(0x31c)])return this[_0x292389(0x305)]['t'](_0x292389(0x357));}));}[_0x4db2cd(0x297)](){const _0x5bf824=_0x4db2cd;this['disposeWithMe'](this['_collaborationUIEventService'][_0x5bf824(0x270)][_0x5bf824(0x278)](_0x2edd98=>{const _0x52900a=_0x5bf824;_0x2edd98['id']===_0x720ca7[_0x52900a(0x2d8)]&&this[_0x52900a(0x298)][_0x52900a(0x1bd)]({'type':_0x17c4da[_0x52900a(0x382)],'content':this[_0x52900a(0x305)]['t']('collaboration.single-unit.warning')}),_0x2edd98['id']===_0x720ca7['CLOSE_ROOM']&&this['_messageService'][_0x52900a(0x1bd)]({'type':_0x17c4da[_0x52900a(0x382)],'content':this['_localeService']['t'](_0x52900a(0x37f))}),_0x2edd98['id']===_0x720ca7[_0x52900a(0x218)]&&this[_0x52900a(0x21d)][_0x52900a(0x1bd)]({'title':this[_0x52900a(0x305)]['t'](_0x52900a(0x1da)),'content':this[_0x52900a(0x305)]['t'](_0x52900a(0x346)),'type':_0x52900a(0x2e6),'duration':0x0}),_0x2edd98['id']===_0x720ca7[_0x52900a(0x274)]&&this[_0x52900a(0x298)][_0x52900a(0x1bd)]({'type':_0x17c4da[_0x52900a(0x1ce)],'content':this['_localeService']['t'](_0x52900a(0x37f))+'('+_0x2edd98[_0x52900a(0x178)]+')'}),_0x2edd98['id']===_0x720ca7[_0x52900a(0x204)]&&this['_messageService'][_0x52900a(0x1bd)]({'type':_0x17c4da['Warning'],'content':this[_0x52900a(0x305)]['t'](_0x2edd98[_0x52900a(0x178)]||'')}),_0x2edd98['id']===_0x720ca7['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x17c4da[_0x52900a(0x382)],'content':this[_0x52900a(0x305)]['t'](_0x52900a(0x144))}),_0x2edd98['id']===_0x720ca7['SOCKET_FAILED']&&this[_0x52900a(0x298)][_0x52900a(0x1bd)]({'type':_0x17c4da[_0x52900a(0x1ce)],'content':this[_0x52900a(0x305)]['t']('session.connection-failed')}),_0x2edd98['id']===_0x720ca7['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x52900a(0x298)][_0x52900a(0x1bd)]({'type':_0x17c4da[_0x52900a(0x1ce)],'content':this[_0x52900a(0x305)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x381c74),F(0x1,_0x50d5d8),F(0x2,_0x1769b1(_0x387bf7)),F(0x3,_0x2671aa),F(0x4,_0x267698),F(0x5,_0x1769b1(_0x1a5fa4))],_e);var _n=Object[_0x4db2cd(0x2ab)],ln=(_0x47b34f,_0x275eeb,_0x3189a0,_0x3894a2)=>{for(var _0x4a9c3f=_0x3894a2>0x1?void 0x0:_0x3894a2?_n(_0x275eeb,_0x3189a0):_0x275eeb,_0x51e1c5=_0x47b34f['length']-0x1,_0x3d5ede;_0x51e1c5>=0x0;_0x51e1c5--)(_0x3d5ede=_0x47b34f[_0x51e1c5])&&(_0x4a9c3f=_0x3d5ede(_0x4a9c3f)||_0x4a9c3f);return _0x4a9c3f;},ne=(_0x74384,_0x2e5fcc)=>(_0x232258,_0x28d77f)=>_0x2e5fcc(_0x232258,_0x28d77f,_0x74384);let le=class extends _0x3432ff{constructor(_0x5aa00d,_0x3b73f9,_0xfa0d0f,_0x42584e){const _0x1a29c2=_0x4db2cd;super(),_(this,'_memberID'),(this[_0x1a29c2(0x363)]=_0x5aa00d,this['_httpService']=_0x3b73f9,this['_logService']=_0xfa0d0f,this['_collaborationSessionService']=_0x42584e,this[_0x1a29c2(0x2c0)]());}[_0x4db2cd(0x2c0)](){const _0x5cc547=_0x4db2cd;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x5cc547(0x2ce)](),this[_0x5cc547(0x243)]();}[_0x4db2cd(0x243)](){const _0x409405=_0x4db2cd;this[_0x409405(0x172)](this[_0x409405(0x256)][_0x409405(0x351)]['subscribe'](_0x7bea45=>{const _0x28684e=_0x409405;this[_0x28684e(0x341)]=_0x7bea45==null?void 0x0:_0x7bea45[_0x28684e(0x166)];}));}[_0x4db2cd(0x386)](){const _0x22881b=_0x4db2cd,_0x4e4b03=_0x52dfe2=>{const _0x413337=_0x24e1;var _0x4f0cdb;this[_0x413337(0x327)]('error',_0x413337(0x176)+_0x52dfe2['message']+_0x413337(0x34b)+_0x52dfe2['filename']+':'+_0x52dfe2[_0x413337(0x37d)]+':'+_0x52dfe2['colno']+'\x0a'+(((_0x4f0cdb=_0x52dfe2['error'])==null?void 0x0:_0x4f0cdb[_0x413337(0x31d)])||''));};window[_0x22881b(0x16d)]('error',_0x4e4b03),this[_0x22881b(0x172)](()=>{const _0x2f0afd=_0x22881b;window[_0x2f0afd(0x19d)](_0x2f0afd(0x2e6),_0x4e4b03);});}['_initUnhandledRejectionListener'](){const _0x1da185=_0x4db2cd,_0x572953=_0x1ab221=>{const _0x2eb02e=_0x24e1;this[_0x2eb02e(0x327)]('error','[Unhandled\x20Rejection]:\x20'+_0x1ab221[_0x2eb02e(0x312)]);};window[_0x1da185(0x16d)]('unhandledrejection',_0x572953),this['disposeWithMe'](()=>{const _0x261175=_0x1da185;window[_0x261175(0x19d)]('unhandledrejection',_0x572953);});}[_0x4db2cd(0x2ce)](){const _0x1ce040=_0x4db2cd,_0x2a4366=this[_0x1ce040(0x140)][_0x1ce040(0x2e6)]['bind'](this[_0x1ce040(0x140)]);this['_logService'][_0x1ce040(0x2e6)]=(..._0x3bcf41)=>{const _0x37b37c=_0x1ce040,_0x2f20cc=_0x3bcf41['map'](_0x30aa00=>_0x30aa00 instanceof Error?_0x30aa00[_0x37b37c(0x2a7)]+'\x0a'+_0x30aa00[_0x37b37c(0x31d)]:String(_0x30aa00))['join']('\x20');this[_0x37b37c(0x327)]('error','[LogService\x20Error]:\x20'+_0x2f20cc),_0x2a4366(..._0x3bcf41);},this[_0x1ce040(0x172)](()=>{const _0x365560=_0x1ce040;this[_0x365560(0x140)][_0x365560(0x2e6)]=_0x2a4366;});}[_0x4db2cd(0x327)](_0x3f4de0,_0x54e8a8){const _0x2b6d02=_0x4db2cd;try{const _0x2e6cf7={'userId':this[_0x2b6d02(0x341)],'logLabel':_0x3f4de0,'content':_0x54e8a8};this[_0x2b6d02(0x1cc)][_0x2b6d02(0x258)](_0x2b6d02(0x20d),{'body':_0x2e6cf7})[_0x2b6d02(0x156)](()=>{});}catch{}}};le=ln([ne(0x0,_0x1769b1(_0x174327)),ne(0x1,_0x1769b1(_0x45d6eb)),ne(0x2,_0x5cccfe),ne(0x3,_0x1769b1(_0x1e0b19))],le);const hn=_0x4db2cd(0x207),_t={};var un=Object[_0x4db2cd(0x2ab)],dn=(_0x4f41d7,_0x19821d,_0xb792f0,_0x44340e)=>{const _0x3c692c=_0x4db2cd;for(var _0x37f609=_0x44340e>0x1?void 0x0:_0x44340e?un(_0x19821d,_0xb792f0):_0x19821d,_0x1c707e=_0x4f41d7[_0x3c692c(0x148)]-0x1,_0x299bf7;_0x1c707e>=0x0;_0x1c707e--)(_0x299bf7=_0x4f41d7[_0x1c707e])&&(_0x37f609=_0x299bf7(_0x37f609)||_0x37f609);return _0x37f609;},lt=(_0x4bf823,_0x446bf3)=>(_0x574906,_0x453e63)=>_0x446bf3(_0x574906,_0x453e63,_0x4bf823);let he=class{constructor(_0x260ee7,_0x2a6fd6){const _0x4ebbec=_0x4db2cd;this[_0x4ebbec(0x177)]=_0x260ee7,this[_0x4ebbec(0x34f)]=_0x2a6fd6;}[_0x4db2cd(0x224)](_0x3d8abf){const _0x44186d=_0x4db2cd;this[_0x44186d(0x14b)](_0x3d8abf),this[_0x44186d(0x335)](_0x3d8abf);}[_0x4db2cd(0x2b9)](_0x274941){const _0x370f00=_0x4db2cd,{unitID:_0x223190}=_0x274941,_0x216bca=this[_0x370f00(0x34f)][_0x370f00(0x20e)](_0x223190)[_0x370f00(0x275)](_0x498e9e),{redoCache:_0x542a6f}=_0x216bca[_0x370f00(0x2ec)]();if(_0x542a6f[_0x370f00(0x148)]===0x0)return _0x274941;let _0x2ff881=_0x45a645[_0x370f00(0x2e4)](_0x274941[_0x370f00(0x143)][0x0]);for(let _0xecf2ce=0x0;_0xecf2ce<_0x542a6f['length'];_0xecf2ce++){const _0xc58b84={'id':_0x370f00(0x1a4),'params':{..._0x542a6f[_0xecf2ce]}},_0x5094c8=this[_0x370f00(0x177)][_0x370f00(0x2ac)](_0x2ff881,_0xc58b84,!0x1);if(_0x1543e0(_0x5094c8))throw _0x5094c8[_0x370f00(0x2e6)];_0x2ff881=_0x5094c8[_0x370f00(0x38c)];}return{..._0x45a645[_0x370f00(0x2e4)](_0x274941),'mutations':[_0x2ff881]};}[_0x4db2cd(0x14b)](_0x1a4c00){const _0x3df116=_0x4db2cd,{unitID:_0x184335}=_0x1a4c00,_0x2b7b83=this[_0x3df116(0x34f)][_0x3df116(0x20e)](_0x184335)['with'](_0x498e9e),{undoCache:_0x46b0ae,redoCache:_0x1c1b2e}=_0x2b7b83[_0x3df116(0x2ec)]();if(_0x46b0ae[_0x3df116(0x148)]===0x0||_0x1c1b2e[_0x3df116(0x148)]===0x0)return;const _0x341660=[],_0x581d3f=[];let _0x253bee=_0x45a645[_0x3df116(0x2e4)](_0x1a4c00[_0x3df116(0x143)][0x0]),_0x40a378=_0x45a645[_0x3df116(0x2e4)](_0x1a4c00[_0x3df116(0x143)][0x0]);for(let _0x9596b9=_0x46b0ae['length']-0x1;_0x9596b9>=0x0;_0x9596b9--){const _0x54503c={'id':_0x3df116(0x1a4),'params':{..._0x46b0ae[_0x9596b9]}},_0x14fa54={'id':_0x3df116(0x1a4),'params':{..._0x1c1b2e[_0x9596b9]}},_0x8d7545=this['_transformService'][_0x3df116(0x2ac)](_0x253bee,_0x54503c,!0x1),_0x2fb1b5=this[_0x3df116(0x177)][_0x3df116(0x2ac)](_0x40a378,_0x14fa54,!0x1);if(_0x1543e0(_0x8d7545))throw _0x8d7545[_0x3df116(0x2e6)];if(_0x1543e0(_0x2fb1b5))throw _0x2fb1b5[_0x3df116(0x2e6)];_0x341660[_0x3df116(0x1f9)](_0x8d7545['m2Prime'][_0x3df116(0x17c)]),_0x581d3f[_0x3df116(0x1f9)](_0x2fb1b5[_0x3df116(0x1ed)]['params']),_0x253bee=_0x8d7545[_0x3df116(0x38c)],_0x40a378=_0x2fb1b5[_0x3df116(0x38c)];}_0x2b7b83[_0x3df116(0x383)]({'undoCache':_0x341660,'redoCache':_0x581d3f});}[_0x4db2cd(0x335)](_0x24cca9){const _0x4e8489=_0x4db2cd,{unitID:_0x597474}=_0x24cca9,_0x99a677=this[_0x4e8489(0x34f)][_0x4e8489(0x20e)](_0x597474)[_0x4e8489(0x275)](_0x498e9e),_0x443ae7=_0x99a677[_0x4e8489(0x296)]();if(_0x443ae7==null)return;const _0x48a076=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24cca9[_0x4e8489(0x2d5)],'actions':null,'textRanges':[_0x443ae7]}}],_0xa47f6f=this[_0x4e8489(0x177)][_0x4e8489(0x29c)](_0x24cca9,_0x48a076);if(!_0x359420(_0xa47f6f))throw _0xa47f6f[_0x4e8489(0x2e6)];const _0xebe70e=_0xa47f6f[_0x4e8489(0x1ed)][0x0]['params'][_0x4e8489(0x350)];Array[_0x4e8489(0x1e4)](_0xebe70e)&&_0xebe70e[_0x4e8489(0x148)]&&_0x99a677['setActiveRange'](_0xebe70e[0x0]);}};he=dn([lt(0x0,_0x29c2d7),lt(0x1,_0x556bf2)],he);var Sn=Object[_0x4db2cd(0x2ab)],In=(_0x2a3920,_0x365001,_0x2445d3,_0x56e1e5)=>{const _0x53ceee=_0x4db2cd;for(var _0xc82bbc=_0x56e1e5>0x1?void 0x0:_0x56e1e5?Sn(_0x365001,_0x2445d3):_0x365001,_0x3936f5=_0x2a3920[_0x53ceee(0x148)]-0x1,_0x5246a0;_0x3936f5>=0x0;_0x3936f5--)(_0x5246a0=_0x2a3920[_0x3936f5])&&(_0xc82bbc=_0x5246a0(_0xc82bbc)||_0xc82bbc);return _0xc82bbc;},Le=(_0x1a9d88,_0x3a7d63)=>(_0x1974ff,_0x57f67d)=>_0x3a7d63(_0x1974ff,_0x57f67d,_0x1a9d88);let ue=class{constructor(_0x135a14,_0x4f2405,_0x3bde24){const _0x1b8426=_0x4db2cd;this['_injector']=_0x135a14,this[_0x1b8426(0x177)]=_0x4f2405,this[_0x1b8426(0x1a8)]=_0x3bde24;}[_0x4db2cd(0x2b1)](_0x2f4682){const _0x37f3e3=_0x4db2cd;this[_0x37f3e3(0x34c)](_0x2f4682);}['transformRemoteChangeset'](_0x55a511){const _0x5106b1=_0x4db2cd,{unitID:_0x3b73bc}=_0x55a511,{collaboration:_0x24754f}=this[_0x5106b1(0x1a8)][_0x5106b1(0x22a)](_0x3b73bc);if(_0x24754f['length']===0x0)return _0x55a511;let _0x14e65b=_0x45a645['deepClone'](_0x55a511[_0x5106b1(0x143)][0x0]);for(let _0x22f881=0x0;_0x22f881<_0x24754f[_0x5106b1(0x148)];_0x22f881++){const _0x1e4624={'id':_0x5106b1(0x1a4),'params':{'unitId':_0x24754f[_0x22f881][_0x5106b1(0x239)],..._0x24754f[_0x22f881][_0x5106b1(0x2b6)]}},_0x1cda6c=this[_0x5106b1(0x177)][_0x5106b1(0x2ac)](_0x14e65b,_0x1e4624,!0x1);if(_0x1543e0(_0x1cda6c))throw _0x1cda6c[_0x5106b1(0x2e6)];_0x14e65b=_0x1cda6c[_0x5106b1(0x38c)];}return{..._0x45a645['deepClone'](_0x55a511),'mutations':[_0x14e65b]};}[_0x4db2cd(0x34c)](_0x554f90){const _0x1306f0=_0x4db2cd,{unitID:_0x26e577}=_0x554f90,{history:_0x1b6d6c,collaboration:_0xcff54b}=this[_0x1306f0(0x1a8)][_0x1306f0(0x22a)](_0x26e577);if(_0x1b6d6c[_0x1306f0(0x148)]===0x0&&_0xcff54b[_0x1306f0(0x148)]===0x0)return;const _0x4fa113=[],_0x145312=[];let _0x372d28=_0x45a645[_0x1306f0(0x2e4)](_0x554f90[_0x1306f0(0x143)][0x0]),_0x2c61a9=_0x45a645[_0x1306f0(0x2e4)](_0x554f90[_0x1306f0(0x143)][0x0]);for(let _0x9ee9d3=_0x1b6d6c[_0x1306f0(0x148)]-0x1;_0x9ee9d3>=0x0;_0x9ee9d3--){const _0xea29da={'id':_0x1306f0(0x1a4),'params':{'unitId':_0x1b6d6c[_0x9ee9d3][_0x1306f0(0x239)],..._0x1b6d6c[_0x9ee9d3][_0x1306f0(0x1e8)]}},_0x5d39cd={'id':_0x1306f0(0x1a4),'params':{'unitId':_0x1b6d6c[_0x9ee9d3][_0x1306f0(0x239)],..._0x1b6d6c[_0x9ee9d3][_0x1306f0(0x2b6)]}},_0x43212c=this[_0x1306f0(0x177)][_0x1306f0(0x2ac)](_0x372d28,_0xea29da,!0x1),_0x4a44bb=this[_0x1306f0(0x177)]['transformMutation'](_0x2c61a9,_0x5d39cd,!0x1);if(_0x1543e0(_0x43212c))throw _0x43212c[_0x1306f0(0x2e6)];if(_0x1543e0(_0x4a44bb))throw _0x4a44bb[_0x1306f0(0x2e6)];_0x4fa113[_0x1306f0(0x1f9)]({..._0x1b6d6c[_0x9ee9d3],'undoState':_0x43212c['m2Prime'][_0x1306f0(0x17c)],'redoState':_0x4a44bb[_0x1306f0(0x1ed)][_0x1306f0(0x17c)]}),_0x372d28=_0x43212c[_0x1306f0(0x38c)],_0x2c61a9=_0x4a44bb['m1Prime'];}_0x372d28=_0x45a645[_0x1306f0(0x2e4)](_0x554f90[_0x1306f0(0x143)][0x0]),_0x2c61a9=_0x45a645[_0x1306f0(0x2e4)](_0x554f90[_0x1306f0(0x143)][0x0]);for(let _0x7361f7=_0xcff54b[_0x1306f0(0x148)]-0x1;_0x7361f7>=0x0;_0x7361f7--){const _0x15a13b={'id':_0x1306f0(0x1a4),'params':{'unitId':_0xcff54b[_0x7361f7][_0x1306f0(0x239)],..._0xcff54b[_0x7361f7][_0x1306f0(0x1e8)]}},_0x32d3a8={'id':_0x1306f0(0x1a4),'params':{'unitId':_0xcff54b[_0x7361f7][_0x1306f0(0x239)],..._0xcff54b[_0x7361f7][_0x1306f0(0x2b6)]}},_0x3cee7f=this[_0x1306f0(0x177)]['transformMutation'](_0x372d28,_0x15a13b,!0x1),_0x29772b=this['_transformService']['transformMutation'](_0x2c61a9,_0x32d3a8,!0x1);if(_0x1543e0(_0x3cee7f))throw _0x3cee7f[_0x1306f0(0x2e6)];if(_0x1543e0(_0x29772b))throw _0x29772b['error'];_0x145312[_0x1306f0(0x1f9)]({..._0xcff54b[_0x7361f7],'undoState':_0x3cee7f[_0x1306f0(0x1ed)][_0x1306f0(0x17c)],'redoState':_0x29772b['m2Prime'][_0x1306f0(0x17c)]}),_0x372d28=_0x3cee7f[_0x1306f0(0x38c)],_0x2c61a9=_0x29772b[_0x1306f0(0x38c)];}this[_0x1306f0(0x1a8)]['setStateCache'](_0x26e577,{'history':_0x4fa113,'collaboration':_0x145312});}};ue=In([Le(0x0,_0x1769b1(_0x174327)),Le(0x1,_0x29c2d7),Le(0x2,_0x1769b1(_0x53b4e2))],ue);var mn=Object[_0x4db2cd(0x2ab)],fn=(_0x13d205,_0x3b7e11,_0x470dae,_0x11e181)=>{const _0x4c3ea2=_0x4db2cd;for(var _0x1909e0=_0x11e181>0x1?void 0x0:_0x11e181?mn(_0x3b7e11,_0x470dae):_0x3b7e11,_0x3e744d=_0x13d205[_0x4c3ea2(0x148)]-0x1,_0x837bba;_0x3e744d>=0x0;_0x3e744d--)(_0x837bba=_0x13d205[_0x3e744d])&&(_0x1909e0=_0x837bba(_0x1909e0)||_0x1909e0);return _0x1909e0;},ht=(_0x52e907,_0x55b89f)=>(_0x4ff2af,_0x186343)=>_0x55b89f(_0x4ff2af,_0x186343,_0x52e907);let de=class{constructor(_0x2cc8eb,_0x4fdee4){const _0x180f5e=_0x4db2cd;this[_0x180f5e(0x363)]=_0x2cc8eb,this[_0x180f5e(0x177)]=_0x4fdee4;}[_0x4db2cd(0x317)](_0x4adc80){const _0x4aa4de=_0x4db2cd;var _0x164204;const _0x48629c=this[_0x4aa4de(0x363)]['get'](_0x1b2212),_0x3129d2=(_0x164204=_0x48629c[_0x4aa4de(0x255)]())!=null?_0x164204:[];if(_0x3129d2['length']===0x0)return;const _0x4f846a=_0x4adc80[_0x4aa4de(0x2d5)],_0x256bc8=[{'id':_0x4aa4de(0x1a4),'params':{'unitId':_0x4f846a,'actions':null,'textRanges':_0x3129d2}}],_0x3ce312=this[_0x4aa4de(0x177)]['transformMutationsWithChangeset'](_0x4adc80,_0x256bc8);if(!_0x359420(_0x3ce312))throw _0x3ce312[_0x4aa4de(0x2e6)];const _0x3e301f=_0x3ce312[_0x4aa4de(0x1ed)][0x0]['params'][_0x4aa4de(0x350)];Array[_0x4aa4de(0x1e4)](_0x3e301f)&&_0x3e301f[_0x4aa4de(0x148)]&&_0x48629c['replaceDocRanges'](_0x3e301f,{'unitId':_0x4f846a,'subUnitId':_0x4f846a},!0x1);}};de=fn([ht(0x0,_0x1769b1(_0x174327)),ht(0x1,_0x29c2d7)],de);var gn=Object[_0x4db2cd(0x2ab)],En=(_0x282c3e,_0x45b9d1,_0x19415f,_0x238892)=>{const _0x27f7fd=_0x4db2cd;for(var _0x39b8ef=_0x238892>0x1?void 0x0:_0x238892?gn(_0x45b9d1,_0x19415f):_0x45b9d1,_0x3b6981=_0x282c3e[_0x27f7fd(0x148)]-0x1,_0x17f40b;_0x3b6981>=0x0;_0x3b6981--)(_0x17f40b=_0x282c3e[_0x3b6981])&&(_0x39b8ef=_0x17f40b(_0x39b8ef)||_0x39b8ef);return _0x39b8ef;},U=(_0x4a594a,_0x346333)=>(_0x70e284,_0x5cf6df)=>_0x346333(_0x70e284,_0x5cf6df,_0x4a594a);let Se=class extends _0x3432ff{constructor(_0x4f7709,_0x51fc36,_0x40f96a,_0x16e6f2,_0x219629,_0x5ac890,_0x2b5d71,_0x307d88){const _0x28cbbc=_0x4db2cd;super(),_(this,_0x28cbbc(0x17d),new _0x5b52bd(_0x47cd4a[_0x28cbbc(0x16c)])),(this['_docStateChangeManagerService']=_0x4f7709,this[_0x28cbbc(0x1ca)]=_0x51fc36,this[_0x28cbbc(0x164)]=_0x40f96a,this[_0x28cbbc(0x2dd)]=_0x16e6f2,this[_0x28cbbc(0x1d0)]=_0x219629,this[_0x28cbbc(0x141)]=_0x5ac890,this[_0x28cbbc(0x298)]=_0x2b5d71,this[_0x28cbbc(0x305)]=_0x307d88,this[_0x28cbbc(0x2af)]());}['_initEntityListener'](){const _0x523298=_0x4db2cd;this['disposeWithMe'](this['_collaborationController'][_0x523298(0x1b2)][_0x523298(0x278)](_0x544565=>{const _0x443af7=_0x523298,_0x320076=this[_0x443af7(0x1a8)][_0x443af7(0x381)][_0x443af7(0x278)](_0x2a109c=>{const _0x36bfff=_0x443af7;if(_0x2a109c==null)return;const {unitId:_0x550231,redoState:_0x320cc6,commandId:_0x3e5ba1}=_0x2a109c;if(_0x550231!==_0x544565[_0x36bfff(0x2d5)])return;const _0x209797={'id':_0x3e5ba1,'type':_0x485374[_0x36bfff(0x1f6)],'params':{'unitId':_0x550231,'actions':_0x320cc6[_0x36bfff(0x2bf)],'textRanges':null}};_0x544565[_0x36bfff(0x19b)](_0x209797);});if(_0x544565[_0x443af7(0x172)](_0x320076),_0x544565 instanceof _0x5ec973){const _0x12d2d6={'onTransformIME':_0x36c652=>this['_docTransformIMECacheService'][_0x443af7(0x224)](_0x36c652),'onTransformState':_0x296496=>this['_docTransformStateCacheService'][_0x443af7(0x2b1)](_0x296496),'onTransformSelections':_0x37756a=>this[_0x443af7(0x1d0)][_0x443af7(0x317)](_0x37756a),'onSyncEditingCollabCursor':_0x3447b2=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x3447b2),'onTransformRemoteChangesetByIMECache':_0x234704=>this[_0x443af7(0x164)][_0x443af7(0x2b9)](_0x234704),'onTransformRemoteChangesetByStateCache':_0x435817=>this[_0x443af7(0x2dd)][_0x443af7(0x2b9)](_0x435817)};_0x544565[_0x443af7(0x161)](_0x12d2d6);}}));}};Se=En([U(0x0,_0x1769b1(_0x53b4e2)),U(0x1,_0x1769b1(_0x17bb07)),U(0x2,_0x1769b1(he)),U(0x3,_0x1769b1(ue)),U(0x4,_0x1769b1(de)),U(0x5,_0x1769b1(ze)),U(0x6,_0x2671aa),U(0x7,_0x1769b1(_0x1a5fa4))],Se);var Z=(_0xd1edd4=>(_0xd1edd4[_0xd1edd4[_0x4db2cd(0x33d)]=0x0]=_0x4db2cd(0x33d),_0xd1edd4[_0xd1edd4['OK']=0x1]='OK',_0xd1edd4[_0xd1edd4['INTERNAL_ERROR']=0x2]=_0x4db2cd(0x214),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x218)]=0x3]=_0x4db2cd(0x218),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x211)]=0x4]=_0x4db2cd(0x211),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1f3)]=0x5]=_0x4db2cd(0x1f3),_0xd1edd4[_0xd1edd4['ALREADY_EXISTS']=0x6]=_0x4db2cd(0x283),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x265)]=0x7]='INVALID_ARGUMENT',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x30d)]=0x8]=_0x4db2cd(0x30d),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x36e)]=0x9]='COMPLETION_FINISHED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x154)]=0xa]=_0x4db2cd(0x154),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x155)]=0xb]=_0x4db2cd(0x155),_0xd1edd4[_0xd1edd4['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4db2cd(0x202),_0xd1edd4[_0xd1edd4['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x4db2cd(0x25e),_0xd1edd4[_0xd1edd4['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x4db2cd(0x1c6),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2f4)]=0xf]=_0x4db2cd(0x2f4),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2c3)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x323)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x27f)]=0x65]='ERROR_AGAIN',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x359)]=0xc9]=_0x4db2cd(0x359),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2d1)]=0xca]=_0x4db2cd(0x2d1),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x32c)]=0x1389]=_0x4db2cd(0x32c),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x30f)]=0x1771]=_0x4db2cd(0x30f),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x304)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x336)]=0x1773]=_0x4db2cd(0x336),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x160)]=0x1b59]='APPLY_REJECT',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2e8)]=0x1b5a]=_0x4db2cd(0x2e8),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x285)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xd1edd4[_0xd1edd4['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2d2)]=0x1b5d]=_0x4db2cd(0x2d2),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x15b)]=0x1f41]=_0x4db2cd(0x15b),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x215)]=0x2329]=_0x4db2cd(0x215),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1d4)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1be)]=0x232b]=_0x4db2cd(0x1be),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2f8)]=0x232c]=_0x4db2cd(0x2f8),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x267)]=0x232d]='LICENSE_DISTRO_REJECTED',_0xd1edd4[_0xd1edd4['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4db2cd(0x371),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x179)]=0x2712]=_0x4db2cd(0x179),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x18d)]=0x2713]=_0x4db2cd(0x18d),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x32e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x222)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x269)]=0x271b]=_0x4db2cd(0x269),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2b2)]=0x271c]=_0x4db2cd(0x2b2),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2ba)]=0x271d]=_0x4db2cd(0x2ba),_0xd1edd4[_0xd1edd4['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4db2cd(0x28c),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x294)]=0x271f]=_0x4db2cd(0x294),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2d3)]=0x2720]=_0x4db2cd(0x2d3),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x291)]=0x2af9]=_0x4db2cd(0x291),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x28d)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x20f)]=0x2ee2]=_0x4db2cd(0x20f),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2bb)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x35f)]=0x2ee4]=_0x4db2cd(0x35f),_0xd1edd4[_0xd1edd4['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x200)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1fd)]=0x32ca]=_0x4db2cd(0x1fd),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1b6)]=0x32cb]=_0x4db2cd(0x1b6),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x212)]=0x36b1]=_0x4db2cd(0x212),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x227)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2a3)]=0x36b3]=_0x4db2cd(0x2a3),_0xd1edd4[_0xd1edd4['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x4db2cd(0x165),_0xd1edd4[_0xd1edd4['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x4db2cd(0x330),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x318)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x307)]=0x36b7]=_0x4db2cd(0x307),_0xd1edd4[_0xd1edd4['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x4db2cd(0x180),_0xd1edd4[_0xd1edd4['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x4db2cd(0x32a),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x355)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x19a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x26d)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x2ad)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1e0)]=0x3a9a]=_0x4db2cd(0x1e0),_0xd1edd4[_0xd1edd4['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4db2cd(0x1f5),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x1b4)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0xd1edd4[_0xd1edd4['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x4db2cd(0x26c),_0xd1edd4[_0xd1edd4['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x4db2cd(0x362),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x331)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0xd1edd4[_0xd1edd4['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x4db2cd(0x1fe),_0xd1edd4[_0xd1edd4[_0x4db2cd(0x24e)]=-0x1]=_0x4db2cd(0x24e),_0xd1edd4))(Z||{});function vn(_0xb25e03){const _0x892e3b=_0x4db2cd;var _0x2f07c9,_0x1d71b3;const _0x3a7082=(_0x2f07c9=_0xb25e03['stageInfo'])==null?void 0x0:_0x2f07c9[_0x892e3b(0x343)],_0x1197a9=((_0x1d71b3=_0xb25e03[_0x892e3b(0x213)])==null?void 0x0:_0x1d71b3[_0x892e3b(0x195)])||0x0;return _0x3a7082===_0x1ec3a3[_0x892e3b(0x2b0)]&&_0x1197a9>0x0;}function pn(_0x1c2a46){const _0x6bde93=_0x4db2cd;return _0x1c2a46[_0x6bde93(0x1cb)]===_0x2d6caa[_0x6bde93(0x245)];}var On=Object[_0x4db2cd(0x2ab)],Tn=(_0x179570,_0x21a9af,_0x404a03,_0x4ba143)=>{const _0x257224=_0x4db2cd;for(var _0x153d49=_0x4ba143>0x1?void 0x0:_0x4ba143?On(_0x21a9af,_0x404a03):_0x21a9af,_0x1feda4=_0x179570[_0x257224(0x148)]-0x1,_0x5931fa;_0x1feda4>=0x0;_0x1feda4--)(_0x5931fa=_0x179570[_0x1feda4])&&(_0x153d49=_0x5931fa(_0x153d49)||_0x153d49);return _0x153d49;},P=(_0x76f876,_0x265863)=>(_0x56f41b,_0x127ff3)=>_0x265863(_0x56f41b,_0x127ff3,_0x76f876);const Cn=_0x4db2cd(0x14d),Rn=_0x4db2cd(0x361),Dn=_0x4db2cd(0x1a1);let Ie=class extends _0x3432ff{constructor(_0x5f3239,_0x560f04,_0x1862ab,_0x1e8cc2,_0x9498ca,_0xc0a295,_0x1b9588){const _0xabcf38=_0x4db2cd;super(),_(this,_0xabcf38(0x234),null),_(this,_0xabcf38(0x1d8),0x0),_(this,_0xabcf38(0x219),0x0),_(this,_0xabcf38(0x1bf),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x5f3239,this[_0xabcf38(0x27d)]=_0x560f04,this[_0xabcf38(0x19e)]=_0x1862ab,this['_httpService']=_0x1e8cc2,this[_0xabcf38(0x168)]=_0x9498ca,this[_0xabcf38(0x140)]=_0xc0a295,this[_0xabcf38(0x305)]=_0x1b9588,this[_0xabcf38(0x273)]());}[_0x4db2cd(0x273)](){const _0xcbd187=_0x4db2cd;this['disposeWithMe'](this['_commandService'][_0xcbd187(0x2a4)]((_0x364227,_0x460bf0)=>{const _0x31c4e0=_0xcbd187;var _0x57bdd1;if(_0x364227['id']!==_0x1b8d33['id'])return;const _0x2dc7f0=_0x364227['params'];if(!this['_hasFormulaInDirtyRanges']((_0x57bdd1=_0x2dc7f0[_0x31c4e0(0x257)])!=null?_0x57bdd1:[]))return;if(!this[_0x31c4e0(0x32f)]())throw this['_checkAndWaitForCalculationPermission'](_0x364227,_0x460bf0),this[_0x31c4e0(0x1ab)](),new _0x396bd6();})),this['disposeWithMe'](this[_0xcbd187(0x27d)]['onCommandExecuted']((_0x816781,_0x2d68cb)=>{const _0x84a58f=_0xcbd187;if(_0x816781['id']!==_0x491036['id'])return;const _0x1ac8c5=_0x816781['params'];if(vn(_0x1ac8c5)){const _0x5643cc=_0x23023b();this[_0x84a58f(0x1bf)]['push'](_0x5643cc),this[_0x84a58f(0x2d6)](_0x5643cc);}else{if(pn(_0x1ac8c5)&&this[_0x84a58f(0x1bf)][_0x84a58f(0x148)]>0x0){const _0x27f4d6=this[_0x84a58f(0x1bf)][_0x84a58f(0x1ec)]();this[_0x84a58f(0x150)](_0x27f4d6);}}}));}[_0x4db2cd(0x183)](){const _0x3ece1b=_0x4db2cd;super[_0x3ece1b(0x183)](),this[_0x3ece1b(0x2cb)](),this[_0x3ece1b(0x1bf)]=[],this[_0x3ece1b(0x219)]=0x0,this[_0x3ece1b(0x1d8)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x3a37da,_0x2df7a4){const _0x54fc4f=_0x4db2cd;for(let _0x4448fe=0x0;_0x4448fe<0x1e;_0x4448fe++)try{if(await this['_getFormulaLimitStatus'](),this[_0x54fc4f(0x32f)]()){this['_applyCommand'](_0x3a37da,_0x2df7a4),this[_0x54fc4f(0x298)]['show']({'content':this[_0x54fc4f(0x305)]['t'](_0x54fc4f(0x174)),'type':_0x17c4da['Success']});return;}await new Promise(_0x2fa8d7=>{const _0x258c43=_0x54fc4f;this[_0x258c43(0x234)]=window[_0x258c43(0x368)](_0x2fa8d7,0x3e8);});}catch(_0x1ba47f){this[_0x54fc4f(0x140)]['error'](_0x1ba47f);}this[_0x54fc4f(0x298)][_0x54fc4f(0x1bd)]({'content':this[_0x54fc4f(0x305)]['t']('formula.calculation.unable'),'type':_0x17c4da['Error']});}[_0x4db2cd(0x2db)](_0x3bac6d,_0x1148ba){const _0xb2f30b=_0x4db2cd;try{this[_0xb2f30b(0x27d)][_0xb2f30b(0x286)](_0x3bac6d['id'],_0x3bac6d['params'],_0x1148ba);}catch(_0x5d8379){this[_0xb2f30b(0x140)][_0xb2f30b(0x2e6)](_0x5d8379);}}[_0x4db2cd(0x2cc)](_0x31054b,_0x484704){const _0x2eae6f=_0x4db2cd;_0x484704<this[_0x2eae6f(0x2e1)]||(this[_0x2eae6f(0x2e1)]=_0x484704,this[_0x2eae6f(0x1d8)]=Number[_0x2eae6f(0x33a)](_0x31054b[_0x2eae6f(0x2c9)]),this[_0x2eae6f(0x219)]=Number[_0x2eae6f(0x33a)](_0x31054b[_0x2eae6f(0x37a)]));}async[_0x4db2cd(0x2d6)](_0x416c63){const _0x281222=_0x4db2cd;var _0x1957ac,_0x25c397;const _0x2ae44c=Date[_0x281222(0x1e3)]();try{const _0x33b3ca=((_0x1957ac=this[_0x281222(0x19e)][_0x281222(0x147)](_0x3e0c86))==null?void 0x0:_0x1957ac[_0x281222(0x35c)])||Rn,_0x36e95a=(await this[_0x281222(0x1cc)][_0x281222(0x258)](_0x33b3ca,{'body':JSON['stringify']({'taskId':_0x416c63})}))[_0x281222(0x24b)];if(((_0x25c397=_0x36e95a[_0x281222(0x2e6)])==null?void 0x0:_0x25c397[_0x281222(0x20a)])!==Z['OK'])return;this[_0x281222(0x2cc)](_0x36e95a['limitInfo'],_0x2ae44c);}catch(_0x14e240){this[_0x281222(0x140)][_0x281222(0x2e6)](_0x14e240);}}async[_0x4db2cd(0x1b9)](_0xe4a364){const _0x11ba04=_0x4db2cd;var _0x47151c,_0x402dd2;const _0x27704b=Date['now']();try{const _0x360c32=((_0x47151c=this[_0x11ba04(0x19e)][_0x11ba04(0x147)](_0x3e0c86))==null?void 0x0:_0x47151c[_0x11ba04(0x2fd)])||Cn,_0xa998dc=_0xe4a364?_0x360c32+_0x11ba04(0x2cd)+encodeURIComponent(_0xe4a364):_0x360c32,_0x4ab6f7=(await this[_0x11ba04(0x1cc)]['get'](_0xa998dc))['body'];if(((_0x402dd2=_0x4ab6f7[_0x11ba04(0x2e6)])==null?void 0x0:_0x402dd2[_0x11ba04(0x20a)])!==Z['OK'])return;this[_0x11ba04(0x2cc)](_0x4ab6f7[_0x11ba04(0x2e2)],_0x27704b);}catch(_0x13c3cb){this[_0x11ba04(0x140)][_0x11ba04(0x2e6)](_0x13c3cb);}}async[_0x4db2cd(0x150)](_0x38b077){const _0x344252=_0x4db2cd;var _0x4913df,_0x5cc574;const _0x516f51=Date['now']();try{const _0x33ab49=((_0x4913df=this['_configService'][_0x344252(0x147)](_0x3e0c86))==null?void 0x0:_0x4913df['releaseFormulaLimitUrl'])||Dn,_0x1ef9be=(await this[_0x344252(0x1cc)][_0x344252(0x258)](_0x33ab49,{'body':JSON[_0x344252(0x1c4)]({'taskId':_0x38b077})}))[_0x344252(0x24b)];if(((_0x5cc574=_0x1ef9be['error'])==null?void 0x0:_0x5cc574[_0x344252(0x20a)])!==Z['OK'])return;this[_0x344252(0x2cc)](_0x1ef9be['limitInfo'],_0x516f51);}catch(_0x17c39b){this[_0x344252(0x140)][_0x344252(0x2e6)](_0x17c39b);}}[_0x4db2cd(0x32f)](){const _0x5240b2=_0x4db2cd;return this[_0x5240b2(0x1d8)]===0x0?!0x0:this[_0x5240b2(0x1d8)]-this['_currentUsage']>0x0;}[_0x4db2cd(0x2cb)](){const _0x1308a3=_0x4db2cd;this[_0x1308a3(0x234)]&&(clearTimeout(this['_pollingInterval']),this[_0x1308a3(0x234)]=null);}[_0x4db2cd(0x1ab)](){const _0x440670=_0x4db2cd;this['_messageService']['show']({'content':this['_localeService']['t'](_0x440670(0x388)),'type':_0x17c4da[_0x440670(0x189)]});}[_0x4db2cd(0x163)](_0x227613){const _0x2e1484=_0x4db2cd;for(const _0x198053 of _0x227613){const {unitId:_0x16569a,sheetId:_0x564ef1,range:_0x2d5a59}=_0x198053,_0x256852=this[_0x2e1484(0x168)]['getUnit'](_0x16569a);if(!_0x256852)continue;const _0x41dccd=_0x256852['getSheetBySheetId'](_0x564ef1);if(!_0x41dccd)continue;const _0x36b975=_0x41dccd[_0x2e1484(0x347)]();for(let _0x4348e6=_0x2d5a59[_0x2e1484(0x35e)];_0x4348e6<=_0x2d5a59[_0x2e1484(0x374)];_0x4348e6++)for(let _0x2142e=_0x2d5a59['startColumn'];_0x2142e<=_0x2d5a59[_0x2e1484(0x1c1)];_0x2142e++){const _0x2daafb=_0x36b975[_0x2e1484(0x264)](_0x4348e6,_0x2142e);if(_0x2daafb&&(_0x30d206(_0x2daafb['f'])||_0x187138(_0x2daafb['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x1769b1(_0x2671aa)),P(0x1,_0x57c9c6),P(0x2,_0x1da30a),P(0x3,_0x1769b1(_0x45d6eb)),P(0x4,_0x26672b),P(0x5,_0x5cccfe),P(0x6,_0x1769b1(_0x1a5fa4))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x18baca,_0x280f58,_0x318a91,_0x5936f6)=>{for(var _0x2d5d61=_0x5936f6>0x1?void 0x0:_0x5936f6?Nn(_0x280f58,_0x318a91):_0x280f58,_0x9a6a00=_0x18baca['length']-0x1,_0x216353;_0x9a6a00>=0x0;_0x9a6a00--)(_0x216353=_0x18baca[_0x9a6a00])&&(_0x2d5d61=_0x216353(_0x2d5d61)||_0x2d5d61);return _0x2d5d61;},Ue=(_0x3d3f74,_0x52db1b)=>(_0x4dab8b,_0x24fa34)=>_0x52db1b(_0x4dab8b,_0x24fa34,_0x3d3f74);let He=class extends _0x3432ff{constructor(_0x310152,_0xe84d98,_0x493a3d){const _0x3ef38c=_0x4db2cd;super(),_(this,_0x3ef38c(0x314),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x3ef38c(0x240),!0x1),(this[_0x3ef38c(0x19e)]=_0x310152,this[_0x3ef38c(0x1bc)]=_0xe84d98,this[_0x3ef38c(0x1e9)]=_0x493a3d);}['disableLocalCache'](){const _0x6584eb=_0x4db2cd;this[_0x6584eb(0x240)]=!0x0;}['enableLocalCache'](){const _0x3f9a46=_0x4db2cd;this[_0x3f9a46(0x240)]=!0x1;}get[_0x4db2cd(0x1e2)](){return this['_saveTaskMap'];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x4db2cd(0x373)](_0x15ee15){return this['_disabled']?null:this['_localStorageService']['getItem'](_0x5a6170(_0x15ee15));}async[_0x4db2cd(0x2fa)](_0x2b169c,_0x167c5f){const _0x20a26e=_0x4db2cd;return!!this[_0x20a26e(0x1bc)][_0x20a26e(0x201)](_0x2b169c,_0x167c5f);}[_0x4db2cd(0x231)](_0x523a40,_0x3e9207,_0x45fcf7,_0x3a37ae){const _0x906c7=_0x4db2cd,_0x5cce86=this[_0x906c7(0x1e9)][_0x906c7(0x171)](_0x523a40);this[_0x906c7(0x314)][_0x906c7(0x225)](_0x523a40,{'unitID':_0x523a40,'type':_0x3e9207,'awaitingChangeset':_0x45fcf7,'mutations':_0x3a37ae,'rev':_0x5cce86}),this[_0x906c7(0x238)]['has'](_0x523a40)||this['_scheduleSaving'](_0x523a40);}[_0x4db2cd(0x22c)](_0x17993d){const _0x46776e=_0x4db2cd,_0x59bc94=this['_getSaveTimeout']();_0x59bc94===0x0?this[_0x46776e(0x377)](_0x17993d):this[_0x46776e(0x238)]['set'](_0x17993d,setTimeout(()=>this[_0x46776e(0x377)](_0x17993d),_0x59bc94));}['_getSaveTimeout'](){const _0x1194b9=_0x4db2cd;var _0x30a550;return(_0x30a550=this['_configService'][_0x1194b9(0x147)](_0x1752c6))!=null?_0x30a550:_0x49b43e;}[_0x4db2cd(0x377)](_0x4668d9){const _0x6dfd52=_0x4db2cd,_0x3e7a59=this[_0x6dfd52(0x238)][_0x6dfd52(0x31a)](_0x4668d9);return _0x3e7a59!==void 0x0&&window[_0x6dfd52(0x2f7)](_0x3e7a59),this[_0x6dfd52(0x1bc)]['setItem'](_0x5a6170(_0x4668d9),this[_0x6dfd52(0x314)][_0x6dfd52(0x31a)](_0x4668d9))[_0x6dfd52(0x2e9)](()=>this[_0x6dfd52(0x238)][_0x6dfd52(0x358)](_0x4668d9));}async[_0x4db2cd(0x242)](){const _0x53e627=_0x4db2cd,_0x28c6d9=[];this['_saveTaskMap'][_0x53e627(0x18c)]((_0x382119,_0x205c59)=>{const _0x2ed097=_0x53e627;window['clearTimeout'](_0x382119),_0x28c6d9['push'](this[_0x2ed097(0x377)](_0x205c59)[_0x2ed097(0x2e9)](()=>{const _0x397437=_0x2ed097;this[_0x397437(0x238)][_0x397437(0x358)](_0x205c59);}));}),await Promise['all'](_0x28c6d9);}};He=bn([Ue(0x0,_0x1da30a),Ue(0x1,_0x32527d),Ue(0x2,_0x1769b1(_0x2b64b6))],He);class Ln extends _0x505f3c{constructor(){const _0x1d49a3=_0x4db2cd;super(),_(this,_0x1d49a3(0x36c)),this['urlChange$']=_0x11377c(window,'popstate')[_0x1d49a3(0x1c9)](_0x3c083f(this[_0x1d49a3(0x250)]),_0x2cad0c(0x1),_0x26cfd0(void 0x0));}[_0x4db2cd(0x2c5)](_0x1d1126,_0x22d3c3,_0x3c5aed=!0x1){const _0x3da4d3=_0x4db2cd,_0x2351dc=new URL(window[_0x3da4d3(0x21c)][_0x3da4d3(0x22d)]);_0x2351dc[_0x3da4d3(0x2b7)][_0x3da4d3(0x225)](_0x1d1126,_0x22d3c3),_0x3c5aed?window['history'][_0x3da4d3(0x16f)]('','',_0x2351dc[_0x3da4d3(0x18b)]()):window['history']['pushState']('','',_0x2351dc[_0x3da4d3(0x18b)]());}[_0x4db2cd(0x379)](_0x4d5829,_0x1a288f=!0x1){const _0x250251=_0x4db2cd,_0x225571=new URL(window[_0x250251(0x21c)][_0x250251(0x22d)]);_0x225571['searchParams'][_0x250251(0x358)](_0x4d5829),_0x1a288f?window['history'][_0x250251(0x16f)]('','',_0x225571['toString']()):window[_0x250251(0x16e)][_0x250251(0x1cf)]('','',_0x225571[_0x250251(0x18b)]());}[_0x4db2cd(0x2f1)](_0x3df6fd){const _0x4e39df=_0x4db2cd;var _0x56ac82;return(_0x56ac82=new URL(window[_0x4e39df(0x21c)]['href'])[_0x4e39df(0x2b7)][_0x4e39df(0x31a)](_0x3df6fd))!=null?_0x56ac82:void 0x0;}}var Un=Object[_0x4db2cd(0x300)],Mn=Object[_0x4db2cd(0x2ab)],An=(_0x34275e,_0x57a4e5,_0x21f0f5)=>_0x57a4e5 in _0x34275e?Un(_0x34275e,_0x57a4e5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21f0f5}):_0x34275e[_0x57a4e5]=_0x21f0f5,Pn=(_0x57a59d,_0x5c76f9,_0x530115,_0x4d9449)=>{const _0x18057c=_0x4db2cd;for(var _0x2501bf=_0x4d9449>0x1?void 0x0:_0x4d9449?Mn(_0x5c76f9,_0x530115):_0x5c76f9,_0x552256=_0x57a59d[_0x18057c(0x148)]-0x1,_0x3ad90e;_0x552256>=0x0;_0x552256--)(_0x3ad90e=_0x57a59d[_0x552256])&&(_0x2501bf=_0x3ad90e(_0x2501bf)||_0x2501bf);return _0x2501bf;},Me=(_0x5b941f,_0x476327)=>(_0x17a581,_0x5a9f4b)=>_0x476327(_0x17a581,_0x5a9f4b,_0x5b941f),wn=(_0x466398,_0x1feb69,_0x2b04a0)=>An(_0x466398,_0x1feb69+'',_0x2b04a0);const yn=_0x4db2cd(0x369);let Ye=class extends _0x553922{constructor(_0x41a3ae=_t,_0x1c4c58,_0x2fe72d,_0x4bbe61){const _0x5823cd=_0x4db2cd;super(),this[_0x5823cd(0x162)]=_0x41a3ae,this[_0x5823cd(0x34f)]=_0x1c4c58,this['_injector']=_0x2fe72d,this[_0x5823cd(0x19e)]=_0x4bbe61;const {..._0x2189f9}=_0x41fb94({},_t,this[_0x5823cd(0x162)]);this[_0x5823cd(0x19e)][_0x5823cd(0x387)](hn,_0x2189f9);}[_0x4db2cd(0x287)](){const _0x34dd53=_0x4db2cd;this[_0x34dd53(0x203)](),this[_0x34dd53(0x1eb)]();}[_0x4db2cd(0x2aa)](){const _0x3af0d9=_0x4db2cd;this[_0x3af0d9(0x1d1)]();}[_0x4db2cd(0x203)](){const _0x537e8e=_0x4db2cd;var _0x200dab;const _0x9969b=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2288a6,{'useClass':_0x42b98f}],[_0x50d5d8,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x537e8e(0x162)][_0x537e8e(0x1f8)]&&_0x9969b[_0x537e8e(0x1b0)]([le]),_0x104b2f(this['_injector'],_0x3e996a(_0x9969b,(_0x200dab=this[_0x537e8e(0x162)])==null?void 0x0:_0x200dab[_0x537e8e(0x1ff)]));}[_0x4db2cd(0x1d1)](){const _0x1456b8=_0x4db2cd;this[_0x1456b8(0x172)](this[_0x1456b8(0x34f)][_0x1456b8(0x301)](_0x29eb03[_0x1456b8(0x1d2)],[Fe])),this[_0x1456b8(0x172)](this[_0x1456b8(0x34f)][_0x1456b8(0x301)](_0x29eb03[_0x1456b8(0x17b)],[ke]));}[_0x4db2cd(0x1eb)](){const _0x533d69=_0x4db2cd;_0x3a91ad(this[_0x533d69(0x363)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x533d69(0x162)][_0x533d69(0x1f8)]&&_0x3a91ad(this[_0x533d69(0x363)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3591f2(_0x57ce4b),Me(0x1,_0x556bf2),Me(0x2,_0x1769b1(_0x174327)),Me(0x3,_0x1da30a)],Ye);var $n=Object[_0x4db2cd(0x2ab)],xn=(_0x340e18,_0x6038ae,_0x3544af,_0x35dbf9)=>{const _0x74e360=_0x4db2cd;for(var _0xc71dcb=_0x35dbf9>0x1?void 0x0:_0x35dbf9?$n(_0x6038ae,_0x3544af):_0x6038ae,_0x42b462=_0x340e18[_0x74e360(0x148)]-0x1,_0x4f2881;_0x42b462>=0x0;_0x42b462--)(_0x4f2881=_0x340e18[_0x42b462])&&(_0xc71dcb=_0x4f2881(_0xc71dcb)||_0xc71dcb);return _0xc71dcb;},J=(_0x3c0212,_0x3948a6)=>(_0x425348,_0x5b0ec1)=>_0x3948a6(_0x425348,_0x5b0ec1,_0x3c0212);let ut=class extends _0x11765d{constructor(_0x9ddf9f,_0x3fd62a,_0x4bc962,_0x2d8c1d,_0x42bb6c){super(_0x9ddf9f,_0x3fd62a,_0x4bc962,_0x2d8c1d,_0x42bb6c);}async['createSocket'](_0x4bc933){const _0x33639b=_0x4db2cd,_0x2027c5=await this[_0x33639b(0x262)](),_0x2c363f=this[_0x33639b(0x261)](_0x4bc933,_0x2027c5);return this[_0x33639b(0x236)](_0x2c363f);}['_createSocketURL'](_0x32cfd1,_0x18d65b){const _0x61b813=_0x4db2cd,_0x2230cb=typeof window>'u'?new URL(_0x32cfd1):new URL(_0x32cfd1,window[_0x61b813(0x21c)][_0x61b813(0x15d)]);_0x2230cb[_0x61b813(0x2b7)][_0x61b813(0x225)](_0x61b813(0x35a),_0x18d65b);const _0x5d4fbd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x61b813(0x21c)]['search']);return _0x5d4fbd[_0x61b813(0x31a)](_0x61b813(0x1cd))&&_0x2230cb[_0x61b813(0x2b7)][_0x61b813(0x225)](_0x61b813(0x1cd),_0x5d4fbd[_0x61b813(0x31a)](_0x61b813(0x1cd))),_0x2230cb[_0x61b813(0x18b)]();}async[_0x4db2cd(0x262)](){const _0x34ed27=_0x4db2cd;var _0x174d42,_0xce23a5,_0x3c3382;const _0x3b2705=this[_0x34ed27(0x19e)][_0x34ed27(0x147)](_0x3e0c86),_0x1a048a=(_0x174d42=_0x3b2705==null?void 0x0:_0x3b2705[_0x34ed27(0x253)])!=null?_0x174d42:_0x509bd3;return(_0x3c3382=(_0xce23a5=(await this[_0x34ed27(0x1cc)][_0x34ed27(0x31a)](_0x1a048a,{'headers':{'Content-Type':_0x34ed27(0x2c8)}}))[_0x34ed27(0x24b)])==null?void 0x0:_0xce23a5[_0x34ed27(0x1e6)])!=null?_0x3c3382:'';}};ut=xn([J(0x0,_0x1769b1(_0x174327)),J(0x1,_0x1769b1(_0x45d6eb)),J(0x2,_0x1da30a),J(0x3,_0x5cccfe),J(0x4,_0x57aba9)],ut);var Bn=Object[_0x4db2cd(0x2ab)],Fn=(_0x58d625,_0x284209,_0x5cdda1,_0x5c4c95)=>{for(var _0x17fe90=_0x5c4c95>0x1?void 0x0:_0x5c4c95?Bn(_0x284209,_0x5cdda1):_0x284209,_0x57468b=_0x58d625['length']-0x1,_0x6d931e;_0x57468b>=0x0;_0x57468b--)(_0x6d931e=_0x58d625[_0x57468b])&&(_0x17fe90=_0x6d931e(_0x17fe90)||_0x17fe90);return _0x17fe90;},Ae=(_0x217053,_0x2dcc6c)=>(_0x33af15,_0x5f0ead)=>_0x2dcc6c(_0x33af15,_0x5f0ead,_0x217053);let dt=class extends _0x3432ff{constructor(_0x43f315,_0x5783bf,_0x5fc950){const _0x320b23=_0x4db2cd;super(),this[_0x320b23(0x1a6)]=_0x43f315,this['_httpService']=_0x5783bf,this[_0x320b23(0x19e)]=_0x5fc950;}async[_0x4db2cd(0x192)](_0x451d72,_0x25488a,_0x3d7f33,..._0x9eb082){const _0x5a8003=_0x4db2cd;var _0x5c42bd,_0x28aa60,_0x48b7ff,_0x4dfc24;const _0x320d57=this[_0x5a8003(0x1a6)][_0x5a8003(0x32d)]();if(!_0x320d57)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2c44e2=((_0x5c42bd=this['_configService']['getConfig'](_0x11b96f))!=null?_0x5c42bd:_0x5afe50)+'/'+_0x451d72+_0x5a8003(0x36b)+_0x25488a,_0x13aa25=new URL(window[_0x5a8003(0x21c)][_0x5a8003(0x22d)]),_0x289451={'scriptId':_0x451d72,'runId':(_0x28aa60=_0x13aa25['searchParams'][_0x5a8003(0x31a)](_0x5a8003(0x1cd)))!=null?_0x28aa60:'','function':_0x25488a,'unitId':_0x320d57[_0x5a8003(0x1ee)](),'argsOfFunction':JSON['stringify'](_0x9eb082),'invokeId':(_0x48b7ff=_0x3d7f33[_0x5a8003(0x237)])!=null?_0x48b7ff:'','executionId':(_0x4dfc24=_0x3d7f33['executionId'])!=null?_0x4dfc24:''};try{const _0x18a9a0=await this[_0x5a8003(0x1cc)]['post'](_0x2c44e2,{'body':_0x289451});return _0x18a9a0['body'][_0x5a8003(0x2e6)]&&_0x18a9a0[_0x5a8003(0x24b)][_0x5a8003(0x2e6)][_0x5a8003(0x20a)]!==Z['OK']?'Failed':_0x18a9a0[_0x5a8003(0x24b)]['result'];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x26672b),Ae(0x1,_0x1769b1(_0x45d6eb)),Ae(0x2,_0x1da30a)],dt);const St=0x7530,It=_0x4db2cd(0x311);function _0x24e1(_0x23514a,_0x3a2c99){_0x23514a=_0x23514a-0x140;const _0x28b290=_0x28b2();let _0x24e191=_0x28b290[_0x23514a];return _0x24e191;}class rr extends _0x3432ff{constructor(){const _0x3e7333=_0x4db2cd;super(),_(this,_0x3e7333(0x206),_0x23023b()),_(this,_0x3e7333(0x344),new Set()),_(this,_0x3e7333(0x187),new Map()),_(this,_0x3e7333(0x306),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x3e7333(0x2c0)]();}[_0x4db2cd(0x183)](){const _0x36e970=_0x4db2cd;super[_0x36e970(0x183)](),this[_0x36e970(0x2ff)][_0x36e970(0x18c)]((_0x771992,_0x3e7003)=>this['_removeClearOtherTimer'](_0x3e7003)),this[_0x36e970(0x306)]&&window[_0x36e970(0x376)](this['_heartbeatTimer']);}[_0x4db2cd(0x354)](_0x4d0a17){const _0x4a0b4c=_0x4db2cd;return this[_0x4a0b4c(0x181)](_0x4d0a17)[_0x4a0b4c(0x1c9)](_0x133c00());}[_0x4db2cd(0x228)](_0x2827e1){const _0x11e1d6=_0x4db2cd;this[_0x11e1d6(0x344)][_0x11e1d6(0x31c)]===0x0&&this['_scheduleHeartbeat'](),this[_0x11e1d6(0x344)]['add'](_0x2827e1),this[_0x11e1d6(0x1b7)]({'type':0x0,'memberID':this[_0x11e1d6(0x206)],'unitIDs':[_0x2827e1],'isForwarded':!0x1});}[_0x4db2cd(0x2ee)](_0x443121){const _0x1e9b37=_0x4db2cd;this['_selfUnitIDs'][_0x1e9b37(0x358)](_0x443121),this[_0x1e9b37(0x344)][_0x1e9b37(0x31c)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4db2cd(0x2c0)](){const _0x2e66b3=_0x4db2cd;this['disposeWithMe'](_0x53db76(_0x11377c(window,_0x2e66b3(0x329))[_0x2e66b3(0x278)](_0x55c75e=>{const _0x4c68a5=_0x2e66b3;if(_0x55c75e[_0x4c68a5(0x308)]!==It||!_0x55c75e[_0x4c68a5(0x339)])return;const _0x56e641=JSON['parse'](_0x55c75e[_0x4c68a5(0x339)]);this[_0x4c68a5(0x27e)](_0x56e641);}))),window['addEventListener']('unload',()=>this[_0x2e66b3(0x1b7)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2e66b3(0x2c1)](this['_selfUnitIDs'])}));}[_0x4db2cd(0x27e)](_0x246cd1){const _0x2dcc11=_0x4db2cd;switch(_0x246cd1[_0x2dcc11(0x326)]){case 0x0:this[_0x2dcc11(0x310)](_0x246cd1);break;case 0x1:this['_handleLeaveEvent'](_0x246cd1);break;case 0x2:this['_handleHeartbeatEvent'](_0x246cd1);break;}}[_0x4db2cd(0x310)](_0x1286cd){const _0x188d42=_0x4db2cd,{unitIDs:_0x9c2c84,memberID:_0x143440,isForwarded:_0x2ee962}=_0x1286cd;_0x9c2c84['forEach'](_0x158b06=>{const _0xd308b9=_0x24e1;if(!_0x2ee962&&this[_0xd308b9(0x187)]['has'](_0x158b06)&&this[_0xd308b9(0x181)](_0x158b06)['next'](_0x5c39db[_0xd308b9(0x352)]),!this['_unitOnClients']['has'](_0x158b06)||!this[_0xd308b9(0x187)][_0xd308b9(0x31a)](_0x158b06)['has'](_0x143440)){const _0x4671ad=this[_0xd308b9(0x187)][_0xd308b9(0x31a)](_0x158b06)||new Set();_0x4671ad['add'](_0x143440),this['_unitOnClients'][_0xd308b9(0x225)](_0x158b06,_0x4671ad),this[_0xd308b9(0x36a)](_0x143440);}}),_0x2ee962||this[_0x188d42(0x1b7)]({'type':0x0,'memberID':this[_0x188d42(0x206)],'unitIDs':[...this[_0x188d42(0x344)]],'isForwarded':!0x0});}[_0x4db2cd(0x36a)](_0x427fba){const _0x1a4d4=_0x4db2cd;this['_removeClearOtherTimer'](_0x427fba);const _0x1f3274=window[_0x1a4d4(0x368)](()=>{const _0xbd1157=_0x1a4d4;this[_0xbd1157(0x187)]['forEach'](_0x8936b0=>{_0x8936b0['delete'](_0x427fba);});},St*0x2);this[_0x1a4d4(0x2ff)][_0x1a4d4(0x225)](_0x427fba,_0x1f3274);}['_removeClearOtherTimer'](_0x1dc0bd){const _0x37ec7e=_0x4db2cd;if(this[_0x37ec7e(0x2ff)][_0x37ec7e(0x22e)](_0x1dc0bd)){const _0x174667=this[_0x37ec7e(0x2ff)][_0x37ec7e(0x31a)](_0x1dc0bd);_0x174667&&window['clearTimeout'](_0x174667),this[_0x37ec7e(0x2ff)]['set'](_0x1dc0bd,null);}}[_0x4db2cd(0x196)](_0x4f1904){const _0x2f15fd=_0x4db2cd,{memberID:_0x28443f,unitIDs:_0x39b215}=_0x4f1904;_0x39b215[_0x2f15fd(0x18c)](_0x599975=>{const _0x11342d=_0x2f15fd;var _0x3dc22c;const _0xc0532c=this['_unitOnClients'][_0x11342d(0x31a)](_0x599975);_0xc0532c&&(_0xc0532c['delete'](_0x28443f),(_0x3dc22c=this[_0x11342d(0x181)](_0x599975))==null||_0x3dc22c[_0x11342d(0x2dc)](_0xc0532c[_0x11342d(0x31c)]===0x0?_0x5c39db[_0x11342d(0x332)]:_0x5c39db[_0x11342d(0x352)]));}),this['_removeClearOtherTimer'](_0x28443f);}[_0x4db2cd(0x389)](_0x370474){const _0x49eb4b=_0x4db2cd;this[_0x49eb4b(0x36a)](_0x370474[_0x49eb4b(0x166)]);}['_send'](_0x45411f){const _0x546ca2=_0x4db2cd;localStorage['setItem'](It,JSON[_0x546ca2(0x1c4)](_0x45411f));}[_0x4db2cd(0x266)](){const _0x46128f=_0x4db2cd;this[_0x46128f(0x306)]=window[_0x46128f(0x263)](()=>{const _0x2202b5=_0x46128f;this[_0x2202b5(0x1b7)]({'type':0x2,'memberID':this[_0x2202b5(0x206)]});},St);}[_0x4db2cd(0x181)](_0xa37b70){const _0x1e39b7=_0x4db2cd;return this[_0x1e39b7(0x2d0)][_0x1e39b7(0x22e)](_0xa37b70)||this[_0x1e39b7(0x2d0)]['set'](_0xa37b70,new _0x5b52bd(_0x5c39db[_0x1e39b7(0x332)])),this['_unitStatus'][_0x1e39b7(0x31a)](_0xa37b70);}}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};
|