@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3d1cfdf
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/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x32c856=_0x403b;(function(_0x57ab48,_0x2be76f){const _0x441005=_0x403b,_0x44fc92=_0x57ab48();while(!![]){try{const _0x43ca00=parseInt(_0x441005(0x11f))/0x1*(parseInt(_0x441005(0x324))/0x2)+-parseInt(_0x441005(0x360))/0x3*(parseInt(_0x441005(0x230))/0x4)+parseInt(_0x441005(0x1e5))/0x5+-parseInt(_0x441005(0x11b))/0x6+-parseInt(_0x441005(0x1fc))/0x7+parseInt(_0x441005(0x124))/0x8*(-parseInt(_0x441005(0x31a))/0x9)+parseInt(_0x441005(0x2b6))/0xa*(parseInt(_0x441005(0x14f))/0xb);if(_0x43ca00===_0x2be76f)break;else _0x44fc92['push'](_0x44fc92['shift']());}catch(_0xd4adac){_0x44fc92['push'](_0x44fc92['shift']());}}}(_0x1b0a,0x2534f));var Yt=Object[_0x32c856(0x17f)],Wt=(_0xa073bf,_0x381c20,_0x487f89)=>_0x381c20 in _0xa073bf?Yt(_0xa073bf,_0x381c20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x487f89}):_0xa073bf[_0x381c20]=_0x487f89,_=(_0x1b0391,_0x4f7923,_0x28e290)=>Wt(_0x1b0391,typeof _0x4f7923!=_0x32c856(0x27d)?_0x4f7923+'':_0x4f7923,_0x28e290);import{jsx as _0x5493cd,jsxs as _0x1af67e}from'react/jsx-runtime';import{CollaborationStatus as _0x4c2ad5,CollaborationSessionService as _0x587ed6,CollaborationController as _0x5c5058,DataLoaderService as _0x273a2e,MemberService as _0x522824,SessionStatus as _0x575fec,ILocalCacheService as _0x58c896,CollaborationUIEventService as _0x168d8a,CollaborationUIEventId as _0xa2113b,DocCollaborationEntity as _0x4e3ede,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3fe88d,getLocalCacheKey as _0x229de6,LOCAL_CACHE_INTERVAL as _0x5a6993,LOCAL_CACHE_INTERVAL_KEY as _0x2bfc4e,UniverCollaborationClientPlugin as _0x1804b3,CollaborationSocketService as _0x15cd37,DEFAULT_WS_SESSION_TICKET_URL as _0x48cac4,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5f3381,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3c751e,UnitStatus as _0x52dba4}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x19887b,IUniverInstanceService as _0x5ca55f,Inject as _0xb67117,Injector as _0x2d24f1,Disposable as _0x4ca9c1,createIdentifier as _0x4e5cb2,ILogService as _0x3f6a9a,ICommandService as _0x156a6d,Optional as _0x5aa7d3,RxDisposable as _0x2ed217,Workbook as _0x4f2df7,DOC_RANGE_TYPE as _0x5c4026,debounce as _0x5afc05,Rectangle as _0x396a74,DisposableCollection as _0x25c632,toDisposable as _0x1b8af1,UniverInstanceType as _0x4f09e5,generateRandomId as _0x3baa1f,COLORS as _0x588a4b,ColorKit as _0x1dccbf,ThemeService as _0x56a243,fromEventSubject as _0x402d62,Tools as _0x5065b3,CommandType as _0xd457e7,IConfigService as _0x11135c,CanceledError as _0xc86ab2,isFormulaString as _0x45b7f1,isFormulaId as _0x89f427,ILocalStorageService as _0x15516c,DependentOn as _0x11a274,Plugin as _0xe8b968,merge as _0x8e76ea,registerDependencies as _0x5dea0c,mergeOverrideWithDependencies as _0x586813,touchDependencies as _0x310bec}from'@univerjs/core';import{useObservable as _0x1c33a8,useDependency as _0x460196,IUIPartsService as _0x2f68b9,BuiltInUIPart as _0x258084,connectInjector as _0x228f0a,IBeforeCloseService as _0x1cd947,IMessageService as _0x2f7eba,INotificationService as _0x5e175a}from'@univerjs/ui';import{BehaviorSubject as _0x41d101,switchMap as _0x56c1e8,of as _0x5ee058,takeUntil as _0x67f666,debounceTime as _0x46df12,Subject as _0x5efb66,filter as _0x46c4a8,merge as _0x486cdc,combineLatest as _0x2119f1,fromEvent as _0x3ec5c6,shareReplay as _0x4ece6c,mapTo as _0x51e742,distinctUntilChanged as _0x1c16f5}from'rxjs';import{Tooltip as _0x3b870b,clsx as _0x378f5c,MessageType as _0x4659ab}from'@univerjs/design';import{useRef as _0x222106,createElement as _0x3f9b2e,forwardRef as _0x1fac2f,useCallback as _0x48bd4d}from'react';import{IRemoteInstanceService as _0x431e00}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x593f00,RefRangeService as _0x14fcb5,SetSelectionsOperation as _0x540687,SheetsSelectionsService as _0xd7d38a,EffectRefRangId as _0x2b9ce8,handleIRemoveRow as _0x42945e,handleIRemoveCol as _0x365800,handleMoveRange as _0x540c44,handleInsertRow as _0x20f1d3,handleInsertRangeMoveRight as _0x502556,handleInsertRangeMoveDown as _0x5405c9,handleInsertCol as _0x202d24,handleDeleteRangeMoveUp as _0x21f53c,handleDeleteRangeMoveLeft as _0x2d748d,runRefRangeMutations as _0x25e741}from'@univerjs/sheets';import{Shape as _0xd21fe3,Rect as _0x1310d2,getColor as _0x13fecd,RegularPolygon as _0x320ae7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3ee913,Vector2 as _0x9ebff6,SHEET_VIEWPORT_KEY as _0x2099da,IRenderManagerService as _0xd3a36}from'@univerjs/engine-render';import{HTTPService as _0x2841df,ISocketService as _0x40d85f,WebSocketService as _0x372265}from'@univerjs/network';function _0x1b0a(){const _0x4a8fc6=['svg','displayName','[RemoteUniscriptService]:\x20no\x20focused\x20unit','runOnServer','_setFormulaLimitStatus','symbol','replace','key','REDEMPTION_USER_NOT_ELIGIBLE','ALREADY_EXISTS','blue.400','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','forEach','_updateCollabCursors','http://www.w3.org/2000/svg','_applyCommand','_drawRectRange','ENTITLE_REPORT_LIMIT_EXCEED','?taskId=','whenReady','SUCCESS','substring','pipe','color','m2Prime','INVALID_ARGUMENT','_taskIds','ENTITLE_INSUFFICIENT_QUOTA','attrs','type','_drawAnchor','onCommandExecuted','getCurrentSelections','url(#on-line-icon_clip0_910_349)','getCollabCursors$','...','_refreshCollabCursors','selections','permission.title','includes','hovered','sessionTicket','REDEMPTION_CODE_HAS_BEEN_CREATED','ENTITLE_INVALID_COUPON_CODE','on-line-icon','post','replaceState','fill','_backgroundColor','UNDEFINED','_hasFormulaInDirtyRanges','clipPath','_initStatusComponent','_ensureSubject','MoveRangeCommandId','UniverIcon','OTHER_CLIENTS_EDITING','_docClipboardService','APPLY_DUPLICATED','get','reason','saveImage','16990MNfbuc','stringify','doc.mutation.rich-text-editing','_clearOtherTimers','USERS_LEAVE','with','getCellPositionByOffset','actions','addClipboardHook','subscribe','getViewport','getMemberID','isActive','size','_docTransformSelectionsService','catch','on-line-icon_clip0_910_349','shift','SUBMIT_CHANGESET_TIMEOUT','memberID','_initResize','makeDirty','EMAIL_VERIFY_CODE_MISMATCH','_handleHeartbeatEvent','collabStatus.synced','_scheduleClearOtherTimer','collaboration.closeRoom','getCollabEntity$','currentTheme$','_colorIndex','_collaborationUIEventService','_shapes','_unitOnClients','origin','_range','[Unhandled\x20Rejection]:\x20','syncEditingCollabCursor','complete','transformByState','parse','join','startsWith','addObject','PENDING','_pollingInterval','getValue','filename','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','TOO_MANY_REQUESTS','_collabCursorState$','restore','isEditing','_clearPolling','_render','YUUMI_AI_RUN_FAILED','add','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_showGuardMessage','href','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_RATE_OVER_LIMIT','urlChange$','_initDependencies','getVpScrollXYInfoByPosToVp','send','engine','getCellMatrix','code','NO_OTHER_CLIENTS_EDITING','collabStatus.notCollab','collab-client.tooltip.reconnect','CHANGESET_REVISION_CONFILICT','evenodd','_saveCache','univer-flex\x20univer-items-center','endRow','push','USER_IS_ANONYMOUS','_initEvent','getUnhiddenWorksheets','data','mask','InsertRowCommandId','Success','setParam','_handleJoinEvent','_onCursorUpdate','_getSheetObject','addObjects','SOCKET_FAILED','use','getStateCache','ERROR_AGAIN','url(#off-line-icon_clip0_910_343)','sheetID','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_UNITS_EXCEEDED','_docSkeletonManagerService','findNodePositionByCharIndex','currentColor','333NnDzgC','top','m1Prime','_instanceService','YUUMI_SUBSCRIPTION_NOT_FOUND','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getSheetId','INVITE_CODE_ALREADY_BOUND','startColumn','_initUserListener','60JYfZYh','_removeClearOtherTimer','_drawTextRange','maxFormulaLimit','removeEventListener','_selfUnitIDs','_startCalculationLimit','executionId','transformStateCache','session.connection-failed','assignAColorForMemberID','clearInterval','NOT_FOUND','disposeWithMe','width','collabCursorState$','deepClone','_initUnhandledRejectionListener','registerRefRange','bottom','_localeService','getUniverSheetInstance','YUUMI_ASYNCIO_CANCELLED','_sheetSkeletonManagerService','getRelativeToViewportCoord','MOBILE_HAS_BEEN_BOUND','OnLineIcon','_transformService','_docSkeleton','_refRangeService','getRenderById','find','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchorDot','getCurrent','unshift','_cursors','UPDATE_CURSOR','formula.calculation.unable','[LogService\x20Error]:\x20','VIEW_MAIN','PAYMENT_CHANNEL_NOT_SUPPORT','_renderManagerService','LICENSE_DISTRO_REJECTED','getformulaLimitStatusUrl','getActiveSheet','_init','unit','limitInfo','status$','_colorAssignService','redoState','flatMap','0\x200\x2017\x2016','_scheduleHeartbeat','OffLineIcon','searchParams','_startSheetCollabCursor','_handleEvent','3BpkNNV','YUUMI_TABLE_NOT_FOUND_IN_UNIT','onStarting','beforeCommandExecuted','column','getRangePointData','getColorFromTheme','ENTITLE_COUPON_EXPIRED','_initWindowErrorListener','onPointerEnter$','609348nLIiEv','getTypeOfUnitDisposed$','ENSURE_SNAPSHOT_EXECUTION','getCurrentRevOfUnit','103HYwZXC','ACTIVE_UNIT_EVENT_CHANNEL','LICENSE_IMPORT_SIZE_EXCEEDED','children','unhandledrejection','54904MhHmWJ','setTimeout','YUUMI_UNABLE_LOAD_URL','_toggleOffline','params','_messageService','triggerDblclick','_localCacheService','saveTaskMap','_transformHistoryAndStateStack','error','idSuffix','registerComponent','formula.calculation.waiting','\x20at\x20','string','current','_initCommandExecutedListener','removeParam','[CollaborationDataLoaderController]','setUndoRedoMutationParamsCache','collaboration.single-unit.warning','subscribeEvent','JOIN_ROOM_FAILED','off-line-icon','collabStatus.offline','getAncestorScale','REDEMPTION_INVALID_CODE','enableLocalCache','getItem','_unitStatus','REDEMPTION_CODE_NOT_STARTED','_cursorShapes','focused$','_lastResponseTimestamp','HEADER_MENU','collab-text-range-','APPLY_REVISION_CONFILICT','REDEMPTION_CODE_FULLY_REDEEMED','range','translate(.97)','entries','defs','3663WSgHTo','Error','_cursor','history','ranges','startRow','length','SYNCED','setItem','_initEntityListener','drawWith','_getSessionTicket','_commandService','arc','getUnitId','transformSelections','clearTimeout','functionsExecutedState','body','_anchor','height','Warning','subunit','APPLY_REJECT','_memberService','_entityInit$','getOwnPropertyDescriptor','pushState','_labelPosition','row','lineno','INVALID_INVITE_CODE','text','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerMove$','_maxFormulaLimit','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_currentUsage','newValue','CONFLICT','tag','defIds','values','setShapeProps','_docStateChangeManagerService','location','_docTransformIMECacheService','toString','defineProperty','AWAITING_WITH_PENDING','_session','/universer-api/license/formula/limit/status','_updateURLWithCurrentState','_collaborationController','/universer-api/frontend/logs','_memberID','_updateLocalCursor','onPointerLeave$','transformIMECache','_checkCalculationAvailable','_imageIoService','dispose','transformMutation','_localStorageService','stack','eventID','set','roomMembers','_hovered','_handleLeaveEvent','_checkAndWaitForCalculationPermission','unitId','storage','FETCH_MISS','YUUMI_URL_COL_OUT_OF_RANGE','name','colorChannel1','UNAUTHENTICATED','sessionStatus$','wsSessionTicketUrl','_univerInstanceService','ticket','_initCommandInterceptor','/run/','getConfig','currentUsage','ENTITLE_NEED_BILLING_ADDRESS','xlink:href','NOT_COLLAB','permission.content','CURRENT_STATUS_CANNOT_OPERATE','textRanges','debug','_transformPreviousActiveRange','FromArray','APPLY_PERMISSION_DENIED','_color','_scene','addHandlerCallback','/universer-api/license/formula/limit/done','YUUMI_CONNECTOR_URL_NOT_FOUND','_logService','transformMutationsWithChangeset','_entities','next','isArray','some','onMouseMove','onRendered','green.600','sheetId','EMAIL_HAS_BEEN_BOUND','_setupBeforeClosingHandler','_initStatusListener','path','UNIVER_SHEET','RemoveRowCommandId','getMergeData','_lastPointer','backgroundColor','unsubscribe','socket$','hide','setInterval','lineTo','assign','beginPath','yellow.400','bind','_uiPartsService','_themeService','roomMembers$','registerRenderModule','_draw','_onRefRangeChange','TEXT','event$','getDocRanges','_setupSubUnitSync','_collabSessionService','_scheduleSaving','_textBubble','[Window\x20Error]:\x20','_transformUndoRedoStack','getSkeleton','_cachedData','_document','setStateCache','unitID','imageSourceType','623165aoufZL','jiqing.500','map','exhaustSavingTask','show','div','DATA_SOURCE_TOO_LARGE','_beforeCloseService','_heartbeatTimer','_onCursorDelete','addEventListener','setActiveRange','requireSession','_urlService','_revisionService','_disabled','_injector','getMember','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','AWAITING','createInstance','_updateSubUnitFromURLParams','916664czUkqm','_context','_uploadLog','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','asObservable','_getFormulaLimitStatus','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','selection','enableFrontendLog','START_CALCULATION','_getSaveTimeout','getParam','CLOSE_ROOM','all','now','uni.network.url-service','labelPosition','INVITE_CODE_HAS_BEEN_UES','SNAPSHOT_HAS_BEEN_REMOVED','invokeId','fillText','min','rgba(255,\x20255,\x20255,\x200.01)','_config','replaceDocRanges','_assignedColors','_send','entityInit$','Unknown\x20user','contains','currentSkeleton$','undoState','fillRule','application/json','1em','ENTITLE_CHAT_LIMIT_EXCEED','_online','_httpService','off-line-icon_clip0_910_343','UNIVER_DOC','override','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OFFLINE','MOBILE_VERIFY_CODE_MISMATCH','WECHAT_HAS_BEEN_BOUND','_saveTaskMap','from','stage','unload','LOGIN_FAILED','endColumn','218600LVjJJI','YUUMI_ALL_TABLES_IS_INVALID','onTransformChange$','getTypeOfUnitAdded$','ENTITLE_COUPON_USED_UP','mutations','dispose$','saveOfflineData','collaboration.offline-data-not-saved','session.collaboration-timeout','_hover','fillStyle','has','PY_RUNTIME_SCRIPT_ERROR','_configService','round','_roomMembers$','_registerDependencies','black','_createSocketURL','_syncEditingCollabCursorService','measureText','_handleHover','CONNECTOR_DATA_TOO_LARGE','_releaseCalculationLimit','_status$','_toggleOnline','_getAnchorBounding','PERMISSION_DENIED','RECT','reconnect','delete','_cursorInfo$','disposeUnit','_registerRenderDependencies','split','startFormulaLimitUrl','INTERNAL_ERROR','APPLY_NON_SEQUENTIAL_REVISION','_getScale','_docSyncEditingCollabCursorService','runId','then','_hideTimer','REDEMPTION_CODE_INACTIVE','trim','ONLINE','DeleteRangeMoveLeftCommandId','getSheetBySheetId','toRgbString','formula.calculation.started','_notificationService','cursorInfo','transformRemoteChangeset','getFocusedUnit','popstate','cursorInfo$','INVITE_CODE_REQUIRED','collabStatus.syncing','_eventUnsubscribe','_id','init','executeCommand','totalFormulasToCalculate','_startDocCollabCursor','UNRECOGNIZED','Failed','M0\x200H16V16H0z','setConfig','save','getUnit','_removeCollabCursors'];_0x1b0a=function(){return _0x4a8fc6;};return _0x1b0a();}import{IDocClipboardService as _0x57fc3a,NodePositionConvertToCursor as _0x5d71a8,NodePositionConvertToRectRange as _0x2247c5,TEXT_RANGE_LAYER_INDEX as _0x473fb7,SetDocZoomRatioOperation as _0x43466a,DocIMEInputManagerService as _0x31d69b,DocStateChangeManagerService as _0x228351}from'@univerjs/docs-ui';import{IImageIoService as _0x535bd8}from'@univerjs/drawing';import{ITransformService as _0x55d9fe,CollaborationEvent as _0x37a19e,isTransformMutationFailure as _0x28a617,isTransformMutationsWithChangesetSuccess as _0x483523,RevisionService as _0x363489,ISnapshotServerService as _0x4d6ee2}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x285f06,RichTextEditingMutation as _0x33706b,DocSelectionManagerService as _0x3fd45e,DocSkeletonManagerService as _0x72d0b4}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2adee1,serializeRangeWithSheet as _0x29f909,FormulaExecuteStageType as _0x418364,FormulaExecutedStateType as _0x1d1fe7,SetFormulaCalculationStartMutation as _0xc0ef9d,SetFormulaCalculationNotificationMutation as _0x22ae1d}from'@univerjs/engine-formula';import{map as _0x33188f,filter as _0x88e841,throttleTime as _0x570b9f,takeUntil as _0xcdf3c0,switchMap as _0x320766}from'rxjs/operators';import{SheetSkeletonManagerService as _0x150f98,getCoordByCell as _0x245eeb,getSheetObject as _0x477d6e}from'@univerjs/sheets-ui';function Ge({ref:_0x54c60e,..._0x5bdeb0}){const _0x8edb3c=_0x32c856,{icon:_0x4a14cc,id:_0x5f141a,className:_0x73d44,extend:_0x3f8a43,..._0x1eaad5}=_0x5bdeb0,_0x4e47b0=('univerjs-icon\x20univerjs-icon-'+_0x5f141a+'\x20'+(_0x73d44||''))[_0x8edb3c(0x25d)](),_0x41bf42=_0x222106('_'+vi());return At(_0x4a14cc,''+_0x5f141a,{'defIds':_0x4a14cc[_0x8edb3c(0x178)],'idSuffix':_0x41bf42[_0x8edb3c(0x134)]},{'ref':_0x54c60e,'className':_0x4e47b0,..._0x1eaad5},_0x3f8a43);}function At(_0x1d2f26,_0x4f49b7,_0xb52c92,_0x285b81,_0x2c2563){const _0x4c31b3=_0x32c856;return _0x3f9b2e(_0x1d2f26[_0x4c31b3(0x177)],{'key':_0x4f49b7,...gi(_0x1d2f26,_0xb52c92,_0x2c2563),..._0x285b81},(Ei(_0x1d2f26,_0xb52c92)[_0x4c31b3(0x122)]||[])['map']((_0x1a9ff2,_0x186b92)=>At(_0x1a9ff2,_0x4f49b7+'-'+_0x1d2f26[_0x4c31b3(0x177)]+'-'+_0x186b92,_0xb52c92,void 0x0,_0x2c2563)));}function gi(_0x974c2,_0x239015,_0x364fae){const _0x3922b2=_0x32c856,_0x592961={..._0x974c2[_0x3922b2(0x294)]};_0x364fae!=null&&_0x364fae[_0x3922b2(0x19b)]&&_0x592961[_0x3922b2(0x2a7)]==='colorChannel1'&&(_0x592961[_0x3922b2(0x2a7)]=_0x364fae[_0x3922b2(0x19b)]),_0x974c2['tag']===_0x3922b2(0x307)&&_0x592961['id']&&(_0x592961['id']=_0x592961['id']+_0x239015[_0x3922b2(0x12f)]),Object[_0x3922b2(0x14d)](_0x592961)[_0x3922b2(0x284)](([_0x4ae00e,_0x33559f])=>{const _0x2a1358=_0x3922b2;_0x4ae00e===_0x2a1358(0x307)&&typeof _0x33559f==_0x2a1358(0x133)&&(_0x592961[_0x4ae00e]=_0x33559f[_0x2a1358(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x239015[_0x2a1358(0x12f)]+')'));});const {defIds:_0x2707b0}=_0x239015;return!_0x2707b0||_0x2707b0[_0x3922b2(0x155)]===0x0||(_0x974c2[_0x3922b2(0x177)]===_0x3922b2(0x310)&&_0x592961['xlink:href']&&(_0x592961[_0x3922b2(0x1a6)]=_0x592961['xlink:href']+_0x239015['idSuffix']),Object[_0x3922b2(0x14d)](_0x592961)[_0x3922b2(0x284)](([_0x20710c,_0x163c48])=>{const _0x4b0872=_0x3922b2;typeof _0x163c48==_0x4b0872(0x133)&&(_0x592961[_0x20710c]=_0x163c48[_0x4b0872(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x239015[_0x4b0872(0x12f)]+')'));})),_0x592961;}function Ei(_0xea1c2f,_0x589218){const _0x2a3c89=_0x32c856;var _0x1e2f3a;const {defIds:_0x34b163}=_0x589218;return!_0x34b163||_0x34b163[_0x2a3c89(0x155)]===0x0?_0xea1c2f:_0xea1c2f[_0x2a3c89(0x177)]===_0x2a3c89(0x14e)&&((_0x1e2f3a=_0xea1c2f[_0x2a3c89(0x122)])!=null&&_0x1e2f3a[_0x2a3c89(0x155)])?{..._0xea1c2f,'children':_0xea1c2f[_0x2a3c89(0x122)][_0x2a3c89(0x1e7)](_0x23ae45=>typeof _0x23ae45['attrs']['id']==_0x2a3c89(0x133)&&_0x34b163&&_0x34b163['includes'](_0x23ae45[_0x2a3c89(0x294)]['id'])?{..._0x23ae45,'attrs':{..._0x23ae45[_0x2a3c89(0x294)],'id':_0x23ae45['attrs']['id']+_0x589218[_0x2a3c89(0x12f)]}}:_0x23ae45)}:_0xea1c2f;}function vi(){const _0xce018c=_0x32c856;return Math['random']()[_0xce018c(0x17e)](0x24)[_0xce018c(0x28d)](0x2,0x8);}Ge['displayName']=_0x32c856(0x2af);const pi={'tag':_0x32c856(0x278),'attrs':{'xmlns':_0x32c856(0x286),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x32c856(0x21f),'height':_0x32c856(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x32c856(0x313)},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'stroke':_0x32c856(0x319),'d':_0x32c856(0x2e5),'strokeLinecap':_0x32c856(0x23f),'strokeLinejoin':_0x32c856(0x23f),'strokeWidth':1.2}}]},{'tag':_0x32c856(0x14e),'attrs':{},'children':[{'tag':_0x32c856(0x2ab),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'fill':'white','d':_0x32c856(0x273)}}]}]}],'defIds':[_0x32c856(0x223)]},Pt=_0x1fac2f(function(_0x34f01c,_0x69c7f){const _0x191e93=_0x32c856;return _0x3f9b2e(Ge,Object[_0x191e93(0x1cc)]({},_0x34f01c,{'id':_0x191e93(0x13c),'ref':_0x69c7f,'icon':pi}));});Pt[_0x32c856(0x279)]=_0x32c856(0x35c);const Oi={'tag':'svg','attrs':{'xmlns':_0x32c856(0x286),'fill':'none','viewBox':_0x32c856(0x35a),'width':'1em','height':_0x32c856(0x21f)},'children':[{'tag':'g','attrs':{'clipPath':_0x32c856(0x299)},'children':[{'tag':'path','attrs':{'stroke':_0x32c856(0x319),'d':_0x32c856(0x283),'strokeLinecap':'round','strokeLinejoin':_0x32c856(0x23f),'strokeWidth':1.2}}]},{'tag':_0x32c856(0x14e),'attrs':{},'children':[{'tag':_0x32c856(0x2ab),'attrs':{'id':_0x32c856(0x2c6)},'children':[{'tag':_0x32c856(0x1c1),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x32c856(0x14c)}}]}]}],'defIds':[_0x32c856(0x2c6)]},wt=_0x1fac2f(function(_0x19ef91,_0x4de1cf){const _0x372205=_0x32c856;return _0x3f9b2e(Ge,Object[_0x372205(0x1cc)]({},_0x19ef91,{'id':_0x372205(0x2a4),'ref':_0x4de1cf,'icon':Oi}));});wt[_0x32c856(0x279)]=_0x32c856(0x33e);function Ti(_0x18e615){const _0x3d2bd8=_0x32c856;switch(_0x18e615){case _0x4c2ad5[_0x3d2bd8(0x227)]:return _0x3d2bd8(0x13d);case _0x4c2ad5['CONFLICT']:return'collabStatus.conflict';case _0x4c2ad5[_0x3d2bd8(0x198)]:return'collabStatus.fetchMiss';case _0x4c2ad5['NOT_COLLAB']:return _0x3d2bd8(0x2fb);case _0x4c2ad5[_0x3d2bd8(0x1f9)]:case _0x4c2ad5[_0x3d2bd8(0x180)]:return _0x3d2bd8(0x26a);case _0x4c2ad5[_0x3d2bd8(0x156)]:case _0x4c2ad5[_0x3d2bd8(0x2e1)]:return _0x3d2bd8(0x2ce);}}function Ci(_0x386856){const _0x3083f9=_0x32c856,{status$:_0x3333a3}=_0x386856,_0x32eea9=_0x1c33a8(_0x3333a3,_0x4c2ad5[_0x3083f9(0x1a7)]),_0x2ff44a=_0x460196(_0x19887b),_0x2ad893=_0x460196(_0x587ed6),_0x4b9c42=_0x32eea9!==_0x4c2ad5[_0x3083f9(0x227)],_0x40bd66=_0x2ff44a['t'](Ti(_0x32eea9)),_0x13f777=_0x4b9c42?_0x5493cd(wt,{}):_0x5493cd(Pt,{}),_0x42fb51=_0x48bd4d(()=>{const _0x491535=_0x3083f9;_0x4b9c42||_0x2ad893[_0x491535(0x24e)]();},[_0x4b9c42,_0x2ad893]);function _0x59af15(){const _0x43a749=_0x3083f9;return _0x1af67e(_0x43a749(0x1ea),{'className':_0x43a749(0x300),'onClick':_0x42fb51,'children':[_0x5493cd(_0x43a749(0x1ea),{'className':_0x378f5c('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x4b9c42,'univer-text-red-500':!_0x4b9c42}),'children':_0x13f777}),_0x5493cd(_0x43a749(0x1ea),{'className':_0x43a749(0x203),'children':_0x40bd66})]});}return _0x4b9c42?_0x59af15():_0x5493cd(_0x3b870b,{'title':_0x2ff44a['t'](_0x3083f9(0x2fc)),'children':_0x59af15()});}var Ri=Object[_0x32c856(0x169)],Di=(_0xc02c04,_0x13bad5,_0x1c46d3,_0x48176b)=>{for(var _0x5a2e03=_0x48176b>0x1?void 0x0:_0x48176b?Ri(_0x13bad5,_0x1c46d3):_0x13bad5,_0x20120c=_0xc02c04['length']-0x1,_0x24851b;_0x20120c>=0x0;_0x20120c--)(_0x24851b=_0xc02c04[_0x20120c])&&(_0x5a2e03=_0x24851b(_0x5a2e03)||_0x5a2e03);return _0x5a2e03;},se=(_0x56430d,_0x133a90)=>(_0x158fec,_0x37307a)=>_0x133a90(_0x158fec,_0x37307a,_0x56430d);let ae=class extends _0x4ca9c1{constructor(_0x336631,_0x2cdd03,_0x1a8d9c,_0xd79ad2){const _0x196c50=_0x32c856;super(),_(this,'_status$',new _0x41d101(_0x4c2ad5[_0x196c50(0x1a7)])),(this['_univerInstanceService']=_0x336631,this['_injector']=_0x2cdd03,this[_0x196c50(0x184)]=_0x1a8d9c,this['_uiPartsService']=_0xd79ad2,this[_0x196c50(0x2ac)](),this[_0x196c50(0x1c0)]());}[_0x32c856(0x1c0)](){const _0x1c5cb3=_0x32c856;this['disposeWithMe'](this[_0x1c5cb3(0x19f)][_0x1c5cb3(0x145)]['pipe'](_0x56c1e8(()=>{const _0x208221=_0x1c5cb3,_0x8018e4=this[_0x208221(0x19f)][_0x208221(0x266)]();return _0x8018e4?this[_0x208221(0x184)][_0x208221(0x2d1)](_0x8018e4[_0x208221(0x15d)]()):_0x5ee058(null);}),_0x56c1e8(_0x31fc07=>_0x31fc07?_0x31fc07[_0x1c5cb3(0x356)]:_0x5ee058(_0x4c2ad5['NOT_COLLAB'])))[_0x1c5cb3(0x2bf)](_0x537acd=>{const _0x297808=_0x1c5cb3;this[_0x297808(0x249)][_0x297808(0x1b7)](_0x537acd);}));}[_0x32c856(0x2ac)](){const _0x562373=_0x32c856;this[_0x562373(0x331)](this[_0x562373(0x1d0)][_0x562373(0x130)](_0x258084[_0x562373(0x147)],()=>_0x228f0a(Ni({'status$':this['_status$'][_0x562373(0x200)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ca55f),se(0x1,_0xb67117(_0x2d24f1)),se(0x2,_0xb67117(_0x5c5058)),se(0x3,_0x2f68b9)],ae);function Ni(_0x46ccf1){const {status$:_0x58d2b7}=_0x46ccf1;return function(){return _0x5493cd(Ci,{'status$':_0x58d2b7});};}const yt=_0x4e5cb2(_0x32c856(0x20c));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x327aea,_0x3bcb63,_0x3e0927,_0x9c2a3)=>{const _0x56090a=_0x32c856;for(var _0x41a198=_0x9c2a3>0x1?void 0x0:_0x9c2a3?bi(_0x3bcb63,_0x3e0927):_0x3bcb63,_0x4e1642=_0x327aea[_0x56090a(0x155)]-0x1,_0x2c5cee;_0x4e1642>=0x0;_0x4e1642--)(_0x2c5cee=_0x327aea[_0x4e1642])&&(_0x41a198=_0x2c5cee(_0x41a198)||_0x41a198);return _0x41a198;},K=(_0x4b1418,_0x25b84e)=>(_0x37ff05,_0x59787d)=>_0x25b84e(_0x37ff05,_0x59787d,_0x4b1418);let ce=class extends _0x2ed217{constructor(_0x392137,_0x1cefb4,_0x2e6db6,_0x993a24,_0x9a1e9f){const _0xb3e806=_0x32c856;super(),this['_urlService']=_0x392137,this[_0xb3e806(0x1b4)]=_0x1cefb4,this[_0xb3e806(0x15b)]=_0x2e6db6,this['_dataLoaderService']=_0x993a24,_0x9a1e9f?_0x9a1e9f==null||_0x9a1e9f[_0xb3e806(0x28b)]()[_0xb3e806(0x25a)](()=>this[_0xb3e806(0x353)]()):(this[_0xb3e806(0x1b4)][_0xb3e806(0x1ab)]('[CollaborationDataLoaderController]',_0xb3e806(0x345)),this[_0xb3e806(0x353)]());}async[_0x32c856(0x353)](){const _0x1729de=_0x32c856,_0x1bfbd4=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x354)),_0x35229c=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x295)),_0x31232d=this[_0x1729de(0x1f2)][_0x1729de(0x208)](_0x1729de(0x165));if(!_0x1bfbd4||!_0x35229c){this['_logService'][_0x1729de(0x1ab)](_0x1729de(0x137),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x3c6ef5=await this['_dataLoaderService']['loadUnit'](_0x1bfbd4,Number(_0x35229c),_0x31232d);_0x3c6ef5&&_0x3c6ef5 instanceof _0x4f2df7&&this[_0x1729de(0x1d9)](_0x3c6ef5);}async[_0x32c856(0x1d9)](_0x8d380c){const _0x24b6c9=_0x32c856;await this['_updateSubUnitFromURLParams'](_0x8d380c),_0x8d380c['activeSheet$'][_0x24b6c9(0x28e)](_0x67f666(this[_0x24b6c9(0x236)]))[_0x24b6c9(0x2bf)](_0x25c156=>{const _0x34a7d2=_0x24b6c9;_0x25c156&&this[_0x34a7d2(0x183)](_0x25c156);}),this[_0x24b6c9(0x1f2)][_0x24b6c9(0x2f3)][_0x24b6c9(0x28e)](_0x67f666(this[_0x24b6c9(0x236)]))['subscribe'](()=>this[_0x24b6c9(0x1fb)](_0x8d380c));}[_0x32c856(0x183)](_0x58c43f,_0x6cc57a=!0x1){const _0xd31bc9=_0x32c856,_0x5ee9fa=this[_0xd31bc9(0x1f2)][_0xd31bc9(0x208)](_0xd31bc9(0x165));_0x58c43f[_0xd31bc9(0x320)]()!==_0x5ee9fa&&this['_urlService'][_0xd31bc9(0x30a)]('subunit',_0x58c43f[_0xd31bc9(0x320)](),_0x6cc57a);}async[_0x32c856(0x1fb)](_0x2b46a4){const _0x3dd9ae=_0x32c856;var _0x4de2be;const _0x194a9f=this[_0x3dd9ae(0x1f2)]['getParam'](_0x3dd9ae(0x165));if(!_0x194a9f||!_0x2b46a4[_0x3dd9ae(0x260)](_0x194a9f)){const _0x513d81=_0x2b46a4[_0x3dd9ae(0x305)]()[0x0],_0x1950f8=_0x2b46a4['getSheetBySheetId'](_0x513d81);if(!_0x1950f8)return;this[_0x3dd9ae(0x183)](_0x1950f8,!0x0),await this[_0x3dd9ae(0x15b)][_0x3dd9ae(0x26e)](_0x593f00['id'],{'unitId':_0x2b46a4[_0x3dd9ae(0x15d)](),'subUnitId':_0x513d81});return;}((_0x4de2be=_0x2b46a4[_0x3dd9ae(0x352)]())==null?void 0x0:_0x4de2be[_0x3dd9ae(0x320)]())!==_0x194a9f&&await this[_0x3dd9ae(0x15b)]['executeCommand'](_0x593f00['id'],{'unitId':_0x2b46a4[_0x3dd9ae(0x15d)](),'subUnitId':_0x194a9f});}};ce=Li([K(0x0,yt),K(0x1,_0x3f6a9a),K(0x2,_0x156a6d),K(0x3,_0xb67117(_0x273a2e)),K(0x4,_0x5aa7d3(_0x431e00))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x17089c,_0x4a444e,_0x3513a9,_0x4afa12)=>{const _0x23bddf=_0x32c856;for(var _0x339a53=_0x4afa12>0x1?void 0x0:_0x4afa12?Ui(_0x4a444e,_0x3513a9):_0x4a444e,_0x379a0f=_0x17089c[_0x23bddf(0x155)]-0x1,_0x286b6d;_0x379a0f>=0x0;_0x379a0f--)(_0x286b6d=_0x17089c[_0x379a0f])&&(_0x339a53=_0x286b6d(_0x339a53)||_0x339a53);return _0x339a53;},rt=(_0xdbcf74,_0x56f1da)=>(_0x33b6b9,_0x8d5e85)=>_0x56f1da(_0x33b6b9,_0x8d5e85,_0xdbcf74);let $e=class extends _0x2ed217{constructor(_0x4a5119,_0x368ff1){const _0x1a5246=_0x32c856;super(),this[_0x1a5246(0x2b1)]=_0x4a5119,this[_0x1a5246(0x18b)]=_0x368ff1,this[_0x1a5246(0x353)]();}[_0x32c856(0x353)](){const _0x2927aa=_0x32c856,_0x25eb05=this;this[_0x2927aa(0x331)](this[_0x2927aa(0x2b1)][_0x2927aa(0x2be)]({'onBeforePasteImage':async _0x5d4c63=>{const _0x7feb5c=_0x2927aa,_0x44383e=await _0x25eb05['_imageIoService'][_0x7feb5c(0x2b5)](_0x5d4c63);return _0x44383e?{'source':_0x44383e['source'],'imageSourceType':_0x44383e[_0x7feb5c(0x1e4)]}:null;}}));}};$e=Mi([rt(0x0,_0x57fc3a),rt(0x1,_0x535bd8)],$e);const ot=['purple.300',_0x32c856(0x1e6),_0x32c856(0x1bc),'red.300',_0x32c856(0x282),_0x32c856(0x1ce)];class Ke extends _0x4ca9c1{constructor(){const _0x416f01=_0x32c856;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x416f01(0x2d3),0x0);}[_0x32c856(0x32e)](_0x502894){const _0x46131d=_0x32c856;if(this['_assignedColors'][_0x46131d(0x23c)](_0x502894))return this[_0x46131d(0x216)][_0x46131d(0x2b3)](_0x502894);const _0x4603ff=ot[this[_0x46131d(0x2d3)]];return this[_0x46131d(0x2d3)]=(this[_0x46131d(0x2d3)]+0x1)%ot[_0x46131d(0x155)],this[_0x46131d(0x216)]['set'](_0x502894,_0x4603ff),_0x4603ff;}}function $t(_0x25d67e){const _0x3a6363=_0x32c856;let _0x3a6458='';for(const _0x198dd1 of _0x25d67e){const {startOffset:_0x4c51b3,endOffset:_0x3afe92,isActive:_0x62e66d,rangeType:_0xb86c4b,segmentId:_0x42bf71,segmentPage:_0x429e17}=_0x198dd1;_0x3a6458[_0x3a6363(0x155)]&&(_0x3a6458+=','),_0x3a6458+=_0x4c51b3+':'+_0x3afe92+':'+(_0x62e66d?'1':'0')+':'+_0xb86c4b+':'+_0x42bf71+':'+_0x429e17;}return _0x3a6458;}function Ai(_0x529e0e){const _0x1866bc=_0x32c856,_0x16df8b=_0x529e0e[_0x1866bc(0x253)](','),_0x37e525=[];for(const _0x3d40f9 of _0x16df8b){const [_0x2fddc3,_0x1ad7d1,_0x3ce03e,_0x24a94,_0x1d0526,_0x108a6e]=_0x3d40f9[_0x1866bc(0x253)](':');_0x37e525[_0x1866bc(0x302)]({'startOffset':Number(_0x2fddc3),'endOffset':Number(_0x1ad7d1),'collapsed':_0x2fddc3===_0x1ad7d1,'isActive':_0x3ce03e==='1','rangeType':_0x24a94===_0x5c4026['TEXT']?_0x5c4026[_0x1866bc(0x1d6)]:_0x5c4026[_0x1866bc(0x24d)],'segmentId':typeof _0x1d0526==_0x1866bc(0x133)?String(_0x1d0526):'','segmentPage':Number(_0x108a6e!=null?_0x108a6e:-0x1)});}return _0x37e525[_0x1866bc(0x1b9)](_0x105b08=>_0x105b08['isActive'])||(_0x37e525[0x0][_0x1866bc(0x2c2)]=!0x0),_0x37e525;}class ze extends _0x2ed217{constructor(){const _0x45880c=_0x32c856;super(...arguments),_(this,'_collabCursorState$',new _0x41d101(null)),_(this,_0x45880c(0x333),this[_0x45880c(0x2e7)][_0x45880c(0x200)]());}[_0x32c856(0x2da)](_0x217b4b){const _0x2ad8f1=_0x32c856,{unitID:_0x1a606d,memberID:_0x11d475,textRanges:_0x3ec009}=_0x217b4b,_0x14b32c=$t(_0x3ec009);if(_0x14b32c==='')return;const _0x1b08f7={'unitID':_0x1a606d,'memberID':_0x11d475,'selection':_0x14b32c};this[_0x2ad8f1(0x2e7)][_0x2ad8f1(0x1b7)](_0x1b08f7);}}var Pi=Object[_0x32c856(0x169)],wi=(_0x428894,_0x3bf122,_0x33d502,_0x22ef18)=>{const _0xf93e39=_0x32c856;for(var _0x467563=_0x22ef18>0x1?void 0x0:_0x22ef18?Pi(_0x3bf122,_0x33d502):_0x3bf122,_0x2fe366=_0x428894[_0xf93e39(0x155)]-0x1,_0x21b60c;_0x2fe366>=0x0;_0x2fe366--)(_0x21b60c=_0x428894[_0x2fe366])&&(_0x467563=_0x21b60c(_0x467563)||_0x467563);return _0x467563;},A=(_0x388520,_0x458bd6)=>(_0x4204ad,_0x5aae57)=>_0x458bd6(_0x4204ad,_0x5aae57,_0x388520);const yi=0x12c,$i=0x64;let xe=class extends _0x2ed217{constructor(_0x4138d2,_0x3ca086,_0x1a44db,_0x4aeb74,_0x360051,_0x2eaa1d,_0xe1aba6,_0x5747b8,_0x1bd27c){const _0x12af88=_0x32c856;super(),_(this,_0x12af88(0x221),!0x1),_(this,_0x12af88(0x353),!0x1),_(this,_0x12af88(0x250),new _0x41d101(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x12af88(0x200)]()),_(this,'_roomMembers$',new _0x41d101([])),_(this,_0x12af88(0x1d2),this[_0x12af88(0x240)][_0x12af88(0x28e)](_0x46df12(yi))),_(this,'_updateLocalCursor',_0x5afc05(_0x29993f=>{const _0x3c7c38=_0x12af88,_0x545a88={'eventID':_0x37a19e[_0x3c7c38(0x34a)],'data':{'unitID':this[_0x3c7c38(0x1e3)],'memberID':this['_session'][_0x3c7c38(0x2c1)](),'selection':$t(_0x29993f)}};this[_0x3c7c38(0x181)]['send'](_0x545a88,this[_0x3c7c38(0x1e3)]);},$i)),(this[_0x12af88(0x1e3)]=_0x4138d2,this['_session']=_0x3ca086,this[_0x12af88(0x1f5)]=_0x1a44db,this[_0x12af88(0x357)]=_0x4aeb74,this['_memberService']=_0x360051,this[_0x12af88(0x244)]=_0x2eaa1d,this[_0x12af88(0x33f)]=_0xe1aba6,this['_univerInstanceService']=_0x5747b8,this['_commandService']=_0x1bd27c);}get[_0x32c856(0x264)](){const _0x514ade=_0x32c856;return this[_0x514ade(0x250)][_0x514ade(0x2e3)]();}get['roomMembers'](){const _0x47b387=_0x32c856;return this['_roomMembers$'][_0x47b387(0x2e3)]();}['dispose'](){const _0x5972cd=_0x32c856;super[_0x5972cd(0x18c)](),this[_0x5972cd(0x250)]['next'](new Map()),this[_0x5972cd(0x250)]['complete'](),this[_0x5972cd(0x240)][_0x5972cd(0x1b7)]([]),this[_0x5972cd(0x240)][_0x5972cd(0x2db)]();}['init'](){const _0x10ce64=_0x32c856;this[_0x10ce64(0x353)]||(this[_0x10ce64(0x353)]=!0x0,this[_0x10ce64(0x181)][_0x10ce64(0x19d)][_0x10ce64(0x28e)](_0x67f666(this['dispose$']))['subscribe'](_0x18daee=>{const _0x50da47=_0x10ce64;_0x18daee===_0x575fec[_0x50da47(0x25e)]?this[_0x50da47(0x24a)]():this[_0x50da47(0x127)]();}),this[_0x10ce64(0x181)][_0x10ce64(0x1d7)][_0x10ce64(0x28e)](_0x67f666(this['dispose$']))[_0x10ce64(0x2bf)](_0x159677=>{const _0x4c050d=_0x10ce64,_0x6f4d92=_0x159677[_0x4c050d(0x190)];_0x6f4d92===_0x37a19e[_0x4c050d(0x34a)]&&this[_0x4c050d(0x30c)](_0x159677),_0x6f4d92===_0x37a19e[_0x4c050d(0x2ba)]&&this['_onCursorDelete'](_0x159677);}),this[_0x10ce64(0x331)](this[_0x10ce64(0x15b)][_0x10ce64(0x297)](_0x30feed=>{const _0x289e00=_0x10ce64,_0x5140d4=_0x30feed[_0x289e00(0x128)];_0x5140d4!=null&&this[_0x289e00(0x221)]&&_0x30feed['id']===_0x285f06['id']&&_0x5140d4[_0x289e00(0x196)]===this[_0x289e00(0x1e3)]&&_0x5140d4[_0x289e00(0x2e9)]===!0x1&&_0x5140d4['ranges'][_0x289e00(0x155)]>0x0&&this['_updateLocalCursor'](_0x5140d4['ranges']);})),this[_0x10ce64(0x244)][_0x10ce64(0x333)][_0x10ce64(0x28e)](_0x67f666(this[_0x10ce64(0x236)]))[_0x10ce64(0x2bf)](_0x1dae50=>{const _0x1bd644=_0x10ce64;if((_0x1dae50==null?void 0x0:_0x1dae50[_0x1bd644(0x1e3)])!==this[_0x1bd644(0x1e3)])return;const _0x10086d={'eventID':_0x37a19e[_0x1bd644(0x34a)],'data':_0x1dae50};this['_onCursorUpdate'](_0x10086d);}),this['disposeWithMe'](this['_commandService'][_0x10ce64(0x297)](_0x2a47a1=>{const _0x4c25bd=_0x10ce64;if(_0x2a47a1[_0x4c25bd(0x128)]==null)return;const _0x4c2e4d=_0x2a47a1['params'];if(_0x2a47a1['id']!==_0x33706b['id']||_0x4c2e4d['unitId']!==this[_0x4c25bd(0x1e3)])return;const _0x203910={'id':_0x4c25bd(0x2b8),'params':_0x4c2e4d},_0x1fab88=this['cursorInfo'];for(const [_0x501064,_0x36d23c]of _0x1fab88){const _0x2614eb={'id':_0x4c25bd(0x2b8),'params':{'unitId':this[_0x4c25bd(0x1e3)],'actions':null,'textRanges':_0x36d23c[_0x4c25bd(0x153)]}},_0x378fbd=this[_0x4c25bd(0x33f)]['transformMutation'](_0x203910,_0x2614eb,!0x1);if(_0x28a617(_0x378fbd))throw _0x378fbd[_0x4c25bd(0x12e)];_0x1fab88[_0x4c25bd(0x191)](_0x501064,{..._0x36d23c,'ranges':_0x378fbd[_0x4c25bd(0x290)][_0x4c25bd(0x128)][_0x4c25bd(0x1aa)]});}queueMicrotask(()=>{const _0x1dcfdf=_0x4c25bd;this[_0x1dcfdf(0x250)]['next'](_0x1fab88);});})));}[_0x32c856(0x30c)](_0x41fa76){const _0x2409ad=_0x32c856;var _0x37f7bd,_0x2abbf3;const {memberID:_0x3cc858,selection:_0x1ade10}=_0x41fa76['data'],_0x5b536c=Ai(_0x1ade10),_0x2dbece=(_0x2abbf3=(_0x37f7bd=this[_0x2409ad(0x167)][_0x2409ad(0x1f6)](this[_0x2409ad(0x1e3)],_0x3cc858))==null?void 0x0:_0x37f7bd[_0x2409ad(0x19a)])!=null?_0x2abbf3:_0x2409ad(0x219),_0x2509b9={'color':this[_0x2409ad(0x357)][_0x2409ad(0x32e)](_0x3cc858),'name':_0x2dbece,'ranges':_0x5b536c},_0x2a7b66=this[_0x2409ad(0x264)];_0x2a7b66[_0x2409ad(0x191)](_0x3cc858,_0x2509b9),this[_0x2409ad(0x250)][_0x2409ad(0x1b7)](_0x2a7b66);}[_0x32c856(0x1ee)](_0x5adbdd){const _0x11f0fc=_0x32c856,{memberID:_0x158f2f}=_0x5adbdd[_0x11f0fc(0x306)],_0x422866=this['cursorInfo'];_0x422866[_0x11f0fc(0x24f)](_0x158f2f),this[_0x11f0fc(0x250)][_0x11f0fc(0x1b7)](_0x422866);}[_0x32c856(0x24a)](){const _0xa16261=_0x32c856;var _0x16630f;if(this['_online']=!0x0,((_0x16630f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x16630f[_0xa16261(0x15d)]())!==this['unitID'])return;const _0x14a438=this[_0xa16261(0x1f5)][_0xa16261(0x2b3)](_0x3fd45e)[_0xa16261(0x1d8)]();Array['isArray'](_0x14a438)&&_0x14a438[_0xa16261(0x155)]>0x0&&this[_0xa16261(0x187)](_0x14a438);}[_0x32c856(0x127)](){const _0x2362c6=_0x32c856;this[_0x2362c6(0x221)]=!0x1;}};xe=wi([A(0x2,_0xb67117(_0x2d24f1)),A(0x3,_0xb67117(Ke)),A(0x4,_0xb67117(_0x522824)),A(0x5,_0xb67117(ze)),A(0x6,_0x55d9fe),A(0x7,_0x5ca55f),A(0x8,_0x156a6d)],xe);var xi=Object[_0x32c856(0x169)],Bi=(_0x30e6e4,_0x2fe9f7,_0x1cc413,_0x1553b9)=>{const _0x16e050=_0x32c856;for(var _0x59d1d9=_0x1553b9>0x1?void 0x0:_0x1553b9?xi(_0x2fe9f7,_0x1cc413):_0x2fe9f7,_0x23e332=_0x30e6e4[_0x16e050(0x155)]-0x1,_0x594e60;_0x23e332>=0x0;_0x23e332--)(_0x594e60=_0x30e6e4[_0x23e332])&&(_0x59d1d9=_0x594e60(_0x59d1d9)||_0x59d1d9);return _0x59d1d9;},B=(_0x24faf9,_0x21e138)=>(_0x2a750d,_0x476080)=>_0x21e138(_0x2a750d,_0x476080,_0x24faf9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x59232e=[],_0x4a4abb=!0x1;return _0x4d048a=>{const _0x1438b0=_0x403b;_0x59232e[_0x1438b0(0x302)](_0x4d048a),_0x4a4abb||(_0x4a4abb=!0x0,setTimeout(()=>{const _0x4f3a43=_0x1438b0;_0x59232e[_0x4f3a43(0x284)](_0x4ac4ef=>_0x4ac4ef()),_0x59232e=[],_0x4a4abb=!0x1;}));};};let Be=class extends _0x2ed217{constructor(_0x4b42fb,_0x2b4910,_0x347f65,_0x45c30d,_0x596f6e,_0x5d676b,_0x4305cd,_0x40fe31){const _0x28ea85=_0x32c856;super(),_(this,_0x28ea85(0x221),!0x1),_(this,_0x28ea85(0x353),!0x1),_(this,_0x28ea85(0x250),new _0x41d101(new Map())),_(this,_0x28ea85(0x268),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new _0x41d101([])),_(this,'roomMembers$',this[_0x28ea85(0x240)][_0x28ea85(0x28e)](_0x46df12(Fi))),_(this,_0x28ea85(0x187),_0x5afc05((_0x1749cb,_0x801fb9)=>{const _0x171306=_0x28ea85,_0x13185c={'eventID':_0x37a19e['UPDATE_CURSOR'],'data':{'unitID':this[_0x171306(0x1e3)],'memberID':this[_0x171306(0x181)][_0x171306(0x2c1)](),'selection':_0x29f909(_0x1749cb,_0x801fb9[_0x171306(0x14b)])}};this['_session'][_0x171306(0x2f6)](_0x13185c,this[_0x171306(0x1e3)]);},ki)),(this[_0x28ea85(0x1e3)]=_0x4b42fb,this[_0x28ea85(0x181)]=_0x2b4910,this[_0x28ea85(0x1f5)]=_0x347f65,this[_0x28ea85(0x357)]=_0x45c30d,this['_memberService']=_0x596f6e,this[_0x28ea85(0x19f)]=_0x5d676b,this[_0x28ea85(0x15b)]=_0x4305cd,this['_refRangeService']=_0x40fe31);}get['cursorInfo'](){const _0x1ca4dd=_0x32c856;return this[_0x1ca4dd(0x250)][_0x1ca4dd(0x2e3)]();}get[_0x32c856(0x192)](){const _0xbc1bae=_0x32c856;return this[_0xbc1bae(0x240)]['getValue']();}[_0x32c856(0x18c)](){const _0x14325c=_0x32c856;super[_0x14325c(0x18c)](),this[_0x14325c(0x250)]['next'](new Map()),this[_0x14325c(0x250)][_0x14325c(0x2db)](),this[_0x14325c(0x240)][_0x14325c(0x1b7)]([]),this[_0x14325c(0x240)][_0x14325c(0x2db)]();}['init'](){const _0x38df08=_0x32c856;this[_0x38df08(0x353)]||(this[_0x38df08(0x353)]=!0x0,this[_0x38df08(0x181)][_0x38df08(0x19d)]['pipe'](_0x67f666(this[_0x38df08(0x236)]))[_0x38df08(0x2bf)](_0x5494db=>{const _0xce39c0=_0x38df08;_0x5494db===_0x575fec[_0xce39c0(0x25e)]?this[_0xce39c0(0x24a)]():this[_0xce39c0(0x127)]();}),this[_0x38df08(0x181)][_0x38df08(0x1d7)][_0x38df08(0x28e)](_0x67f666(this[_0x38df08(0x236)]))[_0x38df08(0x2bf)](_0x179c14=>{const _0x1b911c=_0x38df08,_0x68e12a=_0x179c14[_0x1b911c(0x190)];_0x68e12a===_0x37a19e[_0x1b911c(0x34a)]&&this[_0x1b911c(0x30c)](_0x179c14),_0x68e12a===_0x37a19e['USERS_LEAVE']&&this[_0x1b911c(0x1ee)](_0x179c14);}),this[_0x38df08(0x1d5)](),this['disposeWithMe'](this['_commandService'][_0x38df08(0x297)](_0x4171ff=>{const _0x352cf8=_0x38df08;if(this[_0x352cf8(0x221)]&&_0x4171ff['id']===_0x540687['id']&&_0x4171ff[_0x352cf8(0x128)][_0x352cf8(0x196)]===this['unitID']){const _0x356c3e=_0x4171ff['params'];this[_0x352cf8(0x187)](_0x356c3e['subUnitId'],_0x356c3e[_0x352cf8(0x29d)][0x0]);}})));}[_0x32c856(0x30c)](_0x59e125){const _0x2d0895=_0x32c856;var _0x1da656,_0x695d42;const {memberID:_0x54972b,selection:_0x808b43}=_0x59e125[_0x2d0895(0x306)],{sheetName:_0x11e90d,range:_0x2e9c12}=_0x2adee1(_0x808b43),_0x34704c={'name':(_0x695d42=(_0x1da656=this[_0x2d0895(0x167)][_0x2d0895(0x1f6)](this[_0x2d0895(0x1e3)],_0x54972b))==null?void 0x0:_0x1da656[_0x2d0895(0x19a)])!=null?_0x695d42:_0x2d0895(0x219),'range':this['_getMergeRange'](_0x11e90d,_0x2e9c12),'sheetID':_0x11e90d,'color':this[_0x2d0895(0x357)]['assignAColorForMemberID'](_0x54972b),'selection':_0x808b43},_0x382e29=this['cursorInfo'];_0x382e29[_0x2d0895(0x191)](_0x54972b,_0x34704c),this[_0x2d0895(0x250)][_0x2d0895(0x1b7)](_0x382e29);}[_0x32c856(0x1ee)](_0x3a5ec4){const _0x45fd37=_0x32c856,{memberID:_0x5dbae7}=_0x3a5ec4[_0x45fd37(0x306)],_0x4e49d3=this[_0x45fd37(0x264)];_0x4e49d3[_0x45fd37(0x24f)](_0x5dbae7),this[_0x45fd37(0x250)][_0x45fd37(0x1b7)](_0x4e49d3);}['_getMergeRange'](_0x3ec63d,_0x37b92d){const _0x39f9a1=_0x32c856;var _0x6eb8c5,_0x19fa32;const _0x407933=(_0x19fa32=(_0x6eb8c5=this[_0x39f9a1(0x19f)][_0x39f9a1(0x339)](this['unitID']))==null?void 0x0:_0x6eb8c5[_0x39f9a1(0x260)](_0x3ec63d))==null?void 0x0:_0x19fa32[_0x39f9a1(0x1c4)]();return(_0x407933==null?void 0x0:_0x407933[_0x39f9a1(0x343)](_0x2cb18b=>_0x396a74[_0x39f9a1(0x21a)](_0x2cb18b,_0x37b92d)))||_0x37b92d;}['_onRefRangeChange'](){const _0x4abca0=_0x32c856,_0xaae17c=new _0x25c632(),_0x4d910c=Hi(),_0x48f5ca=()=>{const _0x4678e6=_0x403b;_0xaae17c[_0x4678e6(0x18c)]();const _0x40e1df=(_0x37b5e1,_0xc1b0f4,_0x137724,_0x3aa5ca)=>{const _0x4ecd4f=_0x4678e6;let _0x372c3e=[];switch(_0x37b5e1['id']){case _0x2b9ce8[_0x4ecd4f(0x25f)]:{_0x372c3e=_0x2d748d(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['DeleteRangeMoveUpCommandId']:{_0x372c3e=_0x21f53c(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertColCommandId']:{_0x372c3e=_0x202d24(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertRangeMoveDownCommandId']:{_0x372c3e=_0x5405c9(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['InsertRangeMoveRightCommandId']:{_0x372c3e=_0x502556(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x308)]:{_0x372c3e=_0x20f1d3(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x2ae)]:{_0x372c3e=_0x540c44(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8['RemoveColCommandId']:{_0x372c3e=_0x365800(_0x37b5e1,_0x3aa5ca);break;}case _0x2b9ce8[_0x4ecd4f(0x1c3)]:{_0x372c3e=_0x42945e(_0x37b5e1,_0x3aa5ca);break;}}const _0x1b9e82=_0x25e741(_0x372c3e,_0x3aa5ca),_0x480ec7=this[_0x4ecd4f(0x264)][_0x4ecd4f(0x2b3)](_0xc1b0f4);if(_0x480ec7&&_0x1b9e82){const _0x3ff692={..._0x480ec7,'range':_0x1b9e82};this[_0x4ecd4f(0x264)][_0x4ecd4f(0x191)](_0xc1b0f4,_0x3ff692),_0x4d910c(()=>{const _0x417713=_0x4ecd4f,_0x3429af=this[_0x417713(0x341)][_0x417713(0x336)](_0x1b9e82,_0x47c3ca=>(_0x3429af[_0x417713(0x18c)](),_0x40e1df(_0x47c3ca,_0xc1b0f4,_0x137724,_0x1b9e82)));_0xaae17c[_0x417713(0x2ed)](_0x3429af);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4678e6(0x284)]((_0x4f9fbe,_0x2090f0)=>{const _0x230a94=_0x4678e6,{range:_0x5e9e2e,sheetID:_0x400113}=_0x4f9fbe,_0x363429=this['_refRangeService'][_0x230a94(0x336)](_0x5e9e2e,_0x68efa4=>(_0x363429[_0x230a94(0x18c)](),_0x40e1df(_0x68efa4,_0x2090f0,_0x400113,_0x5e9e2e)));_0xaae17c[_0x230a94(0x2ed)](_0x363429);});};this[_0x4abca0(0x331)](_0x1b8af1(this[_0x4abca0(0x250)]['subscribe'](()=>{_0x48f5ca();})));}['_toggleOnline'](){const _0x5d19d7=_0x32c856;var _0x40d448,_0x8eb8a7;if(this['_online']=!0x0,((_0x40d448=this['_univerInstanceService'][_0x5d19d7(0x266)]())==null?void 0x0:_0x40d448[_0x5d19d7(0x15d)]())!==this['unitID'])return;const _0x254b20=(_0x8eb8a7=this[_0x5d19d7(0x1f5)]['get'](_0xd7d38a)[_0x5d19d7(0x298)]())==null?void 0x0:_0x8eb8a7[0x0],_0x4084a0=this[_0x5d19d7(0x19f)]['getCurrentUnitForType'](_0x4f09e5[_0x5d19d7(0x1c2)])['getActiveSheet']();_0x254b20&&_0x4084a0&&this[_0x5d19d7(0x187)](_0x4084a0[_0x5d19d7(0x320)](),_0x254b20);}[_0x32c856(0x127)](){const _0x18e6a9=_0x32c856;this[_0x18e6a9(0x221)]=!0x1;}};Be=Bi([B(0x2,_0xb67117(_0x2d24f1)),B(0x3,_0xb67117(Ke)),B(0x4,_0xb67117(_0x522824)),B(0x5,_0x5ca55f),B(0x6,_0x156a6d),B(0x7,_0xb67117(_0x14fcb5))],Be);var Yi=Object[_0x32c856(0x169)],Wi=(_0x382dca,_0x1fbc6b,_0x447ccb,_0x13c721)=>{for(var _0x210668=_0x13c721>0x1?void 0x0:_0x13c721?Yi(_0x1fbc6b,_0x447ccb):_0x1fbc6b,_0x4ff321=_0x382dca['length']-0x1,_0x1eba03;_0x4ff321>=0x0;_0x4ff321--)(_0x1eba03=_0x382dca[_0x4ff321])&&(_0x210668=_0x1eba03(_0x210668)||_0x210668);return _0x210668;},Ce=(_0x2d6eb9,_0x1022f3)=>(_0x423832,_0x55ff5c)=>_0x1022f3(_0x423832,_0x55ff5c,_0x2d6eb9);let H=class extends _0x2ed217{constructor(_0x518ea1,_0x300f4,_0x1414ca){const _0x56f5fe=_0x32c856;super(),_(this,_0x56f5fe(0x1b6),new Map()),_(this,_0x56f5fe(0x168),new _0x5efb66()),(this['_univerInstanceService']=_0x518ea1,this[_0x56f5fe(0x1f5)]=_0x300f4,this[_0x56f5fe(0x1da)]=_0x1414ca,this[_0x56f5fe(0x353)]());}[_0x32c856(0x18c)](){const _0x33c4a5=_0x32c856;super['dispose'](),this[_0x33c4a5(0x168)][_0x33c4a5(0x2db)](),this[_0x33c4a5(0x1b6)][_0x33c4a5(0x284)](_0x206208=>_0x206208[_0x33c4a5(0x18c)]());}[_0x32c856(0x29a)](_0x22ec0d){const _0xf437a7=_0x32c856;return this[_0xf437a7(0x1b6)]['has'](_0x22ec0d)?this['_entities'][_0xf437a7(0x2b3)](_0x22ec0d)[_0xf437a7(0x268)]:this[_0xf437a7(0x168)][_0xf437a7(0x28e)](_0x46c4a8(_0x9896c8=>_0x9896c8[_0xf437a7(0x1e3)]===_0x22ec0d),_0x56c1e8(_0x357418=>_0x357418[_0xf437a7(0x268)]));}[_0x32c856(0x353)](){const _0x22c3d1=_0x32c856;this[_0x22c3d1(0x19f)][_0x22c3d1(0x233)](_0x4f09e5[_0x22c3d1(0x1c2)])[_0x22c3d1(0x28e)](_0x67f666(this['dispose$']))[_0x22c3d1(0x2bf)](async _0x3ced28=>{const _0x2eebde=_0x22c3d1,_0x44ff4b=_0x3ced28[_0x2eebde(0x15d)](),_0x4db0e7=await this[_0x2eebde(0x35e)](_0x44ff4b);this[_0x2eebde(0x168)][_0x2eebde(0x1b7)](_0x4db0e7),this[_0x2eebde(0x1b6)]['set'](_0x44ff4b,_0x4db0e7);}),this[_0x22c3d1(0x19f)][_0x22c3d1(0x233)](_0x4f09e5[_0x22c3d1(0x224)])[_0x22c3d1(0x28e)](_0x67f666(this[_0x22c3d1(0x236)]))[_0x22c3d1(0x28e)](_0x46c4a8(_0x10891b=>!_0x10891b[_0x22c3d1(0x15d)]()[_0x22c3d1(0x2df)]('__')))[_0x22c3d1(0x2bf)](async _0x233b03=>{const _0x3fd241=_0x22c3d1,_0x310d6e=_0x233b03[_0x3fd241(0x15d)](),_0x24885a=await this[_0x3fd241(0x270)](_0x310d6e);this['_entityInit$'][_0x3fd241(0x1b7)](_0x24885a),this['_entities'][_0x3fd241(0x191)](_0x310d6e,_0x24885a);}),_0x486cdc(this[_0x22c3d1(0x19f)][_0x22c3d1(0x11c)](_0x4f09e5[_0x22c3d1(0x224)]),this[_0x22c3d1(0x19f)][_0x22c3d1(0x11c)](_0x4f09e5[_0x22c3d1(0x1c2)]))['pipe'](_0x67f666(this[_0x22c3d1(0x236)]))['subscribe'](_0x47f340=>{const _0x381566=_0x22c3d1,_0x4dacc4=_0x47f340[_0x381566(0x15d)](),_0xe3d2eb=this['_entities'][_0x381566(0x2b3)](_0x4dacc4);_0xe3d2eb&&(_0xe3d2eb[_0x381566(0x18c)](),this['_entities'][_0x381566(0x24f)](_0x4dacc4));});}async['_startSheetCollabCursor'](_0x4faf2a){const _0x3b0dda=_0x32c856,_0x17c277=await this['_collabSessionService']['requireSession'](_0x4faf2a),_0x50843b=this[_0x3b0dda(0x1f5)][_0x3b0dda(0x1fa)](Be,_0x4faf2a,_0x17c277);return _0x50843b[_0x3b0dda(0x26d)](),_0x50843b;}async['_startDocCollabCursor'](_0x5be14c){const _0x29a50b=_0x32c856,_0x410713=await this[_0x29a50b(0x1da)][_0x29a50b(0x1f1)](_0x5be14c),_0x505e2f=this[_0x29a50b(0x1f5)][_0x29a50b(0x1fa)](xe,_0x5be14c,_0x410713);return _0x505e2f[_0x29a50b(0x26d)](),_0x505e2f;}};H=Wi([Ce(0x0,_0x5ca55f),Ce(0x1,_0xb67117(_0x2d24f1)),Ce(0x2,_0xb67117(_0x587ed6))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x551537,_0x4310ef){const _0xa003b6=_0x32c856;let {radius:_0x315f29,width:_0x1f7c85,height:_0x42195b}=_0x4310ef;_0x315f29=_0x315f29!=null?_0x315f29:0x0,_0x1f7c85=_0x1f7c85!=null?_0x1f7c85:0x1e,_0x42195b=_0x42195b!=null?_0x42195b:0x1e;let _0x28859d=0x0,_0x287634=0x0,_0x7e38e6=0x0;_0x28859d=_0x287634=_0x7e38e6=Math[_0xa003b6(0x212)](_0x315f29,_0x1f7c85/0x2,_0x42195b/0x2),_0x551537[_0xa003b6(0x1cd)](),_0x551537['moveTo'](_0x28859d,0x0),_0x551537[_0xa003b6(0x1cb)](_0x1f7c85-_0x287634,0x0),_0x551537[_0xa003b6(0x15c)](_0x1f7c85-_0x287634,_0x287634,_0x287634,Math['PI']*0x3/0x2,0x0,!0x1),_0x551537['lineTo'](_0x1f7c85,_0x42195b-_0x7e38e6),_0x551537[_0xa003b6(0x15c)](_0x1f7c85-_0x7e38e6,_0x42195b-_0x7e38e6,_0x7e38e6,0x0,Math['PI']/0x2,!0x1),_0x551537[_0xa003b6(0x1cb)](0x0,_0x42195b),_0x551537[_0xa003b6(0x1cb)](0x0,_0x28859d),_0x551537['arc'](_0x28859d,_0x28859d,_0x28859d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x551537['closePath'](),_0x4310ef[_0xa003b6(0x2a7)]&&(_0x551537[_0xa003b6(0x275)](),_0x551537['fillStyle']=_0x4310ef[_0xa003b6(0x2a7)],_0x4310ef[_0xa003b6(0x21d)]==='evenodd'?_0x551537[_0xa003b6(0x2a7)](_0xa003b6(0x2fe)):_0x551537['fill'](),_0x551537['restore']());}class ve extends _0xd21fe3{constructor(_0x26727a,_0x2a529b){const _0x2151e2=_0x32c856;super(_0x26727a,_0x2a529b),_(this,'color'),_(this,_0x2151e2(0x16f)),(this[_0x2151e2(0x28f)]=_0x2a529b==null?void 0x0:_0x2a529b[_0x2151e2(0x28f)],this[_0x2151e2(0x16f)]=_0x2a529b==null?void 0x0:_0x2a529b['text']);}static[_0x32c856(0x159)](_0x28e8e3,_0x19168a){const _0x77a90b=_0x32c856,{text:_0xa49f1,color:_0x4a37be}=_0x19168a;_0x28e8e3['save'](),_0x28e8e3['font']=_0x77a90b(0x202);const _0x466778=_0x28e8e3[_0x77a90b(0x245)](_0xa49f1)[_0x77a90b(0x332)],_0x22a30a=Math[_0x77a90b(0x212)](_0x466778+0x2*Re,at);ji(_0x28e8e3,{'height':Q,'radius':0x4,'width':_0x22a30a,'fill':_0x4a37be}),_0x28e8e3[_0x77a90b(0x23b)]='#FFF';const _0x31e7ac=Re,_0x1ef66e=Q-Vi,_0x22476e=at-0x2*Re;if(_0x466778>_0x22476e){let _0x2c4295='',_0x35164d=0x0;for(const _0x4a9d8f of _0xa49f1){const _0x122edb=_0x28e8e3[_0x77a90b(0x245)](_0x4a9d8f)[_0x77a90b(0x332)];if(_0x35164d+_0x122edb<=_0x22476e-_0x28e8e3[_0x77a90b(0x245)](_0x77a90b(0x29b))[_0x77a90b(0x332)])_0x2c4295+=_0x4a9d8f,_0x35164d+=_0x122edb;else{_0x2c4295+='...';break;}}_0x28e8e3[_0x77a90b(0x211)](_0x2c4295,_0x31e7ac,_0x1ef66e);}else _0x28e8e3['fillText'](_0xa49f1,_0x31e7ac,_0x1ef66e);_0x28e8e3[_0x77a90b(0x2e8)]();}[_0x32c856(0x1d4)](_0x31098a){const _0x3543a4=_0x32c856;ve[_0x3543a4(0x159)](_0x31098a,this);}}const De='collab-text-anchor-',Xi=_0x32c856(0x148),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x32c856(0x213);class ct{constructor(_0x273099,_0xb3711d,_0x37bddd,_0x12d134){const _0x1a154c=_0x32c856;_(this,_0x1a154c(0x2d5),[]),_(this,_0x1a154c(0x162),null),_(this,_0x1a154c(0x1dc),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x1a154c(0x151)]=_0x273099,this[_0x1a154c(0x1b0)]=_0xb3711d,this[_0x1a154c(0x340)]=_0x37bddd,this[_0x1a154c(0x1e1)]=_0x12d134,this[_0x1a154c(0x2eb)]());}set['_hover'](_0x16c9d9){const _0x4bdcb3=_0x32c856;_0x16c9d9?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x4bdcb3(0x1dc)]&&this[_0x4bdcb3(0x1dc)][_0x4bdcb3(0x1e9)]()):(this[_0x4bdcb3(0x346)]&&this[_0x4bdcb3(0x346)][_0x4bdcb3(0x1e9)](),this[_0x4bdcb3(0x1dc)]&&this[_0x4bdcb3(0x1dc)][_0x4bdcb3(0x1c9)]());}['dispose'](){const _0x57578f=_0x32c856;for(const _0x152684 of this[_0x57578f(0x2d5)])_0x152684['dispose']();this['_textBubble']&&this[_0x57578f(0x1dc)]['dispose'](),this[_0x57578f(0x346)]&&this[_0x57578f(0x346)]['dispose'](),this[_0x57578f(0x162)]&&this[_0x57578f(0x162)][_0x57578f(0x18c)](),this[_0x57578f(0x26b)]&&this[_0x57578f(0x26b)]();}['_render'](){const _0x29c760=_0x32c856;var _0x5cf381;const {_docSkeleton:_0x3ced4e,_document:_0x28a08b}=this,{color:_0x4b07d4,name:_0x4bad50,ranges:_0x22a41f}=this[_0x29c760(0x151)],_0x1c090a=_0x28a08b[_0x29c760(0x1f7)](),{docsLeft:_0x2e554e,docsTop:_0x2db194}=_0x1c090a,_0x1eeeca=new _0x5d71a8(_0x1c090a,_0x3ced4e);for(const {startOffset:_0x2e1a2d,endOffset:_0x42e553,rangeType:_0x4baeeb,segmentId:_0x5502af,segmentPage:_0x1b4828,collapsed:_0x31e88a,isActive:_0x3b6c04}of _0x22a41f){const _0x44bf13=_0x3ced4e[_0x29c760(0x318)](_0x2e1a2d,!0x0,_0x5502af,_0x1b4828);let _0x2ecd80=_0x3ced4e[_0x29c760(0x318)](_0x42e553,!0x0,_0x5502af,_0x1b4828);if(_0x2ecd80==null&&(_0x2ecd80=_0x3ced4e[_0x29c760(0x318)](_0x42e553-0x1,!0x1,_0x5502af,_0x1b4828)),_0x3b6c04){const {contentBoxPointGroup:_0x136790}=_0x1eeeca[_0x29c760(0x116)](_0x2ecd80,_0x2ecd80);if(_0x136790[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x296)](_0x4b07d4,_0x136790,_0x2e554e,_0x2db194,_0x4bad50),this[_0x29c760(0x26b)]=this[_0x29c760(0x246)]();}if(_0x44bf13&&_0x2ecd80){if(_0x4baeeb===_0x5c4026['RECT']){const _0x52ce0e=new _0x2247c5(_0x1c090a,_0x3ced4e),{pointGroup:_0x30fc10}=(_0x5cf381=_0x52ce0e[_0x29c760(0x116)](_0x44bf13,_0x2ecd80))!=null?_0x5cf381:{};if(_0x30fc10==null||_0x30fc10[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x288)](_0x4b07d4,_0x30fc10,_0x2e554e,_0x2db194);}else{if(!_0x31e88a){const {borderBoxPointGroup:_0x5c5f47}=_0x1eeeca['getRangePointData'](_0x44bf13,_0x2ecd80);if(_0x5c5f47[_0x29c760(0x155)]===0x0)continue;this[_0x29c760(0x326)](_0x4b07d4,_0x5c5f47,_0x2e554e,_0x2db194);}}}}}['_drawAnchor'](_0x4cd239,_0x1f603c,_0x3a3264,_0x329065,_0x571cc4){const _0x5c8eb5=_0x32c856,_0x5a636d=this[_0x5c8eb5(0x24b)](_0x1f603c),{left:_0x3945d3,top:_0x122516,height:_0xfc5ada}=_0x5a636d,_0xe63931=this['_getScale'](),_0xdc3bee=zi/_0xe63931,_0x533505=new _0x1310d2(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065,'height':_0xfc5ada,'width':Ki,'fill':_0x4cd239||_0x13fecd(_0x588a4b[_0x5c8eb5(0x242)],0x0),'strokeWidth':_0xdc3bee,'stroke':Ji,'evented':!0x0});this[_0x5c8eb5(0x162)]=_0x533505,this[_0x5c8eb5(0x1b0)]['addObject'](_0x533505,_0x473fb7);const _0x30d3d1=new _0x1310d2(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x4cd239||_0x13fecd(_0x588a4b[_0x5c8eb5(0x242)],0x0),'strokeWidth':0x0,'stroke':_0x4cd239||_0x13fecd(_0x588a4b['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x30d3d1,this['_scene']['addObject'](_0x30d3d1,_0x473fb7);const _0x5599f5=new ve(De+_0x3baa1f(z),{'left':_0x3945d3+_0x3a3264-_0xdc3bee,'top':_0x122516+_0x329065-Q,'text':_0x571cc4,'color':_0x4cd239});this[_0x5c8eb5(0x1dc)]=_0x5599f5,this[_0x5c8eb5(0x1b0)][_0x5c8eb5(0x2e0)](_0x5599f5,_0x473fb7),this[_0x5c8eb5(0x23a)]=!0x1;}[_0x32c856(0x246)](){const _0xadebd3=_0x32c856,_0x49130b=this[_0xadebd3(0x162)][_0xadebd3(0x11a)]['subscribeEvent'](()=>{const _0x161ddc=_0xadebd3;this[_0x161ddc(0x23a)]=!0x0;}),_0x43abab=this[_0xadebd3(0x162)][_0xadebd3(0x188)][_0xadebd3(0x13a)](()=>{const _0x1772fe=_0xadebd3;this[_0x1772fe(0x25b)]&&clearTimeout(this[_0x1772fe(0x25b)]),this[_0x1772fe(0x25b)]=setTimeout(()=>{const _0x17ee2c=_0x1772fe;this[_0x17ee2c(0x23a)]=!0x1;},0x7d0);});return()=>{const _0x512478=_0xadebd3;_0x49130b['unsubscribe'](),_0x43abab[_0x512478(0x1c7)]();};}[_0x32c856(0x326)](_0x408c5c,_0x441aa6,_0x1770e4,_0x531111){const _0xa64d2a=_0x32c856,_0x59e1c3=new _0x1dccbf(_0x408c5c)['setAlpha'](0.2)[_0xa64d2a(0x261)](),_0x43a3be=new _0x320ae7(Xi+_0x3baa1f(z),{'pointsGroup':_0x441aa6,'fill':_0x59e1c3||_0x13fecd(_0x588a4b[_0xa64d2a(0x242)],0.2),'left':_0x1770e4,'top':_0x531111,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xa64d2a(0x2d5)][_0xa64d2a(0x302)](_0x43a3be),this[_0xa64d2a(0x1b0)][_0xa64d2a(0x2e0)](_0x43a3be,_0x473fb7);}[_0x32c856(0x288)](_0x1ac803,_0x54141e,_0x5f4dca,_0x1e871b){const _0x192c3c=_0x32c856,_0x35fca5=new _0x1dccbf(_0x1ac803)['setAlpha'](0.2)[_0x192c3c(0x261)](),_0x509b92=new _0x320ae7(Gi+_0x3baa1f(z),{'pointsGroup':_0x54141e,'fill':_0x35fca5||_0x13fecd(_0x588a4b[_0x192c3c(0x242)],0.2),'left':_0x5f4dca,'top':_0x1e871b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x192c3c(0x302)](_0x509b92),this[_0x192c3c(0x1b0)][_0x192c3c(0x2e0)](_0x509b92,_0x473fb7);}[_0x32c856(0x24b)](_0x6f499c){const _0x123d95=_0x6f499c[0x0],_0x7326de=_0x123d95[0x0],_0x3373bd=_0x123d95[0x2],{x:_0x5a413f,y:_0x53efaf}=_0x7326de,{x:_0x40ff83,y:_0xd0ffd4}=_0x3373bd;return{'left':_0x5a413f,'top':_0x53efaf,'width':_0x40ff83-_0x5a413f,'height':_0xd0ffd4-_0x53efaf};}[_0x32c856(0x257)](){const _0x5cf39b=_0x32c856,{scaleX:_0x136264,scaleY:_0x3b1a89}=this[_0x5cf39b(0x1b0)][_0x5cf39b(0x13e)]();return Math['max'](_0x136264,_0x3b1a89);}}var Zi=Object[_0x32c856(0x169)],Qi=(_0x44602c,_0x45bdb6,_0x16cf53,_0x1058f8)=>{const _0x112eef=_0x32c856;for(var _0x21cbee=_0x1058f8>0x1?void 0x0:_0x1058f8?Zi(_0x45bdb6,_0x16cf53):_0x45bdb6,_0x1209d6=_0x44602c[_0x112eef(0x155)]-0x1,_0x4e2c60;_0x1209d6>=0x0;_0x1209d6--)(_0x4e2c60=_0x44602c[_0x1209d6])&&(_0x21cbee=_0x4e2c60(_0x21cbee)||_0x21cbee);return _0x21cbee;},ie=(_0x5ea0cf,_0x25832c)=>(_0x52afc9,_0x2d8b38)=>_0x25832c(_0x52afc9,_0x2d8b38,_0x5ea0cf);let Fe=class extends _0x2ed217{constructor(_0x4a30e1,_0x418540,_0x458fea,_0x481d58,_0x564ba7){const _0x26f24c=_0x32c856;super(),_(this,_0x26f24c(0x144),[]),_(this,_0x26f24c(0x349),[]),(this[_0x26f24c(0x1fd)]=_0x4a30e1,this[_0x26f24c(0x317)]=_0x418540,this['_collabCursorController']=_0x458fea,this[_0x26f24c(0x15b)]=_0x481d58,this[_0x26f24c(0x1d1)]=_0x564ba7,this[_0x26f24c(0x353)]());}['_init'](){const _0x245ef2=_0x32c856,_0x3838fc=this[_0x245ef2(0x1fd)][_0x245ef2(0x196)],_0x56c4d7=this[_0x245ef2(0x317)];this[_0x245ef2(0x331)](_0x2119f1([this[_0x245ef2(0x344)][_0x245ef2(0x29a)](_0x3838fc),this[_0x245ef2(0x1d1)]['currentTheme$']])['pipe'](_0x33188f(([_0x548b2b,_0x49b511])=>({'skeleton':_0x56c4d7[_0x245ef2(0x1df)](),'cursors':[..._0x548b2b[_0x245ef2(0x179)]()][_0x245ef2(0x359)](_0x2d68f0=>({..._0x2d68f0,'color':this['_themeService'][_0x245ef2(0x117)](_0x2d68f0[_0x245ef2(0x28f)])}))})))['subscribe'](_0x311659=>{const _0x51f12f=_0x245ef2;if(this[_0x51f12f(0x277)](),_0x311659){const {skeleton:_0x5d0081,cursors:_0x3e504e}=_0x311659;this[_0x51f12f(0x285)](_0x5d0081,_0x3e504e);}})),this[_0x245ef2(0x2ca)](),this[_0x245ef2(0x135)]();}[_0x32c856(0x285)](_0x2388bb,_0x4ab27c){const _0x2d80fd=_0x32c856,{scene:_0x5e057c,mainComponent:_0x2ad3e5}=this[_0x2d80fd(0x1fd)],_0x2a18de=_0x4ab27c[_0x2d80fd(0x1e7)](_0x5a7f10=>new ct(_0x5a7f10,_0x5e057c,_0x2388bb,_0x2ad3e5));this['_cursorShapes']=_0x2a18de,this[_0x2d80fd(0x349)]=_0x4ab27c;}[_0x32c856(0x29c)](){const _0x386f0b=_0x32c856;this[_0x386f0b(0x277)]();const {scene:_0x37a122,mainComponent:_0x55f048}=this['_context'],_0xc9cf72=this[_0x386f0b(0x317)][_0x386f0b(0x1df)](),_0x570eba=this['_cursors']['map'](_0x5bf064=>new ct(_0x5bf064,_0x37a122,_0xc9cf72,_0x55f048));this[_0x386f0b(0x144)]=_0x570eba;}[_0x32c856(0x277)](){const _0x279fb4=_0x32c856;this[_0x279fb4(0x144)][_0x279fb4(0x284)](_0x2f7458=>_0x2f7458[_0x279fb4(0x18c)]()),this['_cursorShapes']=[];}[_0x32c856(0x135)](){const _0x3fc5c2=_0x32c856,_0x33f334=[_0x43466a['id']];this[_0x3fc5c2(0x331)](this['_commandService'][_0x3fc5c2(0x297)](_0x12d2f8=>{const _0x2965fc=_0x3fc5c2;_0x33f334[_0x2965fc(0x29f)](_0x12d2f8['id'])&&_0x12d2f8[_0x2965fc(0x128)]['unitId']===this[_0x2965fc(0x1fd)][_0x2965fc(0x196)]&&this['_refreshCollabCursors']();}));}[_0x32c856(0x2ca)](){const _0x5695c3=_0x32c856;this[_0x5695c3(0x331)](_0x402d62(this[_0x5695c3(0x1fd)][_0x5695c3(0x2f7)][_0x5695c3(0x232)])[_0x5695c3(0x28e)](_0x88e841(_0x2e21f7=>_0x2e21f7['type']===_0x3ee913['resize']),_0x570b9f(0x10))['subscribe'](()=>{const _0x5a5316=_0x5695c3;this[_0x5a5316(0x29c)]();}));}};Fe=Qi([ie(0x1,_0xb67117(_0x72d0b4)),ie(0x2,_0xb67117(H)),ie(0x3,_0x156a6d),ie(0x4,_0xb67117(_0x56a243))],Fe);const qi=0x1,en=1.5;class tn extends _0xd21fe3{constructor(_0x4afe53,_0x1e2f57){const _0x2c4044=_0x32c856;super(_0x4afe53,_0x1e2f57),_(this,_0x2c4044(0x1af)),_(this,_0x2c4044(0x193),!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x2c4044(0x16b),_0x2c4044(0x31b)),_(this,_0x2c4044(0x2a8)),(_0x1e2f57&&this[_0x2c4044(0x17a)](_0x1e2f57),this[_0x2c4044(0x11a)][_0x2c4044(0x13a)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2c4044(0x188)][_0x2c4044(0x13a)](()=>this[_0x2c4044(0x17a)]({'hovered':!0x1})));}[_0x32c856(0x17a)](_0x5e8857){const _0x523616=_0x32c856;var _0x20ce40,_0x2f91fd,_0x1d7973,_0xa880cf,_0x2ace4d,_0x557634;this[_0x523616(0x1af)]=(_0x20ce40=_0x5e8857[_0x523616(0x28f)])!=null?_0x20ce40:this[_0x523616(0x1af)],this[_0x523616(0x193)]=(_0x2f91fd=_0x5e8857[_0x523616(0x2a0)])!=null?_0x2f91fd:this[_0x523616(0x193)],this[_0x523616(0x2d8)]=(_0x1d7973=_0x5e8857[_0x523616(0x14b)])!=null?_0x1d7973:this['_range'],this['_name']=(_0xa880cf=_0x5e8857[_0x523616(0x19a)])!=null?_0xa880cf:this['_name'],this[_0x523616(0x16b)]=(_0x2ace4d=_0x5e8857[_0x523616(0x20d)])!=null?_0x2ace4d:this[_0x523616(0x16b)],this[_0x523616(0x2a8)]=(_0x557634=_0x5e8857[_0x523616(0x1c6)])!=null?_0x557634:this[_0x523616(0x2a8)],this[_0x523616(0x2dc)]({'width':_0x5e8857[_0x523616(0x332)],'height':_0x5e8857[_0x523616(0x163)]});}[_0x32c856(0x1ba)](_0x32d5ae){const _0x29156c=_0x32c856,{row:_0x2881fa,column:_0x4a158f}=_0x32d5ae;if(_0x2881fa>=this[_0x29156c(0x2d8)][_0x29156c(0x154)]&&_0x2881fa<=this[_0x29156c(0x2d8)][_0x29156c(0x301)]&&_0x4a158f>=this[_0x29156c(0x2d8)][_0x29156c(0x322)]&&_0x4a158f<=this[_0x29156c(0x2d8)][_0x29156c(0x22f)]){this[_0x29156c(0x17a)]({'hovered':!0x0});return;}this[_0x29156c(0x17a)]({'hovered':!0x1});}[_0x32c856(0x12a)](_0x10d417){return!0x1;}[_0x32c856(0x1d4)](_0x113f4e){const _0x136fc7=_0x32c856;_0x1310d2[_0x136fc7(0x159)](_0x113f4e,{'width':this[_0x136fc7(0x332)],'height':this[_0x136fc7(0x163)],'strokeWidth':en,'stroke':this[_0x136fc7(0x1af)],'evented':!0x1,'fill':this[_0x136fc7(0x2a8)]}),this[_0x136fc7(0x193)]&&(_0x113f4e[_0x136fc7(0x275)](),_0x113f4e['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x136fc7(0x16b)]==='bottom'?0x0:-Q),ve[_0x136fc7(0x159)](_0x113f4e,{'text':this['_name'],'color':this['_color']}),_0x113f4e[_0x136fc7(0x2e8)]());}}var sn=Object[_0x32c856(0x169)],nn=(_0x5120d8,_0x13335f,_0x46b178,_0x540bc6)=>{const _0x237109=_0x32c856;for(var _0x1974c6=_0x540bc6>0x1?void 0x0:_0x540bc6?sn(_0x13335f,_0x46b178):_0x13335f,_0x3df548=_0x5120d8[_0x237109(0x155)]-0x1,_0x59d382;_0x3df548>=0x0;_0x3df548--)(_0x59d382=_0x5120d8[_0x3df548])&&(_0x1974c6=_0x59d382(_0x1974c6)||_0x1974c6);return _0x1974c6;},be=(_0x4b514a,_0x42f144)=>(_0x49d818,_0x35b38b)=>_0x42f144(_0x49d818,_0x35b38b,_0x4b514a);const rn=0x1389;let ke=class extends _0x2ed217{constructor(_0x378203,_0x81e3bd,_0xffb2a5,_0x332837){const _0x5406f9=_0x32c856;super(),_(this,_0x5406f9(0x349),new Set()),_(this,_0x5406f9(0x1c5),null),(this['_context']=_0x378203,this[_0x5406f9(0x33b)]=_0x81e3bd,this[_0x5406f9(0x344)]=_0xffb2a5,this['_themeService']=_0x332837,this[_0x5406f9(0x353)]());}['_init'](){const _0x559fed=_0x32c856;this[_0x559fed(0x33b)]['currentSkeleton$']['pipe'](_0xcdf3c0(this[_0x559fed(0x236)]),_0x320766(_0x9f9e4b=>{const _0x288c60=_0x559fed;if(_0x9f9e4b){const _0x4012b7=_0x9f9e4b[_0x288c60(0x1bd)];return _0x2119f1(this[_0x288c60(0x344)]['getCollabCursors$'](this[_0x288c60(0x1fd)]['unitId']),this[_0x288c60(0x1d1)][_0x288c60(0x2d2)])[_0x288c60(0x28e)](_0x33188f(([_0x5cb552,_0x3c737f])=>{const _0x700823=new Map();return _0x5cb552['forEach']((_0x3d25dc,_0x4d1d62)=>{const _0x5cfbcc=_0x403b;if(_0x3d25dc[_0x5cfbcc(0x314)]===_0x4012b7){const _0x50e3dd={..._0x3d25dc};_0x50e3dd['color']=this[_0x5cfbcc(0x1d1)][_0x5cfbcc(0x117)](_0x3d25dc[_0x5cfbcc(0x28f)]),_0x700823[_0x5cfbcc(0x191)](_0x4d1d62,_0x50e3dd);}}),{'skeleton':_0x9f9e4b,'cursors':_0x700823};}));}return _0x5ee058({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x22a257,cursors:_0x2781ce})=>{const _0x93d403=_0x559fed;this[_0x93d403(0x277)](),_0x22a257&&this[_0x93d403(0x285)](_0x22a257,_0x2781ce);}),this[_0x559fed(0x33b)][_0x559fed(0x21b)]['subscribe'](_0x191bdf=>{const _0x480958=_0x559fed;if(_0x191bdf==null)return;const {skeleton:_0x23d8dd}=_0x191bdf,{scene:_0x5090f3}=this[_0x480958(0x1fd)];_0x5090f3[_0x480958(0x171)]['subscribeEvent'](_0x5afc05(_0x1c0fea=>{const _0x40980f=_0x480958;var _0x5248a1,_0x1872ba;const {offsetX:_0x1c84bd,offsetY:_0x383fe1}=_0x1c0fea,{x:_0xf82485,y:_0x19eb5e}=_0x5090f3[_0x40980f(0x33c)](_0x9ebff6['FromArray']([_0x1c84bd,_0x383fe1])),{scaleX:_0x485bfa,scaleY:_0x2922d8}=_0x5090f3['getAncestorScale'](),_0x5ed45c=_0x5090f3[_0x40980f(0x2c0)](_0x2099da[_0x40980f(0x34d)]),_0x272508=_0x5090f3[_0x40980f(0x2f5)](_0x9ebff6[_0x40980f(0x1ad)]([_0xf82485,_0x19eb5e]),_0x5ed45c),_0x1d9bb8=_0x23d8dd[_0x40980f(0x2bc)](_0x1c84bd,_0x383fe1,_0x485bfa,_0x2922d8,_0x272508);((_0x5248a1=this['_lastPointer'])==null?void 0x0:_0x5248a1[_0x40980f(0x115)])===_0x1d9bb8[_0x40980f(0x115)]&&((_0x1872ba=this[_0x40980f(0x1c5)])==null?void 0x0:_0x1872ba[_0x40980f(0x16c)])===_0x1d9bb8[_0x40980f(0x16c)]||this[_0x40980f(0x349)][_0x40980f(0x284)](_0x5a10d2=>{_0x5a10d2['onMouseMove'](_0x1d9bb8);});},0x64));});}['_updateCollabCursors'](_0x195fef,_0x1ce0c2){const _0x10335a=_0x32c856;var _0x3c525e;const _0x7233a2=(_0x3c525e=this[_0x10335a(0x33b)][_0x10335a(0x347)]())==null?void 0x0:_0x3c525e['skeleton'];if(!_0x7233a2)return;const _0x58485b=this[_0x10335a(0x30d)]();if(!_0x58485b)return;this[_0x10335a(0x349)][_0x10335a(0x284)](_0x25a920=>{const _0x3ba465=_0x10335a;_0x25a920[_0x3ba465(0x2cb)]();});const {scene:_0x5bd54a}=_0x58485b,_0x265886=on(Array[_0x10335a(0x22b)](_0x1ce0c2[_0x10335a(0x179)]()))[_0x10335a(0x1e7)](_0x2904e6=>{const _0x5c8ed2=_0x10335a,{color:_0x14651c,range:_0x4d7899,name:_0x23aeb1,selection:_0x5871dd,sheetID:_0x23c470}=_0x2904e6,{startColumn:_0x4204b6,startRow:_0xc4f61e,endColumn:_0x538bcd,endRow:_0x10b9e9}=_0x4d7899,_0x3e12e7=_0x245eeb(_0xc4f61e,_0x4204b6,_0x5bd54a,_0x7233a2),_0x14ccb8=_0x245eeb(_0x10b9e9,_0x538bcd,_0x5bd54a,_0x7233a2),{columnHeaderHeightAndMarginTop:_0x52b7d4}=_0x7233a2,{startX:_0x4fdcf1,startY:_0x413e2a}=_0x3e12e7,{endX:_0x507c3b,endY:_0x74c880}=_0x14ccb8,_0x5063d6=_0x507c3b-_0x4fdcf1,_0x580ae4=_0x74c880-_0x413e2a,_0x4ccac5={'labelPosition':_0x413e2a-_0x52b7d4>=Q?'top':_0x5c8ed2(0x337),'sheetID':_0x23c470,'range':_0x4d7899,'color':_0x14651c,'name':_0x23aeb1,'selection':_0x5871dd,'left':_0x4fdcf1,'top':_0x413e2a,'width':_0x5063d6,'height':_0x580ae4,'evented':!0x1,'zIndex':rn};return new tn(_0x23aeb1,_0x4ccac5);});_0x5bd54a[_0x10335a(0x30e)](_0x265886,qi),this[_0x10335a(0x349)]=new Set(_0x265886);}['_removeCollabCursors'](){const _0x30676c=_0x32c856;var _0x1d35a1;(_0x1d35a1=this['_cursors'])==null||_0x1d35a1['forEach'](_0xafccac=>_0xafccac[_0x30676c(0x18c)]());}['_getSheetObject'](){const _0x3fd486=_0x32c856;return _0x477d6e(this[_0x3fd486(0x1fd)][_0x3fd486(0x354)],this[_0x3fd486(0x1fd)]);}};ke=nn([be(0x1,_0xb67117(_0x150f98)),be(0x2,_0xb67117(H)),be(0x3,_0xb67117(_0x56a243))],ke);function on(_0xd2d6f){const _0x352220=_0x32c856,_0x2af855=new Map();return _0xd2d6f[_0x352220(0x284)](_0x23d81a=>{const _0xda06e2=_0x352220;if(_0x2af855[_0xda06e2(0x23c)](_0x23d81a[_0xda06e2(0x204)])){const _0x29a3d1=_0x2af855[_0xda06e2(0x2b3)](_0x23d81a[_0xda06e2(0x204)]);_0x29a3d1[_0xda06e2(0x19a)]+=',\x20'+_0x23d81a[_0xda06e2(0x19a)];}else _0x2af855[_0xda06e2(0x191)](_0x23d81a[_0xda06e2(0x204)],_0x23d81a);}),Array['from'](_0x2af855[_0x352220(0x179)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x573966,_0x516f88,_0x1403c7,_0x4168f4)=>{const _0x315e6b=_0x32c856;for(var _0x3ed4ce=_0x4168f4>0x1?void 0x0:_0x4168f4?an(_0x516f88,_0x1403c7):_0x516f88,_0x5d3683=_0x573966[_0x315e6b(0x155)]-0x1,_0x196358;_0x5d3683>=0x0;_0x5d3683--)(_0x196358=_0x573966[_0x5d3683])&&(_0x3ed4ce=_0x196358(_0x3ed4ce)||_0x3ed4ce);return _0x3ed4ce;},F=(_0x488c2e,_0x4eb952)=>(_0x2a1e42,_0x3a06d8)=>_0x4eb952(_0x2a1e42,_0x3a06d8,_0x488c2e);let _e=class extends _0x4ca9c1{constructor(_0xae3148,_0x1010ea,_0x1ef87a,_0x43331d,_0x1139f1,_0x2bad18){const _0x8f74b1=_0x32c856;super(),this[_0x8f74b1(0x1ec)]=_0xae3148,this[_0x8f74b1(0x12b)]=_0x1010ea,this[_0x8f74b1(0x2d4)]=_0x1ef87a,this[_0x8f74b1(0x129)]=_0x43331d,this[_0x8f74b1(0x263)]=_0x1139f1,this[_0x8f74b1(0x338)]=_0x2bad18,this[_0x8f74b1(0x1bf)](),this[_0x8f74b1(0x304)]();}[_0x32c856(0x1bf)](){const _0xc6d75b=_0x32c856;this['disposeWithMe'](this[_0xc6d75b(0x1ec)]['registerBeforeClose'](()=>{const _0x3ab9b6=_0xc6d75b;if(this[_0x3ab9b6(0x12b)][_0x3ab9b6(0x12c)][_0x3ab9b6(0x2c3)])return this[_0x3ab9b6(0x338)]['t'](_0x3ab9b6(0x238));}));}[_0x32c856(0x304)](){const _0x2bda4b=_0x32c856;this['disposeWithMe'](this[_0x2bda4b(0x2d4)][_0x2bda4b(0x1d7)][_0x2bda4b(0x2bf)](_0x34a5ff=>{const _0x1efdfe=_0x2bda4b;_0x34a5ff['id']===_0xa2113b['OTHER_CLIENT_EDITING']&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Warning'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x139))}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x209)]&&this['_messageService'][_0x1efdfe(0x1e9)]({'type':_0x4659ab[_0x1efdfe(0x164)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x24c)]&&this[_0x1efdfe(0x263)][_0x1efdfe(0x1e9)]({'title':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x29e)),'content':this['_localeService']['t'](_0x1efdfe(0x1a8)),'type':'error','duration':0x0}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x176)]&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab['Error'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x2d0))+'('+_0x34a5ff[_0x1efdfe(0x306)]+')'}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x13b)]&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab['Warning'],'content':this[_0x1efdfe(0x338)]['t'](_0x34a5ff[_0x1efdfe(0x306)]||'')}),_0x34a5ff['id']===_0xa2113b['SOCKET_FAILED_RETRY']&&this[_0x1efdfe(0x129)][_0x1efdfe(0x1e9)]({'type':_0x4659ab[_0x1efdfe(0x164)],'content':this[_0x1efdfe(0x338)]['t']('session.will-retry')}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x30f)]&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Error'],'content':this['_localeService']['t'](_0x1efdfe(0x32d))}),_0x34a5ff['id']===_0xa2113b[_0x1efdfe(0x2c8)]&&this[_0x1efdfe(0x129)]['show']({'type':_0x4659ab['Error'],'content':this[_0x1efdfe(0x338)]['t'](_0x1efdfe(0x239))});}));}};_e=cn([F(0x0,_0x1cd947),F(0x1,_0x58c896),F(0x2,_0xb67117(_0x168d8a)),F(0x3,_0x2f7eba),F(0x4,_0x5e175a),F(0x5,_0xb67117(_0x19887b))],_e);var _n=Object[_0x32c856(0x169)],ln=(_0xc0c05b,_0x10db27,_0xfd1595,_0x2e4d11)=>{for(var _0x57ef57=_0x2e4d11>0x1?void 0x0:_0x2e4d11?_n(_0x10db27,_0xfd1595):_0x10db27,_0x4f3032=_0xc0c05b['length']-0x1,_0x41d809;_0x4f3032>=0x0;_0x4f3032--)(_0x41d809=_0xc0c05b[_0x4f3032])&&(_0x57ef57=_0x41d809(_0x57ef57)||_0x57ef57);return _0x57ef57;},ne=(_0x49ecc5,_0x211681)=>(_0x1f0047,_0x6f9c45)=>_0x211681(_0x1f0047,_0x6f9c45,_0x49ecc5);let le=class extends _0x4ca9c1{constructor(_0x50de26,_0x44890e,_0x25045d,_0x3bd2c2){const _0x493a89=_0x32c856;super(),_(this,_0x493a89(0x186)),(this[_0x493a89(0x1f5)]=_0x50de26,this[_0x493a89(0x222)]=_0x44890e,this[_0x493a89(0x1b4)]=_0x25045d,this['_collaborationSessionService']=_0x3bd2c2,this[_0x493a89(0x353)]());}[_0x32c856(0x353)](){const _0x128f34=_0x32c856;this['_initWindowErrorListener'](),this[_0x128f34(0x335)](),this['_monkeyPatchLogService'](),this[_0x128f34(0x323)]();}[_0x32c856(0x323)](){const _0x2f3812=_0x32c856;this[_0x2f3812(0x331)](this['_collaborationSessionService'][_0x2f3812(0x1c8)][_0x2f3812(0x2bf)](_0x556a63=>{const _0x31d5c1=_0x2f3812;this[_0x31d5c1(0x186)]=_0x556a63==null?void 0x0:_0x556a63[_0x31d5c1(0x2c9)];}));}[_0x32c856(0x119)](){const _0x3a6811=_0x32c856,_0x4490ce=_0xc9496c=>{const _0x15e565=_0x403b;var _0x46f3fd;this[_0x15e565(0x1fe)](_0x15e565(0x12e),_0x15e565(0x1dd)+_0xc9496c['message']+_0x15e565(0x132)+_0xc9496c[_0x15e565(0x2e4)]+':'+_0xc9496c[_0x15e565(0x16d)]+':'+_0xc9496c['colno']+'\x0a'+(((_0x46f3fd=_0xc9496c[_0x15e565(0x12e)])==null?void 0x0:_0x46f3fd[_0x15e565(0x18f)])||''));};window[_0x3a6811(0x1ef)](_0x3a6811(0x12e),_0x4490ce),this[_0x3a6811(0x331)](()=>{const _0x357e36=_0x3a6811;window[_0x357e36(0x328)](_0x357e36(0x12e),_0x4490ce);});}[_0x32c856(0x335)](){const _0x1dff91=_0x32c856,_0x52b132=_0x486e10=>{const _0x5a88c3=_0x403b;this[_0x5a88c3(0x1fe)](_0x5a88c3(0x12e),_0x5a88c3(0x2d9)+_0x486e10[_0x5a88c3(0x2b4)]);};window[_0x1dff91(0x1ef)](_0x1dff91(0x123),_0x52b132),this[_0x1dff91(0x331)](()=>{const _0x5a5a85=_0x1dff91;window[_0x5a5a85(0x328)]('unhandledrejection',_0x52b132);});}['_monkeyPatchLogService'](){const _0xfc1a87=_0x32c856,_0x2c40dd=this[_0xfc1a87(0x1b4)][_0xfc1a87(0x12e)][_0xfc1a87(0x1cf)](this[_0xfc1a87(0x1b4)]);this[_0xfc1a87(0x1b4)][_0xfc1a87(0x12e)]=(..._0x387f25)=>{const _0x51b0db=_0xfc1a87,_0x19e8cc=_0x387f25[_0x51b0db(0x1e7)](_0x4482f0=>_0x4482f0 instanceof Error?_0x4482f0['message']+'\x0a'+_0x4482f0['stack']:String(_0x4482f0))[_0x51b0db(0x2de)]('\x20');this[_0x51b0db(0x1fe)](_0x51b0db(0x12e),_0x51b0db(0x34c)+_0x19e8cc),_0x2c40dd(..._0x387f25);},this[_0xfc1a87(0x331)](()=>{const _0xfdad17=_0xfc1a87;this['_logService'][_0xfdad17(0x12e)]=_0x2c40dd;});}[_0x32c856(0x1fe)](_0x217037,_0x4577b0){const _0x378e1d=_0x32c856;try{const _0x3201db={'userId':this[_0x378e1d(0x186)],'logLabel':_0x217037,'content':_0x4577b0};this[_0x378e1d(0x222)][_0x378e1d(0x2a5)](_0x378e1d(0x185),{'body':_0x3201db})[_0x378e1d(0x2c5)](()=>{});}catch{}}};le=ln([ne(0x0,_0xb67117(_0x2d24f1)),ne(0x1,_0xb67117(_0x2841df)),ne(0x2,_0x3f6a9a),ne(0x3,_0xb67117(_0x587ed6))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x32c856(0x169)],dn=(_0x288088,_0x2039fd,_0x228e54,_0x3d8794)=>{const _0x412fe1=_0x32c856;for(var _0xfb88eb=_0x3d8794>0x1?void 0x0:_0x3d8794?un(_0x2039fd,_0x228e54):_0x2039fd,_0xd0a62b=_0x288088[_0x412fe1(0x155)]-0x1,_0x29fdc8;_0xd0a62b>=0x0;_0xd0a62b--)(_0x29fdc8=_0x288088[_0xd0a62b])&&(_0xfb88eb=_0x29fdc8(_0xfb88eb)||_0xfb88eb);return _0xfb88eb;},lt=(_0x1a64f8,_0x5a4414)=>(_0x58e28e,_0x1713ca)=>_0x5a4414(_0x58e28e,_0x1713ca,_0x1a64f8);let he=class{constructor(_0x5abc6e,_0x15636f){const _0x391daf=_0x32c856;this[_0x391daf(0x33f)]=_0x5abc6e,this[_0x391daf(0x34f)]=_0x15636f;}['transformIMECache'](_0x1a9189){const _0xa18c42=_0x32c856;this[_0xa18c42(0x1de)](_0x1a9189),this['_transformPreviousActiveRange'](_0x1a9189);}['transformRemoteChangeset'](_0x3bd2c3){const _0x571493=_0x32c856,{unitID:_0x26d4b4}=_0x3bd2c3,_0x6cc51c=this[_0x571493(0x34f)][_0x571493(0x342)](_0x26d4b4)[_0x571493(0x2bb)](_0x31d69b),{redoCache:_0x28c52b}=_0x6cc51c['getUndoRedoMutationParamsCache']();if(_0x28c52b[_0x571493(0x155)]===0x0)return _0x3bd2c3;let _0x3f3a87=_0x5065b3['deepClone'](_0x3bd2c3['mutations'][0x0]);for(let _0x2c8de0=0x0;_0x2c8de0<_0x28c52b[_0x571493(0x155)];_0x2c8de0++){const _0xe1eea8={'id':_0x571493(0x2b8),'params':{..._0x28c52b[_0x2c8de0]}},_0x282579=this[_0x571493(0x33f)][_0x571493(0x18d)](_0x3f3a87,_0xe1eea8,!0x1);if(_0x28a617(_0x282579))throw _0x282579[_0x571493(0x12e)];_0x3f3a87=_0x282579[_0x571493(0x31c)];}return{..._0x5065b3[_0x571493(0x334)](_0x3bd2c3),'mutations':[_0x3f3a87]};}[_0x32c856(0x1de)](_0x22c60f){const _0x209c73=_0x32c856,{unitID:_0x366d3b}=_0x22c60f,_0x5d7b8e=this[_0x209c73(0x34f)][_0x209c73(0x342)](_0x366d3b)['with'](_0x31d69b),{undoCache:_0x48a797,redoCache:_0x4e80c1}=_0x5d7b8e['getUndoRedoMutationParamsCache']();if(_0x48a797[_0x209c73(0x155)]===0x0||_0x4e80c1['length']===0x0)return;const _0x22c9ce=[],_0x4c9126=[];let _0x3be817=_0x5065b3[_0x209c73(0x334)](_0x22c60f[_0x209c73(0x235)][0x0]),_0x4422d6=_0x5065b3[_0x209c73(0x334)](_0x22c60f['mutations'][0x0]);for(let _0x203723=_0x48a797[_0x209c73(0x155)]-0x1;_0x203723>=0x0;_0x203723--){const _0x24d962={'id':_0x209c73(0x2b8),'params':{..._0x48a797[_0x203723]}},_0x347cab={'id':_0x209c73(0x2b8),'params':{..._0x4e80c1[_0x203723]}},_0x110e72=this['_transformService'][_0x209c73(0x18d)](_0x3be817,_0x24d962,!0x1),_0x21c28f=this['_transformService'][_0x209c73(0x18d)](_0x4422d6,_0x347cab,!0x1);if(_0x28a617(_0x110e72))throw _0x110e72[_0x209c73(0x12e)];if(_0x28a617(_0x21c28f))throw _0x21c28f[_0x209c73(0x12e)];_0x22c9ce[_0x209c73(0x348)](_0x110e72[_0x209c73(0x290)][_0x209c73(0x128)]),_0x4c9126[_0x209c73(0x348)](_0x21c28f['m2Prime'][_0x209c73(0x128)]),_0x3be817=_0x110e72[_0x209c73(0x31c)],_0x4422d6=_0x21c28f[_0x209c73(0x31c)];}_0x5d7b8e[_0x209c73(0x138)]({'undoCache':_0x22c9ce,'redoCache':_0x4c9126});}[_0x32c856(0x1ac)](_0x4f585f){const _0x3fc8be=_0x32c856,{unitID:_0x2753ae}=_0x4f585f,_0xd5d8a=this['_renderManagerService'][_0x3fc8be(0x342)](_0x2753ae)[_0x3fc8be(0x2bb)](_0x31d69b),_0x3d1eb7=_0xd5d8a['getActiveRange']();if(_0x3d1eb7==null)return;const _0x3e56d8=[{'id':_0x3fc8be(0x2b8),'params':{'unitId':_0x4f585f[_0x3fc8be(0x1e3)],'actions':null,'textRanges':[_0x3d1eb7]}}],_0x497963=this[_0x3fc8be(0x33f)][_0x3fc8be(0x1b5)](_0x4f585f,_0x3e56d8);if(!_0x483523(_0x497963))throw _0x497963[_0x3fc8be(0x12e)];const _0x31715c=_0x497963[_0x3fc8be(0x290)][0x0][_0x3fc8be(0x128)][_0x3fc8be(0x1aa)];Array[_0x3fc8be(0x1b8)](_0x31715c)&&_0x31715c['length']&&_0xd5d8a[_0x3fc8be(0x1f0)](_0x31715c[0x0]);}};he=dn([lt(0x0,_0x55d9fe),lt(0x1,_0xd3a36)],he);var Sn=Object[_0x32c856(0x169)],In=(_0x51fd04,_0x3cc2f4,_0x19f4d7,_0x10080e)=>{for(var _0x4e259a=_0x10080e>0x1?void 0x0:_0x10080e?Sn(_0x3cc2f4,_0x19f4d7):_0x3cc2f4,_0x4a1ee1=_0x51fd04['length']-0x1,_0x1354e3;_0x4a1ee1>=0x0;_0x4a1ee1--)(_0x1354e3=_0x51fd04[_0x4a1ee1])&&(_0x4e259a=_0x1354e3(_0x4e259a)||_0x4e259a);return _0x4e259a;},Le=(_0x4b4abf,_0x32caaf)=>(_0x9f0780,_0x396bf9)=>_0x32caaf(_0x9f0780,_0x396bf9,_0x4b4abf);let ue=class{constructor(_0x1c7311,_0x5debd5,_0x2e8dac){const _0x22002f=_0x32c856;this['_injector']=_0x1c7311,this[_0x22002f(0x33f)]=_0x5debd5,this[_0x22002f(0x17b)]=_0x2e8dac;}[_0x32c856(0x32c)](_0x137878){this['_transformHistoryAndStateStack'](_0x137878);}[_0x32c856(0x265)](_0x58f2bf){const _0x3b6357=_0x32c856,{unitID:_0x57ebab}=_0x58f2bf,{collaboration:_0xb88e52}=this[_0x3b6357(0x17b)][_0x3b6357(0x311)](_0x57ebab);if(_0xb88e52['length']===0x0)return _0x58f2bf;let _0x3d823a=_0x5065b3[_0x3b6357(0x334)](_0x58f2bf[_0x3b6357(0x235)][0x0]);for(let _0x2b9388=0x0;_0x2b9388<_0xb88e52[_0x3b6357(0x155)];_0x2b9388++){const _0xfd2f23={'id':_0x3b6357(0x2b8),'params':{'unitId':_0xb88e52[_0x2b9388]['unitId'],..._0xb88e52[_0x2b9388][_0x3b6357(0x358)]}},_0x496152=this['_transformService'][_0x3b6357(0x18d)](_0x3d823a,_0xfd2f23,!0x1);if(_0x28a617(_0x496152))throw _0x496152[_0x3b6357(0x12e)];_0x3d823a=_0x496152[_0x3b6357(0x31c)];}return{..._0x5065b3[_0x3b6357(0x334)](_0x58f2bf),'mutations':[_0x3d823a]};}[_0x32c856(0x12d)](_0x4f040d){const _0x52d5ed=_0x32c856,{unitID:_0x54462a}=_0x4f040d,{history:_0x598528,collaboration:_0x1986e3}=this[_0x52d5ed(0x17b)][_0x52d5ed(0x311)](_0x54462a);if(_0x598528[_0x52d5ed(0x155)]===0x0&&_0x1986e3['length']===0x0)return;const _0x333f71=[],_0x2b471e=[];let _0x597e4d=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d['mutations'][0x0]),_0x523ed6=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]);for(let _0x2bd7fa=_0x598528[_0x52d5ed(0x155)]-0x1;_0x2bd7fa>=0x0;_0x2bd7fa--){const _0x20bf2f={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x598528[_0x2bd7fa][_0x52d5ed(0x196)],..._0x598528[_0x2bd7fa][_0x52d5ed(0x21c)]}},_0x330c58={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x598528[_0x2bd7fa]['unitId'],..._0x598528[_0x2bd7fa][_0x52d5ed(0x358)]}},_0x4b1e26=this['_transformService'][_0x52d5ed(0x18d)](_0x597e4d,_0x20bf2f,!0x1),_0x5eaf14=this[_0x52d5ed(0x33f)][_0x52d5ed(0x18d)](_0x523ed6,_0x330c58,!0x1);if(_0x28a617(_0x4b1e26))throw _0x4b1e26[_0x52d5ed(0x12e)];if(_0x28a617(_0x5eaf14))throw _0x5eaf14['error'];_0x333f71['unshift']({..._0x598528[_0x2bd7fa],'undoState':_0x4b1e26['m2Prime'][_0x52d5ed(0x128)],'redoState':_0x5eaf14[_0x52d5ed(0x290)]['params']}),_0x597e4d=_0x4b1e26[_0x52d5ed(0x31c)],_0x523ed6=_0x5eaf14['m1Prime'];}_0x597e4d=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]),_0x523ed6=_0x5065b3[_0x52d5ed(0x334)](_0x4f040d[_0x52d5ed(0x235)][0x0]);for(let _0x465450=_0x1986e3[_0x52d5ed(0x155)]-0x1;_0x465450>=0x0;_0x465450--){const _0x257c2f={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x1986e3[_0x465450]['unitId'],..._0x1986e3[_0x465450][_0x52d5ed(0x21c)]}},_0x4321d7={'id':_0x52d5ed(0x2b8),'params':{'unitId':_0x1986e3[_0x465450][_0x52d5ed(0x196)],..._0x1986e3[_0x465450][_0x52d5ed(0x358)]}},_0x583908=this['_transformService']['transformMutation'](_0x597e4d,_0x257c2f,!0x1),_0x3d8038=this[_0x52d5ed(0x33f)]['transformMutation'](_0x523ed6,_0x4321d7,!0x1);if(_0x28a617(_0x583908))throw _0x583908[_0x52d5ed(0x12e)];if(_0x28a617(_0x3d8038))throw _0x3d8038[_0x52d5ed(0x12e)];_0x2b471e['unshift']({..._0x1986e3[_0x465450],'undoState':_0x583908['m2Prime'][_0x52d5ed(0x128)],'redoState':_0x3d8038[_0x52d5ed(0x290)][_0x52d5ed(0x128)]}),_0x597e4d=_0x583908[_0x52d5ed(0x31c)],_0x523ed6=_0x3d8038[_0x52d5ed(0x31c)];}this[_0x52d5ed(0x17b)][_0x52d5ed(0x1e2)](_0x54462a,{'history':_0x333f71,'collaboration':_0x2b471e});}};ue=In([Le(0x0,_0xb67117(_0x2d24f1)),Le(0x1,_0x55d9fe),Le(0x2,_0xb67117(_0x228351))],ue);var mn=Object[_0x32c856(0x169)],fn=(_0x17a927,_0x3e96a4,_0x277a8a,_0xc5ee9a)=>{const _0x35f95b=_0x32c856;for(var _0x2b5e48=_0xc5ee9a>0x1?void 0x0:_0xc5ee9a?mn(_0x3e96a4,_0x277a8a):_0x3e96a4,_0x5a2f5c=_0x17a927[_0x35f95b(0x155)]-0x1,_0x5d38b7;_0x5a2f5c>=0x0;_0x5a2f5c--)(_0x5d38b7=_0x17a927[_0x5a2f5c])&&(_0x2b5e48=_0x5d38b7(_0x2b5e48)||_0x2b5e48);return _0x2b5e48;},ht=(_0x37e9ed,_0x90a892)=>(_0x116571,_0x5b6499)=>_0x90a892(_0x116571,_0x5b6499,_0x37e9ed);let de=class{constructor(_0x4ac52c,_0x12cbb8){const _0x56b463=_0x32c856;this[_0x56b463(0x1f5)]=_0x4ac52c,this[_0x56b463(0x33f)]=_0x12cbb8;}[_0x32c856(0x15e)](_0x1a8164){const _0xa79684=_0x32c856;var _0x4b6f75;const _0x4954d8=this[_0xa79684(0x1f5)][_0xa79684(0x2b3)](_0x3fd45e),_0x44f19f=(_0x4b6f75=_0x4954d8[_0xa79684(0x1d8)]())!=null?_0x4b6f75:[];if(_0x44f19f[_0xa79684(0x155)]===0x0)return;const _0x21903e=_0x1a8164[_0xa79684(0x1e3)],_0x31bc3b=[{'id':_0xa79684(0x2b8),'params':{'unitId':_0x21903e,'actions':null,'textRanges':_0x44f19f}}],_0x454ec6=this['_transformService'][_0xa79684(0x1b5)](_0x1a8164,_0x31bc3b);if(!_0x483523(_0x454ec6))throw _0x454ec6['error'];const _0x4090b4=_0x454ec6['m2Prime'][0x0][_0xa79684(0x128)][_0xa79684(0x1aa)];Array[_0xa79684(0x1b8)](_0x4090b4)&&_0x4090b4[_0xa79684(0x155)]&&_0x4954d8[_0xa79684(0x215)](_0x4090b4,{'unitId':_0x21903e,'subUnitId':_0x21903e},!0x1);}};de=fn([ht(0x0,_0xb67117(_0x2d24f1)),ht(0x1,_0x55d9fe)],de);var gn=Object[_0x32c856(0x169)],En=(_0xcb9f5,_0x579c75,_0xa1faea,_0x2dd1e6)=>{const _0x4496c4=_0x32c856;for(var _0x4c1efc=_0x2dd1e6>0x1?void 0x0:_0x2dd1e6?gn(_0x579c75,_0xa1faea):_0x579c75,_0x51e865=_0xcb9f5[_0x4496c4(0x155)]-0x1,_0x107c54;_0x51e865>=0x0;_0x51e865--)(_0x107c54=_0xcb9f5[_0x51e865])&&(_0x4c1efc=_0x107c54(_0x4c1efc)||_0x4c1efc);return _0x4c1efc;},U=(_0x369e24,_0x1c2977)=>(_0x5af294,_0x3c0335)=>_0x1c2977(_0x5af294,_0x3c0335,_0x369e24);let Se=class extends _0x4ca9c1{constructor(_0x259dbb,_0x1cc4c4,_0x50592a,_0x587cee,_0x13a880,_0xd9c678,_0x5da36a,_0x13ed1b){const _0x3ad1c9=_0x32c856;super(),_(this,_0x3ad1c9(0x249),new _0x41d101(_0x4c2ad5[_0x3ad1c9(0x1a7)])),(this[_0x3ad1c9(0x17b)]=_0x259dbb,this[_0x3ad1c9(0x184)]=_0x1cc4c4,this['_docTransformIMECacheService']=_0x50592a,this['_docTransformStateCacheService']=_0x587cee,this['_docTransformSelectionsService']=_0x13a880,this[_0x3ad1c9(0x258)]=_0xd9c678,this[_0x3ad1c9(0x129)]=_0x5da36a,this[_0x3ad1c9(0x338)]=_0x13ed1b,this['_initEntityListener']());}[_0x32c856(0x158)](){const _0x2021f0=_0x32c856;this['disposeWithMe'](this[_0x2021f0(0x184)][_0x2021f0(0x218)][_0x2021f0(0x2bf)](_0x114d3d=>{const _0x14cc53=_0x2021f0,_0x5012a6=this[_0x14cc53(0x17b)]['docStateChange$'][_0x14cc53(0x2bf)](_0x5cc5c6=>{const _0x14f41a=_0x14cc53;if(_0x5cc5c6==null)return;const {unitId:_0x504649,redoState:_0x488e00,commandId:_0x35a5eb}=_0x5cc5c6;if(_0x504649!==_0x114d3d[_0x14f41a(0x1e3)])return;const _0x1d8581={'id':_0x35a5eb,'type':_0xd457e7['MUTATION'],'params':{'unitId':_0x504649,'actions':_0x488e00[_0x14f41a(0x2bd)],'textRanges':null}};_0x114d3d['onLocalMutation'](_0x1d8581);});if(_0x114d3d[_0x14cc53(0x331)](_0x5012a6),_0x114d3d instanceof _0x4e3ede){const _0x3a9b9a={'onTransformIME':_0x236207=>this[_0x14cc53(0x17d)][_0x14cc53(0x189)](_0x236207),'onTransformState':_0x123a2b=>this['_docTransformStateCacheService']['transformStateCache'](_0x123a2b),'onTransformSelections':_0x530683=>this[_0x14cc53(0x2c4)]['transformSelections'](_0x530683),'onSyncEditingCollabCursor':_0x144fc5=>this[_0x14cc53(0x258)]['syncEditingCollabCursor'](_0x144fc5),'onTransformRemoteChangesetByIMECache':_0x27e424=>this[_0x14cc53(0x17d)][_0x14cc53(0x265)](_0x27e424),'onTransformRemoteChangesetByStateCache':_0x2dfff2=>this['_docTransformStateCacheService'][_0x14cc53(0x265)](_0x2dfff2)};_0x114d3d[_0x14cc53(0x1b1)](_0x3a9b9a);}}));}};Se=En([U(0x0,_0xb67117(_0x228351)),U(0x1,_0xb67117(_0x5c5058)),U(0x2,_0xb67117(he)),U(0x3,_0xb67117(ue)),U(0x4,_0xb67117(de)),U(0x5,_0xb67117(ze)),U(0x6,_0x2f7eba),U(0x7,_0xb67117(_0x19887b))],Se);var Z=(_0x5d40a4=>(_0x5d40a4[_0x5d40a4[_0x32c856(0x2a9)]=0x0]=_0x32c856(0x2a9),_0x5d40a4[_0x5d40a4['OK']=0x1]='OK',_0x5d40a4[_0x5d40a4['INTERNAL_ERROR']=0x2]=_0x32c856(0x255),_0x5d40a4[_0x5d40a4[_0x32c856(0x24c)]=0x3]=_0x32c856(0x24c),_0x5d40a4[_0x5d40a4[_0x32c856(0x330)]=0x4]=_0x32c856(0x330),_0x5d40a4[_0x5d40a4['UNAUTHENTICATED']=0x5]=_0x32c856(0x19c),_0x5d40a4[_0x5d40a4[_0x32c856(0x281)]=0x6]=_0x32c856(0x281),_0x5d40a4[_0x5d40a4[_0x32c856(0x291)]=0x7]=_0x32c856(0x291),_0x5d40a4[_0x5d40a4[_0x32c856(0x2e6)]=0x8]=_0x32c856(0x2e6),_0x5d40a4[_0x5d40a4['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5d40a4[_0x5d40a4['LOGIN_FAILED']=0xa]=_0x32c856(0x22e),_0x5d40a4[_0x5d40a4['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x32c856(0x228),_0x5d40a4[_0x5d40a4['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2cc)]=0xd]=_0x32c856(0x2cc),_0x5d40a4[_0x5d40a4[_0x32c856(0x1ff)]=0xe]=_0x32c856(0x1ff),_0x5d40a4[_0x5d40a4['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5d40a4[_0x5d40a4['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5d40a4[_0x5d40a4[_0x32c856(0x1a9)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5d40a4[_0x5d40a4['ERROR_AGAIN']=0x65]=_0x32c856(0x312),_0x5d40a4[_0x5d40a4['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0x5d40a4[_0x5d40a4[_0x32c856(0x303)]=0xca]=_0x32c856(0x303),_0x5d40a4[_0x5d40a4[_0x32c856(0x2fd)]=0x1389]=_0x32c856(0x2fd),_0x5d40a4[_0x5d40a4[_0x32c856(0x315)]=0x1771]=_0x32c856(0x315),_0x5d40a4[_0x5d40a4[_0x32c856(0x20f)]=0x1772]=_0x32c856(0x20f),_0x5d40a4[_0x5d40a4['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x32c856(0x11d),_0x5d40a4[_0x5d40a4[_0x32c856(0x166)]=0x1b59]=_0x32c856(0x166),_0x5d40a4[_0x5d40a4[_0x32c856(0x256)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5d40a4[_0x5d40a4[_0x32c856(0x149)]=0x1b5b]=_0x32c856(0x149),_0x5d40a4[_0x5d40a4['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x32c856(0x1ae),_0x5d40a4[_0x5d40a4['APPLY_DUPLICATED']=0x1b5d]=_0x32c856(0x2b2),_0x5d40a4[_0x5d40a4[_0x32c856(0x247)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5d40a4[_0x5d40a4[_0x32c856(0x316)]=0x2329]=_0x32c856(0x316),_0x5d40a4[_0x5d40a4[_0x32c856(0x170)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5d40a4[_0x5d40a4[_0x32c856(0x121)]=0x232b]=_0x32c856(0x121),_0x5d40a4[_0x5d40a4[_0x32c856(0x1f8)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5d40a4[_0x5d40a4['LICENSE_DISTRO_REJECTED']=0x232d]=_0x32c856(0x350),_0x5d40a4[_0x5d40a4[_0x32c856(0x126)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5d40a4[_0x5d40a4[_0x32c856(0x199)]=0x2712]=_0x32c856(0x199),_0x5d40a4[_0x5d40a4['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x32c856(0x2f2),_0x5d40a4[_0x5d40a4['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x32c856(0x31e),_0x5d40a4[_0x5d40a4[_0x32c856(0x2f1)]=0x271a]=_0x32c856(0x2f1),_0x5d40a4[_0x5d40a4[_0x32c856(0x33a)]=0x271b]=_0x32c856(0x33a),_0x5d40a4[_0x5d40a4[_0x32c856(0x361)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5d40a4[_0x5d40a4['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x32c856(0x231),_0x5d40a4[_0x5d40a4['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2ec)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x5d40a4[_0x5d40a4[_0x32c856(0x1b3)]=0x2720]=_0x32c856(0x1b3),_0x5d40a4[_0x5d40a4[_0x32c856(0x23d)]=0x2af9]=_0x32c856(0x23d),_0x5d40a4[_0x5d40a4[_0x32c856(0x20e)]=0x2ee1]=_0x32c856(0x20e),_0x5d40a4[_0x5d40a4[_0x32c856(0x16e)]=0x2ee2]=_0x32c856(0x16e),_0x5d40a4[_0x5d40a4['INVITE_CODE_REQUIRED']=0x2ee3]=_0x32c856(0x269),_0x5d40a4[_0x5d40a4['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x5d40a4[_0x5d40a4[_0x32c856(0x321)]=0x2ee5]=_0x32c856(0x321),_0x5d40a4[_0x5d40a4['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x32c856(0x229),_0x5d40a4[_0x5d40a4[_0x32c856(0x33d)]=0x32ca]=_0x32c856(0x33d),_0x5d40a4[_0x5d40a4[_0x32c856(0x1be)]=0x32cb]=_0x32c856(0x1be),_0x5d40a4[_0x5d40a4['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x32c856(0x31f),_0x5d40a4[_0x5d40a4['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x32c856(0x226),_0x5d40a4[_0x5d40a4['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5d40a4[_0x5d40a4[_0x32c856(0x34e)]=0x36b4]=_0x32c856(0x34e),_0x5d40a4[_0x5d40a4[_0x32c856(0x2a3)]=0x36b5]=_0x32c856(0x2a3),_0x5d40a4[_0x5d40a4['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x32c856(0x118),_0x5d40a4[_0x5d40a4['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x32c856(0x234),_0x5d40a4[_0x5d40a4[_0x32c856(0x2ee)]=0x36b8]=_0x32c856(0x2ee),_0x5d40a4[_0x5d40a4['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x32c856(0x220),_0x5d40a4[_0x5d40a4[_0x32c856(0x289)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5d40a4[_0x5d40a4[_0x32c856(0x293)]=0x3717]=_0x32c856(0x293),_0x5d40a4[_0x5d40a4[_0x32c856(0x1a5)]=0x37dd]=_0x32c856(0x1a5),_0x5d40a4[_0x5d40a4[_0x32c856(0x13f)]=0x3a99]=_0x32c856(0x13f),_0x5d40a4[_0x5d40a4[_0x32c856(0x25c)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5d40a4[_0x5d40a4[_0x32c856(0x14a)]=0x3a9b]=_0x32c856(0x14a),_0x5d40a4[_0x5d40a4[_0x32c856(0x143)]=0x3a9c]=_0x32c856(0x143),_0x5d40a4[_0x5d40a4['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x32c856(0x280),_0x5d40a4[_0x5d40a4['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5d40a4[_0x5d40a4[_0x32c856(0x2a2)]=0x3a9f]=_0x32c856(0x2a2),_0x5d40a4[_0x5d40a4[_0x32c856(0x1eb)]=0x3e81]=_0x32c856(0x1eb),_0x5d40a4[_0x5d40a4[_0x32c856(0x271)]=-0x1]=_0x32c856(0x271),_0x5d40a4))(Z||{});function vn(_0x4cc6c2){const _0x4f4b1e=_0x32c856;var _0x3a796e,_0x53513b;const _0x22fe32=(_0x3a796e=_0x4cc6c2['stageInfo'])==null?void 0x0:_0x3a796e[_0x4f4b1e(0x22c)],_0x51143f=((_0x53513b=_0x4cc6c2['stageInfo'])==null?void 0x0:_0x53513b[_0x4f4b1e(0x26f)])||0x0;return _0x22fe32===_0x418364[_0x4f4b1e(0x206)]&&_0x51143f>0x0;}function pn(_0x3a3063){const _0x1eae0e=_0x32c856;return _0x3a3063[_0x1eae0e(0x160)]===_0x1d1fe7[_0x1eae0e(0x28c)];}var On=Object[_0x32c856(0x169)],Tn=(_0x27295d,_0x505fcb,_0x4e964f,_0x19509f)=>{const _0x39d020=_0x32c856;for(var _0x189925=_0x19509f>0x1?void 0x0:_0x19509f?On(_0x505fcb,_0x4e964f):_0x505fcb,_0x305a6c=_0x27295d[_0x39d020(0x155)]-0x1,_0x2fcd8a;_0x305a6c>=0x0;_0x305a6c--)(_0x2fcd8a=_0x27295d[_0x305a6c])&&(_0x189925=_0x2fcd8a(_0x189925)||_0x189925);return _0x189925;},P=(_0x1d119d,_0x5e318f)=>(_0x4c8d0c,_0xe79d3f)=>_0x5e318f(_0x4c8d0c,_0xe79d3f,_0x1d119d);const Cn=_0x32c856(0x182),Rn='/universer-api/license/formula/limit/start',Dn=_0x32c856(0x1b2);let Ie=class extends _0x4ca9c1{constructor(_0x15603f,_0x115214,_0x276e13,_0x292c35,_0x2f2ca7,_0x5b731d,_0x1d623a){const _0x375b69=_0x32c856;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x375b69(0x292),[]),_(this,_0x375b69(0x146),0x0),(this[_0x375b69(0x129)]=_0x15603f,this['_commandService']=_0x115214,this[_0x375b69(0x23e)]=_0x276e13,this[_0x375b69(0x222)]=_0x292c35,this['_univerInstanceService']=_0x2f2ca7,this['_logService']=_0x5b731d,this[_0x375b69(0x338)]=_0x1d623a,this[_0x375b69(0x1a1)]());}[_0x32c856(0x1a1)](){const _0x588128=_0x32c856;this[_0x588128(0x331)](this[_0x588128(0x15b)][_0x588128(0x363)]((_0x1156e8,_0x49c2aa)=>{const _0x1c37ad=_0x588128;var _0xe8a009;if(_0x1156e8['id']!==_0xc0ef9d['id'])return;const _0x397cf7=_0x1156e8[_0x1c37ad(0x128)];if(!this['_hasFormulaInDirtyRanges']((_0xe8a009=_0x397cf7['dirtyRanges'])!=null?_0xe8a009:[]))return;if(!this[_0x1c37ad(0x18a)]())throw this['_checkAndWaitForCalculationPermission'](_0x1156e8,_0x49c2aa),this[_0x1c37ad(0x2ef)](),new _0xc86ab2();})),this['disposeWithMe'](this[_0x588128(0x15b)][_0x588128(0x297)]((_0x1a8a12,_0x1b8681)=>{const _0x4d379a=_0x588128;if(_0x1a8a12['id']!==_0x22ae1d['id'])return;const _0x305437=_0x1a8a12[_0x4d379a(0x128)];if(vn(_0x305437)){const _0xfd75f3=_0x3baa1f();this[_0x4d379a(0x292)][_0x4d379a(0x302)](_0xfd75f3),this[_0x4d379a(0x32a)](_0xfd75f3);}else{if(pn(_0x305437)&&this[_0x4d379a(0x292)][_0x4d379a(0x155)]>0x0){const _0x5c037c=this[_0x4d379a(0x292)][_0x4d379a(0x2c7)]();this[_0x4d379a(0x248)](_0x5c037c);}}}));}[_0x32c856(0x18c)](){const _0x37e7fe=_0x32c856;super['dispose'](),this[_0x37e7fe(0x2ea)](),this[_0x37e7fe(0x292)]=[],this[_0x37e7fe(0x174)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x37e7fe(0x146)]=0x0;}async[_0x32c856(0x195)](_0x3aae53,_0x2e9269){const _0xe67009=_0x32c856;for(let _0x27a93e=0x0;_0x27a93e<0x1e;_0x27a93e++)try{if(await this['_getFormulaLimitStatus'](),this[_0xe67009(0x18a)]()){this['_applyCommand'](_0x3aae53,_0x2e9269),this[_0xe67009(0x129)][_0xe67009(0x1e9)]({'content':this[_0xe67009(0x338)]['t'](_0xe67009(0x262)),'type':_0x4659ab[_0xe67009(0x309)]});return;}await new Promise(_0x47e449=>{const _0x588a25=_0xe67009;this['_pollingInterval']=window[_0x588a25(0x125)](_0x47e449,0x3e8);});}catch(_0x17b9a0){this[_0xe67009(0x1b4)][_0xe67009(0x12e)](_0x17b9a0);}this[_0xe67009(0x129)][_0xe67009(0x1e9)]({'content':this['_localeService']['t'](_0xe67009(0x34b)),'type':_0x4659ab[_0xe67009(0x150)]});}[_0x32c856(0x287)](_0x11b70c,_0x1f8e64){const _0x4f555c=_0x32c856;try{this[_0x4f555c(0x15b)][_0x4f555c(0x26e)](_0x11b70c['id'],_0x11b70c[_0x4f555c(0x128)],_0x1f8e64);}catch(_0xc2b01f){this[_0x4f555c(0x1b4)][_0x4f555c(0x12e)](_0xc2b01f);}}[_0x32c856(0x27c)](_0x32ab97,_0x2e4438){const _0x11cbb0=_0x32c856;_0x2e4438<this[_0x11cbb0(0x146)]||(this[_0x11cbb0(0x146)]=_0x2e4438,this[_0x11cbb0(0x172)]=Number['parseInt'](_0x32ab97[_0x11cbb0(0x327)]),this[_0x11cbb0(0x174)]=Number['parseInt'](_0x32ab97[_0x11cbb0(0x1a4)]));}async[_0x32c856(0x32a)](_0x1786bb){const _0x5421a5=_0x32c856;var _0x4ebf29,_0x38baad;const _0x5c0a74=Date[_0x5421a5(0x20b)]();try{const _0x183750=((_0x4ebf29=this[_0x5421a5(0x23e)]['getConfig'](_0x3fe88d))==null?void 0x0:_0x4ebf29[_0x5421a5(0x254)])||Rn,_0x2ce311=(await this[_0x5421a5(0x222)][_0x5421a5(0x2a5)](_0x183750,{'body':JSON['stringify']({'taskId':_0x1786bb})}))[_0x5421a5(0x161)];if(((_0x38baad=_0x2ce311[_0x5421a5(0x12e)])==null?void 0x0:_0x38baad[_0x5421a5(0x2f9)])!==Z['OK'])return;this[_0x5421a5(0x27c)](_0x2ce311[_0x5421a5(0x355)],_0x5c0a74);}catch(_0x2973c9){this[_0x5421a5(0x1b4)]['error'](_0x2973c9);}}async[_0x32c856(0x201)](_0x5983e2){const _0xabfa3=_0x32c856;var _0x298566,_0x4aa5c1;const _0x575f54=Date[_0xabfa3(0x20b)]();try{const _0x5c4c1a=((_0x298566=this['_configService'][_0xabfa3(0x1a3)](_0x3fe88d))==null?void 0x0:_0x298566[_0xabfa3(0x351)])||Cn,_0x1e950d=_0x5983e2?_0x5c4c1a+_0xabfa3(0x28a)+encodeURIComponent(_0x5983e2):_0x5c4c1a,_0x1fe069=(await this[_0xabfa3(0x222)][_0xabfa3(0x2b3)](_0x1e950d))[_0xabfa3(0x161)];if(((_0x4aa5c1=_0x1fe069[_0xabfa3(0x12e)])==null?void 0x0:_0x4aa5c1[_0xabfa3(0x2f9)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x1fe069[_0xabfa3(0x355)],_0x575f54);}catch(_0x4f6821){this[_0xabfa3(0x1b4)]['error'](_0x4f6821);}}async[_0x32c856(0x248)](_0x3b5ff1){const _0x22dbf8=_0x32c856;var _0x2af98b,_0x217b0f;const _0x2931bf=Date['now']();try{const _0xb5478b=((_0x2af98b=this[_0x22dbf8(0x23e)][_0x22dbf8(0x1a3)](_0x3fe88d))==null?void 0x0:_0x2af98b['releaseFormulaLimitUrl'])||Dn,_0x5d7761=(await this[_0x22dbf8(0x222)][_0x22dbf8(0x2a5)](_0xb5478b,{'body':JSON['stringify']({'taskId':_0x3b5ff1})}))[_0x22dbf8(0x161)];if(((_0x217b0f=_0x5d7761[_0x22dbf8(0x12e)])==null?void 0x0:_0x217b0f[_0x22dbf8(0x2f9)])!==Z['OK'])return;this[_0x22dbf8(0x27c)](_0x5d7761['limitInfo'],_0x2931bf);}catch(_0x189d0f){this[_0x22dbf8(0x1b4)]['error'](_0x189d0f);}}[_0x32c856(0x18a)](){const _0x1c61d7=_0x32c856;return this[_0x1c61d7(0x172)]===0x0?!0x0:this[_0x1c61d7(0x172)]-this[_0x1c61d7(0x174)]>0x0;}['_clearPolling'](){const _0xfe5979=_0x32c856;this[_0xfe5979(0x2e2)]&&(clearTimeout(this[_0xfe5979(0x2e2)]),this[_0xfe5979(0x2e2)]=null);}['_showGuardMessage'](){const _0x2377a6=_0x32c856;this[_0x2377a6(0x129)]['show']({'content':this[_0x2377a6(0x338)]['t'](_0x2377a6(0x131)),'type':_0x4659ab['Loading']});}[_0x32c856(0x2aa)](_0x2f9812){const _0x57b6d0=_0x32c856;for(const _0x1c0ed1 of _0x2f9812){const {unitId:_0x1c0fac,sheetId:_0x30dc16,range:_0x1dc78d}=_0x1c0ed1,_0x253b2b=this[_0x57b6d0(0x19f)][_0x57b6d0(0x276)](_0x1c0fac);if(!_0x253b2b)continue;const _0x478c6f=_0x253b2b[_0x57b6d0(0x260)](_0x30dc16);if(!_0x478c6f)continue;const _0x52e7e2=_0x478c6f[_0x57b6d0(0x2f8)]();for(let _0x45179a=_0x1dc78d[_0x57b6d0(0x154)];_0x45179a<=_0x1dc78d[_0x57b6d0(0x301)];_0x45179a++)for(let _0x42b8d1=_0x1dc78d[_0x57b6d0(0x322)];_0x42b8d1<=_0x1dc78d[_0x57b6d0(0x22f)];_0x42b8d1++){const _0x3594c1=_0x52e7e2[_0x57b6d0(0x2e3)](_0x45179a,_0x42b8d1);if(_0x3594c1&&(_0x45b7f1(_0x3594c1['f'])||_0x89f427(_0x3594c1['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0xb67117(_0x2f7eba)),P(0x1,_0x156a6d),P(0x2,_0x11135c),P(0x3,_0xb67117(_0x2841df)),P(0x4,_0x5ca55f),P(0x5,_0x3f6a9a),P(0x6,_0xb67117(_0x19887b))],Ie);var Nn=Object[_0x32c856(0x169)],bn=(_0x49e443,_0x3d0475,_0x5a0908,_0x46829d)=>{const _0x2d46f4=_0x32c856;for(var _0x4987b3=_0x46829d>0x1?void 0x0:_0x46829d?Nn(_0x3d0475,_0x5a0908):_0x3d0475,_0x39671c=_0x49e443[_0x2d46f4(0x155)]-0x1,_0x53b788;_0x39671c>=0x0;_0x39671c--)(_0x53b788=_0x49e443[_0x39671c])&&(_0x4987b3=_0x53b788(_0x4987b3)||_0x4987b3);return _0x4987b3;},Ue=(_0x3911f8,_0x1201bd)=>(_0x55c22e,_0x2766bf)=>_0x1201bd(_0x55c22e,_0x2766bf,_0x3911f8);function _0x403b(_0x335609,_0x2e0e1f){_0x335609=_0x335609-0x115;const _0x1b0a17=_0x1b0a();let _0x403bde=_0x1b0a17[_0x335609];return _0x403bde;}let He=class extends _0x4ca9c1{constructor(_0x31142c,_0x2418bf,_0x16c289){const _0x28156c=_0x32c856;super(),_(this,_0x28156c(0x1e0),new Map()),_(this,_0x28156c(0x22a),new Map()),_(this,_0x28156c(0x1f4),!0x1),(this[_0x28156c(0x23e)]=_0x31142c,this[_0x28156c(0x18e)]=_0x2418bf,this[_0x28156c(0x1f3)]=_0x16c289);}['disableLocalCache'](){const _0x328b1b=_0x32c856;this[_0x328b1b(0x1f4)]=!0x0;}[_0x32c856(0x140)](){const _0x175672=_0x32c856;this[_0x175672(0x1f4)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x32c856(0x18c)](){const _0x17690f=_0x32c856;this['exhaustSavingTask']()[_0x17690f(0x25a)](()=>super['dispose']());}async['loadOfflineData'](_0x261179){const _0x1b7ed1=_0x32c856;return this[_0x1b7ed1(0x1f4)]?null:this[_0x1b7ed1(0x18e)][_0x1b7ed1(0x141)](_0x229de6(_0x261179));}async[_0x32c856(0x237)](_0x578f09,_0x4a3745){const _0x495247=_0x32c856;return!!this[_0x495247(0x18e)][_0x495247(0x157)](_0x578f09,_0x4a3745);}['updateOfflineData'](_0x4770d1,_0xa2d24d,_0xacc1bd,_0x4c9440){const _0x1c4c5a=_0x32c856,_0x1035dc=this[_0x1c4c5a(0x1f3)][_0x1c4c5a(0x11e)](_0x4770d1);this[_0x1c4c5a(0x1e0)][_0x1c4c5a(0x191)](_0x4770d1,{'unitID':_0x4770d1,'type':_0xa2d24d,'awaitingChangeset':_0xacc1bd,'mutations':_0x4c9440,'rev':_0x1035dc}),this[_0x1c4c5a(0x22a)][_0x1c4c5a(0x23c)](_0x4770d1)||this[_0x1c4c5a(0x1db)](_0x4770d1);}[_0x32c856(0x1db)](_0x323eae){const _0x3f5773=_0x32c856,_0x4a37fa=this[_0x3f5773(0x207)]();_0x4a37fa===0x0?this[_0x3f5773(0x2ff)](_0x323eae):this[_0x3f5773(0x22a)]['set'](_0x323eae,setTimeout(()=>this[_0x3f5773(0x2ff)](_0x323eae),_0x4a37fa));}[_0x32c856(0x207)](){const _0x4a2ecf=_0x32c856;var _0x2ed3fb;return(_0x2ed3fb=this[_0x4a2ecf(0x23e)]['getConfig'](_0x2bfc4e))!=null?_0x2ed3fb:_0x5a6993;}[_0x32c856(0x2ff)](_0x47a24b){const _0x293e0b=_0x32c856,_0x1ef589=this[_0x293e0b(0x22a)][_0x293e0b(0x2b3)](_0x47a24b);return _0x1ef589!==void 0x0&&window[_0x293e0b(0x15f)](_0x1ef589),this[_0x293e0b(0x18e)][_0x293e0b(0x157)](_0x229de6(_0x47a24b),this['_cachedData'][_0x293e0b(0x2b3)](_0x47a24b))[_0x293e0b(0x25a)](()=>this[_0x293e0b(0x22a)][_0x293e0b(0x24f)](_0x47a24b));}async[_0x32c856(0x1e8)](){const _0x434aa9=_0x32c856,_0x370147=[];this[_0x434aa9(0x22a)][_0x434aa9(0x284)]((_0x1498e1,_0x436d23)=>{const _0x5cdc06=_0x434aa9;window[_0x5cdc06(0x15f)](_0x1498e1),_0x370147[_0x5cdc06(0x302)](this[_0x5cdc06(0x2ff)](_0x436d23)['then'](()=>{const _0x1e1a2e=_0x5cdc06;this[_0x1e1a2e(0x22a)][_0x1e1a2e(0x24f)](_0x436d23);}));}),await Promise[_0x434aa9(0x20a)](_0x370147);}};He=bn([Ue(0x0,_0x11135c),Ue(0x1,_0x15516c),Ue(0x2,_0xb67117(_0x363489))],He);class Ln extends _0x2ed217{constructor(){const _0x576750=_0x32c856;super(),_(this,_0x576750(0x2f3)),this[_0x576750(0x2f3)]=_0x3ec5c6(window,_0x576750(0x267))[_0x576750(0x28e)](_0x67f666(this['dispose$']),_0x4ece6c(0x1),_0x51e742(void 0x0));}['setParam'](_0x542feb,_0x593e13,_0x5bf9b0=!0x1){const _0x2c1d53=_0x32c856,_0x5c29b4=new URL(window['location']['href']);_0x5c29b4[_0x2c1d53(0x35d)][_0x2c1d53(0x191)](_0x542feb,_0x593e13),_0x5bf9b0?window[_0x2c1d53(0x152)][_0x2c1d53(0x2a6)]('','',_0x5c29b4[_0x2c1d53(0x17e)]()):window['history'][_0x2c1d53(0x16a)]('','',_0x5c29b4[_0x2c1d53(0x17e)]());}[_0x32c856(0x136)](_0x11dd4f,_0x14053a=!0x1){const _0x11ed79=_0x32c856,_0x3f1ead=new URL(window[_0x11ed79(0x17c)][_0x11ed79(0x2f0)]);_0x3f1ead[_0x11ed79(0x35d)][_0x11ed79(0x24f)](_0x11dd4f),_0x14053a?window[_0x11ed79(0x152)][_0x11ed79(0x2a6)]('','',_0x3f1ead['toString']()):window[_0x11ed79(0x152)]['pushState']('','',_0x3f1ead['toString']());}[_0x32c856(0x208)](_0x52cfaa){const _0x3f661b=_0x32c856;var _0x4dd71a;return(_0x4dd71a=new URL(window[_0x3f661b(0x17c)][_0x3f661b(0x2f0)])[_0x3f661b(0x35d)]['get'](_0x52cfaa))!=null?_0x4dd71a:void 0x0;}}var Un=Object[_0x32c856(0x17f)],Mn=Object[_0x32c856(0x169)],An=(_0x6bcd22,_0x55fb5f,_0x712596)=>_0x55fb5f in _0x6bcd22?Un(_0x6bcd22,_0x55fb5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x712596}):_0x6bcd22[_0x55fb5f]=_0x712596,Pn=(_0x33bc1c,_0xffa649,_0x5682c9,_0x510ce5)=>{const _0x52a024=_0x32c856;for(var _0x49eb80=_0x510ce5>0x1?void 0x0:_0x510ce5?Mn(_0xffa649,_0x5682c9):_0xffa649,_0x345b58=_0x33bc1c[_0x52a024(0x155)]-0x1,_0x4d9498;_0x345b58>=0x0;_0x345b58--)(_0x4d9498=_0x33bc1c[_0x345b58])&&(_0x49eb80=_0x4d9498(_0x49eb80)||_0x49eb80);return _0x49eb80;},Me=(_0x55b61e,_0x3c27b2)=>(_0x3d9f86,_0x3cab2e)=>_0x3c27b2(_0x3d9f86,_0x3cab2e,_0x55b61e),wn=(_0x1343f1,_0x2306e9,_0x16a667)=>An(_0x1343f1,_0x2306e9+'',_0x16a667);const yn=_0x32c856(0x173);let Ye=class extends _0xe8b968{constructor(_0x26f70c=_t,_0x2ed935,_0x221c0e,_0x1fbc67){const _0x3cfbe6=_0x32c856;super(),this['_config']=_0x26f70c,this[_0x3cfbe6(0x34f)]=_0x2ed935,this[_0x3cfbe6(0x1f5)]=_0x221c0e,this[_0x3cfbe6(0x23e)]=_0x1fbc67;const {..._0x159e45}=_0x8e76ea({},_t,this[_0x3cfbe6(0x214)]);this[_0x3cfbe6(0x23e)][_0x3cfbe6(0x274)](hn,_0x159e45);}[_0x32c856(0x362)](){const _0x212c7a=_0x32c856;this[_0x212c7a(0x241)](),this[_0x212c7a(0x2f4)]();}[_0x32c856(0x1bb)](){this['_registerRenderDependencies']();}[_0x32c856(0x241)](){const _0x5f2e39=_0x32c856;var _0x1df9d1;const _0x3dbc86=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x40d85f,{'useClass':_0x372265}],[_0x58c896,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5f2e39(0x214)]['enableFrontendLog']&&_0x3dbc86[_0x5f2e39(0x302)]([le]),_0x5dea0c(this[_0x5f2e39(0x1f5)],_0x586813(_0x3dbc86,(_0x1df9d1=this['_config'])==null?void 0x0:_0x1df9d1[_0x5f2e39(0x225)]));}[_0x32c856(0x252)](){const _0x3fc9c1=_0x32c856;this['disposeWithMe'](this[_0x3fc9c1(0x34f)][_0x3fc9c1(0x1d3)](_0x4f09e5[_0x3fc9c1(0x224)],[Fe])),this[_0x3fc9c1(0x331)](this[_0x3fc9c1(0x34f)][_0x3fc9c1(0x1d3)](_0x4f09e5[_0x3fc9c1(0x1c2)],[ke]));}[_0x32c856(0x2f4)](){const _0x2bdde1=_0x32c856;_0x310bec(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x2bdde1(0x214)][_0x2bdde1(0x205)]&&_0x310bec(this[_0x2bdde1(0x1f5)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x11a274(_0x1804b3),Me(0x1,_0xd3a36),Me(0x2,_0xb67117(_0x2d24f1)),Me(0x3,_0x11135c)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x1e46bb,_0x3306a5,_0x144f51,_0x1edd88)=>{const _0x1c95fd=_0x32c856;for(var _0x3e88d0=_0x1edd88>0x1?void 0x0:_0x1edd88?$n(_0x3306a5,_0x144f51):_0x3306a5,_0x2fda79=_0x1e46bb[_0x1c95fd(0x155)]-0x1,_0x1dd3fd;_0x2fda79>=0x0;_0x2fda79--)(_0x1dd3fd=_0x1e46bb[_0x2fda79])&&(_0x3e88d0=_0x1dd3fd(_0x3e88d0)||_0x3e88d0);return _0x3e88d0;},J=(_0x2a3b32,_0x35669f)=>(_0x221ba0,_0x3f32cd)=>_0x35669f(_0x221ba0,_0x3f32cd,_0x2a3b32);let ut=class extends _0x15cd37{constructor(_0x394da5,_0x2f21d4,_0xf6fcee,_0x3ef79d,_0x47f751){super(_0x394da5,_0x2f21d4,_0xf6fcee,_0x3ef79d,_0x47f751);}async['createSocket'](_0x5f1033){const _0xc1f112=_0x32c856,_0x20d06f=await this[_0xc1f112(0x15a)](),_0x1d5aea=this[_0xc1f112(0x243)](_0x5f1033,_0x20d06f);return this['_doCreateSocket'](_0x1d5aea);}[_0x32c856(0x243)](_0x3950dc,_0x154138){const _0x27d3f9=_0x32c856,_0x535c63=typeof window>'u'?new URL(_0x3950dc):new URL(_0x3950dc,window[_0x27d3f9(0x17c)][_0x27d3f9(0x2d7)]);_0x535c63[_0x27d3f9(0x35d)][_0x27d3f9(0x191)](_0x27d3f9(0x2a1),_0x154138);const _0x5c04b7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x27d3f9(0x17c)]['search']);return _0x5c04b7[_0x27d3f9(0x2b3)](_0x27d3f9(0x259))&&_0x535c63['searchParams'][_0x27d3f9(0x191)](_0x27d3f9(0x259),_0x5c04b7[_0x27d3f9(0x2b3)](_0x27d3f9(0x259))),_0x535c63[_0x27d3f9(0x17e)]();}async[_0x32c856(0x15a)](){const _0x59d941=_0x32c856;var _0x132789,_0x66729f,_0x1332f0;const _0x25f9f3=this['_configService'][_0x59d941(0x1a3)](_0x3fe88d),_0x1e2bcd=(_0x132789=_0x25f9f3==null?void 0x0:_0x25f9f3[_0x59d941(0x19e)])!=null?_0x132789:_0x48cac4;return(_0x1332f0=(_0x66729f=(await this[_0x59d941(0x222)][_0x59d941(0x2b3)](_0x1e2bcd,{'headers':{'Content-Type':_0x59d941(0x21e)}}))[_0x59d941(0x161)])==null?void 0x0:_0x66729f[_0x59d941(0x1a0)])!=null?_0x1332f0:'';}};ut=xn([J(0x0,_0xb67117(_0x2d24f1)),J(0x1,_0xb67117(_0x2841df)),J(0x2,_0x11135c),J(0x3,_0x3f6a9a),J(0x4,_0x4d6ee2)],ut);var Bn=Object[_0x32c856(0x169)],Fn=(_0x45359e,_0x516289,_0x4dccf7,_0x4b7b6b)=>{const _0x20f86c=_0x32c856;for(var _0x5e7d94=_0x4b7b6b>0x1?void 0x0:_0x4b7b6b?Bn(_0x516289,_0x4dccf7):_0x516289,_0x3262e8=_0x45359e[_0x20f86c(0x155)]-0x1,_0x3322de;_0x3262e8>=0x0;_0x3262e8--)(_0x3322de=_0x45359e[_0x3262e8])&&(_0x5e7d94=_0x3322de(_0x5e7d94)||_0x5e7d94);return _0x5e7d94;},Ae=(_0x4d68b3,_0x12edb0)=>(_0x2b98e4,_0x3b4380)=>_0x12edb0(_0x2b98e4,_0x3b4380,_0x4d68b3);let dt=class extends _0x4ca9c1{constructor(_0x16e24a,_0x1945b8,_0x139063){const _0x3370b7=_0x32c856;super(),this[_0x3370b7(0x31d)]=_0x16e24a,this[_0x3370b7(0x222)]=_0x1945b8,this[_0x3370b7(0x23e)]=_0x139063;}async[_0x32c856(0x27b)](_0x1697b8,_0x1f77d6,_0x2e7ab2,..._0x4d750b){const _0x3ebe08=_0x32c856;var _0x38dfce,_0x5c89a5,_0x24164d,_0x228b84;const _0x2b0f8f=this[_0x3ebe08(0x31d)][_0x3ebe08(0x266)]();if(!_0x2b0f8f)throw new Error(_0x3ebe08(0x27a));const _0x318bc0=((_0x38dfce=this[_0x3ebe08(0x23e)][_0x3ebe08(0x1a3)](_0x5f3381))!=null?_0x38dfce:_0x3c751e)+'/'+_0x1697b8+_0x3ebe08(0x1a2)+_0x1f77d6,_0x30addc=new URL(window['location']['href']),_0x1af6dc={'scriptId':_0x1697b8,'runId':(_0x5c89a5=_0x30addc[_0x3ebe08(0x35d)]['get'](_0x3ebe08(0x259)))!=null?_0x5c89a5:'','function':_0x1f77d6,'unitId':_0x2b0f8f['getUnitId'](),'argsOfFunction':JSON[_0x3ebe08(0x2b7)](_0x4d750b),'invokeId':(_0x24164d=_0x2e7ab2[_0x3ebe08(0x210)])!=null?_0x24164d:'','executionId':(_0x228b84=_0x2e7ab2[_0x3ebe08(0x32b)])!=null?_0x228b84:''};try{const _0x4ad013=await this[_0x3ebe08(0x222)][_0x3ebe08(0x2a5)](_0x318bc0,{'body':_0x1af6dc});return _0x4ad013[_0x3ebe08(0x161)][_0x3ebe08(0x12e)]&&_0x4ad013[_0x3ebe08(0x161)]['error'][_0x3ebe08(0x2f9)]!==Z['OK']?'Failed':_0x4ad013[_0x3ebe08(0x161)]['result'];}catch{return _0x3ebe08(0x272);}}};dt=Fn([Ae(0x0,_0x5ca55f),Ae(0x1,_0xb67117(_0x2841df)),Ae(0x2,_0x11135c)],dt);const St=0x7530,It=_0x32c856(0x120);class rr extends _0x4ca9c1{constructor(){const _0x346903=_0x32c856;super(),_(this,_0x346903(0x26c),_0x3baa1f()),_(this,_0x346903(0x329),new Set()),_(this,_0x346903(0x2d6),new Map()),_(this,_0x346903(0x1ed),null),_(this,_0x346903(0x2b9),new Map()),_(this,_0x346903(0x142),new Map()),this[_0x346903(0x353)]();}[_0x32c856(0x18c)](){const _0x100026=_0x32c856;super['dispose'](),this['_clearOtherTimers'][_0x100026(0x284)]((_0x2d52bd,_0x36ac52)=>this[_0x100026(0x325)](_0x36ac52)),this[_0x100026(0x1ed)]&&window['clearInterval'](this[_0x100026(0x1ed)]);}['getUnitStatus$'](_0x55d608){const _0x2bf4f5=_0x32c856;return this[_0x2bf4f5(0x2ad)](_0x55d608)[_0x2bf4f5(0x28e)](_0x1c16f5());}['editingUnit'](_0x417fb5){const _0x1817e0=_0x32c856;this['_selfUnitIDs'][_0x1817e0(0x2c3)]===0x0&&this[_0x1817e0(0x35b)](),this['_selfUnitIDs'][_0x1817e0(0x2ed)](_0x417fb5),this[_0x1817e0(0x217)]({'type':0x0,'memberID':this[_0x1817e0(0x26c)],'unitIDs':[_0x417fb5],'isForwarded':!0x1});}[_0x32c856(0x251)](_0x291450){const _0xb59e6=_0x32c856;this[_0xb59e6(0x329)][_0xb59e6(0x24f)](_0x291450),this[_0xb59e6(0x329)][_0xb59e6(0x2c3)]===0x0&&this[_0xb59e6(0x1ed)]&&window[_0xb59e6(0x32f)](this[_0xb59e6(0x1ed)]);}[_0x32c856(0x353)](){const _0x4141be=_0x32c856;this[_0x4141be(0x331)](_0x1b8af1(_0x3ec5c6(window,_0x4141be(0x197))[_0x4141be(0x2bf)](_0x41eb6e=>{const _0x5dc149=_0x4141be;if(_0x41eb6e[_0x5dc149(0x27f)]!==It||!_0x41eb6e[_0x5dc149(0x175)])return;const _0x467aa1=JSON[_0x5dc149(0x2dd)](_0x41eb6e[_0x5dc149(0x175)]);this['_handleEvent'](_0x467aa1);}))),window['addEventListener'](_0x4141be(0x22d),()=>this[_0x4141be(0x217)]({'type':0x1,'memberID':this[_0x4141be(0x26c)],'unitIDs':Array[_0x4141be(0x22b)](this[_0x4141be(0x329)])}));}[_0x32c856(0x35f)](_0x4fb458){const _0x1f80b4=_0x32c856;switch(_0x4fb458[_0x1f80b4(0x295)]){case 0x0:this['_handleJoinEvent'](_0x4fb458);break;case 0x1:this[_0x1f80b4(0x194)](_0x4fb458);break;case 0x2:this[_0x1f80b4(0x2cd)](_0x4fb458);break;}}[_0x32c856(0x30b)](_0x43b214){const _0x13bf32=_0x32c856,{unitIDs:_0x21b593,memberID:_0x4a64d7,isForwarded:_0x401dd4}=_0x43b214;_0x21b593[_0x13bf32(0x284)](_0x288717=>{const _0x15e000=_0x13bf32;if(!_0x401dd4&&this[_0x15e000(0x2d6)][_0x15e000(0x23c)](_0x288717)&&this['_ensureSubject'](_0x288717)[_0x15e000(0x1b7)](_0x52dba4[_0x15e000(0x2b0)]),!this['_unitOnClients'][_0x15e000(0x23c)](_0x288717)||!this[_0x15e000(0x2d6)]['get'](_0x288717)[_0x15e000(0x23c)](_0x4a64d7)){const _0x286cbb=this[_0x15e000(0x2d6)][_0x15e000(0x2b3)](_0x288717)||new Set();_0x286cbb['add'](_0x4a64d7),this[_0x15e000(0x2d6)]['set'](_0x288717,_0x286cbb),this['_scheduleClearOtherTimer'](_0x4a64d7);}}),_0x401dd4||this['_send']({'type':0x0,'memberID':this[_0x13bf32(0x26c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x32c856(0x2cf)](_0x341fc5){const _0x6843e4=_0x32c856;this['_removeClearOtherTimer'](_0x341fc5);const _0x1daad1=window[_0x6843e4(0x125)](()=>{const _0x3f5659=_0x6843e4;this[_0x3f5659(0x2d6)]['forEach'](_0x2916e0=>{const _0x216a3c=_0x3f5659;_0x2916e0[_0x216a3c(0x24f)](_0x341fc5);});},St*0x2);this['_clearOtherTimers'][_0x6843e4(0x191)](_0x341fc5,_0x1daad1);}[_0x32c856(0x325)](_0x231378){const _0x20efd5=_0x32c856;if(this['_clearOtherTimers']['has'](_0x231378)){const _0x4bc081=this[_0x20efd5(0x2b9)]['get'](_0x231378);_0x4bc081&&window[_0x20efd5(0x15f)](_0x4bc081),this[_0x20efd5(0x2b9)]['set'](_0x231378,null);}}['_handleLeaveEvent'](_0x52f3f0){const _0x13a810=_0x32c856,{memberID:_0x293129,unitIDs:_0x5c1624}=_0x52f3f0;_0x5c1624[_0x13a810(0x284)](_0x14a0e9=>{const _0xc6fb59=_0x13a810;var _0xf5287;const _0x321279=this['_unitOnClients'][_0xc6fb59(0x2b3)](_0x14a0e9);_0x321279&&(_0x321279[_0xc6fb59(0x24f)](_0x293129),(_0xf5287=this['_ensureSubject'](_0x14a0e9))==null||_0xf5287['next'](_0x321279[_0xc6fb59(0x2c3)]===0x0?_0x52dba4[_0xc6fb59(0x2fa)]:_0x52dba4[_0xc6fb59(0x2b0)]));}),this[_0x13a810(0x325)](_0x293129);}[_0x32c856(0x2cd)](_0x5e7689){const _0x53849d=_0x32c856;this[_0x53849d(0x2cf)](_0x5e7689[_0x53849d(0x2c9)]);}[_0x32c856(0x217)](_0x16d55e){const _0xb3fedb=_0x32c856;localStorage[_0xb3fedb(0x157)](It,JSON[_0xb3fedb(0x2b7)](_0x16d55e));}[_0x32c856(0x35b)](){const _0x5170c5=_0x32c856;this[_0x5170c5(0x1ed)]=window[_0x5170c5(0x1ca)](()=>{const _0x2a6f2a=_0x5170c5;this[_0x2a6f2a(0x217)]({'type':0x2,'memberID':this[_0x2a6f2a(0x26c)]});},St);}['_ensureSubject'](_0xd5b8c7){const _0x3b2d11=_0x32c856;return this[_0x3b2d11(0x142)][_0x3b2d11(0x23c)](_0xd5b8c7)||this[_0x3b2d11(0x142)][_0x3b2d11(0x191)](_0xd5b8c7,new _0x41d101(_0x52dba4[_0x3b2d11(0x2fa)])),this['_unitStatus']['get'](_0xd5b8c7);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x3b9665=_0x5c23;(function(_0x1fe6ec,_0x31ceef){const _0x9c4790=_0x5c23,_0x203bf3=_0x1fe6ec();while(!![]){try{const _0x492aa2=-parseInt(_0x9c4790(0x1d1))/0x1+-parseInt(_0x9c4790(0x23a))/0x2+-parseInt(_0x9c4790(0x35d))/0x3+parseInt(_0x9c4790(0x20a))/0x4+-parseInt(_0x9c4790(0x2c8))/0x5+parseInt(_0x9c4790(0x358))/0x6*(-parseInt(_0x9c4790(0x316))/0x7)+parseInt(_0x9c4790(0x18c))/0x8*(parseInt(_0x9c4790(0x3a5))/0x9);if(_0x492aa2===_0x31ceef)break;else _0x203bf3['push'](_0x203bf3['shift']());}catch(_0x1868a4){_0x203bf3['push'](_0x203bf3['shift']());}}}(_0xbb03,0x28501));var Yt=Object[_0x3b9665(0x1ba)],Wt=(_0x5ce946,_0x104adf,_0x1bc755)=>_0x104adf in _0x5ce946?Yt(_0x5ce946,_0x104adf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bc755}):_0x5ce946[_0x104adf]=_0x1bc755,_=(_0x1ab595,_0x483943,_0x477280)=>Wt(_0x1ab595,typeof _0x483943!='symbol'?_0x483943+'':_0x483943,_0x477280);import{jsx as _0x58b890,jsxs as _0x5d2be9}from'react/jsx-runtime';import{CollaborationStatus as _0x50c744,CollaborationSessionService as _0x15730c,CollaborationController as _0xe9560e,DataLoaderService as _0x35966c,MemberService as _0x122c7f,SessionStatus as _0x31d4a4,ILocalCacheService as _0x1e4f02,CollaborationUIEventService as _0x218cca,CollaborationUIEventId as _0x4f7cb7,DocCollaborationEntity as _0x9931d5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5c6519,getLocalCacheKey as _0x47ad11,LOCAL_CACHE_INTERVAL as _0x495ee8,LOCAL_CACHE_INTERVAL_KEY as _0x30505d,UniverCollaborationClientPlugin as _0x5ad454,CollaborationSocketService as _0xa7b0f2,DEFAULT_WS_SESSION_TICKET_URL as _0x427a5a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x505e1d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2eb207,UnitStatus as _0x4d4311}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x4c3377,IUniverInstanceService as _0x4aa59b,Inject as _0x122dae,Injector as _0x318e52,Disposable as _0x59ef45,createIdentifier as _0x5ed179,ILogService as _0x3cc8e3,ICommandService as _0x42e7dd,Optional as _0xc1055e,RxDisposable as _0x1b547f,Workbook as _0x163d3f,DOC_RANGE_TYPE as _0x53f6b0,debounce as _0x4e9266,Rectangle as _0x555505,DisposableCollection as _0x191207,toDisposable as _0x4f8f82,UniverInstanceType as _0x111dfa,generateRandomId as _0x12b258,COLORS as _0x50d816,ColorKit as _0x469645,ThemeService as _0x56241c,fromEventSubject as _0x327069,Tools as _0x1ece0f,CommandType as _0x16f2e4,IConfigService as _0x1ace04,CanceledError as _0x5c94a3,isFormulaString as _0xc558d7,isFormulaId as _0x2fadbf,ILocalStorageService as _0x527538,DependentOn as _0x5e8c21,Plugin as _0x392ee4,merge as _0xb490bb,registerDependencies as _0xe870c6,mergeOverrideWithDependencies as _0x530b05,touchDependencies as _0xa6c263}from'@univerjs/core';import{useObservable as _0x2183d4,useDependency as _0x351fc7,IUIPartsService as _0x849955,BuiltInUIPart as _0x581dfa,connectInjector as _0x33d723,IBeforeCloseService as _0x4c0fff,IMessageService as _0x10df9f,INotificationService as _0x45e2ad}from'@univerjs/ui';import{BehaviorSubject as _0x1e5ced,switchMap as _0x3538ea,of as _0x211035,takeUntil as _0x14bda1,debounceTime as _0x1ef375,Subject as _0x54cb46,filter as _0x327794,merge as _0x393278,combineLatest as _0x302fb1,fromEvent as _0x2df87d,shareReplay as _0x567f93,mapTo as _0x3c4c1e,distinctUntilChanged as _0x2d2872}from'rxjs';import{Tooltip as _0x5aacff,clsx as _0x3ec94d,MessageType as _0x12cc16}from'@univerjs/design';import{useRef as _0x3d4dc5,createElement as _0x5a5e71,forwardRef as _0x416f8d,useCallback as _0x498157}from'react';import{IRemoteInstanceService as _0x3937f3}from'@univerjs/rpc';function _0x5c23(_0x56e703,_0x35736d){_0x56e703=_0x56e703-0x163;const _0xbb0399=_0xbb03();let _0x5c233b=_0xbb0399[_0x56e703];return _0x5c233b;}import{SetWorksheetActivateCommand as _0x2316fc,RefRangeService as _0x3bbc97,SetSelectionsOperation as _0x4ed712,SheetsSelectionsService as _0x4368ee,EffectRefRangId as _0x5da119,handleIRemoveRow as _0x3b2bd0,handleIRemoveCol as _0x251aed,handleMoveRange as _0x246f12,handleInsertRow as _0x2af4f3,handleInsertRangeMoveRight as _0x344616,handleInsertRangeMoveDown as _0x4b48a2,handleInsertCol as _0x5b3e0e,handleDeleteRangeMoveUp as _0x1de7f9,handleDeleteRangeMoveLeft as _0x4935dd,runRefRangeMutations as _0x302bca}from'@univerjs/sheets';import{Shape as _0x52887b,Rect as _0x5b4046,getColor as _0x14e9e2,RegularPolygon as _0x58d215,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e3dcf,Vector2 as _0x557118,SHEET_VIEWPORT_KEY as _0x34d4ed,IRenderManagerService as _0x5346f6}from'@univerjs/engine-render';import{HTTPService as _0x480dcd,ISocketService as _0x5c6fd1,WebSocketService as _0x32e216}from'@univerjs/network';import{IDocClipboardService as _0x3e5614,NodePositionConvertToCursor as _0x54828b,NodePositionConvertToRectRange as _0x105996,TEXT_RANGE_LAYER_INDEX as _0x187154,SetDocZoomRatioOperation as _0xc56c79,DocIMEInputManagerService as _0x55b51e,DocStateChangeManagerService as _0x482b9e}from'@univerjs/docs-ui';import{IImageIoService as _0x271306}from'@univerjs/drawing';import{ITransformService as _0x359e85,CollaborationEvent as _0x209469,isTransformMutationFailure as _0x55c59e,isTransformMutationsWithChangesetSuccess as _0x5878de,RevisionService as _0x43c3ef,ISnapshotServerService as _0x390efe}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x514775,RichTextEditingMutation as _0x30299d,DocSelectionManagerService as _0x4d80ff,DocSkeletonManagerService as _0xdd5720}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x240944,serializeRangeWithSheet as _0x18eb6a,FormulaExecuteStageType as _0x26dbff,FormulaExecutedStateType as _0x543b1c,SetFormulaCalculationStartMutation as _0x20eb1b,SetFormulaCalculationNotificationMutation as _0x35fbf3}from'@univerjs/engine-formula';import{map as _0xbfc3eb,filter as _0x441c60,throttleTime as _0x20ab03,takeUntil as _0x247438,switchMap as _0x1fb74c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17fc5d,getCoordByCell as _0x1d79bc,getSheetObject as _0x11c551}from'@univerjs/sheets-ui';function Ge({ref:_0x2fa0cc,..._0x4e999f}){const _0x1ac198=_0x3b9665,{icon:_0x332b8f,id:_0x40a586,className:_0x54a920,extend:_0x36c996,..._0x19b3f5}=_0x4e999f,_0x3815f5=('univerjs-icon\x20univerjs-icon-'+_0x40a586+'\x20'+(_0x54a920||''))[_0x1ac198(0x23b)](),_0x474765=_0x3d4dc5('_'+vi());return At(_0x332b8f,''+_0x40a586,{'defIds':_0x332b8f['defIds'],'idSuffix':_0x474765[_0x1ac198(0x31a)]},{'ref':_0x2fa0cc,'className':_0x3815f5,..._0x19b3f5},_0x36c996);}function At(_0xcd19db,_0x332151,_0x43feb2,_0x262f42,_0x3de224){const _0x1bb4de=_0x3b9665;return _0x5a5e71(_0xcd19db[_0x1bb4de(0x32c)],{'key':_0x332151,...gi(_0xcd19db,_0x43feb2,_0x3de224),..._0x262f42},(Ei(_0xcd19db,_0x43feb2)[_0x1bb4de(0x2bc)]||[])['map']((_0x1faf5c,_0x4ee828)=>At(_0x1faf5c,_0x332151+'-'+_0xcd19db[_0x1bb4de(0x32c)]+'-'+_0x4ee828,_0x43feb2,void 0x0,_0x3de224)));}function gi(_0x2a5602,_0x30e9bc,_0x191052){const _0x261ba8=_0x3b9665,_0x312087={..._0x2a5602[_0x261ba8(0x2e2)]};_0x191052!=null&&_0x191052[_0x261ba8(0x1d6)]&&_0x312087[_0x261ba8(0x3ab)]===_0x261ba8(0x1d6)&&(_0x312087['fill']=_0x191052[_0x261ba8(0x1d6)]),_0x2a5602[_0x261ba8(0x32c)]===_0x261ba8(0x221)&&_0x312087['id']&&(_0x312087['id']=_0x312087['id']+_0x30e9bc['idSuffix']),Object['entries'](_0x312087)['forEach'](([_0x2ae6e8,_0x2e6df4])=>{const _0x169085=_0x261ba8;_0x2ae6e8===_0x169085(0x221)&&typeof _0x2e6df4==_0x169085(0x21c)&&(_0x312087[_0x2ae6e8]=_0x2e6df4[_0x169085(0x313)](/url\(#(.*)\)/,_0x169085(0x196)+_0x30e9bc[_0x169085(0x230)]+')'));});const {defIds:_0x11d869}=_0x30e9bc;return!_0x11d869||_0x11d869[_0x261ba8(0x1cc)]===0x0||(_0x2a5602[_0x261ba8(0x32c)]===_0x261ba8(0x243)&&_0x312087[_0x261ba8(0x1e6)]&&(_0x312087[_0x261ba8(0x1e6)]=_0x312087['xlink:href']+_0x30e9bc[_0x261ba8(0x230)]),Object['entries'](_0x312087)[_0x261ba8(0x296)](([_0x5b6f5e,_0x5a4f85])=>{const _0x1a55e7=_0x261ba8;typeof _0x5a4f85==_0x1a55e7(0x21c)&&(_0x312087[_0x5b6f5e]=_0x5a4f85[_0x1a55e7(0x313)](/url\(#(.*)\)/,_0x1a55e7(0x196)+_0x30e9bc[_0x1a55e7(0x230)]+')'));})),_0x312087;}function Ei(_0x18b4bb,_0x1e114c){const _0x40f72d=_0x3b9665;var _0x34e9fa;const {defIds:_0x5d52c4}=_0x1e114c;return!_0x5d52c4||_0x5d52c4[_0x40f72d(0x1cc)]===0x0?_0x18b4bb:_0x18b4bb[_0x40f72d(0x32c)]===_0x40f72d(0x2db)&&((_0x34e9fa=_0x18b4bb[_0x40f72d(0x2bc)])!=null&&_0x34e9fa[_0x40f72d(0x1cc)])?{..._0x18b4bb,'children':_0x18b4bb[_0x40f72d(0x2bc)][_0x40f72d(0x1b2)](_0x5e048a=>typeof _0x5e048a[_0x40f72d(0x2e2)]['id']=='string'&&_0x5d52c4&&_0x5d52c4['includes'](_0x5e048a[_0x40f72d(0x2e2)]['id'])?{..._0x5e048a,'attrs':{..._0x5e048a[_0x40f72d(0x2e2)],'id':_0x5e048a[_0x40f72d(0x2e2)]['id']+_0x1e114c[_0x40f72d(0x230)]}}:_0x5e048a)}:_0x18b4bb;}function vi(){const _0x2432ed=_0x3b9665;return Math[_0x2432ed(0x1e0)]()[_0x2432ed(0x30a)](0x24)[_0x2432ed(0x1a0)](0x2,0x8);}Ge[_0x3b9665(0x274)]='UniverIcon';const pi={'tag':'svg','attrs':{'xmlns':_0x3b9665(0x29c),'fill':'none','viewBox':_0x3b9665(0x397),'width':_0x3b9665(0x1f1),'height':_0x3b9665(0x1f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b9665(0x1d3)},'children':[{'tag':_0x3b9665(0x375),'attrs':{'stroke':_0x3b9665(0x38f),'d':_0x3b9665(0x320),'strokeLinecap':_0x3b9665(0x380),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3b9665(0x2db),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3b9665(0x375),'attrs':{'fill':_0x3b9665(0x30e),'d':_0x3b9665(0x363)}}]}]}],'defIds':[_0x3b9665(0x16a)]},Pt=_0x416f8d(function(_0x2c5481,_0x39c3fd){const _0x2abd8c=_0x3b9665;return _0x5a5e71(Ge,Object[_0x2abd8c(0x308)]({},_0x2c5481,{'id':_0x2abd8c(0x1e9),'ref':_0x39c3fd,'icon':pi}));});Pt[_0x3b9665(0x274)]='OffLineIcon';const Oi={'tag':_0x3b9665(0x359),'attrs':{'xmlns':_0x3b9665(0x29c),'fill':_0x3b9665(0x22d),'viewBox':_0x3b9665(0x192),'width':'1em','height':_0x3b9665(0x1f1)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b9665(0x24c)},'children':[{'tag':'path','attrs':{'stroke':_0x3b9665(0x38f),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x3b9665(0x380),'strokeWidth':1.2}}]},{'tag':_0x3b9665(0x2db),'attrs':{},'children':[{'tag':_0x3b9665(0x1d5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3b9665(0x375),'attrs':{'fill':_0x3b9665(0x30e),'d':_0x3b9665(0x363),'transform':_0x3b9665(0x19f)}}]}]}],'defIds':[_0x3b9665(0x2c4)]},wt=_0x416f8d(function(_0xe4ed87,_0x2a8652){const _0x27712b=_0x3b9665;return _0x5a5e71(Ge,Object[_0x27712b(0x308)]({},_0xe4ed87,{'id':_0x27712b(0x2f7),'ref':_0x2a8652,'icon':Oi}));});wt[_0x3b9665(0x274)]=_0x3b9665(0x210);function Ti(_0x560fe7){const _0x195e30=_0x3b9665;switch(_0x560fe7){case _0x50c744['OFFLINE']:return'collabStatus.offline';case _0x50c744[_0x195e30(0x240)]:return _0x195e30(0x1a1);case _0x50c744['FETCH_MISS']:return _0x195e30(0x254);case _0x50c744[_0x195e30(0x309)]:return _0x195e30(0x2a8);case _0x50c744[_0x195e30(0x199)]:case _0x50c744[_0x195e30(0x31f)]:return'collabStatus.syncing';case _0x50c744['SYNCED']:case _0x50c744[_0x195e30(0x1e2)]:return _0x195e30(0x35c);}}function Ci(_0x2e8ac3){const _0x2bc002=_0x3b9665,{status$:_0x282b3b}=_0x2e8ac3,_0x5ac916=_0x2183d4(_0x282b3b,_0x50c744['NOT_COLLAB']),_0x3ae2b5=_0x351fc7(_0x4c3377),_0x18df08=_0x351fc7(_0x15730c),_0x40b6a2=_0x5ac916!==_0x50c744['OFFLINE'],_0x251d6a=_0x3ae2b5['t'](Ti(_0x5ac916)),_0xed56d5=_0x40b6a2?_0x58b890(wt,{}):_0x58b890(Pt,{}),_0x594fa7=_0x498157(()=>{const _0x3c6407=_0x5c23;_0x40b6a2||_0x18df08[_0x3c6407(0x1e5)]();},[_0x40b6a2,_0x18df08]);function _0x24e86c(){const _0x584bf5=_0x5c23;return _0x5d2be9(_0x584bf5(0x212),{'className':_0x584bf5(0x331),'onClick':_0x594fa7,'children':[_0x58b890(_0x584bf5(0x212),{'className':_0x3ec94d('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x40b6a2,'univer-text-red-500':!_0x40b6a2}),'children':_0xed56d5}),_0x58b890(_0x584bf5(0x212),{'className':_0x584bf5(0x1e8),'children':_0x251d6a})]});}return _0x40b6a2?_0x24e86c():_0x58b890(_0x5aacff,{'title':_0x3ae2b5['t'](_0x2bc002(0x27c)),'children':_0x24e86c()});}var Ri=Object[_0x3b9665(0x36d)],Di=(_0x59dd9b,_0x24c759,_0x245522,_0xfa10d5)=>{for(var _0x4cbccd=_0xfa10d5>0x1?void 0x0:_0xfa10d5?Ri(_0x24c759,_0x245522):_0x24c759,_0x38dcf6=_0x59dd9b['length']-0x1,_0x4362a1;_0x38dcf6>=0x0;_0x38dcf6--)(_0x4362a1=_0x59dd9b[_0x38dcf6])&&(_0x4cbccd=_0x4362a1(_0x4cbccd)||_0x4cbccd);return _0x4cbccd;},se=(_0x5693b8,_0xad3bd3)=>(_0x3afdb9,_0x14b985)=>_0xad3bd3(_0x3afdb9,_0x14b985,_0x5693b8);let ae=class extends _0x59ef45{constructor(_0x28024f,_0xc76f3d,_0xdc2cc4,_0x27cd49){const _0x2997c6=_0x3b9665;super(),_(this,_0x2997c6(0x361),new _0x1e5ced(_0x50c744[_0x2997c6(0x309)])),(this[_0x2997c6(0x37e)]=_0x28024f,this[_0x2997c6(0x1a3)]=_0xc76f3d,this[_0x2997c6(0x1a2)]=_0xdc2cc4,this['_uiPartsService']=_0x27cd49,this[_0x2997c6(0x343)](),this['_initStatusListener']());}[_0x3b9665(0x175)](){const _0x30d0a0=_0x3b9665;this['disposeWithMe'](this[_0x30d0a0(0x37e)][_0x30d0a0(0x1b4)][_0x30d0a0(0x193)](_0x3538ea(()=>{const _0x40a088=_0x30d0a0,_0x19b512=this[_0x40a088(0x37e)][_0x40a088(0x2bb)]();return _0x19b512?this[_0x40a088(0x1a2)][_0x40a088(0x271)](_0x19b512['getUnitId']()):_0x211035(null);}),_0x3538ea(_0x20c63a=>_0x20c63a?_0x20c63a[_0x30d0a0(0x1d9)]:_0x211035(_0x50c744[_0x30d0a0(0x309)])))[_0x30d0a0(0x1c1)](_0x3a5717=>{const _0x406a8b=_0x30d0a0;this[_0x406a8b(0x361)][_0x406a8b(0x28d)](_0x3a5717);}));}['_initStatusComponent'](){const _0xa93187=_0x3b9665;this[_0xa93187(0x219)](this[_0xa93187(0x215)][_0xa93187(0x1fc)](_0x581dfa[_0xa93187(0x38e)],()=>_0x33d723(Ni({'status$':this['_status$'][_0xa93187(0x398)]()}),this[_0xa93187(0x1a3)])));}};ae=Di([se(0x0,_0x4aa59b),se(0x1,_0x122dae(_0x318e52)),se(0x2,_0x122dae(_0xe9560e)),se(0x3,_0x849955)],ae);function Ni(_0xecaed9){const {status$:_0x4b2f2e}=_0xecaed9;return function(){return _0x58b890(Ci,{'status$':_0x4b2f2e});};}const yt=_0x5ed179('uni.network.url-service');var bi=Object[_0x3b9665(0x36d)],Li=(_0x30dfe0,_0x1e2dcd,_0xa65891,_0x54e8cc)=>{const _0x29dd1f=_0x3b9665;for(var _0x2e6101=_0x54e8cc>0x1?void 0x0:_0x54e8cc?bi(_0x1e2dcd,_0xa65891):_0x1e2dcd,_0x11c689=_0x30dfe0[_0x29dd1f(0x1cc)]-0x1,_0x41cbfb;_0x11c689>=0x0;_0x11c689--)(_0x41cbfb=_0x30dfe0[_0x11c689])&&(_0x2e6101=_0x41cbfb(_0x2e6101)||_0x2e6101);return _0x2e6101;},K=(_0x4a1c8b,_0x601ca7)=>(_0x2f2377,_0x41b784)=>_0x601ca7(_0x2f2377,_0x41b784,_0x4a1c8b);let ce=class extends _0x1b547f{constructor(_0xf6c3c1,_0xc8480b,_0x56c4a4,_0xbad953,_0x19bcf3){const _0x320e6f=_0x3b9665;super(),this[_0x320e6f(0x2b6)]=_0xf6c3c1,this[_0x320e6f(0x19d)]=_0xc8480b,this['_commandService']=_0x56c4a4,this['_dataLoaderService']=_0xbad953,_0x19bcf3?_0x19bcf3==null||_0x19bcf3[_0x320e6f(0x176)]()[_0x320e6f(0x189)](()=>this[_0x320e6f(0x279)]()):(this[_0x320e6f(0x19d)][_0x320e6f(0x1c7)](_0x320e6f(0x340),_0x320e6f(0x31c)),this['_init']());}async[_0x3b9665(0x279)](){const _0x540c0e=_0x3b9665,_0x5093a8=this[_0x540c0e(0x2b6)][_0x540c0e(0x366)](_0x540c0e(0x36e)),_0x2ffdcc=this['_urlService'][_0x540c0e(0x366)]('type'),_0x59263a=this[_0x540c0e(0x2b6)][_0x540c0e(0x366)](_0x540c0e(0x379));if(!_0x5093a8||!_0x2ffdcc){this[_0x540c0e(0x19d)][_0x540c0e(0x1c7)](_0x540c0e(0x340),_0x540c0e(0x2cc));return;}const _0x9a5490=await this[_0x540c0e(0x298)][_0x540c0e(0x268)](_0x5093a8,Number(_0x2ffdcc),_0x59263a);_0x9a5490&&_0x9a5490 instanceof _0x163d3f&&this['_setupSubUnitSync'](_0x9a5490);}async[_0x3b9665(0x275)](_0x4b1156){const _0x218fef=_0x3b9665;await this[_0x218fef(0x2e0)](_0x4b1156),_0x4b1156[_0x218fef(0x355)][_0x218fef(0x193)](_0x14bda1(this['dispose$']))['subscribe'](_0x8f4f63=>{_0x8f4f63&&this['_updateURLWithCurrentState'](_0x8f4f63);}),this[_0x218fef(0x2b6)]['urlChange$'][_0x218fef(0x193)](_0x14bda1(this[_0x218fef(0x391)]))[_0x218fef(0x1c1)](()=>this['_updateSubUnitFromURLParams'](_0x4b1156));}[_0x3b9665(0x2aa)](_0x5cb760,_0x280593=!0x1){const _0x38b470=_0x3b9665,_0x6b2c1c=this['_urlService']['getParam'](_0x38b470(0x379));_0x5cb760[_0x38b470(0x1ea)]()!==_0x6b2c1c&&this['_urlService'][_0x38b470(0x216)](_0x38b470(0x379),_0x5cb760['getSheetId'](),_0x280593);}async[_0x3b9665(0x2e0)](_0x5e6c7c){const _0x4f9b7b=_0x3b9665;var _0x4972d6;const _0x28e137=this[_0x4f9b7b(0x2b6)][_0x4f9b7b(0x366)](_0x4f9b7b(0x379));if(!_0x28e137||!_0x5e6c7c[_0x4f9b7b(0x1ce)](_0x28e137)){const _0x2adc83=_0x5e6c7c['getUnhiddenWorksheets']()[0x0],_0x2fc105=_0x5e6c7c[_0x4f9b7b(0x1ce)](_0x2adc83);if(!_0x2fc105)return;this[_0x4f9b7b(0x2aa)](_0x2fc105,!0x0),await this[_0x4f9b7b(0x17c)][_0x4f9b7b(0x21a)](_0x2316fc['id'],{'unitId':_0x5e6c7c['getUnitId'](),'subUnitId':_0x2adc83});return;}((_0x4972d6=_0x5e6c7c['getActiveSheet']())==null?void 0x0:_0x4972d6[_0x4f9b7b(0x1ea)]())!==_0x28e137&&await this[_0x4f9b7b(0x17c)][_0x4f9b7b(0x21a)](_0x2316fc['id'],{'unitId':_0x5e6c7c[_0x4f9b7b(0x2e8)](),'subUnitId':_0x28e137});}};ce=Li([K(0x0,yt),K(0x1,_0x3cc8e3),K(0x2,_0x42e7dd),K(0x3,_0x122dae(_0x35966c)),K(0x4,_0xc1055e(_0x3937f3))],ce);var Ui=Object[_0x3b9665(0x36d)],Mi=(_0xfc0a8,_0x3d68b2,_0x571762,_0x55087d)=>{const _0x5a35a2=_0x3b9665;for(var _0x1236a2=_0x55087d>0x1?void 0x0:_0x55087d?Ui(_0x3d68b2,_0x571762):_0x3d68b2,_0x4725b0=_0xfc0a8[_0x5a35a2(0x1cc)]-0x1,_0x462894;_0x4725b0>=0x0;_0x4725b0--)(_0x462894=_0xfc0a8[_0x4725b0])&&(_0x1236a2=_0x462894(_0x1236a2)||_0x1236a2);return _0x1236a2;},rt=(_0x380fa6,_0xdfe3bb)=>(_0x35279a,_0x1ffd33)=>_0xdfe3bb(_0x35279a,_0x1ffd33,_0x380fa6);let $e=class extends _0x1b547f{constructor(_0x33d354,_0x45e422){const _0x2ecf5c=_0x3b9665;super(),this[_0x2ecf5c(0x348)]=_0x33d354,this[_0x2ecf5c(0x32b)]=_0x45e422,this[_0x2ecf5c(0x279)]();}[_0x3b9665(0x279)](){const _0x473be6=_0x3b9665,_0x10971c=this;this[_0x473be6(0x219)](this[_0x473be6(0x348)][_0x473be6(0x24a)]({'onBeforePasteImage':async _0x24ab18=>{const _0x10ebdd=_0x473be6,_0x4eb904=await _0x10971c['_imageIoService']['saveImage'](_0x24ab18);return _0x4eb904?{'source':_0x4eb904[_0x10ebdd(0x286)],'imageSourceType':_0x4eb904[_0x10ebdd(0x33c)]}:null;}}));}};$e=Mi([rt(0x0,_0x3e5614),rt(0x1,_0x271306)],$e);const ot=[_0x3b9665(0x2d9),'jiqing.500',_0x3b9665(0x168),_0x3b9665(0x2f8),_0x3b9665(0x1c6),_0x3b9665(0x2a3)];class Ke extends _0x59ef45{constructor(){const _0x9d1d51=_0x3b9665;super(...arguments),_(this,_0x9d1d51(0x1ef),new Map()),_(this,_0x9d1d51(0x21d),0x0);}[_0x3b9665(0x1da)](_0x2b841a){const _0x171730=_0x3b9665;if(this[_0x171730(0x1ef)][_0x171730(0x23d)](_0x2b841a))return this['_assignedColors'][_0x171730(0x20b)](_0x2b841a);const _0x33c74a=ot[this[_0x171730(0x21d)]];return this[_0x171730(0x21d)]=(this['_colorIndex']+0x1)%ot[_0x171730(0x1cc)],this[_0x171730(0x1ef)][_0x171730(0x227)](_0x2b841a,_0x33c74a),_0x33c74a;}}function $t(_0x2d81e1){let _0x5edf53='';for(const _0x193c45 of _0x2d81e1){const {startOffset:_0x2cab9c,endOffset:_0x1efee8,isActive:_0x146be8,rangeType:_0x261a9a,segmentId:_0x280d19,segmentPage:_0x43c7c6}=_0x193c45;_0x5edf53['length']&&(_0x5edf53+=','),_0x5edf53+=_0x2cab9c+':'+_0x1efee8+':'+(_0x146be8?'1':'0')+':'+_0x261a9a+':'+_0x280d19+':'+_0x43c7c6;}return _0x5edf53;}function Ai(_0x15497f){const _0x5b7e1b=_0x3b9665,_0x36f6de=_0x15497f['split'](','),_0x15a834=[];for(const _0x46d181 of _0x36f6de){const [_0x372dc5,_0x1ec36f,_0x5112e6,_0x5eab93,_0x16a185,_0x563876]=_0x46d181[_0x5b7e1b(0x264)](':');_0x15a834[_0x5b7e1b(0x2ab)]({'startOffset':Number(_0x372dc5),'endOffset':Number(_0x1ec36f),'collapsed':_0x372dc5===_0x1ec36f,'isActive':_0x5112e6==='1','rangeType':_0x5eab93===_0x53f6b0[_0x5b7e1b(0x2c1)]?_0x53f6b0[_0x5b7e1b(0x2c1)]:_0x53f6b0[_0x5b7e1b(0x30d)],'segmentId':typeof _0x16a185==_0x5b7e1b(0x21c)?String(_0x16a185):'','segmentPage':Number(_0x563876!=null?_0x563876:-0x1)});}return _0x15a834['some'](_0x478500=>_0x478500['isActive'])||(_0x15a834[0x0]['isActive']=!0x0),_0x15a834;}class ze extends _0x1b547f{constructor(){const _0x4e9c54=_0x3b9665;super(...arguments),_(this,_0x4e9c54(0x376),new _0x1e5ced(null)),_(this,_0x4e9c54(0x326),this[_0x4e9c54(0x376)][_0x4e9c54(0x398)]());}['syncEditingCollabCursor'](_0x241597){const _0x8ade68=_0x3b9665,{unitID:_0x2468ec,memberID:_0x3acf08,textRanges:_0x2a16d8}=_0x241597,_0x1333d6=$t(_0x2a16d8);if(_0x1333d6==='')return;const _0x387b6d={'unitID':_0x2468ec,'memberID':_0x3acf08,'selection':_0x1333d6};this[_0x8ade68(0x376)][_0x8ade68(0x28d)](_0x387b6d);}}var Pi=Object[_0x3b9665(0x36d)],wi=(_0x2f44e9,_0x385aed,_0x576eed,_0x165cfa)=>{const _0x4b8d6c=_0x3b9665;for(var _0x1e71a4=_0x165cfa>0x1?void 0x0:_0x165cfa?Pi(_0x385aed,_0x576eed):_0x385aed,_0x5ceed8=_0x2f44e9[_0x4b8d6c(0x1cc)]-0x1,_0x53b823;_0x5ceed8>=0x0;_0x5ceed8--)(_0x53b823=_0x2f44e9[_0x5ceed8])&&(_0x1e71a4=_0x53b823(_0x1e71a4)||_0x1e71a4);return _0x1e71a4;},A=(_0x45fab7,_0x35c694)=>(_0x41e486,_0x51a73d)=>_0x35c694(_0x41e486,_0x51a73d,_0x45fab7);const yi=0x12c,$i=0x64;let xe=class extends _0x1b547f{constructor(_0x4042b8,_0x91f1d7,_0x4d6a1d,_0x133f1b,_0xf93fdc,_0x1c7b03,_0x48081f,_0x5b46d4,_0x4e23e0){const _0x594aa3=_0x3b9665;super(),_(this,_0x594aa3(0x378),!0x1),_(this,_0x594aa3(0x279),!0x1),_(this,_0x594aa3(0x394),new _0x1e5ced(new Map())),_(this,'cursorInfo$',this[_0x594aa3(0x394)]['asObservable']()),_(this,_0x594aa3(0x328),new _0x1e5ced([])),_(this,_0x594aa3(0x3a1),this[_0x594aa3(0x328)]['pipe'](_0x1ef375(yi))),_(this,'_updateLocalCursor',_0x4e9266(_0x491179=>{const _0x2b36d0=_0x594aa3,_0x165d9f={'eventID':_0x209469[_0x2b36d0(0x1bf)],'data':{'unitID':this['unitID'],'memberID':this[_0x2b36d0(0x31d)][_0x2b36d0(0x25a)](),'selection':$t(_0x491179)}};this[_0x2b36d0(0x31d)]['send'](_0x165d9f,this['unitID']);},$i)),(this['unitID']=_0x4042b8,this[_0x594aa3(0x31d)]=_0x91f1d7,this['_injector']=_0x4d6a1d,this['_colorAssignService']=_0x133f1b,this['_memberService']=_0xf93fdc,this[_0x594aa3(0x2a1)]=_0x1c7b03,this[_0x594aa3(0x23c)]=_0x48081f,this['_univerInstanceService']=_0x5b46d4,this[_0x594aa3(0x17c)]=_0x4e23e0);}get[_0x3b9665(0x319)](){const _0x44281c=_0x3b9665;return this[_0x44281c(0x394)][_0x44281c(0x353)]();}get[_0x3b9665(0x1c9)](){const _0x190ab7=_0x3b9665;return this[_0x190ab7(0x328)][_0x190ab7(0x353)]();}['dispose'](){const _0x1f77c0=_0x3b9665;super[_0x1f77c0(0x239)](),this[_0x1f77c0(0x394)][_0x1f77c0(0x28d)](new Map()),this[_0x1f77c0(0x394)]['complete'](),this[_0x1f77c0(0x328)][_0x1f77c0(0x28d)]([]),this[_0x1f77c0(0x328)][_0x1f77c0(0x36c)]();}['init'](){const _0x291cfc=_0x3b9665;this[_0x291cfc(0x279)]||(this[_0x291cfc(0x279)]=!0x0,this[_0x291cfc(0x31d)][_0x291cfc(0x1c5)][_0x291cfc(0x193)](_0x14bda1(this['dispose$']))[_0x291cfc(0x1c1)](_0x29fa72=>{const _0x2392e9=_0x291cfc;_0x29fa72===_0x31d4a4[_0x2392e9(0x167)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x291cfc(0x31d)][_0x291cfc(0x330)][_0x291cfc(0x193)](_0x14bda1(this['dispose$']))[_0x291cfc(0x1c1)](_0x1083ba=>{const _0x47919c=_0x291cfc,_0x2acd2f=_0x1083ba['eventID'];_0x2acd2f===_0x209469[_0x47919c(0x1bf)]&&this[_0x47919c(0x18b)](_0x1083ba),_0x2acd2f===_0x209469[_0x47919c(0x1b5)]&&this['_onCursorDelete'](_0x1083ba);}),this[_0x291cfc(0x219)](this[_0x291cfc(0x17c)][_0x291cfc(0x360)](_0x2f9490=>{const _0x810387=_0x291cfc,_0x3eb066=_0x2f9490[_0x810387(0x1b8)];_0x3eb066!=null&&this[_0x810387(0x378)]&&_0x2f9490['id']===_0x514775['id']&&_0x3eb066['unitId']===this[_0x810387(0x242)]&&_0x3eb066[_0x810387(0x386)]===!0x1&&_0x3eb066[_0x810387(0x2e1)][_0x810387(0x1cc)]>0x0&&this['_updateLocalCursor'](_0x3eb066[_0x810387(0x2e1)]);})),this[_0x291cfc(0x2a1)][_0x291cfc(0x326)][_0x291cfc(0x193)](_0x14bda1(this['dispose$']))[_0x291cfc(0x1c1)](_0x4ca9d6=>{const _0x39c33a=_0x291cfc;if((_0x4ca9d6==null?void 0x0:_0x4ca9d6[_0x39c33a(0x242)])!==this['unitID'])return;const _0x40ff87={'eventID':_0x209469['UPDATE_CURSOR'],'data':_0x4ca9d6};this[_0x39c33a(0x18b)](_0x40ff87);}),this[_0x291cfc(0x219)](this[_0x291cfc(0x17c)][_0x291cfc(0x360)](_0x78b1fe=>{const _0x45ae42=_0x291cfc;if(_0x78b1fe[_0x45ae42(0x1b8)]==null)return;const _0x1ca71d=_0x78b1fe['params'];if(_0x78b1fe['id']!==_0x30299d['id']||_0x1ca71d[_0x45ae42(0x2b9)]!==this[_0x45ae42(0x242)])return;const _0x1ae259={'id':_0x45ae42(0x235),'params':_0x1ca71d},_0x453686=this[_0x45ae42(0x319)];for(const [_0x46175f,_0x20bd08]of _0x453686){const _0x345ad6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x45ae42(0x242)],'actions':null,'textRanges':_0x20bd08[_0x45ae42(0x2e1)]}},_0x2b341e=this[_0x45ae42(0x23c)][_0x45ae42(0x248)](_0x1ae259,_0x345ad6,!0x1);if(_0x55c59e(_0x2b341e))throw _0x2b341e[_0x45ae42(0x213)];_0x453686[_0x45ae42(0x227)](_0x46175f,{..._0x20bd08,'ranges':_0x2b341e[_0x45ae42(0x354)][_0x45ae42(0x1b8)][_0x45ae42(0x18f)]});}queueMicrotask(()=>{const _0x400f0f=_0x45ae42;this[_0x400f0f(0x394)][_0x400f0f(0x28d)](_0x453686);});})));}['_onCursorUpdate'](_0xa89c4){const _0x4cc3a4=_0x3b9665;var _0x4fa200,_0xf4c5ba;const {memberID:_0x3aec92,selection:_0x36ade2}=_0xa89c4[_0x4cc3a4(0x224)],_0x18228f=Ai(_0x36ade2),_0x2bda65=(_0xf4c5ba=(_0x4fa200=this[_0x4cc3a4(0x22e)][_0x4cc3a4(0x2d2)](this[_0x4cc3a4(0x242)],_0x3aec92))==null?void 0x0:_0x4fa200['name'])!=null?_0xf4c5ba:_0x4cc3a4(0x351),_0x4c0320={'color':this[_0x4cc3a4(0x201)][_0x4cc3a4(0x1da)](_0x3aec92),'name':_0x2bda65,'ranges':_0x18228f},_0x338031=this[_0x4cc3a4(0x319)];_0x338031[_0x4cc3a4(0x227)](_0x3aec92,_0x4c0320),this[_0x4cc3a4(0x394)][_0x4cc3a4(0x28d)](_0x338031);}[_0x3b9665(0x280)](_0x1815ea){const _0x5539cf=_0x3b9665,{memberID:_0x4a19e1}=_0x1815ea[_0x5539cf(0x224)],_0x5c3a5f=this[_0x5539cf(0x319)];_0x5c3a5f[_0x5539cf(0x194)](_0x4a19e1),this[_0x5539cf(0x394)]['next'](_0x5c3a5f);}['_toggleOnline'](){const _0x59e102=_0x3b9665;var _0x180e01;if(this[_0x59e102(0x378)]=!0x0,((_0x180e01=this[_0x59e102(0x37e)][_0x59e102(0x2bb)]())==null?void 0x0:_0x180e01[_0x59e102(0x2e8)]())!==this[_0x59e102(0x242)])return;const _0x51e70d=this[_0x59e102(0x1a3)]['get'](_0x4d80ff)['getDocRanges']();Array['isArray'](_0x51e70d)&&_0x51e70d['length']>0x0&&this[_0x59e102(0x178)](_0x51e70d);}[_0x3b9665(0x295)](){const _0x294d7e=_0x3b9665;this[_0x294d7e(0x378)]=!0x1;}};xe=wi([A(0x2,_0x122dae(_0x318e52)),A(0x3,_0x122dae(Ke)),A(0x4,_0x122dae(_0x122c7f)),A(0x5,_0x122dae(ze)),A(0x6,_0x359e85),A(0x7,_0x4aa59b),A(0x8,_0x42e7dd)],xe);var xi=Object[_0x3b9665(0x36d)],Bi=(_0x2bd048,_0x139ca8,_0x26b7b1,_0x101cb3)=>{const _0x2513c8=_0x3b9665;for(var _0x3b334e=_0x101cb3>0x1?void 0x0:_0x101cb3?xi(_0x139ca8,_0x26b7b1):_0x139ca8,_0x415450=_0x2bd048[_0x2513c8(0x1cc)]-0x1,_0x2df216;_0x415450>=0x0;_0x415450--)(_0x2df216=_0x2bd048[_0x415450])&&(_0x3b334e=_0x2df216(_0x3b334e)||_0x3b334e);return _0x3b334e;},B=(_0x2a4085,_0x584476)=>(_0x558f3a,_0x194edd)=>_0x584476(_0x558f3a,_0x194edd,_0x2a4085);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4629b3=[],_0x1188fb=!0x1;return _0x484307=>{const _0x3782c7=_0x5c23;_0x4629b3[_0x3782c7(0x2ab)](_0x484307),_0x1188fb||(_0x1188fb=!0x0,setTimeout(()=>{const _0x155a03=_0x3782c7;_0x4629b3[_0x155a03(0x296)](_0x2cfdcf=>_0x2cfdcf()),_0x4629b3=[],_0x1188fb=!0x1;}));};};let Be=class extends _0x1b547f{constructor(_0x11e290,_0x2444d0,_0x595a00,_0x42dbf8,_0x5220f6,_0x174f36,_0x593262,_0x4533f3){const _0x52d02d=_0x3b9665;super(),_(this,_0x52d02d(0x378),!0x1),_(this,_0x52d02d(0x279),!0x1),_(this,_0x52d02d(0x394),new _0x1e5ced(new Map())),_(this,_0x52d02d(0x2cf),this[_0x52d02d(0x394)][_0x52d02d(0x398)]()),_(this,_0x52d02d(0x328),new _0x1e5ced([])),_(this,'roomMembers$',this['_roomMembers$'][_0x52d02d(0x193)](_0x1ef375(Fi))),_(this,'_updateLocalCursor',_0x4e9266((_0x5a0118,_0x4eb3fe)=>{const _0xec248c=_0x52d02d,_0x4de9aa={'eventID':_0x209469['UPDATE_CURSOR'],'data':{'unitID':this[_0xec248c(0x242)],'memberID':this['_session'][_0xec248c(0x25a)](),'selection':_0x18eb6a(_0x5a0118,_0x4eb3fe[_0xec248c(0x35a)])}};this['_session']['send'](_0x4de9aa,this[_0xec248c(0x242)]);},ki)),(this[_0x52d02d(0x242)]=_0x11e290,this[_0x52d02d(0x31d)]=_0x2444d0,this['_injector']=_0x595a00,this[_0x52d02d(0x201)]=_0x42dbf8,this[_0x52d02d(0x22e)]=_0x5220f6,this[_0x52d02d(0x37e)]=_0x174f36,this[_0x52d02d(0x17c)]=_0x593262,this[_0x52d02d(0x2a2)]=_0x4533f3);}get['cursorInfo'](){const _0x8c2491=_0x3b9665;return this[_0x8c2491(0x394)][_0x8c2491(0x353)]();}get['roomMembers'](){const _0x4f45f7=_0x3b9665;return this['_roomMembers$'][_0x4f45f7(0x353)]();}['dispose'](){const _0x5b8b4e=_0x3b9665;super[_0x5b8b4e(0x239)](),this[_0x5b8b4e(0x394)][_0x5b8b4e(0x28d)](new Map()),this[_0x5b8b4e(0x394)][_0x5b8b4e(0x36c)](),this[_0x5b8b4e(0x328)][_0x5b8b4e(0x28d)]([]),this[_0x5b8b4e(0x328)][_0x5b8b4e(0x36c)]();}[_0x3b9665(0x1ca)](){const _0x184539=_0x3b9665;this[_0x184539(0x279)]||(this[_0x184539(0x279)]=!0x0,this[_0x184539(0x31d)][_0x184539(0x1c5)][_0x184539(0x193)](_0x14bda1(this[_0x184539(0x391)]))[_0x184539(0x1c1)](_0x5e5295=>{const _0x5d1930=_0x184539;_0x5e5295===_0x31d4a4[_0x5d1930(0x167)]?this[_0x5d1930(0x2f2)]():this[_0x5d1930(0x295)]();}),this['_session'][_0x184539(0x330)][_0x184539(0x193)](_0x14bda1(this[_0x184539(0x391)]))[_0x184539(0x1c1)](_0x238f13=>{const _0x410502=_0x184539,_0x58c1a3=_0x238f13[_0x410502(0x315)];_0x58c1a3===_0x209469[_0x410502(0x1bf)]&&this[_0x410502(0x18b)](_0x238f13),_0x58c1a3===_0x209469[_0x410502(0x1b5)]&&this[_0x410502(0x280)](_0x238f13);}),this[_0x184539(0x288)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x54358e=>{const _0x1d2f6d=_0x184539;if(this[_0x1d2f6d(0x378)]&&_0x54358e['id']===_0x4ed712['id']&&_0x54358e['params'][_0x1d2f6d(0x2b9)]===this['unitID']){const _0x4c89e9=_0x54358e[_0x1d2f6d(0x1b8)];this[_0x1d2f6d(0x178)](_0x4c89e9[_0x1d2f6d(0x395)],_0x4c89e9['selections'][0x0]);}})));}[_0x3b9665(0x18b)](_0x4229b0){const _0x398104=_0x3b9665;var _0x4d7d94,_0x43aceb;const {memberID:_0x53916b,selection:_0x3160dd}=_0x4229b0['data'],{sheetName:_0x3d6cc8,range:_0x19c172}=_0x240944(_0x3160dd),_0x3a8b1c={'name':(_0x43aceb=(_0x4d7d94=this[_0x398104(0x22e)][_0x398104(0x2d2)](this['unitID'],_0x53916b))==null?void 0x0:_0x4d7d94['name'])!=null?_0x43aceb:_0x398104(0x351),'range':this[_0x398104(0x17f)](_0x3d6cc8,_0x19c172),'sheetID':_0x3d6cc8,'color':this[_0x398104(0x201)][_0x398104(0x1da)](_0x53916b),'selection':_0x3160dd},_0x4296e7=this['cursorInfo'];_0x4296e7[_0x398104(0x227)](_0x53916b,_0x3a8b1c),this[_0x398104(0x394)][_0x398104(0x28d)](_0x4296e7);}['_onCursorDelete'](_0x3722ba){const _0x1c21b6=_0x3b9665,{memberID:_0x5d3850}=_0x3722ba[_0x1c21b6(0x224)],_0x22813e=this[_0x1c21b6(0x319)];_0x22813e[_0x1c21b6(0x194)](_0x5d3850),this[_0x1c21b6(0x394)]['next'](_0x22813e);}[_0x3b9665(0x17f)](_0x277acf,_0x411269){const _0x276c1e=_0x3b9665;var _0x485c35,_0x1c1d19;const _0x4e5911=(_0x1c1d19=(_0x485c35=this['_univerInstanceService'][_0x276c1e(0x34f)](this[_0x276c1e(0x242)]))==null?void 0x0:_0x485c35[_0x276c1e(0x1ce)](_0x277acf))==null?void 0x0:_0x1c1d19[_0x276c1e(0x2da)]();return(_0x4e5911==null?void 0x0:_0x4e5911[_0x276c1e(0x1ae)](_0x10bd1e=>_0x555505['contains'](_0x10bd1e,_0x411269)))||_0x411269;}[_0x3b9665(0x288)](){const _0x140b8d=_0x3b9665,_0xb696f3=new _0x191207(),_0x5ade76=Hi(),_0x31b0de=()=>{const _0x2d75f8=_0x5c23;_0xb696f3[_0x2d75f8(0x239)]();const _0x23d083=(_0x12b4f6,_0x48b868,_0x3441a1,_0x2a3927)=>{const _0x3178bf=_0x2d75f8;let _0x238730=[];switch(_0x12b4f6['id']){case _0x5da119['DeleteRangeMoveLeftCommandId']:{_0x238730=_0x4935dd(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x19c)]:{_0x238730=_0x1de7f9(_0x12b4f6,_0x2a3927);break;}case _0x5da119['InsertColCommandId']:{_0x238730=_0x5b3e0e(_0x12b4f6,_0x2a3927);break;}case _0x5da119['InsertRangeMoveDownCommandId']:{_0x238730=_0x4b48a2(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x1dc)]:{_0x238730=_0x344616(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x1a4)]:{_0x238730=_0x2af4f3(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x347)]:{_0x238730=_0x246f12(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x226)]:{_0x238730=_0x251aed(_0x12b4f6,_0x2a3927);break;}case _0x5da119[_0x3178bf(0x169)]:{_0x238730=_0x3b2bd0(_0x12b4f6,_0x2a3927);break;}}const _0x582266=_0x302bca(_0x238730,_0x2a3927),_0xd66a7a=this[_0x3178bf(0x319)]['get'](_0x48b868);if(_0xd66a7a&&_0x582266){const _0x34605d={..._0xd66a7a,'range':_0x582266};this[_0x3178bf(0x319)][_0x3178bf(0x227)](_0x48b868,_0x34605d),_0x5ade76(()=>{const _0x1302ef=_0x3178bf,_0x18c386=this[_0x1302ef(0x2a2)][_0x1302ef(0x1d2)](_0x582266,_0xc4e05b=>(_0x18c386[_0x1302ef(0x239)](),_0x23d083(_0xc4e05b,_0x48b868,_0x3441a1,_0x582266)));_0xb696f3[_0x1302ef(0x2ca)](_0x18c386);});}return{'redos':[],'undos':[]};};this[_0x2d75f8(0x319)][_0x2d75f8(0x296)]((_0x415422,_0x1494e1)=>{const _0x2a05ce=_0x2d75f8,{range:_0x1fb9e5,sheetID:_0x96f34c}=_0x415422,_0x5239b8=this[_0x2a05ce(0x2a2)]['registerRefRange'](_0x1fb9e5,_0x36207e=>(_0x5239b8[_0x2a05ce(0x239)](),_0x23d083(_0x36207e,_0x1494e1,_0x96f34c,_0x1fb9e5)));_0xb696f3[_0x2a05ce(0x2ca)](_0x5239b8);});};this[_0x140b8d(0x219)](_0x4f8f82(this[_0x140b8d(0x394)][_0x140b8d(0x1c1)](()=>{_0x31b0de();})));}['_toggleOnline'](){const _0x41765b=_0x3b9665;var _0x8aef83,_0x1064ad;if(this[_0x41765b(0x378)]=!0x0,((_0x8aef83=this[_0x41765b(0x37e)][_0x41765b(0x2bb)]())==null?void 0x0:_0x8aef83[_0x41765b(0x2e8)]())!==this[_0x41765b(0x242)])return;const _0x4ea111=(_0x1064ad=this[_0x41765b(0x1a3)]['get'](_0x4368ee)['getCurrentSelections']())==null?void 0x0:_0x1064ad[0x0],_0x515654=this[_0x41765b(0x37e)][_0x41765b(0x27b)](_0x111dfa[_0x41765b(0x307)])['getActiveSheet']();_0x4ea111&&_0x515654&&this[_0x41765b(0x178)](_0x515654['getSheetId'](),_0x4ea111);}['_toggleOffline'](){const _0x5d1772=_0x3b9665;this[_0x5d1772(0x378)]=!0x1;}};Be=Bi([B(0x2,_0x122dae(_0x318e52)),B(0x3,_0x122dae(Ke)),B(0x4,_0x122dae(_0x122c7f)),B(0x5,_0x4aa59b),B(0x6,_0x42e7dd),B(0x7,_0x122dae(_0x3bbc97))],Be);var Yi=Object[_0x3b9665(0x36d)],Wi=(_0x54c570,_0x1dcce4,_0x31a2d2,_0x3be150)=>{const _0x1242bb=_0x3b9665;for(var _0x1a58e6=_0x3be150>0x1?void 0x0:_0x3be150?Yi(_0x1dcce4,_0x31a2d2):_0x1dcce4,_0x272d4c=_0x54c570[_0x1242bb(0x1cc)]-0x1,_0x1d2c4a;_0x272d4c>=0x0;_0x272d4c--)(_0x1d2c4a=_0x54c570[_0x272d4c])&&(_0x1a58e6=_0x1d2c4a(_0x1a58e6)||_0x1a58e6);return _0x1a58e6;},Ce=(_0x4ea51f,_0x40034b)=>(_0x350c5d,_0x490190)=>_0x40034b(_0x350c5d,_0x490190,_0x4ea51f);let H=class extends _0x1b547f{constructor(_0x30034b,_0x1ee3ba,_0x37e2b6){const _0x146e11=_0x3b9665;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x54cb46()),(this[_0x146e11(0x37e)]=_0x30034b,this['_injector']=_0x1ee3ba,this[_0x146e11(0x27a)]=_0x37e2b6,this[_0x146e11(0x279)]());}[_0x3b9665(0x239)](){const _0x5691d6=_0x3b9665;super['dispose'](),this[_0x5691d6(0x2b0)][_0x5691d6(0x36c)](),this[_0x5691d6(0x198)]['forEach'](_0x33f73a=>_0x33f73a[_0x5691d6(0x239)]());}[_0x3b9665(0x1c2)](_0x1ddd83){const _0xd0988d=_0x3b9665;return this[_0xd0988d(0x198)][_0xd0988d(0x23d)](_0x1ddd83)?this[_0xd0988d(0x198)][_0xd0988d(0x20b)](_0x1ddd83)[_0xd0988d(0x2cf)]:this[_0xd0988d(0x2b0)][_0xd0988d(0x193)](_0x327794(_0x53aa40=>_0x53aa40[_0xd0988d(0x242)]===_0x1ddd83),_0x3538ea(_0x1e077c=>_0x1e077c[_0xd0988d(0x2cf)]));}[_0x3b9665(0x279)](){const _0x40cd01=_0x3b9665;this[_0x40cd01(0x37e)][_0x40cd01(0x1ec)](_0x111dfa[_0x40cd01(0x307)])[_0x40cd01(0x193)](_0x14bda1(this['dispose$']))[_0x40cd01(0x1c1)](async _0x179143=>{const _0x4f1e34=_0x40cd01,_0x4fdaa4=_0x179143[_0x4f1e34(0x2e8)](),_0x2770c1=await this[_0x4f1e34(0x172)](_0x4fdaa4);this[_0x4f1e34(0x2b0)]['next'](_0x2770c1),this['_entities'][_0x4f1e34(0x227)](_0x4fdaa4,_0x2770c1);}),this[_0x40cd01(0x37e)][_0x40cd01(0x1ec)](_0x111dfa[_0x40cd01(0x16e)])[_0x40cd01(0x193)](_0x14bda1(this[_0x40cd01(0x391)]))[_0x40cd01(0x193)](_0x327794(_0x3c19c2=>!_0x3c19c2[_0x40cd01(0x2e8)]()[_0x40cd01(0x231)]('__')))['subscribe'](async _0x4c2fdb=>{const _0x25672a=_0x40cd01,_0x116474=_0x4c2fdb['getUnitId'](),_0xff684f=await this[_0x25672a(0x2a0)](_0x116474);this[_0x25672a(0x2b0)][_0x25672a(0x28d)](_0xff684f),this[_0x25672a(0x198)][_0x25672a(0x227)](_0x116474,_0xff684f);}),_0x393278(this[_0x40cd01(0x37e)][_0x40cd01(0x396)](_0x111dfa[_0x40cd01(0x16e)]),this['_univerInstanceService'][_0x40cd01(0x396)](_0x111dfa['UNIVER_SHEET']))[_0x40cd01(0x193)](_0x14bda1(this[_0x40cd01(0x391)]))['subscribe'](_0x28d6de=>{const _0x2789d1=_0x40cd01,_0x243bb0=_0x28d6de[_0x2789d1(0x2e8)](),_0x4f2fa1=this[_0x2789d1(0x198)][_0x2789d1(0x20b)](_0x243bb0);_0x4f2fa1&&(_0x4f2fa1[_0x2789d1(0x239)](),this[_0x2789d1(0x198)]['delete'](_0x243bb0));});}async[_0x3b9665(0x172)](_0x12e8b3){const _0x248a4f=_0x3b9665,_0x43288d=await this['_collabSessionService'][_0x248a4f(0x2bf)](_0x12e8b3),_0x2e8874=this[_0x248a4f(0x1a3)][_0x248a4f(0x270)](Be,_0x12e8b3,_0x43288d);return _0x2e8874['init'](),_0x2e8874;}async[_0x3b9665(0x2a0)](_0x5c7d61){const _0x346c8f=_0x3b9665,_0x1f0d89=await this[_0x346c8f(0x27a)][_0x346c8f(0x2bf)](_0x5c7d61),_0x17cc3a=this[_0x346c8f(0x1a3)]['createInstance'](xe,_0x5c7d61,_0x1f0d89);return _0x17cc3a[_0x346c8f(0x1ca)](),_0x17cc3a;}};H=Wi([Ce(0x0,_0x4aa59b),Ce(0x1,_0x122dae(_0x318e52)),Ce(0x2,_0x122dae(_0x15730c))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x455d30,_0x220908){const _0x311573=_0x3b9665;let {radius:_0x350e88,width:_0x3e858b,height:_0x3337f8}=_0x220908;_0x350e88=_0x350e88!=null?_0x350e88:0x0,_0x3e858b=_0x3e858b!=null?_0x3e858b:0x1e,_0x3337f8=_0x3337f8!=null?_0x3337f8:0x1e;let _0x4ec569=0x0,_0x4781da=0x0,_0x124492=0x0;_0x4ec569=_0x4781da=_0x124492=Math[_0x311573(0x1a6)](_0x350e88,_0x3e858b/0x2,_0x3337f8/0x2),_0x455d30[_0x311573(0x306)](),_0x455d30[_0x311573(0x333)](_0x4ec569,0x0),_0x455d30[_0x311573(0x310)](_0x3e858b-_0x4781da,0x0),_0x455d30['arc'](_0x3e858b-_0x4781da,_0x4781da,_0x4781da,Math['PI']*0x3/0x2,0x0,!0x1),_0x455d30['lineTo'](_0x3e858b,_0x3337f8-_0x124492),_0x455d30[_0x311573(0x390)](_0x3e858b-_0x124492,_0x3337f8-_0x124492,_0x124492,0x0,Math['PI']/0x2,!0x1),_0x455d30[_0x311573(0x310)](0x0,_0x3337f8),_0x455d30[_0x311573(0x310)](0x0,_0x4ec569),_0x455d30[_0x311573(0x390)](_0x4ec569,_0x4ec569,_0x4ec569,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x455d30['closePath'](),_0x220908['fill']&&(_0x455d30[_0x311573(0x181)](),_0x455d30['fillStyle']=_0x220908[_0x311573(0x3ab)],_0x220908['fillRule']==='evenodd'?_0x455d30['fill'](_0x311573(0x256)):_0x455d30[_0x311573(0x3ab)](),_0x455d30['restore']());}class ve extends _0x52887b{constructor(_0x3dff3a,_0x136b7d){const _0x441d3a=_0x3b9665;super(_0x3dff3a,_0x136b7d),_(this,_0x441d3a(0x1c8)),_(this,_0x441d3a(0x1f6)),(this['color']=_0x136b7d==null?void 0x0:_0x136b7d[_0x441d3a(0x1c8)],this[_0x441d3a(0x1f6)]=_0x136b7d==null?void 0x0:_0x136b7d[_0x441d3a(0x1f6)]);}static[_0x3b9665(0x2cb)](_0x46698c,_0x43668d){const _0x520ed4=_0x3b9665,{text:_0x14f326,color:_0x1ae8ca}=_0x43668d;_0x46698c[_0x520ed4(0x181)](),_0x46698c[_0x520ed4(0x3af)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x382f59=_0x46698c[_0x520ed4(0x241)](_0x14f326)['width'],_0x2b9c7e=Math[_0x520ed4(0x1a6)](_0x382f59+0x2*Re,at);ji(_0x46698c,{'height':Q,'radius':0x4,'width':_0x2b9c7e,'fill':_0x1ae8ca}),_0x46698c[_0x520ed4(0x278)]='#FFF';const _0x2e89fd=Re,_0x5e4af4=Q-Vi,_0x24171b=at-0x2*Re;if(_0x382f59>_0x24171b){let _0x5628e4='',_0x149a90=0x0;for(const _0x403f83 of _0x14f326){const _0x4e40e1=_0x46698c['measureText'](_0x403f83)[_0x520ed4(0x37b)];if(_0x149a90+_0x4e40e1<=_0x24171b-_0x46698c[_0x520ed4(0x241)](_0x520ed4(0x2b3))['width'])_0x5628e4+=_0x403f83,_0x149a90+=_0x4e40e1;else{_0x5628e4+=_0x520ed4(0x2b3);break;}}_0x46698c[_0x520ed4(0x1bc)](_0x5628e4,_0x2e89fd,_0x5e4af4);}else _0x46698c[_0x520ed4(0x1bc)](_0x14f326,_0x2e89fd,_0x5e4af4);_0x46698c[_0x520ed4(0x255)]();}[_0x3b9665(0x1fa)](_0x26887c){const _0x2b0789=_0x3b9665;ve[_0x2b0789(0x2cb)](_0x26887c,this);}}function _0xbb03(){const _0x311cd4=['/universer-api/frontend/logs','subscribe','getCollabCursors$','stack','REDEMPTION_USER_REDEEM_TIMES_EXCEED','sessionStatus$','blue.400','debug','color','roomMembers','init','createSocket','length','_context','getSheetBySheetId','/universer-api/license/formula/limit/start','_handleJoinEvent','303451tuyoxd','registerRefRange','url(#off-line-icon_clip0_910_343)','_config','clipPath','colorChannel1','_cursor','INTERNAL_ERROR','status$','assignAColorForMemberID','_registerDependencies','InsertRangeMoveRightCommandId','onPointerMove$','_checkAndWaitForCalculationPermission','_hover','random','_createSocketURL','PENDING','collab-text-anchor-','PAYMENT_CHANNEL_NOT_SUPPORT','reconnect','xlink:href','LOGIN_FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','off-line-icon','getSheetId','_hovered','getTypeOfUnitAdded$','registerRenderModule','ENTITLE_REPORT_LIMIT_EXCEED','_assignedColors','SNAPSHOT_INVALID_SNAPSHOT','1em','ENTITLE_USE_COUPON_NOT_1ST_TRADE','hovered','YUUMI_UNABLE_LOAD_URL','_startCalculationLimit','text','ENTITLE_CAN_NOT_BUY_LOWER_OTP','COMPLETION_FINISHED','bottom','_draw','CURRENT_STATUS_CANNOT_OPERATE','registerComponent','ENTITLE_COUPON_EXPIRED','_cursorShapes','unhandledrejection','toRgbString','_colorAssignService','_notificationService','_beforeCloseService','type','_range','INVITE_CODE_ALREADY_BOUND','enableLocalCache','getVpScrollXYInfoByPosToVp','popstate','130284sJCxwa','get','_docSkeletonManagerService','findNodePositionByCharIndex','filename','_selfUnitIDs','OnLineIcon','_setupBeforeClosingHandler','div','error','exhaustSavingTask','_uiPartsService','setParam','_handleHover','collaboration.offline-data-not-saved','disposeWithMe','executeCommand','collaboration.closeRoom','string','_colorIndex','SOCKET_FAILED_RETRY','ticket','session.collaboration-timeout','mask','currentUsage','PY_RUNTIME_SCRIPT_ERROR','data','_initEvent','RemoveColCommandId','set','permission.title','labelPosition','_docStateChangeManagerService','catch','reason','none','_memberService','sessionTicket','idSuffix','startsWith','_handleEvent','_renderManagerService','collaboration.single-unit.warning','doc.mutation.rich-text-editing','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initResize','OTHER_CLIENTS_EDITING','dispose','453850LWgQeH','trim','_transformService','has','UNRECOGNIZED','_disabled','CONFLICT','measureText','unitID','use','post','EMAIL_VERIFY_CODE_MISMATCH','now','_themeService','transformMutation','REDEMPTION_INVALID_CODE','addClipboardHook','addHandlerCallback','url(#on-line-icon_clip0_910_349)','_heartbeatTimer','disposeUnit','_pollingInterval','setInterval','urlChange$','functionsExecutedState','collab-rect-range-','collabStatus.fetchMiss','restore','evenodd','session.connection-failed','_collaborationUIEventService','_backgroundColor','getMemberID','INVALID_INVITE_CODE','setItem','body','CONNECTOR_DATA_TOO_LARGE','_initUserListener','executionId','onStarting','resize','_cachedData','split','ALREADY_EXISTS','getAncestorScale','_handleHeartbeatEvent','loadUnit','PERMISSION_DENIED','code','START_CALCULATION','rgba(255,\x20255,\x20255,\x200.01)','values','_uploadLog','_collabCursorController','createInstance','getCollabEntity$','APPLY_REJECT','setAlpha','displayName','_setupSubUnitSync','_clearOtherTimers','_messageService','fillStyle','_init','_collabSessionService','getCurrentUnitForType','collab-client.tooltip.reconnect','DATA_SOURCE_TOO_LARGE','getConfig','addObject','_onCursorDelete','dirtyRanges','search','editingUnit','YUUMI_ASYNCIO_CANCELLED','m1Prime','source','hide','_onRefRangeChange','SUCCESS','_currentUsage','WECHAT_HAS_BEEN_BOUND','top','next','mutations','getActiveRange','_configService','_getSheetObject','NOT_FOUND','deepClone','_scene','_toggleOffline','forEach','endRow','_dataLoaderService','addEventListener','runOnServer','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','http://www.w3.org/2000/svg','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','USER_IS_ANONYMOUS','_name','_startDocCollabCursor','_syncEditingCollabCursorService','_refRangeService','yellow.400','subscribeEvent','CLOSE_ROOM','size','removeParam','collabStatus.notCollab','flatMap','_updateURLWithCurrentState','push','engine','_drawRectRange','startColumn','_monkeyPatchLogService','_entityInit$','_removeClearOtherTimer','show','...','_scheduleClearOtherTimer','_localeService','_urlService','YUUMI_AI_RUN_FAILED','stageInfo','unitId','colno','getFocusedUnit','children','_ensureSubject','onMouseMove','requireSession','_eventUnsubscribe','TEXT','YUUMI_RATE_OVER_LIMIT','getColorFromTheme','on-line-icon_clip0_910_349','_textBubble','_removeCollabCursors','_cursors','1457530ZEAFoK','transform','add','drawWith','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitOnClients','href','cursorInfo$','_doCreateSocket','startRow','getMember','INVALID_ARGUMENT','MUTATION','_lastPointer','INVITE_CODE_HAS_BEEN_UES','unload','unsubscribe','purple.300','getMergeData','defs','releaseFormulaLimitUrl','SUBMIT_CHANGESET_TIMEOUT','YUUMI_ALL_TABLES_IS_INVALID','application/json','_updateSubUnitFromURLParams','ranges','attrs','bind','startFormulaLimitUrl','getCurrentRevOfUnit','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformByState','getUnitId','[Unhandled\x20Rejection]:\x20','APPLY_NON_SEQUENTIAL_REVISION','transformIMECache','_transformPreviousActiveRange','REDEMPTION_CODE_INACTIVE','column','_anchorDot','_send','clearInterval','_toggleOnline','_sheetSkeletonManagerService','_docTransformSelectionsService','YUUMI_CONNECTOR_URL_NOT_FOUND','Failed','on-line-icon','red.300','MOBILE_HAS_BEEN_BOUND','_drawAnchor','pluginName','_localStorageService','_getSessionTicket','syncEditingCollabCursor','addObjects','skeleton','undoState','stringify','_instanceService','REDEMPTION_USER_NOT_ELIGIBLE','_labelPosition','beginPath','UNIVER_SHEET','assign','NOT_COLLAB','toString','getUnitStatus$','ERROR_AGAIN','RECT','white','_drawTextRange','lineTo','getDocRanges','OTHER_CLIENT_EDITING','replace','APPLY_REVISION_CONFILICT','eventID','168dILNKw','searchParams','APPLY_DUPLICATED','cursorInfo','current','_memberID','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_session','_setFormulaLimitStatus','AWAITING_WITH_PENDING','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','_hideTimer','LICENSE_DISTRO_REJECTED','_getAnchorBounding','_collaborationSessionService','saveOfflineData','collabCursorState$','newValue','_roomMembers$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','history','_imageIoService','tag','ENTITLE_CHAT_LIMIT_EXCEED','_docSyncEditingCollabCursorService','formula.calculation.started','event$','univer-flex\x20univer-items-center','setUndoRedoMutationParamsCache','moveTo','_getFormulaLimitStatus','_checkCalculationAvailable','getUndoRedoMutationParamsCache','parseInt','getItem','ENTITLE_COUPON_USED_UP','USER_NOT_FOUND','_shapes','imageSourceType','_showGuardMessage','location','with','[CollaborationDataLoaderController]','[LogService\x20Error]:\x20','getformulaLimitStatusUrl','_initStatusComponent','getRangePointData','collab-text-range-','LICENSE_IMPORT_SIZE_EXCEEDED','MoveRangeCommandId','_docClipboardService','getCurrent','_registerRenderDependencies','limitInfo','removeEventListener','setStateCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUniverSheetInstance','height','Unknown\x20user','_unitStatus','getValue','m2Prime','activeSheet$','CHANGESET_REVISION_CONFILICT','from','77676qIxRId','svg','range','_scheduleHeartbeat','collabStatus.synced','302778VNnVyu','_scheduleSaving','registerBeforeClose','onCommandExecuted','_status$','_applyCommand','M0\x200H16V16H0z','selection','endColumn','getParam','_color','getSkeleton','LICENSE_MAX_UNITS_EXCEEDED','FromArray','onPointerLeave$','complete','getOwnPropertyDescriptor','unit','makeDirty','_updateCollabCursors','_refreshCollabCursors','name','onPointerEnter$','_lastResponseTimestamp','path','_collabCursorState$','_revisionService','_online','subunit','ENSURE_SNAPSHOT_EXECUTION','width','stage','NO_OTHER_CLIENTS_EDITING','_univerInstanceService','memberID','round','getCellPositionByOffset','UNDEFINED','sheetID','actions','MOBILE_VERIFY_CODE_MISMATCH','isEditing','_initCommandExecutedListener','VIEW_MAIN','_transformHistoryAndStateStack','INVITE_CODE_REQUIRED','_handleLeaveEvent','REDEMPTION_CODE_FULLY_REDEEMED','_render','HEADER_MENU','currentColor','arc','dispose$','LICENSE_EXPORT_SIZE_EXCEEDED','YUUMI_SUBSCRIPTION_NOT_FOUND','_cursorInfo$','subUnitId','getTypeOfUnitDisposed$','0\x200\x2016\x2016','asObservable','storage','_initEntityListener','_anchor','updateOfflineData','REDEMPTION_CODE_NOT_STARTED','_hasFormulaInDirtyRanges','Error','getViewport','roomMembers$','_id','key','_taskIds','323541rfjhSz','ENTITLE_NEED_BILLING_ADDRESS','enableFrontendLog','onRendered','_clearPolling','transformStateCache','fill','_getScale','triggerDblclick','_releaseCalculationLimit','font','replaceDocRanges','isArray','YUUMI_NO_CUBOID_FOR_QUESTION','setActiveRange','ONLINE','green.600','RemoveRowCommandId','off-line-icon_clip0_910_343','max','_document','runId','UNIVER_DOC','redoState','LOGIN_TOKEN_PROCESSING_FAILED','_docTransformIMECacheService','_startSheetCollabCursor','APPLY_PERMISSION_DENIED','formula.calculation.unable','_initStatusListener','whenReady','permission.content','_updateLocalCursor','_maxFormulaLimit','message','saveTaskMap','_commandService','_getSaveTimeout','transformMutationsWithChangeset','_getMergeRange','_saveCache','save','USER_NOT_INVITED_CODE','backgroundColor','_initWindowErrorListener','shift','_saveTaskMap','SOCKET_FAILED','transformSelections','then','formula.calculation.waiting','_onCursorUpdate','304OKDrkX','_docTransformStateCacheService','_initDependencies','textRanges','replaceState','_httpService','0\x200\x2017\x2016','pipe','delete','transformRemoteChangeset','url(#$1','Warning','_entities','AWAITING','currentTheme$','getRenderById','DeleteRangeMoveUpCommandId','_logService','_docSkeleton','translate(.97)','substring','collabStatus.conflict','_collaborationController','_injector','InsertRowCommandId','black','min','entityInit$','unshift','ENTITLE_INVALID_COUPON_CODE','session.will-retry','_initUnhandledRejectionListener','TOO_MANY_REQUESTS','_localCacheService','find','clearTimeout','setTimeout','docStateChange$','map','getOffsetConfig','focused$','USERS_LEAVE','YUUMI_URL_COL_OUT_OF_RANGE','SNAPSHOT_HAS_BEEN_REMOVED','params','setShapeProps','defineProperty','invokeId','fillText','origin','ENTITLE_DUP_SUBSCRIPTION','UPDATE_CURSOR'];_0xbb03=function(){return _0x311cd4;};return _0xbb03();}const De=_0x3b9665(0x1e3),Xi=_0x3b9665(0x345),Gi=_0x3b9665(0x253),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3b9665(0x26c);class ct{constructor(_0x5f2235,_0x2b2f6a,_0x37ea5a,_0x14ec3d){const _0x209a5f=_0x3b9665;_(this,_0x209a5f(0x33b),[]),_(this,_0x209a5f(0x39b),null),_(this,_0x209a5f(0x2c5),null),_(this,'_anchorDot',null),_(this,_0x209a5f(0x321),null),_(this,_0x209a5f(0x2c0),null),(this[_0x209a5f(0x1d7)]=_0x5f2235,this['_scene']=_0x2b2f6a,this[_0x209a5f(0x19e)]=_0x37ea5a,this[_0x209a5f(0x16c)]=_0x14ec3d,this[_0x209a5f(0x38d)]());}set[_0x3b9665(0x1df)](_0x261db3){const _0x3f2c36=_0x3b9665;_0x261db3?(this[_0x3f2c36(0x2ef)]&&this[_0x3f2c36(0x2ef)][_0x3f2c36(0x287)](),this[_0x3f2c36(0x2c5)]&&this['_textBubble'][_0x3f2c36(0x2b2)]()):(this[_0x3f2c36(0x2ef)]&&this['_anchorDot']['show'](),this[_0x3f2c36(0x2c5)]&&this[_0x3f2c36(0x2c5)][_0x3f2c36(0x287)]());}[_0x3b9665(0x239)](){const _0x1e64ab=_0x3b9665;for(const _0x5936e1 of this[_0x1e64ab(0x33b)])_0x5936e1['dispose']();this['_textBubble']&&this[_0x1e64ab(0x2c5)][_0x1e64ab(0x239)](),this[_0x1e64ab(0x2ef)]&&this[_0x1e64ab(0x2ef)][_0x1e64ab(0x239)](),this[_0x1e64ab(0x39b)]&&this[_0x1e64ab(0x39b)][_0x1e64ab(0x239)](),this[_0x1e64ab(0x2c0)]&&this['_eventUnsubscribe']();}[_0x3b9665(0x38d)](){const _0x47a66a=_0x3b9665;var _0x583c00;const {_docSkeleton:_0x55ebe7,_document:_0x18095d}=this,{color:_0x18534d,name:_0x222303,ranges:_0x7c5f6f}=this[_0x47a66a(0x1d7)],_0x4b594a=_0x18095d[_0x47a66a(0x1b3)](),{docsLeft:_0x35083c,docsTop:_0x4088ca}=_0x4b594a,_0x6893c5=new _0x54828b(_0x4b594a,_0x55ebe7);for(const {startOffset:_0x17a1d2,endOffset:_0x50a46c,rangeType:_0x5b13d9,segmentId:_0x53b0e9,segmentPage:_0x5d7bbc,collapsed:_0x367f7b,isActive:_0x4aa791}of _0x7c5f6f){const _0x4ad2f4=_0x55ebe7['findNodePositionByCharIndex'](_0x17a1d2,!0x0,_0x53b0e9,_0x5d7bbc);let _0x12f62e=_0x55ebe7[_0x47a66a(0x20d)](_0x50a46c,!0x0,_0x53b0e9,_0x5d7bbc);if(_0x12f62e==null&&(_0x12f62e=_0x55ebe7[_0x47a66a(0x20d)](_0x50a46c-0x1,!0x1,_0x53b0e9,_0x5d7bbc)),_0x4aa791){const {contentBoxPointGroup:_0x46bfb4}=_0x6893c5[_0x47a66a(0x344)](_0x12f62e,_0x12f62e);if(_0x46bfb4[_0x47a66a(0x1cc)]===0x0)continue;this[_0x47a66a(0x2fa)](_0x18534d,_0x46bfb4,_0x35083c,_0x4088ca,_0x222303),this[_0x47a66a(0x2c0)]=this[_0x47a66a(0x217)]();}if(_0x4ad2f4&&_0x12f62e){if(_0x5b13d9===_0x53f6b0['RECT']){const _0x15d53d=new _0x105996(_0x4b594a,_0x55ebe7),{pointGroup:_0x58631}=(_0x583c00=_0x15d53d['getRangePointData'](_0x4ad2f4,_0x12f62e))!=null?_0x583c00:{};if(_0x58631==null||_0x58631[_0x47a66a(0x1cc)]===0x0)continue;this['_drawRectRange'](_0x18534d,_0x58631,_0x35083c,_0x4088ca);}else{if(!_0x367f7b){const {borderBoxPointGroup:_0x171887}=_0x6893c5[_0x47a66a(0x344)](_0x4ad2f4,_0x12f62e);if(_0x171887[_0x47a66a(0x1cc)]===0x0)continue;this[_0x47a66a(0x30f)](_0x18534d,_0x171887,_0x35083c,_0x4088ca);}}}}}[_0x3b9665(0x2fa)](_0x557fea,_0x2b3ae9,_0x4c5c89,_0x58c920,_0x4eb754){const _0x44df1c=_0x3b9665,_0x89242=this[_0x44df1c(0x323)](_0x2b3ae9),{left:_0x48eeee,top:_0x59d087,height:_0x2985f4}=_0x89242,_0x5bcd4a=this[_0x44df1c(0x3ac)](),_0x3fc580=zi/_0x5bcd4a,_0x5b81dc=new _0x5b4046(De+_0x12b258(z),{'left':_0x48eeee+_0x4c5c89-_0x3fc580,'top':_0x59d087+_0x58c920,'height':_0x2985f4,'width':Ki,'fill':_0x557fea||_0x14e9e2(_0x50d816['black'],0x0),'strokeWidth':_0x3fc580,'stroke':Ji,'evented':!0x0});this[_0x44df1c(0x39b)]=_0x5b81dc,this[_0x44df1c(0x294)]['addObject'](_0x5b81dc,_0x187154);const _0x32a230=new _0x5b4046(De+_0x12b258(z),{'left':_0x48eeee+_0x4c5c89-_0x3fc580,'top':_0x59d087+_0x58c920-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x557fea||_0x14e9e2(_0x50d816[_0x44df1c(0x1a5)],0x0),'strokeWidth':0x0,'stroke':_0x557fea||_0x14e9e2(_0x50d816[_0x44df1c(0x1a5)],0x0),'evented':!0x1});this['_anchorDot']=_0x32a230,this[_0x44df1c(0x294)][_0x44df1c(0x27f)](_0x32a230,_0x187154);const _0x21eff6=new ve(De+_0x12b258(z),{'left':_0x48eeee+_0x4c5c89-_0x3fc580,'top':_0x59d087+_0x58c920-Q,'text':_0x4eb754,'color':_0x557fea});this[_0x44df1c(0x2c5)]=_0x21eff6,this['_scene'][_0x44df1c(0x27f)](_0x21eff6,_0x187154),this['_hover']=!0x1;}[_0x3b9665(0x217)](){const _0x613a6f=_0x3b9665,_0x890431=this['_anchor'][_0x613a6f(0x373)][_0x613a6f(0x2a4)](()=>{const _0x1b7c15=_0x613a6f;this[_0x1b7c15(0x1df)]=!0x0;}),_0x13fe09=this[_0x613a6f(0x39b)]['onPointerLeave$'][_0x613a6f(0x2a4)](()=>{const _0x1db5e9=_0x613a6f;this[_0x1db5e9(0x321)]&&clearTimeout(this[_0x1db5e9(0x321)]),this['_hideTimer']=setTimeout(()=>{const _0x8ba620=_0x1db5e9;this[_0x8ba620(0x1df)]=!0x1;},0x7d0);});return()=>{const _0x18625a=_0x613a6f;_0x890431['unsubscribe'](),_0x13fe09[_0x18625a(0x2d8)]();};}[_0x3b9665(0x30f)](_0x20d5bb,_0x376467,_0x4635d9,_0x5618bb){const _0x4c1abd=_0x3b9665,_0x3e14a3=new _0x469645(_0x20d5bb)['setAlpha'](0.2)[_0x4c1abd(0x200)](),_0x276800=new _0x58d215(Xi+_0x12b258(z),{'pointsGroup':_0x376467,'fill':_0x3e14a3||_0x14e9e2(_0x50d816['black'],0.2),'left':_0x4635d9,'top':_0x5618bb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c1abd(0x33b)][_0x4c1abd(0x2ab)](_0x276800),this[_0x4c1abd(0x294)][_0x4c1abd(0x27f)](_0x276800,_0x187154);}[_0x3b9665(0x2ad)](_0x5a746a,_0x47c9c8,_0x59af80,_0x3ec17a){const _0x2f7c55=_0x3b9665,_0x19f48f=new _0x469645(_0x5a746a)[_0x2f7c55(0x273)](0.2)[_0x2f7c55(0x200)](),_0x3e656f=new _0x58d215(Gi+_0x12b258(z),{'pointsGroup':_0x47c9c8,'fill':_0x19f48f||_0x14e9e2(_0x50d816[_0x2f7c55(0x1a5)],0.2),'left':_0x59af80,'top':_0x3ec17a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f7c55(0x33b)][_0x2f7c55(0x2ab)](_0x3e656f),this[_0x2f7c55(0x294)][_0x2f7c55(0x27f)](_0x3e656f,_0x187154);}[_0x3b9665(0x323)](_0x110528){const _0x49d5ec=_0x110528[0x0],_0x2d3dd0=_0x49d5ec[0x0],_0x1df8d3=_0x49d5ec[0x2],{x:_0x384035,y:_0x2f83ab}=_0x2d3dd0,{x:_0x5a450a,y:_0x2bee9a}=_0x1df8d3;return{'left':_0x384035,'top':_0x2f83ab,'width':_0x5a450a-_0x384035,'height':_0x2bee9a-_0x2f83ab};}[_0x3b9665(0x3ac)](){const _0x55c03b=_0x3b9665,{scaleX:_0x2489e4,scaleY:_0x41f326}=this[_0x55c03b(0x294)]['getAncestorScale']();return Math[_0x55c03b(0x16b)](_0x2489e4,_0x41f326);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3170ce,_0x2e52e9,_0x3576c2,_0xdf4b40)=>{for(var _0x32fc=_0xdf4b40>0x1?void 0x0:_0xdf4b40?Zi(_0x2e52e9,_0x3576c2):_0x2e52e9,_0x44ce66=_0x3170ce['length']-0x1,_0x799e6;_0x44ce66>=0x0;_0x44ce66--)(_0x799e6=_0x3170ce[_0x44ce66])&&(_0x32fc=_0x799e6(_0x32fc)||_0x32fc);return _0x32fc;},ie=(_0x28b3f9,_0x56d7ce)=>(_0x2763e6,_0x2ec333)=>_0x56d7ce(_0x2763e6,_0x2ec333,_0x28b3f9);let Fe=class extends _0x1b547f{constructor(_0x3cdb12,_0x584ab7,_0x4b0b8f,_0x317ca2,_0xc4eded){const _0x125c17=_0x3b9665;super(),_(this,_0x125c17(0x1fe),[]),_(this,'_cursors',[]),(this['_context']=_0x3cdb12,this[_0x125c17(0x20c)]=_0x584ab7,this['_collabCursorController']=_0x4b0b8f,this[_0x125c17(0x17c)]=_0x317ca2,this[_0x125c17(0x247)]=_0xc4eded,this[_0x125c17(0x279)]());}[_0x3b9665(0x279)](){const _0x252f60=_0x3b9665,_0x8c1689=this[_0x252f60(0x1cd)]['unitId'],_0x28a313=this['_docSkeletonManagerService'];this[_0x252f60(0x219)](_0x302fb1([this['_collabCursorController']['getCollabCursors$'](_0x8c1689),this[_0x252f60(0x247)][_0x252f60(0x19a)]])[_0x252f60(0x193)](_0xbfc3eb(([_0xb26d17,_0x44671a])=>({'skeleton':_0x28a313[_0x252f60(0x368)](),'cursors':[..._0xb26d17[_0x252f60(0x26d)]()][_0x252f60(0x2a9)](_0x1cd6eb=>({..._0x1cd6eb,'color':this[_0x252f60(0x247)][_0x252f60(0x2c3)](_0x1cd6eb[_0x252f60(0x1c8)])}))})))['subscribe'](_0x3b191e=>{const _0xafdaf7=_0x252f60;if(this[_0xafdaf7(0x2c6)](),_0x3b191e){const {skeleton:_0x16ab0c,cursors:_0x191261}=_0x3b191e;this[_0xafdaf7(0x370)](_0x16ab0c,_0x191261);}})),this[_0x252f60(0x237)](),this[_0x252f60(0x387)]();}['_updateCollabCursors'](_0x56fb6b,_0x16007c){const _0x47109f=_0x3b9665,{scene:_0x4e6bc2,mainComponent:_0x36e566}=this[_0x47109f(0x1cd)],_0x9376e2=_0x16007c[_0x47109f(0x1b2)](_0x34c320=>new ct(_0x34c320,_0x4e6bc2,_0x56fb6b,_0x36e566));this[_0x47109f(0x1fe)]=_0x9376e2,this[_0x47109f(0x2c7)]=_0x16007c;}[_0x3b9665(0x371)](){const _0x48e895=_0x3b9665;this['_removeCollabCursors']();const {scene:_0xb27f3e,mainComponent:_0x43a165}=this[_0x48e895(0x1cd)],_0x5804df=this['_docSkeletonManagerService'][_0x48e895(0x368)](),_0x290c6a=this[_0x48e895(0x2c7)]['map'](_0x3ef268=>new ct(_0x3ef268,_0xb27f3e,_0x5804df,_0x43a165));this[_0x48e895(0x1fe)]=_0x290c6a;}[_0x3b9665(0x2c6)](){const _0x2329f4=_0x3b9665;this['_cursorShapes']['forEach'](_0x8ecd4c=>_0x8ecd4c[_0x2329f4(0x239)]()),this[_0x2329f4(0x1fe)]=[];}[_0x3b9665(0x387)](){const _0x367a2d=_0x3b9665,_0x1d3da7=[_0xc56c79['id']];this[_0x367a2d(0x219)](this[_0x367a2d(0x17c)][_0x367a2d(0x360)](_0x16db4d=>{const _0x452611=_0x367a2d;_0x1d3da7['includes'](_0x16db4d['id'])&&_0x16db4d[_0x452611(0x1b8)]['unitId']===this['_context'][_0x452611(0x2b9)]&&this[_0x452611(0x371)]();}));}['_initResize'](){const _0x2a1315=_0x3b9665;this[_0x2a1315(0x219)](_0x327069(this[_0x2a1315(0x1cd)][_0x2a1315(0x2ac)]['onTransformChange$'])[_0x2a1315(0x193)](_0x441c60(_0x515bb7=>_0x515bb7[_0x2a1315(0x204)]===_0x5e3dcf[_0x2a1315(0x262)]),_0x20ab03(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x122dae(_0xdd5720)),ie(0x2,_0x122dae(H)),ie(0x3,_0x42e7dd),ie(0x4,_0x122dae(_0x56241c))],Fe);const qi=0x1,en=1.5;class tn extends _0x52887b{constructor(_0x324257,_0x33cdc9){const _0x43effd=_0x3b9665;super(_0x324257,_0x33cdc9),_(this,_0x43effd(0x367)),_(this,_0x43effd(0x1eb),!0x1),_(this,_0x43effd(0x205)),_(this,'_name',''),_(this,_0x43effd(0x305),_0x43effd(0x28c)),_(this,_0x43effd(0x259)),(_0x33cdc9&&this[_0x43effd(0x1b9)](_0x33cdc9),this[_0x43effd(0x373)][_0x43effd(0x2a4)](()=>this[_0x43effd(0x1b9)]({'hovered':!0x0})),this[_0x43effd(0x36b)][_0x43effd(0x2a4)](()=>this[_0x43effd(0x1b9)]({'hovered':!0x1})));}['setShapeProps'](_0x22a2c6){const _0x2372d5=_0x3b9665;var _0xec284d,_0x5095b8,_0x570e41,_0x23d7aa,_0x3177a7,_0x580577;this[_0x2372d5(0x367)]=(_0xec284d=_0x22a2c6['color'])!=null?_0xec284d:this['_color'],this[_0x2372d5(0x1eb)]=(_0x5095b8=_0x22a2c6[_0x2372d5(0x1f3)])!=null?_0x5095b8:this[_0x2372d5(0x1eb)],this['_range']=(_0x570e41=_0x22a2c6[_0x2372d5(0x35a)])!=null?_0x570e41:this['_range'],this[_0x2372d5(0x29f)]=(_0x23d7aa=_0x22a2c6['name'])!=null?_0x23d7aa:this[_0x2372d5(0x29f)],this[_0x2372d5(0x305)]=(_0x3177a7=_0x22a2c6[_0x2372d5(0x229)])!=null?_0x3177a7:this['_labelPosition'],this[_0x2372d5(0x259)]=(_0x580577=_0x22a2c6[_0x2372d5(0x183)])!=null?_0x580577:this[_0x2372d5(0x259)],this[_0x2372d5(0x2e7)]({'width':_0x22a2c6[_0x2372d5(0x37b)],'height':_0x22a2c6[_0x2372d5(0x350)]});}['onMouseMove'](_0x230cc6){const _0x5cca20=_0x3b9665,{row:_0xc12058,column:_0x1472ed}=_0x230cc6;if(_0xc12058>=this[_0x5cca20(0x205)][_0x5cca20(0x2d1)]&&_0xc12058<=this[_0x5cca20(0x205)][_0x5cca20(0x297)]&&_0x1472ed>=this[_0x5cca20(0x205)][_0x5cca20(0x2ae)]&&_0x1472ed<=this[_0x5cca20(0x205)]['endColumn']){this[_0x5cca20(0x1b9)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3b9665(0x3ad)](_0x193007){return!0x1;}['_draw'](_0x3f6121){const _0x3d4c57=_0x3b9665;_0x5b4046[_0x3d4c57(0x2cb)](_0x3f6121,{'width':this[_0x3d4c57(0x37b)],'height':this[_0x3d4c57(0x350)],'strokeWidth':en,'stroke':this[_0x3d4c57(0x367)],'evented':!0x1,'fill':this[_0x3d4c57(0x259)]}),this[_0x3d4c57(0x1eb)]&&(_0x3f6121[_0x3d4c57(0x181)](),_0x3f6121[_0x3d4c57(0x2c9)](0x1,0x0,0x0,0x1,this[_0x3d4c57(0x37b)],this[_0x3d4c57(0x305)]===_0x3d4c57(0x1f9)?0x0:-Q),ve[_0x3d4c57(0x2cb)](_0x3f6121,{'text':this[_0x3d4c57(0x29f)],'color':this[_0x3d4c57(0x367)]}),_0x3f6121[_0x3d4c57(0x255)]());}}var sn=Object[_0x3b9665(0x36d)],nn=(_0x13d077,_0x5393fe,_0x1d397d,_0x20c8a1)=>{const _0x46638b=_0x3b9665;for(var _0x352cb1=_0x20c8a1>0x1?void 0x0:_0x20c8a1?sn(_0x5393fe,_0x1d397d):_0x5393fe,_0x3d2657=_0x13d077[_0x46638b(0x1cc)]-0x1,_0x1d1019;_0x3d2657>=0x0;_0x3d2657--)(_0x1d1019=_0x13d077[_0x3d2657])&&(_0x352cb1=_0x1d1019(_0x352cb1)||_0x352cb1);return _0x352cb1;},be=(_0x319b7e,_0x3a43f9)=>(_0x3d6b14,_0x5ac211)=>_0x3a43f9(_0x3d6b14,_0x5ac211,_0x319b7e);const rn=0x1389;let ke=class extends _0x1b547f{constructor(_0xaf6f1,_0x47635b,_0x46a217,_0x12dfb2){const _0x334c27=_0x3b9665;super(),_(this,_0x334c27(0x2c7),new Set()),_(this,_0x334c27(0x2d5),null),(this[_0x334c27(0x1cd)]=_0xaf6f1,this['_sheetSkeletonManagerService']=_0x47635b,this[_0x334c27(0x26f)]=_0x46a217,this['_themeService']=_0x12dfb2,this[_0x334c27(0x279)]());}['_init'](){const _0x52d951=_0x3b9665;this[_0x52d951(0x2f3)]['currentSkeleton$'][_0x52d951(0x193)](_0x247438(this['dispose$']),_0x1fb74c(_0x3e37db=>{const _0xa621f1=_0x52d951;if(_0x3e37db){const _0x2c8ab4=_0x3e37db['sheetId'];return _0x302fb1(this[_0xa621f1(0x26f)][_0xa621f1(0x1c2)](this[_0xa621f1(0x1cd)]['unitId']),this[_0xa621f1(0x247)][_0xa621f1(0x19a)])['pipe'](_0xbfc3eb(([_0x5252d0,_0x13f66c])=>{const _0x30e0ca=_0xa621f1,_0x5c5667=new Map();return _0x5252d0[_0x30e0ca(0x296)]((_0x6a6845,_0x599159)=>{const _0xfa540c=_0x30e0ca;if(_0x6a6845[_0xfa540c(0x383)]===_0x2c8ab4){const _0x2a5dc8={..._0x6a6845};_0x2a5dc8['color']=this[_0xfa540c(0x247)][_0xfa540c(0x2c3)](_0x6a6845[_0xfa540c(0x1c8)]),_0x5c5667['set'](_0x599159,_0x2a5dc8);}}),{'skeleton':_0x3e37db,'cursors':_0x5c5667};}));}return _0x211035({'skeleton':null,'cursors':new Map()});}))[_0x52d951(0x1c1)](({skeleton:_0x44a9a9,cursors:_0x42a3c5})=>{const _0x4f96ef=_0x52d951;this[_0x4f96ef(0x2c6)](),_0x44a9a9&&this[_0x4f96ef(0x370)](_0x44a9a9,_0x42a3c5);}),this[_0x52d951(0x2f3)]['currentSkeleton$']['subscribe'](_0x3abea8=>{const _0x5c29fd=_0x52d951;if(_0x3abea8==null)return;const {skeleton:_0x2f4bfd}=_0x3abea8,{scene:_0x82e1a4}=this[_0x5c29fd(0x1cd)];_0x82e1a4[_0x5c29fd(0x1dd)]['subscribeEvent'](_0x4e9266(_0x7380b1=>{const _0xde8049=_0x5c29fd;var _0x346f78,_0x7fe87f;const {offsetX:_0x37de88,offsetY:_0xd050b7}=_0x7380b1,{x:_0xc0285d,y:_0x3d797b}=_0x82e1a4['getRelativeToViewportCoord'](_0x557118[_0xde8049(0x36a)]([_0x37de88,_0xd050b7])),{scaleX:_0x2672c6,scaleY:_0x1d5c13}=_0x82e1a4[_0xde8049(0x266)](),_0x186723=_0x82e1a4[_0xde8049(0x3a0)](_0x34d4ed[_0xde8049(0x388)]),_0x5235dc=_0x82e1a4[_0xde8049(0x208)](_0x557118[_0xde8049(0x36a)]([_0xc0285d,_0x3d797b]),_0x186723),_0x5d8fa2=_0x2f4bfd[_0xde8049(0x381)](_0x37de88,_0xd050b7,_0x2672c6,_0x1d5c13,_0x5235dc);((_0x346f78=this[_0xde8049(0x2d5)])==null?void 0x0:_0x346f78['column'])===_0x5d8fa2[_0xde8049(0x2ee)]&&((_0x7fe87f=this[_0xde8049(0x2d5)])==null?void 0x0:_0x7fe87f['row'])===_0x5d8fa2['row']||this[_0xde8049(0x2c7)][_0xde8049(0x296)](_0xdbc916=>{const _0xfdac10=_0xde8049;_0xdbc916[_0xfdac10(0x2be)](_0x5d8fa2);});},0x64));});}[_0x3b9665(0x370)](_0x27f15a,_0x1d4635){const _0x11eb11=_0x3b9665;var _0x5d39a7;const _0x11ad3a=(_0x5d39a7=this[_0x11eb11(0x2f3)][_0x11eb11(0x349)]())==null?void 0x0:_0x5d39a7[_0x11eb11(0x300)];if(!_0x11ad3a)return;const _0x1760bc=this[_0x11eb11(0x291)]();if(!_0x1760bc)return;this['_cursors'][_0x11eb11(0x296)](_0x15a307=>{const _0x407545=_0x11eb11;_0x15a307[_0x407545(0x36f)]();});const {scene:_0x406e2c}=_0x1760bc,_0x35cb43=on(Array['from'](_0x1d4635['values']()))[_0x11eb11(0x1b2)](_0x2a9001=>{const _0x40e38a=_0x11eb11,{color:_0x5cf644,range:_0x4e3b4e,name:_0x49efac,selection:_0x4a95b7,sheetID:_0x4194e7}=_0x2a9001,{startColumn:_0x3469d6,startRow:_0x14fb84,endColumn:_0x277900,endRow:_0x1973c0}=_0x4e3b4e,_0x42a701=_0x1d79bc(_0x14fb84,_0x3469d6,_0x406e2c,_0x11ad3a),_0x34a943=_0x1d79bc(_0x1973c0,_0x277900,_0x406e2c,_0x11ad3a),{columnHeaderHeightAndMarginTop:_0x142a2d}=_0x11ad3a,{startX:_0x2eee5c,startY:_0x4857f0}=_0x42a701,{endX:_0x3a9e3f,endY:_0x1da503}=_0x34a943,_0x2c6810=_0x3a9e3f-_0x2eee5c,_0x5ac20b=_0x1da503-_0x4857f0,_0x2de538={'labelPosition':_0x4857f0-_0x142a2d>=Q?_0x40e38a(0x28c):_0x40e38a(0x1f9),'sheetID':_0x4194e7,'range':_0x4e3b4e,'color':_0x5cf644,'name':_0x49efac,'selection':_0x4a95b7,'left':_0x2eee5c,'top':_0x4857f0,'width':_0x2c6810,'height':_0x5ac20b,'evented':!0x1,'zIndex':rn};return new tn(_0x49efac,_0x2de538);});_0x406e2c[_0x11eb11(0x2ff)](_0x35cb43,qi),this['_cursors']=new Set(_0x35cb43);}[_0x3b9665(0x2c6)](){const _0x101926=_0x3b9665;var _0x47222e;(_0x47222e=this['_cursors'])==null||_0x47222e[_0x101926(0x296)](_0x3ee872=>_0x3ee872[_0x101926(0x239)]());}[_0x3b9665(0x291)](){const _0x35abcb=_0x3b9665;return _0x11c551(this[_0x35abcb(0x1cd)]['unit'],this['_context']);}};ke=nn([be(0x1,_0x122dae(_0x17fc5d)),be(0x2,_0x122dae(H)),be(0x3,_0x122dae(_0x56241c))],ke);function on(_0x2e1abd){const _0x181fb3=_0x3b9665,_0x356ef6=new Map();return _0x2e1abd[_0x181fb3(0x296)](_0x53b42e=>{const _0x3bc5e9=_0x181fb3;if(_0x356ef6[_0x3bc5e9(0x23d)](_0x53b42e[_0x3bc5e9(0x364)])){const _0x5b0e46=_0x356ef6[_0x3bc5e9(0x20b)](_0x53b42e[_0x3bc5e9(0x364)]);_0x5b0e46[_0x3bc5e9(0x372)]+=',\x20'+_0x53b42e['name'];}else _0x356ef6[_0x3bc5e9(0x227)](_0x53b42e[_0x3bc5e9(0x364)],_0x53b42e);}),Array[_0x181fb3(0x357)](_0x356ef6['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x49ede8,_0x1f2c8c,_0x3c9e95,_0x333782)=>{for(var _0x444550=_0x333782>0x1?void 0x0:_0x333782?an(_0x1f2c8c,_0x3c9e95):_0x1f2c8c,_0x383f72=_0x49ede8['length']-0x1,_0xf429f3;_0x383f72>=0x0;_0x383f72--)(_0xf429f3=_0x49ede8[_0x383f72])&&(_0x444550=_0xf429f3(_0x444550)||_0x444550);return _0x444550;},F=(_0x3660a8,_0x3909ad)=>(_0x115b04,_0x330ef0)=>_0x3909ad(_0x115b04,_0x330ef0,_0x3660a8);let _e=class extends _0x59ef45{constructor(_0x403d6b,_0x19ea5d,_0x49877e,_0x5ac328,_0x177626,_0x4a4c23){const _0x40b947=_0x3b9665;super(),this[_0x40b947(0x203)]=_0x403d6b,this[_0x40b947(0x1ad)]=_0x19ea5d,this['_collaborationUIEventService']=_0x49877e,this[_0x40b947(0x277)]=_0x5ac328,this['_notificationService']=_0x177626,this['_localeService']=_0x4a4c23,this['_setupBeforeClosingHandler'](),this[_0x40b947(0x225)]();}[_0x3b9665(0x211)](){const _0x142be4=_0x3b9665;this['disposeWithMe'](this[_0x142be4(0x203)][_0x142be4(0x35f)](()=>{const _0x5ca510=_0x142be4;if(this['_localCacheService'][_0x5ca510(0x17b)][_0x5ca510(0x2a6)])return this[_0x5ca510(0x2b5)]['t'](_0x5ca510(0x218));}));}[_0x3b9665(0x225)](){const _0x45306e=_0x3b9665;this['disposeWithMe'](this[_0x45306e(0x258)]['event$'][_0x45306e(0x1c1)](_0x276357=>{const _0x362d97=_0x45306e;_0x276357['id']===_0x4f7cb7[_0x362d97(0x312)]&&this[_0x362d97(0x277)][_0x362d97(0x2b2)]({'type':_0x12cc16[_0x362d97(0x197)],'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x234))}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x2a5)]&&this[_0x362d97(0x277)][_0x362d97(0x2b2)]({'type':_0x12cc16[_0x362d97(0x197)],'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x21b))}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x269)]&&this[_0x362d97(0x202)][_0x362d97(0x2b2)]({'title':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x228)),'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x177)),'type':_0x362d97(0x213),'duration':0x0}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x240)]&&this[_0x362d97(0x277)][_0x362d97(0x2b2)]({'type':_0x12cc16[_0x362d97(0x39f)],'content':this[_0x362d97(0x2b5)]['t']('collaboration.closeRoom')+'('+_0x276357['data']+')'}),_0x276357['id']===_0x4f7cb7['JOIN_ROOM_FAILED']&&this['_messageService']['show']({'type':_0x12cc16[_0x362d97(0x197)],'content':this['_localeService']['t'](_0x276357['data']||'')}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x21e)]&&this[_0x362d97(0x277)]['show']({'type':_0x12cc16[_0x362d97(0x197)],'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x1aa))}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x187)]&&this['_messageService'][_0x362d97(0x2b2)]({'type':_0x12cc16[_0x362d97(0x39f)],'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x257))}),_0x276357['id']===_0x4f7cb7[_0x362d97(0x2dd)]&&this[_0x362d97(0x277)][_0x362d97(0x2b2)]({'type':_0x12cc16[_0x362d97(0x39f)],'content':this[_0x362d97(0x2b5)]['t'](_0x362d97(0x220))});}));}};_e=cn([F(0x0,_0x4c0fff),F(0x1,_0x1e4f02),F(0x2,_0x122dae(_0x218cca)),F(0x3,_0x10df9f),F(0x4,_0x45e2ad),F(0x5,_0x122dae(_0x4c3377))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0xf7aaad,_0x30ede8,_0x2d7344,_0x4bbe9f)=>{const _0x5e19cc=_0x3b9665;for(var _0x425af7=_0x4bbe9f>0x1?void 0x0:_0x4bbe9f?_n(_0x30ede8,_0x2d7344):_0x30ede8,_0xba6402=_0xf7aaad[_0x5e19cc(0x1cc)]-0x1,_0x5d6bb2;_0xba6402>=0x0;_0xba6402--)(_0x5d6bb2=_0xf7aaad[_0xba6402])&&(_0x425af7=_0x5d6bb2(_0x425af7)||_0x425af7);return _0x425af7;},ne=(_0x23d58d,_0x37b39a)=>(_0x15a41d,_0x41e8c0)=>_0x37b39a(_0x15a41d,_0x41e8c0,_0x23d58d);let le=class extends _0x59ef45{constructor(_0x518a08,_0x39519c,_0x55ff79,_0x23567c){const _0x3fd767=_0x3b9665;super(),_(this,_0x3fd767(0x31b)),(this[_0x3fd767(0x1a3)]=_0x518a08,this[_0x3fd767(0x191)]=_0x39519c,this[_0x3fd767(0x19d)]=_0x55ff79,this[_0x3fd767(0x324)]=_0x23567c,this[_0x3fd767(0x279)]());}[_0x3b9665(0x279)](){const _0x328362=_0x3b9665;this['_initWindowErrorListener'](),this[_0x328362(0x1ab)](),this[_0x328362(0x2af)](),this[_0x328362(0x25f)]();}[_0x3b9665(0x25f)](){const _0x18ae14=_0x3b9665;this[_0x18ae14(0x219)](this[_0x18ae14(0x324)]['socket$']['subscribe'](_0x21c0e7=>{const _0x3be564=_0x18ae14;this[_0x3be564(0x31b)]=_0x21c0e7==null?void 0x0:_0x21c0e7[_0x3be564(0x37f)];}));}[_0x3b9665(0x184)](){const _0x144d05=_0x3b9665,_0x27aef2=_0x3d9318=>{const _0xa299ee=_0x5c23;var _0x3d4f58;this[_0xa299ee(0x26e)]('error','[Window\x20Error]:\x20'+_0x3d9318[_0xa299ee(0x17a)]+'\x20at\x20'+_0x3d9318[_0xa299ee(0x20e)]+':'+_0x3d9318['lineno']+':'+_0x3d9318[_0xa299ee(0x2ba)]+'\x0a'+(((_0x3d4f58=_0x3d9318[_0xa299ee(0x213)])==null?void 0x0:_0x3d4f58['stack'])||''));};window[_0x144d05(0x299)]('error',_0x27aef2),this['disposeWithMe'](()=>{window['removeEventListener']('error',_0x27aef2);});}[_0x3b9665(0x1ab)](){const _0x3a1831=_0x3b9665,_0x4f2c89=_0x12d1f3=>{const _0xf225b7=_0x5c23;this['_uploadLog'](_0xf225b7(0x213),_0xf225b7(0x2e9)+_0x12d1f3[_0xf225b7(0x22c)]);};window['addEventListener']('unhandledrejection',_0x4f2c89),this[_0x3a1831(0x219)](()=>{const _0x406cfb=_0x3a1831;window[_0x406cfb(0x34c)](_0x406cfb(0x1ff),_0x4f2c89);});}[_0x3b9665(0x2af)](){const _0x19fe3c=_0x3b9665,_0x195e2d=this['_logService'][_0x19fe3c(0x213)][_0x19fe3c(0x2e3)](this[_0x19fe3c(0x19d)]);this[_0x19fe3c(0x19d)][_0x19fe3c(0x213)]=(..._0x332b9a)=>{const _0x619230=_0x19fe3c,_0x2276cd=_0x332b9a[_0x619230(0x1b2)](_0x183c9d=>_0x183c9d instanceof Error?_0x183c9d['message']+'\x0a'+_0x183c9d[_0x619230(0x1c3)]:String(_0x183c9d))['join']('\x20');this['_uploadLog'](_0x619230(0x213),_0x619230(0x341)+_0x2276cd),_0x195e2d(..._0x332b9a);},this['disposeWithMe'](()=>{const _0x45e248=_0x19fe3c;this[_0x45e248(0x19d)][_0x45e248(0x213)]=_0x195e2d;});}[_0x3b9665(0x26e)](_0x1aaf62,_0x13f3df){const _0x14228d=_0x3b9665;try{const _0x30e5ab={'userId':this[_0x14228d(0x31b)],'logLabel':_0x1aaf62,'content':_0x13f3df};this[_0x14228d(0x191)][_0x14228d(0x244)](_0x14228d(0x1c0),{'body':_0x30e5ab})[_0x14228d(0x22b)](()=>{});}catch{}}};le=ln([ne(0x0,_0x122dae(_0x318e52)),ne(0x1,_0x122dae(_0x480dcd)),ne(0x2,_0x3cc8e3),ne(0x3,_0x122dae(_0x15730c))],le);const hn='collaboration-client-ui.config',_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x51c9d6,_0x437482,_0x3c733e,_0x4201a7)=>{const _0x91672a=_0x3b9665;for(var _0x522cc5=_0x4201a7>0x1?void 0x0:_0x4201a7?un(_0x437482,_0x3c733e):_0x437482,_0x1a9622=_0x51c9d6[_0x91672a(0x1cc)]-0x1,_0x36544;_0x1a9622>=0x0;_0x1a9622--)(_0x36544=_0x51c9d6[_0x1a9622])&&(_0x522cc5=_0x36544(_0x522cc5)||_0x522cc5);return _0x522cc5;},lt=(_0x4cf0a9,_0x8021e8)=>(_0x46f850,_0x43f55f)=>_0x8021e8(_0x46f850,_0x43f55f,_0x4cf0a9);let he=class{constructor(_0x2e5bbc,_0x335371){const _0x5f33ab=_0x3b9665;this['_transformService']=_0x2e5bbc,this[_0x5f33ab(0x233)]=_0x335371;}[_0x3b9665(0x2eb)](_0x2c0d03){const _0x2e4d0e=_0x3b9665;this['_transformUndoRedoStack'](_0x2c0d03),this[_0x2e4d0e(0x2ec)](_0x2c0d03);}[_0x3b9665(0x195)](_0x1fd60c){const _0x61b9c0=_0x3b9665,{unitID:_0xff8d1e}=_0x1fd60c,_0x124b8e=this['_renderManagerService'][_0x61b9c0(0x19b)](_0xff8d1e)[_0x61b9c0(0x33f)](_0x55b51e),{redoCache:_0x1705c5}=_0x124b8e[_0x61b9c0(0x336)]();if(_0x1705c5['length']===0x0)return _0x1fd60c;let _0x304992=_0x1ece0f[_0x61b9c0(0x293)](_0x1fd60c[_0x61b9c0(0x28e)][0x0]);for(let _0x56a5ad=0x0;_0x56a5ad<_0x1705c5[_0x61b9c0(0x1cc)];_0x56a5ad++){const _0x593176={'id':_0x61b9c0(0x235),'params':{..._0x1705c5[_0x56a5ad]}},_0x3b67e5=this['_transformService'][_0x61b9c0(0x248)](_0x304992,_0x593176,!0x1);if(_0x55c59e(_0x3b67e5))throw _0x3b67e5[_0x61b9c0(0x213)];_0x304992=_0x3b67e5[_0x61b9c0(0x285)];}return{..._0x1ece0f[_0x61b9c0(0x293)](_0x1fd60c),'mutations':[_0x304992]};}['_transformUndoRedoStack'](_0x45b27f){const _0x17ad28=_0x3b9665,{unitID:_0x524217}=_0x45b27f,_0x39f943=this[_0x17ad28(0x233)][_0x17ad28(0x19b)](_0x524217)['with'](_0x55b51e),{undoCache:_0x4da768,redoCache:_0x226c50}=_0x39f943[_0x17ad28(0x336)]();if(_0x4da768['length']===0x0||_0x226c50[_0x17ad28(0x1cc)]===0x0)return;const _0x38a9c6=[],_0x28a205=[];let _0x224a1b=_0x1ece0f[_0x17ad28(0x293)](_0x45b27f[_0x17ad28(0x28e)][0x0]),_0x315eef=_0x1ece0f[_0x17ad28(0x293)](_0x45b27f['mutations'][0x0]);for(let _0x58d661=_0x4da768[_0x17ad28(0x1cc)]-0x1;_0x58d661>=0x0;_0x58d661--){const _0x1597f8={'id':_0x17ad28(0x235),'params':{..._0x4da768[_0x58d661]}},_0x33e74b={'id':_0x17ad28(0x235),'params':{..._0x226c50[_0x58d661]}},_0x1ec72c=this['_transformService']['transformMutation'](_0x224a1b,_0x1597f8,!0x1),_0x1bc2bf=this[_0x17ad28(0x23c)]['transformMutation'](_0x315eef,_0x33e74b,!0x1);if(_0x55c59e(_0x1ec72c))throw _0x1ec72c[_0x17ad28(0x213)];if(_0x55c59e(_0x1bc2bf))throw _0x1bc2bf[_0x17ad28(0x213)];_0x38a9c6[_0x17ad28(0x1a8)](_0x1ec72c[_0x17ad28(0x354)]['params']),_0x28a205[_0x17ad28(0x1a8)](_0x1bc2bf[_0x17ad28(0x354)]['params']),_0x224a1b=_0x1ec72c[_0x17ad28(0x285)],_0x315eef=_0x1bc2bf['m1Prime'];}_0x39f943[_0x17ad28(0x332)]({'undoCache':_0x38a9c6,'redoCache':_0x28a205});}[_0x3b9665(0x2ec)](_0x3e8bd7){const _0x1e3b7b=_0x3b9665,{unitID:_0x135f97}=_0x3e8bd7,_0x44a5a1=this[_0x1e3b7b(0x233)][_0x1e3b7b(0x19b)](_0x135f97)['with'](_0x55b51e),_0x49c86b=_0x44a5a1[_0x1e3b7b(0x28f)]();if(_0x49c86b==null)return;const _0x2f6f65=[{'id':_0x1e3b7b(0x235),'params':{'unitId':_0x3e8bd7['unitID'],'actions':null,'textRanges':[_0x49c86b]}}],_0x2ac648=this[_0x1e3b7b(0x23c)]['transformMutationsWithChangeset'](_0x3e8bd7,_0x2f6f65);if(!_0x5878de(_0x2ac648))throw _0x2ac648[_0x1e3b7b(0x213)];const _0x125841=_0x2ac648[_0x1e3b7b(0x354)][0x0]['params'][_0x1e3b7b(0x18f)];Array[_0x1e3b7b(0x164)](_0x125841)&&_0x125841['length']&&_0x44a5a1[_0x1e3b7b(0x166)](_0x125841[0x0]);}};he=dn([lt(0x0,_0x359e85),lt(0x1,_0x5346f6)],he);var Sn=Object[_0x3b9665(0x36d)],In=(_0x415aad,_0x4658af,_0x16a5ce,_0x26183e)=>{for(var _0x3e3560=_0x26183e>0x1?void 0x0:_0x26183e?Sn(_0x4658af,_0x16a5ce):_0x4658af,_0x34db23=_0x415aad['length']-0x1,_0x36ac7e;_0x34db23>=0x0;_0x34db23--)(_0x36ac7e=_0x415aad[_0x34db23])&&(_0x3e3560=_0x36ac7e(_0x3e3560)||_0x3e3560);return _0x3e3560;},Le=(_0x473d65,_0x46931e)=>(_0x44dcd2,_0x99bd55)=>_0x46931e(_0x44dcd2,_0x99bd55,_0x473d65);let ue=class{constructor(_0x485235,_0x4067bc,_0x2a1fb1){const _0x1ed51f=_0x3b9665;this[_0x1ed51f(0x1a3)]=_0x485235,this[_0x1ed51f(0x23c)]=_0x4067bc,this['_docStateChangeManagerService']=_0x2a1fb1;}[_0x3b9665(0x3aa)](_0x32bb96){const _0x50e6ae=_0x3b9665;this[_0x50e6ae(0x389)](_0x32bb96);}[_0x3b9665(0x195)](_0x5d9082){const _0x2b6190=_0x3b9665,{unitID:_0x2c729e}=_0x5d9082,{collaboration:_0x324dd7}=this[_0x2b6190(0x22a)]['getStateCache'](_0x2c729e);if(_0x324dd7['length']===0x0)return _0x5d9082;let _0x2aa493=_0x1ece0f[_0x2b6190(0x293)](_0x5d9082[_0x2b6190(0x28e)][0x0]);for(let _0x58808a=0x0;_0x58808a<_0x324dd7[_0x2b6190(0x1cc)];_0x58808a++){const _0x51faaa={'id':_0x2b6190(0x235),'params':{'unitId':_0x324dd7[_0x58808a][_0x2b6190(0x2b9)],..._0x324dd7[_0x58808a][_0x2b6190(0x16f)]}},_0x4f874c=this[_0x2b6190(0x23c)]['transformMutation'](_0x2aa493,_0x51faaa,!0x1);if(_0x55c59e(_0x4f874c))throw _0x4f874c[_0x2b6190(0x213)];_0x2aa493=_0x4f874c[_0x2b6190(0x285)];}return{..._0x1ece0f[_0x2b6190(0x293)](_0x5d9082),'mutations':[_0x2aa493]};}[_0x3b9665(0x389)](_0x55871a){const _0x1913d1=_0x3b9665,{unitID:_0x1afbd3}=_0x55871a,{history:_0x1a768a,collaboration:_0x34b95a}=this[_0x1913d1(0x22a)]['getStateCache'](_0x1afbd3);if(_0x1a768a[_0x1913d1(0x1cc)]===0x0&&_0x34b95a[_0x1913d1(0x1cc)]===0x0)return;const _0x55a738=[],_0x4c310b=[];let _0x4ff838=_0x1ece0f[_0x1913d1(0x293)](_0x55871a[_0x1913d1(0x28e)][0x0]),_0x53b3f4=_0x1ece0f[_0x1913d1(0x293)](_0x55871a[_0x1913d1(0x28e)][0x0]);for(let _0x4797c3=_0x1a768a[_0x1913d1(0x1cc)]-0x1;_0x4797c3>=0x0;_0x4797c3--){const _0x45d502={'id':_0x1913d1(0x235),'params':{'unitId':_0x1a768a[_0x4797c3][_0x1913d1(0x2b9)],..._0x1a768a[_0x4797c3][_0x1913d1(0x301)]}},_0x2f2682={'id':_0x1913d1(0x235),'params':{'unitId':_0x1a768a[_0x4797c3][_0x1913d1(0x2b9)],..._0x1a768a[_0x4797c3][_0x1913d1(0x16f)]}},_0x305a81=this[_0x1913d1(0x23c)][_0x1913d1(0x248)](_0x4ff838,_0x45d502,!0x1),_0x440806=this[_0x1913d1(0x23c)]['transformMutation'](_0x53b3f4,_0x2f2682,!0x1);if(_0x55c59e(_0x305a81))throw _0x305a81[_0x1913d1(0x213)];if(_0x55c59e(_0x440806))throw _0x440806['error'];_0x55a738[_0x1913d1(0x1a8)]({..._0x1a768a[_0x4797c3],'undoState':_0x305a81[_0x1913d1(0x354)]['params'],'redoState':_0x440806[_0x1913d1(0x354)]['params']}),_0x4ff838=_0x305a81[_0x1913d1(0x285)],_0x53b3f4=_0x440806[_0x1913d1(0x285)];}_0x4ff838=_0x1ece0f[_0x1913d1(0x293)](_0x55871a[_0x1913d1(0x28e)][0x0]),_0x53b3f4=_0x1ece0f[_0x1913d1(0x293)](_0x55871a['mutations'][0x0]);for(let _0x328707=_0x34b95a[_0x1913d1(0x1cc)]-0x1;_0x328707>=0x0;_0x328707--){const _0x13d469={'id':_0x1913d1(0x235),'params':{'unitId':_0x34b95a[_0x328707][_0x1913d1(0x2b9)],..._0x34b95a[_0x328707][_0x1913d1(0x301)]}},_0x5ebe55={'id':_0x1913d1(0x235),'params':{'unitId':_0x34b95a[_0x328707][_0x1913d1(0x2b9)],..._0x34b95a[_0x328707][_0x1913d1(0x16f)]}},_0x109611=this[_0x1913d1(0x23c)][_0x1913d1(0x248)](_0x4ff838,_0x13d469,!0x1),_0xdf7229=this['_transformService'][_0x1913d1(0x248)](_0x53b3f4,_0x5ebe55,!0x1);if(_0x55c59e(_0x109611))throw _0x109611['error'];if(_0x55c59e(_0xdf7229))throw _0xdf7229[_0x1913d1(0x213)];_0x4c310b[_0x1913d1(0x1a8)]({..._0x34b95a[_0x328707],'undoState':_0x109611[_0x1913d1(0x354)]['params'],'redoState':_0xdf7229[_0x1913d1(0x354)][_0x1913d1(0x1b8)]}),_0x4ff838=_0x109611['m1Prime'],_0x53b3f4=_0xdf7229[_0x1913d1(0x285)];}this['_docStateChangeManagerService'][_0x1913d1(0x34d)](_0x1afbd3,{'history':_0x55a738,'collaboration':_0x4c310b});}};ue=In([Le(0x0,_0x122dae(_0x318e52)),Le(0x1,_0x359e85),Le(0x2,_0x122dae(_0x482b9e))],ue);var mn=Object['getOwnPropertyDescriptor'],fn=(_0x27466f,_0x5e4639,_0x4e07cf,_0x18607c)=>{const _0x309ee2=_0x3b9665;for(var _0x278c1c=_0x18607c>0x1?void 0x0:_0x18607c?mn(_0x5e4639,_0x4e07cf):_0x5e4639,_0x3b94ba=_0x27466f[_0x309ee2(0x1cc)]-0x1,_0x3557bc;_0x3b94ba>=0x0;_0x3b94ba--)(_0x3557bc=_0x27466f[_0x3b94ba])&&(_0x278c1c=_0x3557bc(_0x278c1c)||_0x278c1c);return _0x278c1c;},ht=(_0x4a97fc,_0x4e5fbc)=>(_0x3f3576,_0x6ce8d4)=>_0x4e5fbc(_0x3f3576,_0x6ce8d4,_0x4a97fc);let de=class{constructor(_0x596d7b,_0x234543){const _0x31ea62=_0x3b9665;this[_0x31ea62(0x1a3)]=_0x596d7b,this[_0x31ea62(0x23c)]=_0x234543;}[_0x3b9665(0x188)](_0x1ab99c){const _0xdbdc77=_0x3b9665;var _0x2156fb;const _0x352a27=this[_0xdbdc77(0x1a3)][_0xdbdc77(0x20b)](_0x4d80ff),_0x52f319=(_0x2156fb=_0x352a27[_0xdbdc77(0x311)]())!=null?_0x2156fb:[];if(_0x52f319[_0xdbdc77(0x1cc)]===0x0)return;const _0xaa2c72=_0x1ab99c[_0xdbdc77(0x242)],_0x235019=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xaa2c72,'actions':null,'textRanges':_0x52f319}}],_0x52f35b=this[_0xdbdc77(0x23c)][_0xdbdc77(0x17e)](_0x1ab99c,_0x235019);if(!_0x5878de(_0x52f35b))throw _0x52f35b[_0xdbdc77(0x213)];const _0x291846=_0x52f35b[_0xdbdc77(0x354)][0x0][_0xdbdc77(0x1b8)][_0xdbdc77(0x18f)];Array[_0xdbdc77(0x164)](_0x291846)&&_0x291846['length']&&_0x352a27[_0xdbdc77(0x163)](_0x291846,{'unitId':_0xaa2c72,'subUnitId':_0xaa2c72},!0x1);}};de=fn([ht(0x0,_0x122dae(_0x318e52)),ht(0x1,_0x359e85)],de);var gn=Object[_0x3b9665(0x36d)],En=(_0x45f464,_0x52b7ca,_0x3d8c4a,_0xceb287)=>{for(var _0x5e6358=_0xceb287>0x1?void 0x0:_0xceb287?gn(_0x52b7ca,_0x3d8c4a):_0x52b7ca,_0x8c2dcd=_0x45f464['length']-0x1,_0x45bb49;_0x8c2dcd>=0x0;_0x8c2dcd--)(_0x45bb49=_0x45f464[_0x8c2dcd])&&(_0x5e6358=_0x45bb49(_0x5e6358)||_0x5e6358);return _0x5e6358;},U=(_0x54939a,_0x360e2b)=>(_0x231dd7,_0x55fa8f)=>_0x360e2b(_0x231dd7,_0x55fa8f,_0x54939a);let Se=class extends _0x59ef45{constructor(_0xcbb30,_0x304099,_0x3dfb86,_0x323b1d,_0x152fa6,_0x19aa5,_0x4e0da9,_0xdc9a0e){const _0x54918f=_0x3b9665;super(),_(this,_0x54918f(0x361),new _0x1e5ced(_0x50c744['NOT_COLLAB'])),(this[_0x54918f(0x22a)]=_0xcbb30,this[_0x54918f(0x1a2)]=_0x304099,this['_docTransformIMECacheService']=_0x3dfb86,this[_0x54918f(0x18d)]=_0x323b1d,this[_0x54918f(0x2f4)]=_0x152fa6,this[_0x54918f(0x32e)]=_0x19aa5,this['_messageService']=_0x4e0da9,this['_localeService']=_0xdc9a0e,this[_0x54918f(0x39a)]());}[_0x3b9665(0x39a)](){const _0x586128=_0x3b9665;this[_0x586128(0x219)](this['_collaborationController'][_0x586128(0x1a7)][_0x586128(0x1c1)](_0x39e824=>{const _0x4cd4a5=_0x586128,_0x337f25=this['_docStateChangeManagerService'][_0x4cd4a5(0x1b1)][_0x4cd4a5(0x1c1)](_0x22ad00=>{const _0x335d62=_0x4cd4a5;if(_0x22ad00==null)return;const {unitId:_0x12a37b,redoState:_0x7eac90,commandId:_0x1b9580}=_0x22ad00;if(_0x12a37b!==_0x39e824[_0x335d62(0x242)])return;const _0x273b1b={'id':_0x1b9580,'type':_0x16f2e4[_0x335d62(0x2d4)],'params':{'unitId':_0x12a37b,'actions':_0x7eac90[_0x335d62(0x384)],'textRanges':null}};_0x39e824['onLocalMutation'](_0x273b1b);});if(_0x39e824[_0x4cd4a5(0x219)](_0x337f25),_0x39e824 instanceof _0x9931d5){const _0x40a1e5={'onTransformIME':_0x3a7500=>this[_0x4cd4a5(0x171)][_0x4cd4a5(0x2eb)](_0x3a7500),'onTransformState':_0x5a3bdd=>this['_docTransformStateCacheService'][_0x4cd4a5(0x3aa)](_0x5a3bdd),'onTransformSelections':_0x581e66=>this[_0x4cd4a5(0x2f4)][_0x4cd4a5(0x188)](_0x581e66),'onSyncEditingCollabCursor':_0x31627f=>this[_0x4cd4a5(0x32e)][_0x4cd4a5(0x2fe)](_0x31627f),'onTransformRemoteChangesetByIMECache':_0x119e96=>this[_0x4cd4a5(0x171)][_0x4cd4a5(0x195)](_0x119e96),'onTransformRemoteChangesetByStateCache':_0x1c47d2=>this[_0x4cd4a5(0x18d)]['transformRemoteChangeset'](_0x1c47d2)};_0x39e824[_0x4cd4a5(0x24b)](_0x40a1e5);}}));}};Se=En([U(0x0,_0x122dae(_0x482b9e)),U(0x1,_0x122dae(_0xe9560e)),U(0x2,_0x122dae(he)),U(0x3,_0x122dae(ue)),U(0x4,_0x122dae(de)),U(0x5,_0x122dae(ze)),U(0x6,_0x10df9f),U(0x7,_0x122dae(_0x4c3377))],Se);var Z=(_0x16d92e=>(_0x16d92e[_0x16d92e[_0x3b9665(0x382)]=0x0]=_0x3b9665(0x382),_0x16d92e[_0x16d92e['OK']=0x1]='OK',_0x16d92e[_0x16d92e[_0x3b9665(0x1d8)]=0x2]=_0x3b9665(0x1d8),_0x16d92e[_0x16d92e['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x16d92e[_0x16d92e[_0x3b9665(0x292)]=0x4]='NOT_FOUND',_0x16d92e[_0x16d92e['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x16d92e[_0x16d92e[_0x3b9665(0x265)]=0x6]=_0x3b9665(0x265),_0x16d92e[_0x16d92e[_0x3b9665(0x2d3)]=0x7]='INVALID_ARGUMENT',_0x16d92e[_0x16d92e[_0x3b9665(0x1ac)]=0x8]=_0x3b9665(0x1ac),_0x16d92e[_0x16d92e[_0x3b9665(0x1f8)]=0x9]='COMPLETION_FINISHED',_0x16d92e[_0x16d92e[_0x3b9665(0x1e7)]=0xa]=_0x3b9665(0x1e7),_0x16d92e[_0x16d92e[_0x3b9665(0x385)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x16d92e[_0x16d92e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3b9665(0x236),_0x16d92e[_0x16d92e[_0x3b9665(0x245)]=0xd]=_0x3b9665(0x245),_0x16d92e[_0x16d92e[_0x3b9665(0x2e6)]=0xe]=_0x3b9665(0x2e6),_0x16d92e[_0x16d92e['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x16d92e[_0x16d92e[_0x3b9665(0x170)]=0x10]=_0x3b9665(0x170),_0x16d92e[_0x16d92e[_0x3b9665(0x1fb)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x16d92e[_0x16d92e['ERROR_AGAIN']=0x65]=_0x3b9665(0x30c),_0x16d92e[_0x16d92e[_0x3b9665(0x33a)]=0xc9]='USER_NOT_FOUND',_0x16d92e[_0x16d92e[_0x3b9665(0x29e)]=0xca]=_0x3b9665(0x29e),_0x16d92e[_0x16d92e[_0x3b9665(0x356)]=0x1389]=_0x3b9665(0x356),_0x16d92e[_0x16d92e[_0x3b9665(0x1f0)]=0x1771]=_0x3b9665(0x1f0),_0x16d92e[_0x16d92e[_0x3b9665(0x1b7)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x16d92e[_0x16d92e[_0x3b9665(0x37a)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x16d92e[_0x16d92e['APPLY_REJECT']=0x1b59]=_0x3b9665(0x272),_0x16d92e[_0x16d92e[_0x3b9665(0x2ea)]=0x1b5a]=_0x3b9665(0x2ea),_0x16d92e[_0x16d92e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x3b9665(0x314),_0x16d92e[_0x16d92e[_0x3b9665(0x173)]=0x1b5c]=_0x3b9665(0x173),_0x16d92e[_0x16d92e[_0x3b9665(0x318)]=0x1b5d]=_0x3b9665(0x318),_0x16d92e[_0x16d92e[_0x3b9665(0x25e)]=0x1f41]=_0x3b9665(0x25e),_0x16d92e[_0x16d92e[_0x3b9665(0x369)]=0x2329]=_0x3b9665(0x369),_0x16d92e[_0x16d92e[_0x3b9665(0x34e)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x16d92e[_0x16d92e[_0x3b9665(0x346)]=0x232b]=_0x3b9665(0x346),_0x16d92e[_0x16d92e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3b9665(0x392),_0x16d92e[_0x16d92e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3b9665(0x322),_0x16d92e[_0x16d92e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3b9665(0x1f4),_0x16d92e[_0x16d92e[_0x3b9665(0x1b6)]=0x2712]=_0x3b9665(0x1b6),_0x16d92e[_0x16d92e[_0x3b9665(0x2c2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x16d92e[_0x16d92e[_0x3b9665(0x393)]=0x2714]=_0x3b9665(0x393),_0x16d92e[_0x16d92e[_0x3b9665(0x165)]=0x271a]=_0x3b9665(0x165),_0x16d92e[_0x16d92e['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x3b9665(0x284),_0x16d92e[_0x16d92e[_0x3b9665(0x329)]=0x271c]=_0x3b9665(0x329),_0x16d92e[_0x16d92e[_0x3b9665(0x2de)]=0x271d]=_0x3b9665(0x2de),_0x16d92e[_0x16d92e[_0x3b9665(0x29d)]=0x271e]=_0x3b9665(0x29d),_0x16d92e[_0x16d92e[_0x3b9665(0x2b7)]=0x271f]=_0x3b9665(0x2b7),_0x16d92e[_0x16d92e[_0x3b9665(0x2f5)]=0x2720]=_0x3b9665(0x2f5),_0x16d92e[_0x16d92e[_0x3b9665(0x223)]=0x2af9]=_0x3b9665(0x223),_0x16d92e[_0x16d92e[_0x3b9665(0x2d6)]=0x2ee1]=_0x3b9665(0x2d6),_0x16d92e[_0x16d92e['INVALID_INVITE_CODE']=0x2ee2]=_0x3b9665(0x25b),_0x16d92e[_0x16d92e[_0x3b9665(0x38a)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x16d92e[_0x16d92e[_0x3b9665(0x182)]=0x2ee4]=_0x3b9665(0x182),_0x16d92e[_0x16d92e[_0x3b9665(0x206)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x16d92e[_0x16d92e['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x3b9665(0x28b),_0x16d92e[_0x16d92e['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x3b9665(0x2f9),_0x16d92e[_0x16d92e['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x16d92e[_0x16d92e[_0x3b9665(0x1f7)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x16d92e[_0x16d92e['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x3b9665(0x29b),_0x16d92e[_0x16d92e[_0x3b9665(0x1be)]=0x36b3]=_0x3b9665(0x1be),_0x16d92e[_0x16d92e[_0x3b9665(0x1e4)]=0x36b4]=_0x3b9665(0x1e4),_0x16d92e[_0x16d92e[_0x3b9665(0x1a9)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x16d92e[_0x16d92e[_0x3b9665(0x1fd)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x16d92e[_0x16d92e[_0x3b9665(0x339)]=0x36b7]=_0x3b9665(0x339),_0x16d92e[_0x16d92e[_0x3b9665(0x1f2)]=0x36b8]=_0x3b9665(0x1f2),_0x16d92e[_0x16d92e[_0x3b9665(0x32d)]=0x3715]=_0x3b9665(0x32d),_0x16d92e[_0x16d92e[_0x3b9665(0x1ee)]=0x3716]=_0x3b9665(0x1ee),_0x16d92e[_0x16d92e['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x16d92e[_0x16d92e[_0x3b9665(0x3a6)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x16d92e[_0x16d92e[_0x3b9665(0x249)]=0x3a99]=_0x3b9665(0x249),_0x16d92e[_0x16d92e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3b9665(0x2ed),_0x16d92e[_0x16d92e[_0x3b9665(0x38c)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x16d92e[_0x16d92e[_0x3b9665(0x39d)]=0x3a9c]=_0x3b9665(0x39d),_0x16d92e[_0x16d92e[_0x3b9665(0x304)]=0x3a9d]=_0x3b9665(0x304),_0x16d92e[_0x16d92e[_0x3b9665(0x1c4)]=0x3a9e]=_0x3b9665(0x1c4),_0x16d92e[_0x16d92e['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x16d92e[_0x16d92e['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x3b9665(0x27d),_0x16d92e[_0x16d92e[_0x3b9665(0x23e)]=-0x1]=_0x3b9665(0x23e),_0x16d92e))(Z||{});function vn(_0x103970){const _0x28e0a0=_0x3b9665;var _0x5232c0,_0x316766;const _0x139dc8=(_0x5232c0=_0x103970[_0x28e0a0(0x2b8)])==null?void 0x0:_0x5232c0[_0x28e0a0(0x37c)],_0x39d0e4=((_0x316766=_0x103970['stageInfo'])==null?void 0x0:_0x316766['totalFormulasToCalculate'])||0x0;return _0x139dc8===_0x26dbff[_0x28e0a0(0x26b)]&&_0x39d0e4>0x0;}function pn(_0x212dfe){const _0x2e06da=_0x3b9665;return _0x212dfe[_0x2e06da(0x252)]===_0x543b1c[_0x2e06da(0x289)];}var On=Object[_0x3b9665(0x36d)],Tn=(_0x2cf4e3,_0x269194,_0x126a8d,_0x3a6c3a)=>{const _0x1842a9=_0x3b9665;for(var _0x4a9fa4=_0x3a6c3a>0x1?void 0x0:_0x3a6c3a?On(_0x269194,_0x126a8d):_0x269194,_0x282ef7=_0x2cf4e3[_0x1842a9(0x1cc)]-0x1,_0x3b29ad;_0x282ef7>=0x0;_0x282ef7--)(_0x3b29ad=_0x2cf4e3[_0x282ef7])&&(_0x4a9fa4=_0x3b29ad(_0x4a9fa4)||_0x4a9fa4);return _0x4a9fa4;},P=(_0x3e4a54,_0x4a1c44)=>(_0x1ca0ae,_0x276f2a)=>_0x4a1c44(_0x1ca0ae,_0x276f2a,_0x3e4a54);const Cn='/universer-api/license/formula/limit/status',Rn=_0x3b9665(0x1cf),Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x59ef45{constructor(_0x5a3753,_0x304495,_0x2a613d,_0x1aebf6,_0xb37dd3,_0x54407e,_0x636b57){const _0xc3e28e=_0x3b9665;super(),_(this,_0xc3e28e(0x24f),null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0xc3e28e(0x3a4),[]),_(this,_0xc3e28e(0x374),0x0),(this[_0xc3e28e(0x277)]=_0x5a3753,this[_0xc3e28e(0x17c)]=_0x304495,this[_0xc3e28e(0x290)]=_0x2a613d,this['_httpService']=_0x1aebf6,this[_0xc3e28e(0x37e)]=_0xb37dd3,this['_logService']=_0x54407e,this[_0xc3e28e(0x2b5)]=_0x636b57,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x5862ad=_0x3b9665;this[_0x5862ad(0x219)](this[_0x5862ad(0x17c)]['beforeCommandExecuted']((_0x141f9f,_0x1d7e88)=>{const _0x5f474e=_0x5862ad;var _0xd293c1;if(_0x141f9f['id']!==_0x20eb1b['id'])return;const _0x5ccf91=_0x141f9f[_0x5f474e(0x1b8)];if(!this[_0x5f474e(0x39e)]((_0xd293c1=_0x5ccf91[_0x5f474e(0x281)])!=null?_0xd293c1:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x5f474e(0x1de)](_0x141f9f,_0x1d7e88),this['_showGuardMessage'](),new _0x5c94a3();})),this[_0x5862ad(0x219)](this['_commandService'][_0x5862ad(0x360)]((_0x448241,_0x589338)=>{const _0x2534c6=_0x5862ad;if(_0x448241['id']!==_0x35fbf3['id'])return;const _0x2937b3=_0x448241[_0x2534c6(0x1b8)];if(vn(_0x2937b3)){const _0x5830cc=_0x12b258();this[_0x2534c6(0x3a4)][_0x2534c6(0x2ab)](_0x5830cc),this[_0x2534c6(0x1f5)](_0x5830cc);}else{if(pn(_0x2937b3)&&this['_taskIds'][_0x2534c6(0x1cc)]>0x0){const _0x28bcec=this[_0x2534c6(0x3a4)][_0x2534c6(0x185)]();this[_0x2534c6(0x3ae)](_0x28bcec);}}}));}[_0x3b9665(0x239)](){const _0x19aab6=_0x3b9665;super[_0x19aab6(0x239)](),this[_0x19aab6(0x3a9)](),this[_0x19aab6(0x3a4)]=[],this[_0x19aab6(0x28a)]=0x0,this[_0x19aab6(0x179)]=0x0,this[_0x19aab6(0x374)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0xe1a4f7,_0x1c7530){const _0x136d7b=_0x3b9665;for(let _0xbbe798=0x0;_0xbbe798<0x1e;_0xbbe798++)try{if(await this[_0x136d7b(0x334)](),this[_0x136d7b(0x335)]()){this[_0x136d7b(0x362)](_0xe1a4f7,_0x1c7530),this[_0x136d7b(0x277)]['show']({'content':this[_0x136d7b(0x2b5)]['t'](_0x136d7b(0x32f)),'type':_0x12cc16['Success']});return;}await new Promise(_0x575f9d=>{const _0x41ef1f=_0x136d7b;this[_0x41ef1f(0x24f)]=window[_0x41ef1f(0x1b0)](_0x575f9d,0x3e8);});}catch(_0x444eac){this[_0x136d7b(0x19d)][_0x136d7b(0x213)](_0x444eac);}this[_0x136d7b(0x277)][_0x136d7b(0x2b2)]({'content':this[_0x136d7b(0x2b5)]['t'](_0x136d7b(0x174)),'type':_0x12cc16[_0x136d7b(0x39f)]});}[_0x3b9665(0x362)](_0x2aed06,_0x4cde09){const _0x276316=_0x3b9665;try{this[_0x276316(0x17c)][_0x276316(0x21a)](_0x2aed06['id'],_0x2aed06[_0x276316(0x1b8)],_0x4cde09);}catch(_0x2b6cef){this[_0x276316(0x19d)]['error'](_0x2b6cef);}}[_0x3b9665(0x31e)](_0x356645,_0x4e82e9){const _0x496ce6=_0x3b9665;_0x4e82e9<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x4e82e9,this[_0x496ce6(0x179)]=Number[_0x496ce6(0x337)](_0x356645['maxFormulaLimit']),this[_0x496ce6(0x28a)]=Number[_0x496ce6(0x337)](_0x356645[_0x496ce6(0x222)]));}async[_0x3b9665(0x1f5)](_0x1a5305){const _0x5b0a43=_0x3b9665;var _0x55d241,_0x5339db;const _0xab78a4=Date[_0x5b0a43(0x246)]();try{const _0x5d83c1=((_0x55d241=this[_0x5b0a43(0x290)]['getConfig'](_0x5c6519))==null?void 0x0:_0x55d241[_0x5b0a43(0x2e4)])||Rn,_0x499d21=(await this[_0x5b0a43(0x191)][_0x5b0a43(0x244)](_0x5d83c1,{'body':JSON[_0x5b0a43(0x302)]({'taskId':_0x1a5305})}))[_0x5b0a43(0x25d)];if(((_0x5339db=_0x499d21['error'])==null?void 0x0:_0x5339db[_0x5b0a43(0x26a)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x499d21[_0x5b0a43(0x34b)],_0xab78a4);}catch(_0x565852){this[_0x5b0a43(0x19d)][_0x5b0a43(0x213)](_0x565852);}}async[_0x3b9665(0x334)](_0x1d47fc){const _0x19b202=_0x3b9665;var _0x212be5,_0x15285e;const _0x1e6214=Date[_0x19b202(0x246)]();try{const _0x584126=((_0x212be5=this[_0x19b202(0x290)][_0x19b202(0x27e)](_0x5c6519))==null?void 0x0:_0x212be5[_0x19b202(0x342)])||Cn,_0x409479=_0x1d47fc?_0x584126+'?taskId='+encodeURIComponent(_0x1d47fc):_0x584126,_0x4e784a=(await this[_0x19b202(0x191)][_0x19b202(0x20b)](_0x409479))['body'];if(((_0x15285e=_0x4e784a[_0x19b202(0x213)])==null?void 0x0:_0x15285e[_0x19b202(0x26a)])!==Z['OK'])return;this[_0x19b202(0x31e)](_0x4e784a[_0x19b202(0x34b)],_0x1e6214);}catch(_0x1bb379){this[_0x19b202(0x19d)][_0x19b202(0x213)](_0x1bb379);}}async[_0x3b9665(0x3ae)](_0x4a6705){const _0x450b71=_0x3b9665;var _0x45ac3b,_0xe83866;const _0x248f06=Date[_0x450b71(0x246)]();try{const _0x40184e=((_0x45ac3b=this[_0x450b71(0x290)][_0x450b71(0x27e)](_0x5c6519))==null?void 0x0:_0x45ac3b[_0x450b71(0x2dc)])||Dn,_0x8eadd1=(await this[_0x450b71(0x191)][_0x450b71(0x244)](_0x40184e,{'body':JSON['stringify']({'taskId':_0x4a6705})}))['body'];if(((_0xe83866=_0x8eadd1[_0x450b71(0x213)])==null?void 0x0:_0xe83866['code'])!==Z['OK'])return;this[_0x450b71(0x31e)](_0x8eadd1['limitInfo'],_0x248f06);}catch(_0x386814){this[_0x450b71(0x19d)]['error'](_0x386814);}}[_0x3b9665(0x335)](){const _0x105b3f=_0x3b9665;return this[_0x105b3f(0x179)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x105b3f(0x28a)]>0x0;}[_0x3b9665(0x3a9)](){const _0x2c7ded=_0x3b9665;this[_0x2c7ded(0x24f)]&&(clearTimeout(this[_0x2c7ded(0x24f)]),this['_pollingInterval']=null);}[_0x3b9665(0x33d)](){const _0x1076a3=_0x3b9665;this[_0x1076a3(0x277)][_0x1076a3(0x2b2)]({'content':this[_0x1076a3(0x2b5)]['t'](_0x1076a3(0x18a)),'type':_0x12cc16['Loading']});}[_0x3b9665(0x39e)](_0x4d2d63){const _0x312c06=_0x3b9665;for(const _0x48088b of _0x4d2d63){const {unitId:_0x54d908,sheetId:_0x20f11c,range:_0x17894d}=_0x48088b,_0x5c416b=this[_0x312c06(0x37e)]['getUnit'](_0x54d908);if(!_0x5c416b)continue;const _0xac8701=_0x5c416b[_0x312c06(0x1ce)](_0x20f11c);if(!_0xac8701)continue;const _0x21c695=_0xac8701['getCellMatrix']();for(let _0xa6608f=_0x17894d['startRow'];_0xa6608f<=_0x17894d[_0x312c06(0x297)];_0xa6608f++)for(let _0x23703b=_0x17894d[_0x312c06(0x2ae)];_0x23703b<=_0x17894d[_0x312c06(0x365)];_0x23703b++){const _0x3365a8=_0x21c695[_0x312c06(0x353)](_0xa6608f,_0x23703b);if(_0x3365a8&&(_0xc558d7(_0x3365a8['f'])||_0x2fadbf(_0x3365a8['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x122dae(_0x10df9f)),P(0x1,_0x42e7dd),P(0x2,_0x1ace04),P(0x3,_0x122dae(_0x480dcd)),P(0x4,_0x4aa59b),P(0x5,_0x3cc8e3),P(0x6,_0x122dae(_0x4c3377))],Ie);var Nn=Object[_0x3b9665(0x36d)],bn=(_0x146e35,_0x4b0960,_0x512b33,_0x388459)=>{const _0x502cca=_0x3b9665;for(var _0x2cb159=_0x388459>0x1?void 0x0:_0x388459?Nn(_0x4b0960,_0x512b33):_0x4b0960,_0xb739c1=_0x146e35[_0x502cca(0x1cc)]-0x1,_0x479fab;_0xb739c1>=0x0;_0xb739c1--)(_0x479fab=_0x146e35[_0xb739c1])&&(_0x2cb159=_0x479fab(_0x2cb159)||_0x2cb159);return _0x2cb159;},Ue=(_0x2c7ef7,_0x96ac95)=>(_0x13292d,_0x2d175d)=>_0x96ac95(_0x13292d,_0x2d175d,_0x2c7ef7);let He=class extends _0x59ef45{constructor(_0x4beffc,_0x4cec6a,_0x51ac43){const _0xa2e9d4=_0x3b9665;super(),_(this,_0xa2e9d4(0x263),new Map()),_(this,_0xa2e9d4(0x186),new Map()),_(this,'_disabled',!0x1),(this[_0xa2e9d4(0x290)]=_0x4beffc,this[_0xa2e9d4(0x2fc)]=_0x4cec6a,this[_0xa2e9d4(0x377)]=_0x51ac43);}['disableLocalCache'](){const _0x1d16d0=_0x3b9665;this[_0x1d16d0(0x23f)]=!0x0;}[_0x3b9665(0x207)](){const _0x6d86a0=_0x3b9665;this[_0x6d86a0(0x23f)]=!0x1;}get['saveTaskMap'](){const _0x1cb03f=_0x3b9665;return this[_0x1cb03f(0x186)];}['dispose'](){const _0x5af1ca=_0x3b9665;this[_0x5af1ca(0x214)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x4efa95){const _0x4436d1=_0x3b9665;return this[_0x4436d1(0x23f)]?null:this[_0x4436d1(0x2fc)][_0x4436d1(0x338)](_0x47ad11(_0x4efa95));}async[_0x3b9665(0x325)](_0x102931,_0x317063){const _0x59d01b=_0x3b9665;return!!this[_0x59d01b(0x2fc)][_0x59d01b(0x25c)](_0x102931,_0x317063);}[_0x3b9665(0x39c)](_0x21d908,_0x92caf5,_0x193fbf,_0x3da36a){const _0x1b5055=_0x3b9665,_0x4234e3=this[_0x1b5055(0x377)][_0x1b5055(0x2e5)](_0x21d908);this[_0x1b5055(0x263)][_0x1b5055(0x227)](_0x21d908,{'unitID':_0x21d908,'type':_0x92caf5,'awaitingChangeset':_0x193fbf,'mutations':_0x3da36a,'rev':_0x4234e3}),this[_0x1b5055(0x186)][_0x1b5055(0x23d)](_0x21d908)||this[_0x1b5055(0x35e)](_0x21d908);}['_scheduleSaving'](_0x50d3ba){const _0x9944f5=_0x3b9665,_0x1854d4=this[_0x9944f5(0x17d)]();_0x1854d4===0x0?this['_saveCache'](_0x50d3ba):this[_0x9944f5(0x186)][_0x9944f5(0x227)](_0x50d3ba,setTimeout(()=>this[_0x9944f5(0x180)](_0x50d3ba),_0x1854d4));}[_0x3b9665(0x17d)](){const _0x452324=_0x3b9665;var _0x3b0a73;return(_0x3b0a73=this[_0x452324(0x290)]['getConfig'](_0x30505d))!=null?_0x3b0a73:_0x495ee8;}['_saveCache'](_0x339b24){const _0x252794=_0x3b9665,_0x23b7be=this[_0x252794(0x186)][_0x252794(0x20b)](_0x339b24);return _0x23b7be!==void 0x0&&window[_0x252794(0x1af)](_0x23b7be),this['_localStorageService'][_0x252794(0x25c)](_0x47ad11(_0x339b24),this['_cachedData'][_0x252794(0x20b)](_0x339b24))[_0x252794(0x189)](()=>this[_0x252794(0x186)][_0x252794(0x194)](_0x339b24));}async['exhaustSavingTask'](){const _0x4187cf=_0x3b9665,_0x1a547a=[];this[_0x4187cf(0x186)][_0x4187cf(0x296)]((_0x4946e7,_0x458d6c)=>{const _0x2507fc=_0x4187cf;window[_0x2507fc(0x1af)](_0x4946e7),_0x1a547a[_0x2507fc(0x2ab)](this['_saveCache'](_0x458d6c)[_0x2507fc(0x189)](()=>{const _0x3ec397=_0x2507fc;this['_saveTaskMap'][_0x3ec397(0x194)](_0x458d6c);}));}),await Promise['all'](_0x1a547a);}};He=bn([Ue(0x0,_0x1ace04),Ue(0x1,_0x527538),Ue(0x2,_0x122dae(_0x43c3ef))],He);class Ln extends _0x1b547f{constructor(){const _0x243b9d=_0x3b9665;super(),_(this,_0x243b9d(0x251)),this['urlChange$']=_0x2df87d(window,_0x243b9d(0x209))[_0x243b9d(0x193)](_0x14bda1(this[_0x243b9d(0x391)]),_0x567f93(0x1),_0x3c4c1e(void 0x0));}[_0x3b9665(0x216)](_0x290151,_0x4ee07c,_0x3ea78a=!0x1){const _0x35886e=_0x3b9665,_0x340d15=new URL(window[_0x35886e(0x33e)][_0x35886e(0x2ce)]);_0x340d15[_0x35886e(0x317)]['set'](_0x290151,_0x4ee07c),_0x3ea78a?window['history']['replaceState']('','',_0x340d15['toString']()):window[_0x35886e(0x32a)]['pushState']('','',_0x340d15[_0x35886e(0x30a)]());}[_0x3b9665(0x2a7)](_0x55adc1,_0x58b40e=!0x1){const _0x2cf9fe=_0x3b9665,_0x19bc50=new URL(window['location'][_0x2cf9fe(0x2ce)]);_0x19bc50[_0x2cf9fe(0x317)][_0x2cf9fe(0x194)](_0x55adc1),_0x58b40e?window[_0x2cf9fe(0x32a)][_0x2cf9fe(0x190)]('','',_0x19bc50[_0x2cf9fe(0x30a)]()):window[_0x2cf9fe(0x32a)]['pushState']('','',_0x19bc50[_0x2cf9fe(0x30a)]());}['getParam'](_0x572834){const _0x27ad36=_0x3b9665;var _0x583b53;return(_0x583b53=new URL(window[_0x27ad36(0x33e)][_0x27ad36(0x2ce)])[_0x27ad36(0x317)][_0x27ad36(0x20b)](_0x572834))!=null?_0x583b53:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x3b9665(0x36d)],An=(_0x5bedc5,_0x1d3d4d,_0x461339)=>_0x1d3d4d in _0x5bedc5?Un(_0x5bedc5,_0x1d3d4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x461339}):_0x5bedc5[_0x1d3d4d]=_0x461339,Pn=(_0x1f95f1,_0x27d834,_0x17be8c,_0x693763)=>{const _0x4f5605=_0x3b9665;for(var _0x27c2e2=_0x693763>0x1?void 0x0:_0x693763?Mn(_0x27d834,_0x17be8c):_0x27d834,_0x173f16=_0x1f95f1[_0x4f5605(0x1cc)]-0x1,_0x187eee;_0x173f16>=0x0;_0x173f16--)(_0x187eee=_0x1f95f1[_0x173f16])&&(_0x27c2e2=_0x187eee(_0x27c2e2)||_0x27c2e2);return _0x27c2e2;},Me=(_0x210b62,_0x2fdc3b)=>(_0x2a4a1d,_0x23e04f)=>_0x2fdc3b(_0x2a4a1d,_0x23e04f,_0x210b62),wn=(_0x4505e6,_0x4310dd,_0x209bea)=>An(_0x4505e6,_0x4310dd+'',_0x209bea);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x392ee4{constructor(_0xf2b785=_t,_0x38e74a,_0x4fd63f,_0x358267){const _0x528844=_0x3b9665;super(),this[_0x528844(0x1d4)]=_0xf2b785,this['_renderManagerService']=_0x38e74a,this[_0x528844(0x1a3)]=_0x4fd63f,this[_0x528844(0x290)]=_0x358267;const {..._0x1aa3a1}=_0xb490bb({},_t,this[_0x528844(0x1d4)]);this[_0x528844(0x290)]['setConfig'](hn,_0x1aa3a1);}[_0x3b9665(0x261)](){const _0x431965=_0x3b9665;this['_registerDependencies'](),this[_0x431965(0x18e)]();}[_0x3b9665(0x3a8)](){const _0x3f950c=_0x3b9665;this[_0x3f950c(0x34a)]();}[_0x3b9665(0x1db)](){const _0x17ba16=_0x3b9665;var _0xa12fcf;const _0x335796=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x5c6fd1,{'useClass':_0x32e216}],[_0x1e4f02,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x17ba16(0x1d4)]['enableFrontendLog']&&_0x335796[_0x17ba16(0x2ab)]([le]),_0xe870c6(this[_0x17ba16(0x1a3)],_0x530b05(_0x335796,(_0xa12fcf=this[_0x17ba16(0x1d4)])==null?void 0x0:_0xa12fcf['override']));}['_registerRenderDependencies'](){const _0xef2277=_0x3b9665;this[_0xef2277(0x219)](this['_renderManagerService'][_0xef2277(0x1ed)](_0x111dfa[_0xef2277(0x16e)],[Fe])),this[_0xef2277(0x219)](this[_0xef2277(0x233)][_0xef2277(0x1ed)](_0x111dfa[_0xef2277(0x307)],[ke]));}[_0x3b9665(0x18e)](){const _0x74eb13=_0x3b9665;_0xa6c263(this[_0x74eb13(0x1a3)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x74eb13(0x1d4)][_0x74eb13(0x3a7)]&&_0xa6c263(this['_injector'],[[le]]);}};wn(Ye,_0x3b9665(0x2fb),yn),Ye=Pn([_0x5e8c21(_0x5ad454),Me(0x1,_0x5346f6),Me(0x2,_0x122dae(_0x318e52)),Me(0x3,_0x1ace04)],Ye);var $n=Object[_0x3b9665(0x36d)],xn=(_0x4a88fe,_0x5ba63d,_0x49aa66,_0x36e591)=>{const _0x3e9fb0=_0x3b9665;for(var _0x514420=_0x36e591>0x1?void 0x0:_0x36e591?$n(_0x5ba63d,_0x49aa66):_0x5ba63d,_0x584041=_0x4a88fe[_0x3e9fb0(0x1cc)]-0x1,_0x565b0e;_0x584041>=0x0;_0x584041--)(_0x565b0e=_0x4a88fe[_0x584041])&&(_0x514420=_0x565b0e(_0x514420)||_0x514420);return _0x514420;},J=(_0x3bba30,_0x129a6f)=>(_0x41a4ed,_0x1513cd)=>_0x129a6f(_0x41a4ed,_0x1513cd,_0x3bba30);let ut=class extends _0xa7b0f2{constructor(_0x124dc9,_0x482960,_0x375caf,_0x441554,_0x54739f){super(_0x124dc9,_0x482960,_0x375caf,_0x441554,_0x54739f);}async[_0x3b9665(0x1cb)](_0x2b755b){const _0x1eace6=_0x3b9665,_0x20bcaf=await this[_0x1eace6(0x2fd)](),_0x6476ed=this[_0x1eace6(0x1e1)](_0x2b755b,_0x20bcaf);return this[_0x1eace6(0x2d0)](_0x6476ed);}[_0x3b9665(0x1e1)](_0x546325,_0x3a26b0){const _0x178e4d=_0x3b9665,_0x26a047=typeof window>'u'?new URL(_0x546325):new URL(_0x546325,window['location'][_0x178e4d(0x1bd)]);_0x26a047[_0x178e4d(0x317)][_0x178e4d(0x227)](_0x178e4d(0x22f),_0x3a26b0);const _0x3857dd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x178e4d(0x33e)][_0x178e4d(0x282)]);return _0x3857dd[_0x178e4d(0x20b)](_0x178e4d(0x16d))&&_0x26a047[_0x178e4d(0x317)][_0x178e4d(0x227)](_0x178e4d(0x16d),_0x3857dd[_0x178e4d(0x20b)](_0x178e4d(0x16d))),_0x26a047['toString']();}async[_0x3b9665(0x2fd)](){const _0x5151c0=_0x3b9665;var _0x2b0e61,_0x302198,_0x47ac2e;const _0x1fb2ac=this[_0x5151c0(0x290)][_0x5151c0(0x27e)](_0x5c6519),_0x5f2afa=(_0x2b0e61=_0x1fb2ac==null?void 0x0:_0x1fb2ac['wsSessionTicketUrl'])!=null?_0x2b0e61:_0x427a5a;return(_0x47ac2e=(_0x302198=(await this['_httpService']['get'](_0x5f2afa,{'headers':{'Content-Type':_0x5151c0(0x2df)}}))['body'])==null?void 0x0:_0x302198[_0x5151c0(0x21f)])!=null?_0x47ac2e:'';}};ut=xn([J(0x0,_0x122dae(_0x318e52)),J(0x1,_0x122dae(_0x480dcd)),J(0x2,_0x1ace04),J(0x3,_0x3cc8e3),J(0x4,_0x390efe)],ut);var Bn=Object[_0x3b9665(0x36d)],Fn=(_0xf9ec66,_0xbf7ca7,_0x4630a7,_0x552f6f)=>{for(var _0xd0c24c=_0x552f6f>0x1?void 0x0:_0x552f6f?Bn(_0xbf7ca7,_0x4630a7):_0xbf7ca7,_0x10fa5c=_0xf9ec66['length']-0x1,_0x180375;_0x10fa5c>=0x0;_0x10fa5c--)(_0x180375=_0xf9ec66[_0x10fa5c])&&(_0xd0c24c=_0x180375(_0xd0c24c)||_0xd0c24c);return _0xd0c24c;},Ae=(_0x5a070e,_0x5c1ac0)=>(_0x2dbad0,_0x44e7f8)=>_0x5c1ac0(_0x2dbad0,_0x44e7f8,_0x5a070e);let dt=class extends _0x59ef45{constructor(_0x1fafe3,_0x4f157c,_0x359a2c){const _0x5c2105=_0x3b9665;super(),this[_0x5c2105(0x303)]=_0x1fafe3,this['_httpService']=_0x4f157c,this[_0x5c2105(0x290)]=_0x359a2c;}async[_0x3b9665(0x29a)](_0x36a152,_0x51ce24,_0x24fed5,..._0x46e2cb){const _0x58b9a8=_0x3b9665;var _0x5ff863,_0x387de4,_0x40f564,_0x5106fb;const _0x1c4781=this[_0x58b9a8(0x303)]['getFocusedUnit']();if(!_0x1c4781)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3cbf7d=((_0x5ff863=this[_0x58b9a8(0x290)][_0x58b9a8(0x27e)](_0x505e1d))!=null?_0x5ff863:_0x2eb207)+'/'+_0x36a152+'/run/'+_0x51ce24,_0x3888a9=new URL(window[_0x58b9a8(0x33e)][_0x58b9a8(0x2ce)]),_0x5d2a06={'scriptId':_0x36a152,'runId':(_0x387de4=_0x3888a9[_0x58b9a8(0x317)]['get']('runId'))!=null?_0x387de4:'','function':_0x51ce24,'unitId':_0x1c4781[_0x58b9a8(0x2e8)](),'argsOfFunction':JSON['stringify'](_0x46e2cb),'invokeId':(_0x40f564=_0x24fed5[_0x58b9a8(0x1bb)])!=null?_0x40f564:'','executionId':(_0x5106fb=_0x24fed5[_0x58b9a8(0x260)])!=null?_0x5106fb:''};try{const _0x3ee139=await this[_0x58b9a8(0x191)][_0x58b9a8(0x244)](_0x3cbf7d,{'body':_0x5d2a06});return _0x3ee139[_0x58b9a8(0x25d)][_0x58b9a8(0x213)]&&_0x3ee139[_0x58b9a8(0x25d)][_0x58b9a8(0x213)]['code']!==Z['OK']?_0x58b9a8(0x2f6):_0x3ee139[_0x58b9a8(0x25d)]['result'];}catch{return _0x58b9a8(0x2f6);}}};dt=Fn([Ae(0x0,_0x4aa59b),Ae(0x1,_0x122dae(_0x480dcd)),Ae(0x2,_0x1ace04)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x59ef45{constructor(){const _0x25ef2a=_0x3b9665;super(),_(this,_0x25ef2a(0x3a2),_0x12b258()),_(this,'_selfUnitIDs',new Set()),_(this,_0x25ef2a(0x2cd),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x25ef2a(0x276),new Map()),_(this,_0x25ef2a(0x352),new Map()),this[_0x25ef2a(0x279)]();}['dispose'](){const _0x2298fe=_0x3b9665;super[_0x2298fe(0x239)](),this[_0x2298fe(0x276)][_0x2298fe(0x296)]((_0x3a8e5a,_0x562481)=>this[_0x2298fe(0x2b1)](_0x562481)),this[_0x2298fe(0x24d)]&&window['clearInterval'](this[_0x2298fe(0x24d)]);}[_0x3b9665(0x30b)](_0x49bf3f){const _0x466058=_0x3b9665;return this['_ensureSubject'](_0x49bf3f)[_0x466058(0x193)](_0x2d2872());}[_0x3b9665(0x283)](_0xe29218){const _0x2c9b51=_0x3b9665;this[_0x2c9b51(0x20f)][_0x2c9b51(0x2a6)]===0x0&&this[_0x2c9b51(0x35b)](),this[_0x2c9b51(0x20f)][_0x2c9b51(0x2ca)](_0xe29218),this[_0x2c9b51(0x2f0)]({'type':0x0,'memberID':this[_0x2c9b51(0x3a2)],'unitIDs':[_0xe29218],'isForwarded':!0x1});}[_0x3b9665(0x24e)](_0x74c778){const _0x5678c5=_0x3b9665;this['_selfUnitIDs'][_0x5678c5(0x194)](_0x74c778),this[_0x5678c5(0x20f)]['size']===0x0&&this[_0x5678c5(0x24d)]&&window[_0x5678c5(0x2f1)](this[_0x5678c5(0x24d)]);}[_0x3b9665(0x279)](){const _0x3df646=_0x3b9665;this[_0x3df646(0x219)](_0x4f8f82(_0x2df87d(window,_0x3df646(0x399))['subscribe'](_0x526fb4=>{const _0x3083ad=_0x3df646;if(_0x526fb4[_0x3083ad(0x3a3)]!==It||!_0x526fb4[_0x3083ad(0x327)])return;const _0x5eab07=JSON['parse'](_0x526fb4[_0x3083ad(0x327)]);this[_0x3083ad(0x232)](_0x5eab07);}))),window[_0x3df646(0x299)](_0x3df646(0x2d7),()=>this['_send']({'type':0x1,'memberID':this[_0x3df646(0x3a2)],'unitIDs':Array[_0x3df646(0x357)](this[_0x3df646(0x20f)])}));}[_0x3b9665(0x232)](_0x3e9147){const _0x5f3f5a=_0x3b9665;switch(_0x3e9147[_0x5f3f5a(0x204)]){case 0x0:this[_0x5f3f5a(0x1d0)](_0x3e9147);break;case 0x1:this[_0x5f3f5a(0x38b)](_0x3e9147);break;case 0x2:this[_0x5f3f5a(0x267)](_0x3e9147);break;}}[_0x3b9665(0x1d0)](_0x350a5b){const _0x3a3e6e=_0x3b9665,{unitIDs:_0x7d3562,memberID:_0x27427b,isForwarded:_0x98466d}=_0x350a5b;_0x7d3562[_0x3a3e6e(0x296)](_0x4d3c2b=>{const _0x3d7141=_0x3a3e6e;if(!_0x98466d&&this[_0x3d7141(0x2cd)][_0x3d7141(0x23d)](_0x4d3c2b)&&this[_0x3d7141(0x2bd)](_0x4d3c2b)[_0x3d7141(0x28d)](_0x4d4311[_0x3d7141(0x238)]),!this[_0x3d7141(0x2cd)][_0x3d7141(0x23d)](_0x4d3c2b)||!this[_0x3d7141(0x2cd)][_0x3d7141(0x20b)](_0x4d3c2b)['has'](_0x27427b)){const _0xfd2e0c=this[_0x3d7141(0x2cd)][_0x3d7141(0x20b)](_0x4d3c2b)||new Set();_0xfd2e0c[_0x3d7141(0x2ca)](_0x27427b),this[_0x3d7141(0x2cd)][_0x3d7141(0x227)](_0x4d3c2b,_0xfd2e0c),this['_scheduleClearOtherTimer'](_0x27427b);}}),_0x98466d||this[_0x3a3e6e(0x2f0)]({'type':0x0,'memberID':this[_0x3a3e6e(0x3a2)],'unitIDs':[...this[_0x3a3e6e(0x20f)]],'isForwarded':!0x0});}[_0x3b9665(0x2b4)](_0x125062){const _0x52147e=_0x3b9665;this[_0x52147e(0x2b1)](_0x125062);const _0x30e95b=window['setTimeout'](()=>{const _0x338c6e=_0x52147e;this['_unitOnClients'][_0x338c6e(0x296)](_0x1476de=>{const _0xecb404=_0x338c6e;_0x1476de[_0xecb404(0x194)](_0x125062);});},St*0x2);this[_0x52147e(0x276)][_0x52147e(0x227)](_0x125062,_0x30e95b);}['_removeClearOtherTimer'](_0x4a29f7){const _0xa7ba99=_0x3b9665;if(this[_0xa7ba99(0x276)][_0xa7ba99(0x23d)](_0x4a29f7)){const _0x2a000d=this[_0xa7ba99(0x276)][_0xa7ba99(0x20b)](_0x4a29f7);_0x2a000d&&window[_0xa7ba99(0x1af)](_0x2a000d),this[_0xa7ba99(0x276)]['set'](_0x4a29f7,null);}}[_0x3b9665(0x38b)](_0x342529){const _0x3de642=_0x3b9665,{memberID:_0x532262,unitIDs:_0x43aa74}=_0x342529;_0x43aa74[_0x3de642(0x296)](_0x115c5b=>{const _0x9f2751=_0x3de642;var _0x4a0dff;const _0x38d5fc=this[_0x9f2751(0x2cd)][_0x9f2751(0x20b)](_0x115c5b);_0x38d5fc&&(_0x38d5fc[_0x9f2751(0x194)](_0x532262),(_0x4a0dff=this['_ensureSubject'](_0x115c5b))==null||_0x4a0dff[_0x9f2751(0x28d)](_0x38d5fc[_0x9f2751(0x2a6)]===0x0?_0x4d4311['NO_OTHER_CLIENTS_EDITING']:_0x4d4311[_0x9f2751(0x238)]));}),this[_0x3de642(0x2b1)](_0x532262);}[_0x3b9665(0x267)](_0xc2250c){const _0x19296d=_0x3b9665;this[_0x19296d(0x2b4)](_0xc2250c[_0x19296d(0x37f)]);}[_0x3b9665(0x2f0)](_0x4dc682){const _0x24771d=_0x3b9665;localStorage[_0x24771d(0x25c)](It,JSON['stringify'](_0x4dc682));}[_0x3b9665(0x35b)](){const _0x1aab48=_0x3b9665;this['_heartbeatTimer']=window[_0x1aab48(0x250)](()=>{const _0x538161=_0x1aab48;this['_send']({'type':0x2,'memberID':this[_0x538161(0x3a2)]});},St);}[_0x3b9665(0x2bd)](_0xf08e3a){const _0x3b15a5=_0x3b9665;return this[_0x3b15a5(0x352)][_0x3b15a5(0x23d)](_0xf08e3a)||this[_0x3b15a5(0x352)][_0x3b15a5(0x227)](_0xf08e3a,new _0x1e5ced(_0x4d4311[_0x3b15a5(0x37d)])),this[_0x3b15a5(0x352)][_0x3b15a5(0x20b)](_0xf08e3a);}}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};
|